google-apis-alloydb_v1alpha 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: 8520246ca0c3c3d2ebcb363795b54d79f16063faebb14c5ee7985b3ca516c356
4
- data.tar.gz: af6d2cb27bcac79e8af015f57380b44bcceb8be7a9aa6275a054d64efc500485
3
+ metadata.gz: c834c96820cfc61a77d861c0c6115b695a6153d6ceb52cccf8e3d33627d8d91e
4
+ data.tar.gz: a0556b94ad3b530071401cdb55505a22f63fed5274871152ba02ea354c59992d
5
5
  SHA512:
6
- metadata.gz: 1762ab22e3491a90b793c688ded952fc4866d55ded1dd00bbe948fe848600a0add9f9274daecb7286b1feff40e5c46f42e4f0be218e03165eef3195591fffbe1
7
- data.tar.gz: ecabb26236f9fd6ed0999051b6d2c1e7f251d29fa61feb607e46a64e1564946485f7df612999f114f6f5008996b9fc6aee28c5ee2605974e4e418e9f9d371eef
6
+ metadata.gz: d037d9ec12da40e00c367db0b890782b475c282d6fff2a76bc18560f581ecbc287ba02c6ad6726f39455b1c4e9fb21455196434bdfb8a5cd7c9320bbe909171a
7
+ data.tar.gz: 855a91f68396538281a448f3e91894f12cf4d9bce4f01aa477659da4e444ec33da2c8fcc53f618e8d4402cdee9eee037489a919b76e2b565126682552a3258da
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-alloydb_v1alpha
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
@@ -581,6 +581,16 @@ module Google
581
581
  # @return [String]
582
582
  attr_accessor :state
583
583
 
584
+ # Optional. Subscription type of the cluster.
585
+ # Corresponds to the JSON property `subscriptionType`
586
+ # @return [String]
587
+ attr_accessor :subscription_type
588
+
589
+ # Contains information and all metadata related to TRIAL clusters.
590
+ # Corresponds to the JSON property `trialMetadata`
591
+ # @return [Google::Apis::AlloydbV1alpha::TrialMetadata]
592
+ attr_accessor :trial_metadata
593
+
584
594
  # Output only. The system-generated UID of the resource. The UID is assigned
585
595
  # when the resource is created, and it is retained until it is deleted.
586
596
  # Corresponds to the JSON property `uid`
@@ -628,6 +638,8 @@ module Google
628
638
  @secondary_config = args[:secondary_config] if args.key?(:secondary_config)
629
639
  @ssl_config = args[:ssl_config] if args.key?(:ssl_config)
630
640
  @state = args[:state] if args.key?(:state)
641
+ @subscription_type = args[:subscription_type] if args.key?(:subscription_type)
642
+ @trial_metadata = args[:trial_metadata] if args.key?(:trial_metadata)
631
643
  @uid = args[:uid] if args.key?(:uid)
632
644
  @update_time = args[:update_time] if args.key?(:update_time)
633
645
  end
@@ -3349,6 +3361,42 @@ module Google
3349
3361
  end
3350
3362
  end
3351
3363
 
3364
+ # Message for switching over to a cluster
3365
+ class SwitchoverClusterRequest
3366
+ include Google::Apis::Core::Hashable
3367
+
3368
+ # Optional. An optional request ID to identify requests. Specify a unique
3369
+ # request ID so that if you must retry your request, the server will know to
3370
+ # ignore the request if it has already been completed. The server will guarantee
3371
+ # that for at least 60 minutes after the first request. For example, consider a
3372
+ # situation where you make an initial request and the request times out. If you
3373
+ # make the request again with the same request ID, the server can check if
3374
+ # original operation with the same request ID was received, and if so, will
3375
+ # ignore the second request. This prevents clients from accidentally creating
3376
+ # duplicate commitments. The request ID must be a valid UUID with the exception
3377
+ # that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
3378
+ # Corresponds to the JSON property `requestId`
3379
+ # @return [String]
3380
+ attr_accessor :request_id
3381
+
3382
+ # Optional. If set, performs request validation (e.g. permission checks and any
3383
+ # other type of validation), but do not actually execute the delete.
3384
+ # Corresponds to the JSON property `validateOnly`
3385
+ # @return [Boolean]
3386
+ attr_accessor :validate_only
3387
+ alias_method :validate_only?, :validate_only
3388
+
3389
+ def initialize(**args)
3390
+ update!(**args)
3391
+ end
3392
+
3393
+ # Update properties of this object
3394
+ def update!(**args)
3395
+ @request_id = args[:request_id] if args.key?(:request_id)
3396
+ @validate_only = args[:validate_only] if args.key?(:validate_only)
3397
+ end
3398
+ end
3399
+
3352
3400
  # A time based retention policy specifies that all backups within a certain time
3353
3401
  # period should be retained.
3354
3402
  class TimeBasedRetention
@@ -3369,6 +3417,37 @@ module Google
3369
3417
  end
3370
3418
  end
3371
3419
 
3420
+ # Contains information and all metadata related to TRIAL clusters.
3421
+ class TrialMetadata
3422
+ include Google::Apis::Core::Hashable
3423
+
3424
+ # End time of the trial cluster.
3425
+ # Corresponds to the JSON property `endTime`
3426
+ # @return [String]
3427
+ attr_accessor :end_time
3428
+
3429
+ # start time of the trial cluster.
3430
+ # Corresponds to the JSON property `startTime`
3431
+ # @return [String]
3432
+ attr_accessor :start_time
3433
+
3434
+ # Upgrade time of trial cluster to Standard cluster.
3435
+ # Corresponds to the JSON property `upgradeTime`
3436
+ # @return [String]
3437
+ attr_accessor :upgrade_time
3438
+
3439
+ def initialize(**args)
3440
+ update!(**args)
3441
+ end
3442
+
3443
+ # Update properties of this object
3444
+ def update!(**args)
3445
+ @end_time = args[:end_time] if args.key?(:end_time)
3446
+ @start_time = args[:start_time] if args.key?(:start_time)
3447
+ @upgrade_time = args[:upgrade_time] if args.key?(:upgrade_time)
3448
+ end
3449
+ end
3450
+
3372
3451
  # Policy to be used while updating the instance.
3373
3452
  class UpdatePolicy
3374
3453
  include Google::Apis::Core::Hashable
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module AlloydbV1alpha
18
18
  # Version of the google-apis-alloydb_v1alpha 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
@@ -472,12 +472,24 @@ module Google
472
472
  include Google::Apis::Core::JsonObjectSupport
473
473
  end
474
474
 
475
+ class SwitchoverClusterRequest
476
+ class Representation < Google::Apis::Core::JsonRepresentation; end
477
+
478
+ include Google::Apis::Core::JsonObjectSupport
479
+ end
480
+
475
481
  class TimeBasedRetention
476
482
  class Representation < Google::Apis::Core::JsonRepresentation; end
477
483
 
478
484
  include Google::Apis::Core::JsonObjectSupport
479
485
  end
480
486
 
487
+ class TrialMetadata
488
+ class Representation < Google::Apis::Core::JsonRepresentation; end
489
+
490
+ include Google::Apis::Core::JsonObjectSupport
491
+ end
492
+
481
493
  class UpdatePolicy
482
494
  class Representation < Google::Apis::Core::JsonRepresentation; end
483
495
 
@@ -639,6 +651,9 @@ module Google
639
651
  property :ssl_config, as: 'sslConfig', class: Google::Apis::AlloydbV1alpha::SslConfig, decorator: Google::Apis::AlloydbV1alpha::SslConfig::Representation
640
652
 
641
653
  property :state, as: 'state'
654
+ property :subscription_type, as: 'subscriptionType'
655
+ property :trial_metadata, as: 'trialMetadata', class: Google::Apis::AlloydbV1alpha::TrialMetadata, decorator: Google::Apis::AlloydbV1alpha::TrialMetadata::Representation
656
+
642
657
  property :uid, as: 'uid'
643
658
  property :update_time, as: 'updateTime'
644
659
  end
@@ -1352,6 +1367,14 @@ module Google
1352
1367
  end
1353
1368
  end
1354
1369
 
1370
+ class SwitchoverClusterRequest
1371
+ # @private
1372
+ class Representation < Google::Apis::Core::JsonRepresentation
1373
+ property :request_id, as: 'requestId'
1374
+ property :validate_only, as: 'validateOnly'
1375
+ end
1376
+ end
1377
+
1355
1378
  class TimeBasedRetention
1356
1379
  # @private
1357
1380
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1359,6 +1382,15 @@ module Google
1359
1382
  end
1360
1383
  end
1361
1384
 
1385
+ class TrialMetadata
1386
+ # @private
1387
+ class Representation < Google::Apis::Core::JsonRepresentation
1388
+ property :end_time, as: 'endTime'
1389
+ property :start_time, as: 'startTime'
1390
+ property :upgrade_time, as: 'upgradeTime'
1391
+ end
1392
+ end
1393
+
1362
1394
  class UpdatePolicy
1363
1395
  # @private
1364
1396
  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::AlloydbV1alpha::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::AlloydbV1alpha::Operation] parsed result object
776
+ # @yieldparam err [StandardError] error object if request failed
777
+ #
778
+ # @return [Google::Apis::AlloydbV1alpha::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, 'v1alpha/{+name}:switchover', options)
785
+ command.request_representation = Google::Apis::AlloydbV1alpha::SwitchoverClusterRequest::Representation
786
+ command.request_object = switchover_cluster_request_object
787
+ command.response_representation = Google::Apis::AlloydbV1alpha::Operation::Representation
788
+ command.response_class = Google::Apis::AlloydbV1alpha::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_v1alpha
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_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1alpha/v0.15.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1alpha/v0.17.0
62
62
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-alloydb_v1alpha
63
63
  post_install_message:
64
64
  rdoc_options: []