google.cloud.forseti.common.gcp_type.folder module

A Folder Resource.

class Folder(folder_id, full_name=None, data=None, name=None, display_name=None, parent=None, lifecycle_state='LIFECYCLE_STATE_UNSPECIFIED')[source]

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

Folder Resource.

RESOURCE_NAME_FMT = 'folders/%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 Folder from a JSON string.

Parameters:
  • parent (Resource) – resource this folder belongs to.
  • json_string (str) – JSON string of a folder GCP resource.
Returns:

folder resource.

Return type:

Folder

class FolderLifecycleState[source]

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

Represents the Folder’s LifecycleState.