google-apis-sqladmin_v1beta4 0.10.0 → 0.14.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73f479f9f93ef4f01ef43b95308ad3cf00dfc04d7ad43fffbc6d6082f8bb3752
|
4
|
+
data.tar.gz: 0b21a2ec0e77b8713322e2817d1755304ac8a8bb6e3ef8dbf54a384be10cd400
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 55e1ea6561e35d873d5cb1e6c463ae80d4aa46f29858a2d2e650b880a9e4a9b3d93d92933ec6730e01ee61193749582942f5101b2a5c7f5e0ee4bb92aab10223
|
7
|
+
data.tar.gz: 79b601cc03fdb61961887860e64892b339e7e062e425c3ebddd3d23db704560097e8442270b05f16899c4fa9e057573cfaca95ac1c5526588327510986debdd0
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,21 @@
|
|
1
1
|
# Release history for google-apis-sqladmin_v1beta4
|
2
2
|
|
3
|
+
### v0.14.0 (2021-07-29)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20210715
|
6
|
+
|
7
|
+
### v0.13.0 (2021-07-14)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20210627
|
10
|
+
|
11
|
+
### v0.12.0 (2021-06-29)
|
12
|
+
|
13
|
+
* Regenerated using generator version 0.4.0
|
14
|
+
|
15
|
+
### v0.11.0 (2021-06-24)
|
16
|
+
|
17
|
+
* Unspecified changes
|
18
|
+
|
3
19
|
### v0.10.0 (2021-06-18)
|
4
20
|
|
5
21
|
* Regenerated from discovery document revision 20210608
|
@@ -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
|
@@ -564,9 +615,10 @@ module Google
|
|
564
615
|
# The database engine type and version. The *databaseVersion* field cannot be
|
565
616
|
# changed after instance creation. MySQL instances: *MYSQL_8_0*, *MYSQL_5_7* (
|
566
617
|
# default), or *MYSQL_5_6*. PostgreSQL instances: *POSTGRES_9_6*, *POSTGRES_10*,
|
567
|
-
# *POSTGRES_11*, *POSTGRES_12*,
|
568
|
-
#
|
569
|
-
#
|
618
|
+
# *POSTGRES_11*, *POSTGRES_12*, *POSTGRES_13* (default). SQL Server instances: *
|
619
|
+
# SQLSERVER_2019_STANDARD*, *SQLSERVER_2019_ENTERPRISE*, *SQLSERVER_2019_EXPRESS*
|
620
|
+
# , or *SQLSERVER_2019_WEB*, *SQLSERVER_2017_STANDARD* (default), *
|
621
|
+
# SQLSERVER_2017_ENTERPRISE*, *SQLSERVER_2017_EXPRESS*, or *SQLSERVER_2017_WEB*.
|
570
622
|
# Corresponds to the JSON property `databaseVersion`
|
571
623
|
# @return [String]
|
572
624
|
attr_accessor :database_version
|
@@ -587,8 +639,7 @@ module Google
|
|
587
639
|
# @return [String]
|
588
640
|
attr_accessor :etag
|
589
641
|
|
590
|
-
# The name and status of the failover replica.
|
591
|
-
# to Second Generation instances.
|
642
|
+
# The name and status of the failover replica.
|
592
643
|
# Corresponds to the JSON property `failoverReplica`
|
593
644
|
# @return [Google::Apis::SqladminV1beta4::DatabaseInstance::FailoverReplica]
|
594
645
|
attr_accessor :failover_replica
|
@@ -774,8 +825,7 @@ module Google
|
|
774
825
|
@suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
|
775
826
|
end
|
776
827
|
|
777
|
-
# The name and status of the failover replica.
|
778
|
-
# to Second Generation instances.
|
828
|
+
# The name and status of the failover replica.
|
779
829
|
class FailoverReplica
|
780
830
|
include Google::Apis::Core::Hashable
|
781
831
|
|
@@ -789,7 +839,7 @@ module Google
|
|
789
839
|
|
790
840
|
# The name of the failover replica. If specified at instance creation, a
|
791
841
|
# failover replica is created for the instance. The name doesn't include the
|
792
|
-
# project ID.
|
842
|
+
# project ID.
|
793
843
|
# Corresponds to the JSON property `name`
|
794
844
|
# @return [String]
|
795
845
|
attr_accessor :name
|
@@ -876,13 +926,12 @@ module Google
|
|
876
926
|
# @return [Google::Apis::SqladminV1beta4::DemoteMasterConfiguration]
|
877
927
|
attr_accessor :replica_configuration
|
878
928
|
|
879
|
-
# Verify GTID consistency for demote operation. Default value: *True*.
|
880
|
-
#
|
881
|
-
#
|
882
|
-
#
|
883
|
-
#
|
884
|
-
#
|
885
|
-
# replication issues.
|
929
|
+
# Verify GTID consistency for demote operation. Default value: *True*. Setting
|
930
|
+
# this flag to false enables you to bypass GTID consistency check between on-
|
931
|
+
# premises primary instance and Cloud SQL instance during the demotion operation
|
932
|
+
# but also exposes you to the risk of future replication failures. Change the
|
933
|
+
# value only if you know the reason for the GTID divergence and are confident
|
934
|
+
# that doing so will not cause any replication issues.
|
886
935
|
# Corresponds to the JSON property `verifyGtidConsistency`
|
887
936
|
# @return [Boolean]
|
888
937
|
attr_accessor :verify_gtid_consistency
|
@@ -1260,8 +1309,7 @@ module Google
|
|
1260
1309
|
# @return [String]
|
1261
1310
|
attr_accessor :name
|
1262
1311
|
|
1263
|
-
# Indicates whether changing this flag will trigger a database restart.
|
1264
|
-
# applicable to Second Generation instances.
|
1312
|
+
# Indicates whether changing this flag will trigger a database restart.
|
1265
1313
|
# Corresponds to the JSON property `requiresRestart`
|
1266
1314
|
# @return [Boolean]
|
1267
1315
|
attr_accessor :requires_restart
|
@@ -1318,6 +1366,56 @@ module Google
|
|
1318
1366
|
end
|
1319
1367
|
end
|
1320
1368
|
|
1369
|
+
# Ephemeral certificate creation request.
|
1370
|
+
class GenerateEphemeralCertRequest
|
1371
|
+
include Google::Apis::Core::Hashable
|
1372
|
+
|
1373
|
+
# Optional. Access token to include in the signed certificate.
|
1374
|
+
# Corresponds to the JSON property `access_token`
|
1375
|
+
# @return [String]
|
1376
|
+
attr_accessor :access_token
|
1377
|
+
|
1378
|
+
# PEM encoded public key to include in the signed certificate.
|
1379
|
+
# Corresponds to the JSON property `public_key`
|
1380
|
+
# @return [String]
|
1381
|
+
attr_accessor :public_key
|
1382
|
+
|
1383
|
+
# Optional. Optional snapshot read timestamp to trade freshness for performance.
|
1384
|
+
# Corresponds to the JSON property `readTime`
|
1385
|
+
# @return [String]
|
1386
|
+
attr_accessor :read_time
|
1387
|
+
|
1388
|
+
def initialize(**args)
|
1389
|
+
update!(**args)
|
1390
|
+
end
|
1391
|
+
|
1392
|
+
# Update properties of this object
|
1393
|
+
def update!(**args)
|
1394
|
+
@access_token = args[:access_token] if args.key?(:access_token)
|
1395
|
+
@public_key = args[:public_key] if args.key?(:public_key)
|
1396
|
+
@read_time = args[:read_time] if args.key?(:read_time)
|
1397
|
+
end
|
1398
|
+
end
|
1399
|
+
|
1400
|
+
# Ephemeral certificate creation request.
|
1401
|
+
class GenerateEphemeralCertResponse
|
1402
|
+
include Google::Apis::Core::Hashable
|
1403
|
+
|
1404
|
+
# SslCerts Resource
|
1405
|
+
# Corresponds to the JSON property `ephemeralCert`
|
1406
|
+
# @return [Google::Apis::SqladminV1beta4::SslCert]
|
1407
|
+
attr_accessor :ephemeral_cert
|
1408
|
+
|
1409
|
+
def initialize(**args)
|
1410
|
+
update!(**args)
|
1411
|
+
end
|
1412
|
+
|
1413
|
+
# Update properties of this object
|
1414
|
+
def update!(**args)
|
1415
|
+
@ephemeral_cert = args[:ephemeral_cert] if args.key?(:ephemeral_cert)
|
1416
|
+
end
|
1417
|
+
end
|
1418
|
+
|
1321
1419
|
# Database instance import context.
|
1322
1420
|
class ImportContext
|
1323
1421
|
include Google::Apis::Core::Hashable
|
@@ -1471,8 +1569,8 @@ module Google
|
|
1471
1569
|
attr_accessor :query_insights_enabled
|
1472
1570
|
alias_method :query_insights_enabled?, :query_insights_enabled
|
1473
1571
|
|
1474
|
-
# Number of query plans
|
1475
|
-
#
|
1572
|
+
# Number of query execution plans captured by Insights per minute for all
|
1573
|
+
# queries combined. Default is 5.
|
1476
1574
|
# Corresponds to the JSON property `queryPlansPerMinute`
|
1477
1575
|
# @return [Fixnum]
|
1478
1576
|
attr_accessor :query_plans_per_minute
|
@@ -2715,6 +2813,11 @@ module Google
|
|
2715
2813
|
attr_accessor :can_reschedule
|
2716
2814
|
alias_method :can_reschedule?, :can_reschedule
|
2717
2815
|
|
2816
|
+
# Maintenance cannot be rescheduled to start beyond this deadline.
|
2817
|
+
# Corresponds to the JSON property `scheduleDeadlineTime`
|
2818
|
+
# @return [String]
|
2819
|
+
attr_accessor :schedule_deadline_time
|
2820
|
+
|
2718
2821
|
# The start time of any upcoming scheduled maintenance for this instance.
|
2719
2822
|
# Corresponds to the JSON property `startTime`
|
2720
2823
|
# @return [String]
|
@@ -2728,6 +2831,7 @@ module Google
|
|
2728
2831
|
def update!(**args)
|
2729
2832
|
@can_defer = args[:can_defer] if args.key?(:can_defer)
|
2730
2833
|
@can_reschedule = args[:can_reschedule] if args.key?(:can_reschedule)
|
2834
|
+
@schedule_deadline_time = args[:schedule_deadline_time] if args.key?(:schedule_deadline_time)
|
2731
2835
|
@start_time = args[:start_time] if args.key?(:start_time)
|
2732
2836
|
end
|
2733
2837
|
end
|
@@ -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.14.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 = "20210715"
|
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
|
|
@@ -585,6 +603,19 @@ module Google
|
|
585
603
|
end
|
586
604
|
end
|
587
605
|
|
606
|
+
class ConnectSettings
|
607
|
+
# @private
|
608
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
609
|
+
property :backend_type, as: 'backendType'
|
610
|
+
property :database_version, as: 'databaseVersion'
|
611
|
+
collection :ip_addresses, as: 'ipAddresses', class: Google::Apis::SqladminV1beta4::IpMapping, decorator: Google::Apis::SqladminV1beta4::IpMapping::Representation
|
612
|
+
|
613
|
+
property :kind, as: 'kind'
|
614
|
+
property :server_ca_cert, as: 'serverCaCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
|
615
|
+
|
616
|
+
end
|
617
|
+
end
|
618
|
+
|
588
619
|
class Database
|
589
620
|
# @private
|
590
621
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -803,6 +834,23 @@ module Google
|
|
803
834
|
end
|
804
835
|
end
|
805
836
|
|
837
|
+
class GenerateEphemeralCertRequest
|
838
|
+
# @private
|
839
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
840
|
+
property :access_token, as: 'access_token'
|
841
|
+
property :public_key, as: 'public_key'
|
842
|
+
property :read_time, as: 'readTime'
|
843
|
+
end
|
844
|
+
end
|
845
|
+
|
846
|
+
class GenerateEphemeralCertResponse
|
847
|
+
# @private
|
848
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
849
|
+
property :ephemeral_cert, as: 'ephemeralCert', class: Google::Apis::SqladminV1beta4::SslCert, decorator: Google::Apis::SqladminV1beta4::SslCert::Representation
|
850
|
+
|
851
|
+
end
|
852
|
+
end
|
853
|
+
|
806
854
|
class ImportContext
|
807
855
|
# @private
|
808
856
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1188,6 +1236,7 @@ module Google
|
|
1188
1236
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1189
1237
|
property :can_defer, as: 'canDefer'
|
1190
1238
|
property :can_reschedule, as: 'canReschedule'
|
1239
|
+
property :schedule_deadline_time, as: 'scheduleDeadlineTime'
|
1191
1240
|
property :start_time, as: 'startTime'
|
1192
1241
|
end
|
1193
1242
|
end
|
@@ -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
|
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
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.14.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-
|
11
|
+
date: 2021-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
19
|
+
version: '0.4'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: 2.a
|
20
23
|
type: :runtime
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0.4'
|
30
|
+
- - "<"
|
25
31
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
32
|
+
version: 2.a
|
27
33
|
description: This is the simple REST client for Cloud SQL Admin API V1beta4. Simple
|
28
34
|
REST clients are Ruby client libraries that provide access to Google services via
|
29
35
|
their HTTP REST API endpoints. These libraries are generated and updated automatically
|
@@ -52,7 +58,7 @@ licenses:
|
|
52
58
|
metadata:
|
53
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
54
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-sqladmin_v1beta4/CHANGELOG.md
|
55
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.14.0
|
56
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/master/generated/google-apis-sqladmin_v1beta4
|
57
63
|
post_install_message:
|
58
64
|
rdoc_options: []
|