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