Skip to content

Commit 7bc6bd5

Browse files
feat: Automated regeneration of gkebackup v1 client (googleapis#25419)
Auto-created at 2026-01-18 10:51:20 +0000 using the toys pull request generator.
1 parent 23d00aa commit 7bc6bd5

5 files changed

Lines changed: 280 additions & 2 deletions

File tree

generated/google-apis-gkebackup_v1/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release history for google-apis-gkebackup_v1
22

3+
### v0.55.0 (2026-01-18)
4+
5+
* Regenerated from discovery document revision 20260107
6+
37
### v0.54.0 (2025-12-14)
48

59
* Regenerated from discovery document revision 20251209

generated/google-apis-gkebackup_v1/lib/google/apis/gkebackup_v1/classes.rb

Lines changed: 103 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,6 +1312,40 @@ def update!(**args)
13121312
end
13131313
end
13141314

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+
13151349
# The request message for Operations.CancelOperation.
13161350
class GoogleLongrunningCancelOperationRequest
13171351
include Google::Apis::Core::Hashable
@@ -3046,6 +3080,75 @@ def update!(**args)
30463080
end
30473081
end
30483082

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+
30493152
# A transformation rule to be applied against Kubernetes resources as they are
30503153
# selected for restoration from a Backup. A rule contains both filtering logic (
30513154
# which resources are subject to substitution) and substitution logic.

generated/google-apis-gkebackup_v1/lib/google/apis/gkebackup_v1/gem_version.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module GkebackupV1
1818
# Version of the google-apis-gkebackup_v1 gem
19-
GEM_VERSION = "0.54.0"
19+
GEM_VERSION = "0.55.0"
2020

2121
# Version of the code generator used to generate this client
2222
GENERATOR_VERSION = "0.18.0"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20251209"
25+
REVISION = "20260107"
2626
end
2727
end
2828
end

generated/google-apis-gkebackup_v1/lib/google/apis/gkebackup_v1/representations.rb

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
142142
include Google::Apis::Core::JsonObjectSupport
143143
end
144144

145+
class GetTagsResponse
146+
class Representation < Google::Apis::Core::JsonRepresentation; end
147+
148+
include Google::Apis::Core::JsonObjectSupport
149+
end
150+
145151
class GoogleLongrunningCancelOperationRequest
146152
class Representation < Google::Apis::Core::JsonRepresentation; end
147153

@@ -370,6 +376,18 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
370376
include Google::Apis::Core::JsonObjectSupport
371377
end
372378

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+
373391
class SubstitutionRule
374392
class Representation < Google::Apis::Core::JsonRepresentation; end
375393

@@ -707,6 +725,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
707725
end
708726
end
709727

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+
710737
class GoogleLongrunningCancelOperationRequest
711738
# @private
712739
class Representation < Google::Apis::Core::JsonRepresentation
@@ -1124,6 +1151,24 @@ class Representation < Google::Apis::Core::JsonRepresentation
11241151
end
11251152
end
11261153

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+
11271172
class SubstitutionRule
11281173
# @private
11291174
class Representation < Google::Apis::Core::JsonRepresentation

generated/google-apis-gkebackup_v1/lib/google/apis/gkebackup_v1/service.rb

Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -569,6 +569,36 @@ def get_project_location_backup_plan_iam_policy(resource, options_requested_poli
569569
execute_or_queue_command(command, &block)
570570
end
571571

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+
572602
# Lists BackupPlans in a given location.
573603
# @param [String] parent
574604
# Required. The location that contains the BackupPlans to list. Format: `
@@ -700,6 +730,39 @@ def set_backup_plan_iam_policy(resource, set_iam_policy_request_object = nil, fi
700730
execute_or_queue_command(command, &block)
701731
end
702732

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+
703766
# Returns permissions that a caller has on the specified resource. If the
704767
# resource does not exist, this will return an empty set of permissions, not a `
705768
# NOT_FOUND` error. Note: This operation is designed to be used for building
@@ -1895,6 +1958,36 @@ def get_project_location_restore_plan_iam_policy(resource, options_requested_pol
18951958
execute_or_queue_command(command, &block)
18961959
end
18971960

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+
18981991
# Lists RestorePlans in a given location.
18991992
# @param [String] parent
19001993
# Required. The location that contains the RestorePlans to list. Format: `
@@ -2025,6 +2118,39 @@ def set_restore_plan_iam_policy(resource, set_iam_policy_request_object = nil, f
20252118
execute_or_queue_command(command, &block)
20262119
end
20272120

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+
20282154
# Returns permissions that a caller has on the specified resource. If the
20292155
# resource does not exist, this will return an empty set of permissions, not a `
20302156
# NOT_FOUND` error. Note: This operation is designed to be used for building

0 commit comments

Comments
 (0)