google-apis-sqladmin_v1beta4 0.13.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/google/apis/sqladmin_v1beta4/classes.rb +424 -149
- data/lib/google/apis/sqladmin_v1beta4/gem_version.rb +2 -2
- data/lib/google/apis/sqladmin_v1beta4/representations.rb +106 -0
- data/lib/google/apis/sqladmin_v1beta4/service.rb +17 -21
- data/lib/google/apis/sqladmin_v1beta4.rb +1 -1
- metadata +3 -3
@@ -26,13 +26,13 @@ module Google
|
|
26
26
|
class AclEntry
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
# The time when this access control entry expires in RFC 3339
|
30
|
-
# example
|
29
|
+
# The time when this access control entry expires in [RFC 3339](https://tools.
|
30
|
+
# ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
|
31
31
|
# Corresponds to the JSON property `expirationTime`
|
32
32
|
# @return [String]
|
33
33
|
attr_accessor :expiration_time
|
34
34
|
|
35
|
-
# This is always
|
35
|
+
# This is always **sql#aclEntry**.
|
36
36
|
# Corresponds to the JSON property `kind`
|
37
37
|
# @return [String]
|
38
38
|
attr_accessor :kind
|
@@ -114,7 +114,7 @@ module Google
|
|
114
114
|
attr_accessor :enabled
|
115
115
|
alias_method :enabled?, :enabled
|
116
116
|
|
117
|
-
# This is always
|
117
|
+
# This is always **sql#backupConfiguration**.
|
118
118
|
# Corresponds to the JSON property `kind`
|
119
119
|
# @return [String]
|
120
120
|
attr_accessor :kind
|
@@ -175,7 +175,7 @@ module Google
|
|
175
175
|
# @return [Fixnum]
|
176
176
|
attr_accessor :backup_id
|
177
177
|
|
178
|
-
# This is always
|
178
|
+
# This is always **sql#backupContext**.
|
179
179
|
# Corresponds to the JSON property `kind`
|
180
180
|
# @return [String]
|
181
181
|
attr_accessor :kind
|
@@ -243,14 +243,14 @@ module Google
|
|
243
243
|
# @return [Google::Apis::SqladminV1beta4::DiskEncryptionStatus]
|
244
244
|
attr_accessor :disk_encryption_status
|
245
245
|
|
246
|
-
# The time the backup operation completed in UTC timezone in RFC 3339
|
247
|
-
# for example
|
246
|
+
# The time the backup operation completed in UTC timezone in [RFC 3339](https://
|
247
|
+
# tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
|
248
248
|
# Corresponds to the JSON property `endTime`
|
249
249
|
# @return [String]
|
250
250
|
attr_accessor :end_time
|
251
251
|
|
252
|
-
# The time the run was enqueued in UTC timezone in RFC 3339
|
253
|
-
# 2012-11-15T16:19:00.094Z
|
252
|
+
# The time the run was enqueued in UTC timezone in [RFC 3339](https://tools.ietf.
|
253
|
+
# org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
|
254
254
|
# Corresponds to the JSON property `enqueuedTime`
|
255
255
|
# @return [String]
|
256
256
|
attr_accessor :enqueued_time
|
@@ -286,8 +286,9 @@ module Google
|
|
286
286
|
# @return [String]
|
287
287
|
attr_accessor :self_link
|
288
288
|
|
289
|
-
# The time the backup operation actually started in UTC timezone in RFC 3339
|
290
|
-
# format, for example
|
289
|
+
# The time the backup operation actually started in UTC timezone in [RFC 3339](
|
290
|
+
# https://tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.
|
291
|
+
# 094Z**.
|
291
292
|
# Corresponds to the JSON property `startTime`
|
292
293
|
# @return [String]
|
293
294
|
attr_accessor :start_time
|
@@ -304,7 +305,8 @@ module Google
|
|
304
305
|
attr_accessor :type
|
305
306
|
|
306
307
|
# The start time of the backup window during which this the backup was attempted
|
307
|
-
# in RFC 3339 format, for example
|
308
|
+
# in [RFC 3339](https://tools.ietf.org/html/rfc3339) format, for example **2012-
|
309
|
+
# 11-15T16:19:00.094Z**.
|
308
310
|
# Corresponds to the JSON property `windowStartTime`
|
309
311
|
# @return [String]
|
310
312
|
attr_accessor :window_start_time
|
@@ -472,6 +474,12 @@ module Google
|
|
472
474
|
# @return [String]
|
473
475
|
attr_accessor :kind
|
474
476
|
|
477
|
+
# The cloud region for the instance. e.g. **us-central1**, **europe-west1**. The
|
478
|
+
# region cannot be changed after instance creation.
|
479
|
+
# Corresponds to the JSON property `region`
|
480
|
+
# @return [String]
|
481
|
+
attr_accessor :region
|
482
|
+
|
475
483
|
# SslCerts Resource
|
476
484
|
# Corresponds to the JSON property `serverCaCert`
|
477
485
|
# @return [Google::Apis::SqladminV1beta4::SslCert]
|
@@ -487,6 +495,7 @@ module Google
|
|
487
495
|
@database_version = args[:database_version] if args.key?(:database_version)
|
488
496
|
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
489
497
|
@kind = args[:kind] if args.key?(:kind)
|
498
|
+
@region = args[:region] if args.key?(:region)
|
490
499
|
@server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert)
|
491
500
|
end
|
492
501
|
end
|
@@ -515,7 +524,7 @@ module Google
|
|
515
524
|
# @return [String]
|
516
525
|
attr_accessor :instance
|
517
526
|
|
518
|
-
# This is always
|
527
|
+
# This is always **sql#database**.
|
519
528
|
# Corresponds to the JSON property `kind`
|
520
529
|
# @return [String]
|
521
530
|
attr_accessor :kind
|
@@ -565,15 +574,15 @@ module Google
|
|
565
574
|
include Google::Apis::Core::Hashable
|
566
575
|
|
567
576
|
# The name of the flag. These flags are passed at instance startup, so include
|
568
|
-
# both server options and system variables
|
569
|
-
#
|
570
|
-
#
|
577
|
+
# both server options and system variables. Flags are specified with underscores,
|
578
|
+
# not hyphens. For more information, see Configuring Database Flags in the
|
579
|
+
# Cloud SQL documentation.
|
571
580
|
# Corresponds to the JSON property `name`
|
572
581
|
# @return [String]
|
573
582
|
attr_accessor :name
|
574
583
|
|
575
|
-
# The value of the flag. Booleans are set to
|
576
|
-
# This field must be omitted if the flag doesn't take a value.
|
584
|
+
# The value of the flag. Booleans are set to **on** for true and **off** for
|
585
|
+
# false. This field must be omitted if the flag doesn't take a value.
|
577
586
|
# Corresponds to the JSON property `value`
|
578
587
|
# @return [String]
|
579
588
|
attr_accessor :value
|
@@ -605,6 +614,12 @@ module Google
|
|
605
614
|
# @return [String]
|
606
615
|
attr_accessor :connection_name
|
607
616
|
|
617
|
+
# Output only. The time when the instance was created in [RFC 3339](https://
|
618
|
+
# tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
|
619
|
+
# Corresponds to the JSON property `createTime`
|
620
|
+
# @return [String]
|
621
|
+
attr_accessor :create_time
|
622
|
+
|
608
623
|
# The current disk usage of the instance in bytes. This property has been
|
609
624
|
# deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric
|
610
625
|
# in Cloud Monitoring API instead. Please see this announcement for details.
|
@@ -615,9 +630,10 @@ module Google
|
|
615
630
|
# The database engine type and version. The *databaseVersion* field cannot be
|
616
631
|
# changed after instance creation. MySQL instances: *MYSQL_8_0*, *MYSQL_5_7* (
|
617
632
|
# default), or *MYSQL_5_6*. PostgreSQL instances: *POSTGRES_9_6*, *POSTGRES_10*,
|
618
|
-
# *POSTGRES_11*, *POSTGRES_12*,
|
619
|
-
#
|
620
|
-
#
|
633
|
+
# *POSTGRES_11*, *POSTGRES_12*, *POSTGRES_13* (default). SQL Server instances: *
|
634
|
+
# SQLSERVER_2019_STANDARD*, *SQLSERVER_2019_ENTERPRISE*, *SQLSERVER_2019_EXPRESS*
|
635
|
+
# , or *SQLSERVER_2019_WEB*, *SQLSERVER_2017_STANDARD* (default), *
|
636
|
+
# SQLSERVER_2017_ENTERPRISE*, *SQLSERVER_2017_EXPRESS*, or *SQLSERVER_2017_WEB*.
|
621
637
|
# Corresponds to the JSON property `databaseVersion`
|
622
638
|
# @return [String]
|
623
639
|
attr_accessor :database_version
|
@@ -638,8 +654,7 @@ module Google
|
|
638
654
|
# @return [String]
|
639
655
|
attr_accessor :etag
|
640
656
|
|
641
|
-
# The name and status of the failover replica.
|
642
|
-
# to Second Generation instances.
|
657
|
+
# The name and status of the failover replica.
|
643
658
|
# Corresponds to the JSON property `failoverReplica`
|
644
659
|
# @return [Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica]
|
645
660
|
attr_accessor :failover_replica
|
@@ -793,6 +808,7 @@ module Google
|
|
793
808
|
def update!(**args)
|
794
809
|
@backend_type = args[:backend_type] if args.key?(:backend_type)
|
795
810
|
@connection_name = args[:connection_name] if args.key?(:connection_name)
|
811
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
796
812
|
@current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
|
797
813
|
@database_version = args[:database_version] if args.key?(:database_version)
|
798
814
|
@disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
|
@@ -825,8 +841,7 @@ module Google
|
|
825
841
|
@suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
|
826
842
|
end
|
827
843
|
|
828
|
-
# The name and status of the failover replica.
|
829
|
-
# to Second Generation instances.
|
844
|
+
# The name and status of the failover replica.
|
830
845
|
class FailoverReplica
|
831
846
|
include Google::Apis::Core::Hashable
|
832
847
|
|
@@ -840,7 +855,7 @@ module Google
|
|
840
855
|
|
841
856
|
# The name of the failover replica. If specified at instance creation, a
|
842
857
|
# failover replica is created for the instance. The name doesn't include the
|
843
|
-
# project ID.
|
858
|
+
# project ID.
|
844
859
|
# Corresponds to the JSON property `name`
|
845
860
|
# @return [String]
|
846
861
|
attr_accessor :name
|
@@ -886,7 +901,7 @@ module Google
|
|
886
901
|
class DemoteMasterConfiguration
|
887
902
|
include Google::Apis::Core::Hashable
|
888
903
|
|
889
|
-
# This is always
|
904
|
+
# This is always **sql#demoteMasterConfiguration**.
|
890
905
|
# Corresponds to the JSON property `kind`
|
891
906
|
# @return [String]
|
892
907
|
attr_accessor :kind
|
@@ -927,13 +942,18 @@ module Google
|
|
927
942
|
# @return [Google::Apis::SqladminV1beta4::DemoteMasterConfiguration]
|
928
943
|
attr_accessor :replica_configuration
|
929
944
|
|
930
|
-
#
|
931
|
-
#
|
932
|
-
#
|
933
|
-
|
934
|
-
|
935
|
-
|
936
|
-
#
|
945
|
+
# Flag to skip replication setup on the instance.
|
946
|
+
# Corresponds to the JSON property `skipReplicationSetup`
|
947
|
+
# @return [Boolean]
|
948
|
+
attr_accessor :skip_replication_setup
|
949
|
+
alias_method :skip_replication_setup?, :skip_replication_setup
|
950
|
+
|
951
|
+
# Verify GTID consistency for demote operation. Default value: **True**. Setting
|
952
|
+
# this flag to false enables you to bypass GTID consistency check between on-
|
953
|
+
# premises primary instance and Cloud SQL instance during the demotion operation
|
954
|
+
# but also exposes you to the risk of future replication failures. Change the
|
955
|
+
# value only if you know the reason for the GTID divergence and are confident
|
956
|
+
# that doing so will not cause any replication issues.
|
937
957
|
# Corresponds to the JSON property `verifyGtidConsistency`
|
938
958
|
# @return [Boolean]
|
939
959
|
attr_accessor :verify_gtid_consistency
|
@@ -948,6 +968,7 @@ module Google
|
|
948
968
|
@kind = args[:kind] if args.key?(:kind)
|
949
969
|
@master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name)
|
950
970
|
@replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration)
|
971
|
+
@skip_replication_setup = args[:skip_replication_setup] if args.key?(:skip_replication_setup)
|
951
972
|
@verify_gtid_consistency = args[:verify_gtid_consistency] if args.key?(:verify_gtid_consistency)
|
952
973
|
end
|
953
974
|
end
|
@@ -973,7 +994,7 @@ module Google
|
|
973
994
|
# @return [String]
|
974
995
|
attr_accessor :client_key
|
975
996
|
|
976
|
-
# This is always
|
997
|
+
# This is always **sql#demoteMasterMysqlReplicaConfiguration**.
|
977
998
|
# Corresponds to the JSON property `kind`
|
978
999
|
# @return [String]
|
979
1000
|
attr_accessor :kind
|
@@ -1046,7 +1067,7 @@ module Google
|
|
1046
1067
|
class DiskEncryptionConfiguration
|
1047
1068
|
include Google::Apis::Core::Hashable
|
1048
1069
|
|
1049
|
-
# This is always
|
1070
|
+
# This is always **sql#diskEncryptionConfiguration**.
|
1050
1071
|
# Corresponds to the JSON property `kind`
|
1051
1072
|
# @return [String]
|
1052
1073
|
attr_accessor :kind
|
@@ -1071,7 +1092,7 @@ module Google
|
|
1071
1092
|
class DiskEncryptionStatus
|
1072
1093
|
include Google::Apis::Core::Hashable
|
1073
1094
|
|
1074
|
-
# This is always
|
1095
|
+
# This is always **sql#diskEncryptionStatus**.
|
1075
1096
|
# Corresponds to the JSON property `kind`
|
1076
1097
|
# @return [String]
|
1077
1098
|
attr_accessor :kind
|
@@ -1096,27 +1117,27 @@ module Google
|
|
1096
1117
|
class ExportContext
|
1097
1118
|
include Google::Apis::Core::Hashable
|
1098
1119
|
|
1099
|
-
# Options for exporting data as CSV.
|
1120
|
+
# Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
|
1100
1121
|
# Corresponds to the JSON property `csvExportOptions`
|
1101
1122
|
# @return [Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions]
|
1102
1123
|
attr_accessor :csv_export_options
|
1103
1124
|
|
1104
|
-
# Databases to be exported. *MySQL instances
|
1105
|
-
# database is specified, all databases are exported, except for the
|
1106
|
-
# system database. If
|
1107
|
-
# by using this property or by using the
|
1108
|
-
# which takes precedence over this property. *
|
1109
|
-
# specify one database to be exported. If
|
1110
|
-
# must match the one specified in the
|
1111
|
-
# SQL Server instances
|
1112
|
-
# fileType
|
1125
|
+
# Databases to be exported. * **MySQL instances:** If **fileType** is **SQL**
|
1126
|
+
# and no database is specified, all databases are exported, except for the **
|
1127
|
+
# mysql** system database. If **fileType** is **CSV**, you can specify one
|
1128
|
+
# database, either by using this property or by using the **csvExportOptions.
|
1129
|
+
# selectQuery** property, which takes precedence over this property. * **
|
1130
|
+
# PostgreSQL instances:** You must specify one database to be exported. If **
|
1131
|
+
# fileType** is **CSV**, this database must match the one specified in the **
|
1132
|
+
# csvExportOptions.selectQuery** property. * **SQL Server instances:** You must
|
1133
|
+
# specify one database to be exported, and the **fileType** must be **BAK**.
|
1113
1134
|
# Corresponds to the JSON property `databases`
|
1114
1135
|
# @return [Array<String>]
|
1115
1136
|
attr_accessor :databases
|
1116
1137
|
|
1117
|
-
# The file type for the specified uri. *SQL
|
1118
|
-
# CSV
|
1119
|
-
# SQL Server instance.
|
1138
|
+
# The file type for the specified uri. * **SQL**: The file contains SQL
|
1139
|
+
# statements. * **CSV**: The file contains CSV data. * **BAK**: The file
|
1140
|
+
# contains backup data for a SQL Server instance.
|
1120
1141
|
# Corresponds to the JSON property `fileType`
|
1121
1142
|
# @return [String]
|
1122
1143
|
attr_accessor :file_type
|
@@ -1138,9 +1159,9 @@ module Google
|
|
1138
1159
|
attr_accessor :sql_export_options
|
1139
1160
|
|
1140
1161
|
# The path to the file in Google Cloud Storage where the export will be stored.
|
1141
|
-
# The URI is in the form
|
1142
|
-
# the request succeeds, but the operation fails. If
|
1143
|
-
# filename ends with .gz, the contents are compressed.
|
1162
|
+
# The URI is in the form **gs://bucketName/fileName**. If the file already
|
1163
|
+
# exists, the request succeeds, but the operation fails. If **fileType** is **
|
1164
|
+
# SQL** and the filename ends with .gz, the contents are compressed.
|
1144
1165
|
# Corresponds to the JSON property `uri`
|
1145
1166
|
# @return [String]
|
1146
1167
|
attr_accessor :uri
|
@@ -1160,10 +1181,33 @@ module Google
|
|
1160
1181
|
@uri = args[:uri] if args.key?(:uri)
|
1161
1182
|
end
|
1162
1183
|
|
1163
|
-
# Options for exporting data as CSV.
|
1184
|
+
# Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
|
1164
1185
|
class CsvExportOptions
|
1165
1186
|
include Google::Apis::Core::Hashable
|
1166
1187
|
|
1188
|
+
# Specifies the character that should appear before a data character that needs
|
1189
|
+
# to be escaped.
|
1190
|
+
# Corresponds to the JSON property `escapeCharacter`
|
1191
|
+
# @return [String]
|
1192
|
+
attr_accessor :escape_character
|
1193
|
+
|
1194
|
+
# Specifies the character that separates columns within each row (line) of the
|
1195
|
+
# file.
|
1196
|
+
# Corresponds to the JSON property `fieldsTerminatedBy`
|
1197
|
+
# @return [String]
|
1198
|
+
attr_accessor :fields_terminated_by
|
1199
|
+
|
1200
|
+
# This is used to separate lines. If a line does not contain all fields, the
|
1201
|
+
# rest of the columns are set to their default values.
|
1202
|
+
# Corresponds to the JSON property `linesTerminatedBy`
|
1203
|
+
# @return [String]
|
1204
|
+
attr_accessor :lines_terminated_by
|
1205
|
+
|
1206
|
+
# Specifies the quoting character to be used when a data value is quoted.
|
1207
|
+
# Corresponds to the JSON property `quoteCharacter`
|
1208
|
+
# @return [String]
|
1209
|
+
attr_accessor :quote_character
|
1210
|
+
|
1167
1211
|
# The select query used to extract the data.
|
1168
1212
|
# Corresponds to the JSON property `selectQuery`
|
1169
1213
|
# @return [String]
|
@@ -1175,6 +1219,10 @@ module Google
|
|
1175
1219
|
|
1176
1220
|
# Update properties of this object
|
1177
1221
|
def update!(**args)
|
1222
|
+
@escape_character = args[:escape_character] if args.key?(:escape_character)
|
1223
|
+
@fields_terminated_by = args[:fields_terminated_by] if args.key?(:fields_terminated_by)
|
1224
|
+
@lines_terminated_by = args[:lines_terminated_by] if args.key?(:lines_terminated_by)
|
1225
|
+
@quote_character = args[:quote_character] if args.key?(:quote_character)
|
1178
1226
|
@select_query = args[:select_query] if args.key?(:select_query)
|
1179
1227
|
end
|
1180
1228
|
end
|
@@ -1216,11 +1264,11 @@ module Google
|
|
1216
1264
|
class MysqlExportOptions
|
1217
1265
|
include Google::Apis::Core::Hashable
|
1218
1266
|
|
1219
|
-
# Option to include SQL statement required to set up replication. If set to
|
1220
|
-
# the dump file includes a CHANGE MASTER TO statement with the binary log
|
1221
|
-
# coordinates, and --set-gtid-purged is set to ON. If set to
|
1222
|
-
# MASTER TO statement is written as a SQL comment and has no effect. If set to
|
1223
|
-
# any value other than
|
1267
|
+
# Option to include SQL statement required to set up replication. * If set to **
|
1268
|
+
# 1**, the dump file includes a CHANGE MASTER TO statement with the binary log
|
1269
|
+
# coordinates, and --set-gtid-purged is set to ON. * If set to **2**, the CHANGE
|
1270
|
+
# MASTER TO statement is written as a SQL comment and has no effect. * If set to
|
1271
|
+
# any value other than **1**, --set-gtid-purged is set to OFF.
|
1224
1272
|
# Corresponds to the JSON property `masterData`
|
1225
1273
|
# @return [Fixnum]
|
1226
1274
|
attr_accessor :master_data
|
@@ -1273,13 +1321,13 @@ module Google
|
|
1273
1321
|
# @return [Array<Fixnum>]
|
1274
1322
|
attr_accessor :allowed_int_values
|
1275
1323
|
|
1276
|
-
# For
|
1324
|
+
# For **STRING** flags, a list of strings that the value can be set to.
|
1277
1325
|
# Corresponds to the JSON property `allowedStringValues`
|
1278
1326
|
# @return [Array<String>]
|
1279
1327
|
attr_accessor :allowed_string_values
|
1280
1328
|
|
1281
|
-
# The database version this flag applies to. Can be
|
1282
|
-
#
|
1329
|
+
# The database version this flag applies to. Can be **MYSQL_8_0**, **MYSQL_5_6**,
|
1330
|
+
# or **MYSQL_5_7**.
|
1283
1331
|
# Corresponds to the JSON property `appliesTo`
|
1284
1332
|
# @return [Array<String>]
|
1285
1333
|
attr_accessor :applies_to
|
@@ -1290,23 +1338,23 @@ module Google
|
|
1290
1338
|
attr_accessor :in_beta
|
1291
1339
|
alias_method :in_beta?, :in_beta
|
1292
1340
|
|
1293
|
-
# This is always
|
1341
|
+
# This is always **sql#flag**.
|
1294
1342
|
# Corresponds to the JSON property `kind`
|
1295
1343
|
# @return [String]
|
1296
1344
|
attr_accessor :kind
|
1297
1345
|
|
1298
|
-
# For
|
1346
|
+
# For **INTEGER** flags, the maximum allowed value.
|
1299
1347
|
# Corresponds to the JSON property `maxValue`
|
1300
1348
|
# @return [Fixnum]
|
1301
1349
|
attr_accessor :max_value
|
1302
1350
|
|
1303
|
-
# For
|
1351
|
+
# For **INTEGER** flags, the minimum allowed value.
|
1304
1352
|
# Corresponds to the JSON property `minValue`
|
1305
1353
|
# @return [Fixnum]
|
1306
1354
|
attr_accessor :min_value
|
1307
1355
|
|
1308
1356
|
# This is the name of the flag. Flag names always use underscores, not hyphens,
|
1309
|
-
# for example:
|
1357
|
+
# for example: **max_allowed_packet**
|
1310
1358
|
# Corresponds to the JSON property `name`
|
1311
1359
|
# @return [String]
|
1312
1360
|
attr_accessor :name
|
@@ -1318,9 +1366,9 @@ module Google
|
|
1318
1366
|
attr_accessor :requires_restart
|
1319
1367
|
alias_method :requires_restart?, :requires_restart
|
1320
1368
|
|
1321
|
-
# The type of the flag. Flags are typed to being
|
1322
|
-
# or
|
1323
|
-
# skip_grant_tables
|
1369
|
+
# The type of the flag. Flags are typed to being **BOOLEAN**, **STRING**, **
|
1370
|
+
# INTEGER** or **NONE**. **NONE** is used for flags which do not take a value,
|
1371
|
+
# such as **skip_grant_tables**.
|
1324
1372
|
# Corresponds to the JSON property `type`
|
1325
1373
|
# @return [String]
|
1326
1374
|
attr_accessor :type
|
@@ -1353,7 +1401,7 @@ module Google
|
|
1353
1401
|
# @return [Array<Google::Apis::SqladminV1beta4::Flag>]
|
1354
1402
|
attr_accessor :items
|
1355
1403
|
|
1356
|
-
# This is always
|
1404
|
+
# This is always **sql#flagsList**.
|
1357
1405
|
# Corresponds to the JSON property `kind`
|
1358
1406
|
# @return [String]
|
1359
1407
|
attr_accessor :kind
|
@@ -1433,16 +1481,17 @@ module Google
|
|
1433
1481
|
# @return [Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions]
|
1434
1482
|
attr_accessor :csv_import_options
|
1435
1483
|
|
1436
|
-
# The target database for the import. If
|
1484
|
+
# The target database for the import. If **fileType** is **SQL**, this field is
|
1437
1485
|
# required only if the import file does not specify a database, and is
|
1438
|
-
# overridden by any database specification in the import file. If
|
1439
|
-
# CSV
|
1486
|
+
# overridden by any database specification in the import file. If **fileType**
|
1487
|
+
# is **CSV**, one database must be specified.
|
1440
1488
|
# Corresponds to the JSON property `database`
|
1441
1489
|
# @return [String]
|
1442
1490
|
attr_accessor :database
|
1443
1491
|
|
1444
|
-
# The file type for the specified uri. *SQL
|
1445
|
-
# CSV
|
1492
|
+
# The file type for the specified uri. * **SQL**: The file contains SQL
|
1493
|
+
# statements. * **CSV**: The file contains CSV data. * **BAK**: The file
|
1494
|
+
# contains backup data for a SQL Server instance.
|
1446
1495
|
# Corresponds to the JSON property `fileType`
|
1447
1496
|
# @return [String]
|
1448
1497
|
attr_accessor :file_type
|
@@ -1452,15 +1501,15 @@ module Google
|
|
1452
1501
|
# @return [String]
|
1453
1502
|
attr_accessor :import_user
|
1454
1503
|
|
1455
|
-
# This is always
|
1504
|
+
# This is always **sql#importContext**.
|
1456
1505
|
# Corresponds to the JSON property `kind`
|
1457
1506
|
# @return [String]
|
1458
1507
|
attr_accessor :kind
|
1459
1508
|
|
1460
|
-
# Path to the import file in Cloud Storage, in the form
|
1461
|
-
# fileName
|
1462
|
-
# The instance must have write permissions to the bucket and read access
|
1463
|
-
# file.
|
1509
|
+
# Path to the import file in Cloud Storage, in the form **gs://bucketName/
|
1510
|
+
# fileName**. Compressed gzip files (.gz) are supported when **fileType** is **
|
1511
|
+
# SQL**. The instance must have write permissions to the bucket and read access
|
1512
|
+
# to the file.
|
1464
1513
|
# Corresponds to the JSON property `uri`
|
1465
1514
|
# @return [String]
|
1466
1515
|
attr_accessor :uri
|
@@ -1502,8 +1551,8 @@ module Google
|
|
1502
1551
|
class EncryptionOptions
|
1503
1552
|
include Google::Apis::Core::Hashable
|
1504
1553
|
|
1505
|
-
# Path to the Certificate (.cer) in Cloud Storage, in the form
|
1506
|
-
# fileName
|
1554
|
+
# Path to the Certificate (.cer) in Cloud Storage, in the form **gs://bucketName/
|
1555
|
+
# fileName**. The instance must have write permissions to the bucket and read
|
1507
1556
|
# access to the file.
|
1508
1557
|
# Corresponds to the JSON property `certPath`
|
1509
1558
|
# @return [String]
|
@@ -1544,6 +1593,29 @@ module Google
|
|
1544
1593
|
# @return [Array<String>]
|
1545
1594
|
attr_accessor :columns
|
1546
1595
|
|
1596
|
+
# Specifies the character that should appear before a data character that needs
|
1597
|
+
# to be escaped.
|
1598
|
+
# Corresponds to the JSON property `escapeCharacter`
|
1599
|
+
# @return [String]
|
1600
|
+
attr_accessor :escape_character
|
1601
|
+
|
1602
|
+
# Specifies the character that separates columns within each row (line) of the
|
1603
|
+
# file.
|
1604
|
+
# Corresponds to the JSON property `fieldsTerminatedBy`
|
1605
|
+
# @return [String]
|
1606
|
+
attr_accessor :fields_terminated_by
|
1607
|
+
|
1608
|
+
# This is used to separate lines. If a line does not contain all fields, the
|
1609
|
+
# rest of the columns are set to their default values.
|
1610
|
+
# Corresponds to the JSON property `linesTerminatedBy`
|
1611
|
+
# @return [String]
|
1612
|
+
attr_accessor :lines_terminated_by
|
1613
|
+
|
1614
|
+
# Specifies the quoting character to be used when a data value is quoted.
|
1615
|
+
# Corresponds to the JSON property `quoteCharacter`
|
1616
|
+
# @return [String]
|
1617
|
+
attr_accessor :quote_character
|
1618
|
+
|
1547
1619
|
# The table to which CSV data is imported.
|
1548
1620
|
# Corresponds to the JSON property `table`
|
1549
1621
|
# @return [String]
|
@@ -1556,6 +1628,10 @@ module Google
|
|
1556
1628
|
# Update properties of this object
|
1557
1629
|
def update!(**args)
|
1558
1630
|
@columns = args[:columns] if args.key?(:columns)
|
1631
|
+
@escape_character = args[:escape_character] if args.key?(:escape_character)
|
1632
|
+
@fields_terminated_by = args[:fields_terminated_by] if args.key?(:fields_terminated_by)
|
1633
|
+
@lines_terminated_by = args[:lines_terminated_by] if args.key?(:lines_terminated_by)
|
1634
|
+
@quote_character = args[:quote_character] if args.key?(:quote_character)
|
1559
1635
|
@table = args[:table] if args.key?(:table)
|
1560
1636
|
end
|
1561
1637
|
end
|
@@ -1572,8 +1648,8 @@ module Google
|
|
1572
1648
|
attr_accessor :query_insights_enabled
|
1573
1649
|
alias_method :query_insights_enabled?, :query_insights_enabled
|
1574
1650
|
|
1575
|
-
# Number of query plans
|
1576
|
-
#
|
1651
|
+
# Number of query execution plans captured by Insights per minute for all
|
1652
|
+
# queries combined. Default is 5.
|
1577
1653
|
# Corresponds to the JSON property `queryPlansPerMinute`
|
1578
1654
|
# @return [Fixnum]
|
1579
1655
|
attr_accessor :query_plans_per_minute
|
@@ -1612,6 +1688,39 @@ module Google
|
|
1612
1688
|
end
|
1613
1689
|
end
|
1614
1690
|
|
1691
|
+
# Reference to another Cloud SQL instance.
|
1692
|
+
class InstanceReference
|
1693
|
+
include Google::Apis::Core::Hashable
|
1694
|
+
|
1695
|
+
# The name of the Cloud SQL instance being referenced. This does not include the
|
1696
|
+
# project ID.
|
1697
|
+
# Corresponds to the JSON property `name`
|
1698
|
+
# @return [String]
|
1699
|
+
attr_accessor :name
|
1700
|
+
|
1701
|
+
# The project ID of the Cloud SQL instance being referenced. The default is the
|
1702
|
+
# same project ID as the instance references it.
|
1703
|
+
# Corresponds to the JSON property `project`
|
1704
|
+
# @return [String]
|
1705
|
+
attr_accessor :project
|
1706
|
+
|
1707
|
+
# The region of the Cloud SQL instance being referenced.
|
1708
|
+
# Corresponds to the JSON property `region`
|
1709
|
+
# @return [String]
|
1710
|
+
attr_accessor :region
|
1711
|
+
|
1712
|
+
def initialize(**args)
|
1713
|
+
update!(**args)
|
1714
|
+
end
|
1715
|
+
|
1716
|
+
# Update properties of this object
|
1717
|
+
def update!(**args)
|
1718
|
+
@name = args[:name] if args.key?(:name)
|
1719
|
+
@project = args[:project] if args.key?(:project)
|
1720
|
+
@region = args[:region] if args.key?(:region)
|
1721
|
+
end
|
1722
|
+
end
|
1723
|
+
|
1615
1724
|
# Database instance clone request.
|
1616
1725
|
class CloneInstancesRequest
|
1617
1726
|
include Google::Apis::Core::Hashable
|
@@ -1838,9 +1947,19 @@ module Google
|
|
1838
1947
|
class IpConfiguration
|
1839
1948
|
include Google::Apis::Core::Hashable
|
1840
1949
|
|
1950
|
+
# The name of the allocated ip range for the private ip CloudSQL instance. For
|
1951
|
+
# example: "google-managed-services-default". If set, the instance ip will be
|
1952
|
+
# created in the allocated range. The range name must comply with [RFC 1035](
|
1953
|
+
# https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63
|
1954
|
+
# characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
|
1955
|
+
# Reserved for future use.
|
1956
|
+
# Corresponds to the JSON property `allocatedIpRange`
|
1957
|
+
# @return [String]
|
1958
|
+
attr_accessor :allocated_ip_range
|
1959
|
+
|
1841
1960
|
# The list of external networks that are allowed to connect to the instance
|
1842
1961
|
# using the IP. In 'CIDR' notation, also known as 'slash' notation (for example:
|
1843
|
-
#
|
1962
|
+
# **192.168.100.0/24**).
|
1844
1963
|
# Corresponds to the JSON property `authorizedNetworks`
|
1845
1964
|
# @return [Array<Google::Apis::SqladminV1beta4::AclEntry>]
|
1846
1965
|
attr_accessor :authorized_networks
|
@@ -1852,8 +1971,8 @@ module Google
|
|
1852
1971
|
alias_method :ipv4_enabled?, :ipv4_enabled
|
1853
1972
|
|
1854
1973
|
# The resource link for the VPC network from which the Cloud SQL instance is
|
1855
|
-
# accessible for private IP. For example,
|
1856
|
-
# default
|
1974
|
+
# accessible for private IP. For example, **/projects/myProject/global/networks/
|
1975
|
+
# default**. This setting can be updated, but it cannot be removed after it is
|
1857
1976
|
# set.
|
1858
1977
|
# Corresponds to the JSON property `privateNetwork`
|
1859
1978
|
# @return [String]
|
@@ -1871,6 +1990,7 @@ module Google
|
|
1871
1990
|
|
1872
1991
|
# Update properties of this object
|
1873
1992
|
def update!(**args)
|
1993
|
+
@allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range)
|
1874
1994
|
@authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
|
1875
1995
|
@ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled)
|
1876
1996
|
@private_network = args[:private_network] if args.key?(:private_network)
|
@@ -1887,17 +2007,17 @@ module Google
|
|
1887
2007
|
# @return [String]
|
1888
2008
|
attr_accessor :ip_address
|
1889
2009
|
|
1890
|
-
# The due time for this IP to be retired in RFC 3339
|
1891
|
-
# 11-15T16:19:00.094Z
|
1892
|
-
# be retired.
|
2010
|
+
# The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/
|
2011
|
+
# html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**. This field is
|
2012
|
+
# only available when the IP is scheduled to be retired.
|
1893
2013
|
# Corresponds to the JSON property `timeToRetire`
|
1894
2014
|
# @return [String]
|
1895
2015
|
attr_accessor :time_to_retire
|
1896
2016
|
|
1897
|
-
# The type of this IP address. A
|
1898
|
-
# accept incoming connections. A
|
1899
|
-
# accept incoming connections. An
|
1900
|
-
# connections originating from the instance, if supported.
|
2017
|
+
# The type of this IP address. A **PRIMARY** address is a public address that
|
2018
|
+
# can accept incoming connections. A **PRIVATE** address is a private address
|
2019
|
+
# that can accept incoming connections. An **OUTGOING** address is the source
|
2020
|
+
# address of connections originating from the instance, if supported.
|
1901
2021
|
# Corresponds to the JSON property `type`
|
1902
2022
|
# @return [String]
|
1903
2023
|
attr_accessor :type
|
@@ -1914,11 +2034,9 @@ module Google
|
|
1914
2034
|
end
|
1915
2035
|
end
|
1916
2036
|
|
1917
|
-
# Preferred location. This specifies where a Cloud SQL instance is located
|
1918
|
-
#
|
1919
|
-
#
|
1920
|
-
# instance will be located as close as possible within the region. Only one
|
1921
|
-
# location may be specified.
|
2037
|
+
# Preferred location. This specifies where a Cloud SQL instance is located. Note
|
2038
|
+
# that if the preferred location is not available, the instance will be located
|
2039
|
+
# as close as possible within the region. Only one location may be specified.
|
1922
2040
|
class LocationPreference
|
1923
2041
|
include Google::Apis::Core::Hashable
|
1924
2042
|
|
@@ -1928,7 +2046,7 @@ module Google
|
|
1928
2046
|
# @return [String]
|
1929
2047
|
attr_accessor :follow_gae_application
|
1930
2048
|
|
1931
|
-
# This is always
|
2049
|
+
# This is always **sql#locationPreference**.
|
1932
2050
|
# Corresponds to the JSON property `kind`
|
1933
2051
|
# @return [String]
|
1934
2052
|
attr_accessor :kind
|
@@ -1973,12 +2091,14 @@ module Google
|
|
1973
2091
|
# @return [Fixnum]
|
1974
2092
|
attr_accessor :hour
|
1975
2093
|
|
1976
|
-
# This is always
|
2094
|
+
# This is always **sql#maintenanceWindow**.
|
1977
2095
|
# Corresponds to the JSON property `kind`
|
1978
2096
|
# @return [String]
|
1979
2097
|
attr_accessor :kind
|
1980
2098
|
|
1981
|
-
# Maintenance timing setting:
|
2099
|
+
# Maintenance timing setting: **canary** (Earlier) or **stable** (Later). [Learn
|
2100
|
+
# more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-
|
2101
|
+
# timing-2ndgen).
|
1982
2102
|
# Corresponds to the JSON property `updateTrack`
|
1983
2103
|
# @return [String]
|
1984
2104
|
attr_accessor :update_track
|
@@ -2030,7 +2150,7 @@ module Google
|
|
2030
2150
|
# @return [String]
|
2031
2151
|
attr_accessor :dump_file_path
|
2032
2152
|
|
2033
|
-
# This is always
|
2153
|
+
# This is always **sql#mysqlReplicaConfiguration**.
|
2034
2154
|
# Corresponds to the JSON property `kind`
|
2035
2155
|
# @return [String]
|
2036
2156
|
attr_accessor :kind
|
@@ -2082,6 +2202,25 @@ module Google
|
|
2082
2202
|
end
|
2083
2203
|
end
|
2084
2204
|
|
2205
|
+
# MySQL-specific external server sync settings.
|
2206
|
+
class MySqlSyncConfig
|
2207
|
+
include Google::Apis::Core::Hashable
|
2208
|
+
|
2209
|
+
# Flags to use for the initial dump.
|
2210
|
+
# Corresponds to the JSON property `initialSyncFlags`
|
2211
|
+
# @return [Array<Google::Apis::SqladminV1beta4::SyncFlags>]
|
2212
|
+
attr_accessor :initial_sync_flags
|
2213
|
+
|
2214
|
+
def initialize(**args)
|
2215
|
+
update!(**args)
|
2216
|
+
end
|
2217
|
+
|
2218
|
+
# Update properties of this object
|
2219
|
+
def update!(**args)
|
2220
|
+
@initial_sync_flags = args[:initial_sync_flags] if args.key?(:initial_sync_flags)
|
2221
|
+
end
|
2222
|
+
end
|
2223
|
+
|
2085
2224
|
# On-premises instance configuration.
|
2086
2225
|
class OnPremisesConfiguration
|
2087
2226
|
include Google::Apis::Core::Hashable
|
@@ -2122,6 +2261,11 @@ module Google
|
|
2122
2261
|
# @return [String]
|
2123
2262
|
attr_accessor :password
|
2124
2263
|
|
2264
|
+
# Reference to another Cloud SQL instance.
|
2265
|
+
# Corresponds to the JSON property `sourceInstance`
|
2266
|
+
# @return [Google::Apis::SqladminV1beta4::InstanceReference]
|
2267
|
+
attr_accessor :source_instance
|
2268
|
+
|
2125
2269
|
# The username for connecting to on-premises instance.
|
2126
2270
|
# Corresponds to the JSON property `username`
|
2127
2271
|
# @return [String]
|
@@ -2140,6 +2284,7 @@ module Google
|
|
2140
2284
|
@host_port = args[:host_port] if args.key?(:host_port)
|
2141
2285
|
@kind = args[:kind] if args.key?(:kind)
|
2142
2286
|
@password = args[:password] if args.key?(:password)
|
2287
|
+
@source_instance = args[:source_instance] if args.key?(:source_instance)
|
2143
2288
|
@username = args[:username] if args.key?(:username)
|
2144
2289
|
end
|
2145
2290
|
end
|
@@ -2155,8 +2300,8 @@ module Google
|
|
2155
2300
|
# @return [Google::Apis::SqladminV1beta4::BackupContext]
|
2156
2301
|
attr_accessor :backup_context
|
2157
2302
|
|
2158
|
-
# The time this operation finished in UTC timezone in RFC 3339
|
2159
|
-
# example
|
2303
|
+
# The time this operation finished in UTC timezone in [RFC 3339](https://tools.
|
2304
|
+
# ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
|
2160
2305
|
# Corresponds to the JSON property `endTime`
|
2161
2306
|
# @return [String]
|
2162
2307
|
attr_accessor :end_time
|
@@ -2176,13 +2321,13 @@ module Google
|
|
2176
2321
|
# @return [Google::Apis::SqladminV1beta4::ImportContext]
|
2177
2322
|
attr_accessor :import_context
|
2178
2323
|
|
2179
|
-
# The time this operation was enqueued in UTC timezone in RFC 3339
|
2180
|
-
# example
|
2324
|
+
# The time this operation was enqueued in UTC timezone in [RFC 3339](https://
|
2325
|
+
# tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
|
2181
2326
|
# Corresponds to the JSON property `insertTime`
|
2182
2327
|
# @return [String]
|
2183
2328
|
attr_accessor :insert_time
|
2184
2329
|
|
2185
|
-
# This is always
|
2330
|
+
# This is always **sql#operation**.
|
2186
2331
|
# Corresponds to the JSON property `kind`
|
2187
2332
|
# @return [String]
|
2188
2333
|
attr_accessor :kind
|
@@ -2194,9 +2339,10 @@ module Google
|
|
2194
2339
|
# @return [String]
|
2195
2340
|
attr_accessor :name
|
2196
2341
|
|
2197
|
-
# The type of the operation. Valid values are: *CREATE*
|
2198
|
-
# RESTART*
|
2199
|
-
# DELETE_USER*
|
2342
|
+
# The type of the operation. Valid values are: * **CREATE** * **DELETE** * **
|
2343
|
+
# UPDATE** * **RESTART** * **IMPORT** * **EXPORT** * **BACKUP_VOLUME** * **
|
2344
|
+
# RESTORE_VOLUME** * **CREATE_USER** * **DELETE_USER** * **CREATE_DATABASE** * **
|
2345
|
+
# DELETE_DATABASE**
|
2200
2346
|
# Corresponds to the JSON property `operationType`
|
2201
2347
|
# @return [String]
|
2202
2348
|
attr_accessor :operation_type
|
@@ -2206,14 +2352,14 @@ module Google
|
|
2206
2352
|
# @return [String]
|
2207
2353
|
attr_accessor :self_link
|
2208
2354
|
|
2209
|
-
# The time this operation actually started in UTC timezone in RFC 3339
|
2210
|
-
# for example
|
2355
|
+
# The time this operation actually started in UTC timezone in [RFC 3339](https://
|
2356
|
+
# tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
|
2211
2357
|
# Corresponds to the JSON property `startTime`
|
2212
2358
|
# @return [String]
|
2213
2359
|
attr_accessor :start_time
|
2214
2360
|
|
2215
|
-
# The status of an operation. Valid values are: *PENDING*
|
2216
|
-
# SQL_OPERATION_STATUS_UNSPECIFIED
|
2361
|
+
# The status of an operation. Valid values are: * **PENDING** * **RUNNING** * **
|
2362
|
+
# DONE** * **SQL_OPERATION_STATUS_UNSPECIFIED**
|
2217
2363
|
# Corresponds to the JSON property `status`
|
2218
2364
|
# @return [String]
|
2219
2365
|
attr_accessor :status
|
@@ -2272,7 +2418,7 @@ module Google
|
|
2272
2418
|
# @return [String]
|
2273
2419
|
attr_accessor :code
|
2274
2420
|
|
2275
|
-
# This is always
|
2421
|
+
# This is always **sql#operationError**.
|
2276
2422
|
# Corresponds to the JSON property `kind`
|
2277
2423
|
# @return [String]
|
2278
2424
|
attr_accessor :kind
|
@@ -2303,7 +2449,7 @@ module Google
|
|
2303
2449
|
# @return [Array<Google::Apis::SqladminV1beta4::OperationError>]
|
2304
2450
|
attr_accessor :errors
|
2305
2451
|
|
2306
|
-
# This is always
|
2452
|
+
# This is always **sql#operationErrors**.
|
2307
2453
|
# Corresponds to the JSON property `kind`
|
2308
2454
|
# @return [String]
|
2309
2455
|
attr_accessor :kind
|
@@ -2319,7 +2465,7 @@ module Google
|
|
2319
2465
|
end
|
2320
2466
|
end
|
2321
2467
|
|
2322
|
-
#
|
2468
|
+
# Operations list response.
|
2323
2469
|
class ListOperationsResponse
|
2324
2470
|
include Google::Apis::Core::Hashable
|
2325
2471
|
|
@@ -2397,8 +2543,8 @@ module Google
|
|
2397
2543
|
attr_accessor :reschedule_type
|
2398
2544
|
|
2399
2545
|
# Optional. Timestamp when the maintenance shall be rescheduled to if
|
2400
|
-
# reschedule_type=SPECIFIC_TIME, in RFC 3339
|
2401
|
-
# 19:00.094Z
|
2546
|
+
# reschedule_type=SPECIFIC_TIME, in [RFC 3339](https://tools.ietf.org/html/
|
2547
|
+
# rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
|
2402
2548
|
# Corresponds to the JSON property `scheduleTime`
|
2403
2549
|
# @return [String]
|
2404
2550
|
attr_accessor :schedule_time
|
@@ -2483,10 +2629,10 @@ module Google
|
|
2483
2629
|
include Google::Apis::Core::Hashable
|
2484
2630
|
|
2485
2631
|
# The activation policy specifies when the instance is activated; it is
|
2486
|
-
# applicable only when the instance state is RUNNABLE. Valid values: *ALWAYS
|
2487
|
-
# The instance is on, and remains so even in the absence of connection
|
2488
|
-
# *NEVER
|
2489
|
-
# request arrives.
|
2632
|
+
# applicable only when the instance state is RUNNABLE. Valid values: * **ALWAYS**
|
2633
|
+
# : The instance is on, and remains so even in the absence of connection
|
2634
|
+
# requests. * **NEVER**: The instance is off; it is not activated, even if a
|
2635
|
+
# connection request arrives.
|
2490
2636
|
# Corresponds to the JSON property `activationPolicy`
|
2491
2637
|
# @return [String]
|
2492
2638
|
attr_accessor :activation_policy
|
@@ -2502,11 +2648,12 @@ module Google
|
|
2502
2648
|
# @return [Array<String>]
|
2503
2649
|
attr_accessor :authorized_gae_applications
|
2504
2650
|
|
2505
|
-
# Availability type. Potential values: *ZONAL
|
2506
|
-
# only one zone. Outages in that zone affect data accessibility. *
|
2507
|
-
# instance can serve data from more than one zone in a region (
|
2508
|
-
# available)
|
2509
|
-
# Configuration.
|
2651
|
+
# Availability type. Potential values: * **ZONAL**: The instance serves data
|
2652
|
+
# from only one zone. Outages in that zone affect data accessibility. * **
|
2653
|
+
# REGIONAL**: The instance can serve data from more than one zone in a region (
|
2654
|
+
# it is highly available)./ For more information, see [Overview of the High
|
2655
|
+
# Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-
|
2656
|
+
# availability).
|
2510
2657
|
# Corresponds to the JSON property `availabilityType`
|
2511
2658
|
# @return [String]
|
2512
2659
|
attr_accessor :availability_type
|
@@ -2534,7 +2681,7 @@ module Google
|
|
2534
2681
|
# @return [Fixnum]
|
2535
2682
|
attr_accessor :data_disk_size_gb
|
2536
2683
|
|
2537
|
-
# The type of data disk: PD_SSD (default) or PD_HDD
|
2684
|
+
# The type of data disk: **PD_SSD** (default) or **PD_HDD**. Not used for First
|
2538
2685
|
# Generation instances.
|
2539
2686
|
# Corresponds to the JSON property `dataDiskType`
|
2540
2687
|
# @return [String]
|
@@ -2568,16 +2715,14 @@ module Google
|
|
2568
2715
|
# @return [Google::Apis::SqladminV1beta4::IpConfiguration]
|
2569
2716
|
attr_accessor :ip_configuration
|
2570
2717
|
|
2571
|
-
# This is always
|
2718
|
+
# This is always **sql#settings**.
|
2572
2719
|
# Corresponds to the JSON property `kind`
|
2573
2720
|
# @return [String]
|
2574
2721
|
attr_accessor :kind
|
2575
2722
|
|
2576
|
-
# Preferred location. This specifies where a Cloud SQL instance is located
|
2577
|
-
#
|
2578
|
-
#
|
2579
|
-
# instance will be located as close as possible within the region. Only one
|
2580
|
-
# location may be specified.
|
2723
|
+
# Preferred location. This specifies where a Cloud SQL instance is located. Note
|
2724
|
+
# that if the preferred location is not available, the instance will be located
|
2725
|
+
# as close as possible within the region. Only one location may be specified.
|
2581
2726
|
# Corresponds to the JSON property `locationPreference`
|
2582
2727
|
# @return [Google::Apis::SqladminV1beta4::LocationPreference]
|
2583
2728
|
attr_accessor :location_preference
|
@@ -2588,14 +2733,14 @@ module Google
|
|
2588
2733
|
# @return [Google::Apis::SqladminV1beta4::MaintenanceWindow]
|
2589
2734
|
attr_accessor :maintenance_window
|
2590
2735
|
|
2591
|
-
# The pricing plan for this instance. This can be either
|
2592
|
-
# Only
|
2736
|
+
# The pricing plan for this instance. This can be either **PER_USE** or **
|
2737
|
+
# PACKAGE**. Only **PER_USE** is supported for Second Generation instances.
|
2593
2738
|
# Corresponds to the JSON property `pricingPlan`
|
2594
2739
|
# @return [String]
|
2595
2740
|
attr_accessor :pricing_plan
|
2596
2741
|
|
2597
|
-
# The type of replication this instance uses. This can be either
|
2598
|
-
# or
|
2742
|
+
# The type of replication this instance uses. This can be either **ASYNCHRONOUS**
|
2743
|
+
# or **SYNCHRONOUS**. (Deprecated) This property was only applicable to First
|
2599
2744
|
# Generation instances.
|
2600
2745
|
# Corresponds to the JSON property `replicationType`
|
2601
2746
|
# @return [String]
|
@@ -2609,6 +2754,11 @@ module Google
|
|
2609
2754
|
# @return [Fixnum]
|
2610
2755
|
attr_accessor :settings_version
|
2611
2756
|
|
2757
|
+
# SQL Server specific audit configuration.
|
2758
|
+
# Corresponds to the JSON property `sqlServerAuditConfig`
|
2759
|
+
# @return [Google::Apis::SqladminV1beta4::SqlServerAuditConfig]
|
2760
|
+
attr_accessor :sql_server_audit_config
|
2761
|
+
|
2612
2762
|
# Configuration to increase storage size automatically. The default value is
|
2613
2763
|
# true.
|
2614
2764
|
# Corresponds to the JSON property `storageAutoResize`
|
@@ -2622,7 +2772,7 @@ module Google
|
|
2622
2772
|
# @return [Fixnum]
|
2623
2773
|
attr_accessor :storage_auto_resize_limit
|
2624
2774
|
|
2625
|
-
# The tier (or machine type) for this instance, for example
|
2775
|
+
# The tier (or machine type) for this instance, for example **db-custom-1-3840**.
|
2626
2776
|
# Corresponds to the JSON property `tier`
|
2627
2777
|
# @return [String]
|
2628
2778
|
attr_accessor :tier
|
@@ -2659,6 +2809,7 @@ module Google
|
|
2659
2809
|
@pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
|
2660
2810
|
@replication_type = args[:replication_type] if args.key?(:replication_type)
|
2661
2811
|
@settings_version = args[:settings_version] if args.key?(:settings_version)
|
2812
|
+
@sql_server_audit_config = args[:sql_server_audit_config] if args.key?(:sql_server_audit_config)
|
2662
2813
|
@storage_auto_resize = args[:storage_auto_resize] if args.key?(:storage_auto_resize)
|
2663
2814
|
@storage_auto_resize_limit = args[:storage_auto_resize_limit] if args.key?(:storage_auto_resize_limit)
|
2664
2815
|
@tier = args[:tier] if args.key?(:tier)
|
@@ -2741,6 +2892,77 @@ module Google
|
|
2741
2892
|
end
|
2742
2893
|
end
|
2743
2894
|
|
2895
|
+
#
|
2896
|
+
class SqlInstancesStartExternalSyncRequest
|
2897
|
+
include Google::Apis::Core::Hashable
|
2898
|
+
|
2899
|
+
# MySQL-specific external server sync settings.
|
2900
|
+
# Corresponds to the JSON property `mysqlSyncConfig`
|
2901
|
+
# @return [Google::Apis::SqladminV1beta4::MySqlSyncConfig]
|
2902
|
+
attr_accessor :mysql_sync_config
|
2903
|
+
|
2904
|
+
# Whether to skip the verification step (VESS).
|
2905
|
+
# Corresponds to the JSON property `skipVerification`
|
2906
|
+
# @return [Boolean]
|
2907
|
+
attr_accessor :skip_verification
|
2908
|
+
alias_method :skip_verification?, :skip_verification
|
2909
|
+
|
2910
|
+
# External sync mode.
|
2911
|
+
# Corresponds to the JSON property `syncMode`
|
2912
|
+
# @return [String]
|
2913
|
+
attr_accessor :sync_mode
|
2914
|
+
|
2915
|
+
def initialize(**args)
|
2916
|
+
update!(**args)
|
2917
|
+
end
|
2918
|
+
|
2919
|
+
# Update properties of this object
|
2920
|
+
def update!(**args)
|
2921
|
+
@mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config)
|
2922
|
+
@skip_verification = args[:skip_verification] if args.key?(:skip_verification)
|
2923
|
+
@sync_mode = args[:sync_mode] if args.key?(:sync_mode)
|
2924
|
+
end
|
2925
|
+
end
|
2926
|
+
|
2927
|
+
#
|
2928
|
+
class SqlInstancesVerifyExternalSyncSettingsRequest
|
2929
|
+
include Google::Apis::Core::Hashable
|
2930
|
+
|
2931
|
+
# MySQL-specific external server sync settings.
|
2932
|
+
# Corresponds to the JSON property `mysqlSyncConfig`
|
2933
|
+
# @return [Google::Apis::SqladminV1beta4::MySqlSyncConfig]
|
2934
|
+
attr_accessor :mysql_sync_config
|
2935
|
+
|
2936
|
+
# External sync mode
|
2937
|
+
# Corresponds to the JSON property `syncMode`
|
2938
|
+
# @return [String]
|
2939
|
+
attr_accessor :sync_mode
|
2940
|
+
|
2941
|
+
# Flag to enable verifying connection only
|
2942
|
+
# Corresponds to the JSON property `verifyConnectionOnly`
|
2943
|
+
# @return [Boolean]
|
2944
|
+
attr_accessor :verify_connection_only
|
2945
|
+
alias_method :verify_connection_only?, :verify_connection_only
|
2946
|
+
|
2947
|
+
# Optional. Flag to verify settings required by replication setup only
|
2948
|
+
# Corresponds to the JSON property `verifyReplicationOnly`
|
2949
|
+
# @return [Boolean]
|
2950
|
+
attr_accessor :verify_replication_only
|
2951
|
+
alias_method :verify_replication_only?, :verify_replication_only
|
2952
|
+
|
2953
|
+
def initialize(**args)
|
2954
|
+
update!(**args)
|
2955
|
+
end
|
2956
|
+
|
2957
|
+
# Update properties of this object
|
2958
|
+
def update!(**args)
|
2959
|
+
@mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config)
|
2960
|
+
@sync_mode = args[:sync_mode] if args.key?(:sync_mode)
|
2961
|
+
@verify_connection_only = args[:verify_connection_only] if args.key?(:verify_connection_only)
|
2962
|
+
@verify_replication_only = args[:verify_replication_only] if args.key?(:verify_replication_only)
|
2963
|
+
end
|
2964
|
+
end
|
2965
|
+
|
2744
2966
|
# Instance verify external sync settings response.
|
2745
2967
|
class SqlInstancesVerifyExternalSyncSettingsResponse
|
2746
2968
|
include Google::Apis::Core::Hashable
|
@@ -2777,14 +2999,15 @@ module Google
|
|
2777
2999
|
include Google::Apis::Core::Hashable
|
2778
3000
|
|
2779
3001
|
# The minimum recommended increase size in GigaBytes This field is consumed by
|
2780
|
-
# the frontend Writers:
|
3002
|
+
# the frontend * Writers: * the proactive database wellness job for OOD. *
|
3003
|
+
# Readers:
|
2781
3004
|
# Corresponds to the JSON property `sqlMinRecommendedIncreaseSizeGb`
|
2782
3005
|
# @return [Fixnum]
|
2783
3006
|
attr_accessor :sql_min_recommended_increase_size_gb
|
2784
3007
|
|
2785
3008
|
# This field represents the state generated by the proactive database wellness
|
2786
|
-
# job for OutOfDisk issues. Writers:
|
2787
|
-
# OOD. Readers:
|
3009
|
+
# job for OutOfDisk issues. * Writers: * the proactive database wellness job for
|
3010
|
+
# OOD. * Readers: * the proactive database wellness job
|
2788
3011
|
# Corresponds to the JSON property `sqlOutOfDiskState`
|
2789
3012
|
# @return [String]
|
2790
3013
|
attr_accessor :sql_out_of_disk_state
|
@@ -2839,6 +3062,31 @@ module Google
|
|
2839
3062
|
end
|
2840
3063
|
end
|
2841
3064
|
|
3065
|
+
# SQL Server specific audit configuration.
|
3066
|
+
class SqlServerAuditConfig
|
3067
|
+
include Google::Apis::Core::Hashable
|
3068
|
+
|
3069
|
+
# The name of the destination bucket (e.g., gs://mybucket).
|
3070
|
+
# Corresponds to the JSON property `bucket`
|
3071
|
+
# @return [String]
|
3072
|
+
attr_accessor :bucket
|
3073
|
+
|
3074
|
+
# This is always sql#sqlServerAuditConfig
|
3075
|
+
# Corresponds to the JSON property `kind`
|
3076
|
+
# @return [String]
|
3077
|
+
attr_accessor :kind
|
3078
|
+
|
3079
|
+
def initialize(**args)
|
3080
|
+
update!(**args)
|
3081
|
+
end
|
3082
|
+
|
3083
|
+
# Update properties of this object
|
3084
|
+
def update!(**args)
|
3085
|
+
@bucket = args[:bucket] if args.key?(:bucket)
|
3086
|
+
@kind = args[:kind] if args.key?(:kind)
|
3087
|
+
end
|
3088
|
+
end
|
3089
|
+
|
2842
3090
|
# Represents a Sql Server database on the Cloud SQL instance.
|
2843
3091
|
class SqlServerDatabaseDetails
|
2844
3092
|
include Google::Apis::Core::Hashable
|
@@ -2909,14 +3157,14 @@ module Google
|
|
2909
3157
|
# @return [String]
|
2910
3158
|
attr_accessor :common_name
|
2911
3159
|
|
2912
|
-
# The time when the certificate was created in RFC 3339
|
2913
|
-
# 2012-11-15T16:19:00.094Z
|
3160
|
+
# The time when the certificate was created in [RFC 3339](https://tools.ietf.org/
|
3161
|
+
# html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
|
2914
3162
|
# Corresponds to the JSON property `createTime`
|
2915
3163
|
# @return [String]
|
2916
3164
|
attr_accessor :create_time
|
2917
3165
|
|
2918
|
-
# The time when the certificate expires in RFC 3339
|
2919
|
-
# 15T16:19:00.094Z
|
3166
|
+
# The time when the certificate expires in [RFC 3339](https://tools.ietf.org/
|
3167
|
+
# html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
|
2920
3168
|
# Corresponds to the JSON property `expirationTime`
|
2921
3169
|
# @return [String]
|
2922
3170
|
attr_accessor :expiration_time
|
@@ -2926,7 +3174,7 @@ module Google
|
|
2926
3174
|
# @return [String]
|
2927
3175
|
attr_accessor :instance
|
2928
3176
|
|
2929
|
-
# This is always
|
3177
|
+
# This is always **sql#sslCert**.
|
2930
3178
|
# Corresponds to the JSON property `kind`
|
2931
3179
|
# @return [String]
|
2932
3180
|
attr_accessor :kind
|
@@ -3094,6 +3342,33 @@ module Google
|
|
3094
3342
|
end
|
3095
3343
|
end
|
3096
3344
|
|
3345
|
+
# Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL
|
3346
|
+
# external server initial dump.
|
3347
|
+
class SyncFlags
|
3348
|
+
include Google::Apis::Core::Hashable
|
3349
|
+
|
3350
|
+
# The name of the flag.
|
3351
|
+
# Corresponds to the JSON property `name`
|
3352
|
+
# @return [String]
|
3353
|
+
attr_accessor :name
|
3354
|
+
|
3355
|
+
# The value of the flag. This field must be omitted if the flag doesn't take a
|
3356
|
+
# value.
|
3357
|
+
# Corresponds to the JSON property `value`
|
3358
|
+
# @return [String]
|
3359
|
+
attr_accessor :value
|
3360
|
+
|
3361
|
+
def initialize(**args)
|
3362
|
+
update!(**args)
|
3363
|
+
end
|
3364
|
+
|
3365
|
+
# Update properties of this object
|
3366
|
+
def update!(**args)
|
3367
|
+
@name = args[:name] if args.key?(:name)
|
3368
|
+
@value = args[:value] if args.key?(:value)
|
3369
|
+
end
|
3370
|
+
end
|
3371
|
+
|
3097
3372
|
# A Google Cloud SQL service tier resource.
|
3098
3373
|
class Tier
|
3099
3374
|
include Google::Apis::Core::Hashable
|