google-apis-alloydb_v1beta 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2cdd2ceff763621fe5e413a833b5c9979a83ee3308cceccdc1394de6072b1b9c
|
4
|
+
data.tar.gz: 633afe9062f5d5b1dd2b44fc8a4af37b917967666a16d67ac64f3e9bb7aeedb3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87a7ed61ec1eeb2338bfba2586b05d7106f9b4bcbfe25c115c083523f8cb00271cc55e0f5c32f8d18e9f2f77375e3df912c9eccc366a0c874daa4afcd68e052d
|
7
|
+
data.tar.gz: fde6186dd4bb6338a98edff3b33917de3485043c732d9e9820bddd421ed2726e3f4606d5698fdcaacf8cc3abede81cacbadc7733d4fed70b77cdf07fab5ab876
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
19
|
+
GEM_VERSION = "0.17.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 = "
|
25
|
+
REVISION = "20240612"
|
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.
|
4
|
+
version: 0.17.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-
|
11
|
+
date: 2024-06-23 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.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1beta/v0.17.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: []
|