google-apis-sqladmin_v1beta4 0.17.0 → 0.21.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_v1beta4/classes.rb +201 -80
- data/lib/google/apis/sqladmin_v1beta4/gem_version.rb +2 -2
- data/lib/google/apis/sqladmin_v1beta4/representations.rb +54 -0
- data/lib/google/apis/sqladmin_v1beta4/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: e752ecf92c44d8f6b8401fa001350976298d2528b29003afff889a3e082aeaf1
|
4
|
+
data.tar.gz: 0f3bcb5b7fc10971dbc7a4a4ccad10299830256d9f4ef69a7990008126ed8ab8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '09fb884cebcffebf3edb8220dc56324f47a9b6e661838e9a50221f2f3deeaf28bb0f6505700be034badfe92e9501e0bed94fcd20d63766636d1c7a51d54e645b'
|
7
|
+
data.tar.gz: 1774f68322ac064145e57eb04465ac986c03268f8f756194a08c8d1c3a53139c47d54e6fb9d21b36ad4fd09988b4810163186dcfae4603d0cd91be4a042fe564
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,22 @@
|
|
1
1
|
# Release history for google-apis-sqladmin_v1beta4
|
2
2
|
|
3
|
+
### v0.21.0 (2021-11-19)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20211110
|
6
|
+
|
7
|
+
### v0.20.0 (2021-11-04)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20211023
|
10
|
+
|
11
|
+
### v0.19.0 (2021-10-27)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20211017
|
14
|
+
* Unspecified changes
|
15
|
+
|
16
|
+
### v0.18.0 (2021-10-08)
|
17
|
+
|
18
|
+
* Regenerated from discovery document revision 20210929
|
19
|
+
|
3
20
|
### v0.17.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
|
|
@@ -137,7 +137,7 @@ module Google
|
|
137
137
|
alias_method :replication_log_archiving_enabled?, :replication_log_archiving_enabled
|
138
138
|
|
139
139
|
# Start time for the daily backup configuration in UTC timezone in the 24 hour
|
140
|
-
# format -
|
140
|
+
# format - **HH:MM**.
|
141
141
|
# Corresponds to the JSON property `startTime`
|
142
142
|
# @return [String]
|
143
143
|
attr_accessor :start_time
|
@@ -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::SqladminV1beta4::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
|
@@ -575,8 +575,8 @@ module Google
|
|
575
575
|
|
576
576
|
# The name of the flag. These flags are passed at instance startup, so include
|
577
577
|
# both server options and system variables. Flags are specified with underscores,
|
578
|
-
# not hyphens. For more information, see Configuring Database Flags
|
579
|
-
# Cloud SQL documentation.
|
578
|
+
# not hyphens. For more information, see [Configuring Database Flags](https://
|
579
|
+
# cloud.google.com/sql/docs/mysql/flags) in the Cloud SQL documentation.
|
580
580
|
# Corresponds to the JSON property `name`
|
581
581
|
# @return [String]
|
582
582
|
attr_accessor :name
|
@@ -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::SqladminV1beta4::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::SqladminV1beta4::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,27 +1119,25 @@ module Google
|
|
1122
1119
|
# @return [Google::Apis::SqladminV1beta4::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
|
1144
1139
|
|
1145
|
-
# This is always
|
1140
|
+
# This is always **sql#exportContext**.
|
1146
1141
|
# Corresponds to the JSON property `kind`
|
1147
1142
|
# @return [String]
|
1148
1143
|
attr_accessor :kind
|
@@ -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
|
|
@@ -1563,8 +1564,8 @@ module Google
|
|
1563
1564
|
# @return [String]
|
1564
1565
|
attr_accessor :pvk_password
|
1565
1566
|
|
1566
|
-
# Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form
|
1567
|
-
# bucketName/fileName
|
1567
|
+
# Path to the Certificate Private Key (.pvk) in Cloud Storage, in the form **gs:/
|
1568
|
+
# /bucketName/fileName**. The instance must have write permissions to the bucket
|
1568
1569
|
# and read access to the file.
|
1569
1570
|
# Corresponds to the JSON property `pvkPath`
|
1570
1571
|
# @return [String]
|
@@ -1825,7 +1826,7 @@ module Google
|
|
1825
1826
|
# @return [Array<Google::Apis::SqladminV1beta4::DatabaseInstance>]
|
1826
1827
|
attr_accessor :items
|
1827
1828
|
|
1828
|
-
# This is always
|
1829
|
+
# This is always **sql#instancesList**.
|
1829
1830
|
# Corresponds to the JSON property `kind`
|
1830
1831
|
# @return [String]
|
1831
1832
|
attr_accessor :kind
|
@@ -1868,7 +1869,7 @@ module Google
|
|
1868
1869
|
# @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
|
1869
1870
|
attr_accessor :certs
|
1870
1871
|
|
1871
|
-
# This is always
|
1872
|
+
# This is always **sql#instancesListServerCas**.
|
1872
1873
|
# Corresponds to the JSON property `kind`
|
1873
1874
|
# @return [String]
|
1874
1875
|
attr_accessor :kind
|
@@ -1952,7 +1953,6 @@ module Google
|
|
1952
1953
|
# created in the allocated range. The range name must comply with [RFC 1035](
|
1953
1954
|
# https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63
|
1954
1955
|
# characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
|
1955
|
-
# Reserved for future use.
|
1956
1956
|
# Corresponds to the JSON property `allocatedIpRange`
|
1957
1957
|
# @return [String]
|
1958
1958
|
attr_accessor :allocated_ip_range
|
@@ -2251,7 +2251,7 @@ module Google
|
|
2251
2251
|
# @return [String]
|
2252
2252
|
attr_accessor :host_port
|
2253
2253
|
|
2254
|
-
# This is always
|
2254
|
+
# This is always **sql#onPremisesConfiguration**.
|
2255
2255
|
# Corresponds to the JSON property `kind`
|
2256
2256
|
# @return [String]
|
2257
2257
|
attr_accessor :kind
|
@@ -2358,8 +2358,7 @@ module Google
|
|
2358
2358
|
# @return [String]
|
2359
2359
|
attr_accessor :start_time
|
2360
2360
|
|
2361
|
-
# The status of an operation.
|
2362
|
-
# DONE** * **SQL_OPERATION_STATUS_UNSPECIFIED**
|
2361
|
+
# The status of an operation.
|
2363
2362
|
# Corresponds to the JSON property `status`
|
2364
2363
|
# @return [String]
|
2365
2364
|
attr_accessor :status
|
@@ -2474,7 +2473,7 @@ module Google
|
|
2474
2473
|
# @return [Array<Google::Apis::SqladminV1beta4::Operation>]
|
2475
2474
|
attr_accessor :items
|
2476
2475
|
|
2477
|
-
# This is always
|
2476
|
+
# This is always **sql#operationsList**.
|
2478
2477
|
# Corresponds to the JSON property `kind`
|
2479
2478
|
# @return [String]
|
2480
2479
|
attr_accessor :kind
|
@@ -2497,12 +2496,82 @@ module Google
|
|
2497
2496
|
end
|
2498
2497
|
end
|
2499
2498
|
|
2499
|
+
# Read-only password status.
|
2500
|
+
class PasswordStatus
|
2501
|
+
include Google::Apis::Core::Hashable
|
2502
|
+
|
2503
|
+
# If true, user does not have login privileges.
|
2504
|
+
# Corresponds to the JSON property `locked`
|
2505
|
+
# @return [Boolean]
|
2506
|
+
attr_accessor :locked
|
2507
|
+
alias_method :locked?, :locked
|
2508
|
+
|
2509
|
+
# The expiration time of the current password.
|
2510
|
+
# Corresponds to the JSON property `passwordExpirationTime`
|
2511
|
+
# @return [String]
|
2512
|
+
attr_accessor :password_expiration_time
|
2513
|
+
|
2514
|
+
def initialize(**args)
|
2515
|
+
update!(**args)
|
2516
|
+
end
|
2517
|
+
|
2518
|
+
# Update properties of this object
|
2519
|
+
def update!(**args)
|
2520
|
+
@locked = args[:locked] if args.key?(:locked)
|
2521
|
+
@password_expiration_time = args[:password_expiration_time] if args.key?(:password_expiration_time)
|
2522
|
+
end
|
2523
|
+
end
|
2524
|
+
|
2525
|
+
# Database instance local user password validation policy
|
2526
|
+
class PasswordValidationPolicy
|
2527
|
+
include Google::Apis::Core::Hashable
|
2528
|
+
|
2529
|
+
# The complexity of the password.
|
2530
|
+
# Corresponds to the JSON property `complexity`
|
2531
|
+
# @return [String]
|
2532
|
+
attr_accessor :complexity
|
2533
|
+
|
2534
|
+
# Disallow username as a part of the password.
|
2535
|
+
# Corresponds to the JSON property `disallowUsernameSubstring`
|
2536
|
+
# @return [Boolean]
|
2537
|
+
attr_accessor :disallow_username_substring
|
2538
|
+
alias_method :disallow_username_substring?, :disallow_username_substring
|
2539
|
+
|
2540
|
+
# Minimum number of characters allowed.
|
2541
|
+
# Corresponds to the JSON property `minLength`
|
2542
|
+
# @return [Fixnum]
|
2543
|
+
attr_accessor :min_length
|
2544
|
+
|
2545
|
+
# Minimum interval after which the password can be changed.
|
2546
|
+
# Corresponds to the JSON property `passwordChangeInterval`
|
2547
|
+
# @return [String]
|
2548
|
+
attr_accessor :password_change_interval
|
2549
|
+
|
2550
|
+
# Number of previous passwords that cannot be reused.
|
2551
|
+
# Corresponds to the JSON property `reuseInterval`
|
2552
|
+
# @return [Fixnum]
|
2553
|
+
attr_accessor :reuse_interval
|
2554
|
+
|
2555
|
+
def initialize(**args)
|
2556
|
+
update!(**args)
|
2557
|
+
end
|
2558
|
+
|
2559
|
+
# Update properties of this object
|
2560
|
+
def update!(**args)
|
2561
|
+
@complexity = args[:complexity] if args.key?(:complexity)
|
2562
|
+
@disallow_username_substring = args[:disallow_username_substring] if args.key?(:disallow_username_substring)
|
2563
|
+
@min_length = args[:min_length] if args.key?(:min_length)
|
2564
|
+
@password_change_interval = args[:password_change_interval] if args.key?(:password_change_interval)
|
2565
|
+
@reuse_interval = args[:reuse_interval] if args.key?(:reuse_interval)
|
2566
|
+
end
|
2567
|
+
end
|
2568
|
+
|
2500
2569
|
# Read-replica configuration for connecting to the primary instance.
|
2501
2570
|
class ReplicaConfiguration
|
2502
2571
|
include Google::Apis::Core::Hashable
|
2503
2572
|
|
2504
|
-
# Specifies if the replica is the failover target. If the field is set to
|
2505
|
-
# the replica will be designated as a failover replica. In case the primary
|
2573
|
+
# Specifies if the replica is the failover target. If the field is set to **true*
|
2574
|
+
# * the replica will be designated as a failover replica. In case the primary
|
2506
2575
|
# instance fails, the replica instance will be promoted as the new primary
|
2507
2576
|
# instance. Only one replica can be specified as failover target, and the
|
2508
2577
|
# replica has to be in different zone with the primary instance.
|
@@ -2511,7 +2580,7 @@ module Google
|
|
2511
2580
|
attr_accessor :failover_target
|
2512
2581
|
alias_method :failover_target?, :failover_target
|
2513
2582
|
|
2514
|
-
# This is always
|
2583
|
+
# This is always **sql#replicaConfiguration**.
|
2515
2584
|
# Corresponds to the JSON property `kind`
|
2516
2585
|
# @return [String]
|
2517
2586
|
attr_accessor :kind
|
@@ -2575,7 +2644,7 @@ module Google
|
|
2575
2644
|
# @return [String]
|
2576
2645
|
attr_accessor :instance_id
|
2577
2646
|
|
2578
|
-
# This is always
|
2647
|
+
# This is always **sql#restoreBackupContext**.
|
2579
2648
|
# Corresponds to the JSON property `kind`
|
2580
2649
|
# @return [String]
|
2581
2650
|
attr_accessor :kind
|
@@ -2602,7 +2671,7 @@ module Google
|
|
2602
2671
|
class RotateServerCaContext
|
2603
2672
|
include Google::Apis::Core::Hashable
|
2604
2673
|
|
2605
|
-
# This is always
|
2674
|
+
# This is always **sql#rotateServerCaContext**.
|
2606
2675
|
# Corresponds to the JSON property `kind`
|
2607
2676
|
# @return [String]
|
2608
2677
|
attr_accessor :kind
|
@@ -2733,6 +2802,11 @@ module Google
|
|
2733
2802
|
# @return [Google::Apis::SqladminV1beta4::MaintenanceWindow]
|
2734
2803
|
attr_accessor :maintenance_window
|
2735
2804
|
|
2805
|
+
# Database instance local user password validation policy
|
2806
|
+
# Corresponds to the JSON property `passwordValidationPolicy`
|
2807
|
+
# @return [Google::Apis::SqladminV1beta4::PasswordValidationPolicy]
|
2808
|
+
attr_accessor :password_validation_policy
|
2809
|
+
|
2736
2810
|
# The pricing plan for this instance. This can be either **PER_USE** or **
|
2737
2811
|
# PACKAGE**. Only **PER_USE** is supported for Second Generation instances.
|
2738
2812
|
# Corresponds to the JSON property `pricingPlan`
|
@@ -2806,6 +2880,7 @@ module Google
|
|
2806
2880
|
@kind = args[:kind] if args.key?(:kind)
|
2807
2881
|
@location_preference = args[:location_preference] if args.key?(:location_preference)
|
2808
2882
|
@maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
|
2883
|
+
@password_validation_policy = args[:password_validation_policy] if args.key?(:password_validation_policy)
|
2809
2884
|
@pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
|
2810
2885
|
@replication_type = args[:replication_type] if args.key?(:replication_type)
|
2811
2886
|
@settings_version = args[:settings_version] if args.key?(:settings_version)
|
@@ -2851,7 +2926,7 @@ module Google
|
|
2851
2926
|
# @return [String]
|
2852
2927
|
attr_accessor :detail
|
2853
2928
|
|
2854
|
-
# Can be
|
2929
|
+
# Can be **sql#externalSyncSettingError** or **sql#externalSyncSettingWarning**.
|
2855
2930
|
# Corresponds to the JSON property `kind`
|
2856
2931
|
# @return [String]
|
2857
2932
|
attr_accessor :kind
|
@@ -2972,7 +3047,7 @@ module Google
|
|
2972
3047
|
# @return [Array<Google::Apis::SqladminV1beta4::SqlExternalSyncSettingError>]
|
2973
3048
|
attr_accessor :errors
|
2974
3049
|
|
2975
|
-
# This is always
|
3050
|
+
# This is always **sql#migrationSettingErrorList**.
|
2976
3051
|
# Corresponds to the JSON property `kind`
|
2977
3052
|
# @return [String]
|
2978
3053
|
attr_accessor :kind
|
@@ -3287,7 +3362,7 @@ module Google
|
|
3287
3362
|
# @return [Google::Apis::SqladminV1beta4::SslCertDetail]
|
3288
3363
|
attr_accessor :client_cert
|
3289
3364
|
|
3290
|
-
# This is always
|
3365
|
+
# This is always **sql#sslCertsInsert**.
|
3291
3366
|
# Corresponds to the JSON property `kind`
|
3292
3367
|
# @return [String]
|
3293
3368
|
attr_accessor :kind
|
@@ -3326,7 +3401,7 @@ module Google
|
|
3326
3401
|
# @return [Array<Google::Apis::SqladminV1beta4::SslCert>]
|
3327
3402
|
attr_accessor :items
|
3328
3403
|
|
3329
|
-
# This is always
|
3404
|
+
# This is always **sql#sslCertsList**.
|
3330
3405
|
# Corresponds to the JSON property `kind`
|
3331
3406
|
# @return [String]
|
3332
3407
|
attr_accessor :kind
|
@@ -3442,13 +3517,13 @@ module Google
|
|
3442
3517
|
class TruncateLogContext
|
3443
3518
|
include Google::Apis::Core::Hashable
|
3444
3519
|
|
3445
|
-
# This is always
|
3520
|
+
# This is always **sql#truncateLogContext**.
|
3446
3521
|
# Corresponds to the JSON property `kind`
|
3447
3522
|
# @return [String]
|
3448
3523
|
attr_accessor :kind
|
3449
3524
|
|
3450
|
-
# The type of log to truncate. Valid values are
|
3451
|
-
# MYSQL_SLOW_TABLE
|
3525
|
+
# The type of log to truncate. Valid values are **MYSQL_GENERAL_TABLE** and **
|
3526
|
+
# MYSQL_SLOW_TABLE**.
|
3452
3527
|
# Corresponds to the JSON property `logType`
|
3453
3528
|
# @return [String]
|
3454
3529
|
attr_accessor :log_type
|
@@ -3473,9 +3548,11 @@ module Google
|
|
3473
3548
|
# @return [String]
|
3474
3549
|
attr_accessor :etag
|
3475
3550
|
|
3476
|
-
# The host name from which the user can connect. For
|
3477
|
-
# defaults to an empty string. For
|
3478
|
-
# part of the request URL. The host name cannot be updated after
|
3551
|
+
# Optional. The host name from which the user can connect. For **insert**
|
3552
|
+
# operations, host defaults to an empty string. For **update** operations, host
|
3553
|
+
# is specified as part of the request URL. The host name cannot be updated after
|
3554
|
+
# insertion. For a MySQL instance, it's required; for a PostgreSQL or SQL Server
|
3555
|
+
# instance, it's optional.
|
3479
3556
|
# Corresponds to the JSON property `host`
|
3480
3557
|
# @return [String]
|
3481
3558
|
attr_accessor :host
|
@@ -3491,7 +3568,7 @@ module Google
|
|
3491
3568
|
# @return [String]
|
3492
3569
|
attr_accessor :kind
|
3493
3570
|
|
3494
|
-
# The name of the user in the Cloud SQL instance. Can be omitted for
|
3571
|
+
# The name of the user in the Cloud SQL instance. Can be omitted for **update**
|
3495
3572
|
# since it is already specified in the URL.
|
3496
3573
|
# Corresponds to the JSON property `name`
|
3497
3574
|
# @return [String]
|
@@ -3502,6 +3579,11 @@ module Google
|
|
3502
3579
|
# @return [String]
|
3503
3580
|
attr_accessor :password
|
3504
3581
|
|
3582
|
+
# User level password validation policy.
|
3583
|
+
# Corresponds to the JSON property `passwordPolicy`
|
3584
|
+
# @return [Google::Apis::SqladminV1beta4::UserPasswordValidationPolicy]
|
3585
|
+
attr_accessor :password_policy
|
3586
|
+
|
3505
3587
|
# The project ID of the project containing the Cloud SQL database. The Google
|
3506
3588
|
# apps domain is prefixed if applicable. Can be omitted for *update* since it is
|
3507
3589
|
# already specified on the URL.
|
@@ -3532,12 +3614,51 @@ module Google
|
|
3532
3614
|
@kind = args[:kind] if args.key?(:kind)
|
3533
3615
|
@name = args[:name] if args.key?(:name)
|
3534
3616
|
@password = args[:password] if args.key?(:password)
|
3617
|
+
@password_policy = args[:password_policy] if args.key?(:password_policy)
|
3535
3618
|
@project = args[:project] if args.key?(:project)
|
3536
3619
|
@sqlserver_user_details = args[:sqlserver_user_details] if args.key?(:sqlserver_user_details)
|
3537
3620
|
@type = args[:type] if args.key?(:type)
|
3538
3621
|
end
|
3539
3622
|
end
|
3540
3623
|
|
3624
|
+
# User level password validation policy.
|
3625
|
+
class UserPasswordValidationPolicy
|
3626
|
+
include Google::Apis::Core::Hashable
|
3627
|
+
|
3628
|
+
# Number of failed login attempts allowed before user get locked.
|
3629
|
+
# Corresponds to the JSON property `allowedFailedAttempts`
|
3630
|
+
# @return [Fixnum]
|
3631
|
+
attr_accessor :allowed_failed_attempts
|
3632
|
+
|
3633
|
+
# If true, failed login attempts check will be enabled.
|
3634
|
+
# Corresponds to the JSON property `enableFailedAttemptsCheck`
|
3635
|
+
# @return [Boolean]
|
3636
|
+
attr_accessor :enable_failed_attempts_check
|
3637
|
+
alias_method :enable_failed_attempts_check?, :enable_failed_attempts_check
|
3638
|
+
|
3639
|
+
# Expiration duration after password is updated.
|
3640
|
+
# Corresponds to the JSON property `passwordExpirationDuration`
|
3641
|
+
# @return [String]
|
3642
|
+
attr_accessor :password_expiration_duration
|
3643
|
+
|
3644
|
+
# Read-only password status.
|
3645
|
+
# Corresponds to the JSON property `status`
|
3646
|
+
# @return [Google::Apis::SqladminV1beta4::PasswordStatus]
|
3647
|
+
attr_accessor :status
|
3648
|
+
|
3649
|
+
def initialize(**args)
|
3650
|
+
update!(**args)
|
3651
|
+
end
|
3652
|
+
|
3653
|
+
# Update properties of this object
|
3654
|
+
def update!(**args)
|
3655
|
+
@allowed_failed_attempts = args[:allowed_failed_attempts] if args.key?(:allowed_failed_attempts)
|
3656
|
+
@enable_failed_attempts_check = args[:enable_failed_attempts_check] if args.key?(:enable_failed_attempts_check)
|
3657
|
+
@password_expiration_duration = args[:password_expiration_duration] if args.key?(:password_expiration_duration)
|
3658
|
+
@status = args[:status] if args.key?(:status)
|
3659
|
+
end
|
3660
|
+
end
|
3661
|
+
|
3541
3662
|
# User list response.
|
3542
3663
|
class ListUsersResponse
|
3543
3664
|
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.21.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 ListUsersResponse
|
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::SqladminV1beta4::DiskEncryptionConfiguration, decorator: Google::Apis::SqladminV1beta4::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::SqladminV1beta4::MaintenanceWindow, decorator: Google::Apis::SqladminV1beta4::MaintenanceWindow::Representation
|
1246
1285
|
|
1286
|
+
property :password_validation_policy, as: 'passwordValidationPolicy', class: Google::Apis::SqladminV1beta4::PasswordValidationPolicy, decorator: Google::Apis::SqladminV1beta4::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::SqladminV1beta4::UserPasswordValidationPolicy, decorator: Google::Apis::SqladminV1beta4::UserPasswordValidationPolicy::Representation
|
1506
|
+
|
1464
1507
|
property :project, as: 'project'
|
1465
1508
|
property :sqlserver_user_details, as: 'sqlserverUserDetails', class: Google::Apis::SqladminV1beta4::SqlServerUserDetails, decorator: Google::Apis::SqladminV1beta4::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::SqladminV1beta4::PasswordStatus, decorator: Google::Apis::SqladminV1beta4::PasswordStatus::Representation
|
1521
|
+
|
1522
|
+
end
|
1523
|
+
end
|
1524
|
+
|
1471
1525
|
class ListUsersResponse
|
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/v1beta4/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_v1beta4
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.21.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_v1beta4/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_v1beta4/CHANGELOG.md
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.21.0
|
62
|
+
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1beta4
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|
65
65
|
require_paths:
|