google-apis-sqladmin_v1 0.21.0 → 0.24.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 844ab82b9a4517129b29f9a8bfa81b08cac3ce3bcca8aa4684624f72671f2a5d
|
4
|
+
data.tar.gz: 62d2bd56d40b5b17f0012b5ef6333fd67e06e0981056838b93db3a86f2f6e88c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: af0250f7a0a37485e5b0c1cfde303d756d2ab3e9de4a2e68abe806c700664089f4bcbcbde9f92e22988ea8c1fc5d17c15650162abfb6a1d9a4faa9ae3e9e1129
|
7
|
+
data.tar.gz: 6b12be0d22cff1435a9b483357470c0b0b3fcf8751974e87719b348eb99b28414bd7d482cbf624812c83dc97c89f1330952b1a2f43b70aff3587a9150280bfb9
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Release history for google-apis-sqladmin_v1
|
2
2
|
|
3
|
+
### v0.24.0 (2022-08-24)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20220804
|
6
|
+
|
7
|
+
### v0.23.0 (2022-08-04)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20220724
|
10
|
+
|
11
|
+
### v0.22.0 (2022-07-06)
|
12
|
+
|
13
|
+
* Regenerated from discovery document revision 20220623
|
14
|
+
* Regenerated using generator version 0.9.0
|
15
|
+
|
3
16
|
### v0.21.0 (2022-07-02)
|
4
17
|
|
5
18
|
* Regenerated using generator version 0.8.0
|
@@ -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
|
@@ -2771,6 +2773,17 @@ module Google
|
|
2771
2773
|
# @return [String]
|
2772
2774
|
attr_accessor :collation
|
2773
2775
|
|
2776
|
+
# Specifies if connections must use Cloud SQL connectors. Option values include
|
2777
|
+
# the following: * `NOT_REQUIRED`: Cloud SQL instances can be connected without
|
2778
|
+
# Cloud SQL Connectors. * `REQUIRED`: Only allow connections that use Cloud SQL
|
2779
|
+
# Connectors. Note that using REQUIRED disables all existing authorized networks.
|
2780
|
+
# If this field is not specified when creating a new instance, NOT_REQUIRED is
|
2781
|
+
# used. If this field is not specified when patching or updating an existing
|
2782
|
+
# instance, it is left unchanged in the instance.
|
2783
|
+
# Corresponds to the JSON property `connectorEnforcement`
|
2784
|
+
# @return [String]
|
2785
|
+
attr_accessor :connector_enforcement
|
2786
|
+
|
2774
2787
|
# Configuration specific to read replica instances. Indicates whether database
|
2775
2788
|
# flags for crash-safe replication are enabled. This property was only
|
2776
2789
|
# applicable to First Generation instances.
|
@@ -2802,6 +2815,12 @@ module Google
|
|
2802
2815
|
attr_accessor :database_replication_enabled
|
2803
2816
|
alias_method :database_replication_enabled?, :database_replication_enabled
|
2804
2817
|
|
2818
|
+
# Configuration to protect against accidental instance deletion.
|
2819
|
+
# Corresponds to the JSON property `deletionProtectionEnabled`
|
2820
|
+
# @return [Boolean]
|
2821
|
+
attr_accessor :deletion_protection_enabled
|
2822
|
+
alias_method :deletion_protection_enabled?, :deletion_protection_enabled
|
2823
|
+
|
2805
2824
|
# Deny maintenance periods
|
2806
2825
|
# Corresponds to the JSON property `denyMaintenancePeriods`
|
2807
2826
|
# @return [Array<Google::Apis::SqladminV1::DenyMaintenancePeriod>]
|
@@ -2904,11 +2923,13 @@ module Google
|
|
2904
2923
|
@availability_type = args[:availability_type] if args.key?(:availability_type)
|
2905
2924
|
@backup_configuration = args[:backup_configuration] if args.key?(:backup_configuration)
|
2906
2925
|
@collation = args[:collation] if args.key?(:collation)
|
2926
|
+
@connector_enforcement = args[:connector_enforcement] if args.key?(:connector_enforcement)
|
2907
2927
|
@crash_safe_replication_enabled = args[:crash_safe_replication_enabled] if args.key?(:crash_safe_replication_enabled)
|
2908
2928
|
@data_disk_size_gb = args[:data_disk_size_gb] if args.key?(:data_disk_size_gb)
|
2909
2929
|
@data_disk_type = args[:data_disk_type] if args.key?(:data_disk_type)
|
2910
2930
|
@database_flags = args[:database_flags] if args.key?(:database_flags)
|
2911
2931
|
@database_replication_enabled = args[:database_replication_enabled] if args.key?(:database_replication_enabled)
|
2932
|
+
@deletion_protection_enabled = args[:deletion_protection_enabled] if args.key?(:deletion_protection_enabled)
|
2912
2933
|
@deny_maintenance_periods = args[:deny_maintenance_periods] if args.key?(:deny_maintenance_periods)
|
2913
2934
|
@insights_config = args[:insights_config] if args.key?(:insights_config)
|
2914
2935
|
@ip_configuration = args[:ip_configuration] if args.key?(:ip_configuration)
|
@@ -3590,6 +3611,11 @@ module Google
|
|
3590
3611
|
class User
|
3591
3612
|
include Google::Apis::Core::Hashable
|
3592
3613
|
|
3614
|
+
# Dual password status for the user.
|
3615
|
+
# Corresponds to the JSON property `dualPasswordType`
|
3616
|
+
# @return [String]
|
3617
|
+
attr_accessor :dual_password_type
|
3618
|
+
|
3593
3619
|
# This field is deprecated and will be removed from a future version of the API.
|
3594
3620
|
# Corresponds to the JSON property `etag`
|
3595
3621
|
# @return [String]
|
@@ -3655,6 +3681,7 @@ module Google
|
|
3655
3681
|
|
3656
3682
|
# Update properties of this object
|
3657
3683
|
def update!(**args)
|
3684
|
+
@dual_password_type = args[:dual_password_type] if args.key?(:dual_password_type)
|
3658
3685
|
@etag = args[:etag] if args.key?(:etag)
|
3659
3686
|
@host = args[:host] if args.key?(:host)
|
3660
3687
|
@instance = args[:instance] if args.key?(:instance)
|
@@ -3683,6 +3710,13 @@ module Google
|
|
3683
3710
|
attr_accessor :enable_failed_attempts_check
|
3684
3711
|
alias_method :enable_failed_attempts_check?, :enable_failed_attempts_check
|
3685
3712
|
|
3713
|
+
# If true, the user must specify the current password before changing the
|
3714
|
+
# password. This flag is supported only for MySQL.
|
3715
|
+
# Corresponds to the JSON property `enablePasswordVerification`
|
3716
|
+
# @return [Boolean]
|
3717
|
+
attr_accessor :enable_password_verification
|
3718
|
+
alias_method :enable_password_verification?, :enable_password_verification
|
3719
|
+
|
3686
3720
|
# Expiration duration after password is updated.
|
3687
3721
|
# Corresponds to the JSON property `passwordExpirationDuration`
|
3688
3722
|
# @return [String]
|
@@ -3701,6 +3735,7 @@ module Google
|
|
3701
3735
|
def update!(**args)
|
3702
3736
|
@allowed_failed_attempts = args[:allowed_failed_attempts] if args.key?(:allowed_failed_attempts)
|
3703
3737
|
@enable_failed_attempts_check = args[:enable_failed_attempts_check] if args.key?(:enable_failed_attempts_check)
|
3738
|
+
@enable_password_verification = args[:enable_password_verification] if args.key?(:enable_password_verification)
|
3704
3739
|
@password_expiration_duration = args[:password_expiration_duration] if args.key?(:password_expiration_duration)
|
3705
3740
|
@status = args[:status] if args.key?(:status)
|
3706
3741
|
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.24.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 = "20220804"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -1270,12 +1270,14 @@ module Google
|
|
1270
1270
|
property :backup_configuration, as: 'backupConfiguration', class: Google::Apis::SqladminV1::BackupConfiguration, decorator: Google::Apis::SqladminV1::BackupConfiguration::Representation
|
1271
1271
|
|
1272
1272
|
property :collation, as: 'collation'
|
1273
|
+
property :connector_enforcement, as: 'connectorEnforcement'
|
1273
1274
|
property :crash_safe_replication_enabled, as: 'crashSafeReplicationEnabled'
|
1274
1275
|
property :data_disk_size_gb, :numeric_string => true, as: 'dataDiskSizeGb'
|
1275
1276
|
property :data_disk_type, as: 'dataDiskType'
|
1276
1277
|
collection :database_flags, as: 'databaseFlags', class: Google::Apis::SqladminV1::DatabaseFlags, decorator: Google::Apis::SqladminV1::DatabaseFlags::Representation
|
1277
1278
|
|
1278
1279
|
property :database_replication_enabled, as: 'databaseReplicationEnabled'
|
1280
|
+
property :deletion_protection_enabled, as: 'deletionProtectionEnabled'
|
1279
1281
|
collection :deny_maintenance_periods, as: 'denyMaintenancePeriods', class: Google::Apis::SqladminV1::DenyMaintenancePeriod, decorator: Google::Apis::SqladminV1::DenyMaintenancePeriod::Representation
|
1280
1282
|
|
1281
1283
|
property :insights_config, as: 'insightsConfig', class: Google::Apis::SqladminV1::InsightsConfig, decorator: Google::Apis::SqladminV1::InsightsConfig::Representation
|
@@ -1502,6 +1504,7 @@ module Google
|
|
1502
1504
|
class User
|
1503
1505
|
# @private
|
1504
1506
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1507
|
+
property :dual_password_type, as: 'dualPasswordType'
|
1505
1508
|
property :etag, as: 'etag'
|
1506
1509
|
property :host, as: 'host'
|
1507
1510
|
property :instance, as: 'instance'
|
@@ -1522,6 +1525,7 @@ module Google
|
|
1522
1525
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1523
1526
|
property :allowed_failed_attempts, as: 'allowedFailedAttempts'
|
1524
1527
|
property :enable_failed_attempts_check, as: 'enableFailedAttemptsCheck'
|
1528
|
+
property :enable_password_verification, as: 'enablePasswordVerification'
|
1525
1529
|
property :password_expiration_duration, as: 'passwordExpirationDuration'
|
1526
1530
|
property :status, as: 'status', class: Google::Apis::SqladminV1::PasswordStatus, decorator: Google::Apis::SqladminV1::PasswordStatus::Representation
|
1527
1531
|
|
@@ -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.24.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-29 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.24.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: []
|