google.cloud.forseti.common.gcp_type.cloudsql_access_controls module

A CloudSQL ACL Resource.

class CloudSqlAccessControl(project_id, instance_name, full_name, ipv4_enabled, authorized_networks, require_ssl, raw_json)[source]

Bases: object

CloudSQL IP Configuration (access ACLs) Resource.

__hash__()[source]

Return hash of properties.

Returns:The hash of the class properties.
Return type:hash
classmethod from_dict(project_id, instance_name, full_name, acl)[source]

Returns a new CloudSqlAccessControl object from dict.

Parameters:
  • project_id (str) – The project id.
  • instance_name (str) – The CloudSQL instance name.
  • full_name (str) – The full resource name and ancestory.
  • acl (dict) – The CloudSQL ACL.
Returns:

A new CloudSqlAccessControl object.

Return type:

CloudSqlAccessControl

static from_json(project_id, full_name, instance_data)[source]

Returns a new CloudSqlAccessControl object from json data.

Parameters:
  • project_id (str) – the project id.
  • full_name (str) – The full resource name and ancestory.
  • instance_data (str) – The json data for the CloudSQL instance.
Returns:

A new CloudSqlAccessControl object.

Return type:

CloudSqlAccessControl