NAME
Google::Cloud::Sql::V1::CloudSqlResources - Compiled Protocol Buffers messages for google/cloud/sql/v1/cloud_sql_resources.proto
SYNOPSIS
use Google::Cloud::Sql::V1::CloudSqlResources;
my $msg = Google::Cloud::Sql::V1::CloudSqlResources::AclEntry->new({
value => $value,
expiration_time => $expiration_time,
name => $name,
kind => $kind,
});
# Read or update a field
my $val = $msg->value();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Sql::V1::CloudSqlResources::AclEntry->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/sql/v1/cloud_sql_resources.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Sql::V1::CloudSqlResources::AclEntry
An entry for an Access Control list.
Inherits from Protobuf::Message.
Accessors
$msg->value()/$msg->value($value)Type:
StringThe allowlisted value for the access control list.
$msg->expiration_time()/$msg->expiration_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time when this access control entry expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
$msg->name()/$msg->name($value)Type:
StringOptional. A label to identify this entry.
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#aclEntry`.
Google::Cloud::Sql::V1::CloudSqlResources::ApiWarning
An Admin API warning message.
Inherits from Protobuf::Message.
Accessors
$msg->code()/$msg->code($value)Type:
Enum(Google::Cloud::Sql::V1::ApiWarning::SqlApiWarningCode)Code to uniquely identify the warning type.
$msg->message()/$msg->message($value)Type:
StringThe warning message.
$msg->region()/$msg->region($value)Type:
StringThe region name for REGION_UNREACHABLE warning.
Enum: ApiWarning::SqlApiWarningCode
SQL_API_WARNING_CODE_UNSPECIFIED=>0REGION_UNREACHABLE=>1MAX_RESULTS_EXCEEDS_LIMIT=>2COMPROMISED_CREDENTIALS=>3INTERNAL_STATE_FAILURE=>4
Google::Cloud::Sql::V1::CloudSqlResources::BackupRetentionSettings
We currently only support backup retention by specifying the number of backups we will retain.
Inherits from Protobuf::Message.
Accessors
$msg->retention_unit()/$msg->retention_unit($value)Type:
Enum(Google::Cloud::Sql::V1::BackupRetentionSettings::RetentionUnit)The unit that 'retained_backups' represents.
$msg->retained_backups()/$msg->retained_backups($value)Type:
Message(Google::Protobuf::Wrappers::Int32Value)Depending on the value of retention_unit, this is used to determine if a backup needs to be deleted. If retention_unit is 'COUNT', we will retain this many backups.
Enum: BackupRetentionSettings::RetentionUnit
RETENTION_UNIT_UNSPECIFIED=>0COUNT=>1
Google::Cloud::Sql::V1::CloudSqlResources::BackupConfiguration
Database instance backup configuration.
Inherits from Protobuf::Message.
Accessors
$msg->start_time()/$msg->start_time($value)Type:
StringStart time for the daily backup configuration in UTC timezone in the 24 hour format - `HH:MM`.
$msg->enabled()/$msg->enabled($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Whether this configuration is enabled.
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#backupConfiguration`.
$msg->binary_log_enabled()/$msg->binary_log_enabled($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)(MySQL only) Whether binary log is enabled. If backup configuration is disabled, binarylog must be disabled as well.
$msg->replication_log_archiving_enabled()/$msg->replication_log_archiving_enabled($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Optional. Deprecated: replication_log_archiving_enabled is deprecated and will be removed from a future version of the API. Use [point_in_time_recovery_enabled][google.cloud.sql.v1.BackupConfiguration.point_in_time_recovery_enabled] instead.
$msg->location()/$msg->location($value)Type:
StringLocation of the backup
$msg->point_in_time_recovery_enabled()/$msg->point_in_time_recovery_enabled($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Whether point in time recovery is enabled.
$msg->backup_retention_settings()/$msg->backup_retention_settings($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::BackupRetentionSettings)Backup retention settings.
$msg->transaction_log_retention_days()/$msg->transaction_log_retention_days($value)Type:
Message(Google::Protobuf::Wrappers::Int32Value)The number of days of transaction logs we retain for point in time restore, from 1-7.
$msg->transactional_log_storage_state()/$msg->transactional_log_storage_state($value)Type:
Enum(Google::Cloud::Sql::V1::BackupConfiguration::TransactionalLogStorageState)Output only. This value contains the storage location of transactional logs used to perform point-in-time recovery (PITR) for the database.
$msg->backup_tier()/$msg->backup_tier($value)Type:
Enum(Google::Cloud::Sql::V1::BackupConfiguration::BackupTier)Output only. Backup tier that manages the backups for the instance.
Enum: BackupConfiguration::TransactionalLogStorageState
TRANSACTIONAL_LOG_STORAGE_STATE_UNSPECIFIED=>0DISK=>1SWITCHING_TO_CLOUD_STORAGE=>2SWITCHED_TO_CLOUD_STORAGE=>3CLOUD_STORAGE=>4
Enum: BackupConfiguration::BackupTier
BACKUP_TIER_UNSPECIFIED=>0STANDARD=>1ADVANCED=>2ENHANCED=>3
Google::Cloud::Sql::V1::CloudSqlResources::PerformDiskShrinkContext
Perform disk shrink context.
Inherits from Protobuf::Message.
Accessors
$msg->target_size_gb()/$msg->target_size_gb($value)Type:
Int64The target disk shrink size in GigaBytes.
Google::Cloud::Sql::V1::CloudSqlResources::PreCheckResponse
Structured PreCheckResponse containing message, type, and required actions.
Inherits from Protobuf::Message.
Accessors
$msg->message()/$msg->message($value)Type:
StringThe message to be displayed to the user.
$msg->message_type()/$msg->message_type($value)Type:
Enum(Google::Cloud::Sql::V1::PreCheckResponse::MessageType)The type of message whether it is an info, warning, or error.
$msg->actions_required()/$msg->actions_required($value)Type:
StringThe actions that the user needs to take. Use repeated for multiple actions.
Enum: PreCheckResponse::MessageType
MESSAGE_TYPE_UNSPECIFIED=>0INFO=>1WARNING=>2ERROR=>3
Google::Cloud::Sql::V1::CloudSqlResources::PreCheckMajorVersionUpgradeContext
Pre-check major version upgrade context.
Inherits from Protobuf::Message.
Accessors
$msg->target_database_version()/$msg->target_database_version($value)Type:
Enum(Google::Cloud::Sql::V1::SqlDatabaseVersion)Required. The target database version to upgrade to.
$msg->pre_check_response()/$msg->pre_check_response($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::PreCheckResponse)Output only. The responses from the precheck operation.
$msg->kind()/$msg->kind($value)Type:
StringOptional. This is always `sql#preCheckMajorVersionUpgradeContext`.
$msg->max_runtime()/$msg->max_runtime($value)Type:
Message(Google::Protobuf::Duration::Duration)Optional. The maximum allowed runtime for the precheck operation.
Google::Cloud::Sql::V1::CloudSqlResources::BackupContext
Backup context.
Inherits from Protobuf::Message.
Accessors
$msg->backup_id()/$msg->backup_id($value)Type:
Int64The identifier of the backup.
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#backupContext`.
$msg->name()/$msg->name($value)Type:
StringThe name of the backup. Format: projects/{project}/backups/{backup}
Google::Cloud::Sql::V1::CloudSqlResources::Database
Represents a SQL database on the Cloud SQL instance.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#database`.
$msg->charset()/$msg->charset($value)Type:
StringThe Cloud SQL charset value.
$msg->collation()/$msg->collation($value)Type:
StringThe Cloud SQL collation value.
$msg->etag()/$msg->etag($value)Type:
StringThis field is deprecated and will be removed from a future version of the API.
$msg->name()/$msg->name($value)Type:
StringThe name of the database in the Cloud SQL instance. This does not include the project ID or instance name.
$msg->instance()/$msg->instance($value)Type:
StringThe name of the Cloud SQL instance. This does not include the project ID.
$msg->self_link()/$msg->self_link($value)Type:
StringThe URI of this resource.
$msg->project()/$msg->project($value)Type:
StringThe project ID of the project containing the Cloud SQL database. The Google apps domain is prefixed if applicable.
$msg->sqlserver_database_details()/$msg->sqlserver_database_details($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::SqlServerDatabaseDetails)
Google::Cloud::Sql::V1::CloudSqlResources::SqlServerDatabaseDetails
Represents a Sql Server database on the Cloud SQL instance.
Inherits from Protobuf::Message.
Accessors
$msg->compatibility_level()/$msg->compatibility_level($value)Type:
Int32The version of SQL Server with which the database is to be made compatible
$msg->recovery_model()/$msg->recovery_model($value)Type:
StringThe recovery model of a SQL Server database
Google::Cloud::Sql::V1::CloudSqlResources::DatabaseFlags
Database flags for Cloud SQL instances.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the flag. These flags are passed at instance startup, so include both server options and system variables. Flags are specified with underscores, not hyphens. For more information, see [Configuring Database Flags](https://cloud.google.com/sql/docs/mysql/flags) in the Cloud SQL documentation.
$msg->value()/$msg->value($value)Type:
StringThe value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn't take a value.
Google::Cloud::Sql::V1::CloudSqlResources::MySqlSyncConfig
MySQL-specific external server sync settings.
Inherits from Protobuf::Message.
Accessors
$msg->initial_sync_flags()/$msg->initial_sync_flags($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::SyncFlags)Flags to use for the initial dump.
Google::Cloud::Sql::V1::CloudSqlResources::SyncFlags
Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the flag.
$msg->value()/$msg->value($value)Type:
StringThe value of the flag. This field must be omitted if the flag doesn't take a value.
Google::Cloud::Sql::V1::CloudSqlResources::InstanceReference
Reference to another Cloud SQL instance.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringThe name of the Cloud SQL instance being referenced. This does not include the project ID.
$msg->region()/$msg->region($value)Type:
StringThe region of the Cloud SQL instance being referenced.
$msg->project()/$msg->project($value)Type:
StringThe project ID of the Cloud SQL instance being referenced. The default is the same project ID as the instance references it.
Google::Cloud::Sql::V1::CloudSqlResources::DemoteMasterConfiguration
Read-replica configuration for connecting to the on-premises primary instance.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#demoteMasterConfiguration`.
$msg->mysql_replica_configuration()/$msg->mysql_replica_configuration($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::DemoteMasterMySqlReplicaConfiguration)MySQL specific configuration when replicating from a MySQL on-premises primary instance. Replication configuration information such as the username, password, certificates, and keys are not stored in the instance metadata. The configuration information is used only to set up the replication connection and is stored by MySQL in a file named `master.info` in the data directory.
Google::Cloud::Sql::V1::CloudSqlResources::DemoteMasterMySqlReplicaConfiguration
Read-replica configuration specific to MySQL databases.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#demoteMasterMysqlReplicaConfiguration`.
$msg->username()/$msg->username($value)Type:
StringThe username for the replication connection.
$msg->password()/$msg->password($value)Type:
StringThe password for the replication connection.
$msg->client_key()/$msg->client_key($value)Type:
StringPEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate. The format of the replica's private key can be either PKCS #1 or PKCS #8.
$msg->client_certificate()/$msg->client_certificate($value)Type:
StringPEM representation of the replica's x509 certificate.
$msg->ca_certificate()/$msg->ca_certificate($value)Type:
StringPEM representation of the trusted CA's x509 certificate.
Google::Cloud::Sql::V1::CloudSqlResources::ExportContext
Database instance export context.
Inherits from Protobuf::Message.
Accessors
$msg->uri()/$msg->uri($value)Type:
StringThe path to the file in Google Cloud Storage where the export will be stored. The URI is in the form `gs://bucketName/fileName`. If the file already exists, the request succeeds, but the operation fails. If `fileType` is `SQL` and the filename ends with .gz, the contents are compressed.
$msg->databases()/$msg->databases($value)Type:
StringDatabases to be exported. <br /> `MySQL instances:` If `fileType` is `SQL` and no database is specified, all databases are exported, except for the `mysql` system database. If `fileType` is `CSV`, you can specify one database, either by using this property or by using the `csvExportOptions.selectQuery` property, which takes precedence over this property. <br /> `PostgreSQL instances:` If you don't specify a database by name, all user databases in the instance are exported. This excludes system databases and Cloud SQL databases used to manage internal operations. Exporting all user databases is only available for directory-formatted parallel export. If `fileType` is `CSV`, this database must match the one specified in the `csvExportOptions.selectQuery` property. <br /> `SQL Server instances:` You must specify one database to be exported, and the `fileType` must be `BAK`.
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#exportContext`.
$msg->sql_export_options()/$msg->sql_export_options($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ExportContext::SqlExportOptions)Options for exporting data as SQL statements.
$msg->csv_export_options()/$msg->csv_export_options($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ExportContext::SqlCsvExportOptions)Options for exporting data as CSV. `MySQL` and `PostgreSQL` instances only.
$msg->file_type()/$msg->file_type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlFileType)The file type for the specified uri.
$msg->offload()/$msg->offload($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Whether to perform a serverless export.
$msg->bak_export_options()/$msg->bak_export_options($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ExportContext::SqlBakExportOptions)Options for exporting data as BAK files.
$msg->tde_export_options()/$msg->tde_export_options($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ExportContext::SqlTdeExportOptions)Optional. Export parameters specific to SQL Server TDE certificates
Google::Cloud::Sql::V1::CloudSqlResources::ImportContext
Database instance import context.
Inherits from Protobuf::Message.
Accessors
$msg->uri()/$msg->uri($value)Type:
StringPath to the import file in Cloud Storage, in the form `gs://bucketName/fileName`. Compressed gzip files (.gz) are supported when `fileType` is `SQL`. The instance must have write permissions to the bucket and read access to the file.
$msg->database()/$msg->database($value)Type:
StringThe target database for the import. If `fileType` is `SQL`, this field is required only if the import file does not specify a database, and is overridden by any database specification in the import file. For entire instance parallel import operations, the database is overridden by the database name stored in subdirectory name. If `fileType` is `CSV`, one database must be specified.
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#importContext`.
$msg->file_type()/$msg->file_type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlFileType)The file type for the specified uri.\`SQL`: The file contains SQL statements. \`CSV`: The file contains CSV data.
$msg->csv_import_options()/$msg->csv_import_options($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ImportContext::SqlCsvImportOptions)Options for importing data as CSV.
$msg->import_user()/$msg->import_user($value)Type:
StringThe PostgreSQL user for this import operation. PostgreSQL instances only.
$msg->bak_import_options()/$msg->bak_import_options($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ImportContext::SqlBakImportOptions)Import parameters specific to SQL Server .BAK files
$msg->sql_import_options()/$msg->sql_import_options($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ImportContext::SqlImportOptions)Optional. Options for importing data from SQL statements.
$msg->tde_import_options()/$msg->tde_import_options($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ImportContext::SqlTdeImportOptions)Optional. Import parameters specific to SQL Server TDE certificates
Google::Cloud::Sql::V1::CloudSqlResources::IpConfiguration
IP Management configuration.
Inherits from Protobuf::Message.
Accessors
$msg->ipv4_enabled()/$msg->ipv4_enabled($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Whether the instance is assigned a public IP address or not.
$msg->private_network()/$msg->private_network($value)Type:
StringThe resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`. This setting can be updated, but it cannot be removed after it is set.
$msg->require_ssl()/$msg->require_ssl($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Use `ssl_mode` instead.
Whether SSL/TLS connections over IP are enforced. If set to false, then allow both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the client certificate won't be verified. If set to true, then only allow connections encrypted with SSL/TLS and with valid client certificates. If you want to enforce SSL/TLS without enforcing the requirement for valid client certificates, then use the `ssl_mode` flag instead of the `require_ssl` flag.
$msg->authorized_networks()/$msg->authorized_networks($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::AclEntry)The list of external networks that are allowed to connect to the instance using the IP. In 'CIDR' notation, also known as 'slash' notation (for example: `157.197.200.0/24`).
$msg->allocated_ip_range()/$msg->allocated_ip_range($value)Type:
StringThe name of the allocated ip range for the private ip Cloud SQL instance. For example: "google-managed-services-default". If set, the instance ip will be created in the allocated range. The range name must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63 characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
$msg->enable_private_path_for_google_cloud_services()/$msg->enable_private_path_for_google_cloud_services($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Controls connectivity to private IP instances from Google services, such as BigQuery.
$msg->ssl_mode()/$msg->ssl_mode($value)Type:
Enum(Google::Cloud::Sql::V1::IpConfiguration::SslMode)Specify how SSL/TLS is enforced in database connections. If you must use the `require_ssl` flag for backward compatibility, then only the following value pairs are valid:
For PostgreSQL and MySQL:
* `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true`
For SQL Server:
* `ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=true`
The value of `ssl_mode` has priority over the value of `require_ssl`.
For example, for the pair `ssl_mode=ENCRYPTED_ONLY` and `require_ssl=false`, `ssl_mode=ENCRYPTED_ONLY` means accept only SSL connections, while `require_ssl=false` means accept both non-SSL and SSL connections. In this case, MySQL and PostgreSQL databases respect `ssl_mode` and accepts only SSL connections.
$msg->psc_config()/$msg->psc_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::PscConfig)PSC settings for this instance.
$msg->server_ca_mode()/$msg->server_ca_mode($value)Type:
Enum(Google::Cloud::Sql::V1::IpConfiguration::CaMode)Specify what type of CA is used for the server certificate.
$msg->custom_subject_alternative_names()/$msg->custom_subject_alternative_names($value)Type:
StringOptional. Custom Subject Alternative Name(SAN)s for a Cloud SQL instance.
$msg->server_ca_pool()/$msg->server_ca_pool($value)Type:
StringOptional. The resource name of the server CA pool for an instance with `CUSTOMER_MANAGED_CAS_CA` as the `server_ca_mode`. Format: projects/{PROJECT}/locations/{REGION}/caPools/{CA_POOL_ID}
$msg->server_certificate_rotation_mode()/$msg->server_certificate_rotation_mode($value)Type:
Enum(Google::Cloud::Sql::V1::IpConfiguration::ServerCertificateRotationMode)Optional. Controls the automatic server certificate rotation feature. This feature is disabled by default. When enabled, the server certificate will be automatically rotated during Cloud SQL scheduled maintenance or self-service maintenance updates up to six months before it expires. This setting can only be set if server_ca_mode is either GOOGLE_MANAGED_CAS_CA or CUSTOMER_MANAGED_CAS_CA.
Enum: IpConfiguration::SslMode
SSL_MODE_UNSPECIFIED=>0ALLOW_UNENCRYPTED_AND_ENCRYPTED=>1ENCRYPTED_ONLY=>2TRUSTED_CLIENT_CERTIFICATE_REQUIRED=>3
Enum: IpConfiguration::CaMode
CA_MODE_UNSPECIFIED=>0GOOGLE_MANAGED_INTERNAL_CA=>1GOOGLE_MANAGED_CAS_CA=>2CUSTOMER_MANAGED_CAS_CA=>3
Enum: IpConfiguration::ServerCertificateRotationMode
SERVER_CERTIFICATE_ROTATION_MODE_UNSPECIFIED=>0NO_AUTOMATIC_ROTATION=>1AUTOMATIC_ROTATION_DURING_MAINTENANCE=>2
Google::Cloud::Sql::V1::CloudSqlResources::PscConfig
PSC settings for a Cloud SQL instance.
Inherits from Protobuf::Message.
Accessors
$msg->psc_enabled()/$msg->psc_enabled($value)Type:
BoolWhether PSC connectivity is enabled for this instance.
$msg->allowed_consumer_projects()/$msg->allowed_consumer_projects($value)Type:
StringOptional. The list of consumer projects that are allow-listed for PSC connections to this instance. This instance can be connected to with PSC from any network in these projects.
Each consumer project in this list may be represented by a project number (numeric) or by a project id (alphanumeric).
$msg->psc_auto_connections()/$msg->psc_auto_connections($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::PscAutoConnectionConfig)Optional. The list of settings for requested Private Service Connect consumer endpoints that can be used to connect to this Cloud SQL instance.
$msg->network_attachment_uri()/$msg->network_attachment_uri($value)Type:
StringOptional. The network attachment of the consumer network that the Private Service Connect enabled Cloud SQL instance is authorized to connect using the PSC interface. format: projects/PROJECT/regions/REGION/networkAttachments/ID
$msg->psc_auto_dns_enabled()/$msg->psc_auto_dns_enabled($value)Type:
BoolOptional. Indicates whether Private Service Connect DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal DNS record across all networks configured with Private Service Connect auto-connections. This will default to true for new instances when Private Service Connect is enabled.
$msg->psc_write_endpoint_dns_enabled()/$msg->psc_write_endpoint_dns_enabled($value)Type:
BoolOptional. Indicates whether Private Service Connect write endpoint DNS automation is enabled for this instance. When enabled, Cloud SQL provisions a universal global DNS record across all networks configured with Private Service Connect auto-connections that points to the cluster primary instance. This feature is only supported for Enterprise Plus edition. This will default to true for new Enterprise Plus instances when `psc_auto_dns_enabled` is enabled.
$msg->psc_auto_connection_policy_enabled()/$msg->psc_auto_connection_policy_enabled($value)Type:
BoolOptional. Whether to set up the PSC service connection policy automatically.
Google::Cloud::Sql::V1::CloudSqlResources::PscAutoConnectionConfig
Settings for an automatically-setup Private Service Connect consumer endpoint that is used to connect to a Cloud SQL instance.
Inherits from Protobuf::Message.
Accessors
$msg->consumer_project()/$msg->consumer_project($value)Type:
StringOptional. This is the project ID of consumer service project of this consumer endpoint.
This is only applicable if `consumer_network` is a shared VPC network.
$msg->consumer_network()/$msg->consumer_network($value)Type:
StringOptional. The consumer network of this consumer endpoint. This must be a resource path that includes both the host project and the network name.
For example, `projects/project1/global/networks/network1`.
The consumer host project of this network might be different from the consumer service project.
$msg->ip_address()/$msg->ip_address($value)Type:
StringThe IP address of the consumer endpoint.
$msg->status()/$msg->status($value)Type:
StringThe connection status of the consumer endpoint.
$msg->consumer_network_status()/$msg->consumer_network_status($value)Type:
StringThe connection policy status of the consumer network.
$msg->service_connection_policy()/$msg->service_connection_policy($value)Type:
StringOutput only. The service connection policy created automatically for the consumer network when `psc_auto_connection_policy_enabled` is true. It is in the format of: `projects/{project}/regions/{region}/serviceConnectionPolicies/{policy_id}` The `policy_id` is in format of `$NETWORK-$RANDOM`.
$msg->service_connection_policy_creation_result()/$msg->service_connection_policy_creation_result($value)Type:
StringOutput only. The status of service connection policy creation.
$msg->instance_auto_dns_status()/$msg->instance_auto_dns_status($value)Type:
Enum(Google::Cloud::Sql::V1::AutoDnsStatus)Output only. The status of automated DNS provisioning.
$msg->write_endpoint_auto_dns_status()/$msg->write_endpoint_auto_dns_status($value)Type:
Enum(Google::Cloud::Sql::V1::AutoDnsStatus)Output only. The status of automated DNS provisioning for the write endpoint.
Google::Cloud::Sql::V1::CloudSqlResources::LocationPreference
Preferred location. This specifies where a Cloud SQL instance is located. Note that if the preferred location is not available, the instance will be located as close as possible within the region. Only one location may be specified.
Inherits from Protobuf::Message.
Accessors
$msg->follow_gae_application()/$msg->follow_gae_application($value)Type:
StringThe App Engine application to follow, it must be in the same region as the Cloud SQL instance. WARNING: Changing this might restart the instance.
$msg->zone()/$msg->zone($value)Type:
StringThe preferred Compute Engine zone (for example: us-central1-a, us-central1-b, etc.). WARNING: Changing this might restart the instance.
$msg->secondary_zone()/$msg->secondary_zone($value)Type:
StringThe preferred Compute Engine zone for the secondary/failover (for example: us-central1-a, us-central1-b, etc.). To disable this field, set it to 'no_secondary_zone'.
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#locationPreference`.
Google::Cloud::Sql::V1::CloudSqlResources::MaintenanceWindow
Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes.
Inherits from Protobuf::Message.
Accessors
$msg->hour()/$msg->hour($value)Type:
Message(Google::Protobuf::Wrappers::Int32Value)Hour of day - 0 to 23. Specify in the UTC time zone.
$msg->day()/$msg->day($value)Type:
Message(Google::Protobuf::Wrappers::Int32Value)Day of week - `MONDAY`, `TUESDAY`, `WEDNESDAY`, `THURSDAY`, `FRIDAY`, `SATURDAY`, or `SUNDAY`. Specify in the UTC time zone. Returned in output as an integer, 1 to 7, where `1` equals Monday.
$msg->update_track()/$msg->update_track($value)Type:
Enum(Google::Cloud::Sql::V1::SqlUpdateTrack)Maintenance timing settings: `canary`, `stable`, or `week5`. For more information, see [About maintenance on Cloud SQL instances](https://cloud.google.com/sql/docs/mysql/maintenance).
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#maintenanceWindow`.
Google::Cloud::Sql::V1::CloudSqlResources::DenyMaintenancePeriod
Deny maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
Inherits from Protobuf::Message.
Accessors
$msg->start_date()/$msg->start_date($value)Type:
String"deny maintenance period" start date. If the year of the start date is empty, the year of the end date also must be empty. In this case, it means the deny maintenance period recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
$msg->end_date()/$msg->end_date($value)Type:
String"deny maintenance period" end date. If the year of the end date is empty, the year of the start date also must be empty. In this case, it means the no maintenance interval recurs every year. The date is in format yyyy-mm-dd i.e., 2020-11-01, or mm-dd, i.e., 11-01
$msg->time()/$msg->time($value)Type:
StringTime in UTC when the "deny maintenance period" starts on start_date and ends on end_date. The time is in format: HH:mm:SS, i.e., 00:00:00
Google::Cloud::Sql::V1::CloudSqlResources::InsightsConfig
Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration.
Inherits from Protobuf::Message.
Accessors
$msg->query_insights_enabled()/$msg->query_insights_enabled($value)Type:
BoolWhether Query Insights feature is enabled.
$msg->record_client_address()/$msg->record_client_address($value)Type:
BoolWhether Query Insights will record client address when enabled.
$msg->record_application_tags()/$msg->record_application_tags($value)Type:
BoolWhether Query Insights will record application tags from query when enabled.
$msg->query_string_length()/$msg->query_string_length($value)Type:
Message(Google::Protobuf::Wrappers::Int32Value)Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query lengths greater than this field value will be truncated to this value. When unset, query length will be the default value. Changing query length will restart the database.
$msg->query_plans_per_minute()/$msg->query_plans_per_minute($value)Type:
Message(Google::Protobuf::Wrappers::Int32Value)Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
$msg->enhanced_query_insights_enabled()/$msg->enhanced_query_insights_enabled($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Optional. Whether enhanced query insights feature is enabled.
Google::Cloud::Sql::V1::CloudSqlResources::MySqlReplicaConfiguration
Read-replica configuration specific to MySQL databases.
Inherits from Protobuf::Message.
Accessors
$msg->dump_file_path()/$msg->dump_file_path($value)Type:
StringPath to a SQL dump file in Google Cloud Storage from which the replica instance is to be created. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported. Dumps have the binlog co-ordinates from which replication begins. This can be accomplished by setting --master-data to 1 when using mysqldump.
$msg->username()/$msg->username($value)Type:
StringThe username for the replication connection.
$msg->password()/$msg->password($value)Type:
StringThe password for the replication connection.
$msg->connect_retry_interval()/$msg->connect_retry_interval($value)Type:
Message(Google::Protobuf::Wrappers::Int32Value)Seconds to wait between connect retries. MySQL's default is 60 seconds.
$msg->master_heartbeat_period()/$msg->master_heartbeat_period($value)Type:
Message(Google::Protobuf::Wrappers::Int64Value)Interval in milliseconds between replication heartbeats.
$msg->ca_certificate()/$msg->ca_certificate($value)Type:
StringPEM representation of the trusted CA's x509 certificate.
$msg->client_certificate()/$msg->client_certificate($value)Type:
StringPEM representation of the replica's x509 certificate.
$msg->client_key()/$msg->client_key($value)Type:
StringPEM representation of the replica's private key. The corresponding public key is encoded in the client's certificate.
$msg->ssl_cipher()/$msg->ssl_cipher($value)Type:
StringA list of permissible ciphers to use for SSL encryption.
$msg->verify_server_certificate()/$msg->verify_server_certificate($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Whether or not to check the primary instance's Common Name value in the certificate that it sends during the SSL handshake.
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#mysqlReplicaConfiguration`.
Google::Cloud::Sql::V1::CloudSqlResources::DiskEncryptionConfiguration
Disk encryption configuration for an instance.
Inherits from Protobuf::Message.
Accessors
$msg->kms_key_name()/$msg->kms_key_name($value)Type:
StringResource name of KMS key for disk encryption.
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#diskEncryptionConfiguration`.
$msg->confidential_mode()/$msg->confidential_mode($value)Type:
BoolOptional. If true, enables Confidential Mode for the instance's Hyperdisk Balanced volumes. Only supported for zonal C4A instances currently.
$msg->cmek_source_log_encryption_enforced()/$msg->cmek_source_log_encryption_enforced($value)Type:
BoolOptional. Whether to enforce CMEK log encryption at source. When enforced, transaction logs are encrypted prior to being uploaded to Cloud Storage. If not enforced, then CMEK logs are encrypted by the Cloud Storage service.
Google::Cloud::Sql::V1::CloudSqlResources::DiskEncryptionStatus
Disk encryption status for an instance.
Inherits from Protobuf::Message.
Accessors
$msg->kms_key_version_name()/$msg->kms_key_version_name($value)Type:
StringKMS key version used to encrypt the Cloud SQL instance resource
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#diskEncryptionStatus`.
Google::Cloud::Sql::V1::CloudSqlResources::IpMapping
Database instance IP mapping
Inherits from Protobuf::Message.
Accessors
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlIpAddressType)The type of this IP address. A `PRIMARY` address is a public address that can accept incoming connections. A `PRIVATE` address is a private address that can accept incoming connections. An `OUTGOING` address is the source address of connections originating from the instance, if supported.
$msg->ip_address()/$msg->ip_address($value)Type:
StringThe IP address assigned.
$msg->time_to_retire()/$msg->time_to_retire($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`. This field is only available when the IP is scheduled to be retired.
Google::Cloud::Sql::V1::CloudSqlResources::SqlSubOperationType
The sub operation type based on the operation type.
Inherits from Protobuf::Message.
Accessors
$msg->maintenance_type()/$msg->maintenance_type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlMaintenanceType)The type of maintenance to be performed on the instance.
Google::Cloud::Sql::V1::CloudSqlResources::Operation
An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#operation`.
$msg->target_link()/$msg->target_link($value)Type:
String$msg->status()/$msg->status($value)Type:
Enum(Google::Cloud::Sql::V1::Operation::SqlOperationStatus)The status of an operation.
$msg->user()/$msg->user($value)Type:
StringThe email address of the user who initiated this operation.
$msg->insert_time()/$msg->insert_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time this operation was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time this operation actually started in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time this operation finished in UTC timezone in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
$msg->error()/$msg->error($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::OperationErrors)If errors occurred during processing of this operation, this field will be populated.
$msg->api_warning()/$msg->api_warning($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ApiWarning)An Admin API warning message.
$msg->operation_type()/$msg->operation_type($value)Type:
Enum(Google::Cloud::Sql::V1::Operation::SqlOperationType)The type of the operation. Valid values are: * `CREATE` * `DELETE` * `UPDATE` * `RESTART` * `IMPORT` * `EXPORT` * `BACKUP_VOLUME` * `RESTORE_VOLUME` * `CREATE_USER` * `DELETE_USER` * `CREATE_DATABASE` * `DELETE_DATABASE`
$msg->import_context()/$msg->import_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ImportContext)The context for import operation, if applicable.
$msg->export_context()/$msg->export_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ExportContext)The context for export operation, if applicable.
$msg->backup_context()/$msg->backup_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::BackupContext)The context for backup operation, if applicable.
$msg->pre_check_major_version_upgrade_context()/$msg->pre_check_major_version_upgrade_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::PreCheckMajorVersionUpgradeContext)This field is only populated when the operation_type is PRE_CHECK_MAJOR_VERSION_UPGRADE. The PreCheckMajorVersionUpgradeContext message itself contains the details for that pre-check, such as the target database version for the upgrade and the results of the check (including any warnings or errors found).
$msg->start_workload_capture_context()/$msg->start_workload_capture_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::StartWorkloadCaptureContext)The context for the `StartWorkloadCapture` operation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance.
$msg->stop_workload_capture_context()/$msg->stop_workload_capture_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::StopWorkloadCaptureContext)The context for the `StopWorkloadCapture` operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance.
$msg->start_workload_replay_context()/$msg->start_workload_replay_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::StartWorkloadReplayContext)The context for the `StartWorkloadReplay` operation, which contains details about starting the execution of a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).
$msg->stop_workload_replay_context()/$msg->stop_workload_replay_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::StopWorkloadReplayContext)The context for the `StopWorkloadReplay` operation, which contains details about stopping the execution of a captured workload (recorded read and write SQL queries) on a replay instance.
$msg->name()/$msg->name($value)Type:
StringAn identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
$msg->target_id()/$msg->target_id($value)Type:
StringName of the resource on which this operation runs.
$msg->self_link()/$msg->self_link($value)Type:
StringThe URI of this resource.
$msg->target_project()/$msg->target_project($value)Type:
StringThe project ID of the target instance related to this operation.
$msg->acquire_ssrs_lease_context()/$msg->acquire_ssrs_lease_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::AcquireSsrsLeaseContext)The context for acquire SSRS lease operation, if applicable.
$msg->sub_operation_type()/$msg->sub_operation_type($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::SqlSubOperationType)Optional. The sub operation based on the operation type.
Enum: Operation::SqlOperationType
SQL_OPERATION_TYPE_UNSPECIFIED=>0IMPORT=>1EXPORT=>2CREATE=>3UPDATE=>4DELETE=>5RESTART=>6BACKUP=>7SNAPSHOT=>8BACKUP_VOLUME=>9DELETE_VOLUME=>10RESTORE_VOLUME=>11INJECT_USER=>12CLONE=>14STOP_REPLICA=>15START_REPLICA=>16PROMOTE_REPLICA=>17CREATE_REPLICA=>18CREATE_USER=>19DELETE_USER=>20UPDATE_USER=>21CREATE_DATABASE=>22DELETE_DATABASE=>23UPDATE_DATABASE=>24FAILOVER=>25DELETE_BACKUP=>26RECREATE_REPLICA=>27TRUNCATE_LOG=>28DEMOTE_MASTER=>29MAINTENANCE=>30ENABLE_PRIVATE_IP=>31DEFER_MAINTENANCE=>32CREATE_CLONE=>33RESCHEDULE_MAINTENANCE=>34START_EXTERNAL_SYNC=>35LOG_CLEANUP=>36AUTO_RESTART=>37REENCRYPT=>38SWITCHOVER=>39UPDATE_BACKUP=>40ACQUIRE_SSRS_LEASE=>42RELEASE_SSRS_LEASE=>43RECONFIGURE_OLD_PRIMARY=>44CLUSTER_MAINTENANCE=>45SELF_SERVICE_MAINTENANCE=>46SWITCHOVER_TO_REPLICA=>47MAJOR_VERSION_UPGRADE=>48ADVANCED_BACKUP=>49MANAGE_BACKUP=>50ENHANCED_BACKUP=>51REPAIR_READ_POOL=>52CREATE_READ_POOL=>53PRE_CHECK_MAJOR_VERSION_UPGRADE=>54SETUP_MIGRATION=>55CREATE_BLUE_GREEN_DEPLOYMENT=>56SWITCHOVER_BLUE_GREEN_DEPLOYMENT=>57DELETE_BLUE_GREEN_DEPLOYMENT=>58RECONCILE_NETWORKING=>64
Enum: Operation::SqlOperationStatus
SQL_OPERATION_STATUS_UNSPECIFIED=>0PENDING=>1RUNNING=>2DONE=>3
Google::Cloud::Sql::V1::CloudSqlResources::OperationError
Database instance operation error.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#operationError`.
$msg->code()/$msg->code($value)Type:
StringIdentifies the specific error that occurred.
$msg->message()/$msg->message($value)Type:
StringAdditional information about the error encountered.
Google::Cloud::Sql::V1::CloudSqlResources::OperationErrors
Database instance operation errors list wrapper.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#operationErrors`.
$msg->errors()/$msg->errors($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::OperationError)The list of errors encountered while processing this operation.
Google::Cloud::Sql::V1::CloudSqlResources::PasswordValidationPolicy
Database instance local user password validation policy. This message defines the password policy for local database users. When enabled, it enforces constraints on password complexity, length, and reuse. Keep this policy enabled to help prevent unauthorized access.
Inherits from Protobuf::Message.
Accessors
$msg->min_length()/$msg->min_length($value)Type:
Message(Google::Protobuf::Wrappers::Int32Value)Minimum number of characters allowed.
$msg->complexity()/$msg->complexity($value)Type:
Enum(Google::Cloud::Sql::V1::PasswordValidationPolicy::Complexity)The complexity of the password.
$msg->reuse_interval()/$msg->reuse_interval($value)Type:
Message(Google::Protobuf::Wrappers::Int32Value)Number of previous passwords that cannot be reused.
$msg->disallow_username_substring()/$msg->disallow_username_substring($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Disallow username as a part of the password.
$msg->password_change_interval()/$msg->password_change_interval($value)Type:
Message(Google::Protobuf::Duration::Duration)Minimum interval after which the password can be changed. This flag is only supported for PostgreSQL.
$msg->enable_password_policy()/$msg->enable_password_policy($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Whether to enable the password policy or not. When enabled, passwords must meet complexity requirements. Keep this policy enabled to help prevent unauthorized access. Disabling this policy allows weak passwords.
$msg->disallow_compromised_credentials()/$msg->disallow_compromised_credentials($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)This field is deprecated and will be removed in a future version of the API.
Enum: PasswordValidationPolicy::Complexity
COMPLEXITY_UNSPECIFIED=>0COMPLEXITY_DEFAULT=>1
Google::Cloud::Sql::V1::CloudSqlResources::DataCacheConfig
Data cache configurations.
Inherits from Protobuf::Message.
Accessors
$msg->data_cache_enabled()/$msg->data_cache_enabled($value)Type:
BoolWhether data cache is enabled for the instance.
Google::Cloud::Sql::V1::CloudSqlResources::FinalBackupConfig
Config used to determine the final backup settings for the instance.
Inherits from Protobuf::Message.
Accessors
$msg->enabled()/$msg->enabled($value)Type:
BoolWhether the final backup is enabled for the instance.
$msg->retention_days()/$msg->retention_days($value)Type:
Int32The number of days to retain the final backup after the instance deletion. The final backup will be purged at (time_of_instance_deletion + retention_days).
Google::Cloud::Sql::V1::CloudSqlResources::Settings
Database instance settings.
Inherits from Protobuf::Message.
Accessors
$msg->settings_version()/$msg->settings_version($value)Type:
Message(Google::Protobuf::Wrappers::Int64Value)The version of instance settings. This is a required field for update method to make sure concurrent updates are handled properly. During update, use the most recent settingsVersion value for this instance and do not try to update this value.
$msg->authorized_gae_applications()/$msg->authorized_gae_applications($value)Type:
StringThe App Engine app IDs that can access this instance. (Deprecated) Applied to First Generation instances only.
$msg->tier()/$msg->tier($value)Type:
StringThe tier (or machine type) for this instance, for example `db-custom-1-3840`. WARNING: Changing this restarts the instance.
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#settings`.
$msg->user_labels()/$msg->user_labels($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::Settings::UserLabelsEntry)User-provided labels, represented as a dictionary where each label is a single key value pair.
$msg->availability_type()/$msg->availability_type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlAvailabilityType)Availability type. Potential values: * `ZONAL`: The instance serves data from only one zone. Outages in that zone affect data accessibility. * `REGIONAL`: The instance can serve data from more than one zone in a region (it is highly available)./
For more information, see [Overview of the High Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-availability).
$msg->pricing_plan()/$msg->pricing_plan($value)Type:
Enum(Google::Cloud::Sql::V1::SqlPricingPlan)The pricing plan for this instance. This can be either `PER_USE` or `PACKAGE`. Only `PER_USE` is supported for Second Generation instances.
$msg->replication_type()/$msg->replication_type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlReplicationType)The type of replication this instance uses. This can be either `ASYNCHRONOUS` or `SYNCHRONOUS`. (Deprecated) This property was only applicable to First Generation instances.
$msg->storage_auto_resize_limit()/$msg->storage_auto_resize_limit($value)Type:
Message(Google::Protobuf::Wrappers::Int64Value)The maximum size to which storage capacity can be automatically increased. The default value is 0, which specifies that there is no limit.
$msg->activation_policy()/$msg->activation_policy($value)Type:
Enum(Google::Cloud::Sql::V1::Settings::SqlActivationPolicy)The activation policy specifies when the instance is activated; it is applicable only when the instance state is RUNNABLE. Valid values: * `ALWAYS`: The instance is on, and remains so even in the absence of connection requests. * `NEVER`: The instance is off; it is not activated, even if a connection request arrives.
$msg->ip_configuration()/$msg->ip_configuration($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::IpConfiguration)The settings for IP Management. This allows to enable or disable the instance IP and manage which external networks can connect to the instance. The IPv4 address cannot be disabled for Second Generation instances.
$msg->storage_auto_resize()/$msg->storage_auto_resize($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Configuration to increase storage size automatically. The default value is true.
$msg->location_preference()/$msg->location_preference($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::LocationPreference)The location preference settings. This allows the instance to be located as near as possible to either an App Engine app or Compute Engine zone for better performance. App Engine co-location was only applicable to First Generation instances.
$msg->database_flags()/$msg->database_flags($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::DatabaseFlags)The database flags passed to the instance at startup.
$msg->data_disk_type()/$msg->data_disk_type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlDataDiskType)The type of data disk: `PD_SSD` (default) or `PD_HDD`. Not used for First Generation instances.
$msg->maintenance_window()/$msg->maintenance_window($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::MaintenanceWindow)The maintenance window for this instance. This specifies when the instance can be restarted for maintenance purposes.
$msg->backup_configuration()/$msg->backup_configuration($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::BackupConfiguration)The daily backup configuration for the instance.
$msg->database_replication_enabled()/$msg->database_replication_enabled($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Configuration specific to read replica instances. Indicates whether replication is enabled or not. WARNING: Changing this restarts the instance.
$msg->crash_safe_replication_enabled()/$msg->crash_safe_replication_enabled($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Configuration specific to read replica instances. Indicates whether database flags for crash-safe replication are enabled. This property was only applicable to First Generation instances.
$msg->data_disk_size_gb()/$msg->data_disk_size_gb($value)Type:
Message(Google::Protobuf::Wrappers::Int64Value)The size of data disk, in GB. The data disk size minimum is 10GB.
$msg->active_directory_config()/$msg->active_directory_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::SqlActiveDirectoryConfig)Active Directory configuration, relevant only for Cloud SQL for SQL Server.
$msg->collation()/$msg->collation($value)Type:
StringThe name of server Instance collation.
$msg->deny_maintenance_periods()/$msg->deny_maintenance_periods($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::DenyMaintenancePeriod)Deny maintenance periods
$msg->insights_config()/$msg->insights_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::InsightsConfig)Insights configuration, for now relevant only for Postgres.
$msg->msdtc_enabled()/$msg->msdtc_enabled($value)Type:
BoolOptional. Enables Microsoft Distributed Transaction Coordinator (MSDTC) for SQL Server.
$msg->msdtc_rpc_auth_mode()/$msg->msdtc_rpc_auth_mode($value)Type:
Enum(Google::Cloud::Sql::V1::Settings::MsdtcRpcAuthMode)Optional. RPC authentication mode for Microsoft Distributed Transaction Coordinator (MSDTC).
$msg->password_validation_policy()/$msg->password_validation_policy($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::PasswordValidationPolicy)The local user password validation policy of the instance for PostgreSQL and MySQL.
$msg->sql_server_audit_config()/$msg->sql_server_audit_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::SqlServerAuditConfig)SQL Server specific audit configuration.
$msg->edition()/$msg->edition($value)Type:
Enum(Google::Cloud::Sql::V1::Settings::Edition)Optional. The edition type of the Cloud SQL instance.
$msg->connector_enforcement()/$msg->connector_enforcement($value)Type:
Enum(Google::Cloud::Sql::V1::Settings::ConnectorEnforcement)Specifies if connections must use Cloud SQL connectors. Option values include the following: `NOT_REQUIRED` (Cloud SQL instances can be connected without Cloud SQL Connectors) and `REQUIRED` (Only allow connections that use Cloud SQL Connectors).
Note that using REQUIRED disables all existing authorized networks. If this field is not specified when creating a new instance, NOT_REQUIRED is used. If this field is not specified when patching or updating an existing instance, it is left unchanged in the instance.
$msg->deletion_protection_enabled()/$msg->deletion_protection_enabled($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Configuration to protect against accidental instance deletion.
$msg->time_zone()/$msg->time_zone($value)Type:
StringServer timezone, relevant only for Cloud SQL for SQL Server.
$msg->advanced_machine_features()/$msg->advanced_machine_features($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::AdvancedMachineFeatures)Specifies advanced machine configuration for the instances relevant only for SQL Server.
$msg->data_cache_config()/$msg->data_cache_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::DataCacheConfig)Configuration for data cache.
$msg->replication_lag_max_seconds()/$msg->replication_lag_max_seconds($value)Type:
Message(Google::Protobuf::Wrappers::Int32Value)Optional. Configuration value for recreation of replica after certain replication lag
$msg->enable_google_ml_integration()/$msg->enable_google_ml_integration($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Optional. When this parameter is set to true, Cloud SQL instances can connect to Vertex AI to pass requests for real-time predictions and insights to the AI. The default value is false. This applies only to Cloud SQL for MySQL and Cloud SQL for PostgreSQL instances.
$msg->enable_dataplex_integration()/$msg->enable_dataplex_integration($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Optional. By default, Cloud SQL instances have schema extraction disabled for Dataplex. When this parameter is set to true, schema extraction for Dataplex on Cloud SQL instances is activated.
$msg->retain_backups_on_delete()/$msg->retain_backups_on_delete($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Optional. When this parameter is set to true, Cloud SQL retains backups of the instance even after the instance is deleted. The ON_DEMAND backup will be retained until customer deletes the backup or the project. The AUTOMATED backup will be retained based on the backups retention setting.
$msg->data_disk_provisioned_iops()/$msg->data_disk_provisioned_iops($value)Type:
Int64Optional. Provisioned number of I/O operations per second for the data disk. This field is only used for hyperdisk-balanced disk types.
$msg->data_disk_provisioned_throughput()/$msg->data_disk_provisioned_throughput($value)Type:
Int64Optional. Provisioned throughput measured in MiB per second for the data disk. This field is only used for hyperdisk-balanced disk types.
$msg->connection_pool_config()/$msg->connection_pool_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ConnectionPoolConfig)Optional. The managed connection pooling configuration for the instance.
$msg->final_backup_config()/$msg->final_backup_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::FinalBackupConfig)Optional. The final backup configuration for the instance.
$msg->read_pool_auto_scale_config()/$msg->read_pool_auto_scale_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ReadPoolAutoScaleConfig)Optional. The read pool auto-scale configuration for the instance.
$msg->accelerated_replica_mode()/$msg->accelerated_replica_mode($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Optional. Whether the replica is in accelerated mode. This feature is in private preview and requires allowlisting to take effect.
$msg->auto_upgrade_enabled()/$msg->auto_upgrade_enabled($value)Type:
BoolOptional. Cloud SQL for MySQL auto-upgrade configuration. When this parameter is set to true, auto-upgrade is enabled for MySQL 8.0 minor versions. The MySQL version must be 8.0.35 or higher.
$msg->entraid_config()/$msg->entraid_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::SqlServerEntraIdConfig)Optional. The Microsoft Entra ID configuration for the SQL Server instance.
$msg->data_api_access()/$msg->data_api_access($value)Type:
Enum(Google::Cloud::Sql::V1::Settings::DataApiAccess)This parameter controls whether to allow using ExecuteSql API to connect to the instance. Not allowed by default.
$msg->performance_capture_config()/$msg->performance_capture_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::PerformanceCaptureConfig)Optional. Configuration for Performance Capture, provides diagnostic metrics during high load situations.
$msg->initial_users_config()/$msg->initial_users_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::InitialUsersConfig)Optional. Input only. Users to be created on the instance during instance creation.
Enum: Settings::SqlActivationPolicy
SQL_ACTIVATION_POLICY_UNSPECIFIED=>0ALWAYS=>1NEVER=>2ON_DEMAND=>3
Enum: Settings::MsdtcRpcAuthMode
MSDTC_RPC_AUTH_MODE_UNSPECIFIED=>0ALLOW_ONLY_SECURE_RPC_CALLS=>1FALLBACK_TO_UNSECURE_RPC_IF_NECESSARY=>2TURN_OFF_RPC_SECURITY=>3
Enum: Settings::Edition
EDITION_UNSPECIFIED=>0ENTERPRISE=>2ENTERPRISE_PLUS=>3DEVELOPER=>5
Enum: Settings::ConnectorEnforcement
CONNECTOR_ENFORCEMENT_UNSPECIFIED=>0NOT_REQUIRED=>1REQUIRED=>2
Enum: Settings::DataApiAccess
DATA_API_ACCESS_UNSPECIFIED=>0DISALLOW_DATA_API=>1ALLOW_DATA_API=>2
Google::Cloud::Sql::V1::CloudSqlResources::PerformanceCaptureConfig
Performance capture configuration.
Inherits from Protobuf::Message.
Accessors
$msg->enabled()/$msg->enabled($value)Type:
BoolOptional. Enables or disables the performance capture feature.
$msg->probing_interval_seconds()/$msg->probing_interval_seconds($value)Type:
Int32Optional. Specifies the interval in seconds between consecutive probes that check if any trigger condition thresholds have been reached.
$msg->probe_threshold()/$msg->probe_threshold($value)Type:
Int32Optional. Specifies the minimum number of consecutive probe threshold that triggers performance capture.
$msg->running_threads_threshold()/$msg->running_threads_threshold($value)Type:
Int32Optional. Specifies the minimum number of MySQL `Threads_running` to trigger the performance capture on the primary instance.
$msg->seconds_behind_source_threshold()/$msg->seconds_behind_source_threshold($value)Type:
Int32Optional. Specifies the minimum number of seconds replica must be lagging behind primary instance to trigger the performance capture on replica.
$msg->transaction_duration_threshold()/$msg->transaction_duration_threshold($value)Type:
Int32Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts recording it.
$msg->cpu_utilization_threshold_percent()/$msg->cpu_utilization_threshold_percent($value)Type:
Int32Optional. Specifies the minimum percentage of CPU utilization to trigger the performance capture. Valid integers range from `10` to `99`. Enter `0` to disable the check.
$msg->memory_usage_threshold_percent()/$msg->memory_usage_threshold_percent($value)Type:
Int32Optional. Specifies the minimum percentage of memory usage to trigger the performance capture. Valid integers range from `10` to `99`. Enter `0` to disable the check.
$msg->transaction_lock_wait_threshold_count()/$msg->transaction_lock_wait_threshold_count($value)Type:
Int32Optional. Specifies the minimum allowed number of transactions in lock wait state to trigger the performance capture. Valid integers range from `10` to `10000`. Enter `0` to disable the check.
$msg->semaphore_wait_threshold_count()/$msg->semaphore_wait_threshold_count($value)Type:
Int32Optional. Specifies the minimum allowed number of semaphore waits to trigger the performance capture. Valid integers range from `10` to `10000`. Enter `0` to disable the check.
$msg->history_list_length_threshold_count()/$msg->history_list_length_threshold_count($value)Type:
Int32Optional. Specifies the minimum number of undo log entries in the history list length to trigger the performance capture. Valid integers range from `10000` to `10000000`. Enter `0` to disable the check.
$msg->transaction_kill_threshold_seconds()/$msg->transaction_kill_threshold_seconds($value)Type:
Int32Optional. Specifies the amount of time in seconds that a transaction needs to have been open before the watcher starts terminating it. Valid integers range from `60` to `604800` (7 days). Enter `0` to disable. If enabled (i.e., > 0), this value must be greater than or equal to `transaction_duration_threshold`. Configurations where `0 < transaction_kill_threshold_seconds < transaction_duration_threshold` will be rejected.
$msg->transaction_kill_excluded_user_hosts()/$msg->transaction_kill_excluded_user_hosts($value)Type:
StringOptional. Specifies a customer-defined list of users to exclude from transaction termination. Entries can be in the format 'user@host' or just 'user'. A standalone 'user' implies 'user@%', excluding the user from any host. Wildcard '%' is allowed in the host part of the 'user@host' format. Example: `["app_user", "db_admin@10.1.2.3", "report_user@%"]`
$msg->transaction_kill_type()/$msg->transaction_kill_type($value)Type:
Enum(Google::Cloud::Sql::V1::PerformanceCaptureConfig::TransactionKillType)Optional. Determines which transactions are allowed to be terminated when they exceed `transaction_kill_threshold_seconds`. This allows protecting write-heavy transactions from auto-termination if desired. Defaults to `READ_ONLY_TRANSACTIONS` if unspecified.
Enum: PerformanceCaptureConfig::TransactionKillType
TRANSACTION_KILL_TYPE_UNSPECIFIED=>0READ_ONLY_TRANSACTIONS=>1ALL_TRANSACTIONS=>2
Google::Cloud::Sql::V1::CloudSqlResources::ConnectionPoolFlags
Connection pool flags for Cloud SQL instances managed connection pool configuration.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringRequired. The name of the flag.
$msg->value()/$msg->value($value)Type:
StringRequired. The value of the flag. Boolean flags are set to `on` for true and `off` for false. This field must be omitted if the flag doesn't take a value.
Google::Cloud::Sql::V1::CloudSqlResources::ConnectionPoolConfig
The managed connection pooling configuration.
Inherits from Protobuf::Message.
Accessors
$msg->connection_pooling_enabled()/$msg->connection_pooling_enabled($value)Type:
BoolWhether managed connection pooling is enabled.
$msg->flags()/$msg->flags($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ConnectionPoolFlags)Optional. List of connection pool configuration flags.
$msg->pooler_count()/$msg->pooler_count($value)Type:
Int32Output only. Number of connection poolers.
Google::Cloud::Sql::V1::CloudSqlResources::ReadPoolAutoScaleConfig
The read pool auto-scale configuration.
Inherits from Protobuf::Message.
Accessors
$msg->enabled()/$msg->enabled($value)Type:
BoolIndicates whether read pool auto scaling is enabled.
$msg->min_node_count()/$msg->min_node_count($value)Type:
Int32Minimum number of read pool nodes to be maintained.
$msg->max_node_count()/$msg->max_node_count($value)Type:
Int32Maximum number of read pool nodes to be maintained.
$msg->target_metrics()/$msg->target_metrics($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ReadPoolAutoScaleConfig::TargetMetric)Optional. Target metrics for read pool auto scaling.
$msg->disable_scale_in()/$msg->disable_scale_in($value)Type:
BoolIndicates whether read pool auto scaling supports scale in operations (removing nodes).
$msg->scale_in_cooldown_seconds()/$msg->scale_in_cooldown_seconds($value)Type:
Int32The cooldown period for scale-in operations.
$msg->scale_out_cooldown_seconds()/$msg->scale_out_cooldown_seconds($value)Type:
Int32The cooldown period for scale-out operations.
Google::Cloud::Sql::V1::CloudSqlResources::AdvancedMachineFeatures
Specifies options for controlling advanced machine features.
Inherits from Protobuf::Message.
Accessors
$msg->threads_per_core()/$msg->threads_per_core($value)Type:
Int32The number of threads per physical core.
Google::Cloud::Sql::V1::CloudSqlResources::SslCert
SslCerts Resource
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#sslCert`.
$msg->cert_serial_number()/$msg->cert_serial_number($value)Type:
StringSerial number, as extracted from the certificate.
$msg->cert()/$msg->cert($value)Type:
StringPEM representation.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time when the certificate was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`
$msg->common_name()/$msg->common_name($value)Type:
StringUser supplied name. Constrained to [a-zA-Z.-_ ]+.
$msg->expiration_time()/$msg->expiration_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The time when the certificate expires in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
$msg->sha1_fingerprint()/$msg->sha1_fingerprint($value)Type:
StringSha1 Fingerprint.
$msg->instance()/$msg->instance($value)Type:
StringName of the database instance.
$msg->self_link()/$msg->self_link($value)Type:
StringThe URI of this resource.
Google::Cloud::Sql::V1::CloudSqlResources::SslCertDetail
SslCertDetail.
Inherits from Protobuf::Message.
Accessors
$msg->cert_info()/$msg->cert_info($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::SslCert)The public information about the cert.
$msg->cert_private_key()/$msg->cert_private_key($value)Type:
StringThe private key for the client cert, in pem format. Keep private in order to protect your security.
Google::Cloud::Sql::V1::CloudSqlResources::DNSEntry
DNS Entry for the primary instance in a replication topology.
Inherits from Protobuf::Message.
Accessors
$msg->dns()/$msg->dns($value)Type:
StringRequired. The DNS name.
$msg->ipv4_address()/$msg->ipv4_address($value)Type:
StringRequired. The IP address.
Google::Cloud::Sql::V1::CloudSqlResources::CustomerManagedCertificate
A single certificate or key in a customer managed certificate bundle.
Inherits from Protobuf::Message.
Accessors
$msg->certificate_type()/$msg->certificate_type($value)Type:
Enum(Google::Cloud::Sql::V1::CertificateType)Required. The certificate type.
$msg->content()/$msg->content($value)Type:
BytesRequired. Input only. The PEM-encoded certificate or key content in base64 format.
$msg->file_path()/$msg->file_path($value)Type:
StringOutput only. File path of the PEM-encoded certificate or key content on the database virtual machine. This path can be used by database extensions or plugins (for example, to configure `pglogical` in PostgreSQL) that need to reference the certificate or key file directly on the VM's filesystem, ex: certs/c1/server-ca.pem
Google::Cloud::Sql::V1::CloudSqlResources::CustomerManagedCertificateConfig
Customer managed certificate SSL configuration.
Inherits from Protobuf::Message.
Accessors
$msg->bundle()/$msg->bundle($value)Type:
StringOutput only. The name of the customer managed certificate configuration. This name will be used to identify a certificate bundle.
$msg->intent()/$msg->intent($value)Type:
Enum(Google::Cloud::Sql::V1::Intent)Required. The intent for this customer managed certificate configuration.
$msg->primary_dns_record()/$msg->primary_dns_record($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::DNSEntry)DNS name associated with the primary instance in a replication topology. This is needed to insert a DNS entry in a replica VM.
$msg->customer_managed_certificates()/$msg->customer_managed_certificates($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::CustomerManagedCertificate)Required. The server CA certificate, client key and client certificate. You can specify up to 3 certificates in a bundle.
Google::Cloud::Sql::V1::CloudSqlResources::SqlActiveDirectoryConfig
Active Directory configuration, relevant only for Cloud SQL for SQL Server.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always sql#activeDirectoryConfig.
$msg->domain()/$msg->domain($value)Type:
StringThe name of the domain (e.g., mydomain.com).
$msg->mode()/$msg->mode($value)Type:
Enum(Google::Cloud::Sql::V1::SqlActiveDirectoryConfig::ActiveDirectoryMode)Optional. The mode of the Active Directory configuration.
$msg->dns_servers()/$msg->dns_servers($value)Type:
StringOptional. Domain controller IPv4 addresses used to bootstrap Active Directory.
$msg->admin_credential_secret_name()/$msg->admin_credential_secret_name($value)Type:
StringOptional. The secret manager key storing the administrator credential. (e.g., projects/{project}/secrets/{secret}).
$msg->organizational_unit()/$msg->organizational_unit($value)Type:
StringOptional. The organizational unit distinguished name. This is the full hierarchical path to the organizational unit.
Enum: SqlActiveDirectoryConfig::ActiveDirectoryMode
ACTIVE_DIRECTORY_MODE_UNSPECIFIED=>0MANAGED_ACTIVE_DIRECTORY=>1SELF_MANAGED_ACTIVE_DIRECTORY=>2CUSTOMER_MANAGED_ACTIVE_DIRECTORY=>3
Google::Cloud::Sql::V1::CloudSqlResources::SqlServerAuditConfig
SQL Server specific audit configuration.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always sql#sqlServerAuditConfig
$msg->bucket()/$msg->bucket($value)Type:
StringThe name of the destination bucket (e.g., gs://mybucket).
$msg->retention_interval()/$msg->retention_interval($value)Type:
Message(Google::Protobuf::Duration::Duration)How long to keep generated audit files.
$msg->upload_interval()/$msg->upload_interval($value)Type:
Message(Google::Protobuf::Duration::Duration)How often to upload generated audit files.
Google::Cloud::Sql::V1::CloudSqlResources::SqlServerEntraIdConfig
SQL Server Entra ID configuration.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringOutput only. This is always sql#sqlServerEntraIdConfig
$msg->tenant_id()/$msg->tenant_id($value)Type:
StringOptional. The tenant ID for the Entra ID configuration.
$msg->application_id()/$msg->application_id($value)Type:
StringOptional. The application ID for the Entra ID configuration.
Google::Cloud::Sql::V1::CloudSqlResources::InitialUsersConfig
Configuration for users created during instance creation.
Inherits from Protobuf::Message.
Accessors
$msg->initial_users()/$msg->initial_users($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::InitialUsersConfig::InitialUser)Optional. List of IAM users to be created during instance creation. A maximum of 5 users are allowed.
Google::Cloud::Sql::V1::CloudSqlResources::AcquireSsrsLeaseContext
Acquire SSRS lease context.
Inherits from Protobuf::Message.
Accessors
$msg->setup_login()/$msg->setup_login($value)Type:
StringThe username to be used as the setup login to connect to the database server for SSRS setup.
$msg->service_login()/$msg->service_login($value)Type:
StringThe username to be used as the service login to connect to the report database for SSRS setup.
$msg->report_database()/$msg->report_database($value)Type:
StringThe report database to be used for SSRS setup.
$msg->duration()/$msg->duration($value)Type:
Message(Google::Protobuf::Duration::Duration)Lease duration needed for SSRS setup.
Google::Cloud::Sql::V1::CloudSqlResources::DnsNameMapping
DNS metadata.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringOutput only. The DNS name.
$msg->connection_type()/$msg->connection_type($value)Type:
Enum(Google::Cloud::Sql::V1::DnsNameMapping::ConnectionType)Output only. The connection type of the DNS name.
$msg->dns_scope()/$msg->dns_scope($value)Type:
Enum(Google::Cloud::Sql::V1::DnsNameMapping::DnsScope)Output only. The scope that the DNS name applies to.
$msg->record_manager()/$msg->record_manager($value)Type:
Enum(Google::Cloud::Sql::V1::DnsNameMapping::RecordManager)Output only. The manager for this DNS record.
Enum: DnsNameMapping::ConnectionType
CONNECTION_TYPE_UNSPECIFIED=>0PUBLIC=>1PRIVATE_SERVICES_ACCESS=>2PRIVATE_SERVICE_CONNECT=>3
Enum: DnsNameMapping::DnsScope
DNS_SCOPE_UNSPECIFIED=>0INSTANCE=>1CLUSTER=>2
Enum: DnsNameMapping::RecordManager
RECORD_MANAGER_UNSPECIFIED=>0CUSTOMER=>1CLOUD_SQL_AUTOMATION=>2
Google::Cloud::Sql::V1::CloudSqlResources::StartWorkloadCaptureContext
The context for the `StartWorkloadCapture` operation, which contains details to start recording the workload (SQL queries) on a Cloud SQL instance.
Inherits from Protobuf::Message.
Accessors
$msg->enable_live_replay()/$msg->enable_live_replay($value)Type:
BoolOptional. If true, the captured workload is simultaneously executed on a separate, ephemeral Cloud SQL instance. This "live replay" instance is automatically provisioned and is cloned from the source instance. If false (the default), the workload is only stored and no live replay occurs. It can be replayed later using a separate `StartWorkloadReplayRequest`. Note: The workload capture runs continuously until an explicit `StopWorkloadCaptureRequest` is issued.
$msg->replay_instance()/$msg->replay_instance($value)Type:
StringOptional. Required if `enable_live_replay` is true. The name of the Cloud SQL instance where the captured workload (SQL queries) is being executed, excluding the project ID (for example, `my-replay-instance`). The instance name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens. The combined length of `project-ID:instance-name` must be 98 characters or less.
Google::Cloud::Sql::V1::CloudSqlResources::StopWorkloadCaptureContext
The context for the `StopWorkloadCapture` operation, which contains details to stop recording the workload (SQL queries) on a Cloud SQL instance.
Inherits from Protobuf::Message.
Accessors
$msg->abort_live_replay()/$msg->abort_live_replay($value)Type:
BoolOptional. If true, immediately aborts the concurrent live replay and discards any un-replayed traffic alongside stopping the capture. If false (the default), the capture stops recording new traffic, but the live replay will continue executing until the entire backlog of captured traffic has been replayed.
Google::Cloud::Sql::V1::CloudSqlResources::StartWorkloadReplayContext
The context for the `StartWorkloadReplay` operation, which contains details about starting the execution of a captured workload (recorded read and write SQL queries) on a replay instance (the Cloud SQL instance where the recorded SQL queries are executed).
Inherits from Protobuf::Message.
Accessors
$msg->replay_instance()/$msg->replay_instance($value)Type:
StringRequired. The name of the Cloud SQL instance where the captured workload (SQL queries) is being executed, excluding the project ID (for example, `my-replay-instance`). The instance name must start with a lowercase letter and contain only lowercase letters, numbers, and hyphens. The combined length of `project-ID:instance-name` must be 98 characters or less.
$msg->workload_id()/$msg->workload_id($value)Type:
StringOutput only. The ID of the workload to start executing on the replay instance. Each workload capture generates a unique ID in the format `workload-<epoch_timestamp>` (for example, `workload-1786046400`). Use this ID to start executing the recorded SQL queries.
$msg->source_instance()/$msg->source_instance($value)Type:
StringOutput only. The name of the source Cloud SQL instance where the workload was captured, excluding the project ID (for example, `my-source-instance`).
Google::Cloud::Sql::V1::CloudSqlResources::StopWorkloadReplayContext
The context for the `StopWorkloadReplay` operation, which represents an operation that stops an active workload replay on a target Cloud SQL replay instance.
Inherits from Protobuf::Message.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Sql::V1::CloudSqlResources::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.