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