google-apis-sqladmin_v1 0.43.0 → 0.45.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: 61eec3cbe925b9bcb0252ccfc07def1f4a2a5200e42ba573fc05e8e62b6a8373
4
+ data.tar.gz: 3c91e2cb1ea79058a100dd8205b845137a7e2cfb9f797ecfde872b2b1faa9df2
5
5
  SHA512:
6
- metadata.gz: bd01320016b012fd6fd2a859f5b3c30a82e57b58750f5b819f3e7b1b9b4f981017ac961346d8e7c55ec70709d415763c6ddb9f6d976760d955d1569d9ef491b7
7
- data.tar.gz: aa092305b5a75a3dec4cb8d40c20dbdd07f258014fb0205ef889e129e8ddb2f581ec0eec96021fa75782ebaef1121aa076e54655f8714482e43e2f734eb07c8e
6
+ metadata.gz: 2333984ab0e56ab9b0b242a130e53495d3f0e2fbc9616b3ff973654ed80e1926fd7b46451a514cbc026f1a5b53c3bb4ea38c392ef0530362a61ab936de476f2f
7
+ data.tar.gz: 322d02a0701e99efc6b436a87512bf7d5572a702f2cf561844c2ca816ebdc749688f2a689c835e62f60096a8b76396ad9f347304ef52e92e187368acfaa2b5ee
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-sqladmin_v1
2
2
 
3
+ ### v0.45.0 (2023-10-22)
4
+
5
+ * Regenerated from discovery document revision 20231017
6
+
7
+ ### v0.44.0 (2023-10-08)
8
+
9
+ * Regenerated from discovery document revision 20231004
10
+
3
11
  ### v0.43.0 (2023-09-10)
4
12
 
5
13
  * 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.
@@ -1778,14 +1784,17 @@ module Google
1778
1784
  attr_accessor :recovery_only
1779
1785
  alias_method :recovery_only?, :recovery_only
1780
1786
 
1781
- # Optional. StopAt keyword for transaction log import, Applies to Cloud SQL for
1782
- # SQL Server only
1787
+ # Optional. The timestamp when the import should stop. This timestamp is in the [
1788
+ # RFC 3339](https://tools.ietf.org/html/rfc3339) format (for example, `2023-10-
1789
+ # 01T16:19:00.094`). This field is equivalent to the STOPAT keyword and applies
1790
+ # to Cloud SQL for SQL Server only.
1783
1791
  # Corresponds to the JSON property `stopAt`
1784
1792
  # @return [String]
1785
1793
  attr_accessor :stop_at
1786
1794
 
1787
- # Optional. StopAtMark keyword for transaction log import, Applies to Cloud SQL
1788
- # for SQL Server only
1795
+ # Optional. The marked transaction where the import should stop. This field is
1796
+ # equivalent to the STOPATMARK keyword and applies to Cloud SQL for SQL Server
1797
+ # only.
1789
1798
  # Corresponds to the JSON property `stopAtMark`
1790
1799
  # @return [String]
1791
1800
  attr_accessor :stop_at_mark
@@ -2273,12 +2282,35 @@ module Google
2273
2282
  # @return [Google::Apis::SqladminV1::PscConfig]
2274
2283
  attr_accessor :psc_config
2275
2284
 
2276
- # Whether SSL connections over IP are enforced or not.
2285
+ # Whether SSL/TLS connections over IP are enforced. If set to false, then allow
2286
+ # both non-SSL/non-TLS and SSL/TLS connections. For SSL/TLS connections, the
2287
+ # client certificate won't be verified. If set to true, then only allow
2288
+ # connections encrypted with SSL/TLS and with valid client certificates. If you
2289
+ # want to enforce SSL/TLS without enforcing the requirement for valid client
2290
+ # certificates, then use the `ssl_mode` flag instead of the legacy `require_ssl`
2291
+ # flag.
2277
2292
  # Corresponds to the JSON property `requireSsl`
2278
2293
  # @return [Boolean]
2279
2294
  attr_accessor :require_ssl
2280
2295
  alias_method :require_ssl?, :require_ssl
2281
2296
 
2297
+ # Specify how SSL/TLS is enforced in database connections. This flag is
2298
+ # supported only for PostgreSQL. Use the legacy `require_ssl` flag for enforcing
2299
+ # SSL/TLS in MySQL and SQL Server. But, for PostgreSQL, use the `ssl_mode` flag
2300
+ # instead of the legacy `require_ssl` flag. To avoid the conflict between those
2301
+ # flags in PostgreSQL, only the following value pairs are valid: * `ssl_mode=
2302
+ # ALLOW_UNENCRYPTED_AND_ENCRYPTED` and `require_ssl=false` * `ssl_mode=
2303
+ # ENCRYPTED_ONLY` and `require_ssl=false` * `ssl_mode=
2304
+ # TRUSTED_CLIENT_CERTIFICATE_REQUIRED` and `require_ssl=true` Note that the
2305
+ # value of `ssl_mode` gets priority over the value of the legacy `require_ssl`.
2306
+ # For 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 respects `ssl_mode` in this case and only accepts SSL connections.
2310
+ # Corresponds to the JSON property `sslMode`
2311
+ # @return [String]
2312
+ attr_accessor :ssl_mode
2313
+
2282
2314
  def initialize(**args)
2283
2315
  update!(**args)
2284
2316
  end
@@ -2292,10 +2324,11 @@ module Google
2292
2324
  @private_network = args[:private_network] if args.key?(:private_network)
2293
2325
  @psc_config = args[:psc_config] if args.key?(:psc_config)
2294
2326
  @require_ssl = args[:require_ssl] if args.key?(:require_ssl)
2327
+ @ssl_mode = args[:ssl_mode] if args.key?(:ssl_mode)
2295
2328
  end
2296
2329
  end
2297
2330
 
2298
- # Database instance IP Mapping.
2331
+ # Database instance IP mapping
2299
2332
  class IpMapping
2300
2333
  include Google::Apis::Core::Hashable
2301
2334
 
@@ -2953,10 +2986,10 @@ module Google
2953
2986
  class PscConfig
2954
2987
  include Google::Apis::Core::Hashable
2955
2988
 
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).
2989
+ # Optional. The list of consumer projects that are allow-listed for PSC
2990
+ # connections to this instance. This instance can be connected to with PSC from
2991
+ # any network in these projects. Each consumer project in this list may be
2992
+ # represented by a project number (numeric) or by a project id (alphanumeric).
2960
2993
  # Corresponds to the JSON property `allowedConsumerProjects`
2961
2994
  # @return [Array<String>]
2962
2995
  attr_accessor :allowed_consumer_projects
@@ -2982,6 +3015,14 @@ module Google
2982
3015
  class ReplicaConfiguration
2983
3016
  include Google::Apis::Core::Hashable
2984
3017
 
3018
+ # Optional. Specifies if a SQL Server replica is a cascadable replica. A
3019
+ # cascadable replica is a SQL Server cross region replica that supports replica(
3020
+ # s) under it.
3021
+ # Corresponds to the JSON property `cascadableReplica`
3022
+ # @return [Boolean]
3023
+ attr_accessor :cascadable_replica
3024
+ alias_method :cascadable_replica?, :cascadable_replica
3025
+
2985
3026
  # Specifies if the replica is the failover target. If the field is set to `true`,
2986
3027
  # the replica will be designated as a failover replica. In case the primary
2987
3028
  # instance fails, the replica instance will be promoted as the new primary
@@ -3008,6 +3049,7 @@ module Google
3008
3049
 
3009
3050
  # Update properties of this object
3010
3051
  def update!(**args)
3052
+ @cascadable_replica = args[:cascadable_replica] if args.key?(:cascadable_replica)
3011
3053
  @failover_target = args[:failover_target] if args.key?(:failover_target)
3012
3054
  @kind = args[:kind] if args.key?(:kind)
3013
3055
  @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.45.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 = "20231017"
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
 
@@ -1392,6 +1394,7 @@ module Google
1392
1394
  class ReplicaConfiguration
1393
1395
  # @private
1394
1396
  class Representation < Google::Apis::Core::JsonRepresentation
1397
+ property :cascadable_replica, as: 'cascadableReplica'
1395
1398
  property :failover_target, as: 'failoverTarget'
1396
1399
  property :kind, as: 'kind'
1397
1400
  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.45.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-22 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.45.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: []