google.cloud.forseti.common.gcp_type.dataset module

A Dataset Resource.

See: https://cloud.google.com/bigquery/docs/reference/rest/v2/datasets

class Dataset(dataset_id, full_name=None, data=None, name=None, display_name=None, parent=None, locations=None, lifecycle_state='LIFECYCLE_STATE_UNSPECIFIED')[source]

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

Dataset resource.

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

Create a dataset from a JSON string.

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

dataset resource.

Return type:

Dataset

class DatasetLifecycleState[source]

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

Represents the dataset’s LifecycleState.