google.cloud.forseti.common.gcp_type.organization module

An Organization Resource.

See: https://cloud.google.com/resource-manager/reference/rest/v1/organizations

class OrgLifecycleState[source]

Bases: google.cloud.forseti.common.gcp_type.resource.LifecycleState

Organization lifecycle state.

DELETED_REQUESTED = 'DELETE_REQUESTED'
class Organization(organization_id, full_name=None, data=None, name=None, display_name=None, lifecycle_state='LIFECYCLE_STATE_UNSPECIFIED')[source]

Bases: google.cloud.forseti.common.gcp_type.resource.Resource

Organization resource.

RESOURCE_NAME_FMT = 'organizations/%s'
_abc_cache = <_weakrefset.WeakSet object>
_abc_negative_cache = <_weakrefset.WeakSet object>
_abc_negative_cache_version = 208
_abc_registry = <_weakrefset.WeakSet object>
classmethod from_json(parent, json_string)[source]

Creates a organization from an organization JSON string.

Parameters:
  • parent (Resource) – resource this instance belongs to. Should be an organization.
  • json_string (str) – JSON string of a instance GCP API response.
Returns:

A new Project object.

Return type:

Project