google-apis-alloydb_v1alpha 0.16.0 → 0.18.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: d230b6a6d4bfb04f5f1a164706b5cef6bc9f42b5cf7d1b3fba26adf33746ee84
4
- data.tar.gz: 03e3e511c856aa577adabe7fbd7368f05c0026b045ec08f26aaccdd380abe12e
3
+ metadata.gz: ea7d0dc9f42de8e5dc3caa8638e977e6c278f01c186a8d523209a59389e4c0cd
4
+ data.tar.gz: a1b6969ecc8a1c0f219f979bd790fbd3981389bde724b4e497c1ebf7e26c542e
5
5
  SHA512:
6
- metadata.gz: b5995f69457f2f13fbac9d14662843a0bed839b8ff5448a20749412f1d7fe49e53c25eb1f188eefea66ef6fc37ac84dfdf55efc3675ebfe0d8d0e54d24dc33d4
7
- data.tar.gz: 66199b6f1937f6e118e5be4fc19ab0523eb008202116bb6fd304039f1434911a770803224058999395d5fe1dbf99299ed92136c627e3d7646383003267a6a751
6
+ metadata.gz: dc510da95f80fbcb5bfd280601b9d85a010a2a3d9c4e99fb1bee6ae56d11e7e0fc9a74f43c8a3fba603c94612e089ea180ee501384e213985d241084c38e094a
7
+ data.tar.gz: 65b9e9443e4166b80bf641782add5ade4444d42c1cfeec9ed6baccd7cae2cc8e8ec5d3a91563cae3e07ea4028804313fe85b0441b3b98eeacad7adfd67740789
data/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Release history for google-apis-alloydb_v1alpha
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
@@ -1781,8 +1781,8 @@ module Google
1781
1781
  class ObservabilityInstanceConfig
1782
1782
  include Google::Apis::Core::Hashable
1783
1783
 
1784
- # Observability feature status for an instance. This is a read-only flag and
1785
- # modifiable only by producer API. This flag is turned "off" by default.
1784
+ # Observability feature status for an instance. This flag is turned "off" by
1785
+ # default.
1786
1786
  # Corresponds to the JSON property `enabled`
1787
1787
  # @return [Boolean]
1788
1788
  attr_accessor :enabled
@@ -1801,7 +1801,7 @@ module Google
1801
1801
  alias_method :preserve_comments?, :preserve_comments
1802
1802
 
1803
1803
  # Number of query execution plans captured by Insights per minute for all
1804
- # queries combined. The default value is 5. Any integer between 0 to 20 is
1804
+ # queries combined. The default value is 200. Any integer between 0 to 200 is
1805
1805
  # considered valid.
1806
1806
  # Corresponds to the JSON property `queryPlansPerMinute`
1807
1807
  # @return [Fixnum]
@@ -3361,6 +3361,42 @@ module Google
3361
3361
  end
3362
3362
  end
3363
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
+
3364
3400
  # A time based retention policy specifies that all backups within a certain time
3365
3401
  # period should be retained.
3366
3402
  class TimeBasedRetention
@@ -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.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
@@ -472,6 +472,12 @@ 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
 
@@ -1361,6 +1367,14 @@ module Google
1361
1367
  end
1362
1368
  end
1363
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
+
1364
1378
  class TimeBasedRetention
1365
1379
  # @private
1366
1380
  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.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_v1alpha/CHANGELOG.md
61
- documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1alpha/v0.16.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-alloydb_v1alpha/v0.18.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: []