google-apis-sqladmin_v1 0.21.0 → 0.22.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: 0df5484cb9a34576efae41a877d4487e3735e800af7427b4d2de4a491750a46c
4
- data.tar.gz: 48d9826105e9619c46e8887279001e9a6fd6398f4c9b806a1f8e3d0b716eee8c
3
+ metadata.gz: 3d03338ee1629e6d0da866bd66774d4cc9b8e41776c01bed9dab425837af58fb
4
+ data.tar.gz: a679faa87a4ec96171c66db441a4fde123e4fb275810d08abd48520022b09a1f
5
5
  SHA512:
6
- metadata.gz: c753957ec733fbae65277b6bd0cc41ea10a3b2e7d2378b6669589c5165f090d1ae87c859371cff32432c551d6ba329b9ccd5841c28252ace43804cf41d0927a5
7
- data.tar.gz: 21d1148bb06edeb91a7c3e249424eab1bbbfed3225b326edff30f6d43957a58f9168b0bad9a6f66e57e4aee7f00f4f95e65c2bdb028aaa163ef9bbc4a635cd5b
6
+ metadata.gz: 16ffc7304dec2678cc6b307bfc7f028f6836fc06a89704eb6d67b8bb55f8bf76d2cc40afa19693a0b895c0d09777115259f49692a3ceeee4f2b428596804fd0e
7
+ data.tar.gz: f728f5853f9c06435dc6083674c7f0e7bac55398ee9b79926e2b1aee5e48b6d4b2df1a59adf4b00b9ac4f870de05965fedd5976f65df1629f1b3f7da4c71f1ca
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Release history for google-apis-sqladmin_v1
2
2
 
3
+ ### v0.22.0 (2022-07-06)
4
+
5
+ * Regenerated from discovery document revision 20220623
6
+ * Regenerated using generator version 0.9.0
7
+
3
8
  ### v0.21.0 (2022-07-02)
4
9
 
5
10
  * Regenerated using generator version 0.8.0
@@ -3590,6 +3590,11 @@ module Google
3590
3590
  class User
3591
3591
  include Google::Apis::Core::Hashable
3592
3592
 
3593
+ # Dual password status for the user.
3594
+ # Corresponds to the JSON property `dualPasswordType`
3595
+ # @return [String]
3596
+ attr_accessor :dual_password_type
3597
+
3593
3598
  # This field is deprecated and will be removed from a future version of the API.
3594
3599
  # Corresponds to the JSON property `etag`
3595
3600
  # @return [String]
@@ -3655,6 +3660,7 @@ module Google
3655
3660
 
3656
3661
  # Update properties of this object
3657
3662
  def update!(**args)
3663
+ @dual_password_type = args[:dual_password_type] if args.key?(:dual_password_type)
3658
3664
  @etag = args[:etag] if args.key?(:etag)
3659
3665
  @host = args[:host] if args.key?(:host)
3660
3666
  @instance = args[:instance] if args.key?(:instance)
@@ -3683,6 +3689,13 @@ module Google
3683
3689
  attr_accessor :enable_failed_attempts_check
3684
3690
  alias_method :enable_failed_attempts_check?, :enable_failed_attempts_check
3685
3691
 
3692
+ # If true, the user must specify the current password before changing the
3693
+ # password. This flag is supported only for MySQL.
3694
+ # Corresponds to the JSON property `enablePasswordVerification`
3695
+ # @return [Boolean]
3696
+ attr_accessor :enable_password_verification
3697
+ alias_method :enable_password_verification?, :enable_password_verification
3698
+
3686
3699
  # Expiration duration after password is updated.
3687
3700
  # Corresponds to the JSON property `passwordExpirationDuration`
3688
3701
  # @return [String]
@@ -3701,6 +3714,7 @@ module Google
3701
3714
  def update!(**args)
3702
3715
  @allowed_failed_attempts = args[:allowed_failed_attempts] if args.key?(:allowed_failed_attempts)
3703
3716
  @enable_failed_attempts_check = args[:enable_failed_attempts_check] if args.key?(:enable_failed_attempts_check)
3717
+ @enable_password_verification = args[:enable_password_verification] if args.key?(:enable_password_verification)
3704
3718
  @password_expiration_duration = args[:password_expiration_duration] if args.key?(:password_expiration_duration)
3705
3719
  @status = args[:status] if args.key?(:status)
3706
3720
  end
@@ -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.21.0"
19
+ GEM_VERSION = "0.22.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
- GENERATOR_VERSION = "0.8.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 = "20220623"
26
26
  end
27
27
  end
28
28
  end
@@ -1502,6 +1502,7 @@ module Google
1502
1502
  class User
1503
1503
  # @private
1504
1504
  class Representation < Google::Apis::Core::JsonRepresentation
1505
+ property :dual_password_type, as: 'dualPasswordType'
1505
1506
  property :etag, as: 'etag'
1506
1507
  property :host, as: 'host'
1507
1508
  property :instance, as: 'instance'
@@ -1522,6 +1523,7 @@ module Google
1522
1523
  class Representation < Google::Apis::Core::JsonRepresentation
1523
1524
  property :allowed_failed_attempts, as: 'allowedFailedAttempts'
1524
1525
  property :enable_failed_attempts_check, as: 'enableFailedAttemptsCheck'
1526
+ property :enable_password_verification, as: 'enablePasswordVerification'
1525
1527
  property :password_expiration_duration, as: 'passwordExpirationDuration'
1526
1528
  property :status, as: 'status', class: Google::Apis::SqladminV1::PasswordStatus, decorator: Google::Apis::SqladminV1::PasswordStatus::Representation
1527
1529
 
@@ -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::SqladminV1::User] parsed result object
1748
+ # @yieldparam err [StandardError] error object if request failed
1749
+ #
1750
+ # @return [Google::Apis::SqladminV1::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, 'v1/projects/{project}/instances/{instance}/users/{name}', options)
1757
+ command.response_representation = Google::Apis::SqladminV1::User::Representation
1758
+ command.response_class = Google::Apis::SqladminV1::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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.22.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-07-04 00:00:00.000000000 Z
11
+ date: 2022-07-11 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.21.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.22.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: []