google-apis-gkebackup_v1 0.52.0 → 0.53.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: 38647865cac0f31adfac3ccdd051d04904cef1804da79bc9cd95687b44a433e2
4
- data.tar.gz: 89d79f08a28ca90afa5e69a2db656e3fc4f638285bc610fa2e1252437e33ae96
3
+ metadata.gz: d0ca6352f9f63734f026fb74c882bec6bc7af00e9dc9c0496e0ed5a641a2969e
4
+ data.tar.gz: 2370ffdfafc4973e755365d81b95a8a54aa051535f8bafbc5c18545c704850ec
5
5
  SHA512:
6
- metadata.gz: 3e73d6ff402623d781fbe9b6ae00f1a4af470ccbfafe960a1baeee412a48c0937cf069156162ff9985f4907163bb6231c511c3d03a0420bee3c5eefc3bfedf69
7
- data.tar.gz: cf9d81fe922155a848aca29d57c5b418bc29a710d93e104a95d892793c89c5ff9345f001fea605e3b698292312a81984309e9701b1cff03226c075956ee93181
6
+ metadata.gz: 2f3043d1d16219ac804b62cf54f6df437c3f0e0337420778216a712512d8b829cc8ac43ebc34ca74e63d7e52b9d06bee81ff3fcddc8cee3aa0af64983faeb189
7
+ data.tar.gz: 3276a7cac64b5b87ba5f34ba2430173e75635d5f130499b460145fceea5fd1b5d22de0554a9a95960ee10212bf362306cc902e012f4873118ec9c8fe3efaf6a2
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-gkebackup_v1
2
2
 
3
+ ### v0.53.0 (2025-11-23)
4
+
5
+ * Regenerated from discovery document revision 20251112
6
+
3
7
  ### v0.52.0 (2025-11-16)
4
8
 
5
9
  * Regenerated from discovery document revision 20251027
@@ -1312,6 +1312,40 @@ module Google
1312
1312
  end
1313
1313
  end
1314
1314
 
1315
+ # Response message for GetTags.
1316
+ class GetTagsResponse
1317
+ include Google::Apis::Core::Hashable
1318
+
1319
+ # A checksum based on the current bindings. This field is always set in server
1320
+ # responses.
1321
+ # Corresponds to the JSON property `etag`
1322
+ # @return [String]
1323
+ attr_accessor :etag
1324
+
1325
+ # Required. The full resource name of the service resource.
1326
+ # Corresponds to the JSON property `name`
1327
+ # @return [String]
1328
+ attr_accessor :name
1329
+
1330
+ # Required. Tag keys/values directly bound to this resource. Each item in the
1331
+ # map must be expressed as " : ". For example: "123/environment" : "production",
1332
+ # "123/costCenter" : "marketing"
1333
+ # Corresponds to the JSON property `tags`
1334
+ # @return [Hash<String,String>]
1335
+ attr_accessor :tags
1336
+
1337
+ def initialize(**args)
1338
+ update!(**args)
1339
+ end
1340
+
1341
+ # Update properties of this object
1342
+ def update!(**args)
1343
+ @etag = args[:etag] if args.key?(:etag)
1344
+ @name = args[:name] if args.key?(:name)
1345
+ @tags = args[:tags] if args.key?(:tags)
1346
+ end
1347
+ end
1348
+
1315
1349
  # The request message for Operations.CancelOperation.
1316
1350
  class GoogleLongrunningCancelOperationRequest
1317
1351
  include Google::Apis::Core::Hashable
@@ -1340,8 +1374,9 @@ module Google
1340
1374
  attr_accessor :operations
1341
1375
 
1342
1376
  # Unordered list. Unreachable resources. Populated when the request sets `
1343
- # ListOperationsRequest.return_partial_success` and reads across collections e.g.
1344
- # when attempting to list all resources across all supported locations.
1377
+ # ListOperationsRequest.return_partial_success` and reads across collections.
1378
+ # For example, when attempting to list all resources across all supported
1379
+ # locations.
1345
1380
  # Corresponds to the JSON property `unreachable`
1346
1381
  # @return [Array<String>]
1347
1382
  attr_accessor :unreachable
@@ -3045,6 +3080,75 @@ module Google
3045
3080
  end
3046
3081
  end
3047
3082
 
3083
+ # Request message for SetTags.
3084
+ class SetTagsRequest
3085
+ include Google::Apis::Core::Hashable
3086
+
3087
+ # Optional. A checksum based on the current bindings which can be passed to
3088
+ # prevent race conditions. If not passed, etag check would be skipped.
3089
+ # Corresponds to the JSON property `etag`
3090
+ # @return [String]
3091
+ attr_accessor :etag
3092
+
3093
+ # Optional. A unique identifier for this request. Must be a valid UUID. This
3094
+ # request is only idempotent if a `request_id` is provided.
3095
+ # Corresponds to the JSON property `requestId`
3096
+ # @return [String]
3097
+ attr_accessor :request_id
3098
+
3099
+ # Required. These bindings will override any bindings previously set and will be
3100
+ # effective immediately. Each item in the map must be expressed as " : ". For
3101
+ # example: "123/environment" : "production", "123/costCenter" : "marketing"
3102
+ # Corresponds to the JSON property `tags`
3103
+ # @return [Hash<String,String>]
3104
+ attr_accessor :tags
3105
+
3106
+ def initialize(**args)
3107
+ update!(**args)
3108
+ end
3109
+
3110
+ # Update properties of this object
3111
+ def update!(**args)
3112
+ @etag = args[:etag] if args.key?(:etag)
3113
+ @request_id = args[:request_id] if args.key?(:request_id)
3114
+ @tags = args[:tags] if args.key?(:tags)
3115
+ end
3116
+ end
3117
+
3118
+ # Response message for SetTags.
3119
+ class SetTagsResponse
3120
+ include Google::Apis::Core::Hashable
3121
+
3122
+ # A checksum based on the current bindings. This field is always set in server
3123
+ # responses.
3124
+ # Corresponds to the JSON property `etag`
3125
+ # @return [String]
3126
+ attr_accessor :etag
3127
+
3128
+ # Required. The full resource name of the service resource.
3129
+ # Corresponds to the JSON property `name`
3130
+ # @return [String]
3131
+ attr_accessor :name
3132
+
3133
+ # Required. Tag keys/values directly bound to this resource. Each item in the
3134
+ # map must be expressed as " : ". For example: "123/environment" : "production",
3135
+ # "123/costCenter" : "marketing"
3136
+ # Corresponds to the JSON property `tags`
3137
+ # @return [Hash<String,String>]
3138
+ attr_accessor :tags
3139
+
3140
+ def initialize(**args)
3141
+ update!(**args)
3142
+ end
3143
+
3144
+ # Update properties of this object
3145
+ def update!(**args)
3146
+ @etag = args[:etag] if args.key?(:etag)
3147
+ @name = args[:name] if args.key?(:name)
3148
+ @tags = args[:tags] if args.key?(:tags)
3149
+ end
3150
+ end
3151
+
3048
3152
  # A transformation rule to be applied against Kubernetes resources as they are
3049
3153
  # selected for restoration from a Backup. A rule contains both filtering logic (
3050
3154
  # which resources are subject to substitution) and substitution logic.
@@ -16,13 +16,13 @@ module Google
16
16
  module Apis
17
17
  module GkebackupV1
18
18
  # Version of the google-apis-gkebackup_v1 gem
19
- GEM_VERSION = "0.52.0"
19
+ GEM_VERSION = "0.53.0"
20
20
 
21
21
  # Version of the code generator used to generate this client
22
22
  GENERATOR_VERSION = "0.18.0"
23
23
 
24
24
  # Revision of the discovery document this client was generated from
25
- REVISION = "20251027"
25
+ REVISION = "20251112"
26
26
  end
27
27
  end
28
28
  end
@@ -142,6 +142,12 @@ module Google
142
142
  include Google::Apis::Core::JsonObjectSupport
143
143
  end
144
144
 
145
+ class GetTagsResponse
146
+ class Representation < Google::Apis::Core::JsonRepresentation; end
147
+
148
+ include Google::Apis::Core::JsonObjectSupport
149
+ end
150
+
145
151
  class GoogleLongrunningCancelOperationRequest
146
152
  class Representation < Google::Apis::Core::JsonRepresentation; end
147
153
 
@@ -370,6 +376,18 @@ module Google
370
376
  include Google::Apis::Core::JsonObjectSupport
371
377
  end
372
378
 
379
+ class SetTagsRequest
380
+ class Representation < Google::Apis::Core::JsonRepresentation; end
381
+
382
+ include Google::Apis::Core::JsonObjectSupport
383
+ end
384
+
385
+ class SetTagsResponse
386
+ class Representation < Google::Apis::Core::JsonRepresentation; end
387
+
388
+ include Google::Apis::Core::JsonObjectSupport
389
+ end
390
+
373
391
  class SubstitutionRule
374
392
  class Representation < Google::Apis::Core::JsonRepresentation; end
375
393
 
@@ -707,6 +725,15 @@ module Google
707
725
  end
708
726
  end
709
727
 
728
+ class GetTagsResponse
729
+ # @private
730
+ class Representation < Google::Apis::Core::JsonRepresentation
731
+ property :etag, as: 'etag'
732
+ property :name, as: 'name'
733
+ hash :tags, as: 'tags'
734
+ end
735
+ end
736
+
710
737
  class GoogleLongrunningCancelOperationRequest
711
738
  # @private
712
739
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -1124,6 +1151,24 @@ module Google
1124
1151
  end
1125
1152
  end
1126
1153
 
1154
+ class SetTagsRequest
1155
+ # @private
1156
+ class Representation < Google::Apis::Core::JsonRepresentation
1157
+ property :etag, as: 'etag'
1158
+ property :request_id, as: 'requestId'
1159
+ hash :tags, as: 'tags'
1160
+ end
1161
+ end
1162
+
1163
+ class SetTagsResponse
1164
+ # @private
1165
+ class Representation < Google::Apis::Core::JsonRepresentation
1166
+ property :etag, as: 'etag'
1167
+ property :name, as: 'name'
1168
+ hash :tags, as: 'tags'
1169
+ end
1170
+ end
1171
+
1127
1172
  class SubstitutionRule
1128
1173
  # @private
1129
1174
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -569,6 +569,36 @@ module Google
569
569
  execute_or_queue_command(command, &block)
570
570
  end
571
571
 
572
+ # Returns tags directly bound to a GCP resource.
573
+ # @param [String] name
574
+ # Required. The full resource name of the service resource.
575
+ # @param [String] fields
576
+ # Selector specifying which fields to include in a partial response.
577
+ # @param [String] quota_user
578
+ # Available to use for quota purposes for server-side applications. Can be any
579
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
580
+ # @param [Google::Apis::RequestOptions] options
581
+ # Request-specific options
582
+ #
583
+ # @yield [result, err] Result & error if block supplied
584
+ # @yieldparam result [Google::Apis::GkebackupV1::GetTagsResponse] parsed result object
585
+ # @yieldparam err [StandardError] error object if request failed
586
+ #
587
+ # @return [Google::Apis::GkebackupV1::GetTagsResponse]
588
+ #
589
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
590
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
591
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
592
+ def get_project_location_backup_plan_tags(name, fields: nil, quota_user: nil, options: nil, &block)
593
+ command = make_simple_command(:get, 'v1/{+name}:getTags', options)
594
+ command.response_representation = Google::Apis::GkebackupV1::GetTagsResponse::Representation
595
+ command.response_class = Google::Apis::GkebackupV1::GetTagsResponse
596
+ command.params['name'] = name unless name.nil?
597
+ command.query['fields'] = fields unless fields.nil?
598
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
599
+ execute_or_queue_command(command, &block)
600
+ end
601
+
572
602
  # Lists BackupPlans in a given location.
573
603
  # @param [String] parent
574
604
  # Required. The location that contains the BackupPlans to list. Format: `
@@ -700,6 +730,39 @@ module Google
700
730
  execute_or_queue_command(command, &block)
701
731
  end
702
732
 
733
+ # Updates tags directly bound to a GCP resource.
734
+ # @param [String] name
735
+ # Required. The full resource name of the service resource.
736
+ # @param [Google::Apis::GkebackupV1::SetTagsRequest] set_tags_request_object
737
+ # @param [String] fields
738
+ # Selector specifying which fields to include in a partial response.
739
+ # @param [String] quota_user
740
+ # Available to use for quota purposes for server-side applications. Can be any
741
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
742
+ # @param [Google::Apis::RequestOptions] options
743
+ # Request-specific options
744
+ #
745
+ # @yield [result, err] Result & error if block supplied
746
+ # @yieldparam result [Google::Apis::GkebackupV1::SetTagsResponse] parsed result object
747
+ # @yieldparam err [StandardError] error object if request failed
748
+ #
749
+ # @return [Google::Apis::GkebackupV1::SetTagsResponse]
750
+ #
751
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
752
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
753
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
754
+ def set_backup_plan_tags(name, set_tags_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
755
+ command = make_simple_command(:post, 'v1/{+name}:setTags', options)
756
+ command.request_representation = Google::Apis::GkebackupV1::SetTagsRequest::Representation
757
+ command.request_object = set_tags_request_object
758
+ command.response_representation = Google::Apis::GkebackupV1::SetTagsResponse::Representation
759
+ command.response_class = Google::Apis::GkebackupV1::SetTagsResponse
760
+ command.params['name'] = name unless name.nil?
761
+ command.query['fields'] = fields unless fields.nil?
762
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
763
+ execute_or_queue_command(command, &block)
764
+ end
765
+
703
766
  # Returns permissions that a caller has on the specified resource. If the
704
767
  # resource does not exist, this will return an empty set of permissions, not a `
705
768
  # NOT_FOUND` error. Note: This operation is designed to be used for building
@@ -1418,11 +1481,12 @@ module Google
1418
1481
  # The standard list page token.
1419
1482
  # @param [Boolean] return_partial_success
1420
1483
  # When set to `true`, operations that are reachable are returned as normal, and
1421
- # those that are unreachable are returned in the [ListOperationsResponse.
1422
- # unreachable] field. This can only be `true` when reading across collections e.
1423
- # g. when `parent` is set to `"projects/example/locations/-"`. This field is not
1424
- # by default supported and will result in an `UNIMPLEMENTED` error if set unless
1425
- # explicitly documented otherwise in service or product specific documentation.
1484
+ # those that are unreachable are returned in the ListOperationsResponse.
1485
+ # unreachable field. This can only be `true` when reading across collections.
1486
+ # For example, when `parent` is set to `"projects/example/locations/-"`. This
1487
+ # field is not supported by default and will result in an `UNIMPLEMENTED` error
1488
+ # if set unless explicitly documented otherwise in service or product specific
1489
+ # documentation.
1426
1490
  # @param [String] fields
1427
1491
  # Selector specifying which fields to include in a partial response.
1428
1492
  # @param [String] quota_user
@@ -1894,6 +1958,36 @@ module Google
1894
1958
  execute_or_queue_command(command, &block)
1895
1959
  end
1896
1960
 
1961
+ # Returns tags directly bound to a GCP resource.
1962
+ # @param [String] name
1963
+ # Required. The full resource name of the service resource.
1964
+ # @param [String] fields
1965
+ # Selector specifying which fields to include in a partial response.
1966
+ # @param [String] quota_user
1967
+ # Available to use for quota purposes for server-side applications. Can be any
1968
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
1969
+ # @param [Google::Apis::RequestOptions] options
1970
+ # Request-specific options
1971
+ #
1972
+ # @yield [result, err] Result & error if block supplied
1973
+ # @yieldparam result [Google::Apis::GkebackupV1::GetTagsResponse] parsed result object
1974
+ # @yieldparam err [StandardError] error object if request failed
1975
+ #
1976
+ # @return [Google::Apis::GkebackupV1::GetTagsResponse]
1977
+ #
1978
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
1979
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
1980
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
1981
+ def get_project_location_restore_plan_tags(name, fields: nil, quota_user: nil, options: nil, &block)
1982
+ command = make_simple_command(:get, 'v1/{+name}:getTags', options)
1983
+ command.response_representation = Google::Apis::GkebackupV1::GetTagsResponse::Representation
1984
+ command.response_class = Google::Apis::GkebackupV1::GetTagsResponse
1985
+ command.params['name'] = name unless name.nil?
1986
+ command.query['fields'] = fields unless fields.nil?
1987
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
1988
+ execute_or_queue_command(command, &block)
1989
+ end
1990
+
1897
1991
  # Lists RestorePlans in a given location.
1898
1992
  # @param [String] parent
1899
1993
  # Required. The location that contains the RestorePlans to list. Format: `
@@ -2024,6 +2118,39 @@ module Google
2024
2118
  execute_or_queue_command(command, &block)
2025
2119
  end
2026
2120
 
2121
+ # Updates tags directly bound to a GCP resource.
2122
+ # @param [String] name
2123
+ # Required. The full resource name of the service resource.
2124
+ # @param [Google::Apis::GkebackupV1::SetTagsRequest] set_tags_request_object
2125
+ # @param [String] fields
2126
+ # Selector specifying which fields to include in a partial response.
2127
+ # @param [String] quota_user
2128
+ # Available to use for quota purposes for server-side applications. Can be any
2129
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2130
+ # @param [Google::Apis::RequestOptions] options
2131
+ # Request-specific options
2132
+ #
2133
+ # @yield [result, err] Result & error if block supplied
2134
+ # @yieldparam result [Google::Apis::GkebackupV1::SetTagsResponse] parsed result object
2135
+ # @yieldparam err [StandardError] error object if request failed
2136
+ #
2137
+ # @return [Google::Apis::GkebackupV1::SetTagsResponse]
2138
+ #
2139
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2140
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2141
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2142
+ def set_restore_plan_tags(name, set_tags_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
2143
+ command = make_simple_command(:post, 'v1/{+name}:setTags', options)
2144
+ command.request_representation = Google::Apis::GkebackupV1::SetTagsRequest::Representation
2145
+ command.request_object = set_tags_request_object
2146
+ command.response_representation = Google::Apis::GkebackupV1::SetTagsResponse::Representation
2147
+ command.response_class = Google::Apis::GkebackupV1::SetTagsResponse
2148
+ command.params['name'] = name unless name.nil?
2149
+ command.query['fields'] = fields unless fields.nil?
2150
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2151
+ execute_or_queue_command(command, &block)
2152
+ end
2153
+
2027
2154
  # Returns permissions that a caller has on the specified resource. If the
2028
2155
  # resource does not exist, this will return an empty set of permissions, not a `
2029
2156
  # NOT_FOUND` error. Note: This operation is designed to be used for building
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-apis-gkebackup_v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.52.0
4
+ version: 0.53.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -57,7 +57,7 @@ licenses:
57
57
  metadata:
58
58
  bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
59
59
  changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkebackup_v1/CHANGELOG.md
60
- documentation_uri: https://googleapis.dev/ruby/google-apis-gkebackup_v1/v0.52.0
60
+ documentation_uri: https://googleapis.dev/ruby/google-apis-gkebackup_v1/v0.53.0
61
61
  source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-gkebackup_v1
62
62
  rdoc_options: []
63
63
  require_paths: