Skip to content

missing v3 managers #280

@krismarc

Description

@krismarc

I'd like to have all or at least most of resources covered. At least their class declarations that would abstract EntityManager so it would let me list/get resources and it would inherit pagination support for them. Additional methods are not really needed at this point like CREATE/UPDATE/DELETE or other more atomic/custom methods that CF api provides.

routes
droplets
packages
audit events
organization quotas
stacks

Basically just this for missing resources:

from typing import TYPE_CHECKING

from cloudfoundry_client.v3.entities import Entity, EntityManager

if TYPE_CHECKING:
    from cloudfoundry_client.client import CloudFoundryClient


class <missing_resource>Manager(EntityManager):
    def __init__(self, target_endpoint: str, client: "CloudFoundryClient"):
        super(<missing_resource>Manager, self).__init__(target_endpoint, client, "/v3/<resource_type>")

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions