google.cloud.forseti.common.gcp_type.cloudsql_instance module

A CloudSQL Instance Resource.

See: https://cloud.google.com/sql/docs/mysql/admin-api/v1beta4/

class CloudSQLInstance(instance_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

CloudSQL Instance resource.

RESOURCE_NAME_FMT = 'instances/%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]

Create a cloud_sql_instance from a JSON string.

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

cloud sql instance resource.

Return type:

CloudSQLInstance

class CloudSQLInstanceLifecycleState[source]

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

Represents the cloud_sql_instance’s LifecycleState.