google-apis-sqladmin_v1beta4 0.14.0 → 0.18.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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 format, for
30
- # example *2012-11-15T16:19:00.094Z*.
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 *sql#aclEntry*.
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 *sql#backupConfiguration*.
117
+ # This is always **sql#backupConfiguration**.
118
118
  # Corresponds to the JSON property `kind`
119
119
  # @return [String]
120
120
  attr_accessor :kind
@@ -137,7 +137,7 @@ module Google
137
137
  alias_method :replication_log_archiving_enabled?, :replication_log_archiving_enabled
138
138
 
139
139
  # Start time for the daily backup configuration in UTC timezone in the 24 hour
140
- # format - *HH:MM*.
140
+ # format - **HH:MM**.
141
141
  # Corresponds to the JSON property `startTime`
142
142
  # @return [String]
143
143
  attr_accessor :start_time
@@ -175,7 +175,7 @@ module Google
175
175
  # @return [Fixnum]
176
176
  attr_accessor :backup_id
177
177
 
178
- # This is always *sql#backupContext*.
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 format,
247
- # for example *2012-11-15T16:19:00.094Z*.
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 format, for example *
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
@@ -271,7 +271,7 @@ module Google
271
271
  # @return [String]
272
272
  attr_accessor :instance
273
273
 
274
- # This is always *sql#backupRun*.
274
+ # This is always **sql#backupRun**.
275
275
  # Corresponds to the JSON property `kind`
276
276
  # @return [String]
277
277
  attr_accessor :kind
@@ -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 *2012-11-15T16:19:00.094Z*.
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 *2012-11-15T16:19:00.094Z*.
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
@@ -343,7 +345,7 @@ module Google
343
345
  # @return [Array<Google::Apis::SqladminV1beta4::BackupRun>]
344
346
  attr_accessor :items
345
347
 
346
- # This is always *sql#backupRunsList*.
348
+ # This is always **sql#backupRunsList**.
347
349
  # Corresponds to the JSON property `kind`
348
350
  # @return [String]
349
351
  attr_accessor :kind
@@ -380,7 +382,7 @@ module Google
380
382
  # @return [Fixnum]
381
383
  attr_accessor :bin_log_position
382
384
 
383
- # This is always *sql#binLogCoordinates*.
385
+ # This is always **sql#binLogCoordinates**.
384
386
  # Corresponds to the JSON property `kind`
385
387
  # @return [String]
386
388
  attr_accessor :kind
@@ -411,7 +413,7 @@ module Google
411
413
  # @return [String]
412
414
  attr_accessor :destination_instance_name
413
415
 
414
- # This is always *sql#cloneContext*.
416
+ # This is always **sql#cloneContext**.
415
417
  # Corresponds to the JSON property `kind`
416
418
  # @return [String]
417
419
  attr_accessor :kind
@@ -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 *sql#database*.
527
+ # This is always **sql#database**.
519
528
  # Corresponds to the JSON property `kind`
520
529
  # @return [String]
521
530
  attr_accessor :kind
@@ -566,14 +575,14 @@ module Google
566
575
 
567
576
  # The name of the flag. These flags are passed at instance startup, so include
568
577
  # both server options and system variables. Flags are specified with underscores,
569
- # not hyphens. For more information, see Configuring Database Flags in the
570
- # Cloud SQL documentation.
578
+ # not hyphens. For more information, see [Configuring Database Flags](https://
579
+ # cloud.google.com/sql/docs/mysql/flags) in the 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 *on* for true and *off* for false.
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
@@ -593,9 +602,10 @@ module Google
593
602
  class DatabaseInstance
594
603
  include Google::Apis::Core::Hashable
595
604
 
596
- # *SECOND_GEN*: Cloud SQL database instance. *EXTERNAL*: A database server that
597
- # is not managed by Google. This property is read-only; use the *tier* property
598
- # in the *settings* object to determine the database type.
605
+ # The backend type. **SECOND_GEN**: Cloud SQL database instance. **EXTERNAL**: A
606
+ # database server that is not managed by Google. This property is read-only; use
607
+ # the **tier** property in the **settings** object to determine the database
608
+ # type.
599
609
  # Corresponds to the JSON property `backendType`
600
610
  # @return [String]
601
611
  attr_accessor :backend_type
@@ -605,20 +615,28 @@ module Google
605
615
  # @return [String]
606
616
  attr_accessor :connection_name
607
617
 
618
+ # Output only. The time when the instance was created in [RFC 3339](https://
619
+ # tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
620
+ # Corresponds to the JSON property `createTime`
621
+ # @return [String]
622
+ attr_accessor :create_time
623
+
608
624
  # The current disk usage of the instance in bytes. This property has been
609
625
  # deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric
610
- # in Cloud Monitoring API instead. Please see this announcement for details.
626
+ # in Cloud Monitoring API instead. Please see [this announcement](https://groups.
627
+ # google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for
628
+ # details.
611
629
  # Corresponds to the JSON property `currentDiskSize`
612
630
  # @return [Fixnum]
613
631
  attr_accessor :current_disk_size
614
632
 
615
- # The database engine type and version. The *databaseVersion* field cannot be
616
- # changed after instance creation. MySQL instances: *MYSQL_8_0*, *MYSQL_5_7* (
617
- # default), or *MYSQL_5_6*. PostgreSQL instances: *POSTGRES_9_6*, *POSTGRES_10*,
618
- # *POSTGRES_11*, *POSTGRES_12*, *POSTGRES_13* (default). SQL Server instances: *
619
- # SQLSERVER_2019_STANDARD*, *SQLSERVER_2019_ENTERPRISE*, *SQLSERVER_2019_EXPRESS*
620
- # , or *SQLSERVER_2019_WEB*, *SQLSERVER_2017_STANDARD* (default), *
621
- # SQLSERVER_2017_ENTERPRISE*, *SQLSERVER_2017_EXPRESS*, or *SQLSERVER_2017_WEB*.
633
+ # The database engine type and version. The **databaseVersion** field cannot be
634
+ # changed after instance creation. * **MySQL instances**: MYSQL_8_0, MYSQL_5_7 (
635
+ # default), or MYSQL_5_6. * **PostgreSQL instances**: POSTGRES_9_6, POSTGRES_10,
636
+ # POSTGRES_11, POSTGRES_12, POSTGRES_13 (default). * **SQL Server instances**:
637
+ # SQLSERVER_2019_STANDARD, SQLSERVER_2019_ENTERPRISE, SQLSERVER_2019_EXPRESS, or
638
+ # SQLSERVER_2019_WEB, SQLSERVER_2017_STANDARD (default),
639
+ # SQLSERVER_2017_ENTERPRISE, SQLSERVER_2017_EXPRESS, or SQLSERVER_2017_WEB.
622
640
  # Corresponds to the JSON property `databaseVersion`
623
641
  # @return [String]
624
642
  attr_accessor :database_version
@@ -634,7 +652,7 @@ module Google
634
652
  attr_accessor :disk_encryption_status
635
653
 
636
654
  # This field is deprecated and will be removed from a future version of the API.
637
- # Use the *settings.settingsVersion* field instead.
655
+ # Use the **settings.settingsVersion** field instead.
638
656
  # Corresponds to the JSON property `etag`
639
657
  # @return [String]
640
658
  attr_accessor :etag
@@ -651,10 +669,10 @@ module Google
651
669
  # @return [String]
652
670
  attr_accessor :gce_zone
653
671
 
654
- # The instance type. This can be one of the following. *CLOUD_SQL_INSTANCE*: A
655
- # Cloud SQL instance that is not replicating from a primary instance. *
656
- # ON_PREMISES_INSTANCE*: An instance running on the customer's premises. *
657
- # READ_REPLICA_INSTANCE*: A Cloud SQL instance configured as a read-replica.
672
+ # The instance type. This can be one of the following: * **CLOUD_SQL_INSTANCE**:
673
+ # A Cloud SQL instance that is not replicating from a primary instance. * **
674
+ # ON_PREMISES_INSTANCE**: An instance running on the customer's premises. * **
675
+ # READ_REPLICA_INSTANCE**: A Cloud SQL instance configured as a read-replica.
658
676
  # Corresponds to the JSON property `instanceType`
659
677
  # @return [String]
660
678
  attr_accessor :instance_type
@@ -670,7 +688,7 @@ module Google
670
688
  # @return [String]
671
689
  attr_accessor :ipv6_address
672
690
 
673
- # This is always *sql#instance*.
691
+ # This is always **sql#instance**.
674
692
  # Corresponds to the JSON property `kind`
675
693
  # @return [String]
676
694
  attr_accessor :kind
@@ -706,10 +724,10 @@ module Google
706
724
  # @return [String]
707
725
  attr_accessor :project
708
726
 
709
- # The geographical region. Can be *us-central* (*FIRST_GEN* instances only) *us-
710
- # central1* (*SECOND_GEN* instances only) *asia-east1* or *europe-west1*.
711
- # Defaults to *us-central* or *us-central1* depending on the instance type. The
712
- # region cannot be changed after instance creation.
727
+ # The geographical region. Can be: * **us-central** (**FIRST_GEN** instances
728
+ # only) * **us-central1** (**SECOND_GEN** instances only) * **asia-east1** or **
729
+ # europe-west1**. Defaults to **us-central** or **us-central1** depending on the
730
+ # instance type. The region cannot be changed after instance creation.
713
731
  # Corresponds to the JSON property `region`
714
732
  # @return [String]
715
733
  attr_accessor :region
@@ -770,12 +788,12 @@ module Google
770
788
  attr_accessor :settings
771
789
 
772
790
  # The current serving state of the Cloud SQL instance. This can be one of the
773
- # following. *SQL_INSTANCE_STATE_UNSPECIFIED*: The state of the instance is
774
- # unknown. *RUNNABLE*: The instance is running, or has been stopped by owner. *
775
- # SUSPENDED*: The instance is not available, for example due to problems with
776
- # billing. *PENDING_DELETE*: The instance is being deleted. *PENDING_CREATE*:
777
- # The instance is being created. *MAINTENANCE*: The instance is down for
778
- # maintenance. *FAILED*: The instance creation failed.
791
+ # following: * **SQL_INSTANCE_STATE_UNSPECIFIED**: The state of the instance is
792
+ # unknown. * **RUNNABLE**: The instance is running, or has been stopped by owner.
793
+ # * **SUSPENDED**: The instance is not available, for example due to problems
794
+ # with billing. * **PENDING_DELETE**: The instance is being deleted. * **
795
+ # PENDING_CREATE**: The instance is being created. * **MAINTENANCE**: The
796
+ # instance is down for maintenance. * **FAILED**: The instance creation failed.
779
797
  # Corresponds to the JSON property `state`
780
798
  # @return [String]
781
799
  attr_accessor :state
@@ -793,6 +811,7 @@ module Google
793
811
  def update!(**args)
794
812
  @backend_type = args[:backend_type] if args.key?(:backend_type)
795
813
  @connection_name = args[:connection_name] if args.key?(:connection_name)
814
+ @create_time = args[:create_time] if args.key?(:create_time)
796
815
  @current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
797
816
  @database_version = args[:database_version] if args.key?(:database_version)
798
817
  @disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
@@ -865,7 +884,7 @@ module Google
865
884
  # @return [Array<Google::Apis::SqladminV1beta4::Database>]
866
885
  attr_accessor :items
867
886
 
868
- # This is always *sql#databasesList*.
887
+ # This is always **sql#databasesList**.
869
888
  # Corresponds to the JSON property `kind`
870
889
  # @return [String]
871
890
  attr_accessor :kind
@@ -885,7 +904,7 @@ module Google
885
904
  class DemoteMasterConfiguration
886
905
  include Google::Apis::Core::Hashable
887
906
 
888
- # This is always *sql#demoteMasterConfiguration*.
907
+ # This is always **sql#demoteMasterConfiguration**.
889
908
  # Corresponds to the JSON property `kind`
890
909
  # @return [String]
891
910
  attr_accessor :kind
@@ -910,7 +929,7 @@ module Google
910
929
  class DemoteMasterContext
911
930
  include Google::Apis::Core::Hashable
912
931
 
913
- # This is always *sql#demoteMasterContext*.
932
+ # This is always **sql#demoteMasterContext**.
914
933
  # Corresponds to the JSON property `kind`
915
934
  # @return [String]
916
935
  attr_accessor :kind
@@ -926,7 +945,13 @@ module Google
926
945
  # @return [Google::Apis::SqladminV1beta4::DemoteMasterConfiguration]
927
946
  attr_accessor :replica_configuration
928
947
 
929
- # Verify GTID consistency for demote operation. Default value: *True*. Setting
948
+ # Flag to skip replication setup on the instance.
949
+ # Corresponds to the JSON property `skipReplicationSetup`
950
+ # @return [Boolean]
951
+ attr_accessor :skip_replication_setup
952
+ alias_method :skip_replication_setup?, :skip_replication_setup
953
+
954
+ # Verify GTID consistency for demote operation. Default value: **True**. Setting
930
955
  # this flag to false enables you to bypass GTID consistency check between on-
931
956
  # premises primary instance and Cloud SQL instance during the demotion operation
932
957
  # but also exposes you to the risk of future replication failures. Change the
@@ -946,6 +971,7 @@ module Google
946
971
  @kind = args[:kind] if args.key?(:kind)
947
972
  @master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name)
948
973
  @replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration)
974
+ @skip_replication_setup = args[:skip_replication_setup] if args.key?(:skip_replication_setup)
949
975
  @verify_gtid_consistency = args[:verify_gtid_consistency] if args.key?(:verify_gtid_consistency)
950
976
  end
951
977
  end
@@ -971,7 +997,7 @@ module Google
971
997
  # @return [String]
972
998
  attr_accessor :client_key
973
999
 
974
- # This is always *sql#demoteMasterMysqlReplicaConfiguration*.
1000
+ # This is always **sql#demoteMasterMysqlReplicaConfiguration**.
975
1001
  # Corresponds to the JSON property `kind`
976
1002
  # @return [String]
977
1003
  attr_accessor :kind
@@ -1044,7 +1070,7 @@ module Google
1044
1070
  class DiskEncryptionConfiguration
1045
1071
  include Google::Apis::Core::Hashable
1046
1072
 
1047
- # This is always *sql#diskEncryptionConfiguration*.
1073
+ # This is always **sql#diskEncryptionConfiguration**.
1048
1074
  # Corresponds to the JSON property `kind`
1049
1075
  # @return [String]
1050
1076
  attr_accessor :kind
@@ -1069,7 +1095,7 @@ module Google
1069
1095
  class DiskEncryptionStatus
1070
1096
  include Google::Apis::Core::Hashable
1071
1097
 
1072
- # This is always *sql#diskEncryptionStatus*.
1098
+ # This is always **sql#diskEncryptionStatus**.
1073
1099
  # Corresponds to the JSON property `kind`
1074
1100
  # @return [String]
1075
1101
  attr_accessor :kind
@@ -1094,32 +1120,32 @@ module Google
1094
1120
  class ExportContext
1095
1121
  include Google::Apis::Core::Hashable
1096
1122
 
1097
- # Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only.
1123
+ # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
1098
1124
  # Corresponds to the JSON property `csvExportOptions`
1099
1125
  # @return [Google::Apis::SqladminV1beta4::ExportContext::CsvExportOptions]
1100
1126
  attr_accessor :csv_export_options
1101
1127
 
1102
- # Databases to be exported. *MySQL instances:* If *fileType* is *SQL* and no
1103
- # database is specified, all databases are exported, except for the *mysql*
1104
- # system database. If *fileType* is *CSV*, you can specify one database, either
1105
- # by using this property or by using the *csvExportOptions.selectQuery* property,
1106
- # which takes precedence over this property. *PostgreSQL instances:* You must
1107
- # specify one database to be exported. If *fileType* is *CSV*, this database
1108
- # must match the one specified in the *csvExportOptions.selectQuery* property. *
1109
- # SQL Server instances:* You must specify one database to be exported, and the *
1110
- # fileType* must be *BAK*.
1128
+ # Databases to be exported. * **MySQL instances:** If **fileType** is **SQL**
1129
+ # and no database is specified, all databases are exported, except for the **
1130
+ # mysql** system database. If **fileType** is **CSV**, you can specify one
1131
+ # database, either by using this property or by using the **csvExportOptions.
1132
+ # selectQuery** property, which takes precedence over this property. * **
1133
+ # PostgreSQL instances:** You must specify one database to be exported. If **
1134
+ # fileType** is **CSV**, this database must match the one specified in the **
1135
+ # csvExportOptions.selectQuery** property. * **SQL Server instances:** You must
1136
+ # specify one database to be exported, and the **fileType** must be **BAK**.
1111
1137
  # Corresponds to the JSON property `databases`
1112
1138
  # @return [Array<String>]
1113
1139
  attr_accessor :databases
1114
1140
 
1115
- # The file type for the specified uri. *SQL*: The file contains SQL statements. *
1116
- # CSV*: The file contains CSV data. *BAK*: The file contains backup data for a
1117
- # SQL Server instance.
1141
+ # The file type for the specified uri. * **SQL**: The file contains SQL
1142
+ # statements. * **CSV**: The file contains CSV data. * **BAK**: The file
1143
+ # contains backup data for a SQL Server instance.
1118
1144
  # Corresponds to the JSON property `fileType`
1119
1145
  # @return [String]
1120
1146
  attr_accessor :file_type
1121
1147
 
1122
- # This is always *sql#exportContext*.
1148
+ # This is always **sql#exportContext**.
1123
1149
  # Corresponds to the JSON property `kind`
1124
1150
  # @return [String]
1125
1151
  attr_accessor :kind
@@ -1136,9 +1162,9 @@ module Google
1136
1162
  attr_accessor :sql_export_options
1137
1163
 
1138
1164
  # The path to the file in Google Cloud Storage where the export will be stored.
1139
- # The URI is in the form *gs://bucketName/fileName*. If the file already exists,
1140
- # the request succeeds, but the operation fails. If *fileType* is *SQL* and the
1141
- # filename ends with .gz, the contents are compressed.
1165
+ # The URI is in the form **gs://bucketName/fileName**. If the file already
1166
+ # exists, the request succeeds, but the operation fails. If **fileType** is **
1167
+ # SQL** and the filename ends with .gz, the contents are compressed.
1142
1168
  # Corresponds to the JSON property `uri`
1143
1169
  # @return [String]
1144
1170
  attr_accessor :uri
@@ -1158,10 +1184,33 @@ module Google
1158
1184
  @uri = args[:uri] if args.key?(:uri)
1159
1185
  end
1160
1186
 
1161
- # Options for exporting data as CSV. *MySQL* and *PostgreSQL* instances only.
1187
+ # Options for exporting data as CSV. **MySQL** and **PostgreSQL** instances only.
1162
1188
  class CsvExportOptions
1163
1189
  include Google::Apis::Core::Hashable
1164
1190
 
1191
+ # Specifies the character that should appear before a data character that needs
1192
+ # to be escaped.
1193
+ # Corresponds to the JSON property `escapeCharacter`
1194
+ # @return [String]
1195
+ attr_accessor :escape_character
1196
+
1197
+ # Specifies the character that separates columns within each row (line) of the
1198
+ # file.
1199
+ # Corresponds to the JSON property `fieldsTerminatedBy`
1200
+ # @return [String]
1201
+ attr_accessor :fields_terminated_by
1202
+
1203
+ # This is used to separate lines. If a line does not contain all fields, the
1204
+ # rest of the columns are set to their default values.
1205
+ # Corresponds to the JSON property `linesTerminatedBy`
1206
+ # @return [String]
1207
+ attr_accessor :lines_terminated_by
1208
+
1209
+ # Specifies the quoting character to be used when a data value is quoted.
1210
+ # Corresponds to the JSON property `quoteCharacter`
1211
+ # @return [String]
1212
+ attr_accessor :quote_character
1213
+
1165
1214
  # The select query used to extract the data.
1166
1215
  # Corresponds to the JSON property `selectQuery`
1167
1216
  # @return [String]
@@ -1173,6 +1222,10 @@ module Google
1173
1222
 
1174
1223
  # Update properties of this object
1175
1224
  def update!(**args)
1225
+ @escape_character = args[:escape_character] if args.key?(:escape_character)
1226
+ @fields_terminated_by = args[:fields_terminated_by] if args.key?(:fields_terminated_by)
1227
+ @lines_terminated_by = args[:lines_terminated_by] if args.key?(:lines_terminated_by)
1228
+ @quote_character = args[:quote_character] if args.key?(:quote_character)
1176
1229
  @select_query = args[:select_query] if args.key?(:select_query)
1177
1230
  end
1178
1231
  end
@@ -1214,11 +1267,11 @@ module Google
1214
1267
  class MysqlExportOptions
1215
1268
  include Google::Apis::Core::Hashable
1216
1269
 
1217
- # Option to include SQL statement required to set up replication. If set to *1*,
1218
- # the dump file includes a CHANGE MASTER TO statement with the binary log
1219
- # coordinates, and --set-gtid-purged is set to ON. If set to *2*, the CHANGE
1220
- # MASTER TO statement is written as a SQL comment and has no effect. If set to
1221
- # any value other than *1*, --set-gtid-purged is set to OFF.
1270
+ # Option to include SQL statement required to set up replication. * If set to **
1271
+ # 1**, the dump file includes a CHANGE MASTER TO statement with the binary log
1272
+ # coordinates, and --set-gtid-purged is set to ON. * If set to **2**, the CHANGE
1273
+ # MASTER TO statement is written as a SQL comment and has no effect. * If set to
1274
+ # any value other than **1**, --set-gtid-purged is set to OFF.
1222
1275
  # Corresponds to the JSON property `masterData`
1223
1276
  # @return [Fixnum]
1224
1277
  attr_accessor :master_data
@@ -1239,7 +1292,7 @@ module Google
1239
1292
  class FailoverContext
1240
1293
  include Google::Apis::Core::Hashable
1241
1294
 
1242
- # This is always *sql#failoverContext*.
1295
+ # This is always **sql#failoverContext**.
1243
1296
  # Corresponds to the JSON property `kind`
1244
1297
  # @return [String]
1245
1298
  attr_accessor :kind
@@ -1271,13 +1324,13 @@ module Google
1271
1324
  # @return [Array<Fixnum>]
1272
1325
  attr_accessor :allowed_int_values
1273
1326
 
1274
- # For *STRING* flags, a list of strings that the value can be set to.
1327
+ # For **STRING** flags, a list of strings that the value can be set to.
1275
1328
  # Corresponds to the JSON property `allowedStringValues`
1276
1329
  # @return [Array<String>]
1277
1330
  attr_accessor :allowed_string_values
1278
1331
 
1279
- # The database version this flag applies to. Can be *MYSQL_8_0*, *MYSQL_5_6*, or
1280
- # *MYSQL_5_7*.
1332
+ # The database version this flag applies to. Can be **MYSQL_8_0**, **MYSQL_5_6**,
1333
+ # or **MYSQL_5_7**.
1281
1334
  # Corresponds to the JSON property `appliesTo`
1282
1335
  # @return [Array<String>]
1283
1336
  attr_accessor :applies_to
@@ -1288,36 +1341,37 @@ module Google
1288
1341
  attr_accessor :in_beta
1289
1342
  alias_method :in_beta?, :in_beta
1290
1343
 
1291
- # This is always *sql#flag*.
1344
+ # This is always **sql#flag**.
1292
1345
  # Corresponds to the JSON property `kind`
1293
1346
  # @return [String]
1294
1347
  attr_accessor :kind
1295
1348
 
1296
- # For *INTEGER* flags, the maximum allowed value.
1349
+ # For **INTEGER** flags, the maximum allowed value.
1297
1350
  # Corresponds to the JSON property `maxValue`
1298
1351
  # @return [Fixnum]
1299
1352
  attr_accessor :max_value
1300
1353
 
1301
- # For *INTEGER* flags, the minimum allowed value.
1354
+ # For **INTEGER** flags, the minimum allowed value.
1302
1355
  # Corresponds to the JSON property `minValue`
1303
1356
  # @return [Fixnum]
1304
1357
  attr_accessor :min_value
1305
1358
 
1306
1359
  # This is the name of the flag. Flag names always use underscores, not hyphens,
1307
- # for example: *max_allowed_packet*
1360
+ # for example: **max_allowed_packet**
1308
1361
  # Corresponds to the JSON property `name`
1309
1362
  # @return [String]
1310
1363
  attr_accessor :name
1311
1364
 
1312
- # Indicates whether changing this flag will trigger a database restart.
1365
+ # Indicates whether changing this flag will trigger a database restart. Only
1366
+ # applicable to Second Generation instances.
1313
1367
  # Corresponds to the JSON property `requiresRestart`
1314
1368
  # @return [Boolean]
1315
1369
  attr_accessor :requires_restart
1316
1370
  alias_method :requires_restart?, :requires_restart
1317
1371
 
1318
- # The type of the flag. Flags are typed to being *BOOLEAN*, *STRING*, *INTEGER*
1319
- # or *NONE*. *NONE* is used for flags which do not take a value, such as *
1320
- # skip_grant_tables*.
1372
+ # The type of the flag. Flags are typed to being **BOOLEAN**, **STRING**, **
1373
+ # INTEGER** or **NONE**. **NONE** is used for flags which do not take a value,
1374
+ # such as **skip_grant_tables**.
1321
1375
  # Corresponds to the JSON property `type`
1322
1376
  # @return [String]
1323
1377
  attr_accessor :type
@@ -1350,7 +1404,7 @@ module Google
1350
1404
  # @return [Array<Google::Apis::SqladminV1beta4::Flag>]
1351
1405
  attr_accessor :items
1352
1406
 
1353
- # This is always *sql#flagsList*.
1407
+ # This is always **sql#flagsList**.
1354
1408
  # Corresponds to the JSON property `kind`
1355
1409
  # @return [String]
1356
1410
  attr_accessor :kind
@@ -1385,6 +1439,11 @@ module Google
1385
1439
  # @return [String]
1386
1440
  attr_accessor :read_time
1387
1441
 
1442
+ # Optional. If set, it will contain the cert valid duration.
1443
+ # Corresponds to the JSON property `validDuration`
1444
+ # @return [String]
1445
+ attr_accessor :valid_duration
1446
+
1388
1447
  def initialize(**args)
1389
1448
  update!(**args)
1390
1449
  end
@@ -1394,6 +1453,7 @@ module Google
1394
1453
  @access_token = args[:access_token] if args.key?(:access_token)
1395
1454
  @public_key = args[:public_key] if args.key?(:public_key)
1396
1455
  @read_time = args[:read_time] if args.key?(:read_time)
1456
+ @valid_duration = args[:valid_duration] if args.key?(:valid_duration)
1397
1457
  end
1398
1458
  end
1399
1459
 
@@ -1430,16 +1490,17 @@ module Google
1430
1490
  # @return [Google::Apis::SqladminV1beta4::ImportContext::CsvImportOptions]
1431
1491
  attr_accessor :csv_import_options
1432
1492
 
1433
- # The target database for the import. If *fileType* is *SQL*, this field is
1493
+ # The target database for the import. If **fileType** is **SQL**, this field is
1434
1494
  # required only if the import file does not specify a database, and is
1435
- # overridden by any database specification in the import file. If *fileType* is *
1436
- # CSV*, one database must be specified.
1495
+ # overridden by any database specification in the import file. If **fileType**
1496
+ # is **CSV**, one database must be specified.
1437
1497
  # Corresponds to the JSON property `database`
1438
1498
  # @return [String]
1439
1499
  attr_accessor :database
1440
1500
 
1441
- # The file type for the specified uri. *SQL*: The file contains SQL statements. *
1442
- # CSV*: The file contains CSV data.
1501
+ # The file type for the specified uri. * **SQL**: The file contains SQL
1502
+ # statements. * **CSV**: The file contains CSV data. * **BAK**: The file
1503
+ # contains backup data for a SQL Server instance.
1443
1504
  # Corresponds to the JSON property `fileType`
1444
1505
  # @return [String]
1445
1506
  attr_accessor :file_type
@@ -1449,15 +1510,15 @@ module Google
1449
1510
  # @return [String]
1450
1511
  attr_accessor :import_user
1451
1512
 
1452
- # This is always *sql#importContext*.
1513
+ # This is always **sql#importContext**.
1453
1514
  # Corresponds to the JSON property `kind`
1454
1515
  # @return [String]
1455
1516
  attr_accessor :kind
1456
1517
 
1457
- # Path to the import file in Cloud Storage, in the form *gs://bucketName/
1458
- # fileName*. Compressed gzip files (.gz) are supported when *fileType* is *SQL*.
1459
- # The instance must have write permissions to the bucket and read access to the
1460
- # file.
1518
+ # Path to the import file in Cloud Storage, in the form **gs://bucketName/
1519
+ # fileName**. Compressed gzip files (.gz) are supported when **fileType** is **
1520
+ # SQL**. The instance must have write permissions to the bucket and read access
1521
+ # to the file.
1461
1522
  # Corresponds to the JSON property `uri`
1462
1523
  # @return [String]
1463
1524
  attr_accessor :uri
@@ -1499,8 +1560,8 @@ module Google
1499
1560
  class EncryptionOptions
1500
1561
  include Google::Apis::Core::Hashable
1501
1562
 
1502
- # Path to the Certificate (.cer) in Cloud Storage, in the form *gs://bucketName/
1503
- # fileName*. The instance must have write permissions to the bucket and read
1563
+ # Path to the Certificate (.cer) in Cloud Storage, in the form **gs://bucketName/
1564
+ # fileName**. The instance must have write permissions to the bucket and read
1504
1565
  # access to the file.
1505
1566
  # Corresponds to the JSON property `certPath`
1506
1567
  # @return [String]
@@ -1511,8 +1572,8 @@ module Google
1511
1572
  # @return [String]
1512
1573
  attr_accessor :pvk_password
1513
1574
 
1514
- # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form *gs://
1515
- # bucketName/fileName*. The instance must have write permissions to the bucket
1575
+ # Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form **gs:/
1576
+ # /bucketName/fileName**. The instance must have write permissions to the bucket
1516
1577
  # and read access to the file.
1517
1578
  # Corresponds to the JSON property `pvkPath`
1518
1579
  # @return [String]
@@ -1541,6 +1602,29 @@ module Google
1541
1602
  # @return [Array<String>]
1542
1603
  attr_accessor :columns
1543
1604
 
1605
+ # Specifies the character that should appear before a data character that needs
1606
+ # to be escaped.
1607
+ # Corresponds to the JSON property `escapeCharacter`
1608
+ # @return [String]
1609
+ attr_accessor :escape_character
1610
+
1611
+ # Specifies the character that separates columns within each row (line) of the
1612
+ # file.
1613
+ # Corresponds to the JSON property `fieldsTerminatedBy`
1614
+ # @return [String]
1615
+ attr_accessor :fields_terminated_by
1616
+
1617
+ # This is used to separate lines. If a line does not contain all fields, the
1618
+ # rest of the columns are set to their default values.
1619
+ # Corresponds to the JSON property `linesTerminatedBy`
1620
+ # @return [String]
1621
+ attr_accessor :lines_terminated_by
1622
+
1623
+ # Specifies the quoting character to be used when a data value is quoted.
1624
+ # Corresponds to the JSON property `quoteCharacter`
1625
+ # @return [String]
1626
+ attr_accessor :quote_character
1627
+
1544
1628
  # The table to which CSV data is imported.
1545
1629
  # Corresponds to the JSON property `table`
1546
1630
  # @return [String]
@@ -1553,6 +1637,10 @@ module Google
1553
1637
  # Update properties of this object
1554
1638
  def update!(**args)
1555
1639
  @columns = args[:columns] if args.key?(:columns)
1640
+ @escape_character = args[:escape_character] if args.key?(:escape_character)
1641
+ @fields_terminated_by = args[:fields_terminated_by] if args.key?(:fields_terminated_by)
1642
+ @lines_terminated_by = args[:lines_terminated_by] if args.key?(:lines_terminated_by)
1643
+ @quote_character = args[:quote_character] if args.key?(:quote_character)
1556
1644
  @table = args[:table] if args.key?(:table)
1557
1645
  end
1558
1646
  end
@@ -1609,6 +1697,39 @@ module Google
1609
1697
  end
1610
1698
  end
1611
1699
 
1700
+ # Reference to another Cloud SQL instance.
1701
+ class InstanceReference
1702
+ include Google::Apis::Core::Hashable
1703
+
1704
+ # The name of the Cloud SQL instance being referenced. This does not include the
1705
+ # project ID.
1706
+ # Corresponds to the JSON property `name`
1707
+ # @return [String]
1708
+ attr_accessor :name
1709
+
1710
+ # The project ID of the Cloud SQL instance being referenced. The default is the
1711
+ # same project ID as the instance references it.
1712
+ # Corresponds to the JSON property `project`
1713
+ # @return [String]
1714
+ attr_accessor :project
1715
+
1716
+ # The region of the Cloud SQL instance being referenced.
1717
+ # Corresponds to the JSON property `region`
1718
+ # @return [String]
1719
+ attr_accessor :region
1720
+
1721
+ def initialize(**args)
1722
+ update!(**args)
1723
+ end
1724
+
1725
+ # Update properties of this object
1726
+ def update!(**args)
1727
+ @name = args[:name] if args.key?(:name)
1728
+ @project = args[:project] if args.key?(:project)
1729
+ @region = args[:region] if args.key?(:region)
1730
+ end
1731
+ end
1732
+
1612
1733
  # Database instance clone request.
1613
1734
  class CloneInstancesRequest
1614
1735
  include Google::Apis::Core::Hashable
@@ -1713,7 +1834,7 @@ module Google
1713
1834
  # @return [Array<Google::Apis::SqladminV1beta4::DatabaseInstance>]
1714
1835
  attr_accessor :items
1715
1836
 
1716
- # This is always *sql#instancesList*.
1837
+ # This is always **sql#instancesList**.
1717
1838
  # Corresponds to the JSON property `kind`
1718
1839
  # @return [String]
1719
1840
  attr_accessor :kind
@@ -1756,7 +1877,7 @@ module Google
1756
1877
  # @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
1757
1878
  attr_accessor :certs
1758
1879
 
1759
- # This is always *sql#instancesListServerCas*.
1880
+ # This is always **sql#instancesListServerCas**.
1760
1881
  # Corresponds to the JSON property `kind`
1761
1882
  # @return [String]
1762
1883
  attr_accessor :kind
@@ -1835,9 +1956,19 @@ module Google
1835
1956
  class IpConfiguration
1836
1957
  include Google::Apis::Core::Hashable
1837
1958
 
1959
+ # The name of the allocated ip range for the private ip CloudSQL instance. For
1960
+ # example: "google-managed-services-default". If set, the instance ip will be
1961
+ # created in the allocated range. The range name must comply with [RFC 1035](
1962
+ # https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63
1963
+ # characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
1964
+ # Reserved for future use.
1965
+ # Corresponds to the JSON property `allocatedIpRange`
1966
+ # @return [String]
1967
+ attr_accessor :allocated_ip_range
1968
+
1838
1969
  # The list of external networks that are allowed to connect to the instance
1839
1970
  # using the IP. In 'CIDR' notation, also known as 'slash' notation (for example:
1840
- # *192.168.100.0/24*).
1971
+ # **192.168.100.0/24**).
1841
1972
  # Corresponds to the JSON property `authorizedNetworks`
1842
1973
  # @return [Array<Google::Apis::SqladminV1beta4::AclEntry>]
1843
1974
  attr_accessor :authorized_networks
@@ -1849,8 +1980,8 @@ module Google
1849
1980
  alias_method :ipv4_enabled?, :ipv4_enabled
1850
1981
 
1851
1982
  # The resource link for the VPC network from which the Cloud SQL instance is
1852
- # accessible for private IP. For example, */projects/myProject/global/networks/
1853
- # default*. This setting can be updated, but it cannot be removed after it is
1983
+ # accessible for private IP. For example, **/projects/myProject/global/networks/
1984
+ # default**. This setting can be updated, but it cannot be removed after it is
1854
1985
  # set.
1855
1986
  # Corresponds to the JSON property `privateNetwork`
1856
1987
  # @return [String]
@@ -1868,6 +1999,7 @@ module Google
1868
1999
 
1869
2000
  # Update properties of this object
1870
2001
  def update!(**args)
2002
+ @allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range)
1871
2003
  @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
1872
2004
  @ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled)
1873
2005
  @private_network = args[:private_network] if args.key?(:private_network)
@@ -1884,17 +2016,17 @@ module Google
1884
2016
  # @return [String]
1885
2017
  attr_accessor :ip_address
1886
2018
 
1887
- # The due time for this IP to be retired in RFC 3339 format, for example *2012-
1888
- # 11-15T16:19:00.094Z*. This field is only available when the IP is scheduled to
1889
- # be retired.
2019
+ # The due time for this IP to be retired in [RFC 3339](https://tools.ietf.org/
2020
+ # html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**. This field is
2021
+ # only available when the IP is scheduled to be retired.
1890
2022
  # Corresponds to the JSON property `timeToRetire`
1891
2023
  # @return [String]
1892
2024
  attr_accessor :time_to_retire
1893
2025
 
1894
- # The type of this IP address. A *PRIMARY* address is a public address that can
1895
- # accept incoming connections. A *PRIVATE* address is a private address that can
1896
- # accept incoming connections. An *OUTGOING* address is the source address of
1897
- # connections originating from the instance, if supported.
2026
+ # The type of this IP address. A **PRIMARY** address is a public address that
2027
+ # can accept incoming connections. A **PRIVATE** address is a private address
2028
+ # that can accept incoming connections. An **OUTGOING** address is the source
2029
+ # address of connections originating from the instance, if supported.
1898
2030
  # Corresponds to the JSON property `type`
1899
2031
  # @return [String]
1900
2032
  attr_accessor :type
@@ -1911,11 +2043,9 @@ module Google
1911
2043
  end
1912
2044
  end
1913
2045
 
1914
- # Preferred location. This specifies where a Cloud SQL instance is located,
1915
- # either in a specific Compute Engine zone, or co-located with an App Engine
1916
- # application. Note that if the preferred location is not available, the
1917
- # instance will be located as close as possible within the region. Only one
1918
- # location may be specified.
2046
+ # Preferred location. This specifies where a Cloud SQL instance is located. Note
2047
+ # that if the preferred location is not available, the instance will be located
2048
+ # as close as possible within the region. Only one location may be specified.
1919
2049
  class LocationPreference
1920
2050
  include Google::Apis::Core::Hashable
1921
2051
 
@@ -1925,7 +2055,7 @@ module Google
1925
2055
  # @return [String]
1926
2056
  attr_accessor :follow_gae_application
1927
2057
 
1928
- # This is always *sql#locationPreference*.
2058
+ # This is always **sql#locationPreference**.
1929
2059
  # Corresponds to the JSON property `kind`
1930
2060
  # @return [String]
1931
2061
  attr_accessor :kind
@@ -1970,12 +2100,14 @@ module Google
1970
2100
  # @return [Fixnum]
1971
2101
  attr_accessor :hour
1972
2102
 
1973
- # This is always *sql#maintenanceWindow*.
2103
+ # This is always **sql#maintenanceWindow**.
1974
2104
  # Corresponds to the JSON property `kind`
1975
2105
  # @return [String]
1976
2106
  attr_accessor :kind
1977
2107
 
1978
- # Maintenance timing setting: *canary* (Earlier) or *stable* (Later). Learn more.
2108
+ # Maintenance timing setting: **canary** (Earlier) or **stable** (Later). [Learn
2109
+ # more](https://cloud.google.com/sql/docs/mysql/instance-settings#maintenance-
2110
+ # timing-2ndgen).
1979
2111
  # Corresponds to the JSON property `updateTrack`
1980
2112
  # @return [String]
1981
2113
  attr_accessor :update_track
@@ -2027,7 +2159,7 @@ module Google
2027
2159
  # @return [String]
2028
2160
  attr_accessor :dump_file_path
2029
2161
 
2030
- # This is always *sql#mysqlReplicaConfiguration*.
2162
+ # This is always **sql#mysqlReplicaConfiguration**.
2031
2163
  # Corresponds to the JSON property `kind`
2032
2164
  # @return [String]
2033
2165
  attr_accessor :kind
@@ -2079,6 +2211,25 @@ module Google
2079
2211
  end
2080
2212
  end
2081
2213
 
2214
+ # MySQL-specific external server sync settings.
2215
+ class MySqlSyncConfig
2216
+ include Google::Apis::Core::Hashable
2217
+
2218
+ # Flags to use for the initial dump.
2219
+ # Corresponds to the JSON property `initialSyncFlags`
2220
+ # @return [Array<Google::Apis::SqladminV1beta4::SyncFlags>]
2221
+ attr_accessor :initial_sync_flags
2222
+
2223
+ def initialize(**args)
2224
+ update!(**args)
2225
+ end
2226
+
2227
+ # Update properties of this object
2228
+ def update!(**args)
2229
+ @initial_sync_flags = args[:initial_sync_flags] if args.key?(:initial_sync_flags)
2230
+ end
2231
+ end
2232
+
2082
2233
  # On-premises instance configuration.
2083
2234
  class OnPremisesConfiguration
2084
2235
  include Google::Apis::Core::Hashable
@@ -2109,7 +2260,7 @@ module Google
2109
2260
  # @return [String]
2110
2261
  attr_accessor :host_port
2111
2262
 
2112
- # This is always *sql#onPremisesConfiguration*.
2263
+ # This is always **sql#onPremisesConfiguration**.
2113
2264
  # Corresponds to the JSON property `kind`
2114
2265
  # @return [String]
2115
2266
  attr_accessor :kind
@@ -2119,6 +2270,11 @@ module Google
2119
2270
  # @return [String]
2120
2271
  attr_accessor :password
2121
2272
 
2273
+ # Reference to another Cloud SQL instance.
2274
+ # Corresponds to the JSON property `sourceInstance`
2275
+ # @return [Google::Apis::SqladminV1beta4::InstanceReference]
2276
+ attr_accessor :source_instance
2277
+
2122
2278
  # The username for connecting to on-premises instance.
2123
2279
  # Corresponds to the JSON property `username`
2124
2280
  # @return [String]
@@ -2137,6 +2293,7 @@ module Google
2137
2293
  @host_port = args[:host_port] if args.key?(:host_port)
2138
2294
  @kind = args[:kind] if args.key?(:kind)
2139
2295
  @password = args[:password] if args.key?(:password)
2296
+ @source_instance = args[:source_instance] if args.key?(:source_instance)
2140
2297
  @username = args[:username] if args.key?(:username)
2141
2298
  end
2142
2299
  end
@@ -2152,8 +2309,8 @@ module Google
2152
2309
  # @return [Google::Apis::SqladminV1beta4::BackupContext]
2153
2310
  attr_accessor :backup_context
2154
2311
 
2155
- # The time this operation finished in UTC timezone in RFC 3339 format, for
2156
- # example *2012-11-15T16:19:00.094Z*.
2312
+ # The time this operation finished in UTC timezone in [RFC 3339](https://tools.
2313
+ # ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
2157
2314
  # Corresponds to the JSON property `endTime`
2158
2315
  # @return [String]
2159
2316
  attr_accessor :end_time
@@ -2173,13 +2330,13 @@ module Google
2173
2330
  # @return [Google::Apis::SqladminV1beta4::ImportContext]
2174
2331
  attr_accessor :import_context
2175
2332
 
2176
- # The time this operation was enqueued in UTC timezone in RFC 3339 format, for
2177
- # example *2012-11-15T16:19:00.094Z*.
2333
+ # The time this operation was enqueued in UTC timezone in [RFC 3339](https://
2334
+ # tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
2178
2335
  # Corresponds to the JSON property `insertTime`
2179
2336
  # @return [String]
2180
2337
  attr_accessor :insert_time
2181
2338
 
2182
- # This is always *sql#operation*.
2339
+ # This is always **sql#operation**.
2183
2340
  # Corresponds to the JSON property `kind`
2184
2341
  # @return [String]
2185
2342
  attr_accessor :kind
@@ -2191,9 +2348,10 @@ module Google
2191
2348
  # @return [String]
2192
2349
  attr_accessor :name
2193
2350
 
2194
- # The type of the operation. Valid values are: *CREATE* *DELETE* *UPDATE* *
2195
- # RESTART* *IMPORT* *EXPORT* *BACKUP_VOLUME* *RESTORE_VOLUME* *CREATE_USER* *
2196
- # DELETE_USER* *CREATE_DATABASE* *DELETE_DATABASE*
2351
+ # The type of the operation. Valid values are: * **CREATE** * **DELETE** * **
2352
+ # UPDATE** * **RESTART** * **IMPORT** * **EXPORT** * **BACKUP_VOLUME** * **
2353
+ # RESTORE_VOLUME** * **CREATE_USER** * **DELETE_USER** * **CREATE_DATABASE** * **
2354
+ # DELETE_DATABASE**
2197
2355
  # Corresponds to the JSON property `operationType`
2198
2356
  # @return [String]
2199
2357
  attr_accessor :operation_type
@@ -2203,14 +2361,14 @@ module Google
2203
2361
  # @return [String]
2204
2362
  attr_accessor :self_link
2205
2363
 
2206
- # The time this operation actually started in UTC timezone in RFC 3339 format,
2207
- # for example *2012-11-15T16:19:00.094Z*.
2364
+ # The time this operation actually started in UTC timezone in [RFC 3339](https://
2365
+ # tools.ietf.org/html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
2208
2366
  # Corresponds to the JSON property `startTime`
2209
2367
  # @return [String]
2210
2368
  attr_accessor :start_time
2211
2369
 
2212
- # The status of an operation. Valid values are: *PENDING* *RUNNING* *DONE* *
2213
- # SQL_OPERATION_STATUS_UNSPECIFIED*
2370
+ # The status of an operation. Valid values are: * **PENDING** * **RUNNING** * **
2371
+ # DONE** * **SQL_OPERATION_STATUS_UNSPECIFIED**
2214
2372
  # Corresponds to the JSON property `status`
2215
2373
  # @return [String]
2216
2374
  attr_accessor :status
@@ -2269,7 +2427,7 @@ module Google
2269
2427
  # @return [String]
2270
2428
  attr_accessor :code
2271
2429
 
2272
- # This is always *sql#operationError*.
2430
+ # This is always **sql#operationError**.
2273
2431
  # Corresponds to the JSON property `kind`
2274
2432
  # @return [String]
2275
2433
  attr_accessor :kind
@@ -2300,7 +2458,7 @@ module Google
2300
2458
  # @return [Array<Google::Apis::SqladminV1beta4::OperationError>]
2301
2459
  attr_accessor :errors
2302
2460
 
2303
- # This is always *sql#operationErrors*.
2461
+ # This is always **sql#operationErrors**.
2304
2462
  # Corresponds to the JSON property `kind`
2305
2463
  # @return [String]
2306
2464
  attr_accessor :kind
@@ -2316,7 +2474,7 @@ module Google
2316
2474
  end
2317
2475
  end
2318
2476
 
2319
- # Database instance list operations response.
2477
+ # Operations list response.
2320
2478
  class ListOperationsResponse
2321
2479
  include Google::Apis::Core::Hashable
2322
2480
 
@@ -2325,7 +2483,7 @@ module Google
2325
2483
  # @return [Array<Google::Apis::SqladminV1beta4::Operation>]
2326
2484
  attr_accessor :items
2327
2485
 
2328
- # This is always *sql#operationsList*.
2486
+ # This is always **sql#operationsList**.
2329
2487
  # Corresponds to the JSON property `kind`
2330
2488
  # @return [String]
2331
2489
  attr_accessor :kind
@@ -2352,8 +2510,8 @@ module Google
2352
2510
  class ReplicaConfiguration
2353
2511
  include Google::Apis::Core::Hashable
2354
2512
 
2355
- # Specifies if the replica is the failover target. If the field is set to *true*
2356
- # the replica will be designated as a failover replica. In case the primary
2513
+ # Specifies if the replica is the failover target. If the field is set to **true*
2514
+ # * the replica will be designated as a failover replica. In case the primary
2357
2515
  # instance fails, the replica instance will be promoted as the new primary
2358
2516
  # instance. Only one replica can be specified as failover target, and the
2359
2517
  # replica has to be in different zone with the primary instance.
@@ -2362,7 +2520,7 @@ module Google
2362
2520
  attr_accessor :failover_target
2363
2521
  alias_method :failover_target?, :failover_target
2364
2522
 
2365
- # This is always *sql#replicaConfiguration*.
2523
+ # This is always **sql#replicaConfiguration**.
2366
2524
  # Corresponds to the JSON property `kind`
2367
2525
  # @return [String]
2368
2526
  attr_accessor :kind
@@ -2394,8 +2552,8 @@ module Google
2394
2552
  attr_accessor :reschedule_type
2395
2553
 
2396
2554
  # Optional. Timestamp when the maintenance shall be rescheduled to if
2397
- # reschedule_type=SPECIFIC_TIME, in RFC 3339 format, for example *2012-11-15T16:
2398
- # 19:00.094Z*.
2555
+ # reschedule_type=SPECIFIC_TIME, in [RFC 3339](https://tools.ietf.org/html/
2556
+ # rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
2399
2557
  # Corresponds to the JSON property `scheduleTime`
2400
2558
  # @return [String]
2401
2559
  attr_accessor :schedule_time
@@ -2426,7 +2584,7 @@ module Google
2426
2584
  # @return [String]
2427
2585
  attr_accessor :instance_id
2428
2586
 
2429
- # This is always *sql#restoreBackupContext*.
2587
+ # This is always **sql#restoreBackupContext**.
2430
2588
  # Corresponds to the JSON property `kind`
2431
2589
  # @return [String]
2432
2590
  attr_accessor :kind
@@ -2453,7 +2611,7 @@ module Google
2453
2611
  class RotateServerCaContext
2454
2612
  include Google::Apis::Core::Hashable
2455
2613
 
2456
- # This is always *sql#rotateServerCaContext*.
2614
+ # This is always **sql#rotateServerCaContext**.
2457
2615
  # Corresponds to the JSON property `kind`
2458
2616
  # @return [String]
2459
2617
  attr_accessor :kind
@@ -2480,10 +2638,10 @@ module Google
2480
2638
  include Google::Apis::Core::Hashable
2481
2639
 
2482
2640
  # The activation policy specifies when the instance is activated; it is
2483
- # applicable only when the instance state is RUNNABLE. Valid values: *ALWAYS*:
2484
- # The instance is on, and remains so even in the absence of connection requests.
2485
- # *NEVER*: The instance is off; it is not activated, even if a connection
2486
- # request arrives.
2641
+ # applicable only when the instance state is RUNNABLE. Valid values: * **ALWAYS**
2642
+ # : The instance is on, and remains so even in the absence of connection
2643
+ # requests. * **NEVER**: The instance is off; it is not activated, even if a
2644
+ # connection request arrives.
2487
2645
  # Corresponds to the JSON property `activationPolicy`
2488
2646
  # @return [String]
2489
2647
  attr_accessor :activation_policy
@@ -2499,11 +2657,12 @@ module Google
2499
2657
  # @return [Array<String>]
2500
2658
  attr_accessor :authorized_gae_applications
2501
2659
 
2502
- # Availability type. Potential values: *ZONAL*: The instance serves data from
2503
- # only one zone. Outages in that zone affect data accessibility. *REGIONAL*: The
2504
- # instance can serve data from more than one zone in a region (it is highly
2505
- # available). For more information, see Overview of the High Availability
2506
- # Configuration.
2660
+ # Availability type. Potential values: * **ZONAL**: The instance serves data
2661
+ # from only one zone. Outages in that zone affect data accessibility. * **
2662
+ # REGIONAL**: The instance can serve data from more than one zone in a region (
2663
+ # it is highly available)./ For more information, see [Overview of the High
2664
+ # Availability Configuration](https://cloud.google.com/sql/docs/mysql/high-
2665
+ # availability).
2507
2666
  # Corresponds to the JSON property `availabilityType`
2508
2667
  # @return [String]
2509
2668
  attr_accessor :availability_type
@@ -2531,7 +2690,7 @@ module Google
2531
2690
  # @return [Fixnum]
2532
2691
  attr_accessor :data_disk_size_gb
2533
2692
 
2534
- # The type of data disk: PD_SSD (default) or PD_HDD. Not used for First
2693
+ # The type of data disk: **PD_SSD** (default) or **PD_HDD**. Not used for First
2535
2694
  # Generation instances.
2536
2695
  # Corresponds to the JSON property `dataDiskType`
2537
2696
  # @return [String]
@@ -2565,16 +2724,14 @@ module Google
2565
2724
  # @return [Google::Apis::SqladminV1beta4::IpConfiguration]
2566
2725
  attr_accessor :ip_configuration
2567
2726
 
2568
- # This is always *sql#settings*.
2727
+ # This is always **sql#settings**.
2569
2728
  # Corresponds to the JSON property `kind`
2570
2729
  # @return [String]
2571
2730
  attr_accessor :kind
2572
2731
 
2573
- # Preferred location. This specifies where a Cloud SQL instance is located,
2574
- # either in a specific Compute Engine zone, or co-located with an App Engine
2575
- # application. Note that if the preferred location is not available, the
2576
- # instance will be located as close as possible within the region. Only one
2577
- # location may be specified.
2732
+ # Preferred location. This specifies where a Cloud SQL instance is located. Note
2733
+ # that if the preferred location is not available, the instance will be located
2734
+ # as close as possible within the region. Only one location may be specified.
2578
2735
  # Corresponds to the JSON property `locationPreference`
2579
2736
  # @return [Google::Apis::SqladminV1beta4::LocationPreference]
2580
2737
  attr_accessor :location_preference
@@ -2585,14 +2742,14 @@ module Google
2585
2742
  # @return [Google::Apis::SqladminV1beta4::MaintenanceWindow]
2586
2743
  attr_accessor :maintenance_window
2587
2744
 
2588
- # The pricing plan for this instance. This can be either *PER_USE* or *PACKAGE*.
2589
- # Only *PER_USE* is supported for Second Generation instances.
2745
+ # The pricing plan for this instance. This can be either **PER_USE** or **
2746
+ # PACKAGE**. Only **PER_USE** is supported for Second Generation instances.
2590
2747
  # Corresponds to the JSON property `pricingPlan`
2591
2748
  # @return [String]
2592
2749
  attr_accessor :pricing_plan
2593
2750
 
2594
- # The type of replication this instance uses. This can be either *ASYNCHRONOUS*
2595
- # or *SYNCHRONOUS*. (Deprecated_ This property was only applicable to First
2751
+ # The type of replication this instance uses. This can be either **ASYNCHRONOUS**
2752
+ # or **SYNCHRONOUS**. (Deprecated) This property was only applicable to First
2596
2753
  # Generation instances.
2597
2754
  # Corresponds to the JSON property `replicationType`
2598
2755
  # @return [String]
@@ -2606,6 +2763,11 @@ module Google
2606
2763
  # @return [Fixnum]
2607
2764
  attr_accessor :settings_version
2608
2765
 
2766
+ # SQL Server specific audit configuration.
2767
+ # Corresponds to the JSON property `sqlServerAuditConfig`
2768
+ # @return [Google::Apis::SqladminV1beta4::SqlServerAuditConfig]
2769
+ attr_accessor :sql_server_audit_config
2770
+
2609
2771
  # Configuration to increase storage size automatically. The default value is
2610
2772
  # true.
2611
2773
  # Corresponds to the JSON property `storageAutoResize`
@@ -2619,7 +2781,7 @@ module Google
2619
2781
  # @return [Fixnum]
2620
2782
  attr_accessor :storage_auto_resize_limit
2621
2783
 
2622
- # The tier (or machine type) for this instance, for example *db-custom-1-3840* .
2784
+ # The tier (or machine type) for this instance, for example **db-custom-1-3840**.
2623
2785
  # Corresponds to the JSON property `tier`
2624
2786
  # @return [String]
2625
2787
  attr_accessor :tier
@@ -2656,6 +2818,7 @@ module Google
2656
2818
  @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
2657
2819
  @replication_type = args[:replication_type] if args.key?(:replication_type)
2658
2820
  @settings_version = args[:settings_version] if args.key?(:settings_version)
2821
+ @sql_server_audit_config = args[:sql_server_audit_config] if args.key?(:sql_server_audit_config)
2659
2822
  @storage_auto_resize = args[:storage_auto_resize] if args.key?(:storage_auto_resize)
2660
2823
  @storage_auto_resize_limit = args[:storage_auto_resize_limit] if args.key?(:storage_auto_resize_limit)
2661
2824
  @tier = args[:tier] if args.key?(:tier)
@@ -2697,7 +2860,7 @@ module Google
2697
2860
  # @return [String]
2698
2861
  attr_accessor :detail
2699
2862
 
2700
- # Can be *sql#externalSyncSettingError* or *sql#externalSyncSettingWarning*.
2863
+ # Can be **sql#externalSyncSettingError** or **sql#externalSyncSettingWarning**.
2701
2864
  # Corresponds to the JSON property `kind`
2702
2865
  # @return [String]
2703
2866
  attr_accessor :kind
@@ -2738,6 +2901,77 @@ module Google
2738
2901
  end
2739
2902
  end
2740
2903
 
2904
+ #
2905
+ class SqlInstancesStartExternalSyncRequest
2906
+ include Google::Apis::Core::Hashable
2907
+
2908
+ # MySQL-specific external server sync settings.
2909
+ # Corresponds to the JSON property `mysqlSyncConfig`
2910
+ # @return [Google::Apis::SqladminV1beta4::MySqlSyncConfig]
2911
+ attr_accessor :mysql_sync_config
2912
+
2913
+ # Whether to skip the verification step (VESS).
2914
+ # Corresponds to the JSON property `skipVerification`
2915
+ # @return [Boolean]
2916
+ attr_accessor :skip_verification
2917
+ alias_method :skip_verification?, :skip_verification
2918
+
2919
+ # External sync mode.
2920
+ # Corresponds to the JSON property `syncMode`
2921
+ # @return [String]
2922
+ attr_accessor :sync_mode
2923
+
2924
+ def initialize(**args)
2925
+ update!(**args)
2926
+ end
2927
+
2928
+ # Update properties of this object
2929
+ def update!(**args)
2930
+ @mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config)
2931
+ @skip_verification = args[:skip_verification] if args.key?(:skip_verification)
2932
+ @sync_mode = args[:sync_mode] if args.key?(:sync_mode)
2933
+ end
2934
+ end
2935
+
2936
+ #
2937
+ class SqlInstancesVerifyExternalSyncSettingsRequest
2938
+ include Google::Apis::Core::Hashable
2939
+
2940
+ # MySQL-specific external server sync settings.
2941
+ # Corresponds to the JSON property `mysqlSyncConfig`
2942
+ # @return [Google::Apis::SqladminV1beta4::MySqlSyncConfig]
2943
+ attr_accessor :mysql_sync_config
2944
+
2945
+ # External sync mode
2946
+ # Corresponds to the JSON property `syncMode`
2947
+ # @return [String]
2948
+ attr_accessor :sync_mode
2949
+
2950
+ # Flag to enable verifying connection only
2951
+ # Corresponds to the JSON property `verifyConnectionOnly`
2952
+ # @return [Boolean]
2953
+ attr_accessor :verify_connection_only
2954
+ alias_method :verify_connection_only?, :verify_connection_only
2955
+
2956
+ # Optional. Flag to verify settings required by replication setup only
2957
+ # Corresponds to the JSON property `verifyReplicationOnly`
2958
+ # @return [Boolean]
2959
+ attr_accessor :verify_replication_only
2960
+ alias_method :verify_replication_only?, :verify_replication_only
2961
+
2962
+ def initialize(**args)
2963
+ update!(**args)
2964
+ end
2965
+
2966
+ # Update properties of this object
2967
+ def update!(**args)
2968
+ @mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config)
2969
+ @sync_mode = args[:sync_mode] if args.key?(:sync_mode)
2970
+ @verify_connection_only = args[:verify_connection_only] if args.key?(:verify_connection_only)
2971
+ @verify_replication_only = args[:verify_replication_only] if args.key?(:verify_replication_only)
2972
+ end
2973
+ end
2974
+
2741
2975
  # Instance verify external sync settings response.
2742
2976
  class SqlInstancesVerifyExternalSyncSettingsResponse
2743
2977
  include Google::Apis::Core::Hashable
@@ -2747,7 +2981,7 @@ module Google
2747
2981
  # @return [Array<Google::Apis::SqladminV1beta4::SqlExternalSyncSettingError>]
2748
2982
  attr_accessor :errors
2749
2983
 
2750
- # This is always *sql#migrationSettingErrorList*.
2984
+ # This is always **sql#migrationSettingErrorList**.
2751
2985
  # Corresponds to the JSON property `kind`
2752
2986
  # @return [String]
2753
2987
  attr_accessor :kind
@@ -2774,14 +3008,15 @@ module Google
2774
3008
  include Google::Apis::Core::Hashable
2775
3009
 
2776
3010
  # The minimum recommended increase size in GigaBytes This field is consumed by
2777
- # the frontend Writers: -- the proactive database wellness job for OOD.
3011
+ # the frontend * Writers: * the proactive database wellness job for OOD. *
3012
+ # Readers:
2778
3013
  # Corresponds to the JSON property `sqlMinRecommendedIncreaseSizeGb`
2779
3014
  # @return [Fixnum]
2780
3015
  attr_accessor :sql_min_recommended_increase_size_gb
2781
3016
 
2782
3017
  # This field represents the state generated by the proactive database wellness
2783
- # job for OutOfDisk issues. Writers: -- the proactive database wellness job for
2784
- # OOD. Readers: -- the proactive database wellness job
3018
+ # job for OutOfDisk issues. * Writers: * the proactive database wellness job for
3019
+ # OOD. * Readers: * the proactive database wellness job
2785
3020
  # Corresponds to the JSON property `sqlOutOfDiskState`
2786
3021
  # @return [String]
2787
3022
  attr_accessor :sql_out_of_disk_state
@@ -2836,6 +3071,31 @@ module Google
2836
3071
  end
2837
3072
  end
2838
3073
 
3074
+ # SQL Server specific audit configuration.
3075
+ class SqlServerAuditConfig
3076
+ include Google::Apis::Core::Hashable
3077
+
3078
+ # The name of the destination bucket (e.g., gs://mybucket).
3079
+ # Corresponds to the JSON property `bucket`
3080
+ # @return [String]
3081
+ attr_accessor :bucket
3082
+
3083
+ # This is always sql#sqlServerAuditConfig
3084
+ # Corresponds to the JSON property `kind`
3085
+ # @return [String]
3086
+ attr_accessor :kind
3087
+
3088
+ def initialize(**args)
3089
+ update!(**args)
3090
+ end
3091
+
3092
+ # Update properties of this object
3093
+ def update!(**args)
3094
+ @bucket = args[:bucket] if args.key?(:bucket)
3095
+ @kind = args[:kind] if args.key?(:kind)
3096
+ end
3097
+ end
3098
+
2839
3099
  # Represents a Sql Server database on the Cloud SQL instance.
2840
3100
  class SqlServerDatabaseDetails
2841
3101
  include Google::Apis::Core::Hashable
@@ -2906,14 +3166,14 @@ module Google
2906
3166
  # @return [String]
2907
3167
  attr_accessor :common_name
2908
3168
 
2909
- # The time when the certificate was created in RFC 3339 format, for example *
2910
- # 2012-11-15T16:19:00.094Z*
3169
+ # The time when the certificate was created in [RFC 3339](https://tools.ietf.org/
3170
+ # html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
2911
3171
  # Corresponds to the JSON property `createTime`
2912
3172
  # @return [String]
2913
3173
  attr_accessor :create_time
2914
3174
 
2915
- # The time when the certificate expires in RFC 3339 format, for example *2012-11-
2916
- # 15T16:19:00.094Z*.
3175
+ # The time when the certificate expires in [RFC 3339](https://tools.ietf.org/
3176
+ # html/rfc3339) format, for example **2012-11-15T16:19:00.094Z**.
2917
3177
  # Corresponds to the JSON property `expirationTime`
2918
3178
  # @return [String]
2919
3179
  attr_accessor :expiration_time
@@ -2923,7 +3183,7 @@ module Google
2923
3183
  # @return [String]
2924
3184
  attr_accessor :instance
2925
3185
 
2926
- # This is always *sql#sslCert*.
3186
+ # This is always **sql#sslCert**.
2927
3187
  # Corresponds to the JSON property `kind`
2928
3188
  # @return [String]
2929
3189
  attr_accessor :kind
@@ -3036,7 +3296,7 @@ module Google
3036
3296
  # @return [Google::Apis::SqladminV1beta4::SslCertDetail]
3037
3297
  attr_accessor :client_cert
3038
3298
 
3039
- # This is always *sql#sslCertsInsert*.
3299
+ # This is always **sql#sslCertsInsert**.
3040
3300
  # Corresponds to the JSON property `kind`
3041
3301
  # @return [String]
3042
3302
  attr_accessor :kind
@@ -3075,7 +3335,7 @@ module Google
3075
3335
  # @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
3076
3336
  attr_accessor :items
3077
3337
 
3078
- # This is always *sql#sslCertsList*.
3338
+ # This is always **sql#sslCertsList**.
3079
3339
  # Corresponds to the JSON property `kind`
3080
3340
  # @return [String]
3081
3341
  attr_accessor :kind
@@ -3091,6 +3351,33 @@ module Google
3091
3351
  end
3092
3352
  end
3093
3353
 
3354
+ # Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL
3355
+ # external server initial dump.
3356
+ class SyncFlags
3357
+ include Google::Apis::Core::Hashable
3358
+
3359
+ # The name of the flag.
3360
+ # Corresponds to the JSON property `name`
3361
+ # @return [String]
3362
+ attr_accessor :name
3363
+
3364
+ # The value of the flag. This field must be omitted if the flag doesn't take a
3365
+ # value.
3366
+ # Corresponds to the JSON property `value`
3367
+ # @return [String]
3368
+ attr_accessor :value
3369
+
3370
+ def initialize(**args)
3371
+ update!(**args)
3372
+ end
3373
+
3374
+ # Update properties of this object
3375
+ def update!(**args)
3376
+ @name = args[:name] if args.key?(:name)
3377
+ @value = args[:value] if args.key?(:value)
3378
+ end
3379
+ end
3380
+
3094
3381
  # A Google Cloud SQL service tier resource.
3095
3382
  class Tier
3096
3383
  include Google::Apis::Core::Hashable
@@ -3164,13 +3451,13 @@ module Google
3164
3451
  class TruncateLogContext
3165
3452
  include Google::Apis::Core::Hashable
3166
3453
 
3167
- # This is always *sql#truncateLogContext*.
3454
+ # This is always **sql#truncateLogContext**.
3168
3455
  # Corresponds to the JSON property `kind`
3169
3456
  # @return [String]
3170
3457
  attr_accessor :kind
3171
3458
 
3172
- # The type of log to truncate. Valid values are *MYSQL_GENERAL_TABLE* and *
3173
- # MYSQL_SLOW_TABLE*.
3459
+ # The type of log to truncate. Valid values are **MYSQL_GENERAL_TABLE** and **
3460
+ # MYSQL_SLOW_TABLE**.
3174
3461
  # Corresponds to the JSON property `logType`
3175
3462
  # @return [String]
3176
3463
  attr_accessor :log_type