google-apis-sqladmin_v1 0.20.0 → 0.23.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 022641bee9998d85932946bd4c287854335d36f856c92d86d69d82f260af0509
|
4
|
+
data.tar.gz: 1b1ed66296bdd30296e64ec23728838720fb1caa46759d3bccaa65dd6240b809
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c09c71e6f682914334e9fa00e58ddb5ec92b437cbb0cf5686c0bcb96b2a228d9890e415112009c5d002ab5c9e89c6884c21a67aad039be8deb784ceee10f4f2e
|
7
|
+
data.tar.gz: 464813c05aab5c320095b3dd2ebee7c3810d1728a48bd166adb50ab4d85aab24e9cba4ce12a8d2a880cae4e38704e80ee13df05033a344525cd81f558566addf
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-sqladmin_v1
|
2
2
|
|
3
|
+
### v0.23.0 (2022-08-04)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220724
|
6
|
+
|
7
|
+
### v0.22.0 (2022-07-06)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220623
|
10
|
+
* Regenerated using generator version 0.9.0
|
11
|
+
|
12
|
+
### v0.21.0 (2022-07-02)
|
13
|
+
|
14
|
+
* Regenerated using generator version 0.8.0
|
15
|
+
|
3
16
|
### v0.20.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"
|
302
|
-
# defaults to "ON_DEMAND" and is ignored, when specified for insert
|
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
|
@@ -2802,6 +2804,12 @@ module Google
|
|
2802
2804
|
attr_accessor :database_replication_enabled
|
2803
2805
|
alias_method :database_replication_enabled?, :database_replication_enabled
|
2804
2806
|
|
2807
|
+
# Configuration to protect against accidental instance deletion.
|
2808
|
+
# Corresponds to the JSON property `deletionProtectionEnabled`
|
2809
|
+
# @return [Boolean]
|
2810
|
+
attr_accessor :deletion_protection_enabled
|
2811
|
+
alias_method :deletion_protection_enabled?, :deletion_protection_enabled
|
2812
|
+
|
2805
2813
|
# Deny maintenance periods
|
2806
2814
|
# Corresponds to the JSON property `denyMaintenancePeriods`
|
2807
2815
|
# @return [Array<Google::Apis::SqladminV1::DenyMaintenancePeriod>]
|
@@ -2909,6 +2917,7 @@ module Google
|
|
2909
2917
|
@data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
|
2910
2918
|
@database_flags = args[:database_flags] if args.key?(:database_flags)
|
2911
2919
|
@database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled)
|
2920
|
+
@deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled)
|
2912
2921
|
@deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods)
|
2913
2922
|
@insights_config = args[:insights_config] if args.key?(:insights_config)
|
2914
2923
|
@ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration)
|
@@ -3590,6 +3599,11 @@ module Google
|
|
3590
3599
|
class User
|
3591
3600
|
include Google::Apis::Core::Hashable
|
3592
3601
|
|
3602
|
+
# Dual password status for the user.
|
3603
|
+
# Corresponds to the JSON property `dualPasswordType`
|
3604
|
+
# @return [String]
|
3605
|
+
attr_accessor :dual_password_type
|
3606
|
+
|
3593
3607
|
# This field is deprecated and will be removed from a future version of the API.
|
3594
3608
|
# Corresponds to the JSON property `etag`
|
3595
3609
|
# @return [String]
|
@@ -3655,6 +3669,7 @@ module Google
|
|
3655
3669
|
|
3656
3670
|
# Update properties of this object
|
3657
3671
|
def update!(**args)
|
3672
|
+
@dual_password_type = args[:dual_password_type] if args.key?(:dual_password_type)
|
3658
3673
|
@etag = args[:etag] if args.key?(:etag)
|
3659
3674
|
@host = args[:host] if args.key?(:host)
|
3660
3675
|
@instance = args[:instance] if args.key?(:instance)
|
@@ -3683,6 +3698,13 @@ module Google
|
|
3683
3698
|
attr_accessor :enable_failed_attempts_check
|
3684
3699
|
alias_method :enable_failed_attempts_check?, :enable_failed_attempts_check
|
3685
3700
|
|
3701
|
+
# If true, the user must specify the current password before changing the
|
3702
|
+
# password. This flag is supported only for MySQL.
|
3703
|
+
# Corresponds to the JSON property `enablePasswordVerification`
|
3704
|
+
# @return [Boolean]
|
3705
|
+
attr_accessor :enable_password_verification
|
3706
|
+
alias_method :enable_password_verification?, :enable_password_verification
|
3707
|
+
|
3686
3708
|
# Expiration duration after password is updated.
|
3687
3709
|
# Corresponds to the JSON property `passwordExpirationDuration`
|
3688
3710
|
# @return [String]
|
@@ -3701,6 +3723,7 @@ module Google
|
|
3701
3723
|
def update!(**args)
|
3702
3724
|
@allowed_failed_attempts = args[:allowed_failed_attempts] if args.key?(:allowed_failed_attempts)
|
3703
3725
|
@enable_failed_attempts_check = args[:enable_failed_attempts_check] if args.key?(:enable_failed_attempts_check)
|
3726
|
+
@enable_password_verification = args[:enable_password_verification] if args.key?(:enable_password_verification)
|
3704
3727
|
@password_expiration_duration = args[:password_expiration_duration] if args.key?(:password_expiration_duration)
|
3705
3728
|
@status = args[:status] if args.key?(:status)
|
3706
3729
|
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.
|
19
|
+
GEM_VERSION = "0.23.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.9.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
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::SqladminV1::DatabaseFlags, decorator: Google::Apis::SqladminV1::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::SqladminV1::DenyMaintenancePeriod, decorator: Google::Apis::SqladminV1::DenyMaintenancePeriod::Representation
|
1280
1281
|
|
1281
1282
|
property :insights_config, as: 'insightsConfig', class: Google::Apis::SqladminV1::InsightsConfig, decorator: Google::Apis::SqladminV1::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::SqladminV1::PasswordStatus, decorator: Google::Apis::SqladminV1::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::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.
|
4
|
+
version: 0.23.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-
|
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.
|
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.
|
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_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.23.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: []
|