123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197 |
- syntax = "proto3";
- package google.cloud.sql.v1;
- import "google/api/field_behavior.proto";
- import "google/protobuf/timestamp.proto";
- import "google/protobuf/wrappers.proto";
- option go_package = "google.golang.org/genproto/googleapis/cloud/sql/v1;sql";
- option java_multiple_files = true;
- option java_outer_classname = "CloudSqlResourcesProto";
- option java_package = "com.google.cloud.sql.v1";
- 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;
-
- BackupRetentionSettings backup_retention_settings = 8;
-
-
- google.protobuf.Int32Value transaction_log_retention_days = 9;
- }
- message BackupContext {
-
- int64 backup_id = 1;
-
- string kind = 2;
- }
- 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 MySqlSyncConfig {
-
- repeated SyncFlags initial_sync_flags = 1;
- }
- message SyncFlags {
-
- string name = 1;
-
-
- string value = 2;
- }
- message InstanceReference {
-
-
- string name = 1;
-
- string region = 2;
-
-
- string project = 3;
- }
- message DemoteMasterConfiguration {
-
- string kind = 1;
-
-
-
-
-
-
- DemoteMasterMySqlReplicaConfiguration mysql_replica_configuration = 2;
- }
- message DemoteMasterMySqlReplicaConfiguration {
-
- string kind = 1;
-
- string username = 2;
-
- string password = 3;
-
-
-
- string client_key = 4;
-
- string client_certificate = 5;
-
- string ca_certificate = 6;
- }
- 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 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;
- }
- enum SqlFileType {
-
- SQL_FILE_TYPE_UNSPECIFIED = 0;
-
- SQL = 1;
-
- CSV = 2;
- BAK = 4;
- }
- 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 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 DiskEncryptionConfiguration {
-
- string kms_key_name = 1;
-
- string kind = 2;
- }
- message DiskEncryptionStatus {
-
- string kms_key_version_name = 1;
-
- string kind = 2;
- }
- message IpMapping {
-
-
-
-
- SqlIpAddressType type = 1;
-
- string ip_address = 2;
-
-
-
-
- google.protobuf.Timestamp time_to_retire = 3;
- }
- 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 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;
-
- 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 SqlActiveDirectoryConfig {
-
- string kind = 1;
-
- string domain = 2;
- }
- message SqlServerAuditConfig {
-
- string kind = 1;
-
- string bucket = 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 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;
-
- POSTGRES_13 = 23;
-
- SQLSERVER_2019_STANDARD = 26;
-
- SQLSERVER_2019_ENTERPRISE = 27;
-
- SQLSERVER_2019_EXPRESS = 28;
-
- SQLSERVER_2019_WEB = 29;
- }
- 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;
- }
|