google-apis-sqladmin_v1 0.43.0 → 0.44.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: ed996052ee62c4a7495de29d2cf9ad58f0a028f067ec3dd442b938f6a86cab58
4
- data.tar.gz: 5c1ed594319353b40d311f4282ec9633872ee6b60d6bd6656cef699add19af4e
3
+ metadata.gz: 7de21da4e3fc0b629989a9179b1cc13e83a316445c17a3cedabcf219bb114669
4
+ data.tar.gz: 1cb216841ce13a33bf04bd1ce58998571c131238ddc20c24969638bfa53ad401
5
5
  SHA512:
6
- metadata.gz: bd01320016b012fd6fd2a859f5b3c30a82e57b58750f5b819f3e7b1b9b4f981017ac961346d8e7c55ec70709d415763c6ddb9f6d976760d955d1569d9ef491b7
7
- data.tar.gz: aa092305b5a75a3dec4cb8d40c20dbdd07f258014fb0205ef889e129e8ddb2f581ec0eec96021fa75782ebaef1121aa076e54655f8714482e43e2f734eb07c8e
6
+ metadata.gz: 10ff88a1db84bd389b4e18ec7d549fe81030d2f1d173bcbe8727124c80a410f60abfa7b370a570f8f07470262e80d21cbd657dfabb705f2fec0971dcd38e7f69
7
+ data.tar.gz: 77818390b4f48ae93c8db67f2c407009862e050545c83fac0c7279d7f1fcf057ffc9eb34a55d13ffc0365d13395c97295823954e82482452ed0aa056914cdc6e
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-sqladmin_v1
2
2
 
3
+ ### v0.44.0 (2023-10-08)
4
+
5
+ * Regenerated from discovery document revision 20231004
6
+
3
7
  ### v0.43.0 (2023-09-10)
4
8
 
5
9
  * Regenerated from discovery document revision 20230831
@@ -844,7 +844,7 @@ module Google
844
844
  # @return [Google::Apis::SqladminV1::SqlOutOfDiskReport]
845
845
  attr_accessor :out_of_disk_report
846
846
 
847
- # Output only. The dns name of the primary instance in a replication group.
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.
@@ -2273,12 +2279,37 @@ module Google
2273
2279
  # @return [Google::Apis::SqladminV1::PscConfig]
2274
2280
  attr_accessor :psc_config
2275
2281
 
2276
- # Whether SSL connections over IP are enforced or not.
2282
+ # LINT.IfChange(require_ssl_deprecate) Whether SSL/TLS connections over IP are
2283
+ # enforced or not. If set to false, allow both non-SSL/non-TLS and SSL/TLS
2284
+ # connections. For SSL/TLS connections, the client certificate will not be
2285
+ # verified. If set to true, only allow connections encrypted with SSL/TLS and
2286
+ # with valid client certificates. If you want to enforce SSL/TLS without
2287
+ # enforcing the requirement for valid client certificates, use the `ssl_mode`
2288
+ # flag instead of the legacy `require_ssl` flag. LINT.ThenChange(//depot/google3/
2289
+ # java/com/google/storage/speckle/boss/admin/actions/InstanceUpdateAction.java:
2290
+ # update_api_temp_fix)
2277
2291
  # Corresponds to the JSON property `requireSsl`
2278
2292
  # @return [Boolean]
2279
2293
  attr_accessor :require_ssl
2280
2294
  alias_method :require_ssl?, :require_ssl
2281
2295
 
2296
+ # Specify how SSL/TLS will be enforced in database connections. This flag is
2297
+ # only supported for PostgreSQL. Use the legacy `require_ssl` flag for enforcing
2298
+ # SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, it is recommended to use
2299
+ # the `ssl_mode` flag instead of the legacy `require_ssl` flag. To avoid the
2300
+ # conflict between those flags in PostgreSQL, only the following value pairs are
2301
+ # valid: ssl_mode=ALLOW_UNENCRYPTED_AND_ENCRYPTED, require_ssl=false; ssl_mode=
2302
+ # ENCRYPTED_ONLY, require_ssl=false; ssl_mode=
2303
+ # TRUSTED_CLIENT_CERTIFICATE_REQUIRED, require_ssl=true; Note that the value of `
2304
+ # ssl_mode` gets priority over the value of the legacy `require_ssl`. For
2305
+ # example, for the pair `ssl_mode=ENCRYPTED_ONLY, require_ssl=false`, the `
2306
+ # ssl_mode=ENCRYPTED_ONLY` means "only accepts SSL connection", while the `
2307
+ # require_ssl=false` means "both non-SSL and SSL connections are allowed". The
2308
+ # database will respect `ssl_mode` in this case and only accept SSL connections.
2309
+ # Corresponds to the JSON property `sslMode`
2310
+ # @return [String]
2311
+ attr_accessor :ssl_mode
2312
+
2282
2313
  def initialize(**args)
2283
2314
  update!(**args)
2284
2315
  end
@@ -2292,10 +2323,11 @@ module Google
2292
2323
  @private_network = args[:private_network] if args.key?(:private_network)
2293
2324
  @psc_config = args[:psc_config] if args.key?(:psc_config)
2294
2325
  @require_ssl = args[:require_ssl] if args.key?(:require_ssl)
2326
+ @ssl_mode = args[:ssl_mode] if args.key?(:ssl_mode)
2295
2327
  end
2296
2328
  end
2297
2329
 
2298
- # Database instance IP Mapping.
2330
+ # Database instance IP mapping
2299
2331
  class IpMapping
2300
2332
  include Google::Apis::Core::Hashable
2301
2333
 
@@ -2887,6 +2919,13 @@ module Google
2887
2919
  # @return [String]
2888
2920
  attr_accessor :complexity
2889
2921
 
2922
+ # Disallow credentials that have been previously compromised by a public data
2923
+ # breach.
2924
+ # Corresponds to the JSON property `disallowCompromisedCredentials`
2925
+ # @return [Boolean]
2926
+ attr_accessor :disallow_compromised_credentials
2927
+ alias_method :disallow_compromised_credentials?, :disallow_compromised_credentials
2928
+
2890
2929
  # Disallow username as a part of the password.
2891
2930
  # Corresponds to the JSON property `disallowUsernameSubstring`
2892
2931
  # @return [Boolean]
@@ -2922,6 +2961,7 @@ module Google
2922
2961
  # Update properties of this object
2923
2962
  def update!(**args)
2924
2963
  @complexity = args[:complexity] if args.key?(:complexity)
2964
+ @disallow_compromised_credentials = args[:disallow_compromised_credentials] if args.key?(:disallow_compromised_credentials)
2925
2965
  @disallow_username_substring = args[:disallow_username_substring] if args.key?(:disallow_username_substring)
2926
2966
  @enable_password_policy = args[:enable_password_policy] if args.key?(:enable_password_policy)
2927
2967
  @min_length = args[:min_length] if args.key?(:min_length)
@@ -2953,10 +2993,10 @@ module Google
2953
2993
  class PscConfig
2954
2994
  include Google::Apis::Core::Hashable
2955
2995
 
2956
- # List of consumer projects that are allow-listed for PSC connections to this
2957
- # instance. This instance can be connected to with PSC from any network in these
2958
- # projects. Each consumer project in this list may be represented by a project
2959
- # number (numeric) or by a project id (alphanumeric).
2996
+ # Optional. The list of consumer projects that are allow-listed for PSC
2997
+ # connections to this instance. This instance can be connected to with PSC from
2998
+ # any network in these projects. Each consumer project in this list may be
2999
+ # represented by a project number (numeric) or by a project id (alphanumeric).
2960
3000
  # Corresponds to the JSON property `allowedConsumerProjects`
2961
3001
  # @return [Array<String>]
2962
3002
  attr_accessor :allowed_consumer_projects
@@ -2982,6 +3022,14 @@ module Google
2982
3022
  class ReplicaConfiguration
2983
3023
  include Google::Apis::Core::Hashable
2984
3024
 
3025
+ # Optional. Specifies if a SQL Server replica is a cascadable replica. A
3026
+ # cascadable replica is a SQL Server cross region replica that supports replica(
3027
+ # s) under it.
3028
+ # Corresponds to the JSON property `cascadableReplica`
3029
+ # @return [Boolean]
3030
+ attr_accessor :cascadable_replica
3031
+ alias_method :cascadable_replica?, :cascadable_replica
3032
+
2985
3033
  # Specifies if the replica is the failover target. If the field is set to `true`,
2986
3034
  # the replica will be designated as a failover replica. In case the primary
2987
3035
  # instance fails, the replica instance will be promoted as the new primary
@@ -3008,6 +3056,7 @@ module Google
3008
3056
 
3009
3057
  # Update properties of this object
3010
3058
  def update!(**args)
3059
+ @cascadable_replica = args[:cascadable_replica] if args.key?(:cascadable_replica)
3011
3060
  @failover_target = args[:failover_target] if args.key?(:failover_target)
3012
3061
  @kind = args[:kind] if args.key?(:kind)
3013
3062
  @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 SqladminV1
18
18
  # Version of the google-apis-sqladmin_v1 gem
19
- GEM_VERSION = "0.43.0"
19
+ GEM_VERSION = "0.44.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 = "20230831"
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::SqladminV1::PscConfig, decorator: Google::Apis::SqladminV1::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::SqladminV1::MySqlReplicaConfiguration, decorator: Google::Apis::SqladminV1::MySqlReplicaConfiguration::Representation
@@ -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, 'v1/projects/{project}/instances/{instance}/promoteReplica', options)
1006
1010
  command.response_representation = Google::Apis::SqladminV1::Operation::Representation
1007
1011
  command.response_class = Google::Apis::SqladminV1::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 the 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::SqladminV1::Operation] parsed result object
1282
+ # @yieldparam err [StandardError] error object if request failed
1283
+ #
1284
+ # @return [Google::Apis::SqladminV1::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, 'v1/projects/{project}/instances/{instance}/switchover', options)
1291
+ command.response_representation = Google::Apis::SqladminV1::Operation::Representation
1292
+ command.response_class = Google::Apis::SqladminV1::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_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.43.0
4
+ version: 0.44.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-09-10 00:00:00.000000000 Z
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_v1/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.43.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-sqladmin_v1/v0.44.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: []