google-apis-alloydb_v1beta 0.16.0 → 0.18.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: 4cdc1763bbfd020118876431bb0b99e07695384863c9aaa783a430cc79c5463d
4
- data.tar.gz: 8cd312412b3ff7dd8e04e4ce7d7c9698f03d8192a7239db32706370e77c70a86
3
+ metadata.gz: 2f2cbb390afbcc98406bb57b058e84c7973dfaf7e1f86c0e8e9de0b13f729303
4
+ data.tar.gz: ec778d4d8a8e896ab25e0cc81ce620ecf46c820fb2b81f11ddfb064708be2521
5
5
  SHA512:
6
- metadata.gz: 7f4784c7ce55517a0e23d5e1d3b3b8975d6296c6adc4b486ab4b0aa5b948e919a1069277be90ddf347152bcffecc89ac7793167a543430b1d199ec657f76a8c7
7
- data.tar.gz: c062bc3197bff1e8086ce54d5fc3d490d0e0abed9b04bda0e081f28770c677a3b98ac717c19c1bf1b4acccaa41f589f3aaf4e196be8c1da5894b1650e9dc9570
6
+ metadata.gz: 4638740e87f6cb9395a4726fa0c8fa03ece80a4dec8269bef4e4578b7ed2bb0849b79a9a634c80e37e5bf04e2193c4789194ff262d80e55a49b69d325b5e35cb
7
+ data.tar.gz: 7175305a3338a11c389aaf22cd51e7caed9b53dff8d7a06149412de55c0c678a0717e97ad60ed3fa9946233288caebe634385321a0afa59584350bd22660aeab
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-alloydb_v1beta
2
2
 
3
+ ### v0.18.0 (2024-07-25)
4
+
5
+ * Regenerated from discovery document revision 20240703
6
+
7
+ ### v0.17.0 (2024-06-23)
8
+
9
+ * Regenerated from discovery document revision 20240612
10
+
3
11
  ### v0.16.0 (2024-06-16)
4
12
 
5
13
  * Regenerated from discovery document revision 20240605
@@ -1747,8 +1747,8 @@ module Google
1747
1747
  class ObservabilityInstanceConfig
1748
1748
  include Google::Apis::Core::Hashable
1749
1749
 
1750
- # Observability feature status for an instance. This is a read-only flag and
1751
- # modifiable only by producer API. This flag is turned "off" by default.
1750
+ # Observability feature status for an instance. This flag is turned "off" by
1751
+ # default.
1752
1752
  # Corresponds to the JSON property `enabled`
1753
1753
  # @return [Boolean]
1754
1754
  attr_accessor :enabled
@@ -1767,7 +1767,7 @@ module Google
1767
1767
  alias_method :preserve_comments?, :preserve_comments
1768
1768
 
1769
1769
  # Number of query execution plans captured by Insights per minute for all
1770
- # queries combined. The default value is 5. Any integer between 0 to 20 is
1770
+ # queries combined. The default value is 200. Any integer between 0 to 200 is
1771
1771
  # considered valid.
1772
1772
  # Corresponds to the JSON property `queryPlansPerMinute`
1773
1773
  # @return [Fixnum]
@@ -3327,6 +3327,42 @@ module Google
3327
3327
  end
3328
3328
  end
3329
3329
 
3330
+ # Message for switching over to a cluster
3331
+ class SwitchoverClusterRequest
3332
+ include Google::Apis::Core::Hashable
3333
+
3334
+ # Optional. An optional request ID to identify requests. Specify a unique
3335
+ # request ID so that if you must retry your request, the server will know to
3336
+ # ignore the request if it has already been completed. The server will guarantee
3337
+ # that for at least 60 minutes after the first request. For example, consider a
3338
+ # situation where you make an initial request and the request times out. If you
3339
+ # make the request again with the same request ID, the server can check if
3340
+ # original operation with the same request ID was received, and if so, will
3341
+ # ignore the second request. This prevents clients from accidentally creating
3342
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3343
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3344
+ # Corresponds to the JSON property `requestId`
3345
+ # @return [String]
3346
+ attr_accessor :request_id
3347
+
3348
+ # Optional. If set, performs request validation (e.g. permission checks and any
3349
+ # other type of validation), but do not actually execute the delete.
3350
+ # Corresponds to the JSON property `validateOnly`
3351
+ # @return [Boolean]
3352
+ attr_accessor :validate_only
3353
+ alias_method :validate_only?, :validate_only
3354
+
3355
+ def initialize(**args)
3356
+ update!(**args)
3357
+ end
3358
+
3359
+ # Update properties of this object
3360
+ def update!(**args)
3361
+ @request_id = args[:request_id] if args.key?(:request_id)
3362
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
3363
+ end
3364
+ end
3365
+
3330
3366
  # A time based retention policy specifies that all backups within a certain time
3331
3367
  # period should be retained.
3332
3368
  class TimeBasedRetention
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AlloydbV1beta
18
18
  # Version of the google-apis-alloydb_v1beta gem
19
- GEM_VERSION = "0.16.0"
19
+ GEM_VERSION = "0.18.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.15.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20240605"
25
+ REVISION = "20240703"
26
26
  end
27
27
  end
28
28
  end
@@ -466,6 +466,12 @@ module Google
466
466
  include Google::Apis::Core::JsonObjectSupport
467
467
  end
468
468
 
469
+ class SwitchoverClusterRequest
470
+ class Representation < Google::Apis::Core::JsonRepresentation; end
471
+
472
+ include Google::Apis::Core::JsonObjectSupport
473
+ end
474
+
469
475
  class TimeBasedRetention
470
476
  class Representation < Google::Apis::Core::JsonRepresentation; end
471
477
 
@@ -1346,6 +1352,14 @@ module Google
1346
1352
  end
1347
1353
  end
1348
1354
 
1355
+ class SwitchoverClusterRequest
1356
+ # @private
1357
+ class Representation < Google::Apis::Core::JsonRepresentation
1358
+ property :request_id, as: 'requestId'
1359
+ property :validate_only, as: 'validateOnly'
1360
+ end
1361
+ end
1362
+
1349
1363
  class TimeBasedRetention
1350
1364
  # @private
1351
1365
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -756,6 +756,42 @@ module Google
756
756
  execute_or_queue_command(command, &block)
757
757
  end
758
758
 
759
+ # Switches the role of PRIMARY and SECONDARY cluster without any data loss. This
760
+ # promotes the SECONDARY cluster to PRIMARY and sets up original PRIMARY cluster
761
+ # to replicate from this newly promoted cluster.
762
+ # @param [String] name
763
+ # Required. The name of the resource. For the required format, see the comment
764
+ # on the Cluster.name field
765
+ # @param [Google::Apis::AlloydbV1beta::SwitchoverClusterRequest] switchover_cluster_request_object
766
+ # @param [String] fields
767
+ # Selector specifying which fields to include in a partial response.
768
+ # @param [String] quota_user
769
+ # Available to use for quota purposes for server-side applications. Can be any
770
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
771
+ # @param [Google::Apis::RequestOptions] options
772
+ # Request-specific options
773
+ #
774
+ # @yield [result, err] Result & error if block supplied
775
+ # @yieldparam result [Google::Apis::AlloydbV1beta::Operation] parsed result object
776
+ # @yieldparam err [StandardError] error object if request failed
777
+ #
778
+ # @return [Google::Apis::AlloydbV1beta::Operation]
779
+ #
780
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
781
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
782
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
783
+ def switchover_cluster(name, switchover_cluster_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
784
+ command = make_simple_command(:post, 'v1beta/{+name}:switchover', options)
785
+ command.request_representation = Google::Apis::AlloydbV1beta::SwitchoverClusterRequest::Representation
786
+ command.request_object = switchover_cluster_request_object
787
+ command.response_representation = Google::Apis::AlloydbV1beta::Operation::Representation
788
+ command.response_class = Google::Apis::AlloydbV1beta::Operation
789
+ command.params['name'] = name unless name.nil?
790
+ command.query['fields'] = fields unless fields.nil?
791
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
792
+ execute_or_queue_command(command, &block)
793
+ end
794
+
759
795
  # Creates a new Instance in a given project and location.
760
796
  # @param [String] parent
761
797
  # Required. The name of the parent resource. For the required format, see the
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-alloydb_v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 0.18.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: 2024-06-16 00:00:00.000000000 Z
11
+ date: 2024-07-25 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-alloydb_v1beta/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1beta/v0.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1beta/v0.18.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-alloydb_v1beta
63
63
  post_install_message:
64
64
  rdoc_options: []