google-apis-sqladmin_v1beta4 0.30.0 → 0.33.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: 9891e68534d041c8fbbc41a2f6bd458f03df068a1c9a782b6ca0180e5f19e1e9
4
- data.tar.gz: add1ac7ce6fd22c5b431c0f44966543eb2697b53bbd0c86e213eec11224076d8
3
+ metadata.gz: 7691c9be1c3e96ec0278744e63a08aeba9b4f201bbc12f044b77b156702c3994
4
+ data.tar.gz: bbb03fdd2a96b77d4116abc66b6b2093c461ed4704fbcce3e58631c6c197faea
5
5
  SHA512:
6
- metadata.gz: b3083368e69d9d3d0a1caa9992870f053f16991ce0899d4aff904280c548c1f736b6574625f8b3d9d1770ef3e97597aa64f7645c9ae8f1a0e7e4799982a87144
7
- data.tar.gz: 275e4d521f330cb27912d9b71aa955220df5dc0179de45312f34906b67ac2c1d45e5c1a883230e484b2337662a565193d481ea6b45b5648cb7fca6a9d8b06d3d
6
+ metadata.gz: 91b1f42a354cabd1a6a9f98fb25376cdce63d5eb9014ba88891e33803d1ede6250314402711ac96e1995a10047933fbb92f571cebf64c66c415e7e97eef0990f
7
+ data.tar.gz: 0ddbc15991275f8a8f0d673d6ef90594acc016f5796b7e785f781bc22b0c80042ff9b458445978cf873b8f50e34e892610aa883e0000176f6059b07453559fb3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Release history for google-apis-sqladmin_v1beta4
2
2
 
3
+ ### v0.33.0 (2022-08-04)
4
+
5
+ * Regenerated from discovery document revision 20220724
6
+
7
+ ### v0.32.0 (2022-07-06)
8
+
9
+ * Regenerated from discovery document revision 20220623
10
+ * Regenerated using generator version 0.9.0
11
+
12
+ ### v0.31.0 (2022-06-30)
13
+
14
+ * Regenerated using generator version 0.8.0
15
+
3
16
  ### v0.30.0 (2022-06-21)
4
17
 
5
18
  * Regenerated from discovery document revision 20220609
@@ -298,8 +298,9 @@ module Google
298
298
  # @return [String]
299
299
  attr_accessor :status
300
300
 
301
- # The type of this run; can be either "AUTOMATED" or "ON_DEMAND". This field
302
- # defaults to "ON_DEMAND" and is ignored, when specified for insert requests.
301
+ # The type of this run; can be either "AUTOMATED" or "ON_DEMAND" or "FINAL".
302
+ # This field defaults to "ON_DEMAND" and is ignored, when specified for insert
303
+ # requests.
303
304
  # Corresponds to the JSON property `type`
304
305
  # @return [String]
305
306
  attr_accessor :type
@@ -763,7 +764,8 @@ module Google
763
764
  # @return [Array<String>]
764
765
  attr_accessor :replica_names
765
766
 
766
- # Initial root password. Use only on creation.
767
+ # Initial root password. Use only on creation. You must set root passwords
768
+ # before you can connect to PostgreSQL instances.
767
769
  # Corresponds to the JSON property `rootPassword`
768
770
  # @return [String]
769
771
  attr_accessor :root_password
@@ -2803,6 +2805,12 @@ module Google
2803
2805
  attr_accessor :database_replication_enabled
2804
2806
  alias_method :database_replication_enabled?, :database_replication_enabled
2805
2807
 
2808
+ # Configuration to protect against accidental instance deletion.
2809
+ # Corresponds to the JSON property `deletionProtectionEnabled`
2810
+ # @return [Boolean]
2811
+ attr_accessor :deletion_protection_enabled
2812
+ alias_method :deletion_protection_enabled?, :deletion_protection_enabled
2813
+
2806
2814
  # Deny maintenance periods
2807
2815
  # Corresponds to the JSON property `denyMaintenancePeriods`
2808
2816
  # @return [Array<Google::Apis::SqladminV1beta4::DenyMaintenancePeriod>]
@@ -2910,6 +2918,7 @@ module Google
2910
2918
  @data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
2911
2919
  @database_flags = args[:database_flags] if args.key?(:database_flags)
2912
2920
  @database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled)
2921
+ @deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled)
2913
2922
  @deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods)
2914
2923
  @insights_config = args[:insights_config] if args.key?(:insights_config)
2915
2924
  @ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration)
@@ -3591,6 +3600,11 @@ module Google
3591
3600
  class User
3592
3601
  include Google::Apis::Core::Hashable
3593
3602
 
3603
+ # Dual password status for the user.
3604
+ # Corresponds to the JSON property `dualPasswordType`
3605
+ # @return [String]
3606
+ attr_accessor :dual_password_type
3607
+
3594
3608
  # This field is deprecated and will be removed from a future version of the API.
3595
3609
  # Corresponds to the JSON property `etag`
3596
3610
  # @return [String]
@@ -3656,6 +3670,7 @@ module Google
3656
3670
 
3657
3671
  # Update properties of this object
3658
3672
  def update!(**args)
3673
+ @dual_password_type = args[:dual_password_type] if args.key?(:dual_password_type)
3659
3674
  @etag = args[:etag] if args.key?(:etag)
3660
3675
  @host = args[:host] if args.key?(:host)
3661
3676
  @instance = args[:instance] if args.key?(:instance)
@@ -3684,6 +3699,13 @@ module Google
3684
3699
  attr_accessor :enable_failed_attempts_check
3685
3700
  alias_method :enable_failed_attempts_check?, :enable_failed_attempts_check
3686
3701
 
3702
+ # If true, the user must specify the current password before changing the
3703
+ # password. This flag is supported only for MySQL.
3704
+ # Corresponds to the JSON property `enablePasswordVerification`
3705
+ # @return [Boolean]
3706
+ attr_accessor :enable_password_verification
3707
+ alias_method :enable_password_verification?, :enable_password_verification
3708
+
3687
3709
  # Expiration duration after password is updated.
3688
3710
  # Corresponds to the JSON property `passwordExpirationDuration`
3689
3711
  # @return [String]
@@ -3702,6 +3724,7 @@ module Google
3702
3724
  def update!(**args)
3703
3725
  @allowed_failed_attempts = args[:allowed_failed_attempts] if args.key?(:allowed_failed_attempts)
3704
3726
  @enable_failed_attempts_check = args[:enable_failed_attempts_check] if args.key?(:enable_failed_attempts_check)
3727
+ @enable_password_verification = args[:enable_password_verification] if args.key?(:enable_password_verification)
3705
3728
  @password_expiration_duration = args[:password_expiration_duration] if args.key?(:password_expiration_duration)
3706
3729
  @status = args[:status] if args.key?(:status)
3707
3730
  end
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module SqladminV1beta4
18
18
  # Version of the google-apis-sqladmin_v1beta4 gem
19
- GEM_VERSION = "0.30.0"
19
+ GEM_VERSION = "0.33.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.7.0"
22
+ GENERATOR_VERSION = "0.9.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20220609"
25
+ REVISION = "20220724"
26
26
  end
27
27
  end
28
28
  end
@@ -1276,6 +1276,7 @@ module Google
1276
1276
  collection :database_flags, as: 'databaseFlags', class: Google::Apis::SqladminV1beta4::DatabaseFlags, decorator: Google::Apis::SqladminV1beta4::DatabaseFlags::Representation
1277
1277
 
1278
1278
  property :database_replication_enabled, as: 'databaseReplicationEnabled'
1279
+ property :deletion_protection_enabled, as: 'deletionProtectionEnabled'
1279
1280
  collection :deny_maintenance_periods, as: 'denyMaintenancePeriods', class: Google::Apis::SqladminV1beta4::DenyMaintenancePeriod, decorator: Google::Apis::SqladminV1beta4::DenyMaintenancePeriod::Representation
1280
1281
 
1281
1282
  property :insights_config, as: 'insightsConfig', class: Google::Apis::SqladminV1beta4::InsightsConfig, decorator: Google::Apis::SqladminV1beta4::InsightsConfig::Representation
@@ -1502,6 +1503,7 @@ module Google
1502
1503
  class User
1503
1504
  # @private
1504
1505
  class Representation < Google::Apis::Core::JsonRepresentation
1506
+ property :dual_password_type, as: 'dualPasswordType'
1505
1507
  property :etag, as: 'etag'
1506
1508
  property :host, as: 'host'
1507
1509
  property :instance, as: 'instance'
@@ -1522,6 +1524,7 @@ module Google
1522
1524
  class Representation < Google::Apis::Core::JsonRepresentation
1523
1525
  property :allowed_failed_attempts, as: 'allowedFailedAttempts'
1524
1526
  property :enable_failed_attempts_check, as: 'enableFailedAttemptsCheck'
1527
+ property :enable_password_verification, as: 'enablePasswordVerification'
1525
1528
  property :password_expiration_duration, as: 'passwordExpirationDuration'
1526
1529
  property :status, as: 'status', class: Google::Apis::SqladminV1beta4::PasswordStatus, decorator: Google::Apis::SqladminV1beta4::PasswordStatus::Representation
1527
1530
 
@@ -1727,6 +1727,43 @@ module Google
1727
1727
  execute_or_queue_command(command, &block)
1728
1728
  end
1729
1729
 
1730
+ # Retrieves a resource containing information about a user.
1731
+ # @param [String] project
1732
+ # Project ID of the project that contains the instance.
1733
+ # @param [String] instance
1734
+ # Database instance ID. This does not include the project ID.
1735
+ # @param [String] name
1736
+ # User of the instance. If the database user has a host, this is specified as `
1737
+ # username`@`host` else as `username`.
1738
+ # @param [String] fields
1739
+ # Selector specifying which fields to include in a partial response.
1740
+ # @param [String] quota_user
1741
+ # Available to use for quota purposes for server-side applications. Can be any
1742
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1743
+ # @param [Google::Apis::RequestOptions] options
1744
+ # Request-specific options
1745
+ #
1746
+ # @yield [result, err] Result & error if block supplied
1747
+ # @yieldparam result [Google::Apis::SqladminV1beta4::User] parsed result object
1748
+ # @yieldparam err [StandardError] error object if request failed
1749
+ #
1750
+ # @return [Google::Apis::SqladminV1beta4::User]
1751
+ #
1752
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1753
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1754
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1755
+ def get_user(project, instance, name, fields: nil, quota_user: nil, options: nil, &block)
1756
+ command = make_simple_command(:get, 'sql/v1beta4/projects/{project}/instances/{instance}/users/{name}', options)
1757
+ command.response_representation = Google::Apis::SqladminV1beta4::User::Representation
1758
+ command.response_class = Google::Apis::SqladminV1beta4::User
1759
+ command.params['project'] = project unless project.nil?
1760
+ command.params['instance'] = instance unless instance.nil?
1761
+ command.params['name'] = name unless name.nil?
1762
+ command.query['fields'] = fields unless fields.nil?
1763
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1764
+ execute_or_queue_command(command, &block)
1765
+ end
1766
+
1730
1767
  # Creates a new user in a Cloud SQL instance.
1731
1768
  # @param [String] project
1732
1769
  # Project ID of the project that contains the 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.30.0
4
+ version: 0.33.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: 2022-06-27 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: google-apis-core
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.6'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.6'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -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.30.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.33.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: []