google-apis-sqladmin_v1 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6bb27cdfe39732b065018928f15c49507bbae4ac666a43293f667193eaf02026
4
- data.tar.gz: bc092ed205c92228d7f0983565954736edb94cfe777307d6fd341e52dca48b77
3
+ metadata.gz: 7c8825397e70d45c29e04ccf8c36dcb556beb22cfe8139bdfa058113e59f7b02
4
+ data.tar.gz: 4536fe66350e98dbd18bf009faae567d5836b651b749aca75d566b7b10251f52
5
5
  SHA512:
6
- metadata.gz: 76a0d2b291967100af42f69fdfd619e966a3970ce05c41f4a54f9702a47e32db0387714365ed0394b18c6c13149969a2412ef0a3242471c5d2319d3fb3c80098
7
- data.tar.gz: 92efe4052e3e2d63ec1e6957d599730748bd9802a0d6960b6325509fa68fb2055b482455585355df0466aa10b5357b5dc20810a5455b7ccfda6bbdb048e6e395
6
+ metadata.gz: 2d7eda3160ed4e7546ec00adc3f8fe3adb815e79406e56fc4f82a04729421779cd9bdde46cd09bd855f8e6ca32d13eb10046b0314e475dc32b496e49d579c230
7
+ data.tar.gz: 1c7db0d33d5a9ee807be2585d8ce8b55f88ef97f7c3c94bba6686470aa6a067917d09d5ce1412b5f640311912bd4959a58e046c3179d91553ef444568a35df5e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.9.0 (2021-11-04)
4
8
 
5
9
  * Regenerated from discovery document revision 20211023
@@ -630,6 +630,13 @@ module Google
630
630
  # @return [Fixnum]
631
631
  attr_accessor :current_disk_size
632
632
 
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
+
633
640
  # The database engine type and version. The **databaseVersion** field cannot be
634
641
  # changed after instance creation.
635
642
  # Corresponds to the JSON property `databaseVersion`
@@ -664,10 +671,7 @@ module Google
664
671
  # @return [String]
665
672
  attr_accessor :gce_zone
666
673
 
667
- # The instance type. This can be one of the following: * **CLOUD_SQL_INSTANCE**:
668
- # A Cloud SQL instance that is not replicating from a primary instance. * **
669
- # ON_PREMISES_INSTANCE**: An instance running on the customer's premises. * **
670
- # READ_REPLICA_INSTANCE**: A Cloud SQL instance configured as a read-replica.
674
+ # The instance type.
671
675
  # Corresponds to the JSON property `instanceType`
672
676
  # @return [String]
673
677
  attr_accessor :instance_type
@@ -802,6 +806,7 @@ module Google
802
806
  @connection_name = args[:connection_name] if args.key?(:connection_name)
803
807
  @create_time = args[:create_time] if args.key?(:create_time)
804
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)
805
810
  @database_version = args[:database_version] if args.key?(:database_version)
806
811
  @disk_encryption_configuration = args[:disk_encryption_configuration] if args.key?(:disk_encryption_configuration)
807
812
  @disk_encryption_status = args[:disk_encryption_status] if args.key?(:disk_encryption_status)
@@ -1114,22 +1119,20 @@ module Google
1114
1119
  # @return [Google::Apis::SqladminV1::ExportContext::CsvExportOptions]
1115
1120
  attr_accessor :csv_export_options
1116
1121
 
1117
- # Databases to be exported. * **MySQL instances:** If **fileType** is **SQL**
1118
- # and no database is specified, all databases are exported, except for the **
1119
- # mysql** system database. If **fileType** is **CSV**, you can specify one
1120
- # database, either by using this property or by using the **csvExportOptions.
1121
- # selectQuery** property, which takes precedence over this property. * **
1122
- # PostgreSQL instances:** You must specify one database to be exported. If **
1123
- # fileType** is **CSV**, this database must match the one specified in the **
1124
- # csvExportOptions.selectQuery** property. * **SQL Server instances:** You must
1125
- # specify one database to be exported, and the **fileType** must be **BAK**.
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**.
1126
1131
  # Corresponds to the JSON property `databases`
1127
1132
  # @return [Array<String>]
1128
1133
  attr_accessor :databases
1129
1134
 
1130
- # The file type for the specified uri. * **SQL**: The file contains SQL
1131
- # statements. * **CSV**: The file contains CSV data. * **BAK**: The file
1132
- # contains backup data for a SQL Server instance.
1135
+ # The file type for the specified uri.
1133
1136
  # Corresponds to the JSON property `fileType`
1134
1137
  # @return [String]
1135
1138
  attr_accessor :file_type
@@ -1256,10 +1259,10 @@ module Google
1256
1259
  class MysqlExportOptions
1257
1260
  include Google::Apis::Core::Hashable
1258
1261
 
1259
- # Option to include SQL statement required to set up replication. * If set to **
1260
- # 1**, the dump file includes a CHANGE MASTER TO statement with the binary log
1261
- # coordinates, and --set-gtid-purged is set to ON. * If set to **2**, the CHANGE
1262
- # MASTER TO statement is written as a SQL comment and has no effect. * If set to
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
1263
1266
  # any value other than **1**, --set-gtid-purged is set to OFF.
1264
1267
  # Corresponds to the JSON property `masterData`
1265
1268
  # @return [Fixnum]
@@ -1949,7 +1952,6 @@ module Google
1949
1952
  # created in the allocated range. The range name must comply with [RFC 1035](
1950
1953
  # https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63
1951
1954
  # characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
1952
- # Reserved for future use.
1953
1955
  # Corresponds to the JSON property `allocatedIpRange`
1954
1956
  # @return [String]
1955
1957
  attr_accessor :allocated_ip_range
@@ -2355,8 +2357,7 @@ module Google
2355
2357
  # @return [String]
2356
2358
  attr_accessor :start_time
2357
2359
 
2358
- # The status of an operation. Valid values are: * **PENDING** * **RUNNING** * **
2359
- # DONE** * **SQL_OPERATION_STATUS_UNSPECIFIED**
2360
+ # The status of an operation.
2360
2361
  # Corresponds to the JSON property `status`
2361
2362
  # @return [String]
2362
2363
  attr_accessor :status
@@ -2494,6 +2495,76 @@ module Google
2494
2495
  end
2495
2496
  end
2496
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
+
2497
2568
  # Read-replica configuration for connecting to the primary instance.
2498
2569
  class ReplicaConfiguration
2499
2570
  include Google::Apis::Core::Hashable
@@ -2730,6 +2801,11 @@ module Google
2730
2801
  # @return [Google::Apis::SqladminV1::MaintenanceWindow]
2731
2802
  attr_accessor :maintenance_window
2732
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
+
2733
2809
  # The pricing plan for this instance. This can be either **PER_USE** or **
2734
2810
  # PACKAGE**. Only **PER_USE** is supported for Second Generation instances.
2735
2811
  # Corresponds to the JSON property `pricingPlan`
@@ -2803,6 +2879,7 @@ module Google
2803
2879
  @kind = args[:kind] if args.key?(:kind)
2804
2880
  @location_preference = args[:location_preference] if args.key?(:location_preference)
2805
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)
2806
2883
  @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
2807
2884
  @replication_type = args[:replication_type] if args.key?(:replication_type)
2808
2885
  @settings_version = args[:settings_version] if args.key?(:settings_version)
@@ -3470,9 +3547,11 @@ module Google
3470
3547
  # @return [String]
3471
3548
  attr_accessor :etag
3472
3549
 
3473
- # The host name from which the user can connect. For **insert** operations, host
3474
- # defaults to an empty string. For **update** operations, host is specified as
3475
- # part of the request URL. The host name cannot be updated after insertion.
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.
3476
3555
  # Corresponds to the JSON property `host`
3477
3556
  # @return [String]
3478
3557
  attr_accessor :host
@@ -3499,6 +3578,11 @@ module Google
3499
3578
  # @return [String]
3500
3579
  attr_accessor :password
3501
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
+
3502
3586
  # The project ID of the project containing the Cloud SQL database. The Google
3503
3587
  # apps domain is prefixed if applicable. Can be omitted for **update** since it
3504
3588
  # is already specified on the URL.
@@ -3529,12 +3613,51 @@ module Google
3529
3613
  @kind = args[:kind] if args.key?(:kind)
3530
3614
  @name = args[:name] if args.key?(:name)
3531
3615
  @password = args[:password] if args.key?(:password)
3616
+ @password_policy = args[:password_policy] if args.key?(:password_policy)
3532
3617
  @project = args[:project] if args.key?(:project)
3533
3618
  @sqlserver_user_details = args[:sqlserver_user_details] if args.key?(:sqlserver_user_details)
3534
3619
  @type = args[:type] if args.key?(:type)
3535
3620
  end
3536
3621
  end
3537
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
+
3538
3661
  # User list response.
3539
3662
  class UsersListResponse
3540
3663
  include Google::Apis::Core::Hashable
@@ -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.9.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 = "20211023"
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
 
@@ -1181,6 +1200,25 @@ module Google
1181
1200
  end
1182
1201
  end
1183
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
+
1184
1222
  class ReplicaConfiguration
1185
1223
  # @private
1186
1224
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1245,6 +1283,8 @@ module Google
1245
1283
 
1246
1284
  property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::SqladminV1::MaintenanceWindow, decorator: Google::Apis::SqladminV1::MaintenanceWindow::Representation
1247
1285
 
1286
+ property :password_validation_policy, as: 'passwordValidationPolicy', class: Google::Apis::SqladminV1::PasswordValidationPolicy, decorator: Google::Apis::SqladminV1::PasswordValidationPolicy::Representation
1287
+
1248
1288
  property :pricing_plan, as: 'pricingPlan'
1249
1289
  property :replication_type, as: 'replicationType'
1250
1290
  property :settings_version, :numeric_string => true, as: 'settingsVersion'
@@ -1462,6 +1502,8 @@ module Google
1462
1502
  property :kind, as: 'kind'
1463
1503
  property :name, as: 'name'
1464
1504
  property :password, as: 'password'
1505
+ property :password_policy, as: 'passwordPolicy', class: Google::Apis::SqladminV1::UserPasswordValidationPolicy, decorator: Google::Apis::SqladminV1::UserPasswordValidationPolicy::Representation
1506
+
1465
1507
  property :project, as: 'project'
1466
1508
  property :sqlserver_user_details, as: 'sqlserverUserDetails', class: Google::Apis::SqladminV1::SqlServerUserDetails, decorator: Google::Apis::SqladminV1::SqlServerUserDetails::Representation
1467
1509
 
@@ -1469,6 +1511,17 @@ module Google
1469
1511
  end
1470
1512
  end
1471
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
+
1472
1525
  class UsersListResponse
1473
1526
  # @private
1474
1527
  class Representation < Google::Apis::Core::JsonRepresentation
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.9.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-08 00:00:00.000000000 Z
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
@@ -58,7 +58,7 @@ licenses:
58
58
  metadata:
59
59
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
60
60
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-sqladmin_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.9.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.10.0
62
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: []