google-apis-sqladmin_v1beta4 0.55.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
@@ -844,7 +844,7 @@ module Google
|
|
844
844
|
# @return [Google::Apis::SqladminV1beta4::SqlOutOfDiskReport]
|
845
845
|
attr_accessor :out_of_disk_report
|
846
846
|
|
847
|
-
# Output only.
|
847
|
+
# Output only. DEPRECATED: please use write_endpoint instead.
|
848
848
|
# Corresponds to the JSON property `primaryDnsName`
|
849
849
|
# @return [String]
|
850
850
|
attr_accessor :primary_dns_name
|
@@ -934,6 +934,11 @@ module Google
|
|
934
934
|
# @return [Array<String>]
|
935
935
|
attr_accessor :suspension_reason
|
936
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
|
+
|
937
942
|
def initialize(**args)
|
938
943
|
update!(**args)
|
939
944
|
end
|
@@ -979,6 +984,7 @@ module Google
|
|
979
984
|
@settings = args[:settings] if args.key?(:settings)
|
980
985
|
@state = args[:state] if args.key?(:state)
|
981
986
|
@suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
|
987
|
+
@write_endpoint = args[:write_endpoint] if args.key?(:write_endpoint)
|
982
988
|
end
|
983
989
|
|
984
990
|
# The name and status of the failover replica.
|
@@ -2274,12 +2280,37 @@ module Google
|
|
2274
2280
|
# @return [Google::Apis::SqladminV1beta4::PscConfig]
|
2275
2281
|
attr_accessor :psc_config
|
2276
2282
|
|
2277
|
-
# 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)
|
2278
2292
|
# Corresponds to the JSON property `requireSsl`
|
2279
2293
|
# @return [Boolean]
|
2280
2294
|
attr_accessor :require_ssl
|
2281
2295
|
alias_method :require_ssl?, :require_ssl
|
2282
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
|
+
|
2283
2314
|
def initialize(**args)
|
2284
2315
|
update!(**args)
|
2285
2316
|
end
|
@@ -2293,10 +2324,11 @@ module Google
|
|
2293
2324
|
@private_network = args[:private_network] if args.key?(:private_network)
|
2294
2325
|
@psc_config = args[:psc_config] if args.key?(:psc_config)
|
2295
2326
|
@require_ssl = args[:require_ssl] if args.key?(:require_ssl)
|
2327
|
+
@ssl_mode = args[:ssl_mode] if args.key?(:ssl_mode)
|
2296
2328
|
end
|
2297
2329
|
end
|
2298
2330
|
|
2299
|
-
# Database instance IP
|
2331
|
+
# Database instance IP mapping
|
2300
2332
|
class IpMapping
|
2301
2333
|
include Google::Apis::Core::Hashable
|
2302
2334
|
|
@@ -2888,6 +2920,13 @@ module Google
|
|
2888
2920
|
# @return [String]
|
2889
2921
|
attr_accessor :complexity
|
2890
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
|
+
|
2891
2930
|
# Disallow username as a part of the password.
|
2892
2931
|
# Corresponds to the JSON property `disallowUsernameSubstring`
|
2893
2932
|
# @return [Boolean]
|
@@ -2923,6 +2962,7 @@ module Google
|
|
2923
2962
|
# Update properties of this object
|
2924
2963
|
def update!(**args)
|
2925
2964
|
@complexity = args[:complexity] if args.key?(:complexity)
|
2965
|
+
@disallow_compromised_credentials = args[:disallow_compromised_credentials] if args.key?(:disallow_compromised_credentials)
|
2926
2966
|
@disallow_username_substring = args[:disallow_username_substring] if args.key?(:disallow_username_substring)
|
2927
2967
|
@enable_password_policy = args[:enable_password_policy] if args.key?(:enable_password_policy)
|
2928
2968
|
@min_length = args[:min_length] if args.key?(:min_length)
|
@@ -2954,10 +2994,10 @@ module Google
|
|
2954
2994
|
class PscConfig
|
2955
2995
|
include Google::Apis::Core::Hashable
|
2956
2996
|
|
2957
|
-
#
|
2958
|
-
# instance. This instance can be connected to with PSC from
|
2959
|
-
# projects. Each consumer project in this list may be
|
2960
|
-
# 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).
|
2961
3001
|
# Corresponds to the JSON property `allowedConsumerProjects`
|
2962
3002
|
# @return [Array<String>]
|
2963
3003
|
attr_accessor :allowed_consumer_projects
|
@@ -2983,6 +3023,14 @@ module Google
|
|
2983
3023
|
class ReplicaConfiguration
|
2984
3024
|
include Google::Apis::Core::Hashable
|
2985
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
|
+
|
2986
3034
|
# Specifies if the replica is the failover target. If the field is set to `true`
|
2987
3035
|
# the replica will be designated as a failover replica. In case the primary
|
2988
3036
|
# instance fails, the replica instance will be promoted as the new primary
|
@@ -3009,6 +3057,7 @@ module Google
|
|
3009
3057
|
|
3010
3058
|
# Update properties of this object
|
3011
3059
|
def update!(**args)
|
3060
|
+
@cascadable_replica = args[:cascadable_replica] if args.key?(:cascadable_replica)
|
3012
3061
|
@failover_target = args[:failover_target] if args.key?(:failover_target)
|
3013
3062
|
@kind = args[:kind] if args.key?(:kind)
|
3014
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
|
@@ -847,6 +847,7 @@ module Google
|
|
847
847
|
|
848
848
|
property :state, as: 'state'
|
849
849
|
collection :suspension_reason, as: 'suspensionReason'
|
850
|
+
property :write_endpoint, as: 'writeEndpoint'
|
850
851
|
end
|
851
852
|
|
852
853
|
class FailoverReplica
|
@@ -1214,6 +1215,7 @@ module Google
|
|
1214
1215
|
property :psc_config, as: 'pscConfig', class: Google::Apis::SqladminV1beta4::PscConfig, decorator: Google::Apis::SqladminV1beta4::PscConfig::Representation
|
1215
1216
|
|
1216
1217
|
property :require_ssl, as: 'requireSsl'
|
1218
|
+
property :ssl_mode, as: 'sslMode'
|
1217
1219
|
end
|
1218
1220
|
end
|
1219
1221
|
|
@@ -1366,6 +1368,7 @@ module Google
|
|
1366
1368
|
# @private
|
1367
1369
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1368
1370
|
property :complexity, as: 'complexity'
|
1371
|
+
property :disallow_compromised_credentials, as: 'disallowCompromisedCredentials'
|
1369
1372
|
property :disallow_username_substring, as: 'disallowUsernameSubstring'
|
1370
1373
|
property :enable_password_policy, as: 'enablePasswordPolicy'
|
1371
1374
|
property :min_length, as: 'minLength'
|
@@ -1392,6 +1395,7 @@ module Google
|
|
1392
1395
|
class ReplicaConfiguration
|
1393
1396
|
# @private
|
1394
1397
|
class Representation < Google::Apis::Core::JsonRepresentation
|
1398
|
+
property :cascadable_replica, as: 'cascadableReplica'
|
1395
1399
|
property :failover_target, as: 'failoverTarget'
|
1396
1400
|
property :kind, as: 'kind'
|
1397
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-
|
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: []
|