google-apis-sqladmin_v1beta4 0.11.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +16 -0
- data/lib/google/apis/sqladmin_v1beta4/classes.rb +302 -24
- data/lib/google/apis/sqladmin_v1beta4/gem_version.rb +3 -3
- data/lib/google/apis/sqladmin_v1beta4/representations.rb +129 -0
- data/lib/google/apis/sqladmin_v1beta4/service.rb +95 -24
- data/lib/google/apis/sqladmin_v1beta4.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7691202ac256acdbde5fed02d015609bc2cc7faae91e85a65970f80d17da3d52
|
4
|
+
data.tar.gz: aeadb1853cf98773f0cb8e8e9b984d52b13ad6ea11e0dd8584cc4b6dfa0368f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f8ab407256564ad0c70f09daeeb4f98d0ecaeec6d630ccb67aed3bf8b0d12eaa5b909d0e452a538f03f7e5e13a54c9bf504ffd458b9a7a2a96e535d45ad9ae1
|
7
|
+
data.tar.gz: a69b3cfafe46eac500ff2c9a5a97b541925995a6d7e43d76da69b4bea5117dd2e79a8a9800b67a7fb5f5ee2d3cd30ffb25317381e8ce7171aa3e44d7abec1521
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-sqladmin_v1beta4
|
2
2
|
|
3
|
+
### v0.15.0 (2021-09-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210816
|
6
|
+
|
7
|
+
### v0.14.0 (2021-07-29)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210715
|
10
|
+
|
11
|
+
### v0.13.0 (2021-07-14)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20210627
|
14
|
+
|
15
|
+
### v0.12.0 (2021-06-29)
|
16
|
+
|
17
|
+
* Regenerated using generator version 0.4.0
|
18
|
+
|
3
19
|
### v0.11.0 (2021-06-24)
|
4
20
|
|
5
21
|
* Unspecified changes
|
@@ -124,7 +124,7 @@ module Google
|
|
124
124
|
# @return [String]
|
125
125
|
attr_accessor :location
|
126
126
|
|
127
|
-
#
|
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
|
-
#
|
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,56 @@ 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
|
+
# SslCerts Resource
|
476
|
+
# Corresponds to the JSON property `serverCaCert`
|
477
|
+
# @return [Google::Apis::SqladminV1beta4::SslCert]
|
478
|
+
attr_accessor :server_ca_cert
|
479
|
+
|
480
|
+
def initialize(**args)
|
481
|
+
update!(**args)
|
482
|
+
end
|
483
|
+
|
484
|
+
# Update properties of this object
|
485
|
+
def update!(**args)
|
486
|
+
@backend_type = args[:backend_type] if args.key?(:backend_type)
|
487
|
+
@database_version = args[:database_version] if args.key?(:database_version)
|
488
|
+
@ip_addresses = args[:ip_addresses] if args.key?(:ip_addresses)
|
489
|
+
@kind = args[:kind] if args.key?(:kind)
|
490
|
+
@server_ca_cert = args[:server_ca_cert] if args.key?(:server_ca_cert)
|
491
|
+
end
|
492
|
+
end
|
493
|
+
|
443
494
|
# Represents a SQL database on the Cloud SQL instance.
|
444
495
|
class Database
|
445
496
|
include Google::Apis::Core::Hashable
|
@@ -514,9 +565,9 @@ module Google
|
|
514
565
|
include Google::Apis::Core::Hashable
|
515
566
|
|
516
567
|
# The name of the flag. These flags are passed at instance startup, so include
|
517
|
-
# both server options and system variables
|
518
|
-
#
|
519
|
-
#
|
568
|
+
# 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.
|
520
571
|
# Corresponds to the JSON property `name`
|
521
572
|
# @return [String]
|
522
573
|
attr_accessor :name
|
@@ -554,6 +605,12 @@ module Google
|
|
554
605
|
# @return [String]
|
555
606
|
attr_accessor :connection_name
|
556
607
|
|
608
|
+
# Output only. The time when the instance was created in RFC 3339 format (https:/
|
609
|
+
# /tools.ietf.org/html/rfc3339), for example 2012-11-15T16:19:00.094Z
|
610
|
+
# Corresponds to the JSON property `createTime`
|
611
|
+
# @return [String]
|
612
|
+
attr_accessor :create_time
|
613
|
+
|
557
614
|
# The current disk usage of the instance in bytes. This property has been
|
558
615
|
# deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric
|
559
616
|
# in Cloud Monitoring API instead. Please see this announcement for details.
|
@@ -564,9 +621,10 @@ module Google
|
|
564
621
|
# The database engine type and version. The *databaseVersion* field cannot be
|
565
622
|
# changed after instance creation. MySQL instances: *MYSQL_8_0*, *MYSQL_5_7* (
|
566
623
|
# default), or *MYSQL_5_6*. PostgreSQL instances: *POSTGRES_9_6*, *POSTGRES_10*,
|
567
|
-
# *POSTGRES_11*, *POSTGRES_12*,
|
568
|
-
#
|
569
|
-
#
|
624
|
+
# *POSTGRES_11*, *POSTGRES_12*, *POSTGRES_13* (default). SQL Server instances: *
|
625
|
+
# SQLSERVER_2019_STANDARD*, *SQLSERVER_2019_ENTERPRISE*, *SQLSERVER_2019_EXPRESS*
|
626
|
+
# , or *SQLSERVER_2019_WEB*, *SQLSERVER_2017_STANDARD* (default), *
|
627
|
+
# SQLSERVER_2017_ENTERPRISE*, *SQLSERVER_2017_EXPRESS*, or *SQLSERVER_2017_WEB*.
|
570
628
|
# Corresponds to the JSON property `databaseVersion`
|
571
629
|
# @return [String]
|
572
630
|
attr_accessor :database_version
|
@@ -587,8 +645,7 @@ module Google
|
|
587
645
|
# @return [String]
|
588
646
|
attr_accessor :etag
|
589
647
|
|
590
|
-
# The name and status of the failover replica.
|
591
|
-
# to Second Generation instances.
|
648
|
+
# The name and status of the failover replica.
|
592
649
|
# Corresponds to the JSON property `failoverReplica`
|
593
650
|
# @return [Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica]
|
594
651
|
attr_accessor :failover_replica
|
@@ -742,6 +799,7 @@ module Google
|
|
742
799
|
def update!(**args)
|
743
800
|
@backend_type = args[:backend_type] if args.key?(:backend_type)
|
744
801
|
@connection_name = args[:connection_name] if args.key?(:connection_name)
|
802
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
745
803
|
@current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
|
746
804
|
@database_version = args[:database_version] if args.key?(:database_version)
|
747
805
|
@disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
|
@@ -774,8 +832,7 @@ module Google
|
|
774
832
|
@suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
|
775
833
|
end
|
776
834
|
|
777
|
-
# The name and status of the failover replica.
|
778
|
-
# to Second Generation instances.
|
835
|
+
# The name and status of the failover replica.
|
779
836
|
class FailoverReplica
|
780
837
|
include Google::Apis::Core::Hashable
|
781
838
|
|
@@ -789,7 +846,7 @@ module Google
|
|
789
846
|
|
790
847
|
# The name of the failover replica. If specified at instance creation, a
|
791
848
|
# failover replica is created for the instance. The name doesn't include the
|
792
|
-
# project ID.
|
849
|
+
# project ID.
|
793
850
|
# Corresponds to the JSON property `name`
|
794
851
|
# @return [String]
|
795
852
|
attr_accessor :name
|
@@ -876,13 +933,18 @@ module Google
|
|
876
933
|
# @return [Google::Apis::SqladminV1beta4::DemoteMasterConfiguration]
|
877
934
|
attr_accessor :replica_configuration
|
878
935
|
|
879
|
-
#
|
880
|
-
#
|
881
|
-
#
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
#
|
936
|
+
# Flag to skip replication setup on the instance.
|
937
|
+
# Corresponds to the JSON property `skipReplicationSetup`
|
938
|
+
# @return [Boolean]
|
939
|
+
attr_accessor :skip_replication_setup
|
940
|
+
alias_method :skip_replication_setup?, :skip_replication_setup
|
941
|
+
|
942
|
+
# Verify GTID consistency for demote operation. Default value: *True*. Setting
|
943
|
+
# this flag to false enables you to bypass GTID consistency check between on-
|
944
|
+
# premises primary instance and Cloud SQL instance during the demotion operation
|
945
|
+
# but also exposes you to the risk of future replication failures. Change the
|
946
|
+
# value only if you know the reason for the GTID divergence and are confident
|
947
|
+
# that doing so will not cause any replication issues.
|
886
948
|
# Corresponds to the JSON property `verifyGtidConsistency`
|
887
949
|
# @return [Boolean]
|
888
950
|
attr_accessor :verify_gtid_consistency
|
@@ -897,6 +959,7 @@ module Google
|
|
897
959
|
@kind = args[:kind] if args.key?(:kind)
|
898
960
|
@master_instance_name = args[:master_instance_name] if args.key?(:master_instance_name)
|
899
961
|
@replica_configuration = args[:replica_configuration] if args.key?(:replica_configuration)
|
962
|
+
@skip_replication_setup = args[:skip_replication_setup] if args.key?(:skip_replication_setup)
|
900
963
|
@verify_gtid_consistency = args[:verify_gtid_consistency] if args.key?(:verify_gtid_consistency)
|
901
964
|
end
|
902
965
|
end
|
@@ -1260,8 +1323,7 @@ module Google
|
|
1260
1323
|
# @return [String]
|
1261
1324
|
attr_accessor :name
|
1262
1325
|
|
1263
|
-
# Indicates whether changing this flag will trigger a database restart.
|
1264
|
-
# applicable to Second Generation instances.
|
1326
|
+
# Indicates whether changing this flag will trigger a database restart.
|
1265
1327
|
# Corresponds to the JSON property `requiresRestart`
|
1266
1328
|
# @return [Boolean]
|
1267
1329
|
attr_accessor :requires_restart
|
@@ -1318,6 +1380,56 @@ module Google
|
|
1318
1380
|
end
|
1319
1381
|
end
|
1320
1382
|
|
1383
|
+
# Ephemeral certificate creation request.
|
1384
|
+
class GenerateEphemeralCertRequest
|
1385
|
+
include Google::Apis::Core::Hashable
|
1386
|
+
|
1387
|
+
# Optional. Access token to include in the signed certificate.
|
1388
|
+
# Corresponds to the JSON property `access_token`
|
1389
|
+
# @return [String]
|
1390
|
+
attr_accessor :access_token
|
1391
|
+
|
1392
|
+
# PEM encoded public key to include in the signed certificate.
|
1393
|
+
# Corresponds to the JSON property `public_key`
|
1394
|
+
# @return [String]
|
1395
|
+
attr_accessor :public_key
|
1396
|
+
|
1397
|
+
# Optional. Optional snapshot read timestamp to trade freshness for performance.
|
1398
|
+
# Corresponds to the JSON property `readTime`
|
1399
|
+
# @return [String]
|
1400
|
+
attr_accessor :read_time
|
1401
|
+
|
1402
|
+
def initialize(**args)
|
1403
|
+
update!(**args)
|
1404
|
+
end
|
1405
|
+
|
1406
|
+
# Update properties of this object
|
1407
|
+
def update!(**args)
|
1408
|
+
@access_token = args[:access_token] if args.key?(:access_token)
|
1409
|
+
@public_key = args[:public_key] if args.key?(:public_key)
|
1410
|
+
@read_time = args[:read_time] if args.key?(:read_time)
|
1411
|
+
end
|
1412
|
+
end
|
1413
|
+
|
1414
|
+
# Ephemeral certificate creation request.
|
1415
|
+
class GenerateEphemeralCertResponse
|
1416
|
+
include Google::Apis::Core::Hashable
|
1417
|
+
|
1418
|
+
# SslCerts Resource
|
1419
|
+
# Corresponds to the JSON property `ephemeralCert`
|
1420
|
+
# @return [Google::Apis::SqladminV1beta4::SslCert]
|
1421
|
+
attr_accessor :ephemeral_cert
|
1422
|
+
|
1423
|
+
def initialize(**args)
|
1424
|
+
update!(**args)
|
1425
|
+
end
|
1426
|
+
|
1427
|
+
# Update properties of this object
|
1428
|
+
def update!(**args)
|
1429
|
+
@ephemeral_cert = args[:ephemeral_cert] if args.key?(:ephemeral_cert)
|
1430
|
+
end
|
1431
|
+
end
|
1432
|
+
|
1321
1433
|
# Database instance import context.
|
1322
1434
|
class ImportContext
|
1323
1435
|
include Google::Apis::Core::Hashable
|
@@ -1471,8 +1583,8 @@ module Google
|
|
1471
1583
|
attr_accessor :query_insights_enabled
|
1472
1584
|
alias_method :query_insights_enabled?, :query_insights_enabled
|
1473
1585
|
|
1474
|
-
# Number of query plans
|
1475
|
-
#
|
1586
|
+
# Number of query execution plans captured by Insights per minute for all
|
1587
|
+
# queries combined. Default is 5.
|
1476
1588
|
# Corresponds to the JSON property `queryPlansPerMinute`
|
1477
1589
|
# @return [Fixnum]
|
1478
1590
|
attr_accessor :query_plans_per_minute
|
@@ -1511,6 +1623,39 @@ module Google
|
|
1511
1623
|
end
|
1512
1624
|
end
|
1513
1625
|
|
1626
|
+
# Reference to another Cloud SQL instance.
|
1627
|
+
class InstanceReference
|
1628
|
+
include Google::Apis::Core::Hashable
|
1629
|
+
|
1630
|
+
# The name of the Cloud SQL instance being referenced. This does not include the
|
1631
|
+
# project ID.
|
1632
|
+
# Corresponds to the JSON property `name`
|
1633
|
+
# @return [String]
|
1634
|
+
attr_accessor :name
|
1635
|
+
|
1636
|
+
# The project ID of the Cloud SQL instance being referenced. The default is the
|
1637
|
+
# same project ID as the instance references it.
|
1638
|
+
# Corresponds to the JSON property `project`
|
1639
|
+
# @return [String]
|
1640
|
+
attr_accessor :project
|
1641
|
+
|
1642
|
+
# The region of the Cloud SQL instance being referenced.
|
1643
|
+
# Corresponds to the JSON property `region`
|
1644
|
+
# @return [String]
|
1645
|
+
attr_accessor :region
|
1646
|
+
|
1647
|
+
def initialize(**args)
|
1648
|
+
update!(**args)
|
1649
|
+
end
|
1650
|
+
|
1651
|
+
# Update properties of this object
|
1652
|
+
def update!(**args)
|
1653
|
+
@name = args[:name] if args.key?(:name)
|
1654
|
+
@project = args[:project] if args.key?(:project)
|
1655
|
+
@region = args[:region] if args.key?(:region)
|
1656
|
+
end
|
1657
|
+
end
|
1658
|
+
|
1514
1659
|
# Database instance clone request.
|
1515
1660
|
class CloneInstancesRequest
|
1516
1661
|
include Google::Apis::Core::Hashable
|
@@ -1737,6 +1882,16 @@ module Google
|
|
1737
1882
|
class IpConfiguration
|
1738
1883
|
include Google::Apis::Core::Hashable
|
1739
1884
|
|
1885
|
+
# The name of the allocated ip range for the private ip CloudSQL instance. For
|
1886
|
+
# example: "google-managed-services-default". If set, the instance ip will be
|
1887
|
+
# created in the allocated range. The range name must comply with [RFC 1035](
|
1888
|
+
# https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63
|
1889
|
+
# characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
|
1890
|
+
# Reserved for future use.
|
1891
|
+
# Corresponds to the JSON property `allocatedIpRange`
|
1892
|
+
# @return [String]
|
1893
|
+
attr_accessor :allocated_ip_range
|
1894
|
+
|
1740
1895
|
# The list of external networks that are allowed to connect to the instance
|
1741
1896
|
# using the IP. In 'CIDR' notation, also known as 'slash' notation (for example:
|
1742
1897
|
# *192.168.100.0/24*).
|
@@ -1770,6 +1925,7 @@ module Google
|
|
1770
1925
|
|
1771
1926
|
# Update properties of this object
|
1772
1927
|
def update!(**args)
|
1928
|
+
@allocated_ip_range = args[:allocated_ip_range] if args.key?(:allocated_ip_range)
|
1773
1929
|
@authorized_networks = args[:authorized_networks] if args.key?(:authorized_networks)
|
1774
1930
|
@ipv4_enabled = args[:ipv4_enabled] if args.key?(:ipv4_enabled)
|
1775
1931
|
@private_network = args[:private_network] if args.key?(:private_network)
|
@@ -1981,6 +2137,25 @@ module Google
|
|
1981
2137
|
end
|
1982
2138
|
end
|
1983
2139
|
|
2140
|
+
# MySQL-specific external server sync settings.
|
2141
|
+
class MySqlSyncConfig
|
2142
|
+
include Google::Apis::Core::Hashable
|
2143
|
+
|
2144
|
+
# Flags to use for the initial dump.
|
2145
|
+
# Corresponds to the JSON property `initialSyncFlags`
|
2146
|
+
# @return [Array<Google::Apis::SqladminV1beta4::SyncFlags>]
|
2147
|
+
attr_accessor :initial_sync_flags
|
2148
|
+
|
2149
|
+
def initialize(**args)
|
2150
|
+
update!(**args)
|
2151
|
+
end
|
2152
|
+
|
2153
|
+
# Update properties of this object
|
2154
|
+
def update!(**args)
|
2155
|
+
@initial_sync_flags = args[:initial_sync_flags] if args.key?(:initial_sync_flags)
|
2156
|
+
end
|
2157
|
+
end
|
2158
|
+
|
1984
2159
|
# On-premises instance configuration.
|
1985
2160
|
class OnPremisesConfiguration
|
1986
2161
|
include Google::Apis::Core::Hashable
|
@@ -2021,6 +2196,11 @@ module Google
|
|
2021
2196
|
# @return [String]
|
2022
2197
|
attr_accessor :password
|
2023
2198
|
|
2199
|
+
# Reference to another Cloud SQL instance.
|
2200
|
+
# Corresponds to the JSON property `sourceInstance`
|
2201
|
+
# @return [Google::Apis::SqladminV1beta4::InstanceReference]
|
2202
|
+
attr_accessor :source_instance
|
2203
|
+
|
2024
2204
|
# The username for connecting to on-premises instance.
|
2025
2205
|
# Corresponds to the JSON property `username`
|
2026
2206
|
# @return [String]
|
@@ -2039,6 +2219,7 @@ module Google
|
|
2039
2219
|
@host_port = args[:host_port] if args.key?(:host_port)
|
2040
2220
|
@kind = args[:kind] if args.key?(:kind)
|
2041
2221
|
@password = args[:password] if args.key?(:password)
|
2222
|
+
@source_instance = args[:source_instance] if args.key?(:source_instance)
|
2042
2223
|
@username = args[:username] if args.key?(:username)
|
2043
2224
|
end
|
2044
2225
|
end
|
@@ -2640,6 +2821,70 @@ module Google
|
|
2640
2821
|
end
|
2641
2822
|
end
|
2642
2823
|
|
2824
|
+
#
|
2825
|
+
class SqlInstancesStartExternalSyncRequest
|
2826
|
+
include Google::Apis::Core::Hashable
|
2827
|
+
|
2828
|
+
# MySQL-specific external server sync settings.
|
2829
|
+
# Corresponds to the JSON property `mysqlSyncConfig`
|
2830
|
+
# @return [Google::Apis::SqladminV1beta4::MySqlSyncConfig]
|
2831
|
+
attr_accessor :mysql_sync_config
|
2832
|
+
|
2833
|
+
# Whether to skip the verification step (VESS).
|
2834
|
+
# Corresponds to the JSON property `skipVerification`
|
2835
|
+
# @return [Boolean]
|
2836
|
+
attr_accessor :skip_verification
|
2837
|
+
alias_method :skip_verification?, :skip_verification
|
2838
|
+
|
2839
|
+
# External sync mode.
|
2840
|
+
# Corresponds to the JSON property `syncMode`
|
2841
|
+
# @return [String]
|
2842
|
+
attr_accessor :sync_mode
|
2843
|
+
|
2844
|
+
def initialize(**args)
|
2845
|
+
update!(**args)
|
2846
|
+
end
|
2847
|
+
|
2848
|
+
# Update properties of this object
|
2849
|
+
def update!(**args)
|
2850
|
+
@mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config)
|
2851
|
+
@skip_verification = args[:skip_verification] if args.key?(:skip_verification)
|
2852
|
+
@sync_mode = args[:sync_mode] if args.key?(:sync_mode)
|
2853
|
+
end
|
2854
|
+
end
|
2855
|
+
|
2856
|
+
#
|
2857
|
+
class SqlInstancesVerifyExternalSyncSettingsRequest
|
2858
|
+
include Google::Apis::Core::Hashable
|
2859
|
+
|
2860
|
+
# MySQL-specific external server sync settings.
|
2861
|
+
# Corresponds to the JSON property `mysqlSyncConfig`
|
2862
|
+
# @return [Google::Apis::SqladminV1beta4::MySqlSyncConfig]
|
2863
|
+
attr_accessor :mysql_sync_config
|
2864
|
+
|
2865
|
+
# External sync mode
|
2866
|
+
# Corresponds to the JSON property `syncMode`
|
2867
|
+
# @return [String]
|
2868
|
+
attr_accessor :sync_mode
|
2869
|
+
|
2870
|
+
# Flag to enable verifying connection only
|
2871
|
+
# Corresponds to the JSON property `verifyConnectionOnly`
|
2872
|
+
# @return [Boolean]
|
2873
|
+
attr_accessor :verify_connection_only
|
2874
|
+
alias_method :verify_connection_only?, :verify_connection_only
|
2875
|
+
|
2876
|
+
def initialize(**args)
|
2877
|
+
update!(**args)
|
2878
|
+
end
|
2879
|
+
|
2880
|
+
# Update properties of this object
|
2881
|
+
def update!(**args)
|
2882
|
+
@mysql_sync_config = args[:mysql_sync_config] if args.key?(:mysql_sync_config)
|
2883
|
+
@sync_mode = args[:sync_mode] if args.key?(:sync_mode)
|
2884
|
+
@verify_connection_only = args[:verify_connection_only] if args.key?(:verify_connection_only)
|
2885
|
+
end
|
2886
|
+
end
|
2887
|
+
|
2643
2888
|
# Instance verify external sync settings response.
|
2644
2889
|
class SqlInstancesVerifyExternalSyncSettingsResponse
|
2645
2890
|
include Google::Apis::Core::Hashable
|
@@ -2715,6 +2960,11 @@ module Google
|
|
2715
2960
|
attr_accessor :can_reschedule
|
2716
2961
|
alias_method :can_reschedule?, :can_reschedule
|
2717
2962
|
|
2963
|
+
# Maintenance cannot be rescheduled to start beyond this deadline.
|
2964
|
+
# Corresponds to the JSON property `scheduleDeadlineTime`
|
2965
|
+
# @return [String]
|
2966
|
+
attr_accessor :schedule_deadline_time
|
2967
|
+
|
2718
2968
|
# The start time of any upcoming scheduled maintenance for this instance.
|
2719
2969
|
# Corresponds to the JSON property `startTime`
|
2720
2970
|
# @return [String]
|
@@ -2728,6 +2978,7 @@ module Google
|
|
2728
2978
|
def update!(**args)
|
2729
2979
|
@can_defer = args[:can_defer] if args.key?(:can_defer)
|
2730
2980
|
@can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
|
2981
|
+
@schedule_deadline_time = args[:schedule_deadline_time] if args.key?(:schedule_deadline_time)
|
2731
2982
|
@start_time = args[:start_time] if args.key?(:start_time)
|
2732
2983
|
end
|
2733
2984
|
end
|
@@ -2987,6 +3238,33 @@ module Google
|
|
2987
3238
|
end
|
2988
3239
|
end
|
2989
3240
|
|
3241
|
+
# Initial sync flags for certain Cloud SQL APIs. Currently used for the MySQL
|
3242
|
+
# external server initial dump.
|
3243
|
+
class SyncFlags
|
3244
|
+
include Google::Apis::Core::Hashable
|
3245
|
+
|
3246
|
+
# The name of the flag.
|
3247
|
+
# Corresponds to the JSON property `name`
|
3248
|
+
# @return [String]
|
3249
|
+
attr_accessor :name
|
3250
|
+
|
3251
|
+
# The value of the flag. This field must be omitted if the flag doesn't take a
|
3252
|
+
# value.
|
3253
|
+
# Corresponds to the JSON property `value`
|
3254
|
+
# @return [String]
|
3255
|
+
attr_accessor :value
|
3256
|
+
|
3257
|
+
def initialize(**args)
|
3258
|
+
update!(**args)
|
3259
|
+
end
|
3260
|
+
|
3261
|
+
# Update properties of this object
|
3262
|
+
def update!(**args)
|
3263
|
+
@name = args[:name] if args.key?(:name)
|
3264
|
+
@value = args[:value] if args.key?(:value)
|
3265
|
+
end
|
3266
|
+
end
|
3267
|
+
|
2990
3268
|
# A Google Cloud SQL service tier resource.
|
2991
3269
|
class Tier
|
2992
3270
|
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.
|
19
|
+
GEM_VERSION = "0.15.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.4.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20210816"
|
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
|
|
@@ -448,6 +490,12 @@ module Google
|
|
448
490
|
include Google::Apis::Core::JsonObjectSupport
|
449
491
|
end
|
450
492
|
|
493
|
+
class SyncFlags
|
494
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
495
|
+
|
496
|
+
include Google::Apis::Core::JsonObjectSupport
|
497
|
+
end
|
498
|
+
|
451
499
|
class Tier
|
452
500
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
453
501
|
|
@@ -585,6 +633,19 @@ module Google
|
|
585
633
|
end
|
586
634
|
end
|
587
635
|
|
636
|
+
class ConnectSettings
|
637
|
+
# @private
|
638
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
639
|
+
property :backend_type, as: 'backendType'
|
640
|
+
property :database_version, as: 'databaseVersion'
|
641
|
+
collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation
|
642
|
+
|
643
|
+
property :kind, as: 'kind'
|
644
|
+
property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
|
645
|
+
|
646
|
+
end
|
647
|
+
end
|
648
|
+
|
588
649
|
class Database
|
589
650
|
# @private
|
590
651
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -614,6 +675,7 @@ module Google
|
|
614
675
|
class Representation < Google::Apis::Core::JsonRepresentation
|
615
676
|
property :backend_type, as: 'backendType'
|
616
677
|
property :connection_name, as: 'connectionName'
|
678
|
+
property :create_time, as: 'createTime'
|
617
679
|
property :current_disk_size, :numeric_string => true, as: 'currentDiskSize'
|
618
680
|
property :database_version, as: 'databaseVersion'
|
619
681
|
property :disk_encryption_configuration, as: 'diskEncryptionConfiguration', class: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration, decorator: Google::Apis::SqladminV1beta4::DiskEncryptionConfiguration::Representation
|
@@ -690,6 +752,7 @@ module Google
|
|
690
752
|
property :master_instance_name, as: 'masterInstanceName'
|
691
753
|
property :replica_configuration, as: 'replicaConfiguration', class: Google::Apis::SqladminV1beta4::DemoteMasterConfiguration, decorator: Google::Apis::SqladminV1beta4::DemoteMasterConfiguration::Representation
|
692
754
|
|
755
|
+
property :skip_replication_setup, as: 'skipReplicationSetup'
|
693
756
|
property :verify_gtid_consistency, as: 'verifyGtidConsistency'
|
694
757
|
end
|
695
758
|
end
|
@@ -803,6 +866,23 @@ module Google
|
|
803
866
|
end
|
804
867
|
end
|
805
868
|
|
869
|
+
class GenerateEphemeralCertRequest
|
870
|
+
# @private
|
871
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
872
|
+
property :access_token, as: 'access_token'
|
873
|
+
property :public_key, as: 'public_key'
|
874
|
+
property :read_time, as: 'readTime'
|
875
|
+
end
|
876
|
+
end
|
877
|
+
|
878
|
+
class GenerateEphemeralCertResponse
|
879
|
+
# @private
|
880
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
881
|
+
property :ephemeral_cert, as: 'ephemeralCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
|
882
|
+
|
883
|
+
end
|
884
|
+
end
|
885
|
+
|
806
886
|
class ImportContext
|
807
887
|
# @private
|
808
888
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -854,6 +934,15 @@ module Google
|
|
854
934
|
end
|
855
935
|
end
|
856
936
|
|
937
|
+
class InstanceReference
|
938
|
+
# @private
|
939
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
940
|
+
property :name, as: 'name'
|
941
|
+
property :project, as: 'project'
|
942
|
+
property :region, as: 'region'
|
943
|
+
end
|
944
|
+
end
|
945
|
+
|
857
946
|
class CloneInstancesRequest
|
858
947
|
# @private
|
859
948
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -943,6 +1032,7 @@ module Google
|
|
943
1032
|
class IpConfiguration
|
944
1033
|
# @private
|
945
1034
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1035
|
+
property :allocated_ip_range, as: 'allocatedIpRange'
|
946
1036
|
collection :authorized_networks, as: 'authorizedNetworks', class: Google::Apis::SqladminV1beta4::AclEntry, decorator: Google::Apis::SqladminV1beta4::AclEntry::Representation
|
947
1037
|
|
948
1038
|
property :ipv4_enabled, as: 'ipv4Enabled'
|
@@ -997,6 +1087,14 @@ module Google
|
|
997
1087
|
end
|
998
1088
|
end
|
999
1089
|
|
1090
|
+
class MySqlSyncConfig
|
1091
|
+
# @private
|
1092
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1093
|
+
collection :initial_sync_flags, as: 'initialSyncFlags', class: Google::Apis::SqladminV1beta4::SyncFlags, decorator: Google::Apis::SqladminV1beta4::SyncFlags::Representation
|
1094
|
+
|
1095
|
+
end
|
1096
|
+
end
|
1097
|
+
|
1000
1098
|
class OnPremisesConfiguration
|
1001
1099
|
# @private
|
1002
1100
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1007,6 +1105,8 @@ module Google
|
|
1007
1105
|
property :host_port, as: 'hostPort'
|
1008
1106
|
property :kind, as: 'kind'
|
1009
1107
|
property :password, as: 'password'
|
1108
|
+
property :source_instance, as: 'sourceInstance', class: Google::Apis::SqladminV1beta4::InstanceReference, decorator: Google::Apis::SqladminV1beta4::InstanceReference::Representation
|
1109
|
+
|
1010
1110
|
property :username, as: 'username'
|
1011
1111
|
end
|
1012
1112
|
end
|
@@ -1164,6 +1264,26 @@ module Google
|
|
1164
1264
|
end
|
1165
1265
|
end
|
1166
1266
|
|
1267
|
+
class SqlInstancesStartExternalSyncRequest
|
1268
|
+
# @private
|
1269
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1270
|
+
property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1beta4::MySqlSyncConfig, decorator: Google::Apis::SqladminV1beta4::MySqlSyncConfig::Representation
|
1271
|
+
|
1272
|
+
property :skip_verification, as: 'skipVerification'
|
1273
|
+
property :sync_mode, as: 'syncMode'
|
1274
|
+
end
|
1275
|
+
end
|
1276
|
+
|
1277
|
+
class SqlInstancesVerifyExternalSyncSettingsRequest
|
1278
|
+
# @private
|
1279
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1280
|
+
property :mysql_sync_config, as: 'mysqlSyncConfig', class: Google::Apis::SqladminV1beta4::MySqlSyncConfig, decorator: Google::Apis::SqladminV1beta4::MySqlSyncConfig::Representation
|
1281
|
+
|
1282
|
+
property :sync_mode, as: 'syncMode'
|
1283
|
+
property :verify_connection_only, as: 'verifyConnectionOnly'
|
1284
|
+
end
|
1285
|
+
end
|
1286
|
+
|
1167
1287
|
class SqlInstancesVerifyExternalSyncSettingsResponse
|
1168
1288
|
# @private
|
1169
1289
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1188,6 +1308,7 @@ module Google
|
|
1188
1308
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1189
1309
|
property :can_defer, as: 'canDefer'
|
1190
1310
|
property :can_reschedule, as: 'canReschedule'
|
1311
|
+
property :schedule_deadline_time, as: 'scheduleDeadlineTime'
|
1191
1312
|
property :start_time, as: 'startTime'
|
1192
1313
|
end
|
1193
1314
|
end
|
@@ -1269,6 +1390,14 @@ module Google
|
|
1269
1390
|
end
|
1270
1391
|
end
|
1271
1392
|
|
1393
|
+
class SyncFlags
|
1394
|
+
# @private
|
1395
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1396
|
+
property :name, as: 'name'
|
1397
|
+
property :value, as: 'value'
|
1398
|
+
end
|
1399
|
+
end
|
1400
|
+
|
1272
1401
|
class Tier
|
1273
1402
|
# @private
|
1274
1403
|
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
|
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
|
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.
|
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
|
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
|
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
|
-
#
|
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
|
-
#
|
640
|
-
#
|
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 [
|
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,
|
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 [
|
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,
|
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
|
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.
|
4
|
+
version: 0.15.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-06
|
11
|
+
date: 2021-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '0.
|
29
|
+
version: '0.4'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.15.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: []
|