google-apis-sqladmin_v1beta4 0.20.0 → 0.21.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: 0cd21ffa670dbc250563d02456473e3ac49b23f95883fc33f1baf91d402be894
4
- data.tar.gz: d4375490241a6b761c532d26bbe41fdf139bf9e9761b2bdc4c2d3cd4d07bf4b7
3
+ metadata.gz: e752ecf92c44d8f6b8401fa001350976298d2528b29003afff889a3e082aeaf1
4
+ data.tar.gz: 0f3bcb5b7fc10971dbc7a4a4ccad10299830256d9f4ef69a7990008126ed8ab8
5
5
  SHA512:
6
- metadata.gz: 539b97958a1615c734a008097807d8579c91e751dff9d98c022c50b99a87c447bfeff9b0a26d367dc25247d39df09de53bc0e38f2387c45460c29482df0aee01
7
- data.tar.gz: 387e290a8d3b30a24146c16203eadce4d336a9fcaa82773841079694caa483a926885d465499c1039910028ac5955c7a73c8cb4a254f425ade268e123a42cb66
6
+ metadata.gz: '09fb884cebcffebf3edb8220dc56324f47a9b6e661838e9a50221f2f3deeaf28bb0f6505700be034badfe92e9501e0bed94fcd20d63766636d1c7a51d54e645b'
7
+ data.tar.gz: 1774f68322ac064145e57eb04465ac986c03268f8f756194a08c8d1c3a53139c47d54e6fb9d21b36ad4fd09988b4810163186dcfae4603d0cd91be4a042fe564
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
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
+
3
7
  ### v0.20.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::SqladminV1beta4::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]
@@ -1950,7 +1953,6 @@ module Google
1950
1953
  # created in the allocated range. The range name must comply with [RFC 1035](
1951
1954
  # https://tools.ietf.org/html/rfc1035). Specifically, the name must be 1-63
1952
1955
  # characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?.`
1953
- # Reserved for future use.
1954
1956
  # Corresponds to the JSON property `allocatedIpRange`
1955
1957
  # @return [String]
1956
1958
  attr_accessor :allocated_ip_range
@@ -2356,8 +2358,7 @@ module Google
2356
2358
  # @return [String]
2357
2359
  attr_accessor :start_time
2358
2360
 
2359
- # The status of an operation. Valid values are: * **PENDING** * **RUNNING** * **
2360
- # DONE** * **SQL_OPERATION_STATUS_UNSPECIFIED**
2361
+ # The status of an operation.
2361
2362
  # Corresponds to the JSON property `status`
2362
2363
  # @return [String]
2363
2364
  attr_accessor :status
@@ -2495,6 +2496,76 @@ module Google
2495
2496
  end
2496
2497
  end
2497
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
+
2498
2569
  # Read-replica configuration for connecting to the primary instance.
2499
2570
  class ReplicaConfiguration
2500
2571
  include Google::Apis::Core::Hashable
@@ -2731,6 +2802,11 @@ module Google
2731
2802
  # @return [Google::Apis::SqladminV1beta4::MaintenanceWindow]
2732
2803
  attr_accessor :maintenance_window
2733
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
+
2734
2810
  # The pricing plan for this instance. This can be either **PER_USE** or **
2735
2811
  # PACKAGE**. Only **PER_USE** is supported for Second Generation instances.
2736
2812
  # Corresponds to the JSON property `pricingPlan`
@@ -2804,6 +2880,7 @@ module Google
2804
2880
  @kind = args[:kind] if args.key?(:kind)
2805
2881
  @location_preference = args[:location_preference] if args.key?(:location_preference)
2806
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)
2807
2884
  @pricing_plan = args[:pricing_plan] if args.key?(:pricing_plan)
2808
2885
  @replication_type = args[:replication_type] if args.key?(:replication_type)
2809
2886
  @settings_version = args[:settings_version] if args.key?(:settings_version)
@@ -3471,9 +3548,11 @@ module Google
3471
3548
  # @return [String]
3472
3549
  attr_accessor :etag
3473
3550
 
3474
- # The host name from which the user can connect. For *insert* operations, host
3475
- # defaults to an empty string. For *update* operations, host is specified as
3476
- # part of the request URL. The host name cannot be updated after insertion.
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.
3477
3556
  # Corresponds to the JSON property `host`
3478
3557
  # @return [String]
3479
3558
  attr_accessor :host
@@ -3489,7 +3568,7 @@ module Google
3489
3568
  # @return [String]
3490
3569
  attr_accessor :kind
3491
3570
 
3492
- # The name of the user in the Cloud SQL instance. Can be omitted for *update*
3571
+ # The name of the user in the Cloud SQL instance. Can be omitted for **update**
3493
3572
  # since it is already specified in the URL.
3494
3573
  # Corresponds to the JSON property `name`
3495
3574
  # @return [String]
@@ -3500,6 +3579,11 @@ module Google
3500
3579
  # @return [String]
3501
3580
  attr_accessor :password
3502
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
+
3503
3587
  # The project ID of the project containing the Cloud SQL database. The Google
3504
3588
  # apps domain is prefixed if applicable. Can be omitted for *update* since it is
3505
3589
  # already specified on the URL.
@@ -3530,12 +3614,51 @@ module Google
3530
3614
  @kind = args[:kind] if args.key?(:kind)
3531
3615
  @name = args[:name] if args.key?(:name)
3532
3616
  @password = args[:password] if args.key?(:password)
3617
+ @password_policy = args[:password_policy] if args.key?(:password_policy)
3533
3618
  @project = args[:project] if args.key?(:project)
3534
3619
  @sqlserver_user_details = args[:sqlserver_user_details] if args.key?(:sqlserver_user_details)
3535
3620
  @type = args[:type] if args.key?(:type)
3536
3621
  end
3537
3622
  end
3538
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
+
3539
3662
  # User list response.
3540
3663
  class ListUsersResponse
3541
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.20.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 = "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 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
 
@@ -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::SqladminV1beta4::MaintenanceWindow, decorator: Google::Apis::SqladminV1beta4::MaintenanceWindow::Representation
1247
1285
 
1286
+ property :password_validation_policy, as: 'passwordValidationPolicy', class: Google::Apis::SqladminV1beta4::PasswordValidationPolicy, decorator: Google::Apis::SqladminV1beta4::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::SqladminV1beta4::UserPasswordValidationPolicy, decorator: Google::Apis::SqladminV1beta4::UserPasswordValidationPolicy::Representation
1506
+
1465
1507
  property :project, as: 'project'
1466
1508
  property :sqlserver_user_details, as: 'sqlserverUserDetails', class: Google::Apis::SqladminV1beta4::SqlServerUserDetails, decorator: Google::Apis::SqladminV1beta4::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::SqladminV1beta4::PasswordStatus, decorator: Google::Apis::SqladminV1beta4::PasswordStatus::Representation
1521
+
1522
+ end
1523
+ end
1524
+
1472
1525
  class ListUsersResponse
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_v1beta4
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.20.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-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_v1beta4/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.20.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.21.0
62
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: []