Enum value maps for SqlBackupRunStatus.
var ( SqlBackupRunStatus_name = map[int32]string{ 0: "SQL_BACKUP_RUN_STATUS_UNSPECIFIED", 1: "ENQUEUED", 2: "OVERDUE", 3: "RUNNING", 4: "FAILED", 5: "SUCCESSFUL", 6: "SKIPPED", 7: "DELETION_PENDING", 8: "DELETION_FAILED", 9: "DELETED", } SqlBackupRunStatus_value = map[string]int32{ "SQL_BACKUP_RUN_STATUS_UNSPECIFIED": 0, "ENQUEUED": 1, "OVERDUE": 2, "RUNNING": 3, "FAILED": 4, "SUCCESSFUL": 5, "SKIPPED": 6, "DELETION_PENDING": 7, "DELETION_FAILED": 8, "DELETED": 9, } )
Enum value maps for SqlBackupKind.
var ( SqlBackupKind_name = map[int32]string{ 0: "SQL_BACKUP_KIND_UNSPECIFIED", 1: "SNAPSHOT", 2: "PHYSICAL", } SqlBackupKind_value = map[string]int32{ "SQL_BACKUP_KIND_UNSPECIFIED": 0, "SNAPSHOT": 1, "PHYSICAL": 2, } )
Enum value maps for SqlBackupRunType.
var ( SqlBackupRunType_name = map[int32]string{ 0: "SQL_BACKUP_RUN_TYPE_UNSPECIFIED", 1: "AUTOMATED", 2: "ON_DEMAND", } SqlBackupRunType_value = map[string]int32{ "SQL_BACKUP_RUN_TYPE_UNSPECIFIED": 0, "AUTOMATED": 1, "ON_DEMAND": 2, } )
Enum value maps for SqlFlagType.
var ( SqlFlagType_name = map[int32]string{ 0: "SQL_FLAG_TYPE_UNSPECIFIED", 1: "BOOLEAN", 2: "STRING", 3: "INTEGER", 4: "NONE", 5: "MYSQL_TIMEZONE_OFFSET", 6: "FLOAT", 7: "REPEATED_STRING", } SqlFlagType_value = map[string]int32{ "SQL_FLAG_TYPE_UNSPECIFIED": 0, "BOOLEAN": 1, "STRING": 2, "INTEGER": 3, "NONE": 4, "MYSQL_TIMEZONE_OFFSET": 5, "FLOAT": 6, "REPEATED_STRING": 7, } )
Enum value maps for SqlInstanceType.
var ( SqlInstanceType_name = map[int32]string{ 0: "SQL_INSTANCE_TYPE_UNSPECIFIED", 1: "CLOUD_SQL_INSTANCE", 2: "ON_PREMISES_INSTANCE", 3: "READ_REPLICA_INSTANCE", } SqlInstanceType_value = map[string]int32{ "SQL_INSTANCE_TYPE_UNSPECIFIED": 0, "CLOUD_SQL_INSTANCE": 1, "ON_PREMISES_INSTANCE": 2, "READ_REPLICA_INSTANCE": 3, } )
Enum value maps for SqlSuspensionReason.
var ( SqlSuspensionReason_name = map[int32]string{ 0: "SQL_SUSPENSION_REASON_UNSPECIFIED", 2: "BILLING_ISSUE", 3: "LEGAL_ISSUE", 4: "OPERATIONAL_ISSUE", 5: "KMS_KEY_ISSUE", } SqlSuspensionReason_value = map[string]int32{ "SQL_SUSPENSION_REASON_UNSPECIFIED": 0, "BILLING_ISSUE": 2, "LEGAL_ISSUE": 3, "OPERATIONAL_ISSUE": 4, "KMS_KEY_ISSUE": 5, } )
Enum value maps for SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode.
var ( SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode_name = map[int32]string{ 0: "EXTERNAL_SYNC_MODE_UNSPECIFIED", 1: "ONLINE", 2: "OFFLINE", } SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode_value = map[string]int32{ "EXTERNAL_SYNC_MODE_UNSPECIFIED": 0, "ONLINE": 1, "OFFLINE": 2, } )
Enum value maps for DatabaseInstance_SqlInstanceState.
var ( DatabaseInstance_SqlInstanceState_name = map[int32]string{ 0: "SQL_INSTANCE_STATE_UNSPECIFIED", 1: "RUNNABLE", 2: "SUSPENDED", 3: "PENDING_DELETE", 4: "PENDING_CREATE", 5: "MAINTENANCE", 6: "FAILED", 7: "ONLINE_MAINTENANCE", } DatabaseInstance_SqlInstanceState_value = map[string]int32{ "SQL_INSTANCE_STATE_UNSPECIFIED": 0, "RUNNABLE": 1, "SUSPENDED": 2, "PENDING_DELETE": 3, "PENDING_CREATE": 4, "MAINTENANCE": 5, "FAILED": 6, "ONLINE_MAINTENANCE": 7, } )
Enum value maps for DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState.
var ( DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState_name = map[int32]string{ 0: "SQL_OUT_OF_DISK_STATE_UNSPECIFIED", 1: "NORMAL", 2: "SOFT_SHUTDOWN", } DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState_value = map[string]int32{ "SQL_OUT_OF_DISK_STATE_UNSPECIFIED": 0, "NORMAL": 1, "SOFT_SHUTDOWN": 2, } )
Enum value maps for SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType.
var ( SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType_name = map[int32]string{ 0: "RESCHEDULE_TYPE_UNSPECIFIED", 1: "IMMEDIATE", 2: "NEXT_AVAILABLE_WINDOW", 3: "SPECIFIC_TIME", } SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType_value = map[string]int32{ "RESCHEDULE_TYPE_UNSPECIFIED": 0, "IMMEDIATE": 1, "NEXT_AVAILABLE_WINDOW": 2, "SPECIFIC_TIME": 3, } )
Enum value maps for SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType.
var ( SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType_name = map[int32]string{ 0: "SQL_EXTERNAL_SYNC_SETTING_ERROR_TYPE_UNSPECIFIED", 1: "CONNECTION_FAILURE", 2: "BINLOG_NOT_ENABLED", 3: "INCOMPATIBLE_DATABASE_VERSION", 4: "REPLICA_ALREADY_SETUP", 5: "INSUFFICIENT_PRIVILEGE", 6: "UNSUPPORTED_MIGRATION_TYPE", 7: "NO_PGLOGICAL_INSTALLED", 8: "PGLOGICAL_NODE_ALREADY_EXISTS", 9: "INVALID_WAL_LEVEL", 10: "INVALID_SHARED_PRELOAD_LIBRARY", 11: "INSUFFICIENT_MAX_REPLICATION_SLOTS", 12: "INSUFFICIENT_MAX_WAL_SENDERS", 13: "INSUFFICIENT_MAX_WORKER_PROCESSES", 14: "UNSUPPORTED_EXTENSIONS", 15: "INVALID_RDS_LOGICAL_REPLICATION", 16: "INVALID_LOGGING_SETUP", 17: "INVALID_DB_PARAM", 18: "UNSUPPORTED_GTID_MODE", 19: "SQLSERVER_AGENT_NOT_RUNNING", 20: "UNSUPPORTED_TABLE_DEFINITION", 21: "UNSUPPORTED_DEFINER", 22: "SQLSERVER_SERVERNAME_MISMATCH", 23: "PRIMARY_ALREADY_SETUP", 24: "UNSUPPORTED_BINLOG_FORMAT", 25: "BINLOG_RETENTION_SETTING", } SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType_value = map[string]int32{ "SQL_EXTERNAL_SYNC_SETTING_ERROR_TYPE_UNSPECIFIED": 0, "CONNECTION_FAILURE": 1, "BINLOG_NOT_ENABLED": 2, "INCOMPATIBLE_DATABASE_VERSION": 3, "REPLICA_ALREADY_SETUP": 4, "INSUFFICIENT_PRIVILEGE": 5, "UNSUPPORTED_MIGRATION_TYPE": 6, "NO_PGLOGICAL_INSTALLED": 7, "PGLOGICAL_NODE_ALREADY_EXISTS": 8, "INVALID_WAL_LEVEL": 9, "INVALID_SHARED_PRELOAD_LIBRARY": 10, "INSUFFICIENT_MAX_REPLICATION_SLOTS": 11, "INSUFFICIENT_MAX_WAL_SENDERS": 12, "INSUFFICIENT_MAX_WORKER_PROCESSES": 13, "UNSUPPORTED_EXTENSIONS": 14, "INVALID_RDS_LOGICAL_REPLICATION": 15, "INVALID_LOGGING_SETUP": 16, "INVALID_DB_PARAM": 17, "UNSUPPORTED_GTID_MODE": 18, "SQLSERVER_AGENT_NOT_RUNNING": 19, "UNSUPPORTED_TABLE_DEFINITION": 20, "UNSUPPORTED_DEFINER": 21, "SQLSERVER_SERVERNAME_MISMATCH": 22, "PRIMARY_ALREADY_SETUP": 23, "UNSUPPORTED_BINLOG_FORMAT": 24, "BINLOG_RETENTION_SETTING": 25, } )
Enum value maps for SqlFileType.
var ( SqlFileType_name = map[int32]string{ 0: "SQL_FILE_TYPE_UNSPECIFIED", 1: "SQL", 2: "CSV", 4: "BAK", } SqlFileType_value = map[string]int32{ "SQL_FILE_TYPE_UNSPECIFIED": 0, "SQL": 1, "CSV": 2, "BAK": 4, } )
Enum value maps for SqlBackendType.
var ( SqlBackendType_name = map[int32]string{ 0: "SQL_BACKEND_TYPE_UNSPECIFIED", 1: "FIRST_GEN", 2: "SECOND_GEN", 3: "EXTERNAL", } SqlBackendType_value = map[string]int32{ "SQL_BACKEND_TYPE_UNSPECIFIED": 0, "FIRST_GEN": 1, "SECOND_GEN": 2, "EXTERNAL": 3, } )
Enum value maps for SqlIpAddressType.
var ( SqlIpAddressType_name = map[int32]string{ 0: "SQL_IP_ADDRESS_TYPE_UNSPECIFIED", 1: "PRIMARY", 2: "OUTGOING", 3: "PRIVATE", 4: "MIGRATED_1ST_GEN", } SqlIpAddressType_value = map[string]int32{ "SQL_IP_ADDRESS_TYPE_UNSPECIFIED": 0, "PRIMARY": 1, "OUTGOING": 2, "PRIVATE": 3, "MIGRATED_1ST_GEN": 4, } )
Enum value maps for SqlDatabaseVersion.
var ( SqlDatabaseVersion_name = map[int32]string{ 0: "SQL_DATABASE_VERSION_UNSPECIFIED", 2: "MYSQL_5_1", 3: "MYSQL_5_5", 5: "MYSQL_5_6", 6: "MYSQL_5_7", 9: "POSTGRES_9_6", 10: "POSTGRES_11", 11: "SQLSERVER_2017_STANDARD", 14: "SQLSERVER_2017_ENTERPRISE", 15: "SQLSERVER_2017_EXPRESS", 16: "SQLSERVER_2017_WEB", 18: "POSTGRES_10", 19: "POSTGRES_12", 23: "POSTGRES_13", 26: "SQLSERVER_2019_STANDARD", 27: "SQLSERVER_2019_ENTERPRISE", 28: "SQLSERVER_2019_EXPRESS", 29: "SQLSERVER_2019_WEB", } SqlDatabaseVersion_value = map[string]int32{ "SQL_DATABASE_VERSION_UNSPECIFIED": 0, "MYSQL_5_1": 2, "MYSQL_5_5": 3, "MYSQL_5_6": 5, "MYSQL_5_7": 6, "POSTGRES_9_6": 9, "POSTGRES_11": 10, "SQLSERVER_2017_STANDARD": 11, "SQLSERVER_2017_ENTERPRISE": 14, "SQLSERVER_2017_EXPRESS": 15, "SQLSERVER_2017_WEB": 16, "POSTGRES_10": 18, "POSTGRES_12": 19, "POSTGRES_13": 23, "SQLSERVER_2019_STANDARD": 26, "SQLSERVER_2019_ENTERPRISE": 27, "SQLSERVER_2019_EXPRESS": 28, "SQLSERVER_2019_WEB": 29, } )
Enum value maps for SqlPricingPlan.
var ( SqlPricingPlan_name = map[int32]string{ 0: "SQL_PRICING_PLAN_UNSPECIFIED", 1: "PACKAGE", 2: "PER_USE", } SqlPricingPlan_value = map[string]int32{ "SQL_PRICING_PLAN_UNSPECIFIED": 0, "PACKAGE": 1, "PER_USE": 2, } )
Enum value maps for SqlReplicationType.
var ( SqlReplicationType_name = map[int32]string{ 0: "SQL_REPLICATION_TYPE_UNSPECIFIED", 1: "SYNCHRONOUS", 2: "ASYNCHRONOUS", } SqlReplicationType_value = map[string]int32{ "SQL_REPLICATION_TYPE_UNSPECIFIED": 0, "SYNCHRONOUS": 1, "ASYNCHRONOUS": 2, } )
Enum value maps for SqlDataDiskType.
var ( SqlDataDiskType_name = map[int32]string{ 0: "SQL_DATA_DISK_TYPE_UNSPECIFIED", 1: "PD_SSD", 2: "PD_HDD", 3: "OBSOLETE_LOCAL_SSD", } SqlDataDiskType_value = map[string]int32{ "SQL_DATA_DISK_TYPE_UNSPECIFIED": 0, "PD_SSD": 1, "PD_HDD": 2, "OBSOLETE_LOCAL_SSD": 3, } )
Enum value maps for SqlAvailabilityType.
var ( SqlAvailabilityType_name = map[int32]string{ 0: "SQL_AVAILABILITY_TYPE_UNSPECIFIED", 1: "ZONAL", 2: "REGIONAL", } SqlAvailabilityType_value = map[string]int32{ "SQL_AVAILABILITY_TYPE_UNSPECIFIED": 0, "ZONAL": 1, "REGIONAL": 2, } )
Enum value maps for SqlUpdateTrack.
var ( SqlUpdateTrack_name = map[int32]string{ 0: "SQL_UPDATE_TRACK_UNSPECIFIED", 1: "canary", 2: "stable", } SqlUpdateTrack_value = map[string]int32{ "SQL_UPDATE_TRACK_UNSPECIFIED": 0, "canary": 1, "stable": 2, } )
Enum value maps for ApiWarning_SqlApiWarningCode.
var ( ApiWarning_SqlApiWarningCode_name = map[int32]string{ 0: "SQL_API_WARNING_CODE_UNSPECIFIED", 1: "REGION_UNREACHABLE", } ApiWarning_SqlApiWarningCode_value = map[string]int32{ "SQL_API_WARNING_CODE_UNSPECIFIED": 0, "REGION_UNREACHABLE": 1, } )
Enum value maps for BackupRetentionSettings_RetentionUnit.
var ( BackupRetentionSettings_RetentionUnit_name = map[int32]string{ 0: "RETENTION_UNIT_UNSPECIFIED", 1: "COUNT", } BackupRetentionSettings_RetentionUnit_value = map[string]int32{ "RETENTION_UNIT_UNSPECIFIED": 0, "COUNT": 1, } )
Enum value maps for Operation_SqlOperationType.
var ( Operation_SqlOperationType_name = map[int32]string{ 0: "SQL_OPERATION_TYPE_UNSPECIFIED", 1: "IMPORT", 2: "EXPORT", 3: "CREATE", 4: "UPDATE", 5: "DELETE", 6: "RESTART", 7: "BACKUP", 8: "SNAPSHOT", 9: "BACKUP_VOLUME", 10: "DELETE_VOLUME", 11: "RESTORE_VOLUME", 12: "INJECT_USER", 14: "CLONE", 15: "STOP_REPLICA", 16: "START_REPLICA", 17: "PROMOTE_REPLICA", 18: "CREATE_REPLICA", 19: "CREATE_USER", 20: "DELETE_USER", 21: "UPDATE_USER", 22: "CREATE_DATABASE", 23: "DELETE_DATABASE", 24: "UPDATE_DATABASE", 25: "FAILOVER", 26: "DELETE_BACKUP", 27: "RECREATE_REPLICA", 28: "TRUNCATE_LOG", 29: "DEMOTE_MASTER", 30: "MAINTENANCE", 31: "ENABLE_PRIVATE_IP", 32: "DEFER_MAINTENANCE", 33: "CREATE_CLONE", 34: "RESCHEDULE_MAINTENANCE", 35: "START_EXTERNAL_SYNC", } Operation_SqlOperationType_value = map[string]int32{ "SQL_OPERATION_TYPE_UNSPECIFIED": 0, "IMPORT": 1, "EXPORT": 2, "CREATE": 3, "UPDATE": 4, "DELETE": 5, "RESTART": 6, "BACKUP": 7, "SNAPSHOT": 8, "BACKUP_VOLUME": 9, "DELETE_VOLUME": 10, "RESTORE_VOLUME": 11, "INJECT_USER": 12, "CLONE": 14, "STOP_REPLICA": 15, "START_REPLICA": 16, "PROMOTE_REPLICA": 17, "CREATE_REPLICA": 18, "CREATE_USER": 19, "DELETE_USER": 20, "UPDATE_USER": 21, "CREATE_DATABASE": 22, "DELETE_DATABASE": 23, "UPDATE_DATABASE": 24, "FAILOVER": 25, "DELETE_BACKUP": 26, "RECREATE_REPLICA": 27, "TRUNCATE_LOG": 28, "DEMOTE_MASTER": 29, "MAINTENANCE": 30, "ENABLE_PRIVATE_IP": 31, "DEFER_MAINTENANCE": 32, "CREATE_CLONE": 33, "RESCHEDULE_MAINTENANCE": 34, "START_EXTERNAL_SYNC": 35, } )
Enum value maps for Operation_SqlOperationStatus.
var ( Operation_SqlOperationStatus_name = map[int32]string{ 0: "SQL_OPERATION_STATUS_UNSPECIFIED", 1: "PENDING", 2: "RUNNING", 3: "DONE", } Operation_SqlOperationStatus_value = map[string]int32{ "SQL_OPERATION_STATUS_UNSPECIFIED": 0, "PENDING": 1, "RUNNING": 2, "DONE": 3, } )
Enum value maps for Settings_SqlActivationPolicy.
var ( Settings_SqlActivationPolicy_name = map[int32]string{ 0: "SQL_ACTIVATION_POLICY_UNSPECIFIED", 1: "ALWAYS", 2: "NEVER", 3: "ON_DEMAND", } Settings_SqlActivationPolicy_value = map[string]int32{ "SQL_ACTIVATION_POLICY_UNSPECIFIED": 0, "ALWAYS": 1, "NEVER": 2, "ON_DEMAND": 3, } )
Enum value maps for User_SqlUserType.
var ( User_SqlUserType_name = map[int32]string{ 0: "BUILT_IN", 1: "CLOUD_IAM_USER", 2: "CLOUD_IAM_SERVICE_ACCOUNT", } User_SqlUserType_value = map[string]int32{ "BUILT_IN": 0, "CLOUD_IAM_USER": 1, "CLOUD_IAM_SERVICE_ACCOUNT": 2, } )
var File_google_cloud_sql_v1_cloud_sql_backup_runs_proto protoreflect.FileDescriptor
var File_google_cloud_sql_v1_cloud_sql_connect_proto protoreflect.FileDescriptor
var File_google_cloud_sql_v1_cloud_sql_databases_proto protoreflect.FileDescriptor
var File_google_cloud_sql_v1_cloud_sql_flags_proto protoreflect.FileDescriptor
var File_google_cloud_sql_v1_cloud_sql_instance_names_proto protoreflect.FileDescriptor
var File_google_cloud_sql_v1_cloud_sql_instances_proto protoreflect.FileDescriptor
var File_google_cloud_sql_v1_cloud_sql_operations_proto protoreflect.FileDescriptor
var File_google_cloud_sql_v1_cloud_sql_resources_proto protoreflect.FileDescriptor
var File_google_cloud_sql_v1_cloud_sql_ssl_certs_proto protoreflect.FileDescriptor
var File_google_cloud_sql_v1_cloud_sql_tiers_proto protoreflect.FileDescriptor
var File_google_cloud_sql_v1_cloud_sql_users_proto protoreflect.FileDescriptor
func RegisterSqlBackupRunsServiceServer(s *grpc.Server, srv SqlBackupRunsServiceServer)
func RegisterSqlConnectServiceServer(s *grpc.Server, srv SqlConnectServiceServer)
func RegisterSqlDatabasesServiceServer(s *grpc.Server, srv SqlDatabasesServiceServer)
func RegisterSqlFlagsServiceServer(s *grpc.Server, srv SqlFlagsServiceServer)
func RegisterSqlInstanceNamesServiceServer(s *grpc.Server, srv SqlInstanceNamesServiceServer)
func RegisterSqlInstancesServiceServer(s *grpc.Server, srv SqlInstancesServiceServer)
func RegisterSqlOperationsServiceServer(s *grpc.Server, srv SqlOperationsServiceServer)
func RegisterSqlSslCertsServiceServer(s *grpc.Server, srv SqlSslCertsServiceServer)
func RegisterSqlTiersServiceServer(s *grpc.Server, srv SqlTiersServiceServer)
func RegisterSqlUsersServiceServer(s *grpc.Server, srv SqlUsersServiceServer)
An entry for an Access Control list.
type AclEntry struct { // The allowlisted value for the access control list. Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` // 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**. ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` // Optional. A label to identify this entry. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // This is always **sql#aclEntry**. Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*AclEntry) Descriptor() ([]byte, []int)
Deprecated: Use AclEntry.ProtoReflect.Descriptor instead.
func (x *AclEntry) GetExpirationTime() *timestamppb.Timestamp
func (x *AclEntry) GetKind() string
func (x *AclEntry) GetName() string
func (x *AclEntry) GetValue() string
func (*AclEntry) ProtoMessage()
func (x *AclEntry) ProtoReflect() protoreflect.Message
func (x *AclEntry) Reset()
func (x *AclEntry) String() string
An Admin API warning message.
type ApiWarning struct { // Code to uniquely identify the warning type. Code ApiWarning_SqlApiWarningCode `protobuf:"varint,1,opt,name=code,proto3,enum=google.cloud.sql.v1.ApiWarning_SqlApiWarningCode" json:"code,omitempty"` // The warning message. Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` // The region name for REGION_UNREACHABLE warning. Region string `protobuf:"bytes,3,opt,name=region,proto3" json:"region,omitempty"` // contains filtered or unexported fields }
func (*ApiWarning) Descriptor() ([]byte, []int)
Deprecated: Use ApiWarning.ProtoReflect.Descriptor instead.
func (x *ApiWarning) GetCode() ApiWarning_SqlApiWarningCode
func (x *ApiWarning) GetMessage() string
func (x *ApiWarning) GetRegion() string
func (*ApiWarning) ProtoMessage()
func (x *ApiWarning) ProtoReflect() protoreflect.Message
func (x *ApiWarning) Reset()
func (x *ApiWarning) String() string
type ApiWarning_SqlApiWarningCode int32
const ( // An unknown or unset warning type from Cloud SQL API. ApiWarning_SQL_API_WARNING_CODE_UNSPECIFIED ApiWarning_SqlApiWarningCode = 0 // Warning when one or more regions are not reachable. The returned result // set may be incomplete. ApiWarning_REGION_UNREACHABLE ApiWarning_SqlApiWarningCode = 1 )
func (ApiWarning_SqlApiWarningCode) Descriptor() protoreflect.EnumDescriptor
func (x ApiWarning_SqlApiWarningCode) Enum() *ApiWarning_SqlApiWarningCode
func (ApiWarning_SqlApiWarningCode) EnumDescriptor() ([]byte, []int)
Deprecated: Use ApiWarning_SqlApiWarningCode.Descriptor instead.
func (x ApiWarning_SqlApiWarningCode) Number() protoreflect.EnumNumber
func (x ApiWarning_SqlApiWarningCode) String() string
func (ApiWarning_SqlApiWarningCode) Type() protoreflect.EnumType
Database instance backup configuration.
type BackupConfiguration struct { // Start time for the daily backup configuration in UTC timezone in the 24 // hour format - **HH:MM**. StartTime string `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Whether this configuration is enabled. Enabled *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=enabled,proto3" json:"enabled,omitempty"` // This is always **sql#backupConfiguration**. Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` // (MySQL only) Whether binary log is enabled. If backup configuration is // disabled, binarylog must be disabled as well. BinaryLogEnabled *wrapperspb.BoolValue `protobuf:"bytes,4,opt,name=binary_log_enabled,json=binaryLogEnabled,proto3" json:"binary_log_enabled,omitempty"` // Reserved for future use. ReplicationLogArchivingEnabled *wrapperspb.BoolValue `protobuf:"bytes,5,opt,name=replication_log_archiving_enabled,json=replicationLogArchivingEnabled,proto3" json:"replication_log_archiving_enabled,omitempty"` // Location of the backup Location string `protobuf:"bytes,6,opt,name=location,proto3" json:"location,omitempty"` // (Postgres only) Whether point in time recovery is enabled. PointInTimeRecoveryEnabled *wrapperspb.BoolValue `protobuf:"bytes,7,opt,name=point_in_time_recovery_enabled,json=pointInTimeRecoveryEnabled,proto3" json:"point_in_time_recovery_enabled,omitempty"` // Backup retention settings. BackupRetentionSettings *BackupRetentionSettings `protobuf:"bytes,8,opt,name=backup_retention_settings,json=backupRetentionSettings,proto3" json:"backup_retention_settings,omitempty"` // The number of days of transaction logs we retain for point in time // restore, from 1-7. TransactionLogRetentionDays *wrapperspb.Int32Value `protobuf:"bytes,9,opt,name=transaction_log_retention_days,json=transactionLogRetentionDays,proto3" json:"transaction_log_retention_days,omitempty"` // contains filtered or unexported fields }
func (*BackupConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use BackupConfiguration.ProtoReflect.Descriptor instead.
func (x *BackupConfiguration) GetBackupRetentionSettings() *BackupRetentionSettings
func (x *BackupConfiguration) GetBinaryLogEnabled() *wrapperspb.BoolValue
func (x *BackupConfiguration) GetEnabled() *wrapperspb.BoolValue
func (x *BackupConfiguration) GetKind() string
func (x *BackupConfiguration) GetLocation() string
func (x *BackupConfiguration) GetPointInTimeRecoveryEnabled() *wrapperspb.BoolValue
func (x *BackupConfiguration) GetReplicationLogArchivingEnabled() *wrapperspb.BoolValue
func (x *BackupConfiguration) GetStartTime() string
func (x *BackupConfiguration) GetTransactionLogRetentionDays() *wrapperspb.Int32Value
func (*BackupConfiguration) ProtoMessage()
func (x *BackupConfiguration) ProtoReflect() protoreflect.Message
func (x *BackupConfiguration) Reset()
func (x *BackupConfiguration) String() string
Backup context.
type BackupContext struct { // The identifier of the backup. BackupId int64 `protobuf:"varint,1,opt,name=backup_id,json=backupId,proto3" json:"backup_id,omitempty"` // This is always **sql#backupContext**. Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*BackupContext) Descriptor() ([]byte, []int)
Deprecated: Use BackupContext.ProtoReflect.Descriptor instead.
func (x *BackupContext) GetBackupId() int64
func (x *BackupContext) GetKind() string
func (*BackupContext) ProtoMessage()
func (x *BackupContext) ProtoReflect() protoreflect.Message
func (x *BackupContext) Reset()
func (x *BackupContext) String() string
We currently only support backup retention by specifying the number of backups we will retain.
type BackupRetentionSettings struct { // The unit that 'retained_backups' represents. RetentionUnit BackupRetentionSettings_RetentionUnit `protobuf:"varint,1,opt,name=retention_unit,json=retentionUnit,proto3,enum=google.cloud.sql.v1.BackupRetentionSettings_RetentionUnit" json:"retention_unit,omitempty"` // 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. RetainedBackups *wrapperspb.Int32Value `protobuf:"bytes,2,opt,name=retained_backups,json=retainedBackups,proto3" json:"retained_backups,omitempty"` // contains filtered or unexported fields }
func (*BackupRetentionSettings) Descriptor() ([]byte, []int)
Deprecated: Use BackupRetentionSettings.ProtoReflect.Descriptor instead.
func (x *BackupRetentionSettings) GetRetainedBackups() *wrapperspb.Int32Value
func (x *BackupRetentionSettings) GetRetentionUnit() BackupRetentionSettings_RetentionUnit
func (*BackupRetentionSettings) ProtoMessage()
func (x *BackupRetentionSettings) ProtoReflect() protoreflect.Message
func (x *BackupRetentionSettings) Reset()
func (x *BackupRetentionSettings) String() string
The units that retained_backups specifies, we only support COUNT.
type BackupRetentionSettings_RetentionUnit int32
const ( // Backup retention unit is unspecified, will be treated as COUNT. BackupRetentionSettings_RETENTION_UNIT_UNSPECIFIED BackupRetentionSettings_RetentionUnit = 0 // Retention will be by count, eg. "retain the most recent 7 backups". BackupRetentionSettings_COUNT BackupRetentionSettings_RetentionUnit = 1 )
func (BackupRetentionSettings_RetentionUnit) Descriptor() protoreflect.EnumDescriptor
func (x BackupRetentionSettings_RetentionUnit) Enum() *BackupRetentionSettings_RetentionUnit
func (BackupRetentionSettings_RetentionUnit) EnumDescriptor() ([]byte, []int)
Deprecated: Use BackupRetentionSettings_RetentionUnit.Descriptor instead.
func (x BackupRetentionSettings_RetentionUnit) Number() protoreflect.EnumNumber
func (x BackupRetentionSettings_RetentionUnit) String() string
func (BackupRetentionSettings_RetentionUnit) Type() protoreflect.EnumType
A BackupRun resource.
type BackupRun struct { // This is always **sql#backupRun**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The status of this run. Status SqlBackupRunStatus `protobuf:"varint,2,opt,name=status,proto3,enum=google.cloud.sql.v1.SqlBackupRunStatus" json:"status,omitempty"` // 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**. EnqueuedTime *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=enqueued_time,json=enqueuedTime,proto3" json:"enqueued_time,omitempty"` // The identifier for this backup run. Unique only for a specific Cloud SQL // instance. Id int64 `protobuf:"varint,4,opt,name=id,proto3" json:"id,omitempty"` // 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**. StartTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // 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**. EndTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // Information about why the backup operation failed. This is only present if // the run has the FAILED status. Error *OperationError `protobuf:"bytes,7,opt,name=error,proto3" json:"error,omitempty"` // The type of this run; can be either "AUTOMATED" or "ON_DEMAND". This field // defaults to "ON_DEMAND" and is ignored, when specified for insert requests. Type SqlBackupRunType `protobuf:"varint,8,opt,name=type,proto3,enum=google.cloud.sql.v1.SqlBackupRunType" json:"type,omitempty"` // The description of this run, only applicable to on-demand backups. Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"` // 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**. WindowStartTime *timestamppb.Timestamp `protobuf:"bytes,10,opt,name=window_start_time,json=windowStartTime,proto3" json:"window_start_time,omitempty"` // Name of the database instance. Instance string `protobuf:"bytes,11,opt,name=instance,proto3" json:"instance,omitempty"` // The URI of this resource. SelfLink string `protobuf:"bytes,12,opt,name=self_link,json=selfLink,proto3" json:"self_link,omitempty"` // Location of the backups. Location string `protobuf:"bytes,13,opt,name=location,proto3" json:"location,omitempty"` // Encryption configuration specific to a backup. DiskEncryptionConfiguration *DiskEncryptionConfiguration `protobuf:"bytes,16,opt,name=disk_encryption_configuration,json=diskEncryptionConfiguration,proto3" json:"disk_encryption_configuration,omitempty"` // Encryption status specific to a backup. DiskEncryptionStatus *DiskEncryptionStatus `protobuf:"bytes,17,opt,name=disk_encryption_status,json=diskEncryptionStatus,proto3" json:"disk_encryption_status,omitempty"` // Specifies the kind of backup, PHYSICAL or DEFAULT_SNAPSHOT. BackupKind SqlBackupKind `protobuf:"varint,19,opt,name=backup_kind,json=backupKind,proto3,enum=google.cloud.sql.v1.SqlBackupKind" json:"backup_kind,omitempty"` // contains filtered or unexported fields }
func (*BackupRun) Descriptor() ([]byte, []int)
Deprecated: Use BackupRun.ProtoReflect.Descriptor instead.
func (x *BackupRun) GetBackupKind() SqlBackupKind
func (x *BackupRun) GetDescription() string
func (x *BackupRun) GetDiskEncryptionConfiguration() *DiskEncryptionConfiguration
func (x *BackupRun) GetDiskEncryptionStatus() *DiskEncryptionStatus
func (x *BackupRun) GetEndTime() *timestamppb.Timestamp
func (x *BackupRun) GetEnqueuedTime() *timestamppb.Timestamp
func (x *BackupRun) GetError() *OperationError
func (x *BackupRun) GetId() int64
func (x *BackupRun) GetInstance() string
func (x *BackupRun) GetKind() string
func (x *BackupRun) GetLocation() string
func (x *BackupRun) GetSelfLink() string
func (x *BackupRun) GetStartTime() *timestamppb.Timestamp
func (x *BackupRun) GetStatus() SqlBackupRunStatus
func (x *BackupRun) GetType() SqlBackupRunType
func (x *BackupRun) GetWindowStartTime() *timestamppb.Timestamp
func (*BackupRun) ProtoMessage()
func (x *BackupRun) ProtoReflect() protoreflect.Message
func (x *BackupRun) Reset()
func (x *BackupRun) String() string
Backup run list results.
type BackupRunsListResponse struct { // This is always **sql#backupRunsList**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // A list of backup runs in reverse chronological order of the enqueued time. Items []*BackupRun `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // The continuation token, used to page through large result sets. Provide // this value in a subsequent request to return the next page of results. NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*BackupRunsListResponse) Descriptor() ([]byte, []int)
Deprecated: Use BackupRunsListResponse.ProtoReflect.Descriptor instead.
func (x *BackupRunsListResponse) GetItems() []*BackupRun
func (x *BackupRunsListResponse) GetKind() string
func (x *BackupRunsListResponse) GetNextPageToken() string
func (*BackupRunsListResponse) ProtoMessage()
func (x *BackupRunsListResponse) ProtoReflect() protoreflect.Message
func (x *BackupRunsListResponse) Reset()
func (x *BackupRunsListResponse) String() string
Binary log coordinates.
type BinLogCoordinates struct { // Name of the binary log file for a Cloud SQL instance. BinLogFileName string `protobuf:"bytes,1,opt,name=bin_log_file_name,json=binLogFileName,proto3" json:"bin_log_file_name,omitempty"` // Position (offset) within the binary log file. BinLogPosition int64 `protobuf:"varint,2,opt,name=bin_log_position,json=binLogPosition,proto3" json:"bin_log_position,omitempty"` // This is always **sql#binLogCoordinates**. Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*BinLogCoordinates) Descriptor() ([]byte, []int)
Deprecated: Use BinLogCoordinates.ProtoReflect.Descriptor instead.
func (x *BinLogCoordinates) GetBinLogFileName() string
func (x *BinLogCoordinates) GetBinLogPosition() int64
func (x *BinLogCoordinates) GetKind() string
func (*BinLogCoordinates) ProtoMessage()
func (x *BinLogCoordinates) ProtoReflect() protoreflect.Message
func (x *BinLogCoordinates) Reset()
func (x *BinLogCoordinates) String() string
Database instance clone context.
type CloneContext struct { // This is always **sql#cloneContext**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // Reserved for future use. PitrTimestampMs int64 `protobuf:"varint,2,opt,name=pitr_timestamp_ms,json=pitrTimestampMs,proto3" json:"pitr_timestamp_ms,omitempty"` // Name of the Cloud SQL instance to be created as a clone. DestinationInstanceName string `protobuf:"bytes,3,opt,name=destination_instance_name,json=destinationInstanceName,proto3" json:"destination_instance_name,omitempty"` // 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. BinLogCoordinates *BinLogCoordinates `protobuf:"bytes,4,opt,name=bin_log_coordinates,json=binLogCoordinates,proto3" json:"bin_log_coordinates,omitempty"` // Timestamp, if specified, identifies the time to which the source instance // is cloned. PointInTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=point_in_time,json=pointInTime,proto3" json:"point_in_time,omitempty"` // contains filtered or unexported fields }
func (*CloneContext) Descriptor() ([]byte, []int)
Deprecated: Use CloneContext.ProtoReflect.Descriptor instead.
func (x *CloneContext) GetBinLogCoordinates() *BinLogCoordinates
func (x *CloneContext) GetDestinationInstanceName() string
func (x *CloneContext) GetKind() string
func (x *CloneContext) GetPitrTimestampMs() int64
func (x *CloneContext) GetPointInTime() *timestamppb.Timestamp
func (*CloneContext) ProtoMessage()
func (x *CloneContext) ProtoReflect() protoreflect.Message
func (x *CloneContext) Reset()
func (x *CloneContext) String() string
Connect settings retrieval response.
type ConnectSettings struct { // This is always `sql#connectSettings`. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // SSL configuration. ServerCaCert *SslCert `protobuf:"bytes,2,opt,name=server_ca_cert,json=serverCaCert,proto3" json:"server_ca_cert,omitempty"` // The assigned IP addresses for the instance. IpAddresses []*IpMapping `protobuf:"bytes,3,rep,name=ip_addresses,json=ipAddresses,proto3" json:"ip_addresses,omitempty"` // The cloud region for the instance. e.g. **us-central1**, **europe-west1**. // The region cannot be changed after instance creation. Region string `protobuf:"bytes,4,opt,name=region,proto3" json:"region,omitempty"` // The database engine type and version. The **databaseVersion** // field cannot be changed after instance creation. // MySQL instances: **MYSQL_8_0**, **MYSQL_5_7** (default), // or **MYSQL_5_6**. // PostgreSQL instances: **POSTGRES_9_6**, **POSTGRES_10**, // **POSTGRES_11** or **POSTGRES_12** (default). // SQL Server instances: **SQLSERVER_2017_STANDARD** (default), // **SQLSERVER_2017_ENTERPRISE**, **SQLSERVER_2017_EXPRESS**, or // **SQLSERVER_2017_WEB**. DatabaseVersion SqlDatabaseVersion `protobuf:"varint,31,opt,name=database_version,json=databaseVersion,proto3,enum=google.cloud.sql.v1.SqlDatabaseVersion" json:"database_version,omitempty"` // **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. BackendType SqlBackendType `protobuf:"varint,32,opt,name=backend_type,json=backendType,proto3,enum=google.cloud.sql.v1.SqlBackendType" json:"backend_type,omitempty"` // contains filtered or unexported fields }
func (*ConnectSettings) Descriptor() ([]byte, []int)
Deprecated: Use ConnectSettings.ProtoReflect.Descriptor instead.
func (x *ConnectSettings) GetBackendType() SqlBackendType
func (x *ConnectSettings) GetDatabaseVersion() SqlDatabaseVersion
func (x *ConnectSettings) GetIpAddresses() []*IpMapping
func (x *ConnectSettings) GetKind() string
func (x *ConnectSettings) GetRegion() string
func (x *ConnectSettings) GetServerCaCert() *SslCert
func (*ConnectSettings) ProtoMessage()
func (x *ConnectSettings) ProtoReflect() protoreflect.Message
func (x *ConnectSettings) Reset()
func (x *ConnectSettings) String() string
Represents a SQL database on the Cloud SQL instance.
type Database struct { // This is always **sql#database**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The Cloud SQL charset value. Charset string `protobuf:"bytes,2,opt,name=charset,proto3" json:"charset,omitempty"` // The Cloud SQL collation value. Collation string `protobuf:"bytes,3,opt,name=collation,proto3" json:"collation,omitempty"` // This field is deprecated and will be removed from a future version of the // API. Etag string `protobuf:"bytes,4,opt,name=etag,proto3" json:"etag,omitempty"` // The name of the database in the Cloud SQL instance. This does not include // the project ID or instance name. Name string `protobuf:"bytes,5,opt,name=name,proto3" json:"name,omitempty"` // The name of the Cloud SQL instance. This does not include the project ID. Instance string `protobuf:"bytes,6,opt,name=instance,proto3" json:"instance,omitempty"` // The URI of this resource. SelfLink string `protobuf:"bytes,7,opt,name=self_link,json=selfLink,proto3" json:"self_link,omitempty"` // The project ID of the project containing the Cloud SQL database. The Google // apps domain is prefixed if applicable. Project string `protobuf:"bytes,8,opt,name=project,proto3" json:"project,omitempty"` // Types that are assignable to DatabaseDetails: // *Database_SqlserverDatabaseDetails DatabaseDetails isDatabase_DatabaseDetails `protobuf_oneof:"database_details"` // contains filtered or unexported fields }
func (*Database) Descriptor() ([]byte, []int)
Deprecated: Use Database.ProtoReflect.Descriptor instead.
func (x *Database) GetCharset() string
func (x *Database) GetCollation() string
func (m *Database) GetDatabaseDetails() isDatabase_DatabaseDetails
func (x *Database) GetEtag() string
func (x *Database) GetInstance() string
func (x *Database) GetKind() string
func (x *Database) GetName() string
func (x *Database) GetProject() string
func (x *Database) GetSelfLink() string
func (x *Database) GetSqlserverDatabaseDetails() *SqlServerDatabaseDetails
func (*Database) ProtoMessage()
func (x *Database) ProtoReflect() protoreflect.Message
func (x *Database) Reset()
func (x *Database) String() string
Database flags for Cloud SQL instances.
type DatabaseFlags struct { // The 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. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The value of the flag. Booleans are set to **on** for true // and **off** for false. This field must be omitted if the flag // doesn't take a value. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*DatabaseFlags) Descriptor() ([]byte, []int)
Deprecated: Use DatabaseFlags.ProtoReflect.Descriptor instead.
func (x *DatabaseFlags) GetName() string
func (x *DatabaseFlags) GetValue() string
func (*DatabaseFlags) ProtoMessage()
func (x *DatabaseFlags) ProtoReflect() protoreflect.Message
func (x *DatabaseFlags) Reset()
func (x *DatabaseFlags) String() string
A Cloud SQL instance resource.
type DatabaseInstance struct { // This is always **sql#instance**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The current serving state of the Cloud SQL instance. This can be one of the // following: // * **SQL_INSTANCE_STATE_UNSPECIFIED**: The state of the instance is // unknown. // * **RUNNABLE**: The instance is running, or has been stopped by owner. // * **SUSPENDED**: The instance is not available, for example due to // problems with billing. // * **PENDING_DELETE**: The instance is being deleted. // * **PENDING_CREATE**: The instance is being created. // * **MAINTENANCE**: The instance is down for maintenance. // * **FAILED**: The instance creation failed. State DatabaseInstance_SqlInstanceState `protobuf:"varint,2,opt,name=state,proto3,enum=google.cloud.sql.v1.DatabaseInstance_SqlInstanceState" json:"state,omitempty"` // The database engine type and version. The **databaseVersion** field cannot // be changed after instance creation. // * **MySQL instances**: MYSQL_8_0, MYSQL_5_7 (default), or MYSQL_5_6. // * **PostgreSQL instances**: POSTGRES_9_6, POSTGRES_10, POSTGRES_11, // POSTGRES_12, POSTGRES_13 (default). // * **SQL Server instances**: SQLSERVER_2019_STANDARD, // SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS, or SQLSERVER_2019_WEB, // SQLSERVER_2017_STANDARD (default), SQLSERVER_2017_ENTERPRISE, // SQLSERVER_2017_EXPRESS, or SQLSERVER_2017_WEB. DatabaseVersion SqlDatabaseVersion `protobuf:"varint,3,opt,name=database_version,json=databaseVersion,proto3,enum=google.cloud.sql.v1.SqlDatabaseVersion" json:"database_version,omitempty"` // The user settings. Settings *Settings `protobuf:"bytes,4,opt,name=settings,proto3" json:"settings,omitempty"` // This field is deprecated and will be removed from a future version of the // API. Use the **settings.settingsVersion** field instead. Etag string `protobuf:"bytes,5,opt,name=etag,proto3" json:"etag,omitempty"` // The name and status of the failover replica. FailoverReplica *DatabaseInstance_SqlFailoverReplica `protobuf:"bytes,6,opt,name=failover_replica,json=failoverReplica,proto3" json:"failover_replica,omitempty"` // The name of the instance which will act as primary in the replication // setup. MasterInstanceName string `protobuf:"bytes,7,opt,name=master_instance_name,json=masterInstanceName,proto3" json:"master_instance_name,omitempty"` // The replicas of the instance. ReplicaNames []string `protobuf:"bytes,8,rep,name=replica_names,json=replicaNames,proto3" json:"replica_names,omitempty"` // The maximum disk size of the instance in bytes. // // Deprecated: Do not use. MaxDiskSize *wrapperspb.Int64Value `protobuf:"bytes,9,opt,name=max_disk_size,json=maxDiskSize,proto3" json:"max_disk_size,omitempty"` // 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. // // Deprecated: Do not use. CurrentDiskSize *wrapperspb.Int64Value `protobuf:"bytes,10,opt,name=current_disk_size,json=currentDiskSize,proto3" json:"current_disk_size,omitempty"` // The assigned IP addresses for the instance. IpAddresses []*IpMapping `protobuf:"bytes,11,rep,name=ip_addresses,json=ipAddresses,proto3" json:"ip_addresses,omitempty"` // SSL configuration. ServerCaCert *SslCert `protobuf:"bytes,12,opt,name=server_ca_cert,json=serverCaCert,proto3" json:"server_ca_cert,omitempty"` // The instance type. This can be one of the following: // * **CLOUD_SQL_INSTANCE**: A Cloud SQL instance that is not replicating // from a primary instance. // * **ON_PREMISES_INSTANCE**: An instance running on the customer's // premises. // * **READ_REPLICA_INSTANCE**: A Cloud SQL instance configured as a // read-replica. InstanceType SqlInstanceType `protobuf:"varint,13,opt,name=instance_type,json=instanceType,proto3,enum=google.cloud.sql.v1.SqlInstanceType" json:"instance_type,omitempty"` // The project ID of the project containing the Cloud SQL instance. The Google // apps domain is prefixed if applicable. Project string `protobuf:"bytes,14,opt,name=project,proto3" json:"project,omitempty"` // The IPv6 address assigned to the instance. // (Deprecated) This property was applicable only // to First Generation instances. // // Deprecated: Do not use. Ipv6Address string `protobuf:"bytes,15,opt,name=ipv6_address,json=ipv6Address,proto3" json:"ipv6_address,omitempty"` // The service account email address assigned to the instance. <br>This // property is read-only. ServiceAccountEmailAddress string `protobuf:"bytes,16,opt,name=service_account_email_address,json=serviceAccountEmailAddress,proto3" json:"service_account_email_address,omitempty"` // Configuration specific to on-premises instances. OnPremisesConfiguration *OnPremisesConfiguration `protobuf:"bytes,17,opt,name=on_premises_configuration,json=onPremisesConfiguration,proto3" json:"on_premises_configuration,omitempty"` // Configuration specific to failover replicas and read replicas. ReplicaConfiguration *ReplicaConfiguration `protobuf:"bytes,18,opt,name=replica_configuration,json=replicaConfiguration,proto3" json:"replica_configuration,omitempty"` // 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. BackendType SqlBackendType `protobuf:"varint,19,opt,name=backend_type,json=backendType,proto3,enum=google.cloud.sql.v1.SqlBackendType" json:"backend_type,omitempty"` // The URI of this resource. SelfLink string `protobuf:"bytes,20,opt,name=self_link,json=selfLink,proto3" json:"self_link,omitempty"` // If the instance state is SUSPENDED, the reason for the suspension. SuspensionReason []SqlSuspensionReason `protobuf:"varint,21,rep,packed,name=suspension_reason,json=suspensionReason,proto3,enum=google.cloud.sql.v1.SqlSuspensionReason" json:"suspension_reason,omitempty"` // Connection name of the Cloud SQL instance used in connection strings. ConnectionName string `protobuf:"bytes,22,opt,name=connection_name,json=connectionName,proto3" json:"connection_name,omitempty"` // Name of the Cloud SQL instance. This does not include the project ID. Name string `protobuf:"bytes,23,opt,name=name,proto3" json:"name,omitempty"` // The geographical region. Can be: // * **us-central** (**FIRST_GEN** instances only) // * **us-central1** (**SECOND_GEN** instances only) // * **asia-east1** or **europe-west1**. // // Defaults to **us-central** or **us-central1** depending on the instance // type. The region cannot be changed after instance creation. Region string `protobuf:"bytes,24,opt,name=region,proto3" json:"region,omitempty"` // The 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. GceZone string `protobuf:"bytes,25,opt,name=gce_zone,json=gceZone,proto3" json:"gce_zone,omitempty"` // The 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. // Reserved for future use. SecondaryGceZone string `protobuf:"bytes,34,opt,name=secondary_gce_zone,json=secondaryGceZone,proto3" json:"secondary_gce_zone,omitempty"` // Disk encryption configuration specific to an instance. DiskEncryptionConfiguration *DiskEncryptionConfiguration `protobuf:"bytes,26,opt,name=disk_encryption_configuration,json=diskEncryptionConfiguration,proto3" json:"disk_encryption_configuration,omitempty"` // Disk encryption status specific to an instance. DiskEncryptionStatus *DiskEncryptionStatus `protobuf:"bytes,27,opt,name=disk_encryption_status,json=diskEncryptionStatus,proto3" json:"disk_encryption_status,omitempty"` // Initial root password. Use only on creation. RootPassword string `protobuf:"bytes,29,opt,name=root_password,json=rootPassword,proto3" json:"root_password,omitempty"` // The start time of any upcoming scheduled maintenance for this instance. ScheduledMaintenance *DatabaseInstance_SqlScheduledMaintenance `protobuf:"bytes,30,opt,name=scheduled_maintenance,json=scheduledMaintenance,proto3" json:"scheduled_maintenance,omitempty"` // The status indicating if instance satisfiesPzs. // Reserved for future use. SatisfiesPzs *wrapperspb.BoolValue `protobuf:"bytes,35,opt,name=satisfies_pzs,json=satisfiesPzs,proto3" json:"satisfies_pzs,omitempty"` // 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 OutOfDiskReport *DatabaseInstance_SqlOutOfDiskReport `protobuf:"bytes,38,opt,name=out_of_disk_report,json=outOfDiskReport,proto3,oneof" json:"out_of_disk_report,omitempty"` // 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**. CreateTime *timestamppb.Timestamp `protobuf:"bytes,39,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // contains filtered or unexported fields }
func (*DatabaseInstance) Descriptor() ([]byte, []int)
Deprecated: Use DatabaseInstance.ProtoReflect.Descriptor instead.
func (x *DatabaseInstance) GetBackendType() SqlBackendType
func (x *DatabaseInstance) GetConnectionName() string
func (x *DatabaseInstance) GetCreateTime() *timestamppb.Timestamp
func (x *DatabaseInstance) GetCurrentDiskSize() *wrapperspb.Int64Value
Deprecated: Do not use.
func (x *DatabaseInstance) GetDatabaseVersion() SqlDatabaseVersion
func (x *DatabaseInstance) GetDiskEncryptionConfiguration() *DiskEncryptionConfiguration
func (x *DatabaseInstance) GetDiskEncryptionStatus() *DiskEncryptionStatus
func (x *DatabaseInstance) GetEtag() string
func (x *DatabaseInstance) GetFailoverReplica() *DatabaseInstance_SqlFailoverReplica
func (x *DatabaseInstance) GetGceZone() string
func (x *DatabaseInstance) GetInstanceType() SqlInstanceType
func (x *DatabaseInstance) GetIpAddresses() []*IpMapping
func (x *DatabaseInstance) GetIpv6Address() string
Deprecated: Do not use.
func (x *DatabaseInstance) GetKind() string
func (x *DatabaseInstance) GetMasterInstanceName() string
func (x *DatabaseInstance) GetMaxDiskSize() *wrapperspb.Int64Value
Deprecated: Do not use.
func (x *DatabaseInstance) GetName() string
func (x *DatabaseInstance) GetOnPremisesConfiguration() *OnPremisesConfiguration
func (x *DatabaseInstance) GetOutOfDiskReport() *DatabaseInstance_SqlOutOfDiskReport
func (x *DatabaseInstance) GetProject() string
func (x *DatabaseInstance) GetRegion() string
func (x *DatabaseInstance) GetReplicaConfiguration() *ReplicaConfiguration
func (x *DatabaseInstance) GetReplicaNames() []string
func (x *DatabaseInstance) GetRootPassword() string
func (x *DatabaseInstance) GetSatisfiesPzs() *wrapperspb.BoolValue
func (x *DatabaseInstance) GetScheduledMaintenance() *DatabaseInstance_SqlScheduledMaintenance
func (x *DatabaseInstance) GetSecondaryGceZone() string
func (x *DatabaseInstance) GetSelfLink() string
func (x *DatabaseInstance) GetServerCaCert() *SslCert
func (x *DatabaseInstance) GetServiceAccountEmailAddress() string
func (x *DatabaseInstance) GetSettings() *Settings
func (x *DatabaseInstance) GetState() DatabaseInstance_SqlInstanceState
func (x *DatabaseInstance) GetSuspensionReason() []SqlSuspensionReason
func (*DatabaseInstance) ProtoMessage()
func (x *DatabaseInstance) ProtoReflect() protoreflect.Message
func (x *DatabaseInstance) Reset()
func (x *DatabaseInstance) String() string
type DatabaseInstance_SqlFailoverReplica struct { // The name of the failover replica. If specified at instance creation, a // failover replica is created for the instance. The name // doesn't include the project ID. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The availability status of the failover replica. A false status indicates // that the failover replica is out of sync. The primary instance can only // failover to the failover replica when the status is true. Available *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=available,proto3" json:"available,omitempty"` // contains filtered or unexported fields }
func (*DatabaseInstance_SqlFailoverReplica) Descriptor() ([]byte, []int)
Deprecated: Use DatabaseInstance_SqlFailoverReplica.ProtoReflect.Descriptor instead.
func (x *DatabaseInstance_SqlFailoverReplica) GetAvailable() *wrapperspb.BoolValue
func (x *DatabaseInstance_SqlFailoverReplica) GetName() string
func (*DatabaseInstance_SqlFailoverReplica) ProtoMessage()
func (x *DatabaseInstance_SqlFailoverReplica) ProtoReflect() protoreflect.Message
func (x *DatabaseInstance_SqlFailoverReplica) Reset()
func (x *DatabaseInstance_SqlFailoverReplica) String() string
The current serving state of the database instance.
type DatabaseInstance_SqlInstanceState int32
const ( // The state of the instance is unknown. DatabaseInstance_SQL_INSTANCE_STATE_UNSPECIFIED DatabaseInstance_SqlInstanceState = 0 // The instance is running, or has been stopped by owner. DatabaseInstance_RUNNABLE DatabaseInstance_SqlInstanceState = 1 // The instance is not available, for example due to problems with billing. DatabaseInstance_SUSPENDED DatabaseInstance_SqlInstanceState = 2 // The instance is being deleted. DatabaseInstance_PENDING_DELETE DatabaseInstance_SqlInstanceState = 3 // The instance is being created. DatabaseInstance_PENDING_CREATE DatabaseInstance_SqlInstanceState = 4 // The instance is down for maintenance. DatabaseInstance_MAINTENANCE DatabaseInstance_SqlInstanceState = 5 // The creation of the instance failed or a fatal error occurred during // maintenance. DatabaseInstance_FAILED DatabaseInstance_SqlInstanceState = 6 // The instance is under maintenance operations and the database is // available. DatabaseInstance_ONLINE_MAINTENANCE DatabaseInstance_SqlInstanceState = 7 )
func (DatabaseInstance_SqlInstanceState) Descriptor() protoreflect.EnumDescriptor
func (x DatabaseInstance_SqlInstanceState) Enum() *DatabaseInstance_SqlInstanceState
func (DatabaseInstance_SqlInstanceState) EnumDescriptor() ([]byte, []int)
Deprecated: Use DatabaseInstance_SqlInstanceState.Descriptor instead.
func (x DatabaseInstance_SqlInstanceState) Number() protoreflect.EnumNumber
func (x DatabaseInstance_SqlInstanceState) String() string
func (DatabaseInstance_SqlInstanceState) Type() protoreflect.EnumType
This message wraps up the information written by out-of-disk detection job.
type DatabaseInstance_SqlOutOfDiskReport struct { // This field represents the state generated by the proactive database // wellness job for OutOfDisk issues. // * Writers: // * the proactive database wellness job for OOD. // * Readers: // * the proactive database wellness job SqlOutOfDiskState *DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState `protobuf:"varint,1,opt,name=sql_out_of_disk_state,json=sqlOutOfDiskState,proto3,enum=google.cloud.sql.v1.DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState,oneof" json:"sql_out_of_disk_state,omitempty"` // The minimum recommended increase size in GigaBytes // This field is consumed by the frontend // * Writers: // * the proactive database wellness job for OOD. // * Readers: SqlMinRecommendedIncreaseSizeGb *int32 `protobuf:"varint,2,opt,name=sql_min_recommended_increase_size_gb,json=sqlMinRecommendedIncreaseSizeGb,proto3,oneof" json:"sql_min_recommended_increase_size_gb,omitempty"` // contains filtered or unexported fields }
func (*DatabaseInstance_SqlOutOfDiskReport) Descriptor() ([]byte, []int)
Deprecated: Use DatabaseInstance_SqlOutOfDiskReport.ProtoReflect.Descriptor instead.
func (x *DatabaseInstance_SqlOutOfDiskReport) GetSqlMinRecommendedIncreaseSizeGb() int32
func (x *DatabaseInstance_SqlOutOfDiskReport) GetSqlOutOfDiskState() DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState
func (*DatabaseInstance_SqlOutOfDiskReport) ProtoMessage()
func (x *DatabaseInstance_SqlOutOfDiskReport) ProtoReflect() protoreflect.Message
func (x *DatabaseInstance_SqlOutOfDiskReport) Reset()
func (x *DatabaseInstance_SqlOutOfDiskReport) String() string
This enum lists all possible states regarding out-of-disk issues.
type DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState int32
const ( // Unspecified state DatabaseInstance_SqlOutOfDiskReport_SQL_OUT_OF_DISK_STATE_UNSPECIFIED DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState = 0 // The instance has plenty space on data disk DatabaseInstance_SqlOutOfDiskReport_NORMAL DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState = 1 // Data disk is almost used up. It is shutdown to prevent data // corruption. DatabaseInstance_SqlOutOfDiskReport_SOFT_SHUTDOWN DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState = 2 )
func (DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState) Descriptor() protoreflect.EnumDescriptor
func (x DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState) Enum() *DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState
func (DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState) EnumDescriptor() ([]byte, []int)
Deprecated: Use DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState.Descriptor instead.
func (x DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState) Number() protoreflect.EnumNumber
func (x DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState) String() string
func (DatabaseInstance_SqlOutOfDiskReport_SqlOutOfDiskState) Type() protoreflect.EnumType
Any scheduled maintenance for this instance.
type DatabaseInstance_SqlScheduledMaintenance struct { // The start time of any upcoming scheduled maintenance for this instance. StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // Deprecated: Do not use. CanDefer bool `protobuf:"varint,2,opt,name=can_defer,json=canDefer,proto3" json:"can_defer,omitempty"` // If the scheduled maintenance can be rescheduled. CanReschedule bool `protobuf:"varint,3,opt,name=can_reschedule,json=canReschedule,proto3" json:"can_reschedule,omitempty"` // Maintenance cannot be rescheduled to start beyond this deadline. ScheduleDeadlineTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=schedule_deadline_time,json=scheduleDeadlineTime,proto3,oneof" json:"schedule_deadline_time,omitempty"` // contains filtered or unexported fields }
func (*DatabaseInstance_SqlScheduledMaintenance) Descriptor() ([]byte, []int)
Deprecated: Use DatabaseInstance_SqlScheduledMaintenance.ProtoReflect.Descriptor instead.
func (x *DatabaseInstance_SqlScheduledMaintenance) GetCanDefer() bool
Deprecated: Do not use.
func (x *DatabaseInstance_SqlScheduledMaintenance) GetCanReschedule() bool
func (x *DatabaseInstance_SqlScheduledMaintenance) GetScheduleDeadlineTime() *timestamppb.Timestamp
func (x *DatabaseInstance_SqlScheduledMaintenance) GetStartTime() *timestamppb.Timestamp
func (*DatabaseInstance_SqlScheduledMaintenance) ProtoMessage()
func (x *DatabaseInstance_SqlScheduledMaintenance) ProtoReflect() protoreflect.Message
func (x *DatabaseInstance_SqlScheduledMaintenance) Reset()
func (x *DatabaseInstance_SqlScheduledMaintenance) String() string
type Database_SqlserverDatabaseDetails struct { SqlserverDatabaseDetails *SqlServerDatabaseDetails `protobuf:"bytes,9,opt,name=sqlserver_database_details,json=sqlserverDatabaseDetails,proto3,oneof"` }
Database list response.
type DatabasesListResponse struct { // This is always **sql#databasesList**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // List of database resources in the instance. Items []*Database `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*DatabasesListResponse) Descriptor() ([]byte, []int)
Deprecated: Use DatabasesListResponse.ProtoReflect.Descriptor instead.
func (x *DatabasesListResponse) GetItems() []*Database
func (x *DatabasesListResponse) GetKind() string
func (*DatabasesListResponse) ProtoMessage()
func (x *DatabasesListResponse) ProtoReflect() protoreflect.Message
func (x *DatabasesListResponse) Reset()
func (x *DatabasesListResponse) String() string
Read-replica configuration for connecting to the on-premises primary instance.
type DemoteMasterConfiguration struct { // This is always **sql#demoteMasterConfiguration**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // 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. MysqlReplicaConfiguration *DemoteMasterMySqlReplicaConfiguration `protobuf:"bytes,2,opt,name=mysql_replica_configuration,json=mysqlReplicaConfiguration,proto3" json:"mysql_replica_configuration,omitempty"` // contains filtered or unexported fields }
func (*DemoteMasterConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use DemoteMasterConfiguration.ProtoReflect.Descriptor instead.
func (x *DemoteMasterConfiguration) GetKind() string
func (x *DemoteMasterConfiguration) GetMysqlReplicaConfiguration() *DemoteMasterMySqlReplicaConfiguration
func (*DemoteMasterConfiguration) ProtoMessage()
func (x *DemoteMasterConfiguration) ProtoReflect() protoreflect.Message
func (x *DemoteMasterConfiguration) Reset()
func (x *DemoteMasterConfiguration) String() string
Database instance demote primary instance context.
type DemoteMasterContext struct { // This is always **sql#demoteMasterContext**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // Verify GTID consistency for demote operation. Default value: // **True**. Setting this flag to false enables you to bypass 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. VerifyGtidConsistency *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=verify_gtid_consistency,json=verifyGtidConsistency,proto3" json:"verify_gtid_consistency,omitempty"` // The name of the instance which will act as on-premises primary instance // in the replication setup. MasterInstanceName string `protobuf:"bytes,3,opt,name=master_instance_name,json=masterInstanceName,proto3" json:"master_instance_name,omitempty"` // Configuration specific to read-replicas replicating from the on-premises // primary instance. ReplicaConfiguration *DemoteMasterConfiguration `protobuf:"bytes,4,opt,name=replica_configuration,json=replicaConfiguration,proto3" json:"replica_configuration,omitempty"` // Flag to skip replication setup on the instance. SkipReplicationSetup bool `protobuf:"varint,5,opt,name=skip_replication_setup,json=skipReplicationSetup,proto3" json:"skip_replication_setup,omitempty"` // contains filtered or unexported fields }
func (*DemoteMasterContext) Descriptor() ([]byte, []int)
Deprecated: Use DemoteMasterContext.ProtoReflect.Descriptor instead.
func (x *DemoteMasterContext) GetKind() string
func (x *DemoteMasterContext) GetMasterInstanceName() string
func (x *DemoteMasterContext) GetReplicaConfiguration() *DemoteMasterConfiguration
func (x *DemoteMasterContext) GetSkipReplicationSetup() bool
func (x *DemoteMasterContext) GetVerifyGtidConsistency() *wrapperspb.BoolValue
func (*DemoteMasterContext) ProtoMessage()
func (x *DemoteMasterContext) ProtoReflect() protoreflect.Message
func (x *DemoteMasterContext) Reset()
func (x *DemoteMasterContext) String() string
Read-replica configuration specific to MySQL databases.
type DemoteMasterMySqlReplicaConfiguration struct { // This is always **sql#demoteMasterMysqlReplicaConfiguration**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The username for the replication connection. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // The password for the replication connection. Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // PEM representation of the replica's private key. The corresponsing 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. ClientKey string `protobuf:"bytes,4,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"` // PEM representation of the replica's x509 certificate. ClientCertificate string `protobuf:"bytes,5,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"` // PEM representation of the trusted CA's x509 certificate. CaCertificate string `protobuf:"bytes,6,opt,name=ca_certificate,json=caCertificate,proto3" json:"ca_certificate,omitempty"` // contains filtered or unexported fields }
func (*DemoteMasterMySqlReplicaConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use DemoteMasterMySqlReplicaConfiguration.ProtoReflect.Descriptor instead.
func (x *DemoteMasterMySqlReplicaConfiguration) GetCaCertificate() string
func (x *DemoteMasterMySqlReplicaConfiguration) GetClientCertificate() string
func (x *DemoteMasterMySqlReplicaConfiguration) GetClientKey() string
func (x *DemoteMasterMySqlReplicaConfiguration) GetKind() string
func (x *DemoteMasterMySqlReplicaConfiguration) GetPassword() string
func (x *DemoteMasterMySqlReplicaConfiguration) GetUsername() string
func (*DemoteMasterMySqlReplicaConfiguration) ProtoMessage()
func (x *DemoteMasterMySqlReplicaConfiguration) ProtoReflect() protoreflect.Message
func (x *DemoteMasterMySqlReplicaConfiguration) Reset()
func (x *DemoteMasterMySqlReplicaConfiguration) String() string
Deny maintenance Periods. This specifies a date range during when all CSA rollout will be denied.
type DenyMaintenancePeriod struct { // "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 StartDate string `protobuf:"bytes,1,opt,name=start_date,json=startDate,proto3" json:"start_date,omitempty"` // "deny maintenance period" end date. If the year of the end date is empty, // the year of the start date also must be empty. In this case, it means the // no maintenance interval recurs every year. The date is in format yyyy-mm-dd // i.e., 2020-11-01, or mm-dd, i.e., 11-01 EndDate string `protobuf:"bytes,2,opt,name=end_date,json=endDate,proto3" json:"end_date,omitempty"` // Time 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 Time string `protobuf:"bytes,3,opt,name=time,proto3" json:"time,omitempty"` // contains filtered or unexported fields }
func (*DenyMaintenancePeriod) Descriptor() ([]byte, []int)
Deprecated: Use DenyMaintenancePeriod.ProtoReflect.Descriptor instead.
func (x *DenyMaintenancePeriod) GetEndDate() string
func (x *DenyMaintenancePeriod) GetStartDate() string
func (x *DenyMaintenancePeriod) GetTime() string
func (*DenyMaintenancePeriod) ProtoMessage()
func (x *DenyMaintenancePeriod) ProtoReflect() protoreflect.Message
func (x *DenyMaintenancePeriod) Reset()
func (x *DenyMaintenancePeriod) String() string
Disk encryption configuration for an instance.
type DiskEncryptionConfiguration struct { // Resource name of KMS key for disk encryption KmsKeyName string `protobuf:"bytes,1,opt,name=kms_key_name,json=kmsKeyName,proto3" json:"kms_key_name,omitempty"` // This is always **sql#diskEncryptionConfiguration**. Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*DiskEncryptionConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use DiskEncryptionConfiguration.ProtoReflect.Descriptor instead.
func (x *DiskEncryptionConfiguration) GetKind() string
func (x *DiskEncryptionConfiguration) GetKmsKeyName() string
func (*DiskEncryptionConfiguration) ProtoMessage()
func (x *DiskEncryptionConfiguration) ProtoReflect() protoreflect.Message
func (x *DiskEncryptionConfiguration) Reset()
func (x *DiskEncryptionConfiguration) String() string
Disk encryption status for an instance.
type DiskEncryptionStatus struct { // KMS key version used to encrypt the Cloud SQL instance resource KmsKeyVersionName string `protobuf:"bytes,1,opt,name=kms_key_version_name,json=kmsKeyVersionName,proto3" json:"kms_key_version_name,omitempty"` // This is always **sql#diskEncryptionStatus**. Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*DiskEncryptionStatus) Descriptor() ([]byte, []int)
Deprecated: Use DiskEncryptionStatus.ProtoReflect.Descriptor instead.
func (x *DiskEncryptionStatus) GetKind() string
func (x *DiskEncryptionStatus) GetKmsKeyVersionName() string
func (*DiskEncryptionStatus) ProtoMessage()
func (x *DiskEncryptionStatus) ProtoReflect() protoreflect.Message
func (x *DiskEncryptionStatus) Reset()
func (x *DiskEncryptionStatus) String() string
Database instance export context.
type ExportContext struct { // The 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. Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` // Databases to be exported. // * **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. // * **PostgreSQL instances:** You must specify one database to be exported. // If **fileType** is **CSV**, this database must match the one specified in // the **csvExportOptions.selectQuery** property. // * **SQL Server instances:** You must specify one database to be exported, // and the **fileType** must be **BAK**. Databases []string `protobuf:"bytes,2,rep,name=databases,proto3" json:"databases,omitempty"` // This is always **sql#exportContext**. Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` // Options for exporting data as SQL statements. SqlExportOptions *ExportContext_SqlExportOptions `protobuf:"bytes,4,opt,name=sql_export_options,json=sqlExportOptions,proto3" json:"sql_export_options,omitempty"` // Options for exporting data as CSV. **MySQL** and **PostgreSQL** // instances only. CsvExportOptions *ExportContext_SqlCsvExportOptions `protobuf:"bytes,5,opt,name=csv_export_options,json=csvExportOptions,proto3" json:"csv_export_options,omitempty"` // 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. FileType SqlFileType `protobuf:"varint,6,opt,name=file_type,json=fileType,proto3,enum=google.cloud.sql.v1.SqlFileType" json:"file_type,omitempty"` // Option for export offload. Offload *wrapperspb.BoolValue `protobuf:"bytes,8,opt,name=offload,proto3" json:"offload,omitempty"` // contains filtered or unexported fields }
func (*ExportContext) Descriptor() ([]byte, []int)
Deprecated: Use ExportContext.ProtoReflect.Descriptor instead.
func (x *ExportContext) GetCsvExportOptions() *ExportContext_SqlCsvExportOptions
func (x *ExportContext) GetDatabases() []string
func (x *ExportContext) GetFileType() SqlFileType
func (x *ExportContext) GetKind() string
func (x *ExportContext) GetOffload() *wrapperspb.BoolValue
func (x *ExportContext) GetSqlExportOptions() *ExportContext_SqlExportOptions
func (x *ExportContext) GetUri() string
func (*ExportContext) ProtoMessage()
func (x *ExportContext) ProtoReflect() protoreflect.Message
func (x *ExportContext) Reset()
func (x *ExportContext) String() string
type ExportContext_SqlCsvExportOptions struct { // The select query used to extract the data. SelectQuery string `protobuf:"bytes,1,opt,name=select_query,json=selectQuery,proto3" json:"select_query,omitempty"` // Specifies the character that should appear before a data character that // needs to be escaped. EscapeCharacter string `protobuf:"bytes,2,opt,name=escape_character,json=escapeCharacter,proto3" json:"escape_character,omitempty"` // Specifies the quoting character to be used when a data value is quoted. QuoteCharacter string `protobuf:"bytes,3,opt,name=quote_character,json=quoteCharacter,proto3" json:"quote_character,omitempty"` // Specifies the character that separates columns within each row (line) of // the file. FieldsTerminatedBy string `protobuf:"bytes,4,opt,name=fields_terminated_by,json=fieldsTerminatedBy,proto3" json:"fields_terminated_by,omitempty"` // This is used to separate lines. If a line does not contain all fields, // the rest of the columns are set to their default values. LinesTerminatedBy string `protobuf:"bytes,6,opt,name=lines_terminated_by,json=linesTerminatedBy,proto3" json:"lines_terminated_by,omitempty"` // contains filtered or unexported fields }
func (*ExportContext_SqlCsvExportOptions) Descriptor() ([]byte, []int)
Deprecated: Use ExportContext_SqlCsvExportOptions.ProtoReflect.Descriptor instead.
func (x *ExportContext_SqlCsvExportOptions) GetEscapeCharacter() string
func (x *ExportContext_SqlCsvExportOptions) GetFieldsTerminatedBy() string
func (x *ExportContext_SqlCsvExportOptions) GetLinesTerminatedBy() string
func (x *ExportContext_SqlCsvExportOptions) GetQuoteCharacter() string
func (x *ExportContext_SqlCsvExportOptions) GetSelectQuery() string
func (*ExportContext_SqlCsvExportOptions) ProtoMessage()
func (x *ExportContext_SqlCsvExportOptions) ProtoReflect() protoreflect.Message
func (x *ExportContext_SqlCsvExportOptions) Reset()
func (x *ExportContext_SqlCsvExportOptions) String() string
type ExportContext_SqlExportOptions struct { // Tables to export, or that were exported, from the specified database. If // you specify tables, specify one and only one database. For PostgreSQL // instances, you can specify only one table. Tables []string `protobuf:"bytes,1,rep,name=tables,proto3" json:"tables,omitempty"` // Export only schemas. SchemaOnly *wrapperspb.BoolValue `protobuf:"bytes,2,opt,name=schema_only,json=schemaOnly,proto3" json:"schema_only,omitempty"` MysqlExportOptions *ExportContext_SqlExportOptions_MysqlExportOptions `protobuf:"bytes,3,opt,name=mysql_export_options,json=mysqlExportOptions,proto3" json:"mysql_export_options,omitempty"` // contains filtered or unexported fields }
func (*ExportContext_SqlExportOptions) Descriptor() ([]byte, []int)
Deprecated: Use ExportContext_SqlExportOptions.ProtoReflect.Descriptor instead.
func (x *ExportContext_SqlExportOptions) GetMysqlExportOptions() *ExportContext_SqlExportOptions_MysqlExportOptions
func (x *ExportContext_SqlExportOptions) GetSchemaOnly() *wrapperspb.BoolValue
func (x *ExportContext_SqlExportOptions) GetTables() []string
func (*ExportContext_SqlExportOptions) ProtoMessage()
func (x *ExportContext_SqlExportOptions) ProtoReflect() protoreflect.Message
func (x *ExportContext_SqlExportOptions) Reset()
func (x *ExportContext_SqlExportOptions) String() string
Options for exporting from MySQL.
type ExportContext_SqlExportOptions_MysqlExportOptions struct { // Option to include SQL statement required to set up replication. // * If set to **1**, the dump file includes // a CHANGE MASTER TO statement with the binary log coordinates, // and --set-gtid-purged is set to ON. // * If set to **2**, the CHANGE MASTER TO statement is written as // a SQL comment and has no effect. // * If set to any value other than **1**, --set-gtid-purged is set // to OFF. MasterData *wrapperspb.Int32Value `protobuf:"bytes,1,opt,name=master_data,json=masterData,proto3" json:"master_data,omitempty"` // contains filtered or unexported fields }
func (*ExportContext_SqlExportOptions_MysqlExportOptions) Descriptor() ([]byte, []int)
Deprecated: Use ExportContext_SqlExportOptions_MysqlExportOptions.ProtoReflect.Descriptor instead.
func (x *ExportContext_SqlExportOptions_MysqlExportOptions) GetMasterData() *wrapperspb.Int32Value
func (*ExportContext_SqlExportOptions_MysqlExportOptions) ProtoMessage()
func (x *ExportContext_SqlExportOptions_MysqlExportOptions) ProtoReflect() protoreflect.Message
func (x *ExportContext_SqlExportOptions_MysqlExportOptions) Reset()
func (x *ExportContext_SqlExportOptions_MysqlExportOptions) String() string
Database instance failover context.
type FailoverContext struct { // The current settings version of this instance. Request will be rejected if // this version doesn't match the current settings version. SettingsVersion int64 `protobuf:"varint,1,opt,name=settings_version,json=settingsVersion,proto3" json:"settings_version,omitempty"` // This is always **sql#failoverContext**. Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*FailoverContext) Descriptor() ([]byte, []int)
Deprecated: Use FailoverContext.ProtoReflect.Descriptor instead.
func (x *FailoverContext) GetKind() string
func (x *FailoverContext) GetSettingsVersion() int64
func (*FailoverContext) ProtoMessage()
func (x *FailoverContext) ProtoReflect() protoreflect.Message
func (x *FailoverContext) Reset()
func (x *FailoverContext) String() string
A flag resource.
type Flag struct { // This is the name of the flag. Flag names always use underscores, not // hyphens, for example: **max_allowed_packet** Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // 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**. Type SqlFlagType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.sql.v1.SqlFlagType" json:"type,omitempty"` // The database version this flag applies to. Can be **MYSQL_8_0**, // **MYSQL_5_6**, or **MYSQL_5_7**. AppliesTo []SqlDatabaseVersion `protobuf:"varint,3,rep,packed,name=applies_to,json=appliesTo,proto3,enum=google.cloud.sql.v1.SqlDatabaseVersion" json:"applies_to,omitempty"` // For **STRING** flags, a list of strings that the value can be set to. AllowedStringValues []string `protobuf:"bytes,4,rep,name=allowed_string_values,json=allowedStringValues,proto3" json:"allowed_string_values,omitempty"` // For **INTEGER** flags, the minimum allowed value. MinValue *wrapperspb.Int64Value `protobuf:"bytes,5,opt,name=min_value,json=minValue,proto3" json:"min_value,omitempty"` // For **INTEGER** flags, the maximum allowed value. MaxValue *wrapperspb.Int64Value `protobuf:"bytes,6,opt,name=max_value,json=maxValue,proto3" json:"max_value,omitempty"` // Indicates whether changing this flag will trigger a database restart. Only // applicable to Second Generation instances. RequiresRestart *wrapperspb.BoolValue `protobuf:"bytes,7,opt,name=requires_restart,json=requiresRestart,proto3" json:"requires_restart,omitempty"` // This is always **sql#flag**. Kind string `protobuf:"bytes,8,opt,name=kind,proto3" json:"kind,omitempty"` // Whether or not the flag is considered in beta. InBeta *wrapperspb.BoolValue `protobuf:"bytes,9,opt,name=in_beta,json=inBeta,proto3" json:"in_beta,omitempty"` // Use this field if only certain integers are accepted. Can be combined // with min_value and max_value to add additional values. AllowedIntValues []int64 `protobuf:"varint,10,rep,packed,name=allowed_int_values,json=allowedIntValues,proto3" json:"allowed_int_values,omitempty"` // contains filtered or unexported fields }
func (*Flag) Descriptor() ([]byte, []int)
Deprecated: Use Flag.ProtoReflect.Descriptor instead.
func (x *Flag) GetAllowedIntValues() []int64
func (x *Flag) GetAllowedStringValues() []string
func (x *Flag) GetAppliesTo() []SqlDatabaseVersion
func (x *Flag) GetInBeta() *wrapperspb.BoolValue
func (x *Flag) GetKind() string
func (x *Flag) GetMaxValue() *wrapperspb.Int64Value
func (x *Flag) GetMinValue() *wrapperspb.Int64Value
func (x *Flag) GetName() string
func (x *Flag) GetRequiresRestart() *wrapperspb.BoolValue
func (x *Flag) GetType() SqlFlagType
func (*Flag) ProtoMessage()
func (x *Flag) ProtoReflect() protoreflect.Message
func (x *Flag) Reset()
func (x *Flag) String() string
Flags list response.
type FlagsListResponse struct { // This is always **sql#flagsList**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // List of flags. Items []*Flag `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*FlagsListResponse) Descriptor() ([]byte, []int)
Deprecated: Use FlagsListResponse.ProtoReflect.Descriptor instead.
func (x *FlagsListResponse) GetItems() []*Flag
func (x *FlagsListResponse) GetKind() string
func (*FlagsListResponse) ProtoMessage()
func (x *FlagsListResponse) ProtoReflect() protoreflect.Message
func (x *FlagsListResponse) Reset()
func (x *FlagsListResponse) String() string
Ephemeral certificate creation request.
type GenerateEphemeralCertRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // PEM encoded public key to include in the signed certificate. PublicKey string `protobuf:"bytes,3,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Optional. Access token to include in the signed certificate. AccessToken string `protobuf:"bytes,4,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // Optional. Optional snapshot read timestamp to trade freshness for performance. ReadTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // contains filtered or unexported fields }
func (*GenerateEphemeralCertRequest) Descriptor() ([]byte, []int)
Deprecated: Use GenerateEphemeralCertRequest.ProtoReflect.Descriptor instead.
func (x *GenerateEphemeralCertRequest) GetAccessToken() string
func (x *GenerateEphemeralCertRequest) GetInstance() string
func (x *GenerateEphemeralCertRequest) GetProject() string
func (x *GenerateEphemeralCertRequest) GetPublicKey() string
func (x *GenerateEphemeralCertRequest) GetReadTime() *timestamppb.Timestamp
func (*GenerateEphemeralCertRequest) ProtoMessage()
func (x *GenerateEphemeralCertRequest) ProtoReflect() protoreflect.Message
func (x *GenerateEphemeralCertRequest) Reset()
func (x *GenerateEphemeralCertRequest) String() string
Ephemeral certificate creation request.
type GenerateEphemeralCertResponse struct { // Generated cert EphemeralCert *SslCert `protobuf:"bytes,1,opt,name=ephemeral_cert,json=ephemeralCert,proto3" json:"ephemeral_cert,omitempty"` // contains filtered or unexported fields }
func (*GenerateEphemeralCertResponse) Descriptor() ([]byte, []int)
Deprecated: Use GenerateEphemeralCertResponse.ProtoReflect.Descriptor instead.
func (x *GenerateEphemeralCertResponse) GetEphemeralCert() *SslCert
func (*GenerateEphemeralCertResponse) ProtoMessage()
func (x *GenerateEphemeralCertResponse) ProtoReflect() protoreflect.Message
func (x *GenerateEphemeralCertResponse) Reset()
func (x *GenerateEphemeralCertResponse) String() string
Connect settings retrieval request.
type GetConnectSettingsRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // Optional. Optional snapshot read timestamp to trade freshness for performance. ReadTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=read_time,json=readTime,proto3" json:"read_time,omitempty"` // contains filtered or unexported fields }
func (*GetConnectSettingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetConnectSettingsRequest.ProtoReflect.Descriptor instead.
func (x *GetConnectSettingsRequest) GetInstance() string
func (x *GetConnectSettingsRequest) GetProject() string
func (x *GetConnectSettingsRequest) GetReadTime() *timestamppb.Timestamp
func (*GetConnectSettingsRequest) ProtoMessage()
func (x *GetConnectSettingsRequest) ProtoReflect() protoreflect.Message
func (x *GetConnectSettingsRequest) Reset()
func (x *GetConnectSettingsRequest) String() string
Database instance import context.
type ImportContext struct { // Path 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. Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"` // The 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. If // **fileType** is **CSV**, one database must be specified. Database string `protobuf:"bytes,2,opt,name=database,proto3" json:"database,omitempty"` // This is always **sql#importContext**. Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` // The file type for the specified uri. <br>**SQL**: The file // contains SQL statements. <br>**CSV**: The file contains CSV data. FileType SqlFileType `protobuf:"varint,4,opt,name=file_type,json=fileType,proto3,enum=google.cloud.sql.v1.SqlFileType" json:"file_type,omitempty"` // Options for importing data as CSV. CsvImportOptions *ImportContext_SqlCsvImportOptions `protobuf:"bytes,5,opt,name=csv_import_options,json=csvImportOptions,proto3" json:"csv_import_options,omitempty"` // The PostgreSQL user for this import operation. PostgreSQL instances only. ImportUser string `protobuf:"bytes,6,opt,name=import_user,json=importUser,proto3" json:"import_user,omitempty"` // Import parameters specific to SQL Server .BAK files BakImportOptions *ImportContext_SqlBakImportOptions `protobuf:"bytes,7,opt,name=bak_import_options,json=bakImportOptions,proto3" json:"bak_import_options,omitempty"` // contains filtered or unexported fields }
func (*ImportContext) Descriptor() ([]byte, []int)
Deprecated: Use ImportContext.ProtoReflect.Descriptor instead.
func (x *ImportContext) GetBakImportOptions() *ImportContext_SqlBakImportOptions
func (x *ImportContext) GetCsvImportOptions() *ImportContext_SqlCsvImportOptions
func (x *ImportContext) GetDatabase() string
func (x *ImportContext) GetFileType() SqlFileType
func (x *ImportContext) GetImportUser() string
func (x *ImportContext) GetKind() string
func (x *ImportContext) GetUri() string
func (*ImportContext) ProtoMessage()
func (x *ImportContext) ProtoReflect() protoreflect.Message
func (x *ImportContext) Reset()
func (x *ImportContext) String() string
type ImportContext_SqlBakImportOptions struct { EncryptionOptions *ImportContext_SqlBakImportOptions_EncryptionOptions `protobuf:"bytes,1,opt,name=encryption_options,json=encryptionOptions,proto3" json:"encryption_options,omitempty"` // contains filtered or unexported fields }
func (*ImportContext_SqlBakImportOptions) Descriptor() ([]byte, []int)
Deprecated: Use ImportContext_SqlBakImportOptions.ProtoReflect.Descriptor instead.
func (x *ImportContext_SqlBakImportOptions) GetEncryptionOptions() *ImportContext_SqlBakImportOptions_EncryptionOptions
func (*ImportContext_SqlBakImportOptions) ProtoMessage()
func (x *ImportContext_SqlBakImportOptions) ProtoReflect() protoreflect.Message
func (x *ImportContext_SqlBakImportOptions) Reset()
func (x *ImportContext_SqlBakImportOptions) String() string
type ImportContext_SqlBakImportOptions_EncryptionOptions struct { // Path to the Certificate (.cer) in Cloud Storage, in the form // **gs://bucketName/fileName**. The instance must have // write permissions to the bucket and read access to the file. CertPath string `protobuf:"bytes,1,opt,name=cert_path,json=certPath,proto3" json:"cert_path,omitempty"` // Path to the Certificate Private Key (.pvk) in Cloud Storage, in the // form **gs://bucketName/fileName**. The instance must have // write permissions to the bucket and read access to the file. PvkPath string `protobuf:"bytes,2,opt,name=pvk_path,json=pvkPath,proto3" json:"pvk_path,omitempty"` // Password that encrypts the private key PvkPassword string `protobuf:"bytes,3,opt,name=pvk_password,json=pvkPassword,proto3" json:"pvk_password,omitempty"` // contains filtered or unexported fields }
func (*ImportContext_SqlBakImportOptions_EncryptionOptions) Descriptor() ([]byte, []int)
Deprecated: Use ImportContext_SqlBakImportOptions_EncryptionOptions.ProtoReflect.Descriptor instead.
func (x *ImportContext_SqlBakImportOptions_EncryptionOptions) GetCertPath() string
func (x *ImportContext_SqlBakImportOptions_EncryptionOptions) GetPvkPassword() string
func (x *ImportContext_SqlBakImportOptions_EncryptionOptions) GetPvkPath() string
func (*ImportContext_SqlBakImportOptions_EncryptionOptions) ProtoMessage()
func (x *ImportContext_SqlBakImportOptions_EncryptionOptions) ProtoReflect() protoreflect.Message
func (x *ImportContext_SqlBakImportOptions_EncryptionOptions) Reset()
func (x *ImportContext_SqlBakImportOptions_EncryptionOptions) String() string
type ImportContext_SqlCsvImportOptions struct { // The table to which CSV data is imported. Table string `protobuf:"bytes,1,opt,name=table,proto3" json:"table,omitempty"` // The columns to which CSV data is imported. If not specified, all columns // of the database table are loaded with CSV data. Columns []string `protobuf:"bytes,2,rep,name=columns,proto3" json:"columns,omitempty"` // Specifies the character that should appear before a data character that // needs to be escaped. EscapeCharacter string `protobuf:"bytes,4,opt,name=escape_character,json=escapeCharacter,proto3" json:"escape_character,omitempty"` // Specifies the quoting character to be used when a data value is quoted. QuoteCharacter string `protobuf:"bytes,5,opt,name=quote_character,json=quoteCharacter,proto3" json:"quote_character,omitempty"` // Specifies the character that separates columns within each row (line) of // the file. FieldsTerminatedBy string `protobuf:"bytes,6,opt,name=fields_terminated_by,json=fieldsTerminatedBy,proto3" json:"fields_terminated_by,omitempty"` // This is used to separate lines. If a line does not contain all fields, // the rest of the columns are set to their default values. LinesTerminatedBy string `protobuf:"bytes,8,opt,name=lines_terminated_by,json=linesTerminatedBy,proto3" json:"lines_terminated_by,omitempty"` // contains filtered or unexported fields }
func (*ImportContext_SqlCsvImportOptions) Descriptor() ([]byte, []int)
Deprecated: Use ImportContext_SqlCsvImportOptions.ProtoReflect.Descriptor instead.
func (x *ImportContext_SqlCsvImportOptions) GetColumns() []string
func (x *ImportContext_SqlCsvImportOptions) GetEscapeCharacter() string
func (x *ImportContext_SqlCsvImportOptions) GetFieldsTerminatedBy() string
func (x *ImportContext_SqlCsvImportOptions) GetLinesTerminatedBy() string
func (x *ImportContext_SqlCsvImportOptions) GetQuoteCharacter() string
func (x *ImportContext_SqlCsvImportOptions) GetTable() string
func (*ImportContext_SqlCsvImportOptions) ProtoMessage()
func (x *ImportContext_SqlCsvImportOptions) ProtoReflect() protoreflect.Message
func (x *ImportContext_SqlCsvImportOptions) Reset()
func (x *ImportContext_SqlCsvImportOptions) String() string
Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional configuration.
type InsightsConfig struct { // Whether Query Insights feature is enabled. QueryInsightsEnabled bool `protobuf:"varint,1,opt,name=query_insights_enabled,json=queryInsightsEnabled,proto3" json:"query_insights_enabled,omitempty"` // Whether Query Insights will record client address when enabled. RecordClientAddress bool `protobuf:"varint,2,opt,name=record_client_address,json=recordClientAddress,proto3" json:"record_client_address,omitempty"` // Whether Query Insights will record application tags from query when // enabled. RecordApplicationTags bool `protobuf:"varint,3,opt,name=record_application_tags,json=recordApplicationTags,proto3" json:"record_application_tags,omitempty"` // Maximum query length stored in bytes. Default value: 1024 bytes. // Range: 256-4500 bytes. Query length more 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. QueryStringLength *wrapperspb.Int32Value `protobuf:"bytes,4,opt,name=query_string_length,json=queryStringLength,proto3" json:"query_string_length,omitempty"` // Number of query execution plans captured by Insights per minute // for all queries combined. Default is 5. QueryPlansPerMinute *wrapperspb.Int32Value `protobuf:"bytes,5,opt,name=query_plans_per_minute,json=queryPlansPerMinute,proto3" json:"query_plans_per_minute,omitempty"` // contains filtered or unexported fields }
func (*InsightsConfig) Descriptor() ([]byte, []int)
Deprecated: Use InsightsConfig.ProtoReflect.Descriptor instead.
func (x *InsightsConfig) GetQueryInsightsEnabled() bool
func (x *InsightsConfig) GetQueryPlansPerMinute() *wrapperspb.Int32Value
func (x *InsightsConfig) GetQueryStringLength() *wrapperspb.Int32Value
func (x *InsightsConfig) GetRecordApplicationTags() bool
func (x *InsightsConfig) GetRecordClientAddress() bool
func (*InsightsConfig) ProtoMessage()
func (x *InsightsConfig) ProtoReflect() protoreflect.Message
func (x *InsightsConfig) Reset()
func (x *InsightsConfig) String() string
Reference to another Cloud SQL instance.
type InstanceReference struct { // The name of the Cloud SQL instance being referenced. // This does not include the project ID. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The region of the Cloud SQL instance being referenced. Region string `protobuf:"bytes,2,opt,name=region,proto3" json:"region,omitempty"` // The project ID of the Cloud SQL instance being referenced. // The default is the same project ID as the instance references it. Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*InstanceReference) Descriptor() ([]byte, []int)
Deprecated: Use InstanceReference.ProtoReflect.Descriptor instead.
func (x *InstanceReference) GetName() string
func (x *InstanceReference) GetProject() string
func (x *InstanceReference) GetRegion() string
func (*InstanceReference) ProtoMessage()
func (x *InstanceReference) ProtoReflect() protoreflect.Message
func (x *InstanceReference) Reset()
func (x *InstanceReference) String() string
Database instance clone request.
type InstancesCloneRequest struct { // Contains details about the clone operation. CloneContext *CloneContext `protobuf:"bytes,1,opt,name=clone_context,json=cloneContext,proto3" json:"clone_context,omitempty"` // contains filtered or unexported fields }
func (*InstancesCloneRequest) Descriptor() ([]byte, []int)
Deprecated: Use InstancesCloneRequest.ProtoReflect.Descriptor instead.
func (x *InstancesCloneRequest) GetCloneContext() *CloneContext
func (*InstancesCloneRequest) ProtoMessage()
func (x *InstancesCloneRequest) ProtoReflect() protoreflect.Message
func (x *InstancesCloneRequest) Reset()
func (x *InstancesCloneRequest) String() string
Database demote primary instance request.
type InstancesDemoteMasterRequest struct { // Contains details about the demoteMaster operation. DemoteMasterContext *DemoteMasterContext `protobuf:"bytes,1,opt,name=demote_master_context,json=demoteMasterContext,proto3" json:"demote_master_context,omitempty"` // contains filtered or unexported fields }
func (*InstancesDemoteMasterRequest) Descriptor() ([]byte, []int)
Deprecated: Use InstancesDemoteMasterRequest.ProtoReflect.Descriptor instead.
func (x *InstancesDemoteMasterRequest) GetDemoteMasterContext() *DemoteMasterContext
func (*InstancesDemoteMasterRequest) ProtoMessage()
func (x *InstancesDemoteMasterRequest) ProtoReflect() protoreflect.Message
func (x *InstancesDemoteMasterRequest) Reset()
func (x *InstancesDemoteMasterRequest) String() string
Database instance export request.
type InstancesExportRequest struct { // Contains details about the export operation. ExportContext *ExportContext `protobuf:"bytes,1,opt,name=export_context,json=exportContext,proto3" json:"export_context,omitempty"` // contains filtered or unexported fields }
func (*InstancesExportRequest) Descriptor() ([]byte, []int)
Deprecated: Use InstancesExportRequest.ProtoReflect.Descriptor instead.
func (x *InstancesExportRequest) GetExportContext() *ExportContext
func (*InstancesExportRequest) ProtoMessage()
func (x *InstancesExportRequest) ProtoReflect() protoreflect.Message
func (x *InstancesExportRequest) Reset()
func (x *InstancesExportRequest) String() string
Instance failover request.
type InstancesFailoverRequest struct { // Failover Context. FailoverContext *FailoverContext `protobuf:"bytes,1,opt,name=failover_context,json=failoverContext,proto3" json:"failover_context,omitempty"` // contains filtered or unexported fields }
func (*InstancesFailoverRequest) Descriptor() ([]byte, []int)
Deprecated: Use InstancesFailoverRequest.ProtoReflect.Descriptor instead.
func (x *InstancesFailoverRequest) GetFailoverContext() *FailoverContext
func (*InstancesFailoverRequest) ProtoMessage()
func (x *InstancesFailoverRequest) ProtoReflect() protoreflect.Message
func (x *InstancesFailoverRequest) Reset()
func (x *InstancesFailoverRequest) String() string
Database instance import request.
type InstancesImportRequest struct { // Contains details about the import operation. ImportContext *ImportContext `protobuf:"bytes,1,opt,name=import_context,json=importContext,proto3" json:"import_context,omitempty"` // contains filtered or unexported fields }
func (*InstancesImportRequest) Descriptor() ([]byte, []int)
Deprecated: Use InstancesImportRequest.ProtoReflect.Descriptor instead.
func (x *InstancesImportRequest) GetImportContext() *ImportContext
func (*InstancesImportRequest) ProtoMessage()
func (x *InstancesImportRequest) ProtoReflect() protoreflect.Message
func (x *InstancesImportRequest) Reset()
func (x *InstancesImportRequest) String() string
Database instances list response.
type InstancesListResponse struct { // This is always **sql#instancesList**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // List of warnings that occurred while handling the request. Warnings []*ApiWarning `protobuf:"bytes,2,rep,name=warnings,proto3" json:"warnings,omitempty"` // List of database instance resources. Items []*DatabaseInstance `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` // The continuation token, used to page through large result sets. Provide // this value in a subsequent request to return the next page of results. NextPageToken string `protobuf:"bytes,4,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*InstancesListResponse) Descriptor() ([]byte, []int)
Deprecated: Use InstancesListResponse.ProtoReflect.Descriptor instead.
func (x *InstancesListResponse) GetItems() []*DatabaseInstance
func (x *InstancesListResponse) GetKind() string
func (x *InstancesListResponse) GetNextPageToken() string
func (x *InstancesListResponse) GetWarnings() []*ApiWarning
func (*InstancesListResponse) ProtoMessage()
func (x *InstancesListResponse) ProtoReflect() protoreflect.Message
func (x *InstancesListResponse) Reset()
func (x *InstancesListResponse) String() string
Instances ListServerCas response.
type InstancesListServerCasResponse struct { // List of server CA certificates for the instance. Certs []*SslCert `protobuf:"bytes,1,rep,name=certs,proto3" json:"certs,omitempty"` ActiveVersion string `protobuf:"bytes,2,opt,name=active_version,json=activeVersion,proto3" json:"active_version,omitempty"` // This is always **sql#instancesListServerCas**. Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*InstancesListServerCasResponse) Descriptor() ([]byte, []int)
Deprecated: Use InstancesListServerCasResponse.ProtoReflect.Descriptor instead.
func (x *InstancesListServerCasResponse) GetActiveVersion() string
func (x *InstancesListServerCasResponse) GetCerts() []*SslCert
func (x *InstancesListServerCasResponse) GetKind() string
func (*InstancesListServerCasResponse) ProtoMessage()
func (x *InstancesListServerCasResponse) ProtoReflect() protoreflect.Message
func (x *InstancesListServerCasResponse) Reset()
func (x *InstancesListServerCasResponse) String() string
Database instance restore backup request.
type InstancesRestoreBackupRequest struct { // Parameters required to perform the restore backup operation. RestoreBackupContext *RestoreBackupContext `protobuf:"bytes,1,opt,name=restore_backup_context,json=restoreBackupContext,proto3" json:"restore_backup_context,omitempty"` // contains filtered or unexported fields }
func (*InstancesRestoreBackupRequest) Descriptor() ([]byte, []int)
Deprecated: Use InstancesRestoreBackupRequest.ProtoReflect.Descriptor instead.
func (x *InstancesRestoreBackupRequest) GetRestoreBackupContext() *RestoreBackupContext
func (*InstancesRestoreBackupRequest) ProtoMessage()
func (x *InstancesRestoreBackupRequest) ProtoReflect() protoreflect.Message
func (x *InstancesRestoreBackupRequest) Reset()
func (x *InstancesRestoreBackupRequest) String() string
Rotate server CA request.
type InstancesRotateServerCaRequest struct { // Contains details about the rotate server CA operation. RotateServerCaContext *RotateServerCaContext `protobuf:"bytes,1,opt,name=rotate_server_ca_context,json=rotateServerCaContext,proto3" json:"rotate_server_ca_context,omitempty"` // contains filtered or unexported fields }
func (*InstancesRotateServerCaRequest) Descriptor() ([]byte, []int)
Deprecated: Use InstancesRotateServerCaRequest.ProtoReflect.Descriptor instead.
func (x *InstancesRotateServerCaRequest) GetRotateServerCaContext() *RotateServerCaContext
func (*InstancesRotateServerCaRequest) ProtoMessage()
func (x *InstancesRotateServerCaRequest) ProtoReflect() protoreflect.Message
func (x *InstancesRotateServerCaRequest) Reset()
func (x *InstancesRotateServerCaRequest) String() string
Instance truncate log request.
type InstancesTruncateLogRequest struct { // Contains details about the truncate log operation. TruncateLogContext *TruncateLogContext `protobuf:"bytes,1,opt,name=truncate_log_context,json=truncateLogContext,proto3" json:"truncate_log_context,omitempty"` // contains filtered or unexported fields }
func (*InstancesTruncateLogRequest) Descriptor() ([]byte, []int)
Deprecated: Use InstancesTruncateLogRequest.ProtoReflect.Descriptor instead.
func (x *InstancesTruncateLogRequest) GetTruncateLogContext() *TruncateLogContext
func (*InstancesTruncateLogRequest) ProtoMessage()
func (x *InstancesTruncateLogRequest) ProtoReflect() protoreflect.Message
func (x *InstancesTruncateLogRequest) Reset()
func (x *InstancesTruncateLogRequest) String() string
IP Management configuration.
type IpConfiguration struct { // Whether the instance is assigned a public IP address or not. Ipv4Enabled *wrapperspb.BoolValue `protobuf:"bytes,1,opt,name=ipv4_enabled,json=ipv4Enabled,proto3" json:"ipv4_enabled,omitempty"` // 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**. This setting can // be updated, but it cannot be removed after it is set. PrivateNetwork string `protobuf:"bytes,2,opt,name=private_network,json=privateNetwork,proto3" json:"private_network,omitempty"` // Whether SSL connections over IP are enforced or not. RequireSsl *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=require_ssl,json=requireSsl,proto3" json:"require_ssl,omitempty"` // 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: **192.168.100.0/24**). AuthorizedNetworks []*AclEntry `protobuf:"bytes,4,rep,name=authorized_networks,json=authorizedNetworks,proto3" json:"authorized_networks,omitempty"` // The name of the allocated ip range for the private ip CloudSQL 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])?.` // Reserved for future use. AllocatedIpRange string `protobuf:"bytes,6,opt,name=allocated_ip_range,json=allocatedIpRange,proto3" json:"allocated_ip_range,omitempty"` // contains filtered or unexported fields }
func (*IpConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use IpConfiguration.ProtoReflect.Descriptor instead.
func (x *IpConfiguration) GetAllocatedIpRange() string
func (x *IpConfiguration) GetAuthorizedNetworks() []*AclEntry
func (x *IpConfiguration) GetIpv4Enabled() *wrapperspb.BoolValue
func (x *IpConfiguration) GetPrivateNetwork() string
func (x *IpConfiguration) GetRequireSsl() *wrapperspb.BoolValue
func (*IpConfiguration) ProtoMessage()
func (x *IpConfiguration) ProtoReflect() protoreflect.Message
func (x *IpConfiguration) Reset()
func (x *IpConfiguration) String() string
Database instance IP Mapping.
type IpMapping struct { // 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. Type SqlIpAddressType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.sql.v1.SqlIpAddressType" json:"type,omitempty"` // The IP address assigned. IpAddress string `protobuf:"bytes,2,opt,name=ip_address,json=ipAddress,proto3" json:"ip_address,omitempty"` // 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. TimeToRetire *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=time_to_retire,json=timeToRetire,proto3" json:"time_to_retire,omitempty"` // contains filtered or unexported fields }
func (*IpMapping) Descriptor() ([]byte, []int)
Deprecated: Use IpMapping.ProtoReflect.Descriptor instead.
func (x *IpMapping) GetIpAddress() string
func (x *IpMapping) GetTimeToRetire() *timestamppb.Timestamp
func (x *IpMapping) GetType() SqlIpAddressType
func (*IpMapping) ProtoMessage()
func (x *IpMapping) ProtoReflect() protoreflect.Message
func (x *IpMapping) Reset()
func (x *IpMapping) String() string
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.
type LocationPreference struct { // The App Engine application to follow, it must be in the same region as the // Cloud SQL instance. // // Deprecated: Do not use. FollowGaeApplication string `protobuf:"bytes,1,opt,name=follow_gae_application,json=followGaeApplication,proto3" json:"follow_gae_application,omitempty"` // The preferred Compute Engine zone (for example: us-central1-a, // us-central1-b, etc.). Zone string `protobuf:"bytes,2,opt,name=zone,proto3" json:"zone,omitempty"` // The preferred Compute Engine zone for the secondary/failover // (for example: us-central1-a, us-central1-b, etc.). // Reserved for future use. SecondaryZone string `protobuf:"bytes,4,opt,name=secondary_zone,json=secondaryZone,proto3" json:"secondary_zone,omitempty"` // This is always **sql#locationPreference**. Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*LocationPreference) Descriptor() ([]byte, []int)
Deprecated: Use LocationPreference.ProtoReflect.Descriptor instead.
func (x *LocationPreference) GetFollowGaeApplication() string
Deprecated: Do not use.
func (x *LocationPreference) GetKind() string
func (x *LocationPreference) GetSecondaryZone() string
func (x *LocationPreference) GetZone() string
func (*LocationPreference) ProtoMessage()
func (x *LocationPreference) ProtoReflect() protoreflect.Message
func (x *LocationPreference) Reset()
func (x *LocationPreference) String() string
Maintenance window. This specifies when a Cloud SQL instance is restarted for system maintenance purposes.
type MaintenanceWindow struct { // hour of day - 0 to 23. Hour *wrapperspb.Int32Value `protobuf:"bytes,1,opt,name=hour,proto3" json:"hour,omitempty"` // day of week (1-7), starting on Monday. Day *wrapperspb.Int32Value `protobuf:"bytes,2,opt,name=day,proto3" json:"day,omitempty"` // Maintenance timing setting: **canary** (Earlier) or **stable** (Later). // [Learn // more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-timing-2ndgen). UpdateTrack SqlUpdateTrack `protobuf:"varint,3,opt,name=update_track,json=updateTrack,proto3,enum=google.cloud.sql.v1.SqlUpdateTrack" json:"update_track,omitempty"` // This is always **sql#maintenanceWindow**. Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*MaintenanceWindow) Descriptor() ([]byte, []int)
Deprecated: Use MaintenanceWindow.ProtoReflect.Descriptor instead.
func (x *MaintenanceWindow) GetDay() *wrapperspb.Int32Value
func (x *MaintenanceWindow) GetHour() *wrapperspb.Int32Value
func (x *MaintenanceWindow) GetKind() string
func (x *MaintenanceWindow) GetUpdateTrack() SqlUpdateTrack
func (*MaintenanceWindow) ProtoMessage()
func (x *MaintenanceWindow) ProtoReflect() protoreflect.Message
func (x *MaintenanceWindow) Reset()
func (x *MaintenanceWindow) String() string
Read-replica configuration specific to MySQL databases.
type MySqlReplicaConfiguration struct { // Path 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. DumpFilePath string `protobuf:"bytes,1,opt,name=dump_file_path,json=dumpFilePath,proto3" json:"dump_file_path,omitempty"` // The username for the replication connection. Username string `protobuf:"bytes,2,opt,name=username,proto3" json:"username,omitempty"` // The password for the replication connection. Password string `protobuf:"bytes,3,opt,name=password,proto3" json:"password,omitempty"` // Seconds to wait between connect retries. MySQL's default is 60 seconds. ConnectRetryInterval *wrapperspb.Int32Value `protobuf:"bytes,4,opt,name=connect_retry_interval,json=connectRetryInterval,proto3" json:"connect_retry_interval,omitempty"` // Interval in milliseconds between replication heartbeats. MasterHeartbeatPeriod *wrapperspb.Int64Value `protobuf:"bytes,5,opt,name=master_heartbeat_period,json=masterHeartbeatPeriod,proto3" json:"master_heartbeat_period,omitempty"` // PEM representation of the trusted CA's x509 certificate. CaCertificate string `protobuf:"bytes,6,opt,name=ca_certificate,json=caCertificate,proto3" json:"ca_certificate,omitempty"` // PEM representation of the replica's x509 certificate. ClientCertificate string `protobuf:"bytes,7,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"` // PEM representation of the replica's private key. The corresponsing public // key is encoded in the client's certificate. ClientKey string `protobuf:"bytes,8,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"` // A list of permissible ciphers to use for SSL encryption. SslCipher string `protobuf:"bytes,9,opt,name=ssl_cipher,json=sslCipher,proto3" json:"ssl_cipher,omitempty"` // Whether or not to check the primary instance's Common Name value in the // certificate that it sends during the SSL handshake. VerifyServerCertificate *wrapperspb.BoolValue `protobuf:"bytes,10,opt,name=verify_server_certificate,json=verifyServerCertificate,proto3" json:"verify_server_certificate,omitempty"` // This is always **sql#mysqlReplicaConfiguration**. Kind string `protobuf:"bytes,11,opt,name=kind,proto3" json:"kind,omitempty"` // contains filtered or unexported fields }
func (*MySqlReplicaConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use MySqlReplicaConfiguration.ProtoReflect.Descriptor instead.
func (x *MySqlReplicaConfiguration) GetCaCertificate() string
func (x *MySqlReplicaConfiguration) GetClientCertificate() string
func (x *MySqlReplicaConfiguration) GetClientKey() string
func (x *MySqlReplicaConfiguration) GetConnectRetryInterval() *wrapperspb.Int32Value
func (x *MySqlReplicaConfiguration) GetDumpFilePath() string
func (x *MySqlReplicaConfiguration) GetKind() string
func (x *MySqlReplicaConfiguration) GetMasterHeartbeatPeriod() *wrapperspb.Int64Value
func (x *MySqlReplicaConfiguration) GetPassword() string
func (x *MySqlReplicaConfiguration) GetSslCipher() string
func (x *MySqlReplicaConfiguration) GetUsername() string
func (x *MySqlReplicaConfiguration) GetVerifyServerCertificate() *wrapperspb.BoolValue
func (*MySqlReplicaConfiguration) ProtoMessage()
func (x *MySqlReplicaConfiguration) ProtoReflect() protoreflect.Message
func (x *MySqlReplicaConfiguration) Reset()
func (x *MySqlReplicaConfiguration) String() string
MySQL-specific external server sync settings.
type MySqlSyncConfig struct { // Flags to use for the initial dump. InitialSyncFlags []*SyncFlags `protobuf:"bytes,1,rep,name=initial_sync_flags,json=initialSyncFlags,proto3" json:"initial_sync_flags,omitempty"` // contains filtered or unexported fields }
func (*MySqlSyncConfig) Descriptor() ([]byte, []int)
Deprecated: Use MySqlSyncConfig.ProtoReflect.Descriptor instead.
func (x *MySqlSyncConfig) GetInitialSyncFlags() []*SyncFlags
func (*MySqlSyncConfig) ProtoMessage()
func (x *MySqlSyncConfig) ProtoReflect() protoreflect.Message
func (x *MySqlSyncConfig) Reset()
func (x *MySqlSyncConfig) String() string
On-premises instance configuration.
type OnPremisesConfiguration struct { // The host and port of the on-premises instance in host:port format HostPort string `protobuf:"bytes,1,opt,name=host_port,json=hostPort,proto3" json:"host_port,omitempty"` // This is always **sql#onPremisesConfiguration**. Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"` // The username for connecting to on-premises instance. Username string `protobuf:"bytes,3,opt,name=username,proto3" json:"username,omitempty"` // The password for connecting to on-premises instance. Password string `protobuf:"bytes,4,opt,name=password,proto3" json:"password,omitempty"` // PEM representation of the trusted CA's x509 certificate. CaCertificate string `protobuf:"bytes,5,opt,name=ca_certificate,json=caCertificate,proto3" json:"ca_certificate,omitempty"` // PEM representation of the replica's x509 certificate. ClientCertificate string `protobuf:"bytes,6,opt,name=client_certificate,json=clientCertificate,proto3" json:"client_certificate,omitempty"` // PEM representation of the replica's private key. The corresponsing public // key is encoded in the client's certificate. ClientKey string `protobuf:"bytes,7,opt,name=client_key,json=clientKey,proto3" json:"client_key,omitempty"` // The dump file to create the Cloud SQL replica. DumpFilePath string `protobuf:"bytes,8,opt,name=dump_file_path,json=dumpFilePath,proto3" json:"dump_file_path,omitempty"` // The reference to Cloud SQL instance if the source is Cloud SQL. SourceInstance *InstanceReference `protobuf:"bytes,15,opt,name=source_instance,json=sourceInstance,proto3" json:"source_instance,omitempty"` // contains filtered or unexported fields }
func (*OnPremisesConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use OnPremisesConfiguration.ProtoReflect.Descriptor instead.
func (x *OnPremisesConfiguration) GetCaCertificate() string
func (x *OnPremisesConfiguration) GetClientCertificate() string
func (x *OnPremisesConfiguration) GetClientKey() string
func (x *OnPremisesConfiguration) GetDumpFilePath() string
func (x *OnPremisesConfiguration) GetHostPort() string
func (x *OnPremisesConfiguration) GetKind() string
func (x *OnPremisesConfiguration) GetPassword() string
func (x *OnPremisesConfiguration) GetSourceInstance() *InstanceReference
func (x *OnPremisesConfiguration) GetUsername() string
func (*OnPremisesConfiguration) ProtoMessage()
func (x *OnPremisesConfiguration) ProtoReflect() protoreflect.Message
func (x *OnPremisesConfiguration) Reset()
func (x *OnPremisesConfiguration) String() string
An Operation resource. For successful operations that return an Operation resource, only the fields relevant to the operation are populated in the resource.
type Operation struct { // This is always **sql#operation**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` TargetLink string `protobuf:"bytes,2,opt,name=target_link,json=targetLink,proto3" json:"target_link,omitempty"` // The status of an operation. Valid values are: // * **PENDING** // * **RUNNING** // * **DONE** // * **SQL_OPERATION_STATUS_UNSPECIFIED** Status Operation_SqlOperationStatus `protobuf:"varint,3,opt,name=status,proto3,enum=google.cloud.sql.v1.Operation_SqlOperationStatus" json:"status,omitempty"` // The email address of the user who initiated this operation. User string `protobuf:"bytes,4,opt,name=user,proto3" json:"user,omitempty"` // 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**. InsertTime *timestamppb.Timestamp `protobuf:"bytes,5,opt,name=insert_time,json=insertTime,proto3" json:"insert_time,omitempty"` // 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**. StartTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` // 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**. EndTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"` // If errors occurred during processing of this operation, this field will be // populated. Error *OperationErrors `protobuf:"bytes,8,opt,name=error,proto3" json:"error,omitempty"` // 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** OperationType Operation_SqlOperationType `protobuf:"varint,9,opt,name=operation_type,json=operationType,proto3,enum=google.cloud.sql.v1.Operation_SqlOperationType" json:"operation_type,omitempty"` // The context for import operation, if applicable. ImportContext *ImportContext `protobuf:"bytes,10,opt,name=import_context,json=importContext,proto3" json:"import_context,omitempty"` // The context for export operation, if applicable. ExportContext *ExportContext `protobuf:"bytes,11,opt,name=export_context,json=exportContext,proto3" json:"export_context,omitempty"` // The context for backup operation, if applicable. BackupContext *BackupContext `protobuf:"bytes,17,opt,name=backup_context,json=backupContext,proto3" json:"backup_context,omitempty"` // An identifier that uniquely identifies the operation. You can use this // identifier to retrieve the Operations resource that has information about // the operation. Name string `protobuf:"bytes,12,opt,name=name,proto3" json:"name,omitempty"` // Name of the database instance related to this operation. TargetId string `protobuf:"bytes,13,opt,name=target_id,json=targetId,proto3" json:"target_id,omitempty"` // The URI of this resource. SelfLink string `protobuf:"bytes,14,opt,name=self_link,json=selfLink,proto3" json:"self_link,omitempty"` // The project ID of the target instance related to this operation. TargetProject string `protobuf:"bytes,15,opt,name=target_project,json=targetProject,proto3" json:"target_project,omitempty"` // contains filtered or unexported fields }
func (*Operation) Descriptor() ([]byte, []int)
Deprecated: Use Operation.ProtoReflect.Descriptor instead.
func (x *Operation) GetBackupContext() *BackupContext
func (x *Operation) GetEndTime() *timestamppb.Timestamp
func (x *Operation) GetError() *OperationErrors
func (x *Operation) GetExportContext() *ExportContext
func (x *Operation) GetImportContext() *ImportContext
func (x *Operation) GetInsertTime() *timestamppb.Timestamp
func (x *Operation) GetKind() string
func (x *Operation) GetName() string
func (x *Operation) GetOperationType() Operation_SqlOperationType
func (x *Operation) GetSelfLink() string
func (x *Operation) GetStartTime() *timestamppb.Timestamp
func (x *Operation) GetStatus() Operation_SqlOperationStatus
func (x *Operation) GetTargetId() string
func (x *Operation) GetTargetLink() string
func (x *Operation) GetTargetProject() string
func (x *Operation) GetUser() string
func (*Operation) ProtoMessage()
func (x *Operation) ProtoReflect() protoreflect.Message
func (x *Operation) Reset()
func (x *Operation) String() string
Database instance operation error.
type OperationError struct { // This is always **sql#operationError**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // Identifies the specific error that occurred. Code string `protobuf:"bytes,2,opt,name=code,proto3" json:"code,omitempty"` // Additional information about the error encountered. Message string `protobuf:"bytes,3,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*OperationError) Descriptor() ([]byte, []int)
Deprecated: Use OperationError.ProtoReflect.Descriptor instead.
func (x *OperationError) GetCode() string
func (x *OperationError) GetKind() string
func (x *OperationError) GetMessage() string
func (*OperationError) ProtoMessage()
func (x *OperationError) ProtoReflect() protoreflect.Message
func (x *OperationError) Reset()
func (x *OperationError) String() string
Database instance operation errors list wrapper.
type OperationErrors struct { // This is always **sql#operationErrors**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The list of errors encountered while processing this operation. Errors []*OperationError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` // contains filtered or unexported fields }
func (*OperationErrors) Descriptor() ([]byte, []int)
Deprecated: Use OperationErrors.ProtoReflect.Descriptor instead.
func (x *OperationErrors) GetErrors() []*OperationError
func (x *OperationErrors) GetKind() string
func (*OperationErrors) ProtoMessage()
func (x *OperationErrors) ProtoReflect() protoreflect.Message
func (x *OperationErrors) Reset()
func (x *OperationErrors) String() string
The status of an operation.
type Operation_SqlOperationStatus int32
const ( // The state of the operation is unknown. Operation_SQL_OPERATION_STATUS_UNSPECIFIED Operation_SqlOperationStatus = 0 // The operation has been queued, but has not started yet. Operation_PENDING Operation_SqlOperationStatus = 1 // The operation is running. Operation_RUNNING Operation_SqlOperationStatus = 2 // The operation completed. Operation_DONE Operation_SqlOperationStatus = 3 )
func (Operation_SqlOperationStatus) Descriptor() protoreflect.EnumDescriptor
func (x Operation_SqlOperationStatus) Enum() *Operation_SqlOperationStatus
func (Operation_SqlOperationStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use Operation_SqlOperationStatus.Descriptor instead.
func (x Operation_SqlOperationStatus) Number() protoreflect.EnumNumber
func (x Operation_SqlOperationStatus) String() string
func (Operation_SqlOperationStatus) Type() protoreflect.EnumType
The type of Cloud SQL operation.
type Operation_SqlOperationType int32
const ( // Unknown operation type. Operation_SQL_OPERATION_TYPE_UNSPECIFIED Operation_SqlOperationType = 0 // Imports data into a Cloud SQL instance. Operation_IMPORT Operation_SqlOperationType = 1 // Exports data from a Cloud SQL instance to a Cloud Storage // bucket. Operation_EXPORT Operation_SqlOperationType = 2 // Creates a new Cloud SQL instance. Operation_CREATE Operation_SqlOperationType = 3 // Updates the settings of a Cloud SQL instance. Operation_UPDATE Operation_SqlOperationType = 4 // Deletes a Cloud SQL instance. Operation_DELETE Operation_SqlOperationType = 5 // Restarts the Cloud SQL instance. Operation_RESTART Operation_SqlOperationType = 6 // Deprecated: Do not use. Operation_BACKUP Operation_SqlOperationType = 7 // Deprecated: Do not use. Operation_SNAPSHOT Operation_SqlOperationType = 8 // Performs instance backup. Operation_BACKUP_VOLUME Operation_SqlOperationType = 9 // Deletes an instance backup. Operation_DELETE_VOLUME Operation_SqlOperationType = 10 // Restores an instance backup. Operation_RESTORE_VOLUME Operation_SqlOperationType = 11 // Injects a privileged user in mysql for MOB instances. Operation_INJECT_USER Operation_SqlOperationType = 12 // Clones a Cloud SQL instance. Operation_CLONE Operation_SqlOperationType = 14 // Stops replication on a Cloud SQL read replica instance. Operation_STOP_REPLICA Operation_SqlOperationType = 15 // Starts replication on a Cloud SQL read replica instance. Operation_START_REPLICA Operation_SqlOperationType = 16 // Promotes a Cloud SQL replica instance. Operation_PROMOTE_REPLICA Operation_SqlOperationType = 17 // Creates a Cloud SQL replica instance. Operation_CREATE_REPLICA Operation_SqlOperationType = 18 // Creates a new user in a Cloud SQL instance. Operation_CREATE_USER Operation_SqlOperationType = 19 // Deletes a user from a Cloud SQL instance. Operation_DELETE_USER Operation_SqlOperationType = 20 // Updates an existing user in a Cloud SQL instance. Operation_UPDATE_USER Operation_SqlOperationType = 21 // Creates a database in the Cloud SQL instance. Operation_CREATE_DATABASE Operation_SqlOperationType = 22 // Deletes a database in the Cloud SQL instance. Operation_DELETE_DATABASE Operation_SqlOperationType = 23 // Updates a database in the Cloud SQL instance. Operation_UPDATE_DATABASE Operation_SqlOperationType = 24 // Performs failover of an HA-enabled Cloud SQL // failover replica. Operation_FAILOVER Operation_SqlOperationType = 25 // Deletes the backup taken by a backup run. Operation_DELETE_BACKUP Operation_SqlOperationType = 26 Operation_RECREATE_REPLICA Operation_SqlOperationType = 27 // Truncates a general or slow log table in MySQL. Operation_TRUNCATE_LOG Operation_SqlOperationType = 28 // Demotes the stand-alone instance to be a Cloud SQL // read replica for an external database server. Operation_DEMOTE_MASTER Operation_SqlOperationType = 29 // Indicates that the instance is currently in maintenance. Maintenance // typically causes the instance to be unavailable for 1-3 minutes. Operation_MAINTENANCE Operation_SqlOperationType = 30 // This field is deprecated, and will be removed in future version of API. // // Deprecated: Do not use. Operation_ENABLE_PRIVATE_IP Operation_SqlOperationType = 31 // Deprecated: Do not use. Operation_DEFER_MAINTENANCE Operation_SqlOperationType = 32 // Creates clone instance. // // Deprecated: Do not use. Operation_CREATE_CLONE Operation_SqlOperationType = 33 // Reschedule maintenance to another time. Operation_RESCHEDULE_MAINTENANCE Operation_SqlOperationType = 34 // Starts external sync of a Cloud SQL EM replica to an external primary // instance. Operation_START_EXTERNAL_SYNC Operation_SqlOperationType = 35 )
func (Operation_SqlOperationType) Descriptor() protoreflect.EnumDescriptor
func (x Operation_SqlOperationType) Enum() *Operation_SqlOperationType
func (Operation_SqlOperationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use Operation_SqlOperationType.Descriptor instead.
func (x Operation_SqlOperationType) Number() protoreflect.EnumNumber
func (x Operation_SqlOperationType) String() string
func (Operation_SqlOperationType) Type() protoreflect.EnumType
Operations list response.
type OperationsListResponse struct { // This is always **sql#operationsList**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // List of operation resources. Items []*Operation `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // The continuation token, used to page through large result sets. Provide // this value in a subsequent request to return the next page of results. NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*OperationsListResponse) Descriptor() ([]byte, []int)
Deprecated: Use OperationsListResponse.ProtoReflect.Descriptor instead.
func (x *OperationsListResponse) GetItems() []*Operation
func (x *OperationsListResponse) GetKind() string
func (x *OperationsListResponse) GetNextPageToken() string
func (*OperationsListResponse) ProtoMessage()
func (x *OperationsListResponse) ProtoReflect() protoreflect.Message
func (x *OperationsListResponse) Reset()
func (x *OperationsListResponse) String() string
Read-replica configuration for connecting to the primary instance.
type ReplicaConfiguration struct { // This is always **sql#replicaConfiguration**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // 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. MysqlReplicaConfiguration *MySqlReplicaConfiguration `protobuf:"bytes,2,opt,name=mysql_replica_configuration,json=mysqlReplicaConfiguration,proto3" json:"mysql_replica_configuration,omitempty"` // 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. FailoverTarget *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=failover_target,json=failoverTarget,proto3" json:"failover_target,omitempty"` // contains filtered or unexported fields }
func (*ReplicaConfiguration) Descriptor() ([]byte, []int)
Deprecated: Use ReplicaConfiguration.ProtoReflect.Descriptor instead.
func (x *ReplicaConfiguration) GetFailoverTarget() *wrapperspb.BoolValue
func (x *ReplicaConfiguration) GetKind() string
func (x *ReplicaConfiguration) GetMysqlReplicaConfiguration() *MySqlReplicaConfiguration
func (*ReplicaConfiguration) ProtoMessage()
func (x *ReplicaConfiguration) ProtoReflect() protoreflect.Message
func (x *ReplicaConfiguration) Reset()
func (x *ReplicaConfiguration) String() string
Database instance restore from backup context. Backup context contains source instance id and project id.
type RestoreBackupContext struct { // This is always **sql#restoreBackupContext**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The ID of the backup run to restore from. BackupRunId int64 `protobuf:"varint,2,opt,name=backup_run_id,json=backupRunId,proto3" json:"backup_run_id,omitempty"` // The ID of the instance that the backup was taken from. InstanceId string `protobuf:"bytes,3,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"` // The full project ID of the source instance. Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*RestoreBackupContext) Descriptor() ([]byte, []int)
Deprecated: Use RestoreBackupContext.ProtoReflect.Descriptor instead.
func (x *RestoreBackupContext) GetBackupRunId() int64
func (x *RestoreBackupContext) GetInstanceId() string
func (x *RestoreBackupContext) GetKind() string
func (x *RestoreBackupContext) GetProject() string
func (*RestoreBackupContext) ProtoMessage()
func (x *RestoreBackupContext) ProtoReflect() protoreflect.Message
func (x *RestoreBackupContext) Reset()
func (x *RestoreBackupContext) String() string
Instance rotate server CA context.
type RotateServerCaContext struct { // This is always **sql#rotateServerCaContext**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The fingerprint of the next version to be rotated to. If left unspecified, // will be rotated to the most recently added server CA version. NextVersion string `protobuf:"bytes,2,opt,name=next_version,json=nextVersion,proto3" json:"next_version,omitempty"` // contains filtered or unexported fields }
func (*RotateServerCaContext) Descriptor() ([]byte, []int)
Deprecated: Use RotateServerCaContext.ProtoReflect.Descriptor instead.
func (x *RotateServerCaContext) GetKind() string
func (x *RotateServerCaContext) GetNextVersion() string
func (*RotateServerCaContext) ProtoMessage()
func (x *RotateServerCaContext) ProtoReflect() protoreflect.Message
func (x *RotateServerCaContext) Reset()
func (x *RotateServerCaContext) String() string
Database instance settings.
type Settings struct { // 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. SettingsVersion *wrapperspb.Int64Value `protobuf:"bytes,1,opt,name=settings_version,json=settingsVersion,proto3" json:"settings_version,omitempty"` // The App Engine app IDs that can access this instance. // (Deprecated) Applied to First Generation instances only. // // Deprecated: Do not use. AuthorizedGaeApplications []string `protobuf:"bytes,2,rep,name=authorized_gae_applications,json=authorizedGaeApplications,proto3" json:"authorized_gae_applications,omitempty"` // The tier (or machine type) for this instance, for example // **db-custom-1-3840**. Tier string `protobuf:"bytes,3,opt,name=tier,proto3" json:"tier,omitempty"` // This is always **sql#settings**. Kind string `protobuf:"bytes,4,opt,name=kind,proto3" json:"kind,omitempty"` // User-provided labels, represented as a dictionary where each label is a // single key value pair. UserLabels map[string]string `protobuf:"bytes,5,rep,name=user_labels,json=userLabels,proto3" json:"user_labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` // 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). AvailabilityType SqlAvailabilityType `protobuf:"varint,6,opt,name=availability_type,json=availabilityType,proto3,enum=google.cloud.sql.v1.SqlAvailabilityType" json:"availability_type,omitempty"` // The pricing plan for this instance. This can be either **PER_USE** or // **PACKAGE**. Only **PER_USE** is supported for Second Generation instances. PricingPlan SqlPricingPlan `protobuf:"varint,7,opt,name=pricing_plan,json=pricingPlan,proto3,enum=google.cloud.sql.v1.SqlPricingPlan" json:"pricing_plan,omitempty"` // The type of replication this instance uses. This can be either // **ASYNCHRONOUS** or **SYNCHRONOUS**. (Deprecated) This property was only // applicable to First Generation instances. // // Deprecated: Do not use. ReplicationType SqlReplicationType `protobuf:"varint,8,opt,name=replication_type,json=replicationType,proto3,enum=google.cloud.sql.v1.SqlReplicationType" json:"replication_type,omitempty"` // The maximum size to which storage capacity can be automatically increased. // The default value is 0, which specifies that there is no limit. StorageAutoResizeLimit *wrapperspb.Int64Value `protobuf:"bytes,9,opt,name=storage_auto_resize_limit,json=storageAutoResizeLimit,proto3" json:"storage_auto_resize_limit,omitempty"` // 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. ActivationPolicy Settings_SqlActivationPolicy `protobuf:"varint,10,opt,name=activation_policy,json=activationPolicy,proto3,enum=google.cloud.sql.v1.Settings_SqlActivationPolicy" json:"activation_policy,omitempty"` // 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. IpConfiguration *IpConfiguration `protobuf:"bytes,11,opt,name=ip_configuration,json=ipConfiguration,proto3" json:"ip_configuration,omitempty"` // Configuration to increase storage size automatically. The default value is // true. StorageAutoResize *wrapperspb.BoolValue `protobuf:"bytes,12,opt,name=storage_auto_resize,json=storageAutoResize,proto3" json:"storage_auto_resize,omitempty"` // 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. LocationPreference *LocationPreference `protobuf:"bytes,13,opt,name=location_preference,json=locationPreference,proto3" json:"location_preference,omitempty"` // The database flags passed to the instance at startup. DatabaseFlags []*DatabaseFlags `protobuf:"bytes,14,rep,name=database_flags,json=databaseFlags,proto3" json:"database_flags,omitempty"` // The type of data disk: **PD_SSD** (default) or **PD_HDD**. Not used for // First Generation instances. DataDiskType SqlDataDiskType `protobuf:"varint,15,opt,name=data_disk_type,json=dataDiskType,proto3,enum=google.cloud.sql.v1.SqlDataDiskType" json:"data_disk_type,omitempty"` // The maintenance window for this instance. This specifies when the instance // can be restarted for maintenance purposes. MaintenanceWindow *MaintenanceWindow `protobuf:"bytes,16,opt,name=maintenance_window,json=maintenanceWindow,proto3" json:"maintenance_window,omitempty"` // The daily backup configuration for the instance. BackupConfiguration *BackupConfiguration `protobuf:"bytes,17,opt,name=backup_configuration,json=backupConfiguration,proto3" json:"backup_configuration,omitempty"` // Configuration specific to read replica instances. Indicates whether // replication is enabled or not. DatabaseReplicationEnabled *wrapperspb.BoolValue `protobuf:"bytes,18,opt,name=database_replication_enabled,json=databaseReplicationEnabled,proto3" json:"database_replication_enabled,omitempty"` // 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. // // Deprecated: Do not use. CrashSafeReplicationEnabled *wrapperspb.BoolValue `protobuf:"bytes,19,opt,name=crash_safe_replication_enabled,json=crashSafeReplicationEnabled,proto3" json:"crash_safe_replication_enabled,omitempty"` // The size of data disk, in GB. The data disk size minimum is 10GB. DataDiskSizeGb *wrapperspb.Int64Value `protobuf:"bytes,20,opt,name=data_disk_size_gb,json=dataDiskSizeGb,proto3" json:"data_disk_size_gb,omitempty"` // Active Directory configuration, relevant only for Cloud SQL for SQL Server. ActiveDirectoryConfig *SqlActiveDirectoryConfig `protobuf:"bytes,22,opt,name=active_directory_config,json=activeDirectoryConfig,proto3" json:"active_directory_config,omitempty"` // The name of server Instance collation. Collation string `protobuf:"bytes,23,opt,name=collation,proto3" json:"collation,omitempty"` // Deny maintenance periods DenyMaintenancePeriods []*DenyMaintenancePeriod `protobuf:"bytes,24,rep,name=deny_maintenance_periods,json=denyMaintenancePeriods,proto3" json:"deny_maintenance_periods,omitempty"` // Insights configuration, for now relevant only for Postgres. InsightsConfig *InsightsConfig `protobuf:"bytes,25,opt,name=insights_config,json=insightsConfig,proto3" json:"insights_config,omitempty"` // SQL Server specific audit configuration. SqlServerAuditConfig *SqlServerAuditConfig `protobuf:"bytes,29,opt,name=sql_server_audit_config,json=sqlServerAuditConfig,proto3" json:"sql_server_audit_config,omitempty"` // contains filtered or unexported fields }
func (*Settings) Descriptor() ([]byte, []int)
Deprecated: Use Settings.ProtoReflect.Descriptor instead.
func (x *Settings) GetActivationPolicy() Settings_SqlActivationPolicy
func (x *Settings) GetActiveDirectoryConfig() *SqlActiveDirectoryConfig
func (x *Settings) GetAuthorizedGaeApplications() []string
Deprecated: Do not use.
func (x *Settings) GetAvailabilityType() SqlAvailabilityType
func (x *Settings) GetBackupConfiguration() *BackupConfiguration
func (x *Settings) GetCollation() string
func (x *Settings) GetCrashSafeReplicationEnabled() *wrapperspb.BoolValue
Deprecated: Do not use.
func (x *Settings) GetDataDiskSizeGb() *wrapperspb.Int64Value
func (x *Settings) GetDataDiskType() SqlDataDiskType
func (x *Settings) GetDatabaseFlags() []*DatabaseFlags
func (x *Settings) GetDatabaseReplicationEnabled() *wrapperspb.BoolValue
func (x *Settings) GetDenyMaintenancePeriods() []*DenyMaintenancePeriod
func (x *Settings) GetInsightsConfig() *InsightsConfig
func (x *Settings) GetIpConfiguration() *IpConfiguration
func (x *Settings) GetKind() string
func (x *Settings) GetLocationPreference() *LocationPreference
func (x *Settings) GetMaintenanceWindow() *MaintenanceWindow
func (x *Settings) GetPricingPlan() SqlPricingPlan
func (x *Settings) GetReplicationType() SqlReplicationType
Deprecated: Do not use.
func (x *Settings) GetSettingsVersion() *wrapperspb.Int64Value
func (x *Settings) GetSqlServerAuditConfig() *SqlServerAuditConfig
func (x *Settings) GetStorageAutoResize() *wrapperspb.BoolValue
func (x *Settings) GetStorageAutoResizeLimit() *wrapperspb.Int64Value
func (x *Settings) GetTier() string
func (x *Settings) GetUserLabels() map[string]string
func (*Settings) ProtoMessage()
func (x *Settings) ProtoReflect() protoreflect.Message
func (x *Settings) Reset()
func (x *Settings) String() string
Specifies when the instance is activated.
type Settings_SqlActivationPolicy int32
const ( // Unknown activation plan. Settings_SQL_ACTIVATION_POLICY_UNSPECIFIED Settings_SqlActivationPolicy = 0 // The instance is always up and running. Settings_ALWAYS Settings_SqlActivationPolicy = 1 // The instance never starts. Settings_NEVER Settings_SqlActivationPolicy = 2 // The instance starts upon receiving requests. // // Deprecated: Do not use. Settings_ON_DEMAND Settings_SqlActivationPolicy = 3 )
func (Settings_SqlActivationPolicy) Descriptor() protoreflect.EnumDescriptor
func (x Settings_SqlActivationPolicy) Enum() *Settings_SqlActivationPolicy
func (Settings_SqlActivationPolicy) EnumDescriptor() ([]byte, []int)
Deprecated: Use Settings_SqlActivationPolicy.Descriptor instead.
func (x Settings_SqlActivationPolicy) Number() protoreflect.EnumNumber
func (x Settings_SqlActivationPolicy) String() string
func (Settings_SqlActivationPolicy) Type() protoreflect.EnumType
Active Directory configuration, relevant only for Cloud SQL for SQL Server.
type SqlActiveDirectoryConfig struct { // This is always sql#activeDirectoryConfig. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The name of the domain (e.g., mydomain.com). Domain string `protobuf:"bytes,2,opt,name=domain,proto3" json:"domain,omitempty"` // contains filtered or unexported fields }
func (*SqlActiveDirectoryConfig) Descriptor() ([]byte, []int)
Deprecated: Use SqlActiveDirectoryConfig.ProtoReflect.Descriptor instead.
func (x *SqlActiveDirectoryConfig) GetDomain() string
func (x *SqlActiveDirectoryConfig) GetKind() string
func (*SqlActiveDirectoryConfig) ProtoMessage()
func (x *SqlActiveDirectoryConfig) ProtoReflect() protoreflect.Message
func (x *SqlActiveDirectoryConfig) Reset()
func (x *SqlActiveDirectoryConfig) String() string
The availability type of the given Cloud SQL instance.
type SqlAvailabilityType int32
const ( // This is an unknown Availability type. SqlAvailabilityType_SQL_AVAILABILITY_TYPE_UNSPECIFIED SqlAvailabilityType = 0 // Zonal available instance. SqlAvailabilityType_ZONAL SqlAvailabilityType = 1 // Regional available instance. SqlAvailabilityType_REGIONAL SqlAvailabilityType = 2 )
func (SqlAvailabilityType) Descriptor() protoreflect.EnumDescriptor
func (x SqlAvailabilityType) Enum() *SqlAvailabilityType
func (SqlAvailabilityType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlAvailabilityType.Descriptor instead.
func (x SqlAvailabilityType) Number() protoreflect.EnumNumber
func (x SqlAvailabilityType) String() string
func (SqlAvailabilityType) Type() protoreflect.EnumType
type SqlBackendType int32
const ( // This is an unknown backend type for instance. SqlBackendType_SQL_BACKEND_TYPE_UNSPECIFIED SqlBackendType = 0 // V1 speckle instance. // // Deprecated: Do not use. SqlBackendType_FIRST_GEN SqlBackendType = 1 // V2 speckle instance. SqlBackendType_SECOND_GEN SqlBackendType = 2 // On premises instance. SqlBackendType_EXTERNAL SqlBackendType = 3 )
func (SqlBackendType) Descriptor() protoreflect.EnumDescriptor
func (x SqlBackendType) Enum() *SqlBackendType
func (SqlBackendType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlBackendType.Descriptor instead.
func (x SqlBackendType) Number() protoreflect.EnumNumber
func (x SqlBackendType) String() string
func (SqlBackendType) Type() protoreflect.EnumType
Defines the supported backup kinds.
type SqlBackupKind int32
const ( // This is an unknown BackupKind. SqlBackupKind_SQL_BACKUP_KIND_UNSPECIFIED SqlBackupKind = 0 // The snapshot based backups SqlBackupKind_SNAPSHOT SqlBackupKind = 1 // Physical backups SqlBackupKind_PHYSICAL SqlBackupKind = 2 )
func (SqlBackupKind) Descriptor() protoreflect.EnumDescriptor
func (x SqlBackupKind) Enum() *SqlBackupKind
func (SqlBackupKind) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlBackupKind.Descriptor instead.
func (x SqlBackupKind) Number() protoreflect.EnumNumber
func (x SqlBackupKind) String() string
func (SqlBackupKind) Type() protoreflect.EnumType
The status of a backup run.
type SqlBackupRunStatus int32
const ( // The status of the run is unknown. SqlBackupRunStatus_SQL_BACKUP_RUN_STATUS_UNSPECIFIED SqlBackupRunStatus = 0 // The backup operation was enqueued. SqlBackupRunStatus_ENQUEUED SqlBackupRunStatus = 1 // The backup is overdue across a given backup window. Indicates a // problem. Example: Long-running operation in progress during // the whole window. SqlBackupRunStatus_OVERDUE SqlBackupRunStatus = 2 // The backup is in progress. SqlBackupRunStatus_RUNNING SqlBackupRunStatus = 3 // The backup failed. SqlBackupRunStatus_FAILED SqlBackupRunStatus = 4 // The backup was successful. SqlBackupRunStatus_SUCCESSFUL SqlBackupRunStatus = 5 // The backup was skipped (without problems) for a given backup // window. Example: Instance was idle. SqlBackupRunStatus_SKIPPED SqlBackupRunStatus = 6 // The backup is about to be deleted. SqlBackupRunStatus_DELETION_PENDING SqlBackupRunStatus = 7 // The backup deletion failed. SqlBackupRunStatus_DELETION_FAILED SqlBackupRunStatus = 8 // The backup has been deleted. SqlBackupRunStatus_DELETED SqlBackupRunStatus = 9 )
func (SqlBackupRunStatus) Descriptor() protoreflect.EnumDescriptor
func (x SqlBackupRunStatus) Enum() *SqlBackupRunStatus
func (SqlBackupRunStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlBackupRunStatus.Descriptor instead.
func (x SqlBackupRunStatus) Number() protoreflect.EnumNumber
func (x SqlBackupRunStatus) String() string
func (SqlBackupRunStatus) Type() protoreflect.EnumType
Type of backup (i.e. automated, on demand, etc).
type SqlBackupRunType int32
const ( // This is an unknown BackupRun type. SqlBackupRunType_SQL_BACKUP_RUN_TYPE_UNSPECIFIED SqlBackupRunType = 0 // The backup schedule automatically triggers a backup. SqlBackupRunType_AUTOMATED SqlBackupRunType = 1 // The user manually triggers a backup. SqlBackupRunType_ON_DEMAND SqlBackupRunType = 2 )
func (SqlBackupRunType) Descriptor() protoreflect.EnumDescriptor
func (x SqlBackupRunType) Enum() *SqlBackupRunType
func (SqlBackupRunType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlBackupRunType.Descriptor instead.
func (x SqlBackupRunType) Number() protoreflect.EnumNumber
func (x SqlBackupRunType) String() string
func (SqlBackupRunType) Type() protoreflect.EnumType
Backup runs delete request.
type SqlBackupRunsDeleteRequest struct { // The ID of the backup run to delete. To find a backup run ID, use the // [list](https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/backupRuns/list) // method. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlBackupRunsDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlBackupRunsDeleteRequest.ProtoReflect.Descriptor instead.
func (x *SqlBackupRunsDeleteRequest) GetId() int64
func (x *SqlBackupRunsDeleteRequest) GetInstance() string
func (x *SqlBackupRunsDeleteRequest) GetProject() string
func (*SqlBackupRunsDeleteRequest) ProtoMessage()
func (x *SqlBackupRunsDeleteRequest) ProtoReflect() protoreflect.Message
func (x *SqlBackupRunsDeleteRequest) Reset()
func (x *SqlBackupRunsDeleteRequest) String() string
Backup runs get request.
type SqlBackupRunsGetRequest struct { // The ID of this backup run. Id int64 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"` // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlBackupRunsGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlBackupRunsGetRequest.ProtoReflect.Descriptor instead.
func (x *SqlBackupRunsGetRequest) GetId() int64
func (x *SqlBackupRunsGetRequest) GetInstance() string
func (x *SqlBackupRunsGetRequest) GetProject() string
func (*SqlBackupRunsGetRequest) ProtoMessage()
func (x *SqlBackupRunsGetRequest) ProtoReflect() protoreflect.Message
func (x *SqlBackupRunsGetRequest) Reset()
func (x *SqlBackupRunsGetRequest) String() string
Backup runs insert request.
type SqlBackupRunsInsertRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *BackupRun `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlBackupRunsInsertRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlBackupRunsInsertRequest.ProtoReflect.Descriptor instead.
func (x *SqlBackupRunsInsertRequest) GetBody() *BackupRun
func (x *SqlBackupRunsInsertRequest) GetInstance() string
func (x *SqlBackupRunsInsertRequest) GetProject() string
func (*SqlBackupRunsInsertRequest) ProtoMessage()
func (x *SqlBackupRunsInsertRequest) ProtoReflect() protoreflect.Message
func (x *SqlBackupRunsInsertRequest) Reset()
func (x *SqlBackupRunsInsertRequest) String() string
Backup runs list request.
type SqlBackupRunsListRequest struct { // Cloud SQL instance ID, or "-" for all instances. This does not include // the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Maximum number of backup runs per response. MaxResults int32 `protobuf:"varint,2,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"` // A previously-returned page token representing part of the larger set of // results to view. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlBackupRunsListRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlBackupRunsListRequest.ProtoReflect.Descriptor instead.
func (x *SqlBackupRunsListRequest) GetInstance() string
func (x *SqlBackupRunsListRequest) GetMaxResults() int32
func (x *SqlBackupRunsListRequest) GetPageToken() string
func (x *SqlBackupRunsListRequest) GetProject() string
func (*SqlBackupRunsListRequest) ProtoMessage()
func (x *SqlBackupRunsListRequest) ProtoReflect() protoreflect.Message
func (x *SqlBackupRunsListRequest) Reset()
func (x *SqlBackupRunsListRequest) String() string
SqlBackupRunsServiceClient is the client API for SqlBackupRunsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SqlBackupRunsServiceClient interface { // Deletes the backup taken by a backup run. Delete(ctx context.Context, in *SqlBackupRunsDeleteRequest, opts ...grpc.CallOption) (*Operation, error) // Retrieves a resource containing information about a backup run. Get(ctx context.Context, in *SqlBackupRunsGetRequest, opts ...grpc.CallOption) (*BackupRun, error) // Creates a new backup run on demand. Insert(ctx context.Context, in *SqlBackupRunsInsertRequest, opts ...grpc.CallOption) (*Operation, error) // Lists all backup runs associated with the project or a given instance // and configuration in the reverse chronological order of the backup // initiation time. List(ctx context.Context, in *SqlBackupRunsListRequest, opts ...grpc.CallOption) (*BackupRunsListResponse, error) }
func NewSqlBackupRunsServiceClient(cc grpc.ClientConnInterface) SqlBackupRunsServiceClient
SqlBackupRunsServiceServer is the server API for SqlBackupRunsService service.
type SqlBackupRunsServiceServer interface { // Deletes the backup taken by a backup run. Delete(context.Context, *SqlBackupRunsDeleteRequest) (*Operation, error) // Retrieves a resource containing information about a backup run. Get(context.Context, *SqlBackupRunsGetRequest) (*BackupRun, error) // Creates a new backup run on demand. Insert(context.Context, *SqlBackupRunsInsertRequest) (*Operation, error) // Lists all backup runs associated with the project or a given instance // and configuration in the reverse chronological order of the backup // initiation time. List(context.Context, *SqlBackupRunsListRequest) (*BackupRunsListResponse, error) }
SqlConnectServiceClient is the client API for SqlConnectService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SqlConnectServiceClient interface { // Retrieves connect settings about a Cloud SQL instance. GetConnectSettings(ctx context.Context, in *GetConnectSettingsRequest, opts ...grpc.CallOption) (*ConnectSettings, error) // Generates a short-lived X509 certificate containing the provided public key // and signed by a private key specific to the target instance. Users may use // the certificate to authenticate as themselves when connecting to the // database. GenerateEphemeralCert(ctx context.Context, in *GenerateEphemeralCertRequest, opts ...grpc.CallOption) (*GenerateEphemeralCertResponse, error) }
func NewSqlConnectServiceClient(cc grpc.ClientConnInterface) SqlConnectServiceClient
SqlConnectServiceServer is the server API for SqlConnectService service.
type SqlConnectServiceServer interface { // Retrieves connect settings about a Cloud SQL instance. GetConnectSettings(context.Context, *GetConnectSettingsRequest) (*ConnectSettings, error) // Generates a short-lived X509 certificate containing the provided public key // and signed by a private key specific to the target instance. Users may use // the certificate to authenticate as themselves when connecting to the // database. GenerateEphemeralCert(context.Context, *GenerateEphemeralCertRequest) (*GenerateEphemeralCertResponse, error) }
The type of disk that is used for a v2 instance to use.
type SqlDataDiskType int32
const ( // This is an unknown data disk type. SqlDataDiskType_SQL_DATA_DISK_TYPE_UNSPECIFIED SqlDataDiskType = 0 // An SSD data disk. SqlDataDiskType_PD_SSD SqlDataDiskType = 1 // An HDD data disk. SqlDataDiskType_PD_HDD SqlDataDiskType = 2 // This field is deprecated and will be removed from a future version of the // API. // // Deprecated: Do not use. SqlDataDiskType_OBSOLETE_LOCAL_SSD SqlDataDiskType = 3 )
func (SqlDataDiskType) Descriptor() protoreflect.EnumDescriptor
func (x SqlDataDiskType) Enum() *SqlDataDiskType
func (SqlDataDiskType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlDataDiskType.Descriptor instead.
func (x SqlDataDiskType) Number() protoreflect.EnumNumber
func (x SqlDataDiskType) String() string
func (SqlDataDiskType) Type() protoreflect.EnumType
The database engine type and version.
type SqlDatabaseVersion int32
const ( // This is an unknown database version. SqlDatabaseVersion_SQL_DATABASE_VERSION_UNSPECIFIED SqlDatabaseVersion = 0 // The database version is MySQL 5.1. // // Deprecated: Do not use. SqlDatabaseVersion_MYSQL_5_1 SqlDatabaseVersion = 2 // The database version is MySQL 5.5. // // Deprecated: Do not use. SqlDatabaseVersion_MYSQL_5_5 SqlDatabaseVersion = 3 // The database version is MySQL 5.6. SqlDatabaseVersion_MYSQL_5_6 SqlDatabaseVersion = 5 // The database version is MySQL 5.7. SqlDatabaseVersion_MYSQL_5_7 SqlDatabaseVersion = 6 // The database version is PostgreSQL 9.6. SqlDatabaseVersion_POSTGRES_9_6 SqlDatabaseVersion = 9 // The database version is PostgreSQL 11. SqlDatabaseVersion_POSTGRES_11 SqlDatabaseVersion = 10 // The database version is SQL Server 2017 Standard. SqlDatabaseVersion_SQLSERVER_2017_STANDARD SqlDatabaseVersion = 11 // The database version is SQL Server 2017 Enterprise. SqlDatabaseVersion_SQLSERVER_2017_ENTERPRISE SqlDatabaseVersion = 14 // The database version is SQL Server 2017 Express. SqlDatabaseVersion_SQLSERVER_2017_EXPRESS SqlDatabaseVersion = 15 // The database version is SQL Server 2017 Web. SqlDatabaseVersion_SQLSERVER_2017_WEB SqlDatabaseVersion = 16 // The database version is PostgreSQL 10. SqlDatabaseVersion_POSTGRES_10 SqlDatabaseVersion = 18 // The database version is PostgreSQL 12. SqlDatabaseVersion_POSTGRES_12 SqlDatabaseVersion = 19 // The database version is PostgreSQL 13. SqlDatabaseVersion_POSTGRES_13 SqlDatabaseVersion = 23 // The database version is SQL Server 2019 Standard. SqlDatabaseVersion_SQLSERVER_2019_STANDARD SqlDatabaseVersion = 26 // The database version is SQL Server 2019 Enterprise. SqlDatabaseVersion_SQLSERVER_2019_ENTERPRISE SqlDatabaseVersion = 27 // The database version is SQL Server 2019 Express. SqlDatabaseVersion_SQLSERVER_2019_EXPRESS SqlDatabaseVersion = 28 // The database version is SQL Server 2019 Web. SqlDatabaseVersion_SQLSERVER_2019_WEB SqlDatabaseVersion = 29 )
func (SqlDatabaseVersion) Descriptor() protoreflect.EnumDescriptor
func (x SqlDatabaseVersion) Enum() *SqlDatabaseVersion
func (SqlDatabaseVersion) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlDatabaseVersion.Descriptor instead.
func (x SqlDatabaseVersion) Number() protoreflect.EnumNumber
func (x SqlDatabaseVersion) String() string
func (SqlDatabaseVersion) Type() protoreflect.EnumType
Database delete request.
type SqlDatabasesDeleteRequest struct { // Name of the database to be deleted in the instance. Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` // Database instance ID. This does not include the project ID. Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlDatabasesDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlDatabasesDeleteRequest.ProtoReflect.Descriptor instead.
func (x *SqlDatabasesDeleteRequest) GetDatabase() string
func (x *SqlDatabasesDeleteRequest) GetInstance() string
func (x *SqlDatabasesDeleteRequest) GetProject() string
func (*SqlDatabasesDeleteRequest) ProtoMessage()
func (x *SqlDatabasesDeleteRequest) ProtoReflect() protoreflect.Message
func (x *SqlDatabasesDeleteRequest) Reset()
func (x *SqlDatabasesDeleteRequest) String() string
Database get request.
type SqlDatabasesGetRequest struct { // Name of the database in the instance. Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` // Database instance ID. This does not include the project ID. Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlDatabasesGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlDatabasesGetRequest.ProtoReflect.Descriptor instead.
func (x *SqlDatabasesGetRequest) GetDatabase() string
func (x *SqlDatabasesGetRequest) GetInstance() string
func (x *SqlDatabasesGetRequest) GetProject() string
func (*SqlDatabasesGetRequest) ProtoMessage()
func (x *SqlDatabasesGetRequest) ProtoReflect() protoreflect.Message
func (x *SqlDatabasesGetRequest) Reset()
func (x *SqlDatabasesGetRequest) String() string
Database insert request.
type SqlDatabasesInsertRequest struct { // Database instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *Database `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlDatabasesInsertRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlDatabasesInsertRequest.ProtoReflect.Descriptor instead.
func (x *SqlDatabasesInsertRequest) GetBody() *Database
func (x *SqlDatabasesInsertRequest) GetInstance() string
func (x *SqlDatabasesInsertRequest) GetProject() string
func (*SqlDatabasesInsertRequest) ProtoMessage()
func (x *SqlDatabasesInsertRequest) ProtoReflect() protoreflect.Message
func (x *SqlDatabasesInsertRequest) Reset()
func (x *SqlDatabasesInsertRequest) String() string
Database list request.
type SqlDatabasesListRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlDatabasesListRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlDatabasesListRequest.ProtoReflect.Descriptor instead.
func (x *SqlDatabasesListRequest) GetInstance() string
func (x *SqlDatabasesListRequest) GetProject() string
func (*SqlDatabasesListRequest) ProtoMessage()
func (x *SqlDatabasesListRequest) ProtoReflect() protoreflect.Message
func (x *SqlDatabasesListRequest) Reset()
func (x *SqlDatabasesListRequest) String() string
SqlDatabasesServiceClient is the client API for SqlDatabasesService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SqlDatabasesServiceClient interface { // Deletes a database from a Cloud SQL instance. Delete(ctx context.Context, in *SqlDatabasesDeleteRequest, opts ...grpc.CallOption) (*Operation, error) // Retrieves a resource containing information about a database inside a Cloud // SQL instance. Get(ctx context.Context, in *SqlDatabasesGetRequest, opts ...grpc.CallOption) (*Database, error) // Inserts a resource containing information about a database inside a Cloud // SQL instance. Insert(ctx context.Context, in *SqlDatabasesInsertRequest, opts ...grpc.CallOption) (*Operation, error) // Lists databases in the specified Cloud SQL instance. List(ctx context.Context, in *SqlDatabasesListRequest, opts ...grpc.CallOption) (*DatabasesListResponse, error) // Partially updates a resource containing information about a database inside // a Cloud SQL instance. This method supports patch semantics. Patch(ctx context.Context, in *SqlDatabasesUpdateRequest, opts ...grpc.CallOption) (*Operation, error) // Updates a resource containing information about a database inside a Cloud // SQL instance. Update(ctx context.Context, in *SqlDatabasesUpdateRequest, opts ...grpc.CallOption) (*Operation, error) }
func NewSqlDatabasesServiceClient(cc grpc.ClientConnInterface) SqlDatabasesServiceClient
SqlDatabasesServiceServer is the server API for SqlDatabasesService service.
type SqlDatabasesServiceServer interface { // Deletes a database from a Cloud SQL instance. Delete(context.Context, *SqlDatabasesDeleteRequest) (*Operation, error) // Retrieves a resource containing information about a database inside a Cloud // SQL instance. Get(context.Context, *SqlDatabasesGetRequest) (*Database, error) // Inserts a resource containing information about a database inside a Cloud // SQL instance. Insert(context.Context, *SqlDatabasesInsertRequest) (*Operation, error) // Lists databases in the specified Cloud SQL instance. List(context.Context, *SqlDatabasesListRequest) (*DatabasesListResponse, error) // Partially updates a resource containing information about a database inside // a Cloud SQL instance. This method supports patch semantics. Patch(context.Context, *SqlDatabasesUpdateRequest) (*Operation, error) // Updates a resource containing information about a database inside a Cloud // SQL instance. Update(context.Context, *SqlDatabasesUpdateRequest) (*Operation, error) }
Database update request.
type SqlDatabasesUpdateRequest struct { // Name of the database to be updated in the instance. Database string `protobuf:"bytes,1,opt,name=database,proto3" json:"database,omitempty"` // Database instance ID. This does not include the project ID. Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,3,opt,name=project,proto3" json:"project,omitempty"` Body *Database `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlDatabasesUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlDatabasesUpdateRequest.ProtoReflect.Descriptor instead.
func (x *SqlDatabasesUpdateRequest) GetBody() *Database
func (x *SqlDatabasesUpdateRequest) GetDatabase() string
func (x *SqlDatabasesUpdateRequest) GetInstance() string
func (x *SqlDatabasesUpdateRequest) GetProject() string
func (*SqlDatabasesUpdateRequest) ProtoMessage()
func (x *SqlDatabasesUpdateRequest) ProtoReflect() protoreflect.Message
func (x *SqlDatabasesUpdateRequest) Reset()
func (x *SqlDatabasesUpdateRequest) String() string
External primary instance migration setting error/warning.
type SqlExternalSyncSettingError struct { // Can be **sql#externalSyncSettingError** or // **sql#externalSyncSettingWarning**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // Identifies the specific error that occurred. Type SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.sql.v1.SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType" json:"type,omitempty"` // Additional information about the error encountered. Detail string `protobuf:"bytes,3,opt,name=detail,proto3" json:"detail,omitempty"` // contains filtered or unexported fields }
func (*SqlExternalSyncSettingError) Descriptor() ([]byte, []int)
Deprecated: Use SqlExternalSyncSettingError.ProtoReflect.Descriptor instead.
func (x *SqlExternalSyncSettingError) GetDetail() string
func (x *SqlExternalSyncSettingError) GetKind() string
func (x *SqlExternalSyncSettingError) GetType() SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType
func (*SqlExternalSyncSettingError) ProtoMessage()
func (x *SqlExternalSyncSettingError) ProtoReflect() protoreflect.Message
func (x *SqlExternalSyncSettingError) Reset()
func (x *SqlExternalSyncSettingError) String() string
type SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType int32
const ( SqlExternalSyncSettingError_SQL_EXTERNAL_SYNC_SETTING_ERROR_TYPE_UNSPECIFIED SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 0 SqlExternalSyncSettingError_CONNECTION_FAILURE SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 1 SqlExternalSyncSettingError_BINLOG_NOT_ENABLED SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 2 SqlExternalSyncSettingError_INCOMPATIBLE_DATABASE_VERSION SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 3 SqlExternalSyncSettingError_REPLICA_ALREADY_SETUP SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 4 SqlExternalSyncSettingError_INSUFFICIENT_PRIVILEGE SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 5 // Unsupported migration type. SqlExternalSyncSettingError_UNSUPPORTED_MIGRATION_TYPE SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 6 // No pglogical extension installed on databases, applicable for postgres. SqlExternalSyncSettingError_NO_PGLOGICAL_INSTALLED SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 7 // pglogical node already exists on databases, applicable for postgres. SqlExternalSyncSettingError_PGLOGICAL_NODE_ALREADY_EXISTS SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 8 // The value of parameter wal_level is not set to logical. SqlExternalSyncSettingError_INVALID_WAL_LEVEL SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 9 // The value of parameter shared_preload_libraries does not include // pglogical. SqlExternalSyncSettingError_INVALID_SHARED_PRELOAD_LIBRARY SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 10 // The value of parameter max_replication_slots is not sufficient. SqlExternalSyncSettingError_INSUFFICIENT_MAX_REPLICATION_SLOTS SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 11 // The value of parameter max_wal_senders is not sufficient. SqlExternalSyncSettingError_INSUFFICIENT_MAX_WAL_SENDERS SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 12 // The value of parameter max_worker_processes is not sufficient. SqlExternalSyncSettingError_INSUFFICIENT_MAX_WORKER_PROCESSES SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 13 // Extensions installed are either not supported or having unsupported // versions SqlExternalSyncSettingError_UNSUPPORTED_EXTENSIONS SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 14 // The value of parameter rds.logical_replication is not set to 1. SqlExternalSyncSettingError_INVALID_RDS_LOGICAL_REPLICATION SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 15 // The primary instance logging setup doesn't allow EM sync. SqlExternalSyncSettingError_INVALID_LOGGING_SETUP SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 16 // The primary instance database parameter setup doesn't allow EM sync. SqlExternalSyncSettingError_INVALID_DB_PARAM SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 17 // The gtid_mode is not supported, applicable for MySQL. SqlExternalSyncSettingError_UNSUPPORTED_GTID_MODE SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 18 // SQL Server Agent is not running. SqlExternalSyncSettingError_SQLSERVER_AGENT_NOT_RUNNING SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 19 // The table definition is not support due to missing primary key or replica // identity, applicable for postgres. SqlExternalSyncSettingError_UNSUPPORTED_TABLE_DEFINITION SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 20 // The customer has a definer that will break EM setup. SqlExternalSyncSettingError_UNSUPPORTED_DEFINER SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 21 // SQL Server @@SERVERNAME does not match actual host name SqlExternalSyncSettingError_SQLSERVER_SERVERNAME_MISMATCH SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 22 // The primary instance has been setup and will fail the setup. SqlExternalSyncSettingError_PRIMARY_ALREADY_SETUP SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 23 // The primary instance has unsupported binary log format. SqlExternalSyncSettingError_UNSUPPORTED_BINLOG_FORMAT SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 24 // The primary instance's binary log retention setting. SqlExternalSyncSettingError_BINLOG_RETENTION_SETTING SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType = 25 )
func (SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType) Descriptor() protoreflect.EnumDescriptor
func (x SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType) Enum() *SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType
func (SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType.Descriptor instead.
func (x SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType) Number() protoreflect.EnumNumber
func (x SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType) String() string
func (SqlExternalSyncSettingError_SqlExternalSyncSettingErrorType) Type() protoreflect.EnumType
type SqlFileType int32
const ( // Unknown file type. SqlFileType_SQL_FILE_TYPE_UNSPECIFIED SqlFileType = 0 // File containing SQL statements. SqlFileType_SQL SqlFileType = 1 // File in CSV format. SqlFileType_CSV SqlFileType = 2 SqlFileType_BAK SqlFileType = 4 )
func (SqlFileType) Descriptor() protoreflect.EnumDescriptor
func (x SqlFileType) Enum() *SqlFileType
func (SqlFileType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlFileType.Descriptor instead.
func (x SqlFileType) Number() protoreflect.EnumNumber
func (x SqlFileType) String() string
func (SqlFileType) Type() protoreflect.EnumType
type SqlFlagType int32
const ( // This is an unknown flag type. SqlFlagType_SQL_FLAG_TYPE_UNSPECIFIED SqlFlagType = 0 // Boolean type flag. SqlFlagType_BOOLEAN SqlFlagType = 1 // String type flag. SqlFlagType_STRING SqlFlagType = 2 // Integer type flag. SqlFlagType_INTEGER SqlFlagType = 3 // Flag type used for a server startup option. SqlFlagType_NONE SqlFlagType = 4 // Type introduced specially for MySQL TimeZone offset. Accept a string value // with the format [-12:59, 13:00]. SqlFlagType_MYSQL_TIMEZONE_OFFSET SqlFlagType = 5 // Float type flag. SqlFlagType_FLOAT SqlFlagType = 6 // Comma-separated list of the strings in a SqlFlagType enum. SqlFlagType_REPEATED_STRING SqlFlagType = 7 )
func (SqlFlagType) Descriptor() protoreflect.EnumDescriptor
func (x SqlFlagType) Enum() *SqlFlagType
func (SqlFlagType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlFlagType.Descriptor instead.
func (x SqlFlagType) Number() protoreflect.EnumNumber
func (x SqlFlagType) String() string
func (SqlFlagType) Type() protoreflect.EnumType
Flags list request.
type SqlFlagsListRequest struct { // Database type and version you want to retrieve flags for. By default, this // method returns flags for all database types and versions. DatabaseVersion string `protobuf:"bytes,1,opt,name=database_version,json=databaseVersion,proto3" json:"database_version,omitempty"` // contains filtered or unexported fields }
func (*SqlFlagsListRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlFlagsListRequest.ProtoReflect.Descriptor instead.
func (x *SqlFlagsListRequest) GetDatabaseVersion() string
func (*SqlFlagsListRequest) ProtoMessage()
func (x *SqlFlagsListRequest) ProtoReflect() protoreflect.Message
func (x *SqlFlagsListRequest) Reset()
func (x *SqlFlagsListRequest) String() string
SqlFlagsServiceClient is the client API for SqlFlagsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SqlFlagsServiceClient interface { // Lists all available database flags for Cloud SQL instances. List(ctx context.Context, in *SqlFlagsListRequest, opts ...grpc.CallOption) (*FlagsListResponse, error) }
func NewSqlFlagsServiceClient(cc grpc.ClientConnInterface) SqlFlagsServiceClient
SqlFlagsServiceServer is the server API for SqlFlagsService service.
type SqlFlagsServiceServer interface { // Lists all available database flags for Cloud SQL instances. List(context.Context, *SqlFlagsListRequest) (*FlagsListResponse, error) }
SqlInstanceNamesServiceClient is the client API for SqlInstanceNamesService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SqlInstanceNamesServiceClient interface { }
func NewSqlInstanceNamesServiceClient(cc grpc.ClientConnInterface) SqlInstanceNamesServiceClient
SqlInstanceNamesServiceServer is the server API for SqlInstanceNamesService service.
type SqlInstanceNamesServiceServer interface { }
type SqlInstanceType int32
const ( // This is an unknown Cloud SQL instance type. SqlInstanceType_SQL_INSTANCE_TYPE_UNSPECIFIED SqlInstanceType = 0 // A regular Cloud SQL instance. SqlInstanceType_CLOUD_SQL_INSTANCE SqlInstanceType = 1 // An instance running on the customer's premises that is not managed by // Cloud SQL. SqlInstanceType_ON_PREMISES_INSTANCE SqlInstanceType = 2 // A Cloud SQL instance acting as a read-replica. SqlInstanceType_READ_REPLICA_INSTANCE SqlInstanceType = 3 )
func (SqlInstanceType) Descriptor() protoreflect.EnumDescriptor
func (x SqlInstanceType) Enum() *SqlInstanceType
func (SqlInstanceType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlInstanceType.Descriptor instead.
func (x SqlInstanceType) Number() protoreflect.EnumNumber
func (x SqlInstanceType) String() string
func (SqlInstanceType) Type() protoreflect.EnumType
Instance add server CA request.
type SqlInstancesAddServerCaRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesAddServerCaRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesAddServerCaRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesAddServerCaRequest) GetInstance() string
func (x *SqlInstancesAddServerCaRequest) GetProject() string
func (*SqlInstancesAddServerCaRequest) ProtoMessage()
func (x *SqlInstancesAddServerCaRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesAddServerCaRequest) Reset()
func (x *SqlInstancesAddServerCaRequest) String() string
Instance clone request.
type SqlInstancesCloneRequest struct { // The ID of the Cloud SQL instance to be cloned (source). This does not // include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the source as well as the clone Cloud SQL instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *InstancesCloneRequest `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesCloneRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesCloneRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesCloneRequest) GetBody() *InstancesCloneRequest
func (x *SqlInstancesCloneRequest) GetInstance() string
func (x *SqlInstancesCloneRequest) GetProject() string
func (*SqlInstancesCloneRequest) ProtoMessage()
func (x *SqlInstancesCloneRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesCloneRequest) Reset()
func (x *SqlInstancesCloneRequest) String() string
Instance create ephemeral certificate request.
type SqlInstancesCreateEphemeralCertRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the Cloud SQL project. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *SslCertsCreateEphemeralRequest `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesCreateEphemeralCertRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesCreateEphemeralCertRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesCreateEphemeralCertRequest) GetBody() *SslCertsCreateEphemeralRequest
func (x *SqlInstancesCreateEphemeralCertRequest) GetInstance() string
func (x *SqlInstancesCreateEphemeralCertRequest) GetProject() string
func (*SqlInstancesCreateEphemeralCertRequest) ProtoMessage()
func (x *SqlInstancesCreateEphemeralCertRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesCreateEphemeralCertRequest) Reset()
func (x *SqlInstancesCreateEphemeralCertRequest) String() string
Instance delete request.
type SqlInstancesDeleteRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance to be deleted. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesDeleteRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesDeleteRequest) GetInstance() string
func (x *SqlInstancesDeleteRequest) GetProject() string
func (*SqlInstancesDeleteRequest) ProtoMessage()
func (x *SqlInstancesDeleteRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesDeleteRequest) Reset()
func (x *SqlInstancesDeleteRequest) String() string
Instance demote master request.
type SqlInstancesDemoteMasterRequest struct { // Cloud SQL instance name. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *InstancesDemoteMasterRequest `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesDemoteMasterRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesDemoteMasterRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesDemoteMasterRequest) GetBody() *InstancesDemoteMasterRequest
func (x *SqlInstancesDemoteMasterRequest) GetInstance() string
func (x *SqlInstancesDemoteMasterRequest) GetProject() string
func (*SqlInstancesDemoteMasterRequest) ProtoMessage()
func (x *SqlInstancesDemoteMasterRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesDemoteMasterRequest) Reset()
func (x *SqlInstancesDemoteMasterRequest) String() string
Instance export request.
type SqlInstancesExportRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance to be exported. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *InstancesExportRequest `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesExportRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesExportRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesExportRequest) GetBody() *InstancesExportRequest
func (x *SqlInstancesExportRequest) GetInstance() string
func (x *SqlInstancesExportRequest) GetProject() string
func (*SqlInstancesExportRequest) ProtoMessage()
func (x *SqlInstancesExportRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesExportRequest) Reset()
func (x *SqlInstancesExportRequest) String() string
Instance failover request.
type SqlInstancesFailoverRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // ID of the project that contains the read replica. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *InstancesFailoverRequest `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesFailoverRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesFailoverRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesFailoverRequest) GetBody() *InstancesFailoverRequest
func (x *SqlInstancesFailoverRequest) GetInstance() string
func (x *SqlInstancesFailoverRequest) GetProject() string
func (*SqlInstancesFailoverRequest) ProtoMessage()
func (x *SqlInstancesFailoverRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesFailoverRequest) Reset()
func (x *SqlInstancesFailoverRequest) String() string
Instance get request.
type SqlInstancesGetRequest struct { // Database instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesGetRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesGetRequest) GetInstance() string
func (x *SqlInstancesGetRequest) GetProject() string
func (*SqlInstancesGetRequest) ProtoMessage()
func (x *SqlInstancesGetRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesGetRequest) Reset()
func (x *SqlInstancesGetRequest) String() string
Instance import request.
type SqlInstancesImportRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *InstancesImportRequest `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesImportRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesImportRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesImportRequest) GetBody() *InstancesImportRequest
func (x *SqlInstancesImportRequest) GetInstance() string
func (x *SqlInstancesImportRequest) GetProject() string
func (*SqlInstancesImportRequest) ProtoMessage()
func (x *SqlInstancesImportRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesImportRequest) Reset()
func (x *SqlInstancesImportRequest) String() string
Instance insert request.
type SqlInstancesInsertRequest struct { // Project ID of the project to which the newly created Cloud SQL instances // should belong. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` Body *DatabaseInstance `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesInsertRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesInsertRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesInsertRequest) GetBody() *DatabaseInstance
func (x *SqlInstancesInsertRequest) GetProject() string
func (*SqlInstancesInsertRequest) ProtoMessage()
func (x *SqlInstancesInsertRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesInsertRequest) Reset()
func (x *SqlInstancesInsertRequest) String() string
Instance list request.
type SqlInstancesListRequest struct { // A filter expression that filters resources listed in the response. // The expression is in the form of field:value. For example, // 'instanceType:CLOUD_SQL_INSTANCE'. Fields can be nested as needed as per // their JSON representation, such as 'settings.userLabels.auto_start:true'. // // Multiple filter queries are space-separated. For example. // 'state:RUNNABLE instanceType:CLOUD_SQL_INSTANCE'. By default, each // expression is an AND expression. However, you can include AND and OR // expressions explicitly. Filter string `protobuf:"bytes,1,opt,name=filter,proto3" json:"filter,omitempty"` // The maximum number of results to return per response. MaxResults uint32 `protobuf:"varint,2,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"` // A previously-returned page token representing part of the larger set of // results to view. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Project ID of the project for which to list Cloud SQL instances. Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesListRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesListRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesListRequest) GetFilter() string
func (x *SqlInstancesListRequest) GetMaxResults() uint32
func (x *SqlInstancesListRequest) GetPageToken() string
func (x *SqlInstancesListRequest) GetProject() string
func (*SqlInstancesListRequest) ProtoMessage()
func (x *SqlInstancesListRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesListRequest) Reset()
func (x *SqlInstancesListRequest) String() string
Instance list server CAs request.
type SqlInstancesListServerCasRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesListServerCasRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesListServerCasRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesListServerCasRequest) GetInstance() string
func (x *SqlInstancesListServerCasRequest) GetProject() string
func (*SqlInstancesListServerCasRequest) ProtoMessage()
func (x *SqlInstancesListServerCasRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesListServerCasRequest) Reset()
func (x *SqlInstancesListServerCasRequest) String() string
Instance patch request.
type SqlInstancesPatchRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *DatabaseInstance `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesPatchRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesPatchRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesPatchRequest) GetBody() *DatabaseInstance
func (x *SqlInstancesPatchRequest) GetInstance() string
func (x *SqlInstancesPatchRequest) GetProject() string
func (*SqlInstancesPatchRequest) ProtoMessage()
func (x *SqlInstancesPatchRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesPatchRequest) Reset()
func (x *SqlInstancesPatchRequest) String() string
Instance promote replica request.
type SqlInstancesPromoteReplicaRequest struct { // Cloud SQL read replica instance name. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // ID of the project that contains the read replica. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesPromoteReplicaRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesPromoteReplicaRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesPromoteReplicaRequest) GetInstance() string
func (x *SqlInstancesPromoteReplicaRequest) GetProject() string
func (*SqlInstancesPromoteReplicaRequest) ProtoMessage()
func (x *SqlInstancesPromoteReplicaRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesPromoteReplicaRequest) Reset()
func (x *SqlInstancesPromoteReplicaRequest) String() string
Instance reschedule maintenance request.
type SqlInstancesRescheduleMaintenanceRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *SqlInstancesRescheduleMaintenanceRequestBody `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesRescheduleMaintenanceRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesRescheduleMaintenanceRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesRescheduleMaintenanceRequest) GetBody() *SqlInstancesRescheduleMaintenanceRequestBody
func (x *SqlInstancesRescheduleMaintenanceRequest) GetInstance() string
func (x *SqlInstancesRescheduleMaintenanceRequest) GetProject() string
func (*SqlInstancesRescheduleMaintenanceRequest) ProtoMessage()
func (x *SqlInstancesRescheduleMaintenanceRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesRescheduleMaintenanceRequest) Reset()
func (x *SqlInstancesRescheduleMaintenanceRequest) String() string
Reschedule options for maintenance windows.
type SqlInstancesRescheduleMaintenanceRequestBody struct { // Required. The type of the reschedule the user wants. Reschedule *SqlInstancesRescheduleMaintenanceRequestBody_Reschedule `protobuf:"bytes,3,opt,name=reschedule,proto3" json:"reschedule,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesRescheduleMaintenanceRequestBody) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesRescheduleMaintenanceRequestBody.ProtoReflect.Descriptor instead.
func (x *SqlInstancesRescheduleMaintenanceRequestBody) GetReschedule() *SqlInstancesRescheduleMaintenanceRequestBody_Reschedule
func (*SqlInstancesRescheduleMaintenanceRequestBody) ProtoMessage()
func (x *SqlInstancesRescheduleMaintenanceRequestBody) ProtoReflect() protoreflect.Message
func (x *SqlInstancesRescheduleMaintenanceRequestBody) Reset()
func (x *SqlInstancesRescheduleMaintenanceRequestBody) String() string
type SqlInstancesRescheduleMaintenanceRequestBody_Reschedule struct { // Required. The type of the reschedule. RescheduleType SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType `protobuf:"varint,1,opt,name=reschedule_type,json=rescheduleType,proto3,enum=google.cloud.sql.v1.SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType" json:"reschedule_type,omitempty"` // Optional. Timestamp when the maintenance shall be rescheduled to if // reschedule_type=SPECIFIC_TIME, in // [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example // **2012-11-15T16:19:00.094Z**. ScheduleTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=schedule_time,json=scheduleTime,proto3" json:"schedule_time,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesRescheduleMaintenanceRequestBody_Reschedule) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesRescheduleMaintenanceRequestBody_Reschedule.ProtoReflect.Descriptor instead.
func (x *SqlInstancesRescheduleMaintenanceRequestBody_Reschedule) GetRescheduleType() SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType
func (x *SqlInstancesRescheduleMaintenanceRequestBody_Reschedule) GetScheduleTime() *timestamppb.Timestamp
func (*SqlInstancesRescheduleMaintenanceRequestBody_Reschedule) ProtoMessage()
func (x *SqlInstancesRescheduleMaintenanceRequestBody_Reschedule) ProtoReflect() protoreflect.Message
func (x *SqlInstancesRescheduleMaintenanceRequestBody_Reschedule) Reset()
func (x *SqlInstancesRescheduleMaintenanceRequestBody_Reschedule) String() string
type SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType int32
const ( SqlInstancesRescheduleMaintenanceRequestBody_RESCHEDULE_TYPE_UNSPECIFIED SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType = 0 // Reschedules maintenance to happen now (within 5 minutes). SqlInstancesRescheduleMaintenanceRequestBody_IMMEDIATE SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType = 1 // Reschedules maintenance to occur within one week from the originally // scheduled day and time. SqlInstancesRescheduleMaintenanceRequestBody_NEXT_AVAILABLE_WINDOW SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType = 2 // Reschedules maintenance to a specific time and day. SqlInstancesRescheduleMaintenanceRequestBody_SPECIFIC_TIME SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType = 3 )
func (SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType) Descriptor() protoreflect.EnumDescriptor
func (x SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType) Enum() *SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType
func (SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType.Descriptor instead.
func (x SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType) Number() protoreflect.EnumNumber
func (x SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType) String() string
func (SqlInstancesRescheduleMaintenanceRequestBody_RescheduleType) Type() protoreflect.EnumType
Instance reset SSL config request.
type SqlInstancesResetSslConfigRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesResetSslConfigRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesResetSslConfigRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesResetSslConfigRequest) GetInstance() string
func (x *SqlInstancesResetSslConfigRequest) GetProject() string
func (*SqlInstancesResetSslConfigRequest) ProtoMessage()
func (x *SqlInstancesResetSslConfigRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesResetSslConfigRequest) Reset()
func (x *SqlInstancesResetSslConfigRequest) String() string
Instance restart request.
type SqlInstancesRestartRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance to be restarted. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesRestartRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesRestartRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesRestartRequest) GetInstance() string
func (x *SqlInstancesRestartRequest) GetProject() string
func (*SqlInstancesRestartRequest) ProtoMessage()
func (x *SqlInstancesRestartRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesRestartRequest) Reset()
func (x *SqlInstancesRestartRequest) String() string
Instance restore backup request.
type SqlInstancesRestoreBackupRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *InstancesRestoreBackupRequest `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesRestoreBackupRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesRestoreBackupRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesRestoreBackupRequest) GetBody() *InstancesRestoreBackupRequest
func (x *SqlInstancesRestoreBackupRequest) GetInstance() string
func (x *SqlInstancesRestoreBackupRequest) GetProject() string
func (*SqlInstancesRestoreBackupRequest) ProtoMessage()
func (x *SqlInstancesRestoreBackupRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesRestoreBackupRequest) Reset()
func (x *SqlInstancesRestoreBackupRequest) String() string
Instance rotate server CA request.
type SqlInstancesRotateServerCaRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *InstancesRotateServerCaRequest `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesRotateServerCaRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesRotateServerCaRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesRotateServerCaRequest) GetBody() *InstancesRotateServerCaRequest
func (x *SqlInstancesRotateServerCaRequest) GetInstance() string
func (x *SqlInstancesRotateServerCaRequest) GetProject() string
func (*SqlInstancesRotateServerCaRequest) ProtoMessage()
func (x *SqlInstancesRotateServerCaRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesRotateServerCaRequest) Reset()
func (x *SqlInstancesRotateServerCaRequest) String() string
SqlInstancesServiceClient is the client API for SqlInstancesService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SqlInstancesServiceClient interface { // Adds a new trusted Certificate Authority (CA) version for the specified // instance. Required to prepare for a certificate rotation. If a CA version // was previously added but never used in a certificate rotation, this // operation replaces that version. There cannot be more than one CA version // waiting to be rotated in. AddServerCa(ctx context.Context, in *SqlInstancesAddServerCaRequest, opts ...grpc.CallOption) (*Operation, error) // Creates a Cloud SQL instance as a clone of the source instance. Using this // operation might cause your instance to restart. Clone(ctx context.Context, in *SqlInstancesCloneRequest, opts ...grpc.CallOption) (*Operation, error) // Deletes a Cloud SQL instance. Delete(ctx context.Context, in *SqlInstancesDeleteRequest, opts ...grpc.CallOption) (*Operation, error) // Demotes the stand-alone instance to be a Cloud SQL read replica for an // external database server. DemoteMaster(ctx context.Context, in *SqlInstancesDemoteMasterRequest, opts ...grpc.CallOption) (*Operation, error) // Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL // dump or CSV file. Export(ctx context.Context, in *SqlInstancesExportRequest, opts ...grpc.CallOption) (*Operation, error) // Initiates a manual failover of a high availability (HA) primary instance // to a standby instance, which becomes the primary instance. Users are // then rerouted to the new primary. For more information, see the // [Overview of high // availability](https://cloud.google.com/sql/docs/mysql/high-availability) // page in the Cloud SQL documentation. // If using Legacy HA (MySQL only), this causes the instance to failover to // its failover replica instance. Failover(ctx context.Context, in *SqlInstancesFailoverRequest, opts ...grpc.CallOption) (*Operation, error) // Retrieves a resource containing information about a Cloud SQL instance. Get(ctx context.Context, in *SqlInstancesGetRequest, opts ...grpc.CallOption) (*DatabaseInstance, error) // Imports data into a Cloud SQL instance from a SQL dump or CSV file in // Cloud Storage. Import(ctx context.Context, in *SqlInstancesImportRequest, opts ...grpc.CallOption) (*Operation, error) // Creates a new Cloud SQL instance. Insert(ctx context.Context, in *SqlInstancesInsertRequest, opts ...grpc.CallOption) (*Operation, error) // Lists instances under a given project. List(ctx context.Context, in *SqlInstancesListRequest, opts ...grpc.CallOption) (*InstancesListResponse, error) // Lists all of the trusted Certificate Authorities (CAs) for the specified // instance. There can be up to three CAs listed: the CA that was used to sign // the certificate that is currently in use, a CA that has been added but not // yet used to sign a certificate, and a CA used to sign a certificate that // has previously rotated out. ListServerCas(ctx context.Context, in *SqlInstancesListServerCasRequest, opts ...grpc.CallOption) (*InstancesListServerCasResponse, error) // Updates settings of a Cloud SQL instance. // This method supports patch semantics. Patch(ctx context.Context, in *SqlInstancesPatchRequest, opts ...grpc.CallOption) (*Operation, error) // Promotes the read replica instance to be a stand-alone Cloud SQL instance. // Using this operation might cause your instance to restart. PromoteReplica(ctx context.Context, in *SqlInstancesPromoteReplicaRequest, opts ...grpc.CallOption) (*Operation, error) // Deletes all client certificates and generates a new server SSL certificate // for the instance. ResetSslConfig(ctx context.Context, in *SqlInstancesResetSslConfigRequest, opts ...grpc.CallOption) (*Operation, error) // Restarts a Cloud SQL instance. Restart(ctx context.Context, in *SqlInstancesRestartRequest, opts ...grpc.CallOption) (*Operation, error) // Restores a backup of a Cloud SQL instance. Using this operation might cause // your instance to restart. RestoreBackup(ctx context.Context, in *SqlInstancesRestoreBackupRequest, opts ...grpc.CallOption) (*Operation, error) // Rotates the server certificate to one signed by the Certificate Authority // (CA) version previously added with the addServerCA method. RotateServerCa(ctx context.Context, in *SqlInstancesRotateServerCaRequest, opts ...grpc.CallOption) (*Operation, error) // Starts the replication in the read replica instance. StartReplica(ctx context.Context, in *SqlInstancesStartReplicaRequest, opts ...grpc.CallOption) (*Operation, error) // Stops the replication in the read replica instance. StopReplica(ctx context.Context, in *SqlInstancesStopReplicaRequest, opts ...grpc.CallOption) (*Operation, error) // Truncate MySQL general and slow query log tables // MySQL only. TruncateLog(ctx context.Context, in *SqlInstancesTruncateLogRequest, opts ...grpc.CallOption) (*Operation, error) // Updates settings of a Cloud SQL instance. Using this operation might cause // your instance to restart. Update(ctx context.Context, in *SqlInstancesUpdateRequest, opts ...grpc.CallOption) (*Operation, error) // Generates a short-lived X509 certificate containing the provided public key // and signed by a private key specific to the target instance. Users may use // the certificate to authenticate as themselves when connecting to the // database. CreateEphemeral(ctx context.Context, in *SqlInstancesCreateEphemeralCertRequest, opts ...grpc.CallOption) (*SslCert, error) // Reschedules the maintenance on the given instance. RescheduleMaintenance(ctx context.Context, in *SqlInstancesRescheduleMaintenanceRequest, opts ...grpc.CallOption) (*Operation, error) // Verify External primary instance external sync settings. VerifyExternalSyncSettings(ctx context.Context, in *SqlInstancesVerifyExternalSyncSettingsRequest, opts ...grpc.CallOption) (*SqlInstancesVerifyExternalSyncSettingsResponse, error) // Start External primary instance migration. StartExternalSync(ctx context.Context, in *SqlInstancesStartExternalSyncRequest, opts ...grpc.CallOption) (*Operation, error) }
func NewSqlInstancesServiceClient(cc grpc.ClientConnInterface) SqlInstancesServiceClient
SqlInstancesServiceServer is the server API for SqlInstancesService service.
type SqlInstancesServiceServer interface { // Adds a new trusted Certificate Authority (CA) version for the specified // instance. Required to prepare for a certificate rotation. If a CA version // was previously added but never used in a certificate rotation, this // operation replaces that version. There cannot be more than one CA version // waiting to be rotated in. AddServerCa(context.Context, *SqlInstancesAddServerCaRequest) (*Operation, error) // Creates a Cloud SQL instance as a clone of the source instance. Using this // operation might cause your instance to restart. Clone(context.Context, *SqlInstancesCloneRequest) (*Operation, error) // Deletes a Cloud SQL instance. Delete(context.Context, *SqlInstancesDeleteRequest) (*Operation, error) // Demotes the stand-alone instance to be a Cloud SQL read replica for an // external database server. DemoteMaster(context.Context, *SqlInstancesDemoteMasterRequest) (*Operation, error) // Exports data from a Cloud SQL instance to a Cloud Storage bucket as a SQL // dump or CSV file. Export(context.Context, *SqlInstancesExportRequest) (*Operation, error) // Initiates a manual failover of a high availability (HA) primary instance // to a standby instance, which becomes the primary instance. Users are // then rerouted to the new primary. For more information, see the // [Overview of high // availability](https://cloud.google.com/sql/docs/mysql/high-availability) // page in the Cloud SQL documentation. // If using Legacy HA (MySQL only), this causes the instance to failover to // its failover replica instance. Failover(context.Context, *SqlInstancesFailoverRequest) (*Operation, error) // Retrieves a resource containing information about a Cloud SQL instance. Get(context.Context, *SqlInstancesGetRequest) (*DatabaseInstance, error) // Imports data into a Cloud SQL instance from a SQL dump or CSV file in // Cloud Storage. Import(context.Context, *SqlInstancesImportRequest) (*Operation, error) // Creates a new Cloud SQL instance. Insert(context.Context, *SqlInstancesInsertRequest) (*Operation, error) // Lists instances under a given project. List(context.Context, *SqlInstancesListRequest) (*InstancesListResponse, error) // Lists all of the trusted Certificate Authorities (CAs) for the specified // instance. There can be up to three CAs listed: the CA that was used to sign // the certificate that is currently in use, a CA that has been added but not // yet used to sign a certificate, and a CA used to sign a certificate that // has previously rotated out. ListServerCas(context.Context, *SqlInstancesListServerCasRequest) (*InstancesListServerCasResponse, error) // Updates settings of a Cloud SQL instance. // This method supports patch semantics. Patch(context.Context, *SqlInstancesPatchRequest) (*Operation, error) // Promotes the read replica instance to be a stand-alone Cloud SQL instance. // Using this operation might cause your instance to restart. PromoteReplica(context.Context, *SqlInstancesPromoteReplicaRequest) (*Operation, error) // Deletes all client certificates and generates a new server SSL certificate // for the instance. ResetSslConfig(context.Context, *SqlInstancesResetSslConfigRequest) (*Operation, error) // Restarts a Cloud SQL instance. Restart(context.Context, *SqlInstancesRestartRequest) (*Operation, error) // Restores a backup of a Cloud SQL instance. Using this operation might cause // your instance to restart. RestoreBackup(context.Context, *SqlInstancesRestoreBackupRequest) (*Operation, error) // Rotates the server certificate to one signed by the Certificate Authority // (CA) version previously added with the addServerCA method. RotateServerCa(context.Context, *SqlInstancesRotateServerCaRequest) (*Operation, error) // Starts the replication in the read replica instance. StartReplica(context.Context, *SqlInstancesStartReplicaRequest) (*Operation, error) // Stops the replication in the read replica instance. StopReplica(context.Context, *SqlInstancesStopReplicaRequest) (*Operation, error) // Truncate MySQL general and slow query log tables // MySQL only. TruncateLog(context.Context, *SqlInstancesTruncateLogRequest) (*Operation, error) // Updates settings of a Cloud SQL instance. Using this operation might cause // your instance to restart. Update(context.Context, *SqlInstancesUpdateRequest) (*Operation, error) // Generates a short-lived X509 certificate containing the provided public key // and signed by a private key specific to the target instance. Users may use // the certificate to authenticate as themselves when connecting to the // database. CreateEphemeral(context.Context, *SqlInstancesCreateEphemeralCertRequest) (*SslCert, error) // Reschedules the maintenance on the given instance. RescheduleMaintenance(context.Context, *SqlInstancesRescheduleMaintenanceRequest) (*Operation, error) // Verify External primary instance external sync settings. VerifyExternalSyncSettings(context.Context, *SqlInstancesVerifyExternalSyncSettingsRequest) (*SqlInstancesVerifyExternalSyncSettingsResponse, error) // Start External primary instance migration. StartExternalSync(context.Context, *SqlInstancesStartExternalSyncRequest) (*Operation, error) }
Instance start external sync request.
type SqlInstancesStartExternalSyncRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // External sync mode. SyncMode SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode `protobuf:"varint,3,opt,name=sync_mode,json=syncMode,proto3,enum=google.cloud.sql.v1.SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode" json:"sync_mode,omitempty"` // Whether to skip the verification step (VESS). SkipVerification bool `protobuf:"varint,4,opt,name=skip_verification,json=skipVerification,proto3" json:"skip_verification,omitempty"` // Types that are assignable to SyncConfig: // *SqlInstancesStartExternalSyncRequest_MysqlSyncConfig SyncConfig isSqlInstancesStartExternalSyncRequest_SyncConfig `protobuf_oneof:"sync_config"` // contains filtered or unexported fields }
func (*SqlInstancesStartExternalSyncRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesStartExternalSyncRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesStartExternalSyncRequest) GetInstance() string
func (x *SqlInstancesStartExternalSyncRequest) GetMysqlSyncConfig() *MySqlSyncConfig
func (x *SqlInstancesStartExternalSyncRequest) GetProject() string
func (x *SqlInstancesStartExternalSyncRequest) GetSkipVerification() bool
func (m *SqlInstancesStartExternalSyncRequest) GetSyncConfig() isSqlInstancesStartExternalSyncRequest_SyncConfig
func (x *SqlInstancesStartExternalSyncRequest) GetSyncMode() SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode
func (*SqlInstancesStartExternalSyncRequest) ProtoMessage()
func (x *SqlInstancesStartExternalSyncRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesStartExternalSyncRequest) Reset()
func (x *SqlInstancesStartExternalSyncRequest) String() string
type SqlInstancesStartExternalSyncRequest_MysqlSyncConfig struct { // MySQL-specific settings for start external sync. MysqlSyncConfig *MySqlSyncConfig `protobuf:"bytes,6,opt,name=mysql_sync_config,json=mysqlSyncConfig,proto3,oneof"` }
Instance start replica request.
type SqlInstancesStartReplicaRequest struct { // Cloud SQL read replica instance name. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // ID of the project that contains the read replica. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesStartReplicaRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesStartReplicaRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesStartReplicaRequest) GetInstance() string
func (x *SqlInstancesStartReplicaRequest) GetProject() string
func (*SqlInstancesStartReplicaRequest) ProtoMessage()
func (x *SqlInstancesStartReplicaRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesStartReplicaRequest) Reset()
func (x *SqlInstancesStartReplicaRequest) String() string
Instance stop replica request.
type SqlInstancesStopReplicaRequest struct { // Cloud SQL read replica instance name. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // ID of the project that contains the read replica. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesStopReplicaRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesStopReplicaRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesStopReplicaRequest) GetInstance() string
func (x *SqlInstancesStopReplicaRequest) GetProject() string
func (*SqlInstancesStopReplicaRequest) ProtoMessage()
func (x *SqlInstancesStopReplicaRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesStopReplicaRequest) Reset()
func (x *SqlInstancesStopReplicaRequest) String() string
Instance truncate log request.
type SqlInstancesTruncateLogRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the Cloud SQL project. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *InstancesTruncateLogRequest `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesTruncateLogRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesTruncateLogRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesTruncateLogRequest) GetBody() *InstancesTruncateLogRequest
func (x *SqlInstancesTruncateLogRequest) GetInstance() string
func (x *SqlInstancesTruncateLogRequest) GetProject() string
func (*SqlInstancesTruncateLogRequest) ProtoMessage()
func (x *SqlInstancesTruncateLogRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesTruncateLogRequest) Reset()
func (x *SqlInstancesTruncateLogRequest) String() string
Instance update request.
type SqlInstancesUpdateRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *DatabaseInstance `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesUpdateRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesUpdateRequest) GetBody() *DatabaseInstance
func (x *SqlInstancesUpdateRequest) GetInstance() string
func (x *SqlInstancesUpdateRequest) GetProject() string
func (*SqlInstancesUpdateRequest) ProtoMessage()
func (x *SqlInstancesUpdateRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesUpdateRequest) Reset()
func (x *SqlInstancesUpdateRequest) String() string
Instance verify external sync settings request.
type SqlInstancesVerifyExternalSyncSettingsRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // Flag to enable verifying connection only VerifyConnectionOnly bool `protobuf:"varint,3,opt,name=verify_connection_only,json=verifyConnectionOnly,proto3" json:"verify_connection_only,omitempty"` // External sync mode SyncMode SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode `protobuf:"varint,4,opt,name=sync_mode,json=syncMode,proto3,enum=google.cloud.sql.v1.SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode" json:"sync_mode,omitempty"` // Optional. Flag to verify settings required by replication setup only VerifyReplicationOnly bool `protobuf:"varint,5,opt,name=verify_replication_only,json=verifyReplicationOnly,proto3" json:"verify_replication_only,omitempty"` // Types that are assignable to SyncConfig: // *SqlInstancesVerifyExternalSyncSettingsRequest_MysqlSyncConfig SyncConfig isSqlInstancesVerifyExternalSyncSettingsRequest_SyncConfig `protobuf_oneof:"sync_config"` // contains filtered or unexported fields }
func (*SqlInstancesVerifyExternalSyncSettingsRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesVerifyExternalSyncSettingsRequest.ProtoReflect.Descriptor instead.
func (x *SqlInstancesVerifyExternalSyncSettingsRequest) GetInstance() string
func (x *SqlInstancesVerifyExternalSyncSettingsRequest) GetMysqlSyncConfig() *MySqlSyncConfig
func (x *SqlInstancesVerifyExternalSyncSettingsRequest) GetProject() string
func (m *SqlInstancesVerifyExternalSyncSettingsRequest) GetSyncConfig() isSqlInstancesVerifyExternalSyncSettingsRequest_SyncConfig
func (x *SqlInstancesVerifyExternalSyncSettingsRequest) GetSyncMode() SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode
func (x *SqlInstancesVerifyExternalSyncSettingsRequest) GetVerifyConnectionOnly() bool
func (x *SqlInstancesVerifyExternalSyncSettingsRequest) GetVerifyReplicationOnly() bool
func (*SqlInstancesVerifyExternalSyncSettingsRequest) ProtoMessage()
func (x *SqlInstancesVerifyExternalSyncSettingsRequest) ProtoReflect() protoreflect.Message
func (x *SqlInstancesVerifyExternalSyncSettingsRequest) Reset()
func (x *SqlInstancesVerifyExternalSyncSettingsRequest) String() string
type SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode int32
const ( // Unknown external sync mode, will be defaulted to ONLINE mode SqlInstancesVerifyExternalSyncSettingsRequest_EXTERNAL_SYNC_MODE_UNSPECIFIED SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode = 0 // Online external sync will set up replication after initial data external // sync SqlInstancesVerifyExternalSyncSettingsRequest_ONLINE SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode = 1 // Offline external sync only dumps and loads a one-time snapshot of // the primary instance's data SqlInstancesVerifyExternalSyncSettingsRequest_OFFLINE SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode = 2 )
func (SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode) Descriptor() protoreflect.EnumDescriptor
func (x SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode) Enum() *SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode
func (SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode.Descriptor instead.
func (x SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode) Number() protoreflect.EnumNumber
func (x SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode) String() string
func (SqlInstancesVerifyExternalSyncSettingsRequest_ExternalSyncMode) Type() protoreflect.EnumType
type SqlInstancesVerifyExternalSyncSettingsRequest_MysqlSyncConfig struct { // Optional. MySQL-specific settings for start external sync. MysqlSyncConfig *MySqlSyncConfig `protobuf:"bytes,6,opt,name=mysql_sync_config,json=mysqlSyncConfig,proto3,oneof"` }
Instance verify external sync settings response.
type SqlInstancesVerifyExternalSyncSettingsResponse struct { // This is always **sql#migrationSettingErrorList**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // List of migration violations. Errors []*SqlExternalSyncSettingError `protobuf:"bytes,2,rep,name=errors,proto3" json:"errors,omitempty"` // List of migration warnings. Warnings []*SqlExternalSyncSettingError `protobuf:"bytes,3,rep,name=warnings,proto3" json:"warnings,omitempty"` // contains filtered or unexported fields }
func (*SqlInstancesVerifyExternalSyncSettingsResponse) Descriptor() ([]byte, []int)
Deprecated: Use SqlInstancesVerifyExternalSyncSettingsResponse.ProtoReflect.Descriptor instead.
func (x *SqlInstancesVerifyExternalSyncSettingsResponse) GetErrors() []*SqlExternalSyncSettingError
func (x *SqlInstancesVerifyExternalSyncSettingsResponse) GetKind() string
func (x *SqlInstancesVerifyExternalSyncSettingsResponse) GetWarnings() []*SqlExternalSyncSettingError
func (*SqlInstancesVerifyExternalSyncSettingsResponse) ProtoMessage()
func (x *SqlInstancesVerifyExternalSyncSettingsResponse) ProtoReflect() protoreflect.Message
func (x *SqlInstancesVerifyExternalSyncSettingsResponse) Reset()
func (x *SqlInstancesVerifyExternalSyncSettingsResponse) String() string
type SqlIpAddressType int32
const ( // This is an unknown IP address type. SqlIpAddressType_SQL_IP_ADDRESS_TYPE_UNSPECIFIED SqlIpAddressType = 0 // IP address the customer is supposed to connect to. Usually this is the // load balancer's IP address SqlIpAddressType_PRIMARY SqlIpAddressType = 1 // Source IP address of the connection a read replica establishes to its // external primary instance. This IP address can be allowlisted by the // customer in case it has a firewall that filters incoming connection to its // on premises primary instance. SqlIpAddressType_OUTGOING SqlIpAddressType = 2 // Private IP used when using private IPs and network peering. SqlIpAddressType_PRIVATE SqlIpAddressType = 3 // V1 IP of a migrated instance. We want the user to // decommission this IP as soon as the migration is complete. // Note: V1 instances with V1 ip addresses will be counted as PRIMARY. SqlIpAddressType_MIGRATED_1ST_GEN SqlIpAddressType = 4 )
func (SqlIpAddressType) Descriptor() protoreflect.EnumDescriptor
func (x SqlIpAddressType) Enum() *SqlIpAddressType
func (SqlIpAddressType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlIpAddressType.Descriptor instead.
func (x SqlIpAddressType) Number() protoreflect.EnumNumber
func (x SqlIpAddressType) String() string
func (SqlIpAddressType) Type() protoreflect.EnumType
Operations get request.
type SqlOperationsGetRequest struct { // Instance operation ID. Operation string `protobuf:"bytes,1,opt,name=operation,proto3" json:"operation,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlOperationsGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlOperationsGetRequest.ProtoReflect.Descriptor instead.
func (x *SqlOperationsGetRequest) GetOperation() string
func (x *SqlOperationsGetRequest) GetProject() string
func (*SqlOperationsGetRequest) ProtoMessage()
func (x *SqlOperationsGetRequest) ProtoReflect() protoreflect.Message
func (x *SqlOperationsGetRequest) Reset()
func (x *SqlOperationsGetRequest) String() string
Operations list request.
type SqlOperationsListRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Maximum number of operations per response. MaxResults uint32 `protobuf:"varint,2,opt,name=max_results,json=maxResults,proto3" json:"max_results,omitempty"` // A previously-returned page token representing part of the larger set of // results to view. PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlOperationsListRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlOperationsListRequest.ProtoReflect.Descriptor instead.
func (x *SqlOperationsListRequest) GetInstance() string
func (x *SqlOperationsListRequest) GetMaxResults() uint32
func (x *SqlOperationsListRequest) GetPageToken() string
func (x *SqlOperationsListRequest) GetProject() string
func (*SqlOperationsListRequest) ProtoMessage()
func (x *SqlOperationsListRequest) ProtoReflect() protoreflect.Message
func (x *SqlOperationsListRequest) Reset()
func (x *SqlOperationsListRequest) String() string
SqlOperationsServiceClient is the client API for SqlOperationsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SqlOperationsServiceClient interface { // Retrieves an instance operation that has been performed on an instance. Get(ctx context.Context, in *SqlOperationsGetRequest, opts ...grpc.CallOption) (*Operation, error) // Lists all instance operations that have been performed on the given Cloud // SQL instance in the reverse chronological order of the start time. List(ctx context.Context, in *SqlOperationsListRequest, opts ...grpc.CallOption) (*OperationsListResponse, error) }
func NewSqlOperationsServiceClient(cc grpc.ClientConnInterface) SqlOperationsServiceClient
SqlOperationsServiceServer is the server API for SqlOperationsService service.
type SqlOperationsServiceServer interface { // Retrieves an instance operation that has been performed on an instance. Get(context.Context, *SqlOperationsGetRequest) (*Operation, error) // Lists all instance operations that have been performed on the given Cloud // SQL instance in the reverse chronological order of the start time. List(context.Context, *SqlOperationsListRequest) (*OperationsListResponse, error) }
The pricing plan for this instance.
type SqlPricingPlan int32
const ( // This is an unknown pricing plan for this instance. SqlPricingPlan_SQL_PRICING_PLAN_UNSPECIFIED SqlPricingPlan = 0 // The instance is billed at a monthly flat rate. SqlPricingPlan_PACKAGE SqlPricingPlan = 1 // The instance is billed per usage. SqlPricingPlan_PER_USE SqlPricingPlan = 2 )
func (SqlPricingPlan) Descriptor() protoreflect.EnumDescriptor
func (x SqlPricingPlan) Enum() *SqlPricingPlan
func (SqlPricingPlan) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlPricingPlan.Descriptor instead.
func (x SqlPricingPlan) Number() protoreflect.EnumNumber
func (x SqlPricingPlan) String() string
func (SqlPricingPlan) Type() protoreflect.EnumType
type SqlReplicationType int32
const ( // This is an unknown replication type for a Cloud SQL instance. SqlReplicationType_SQL_REPLICATION_TYPE_UNSPECIFIED SqlReplicationType = 0 // The synchronous replication mode for First Generation instances. It is the // default value. SqlReplicationType_SYNCHRONOUS SqlReplicationType = 1 // The asynchronous replication mode for First Generation instances. It // provides a slight performance gain, but if an outage occurs while this // option is set to asynchronous, you can lose up to a few seconds of updates // to your data. SqlReplicationType_ASYNCHRONOUS SqlReplicationType = 2 )
func (SqlReplicationType) Descriptor() protoreflect.EnumDescriptor
func (x SqlReplicationType) Enum() *SqlReplicationType
func (SqlReplicationType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlReplicationType.Descriptor instead.
func (x SqlReplicationType) Number() protoreflect.EnumNumber
func (x SqlReplicationType) String() string
func (SqlReplicationType) Type() protoreflect.EnumType
SQL Server specific audit configuration.
type SqlServerAuditConfig struct { // This is always sql#sqlServerAuditConfig Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The name of the destination bucket (e.g., gs://mybucket). Bucket string `protobuf:"bytes,2,opt,name=bucket,proto3" json:"bucket,omitempty"` // contains filtered or unexported fields }
func (*SqlServerAuditConfig) Descriptor() ([]byte, []int)
Deprecated: Use SqlServerAuditConfig.ProtoReflect.Descriptor instead.
func (x *SqlServerAuditConfig) GetBucket() string
func (x *SqlServerAuditConfig) GetKind() string
func (*SqlServerAuditConfig) ProtoMessage()
func (x *SqlServerAuditConfig) ProtoReflect() protoreflect.Message
func (x *SqlServerAuditConfig) Reset()
func (x *SqlServerAuditConfig) String() string
Represents a Sql Server database on the Cloud SQL instance.
type SqlServerDatabaseDetails struct { // The version of SQL Server with which the database is to be made compatible CompatibilityLevel int32 `protobuf:"varint,1,opt,name=compatibility_level,json=compatibilityLevel,proto3" json:"compatibility_level,omitempty"` // The recovery model of a SQL Server database RecoveryModel string `protobuf:"bytes,2,opt,name=recovery_model,json=recoveryModel,proto3" json:"recovery_model,omitempty"` // contains filtered or unexported fields }
func (*SqlServerDatabaseDetails) Descriptor() ([]byte, []int)
Deprecated: Use SqlServerDatabaseDetails.ProtoReflect.Descriptor instead.
func (x *SqlServerDatabaseDetails) GetCompatibilityLevel() int32
func (x *SqlServerDatabaseDetails) GetRecoveryModel() string
func (*SqlServerDatabaseDetails) ProtoMessage()
func (x *SqlServerDatabaseDetails) ProtoReflect() protoreflect.Message
func (x *SqlServerDatabaseDetails) Reset()
func (x *SqlServerDatabaseDetails) String() string
Represents a Sql Server user on the Cloud SQL instance.
type SqlServerUserDetails struct { // If the user has been disabled Disabled bool `protobuf:"varint,1,opt,name=disabled,proto3" json:"disabled,omitempty"` // The server roles for this user ServerRoles []string `protobuf:"bytes,2,rep,name=server_roles,json=serverRoles,proto3" json:"server_roles,omitempty"` // contains filtered or unexported fields }
func (*SqlServerUserDetails) Descriptor() ([]byte, []int)
Deprecated: Use SqlServerUserDetails.ProtoReflect.Descriptor instead.
func (x *SqlServerUserDetails) GetDisabled() bool
func (x *SqlServerUserDetails) GetServerRoles() []string
func (*SqlServerUserDetails) ProtoMessage()
func (x *SqlServerUserDetails) ProtoReflect() protoreflect.Message
func (x *SqlServerUserDetails) Reset()
func (x *SqlServerUserDetails) String() string
type SqlSslCertsDeleteRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // Sha1 FingerPrint. Sha1Fingerprint string `protobuf:"bytes,3,opt,name=sha1_fingerprint,json=sha1Fingerprint,proto3" json:"sha1_fingerprint,omitempty"` // contains filtered or unexported fields }
func (*SqlSslCertsDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlSslCertsDeleteRequest.ProtoReflect.Descriptor instead.
func (x *SqlSslCertsDeleteRequest) GetInstance() string
func (x *SqlSslCertsDeleteRequest) GetProject() string
func (x *SqlSslCertsDeleteRequest) GetSha1Fingerprint() string
func (*SqlSslCertsDeleteRequest) ProtoMessage()
func (x *SqlSslCertsDeleteRequest) ProtoReflect() protoreflect.Message
func (x *SqlSslCertsDeleteRequest) Reset()
func (x *SqlSslCertsDeleteRequest) String() string
type SqlSslCertsGetRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // Sha1 FingerPrint. Sha1Fingerprint string `protobuf:"bytes,3,opt,name=sha1_fingerprint,json=sha1Fingerprint,proto3" json:"sha1_fingerprint,omitempty"` // contains filtered or unexported fields }
func (*SqlSslCertsGetRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlSslCertsGetRequest.ProtoReflect.Descriptor instead.
func (x *SqlSslCertsGetRequest) GetInstance() string
func (x *SqlSslCertsGetRequest) GetProject() string
func (x *SqlSslCertsGetRequest) GetSha1Fingerprint() string
func (*SqlSslCertsGetRequest) ProtoMessage()
func (x *SqlSslCertsGetRequest) ProtoReflect() protoreflect.Message
func (x *SqlSslCertsGetRequest) Reset()
func (x *SqlSslCertsGetRequest) String() string
type SqlSslCertsInsertRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *SslCertsInsertRequest `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlSslCertsInsertRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlSslCertsInsertRequest.ProtoReflect.Descriptor instead.
func (x *SqlSslCertsInsertRequest) GetBody() *SslCertsInsertRequest
func (x *SqlSslCertsInsertRequest) GetInstance() string
func (x *SqlSslCertsInsertRequest) GetProject() string
func (*SqlSslCertsInsertRequest) ProtoMessage()
func (x *SqlSslCertsInsertRequest) ProtoReflect() protoreflect.Message
func (x *SqlSslCertsInsertRequest) Reset()
func (x *SqlSslCertsInsertRequest) String() string
type SqlSslCertsListRequest struct { // Cloud SQL instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlSslCertsListRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlSslCertsListRequest.ProtoReflect.Descriptor instead.
func (x *SqlSslCertsListRequest) GetInstance() string
func (x *SqlSslCertsListRequest) GetProject() string
func (*SqlSslCertsListRequest) ProtoMessage()
func (x *SqlSslCertsListRequest) ProtoReflect() protoreflect.Message
func (x *SqlSslCertsListRequest) Reset()
func (x *SqlSslCertsListRequest) String() string
SqlSslCertsServiceClient is the client API for SqlSslCertsService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SqlSslCertsServiceClient interface { // Deletes the SSL certificate. For First Generation instances, the // certificate remains valid until the instance is restarted. Delete(ctx context.Context, in *SqlSslCertsDeleteRequest, opts ...grpc.CallOption) (*Operation, error) // Retrieves a particular SSL certificate. Does not include the private key // (required for usage). The private key must be saved from the response to // initial creation. Get(ctx context.Context, in *SqlSslCertsGetRequest, opts ...grpc.CallOption) (*SslCert, error) // Creates an SSL certificate and returns it along with the private key and // server certificate authority. The new certificate will not be usable until // the instance is restarted. Insert(ctx context.Context, in *SqlSslCertsInsertRequest, opts ...grpc.CallOption) (*SslCertsInsertResponse, error) // Lists all of the current SSL certificates for the instance. List(ctx context.Context, in *SqlSslCertsListRequest, opts ...grpc.CallOption) (*SslCertsListResponse, error) }
func NewSqlSslCertsServiceClient(cc grpc.ClientConnInterface) SqlSslCertsServiceClient
SqlSslCertsServiceServer is the server API for SqlSslCertsService service.
type SqlSslCertsServiceServer interface { // Deletes the SSL certificate. For First Generation instances, the // certificate remains valid until the instance is restarted. Delete(context.Context, *SqlSslCertsDeleteRequest) (*Operation, error) // Retrieves a particular SSL certificate. Does not include the private key // (required for usage). The private key must be saved from the response to // initial creation. Get(context.Context, *SqlSslCertsGetRequest) (*SslCert, error) // Creates an SSL certificate and returns it along with the private key and // server certificate authority. The new certificate will not be usable until // the instance is restarted. Insert(context.Context, *SqlSslCertsInsertRequest) (*SslCertsInsertResponse, error) // Lists all of the current SSL certificates for the instance. List(context.Context, *SqlSslCertsListRequest) (*SslCertsListResponse, error) }
The suspension reason of the database instance if the state is SUSPENDED.
type SqlSuspensionReason int32
const ( // This is an unknown suspension reason. SqlSuspensionReason_SQL_SUSPENSION_REASON_UNSPECIFIED SqlSuspensionReason = 0 // The instance is suspended due to billing issues (for example:, GCP account // issue) SqlSuspensionReason_BILLING_ISSUE SqlSuspensionReason = 2 // The instance is suspended due to illegal content (for example:, child // pornography, copyrighted material, etc.). SqlSuspensionReason_LEGAL_ISSUE SqlSuspensionReason = 3 // The instance is causing operational issues (for example:, causing the // database to crash). SqlSuspensionReason_OPERATIONAL_ISSUE SqlSuspensionReason = 4 // The KMS key used by the instance is either revoked or denied access to SqlSuspensionReason_KMS_KEY_ISSUE SqlSuspensionReason = 5 )
func (SqlSuspensionReason) Descriptor() protoreflect.EnumDescriptor
func (x SqlSuspensionReason) Enum() *SqlSuspensionReason
func (SqlSuspensionReason) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlSuspensionReason.Descriptor instead.
func (x SqlSuspensionReason) Number() protoreflect.EnumNumber
func (x SqlSuspensionReason) String() string
func (SqlSuspensionReason) Type() protoreflect.EnumType
Tiers list request.
type SqlTiersListRequest struct { // Project ID of the project for which to list tiers. Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlTiersListRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlTiersListRequest.ProtoReflect.Descriptor instead.
func (x *SqlTiersListRequest) GetProject() string
func (*SqlTiersListRequest) ProtoMessage()
func (x *SqlTiersListRequest) ProtoReflect() protoreflect.Message
func (x *SqlTiersListRequest) Reset()
func (x *SqlTiersListRequest) String() string
SqlTiersServiceClient is the client API for SqlTiersService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SqlTiersServiceClient interface { // Lists all available machine types (tiers) for Cloud SQL, for example, // db-custom-1-3840. For more information, see // https://cloud.google.com/sql/pricing. List(ctx context.Context, in *SqlTiersListRequest, opts ...grpc.CallOption) (*TiersListResponse, error) }
func NewSqlTiersServiceClient(cc grpc.ClientConnInterface) SqlTiersServiceClient
SqlTiersServiceServer is the server API for SqlTiersService service.
type SqlTiersServiceServer interface { // Lists all available machine types (tiers) for Cloud SQL, for example, // db-custom-1-3840. For more information, see // https://cloud.google.com/sql/pricing. List(context.Context, *SqlTiersListRequest) (*TiersListResponse, error) }
type SqlUpdateTrack int32
const ( // This is an unknown maintenance timing preference. SqlUpdateTrack_SQL_UPDATE_TRACK_UNSPECIFIED SqlUpdateTrack = 0 // For instance update that requires a restart, this update track indicates // your instance prefer to restart for new version early in maintenance // window. SqlUpdateTrack_canary SqlUpdateTrack = 1 // For instance update that requires a restart, this update track indicates // your instance prefer to let Cloud SQL choose the timing of restart (within // its Maintenance window, if applicable). SqlUpdateTrack_stable SqlUpdateTrack = 2 )
func (SqlUpdateTrack) Descriptor() protoreflect.EnumDescriptor
func (x SqlUpdateTrack) Enum() *SqlUpdateTrack
func (SqlUpdateTrack) EnumDescriptor() ([]byte, []int)
Deprecated: Use SqlUpdateTrack.Descriptor instead.
func (x SqlUpdateTrack) Number() protoreflect.EnumNumber
func (x SqlUpdateTrack) String() string
func (SqlUpdateTrack) Type() protoreflect.EnumType
type SqlUsersDeleteRequest struct { // Host of the user in the instance. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // Database instance ID. This does not include the project ID. Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"` // Name of the user in the instance. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlUsersDeleteRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlUsersDeleteRequest.ProtoReflect.Descriptor instead.
func (x *SqlUsersDeleteRequest) GetHost() string
func (x *SqlUsersDeleteRequest) GetInstance() string
func (x *SqlUsersDeleteRequest) GetName() string
func (x *SqlUsersDeleteRequest) GetProject() string
func (*SqlUsersDeleteRequest) ProtoMessage()
func (x *SqlUsersDeleteRequest) ProtoReflect() protoreflect.Message
func (x *SqlUsersDeleteRequest) Reset()
func (x *SqlUsersDeleteRequest) String() string
type SqlUsersInsertRequest struct { // Database instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` Body *User `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlUsersInsertRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlUsersInsertRequest.ProtoReflect.Descriptor instead.
func (x *SqlUsersInsertRequest) GetBody() *User
func (x *SqlUsersInsertRequest) GetInstance() string
func (x *SqlUsersInsertRequest) GetProject() string
func (*SqlUsersInsertRequest) ProtoMessage()
func (x *SqlUsersInsertRequest) ProtoReflect() protoreflect.Message
func (x *SqlUsersInsertRequest) Reset()
func (x *SqlUsersInsertRequest) String() string
type SqlUsersListRequest struct { // Database instance ID. This does not include the project ID. Instance string `protobuf:"bytes,1,opt,name=instance,proto3" json:"instance,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,2,opt,name=project,proto3" json:"project,omitempty"` // contains filtered or unexported fields }
func (*SqlUsersListRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlUsersListRequest.ProtoReflect.Descriptor instead.
func (x *SqlUsersListRequest) GetInstance() string
func (x *SqlUsersListRequest) GetProject() string
func (*SqlUsersListRequest) ProtoMessage()
func (x *SqlUsersListRequest) ProtoReflect() protoreflect.Message
func (x *SqlUsersListRequest) Reset()
func (x *SqlUsersListRequest) String() string
SqlUsersServiceClient is the client API for SqlUsersService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type SqlUsersServiceClient interface { // Deletes a user from a Cloud SQL instance. Delete(ctx context.Context, in *SqlUsersDeleteRequest, opts ...grpc.CallOption) (*Operation, error) // Creates a new user in a Cloud SQL instance. Insert(ctx context.Context, in *SqlUsersInsertRequest, opts ...grpc.CallOption) (*Operation, error) // Lists users in the specified Cloud SQL instance. List(ctx context.Context, in *SqlUsersListRequest, opts ...grpc.CallOption) (*UsersListResponse, error) // Updates an existing user in a Cloud SQL instance. Update(ctx context.Context, in *SqlUsersUpdateRequest, opts ...grpc.CallOption) (*Operation, error) }
func NewSqlUsersServiceClient(cc grpc.ClientConnInterface) SqlUsersServiceClient
SqlUsersServiceServer is the server API for SqlUsersService service.
type SqlUsersServiceServer interface { // Deletes a user from a Cloud SQL instance. Delete(context.Context, *SqlUsersDeleteRequest) (*Operation, error) // Creates a new user in a Cloud SQL instance. Insert(context.Context, *SqlUsersInsertRequest) (*Operation, error) // Lists users in the specified Cloud SQL instance. List(context.Context, *SqlUsersListRequest) (*UsersListResponse, error) // Updates an existing user in a Cloud SQL instance. Update(context.Context, *SqlUsersUpdateRequest) (*Operation, error) }
type SqlUsersUpdateRequest struct { // Optional. Host of the user in the instance. Host string `protobuf:"bytes,1,opt,name=host,proto3" json:"host,omitempty"` // Database instance ID. This does not include the project ID. Instance string `protobuf:"bytes,2,opt,name=instance,proto3" json:"instance,omitempty"` // Name of the user in the instance. Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"` // Project ID of the project that contains the instance. Project string `protobuf:"bytes,4,opt,name=project,proto3" json:"project,omitempty"` Body *User `protobuf:"bytes,100,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*SqlUsersUpdateRequest) Descriptor() ([]byte, []int)
Deprecated: Use SqlUsersUpdateRequest.ProtoReflect.Descriptor instead.
func (x *SqlUsersUpdateRequest) GetBody() *User
func (x *SqlUsersUpdateRequest) GetHost() string
func (x *SqlUsersUpdateRequest) GetInstance() string
func (x *SqlUsersUpdateRequest) GetName() string
func (x *SqlUsersUpdateRequest) GetProject() string
func (*SqlUsersUpdateRequest) ProtoMessage()
func (x *SqlUsersUpdateRequest) ProtoReflect() protoreflect.Message
func (x *SqlUsersUpdateRequest) Reset()
func (x *SqlUsersUpdateRequest) String() string
SslCerts Resource
type SslCert struct { // This is always **sql#sslCert**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // Serial number, as extracted from the certificate. CertSerialNumber string `protobuf:"bytes,2,opt,name=cert_serial_number,json=certSerialNumber,proto3" json:"cert_serial_number,omitempty"` // PEM representation. Cert string `protobuf:"bytes,3,opt,name=cert,proto3" json:"cert,omitempty"` // 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** CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` // User supplied name. Constrained to [a-zA-Z.-_ ]+. CommonName string `protobuf:"bytes,5,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` // The time when the certificate expires in [RFC // 3339](https://tools.ietf.org/html/rfc3339) format, for example // **2012-11-15T16:19:00.094Z**. ExpirationTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` // Sha1 Fingerprint. Sha1Fingerprint string `protobuf:"bytes,7,opt,name=sha1_fingerprint,json=sha1Fingerprint,proto3" json:"sha1_fingerprint,omitempty"` // Name of the database instance. Instance string `protobuf:"bytes,8,opt,name=instance,proto3" json:"instance,omitempty"` // The URI of this resource. SelfLink string `protobuf:"bytes,9,opt,name=self_link,json=selfLink,proto3" json:"self_link,omitempty"` // contains filtered or unexported fields }
func (*SslCert) Descriptor() ([]byte, []int)
Deprecated: Use SslCert.ProtoReflect.Descriptor instead.
func (x *SslCert) GetCert() string
func (x *SslCert) GetCertSerialNumber() string
func (x *SslCert) GetCommonName() string
func (x *SslCert) GetCreateTime() *timestamppb.Timestamp
func (x *SslCert) GetExpirationTime() *timestamppb.Timestamp
func (x *SslCert) GetInstance() string
func (x *SslCert) GetKind() string
func (x *SslCert) GetSelfLink() string
func (x *SslCert) GetSha1Fingerprint() string
func (*SslCert) ProtoMessage()
func (x *SslCert) ProtoReflect() protoreflect.Message
func (x *SslCert) Reset()
func (x *SslCert) String() string
SslCertDetail.
type SslCertDetail struct { // The public information about the cert. CertInfo *SslCert `protobuf:"bytes,1,opt,name=cert_info,json=certInfo,proto3" json:"cert_info,omitempty"` // The private key for the client cert, in pem format. Keep private in order // to protect your security. CertPrivateKey string `protobuf:"bytes,2,opt,name=cert_private_key,json=certPrivateKey,proto3" json:"cert_private_key,omitempty"` // contains filtered or unexported fields }
func (*SslCertDetail) Descriptor() ([]byte, []int)
Deprecated: Use SslCertDetail.ProtoReflect.Descriptor instead.
func (x *SslCertDetail) GetCertInfo() *SslCert
func (x *SslCertDetail) GetCertPrivateKey() string
func (*SslCertDetail) ProtoMessage()
func (x *SslCertDetail) ProtoReflect() protoreflect.Message
func (x *SslCertDetail) Reset()
func (x *SslCertDetail) String() string
SslCerts create ephemeral certificate request.
type SslCertsCreateEphemeralRequest struct { // PEM encoded public key to include in the signed certificate. PublicKey string `protobuf:"bytes,1,opt,name=public_key,json=publicKey,proto3" json:"public_key,omitempty"` // Access token to include in the signed certificate. AccessToken string `protobuf:"bytes,2,opt,name=access_token,json=accessToken,proto3" json:"access_token,omitempty"` // contains filtered or unexported fields }
func (*SslCertsCreateEphemeralRequest) Descriptor() ([]byte, []int)
Deprecated: Use SslCertsCreateEphemeralRequest.ProtoReflect.Descriptor instead.
func (x *SslCertsCreateEphemeralRequest) GetAccessToken() string
func (x *SslCertsCreateEphemeralRequest) GetPublicKey() string
func (*SslCertsCreateEphemeralRequest) ProtoMessage()
func (x *SslCertsCreateEphemeralRequest) ProtoReflect() protoreflect.Message
func (x *SslCertsCreateEphemeralRequest) Reset()
func (x *SslCertsCreateEphemeralRequest) String() string
SslCerts insert request.
type SslCertsInsertRequest struct { // User supplied name. Must be a distinct name from the other certificates // for this instance. CommonName string `protobuf:"bytes,1,opt,name=common_name,json=commonName,proto3" json:"common_name,omitempty"` // contains filtered or unexported fields }
func (*SslCertsInsertRequest) Descriptor() ([]byte, []int)
Deprecated: Use SslCertsInsertRequest.ProtoReflect.Descriptor instead.
func (x *SslCertsInsertRequest) GetCommonName() string
func (*SslCertsInsertRequest) ProtoMessage()
func (x *SslCertsInsertRequest) ProtoReflect() protoreflect.Message
func (x *SslCertsInsertRequest) Reset()
func (x *SslCertsInsertRequest) String() string
SslCert insert response.
type SslCertsInsertResponse struct { // This is always **sql#sslCertsInsert**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The operation to track the ssl certs insert request. Operation *Operation `protobuf:"bytes,2,opt,name=operation,proto3" json:"operation,omitempty"` // 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. ServerCaCert *SslCert `protobuf:"bytes,3,opt,name=server_ca_cert,json=serverCaCert,proto3" json:"server_ca_cert,omitempty"` // The new client certificate and private key. ClientCert *SslCertDetail `protobuf:"bytes,4,opt,name=client_cert,json=clientCert,proto3" json:"client_cert,omitempty"` // contains filtered or unexported fields }
func (*SslCertsInsertResponse) Descriptor() ([]byte, []int)
Deprecated: Use SslCertsInsertResponse.ProtoReflect.Descriptor instead.
func (x *SslCertsInsertResponse) GetClientCert() *SslCertDetail
func (x *SslCertsInsertResponse) GetKind() string
func (x *SslCertsInsertResponse) GetOperation() *Operation
func (x *SslCertsInsertResponse) GetServerCaCert() *SslCert
func (*SslCertsInsertResponse) ProtoMessage()
func (x *SslCertsInsertResponse) ProtoReflect() protoreflect.Message
func (x *SslCertsInsertResponse) Reset()
func (x *SslCertsInsertResponse) String() string
SslCerts list response.
type SslCertsListResponse struct { // This is always **sql#sslCertsList**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // List of client certificates for the instance. Items []*SslCert `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*SslCertsListResponse) Descriptor() ([]byte, []int)
Deprecated: Use SslCertsListResponse.ProtoReflect.Descriptor instead.
func (x *SslCertsListResponse) GetItems() []*SslCert
func (x *SslCertsListResponse) GetKind() string
func (*SslCertsListResponse) ProtoMessage()
func (x *SslCertsListResponse) ProtoReflect() protoreflect.Message
func (x *SslCertsListResponse) Reset()
func (x *SslCertsListResponse) String() string
Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL external server initial dump.
type SyncFlags struct { // The name of the flag. Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // The value of the flag. This field must be omitted if the flag // doesn't take a value. Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` // contains filtered or unexported fields }
func (*SyncFlags) Descriptor() ([]byte, []int)
Deprecated: Use SyncFlags.ProtoReflect.Descriptor instead.
func (x *SyncFlags) GetName() string
func (x *SyncFlags) GetValue() string
func (*SyncFlags) ProtoMessage()
func (x *SyncFlags) ProtoReflect() protoreflect.Message
func (x *SyncFlags) Reset()
func (x *SyncFlags) String() string
A Google Cloud SQL service tier resource.
type Tier struct { // An identifier for the machine type, for example, db-custom-1-3840. For // related information, see [Pricing](/sql/pricing). Tier string `protobuf:"bytes,1,opt,name=tier,proto3" json:"tier,omitempty"` // The maximum RAM usage of this tier in bytes. RAM int64 `protobuf:"varint,2,opt,name=RAM,proto3" json:"RAM,omitempty"` // This is always **sql#tier**. Kind string `protobuf:"bytes,3,opt,name=kind,proto3" json:"kind,omitempty"` // The maximum disk size of this tier in bytes. Disk_Quota int64 `protobuf:"varint,4,opt,name=Disk_Quota,json=DiskQuota,proto3" json:"Disk_Quota,omitempty"` // The applicable regions for this tier. Region []string `protobuf:"bytes,5,rep,name=region,proto3" json:"region,omitempty"` // contains filtered or unexported fields }
func (*Tier) Descriptor() ([]byte, []int)
Deprecated: Use Tier.ProtoReflect.Descriptor instead.
func (x *Tier) GetDisk_Quota() int64
func (x *Tier) GetKind() string
func (x *Tier) GetRAM() int64
func (x *Tier) GetRegion() []string
func (x *Tier) GetTier() string
func (*Tier) ProtoMessage()
func (x *Tier) ProtoReflect() protoreflect.Message
func (x *Tier) Reset()
func (x *Tier) String() string
Tiers list response.
type TiersListResponse struct { // This is always **sql#tiersList**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // List of tiers. Items []*Tier `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // contains filtered or unexported fields }
func (*TiersListResponse) Descriptor() ([]byte, []int)
Deprecated: Use TiersListResponse.ProtoReflect.Descriptor instead.
func (x *TiersListResponse) GetItems() []*Tier
func (x *TiersListResponse) GetKind() string
func (*TiersListResponse) ProtoMessage()
func (x *TiersListResponse) ProtoReflect() protoreflect.Message
func (x *TiersListResponse) Reset()
func (x *TiersListResponse) String() string
Database Instance truncate log context.
type TruncateLogContext struct { // This is always **sql#truncateLogContext**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The type of log to truncate. Valid values are **MYSQL_GENERAL_TABLE** and // **MYSQL_SLOW_TABLE**. LogType string `protobuf:"bytes,2,opt,name=log_type,json=logType,proto3" json:"log_type,omitempty"` // contains filtered or unexported fields }
func (*TruncateLogContext) Descriptor() ([]byte, []int)
Deprecated: Use TruncateLogContext.ProtoReflect.Descriptor instead.
func (x *TruncateLogContext) GetKind() string
func (x *TruncateLogContext) GetLogType() string
func (*TruncateLogContext) ProtoMessage()
func (x *TruncateLogContext) ProtoReflect() protoreflect.Message
func (x *TruncateLogContext) Reset()
func (x *TruncateLogContext) String() string
UnimplementedSqlBackupRunsServiceServer can be embedded to have forward compatible implementations.
type UnimplementedSqlBackupRunsServiceServer struct { }
func (*UnimplementedSqlBackupRunsServiceServer) Delete(context.Context, *SqlBackupRunsDeleteRequest) (*Operation, error)
func (*UnimplementedSqlBackupRunsServiceServer) Get(context.Context, *SqlBackupRunsGetRequest) (*BackupRun, error)
func (*UnimplementedSqlBackupRunsServiceServer) Insert(context.Context, *SqlBackupRunsInsertRequest) (*Operation, error)
func (*UnimplementedSqlBackupRunsServiceServer) List(context.Context, *SqlBackupRunsListRequest) (*BackupRunsListResponse, error)
UnimplementedSqlConnectServiceServer can be embedded to have forward compatible implementations.
type UnimplementedSqlConnectServiceServer struct { }
func (*UnimplementedSqlConnectServiceServer) GenerateEphemeralCert(context.Context, *GenerateEphemeralCertRequest) (*GenerateEphemeralCertResponse, error)
func (*UnimplementedSqlConnectServiceServer) GetConnectSettings(context.Context, *GetConnectSettingsRequest) (*ConnectSettings, error)
UnimplementedSqlDatabasesServiceServer can be embedded to have forward compatible implementations.
type UnimplementedSqlDatabasesServiceServer struct { }
func (*UnimplementedSqlDatabasesServiceServer) Delete(context.Context, *SqlDatabasesDeleteRequest) (*Operation, error)
func (*UnimplementedSqlDatabasesServiceServer) Get(context.Context, *SqlDatabasesGetRequest) (*Database, error)
func (*UnimplementedSqlDatabasesServiceServer) Insert(context.Context, *SqlDatabasesInsertRequest) (*Operation, error)
func (*UnimplementedSqlDatabasesServiceServer) List(context.Context, *SqlDatabasesListRequest) (*DatabasesListResponse, error)
func (*UnimplementedSqlDatabasesServiceServer) Patch(context.Context, *SqlDatabasesUpdateRequest) (*Operation, error)
func (*UnimplementedSqlDatabasesServiceServer) Update(context.Context, *SqlDatabasesUpdateRequest) (*Operation, error)
UnimplementedSqlFlagsServiceServer can be embedded to have forward compatible implementations.
type UnimplementedSqlFlagsServiceServer struct { }
func (*UnimplementedSqlFlagsServiceServer) List(context.Context, *SqlFlagsListRequest) (*FlagsListResponse, error)
UnimplementedSqlInstanceNamesServiceServer can be embedded to have forward compatible implementations.
type UnimplementedSqlInstanceNamesServiceServer struct { }
UnimplementedSqlInstancesServiceServer can be embedded to have forward compatible implementations.
type UnimplementedSqlInstancesServiceServer struct { }
func (*UnimplementedSqlInstancesServiceServer) AddServerCa(context.Context, *SqlInstancesAddServerCaRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) Clone(context.Context, *SqlInstancesCloneRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) CreateEphemeral(context.Context, *SqlInstancesCreateEphemeralCertRequest) (*SslCert, error)
func (*UnimplementedSqlInstancesServiceServer) Delete(context.Context, *SqlInstancesDeleteRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) DemoteMaster(context.Context, *SqlInstancesDemoteMasterRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) Export(context.Context, *SqlInstancesExportRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) Failover(context.Context, *SqlInstancesFailoverRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) Get(context.Context, *SqlInstancesGetRequest) (*DatabaseInstance, error)
func (*UnimplementedSqlInstancesServiceServer) Import(context.Context, *SqlInstancesImportRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) Insert(context.Context, *SqlInstancesInsertRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) List(context.Context, *SqlInstancesListRequest) (*InstancesListResponse, error)
func (*UnimplementedSqlInstancesServiceServer) ListServerCas(context.Context, *SqlInstancesListServerCasRequest) (*InstancesListServerCasResponse, error)
func (*UnimplementedSqlInstancesServiceServer) Patch(context.Context, *SqlInstancesPatchRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) PromoteReplica(context.Context, *SqlInstancesPromoteReplicaRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) RescheduleMaintenance(context.Context, *SqlInstancesRescheduleMaintenanceRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) ResetSslConfig(context.Context, *SqlInstancesResetSslConfigRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) Restart(context.Context, *SqlInstancesRestartRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) RestoreBackup(context.Context, *SqlInstancesRestoreBackupRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) RotateServerCa(context.Context, *SqlInstancesRotateServerCaRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) StartExternalSync(context.Context, *SqlInstancesStartExternalSyncRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) StartReplica(context.Context, *SqlInstancesStartReplicaRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) StopReplica(context.Context, *SqlInstancesStopReplicaRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) TruncateLog(context.Context, *SqlInstancesTruncateLogRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) Update(context.Context, *SqlInstancesUpdateRequest) (*Operation, error)
func (*UnimplementedSqlInstancesServiceServer) VerifyExternalSyncSettings(context.Context, *SqlInstancesVerifyExternalSyncSettingsRequest) (*SqlInstancesVerifyExternalSyncSettingsResponse, error)
UnimplementedSqlOperationsServiceServer can be embedded to have forward compatible implementations.
type UnimplementedSqlOperationsServiceServer struct { }
func (*UnimplementedSqlOperationsServiceServer) Get(context.Context, *SqlOperationsGetRequest) (*Operation, error)
func (*UnimplementedSqlOperationsServiceServer) List(context.Context, *SqlOperationsListRequest) (*OperationsListResponse, error)
UnimplementedSqlSslCertsServiceServer can be embedded to have forward compatible implementations.
type UnimplementedSqlSslCertsServiceServer struct { }
func (*UnimplementedSqlSslCertsServiceServer) Delete(context.Context, *SqlSslCertsDeleteRequest) (*Operation, error)
func (*UnimplementedSqlSslCertsServiceServer) Get(context.Context, *SqlSslCertsGetRequest) (*SslCert, error)
func (*UnimplementedSqlSslCertsServiceServer) Insert(context.Context, *SqlSslCertsInsertRequest) (*SslCertsInsertResponse, error)
func (*UnimplementedSqlSslCertsServiceServer) List(context.Context, *SqlSslCertsListRequest) (*SslCertsListResponse, error)
UnimplementedSqlTiersServiceServer can be embedded to have forward compatible implementations.
type UnimplementedSqlTiersServiceServer struct { }
func (*UnimplementedSqlTiersServiceServer) List(context.Context, *SqlTiersListRequest) (*TiersListResponse, error)
UnimplementedSqlUsersServiceServer can be embedded to have forward compatible implementations.
type UnimplementedSqlUsersServiceServer struct { }
func (*UnimplementedSqlUsersServiceServer) Delete(context.Context, *SqlUsersDeleteRequest) (*Operation, error)
func (*UnimplementedSqlUsersServiceServer) Insert(context.Context, *SqlUsersInsertRequest) (*Operation, error)
func (*UnimplementedSqlUsersServiceServer) List(context.Context, *SqlUsersListRequest) (*UsersListResponse, error)
func (*UnimplementedSqlUsersServiceServer) Update(context.Context, *SqlUsersUpdateRequest) (*Operation, error)
A Cloud SQL user resource.
type User struct { // This is always **sql#user**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // The password for the user. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // This field is deprecated and will be removed from a future version of the // API. Etag string `protobuf:"bytes,3,opt,name=etag,proto3" json:"etag,omitempty"` // The name of the user in the Cloud SQL instance. Can be omitted for // **update** since it is already specified in the URL. Name string `protobuf:"bytes,4,opt,name=name,proto3" json:"name,omitempty"` // The host name from which the user can connect. For **insert** // operations, host defaults to an empty string. For **update** // operations, host is specified as part of the request URL. The host name // cannot be updated after insertion. Host string `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"` // The name of the Cloud SQL instance. This does not include the project ID. // Can be omitted for **update** since it is already specified on the // URL. Instance string `protobuf:"bytes,6,opt,name=instance,proto3" json:"instance,omitempty"` // The project ID of the project containing the Cloud SQL database. The Google // apps domain is prefixed if applicable. Can be omitted for **update** since // it is already specified on the URL. Project string `protobuf:"bytes,7,opt,name=project,proto3" json:"project,omitempty"` // The user type. It determines the method to authenticate the user during // login. The default is the database's built-in user type. Type User_SqlUserType `protobuf:"varint,8,opt,name=type,proto3,enum=google.cloud.sql.v1.User_SqlUserType" json:"type,omitempty"` // User details for specific database type // // Types that are assignable to UserDetails: // *User_SqlserverUserDetails UserDetails isUser_UserDetails `protobuf_oneof:"user_details"` // contains filtered or unexported fields }
func (*User) Descriptor() ([]byte, []int)
Deprecated: Use User.ProtoReflect.Descriptor instead.
func (x *User) GetEtag() string
func (x *User) GetHost() string
func (x *User) GetInstance() string
func (x *User) GetKind() string
func (x *User) GetName() string
func (x *User) GetPassword() string
func (x *User) GetProject() string
func (x *User) GetSqlserverUserDetails() *SqlServerUserDetails
func (x *User) GetType() User_SqlUserType
func (m *User) GetUserDetails() isUser_UserDetails
func (*User) ProtoMessage()
func (x *User) ProtoReflect() protoreflect.Message
func (x *User) Reset()
func (x *User) String() string
The user type.
type User_SqlUserType int32
const ( // The database's built-in user type. User_BUILT_IN User_SqlUserType = 0 // Cloud IAM user. User_CLOUD_IAM_USER User_SqlUserType = 1 // Cloud IAM service account. User_CLOUD_IAM_SERVICE_ACCOUNT User_SqlUserType = 2 )
func (User_SqlUserType) Descriptor() protoreflect.EnumDescriptor
func (x User_SqlUserType) Enum() *User_SqlUserType
func (User_SqlUserType) EnumDescriptor() ([]byte, []int)
Deprecated: Use User_SqlUserType.Descriptor instead.
func (x User_SqlUserType) Number() protoreflect.EnumNumber
func (x User_SqlUserType) String() string
func (User_SqlUserType) Type() protoreflect.EnumType
type User_SqlserverUserDetails struct { SqlserverUserDetails *SqlServerUserDetails `protobuf:"bytes,9,opt,name=sqlserver_user_details,json=sqlserverUserDetails,proto3,oneof"` }
User list response.
type UsersListResponse struct { // This is always **sql#usersList**. Kind string `protobuf:"bytes,1,opt,name=kind,proto3" json:"kind,omitempty"` // List of user resources in the instance. Items []*User `protobuf:"bytes,2,rep,name=items,proto3" json:"items,omitempty"` // An identifier that uniquely identifies the operation. You can use this // identifier to retrieve the Operations resource that has information about // the operation. NextPageToken string `protobuf:"bytes,3,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` // contains filtered or unexported fields }
func (*UsersListResponse) Descriptor() ([]byte, []int)
Deprecated: Use UsersListResponse.ProtoReflect.Descriptor instead.
func (x *UsersListResponse) GetItems() []*User
func (x *UsersListResponse) GetKind() string
func (x *UsersListResponse) GetNextPageToken() string
func (*UsersListResponse) ProtoMessage()
func (x *UsersListResponse) ProtoReflect() protoreflect.Message
func (x *UsersListResponse) Reset()
func (x *UsersListResponse) String() string