google-apis-alloydb_v1beta 0.15.0 → 0.17.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: 765a462e94c62669f752b7250bee6c6f8703f1e4c9538eed38412dbc43bda425
4
- data.tar.gz: 4ab674d598ff6721fe82c8f0441a3790645802652f3af2a3ccd4eabad9039acb
3
+ metadata.gz: 2cdd2ceff763621fe5e413a833b5c9979a83ee3308cceccdc1394de6072b1b9c
4
+ data.tar.gz: 633afe9062f5d5b1dd2b44fc8a4af37b917967666a16d67ac64f3e9bb7aeedb3
5
5
  SHA512:
6
- metadata.gz: bd06f8db6a27eb6760e1c3c35773f3b91d98f71f39b8881ead9f23a9e468e734cbfa99fd6ecff6847bbb8dedc8efee4e2e8033210d7130e439cfd1245a302413
7
- data.tar.gz: b0446a56b512001e35bc01eeac090a0a39d1ad06dc89bcc9b5ef6770cc5b90b3c31443808f3bf0dd1010c23efc5aa5f30144e049edf51e3e4d016ba26b84fc06
6
+ metadata.gz: 87a7ed61ec1eeb2338bfba2586b05d7106f9b4bcbfe25c115c083523f8cb00271cc55e0f5c32f8d18e9f2f77375e3df912c9eccc366a0c874daa4afcd68e052d
7
+ data.tar.gz: fde6186dd4bb6338a98edff3b33917de3485043c732d9e9820bddd421ed2726e3f4606d5698fdcaacf8cc3abede81cacbadc7733d4fed70b77cdf07fab5ab876
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-alloydb_v1beta
2
2
 
3
+ ### v0.17.0 (2024-06-23)
4
+
5
+ * Regenerated from discovery document revision 20240612
6
+
7
+ ### v0.16.0 (2024-06-16)
8
+
9
+ * Regenerated from discovery document revision 20240605
10
+
3
11
  ### v0.15.0 (2024-06-09)
4
12
 
5
13
  * Regenerated from discovery document revision 20240529
@@ -555,6 +555,16 @@ module Google
555
555
  # @return [String]
556
556
  attr_accessor :state
557
557
 
558
+ # Optional. Subscription type of the cluster.
559
+ # Corresponds to the JSON property `subscriptionType`
560
+ # @return [String]
561
+ attr_accessor :subscription_type
562
+
563
+ # Contains information and all metadata related to TRIAL clusters.
564
+ # Corresponds to the JSON property `trialMetadata`
565
+ # @return [Google::Apis::AlloydbV1beta::TrialMetadata]
566
+ attr_accessor :trial_metadata
567
+
558
568
  # Output only. The system-generated UID of the resource. The UID is assigned
559
569
  # when the resource is created, and it is retained until it is deleted.
560
570
  # Corresponds to the JSON property `uid`
@@ -601,6 +611,8 @@ module Google
601
611
  @secondary_config = args[:secondary_config] if args.key?(:secondary_config)
602
612
  @ssl_config = args[:ssl_config] if args.key?(:ssl_config)
603
613
  @state = args[:state] if args.key?(:state)
614
+ @subscription_type = args[:subscription_type] if args.key?(:subscription_type)
615
+ @trial_metadata = args[:trial_metadata] if args.key?(:trial_metadata)
604
616
  @uid = args[:uid] if args.key?(:uid)
605
617
  @update_time = args[:update_time] if args.key?(:update_time)
606
618
  end
@@ -3315,6 +3327,42 @@ module Google
3315
3327
  end
3316
3328
  end
3317
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
+
3318
3366
  # A time based retention policy specifies that all backups within a certain time
3319
3367
  # period should be retained.
3320
3368
  class TimeBasedRetention
@@ -3335,6 +3383,37 @@ module Google
3335
3383
  end
3336
3384
  end
3337
3385
 
3386
+ # Contains information and all metadata related to TRIAL clusters.
3387
+ class TrialMetadata
3388
+ include Google::Apis::Core::Hashable
3389
+
3390
+ # End time of the trial cluster.
3391
+ # Corresponds to the JSON property `endTime`
3392
+ # @return [String]
3393
+ attr_accessor :end_time
3394
+
3395
+ # start time of the trial cluster.
3396
+ # Corresponds to the JSON property `startTime`
3397
+ # @return [String]
3398
+ attr_accessor :start_time
3399
+
3400
+ # Upgrade time of trial cluster to Standard cluster.
3401
+ # Corresponds to the JSON property `upgradeTime`
3402
+ # @return [String]
3403
+ attr_accessor :upgrade_time
3404
+
3405
+ def initialize(**args)
3406
+ update!(**args)
3407
+ end
3408
+
3409
+ # Update properties of this object
3410
+ def update!(**args)
3411
+ @end_time = args[:end_time] if args.key?(:end_time)
3412
+ @start_time = args[:start_time] if args.key?(:start_time)
3413
+ @upgrade_time = args[:upgrade_time] if args.key?(:upgrade_time)
3414
+ end
3415
+ end
3416
+
3338
3417
  # Policy to be used while updating the instance.
3339
3418
  class UpdatePolicy
3340
3419
  include Google::Apis::Core::Hashable
@@ -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.15.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 = "20240529"
25
+ REVISION = "20240612"
26
26
  end
27
27
  end
28
28
  end
@@ -466,12 +466,24 @@ 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
 
472
478
  include Google::Apis::Core::JsonObjectSupport
473
479
  end
474
480
 
481
+ class TrialMetadata
482
+ class Representation < Google::Apis::Core::JsonRepresentation; end
483
+
484
+ include Google::Apis::Core::JsonObjectSupport
485
+ end
486
+
475
487
  class UpdatePolicy
476
488
  class Representation < Google::Apis::Core::JsonRepresentation; end
477
489
 
@@ -625,6 +637,9 @@ module Google
625
637
  property :ssl_config, as: 'sslConfig', class: Google::Apis::AlloydbV1beta::SslConfig, decorator: Google::Apis::AlloydbV1beta::SslConfig::Representation
626
638
 
627
639
  property :state, as: 'state'
640
+ property :subscription_type, as: 'subscriptionType'
641
+ property :trial_metadata, as: 'trialMetadata', class: Google::Apis::AlloydbV1beta::TrialMetadata, decorator: Google::Apis::AlloydbV1beta::TrialMetadata::Representation
642
+
628
643
  property :uid, as: 'uid'
629
644
  property :update_time, as: 'updateTime'
630
645
  end
@@ -1337,6 +1352,14 @@ module Google
1337
1352
  end
1338
1353
  end
1339
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
+
1340
1363
  class TimeBasedRetention
1341
1364
  # @private
1342
1365
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1344,6 +1367,15 @@ module Google
1344
1367
  end
1345
1368
  end
1346
1369
 
1370
+ class TrialMetadata
1371
+ # @private
1372
+ class Representation < Google::Apis::Core::JsonRepresentation
1373
+ property :end_time, as: 'endTime'
1374
+ property :start_time, as: 'startTime'
1375
+ property :upgrade_time, as: 'upgradeTime'
1376
+ end
1377
+ end
1378
+
1347
1379
  class UpdatePolicy
1348
1380
  # @private
1349
1381
  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.15.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-09 00:00:00.000000000 Z
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.15.0
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: []