google-apis-sqladmin_v1beta4 0.12.0 → 0.16.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 93c54839ae826e579172a4c6e46b4723961905461049869564cc87143af27af1
4
- data.tar.gz: 8e3ff858bd70cf10949566f610cd7a548a651c49c79e196438595f5a42badb87
3
+ metadata.gz: 8d586a8ac43eaeb7c7ee21458437c838a4c6898310437c55bbe094f837b13652
4
+ data.tar.gz: 8b0dfbb51b19f740bb9262e2a99b79d9dea8224c91df22dd528efc32262264fe
5
5
  SHA512:
6
- metadata.gz: 1be940b57e8a39c980d98fa011b7a647764dbc799e2956d0d1f744cd36f4451775ae064890e283f8c9ff3e64643d1daef609366ee8206482a4513f55f6e5b841
7
- data.tar.gz: cce5d703c8dad7782253bc797d7d597e24ea2f8c2d6bf965a1294f485e720ab180ab314625387e159b692ac7b8d9a5d98ed85675e87ff1212d34f14c486fd406
6
+ metadata.gz: 9e334b2d70f770caf83a0a891f83a0bda4134a538f13fd11a9ce87d22a5af5d50dd79d3b2ba7df6ca6b5acb2a65c38171e53c05ce1d65e22282db27dc7bad0a1
7
+ data.tar.gz: 6ecc252e56c37aef7395dffe58e30da30911b83bacbbebab47347e2a34cc7427ff2666474858bc2210b1321aae9952a503ee32d5adc6113cb187a50f79a6d504
data/CHANGELOG.md CHANGED
@@ -1,5 +1,21 @@
1
1
  # Release history for google-apis-sqladmin_v1beta4
2
2
 
3
+ ### v0.16.0 (2021-09-10)
4
+
5
+ * Regenerated from discovery document revision 20210902
6
+
7
+ ### v0.15.0 (2021-09-01)
8
+
9
+ * Regenerated from discovery document revision 20210816
10
+
11
+ ### v0.14.0 (2021-07-29)
12
+
13
+ * Regenerated from discovery document revision 20210715
14
+
15
+ ### v0.13.0 (2021-07-14)
16
+
17
+ * Regenerated from discovery document revision 20210627
18
+
3
19
  ### v0.12.0 (2021-06-29)
4
20
 
5
21
  * Regenerated using generator version 0.4.0
@@ -124,7 +124,7 @@ module Google
124
124
  # @return [String]
125
125
  attr_accessor :location
126
126
 
127
- # Reserved for future use.
127
+ # (Postgres only) Whether point in time recovery is enabled.
128
128
  # Corresponds to the JSON property `pointInTimeRecoveryEnabled`
129
129
  # @return [Boolean]
130
130
  attr_accessor :point_in_time_recovery_enabled
@@ -421,7 +421,8 @@ module Google
421
421
  # @return [Fixnum]
422
422
  attr_accessor :pitr_timestamp_ms
423
423
 
424
- # Reserved for future use.
424
+ # Timestamp, if specified, identifies the time to which the source instance is
425
+ # cloned.
425
426
  # Corresponds to the JSON property `pointInTime`
426
427
  # @return [String]
427
428
  attr_accessor :point_in_time
@@ -440,6 +441,63 @@ module Google
440
441
  end
441
442
  end
442
443
 
444
+ # Connect settings retrieval response.
445
+ class ConnectSettings
446
+ include Google::Apis::Core::Hashable
447
+
448
+ # **SECOND_GEN**: Cloud SQL database instance. **EXTERNAL**: A database server
449
+ # that is not managed by Google. This property is read-only; use the **tier**
450
+ # property in the **settings** object to determine the database type.
451
+ # Corresponds to the JSON property `backendType`
452
+ # @return [String]
453
+ attr_accessor :backend_type
454
+
455
+ # The database engine type and version. The **databaseVersion** field cannot be
456
+ # changed after instance creation. MySQL instances: **MYSQL_8_0**, **MYSQL_5_7**
457
+ # (default), or **MYSQL_5_6**. PostgreSQL instances: **POSTGRES_9_6**, **
458
+ # POSTGRES_10**, **POSTGRES_11** or **POSTGRES_12** (default). SQL Server
459
+ # instances: **SQLSERVER_2017_STANDARD** (default), **SQLSERVER_2017_ENTERPRISE**
460
+ # , **SQLSERVER_2017_EXPRESS**, or **SQLSERVER_2017_WEB**.
461
+ # Corresponds to the JSON property `databaseVersion`
462
+ # @return [String]
463
+ attr_accessor :database_version
464
+
465
+ # The assigned IP addresses for the instance.
466
+ # Corresponds to the JSON property `ipAddresses`
467
+ # @return [Array<Google::Apis::SqladminV1beta4::IpMapping>]
468
+ attr_accessor :ip_addresses
469
+
470
+ # This is always `sql#connectSettings`.
471
+ # Corresponds to the JSON property `kind`
472
+ # @return [String]
473
+ attr_accessor :kind
474
+
475
+ # The cloud region for the instance. e.g. **us-central1**, **europe-west1**. The
476
+ # region cannot be changed after instance creation.
477
+ # Corresponds to the JSON property `region`
478
+ # @return [String]
479
+ attr_accessor :region
480
+
481
+ # SslCerts Resource
482
+ # Corresponds to the JSON property `serverCaCert`
483
+ # @return [Google::Apis::SqladminV1beta4::SslCert]
484
+ attr_accessor :server_ca_cert
485
+
486
+ def initialize(**args)
487
+ update!(**args)
488
+ end
489
+
490
+ # Update properties of this object
491
+ def update!(**args)
492
+ @backend_type = args[:backend_type] if args.key?(:backend_type)
493
+ @database_version = args[:database_version] if args.key?(:database_version)
494
+ @ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
495
+ @kind = args[:kind] if args.key?(:kind)
496
+ @region = args[:region] if args.key?(:region)
497
+ @server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert)
498
+ end
499
+ end
500
+
443
501
  # Represents a SQL database on the Cloud SQL instance.
444
502
  class Database
445
503
  include Google::Apis::Core::Hashable
@@ -514,9 +572,9 @@ module Google
514
572
  include Google::Apis::Core::Hashable
515
573
 
516
574
  # The name of the flag. These flags are passed at instance startup, so include
517
- # both server options and system variables for MySQL. Flags are specified with
518
- # underscores, not hyphens. For more information, see Configuring Database Flags
519
- # in the Cloud SQL documentation.
575
+ # both server options and system variables. Flags are specified with underscores,
576
+ # not hyphens. For more information, see Configuring Database Flags in the
577
+ # Cloud SQL documentation.
520
578
  # Corresponds to the JSON property `name`
521
579
  # @return [String]
522
580
  attr_accessor :name
@@ -554,6 +612,12 @@ module Google
554
612
  # @return [String]
555
613
  attr_accessor :connection_name
556
614
 
615
+ # Output only. The time when the instance was created in RFC 3339 format (https:/
616
+ # /tools.ietf.org/html/rfc3339), for example 2012-11-15T16:19:00.094Z
617
+ # Corresponds to the JSON property `createTime`
618
+ # @return [String]
619
+ attr_accessor :create_time
620
+
557
621
  # The current disk usage of the instance in bytes. This property has been
558
622
  # deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric
559
623
  # in Cloud Monitoring API instead. Please see this announcement for details.
@@ -564,9 +628,10 @@ module Google
564
628
  # The database engine type and version. The *databaseVersion* field cannot be
565
629
  # changed after instance creation. MySQL instances: *MYSQL_8_0*, *MYSQL_5_7* (
566
630
  # default), or *MYSQL_5_6*. PostgreSQL instances: *POSTGRES_9_6*, *POSTGRES_10*,
567
- # *POSTGRES_11*, *POSTGRES_12*, or *POSTGRES_13* (default). SQL Server instances:
568
- # *SQLSERVER_2017_STANDARD* (default), *SQLSERVER_2017_ENTERPRISE*, *
569
- # SQLSERVER_2017_EXPRESS*, or *SQLSERVER_2017_WEB*.
631
+ # *POSTGRES_11*, *POSTGRES_12*, *POSTGRES_13* (default). SQL Server instances: *
632
+ # SQLSERVER_2019_STANDARD*, *SQLSERVER_2019_ENTERPRISE*, *SQLSERVER_2019_EXPRESS*
633
+ # , or *SQLSERVER_2019_WEB*, *SQLSERVER_2017_STANDARD* (default), *
634
+ # SQLSERVER_2017_ENTERPRISE*, *SQLSERVER_2017_EXPRESS*, or *SQLSERVER_2017_WEB*.
570
635
  # Corresponds to the JSON property `databaseVersion`
571
636
  # @return [String]
572
637
  attr_accessor :database_version
@@ -587,8 +652,7 @@ module Google
587
652
  # @return [String]
588
653
  attr_accessor :etag
589
654
 
590
- # The name and status of the failover replica. This property is applicable only
591
- # to Second Generation instances.
655
+ # The name and status of the failover replica.
592
656
  # Corresponds to the JSON property `failoverReplica`
593
657
  # @return [Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica]
594
658
  attr_accessor :failover_replica
@@ -742,6 +806,7 @@ module Google
742
806
  def update!(**args)
743
807
  @backend_type = args[:backend_type] if args.key?(:backend_type)
744
808
  @connection_name = args[:connection_name] if args.key?(:connection_name)
809
+ @create_time = args[:create_time] if args.key?(:create_time)
745
810
  @current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
746
811
  @database_version = args[:database_version] if args.key?(:database_version)
747
812
  @disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
@@ -774,8 +839,7 @@ module Google
774
839
  @suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
775
840
  end
776
841
 
777
- # The name and status of the failover replica. This property is applicable only
778
- # to Second Generation instances.
842
+ # The name and status of the failover replica.
779
843
  class FailoverReplica
780
844
  include Google::Apis::Core::Hashable
781
845
 
@@ -789,7 +853,7 @@ module Google
789
853
 
790
854
  # The name of the failover replica. If specified at instance creation, a
791
855
  # failover replica is created for the instance. The name doesn't include the
792
- # project ID. This property is applicable only to Second Generation instances.
856
+ # project ID.
793
857
  # Corresponds to the JSON property `name`
794
858
  # @return [String]
795
859
  attr_accessor :name
@@ -876,13 +940,18 @@ module Google
876
940
  # @return [Google::Apis::SqladminV1beta4::DemoteMasterConfiguration]
877
941
  attr_accessor :replica_configuration
878
942
 
879
- # Verify GTID consistency for demote operation. Default value: *True*. Second
880
- # Generation instances only. Setting this flag to false enables you to bypass
881
- # GTID consistency check between on-premises primary instance and Cloud SQL
882
- # instance during the demotion operation but also exposes you to the risk of
883
- # future replication failures. Change the value only if you know the reason for
884
- # the GTID divergence and are confident that doing so will not cause any
885
- # replication issues.
943
+ # Flag to skip replication setup on the instance.
944
+ # Corresponds to the JSON property `skipReplicationSetup`
945
+ # @return [Boolean]
946
+ attr_accessor :skip_replication_setup
947
+ alias_method :skip_replication_setup?, :skip_replication_setup
948
+
949
+ # Verify GTID consistency for demote operation. Default value: *True*. Setting
950
+ # this flag to false enables you to bypass GTID consistency check between on-
951
+ # premises primary instance and Cloud SQL instance during the demotion operation
952
+ # but also exposes you to the risk of future replication failures. Change the
953
+ # value only if you know the reason for the GTID divergence and are confident
954
+ # that doing so will not cause any replication issues.
886
955
  # Corresponds to the JSON property `verifyGtidConsistency`
887
956
  # @return [Boolean]
888
957
  attr_accessor :verify_gtid_consistency
@@ -897,6 +966,7 @@ module Google
897
966
  @kind = args[:kind] if args.key?(:kind)
898
967
  @master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name)
899
968
  @replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration)
969
+ @skip_replication_setup = args[:skip_replication_setup] if args.key?(:skip_replication_setup)
900
970
  @verify_gtid_consistency = args[:verify_gtid_consistency] if args.key?(:verify_gtid_consistency)
901
971
  end
902
972
  end
@@ -1113,6 +1183,29 @@ module Google
1113
1183
  class CsvExportOptions
1114
1184
  include Google::Apis::Core::Hashable
1115
1185
 
1186
+ # Specifies the character that should appear before a data character that needs
1187
+ # to be escaped.
1188
+ # Corresponds to the JSON property `escapeCharacter`
1189
+ # @return [String]
1190
+ attr_accessor :escape_character
1191
+
1192
+ # Specifies the character that separates columns within each row (line) of the
1193
+ # file.
1194
+ # Corresponds to the JSON property `fieldsTerminatedBy`
1195
+ # @return [String]
1196
+ attr_accessor :fields_terminated_by
1197
+
1198
+ # This is used to separate lines. If a line does not contain all fields, the
1199
+ # rest of the columns are set to their default values.
1200
+ # Corresponds to the JSON property `linesTerminatedBy`
1201
+ # @return [String]
1202
+ attr_accessor :lines_terminated_by
1203
+
1204
+ # Specifies the quoting character to be used when a data value is quoted.
1205
+ # Corresponds to the JSON property `quoteCharacter`
1206
+ # @return [String]
1207
+ attr_accessor :quote_character
1208
+
1116
1209
  # The select query used to extract the data.
1117
1210
  # Corresponds to the JSON property `selectQuery`
1118
1211
  # @return [String]
@@ -1124,6 +1217,10 @@ module Google
1124
1217
 
1125
1218
  # Update properties of this object
1126
1219
  def update!(**args)
1220
+ @escape_character = args[:escape_character] if args.key?(:escape_character)
1221
+ @fields_terminated_by = args[:fields_terminated_by] if args.key?(:fields_terminated_by)
1222
+ @lines_terminated_by = args[:lines_terminated_by] if args.key?(:lines_terminated_by)
1223
+ @quote_character = args[:quote_character] if args.key?(:quote_character)
1127
1224
  @select_query = args[:select_query] if args.key?(:select_query)
1128
1225
  end
1129
1226
  end
@@ -1260,8 +1357,7 @@ module Google
1260
1357
  # @return [String]
1261
1358
  attr_accessor :name
1262
1359
 
1263
- # Indicates whether changing this flag will trigger a database restart. Only
1264
- # applicable to Second Generation instances.
1360
+ # Indicates whether changing this flag will trigger a database restart.
1265
1361
  # Corresponds to the JSON property `requiresRestart`
1266
1362
  # @return [Boolean]
1267
1363
  attr_accessor :requires_restart
@@ -1318,6 +1414,56 @@ module Google
1318
1414
  end
1319
1415
  end
1320
1416
 
1417
+ # Ephemeral certificate creation request.
1418
+ class GenerateEphemeralCertRequest
1419
+ include Google::Apis::Core::Hashable
1420
+
1421
+ # Optional. Access token to include in the signed certificate.
1422
+ # Corresponds to the JSON property `access_token`
1423
+ # @return [String]
1424
+ attr_accessor :access_token
1425
+
1426
+ # PEM encoded public key to include in the signed certificate.
1427
+ # Corresponds to the JSON property `public_key`
1428
+ # @return [String]
1429
+ attr_accessor :public_key
1430
+
1431
+ # Optional. Optional snapshot read timestamp to trade freshness for performance.
1432
+ # Corresponds to the JSON property `readTime`
1433
+ # @return [String]
1434
+ attr_accessor :read_time
1435
+
1436
+ def initialize(**args)
1437
+ update!(**args)
1438
+ end
1439
+
1440
+ # Update properties of this object
1441
+ def update!(**args)
1442
+ @access_token = args[:access_token] if args.key?(:access_token)
1443
+ @public_key = args[:public_key] if args.key?(:public_key)
1444
+ @read_time = args[:read_time] if args.key?(:read_time)
1445
+ end
1446
+ end
1447
+
1448
+ # Ephemeral certificate creation request.
1449
+ class GenerateEphemeralCertResponse
1450
+ include Google::Apis::Core::Hashable
1451
+
1452
+ # SslCerts Resource
1453
+ # Corresponds to the JSON property `ephemeralCert`
1454
+ # @return [Google::Apis::SqladminV1beta4::SslCert]
1455
+ attr_accessor :ephemeral_cert
1456
+
1457
+ def initialize(**args)
1458
+ update!(**args)
1459
+ end
1460
+
1461
+ # Update properties of this object
1462
+ def update!(**args)
1463
+ @ephemeral_cert = args[:ephemeral_cert] if args.key?(:ephemeral_cert)
1464
+ end
1465
+ end
1466
+
1321
1467
  # Database instance import context.
1322
1468
  class ImportContext
1323
1469
  include Google::Apis::Core::Hashable
@@ -1443,6 +1589,29 @@ module Google
1443
1589
  # @return [Array<String>]
1444
1590
  attr_accessor :columns
1445
1591
 
1592
+ # Specifies the character that should appear before a data character that needs
1593
+ # to be escaped.
1594
+ # Corresponds to the JSON property `escapeCharacter`
1595
+ # @return [String]
1596
+ attr_accessor :escape_character
1597
+
1598
+ # Specifies the character that separates columns within each row (line) of the
1599
+ # file.
1600
+ # Corresponds to the JSON property `fieldsTerminatedBy`
1601
+ # @return [String]
1602
+ attr_accessor :fields_terminated_by
1603
+
1604
+ # This is used to separate lines. If a line does not contain all fields, the
1605
+ # rest of the columns are set to their default values.
1606
+ # Corresponds to the JSON property `linesTerminatedBy`
1607
+ # @return [String]
1608
+ attr_accessor :lines_terminated_by
1609
+
1610
+ # Specifies the quoting character to be used when a data value is quoted.
1611
+ # Corresponds to the JSON property `quoteCharacter`
1612
+ # @return [String]
1613
+ attr_accessor :quote_character
1614
+
1446
1615
  # The table to which CSV data is imported.
1447
1616
  # Corresponds to the JSON property `table`
1448
1617
  # @return [String]
@@ -1455,6 +1624,10 @@ module Google
1455
1624
  # Update properties of this object
1456
1625
  def update!(**args)
1457
1626
  @columns = args[:columns] if args.key?(:columns)
1627
+ @escape_character = args[:escape_character] if args.key?(:escape_character)
1628
+ @fields_terminated_by = args[:fields_terminated_by] if args.key?(:fields_terminated_by)
1629
+ @lines_terminated_by = args[:lines_terminated_by] if args.key?(:lines_terminated_by)
1630
+ @quote_character = args[:quote_character] if args.key?(:quote_character)
1458
1631
  @table = args[:table] if args.key?(:table)
1459
1632
  end
1460
1633
  end
@@ -1471,8 +1644,8 @@ module Google
1471
1644
  attr_accessor :query_insights_enabled
1472
1645
  alias_method :query_insights_enabled?, :query_insights_enabled
1473
1646
 
1474
- # Number of query plans generated by Insights per minute. Default is 5. Changing
1475
- # this will restart the database.
1647
+ # Number of query execution plans captured by Insights per minute for all
1648
+ # queries combined. Default is 5.
1476
1649
  # Corresponds to the JSON property `queryPlansPerMinute`
1477
1650
  # @return [Fixnum]
1478
1651
  attr_accessor :query_plans_per_minute
@@ -1511,6 +1684,39 @@ module Google
1511
1684
  end
1512
1685
  end
1513
1686
 
1687
+ # Reference to another Cloud SQL instance.
1688
+ class InstanceReference
1689
+ include Google::Apis::Core::Hashable
1690
+
1691
+ # The name of the Cloud SQL instance being referenced. This does not include the
1692
+ # project ID.
1693
+ # Corresponds to the JSON property `name`
1694
+ # @return [String]
1695
+ attr_accessor :name
1696
+
1697
+ # The project ID of the Cloud SQL instance being referenced. The default is the
1698
+ # same project ID as the instance references it.
1699
+ # Corresponds to the JSON property `project`
1700
+ # @return [String]
1701
+ attr_accessor :project
1702
+
1703
+ # The region of the Cloud SQL instance being referenced.
1704
+ # Corresponds to the JSON property `region`
1705
+ # @return [String]
1706
+ attr_accessor :region
1707
+
1708
+ def initialize(**args)
1709
+ update!(**args)
1710
+ end
1711
+
1712
+ # Update properties of this object
1713
+ def update!(**args)
1714
+ @name = args[:name] if args.key?(:name)
1715
+ @project = args[:project] if args.key?(:project)
1716
+ @region = args[:region] if args.key?(:region)
1717
+ end
1718
+ end
1719
+
1514
1720
  # Database instance clone request.
1515
1721
  class CloneInstancesRequest
1516
1722
  include Google::Apis::Core::Hashable
@@ -1737,6 +1943,16 @@ module Google
1737
1943
  class IpConfiguration
1738
1944
  include Google::Apis::Core::Hashable
1739
1945
 
1946
+ # The name of the allocated ip range for the private ip CloudSQL instance. For
1947
+ # example: "google-managed-services-default". If set, the instance ip will be
1948
+ # created in the allocated range. The range name must comply with [RFC 1035](
1949
+ # https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63
1950
+ # characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
1951
+ # Reserved for future use.
1952
+ # Corresponds to the JSON property `allocatedIpRange`
1953
+ # @return [String]
1954
+ attr_accessor :allocated_ip_range
1955
+
1740
1956
  # The list of external networks that are allowed to connect to the instance
1741
1957
  # using the IP. In 'CIDR' notation, also known as 'slash' notation (for example:
1742
1958
  # *192.168.100.0/24*).
@@ -1770,6 +1986,7 @@ module Google
1770
1986
 
1771
1987
  # Update properties of this object
1772
1988
  def update!(**args)
1989
+ @allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range)
1773
1990
  @authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
1774
1991
  @ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled)
1775
1992
  @private_network = args[:private_network] if args.key?(:private_network)
@@ -1981,6 +2198,25 @@ module Google
1981
2198
  end
1982
2199
  end
1983
2200
 
2201
+ # MySQL-specific external server sync settings.
2202
+ class MySqlSyncConfig
2203
+ include Google::Apis::Core::Hashable
2204
+
2205
+ # Flags to use for the initial dump.
2206
+ # Corresponds to the JSON property `initialSyncFlags`
2207
+ # @return [Array<Google::Apis::SqladminV1beta4::SyncFlags>]
2208
+ attr_accessor :initial_sync_flags
2209
+
2210
+ def initialize(**args)
2211
+ update!(**args)
2212
+ end
2213
+
2214
+ # Update properties of this object
2215
+ def update!(**args)
2216
+ @initial_sync_flags = args[:initial_sync_flags] if args.key?(:initial_sync_flags)
2217
+ end
2218
+ end
2219
+
1984
2220
  # On-premises instance configuration.
1985
2221
  class OnPremisesConfiguration
1986
2222
  include Google::Apis::Core::Hashable
@@ -2021,6 +2257,11 @@ module Google
2021
2257
  # @return [String]
2022
2258
  attr_accessor :password
2023
2259
 
2260
+ # Reference to another Cloud SQL instance.
2261
+ # Corresponds to the JSON property `sourceInstance`
2262
+ # @return [Google::Apis::SqladminV1beta4::InstanceReference]
2263
+ attr_accessor :source_instance
2264
+
2024
2265
  # The username for connecting to on-premises instance.
2025
2266
  # Corresponds to the JSON property `username`
2026
2267
  # @return [String]
@@ -2039,6 +2280,7 @@ module Google
2039
2280
  @host_port = args[:host_port] if args.key?(:host_port)
2040
2281
  @kind = args[:kind] if args.key?(:kind)
2041
2282
  @password = args[:password] if args.key?(:password)
2283
+ @source_instance = args[:source_instance] if args.key?(:source_instance)
2042
2284
  @username = args[:username] if args.key?(:username)
2043
2285
  end
2044
2286
  end
@@ -2508,6 +2750,11 @@ module Google
2508
2750
  # @return [Fixnum]
2509
2751
  attr_accessor :settings_version
2510
2752
 
2753
+ # SQL Server specific audit configuration.
2754
+ # Corresponds to the JSON property `sqlServerAuditConfig`
2755
+ # @return [Google::Apis::SqladminV1beta4::SqlServerAuditConfig]
2756
+ attr_accessor :sql_server_audit_config
2757
+
2511
2758
  # Configuration to increase storage size automatically. The default value is
2512
2759
  # true.
2513
2760
  # Corresponds to the JSON property `storageAutoResize`
@@ -2558,6 +2805,7 @@ module Google
2558
2805
  @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
2559
2806
  @replication_type = args[:replication_type] if args.key?(:replication_type)
2560
2807
  @settings_version = args[:settings_version] if args.key?(:settings_version)
2808
+ @sql_server_audit_config = args[:sql_server_audit_config] if args.key?(:sql_server_audit_config)
2561
2809
  @storage_auto_resize = args[:storage_auto_resize] if args.key?(:storage_auto_resize)
2562
2810
  @storage_auto_resize_limit = args[:storage_auto_resize_limit] if args.key?(:storage_auto_resize_limit)
2563
2811
  @tier = args[:tier] if args.key?(:tier)
@@ -2640,6 +2888,77 @@ module Google
2640
2888
  end
2641
2889
  end
2642
2890
 
2891
+ #
2892
+ class SqlInstancesStartExternalSyncRequest
2893
+ include Google::Apis::Core::Hashable
2894
+
2895
+ # MySQL-specific external server sync settings.
2896
+ # Corresponds to the JSON property `mysqlSyncConfig`
2897
+ # @return [Google::Apis::SqladminV1beta4::MySqlSyncConfig]
2898
+ attr_accessor :mysql_sync_config
2899
+
2900
+ # Whether to skip the verification step (VESS).
2901
+ # Corresponds to the JSON property `skipVerification`
2902
+ # @return [Boolean]
2903
+ attr_accessor :skip_verification
2904
+ alias_method :skip_verification?, :skip_verification
2905
+
2906
+ # External sync mode.
2907
+ # Corresponds to the JSON property `syncMode`
2908
+ # @return [String]
2909
+ attr_accessor :sync_mode
2910
+
2911
+ def initialize(**args)
2912
+ update!(**args)
2913
+ end
2914
+
2915
+ # Update properties of this object
2916
+ def update!(**args)
2917
+ @mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config)
2918
+ @skip_verification = args[:skip_verification] if args.key?(:skip_verification)
2919
+ @sync_mode = args[:sync_mode] if args.key?(:sync_mode)
2920
+ end
2921
+ end
2922
+
2923
+ #
2924
+ class SqlInstancesVerifyExternalSyncSettingsRequest
2925
+ include Google::Apis::Core::Hashable
2926
+
2927
+ # MySQL-specific external server sync settings.
2928
+ # Corresponds to the JSON property `mysqlSyncConfig`
2929
+ # @return [Google::Apis::SqladminV1beta4::MySqlSyncConfig]
2930
+ attr_accessor :mysql_sync_config
2931
+
2932
+ # External sync mode
2933
+ # Corresponds to the JSON property `syncMode`
2934
+ # @return [String]
2935
+ attr_accessor :sync_mode
2936
+
2937
+ # Flag to enable verifying connection only
2938
+ # Corresponds to the JSON property `verifyConnectionOnly`
2939
+ # @return [Boolean]
2940
+ attr_accessor :verify_connection_only
2941
+ alias_method :verify_connection_only?, :verify_connection_only
2942
+
2943
+ # Optional. Flag to verify settings required by replication setup only
2944
+ # Corresponds to the JSON property `verifyReplicationOnly`
2945
+ # @return [Boolean]
2946
+ attr_accessor :verify_replication_only
2947
+ alias_method :verify_replication_only?, :verify_replication_only
2948
+
2949
+ def initialize(**args)
2950
+ update!(**args)
2951
+ end
2952
+
2953
+ # Update properties of this object
2954
+ def update!(**args)
2955
+ @mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config)
2956
+ @sync_mode = args[:sync_mode] if args.key?(:sync_mode)
2957
+ @verify_connection_only = args[:verify_connection_only] if args.key?(:verify_connection_only)
2958
+ @verify_replication_only = args[:verify_replication_only] if args.key?(:verify_replication_only)
2959
+ end
2960
+ end
2961
+
2643
2962
  # Instance verify external sync settings response.
2644
2963
  class SqlInstancesVerifyExternalSyncSettingsResponse
2645
2964
  include Google::Apis::Core::Hashable
@@ -2715,6 +3034,11 @@ module Google
2715
3034
  attr_accessor :can_reschedule
2716
3035
  alias_method :can_reschedule?, :can_reschedule
2717
3036
 
3037
+ # Maintenance cannot be rescheduled to start beyond this deadline.
3038
+ # Corresponds to the JSON property `scheduleDeadlineTime`
3039
+ # @return [String]
3040
+ attr_accessor :schedule_deadline_time
3041
+
2718
3042
  # The start time of any upcoming scheduled maintenance for this instance.
2719
3043
  # Corresponds to the JSON property `startTime`
2720
3044
  # @return [String]
@@ -2728,10 +3052,36 @@ module Google
2728
3052
  def update!(**args)
2729
3053
  @can_defer = args[:can_defer] if args.key?(:can_defer)
2730
3054
  @can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
3055
+ @schedule_deadline_time = args[:schedule_deadline_time] if args.key?(:schedule_deadline_time)
2731
3056
  @start_time = args[:start_time] if args.key?(:start_time)
2732
3057
  end
2733
3058
  end
2734
3059
 
3060
+ # SQL Server specific audit configuration.
3061
+ class SqlServerAuditConfig
3062
+ include Google::Apis::Core::Hashable
3063
+
3064
+ # The name of the destination bucket (e.g., gs://mybucket).
3065
+ # Corresponds to the JSON property `bucket`
3066
+ # @return [String]
3067
+ attr_accessor :bucket
3068
+
3069
+ # This is always sql#sqlServerAuditConfig
3070
+ # Corresponds to the JSON property `kind`
3071
+ # @return [String]
3072
+ attr_accessor :kind
3073
+
3074
+ def initialize(**args)
3075
+ update!(**args)
3076
+ end
3077
+
3078
+ # Update properties of this object
3079
+ def update!(**args)
3080
+ @bucket = args[:bucket] if args.key?(:bucket)
3081
+ @kind = args[:kind] if args.key?(:kind)
3082
+ end
3083
+ end
3084
+
2735
3085
  # Represents a Sql Server database on the Cloud SQL instance.
2736
3086
  class SqlServerDatabaseDetails
2737
3087
  include Google::Apis::Core::Hashable
@@ -2987,6 +3337,33 @@ module Google
2987
3337
  end
2988
3338
  end
2989
3339
 
3340
+ # Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL
3341
+ # external server initial dump.
3342
+ class SyncFlags
3343
+ include Google::Apis::Core::Hashable
3344
+
3345
+ # The name of the flag.
3346
+ # Corresponds to the JSON property `name`
3347
+ # @return [String]
3348
+ attr_accessor :name
3349
+
3350
+ # The value of the flag. This field must be omitted if the flag doesn't take a
3351
+ # value.
3352
+ # Corresponds to the JSON property `value`
3353
+ # @return [String]
3354
+ attr_accessor :value
3355
+
3356
+ def initialize(**args)
3357
+ update!(**args)
3358
+ end
3359
+
3360
+ # Update properties of this object
3361
+ def update!(**args)
3362
+ @name = args[:name] if args.key?(:name)
3363
+ @value = args[:value] if args.key?(:value)
3364
+ end
3365
+ end
3366
+
2990
3367
  # A Google Cloud SQL service tier resource.
2991
3368
  class Tier
2992
3369
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SqladminV1beta4
18
18
  # Version of the google-apis-sqladmin_v1beta4 gem
19
- GEM_VERSION = "0.12.0"
19
+ GEM_VERSION = "0.16.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.4.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20210608"
25
+ REVISION = "20210902"
26
26
  end
27
27
  end
28
28
  end
@@ -76,6 +76,12 @@ module Google
76
76
  include Google::Apis::Core::JsonObjectSupport
77
77
  end
78
78
 
79
+ class ConnectSettings
80
+ class Representation < Google::Apis::Core::JsonRepresentation; end
81
+
82
+ include Google::Apis::Core::JsonObjectSupport
83
+ end
84
+
79
85
  class Database
80
86
  class Representation < Google::Apis::Core::JsonRepresentation; end
81
87
 
@@ -184,6 +190,18 @@ module Google
184
190
  include Google::Apis::Core::JsonObjectSupport
185
191
  end
186
192
 
193
+ class GenerateEphemeralCertRequest
194
+ class Representation < Google::Apis::Core::JsonRepresentation; end
195
+
196
+ include Google::Apis::Core::JsonObjectSupport
197
+ end
198
+
199
+ class GenerateEphemeralCertResponse
200
+ class Representation < Google::Apis::Core::JsonRepresentation; end
201
+
202
+ include Google::Apis::Core::JsonObjectSupport
203
+ end
204
+
187
205
  class ImportContext
188
206
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
207
 
@@ -214,6 +232,12 @@ module Google
214
232
  include Google::Apis::Core::JsonObjectSupport
215
233
  end
216
234
 
235
+ class InstanceReference
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
217
241
  class CloneInstancesRequest
218
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
243
 
@@ -304,6 +328,12 @@ module Google
304
328
  include Google::Apis::Core::JsonObjectSupport
305
329
  end
306
330
 
331
+ class MySqlSyncConfig
332
+ class Representation < Google::Apis::Core::JsonRepresentation; end
333
+
334
+ include Google::Apis::Core::JsonObjectSupport
335
+ end
336
+
307
337
  class OnPremisesConfiguration
308
338
  class Representation < Google::Apis::Core::JsonRepresentation; end
309
339
 
@@ -382,6 +412,18 @@ module Google
382
412
  include Google::Apis::Core::JsonObjectSupport
383
413
  end
384
414
 
415
+ class SqlInstancesStartExternalSyncRequest
416
+ class Representation < Google::Apis::Core::JsonRepresentation; end
417
+
418
+ include Google::Apis::Core::JsonObjectSupport
419
+ end
420
+
421
+ class SqlInstancesVerifyExternalSyncSettingsRequest
422
+ class Representation < Google::Apis::Core::JsonRepresentation; end
423
+
424
+ include Google::Apis::Core::JsonObjectSupport
425
+ end
426
+
385
427
  class SqlInstancesVerifyExternalSyncSettingsResponse
386
428
  class Representation < Google::Apis::Core::JsonRepresentation; end
387
429
 
@@ -400,6 +442,12 @@ module Google
400
442
  include Google::Apis::Core::JsonObjectSupport
401
443
  end
402
444
 
445
+ class SqlServerAuditConfig
446
+ class Representation < Google::Apis::Core::JsonRepresentation; end
447
+
448
+ include Google::Apis::Core::JsonObjectSupport
449
+ end
450
+
403
451
  class SqlServerDatabaseDetails
404
452
  class Representation < Google::Apis::Core::JsonRepresentation; end
405
453
 
@@ -448,6 +496,12 @@ module Google
448
496
  include Google::Apis::Core::JsonObjectSupport
449
497
  end
450
498
 
499
+ class SyncFlags
500
+ class Representation < Google::Apis::Core::JsonRepresentation; end
501
+
502
+ include Google::Apis::Core::JsonObjectSupport
503
+ end
504
+
451
505
  class Tier
452
506
  class Representation < Google::Apis::Core::JsonRepresentation; end
453
507
 
@@ -585,6 +639,20 @@ module Google
585
639
  end
586
640
  end
587
641
 
642
+ class ConnectSettings
643
+ # @private
644
+ class Representation < Google::Apis::Core::JsonRepresentation
645
+ property :backend_type, as: 'backendType'
646
+ property :database_version, as: 'databaseVersion'
647
+ collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation
648
+
649
+ property :kind, as: 'kind'
650
+ property :region, as: 'region'
651
+ property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
652
+
653
+ end
654
+ end
655
+
588
656
  class Database
589
657
  # @private
590
658
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -614,6 +682,7 @@ module Google
614
682
  class Representation < Google::Apis::Core::JsonRepresentation
615
683
  property :backend_type, as: 'backendType'
616
684
  property :connection_name, as: 'connectionName'
685
+ property :create_time, as: 'createTime'
617
686
  property :current_disk_size, :numeric_string => true, as: 'currentDiskSize'
618
687
  property :database_version, as: 'databaseVersion'
619
688
  property :disk_encryption_configuration, as: 'diskEncryptionConfiguration', class: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration, decorator: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration::Representation
@@ -690,6 +759,7 @@ module Google
690
759
  property :master_instance_name, as: 'masterInstanceName'
691
760
  property :replica_configuration, as: 'replicaConfiguration', class: Google::Apis::SqladminV1beta4::DemoteMasterConfiguration, decorator: Google::Apis::SqladminV1beta4::DemoteMasterConfiguration::Representation
692
761
 
762
+ property :skip_replication_setup, as: 'skipReplicationSetup'
693
763
  property :verify_gtid_consistency, as: 'verifyGtidConsistency'
694
764
  end
695
765
  end
@@ -748,6 +818,10 @@ module Google
748
818
  class CsvExportOptions
749
819
  # @private
750
820
  class Representation < Google::Apis::Core::JsonRepresentation
821
+ property :escape_character, as: 'escapeCharacter'
822
+ property :fields_terminated_by, as: 'fieldsTerminatedBy'
823
+ property :lines_terminated_by, as: 'linesTerminatedBy'
824
+ property :quote_character, as: 'quoteCharacter'
751
825
  property :select_query, as: 'selectQuery'
752
826
  end
753
827
  end
@@ -803,6 +877,23 @@ module Google
803
877
  end
804
878
  end
805
879
 
880
+ class GenerateEphemeralCertRequest
881
+ # @private
882
+ class Representation < Google::Apis::Core::JsonRepresentation
883
+ property :access_token, as: 'access_token'
884
+ property :public_key, as: 'public_key'
885
+ property :read_time, as: 'readTime'
886
+ end
887
+ end
888
+
889
+ class GenerateEphemeralCertResponse
890
+ # @private
891
+ class Representation < Google::Apis::Core::JsonRepresentation
892
+ property :ephemeral_cert, as: 'ephemeralCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
893
+
894
+ end
895
+ end
896
+
806
897
  class ImportContext
807
898
  # @private
808
899
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -838,6 +929,10 @@ module Google
838
929
  # @private
839
930
  class Representation < Google::Apis::Core::JsonRepresentation
840
931
  collection :columns, as: 'columns'
932
+ property :escape_character, as: 'escapeCharacter'
933
+ property :fields_terminated_by, as: 'fieldsTerminatedBy'
934
+ property :lines_terminated_by, as: 'linesTerminatedBy'
935
+ property :quote_character, as: 'quoteCharacter'
841
936
  property :table, as: 'table'
842
937
  end
843
938
  end
@@ -854,6 +949,15 @@ module Google
854
949
  end
855
950
  end
856
951
 
952
+ class InstanceReference
953
+ # @private
954
+ class Representation < Google::Apis::Core::JsonRepresentation
955
+ property :name, as: 'name'
956
+ property :project, as: 'project'
957
+ property :region, as: 'region'
958
+ end
959
+ end
960
+
857
961
  class CloneInstancesRequest
858
962
  # @private
859
963
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -943,6 +1047,7 @@ module Google
943
1047
  class IpConfiguration
944
1048
  # @private
945
1049
  class Representation < Google::Apis::Core::JsonRepresentation
1050
+ property :allocated_ip_range, as: 'allocatedIpRange'
946
1051
  collection :authorized_networks, as: 'authorizedNetworks', class: Google::Apis::SqladminV1beta4::AclEntry, decorator: Google::Apis::SqladminV1beta4::AclEntry::Representation
947
1052
 
948
1053
  property :ipv4_enabled, as: 'ipv4Enabled'
@@ -997,6 +1102,14 @@ module Google
997
1102
  end
998
1103
  end
999
1104
 
1105
+ class MySqlSyncConfig
1106
+ # @private
1107
+ class Representation < Google::Apis::Core::JsonRepresentation
1108
+ collection :initial_sync_flags, as: 'initialSyncFlags', class: Google::Apis::SqladminV1beta4::SyncFlags, decorator: Google::Apis::SqladminV1beta4::SyncFlags::Representation
1109
+
1110
+ end
1111
+ end
1112
+
1000
1113
  class OnPremisesConfiguration
1001
1114
  # @private
1002
1115
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1007,6 +1120,8 @@ module Google
1007
1120
  property :host_port, as: 'hostPort'
1008
1121
  property :kind, as: 'kind'
1009
1122
  property :password, as: 'password'
1123
+ property :source_instance, as: 'sourceInstance', class: Google::Apis::SqladminV1beta4::InstanceReference, decorator: Google::Apis::SqladminV1beta4::InstanceReference::Representation
1124
+
1010
1125
  property :username, as: 'username'
1011
1126
  end
1012
1127
  end
@@ -1132,6 +1247,8 @@ module Google
1132
1247
  property :pricing_plan, as: 'pricingPlan'
1133
1248
  property :replication_type, as: 'replicationType'
1134
1249
  property :settings_version, :numeric_string => true, as: 'settingsVersion'
1250
+ property :sql_server_audit_config, as: 'sqlServerAuditConfig', class: Google::Apis::SqladminV1beta4::SqlServerAuditConfig, decorator: Google::Apis::SqladminV1beta4::SqlServerAuditConfig::Representation
1251
+
1135
1252
  property :storage_auto_resize, as: 'storageAutoResize'
1136
1253
  property :storage_auto_resize_limit, :numeric_string => true, as: 'storageAutoResizeLimit'
1137
1254
  property :tier, as: 'tier'
@@ -1164,6 +1281,27 @@ module Google
1164
1281
  end
1165
1282
  end
1166
1283
 
1284
+ class SqlInstancesStartExternalSyncRequest
1285
+ # @private
1286
+ class Representation < Google::Apis::Core::JsonRepresentation
1287
+ property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1beta4::MySqlSyncConfig, decorator: Google::Apis::SqladminV1beta4::MySqlSyncConfig::Representation
1288
+
1289
+ property :skip_verification, as: 'skipVerification'
1290
+ property :sync_mode, as: 'syncMode'
1291
+ end
1292
+ end
1293
+
1294
+ class SqlInstancesVerifyExternalSyncSettingsRequest
1295
+ # @private
1296
+ class Representation < Google::Apis::Core::JsonRepresentation
1297
+ property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1beta4::MySqlSyncConfig, decorator: Google::Apis::SqladminV1beta4::MySqlSyncConfig::Representation
1298
+
1299
+ property :sync_mode, as: 'syncMode'
1300
+ property :verify_connection_only, as: 'verifyConnectionOnly'
1301
+ property :verify_replication_only, as: 'verifyReplicationOnly'
1302
+ end
1303
+ end
1304
+
1167
1305
  class SqlInstancesVerifyExternalSyncSettingsResponse
1168
1306
  # @private
1169
1307
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1188,10 +1326,19 @@ module Google
1188
1326
  class Representation < Google::Apis::Core::JsonRepresentation
1189
1327
  property :can_defer, as: 'canDefer'
1190
1328
  property :can_reschedule, as: 'canReschedule'
1329
+ property :schedule_deadline_time, as: 'scheduleDeadlineTime'
1191
1330
  property :start_time, as: 'startTime'
1192
1331
  end
1193
1332
  end
1194
1333
 
1334
+ class SqlServerAuditConfig
1335
+ # @private
1336
+ class Representation < Google::Apis::Core::JsonRepresentation
1337
+ property :bucket, as: 'bucket'
1338
+ property :kind, as: 'kind'
1339
+ end
1340
+ end
1341
+
1195
1342
  class SqlServerDatabaseDetails
1196
1343
  # @private
1197
1344
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1269,6 +1416,14 @@ module Google
1269
1416
  end
1270
1417
  end
1271
1418
 
1419
+ class SyncFlags
1420
+ # @private
1421
+ class Representation < Google::Apis::Core::JsonRepresentation
1422
+ property :name, as: 'name'
1423
+ property :value, as: 'value'
1424
+ end
1425
+ end
1426
+
1272
1427
  class Tier
1273
1428
  # @private
1274
1429
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -55,7 +55,7 @@ module Google
55
55
  # @param [String] instance
56
56
  # Cloud SQL instance ID. This does not include the project ID.
57
57
  # @param [Fixnum] id
58
- # The ID of the Backup Run to delete. To find a Backup Run ID, use the list
58
+ # The ID of the backup run to delete. To find a backup run ID, use the list
59
59
  # method.
60
60
  # @param [String] fields
61
61
  # Selector specifying which fields to include in a partial response.
@@ -92,7 +92,7 @@ module Google
92
92
  # @param [String] instance
93
93
  # Cloud SQL instance ID. This does not include the project ID.
94
94
  # @param [Fixnum] id
95
- # The ID of this Backup Run.
95
+ # The ID of this backup run.
96
96
  # @param [String] fields
97
97
  # Selector specifying which fields to include in a partial response.
98
98
  # @param [String] quota_user
@@ -122,8 +122,7 @@ module Google
122
122
  execute_or_queue_command(command, &block)
123
123
  end
124
124
 
125
- # Creates a new backup run on demand. This method is applicable only to Second
126
- # Generation instances.
125
+ # Creates a new backup run on demand.
127
126
  # @param [String] project
128
127
  # Project ID of the project that contains the instance.
129
128
  # @param [String] instance
@@ -159,12 +158,13 @@ module Google
159
158
  execute_or_queue_command(command, &block)
160
159
  end
161
160
 
162
- # Lists all backup runs associated with a given instance and configuration in
163
- # the reverse chronological order of the backup initiation time.
161
+ # Lists all backup runs associated with the project or a given instance and
162
+ # configuration in the reverse chronological order of the backup initiation time.
164
163
  # @param [String] project
165
164
  # Project ID of the project that contains the instance.
166
165
  # @param [String] instance
167
- # Cloud SQL instance ID. This does not include the project ID.
166
+ # Cloud SQL instance ID, or "-" for all instances. This does not include the
167
+ # project ID.
168
168
  # @param [Fixnum] max_results
169
169
  # Maximum number of backup runs per response.
170
170
  # @param [String] page_token
@@ -200,6 +200,80 @@ module Google
200
200
  execute_or_queue_command(command, &block)
201
201
  end
202
202
 
203
+ # Generates a short-lived X509 certificate containing the provided public key
204
+ # and signed by a private key specific to the target instance. Users may use the
205
+ # certificate to authenticate as themselves when connecting to the database.
206
+ # @param [String] project
207
+ # Project ID of the project that contains the instance.
208
+ # @param [String] instance
209
+ # Cloud SQL instance ID. This does not include the project ID.
210
+ # @param [Google::Apis::SqladminV1beta4::GenerateEphemeralCertRequest] generate_ephemeral_cert_request_object
211
+ # @param [String] fields
212
+ # Selector specifying which fields to include in a partial response.
213
+ # @param [String] quota_user
214
+ # Available to use for quota purposes for server-side applications. Can be any
215
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
216
+ # @param [Google::Apis::RequestOptions] options
217
+ # Request-specific options
218
+ #
219
+ # @yield [result, err] Result & error if block supplied
220
+ # @yieldparam result [Google::Apis::SqladminV1beta4::GenerateEphemeralCertResponse] parsed result object
221
+ # @yieldparam err [StandardError] error object if request failed
222
+ #
223
+ # @return [Google::Apis::SqladminV1beta4::GenerateEphemeralCertResponse]
224
+ #
225
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
226
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
227
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
228
+ def generate_connect_ephemeral_cert(project, instance, generate_ephemeral_cert_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
229
+ command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}:generateEphemeralCert', options)
230
+ command.request_representation = Google::Apis::SqladminV1beta4::GenerateEphemeralCertRequest::Representation
231
+ command.request_object = generate_ephemeral_cert_request_object
232
+ command.response_representation = Google::Apis::SqladminV1beta4::GenerateEphemeralCertResponse::Representation
233
+ command.response_class = Google::Apis::SqladminV1beta4::GenerateEphemeralCertResponse
234
+ command.params['project'] = project unless project.nil?
235
+ command.params['instance'] = instance unless instance.nil?
236
+ command.query['fields'] = fields unless fields.nil?
237
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
238
+ execute_or_queue_command(command, &block)
239
+ end
240
+
241
+ # Retrieves connect settings about a Cloud SQL instance.
242
+ # @param [String] project
243
+ # Project ID of the project that contains the instance.
244
+ # @param [String] instance
245
+ # Cloud SQL instance ID. This does not include the project ID.
246
+ # @param [String] read_time
247
+ # Optional. Optional snapshot read timestamp to trade freshness for performance.
248
+ # @param [String] fields
249
+ # Selector specifying which fields to include in a partial response.
250
+ # @param [String] quota_user
251
+ # Available to use for quota purposes for server-side applications. Can be any
252
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
253
+ # @param [Google::Apis::RequestOptions] options
254
+ # Request-specific options
255
+ #
256
+ # @yield [result, err] Result & error if block supplied
257
+ # @yieldparam result [Google::Apis::SqladminV1beta4::ConnectSettings] parsed result object
258
+ # @yieldparam err [StandardError] error object if request failed
259
+ #
260
+ # @return [Google::Apis::SqladminV1beta4::ConnectSettings]
261
+ #
262
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
263
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
264
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
265
+ def get_connect(project, instance, read_time: nil, fields: nil, quota_user: nil, options: nil, &block)
266
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/connectSettings', options)
267
+ command.response_representation = Google::Apis::SqladminV1beta4::ConnectSettings::Representation
268
+ command.response_class = Google::Apis::SqladminV1beta4::ConnectSettings
269
+ command.params['project'] = project unless project.nil?
270
+ command.params['instance'] = instance unless instance.nil?
271
+ command.query['readTime'] = read_time unless read_time.nil?
272
+ command.query['fields'] = fields unless fields.nil?
273
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
274
+ execute_or_queue_command(command, &block)
275
+ end
276
+
203
277
  # Deletes a database from a Cloud SQL instance.
204
278
  # @param [String] project
205
279
  # Project ID of the project that contains the instance.
@@ -423,7 +497,7 @@ module Google
423
497
  execute_or_queue_command(command, &block)
424
498
  end
425
499
 
426
- # List all available database flags for Cloud SQL instances.
500
+ # Lists all available database flags for Cloud SQL instances.
427
501
  # @param [String] database_version
428
502
  # Database type and version you want to retrieve flags for. By default, this
429
503
  # method returns flags for all database types and versions.
@@ -636,8 +710,11 @@ module Google
636
710
  execute_or_queue_command(command, &block)
637
711
  end
638
712
 
639
- # Failover the instance to its failover replica instance. Using this operation
640
- # might cause your instance to restart.
713
+ # Initiates a manual failover of a high availability (HA) primary instance to a
714
+ # standby instance, which becomes the primary instance. Users are then rerouted
715
+ # to the new primary. For more information, see the Overview of high
716
+ # availability page in the Cloud SQL documentation. If using Legacy HA (MySQL
717
+ # only), this causes the instance to failover to its failover replica instance.
641
718
  # @param [String] project
642
719
  # ID of the project that contains the read replica.
643
720
  # @param [String] instance
@@ -1325,10 +1402,7 @@ module Google
1325
1402
  # ID of the project that contains the instance.
1326
1403
  # @param [String] instance
1327
1404
  # Cloud SQL instance ID. This does not include the project ID.
1328
- # @param [Boolean] skip_verification
1329
- # Whether to skip the verification step (VESS).
1330
- # @param [String] sync_mode
1331
- # External sync mode.
1405
+ # @param [Google::Apis::SqladminV1beta4::SqlInstancesStartExternalSyncRequest] sql_instances_start_external_sync_request_object
1332
1406
  # @param [String] fields
1333
1407
  # Selector specifying which fields to include in a partial response.
1334
1408
  # @param [String] quota_user
@@ -1346,14 +1420,14 @@ module Google
1346
1420
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1347
1421
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1348
1422
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1349
- def start_project_instance_external_sync(project, instance, skip_verification: nil, sync_mode: nil, fields: nil, quota_user: nil, options: nil, &block)
1423
+ def start_project_instance_external_sync(project, instance, sql_instances_start_external_sync_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1350
1424
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/startExternalSync', options)
1425
+ command.request_representation = Google::Apis::SqladminV1beta4::SqlInstancesStartExternalSyncRequest::Representation
1426
+ command.request_object = sql_instances_start_external_sync_request_object
1351
1427
  command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
1352
1428
  command.response_class = Google::Apis::SqladminV1beta4::Operation
1353
1429
  command.params['project'] = project unless project.nil?
1354
1430
  command.params['instance'] = instance unless instance.nil?
1355
- command.query['skipVerification'] = skip_verification unless skip_verification.nil?
1356
- command.query['syncMode'] = sync_mode unless sync_mode.nil?
1357
1431
  command.query['fields'] = fields unless fields.nil?
1358
1432
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1359
1433
  execute_or_queue_command(command, &block)
@@ -1364,10 +1438,7 @@ module Google
1364
1438
  # Project ID of the project that contains the instance.
1365
1439
  # @param [String] instance
1366
1440
  # Cloud SQL instance ID. This does not include the project ID.
1367
- # @param [String] sync_mode
1368
- # External sync mode
1369
- # @param [Boolean] verify_connection_only
1370
- # Flag to enable verifying connection only
1441
+ # @param [Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsRequest] sql_instances_verify_external_sync_settings_request_object
1371
1442
  # @param [String] fields
1372
1443
  # Selector specifying which fields to include in a partial response.
1373
1444
  # @param [String] quota_user
@@ -1385,14 +1456,14 @@ module Google
1385
1456
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1386
1457
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1387
1458
  # @raise [Google::Apis::AuthorizationError] Authorization is required
1388
- def verify_project_instance_external_sync_settings(project, instance, sync_mode: nil, verify_connection_only: nil, fields: nil, quota_user: nil, options: nil, &block)
1459
+ def verify_project_instance_external_sync_settings(project, instance, sql_instances_verify_external_sync_settings_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
1389
1460
  command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/verifyExternalSyncSettings', options)
1461
+ command.request_representation = Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsRequest::Representation
1462
+ command.request_object = sql_instances_verify_external_sync_settings_request_object
1390
1463
  command.response_representation = Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse::Representation
1391
1464
  command.response_class = Google::Apis::SqladminV1beta4::SqlInstancesVerifyExternalSyncSettingsResponse
1392
1465
  command.params['project'] = project unless project.nil?
1393
1466
  command.params['instance'] = instance unless instance.nil?
1394
- command.query['syncMode'] = sync_mode unless sync_mode.nil?
1395
- command.query['verifyConnectionOnly'] = verify_connection_only unless verify_connection_only.nil?
1396
1467
  command.query['fields'] = fields unless fields.nil?
1397
1468
  command.query['quotaUser'] = quota_user unless quota_user.nil?
1398
1469
  execute_or_queue_command(command, &block)
@@ -29,7 +29,7 @@ module Google
29
29
  # This is NOT the gem version.
30
30
  VERSION = 'V1beta4'
31
31
 
32
- # See, edit, configure, and delete your Google Cloud Platform data
32
+ # See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
33
33
  AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
34
34
 
35
35
  # Manage your Google SQL Service instances
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-sqladmin_v1beta4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-05 00:00:00.000000000 Z
11
+ date: 2021-09-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-sqladmin_v1beta4/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.12.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.16.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-sqladmin_v1beta4
63
63
  post_install_message:
64
64
  rdoc_options: []