12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177 |
- syntax = "proto3";
- package google.cloud.sql.v1beta4;
- import "google/api/field_behavior.proto";
- import "google/protobuf/duration.proto";
- import "google/protobuf/timestamp.proto";
- import "google/protobuf/wrappers.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/sql/v1beta4;sql";
- option java_multiple_files = true;
- option java_outer_classname = "CloudSqlResourcesProto";
- option java_package = "com.google.cloud.sql.v1beta4";
- message AclEntry {
-
- string value = 1;
-
-
-
- google.protobuf.Timestamp expiration_time = 2;
-
- string name = 3 [(google.api.field_behavior) = OPTIONAL];
-
- string kind = 4;
- }
- message ApiWarning {
- enum SqlApiWarningCode {
-
- SQL_API_WARNING_CODE_UNSPECIFIED = 0;
-
-
- REGION_UNREACHABLE = 1;
- }
-
- SqlApiWarningCode code = 1;
-
- string message = 2;
-
- string region = 3;
- }
- message BackupRetentionSettings {
-
- enum RetentionUnit {
-
- RETENTION_UNIT_UNSPECIFIED = 0;
-
- COUNT = 1;
- }
-
- RetentionUnit retention_unit = 1;
-
-
-
- google.protobuf.Int32Value retained_backups = 2;
- }
- message BackupConfiguration {
-
-
- string start_time = 1;
-
- google.protobuf.BoolValue enabled = 2;
-
- string kind = 3;
-
-
- google.protobuf.BoolValue binary_log_enabled = 4;
-
- google.protobuf.BoolValue replication_log_archiving_enabled = 5;
-
- string location = 6;
-
- google.protobuf.BoolValue point_in_time_recovery_enabled = 7;
-
-
- google.protobuf.Int32Value transaction_log_retention_days = 9;
-
- BackupRetentionSettings backup_retention_settings = 10;
- }
- message BackupRun {
-
- string kind = 1;
-
- SqlBackupRunStatus status = 2;
-
-
-
- google.protobuf.Timestamp enqueued_time = 3;
-
-
- int64 id = 4;
-
-
-
- google.protobuf.Timestamp start_time = 5;
-
-
-
- google.protobuf.Timestamp end_time = 6;
-
-
- OperationError error = 7;
-
-
- SqlBackupRunType type = 8;
-
- string description = 9;
-
-
-
- google.protobuf.Timestamp window_start_time = 10;
-
- string instance = 11;
-
- string self_link = 12;
-
- string location = 13;
-
- DiskEncryptionConfiguration disk_encryption_configuration = 16;
-
- DiskEncryptionStatus disk_encryption_status = 17;
-
- SqlBackupKind backup_kind = 19;
- }
- message BackupRunsListResponse {
-
- string kind = 1;
-
- repeated BackupRun items = 2;
-
-
- string next_page_token = 3;
- }
- message BinLogCoordinates {
-
- string bin_log_file_name = 1;
-
- int64 bin_log_position = 2;
-
- string kind = 3;
- }
- message BackupContext {
-
- int64 backup_id = 1;
-
- string kind = 2;
- }
- message CloneContext {
-
- string kind = 1;
-
- int64 pitr_timestamp_ms = 2;
-
- string destination_instance_name = 3;
-
-
-
- BinLogCoordinates bin_log_coordinates = 4;
-
-
- google.protobuf.Timestamp point_in_time = 5;
-
-
-
-
-
-
-
- string allocated_ip_range = 6;
- }
- message Database {
-
- string kind = 1;
-
- string charset = 2;
-
- string collation = 3;
-
-
- string etag = 4;
-
-
- string name = 5;
-
- string instance = 6;
-
- string self_link = 7;
-
-
- string project = 8;
- oneof database_details {
- SqlServerDatabaseDetails sqlserver_database_details = 9;
- }
- }
- message SqlServerDatabaseDetails {
-
- int32 compatibility_level = 1;
-
- string recovery_model = 2;
- }
- message DatabaseFlags {
-
-
-
-
-
- string name = 1;
-
-
-
- string value = 2;
- }
- message SyncFlags {
-
- string name = 1;
-
-
- string value = 2;
- }
- message InstanceReference {
-
-
- string name = 1;
-
- string region = 2;
-
-
- string project = 3;
- }
- message DatabaseInstance {
-
- enum SqlInstanceState {
-
- SQL_INSTANCE_STATE_UNSPECIFIED = 0;
-
- RUNNABLE = 1;
-
- SUSPENDED = 2;
-
- PENDING_DELETE = 3;
-
- PENDING_CREATE = 4;
-
- MAINTENANCE = 5;
-
-
- FAILED = 6;
-
- ONLINE_MAINTENANCE = 7 [deprecated = true];
- }
- message SqlFailoverReplica {
-
-
-
- string name = 1;
-
-
-
- google.protobuf.BoolValue available = 2;
- }
-
- message SqlScheduledMaintenance {
-
- google.protobuf.Timestamp start_time = 1;
- bool can_defer = 2 [deprecated = true];
-
- bool can_reschedule = 3;
-
- optional google.protobuf.Timestamp schedule_deadline_time = 4;
- }
-
- message SqlOutOfDiskReport {
-
- enum SqlOutOfDiskState {
-
- SQL_OUT_OF_DISK_STATE_UNSPECIFIED = 0;
-
- NORMAL = 1;
-
-
- SOFT_SHUTDOWN = 2;
- }
-
-
-
-
-
-
- optional SqlOutOfDiskState sql_out_of_disk_state = 1;
-
-
-
-
-
- optional int32 sql_min_recommended_increase_size_gb = 2;
- }
-
- string kind = 1;
-
- SqlInstanceState state = 2;
-
-
- SqlDatabaseVersion database_version = 3;
-
- Settings settings = 4;
-
-
- string etag = 5;
-
- SqlFailoverReplica failover_replica = 6;
-
-
- string master_instance_name = 7;
-
- repeated string replica_names = 8;
-
- google.protobuf.Int64Value max_disk_size = 9 [deprecated = true];
-
-
-
-
-
-
- google.protobuf.Int64Value current_disk_size = 10 [deprecated = true];
-
- repeated IpMapping ip_addresses = 11;
-
- SslCert server_ca_cert = 12;
-
- SqlInstanceType instance_type = 13;
-
-
- string project = 14;
-
-
-
- string ipv6_address = 15 [deprecated = true];
-
-
- string service_account_email_address = 16;
-
- OnPremisesConfiguration on_premises_configuration = 17;
-
- ReplicaConfiguration replica_configuration = 18;
-
-
-
-
-
-
- SqlBackendType backend_type = 19;
-
- string self_link = 20;
-
- repeated SqlSuspensionReason suspension_reason = 21;
-
- string connection_name = 22;
-
- string name = 23;
-
-
-
-
-
-
-
- string region = 24;
-
-
-
-
- string gce_zone = 25;
-
-
-
-
- string secondary_gce_zone = 34;
-
- DiskEncryptionConfiguration disk_encryption_configuration = 26;
-
- DiskEncryptionStatus disk_encryption_status = 27;
-
- string root_password = 29;
-
- SqlScheduledMaintenance scheduled_maintenance = 30;
-
-
- google.protobuf.BoolValue satisfies_pzs = 35;
-
-
- string database_installed_version = 40 [(google.api.field_behavior) = OUTPUT_ONLY];
-
-
-
-
-
-
- optional SqlOutOfDiskReport out_of_disk_report = 38;
-
-
-
- google.protobuf.Timestamp create_time = 39 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- repeated string available_maintenance_versions = 41;
-
- string maintenance_version = 42;
- }
- message DatabasesListResponse {
-
- string kind = 1;
-
- repeated Database items = 2;
- }
- message DemoteMasterConfiguration {
-
- string kind = 1;
-
-
-
-
-
-
- DemoteMasterMySqlReplicaConfiguration mysql_replica_configuration = 2;
- }
- message DemoteMasterContext {
-
- string kind = 1;
-
-
-
-
-
-
-
- google.protobuf.BoolValue verify_gtid_consistency = 2;
-
-
- string master_instance_name = 3;
-
-
- DemoteMasterConfiguration replica_configuration = 4;
-
- bool skip_replication_setup = 5;
- }
- message DemoteMasterMySqlReplicaConfiguration {
-
- string kind = 1;
-
- string username = 2;
-
- string password = 3;
-
-
-
- string client_key = 4;
-
- string client_certificate = 5;
-
- string ca_certificate = 6;
- }
- enum SqlFileType {
-
- SQL_FILE_TYPE_UNSPECIFIED = 0;
-
- SQL = 1;
-
- CSV = 2;
- BAK = 4;
- }
- message ExportContext {
- message SqlCsvExportOptions {
-
- string select_query = 1;
-
-
- string escape_character = 2;
-
- string quote_character = 3;
-
-
- string fields_terminated_by = 4;
-
-
- string lines_terminated_by = 6;
- }
- message SqlExportOptions {
-
- message MysqlExportOptions {
-
-
-
-
-
-
- google.protobuf.Int32Value master_data = 1;
- }
-
-
-
- repeated string tables = 1;
-
- google.protobuf.BoolValue schema_only = 2;
- MysqlExportOptions mysql_export_options = 3;
- }
-
-
-
-
-
- string uri = 1;
-
-
-
-
-
-
-
-
-
-
-
-
- repeated string databases = 2;
-
- string kind = 3;
-
- SqlExportOptions sql_export_options = 4;
-
-
- SqlCsvExportOptions csv_export_options = 5;
-
- SqlFileType file_type = 6;
-
- google.protobuf.BoolValue offload = 8;
- }
- message FailoverContext {
-
-
- int64 settings_version = 1;
-
- string kind = 2;
- }
- message Flag {
-
-
- string name = 1;
-
-
-
- SqlFlagType type = 2;
-
-
-
-
-
-
-
-
-
-
- repeated SqlDatabaseVersion applies_to = 3;
-
- repeated string allowed_string_values = 4;
-
- google.protobuf.Int64Value min_value = 5;
-
- google.protobuf.Int64Value max_value = 6;
-
-
- google.protobuf.BoolValue requires_restart = 7;
-
- string kind = 8;
-
- google.protobuf.BoolValue in_beta = 9;
-
-
- repeated int64 allowed_int_values = 10;
- }
- message FlagsListResponse {
-
- string kind = 1;
-
- repeated Flag items = 2;
- }
- message ImportContext {
- message SqlCsvImportOptions {
-
- string table = 1;
-
-
- repeated string columns = 2;
-
-
- string escape_character = 4;
-
- string quote_character = 5;
-
-
- string fields_terminated_by = 6;
-
-
- string lines_terminated_by = 8;
- }
- message SqlBakImportOptions {
- message EncryptionOptions {
-
-
-
- string cert_path = 1;
-
-
-
- string pvk_path = 2;
-
- string pvk_password = 3;
- }
- EncryptionOptions encryption_options = 1;
- }
-
-
-
-
- string uri = 1;
-
-
-
-
- string database = 2;
-
- string kind = 3;
-
-
-
-
- SqlFileType file_type = 4;
-
- SqlCsvImportOptions csv_import_options = 5;
-
- string import_user = 6;
-
- SqlBakImportOptions bak_import_options = 7;
- }
- message InstancesCloneRequest {
-
- CloneContext clone_context = 1;
- }
- message InstancesDemoteMasterRequest {
-
- DemoteMasterContext demote_master_context = 1;
- }
- message InstancesExportRequest {
-
- ExportContext export_context = 1;
- }
- message InstancesFailoverRequest {
-
- FailoverContext failover_context = 1;
- }
- message InstancesImportRequest {
-
- ImportContext import_context = 1;
- }
- message MySqlSyncConfig {
-
- repeated SyncFlags initial_sync_flags = 1;
- }
- message InstancesListResponse {
-
- string kind = 1;
-
- repeated ApiWarning warnings = 2;
-
- repeated DatabaseInstance items = 3;
-
-
- string next_page_token = 4;
- }
- message InstancesListServerCasResponse {
-
- repeated SslCert certs = 1;
- string active_version = 2;
-
- string kind = 3;
- }
- message InstancesRestoreBackupRequest {
-
- RestoreBackupContext restore_backup_context = 1;
- }
- message InstancesRotateServerCaRequest {
-
- RotateServerCaContext rotate_server_ca_context = 1;
- }
- message InstancesTruncateLogRequest {
-
- TruncateLogContext truncate_log_context = 1;
- }
- message SqlInstancesVerifyExternalSyncSettingsResponse {
-
- string kind = 1;
-
- repeated SqlExternalSyncSettingError errors = 2;
-
- repeated SqlExternalSyncSettingError warnings = 3;
- }
- message SqlExternalSyncSettingError {
- enum SqlExternalSyncSettingErrorType {
- 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;
-
- UNSUPPORTED_STORAGE_ENGINE = 26;
- }
-
-
- string kind = 1;
-
- SqlExternalSyncSettingErrorType type = 2;
-
- string detail = 3;
- }
- message IpConfiguration {
-
- google.protobuf.BoolValue ipv4_enabled = 1;
-
-
-
-
- string private_network = 2;
-
- google.protobuf.BoolValue require_ssl = 3;
-
-
-
- repeated AclEntry authorized_networks = 4;
-
-
-
-
-
-
- string allocated_ip_range = 6;
- }
- message IpMapping {
-
-
-
-
- SqlIpAddressType type = 1;
-
- string ip_address = 2;
-
-
-
-
- google.protobuf.Timestamp time_to_retire = 3;
- }
- message LocationPreference {
-
-
- string follow_gae_application = 1 [deprecated = true];
-
-
- string zone = 2;
-
-
- string secondary_zone = 4;
-
- string kind = 3;
- }
- message MaintenanceWindow {
-
- google.protobuf.Int32Value hour = 1;
-
- google.protobuf.Int32Value day = 2;
-
-
-
- SqlUpdateTrack update_track = 3;
-
- string kind = 4;
- }
- message DenyMaintenancePeriod {
-
-
-
-
- string start_date = 1;
-
-
-
-
- string end_date = 2;
-
-
- string time = 3;
- }
- message InsightsConfig {
-
- bool query_insights_enabled = 1;
-
- bool record_client_address = 2;
-
-
- bool record_application_tags = 3;
-
-
-
-
- google.protobuf.Int32Value query_string_length = 4;
-
-
- google.protobuf.Int32Value query_plans_per_minute = 5;
- }
- message MySqlReplicaConfiguration {
-
-
-
-
-
-
- string dump_file_path = 1;
-
- string username = 2;
-
- string password = 3;
-
- google.protobuf.Int32Value connect_retry_interval = 4;
-
- google.protobuf.Int64Value master_heartbeat_period = 5;
-
- string ca_certificate = 6;
-
- string client_certificate = 7;
-
-
- string client_key = 8;
-
- string ssl_cipher = 9;
-
-
- google.protobuf.BoolValue verify_server_certificate = 10;
-
- string kind = 11;
- }
- message OnPremisesConfiguration {
-
- string host_port = 1;
-
- string kind = 2;
-
- string username = 3;
-
- string password = 4;
-
- string ca_certificate = 5;
-
- string client_certificate = 6;
-
-
- string client_key = 7;
-
- string dump_file_path = 8;
-
- InstanceReference source_instance = 15;
- }
- message DiskEncryptionConfiguration {
-
- string kms_key_name = 1;
-
- string kind = 2;
- }
- message DiskEncryptionStatus {
-
- string kms_key_version_name = 1;
-
- string kind = 2;
- }
- message Operation {
-
- enum SqlOperationType {
-
- SQL_OPERATION_TYPE_UNSPECIFIED = 0;
-
- IMPORT = 1;
-
-
- EXPORT = 2;
-
- CREATE = 3;
-
- UPDATE = 4;
-
- DELETE = 5;
-
- RESTART = 6;
- BACKUP = 7 [deprecated = true];
- SNAPSHOT = 8 [deprecated = true];
-
- 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 [deprecated = true];
- DEFER_MAINTENANCE = 32 [deprecated = true];
-
- CREATE_CLONE = 33 [deprecated = true];
-
- RESCHEDULE_MAINTENANCE = 34;
-
-
- START_EXTERNAL_SYNC = 35;
- }
-
- enum SqlOperationStatus {
-
- SQL_OPERATION_STATUS_UNSPECIFIED = 0;
-
- PENDING = 1;
-
- RUNNING = 2;
-
- DONE = 3;
- }
-
- string kind = 1;
- string target_link = 2;
-
- SqlOperationStatus status = 3;
-
- string user = 4;
-
-
-
- google.protobuf.Timestamp insert_time = 5;
-
-
-
- google.protobuf.Timestamp start_time = 6;
-
-
-
- google.protobuf.Timestamp end_time = 7;
-
-
- OperationErrors error = 8;
-
-
-
-
-
-
-
-
-
-
-
-
-
- SqlOperationType operation_type = 9;
-
- ImportContext import_context = 10;
-
- ExportContext export_context = 11;
-
- BackupContext backup_context = 17;
-
-
-
- string name = 12;
-
- string target_id = 13;
-
- string self_link = 14;
-
- string target_project = 15;
- }
- message OperationError {
-
- string kind = 1;
-
- string code = 2;
-
- string message = 3;
- }
- message OperationErrors {
-
- string kind = 1;
-
- repeated OperationError errors = 2;
- }
- message PasswordValidationPolicy {
-
- enum Complexity {
-
- COMPLEXITY_UNSPECIFIED = 0;
-
-
- COMPLEXITY_DEFAULT = 1;
- }
-
- google.protobuf.Int32Value min_length = 1;
-
- Complexity complexity = 2;
-
- google.protobuf.Int32Value reuse_interval = 3;
-
- google.protobuf.BoolValue disallow_username_substring = 4;
-
-
- google.protobuf.Duration password_change_interval = 5;
-
- google.protobuf.BoolValue enable_password_policy = 6;
- }
- message OperationsListResponse {
-
- string kind = 1;
-
- repeated Operation items = 2;
-
-
- string next_page_token = 3;
- }
- message ReplicaConfiguration {
-
- string kind = 1;
-
-
-
-
-
-
- MySqlReplicaConfiguration mysql_replica_configuration = 2;
-
-
-
-
-
- google.protobuf.BoolValue failover_target = 3;
- }
- message RestoreBackupContext {
-
- string kind = 1;
-
- int64 backup_run_id = 2;
-
- string instance_id = 3;
-
- string project = 4;
- }
- message RotateServerCaContext {
-
- string kind = 1;
-
-
- string next_version = 2;
- }
- message Settings {
-
- enum SqlActivationPolicy {
-
- SQL_ACTIVATION_POLICY_UNSPECIFIED = 0;
-
- ALWAYS = 1;
-
- NEVER = 2;
-
- ON_DEMAND = 3 [deprecated = true];
- }
-
-
-
-
- google.protobuf.Int64Value settings_version = 1;
-
-
- repeated string authorized_gae_applications = 2 [deprecated = true];
-
-
- string tier = 3;
-
- string kind = 4;
-
-
- map<string, string> user_labels = 5;
-
-
-
-
-
-
-
-
- SqlAvailabilityType availability_type = 6;
-
-
- SqlPricingPlan pricing_plan = 7;
-
-
-
- SqlReplicationType replication_type = 8 [deprecated = true];
-
-
- google.protobuf.Int64Value storage_auto_resize_limit = 9;
-
-
-
-
-
-
- SqlActivationPolicy activation_policy = 10;
-
-
-
- IpConfiguration ip_configuration = 11;
-
-
- google.protobuf.BoolValue storage_auto_resize = 12;
-
-
-
-
- LocationPreference location_preference = 13;
-
- repeated DatabaseFlags database_flags = 14;
-
-
- SqlDataDiskType data_disk_type = 15;
-
-
- MaintenanceWindow maintenance_window = 16;
-
- BackupConfiguration backup_configuration = 17;
-
-
-
- google.protobuf.BoolValue database_replication_enabled = 18;
-
-
-
- google.protobuf.BoolValue crash_safe_replication_enabled = 19 [deprecated = true];
-
- google.protobuf.Int64Value data_disk_size_gb = 20;
-
- SqlActiveDirectoryConfig active_directory_config = 22;
-
- string collation = 23;
-
- repeated DenyMaintenancePeriod deny_maintenance_periods = 24;
-
- InsightsConfig insights_config = 25;
-
- PasswordValidationPolicy password_validation_policy = 27;
-
- SqlServerAuditConfig sql_server_audit_config = 29;
- }
- message SslCert {
-
- string kind = 1;
-
- string cert_serial_number = 2;
-
- string cert = 3;
-
-
-
- google.protobuf.Timestamp create_time = 4;
-
- string common_name = 5;
-
-
-
- google.protobuf.Timestamp expiration_time = 6;
-
- string sha1_fingerprint = 7;
-
- string instance = 8;
-
- string self_link = 9;
- }
- message SslCertDetail {
-
- SslCert cert_info = 1;
-
-
- string cert_private_key = 2;
- }
- message SslCertsCreateEphemeralRequest {
-
- string public_key = 1;
-
- string access_token = 2;
- }
- message SslCertsInsertRequest {
-
-
- string common_name = 1;
- }
- message SqlInstancesRescheduleMaintenanceRequestBody {
- enum RescheduleType {
- RESCHEDULE_TYPE_UNSPECIFIED = 0;
-
- IMMEDIATE = 1;
-
-
- NEXT_AVAILABLE_WINDOW = 2;
-
- SPECIFIC_TIME = 3;
- }
- message Reschedule {
-
- RescheduleType reschedule_type = 1;
-
-
-
-
- google.protobuf.Timestamp schedule_time = 2 [(google.api.field_behavior) = OPTIONAL];
- }
-
- Reschedule reschedule = 3;
- }
- message SslCertsInsertResponse {
-
- string kind = 1;
-
- Operation operation = 2;
-
-
-
- SslCert server_ca_cert = 3;
-
- SslCertDetail client_cert = 4;
- }
- message SslCertsListResponse {
-
- string kind = 1;
-
- repeated SslCert items = 2;
- }
- message TruncateLogContext {
-
- string kind = 1;
-
-
- string log_type = 2;
- }
- message SqlActiveDirectoryConfig {
-
- string kind = 1;
-
- string domain = 2;
- }
- message SqlServerAuditConfig {
-
- string kind = 1;
-
- string bucket = 2;
-
- google.protobuf.Duration retention_interval = 3;
-
- google.protobuf.Duration upload_interval = 4;
- }
- enum SqlBackupRunStatus {
-
- 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 SqlBackupRunType {
-
- SQL_BACKUP_RUN_TYPE_UNSPECIFIED = 0;
-
- AUTOMATED = 1;
-
- ON_DEMAND = 2;
- }
- enum SqlBackupKind {
-
- SQL_BACKUP_KIND_UNSPECIFIED = 0;
-
- SNAPSHOT = 1;
-
- PHYSICAL = 2;
- }
- enum SqlBackendType {
-
- SQL_BACKEND_TYPE_UNSPECIFIED = 0;
-
- FIRST_GEN = 1 [deprecated = true];
-
- SECOND_GEN = 2;
-
- EXTERNAL = 3;
- }
- enum SqlIpAddressType {
-
- SQL_IP_ADDRESS_TYPE_UNSPECIFIED = 0;
-
-
- PRIMARY = 1;
-
-
-
-
- OUTGOING = 2;
-
- PRIVATE = 3;
-
-
-
- MIGRATED_1ST_GEN = 4;
- }
- enum SqlInstanceType {
-
- SQL_INSTANCE_TYPE_UNSPECIFIED = 0;
-
-
- CLOUD_SQL_INSTANCE = 1;
-
-
- ON_PREMISES_INSTANCE = 2;
-
- READ_REPLICA_INSTANCE = 3;
- }
- enum SqlDatabaseVersion {
-
- SQL_DATABASE_VERSION_UNSPECIFIED = 0;
-
- MYSQL_5_1 = 2 [deprecated = true];
-
- MYSQL_5_5 = 3 [deprecated = true];
-
- 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;
-
- MYSQL_8_0 = 20;
-
- MYSQL_8_0_18 = 41;
-
- MYSQL_8_0_26 = 85;
-
- MYSQL_8_0_27 = 111;
-
- MYSQL_8_0_28 = 132;
-
- POSTGRES_13 = 23;
-
- POSTGRES_14 = 110;
-
- SQLSERVER_2019_STANDARD = 26;
-
- SQLSERVER_2019_ENTERPRISE = 27;
-
- SQLSERVER_2019_EXPRESS = 28;
-
- SQLSERVER_2019_WEB = 29;
- }
- enum SqlSuspensionReason {
-
- SQL_SUSPENSION_REASON_UNSPECIFIED = 0;
-
-
- BILLING_ISSUE = 2;
-
-
- LEGAL_ISSUE = 3;
-
-
- OPERATIONAL_ISSUE = 4;
-
- KMS_KEY_ISSUE = 5;
- }
- enum SqlPricingPlan {
-
- SQL_PRICING_PLAN_UNSPECIFIED = 0;
-
- PACKAGE = 1;
-
- PER_USE = 2;
- }
- enum SqlReplicationType {
-
- SQL_REPLICATION_TYPE_UNSPECIFIED = 0;
-
-
- SYNCHRONOUS = 1;
-
-
-
-
- ASYNCHRONOUS = 2;
- }
- enum SqlDataDiskType {
-
- SQL_DATA_DISK_TYPE_UNSPECIFIED = 0;
-
- PD_SSD = 1;
-
- PD_HDD = 2;
-
-
- OBSOLETE_LOCAL_SSD = 3 [deprecated = true];
- }
- enum SqlAvailabilityType {
-
- SQL_AVAILABILITY_TYPE_UNSPECIFIED = 0;
-
- ZONAL = 1;
-
- REGIONAL = 2;
- }
- enum SqlUpdateTrack {
-
- SQL_UPDATE_TRACK_UNSPECIFIED = 0;
-
-
-
- canary = 1;
-
-
-
- stable = 2;
- }
- enum SqlFlagType {
-
- SQL_FLAG_TYPE_UNSPECIFIED = 0;
-
- BOOLEAN = 1;
-
- STRING = 2;
-
- INTEGER = 3;
-
- NONE = 4;
-
-
- MYSQL_TIMEZONE_OFFSET = 5;
-
- FLOAT = 6;
-
- REPEATED_STRING = 7;
- }
|