Service Client: Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesServiceClient
Client stub representing the remote SqlInstancesService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to sql.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Sql::V1::CloudSqlInstances - Compiled Protocol Buffers messages for google/cloud/sql/v1/cloud_sql_instances.proto
SYNOPSIS
use Google::Cloud::Sql::V1::CloudSqlInstances;
my $msg = Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesAddServerCaRequest->new({
instance => $instance,
project => $project,
location => $location,
});
# Read or update a field
my $val = $msg->instance();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesAddServerCaRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/sql/v1/cloud_sql_instances.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::CloudSqlInstances::SqlInstancesAddServerCaRequest
Instance add server CA request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesAddServerCertificateRequest
Instance add server certificate request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesAddEntraIdCertificateRequest
Instance add Entra ID certificate request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Cloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringRequired. Project ID of the project that contains the instance.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesCloneRequest
Instance clone request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. The ID of the Cloud SQL instance to be cloned (source). This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringRequired. Project ID of the source Cloud SQL instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::InstancesCloneRequest)$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesDeleteRequest
Instance delete request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance to be deleted.
$msg->enable_final_backup()/$msg->enable_final_backup($value)Type:
BoolFlag to opt-in for final backup. By default, it is turned off.
$msg->final_backup_ttl_days()/$msg->final_backup_ttl_days($value)Type:
Int64Optional. Retention period of the final backup.
$msg->final_backup_expiry_time()/$msg->final_backup_expiry_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Optional. Final Backup expiration time. Timestamp in UTC of when this resource is considered expired.
$msg->final_backup_description()/$msg->final_backup_description($value)Type:
StringOptional. The description of the final backup.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesDemoteMasterRequest
Instance demote master request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance name.
$msg->project()/$msg->project($value)Type:
StringID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::InstancesDemoteMasterRequest)$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesDemoteRequest
Instance demote request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Cloud SQL instance name.
$msg->project()/$msg->project($value)Type:
StringRequired. ID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::InstancesDemoteRequest)Required. The request body.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesExportRequest
Instance export request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance to be exported.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::InstancesExportRequest)$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesFailoverRequest
Instance failover request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringID of the project that contains the read replica.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::InstancesFailoverRequest)$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesGetRequest
Instance get request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Database instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringRequired. Project ID of the project that contains the instance.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesImportRequest
Instance import request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::InstancesImportRequest)$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesInsertRequest
Instance insert request.
Inherits from Protobuf::Message.
Accessors
$msg->project()/$msg->project($value)Type:
StringProject ID of the project to which the newly created Cloud SQL instances should belong.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::DatabaseInstance)$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesListRequest
Instance list request.
Inherits from Protobuf::Message.
Accessors
$msg->filter()/$msg->filter($value)Type:
StringA filter expression that filters resources listed in the response. The expression is in the form of field:value. For example, 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per their JSON representation, such as 'settings.userLabels.auto_start:true'.
Multiple filter queries are space-separated. For example. 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each expression is an AND expression. However, you can include AND and OR expressions explicitly.
$msg->max_results()/$msg->max_results($value)Type:
UInt32The maximum number of instances to return. The service may return fewer than this value. If unspecified, at most 500 instances are returned. The maximum value is 1000; values above 1000 are coerced to 1000.
$msg->page_token()/$msg->page_token($value)Type:
StringA previously-returned page token representing part of the larger set of results to view.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project for which to list Cloud SQL instances.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesListServerCasRequest
Instance list server CAs request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesListServerCertificatesRequest
Instance list server certificates request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Cloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringRequired. Project ID of the project that contains the instance.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesListEntraIdCertificatesRequest
Instance list Entra ID certificates request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Cloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringRequired. Project ID of the project that contains the instance.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesPatchRequest
Instance patch request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->reconcile_psc_networking()/$msg->reconcile_psc_networking($value)Type:
BoolOptional. Set PSC config to the same value as the existing config to reconcile the PSC networking.
$msg->reconcile_psc_networking_force()/$msg->reconcile_psc_networking_force($value)Type:
BoolOptional. Set PSC config to the same value as the existing config and force reconcile the PSC networking.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::DatabaseInstance)$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesPromoteReplicaRequest
Instance promote replica request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL read replica instance name.
$msg->project()/$msg->project($value)Type:
StringID of the project that contains the read replica.
$msg->failover()/$msg->failover($value)Type:
BoolSet to true to invoke a replica failover to the DR replica. As part of replica failover, the promote operation attempts to add the original primary instance as a replica of the promoted DR replica when the original primary instance comes back online. If set to false or not specified, then the original primary instance becomes an independent Cloud SQL primary instance.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesSwitchoverRequest
Instance switchover request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL read replica instance name.
$msg->project()/$msg->project($value)Type:
StringID of the project that contains the replica.
$msg->db_timeout()/$msg->db_timeout($value)Type:
Message(Google::Protobuf::Duration::Duration)Optional. (MySQL and PostgreSQL only) Cloud SQL instance operations timeout, which is a sum of all database operations. Default value is 10 minutes and can be modified to a maximum value of 24 hours.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesResetSslConfigRequest
Instance reset SSL config request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->mode()/$msg->mode($value)Type:
Enum(Google::Cloud::Sql::V1::SqlInstancesResetSslConfigRequest::ResetSslMode)Optional. Reset SSL mode to use.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Enum: SqlInstancesResetSslConfigRequest::ResetSslMode
RESET_SSL_MODE_UNSPECIFIED=>0ALL=>1SYNC_FROM_PRIMARY=>2
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesRestartRequest
Instance restart request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance to be restarted.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesStartRequest
Instance start request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Cloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringRequired. Project ID of the project that contains the instance to be started.
$msg->location()/$msg->location($value)Type:
StringOptional. The region of the Cloud SQL instance, for example `us-central1`. If omitted, the region is determined from the instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesStopRequest
Instance stop request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Cloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringRequired. Project ID of the project that contains the instance to be stopped.
$msg->location()/$msg->location($value)Type:
StringOptional. The region of the Cloud SQL instance, for example `us-central1`. If omitted, the region is determined from the instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesRestoreBackupRequest
Instance restore backup request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::InstancesRestoreBackupRequest)$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesRotateServerCaRequest
Instance rotate server CA request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::InstancesRotateServerCaRequest)$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesRotateServerCertificateRequest
Instance rotate server certificate request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Cloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringRequired. Project ID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::InstancesRotateServerCertificateRequest)Optional. Rotate server certificate request body.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesRotateEntraIdCertificateRequest
Instance rotate server certificate request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Cloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringRequired. Project ID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::InstancesRotateEntraIdCertificateRequest)Optional. Rotate Entra ID certificate request body.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesStartReplicaRequest
Instance start replica request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL read replica instance name.
$msg->project()/$msg->project($value)Type:
StringID of the project that contains the read replica.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesStopReplicaRequest
Instance stop replica request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL read replica instance name.
$msg->project()/$msg->project($value)Type:
StringID of the project that contains the read replica.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesTruncateLogRequest
Instance truncate log request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the Cloud SQL project.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::InstancesTruncateLogRequest)$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesPerformDiskShrinkRequest
Instance perform disk shrink request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::PerformDiskShrinkContext)Perform disk shrink context.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesUpdateRequest
Instance update request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::DatabaseInstance)$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesRescheduleMaintenanceRequest
Instance reschedule maintenance request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesRescheduleMaintenanceRequestBody)$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesReencryptRequest
Instance reencrypt request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::InstancesReencryptRequest)Reencrypt body that users request
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesReencryptRequest
Database Instance reencrypt request.
Inherits from Protobuf::Message.
Accessors
$msg->backup_reencryption_config()/$msg->backup_reencryption_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::BackupReencryptionConfig)Configuration specific to backup re-encryption
Google::Cloud::Sql::V1::CloudSqlInstances::BackupReencryptionConfig
Backup Reencryption Config
Inherits from Protobuf::Message.
Accessors
$msg->backup_limit()/$msg->backup_limit($value)Type:
Int32Backup re-encryption limit
$msg->backup_type()/$msg->backup_type($value)Type:
Enum(Google::Cloud::Sql::V1::BackupReencryptionConfig::BackupType)Type of backups users want to re-encrypt.
Enum: BackupReencryptionConfig::BackupType
BACKUP_TYPE_UNSPECIFIED=>0AUTOMATED=>1ON_DEMAND=>2
Google::Cloud::Sql::V1::CloudSqlInstances::ExternalSyncSelectedObject
The selected object that Cloud SQL migrates.
Inherits from Protobuf::Message.
Accessors
$msg->database()/$msg->database($value)Type:
StringThe name of the database that Cloud SQL migrates.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesGetDiskShrinkConfigRequest
Instance get disk shrink config request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesVerifyExternalSyncSettingsRequest
Instance verify external sync settings request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->verify_connection_only()/$msg->verify_connection_only($value)Type:
BoolFlag to enable verifying connection only
$msg->sync_mode()/$msg->sync_mode($value)Type:
Enum(Google::Cloud::Sql::V1::SqlInstancesVerifyExternalSyncSettingsRequest::ExternalSyncMode)External sync mode
$msg->verify_replication_only()/$msg->verify_replication_only($value)Type:
BoolOptional. Flag to verify settings required by replication setup only
$msg->mysql_sync_config()/$msg->mysql_sync_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::MySqlSyncConfig)Optional. MySQL-specific settings for start external sync.
$msg->migration_type()/$msg->migration_type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlInstancesVerifyExternalSyncSettingsRequest::MigrationType)Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
$msg->sync_parallel_level()/$msg->sync_parallel_level($value)Type:
Enum(Google::Cloud::Sql::V1::ExternalSyncParallelLevel)Optional. Parallel level for initial data sync. Only applicable for PostgreSQL.
$msg->selected_objects()/$msg->selected_objects($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::ExternalSyncSelectedObject)Optional. Migrate only the specified objects from the source instance. If this field is empty, then migrate all objects.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Enum: SqlInstancesVerifyExternalSyncSettingsRequest::ExternalSyncMode
EXTERNAL_SYNC_MODE_UNSPECIFIED=>0ONLINE=>1OFFLINE=>2
Enum: SqlInstancesVerifyExternalSyncSettingsRequest::MigrationType
MIGRATION_TYPE_UNSPECIFIED=>0LOGICAL=>1PHYSICAL=>2
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesStartExternalSyncRequest
Instance start external sync request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringID of the project that contains the instance.
$msg->sync_mode()/$msg->sync_mode($value)Type:
Enum(Google::Cloud::Sql::V1::SqlInstancesVerifyExternalSyncSettingsRequest::ExternalSyncMode)External sync mode.
$msg->skip_verification()/$msg->skip_verification($value)Type:
BoolWhether to skip the verification step (VESS).
$msg->mysql_sync_config()/$msg->mysql_sync_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::MySqlSyncConfig)MySQL-specific settings for start external sync.
$msg->sync_parallel_level()/$msg->sync_parallel_level($value)Type:
Enum(Google::Cloud::Sql::V1::ExternalSyncParallelLevel)Optional. Parallel level for initial data sync. Currently only applicable for MySQL.
$msg->migration_type()/$msg->migration_type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlInstancesVerifyExternalSyncSettingsRequest::MigrationType)Optional. MigrationType configures the migration to use physical files or logical dump files. If not set, then the logical dump file configuration is used. Valid values are `LOGICAL` or `PHYSICAL`. Only applicable to MySQL.
$msg->replica_overwrite_enabled()/$msg->replica_overwrite_enabled($value)Type:
BoolOptional. MySQL only. True if end-user has confirmed that this SES call will wipe replica databases overlapping with the proposed selected_objects. If this field is not set and there are both overlapping and additional databases proposed, an error will be returned.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesResetReplicaSizeRequest
Instance reset replica size request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL read replica instance name.
$msg->project()/$msg->project($value)Type:
StringID of the project that contains the read replica.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesCreateEphemeralCertRequest
Instance create ephemeral certificate request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the Cloud SQL project.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::SslCertsCreateEphemeralRequest)$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesCloneRequest
Database instance clone request.
Inherits from Protobuf::Message.
Accessors
$msg->clone_context()/$msg->clone_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::CloneContext)Required. Contains details about the clone operation.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesDemoteMasterRequest
Database demote primary instance request.
Inherits from Protobuf::Message.
Accessors
$msg->demote_master_context()/$msg->demote_master_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::DemoteMasterContext)Contains details about the demoteMaster operation.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesDemoteRequest
This request is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server.
Inherits from Protobuf::Message.
Accessors
$msg->demote_context()/$msg->demote_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::DemoteContext)Required. Contains details about the demote operation.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesExportRequest
Database instance export request.
Inherits from Protobuf::Message.
Accessors
$msg->export_context()/$msg->export_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ExportContext)Contains details about the export operation.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesFailoverRequest
Instance failover request.
Inherits from Protobuf::Message.
Accessors
$msg->failover_context()/$msg->failover_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::FailoverContext)Failover Context.
Google::Cloud::Sql::V1::CloudSqlInstances::SslCertsCreateEphemeralRequest
SslCerts create ephemeral certificate request.
Inherits from Protobuf::Message.
Accessors
$msg->public_key()/$msg->public_key($value)Type:
StringPEM encoded public key to include in the signed certificate.
$msg->access_token()/$msg->access_token($value)Type:
StringAccess token to include in the signed certificate.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesImportRequest
Database instance import request.
Inherits from Protobuf::Message.
Accessors
$msg->import_context()/$msg->import_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ImportContext)Contains details about the import operation.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesPreCheckMajorVersionUpgradeRequest
Request for Pre-checks for MVU
Inherits from Protobuf::Message.
Accessors
$msg->pre_check_major_version_upgrade_context()/$msg->pre_check_major_version_upgrade_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::PreCheckMajorVersionUpgradeContext)Required. Contains details about the pre-check major version upgrade operation.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesListResponse
Database instances list response.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#instancesList`.
$msg->warnings()/$msg->warnings($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::ApiWarning)List of warnings that occurred while handling the request.
$msg->items()/$msg->items($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::DatabaseInstance)List of database instance resources.
$msg->next_page_token()/$msg->next_page_token($value)Type:
StringThe continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesListServerCasResponse
Instances ListServerCas response.
Inherits from Protobuf::Message.
Accessors
$msg->certs()/$msg->certs($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::SslCert)List of server CA certificates for the instance.
$msg->active_version()/$msg->active_version($value)Type:
String$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#instancesListServerCas`.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesListServerCertificatesResponse
Instances ListServerCertificates response.
Inherits from Protobuf::Message.
Accessors
$msg->ca_certs()/$msg->ca_certs($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::SslCert)List of server CA certificates for the instance.
$msg->server_certs()/$msg->server_certs($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::SslCert)List of server certificates for the instance, signed by the corresponding CA from the `ca_certs` list.
$msg->active_version()/$msg->active_version($value)Type:
StringThe `sha1_fingerprint` of the active certificate from `server_certs`.
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#instancesListServerCertificates`.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesListEntraIdCertificatesResponse
Instances ListEntraIdCertificates response.
Inherits from Protobuf::Message.
Accessors
$msg->certs()/$msg->certs($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::SslCert)List of Entra ID certificates for the instance.
$msg->active_version()/$msg->active_version($value)Type:
StringThe `sha1_fingerprint` of the active certificate from `certs`.
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#instancesListEntraIdCertificates`.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesRestoreBackupRequest
Database instance restore backup request.
Inherits from Protobuf::Message.
Accessors
$msg->restore_backup_context()/$msg->restore_backup_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::RestoreBackupContext)Parameters required to perform the restore backup operation.
$msg->backup()/$msg->backup($value)Type:
StringThe name of the backup that's used to restore a Cloud SQL instance: Format: projects/{project-id}/backups/{backup-uid}. Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.
$msg->backupdr_backup()/$msg->backupdr_backup($value)Type:
StringThe name of the backup that's used to restore a Cloud SQL instance: Format: "projects/{project-id}/locations/{location}/backupVaults/{backupvault}/dataSources/{datasource}/backups/{backup-uid}". Only one of restore_backup_context, backup, backupdr_backup can be passed to the input.
$msg->restore_instance_settings()/$msg->restore_instance_settings($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::DatabaseInstance)Optional. By using this parameter, Cloud SQL overrides any instance settings stored in the backup you are restoring from. You can't change the instance's major database version and you can only increase the disk size. You can use this field to restore new instances only. This field is not applicable for restore to existing instances.
$msg->restore_instance_clear_overrides_field_names()/$msg->restore_instance_clear_overrides_field_names($value)Type:
StringOptional. This field has the same purpose as restore_instance_settings, changes any instance settings stored in the backup you are restoring from. With the difference that these fields are cleared in the settings.
$msg->ignore_maintenance_version()/$msg->ignore_maintenance_version($value)Type:
BoolOptional. If true, the restore operation proceeds even if the target instance's maintenance version is older than the source instance's maintenance version.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesRotateServerCaRequest
Rotate server CA request.
Inherits from Protobuf::Message.
Accessors
$msg->rotate_server_ca_context()/$msg->rotate_server_ca_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::RotateServerCaContext)Contains details about the rotate server CA operation.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesRotateServerCertificateRequest
Rotate server certificate request.
Inherits from Protobuf::Message.
Accessors
$msg->rotate_server_certificate_context()/$msg->rotate_server_certificate_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::RotateServerCertificateContext)Optional. Contains details about the rotate server certificate operation.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesRotateEntraIdCertificateRequest
Rotate Entra ID certificate request.
Inherits from Protobuf::Message.
Accessors
$msg->rotate_entra_id_certificate_context()/$msg->rotate_entra_id_certificate_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::RotateEntraIdCertificateContext)Optional. Contains details about the rotate server certificate operation.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesTruncateLogRequest
Instance truncate log request.
Inherits from Protobuf::Message.
Accessors
$msg->truncate_log_context()/$msg->truncate_log_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::TruncateLogContext)Contains details about the truncate log operation.
Google::Cloud::Sql::V1::CloudSqlInstances::InstancesAcquireSsrsLeaseRequest
Request to acquire a lease for SSRS.
Inherits from Protobuf::Message.
Accessors
$msg->acquire_ssrs_lease_context()/$msg->acquire_ssrs_lease_context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::AcquireSsrsLeaseContext)Contains details about the acquire SSRS lease operation.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesPreCheckMajorVersionUpgradeRequest
Request for Pre-checks for MVU
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Cloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringRequired. Project ID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::InstancesPreCheckMajorVersionUpgradeRequest)Required. The context for request to perform the pre-check major version upgrade operation.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesVerifyExternalSyncSettingsResponse
Instance verify external sync settings response.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#migrationSettingErrorList`.
$msg->errors()/$msg->errors($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::SqlExternalSyncSettingError)List of migration violations.
$msg->warnings()/$msg->warnings($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::SqlExternalSyncSettingError)List of migration warnings.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesGetDiskShrinkConfigResponse
Instance get disk shrink config response.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#getDiskShrinkConfig`.
$msg->minimal_target_size_gb()/$msg->minimal_target_size_gb($value)Type:
Int64The minimum size to which a disk can be shrunk in GigaBytes.
$msg->message()/$msg->message($value)Type:
StringAdditional message to customers.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesGetLatestRecoveryTimeRequest
Instance get latest recovery time request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringCloud SQL instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringProject ID of the project that contains the instance.
$msg->source_instance_deletion_time()/$msg->source_instance_deletion_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesGetLatestRecoveryTimeResponse
Instance get latest recovery time response.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#getLatestRecoveryTime`.
$msg->latest_recovery_time()/$msg->latest_recovery_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp, identifies the latest recovery time of the source instance.
$msg->earliest_recovery_time()/$msg->earliest_recovery_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp, identifies the earliest recovery time of the source instance.
Google::Cloud::Sql::V1::CloudSqlInstances::CloneContext
Database instance clone context.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#cloneContext`.
$msg->pitr_timestamp_ms()/$msg->pitr_timestamp_ms($value)Type:
Int64Reserved for future use.
$msg->destination_instance_name()/$msg->destination_instance_name($value)Type:
StringRequired. Name of the Cloud SQL instance to be created as a clone.
$msg->bin_log_coordinates()/$msg->bin_log_coordinates($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::BinLogCoordinates)Binary log coordinates, if specified, identify the position up to which the source instance is cloned. If not specified, the source instance is cloned up to the most recent binary log coordinates.
$msg->point_in_time()/$msg->point_in_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Timestamp, if specified, identifies the time to which the source instance is cloned.
$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 cloned 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])?. Reserved for future use.
$msg->database_names()/$msg->database_names($value)Type:
String(SQL Server only) Clone only the specified databases from the source instance. Clone all databases if empty.
$msg->preferred_zone()/$msg->preferred_zone($value)Type:
StringOptional. Copy clone and point-in-time recovery clone of an instance to the specified zone. If no zone is specified, clone to the same primary zone as the source instance. This field applies to all DB types.
$msg->preferred_secondary_zone()/$msg->preferred_secondary_zone($value)Type:
StringOptional. Copy clone and point-in-time recovery clone of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field. This field applies to all DB types.
$msg->source_instance_deletion_time()/$msg->source_instance_deletion_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)The timestamp used to identify the time when the source instance is deleted. If this instance is deleted, then you must set the timestamp.
$msg->destination_project()/$msg->destination_project($value)Type:
StringOptional. The project ID of the destination project where the cloned instance will be created. To perform a cross-project clone, this field is required. If not specified, the clone is created in the same project as the source instance.
$msg->destination_network()/$msg->destination_network($value)Type:
StringOptional. The fully qualified URI of the VPC network to which the cloned instance will be connected via private services access for private IP. For example:`projects/my-network-project/global/networks/my-network`. This field is only required for cross-project cloning.
Google::Cloud::Sql::V1::CloudSqlInstances::PointInTimeRestoreContext
The context to perform a point-in-time recovery of an instance managed by Backup and Disaster Recovery (DR) Service.
Inherits from Protobuf::Message.
Accessors
$msg->datasource()/$msg->datasource($value)Type:
StringThe Backup and Disaster Recovery (DR) Service Datasource URI. Format: projects/{project}/locations/{region}/backupVaults/{backupvault}/dataSources/{datasource}.
$msg->point_in_time()/$msg->point_in_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Required. The date and time to which you want to restore the instance.
$msg->target_instance()/$msg->target_instance($value)Type:
StringTarget instance name.
$msg->private_network()/$msg->private_network($value)Type:
StringOptional. The resource link for the VPC network from which the Cloud SQL instance is accessible for private IP. For example, `/projects/myProject/global/networks/default`.
$msg->allocated_ip_range()/$msg->allocated_ip_range($value)Type:
StringOptional. The name of the allocated IP range for the internal IP Cloud SQL instance. For example: "google-managed-services-default". If you set this, then Cloud SQL creates the IP address for the cloned instance in the allocated range. This range must comply with [RFC 1035](https://tools.ietf.org/html/rfc1035) standards. Specifically, the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?. Reserved for future use.
$msg->preferred_zone()/$msg->preferred_zone($value)Type:
StringOptional. Point-in-time recovery of an instance to the specified zone. If no zone is specified, then clone to the same primary zone as the source instance.
$msg->preferred_secondary_zone()/$msg->preferred_secondary_zone($value)Type:
StringOptional. Point-in-time recovery of a regional instance in the specified zones. If not specified, clone to the same secondary zone as the source instance. This value cannot be the same as the preferred_zone field.
$msg->target_instance_settings()/$msg->target_instance_settings($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::DatabaseInstance)Optional. Specifies the instance settings that will be overridden from the source instance. This field is only applicable for cross project PITRs.
$msg->target_instance_clear_settings_field_names()/$msg->target_instance_clear_settings_field_names($value)Type:
StringOptional. Specifies the instance settings that will be cleared from the source instance. This field is only applicable for cross project PITRs.
$msg->region()/$msg->region($value)Type:
StringOptional. The region of the target instance where the datasource will be restored. For example: "us-central1".
Google::Cloud::Sql::V1::CloudSqlInstances::BinLogCoordinates
Binary log coordinates.
Inherits from Protobuf::Message.
Accessors
$msg->bin_log_file_name()/$msg->bin_log_file_name($value)Type:
StringName of the binary log file for a Cloud SQL instance.
$msg->bin_log_position()/$msg->bin_log_position($value)Type:
Int64Position (offset) within the binary log file.
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#binLogCoordinates`.
Google::Cloud::Sql::V1::CloudSqlInstances::DatabaseInstance
A Cloud SQL instance resource.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#instance`.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Sql::V1::DatabaseInstance::SqlInstanceState)The current serving state of the Cloud SQL instance.
$msg->database_version()/$msg->database_version($value)Type:
Enum(Google::Cloud::Sql::V1::SqlDatabaseVersion)The database engine type and version. The `databaseVersion` field cannot be changed after instance creation.
$msg->settings()/$msg->settings($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::Settings)The user settings.
$msg->etag()/$msg->etag($value)Type:
StringThis field is deprecated and will be removed from a future version of the API. Use the `settings.settingsVersion` field instead.
$msg->failover_replica()/$msg->failover_replica($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::DatabaseInstance::SqlFailoverReplica)The name and status of the failover replica.
$msg->master_instance_name()/$msg->master_instance_name($value)Type:
StringThe name of the instance which will act as primary in the replication setup.
$msg->replica_names()/$msg->replica_names($value)Type:
StringThe replicas of the instance.
$msg->max_disk_size()/$msg->max_disk_size($value)Type:
Message(Google::Protobuf::Wrappers::Int64Value)The maximum disk size of the instance in bytes.
$msg->current_disk_size()/$msg->current_disk_size($value)Type:
Message(Google::Protobuf::Wrappers::Int64Value)The current disk usage of the instance in bytes. This property has been deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric in Cloud Monitoring API instead. Please see [this announcement](https://groups.google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for details.
$msg->ip_addresses()/$msg->ip_addresses($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::IpMapping)The assigned IP addresses for the instance.
$msg->server_ca_cert()/$msg->server_ca_cert($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::SslCert)SSL configuration.
$msg->instance_type()/$msg->instance_type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlInstanceType)The instance type.
$msg->project()/$msg->project($value)Type:
StringThe project ID of the project containing the Cloud SQL instance. The Google apps domain is prefixed if applicable.
$msg->ipv6_address()/$msg->ipv6_address($value)Type:
StringThe IPv6 address assigned to the instance. (Deprecated) This property was applicable only to First Generation instances.
$msg->service_account_email_address()/$msg->service_account_email_address($value)Type:
StringThe service account email address assigned to the instance.\This property is read-only.
$msg->on_premises_configuration()/$msg->on_premises_configuration($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::OnPremisesConfiguration)Configuration specific to on-premises instances.
$msg->replica_configuration()/$msg->replica_configuration($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::ReplicaConfiguration)Configuration specific to failover replicas and read replicas.
$msg->backend_type()/$msg->backend_type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlBackendType)The backend type. `SECOND_GEN`: Cloud SQL database instance. `EXTERNAL`: A database server that is not managed by Google.
This property is read-only; use the `tier` property in the `settings` object to determine the database type.
$msg->self_link()/$msg->self_link($value)Type:
StringThe URI of this resource.
$msg->suspension_reason()/$msg->suspension_reason($value)Type:
Enum(Google::Cloud::Sql::V1::SqlSuspensionReason)If the instance state is SUSPENDED, the reason for the suspension.
$msg->connection_name()/$msg->connection_name($value)Type:
StringConnection name of the Cloud SQL instance used in connection strings.
$msg->name()/$msg->name($value)Type:
StringName of the Cloud SQL instance. This does not include the project ID.
$msg->region()/$msg->region($value)Type:
StringThe geographical region of the Cloud SQL instance.
It can be one of the [regions](https://cloud.google.com/sql/docs/mysql/locations#location-r) where Cloud SQL operates:
For example, `asia-east1`, `europe-west1`, and `us-central1`. The default value is `us-central1`.
$msg->gce_zone()/$msg->gce_zone($value)Type:
StringThe Compute Engine zone that the instance is currently serving from. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary zone. WARNING: Changing this might restart the instance.
$msg->secondary_gce_zone()/$msg->secondary_gce_zone($value)Type:
StringThe Compute Engine zone that the failover instance is currently serving from for a regional instance. This value could be different from the zone that was specified when the instance was created if the instance has failed over to its secondary/failover zone.
$msg->disk_encryption_configuration()/$msg->disk_encryption_configuration($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::DiskEncryptionConfiguration)Disk encryption configuration specific to an instance.
$msg->disk_encryption_status()/$msg->disk_encryption_status($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::DiskEncryptionStatus)Disk encryption status specific to an instance.
$msg->root_password()/$msg->root_password($value)Type:
StringInitial root password. Use only on creation. You must set root passwords before you can connect to PostgreSQL instances.
$msg->scheduled_maintenance()/$msg->scheduled_maintenance($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::DatabaseInstance::SqlScheduledMaintenance)The start time of any upcoming scheduled maintenance for this instance.
$msg->satisfies_pzs()/$msg->satisfies_pzs($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)This status indicates whether the instance satisfies PZS.
The status is reserved for future use.
$msg->database_installed_version()/$msg->database_installed_version($value)Type:
StringOutput only. Stores the current database version running on the instance including minor version such as `MYSQL_8_0_18`.
$msg->out_of_disk_report()/$msg->out_of_disk_report($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::DatabaseInstance::SqlOutOfDiskReport)This field represents the report generated by the proactive database wellness job for OutOfDisk issues. * Writers: * the proactive database wellness job for OOD. * Readers: * the proactive database wellness job
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The time when the instance was created in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example `2012-11-15T16:19:00.094Z`.
$msg->available_maintenance_versions()/$msg->available_maintenance_versions($value)Type:
StringOutput only. List all maintenance versions applicable on the instance
$msg->maintenance_version()/$msg->maintenance_version($value)Type:
StringThe current software version on the instance.
$msg->upgradable_database_versions()/$msg->upgradable_database_versions($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::AvailableDatabaseVersion)Output only. All database versions that are available for upgrade.
$msg->sql_network_architecture()/$msg->sql_network_architecture($value)Type:
Enum(Google::Cloud::Sql::V1::DatabaseInstance::SqlNetworkArchitecture)$msg->psc_service_attachment_link()/$msg->psc_service_attachment_link($value)Type:
StringOutput only. The link to service attachment of PSC instance.
$msg->dns_name()/$msg->dns_name($value)Type:
StringOutput only. The dns name of the instance.
$msg->primary_dns_name()/$msg->primary_dns_name($value)Type:
StringOutput only. DEPRECATED: please use write_endpoint instead.
$msg->write_endpoint()/$msg->write_endpoint($value)Type:
StringOutput only. The dns name of the primary instance in a replication group.
$msg->replication_cluster()/$msg->replication_cluster($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::ReplicationCluster)Optional. A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
$msg->gemini_config()/$msg->gemini_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::GeminiInstanceConfig)Gemini instance configuration.
$msg->satisfies_pzi()/$msg->satisfies_pzi($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Output only. This status indicates whether the instance satisfies PZI.
The status is reserved for future use.
$msg->switch_transaction_logs_to_cloud_storage_enabled()/$msg->switch_transaction_logs_to_cloud_storage_enabled($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Input only. Whether Cloud SQL is enabled to switch storing point-in-time recovery log files from a data disk to Cloud Storage.
$msg->include_replicas_for_major_version_upgrade()/$msg->include_replicas_for_major_version_upgrade($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Input only. Determines whether an in-place major version upgrade of replicas happens when an in-place major version upgrade of a primary instance is initiated.
$msg->skip_precheck()/$msg->skip_precheck($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Optional. Input only. Determines whether the precheck step is skipped during a major version upgrade.
$msg->tags()/$msg->tags($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::DatabaseInstance::TagsEntry)Optional. Input only. Immutable. Tag keys and tag values that are bound to this instance. You must represent each item in the map as: `"<tag-key-namespaced-name>" : "<tag-value-short-name>"`.
For example, a single resource can have the following tags: ``` "123/environment": "production", "123/costCenter": "marketing", ```
For more information on tag creation and management, see https://cloud.google.com/resource-manager/docs/tags/tags-overview.
$msg->node_count()/$msg->node_count($value)Type:
Int32The number of read pool nodes in a read pool.
$msg->nodes()/$msg->nodes($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::DatabaseInstance::PoolNodeConfig)Output only. Entries containing information about each read pool node of the read pool.
$msg->dns_names()/$msg->dns_names($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::DnsNameMapping)Output only. The list of DNS names used by this instance.
$msg->deployment_info()/$msg->deployment_info($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::BlueGreenDeploymentInfo)Output only. Deployment info for the instance. This is set if the instance is currently part of any blue-green setup.
$msg->database_center_integration_enabled()/$msg->database_center_integration_enabled($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Optional. If true, instance metadata is sent to the Database Center. If false, instance metadata is not sent to the Database Center.
$msg->database_center_integration()/$msg->database_center_integration($value)Type:
Enum(Google::Cloud::Sql::V1::DatabaseInstance::DatabaseCenterIntegration)Optional. State of the Database Center integration for this instance. When unspecified, Database Center integration is enabled by default.
$msg->workload_replay_config()/$msg->workload_replay_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::WorkloadReplayConfig)Output only. The workload replay configuration for this instance. This field is set only for workload replay instances.
$msg->workload_capture_config()/$msg->workload_capture_config($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::WorkloadCaptureConfig)Output only. The workload capture configuration for this instance. This field is set only when an active workload capture is present on the instance.
Enum: DatabaseInstance::SqlInstanceState
SQL_INSTANCE_STATE_UNSPECIFIED=>0RUNNABLE=>1SUSPENDED=>2PENDING_DELETE=>3PENDING_CREATE=>4MAINTENANCE=>5FAILED=>6ONLINE_MAINTENANCE=>7REPAIRING=>8
Enum: DatabaseInstance::SqlNetworkArchitecture
SQL_NETWORK_ARCHITECTURE_UNSPECIFIED=>0NEW_NETWORK_ARCHITECTURE=>1OLD_NETWORK_ARCHITECTURE=>2
Enum: DatabaseInstance::DatabaseCenterIntegration
DATABASE_CENTER_INTEGRATION_UNSPECIFIED=>0ENABLED=>1DISABLED=>2
Google::Cloud::Sql::V1::CloudSqlInstances::BlueGreenDeploymentInfo
Blue-green deployment metadata for a database instance. In a blue-green deployment, we maintain two environments, one of which is live. This message contains details about the blue-green deployment.
Inherits from Protobuf::Message.
Accessors
$msg->deployment_id()/$msg->deployment_id($value)Type:
StringOutput only. The resource ID of the blue-green deployment.
$msg->source()/$msg->source($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::BlueGreenDeploymentInfo::SourceRole)Output only. The source instance for the Blue-Green deployment.
$msg->target()/$msg->target($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::BlueGreenDeploymentInfo::TargetRole)Output only. The target instance for the Blue-Green deployment.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Sql::V1::BlueGreenDeploymentInfo::State)Output only. The current state of blue-green-deployment for UI tags
Enum: BlueGreenDeploymentInfo::State
STATE_UNSPECIFIED=>0PRE_SWITCHOVER=>1POST_SWITCHOVER=>2
Google::Cloud::Sql::V1::CloudSqlInstances::WorkloadReplayConfig
The workload replay configuration for a Cloud SQL replay instance.
Inherits from Protobuf::Message.
Accessors
$msg->workload_id()/$msg->workload_id($value)Type:
StringOutput only. The ID of the captured workload being replayed.
$msg->source_instance()/$msg->source_instance($value)Type:
StringOutput only. The name of the source instance, excluding the project ID, where the workload was captured.
$msg->replay_mode()/$msg->replay_mode($value)Type:
Enum(Google::Cloud::Sql::V1::WorkloadReplayConfig::ReplayMode)Output only. The mode of the workload replay.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Sql::V1::WorkloadReplayConfig::State)Output only. The state of the workload replay.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The start time of the workload replay.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The end time of the workload replay. This field is unset while the replay is running.
Enum: WorkloadReplayConfig::ReplayMode
REPLAY_MODE_UNSPECIFIED=>0LIVE=>1OFFLINE=>2
Enum: WorkloadReplayConfig::State
STATE_UNSPECIFIED=>0RUNNING=>1COMPLETED=>2FAILED=>3TERMINATED=>4
Google::Cloud::Sql::V1::CloudSqlInstances::WorkloadCaptureConfig
The workload capture configuration for a Cloud SQL primary instance.
Inherits from Protobuf::Message.
Accessors
$msg->workload_id()/$msg->workload_id($value)Type:
StringOutput only. The ID of the captured workload.
$msg->capture_mode()/$msg->capture_mode($value)Type:
Enum(Google::Cloud::Sql::V1::WorkloadCaptureConfig::CaptureMode)Output only. The mode of the workload capture.
$msg->state()/$msg->state($value)Type:
Enum(Google::Cloud::Sql::V1::WorkloadCaptureConfig::State)Output only. The state of the workload capture.
$msg->start_time()/$msg->start_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The start time of the workload capture.
$msg->end_time()/$msg->end_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. The end time of the workload capture. This field is unset while the capture is running.
$msg->replay_instance()/$msg->replay_instance($value)Type:
StringOutput only. The name of the replay instance, excluding the project ID, if live replay is enabled.
$msg->retention_days()/$msg->retention_days($value)Type:
Int32Output only. The retention period in days for the captured workload.
$msg->backup_id()/$msg->backup_id($value)Type:
StringOutput only. The base backup ID associated with the workload capture.
$msg->max_capture_duration()/$msg->max_capture_duration($value)Type:
Message(Google::Protobuf::Duration::Duration)Output only. The maximum duration for this workload capture.
Enum: WorkloadCaptureConfig::CaptureMode
CAPTURE_MODE_UNSPECIFIED=>0CAPTURE_ONLY=>1CAPTURE_AND_LIVE_REPLAY=>2
Enum: WorkloadCaptureConfig::State
STATE_UNSPECIFIED=>0RUNNING=>1COMPLETED=>2FAILED=>3TERMINATED=>4
Google::Cloud::Sql::V1::CloudSqlInstances::GeminiInstanceConfig
Gemini instance configuration.
Inherits from Protobuf::Message.
Accessors
$msg->entitled()/$msg->entitled($value)Type:
BoolOutput only. Whether Gemini is enabled.
$msg->google_vacuum_mgmt_enabled()/$msg->google_vacuum_mgmt_enabled($value)Type:
BoolOutput only. Whether the vacuum management is enabled.
$msg->oom_session_cancel_enabled()/$msg->oom_session_cancel_enabled($value)Type:
BoolOutput only. Whether canceling the out-of-memory (OOM) session is enabled.
$msg->active_query_enabled()/$msg->active_query_enabled($value)Type:
BoolOutput only. Whether the active query is enabled.
$msg->index_advisor_enabled()/$msg->index_advisor_enabled($value)Type:
BoolOutput only. Whether the index advisor is enabled.
$msg->flag_recommender_enabled()/$msg->flag_recommender_enabled($value)Type:
BoolOutput only. Whether the flag recommender is enabled.
Google::Cloud::Sql::V1::CloudSqlInstances::ReplicationCluster
A primary instance and disaster recovery (DR) replica pair. A DR replica is a cross-region replica that you designate for failover in the event that the primary instance experiences regional failure. Applicable to MySQL and PostgreSQL.
Inherits from Protobuf::Message.
Accessors
$msg->psa_write_endpoint()/$msg->psa_write_endpoint($value)Type:
StringOutput only. If set, this field indicates this instance has a private service access (PSA) DNS endpoint that is pointing to the primary instance of the cluster. If this instance is the primary, then the DNS endpoint points to this instance. After a switchover or replica failover operation, this DNS endpoint points to the promoted instance. This is a read-only field, returned to the user as information. This field can exist even if a standalone instance doesn't have a DR replica yet or the DR replica is deleted.
$msg->failover_dr_replica_name()/$msg->failover_dr_replica_name($value)Type:
StringOptional. If the instance is a primary instance, then this field identifies the disaster recovery (DR) replica. A DR replica is an optional configuration for Enterprise Plus edition instances. If the instance is a read replica, then the field is not set. Set this field to a replica name to designate a DR replica for a primary instance. Remove the replica name to remove the DR replica designation.
$msg->dr_replica()/$msg->dr_replica($value)Type:
BoolOutput only. Read-only field that indicates whether the replica is a DR replica. This field is not set if the instance is a primary instance.
Google::Cloud::Sql::V1::CloudSqlInstances::AvailableDatabaseVersion
An available database version. It can be a major or a minor version.
Inherits from Protobuf::Message.
Accessors
$msg->major_version()/$msg->major_version($value)Type:
StringThe version's major version name.
$msg->name()/$msg->name($value)Type:
StringThe database version name. For MySQL 8.0, this string provides the database major and minor version.
$msg->display_name()/$msg->display_name($value)Type:
StringThe database version's display name.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesRescheduleMaintenanceRequestBody
Reschedule options for maintenance windows.
Inherits from Protobuf::Message.
Accessors
$msg->reschedule()/$msg->reschedule($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesRescheduleMaintenanceRequestBody::Reschedule)Required. The type of the reschedule the user wants.
Enum: SqlInstancesRescheduleMaintenanceRequestBody::RescheduleType
RESCHEDULE_TYPE_UNSPECIFIED=>0IMMEDIATE=>1NEXT_AVAILABLE_WINDOW=>2SPECIFIC_TIME=>3
Google::Cloud::Sql::V1::CloudSqlInstances::DemoteMasterContext
Database instance demote primary instance context.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#demoteMasterContext`.
$msg->verify_gtid_consistency()/$msg->verify_gtid_consistency($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Verify the GTID consistency for demote operation. Default value: `True`. Setting this flag to `false` enables you to bypass the GTID consistency check between on-premises primary instance and Cloud SQL instance during the demotion operation but also exposes you to the risk of future replication failures. Change the value only if you know the reason for the GTID divergence and are confident that doing so will not cause any replication issues.
$msg->master_instance_name()/$msg->master_instance_name($value)Type:
StringThe name of the instance which will act as on-premises primary instance in the replication setup.
$msg->replica_configuration()/$msg->replica_configuration($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::DemoteMasterConfiguration)Configuration specific to read-replicas replicating from the on-premises primary instance.
$msg->skip_replication_setup()/$msg->skip_replication_setup($value)Type:
BoolFlag to skip replication setup on the instance.
Google::Cloud::Sql::V1::CloudSqlInstances::DemoteContext
This context is used to demote an existing standalone instance to be a Cloud SQL read replica for an external database server.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#demoteContext`.
$msg->source_representative_instance_name()/$msg->source_representative_instance_name($value)Type:
StringRequired. The name of the instance which acts as the on-premises primary instance in the replication setup.
Google::Cloud::Sql::V1::CloudSqlInstances::FailoverContext
Database instance failover context.
Inherits from Protobuf::Message.
Accessors
$msg->settings_version()/$msg->settings_version($value)Type:
Int64The current settings version of this instance. Request will be rejected if this version doesn't match the current settings version.
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#failoverContext`.
Google::Cloud::Sql::V1::CloudSqlInstances::RestoreBackupContext
Database instance restore from backup context. Backup context contains source instance id and project id.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#restoreBackupContext`.
$msg->backup_run_id()/$msg->backup_run_id($value)Type:
Int64The ID of the backup run to restore from.
$msg->instance_id()/$msg->instance_id($value)Type:
StringThe ID of the instance that the backup was taken from.
$msg->project()/$msg->project($value)Type:
StringThe full project ID of the source instance.
Google::Cloud::Sql::V1::CloudSqlInstances::RotateServerCaContext
Instance rotate server CA context.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#rotateServerCaContext`.
$msg->next_version()/$msg->next_version($value)Type:
StringThe fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server CA version.
Google::Cloud::Sql::V1::CloudSqlInstances::RotateServerCertificateContext
Instance rotate server certificate context.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringOptional. This is always `sql#rotateServerCertificateContext`.
$msg->next_version()/$msg->next_version($value)Type:
StringThe fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server certificate version.
Google::Cloud::Sql::V1::CloudSqlInstances::RotateEntraIdCertificateContext
Instance rotate Entra ID certificate context.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringOptional. This is always `sql#rotateEntraIdCertificateContext`.
$msg->next_version()/$msg->next_version($value)Type:
StringOptional. The fingerprint of the next version to be rotated to. If left unspecified, will be rotated to the most recently added server certificate version.
Google::Cloud::Sql::V1::CloudSqlInstances::TruncateLogContext
Database Instance truncate log context.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#truncateLogContext`.
$msg->log_type()/$msg->log_type($value)Type:
StringThe type of log to truncate. Valid values are `MYSQL_GENERAL_TABLE` and `MYSQL_SLOW_TABLE`.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlExternalSyncSettingError
External primary instance migration setting error/warning.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringCan be `sql#externalSyncSettingError` or `sql#externalSyncSettingWarning`.
$msg->type()/$msg->type($value)Type:
Enum(Google::Cloud::Sql::V1::SqlExternalSyncSettingError::SqlExternalSyncSettingErrorType)Identifies the specific error that occurred.
$msg->detail()/$msg->detail($value)Type:
StringAdditional information about the error encountered.
Enum: SqlExternalSyncSettingError::SqlExternalSyncSettingErrorType
SQL_EXTERNAL_SYNC_SETTING_ERROR_TYPE_UNSPECIFIED=>0CONNECTION_FAILURE=>1BINLOG_NOT_ENABLED=>2INCOMPATIBLE_DATABASE_VERSION=>3REPLICA_ALREADY_SETUP=>4INSUFFICIENT_PRIVILEGE=>5UNSUPPORTED_MIGRATION_TYPE=>6NO_PGLOGICAL_INSTALLED=>7PGLOGICAL_NODE_ALREADY_EXISTS=>8INVALID_WAL_LEVEL=>9INVALID_SHARED_PRELOAD_LIBRARY=>10INSUFFICIENT_MAX_REPLICATION_SLOTS=>11INSUFFICIENT_MAX_WAL_SENDERS=>12INSUFFICIENT_MAX_WORKER_PROCESSES=>13UNSUPPORTED_EXTENSIONS=>14INVALID_RDS_LOGICAL_REPLICATION=>15INVALID_LOGGING_SETUP=>16INVALID_DB_PARAM=>17UNSUPPORTED_GTID_MODE=>18SQLSERVER_AGENT_NOT_RUNNING=>19UNSUPPORTED_TABLE_DEFINITION=>20UNSUPPORTED_DEFINER=>21SQLSERVER_SERVERNAME_MISMATCH=>22PRIMARY_ALREADY_SETUP=>23UNSUPPORTED_BINLOG_FORMAT=>24BINLOG_RETENTION_SETTING=>25UNSUPPORTED_STORAGE_ENGINE=>26LIMITED_SUPPORT_TABLES=>27EXISTING_DATA_IN_REPLICA=>28MISSING_OPTIONAL_PRIVILEGES=>29RISKY_BACKUP_ADMIN_PRIVILEGE=>30INSUFFICIENT_GCS_PERMISSIONS=>31INVALID_FILE_INFO=>32UNSUPPORTED_DATABASE_SETTINGS=>33MYSQL_PARALLEL_IMPORT_INSUFFICIENT_PRIVILEGE=>34LOCAL_INFILE_OFF=>35TURN_ON_PITR_AFTER_PROMOTE=>36INCOMPATIBLE_DATABASE_MINOR_VERSION=>37SOURCE_MAX_SUBSCRIPTIONS=>38UNABLE_TO_VERIFY_DEFINERS=>39SUBSCRIPTION_CALCULATION_STATUS=>40PG_SUBSCRIPTION_COUNT=>41PG_SYNC_PARALLEL_LEVEL=>42INSUFFICIENT_DISK_SIZE=>43INSUFFICIENT_MACHINE_TIER=>44UNSUPPORTED_EXTENSIONS_NOT_MIGRATED=>45EXTENSIONS_NOT_MIGRATED=>46PG_CRON_FLAG_ENABLED_IN_REPLICA=>47EXTENSIONS_NOT_ENABLED_IN_REPLICA=>48UNSUPPORTED_COLUMNS=>49USERS_NOT_CREATED_IN_REPLICA=>50UNSUPPORTED_SYSTEM_OBJECTS=>51UNSUPPORTED_TABLES_WITH_REPLICA_IDENTITY=>52SELECTED_OBJECTS_NOT_EXIST_ON_SOURCE=>53PSC_ONLY_INSTANCE_WITH_NO_NETWORK_ATTACHMENT_URI=>54SELECTED_OBJECTS_REFERENCE_UNSELECTED_OBJECTS=>55PROMPT_DELETE_EXISTING=>56WILL_DELETE_EXISTING=>57PG_DDL_REPLICATION_INSUFFICIENT_PRIVILEGE=>58WRITABLE_DESTINATION_REPLICA_RECREATION_DOWNTIME=>59WRITABLE_DESTINATION_STORAGE_AUTO_INCREASE_DISABLED=>60
Google::Cloud::Sql::V1::CloudSqlInstances::SelectedObjects
A list of objects that the user selects for replication from an external source instance.
Inherits from Protobuf::Message.
Accessors
$msg->database()/$msg->database($value)Type:
StringRequired. The name of the database to migrate.
Google::Cloud::Sql::V1::CloudSqlInstances::OnPremisesConfiguration
On-premises instance configuration.
Inherits from Protobuf::Message.
Accessors
$msg->host_port()/$msg->host_port($value)Type:
StringThe host and port of the on-premises instance in host:port format
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#onPremisesConfiguration`.
$msg->username()/$msg->username($value)Type:
StringThe username for connecting to on-premises instance.
$msg->password()/$msg->password($value)Type:
StringThe password for connecting to on-premises instance.
$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->dump_file_path()/$msg->dump_file_path($value)Type:
StringThe dump file to create the Cloud SQL replica.
$msg->source_instance()/$msg->source_instance($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::InstanceReference)The reference to Cloud SQL instance if the source is Cloud SQL.
$msg->selected_objects()/$msg->selected_objects($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::SelectedObjects)Optional. A list of objects that the user selects for replication from an external source instance.
$msg->ssl_option()/$msg->ssl_option($value)Type:
Enum(Google::Cloud::Sql::V1::OnPremisesConfiguration::SslOption)Optional. SSL option for replica connection to the on-premises source.
$msg->dms_managed()/$msg->dms_managed($value)Type:
BoolOutput only. Indicates whether the resource is managed by Database Migration Service.
Enum: OnPremisesConfiguration::SslOption
SSL_OPTION_UNSPECIFIED=>0DISABLE=>1REQUIRE=>2VERIFY_CA=>3
Google::Cloud::Sql::V1::CloudSqlInstances::ReplicaConfiguration
Read-replica configuration for connecting to the primary instance.
Inherits from Protobuf::Message.
Accessors
$msg->kind()/$msg->kind($value)Type:
StringThis is always `sql#replicaConfiguration`.
$msg->mysql_replica_configuration()/$msg->mysql_replica_configuration($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlResources::MySqlReplicaConfiguration)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.
$msg->failover_target()/$msg->failover_target($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Specifies if the replica is the failover target. If the field is set to `true`, the replica will be designated as a failover replica. In case the primary instance fails, the replica instance will be promoted as the new primary instance. Only one replica can be specified as failover target, and the replica has to be in different zone with the primary instance.
$msg->cascadable_replica()/$msg->cascadable_replica($value)Type:
Message(Google::Protobuf::Wrappers::BoolValue)Optional. Specifies if a SQL Server replica is a cascadable replica. A cascadable replica is a SQL Server cross region replica that supports replica(s) under it.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesExecuteSqlReadOnlyRequest
Execute SQL statements request. Execute SQL statements in read-only mode request.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Database instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringRequired. Project ID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::ExecuteSqlReadOnlyPayload)Required. The request body.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesExecuteSqlRequest
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Database instance ID. This does not include the project ID.
$msg->project()/$msg->project($value)Type:
StringRequired. Project ID of the project that contains the instance.
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::ExecuteSqlPayload)The request body.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::ExecuteSqlReadOnlyPayload
The request payload used to execute SQL statements in read-only mode.
Inherits from Protobuf::Message.
Accessors
$msg->user()/$msg->user($value)Type:
StringOptional. The name of an existing database user to connect to the database. When `auto_iam_authn` is set to true, this field is ignored and the API caller's IAM user is used.
$msg->sql_statement()/$msg->sql_statement($value)Type:
StringRequired. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.
$msg->database()/$msg->database($value)Type:
StringOptional. Name of the database on which the statement will be executed. For Postgres and SQL Server it's required, for MySQL it's optional.
$msg->password_secret_version()/$msg->password_secret_version($value)Type:
StringOptional. The resource name of the Secret Manager secret holding the password for the user to log into the database. The secret should be created using the regional endpoint (for API) or from the Regional Secrets page (for UI), and stored in the same region as the Cloud SQL instance. The expected resource name format is `projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}`. This field is used together with the `user` field. The secret resource name will not be stored.
$msg->auto_iam_authn()/$msg->auto_iam_authn($value)Type:
BoolOptional. When set to true, the API caller identity associated with the request is used for database authentication. The API caller must be an IAM user in the database.
$msg->row_limit()/$msg->row_limit($value)Type:
Int64Optional. The maximum number of rows returned per SQL statement.
Google::Cloud::Sql::V1::CloudSqlInstances::ExecuteSqlPayload
The request payload used to execute SQL statements.
Inherits from Protobuf::Message.
Accessors
$msg->user()/$msg->user($value)Type:
StringOptional. The name of an existing database user to connect to the database. When `auto_iam_authn` is set to true, this field is ignored and the API caller's IAM user is used.
$msg->sql_statement()/$msg->sql_statement($value)Type:
StringRequired. SQL statements to run on the database. It can be a single statement or a sequence of statements separated by semicolons.
$msg->database()/$msg->database($value)Type:
StringOptional. Name of the database on which the statement will be executed. For Postgres and SQL Server it's required, for MySQL it's optional.
$msg->password_secret_version()/$msg->password_secret_version($value)Type:
StringOptional. The resource name of the Secret Manager secret holding the password for the user to log into the database. The secret should be created using the regional endpoint (for API) or from the Regional Secrets page (for UI), and stored in the same region as the Cloud SQL instance. The expected resource name format is `projects/{project}/locations/{location}/secrets/{secret}/versions/{secret_version}`. Used together with the `user` field. The secret resource name will not be stored.
$msg->auto_iam_authn()/$msg->auto_iam_authn($value)Type:
BoolOptional. When set to `true`, the API caller identity associated with the request is used for database authentication. The API caller must be an IAM user in the database.
$msg->row_limit()/$msg->row_limit($value)Type:
Int64Optional. The maximum number of rows returned per SQL statement.
$msg->partial_result_mode()/$msg->partial_result_mode($value)Type:
Enum(Google::Cloud::Sql::V1::ExecuteSqlPayload::PartialResultMode)Optional. Controls how the API should respond when the SQL execution result is incomplete due to the size limit or another error. The default mode is to throw an error.
$msg->application()/$msg->application($value)Type:
StringOptional. Specifies the name of the application that is making the request. This field is used for telemetry. Only alphanumeric characters, dashes, and underscores are allowed. The maximum length is 32 characters.
Enum: ExecuteSqlPayload::PartialResultMode
PARTIAL_RESULT_MODE_UNSPECIFIED=>0FAIL_PARTIAL_RESULT=>1ALLOW_PARTIAL_RESULT=>2
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesExecuteSqlReadOnlyResponse
Execute SQL statements response. Execute SQL statements in read-only mode response.
Inherits from Protobuf::Message.
Accessors
$msg->messages()/$msg->messages($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesExecuteSqlResponse::Message)A list of notices and warnings generated during query execution. For PostgreSQL, this includes all notices and warnings. For MySQL, this includes warnings generated by the last executed statement. To retrieve all warnings for a multi-statement query, `SHOW WARNINGS` must be executed after each statement.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::Metadata)The additional metadata information regarding the execution of the SQL statements.
$msg->results()/$msg->results($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::QueryResult)The list of results after executing all the SQL statements.
$msg->status()/$msg->status($value)Type:
Message(Google::Rpc::Status::Status)Contains the error from the database if the SQL execution failed.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesExecuteSqlResponse
Inherits from Protobuf::Message.
Accessors
$msg->messages()/$msg->messages($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesExecuteSqlResponse::Message)A list of notices and warnings generated during query execution. For PostgreSQL, this includes all notices and warnings. For MySQL, this includes warnings generated by the last executed statement. To retrieve all warnings for a multi-statement query, `SHOW WARNINGS` must be executed after each statement.
$msg->metadata()/$msg->metadata($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::Metadata)The additional metadata information regarding the execution of the SQL statements.
$msg->results()/$msg->results($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::QueryResult)The list of results after executing all the SQL statements.
$msg->status()/$msg->status($value)Type:
Message(Google::Rpc::Status::Status)Contains the error from the database if the SQL execution failed.
Google::Cloud::Sql::V1::CloudSqlInstances::QueryResult
QueryResult contains the result of executing a single SQL statement.
Inherits from Protobuf::Message.
Accessors
$msg->columns()/$msg->columns($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::Column)List of columns included in the result. This also includes the data type of the column.
$msg->rows()/$msg->rows($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::Row)Rows returned by the SQL statement.
$msg->message()/$msg->message($value)Type:
StringMessage related to the SQL execution result.
$msg->partial_result()/$msg->partial_result($value)Type:
BoolSet to true if the SQL execution's result is truncated due to size limits or an error retrieving results.
$msg->status()/$msg->status($value)Type:
Message(Google::Rpc::Status::Status)If results were truncated due to an error, details of that error.
Google::Cloud::Sql::V1::CloudSqlInstances::Column
Contains the name and datatype of a column.
Inherits from Protobuf::Message.
Accessors
$msg->name()/$msg->name($value)Type:
StringName of the column.
$msg->type()/$msg->type($value)Type:
StringDatatype of the column.
Google::Cloud::Sql::V1::CloudSqlInstances::Row
Contains the values for a row.
Inherits from Protobuf::Message.
Accessors
$msg->values()/$msg->values($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::Value)The values for the row.
Google::Cloud::Sql::V1::CloudSqlInstances::Value
The cell value of the table.
Inherits from Protobuf::Message.
Accessors
$msg->value()/$msg->value($value)Type:
StringThe cell value in string format.
$msg->null_value()/$msg->null_value($value)Type:
BoolIf cell value is null, then this flag will be set to true.
Google::Cloud::Sql::V1::CloudSqlInstances::Metadata
The additional metadata information regarding the execution of the SQL statements.
Inherits from Protobuf::Message.
Accessors
$msg->sql_statement_execution_time()/$msg->sql_statement_execution_time($value)Type:
Message(Google::Protobuf::Duration::Duration)The time taken to execute the SQL statements.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesAcquireSsrsLeaseRequest
Request to acquire a lease for SSRS.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Cloud SQL instance ID. This doesn't include the project ID. It's composed of lowercase letters, numbers, and hyphens, and it must start with a letter. The total length must be 98 characters or less (Example: instance-id).
$msg->project()/$msg->project($value)Type:
StringRequired. Project ID of the project that contains the instance (Example: project-id).
$msg->body()/$msg->body($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::InstancesAcquireSsrsLeaseRequest)Required. The request body.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesAcquireSsrsLeaseResponse
Response for the acquire SSRS lease request.
Inherits from Protobuf::Message.
Accessors
$msg->operation_id()/$msg->operation_id($value)Type:
StringThe unique identifier for this operation.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesReleaseSsrsLeaseRequest
Request to release a lease for SSRS.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. The Cloud SQL instance ID. This doesn't include the project ID. The instance ID contains lowercase letters, numbers, and hyphens, and it must start with a letter. This ID can have a maximum length of 98 characters.
$msg->project()/$msg->project($value)Type:
StringRequired. The project ID that contains the instance.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesReleaseSsrsLeaseResponse
Response for the release SSRS lease request.
Inherits from Protobuf::Message.
Accessors
$msg->operation_id()/$msg->operation_id($value)Type:
StringThe unique identifier for this operation.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesPointInTimeRestoreRequest
Request to perform a point in time restore on a Google Cloud Backup and Disaster Recovery managed instance.
Inherits from Protobuf::Message.
Accessors
$msg->parent()/$msg->parent($value)Type:
StringRequired. The parent resource where you created this instance. Format: projects/{project}
$msg->context()/$msg->context($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::PointInTimeRestoreContext)Required. The context for request to perform a PITR on a Google Cloud Backup and Disaster Recovery managed instance.
Google::Cloud::Sql::V1::CloudSqlInstances::SqlInstancesReconcileNetworkingRequest
Request message for SqlInstancesService.ReconcileNetworking.
Inherits from Protobuf::Message.
Accessors
$msg->instance()/$msg->instance($value)Type:
StringRequired. Cloud SQL instance ID.
$msg->project()/$msg->project($value)Type:
StringRequired. Project ID of the project that contains the instance.
$msg->psc_dns()/$msg->psc_dns($value)Type:
Message(Google::Cloud::Sql::V1::CloudSqlInstances::PscDnsReconcileNetworkingRequest)Request to recreate Private Service Connect DNS write endpoints and reconcile Private Service Connect connectivity infrastructure for the instance.
$msg->location()/$msg->location($value)Type:
StringOptional. Region of the Cloud SQL instance.
Google::Cloud::Sql::V1::CloudSqlInstances::PscDnsReconcileNetworkingRequest
Request parameters specific to PSC DNS networking reconciliation.
Inherits from Protobuf::Message.
Accessors
$msg->networks()/$msg->networks($value)Type:
StringOptional. List of specific consumer VPC networks to reconcile. They must be specified as full resource names (e.g., "projects/my-consumer-project/global/networks/prod-vpc"). If empty, recreates Write Endpoints for all the consumer networks associated with this instance.
$msg->force()/$msg->force($value)Type:
BoolOptional. Set `true` to force the reset and reapplication of Private Service Connect connectivity infrastructure if standard reconciliation does not resolve automated DNS issues. This operation might cause a brief disruption in network connectivity for connected VPC networks while settings are reapplied. Use this option only when standard reconciliation fails to resolve networking issues (for example, if connectivity resources are stuck in an updating or creating state).
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Sql::V1::CloudSqlInstances::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.