google-apis-sqladmin_v1 0.6.0 → 0.10.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 +17 -0
- data/OVERVIEW.md +2 -2
- data/lib/google/apis/sqladmin_v1/classes.rb +203 -82
- data/lib/google/apis/sqladmin_v1/gem_version.rb +2 -2
- data/lib/google/apis/sqladmin_v1/representations.rb +54 -0
- data/lib/google/apis/sqladmin_v1/service.rb +6 -4
- 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: 7c8825397e70d45c29e04ccf8c36dcb556beb22cfe8139bdfa058113e59f7b02
|
4
|
+
data.tar.gz: 4536fe66350e98dbd18bf009faae567d5836b651b749aca75d566b7b10251f52
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d7eda3160ed4e7546ec00adc3f8fe3adb815e79406e56fc4f82a04729421779cd9bdde46cd09bd855f8e6ca32d13eb10046b0314e475dc32b496e49d579c230
|
7
|
+
data.tar.gz: 1c7db0d33d5a9ee807be2585d8ce8b55f88ef97f7c3c94bba6686470aa6a067917d09d5ce1412b5f640311912bd4959a58e046c3179d91553ef444568a35df5e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-sqladmin_v1
|
2
2
|
|
3
|
+
### v0.10.0 (2021-11-19)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211110
|
6
|
+
|
7
|
+
### v0.9.0 (2021-11-04)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211023
|
10
|
+
|
11
|
+
### v0.8.0 (2021-10-27)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211017
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.7.0 (2021-10-08)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210929
|
19
|
+
|
3
20
|
### v0.6.0 (2021-09-21)
|
4
21
|
|
5
22
|
* Regenerated from discovery document revision 20210913
|
data/OVERVIEW.md
CHANGED
@@ -60,8 +60,8 @@ See the class reference docs for information on the methods you can call from a
|
|
60
60
|
|
61
61
|
More detailed descriptions of the Google simple REST clients are available in two documents.
|
62
62
|
|
63
|
-
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
64
|
-
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/
|
63
|
+
* The [Usage Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/usage-guide.md) discusses how to make API calls, how to use the provided data structures, and how to work the various features of the client library, including media upload and download, error handling, retries, pagination, and logging.
|
64
|
+
* The [Auth Guide](https://github.com/googleapis/google-api-ruby-client/blob/main/docs/auth-guide.md) discusses authentication in the client libraries, including API keys, OAuth 2.0, service accounts, and environment variables.
|
65
65
|
|
66
66
|
(Note: the above documents are written for the simple REST clients in general, and their examples may not reflect the Sqladmin service in particular.)
|
67
67
|
|
@@ -271,7 +271,7 @@ module Google
|
|
271
271
|
# @return [String]
|
272
272
|
attr_accessor :instance
|
273
273
|
|
274
|
-
# This is always
|
274
|
+
# This is always **sql#backupRun**.
|
275
275
|
# Corresponds to the JSON property `kind`
|
276
276
|
# @return [String]
|
277
277
|
attr_accessor :kind
|
@@ -345,7 +345,7 @@ module Google
|
|
345
345
|
# @return [Array<Google::Apis::SqladminV1::BackupRun>]
|
346
346
|
attr_accessor :items
|
347
347
|
|
348
|
-
# This is always
|
348
|
+
# This is always **sql#backupRunsList**.
|
349
349
|
# Corresponds to the JSON property `kind`
|
350
350
|
# @return [String]
|
351
351
|
attr_accessor :kind
|
@@ -382,7 +382,7 @@ module Google
|
|
382
382
|
# @return [Fixnum]
|
383
383
|
attr_accessor :bin_log_position
|
384
384
|
|
385
|
-
# This is always
|
385
|
+
# This is always **sql#binLogCoordinates**.
|
386
386
|
# Corresponds to the JSON property `kind`
|
387
387
|
# @return [String]
|
388
388
|
attr_accessor :kind
|
@@ -413,7 +413,7 @@ module Google
|
|
413
413
|
# @return [String]
|
414
414
|
attr_accessor :destination_instance_name
|
415
415
|
|
416
|
-
# This is always
|
416
|
+
# This is always **sql#cloneContext**.
|
417
417
|
# Corresponds to the JSON property `kind`
|
418
418
|
# @return [String]
|
419
419
|
attr_accessor :kind
|
@@ -602,9 +602,10 @@ module Google
|
|
602
602
|
class DatabaseInstance
|
603
603
|
include Google::Apis::Core::Hashable
|
604
604
|
|
605
|
-
#
|
606
|
-
# is not managed by Google. This property is read-only; use
|
607
|
-
# in the
|
605
|
+
# The backend type. **SECOND_GEN**: Cloud SQL database instance. **EXTERNAL**: A
|
606
|
+
# database server that is not managed by Google. This property is read-only; use
|
607
|
+
# the **tier** property in the **settings** object to determine the database
|
608
|
+
# type.
|
608
609
|
# Corresponds to the JSON property `backendType`
|
609
610
|
# @return [String]
|
610
611
|
attr_accessor :backend_type
|
@@ -622,18 +623,22 @@ module Google
|
|
622
623
|
|
623
624
|
# The current disk usage of the instance in bytes. This property has been
|
624
625
|
# deprecated. Use the "cloudsql.googleapis.com/database/disk/bytes_used" metric
|
625
|
-
# in Cloud Monitoring API instead. Please see this announcement
|
626
|
+
# in Cloud Monitoring API instead. Please see [this announcement](https://groups.
|
627
|
+
# google.com/d/msg/google-cloud-sql-announce/I_7-F9EBhT0/BtvFtdFeAgAJ) for
|
628
|
+
# details.
|
626
629
|
# Corresponds to the JSON property `currentDiskSize`
|
627
630
|
# @return [Fixnum]
|
628
631
|
attr_accessor :current_disk_size
|
629
632
|
|
630
|
-
#
|
631
|
-
#
|
632
|
-
#
|
633
|
-
#
|
634
|
-
#
|
635
|
-
|
636
|
-
|
633
|
+
# Output only. The databaseInstalledVersion stores the current fully resolved
|
634
|
+
# database version running on the instance including minor version such as
|
635
|
+
# MYSQL_5_6_50
|
636
|
+
# Corresponds to the JSON property `databaseInstalledVersion`
|
637
|
+
# @return [String]
|
638
|
+
attr_accessor :database_installed_version
|
639
|
+
|
640
|
+
# The database engine type and version. The **databaseVersion** field cannot be
|
641
|
+
# changed after instance creation.
|
637
642
|
# Corresponds to the JSON property `databaseVersion`
|
638
643
|
# @return [String]
|
639
644
|
attr_accessor :database_version
|
@@ -649,7 +654,7 @@ module Google
|
|
649
654
|
attr_accessor :disk_encryption_status
|
650
655
|
|
651
656
|
# This field is deprecated and will be removed from a future version of the API.
|
652
|
-
# Use the
|
657
|
+
# Use the **settings.settingsVersion** field instead.
|
653
658
|
# Corresponds to the JSON property `etag`
|
654
659
|
# @return [String]
|
655
660
|
attr_accessor :etag
|
@@ -666,10 +671,7 @@ module Google
|
|
666
671
|
# @return [String]
|
667
672
|
attr_accessor :gce_zone
|
668
673
|
|
669
|
-
# The instance type.
|
670
|
-
# Cloud SQL instance that is not replicating from a primary instance. *
|
671
|
-
# ON_PREMISES_INSTANCE*: An instance running on the customer's premises. *
|
672
|
-
# READ_REPLICA_INSTANCE*: A Cloud SQL instance configured as a read-replica.
|
674
|
+
# The instance type.
|
673
675
|
# Corresponds to the JSON property `instanceType`
|
674
676
|
# @return [String]
|
675
677
|
attr_accessor :instance_type
|
@@ -685,7 +687,7 @@ module Google
|
|
685
687
|
# @return [String]
|
686
688
|
attr_accessor :ipv6_address
|
687
689
|
|
688
|
-
# This is always
|
690
|
+
# This is always **sql#instance**.
|
689
691
|
# Corresponds to the JSON property `kind`
|
690
692
|
# @return [String]
|
691
693
|
attr_accessor :kind
|
@@ -721,10 +723,10 @@ module Google
|
|
721
723
|
# @return [String]
|
722
724
|
attr_accessor :project
|
723
725
|
|
724
|
-
# The geographical region. Can be *us-central
|
725
|
-
#
|
726
|
-
# Defaults to
|
727
|
-
# region cannot be changed after instance creation.
|
726
|
+
# The geographical region. Can be: * **us-central** (**FIRST_GEN** instances
|
727
|
+
# only) * **us-central1** (**SECOND_GEN** instances only) * **asia-east1** or **
|
728
|
+
# europe-west1**. Defaults to **us-central** or **us-central1** depending on the
|
729
|
+
# instance type. The region cannot be changed after instance creation.
|
728
730
|
# Corresponds to the JSON property `region`
|
729
731
|
# @return [String]
|
730
732
|
attr_accessor :region
|
@@ -784,13 +786,7 @@ module Google
|
|
784
786
|
# @return [Google::Apis::SqladminV1::Settings]
|
785
787
|
attr_accessor :settings
|
786
788
|
|
787
|
-
# The current serving state of the Cloud SQL instance.
|
788
|
-
# following. *SQL_INSTANCE_STATE_UNSPECIFIED*: The state of the instance is
|
789
|
-
# unknown. *RUNNABLE*: The instance is running, or has been stopped by owner. *
|
790
|
-
# SUSPENDED*: The instance is not available, for example due to problems with
|
791
|
-
# billing. *PENDING_DELETE*: The instance is being deleted. *PENDING_CREATE*:
|
792
|
-
# The instance is being created. *MAINTENANCE*: The instance is down for
|
793
|
-
# maintenance. *FAILED*: The instance creation failed.
|
789
|
+
# The current serving state of the Cloud SQL instance.
|
794
790
|
# Corresponds to the JSON property `state`
|
795
791
|
# @return [String]
|
796
792
|
attr_accessor :state
|
@@ -810,6 +806,7 @@ module Google
|
|
810
806
|
@connection_name = args[:connection_name] if args.key?(:connection_name)
|
811
807
|
@create_time = args[:create_time] if args.key?(:create_time)
|
812
808
|
@current_disk_size = args[:current_disk_size] if args.key?(:current_disk_size)
|
809
|
+
@database_installed_version = args[:database_installed_version] if args.key?(:database_installed_version)
|
813
810
|
@database_version = args[:database_version] if args.key?(:database_version)
|
814
811
|
@disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
|
815
812
|
@disk_encryption_status = args[:disk_encryption_status] if args.key?(:disk_encryption_status)
|
@@ -881,7 +878,7 @@ module Google
|
|
881
878
|
# @return [Array<Google::Apis::SqladminV1::Database>]
|
882
879
|
attr_accessor :items
|
883
880
|
|
884
|
-
# This is always
|
881
|
+
# This is always **sql#databasesList**.
|
885
882
|
# Corresponds to the JSON property `kind`
|
886
883
|
# @return [String]
|
887
884
|
attr_accessor :kind
|
@@ -926,7 +923,7 @@ module Google
|
|
926
923
|
class DemoteMasterContext
|
927
924
|
include Google::Apis::Core::Hashable
|
928
925
|
|
929
|
-
# This is always
|
926
|
+
# This is always **sql#demoteMasterContext**.
|
930
927
|
# Corresponds to the JSON property `kind`
|
931
928
|
# @return [String]
|
932
929
|
attr_accessor :kind
|
@@ -1122,22 +1119,20 @@ module Google
|
|
1122
1119
|
# @return [Google::Apis::SqladminV1::ExportContext::CsvExportOptions]
|
1123
1120
|
attr_accessor :csv_export_options
|
1124
1121
|
|
1125
|
-
# Databases to be exported.
|
1126
|
-
#
|
1127
|
-
#
|
1128
|
-
#
|
1129
|
-
#
|
1130
|
-
#
|
1131
|
-
#
|
1132
|
-
#
|
1133
|
-
#
|
1122
|
+
# Databases to be exported. **MySQL instances:** If **fileType** is **SQL** and
|
1123
|
+
# no database is specified, all databases are exported, except for the **mysql**
|
1124
|
+
# system database. If **fileType** is **CSV**, you can specify one database,
|
1125
|
+
# either by using this property or by using the **csvExportOptions.selectQuery**
|
1126
|
+
# property, which takes precedence over this property. **PostgreSQL instances:**
|
1127
|
+
# You must specify one database to be exported. If **fileType** is **CSV**, this
|
1128
|
+
# database must match the one specified in the **csvExportOptions.selectQuery**
|
1129
|
+
# property. **SQL Server instances:** You must specify one database to be
|
1130
|
+
# exported, and the **fileType** must be **BAK**.
|
1134
1131
|
# Corresponds to the JSON property `databases`
|
1135
1132
|
# @return [Array<String>]
|
1136
1133
|
attr_accessor :databases
|
1137
1134
|
|
1138
|
-
# The file type for the specified uri.
|
1139
|
-
# statements. * **CSV**: The file contains CSV data. * **BAK**: The file
|
1140
|
-
# contains backup data for a SQL Server instance.
|
1135
|
+
# The file type for the specified uri.
|
1141
1136
|
# Corresponds to the JSON property `fileType`
|
1142
1137
|
# @return [String]
|
1143
1138
|
attr_accessor :file_type
|
@@ -1264,10 +1259,10 @@ module Google
|
|
1264
1259
|
class MysqlExportOptions
|
1265
1260
|
include Google::Apis::Core::Hashable
|
1266
1261
|
|
1267
|
-
# Option to include SQL statement required to set up replication.
|
1268
|
-
#
|
1269
|
-
# coordinates, and --set-gtid-purged is set to ON.
|
1270
|
-
# MASTER TO statement is written as a SQL comment and has no effect.
|
1262
|
+
# Option to include SQL statement required to set up replication. If set to **1**
|
1263
|
+
# , the dump file includes a CHANGE MASTER TO statement with the binary log
|
1264
|
+
# coordinates, and --set-gtid-purged is set to ON. If set to **2**, the CHANGE
|
1265
|
+
# MASTER TO statement is written as a SQL comment and has no effect. If set to
|
1271
1266
|
# any value other than **1**, --set-gtid-purged is set to OFF.
|
1272
1267
|
# Corresponds to the JSON property `masterData`
|
1273
1268
|
# @return [Fixnum]
|
@@ -1289,7 +1284,7 @@ module Google
|
|
1289
1284
|
class FailoverContext
|
1290
1285
|
include Google::Apis::Core::Hashable
|
1291
1286
|
|
1292
|
-
# This is always
|
1287
|
+
# This is always **sql#failoverContext**.
|
1293
1288
|
# Corresponds to the JSON property `kind`
|
1294
1289
|
# @return [String]
|
1295
1290
|
attr_accessor :kind
|
@@ -1436,6 +1431,11 @@ module Google
|
|
1436
1431
|
# @return [String]
|
1437
1432
|
attr_accessor :read_time
|
1438
1433
|
|
1434
|
+
# Optional. If set, it will contain the cert valid duration.
|
1435
|
+
# Corresponds to the JSON property `validDuration`
|
1436
|
+
# @return [String]
|
1437
|
+
attr_accessor :valid_duration
|
1438
|
+
|
1439
1439
|
def initialize(**args)
|
1440
1440
|
update!(**args)
|
1441
1441
|
end
|
@@ -1445,6 +1445,7 @@ module Google
|
|
1445
1445
|
@access_token = args[:access_token] if args.key?(:access_token)
|
1446
1446
|
@public_key = args[:public_key] if args.key?(:public_key)
|
1447
1447
|
@read_time = args[:read_time] if args.key?(:read_time)
|
1448
|
+
@valid_duration = args[:valid_duration] if args.key?(:valid_duration)
|
1448
1449
|
end
|
1449
1450
|
end
|
1450
1451
|
|
@@ -1824,7 +1825,7 @@ module Google
|
|
1824
1825
|
# @return [Array<Google::Apis::SqladminV1::DatabaseInstance>]
|
1825
1826
|
attr_accessor :items
|
1826
1827
|
|
1827
|
-
# This is always
|
1828
|
+
# This is always **sql#instancesList**.
|
1828
1829
|
# Corresponds to the JSON property `kind`
|
1829
1830
|
# @return [String]
|
1830
1831
|
attr_accessor :kind
|
@@ -1867,7 +1868,7 @@ module Google
|
|
1867
1868
|
# @return [Array<Google::Apis::SqladminV1::SslCert>]
|
1868
1869
|
attr_accessor :certs
|
1869
1870
|
|
1870
|
-
# This is always
|
1871
|
+
# This is always **sql#instancesListServerCas**.
|
1871
1872
|
# Corresponds to the JSON property `kind`
|
1872
1873
|
# @return [String]
|
1873
1874
|
attr_accessor :kind
|
@@ -1951,7 +1952,6 @@ module Google
|
|
1951
1952
|
# created in the allocated range. The range name must comply with [RFC 1035](
|
1952
1953
|
# https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63
|
1953
1954
|
# characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
|
1954
|
-
# Reserved for future use.
|
1955
1955
|
# Corresponds to the JSON property `allocatedIpRange`
|
1956
1956
|
# @return [String]
|
1957
1957
|
attr_accessor :allocated_ip_range
|
@@ -2250,7 +2250,7 @@ module Google
|
|
2250
2250
|
# @return [String]
|
2251
2251
|
attr_accessor :host_port
|
2252
2252
|
|
2253
|
-
# This is always
|
2253
|
+
# This is always **sql#onPremisesConfiguration**.
|
2254
2254
|
# Corresponds to the JSON property `kind`
|
2255
2255
|
# @return [String]
|
2256
2256
|
attr_accessor :kind
|
@@ -2357,8 +2357,7 @@ module Google
|
|
2357
2357
|
# @return [String]
|
2358
2358
|
attr_accessor :start_time
|
2359
2359
|
|
2360
|
-
# The status of an operation.
|
2361
|
-
# DONE** * **SQL_OPERATION_STATUS_UNSPECIFIED**
|
2360
|
+
# The status of an operation.
|
2362
2361
|
# Corresponds to the JSON property `status`
|
2363
2362
|
# @return [String]
|
2364
2363
|
attr_accessor :status
|
@@ -2473,7 +2472,7 @@ module Google
|
|
2473
2472
|
# @return [Array<Google::Apis::SqladminV1::Operation>]
|
2474
2473
|
attr_accessor :items
|
2475
2474
|
|
2476
|
-
# This is always
|
2475
|
+
# This is always **sql#operationsList**.
|
2477
2476
|
# Corresponds to the JSON property `kind`
|
2478
2477
|
# @return [String]
|
2479
2478
|
attr_accessor :kind
|
@@ -2496,12 +2495,82 @@ module Google
|
|
2496
2495
|
end
|
2497
2496
|
end
|
2498
2497
|
|
2498
|
+
# Read-only password status.
|
2499
|
+
class PasswordStatus
|
2500
|
+
include Google::Apis::Core::Hashable
|
2501
|
+
|
2502
|
+
# If true, user does not have login privileges.
|
2503
|
+
# Corresponds to the JSON property `locked`
|
2504
|
+
# @return [Boolean]
|
2505
|
+
attr_accessor :locked
|
2506
|
+
alias_method :locked?, :locked
|
2507
|
+
|
2508
|
+
# The expiration time of the current password.
|
2509
|
+
# Corresponds to the JSON property `passwordExpirationTime`
|
2510
|
+
# @return [String]
|
2511
|
+
attr_accessor :password_expiration_time
|
2512
|
+
|
2513
|
+
def initialize(**args)
|
2514
|
+
update!(**args)
|
2515
|
+
end
|
2516
|
+
|
2517
|
+
# Update properties of this object
|
2518
|
+
def update!(**args)
|
2519
|
+
@locked = args[:locked] if args.key?(:locked)
|
2520
|
+
@password_expiration_time = args[:password_expiration_time] if args.key?(:password_expiration_time)
|
2521
|
+
end
|
2522
|
+
end
|
2523
|
+
|
2524
|
+
# Database instance local user password validation policy
|
2525
|
+
class PasswordValidationPolicy
|
2526
|
+
include Google::Apis::Core::Hashable
|
2527
|
+
|
2528
|
+
# The complexity of the password.
|
2529
|
+
# Corresponds to the JSON property `complexity`
|
2530
|
+
# @return [String]
|
2531
|
+
attr_accessor :complexity
|
2532
|
+
|
2533
|
+
# Disallow username as a part of the password.
|
2534
|
+
# Corresponds to the JSON property `disallowUsernameSubstring`
|
2535
|
+
# @return [Boolean]
|
2536
|
+
attr_accessor :disallow_username_substring
|
2537
|
+
alias_method :disallow_username_substring?, :disallow_username_substring
|
2538
|
+
|
2539
|
+
# Minimum number of characters allowed.
|
2540
|
+
# Corresponds to the JSON property `minLength`
|
2541
|
+
# @return [Fixnum]
|
2542
|
+
attr_accessor :min_length
|
2543
|
+
|
2544
|
+
# Minimum interval after which the password can be changed.
|
2545
|
+
# Corresponds to the JSON property `passwordChangeInterval`
|
2546
|
+
# @return [String]
|
2547
|
+
attr_accessor :password_change_interval
|
2548
|
+
|
2549
|
+
# Number of previous passwords that cannot be reused.
|
2550
|
+
# Corresponds to the JSON property `reuseInterval`
|
2551
|
+
# @return [Fixnum]
|
2552
|
+
attr_accessor :reuse_interval
|
2553
|
+
|
2554
|
+
def initialize(**args)
|
2555
|
+
update!(**args)
|
2556
|
+
end
|
2557
|
+
|
2558
|
+
# Update properties of this object
|
2559
|
+
def update!(**args)
|
2560
|
+
@complexity = args[:complexity] if args.key?(:complexity)
|
2561
|
+
@disallow_username_substring = args[:disallow_username_substring] if args.key?(:disallow_username_substring)
|
2562
|
+
@min_length = args[:min_length] if args.key?(:min_length)
|
2563
|
+
@password_change_interval = args[:password_change_interval] if args.key?(:password_change_interval)
|
2564
|
+
@reuse_interval = args[:reuse_interval] if args.key?(:reuse_interval)
|
2565
|
+
end
|
2566
|
+
end
|
2567
|
+
|
2499
2568
|
# Read-replica configuration for connecting to the primary instance.
|
2500
2569
|
class ReplicaConfiguration
|
2501
2570
|
include Google::Apis::Core::Hashable
|
2502
2571
|
|
2503
|
-
# Specifies if the replica is the failover target. If the field is set to
|
2504
|
-
# the replica will be designated as a failover replica. In case the primary
|
2572
|
+
# Specifies if the replica is the failover target. If the field is set to **true*
|
2573
|
+
# * the replica will be designated as a failover replica. In case the primary
|
2505
2574
|
# instance fails, the replica instance will be promoted as the new primary
|
2506
2575
|
# instance. Only one replica can be specified as failover target, and the
|
2507
2576
|
# replica has to be in different zone with the primary instance.
|
@@ -2510,7 +2579,7 @@ module Google
|
|
2510
2579
|
attr_accessor :failover_target
|
2511
2580
|
alias_method :failover_target?, :failover_target
|
2512
2581
|
|
2513
|
-
# This is always
|
2582
|
+
# This is always **sql#replicaConfiguration**.
|
2514
2583
|
# Corresponds to the JSON property `kind`
|
2515
2584
|
# @return [String]
|
2516
2585
|
attr_accessor :kind
|
@@ -2574,7 +2643,7 @@ module Google
|
|
2574
2643
|
# @return [String]
|
2575
2644
|
attr_accessor :instance_id
|
2576
2645
|
|
2577
|
-
# This is always
|
2646
|
+
# This is always **sql#restoreBackupContext**.
|
2578
2647
|
# Corresponds to the JSON property `kind`
|
2579
2648
|
# @return [String]
|
2580
2649
|
attr_accessor :kind
|
@@ -2601,7 +2670,7 @@ module Google
|
|
2601
2670
|
class RotateServerCaContext
|
2602
2671
|
include Google::Apis::Core::Hashable
|
2603
2672
|
|
2604
|
-
# This is always
|
2673
|
+
# This is always **sql#rotateServerCaContext**.
|
2605
2674
|
# Corresponds to the JSON property `kind`
|
2606
2675
|
# @return [String]
|
2607
2676
|
attr_accessor :kind
|
@@ -2732,6 +2801,11 @@ module Google
|
|
2732
2801
|
# @return [Google::Apis::SqladminV1::MaintenanceWindow]
|
2733
2802
|
attr_accessor :maintenance_window
|
2734
2803
|
|
2804
|
+
# Database instance local user password validation policy
|
2805
|
+
# Corresponds to the JSON property `passwordValidationPolicy`
|
2806
|
+
# @return [Google::Apis::SqladminV1::PasswordValidationPolicy]
|
2807
|
+
attr_accessor :password_validation_policy
|
2808
|
+
|
2735
2809
|
# The pricing plan for this instance. This can be either **PER_USE** or **
|
2736
2810
|
# PACKAGE**. Only **PER_USE** is supported for Second Generation instances.
|
2737
2811
|
# Corresponds to the JSON property `pricingPlan`
|
@@ -2805,6 +2879,7 @@ module Google
|
|
2805
2879
|
@kind = args[:kind] if args.key?(:kind)
|
2806
2880
|
@location_preference = args[:location_preference] if args.key?(:location_preference)
|
2807
2881
|
@maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
|
2882
|
+
@password_validation_policy = args[:password_validation_policy] if args.key?(:password_validation_policy)
|
2808
2883
|
@pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
|
2809
2884
|
@replication_type = args[:replication_type] if args.key?(:replication_type)
|
2810
2885
|
@settings_version = args[:settings_version] if args.key?(:settings_version)
|
@@ -2850,7 +2925,7 @@ module Google
|
|
2850
2925
|
# @return [String]
|
2851
2926
|
attr_accessor :detail
|
2852
2927
|
|
2853
|
-
# Can be
|
2928
|
+
# Can be **sql#externalSyncSettingError** or **sql#externalSyncSettingWarning**.
|
2854
2929
|
# Corresponds to the JSON property `kind`
|
2855
2930
|
# @return [String]
|
2856
2931
|
attr_accessor :kind
|
@@ -2971,7 +3046,7 @@ module Google
|
|
2971
3046
|
# @return [Array<Google::Apis::SqladminV1::SqlExternalSyncSettingError>]
|
2972
3047
|
attr_accessor :errors
|
2973
3048
|
|
2974
|
-
# This is always
|
3049
|
+
# This is always **sql#migrationSettingErrorList**.
|
2975
3050
|
# Corresponds to the JSON property `kind`
|
2976
3051
|
# @return [String]
|
2977
3052
|
attr_accessor :kind
|
@@ -3286,7 +3361,7 @@ module Google
|
|
3286
3361
|
# @return [Google::Apis::SqladminV1::SslCertDetail]
|
3287
3362
|
attr_accessor :client_cert
|
3288
3363
|
|
3289
|
-
# This is always
|
3364
|
+
# This is always **sql#sslCertsInsert**.
|
3290
3365
|
# Corresponds to the JSON property `kind`
|
3291
3366
|
# @return [String]
|
3292
3367
|
attr_accessor :kind
|
@@ -3325,7 +3400,7 @@ module Google
|
|
3325
3400
|
# @return [Array<Google::Apis::SqladminV1::SslCert>]
|
3326
3401
|
attr_accessor :items
|
3327
3402
|
|
3328
|
-
# This is always
|
3403
|
+
# This is always **sql#sslCertsList**.
|
3329
3404
|
# Corresponds to the JSON property `kind`
|
3330
3405
|
# @return [String]
|
3331
3406
|
attr_accessor :kind
|
@@ -3382,7 +3457,7 @@ module Google
|
|
3382
3457
|
# @return [Fixnum]
|
3383
3458
|
attr_accessor :ram
|
3384
3459
|
|
3385
|
-
# This is always
|
3460
|
+
# This is always **sql#tier**.
|
3386
3461
|
# Corresponds to the JSON property `kind`
|
3387
3462
|
# @return [String]
|
3388
3463
|
attr_accessor :kind
|
@@ -3393,7 +3468,7 @@ module Google
|
|
3393
3468
|
attr_accessor :region
|
3394
3469
|
|
3395
3470
|
# An identifier for the machine type, for example, db-custom-1-3840. For related
|
3396
|
-
# information, see Pricing.
|
3471
|
+
# information, see [Pricing](/sql/pricing).
|
3397
3472
|
# Corresponds to the JSON property `tier`
|
3398
3473
|
# @return [String]
|
3399
3474
|
attr_accessor :tier
|
@@ -3421,7 +3496,7 @@ module Google
|
|
3421
3496
|
# @return [Array<Google::Apis::SqladminV1::Tier>]
|
3422
3497
|
attr_accessor :items
|
3423
3498
|
|
3424
|
-
# This is always
|
3499
|
+
# This is always **sql#tiersList**.
|
3425
3500
|
# Corresponds to the JSON property `kind`
|
3426
3501
|
# @return [String]
|
3427
3502
|
attr_accessor :kind
|
@@ -3441,13 +3516,13 @@ module Google
|
|
3441
3516
|
class TruncateLogContext
|
3442
3517
|
include Google::Apis::Core::Hashable
|
3443
3518
|
|
3444
|
-
# This is always
|
3519
|
+
# This is always **sql#truncateLogContext**.
|
3445
3520
|
# Corresponds to the JSON property `kind`
|
3446
3521
|
# @return [String]
|
3447
3522
|
attr_accessor :kind
|
3448
3523
|
|
3449
|
-
# The type of log to truncate. Valid values are
|
3450
|
-
# MYSQL_SLOW_TABLE
|
3524
|
+
# The type of log to truncate. Valid values are **MYSQL_GENERAL_TABLE** and **
|
3525
|
+
# MYSQL_SLOW_TABLE**.
|
3451
3526
|
# Corresponds to the JSON property `logType`
|
3452
3527
|
# @return [String]
|
3453
3528
|
attr_accessor :log_type
|
@@ -3472,25 +3547,27 @@ module Google
|
|
3472
3547
|
# @return [String]
|
3473
3548
|
attr_accessor :etag
|
3474
3549
|
|
3475
|
-
# The host name from which the user can connect. For
|
3476
|
-
# defaults to an empty string. For
|
3477
|
-
# part of the request URL. The host name cannot be updated after
|
3550
|
+
# Optional. The host name from which the user can connect. For **insert**
|
3551
|
+
# operations, host defaults to an empty string. For **update** operations, host
|
3552
|
+
# is specified as part of the request URL. The host name cannot be updated after
|
3553
|
+
# insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server
|
3554
|
+
# instance, it's optional.
|
3478
3555
|
# Corresponds to the JSON property `host`
|
3479
3556
|
# @return [String]
|
3480
3557
|
attr_accessor :host
|
3481
3558
|
|
3482
3559
|
# The name of the Cloud SQL instance. This does not include the project ID. Can
|
3483
|
-
# be omitted for
|
3560
|
+
# be omitted for **update** since it is already specified on the URL.
|
3484
3561
|
# Corresponds to the JSON property `instance`
|
3485
3562
|
# @return [String]
|
3486
3563
|
attr_accessor :instance
|
3487
3564
|
|
3488
|
-
# This is always
|
3565
|
+
# This is always **sql#user**.
|
3489
3566
|
# Corresponds to the JSON property `kind`
|
3490
3567
|
# @return [String]
|
3491
3568
|
attr_accessor :kind
|
3492
3569
|
|
3493
|
-
# The name of the user in the Cloud SQL instance. Can be omitted for
|
3570
|
+
# The name of the user in the Cloud SQL instance. Can be omitted for **update**
|
3494
3571
|
# since it is already specified in the URL.
|
3495
3572
|
# Corresponds to the JSON property `name`
|
3496
3573
|
# @return [String]
|
@@ -3501,9 +3578,14 @@ module Google
|
|
3501
3578
|
# @return [String]
|
3502
3579
|
attr_accessor :password
|
3503
3580
|
|
3581
|
+
# User level password validation policy.
|
3582
|
+
# Corresponds to the JSON property `passwordPolicy`
|
3583
|
+
# @return [Google::Apis::SqladminV1::UserPasswordValidationPolicy]
|
3584
|
+
attr_accessor :password_policy
|
3585
|
+
|
3504
3586
|
# The project ID of the project containing the Cloud SQL database. The Google
|
3505
|
-
# apps domain is prefixed if applicable. Can be omitted for
|
3506
|
-
# already specified on the URL.
|
3587
|
+
# apps domain is prefixed if applicable. Can be omitted for **update** since it
|
3588
|
+
# is already specified on the URL.
|
3507
3589
|
# Corresponds to the JSON property `project`
|
3508
3590
|
# @return [String]
|
3509
3591
|
attr_accessor :project
|
@@ -3531,12 +3613,51 @@ module Google
|
|
3531
3613
|
@kind = args[:kind] if args.key?(:kind)
|
3532
3614
|
@name = args[:name] if args.key?(:name)
|
3533
3615
|
@password = args[:password] if args.key?(:password)
|
3616
|
+
@password_policy = args[:password_policy] if args.key?(:password_policy)
|
3534
3617
|
@project = args[:project] if args.key?(:project)
|
3535
3618
|
@sqlserver_user_details = args[:sqlserver_user_details] if args.key?(:sqlserver_user_details)
|
3536
3619
|
@type = args[:type] if args.key?(:type)
|
3537
3620
|
end
|
3538
3621
|
end
|
3539
3622
|
|
3623
|
+
# User level password validation policy.
|
3624
|
+
class UserPasswordValidationPolicy
|
3625
|
+
include Google::Apis::Core::Hashable
|
3626
|
+
|
3627
|
+
# Number of failed login attempts allowed before user get locked.
|
3628
|
+
# Corresponds to the JSON property `allowedFailedAttempts`
|
3629
|
+
# @return [Fixnum]
|
3630
|
+
attr_accessor :allowed_failed_attempts
|
3631
|
+
|
3632
|
+
# If true, failed login attempts check will be enabled.
|
3633
|
+
# Corresponds to the JSON property `enableFailedAttemptsCheck`
|
3634
|
+
# @return [Boolean]
|
3635
|
+
attr_accessor :enable_failed_attempts_check
|
3636
|
+
alias_method :enable_failed_attempts_check?, :enable_failed_attempts_check
|
3637
|
+
|
3638
|
+
# Expiration duration after password is updated.
|
3639
|
+
# Corresponds to the JSON property `passwordExpirationDuration`
|
3640
|
+
# @return [String]
|
3641
|
+
attr_accessor :password_expiration_duration
|
3642
|
+
|
3643
|
+
# Read-only password status.
|
3644
|
+
# Corresponds to the JSON property `status`
|
3645
|
+
# @return [Google::Apis::SqladminV1::PasswordStatus]
|
3646
|
+
attr_accessor :status
|
3647
|
+
|
3648
|
+
def initialize(**args)
|
3649
|
+
update!(**args)
|
3650
|
+
end
|
3651
|
+
|
3652
|
+
# Update properties of this object
|
3653
|
+
def update!(**args)
|
3654
|
+
@allowed_failed_attempts = args[:allowed_failed_attempts] if args.key?(:allowed_failed_attempts)
|
3655
|
+
@enable_failed_attempts_check = args[:enable_failed_attempts_check] if args.key?(:enable_failed_attempts_check)
|
3656
|
+
@password_expiration_duration = args[:password_expiration_duration] if args.key?(:password_expiration_duration)
|
3657
|
+
@status = args[:status] if args.key?(:status)
|
3658
|
+
end
|
3659
|
+
end
|
3660
|
+
|
3540
3661
|
# User list response.
|
3541
3662
|
class UsersListResponse
|
3542
3663
|
include Google::Apis::Core::Hashable
|
@@ -3546,7 +3667,7 @@ module Google
|
|
3546
3667
|
# @return [Array<Google::Apis::SqladminV1::User>]
|
3547
3668
|
attr_accessor :items
|
3548
3669
|
|
3549
|
-
# This is always
|
3670
|
+
# This is always **sql#usersList**.
|
3550
3671
|
# Corresponds to the JSON property `kind`
|
3551
3672
|
# @return [String]
|
3552
3673
|
attr_accessor :kind
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module SqladminV1
|
18
18
|
# Version of the google-apis-sqladmin_v1 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.10.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 = "
|
25
|
+
REVISION = "20211110"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -364,6 +364,18 @@ module Google
|
|
364
364
|
include Google::Apis::Core::JsonObjectSupport
|
365
365
|
end
|
366
366
|
|
367
|
+
class PasswordStatus
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
373
|
+
class PasswordValidationPolicy
|
374
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
375
|
+
|
376
|
+
include Google::Apis::Core::JsonObjectSupport
|
377
|
+
end
|
378
|
+
|
367
379
|
class ReplicaConfiguration
|
368
380
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
381
|
|
@@ -526,6 +538,12 @@ module Google
|
|
526
538
|
include Google::Apis::Core::JsonObjectSupport
|
527
539
|
end
|
528
540
|
|
541
|
+
class UserPasswordValidationPolicy
|
542
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
543
|
+
|
544
|
+
include Google::Apis::Core::JsonObjectSupport
|
545
|
+
end
|
546
|
+
|
529
547
|
class UsersListResponse
|
530
548
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
531
549
|
|
@@ -684,6 +702,7 @@ module Google
|
|
684
702
|
property :connection_name, as: 'connectionName'
|
685
703
|
property :create_time, as: 'createTime'
|
686
704
|
property :current_disk_size, :numeric_string => true, as: 'currentDiskSize'
|
705
|
+
property :database_installed_version, as: 'databaseInstalledVersion'
|
687
706
|
property :database_version, as: 'databaseVersion'
|
688
707
|
property :disk_encryption_configuration, as: 'diskEncryptionConfiguration', class: Google::Apis::SqladminV1::DiskEncryptionConfiguration, decorator: Google::Apis::SqladminV1::DiskEncryptionConfiguration::Representation
|
689
708
|
|
@@ -883,6 +902,7 @@ module Google
|
|
883
902
|
property :access_token, as: 'access_token'
|
884
903
|
property :public_key, as: 'public_key'
|
885
904
|
property :read_time, as: 'readTime'
|
905
|
+
property :valid_duration, as: 'validDuration'
|
886
906
|
end
|
887
907
|
end
|
888
908
|
|
@@ -1180,6 +1200,25 @@ module Google
|
|
1180
1200
|
end
|
1181
1201
|
end
|
1182
1202
|
|
1203
|
+
class PasswordStatus
|
1204
|
+
# @private
|
1205
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1206
|
+
property :locked, as: 'locked'
|
1207
|
+
property :password_expiration_time, as: 'passwordExpirationTime'
|
1208
|
+
end
|
1209
|
+
end
|
1210
|
+
|
1211
|
+
class PasswordValidationPolicy
|
1212
|
+
# @private
|
1213
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1214
|
+
property :complexity, as: 'complexity'
|
1215
|
+
property :disallow_username_substring, as: 'disallowUsernameSubstring'
|
1216
|
+
property :min_length, as: 'minLength'
|
1217
|
+
property :password_change_interval, as: 'passwordChangeInterval'
|
1218
|
+
property :reuse_interval, as: 'reuseInterval'
|
1219
|
+
end
|
1220
|
+
end
|
1221
|
+
|
1183
1222
|
class ReplicaConfiguration
|
1184
1223
|
# @private
|
1185
1224
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1244,6 +1283,8 @@ module Google
|
|
1244
1283
|
|
1245
1284
|
property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::SqladminV1::MaintenanceWindow, decorator: Google::Apis::SqladminV1::MaintenanceWindow::Representation
|
1246
1285
|
|
1286
|
+
property :password_validation_policy, as: 'passwordValidationPolicy', class: Google::Apis::SqladminV1::PasswordValidationPolicy, decorator: Google::Apis::SqladminV1::PasswordValidationPolicy::Representation
|
1287
|
+
|
1247
1288
|
property :pricing_plan, as: 'pricingPlan'
|
1248
1289
|
property :replication_type, as: 'replicationType'
|
1249
1290
|
property :settings_version, :numeric_string => true, as: 'settingsVersion'
|
@@ -1461,6 +1502,8 @@ module Google
|
|
1461
1502
|
property :kind, as: 'kind'
|
1462
1503
|
property :name, as: 'name'
|
1463
1504
|
property :password, as: 'password'
|
1505
|
+
property :password_policy, as: 'passwordPolicy', class: Google::Apis::SqladminV1::UserPasswordValidationPolicy, decorator: Google::Apis::SqladminV1::UserPasswordValidationPolicy::Representation
|
1506
|
+
|
1464
1507
|
property :project, as: 'project'
|
1465
1508
|
property :sqlserver_user_details, as: 'sqlserverUserDetails', class: Google::Apis::SqladminV1::SqlServerUserDetails, decorator: Google::Apis::SqladminV1::SqlServerUserDetails::Representation
|
1466
1509
|
|
@@ -1468,6 +1511,17 @@ module Google
|
|
1468
1511
|
end
|
1469
1512
|
end
|
1470
1513
|
|
1514
|
+
class UserPasswordValidationPolicy
|
1515
|
+
# @private
|
1516
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1517
|
+
property :allowed_failed_attempts, as: 'allowedFailedAttempts'
|
1518
|
+
property :enable_failed_attempts_check, as: 'enableFailedAttemptsCheck'
|
1519
|
+
property :password_expiration_duration, as: 'passwordExpirationDuration'
|
1520
|
+
property :status, as: 'status', class: Google::Apis::SqladminV1::PasswordStatus, decorator: Google::Apis::SqladminV1::PasswordStatus::Representation
|
1521
|
+
|
1522
|
+
end
|
1523
|
+
end
|
1524
|
+
|
1471
1525
|
class UsersListResponse
|
1472
1526
|
# @private
|
1473
1527
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -55,7 +55,8 @@ 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
|
+
# https://cloud.google.com/sql/docs/mysql/admin-api/rest/v1/backupRuns/list)
|
59
60
|
# method.
|
60
61
|
# @param [String] fields
|
61
62
|
# Selector specifying which fields to include in a partial response.
|
@@ -712,9 +713,10 @@ module Google
|
|
712
713
|
|
713
714
|
# Initiates a manual failover of a high availability (HA) primary instance to a
|
714
715
|
# 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
|
717
|
-
#
|
716
|
+
# to the new primary. For more information, see the [Overview of high
|
717
|
+
# availability](https://cloud.google.com/sql/docs/mysql/high-availability) page
|
718
|
+
# in the Cloud SQL documentation. If using Legacy HA (MySQL only), this causes
|
719
|
+
# the instance to failover to its failover replica instance.
|
718
720
|
# @param [String] project
|
719
721
|
# ID of the project that contains the read replica.
|
720
722
|
# @param [String] instance
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-sqladmin_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.10.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-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -57,9 +57,9 @@ licenses:
|
|
57
57
|
- Apache-2.0
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
|
-
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.
|
62
|
-
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/
|
60
|
+
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.10.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|