google-apis-sqladmin_v1beta4 0.54.0 → 0.56.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: e5fdd518376963f34ca7f26080f6ed97ba4ededfc2362887cd646796dae54f42
|
4
|
+
data.tar.gz: 7378317a7ae01525dc2cc5ea4c49c617ea7ba322f838b46c54f8e3a37753e2ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5f0c47c2d136f131b3293ef3d2d5095cabda9fc13a393f8817f636f71bc66613e4a3849ccf768059b4c9e9aa8aa0fcf18f567e45622fbdf15ada0fdf36c6a995
|
7
|
+
data.tar.gz: c1db8465bb597698cce76b564f0b294338c95b01b5bcc2bdd692cc4987f1d175a590ca7246607155dc25fcdb0fd231f32d6ed68a74b0ea157cfbcd9f209df86e
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-sqladmin_v1beta4
|
2
2
|
|
3
|
+
### v0.56.0 (2023-10-08)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20231004
|
6
|
+
|
7
|
+
### v0.55.0 (2023-09-10)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230831
|
10
|
+
|
3
11
|
### v0.54.0 (2023-08-03)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230721
|
@@ -844,6 +844,11 @@ module Google
|
|
844
844
|
# @return [Google::Apis::SqladminV1beta4::SqlOutOfDiskReport]
|
845
845
|
attr_accessor :out_of_disk_report
|
846
846
|
|
847
|
+
# Output only. DEPRECATED: please use write_endpoint instead.
|
848
|
+
# Corresponds to the JSON property `primaryDnsName`
|
849
|
+
# @return [String]
|
850
|
+
attr_accessor :primary_dns_name
|
851
|
+
|
847
852
|
# The project ID of the project containing the Cloud SQL instance. The Google
|
848
853
|
# apps domain is prefixed if applicable.
|
849
854
|
# Corresponds to the JSON property `project`
|
@@ -929,6 +934,11 @@ module Google
|
|
929
934
|
# @return [Array<String>]
|
930
935
|
attr_accessor :suspension_reason
|
931
936
|
|
937
|
+
# Output only. The dns name of the primary instance in a replication group.
|
938
|
+
# Corresponds to the JSON property `writeEndpoint`
|
939
|
+
# @return [String]
|
940
|
+
attr_accessor :write_endpoint
|
941
|
+
|
932
942
|
def initialize(**args)
|
933
943
|
update!(**args)
|
934
944
|
end
|
@@ -958,6 +968,7 @@ module Google
|
|
958
968
|
@name = args[:name] if args.key?(:name)
|
959
969
|
@on_premises_configuration = args[:on_premises_configuration] if args.key?(:on_premises_configuration)
|
960
970
|
@out_of_disk_report = args[:out_of_disk_report] if args.key?(:out_of_disk_report)
|
971
|
+
@primary_dns_name = args[:primary_dns_name] if args.key?(:primary_dns_name)
|
961
972
|
@project = args[:project] if args.key?(:project)
|
962
973
|
@psc_service_attachment_link = args[:psc_service_attachment_link] if args.key?(:psc_service_attachment_link)
|
963
974
|
@region = args[:region] if args.key?(:region)
|
@@ -973,6 +984,7 @@ module Google
|
|
973
984
|
@settings = args[:settings] if args.key?(:settings)
|
974
985
|
@state = args[:state] if args.key?(:state)
|
975
986
|
@suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
|
987
|
+
@write_endpoint = args[:write_endpoint] if args.key?(:write_endpoint)
|
976
988
|
end
|
977
989
|
|
978
990
|
# The name and status of the failover replica.
|
@@ -2268,12 +2280,37 @@ module Google
|
|
2268
2280
|
# @return [Google::Apis::SqladminV1beta4::PscConfig]
|
2269
2281
|
attr_accessor :psc_config
|
2270
2282
|
|
2271
|
-
# Whether SSL connections over IP are
|
2283
|
+
# LINT.IfChange(require_ssl_deprecate) Whether SSL/TLS connections over IP are
|
2284
|
+
# enforced or not. If set to false, allow both non-SSL/non-TLS and SSL/TLS
|
2285
|
+
# connections. For SSL/TLS connections, the client certificate will not be
|
2286
|
+
# verified. If set to true, only allow connections encrypted with SSL/TLS and
|
2287
|
+
# with valid client certificates. If you want to enforce SSL/TLS without
|
2288
|
+
# enforcing the requirement for valid client certificates, use the `ssl_mode`
|
2289
|
+
# flag instead of the legacy `require_ssl` flag. LINT.ThenChange(//depot/google3/
|
2290
|
+
# java/com/google/storage/speckle/boss/admin/actions/InstanceUpdateAction.java:
|
2291
|
+
# update_api_temp_fix)
|
2272
2292
|
# Corresponds to the JSON property `requireSsl`
|
2273
2293
|
# @return [Boolean]
|
2274
2294
|
attr_accessor :require_ssl
|
2275
2295
|
alias_method :require_ssl?, :require_ssl
|
2276
2296
|
|
2297
|
+
# Specify how SSL/TLS will be enforced in database connections. This flag is
|
2298
|
+
# only supported for PostgreSQL. Use the legacy `require_ssl` flag for enforcing
|
2299
|
+
# SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, it is recommended to use
|
2300
|
+
# the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the
|
2301
|
+
# conflict between those flags in PostgreSQL, only the following value pairs are
|
2302
|
+
# valid: ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED, require_ssl=false; ssl_mode=
|
2303
|
+
# ENCRYPTED_ONLY, require_ssl=false; ssl_mode=
|
2304
|
+
# TRUSTED_CLIENT_CERTIFICATE_REQUIRED, require_ssl=true; Note that the value of `
|
2305
|
+
# ssl_mode` gets priority over the value of the legacy `require_ssl`. For
|
2306
|
+
# example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `
|
2307
|
+
# ssl_mode=ENCRYPTED_ONLY` means "only accepts SSL connection", while the `
|
2308
|
+
# require_ssl=false` means "both non-SSL and SSL connections are allowed". The
|
2309
|
+
# database will respect `ssl_mode` in this case and only accept SSL connections.
|
2310
|
+
# Corresponds to the JSON property `sslMode`
|
2311
|
+
# @return [String]
|
2312
|
+
attr_accessor :ssl_mode
|
2313
|
+
|
2277
2314
|
def initialize(**args)
|
2278
2315
|
update!(**args)
|
2279
2316
|
end
|
@@ -2287,10 +2324,11 @@ module Google
|
|
2287
2324
|
@private_network = args[:private_network] if args.key?(:private_network)
|
2288
2325
|
@psc_config = args[:psc_config] if args.key?(:psc_config)
|
2289
2326
|
@require_ssl = args[:require_ssl] if args.key?(:require_ssl)
|
2327
|
+
@ssl_mode = args[:ssl_mode] if args.key?(:ssl_mode)
|
2290
2328
|
end
|
2291
2329
|
end
|
2292
2330
|
|
2293
|
-
# Database instance IP
|
2331
|
+
# Database instance IP mapping
|
2294
2332
|
class IpMapping
|
2295
2333
|
include Google::Apis::Core::Hashable
|
2296
2334
|
|
@@ -2344,7 +2382,8 @@ module Google
|
|
2344
2382
|
attr_accessor :kind
|
2345
2383
|
|
2346
2384
|
# The preferred Compute Engine zone for the secondary/failover (for example: us-
|
2347
|
-
# central1-a, us-central1-b, etc.).
|
2385
|
+
# central1-a, us-central1-b, etc.). To disable this field, set it to '
|
2386
|
+
# no_secondary_zone'.
|
2348
2387
|
# Corresponds to the JSON property `secondaryZone`
|
2349
2388
|
# @return [String]
|
2350
2389
|
attr_accessor :secondary_zone
|
@@ -2881,6 +2920,13 @@ module Google
|
|
2881
2920
|
# @return [String]
|
2882
2921
|
attr_accessor :complexity
|
2883
2922
|
|
2923
|
+
# Disallow credentials that have been previously compromised by a public data
|
2924
|
+
# breach.
|
2925
|
+
# Corresponds to the JSON property `disallowCompromisedCredentials`
|
2926
|
+
# @return [Boolean]
|
2927
|
+
attr_accessor :disallow_compromised_credentials
|
2928
|
+
alias_method :disallow_compromised_credentials?, :disallow_compromised_credentials
|
2929
|
+
|
2884
2930
|
# Disallow username as a part of the password.
|
2885
2931
|
# Corresponds to the JSON property `disallowUsernameSubstring`
|
2886
2932
|
# @return [Boolean]
|
@@ -2916,6 +2962,7 @@ module Google
|
|
2916
2962
|
# Update properties of this object
|
2917
2963
|
def update!(**args)
|
2918
2964
|
@complexity = args[:complexity] if args.key?(:complexity)
|
2965
|
+
@disallow_compromised_credentials = args[:disallow_compromised_credentials] if args.key?(:disallow_compromised_credentials)
|
2919
2966
|
@disallow_username_substring = args[:disallow_username_substring] if args.key?(:disallow_username_substring)
|
2920
2967
|
@enable_password_policy = args[:enable_password_policy] if args.key?(:enable_password_policy)
|
2921
2968
|
@min_length = args[:min_length] if args.key?(:min_length)
|
@@ -2947,10 +2994,10 @@ module Google
|
|
2947
2994
|
class PscConfig
|
2948
2995
|
include Google::Apis::Core::Hashable
|
2949
2996
|
|
2950
|
-
#
|
2951
|
-
# instance. This instance can be connected to with PSC from
|
2952
|
-
# projects. Each consumer project in this list may be
|
2953
|
-
# number (numeric) or by a project id (alphanumeric).
|
2997
|
+
# Optional. The list of consumer projects that are allow-listed for PSC
|
2998
|
+
# connections to this instance. This instance can be connected to with PSC from
|
2999
|
+
# any network in these projects. Each consumer project in this list may be
|
3000
|
+
# represented by a project number (numeric) or by a project id (alphanumeric).
|
2954
3001
|
# Corresponds to the JSON property `allowedConsumerProjects`
|
2955
3002
|
# @return [Array<String>]
|
2956
3003
|
attr_accessor :allowed_consumer_projects
|
@@ -2976,6 +3023,14 @@ module Google
|
|
2976
3023
|
class ReplicaConfiguration
|
2977
3024
|
include Google::Apis::Core::Hashable
|
2978
3025
|
|
3026
|
+
# Optional. Specifies if a SQL Server replica is a cascadable replica. A
|
3027
|
+
# cascadable replica is a SQL Server cross region replica that supports replica(
|
3028
|
+
# s) under it.
|
3029
|
+
# Corresponds to the JSON property `cascadableReplica`
|
3030
|
+
# @return [Boolean]
|
3031
|
+
attr_accessor :cascadable_replica
|
3032
|
+
alias_method :cascadable_replica?, :cascadable_replica
|
3033
|
+
|
2979
3034
|
# Specifies if the replica is the failover target. If the field is set to `true`
|
2980
3035
|
# the replica will be designated as a failover replica. In case the primary
|
2981
3036
|
# instance fails, the replica instance will be promoted as the new primary
|
@@ -3002,6 +3057,7 @@ module Google
|
|
3002
3057
|
|
3003
3058
|
# Update properties of this object
|
3004
3059
|
def update!(**args)
|
3060
|
+
@cascadable_replica = args[:cascadable_replica] if args.key?(:cascadable_replica)
|
3005
3061
|
@failover_target = args[:failover_target] if args.key?(:failover_target)
|
3006
3062
|
@kind = args[:kind] if args.key?(:kind)
|
3007
3063
|
@mysql_replica_configuration = args[:mysql_replica_configuration] if args.key?(:mysql_replica_configuration)
|
@@ -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.
|
19
|
+
GEM_VERSION = "0.56.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20231004"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -827,6 +827,7 @@ module Google
|
|
827
827
|
|
828
828
|
property :out_of_disk_report, as: 'outOfDiskReport', class: Google::Apis::SqladminV1beta4::SqlOutOfDiskReport, decorator: Google::Apis::SqladminV1beta4::SqlOutOfDiskReport::Representation
|
829
829
|
|
830
|
+
property :primary_dns_name, as: 'primaryDnsName'
|
830
831
|
property :project, as: 'project'
|
831
832
|
property :psc_service_attachment_link, as: 'pscServiceAttachmentLink'
|
832
833
|
property :region, as: 'region'
|
@@ -846,6 +847,7 @@ module Google
|
|
846
847
|
|
847
848
|
property :state, as: 'state'
|
848
849
|
collection :suspension_reason, as: 'suspensionReason'
|
850
|
+
property :write_endpoint, as: 'writeEndpoint'
|
849
851
|
end
|
850
852
|
|
851
853
|
class FailoverReplica
|
@@ -1213,6 +1215,7 @@ module Google
|
|
1213
1215
|
property :psc_config, as: 'pscConfig', class: Google::Apis::SqladminV1beta4::PscConfig, decorator: Google::Apis::SqladminV1beta4::PscConfig::Representation
|
1214
1216
|
|
1215
1217
|
property :require_ssl, as: 'requireSsl'
|
1218
|
+
property :ssl_mode, as: 'sslMode'
|
1216
1219
|
end
|
1217
1220
|
end
|
1218
1221
|
|
@@ -1365,6 +1368,7 @@ module Google
|
|
1365
1368
|
# @private
|
1366
1369
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1367
1370
|
property :complexity, as: 'complexity'
|
1371
|
+
property :disallow_compromised_credentials, as: 'disallowCompromisedCredentials'
|
1368
1372
|
property :disallow_username_substring, as: 'disallowUsernameSubstring'
|
1369
1373
|
property :enable_password_policy, as: 'enablePasswordPolicy'
|
1370
1374
|
property :min_length, as: 'minLength'
|
@@ -1391,6 +1395,7 @@ module Google
|
|
1391
1395
|
class ReplicaConfiguration
|
1392
1396
|
# @private
|
1393
1397
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1398
|
+
property :cascadable_replica, as: 'cascadableReplica'
|
1394
1399
|
property :failover_target, as: 'failoverTarget'
|
1395
1400
|
property :kind, as: 'kind'
|
1396
1401
|
property :mysql_replica_configuration, as: 'mysqlReplicaConfiguration', class: Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration, decorator: Google::Apis::SqladminV1beta4::MySqlReplicaConfiguration::Representation
|
@@ -679,7 +679,7 @@ module Google
|
|
679
679
|
# @param [String] project
|
680
680
|
# Project ID of the project that contains the instance to be exported.
|
681
681
|
# @param [String] instance
|
682
|
-
# Cloud SQL instance ID. This
|
682
|
+
# The Cloud SQL instance ID. This doesn't include the project ID.
|
683
683
|
# @param [Google::Apis::SqladminV1beta4::ExportInstancesRequest] export_instances_request_object
|
684
684
|
# @param [String] fields
|
685
685
|
# Selector specifying which fields to include in a partial response.
|
@@ -984,6 +984,10 @@ module Google
|
|
984
984
|
# ID of the project that contains the read replica.
|
985
985
|
# @param [String] instance
|
986
986
|
# Cloud SQL read replica instance name.
|
987
|
+
# @param [Boolean] failover
|
988
|
+
# Set to true if the promote operation should attempt to re-add the original
|
989
|
+
# primary as a replica when it comes back online. Otherwise, if this value is
|
990
|
+
# false or not set, the original primary will be a standalone instance.
|
987
991
|
# @param [String] fields
|
988
992
|
# Selector specifying which fields to include in a partial response.
|
989
993
|
# @param [String] quota_user
|
@@ -1001,12 +1005,13 @@ module Google
|
|
1001
1005
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1002
1006
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1003
1007
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1004
|
-
def promote_instance_replica(project, instance, fields: nil, quota_user: nil, options: nil, &block)
|
1008
|
+
def promote_instance_replica(project, instance, failover: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1005
1009
|
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/promoteReplica', options)
|
1006
1010
|
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1007
1011
|
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1008
1012
|
command.params['project'] = project unless project.nil?
|
1009
1013
|
command.params['instance'] = instance unless instance.nil?
|
1014
|
+
command.query['failover'] = failover unless failover.nil?
|
1010
1015
|
command.query['fields'] = fields unless fields.nil?
|
1011
1016
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1012
1017
|
execute_or_queue_command(command, &block)
|
@@ -1255,6 +1260,44 @@ module Google
|
|
1255
1260
|
execute_or_queue_command(command, &block)
|
1256
1261
|
end
|
1257
1262
|
|
1263
|
+
# Switches over from the primary instance to a replica instance.
|
1264
|
+
# @param [String] project
|
1265
|
+
# ID of the project that contains the replica.
|
1266
|
+
# @param [String] instance
|
1267
|
+
# Cloud SQL read replica instance name.
|
1268
|
+
# @param [String] db_timeout
|
1269
|
+
# Optional. (MySQL only) Cloud SQL instance operations timeout, which is a sum
|
1270
|
+
# of all database operations. Default value is 10 minutes and can be modified to
|
1271
|
+
# a maximum value of 24 hours.
|
1272
|
+
# @param [String] fields
|
1273
|
+
# Selector specifying which fields to include in a partial response.
|
1274
|
+
# @param [String] quota_user
|
1275
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1276
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1277
|
+
# @param [Google::Apis::RequestOptions] options
|
1278
|
+
# Request-specific options
|
1279
|
+
#
|
1280
|
+
# @yield [result, err] Result & error if block supplied
|
1281
|
+
# @yieldparam result [Google::Apis::SqladminV1beta4::Operation] parsed result object
|
1282
|
+
# @yieldparam err [StandardError] error object if request failed
|
1283
|
+
#
|
1284
|
+
# @return [Google::Apis::SqladminV1beta4::Operation]
|
1285
|
+
#
|
1286
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1287
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1288
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1289
|
+
def switchover_instance(project, instance, db_timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
1290
|
+
command = make_simple_command(:post, 'sql/v1beta4/projects/{project}/instances/{instance}/switchover', options)
|
1291
|
+
command.response_representation = Google::Apis::SqladminV1beta4::Operation::Representation
|
1292
|
+
command.response_class = Google::Apis::SqladminV1beta4::Operation
|
1293
|
+
command.params['project'] = project unless project.nil?
|
1294
|
+
command.params['instance'] = instance unless instance.nil?
|
1295
|
+
command.query['dbTimeout'] = db_timeout unless db_timeout.nil?
|
1296
|
+
command.query['fields'] = fields unless fields.nil?
|
1297
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1298
|
+
execute_or_queue_command(command, &block)
|
1299
|
+
end
|
1300
|
+
|
1258
1301
|
# Truncate MySQL general and slow query log tables MySQL only.
|
1259
1302
|
# @param [String] project
|
1260
1303
|
# Project ID of the Cloud SQL project.
|
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.
|
4
|
+
version: 0.56.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: 2023-08
|
11
|
+
date: 2023-10-08 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1beta4/v0.56.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: []
|
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
75
75
|
- !ruby/object:Gem::Version
|
76
76
|
version: '0'
|
77
77
|
requirements: []
|
78
|
-
rubygems_version: 3.4.
|
78
|
+
rubygems_version: 3.4.19
|
79
79
|
signing_key:
|
80
80
|
specification_version: 4
|
81
81
|
summary: Simple REST client for Cloud SQL Admin API V1beta4
|