google-apis-alloydb_v1 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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: df03b7c6913e7c6299c214e96e8ee803039a82458668dbc6ec5a842b1ce382a7
|
4
|
+
data.tar.gz: 0da1b7890c69755778f0d637190028a1c5b892a0dd8ce3dfd03a016e8b74b57b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9855acfc0ae35b7067af69cbf65e79d117464d2f07a46a3aed96a5286f97e63d36a24e35827b5813ab57b92b43ed6772829cdff254e03dc3175e040f00376be1
|
7
|
+
data.tar.gz: 2d01117a9c43750388bb2420b0c79c6f942217c7496fcfcf84b540928c9c7937bb94c83ff22288bc77a0f5d4e4749ce307e8942efaae4b59b32f16144fd3caa4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-alloydb_v1
|
2
2
|
|
3
|
+
### v0.18.0 (2024-07-25)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240627
|
6
|
+
|
7
|
+
### v0.17.0 (2024-06-23)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20240612
|
10
|
+
|
3
11
|
### v0.16.0 (2024-06-09)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20240529
|
@@ -562,6 +562,16 @@ module Google
|
|
562
562
|
# @return [String]
|
563
563
|
attr_accessor :state
|
564
564
|
|
565
|
+
# Optional. Subscription type of the cluster.
|
566
|
+
# Corresponds to the JSON property `subscriptionType`
|
567
|
+
# @return [String]
|
568
|
+
attr_accessor :subscription_type
|
569
|
+
|
570
|
+
# Contains information and all metadata related to TRIAL clusters.
|
571
|
+
# Corresponds to the JSON property `trialMetadata`
|
572
|
+
# @return [Google::Apis::AlloydbV1::TrialMetadata]
|
573
|
+
attr_accessor :trial_metadata
|
574
|
+
|
565
575
|
# Output only. The system-generated UID of the resource. The UID is assigned
|
566
576
|
# when the resource is created, and it is retained until it is deleted.
|
567
577
|
# Corresponds to the JSON property `uid`
|
@@ -607,6 +617,8 @@ module Google
|
|
607
617
|
@secondary_config = args[:secondary_config] if args.key?(:secondary_config)
|
608
618
|
@ssl_config = args[:ssl_config] if args.key?(:ssl_config)
|
609
619
|
@state = args[:state] if args.key?(:state)
|
620
|
+
@subscription_type = args[:subscription_type] if args.key?(:subscription_type)
|
621
|
+
@trial_metadata = args[:trial_metadata] if args.key?(:trial_metadata)
|
610
622
|
@uid = args[:uid] if args.key?(:uid)
|
611
623
|
@update_time = args[:update_time] if args.key?(:update_time)
|
612
624
|
end
|
@@ -3150,6 +3162,42 @@ module Google
|
|
3150
3162
|
end
|
3151
3163
|
end
|
3152
3164
|
|
3165
|
+
# Message for switching over to a cluster
|
3166
|
+
class SwitchoverClusterRequest
|
3167
|
+
include Google::Apis::Core::Hashable
|
3168
|
+
|
3169
|
+
# Optional. An optional request ID to identify requests. Specify a unique
|
3170
|
+
# request ID so that if you must retry your request, the server will know to
|
3171
|
+
# ignore the request if it has already been completed. The server will guarantee
|
3172
|
+
# that for at least 60 minutes after the first request. For example, consider a
|
3173
|
+
# situation where you make an initial request and the request times out. If you
|
3174
|
+
# make the request again with the same request ID, the server can check if
|
3175
|
+
# original operation with the same request ID was received, and if so, will
|
3176
|
+
# ignore the second request. This prevents clients from accidentally creating
|
3177
|
+
# duplicate commitments. The request ID must be a valid UUID with the exception
|
3178
|
+
# that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
|
3179
|
+
# Corresponds to the JSON property `requestId`
|
3180
|
+
# @return [String]
|
3181
|
+
attr_accessor :request_id
|
3182
|
+
|
3183
|
+
# Optional. If set, performs request validation (e.g. permission checks and any
|
3184
|
+
# other type of validation), but do not actually execute the delete.
|
3185
|
+
# Corresponds to the JSON property `validateOnly`
|
3186
|
+
# @return [Boolean]
|
3187
|
+
attr_accessor :validate_only
|
3188
|
+
alias_method :validate_only?, :validate_only
|
3189
|
+
|
3190
|
+
def initialize(**args)
|
3191
|
+
update!(**args)
|
3192
|
+
end
|
3193
|
+
|
3194
|
+
# Update properties of this object
|
3195
|
+
def update!(**args)
|
3196
|
+
@request_id = args[:request_id] if args.key?(:request_id)
|
3197
|
+
@validate_only = args[:validate_only] if args.key?(:validate_only)
|
3198
|
+
end
|
3199
|
+
end
|
3200
|
+
|
3153
3201
|
# A time based retention policy specifies that all backups within a certain time
|
3154
3202
|
# period should be retained.
|
3155
3203
|
class TimeBasedRetention
|
@@ -3170,6 +3218,37 @@ module Google
|
|
3170
3218
|
end
|
3171
3219
|
end
|
3172
3220
|
|
3221
|
+
# Contains information and all metadata related to TRIAL clusters.
|
3222
|
+
class TrialMetadata
|
3223
|
+
include Google::Apis::Core::Hashable
|
3224
|
+
|
3225
|
+
# End time of the trial cluster.
|
3226
|
+
# Corresponds to the JSON property `endTime`
|
3227
|
+
# @return [String]
|
3228
|
+
attr_accessor :end_time
|
3229
|
+
|
3230
|
+
# start time of the trial cluster.
|
3231
|
+
# Corresponds to the JSON property `startTime`
|
3232
|
+
# @return [String]
|
3233
|
+
attr_accessor :start_time
|
3234
|
+
|
3235
|
+
# Upgrade time of trial cluster to Standard cluster.
|
3236
|
+
# Corresponds to the JSON property `upgradeTime`
|
3237
|
+
# @return [String]
|
3238
|
+
attr_accessor :upgrade_time
|
3239
|
+
|
3240
|
+
def initialize(**args)
|
3241
|
+
update!(**args)
|
3242
|
+
end
|
3243
|
+
|
3244
|
+
# Update properties of this object
|
3245
|
+
def update!(**args)
|
3246
|
+
@end_time = args[:end_time] if args.key?(:end_time)
|
3247
|
+
@start_time = args[:start_time] if args.key?(:start_time)
|
3248
|
+
@upgrade_time = args[:upgrade_time] if args.key?(:upgrade_time)
|
3249
|
+
end
|
3250
|
+
end
|
3251
|
+
|
3173
3252
|
# Message describing User object.
|
3174
3253
|
class User
|
3175
3254
|
include Google::Apis::Core::Hashable
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module AlloydbV1
|
18
18
|
# Version of the google-apis-alloydb_v1 gem
|
19
|
-
GEM_VERSION = "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 = "
|
25
|
+
REVISION = "20240627"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -454,12 +454,24 @@ module Google
|
|
454
454
|
include Google::Apis::Core::JsonObjectSupport
|
455
455
|
end
|
456
456
|
|
457
|
+
class SwitchoverClusterRequest
|
458
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
|
+
|
460
|
+
include Google::Apis::Core::JsonObjectSupport
|
461
|
+
end
|
462
|
+
|
457
463
|
class TimeBasedRetention
|
458
464
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
459
465
|
|
460
466
|
include Google::Apis::Core::JsonObjectSupport
|
461
467
|
end
|
462
468
|
|
469
|
+
class TrialMetadata
|
470
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
471
|
+
|
472
|
+
include Google::Apis::Core::JsonObjectSupport
|
473
|
+
end
|
474
|
+
|
463
475
|
class User
|
464
476
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
465
477
|
|
@@ -611,6 +623,9 @@ module Google
|
|
611
623
|
property :ssl_config, as: 'sslConfig', class: Google::Apis::AlloydbV1::SslConfig, decorator: Google::Apis::AlloydbV1::SslConfig::Representation
|
612
624
|
|
613
625
|
property :state, as: 'state'
|
626
|
+
property :subscription_type, as: 'subscriptionType'
|
627
|
+
property :trial_metadata, as: 'trialMetadata', class: Google::Apis::AlloydbV1::TrialMetadata, decorator: Google::Apis::AlloydbV1::TrialMetadata::Representation
|
628
|
+
|
614
629
|
property :uid, as: 'uid'
|
615
630
|
property :update_time, as: 'updateTime'
|
616
631
|
end
|
@@ -1285,6 +1300,14 @@ module Google
|
|
1285
1300
|
end
|
1286
1301
|
end
|
1287
1302
|
|
1303
|
+
class SwitchoverClusterRequest
|
1304
|
+
# @private
|
1305
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1306
|
+
property :request_id, as: 'requestId'
|
1307
|
+
property :validate_only, as: 'validateOnly'
|
1308
|
+
end
|
1309
|
+
end
|
1310
|
+
|
1288
1311
|
class TimeBasedRetention
|
1289
1312
|
# @private
|
1290
1313
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1292,6 +1315,15 @@ module Google
|
|
1292
1315
|
end
|
1293
1316
|
end
|
1294
1317
|
|
1318
|
+
class TrialMetadata
|
1319
|
+
# @private
|
1320
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1321
|
+
property :end_time, as: 'endTime'
|
1322
|
+
property :start_time, as: 'startTime'
|
1323
|
+
property :upgrade_time, as: 'upgradeTime'
|
1324
|
+
end
|
1325
|
+
end
|
1326
|
+
|
1295
1327
|
class User
|
1296
1328
|
# @private
|
1297
1329
|
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::AlloydbV1::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::AlloydbV1::Operation] parsed result object
|
776
|
+
# @yieldparam err [StandardError] error object if request failed
|
777
|
+
#
|
778
|
+
# @return [Google::Apis::AlloydbV1::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, 'v1/{+name}:switchover', options)
|
785
|
+
command.request_representation = Google::Apis::AlloydbV1::SwitchoverClusterRequest::Representation
|
786
|
+
command.request_object = switchover_cluster_request_object
|
787
|
+
command.response_representation = Google::Apis::AlloydbV1::Operation::Representation
|
788
|
+
command.response_class = Google::Apis::AlloydbV1::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_v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 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-
|
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_v1/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1/v0.18.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-alloydb_v1
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|