google.cloud.forseti.common.gcp_type.table module

A Table Resource.

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

class Table(table_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

Table resource.

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

Create a Table from a JSON string.

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

table resource.

Return type:

Table

class TableLifecycleState[source]

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

Represents the table’s LifecycleState.