Skip to content

Commit 5ed0147

Browse files
feat: Automated regeneration of cloudresourcemanager v3 client (googleapis#23294)
Auto-created at 2025-06-01 10:16:49 +0000 using the toys pull request generator.
1 parent c983469 commit 5ed0147

File tree

6 files changed

+252
-6
lines changed

6 files changed

+252
-6
lines changed

api_names_out.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75379,6 +75379,11 @@
7537975379
"/cloudresourcemanager:v3/EffectiveTag/tagKey": tag_key
7538075380
"/cloudresourcemanager:v3/EffectiveTag/tagKeyParentName": tag_key_parent_name
7538175381
"/cloudresourcemanager:v3/EffectiveTag/tagValue": tag_value
75382+
"/cloudresourcemanager:v3/EffectiveTagBindingCollection": effective_tag_binding_collection
75383+
"/cloudresourcemanager:v3/EffectiveTagBindingCollection/effectiveTags": effective_tags
75384+
"/cloudresourcemanager:v3/EffectiveTagBindingCollection/effectiveTags/effective_tag": effective_tag
75385+
"/cloudresourcemanager:v3/EffectiveTagBindingCollection/fullResourceName": full_resource_name
75386+
"/cloudresourcemanager:v3/EffectiveTagBindingCollection/name": name
7538275387
"/cloudresourcemanager:v3/Empty": empty
7538375388
"/cloudresourcemanager:v3/Expr": expr
7538475389
"/cloudresourcemanager:v3/Expr/description": description
@@ -75527,6 +75532,12 @@
7552775532
"/cloudresourcemanager:v3/TagBinding/parent": parent
7552875533
"/cloudresourcemanager:v3/TagBinding/tagValue": tag_value
7552975534
"/cloudresourcemanager:v3/TagBinding/tagValueNamespacedName": tag_value_namespaced_name
75535+
"/cloudresourcemanager:v3/TagBindingCollection": tag_binding_collection
75536+
"/cloudresourcemanager:v3/TagBindingCollection/etag": etag
75537+
"/cloudresourcemanager:v3/TagBindingCollection/fullResourceName": full_resource_name
75538+
"/cloudresourcemanager:v3/TagBindingCollection/name": name
75539+
"/cloudresourcemanager:v3/TagBindingCollection/tags": tags
75540+
"/cloudresourcemanager:v3/TagBindingCollection/tags/tag": tag
7553075541
"/cloudresourcemanager:v3/TagHold": tag_hold
7553175542
"/cloudresourcemanager:v3/TagHold/createTime": create_time
7553275543
"/cloudresourcemanager:v3/TagHold/helpLink": help_link
@@ -75614,6 +75625,13 @@
7561475625
"/cloudresourcemanager:v3/cloudresourcemanager.liens.list/pageSize": page_size
7561575626
"/cloudresourcemanager:v3/cloudresourcemanager.liens.list/pageToken": page_token
7561675627
"/cloudresourcemanager:v3/cloudresourcemanager.liens.list/parent": parent
75628+
"/cloudresourcemanager:v3/cloudresourcemanager.locations.effectiveTagBindingCollections.get": get_location_effective_tag_binding_collection
75629+
"/cloudresourcemanager:v3/cloudresourcemanager.locations.effectiveTagBindingCollections.get/name": name
75630+
"/cloudresourcemanager:v3/cloudresourcemanager.locations.tagBindingCollections.get": get_location_tag_binding_collection
75631+
"/cloudresourcemanager:v3/cloudresourcemanager.locations.tagBindingCollections.get/name": name
75632+
"/cloudresourcemanager:v3/cloudresourcemanager.locations.tagBindingCollections.patch": patch_location_tag_binding_collection
75633+
"/cloudresourcemanager:v3/cloudresourcemanager.locations.tagBindingCollections.patch/name": name
75634+
"/cloudresourcemanager:v3/cloudresourcemanager.locations.tagBindingCollections.patch/updateMask": update_mask
7561775635
"/cloudresourcemanager:v3/cloudresourcemanager.operations.get": get_operation
7561875636
"/cloudresourcemanager:v3/cloudresourcemanager.operations.get/name": name
7561975637
"/cloudresourcemanager:v3/cloudresourcemanager.organizations.get": get_organization

generated/google-apis-cloudresourcemanager_v3/CHANGELOG.md

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

3+
### v0.58.0 (2025-06-01)
4+
5+
* Regenerated from discovery document revision 20250522
6+
* Regenerated using generator version 0.18.0
7+
38
### v0.57.0 (2025-05-18)
49

510
* Regenerated from discovery document revision 20250508

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

Lines changed: 85 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -546,6 +546,44 @@ def update!(**args)
546546
end
547547
end
548548

549+
# Represents a collection of effective tag bindings for a GCP resource.
550+
class EffectiveTagBindingCollection
551+
include Google::Apis::Core::Hashable
552+
553+
# Tag keys/values effectively bound to this resource, specified in namespaced
554+
# format. For example: "123/environment": "production"
555+
# Corresponds to the JSON property `effectiveTags`
556+
# @return [Hash<String,String>]
557+
attr_accessor :effective_tags
558+
559+
# The full resource name of the resource the TagBindings are bound to. E.g. `//
560+
# cloudresourcemanager.googleapis.com/projects/123`
561+
# Corresponds to the JSON property `fullResourceName`
562+
# @return [String]
563+
attr_accessor :full_resource_name
564+
565+
# Identifier. The name of the EffectiveTagBindingCollection, following the
566+
# convention: `locations/`location`/effectiveTagBindingCollections/`encoded-full-
567+
# resource-name`` where the encoded-full-resource-name is the UTF-8 encoded name
568+
# of the GCP resource the TagBindings are bound to. E.g. "locations/global/
569+
# effectiveTagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%
570+
# 2fprojects%2f123"
571+
# Corresponds to the JSON property `name`
572+
# @return [String]
573+
attr_accessor :name
574+
575+
def initialize(**args)
576+
update!(**args)
577+
end
578+
579+
# Update properties of this object
580+
def update!(**args)
581+
@effective_tags = args[:effective_tags] if args.key?(:effective_tags)
582+
@full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
583+
@name = args[:name] if args.key?(:name)
584+
end
585+
end
586+
549587
# A generic empty message that you can re-use to avoid defining duplicated empty
550588
# messages in your APIs. A typical example is to use it as the request or the
551589
# response type of an API method. For instance: service Foo ` rpc Bar(google.
@@ -1776,6 +1814,50 @@ def update!(**args)
17761814
end
17771815
end
17781816

1817+
# Represents a collection of tags directly bound to a GCP resource.
1818+
class TagBindingCollection
1819+
include Google::Apis::Core::Hashable
1820+
1821+
# Optional. A checksum based on the current bindings which can be passed to
1822+
# prevent race conditions. This field is always set in server responses.
1823+
# Corresponds to the JSON property `etag`
1824+
# @return [String]
1825+
attr_accessor :etag
1826+
1827+
# The full resource name of the resource the TagBindings are bound to. E.g. `//
1828+
# cloudresourcemanager.googleapis.com/projects/123`
1829+
# Corresponds to the JSON property `fullResourceName`
1830+
# @return [String]
1831+
attr_accessor :full_resource_name
1832+
1833+
# Identifier. The name of the TagBindingCollection, following the convention: `
1834+
# locations/`location`/tagBindingCollections/`encoded-full-resource-name`` where
1835+
# the encoded-full-resource-name is the UTF-8 encoded name of the GCP resource
1836+
# the TagBindings are bound to. "locations/global/tagBindingCollections/%2f%
1837+
# 2fcloudresourcemanager.googleapis.com%2fprojects%2f123"
1838+
# Corresponds to the JSON property `name`
1839+
# @return [String]
1840+
attr_accessor :name
1841+
1842+
# Tag keys/values directly bound to this resource, specified in namespaced
1843+
# format. For example: "123/environment": "production"
1844+
# Corresponds to the JSON property `tags`
1845+
# @return [Hash<String,String>]
1846+
attr_accessor :tags
1847+
1848+
def initialize(**args)
1849+
update!(**args)
1850+
end
1851+
1852+
# Update properties of this object
1853+
def update!(**args)
1854+
@etag = args[:etag] if args.key?(:etag)
1855+
@full_resource_name = args[:full_resource_name] if args.key?(:full_resource_name)
1856+
@name = args[:name] if args.key?(:name)
1857+
@tags = args[:tags] if args.key?(:tags)
1858+
end
1859+
end
1860+
17791861
# A TagHold represents the use of a TagValue that is not captured by TagBindings.
17801862
# If a TagValue has any TagHolds, deletion will be blocked. This resource is
17811863
# intended to be created in the same cloud location as the `holder`.
@@ -1888,8 +1970,8 @@ class TagKey
18881970

18891971
# Required. Immutable. The user friendly name for a TagKey. The short name
18901972
# should be unique for TagKeys within the same tag namespace. The short name
1891-
# must be 1-63 characters, beginning and ending with an alphanumeric character ([
1892-
# a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics
1973+
# must be 1-256 characters, beginning and ending with an alphanumeric character (
1974+
# [a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and alphanumerics
18931975
# between.
18941976
# Corresponds to the JSON property `shortName`
18951977
# @return [String]
@@ -1962,7 +2044,7 @@ class TagValue
19622044

19632045
# Required. Immutable. User-assigned short name for TagValue. The short name
19642046
# should be unique for TagValues within the same parent TagKey. The short name
1965-
# must be 63 characters or less, beginning and ending with an alphanumeric
2047+
# must be 256 characters or less, beginning and ending with an alphanumeric
19662048
# character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
19672049
# alphanumerics between.
19682050
# Corresponds to the JSON property `shortName`

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module CloudresourcemanagerV3
1818
# Version of the google-apis-cloudresourcemanager_v3 gem
19-
GEM_VERSION = "0.57.0"
19+
GEM_VERSION = "0.58.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.17.0"
22+
GENERATOR_VERSION = "0.18.0"
2323

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

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

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
130130
include Google::Apis::Core::JsonObjectSupport
131131
end
132132

133+
class EffectiveTagBindingCollection
134+
class Representation < Google::Apis::Core::JsonRepresentation; end
135+
136+
include Google::Apis::Core::JsonObjectSupport
137+
end
138+
133139
class Empty
134140
class Representation < Google::Apis::Core::JsonRepresentation; end
135141

@@ -316,6 +322,12 @@ class Representation < Google::Apis::Core::JsonRepresentation; end
316322
include Google::Apis::Core::JsonObjectSupport
317323
end
318324

325+
class TagBindingCollection
326+
class Representation < Google::Apis::Core::JsonRepresentation; end
327+
328+
include Google::Apis::Core::JsonObjectSupport
329+
end
330+
319331
class TagHold
320332
class Representation < Google::Apis::Core::JsonRepresentation; end
321333

@@ -538,6 +550,15 @@ class Representation < Google::Apis::Core::JsonRepresentation
538550
end
539551
end
540552

553+
class EffectiveTagBindingCollection
554+
# @private
555+
class Representation < Google::Apis::Core::JsonRepresentation
556+
hash :effective_tags, as: 'effectiveTags'
557+
property :full_resource_name, as: 'fullResourceName'
558+
property :name, as: 'name'
559+
end
560+
end
561+
541562
class Empty
542563
# @private
543564
class Representation < Google::Apis::Core::JsonRepresentation
@@ -835,6 +856,16 @@ class Representation < Google::Apis::Core::JsonRepresentation
835856
end
836857
end
837858

859+
class TagBindingCollection
860+
# @private
861+
class Representation < Google::Apis::Core::JsonRepresentation
862+
property :etag, as: 'etag'
863+
property :full_resource_name, as: 'fullResourceName'
864+
property :name, as: 'name'
865+
hash :tags, as: 'tags'
866+
end
867+
end
868+
838869
class TagHold
839870
# @private
840871
class Representation < Google::Apis::Core::JsonRepresentation

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

Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -776,6 +776,116 @@ def list_liens(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_
776776
execute_or_queue_command(command, &block)
777777
end
778778

779+
# Returns effective tag bindings on a GCP resource.
780+
# @param [String] name
781+
# Required. The full name of the EffectiveTagBindingCollection in format: `
782+
# locations/`location`/effectiveTagBindingCollections/`encoded-full-resource-
783+
# name`` where the encoded-full-resource-name is the UTF-8 encoded name of the
784+
# resource the TagBindings are bound to. E.g. "locations/global/
785+
# effectiveTagBindingCollections/%2f%2fcloudresourcemanager.googleapis.com%
786+
# 2fprojects%2f123"
787+
# @param [String] fields
788+
# Selector specifying which fields to include in a partial response.
789+
# @param [String] quota_user
790+
# Available to use for quota purposes for server-side applications. Can be any
791+
# arbitrary string assigned to a user, but should not exceed 40 characters.
792+
# @param [Google::Apis::RequestOptions] options
793+
# Request-specific options
794+
#
795+
# @yield [result, err] Result & error if block supplied
796+
# @yieldparam result [Google::Apis::CloudresourcemanagerV3::EffectiveTagBindingCollection] parsed result object
797+
# @yieldparam err [StandardError] error object if request failed
798+
#
799+
# @return [Google::Apis::CloudresourcemanagerV3::EffectiveTagBindingCollection]
800+
#
801+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
802+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
803+
# @raise [Google::Apis::AuthorizationError] Authorization is required
804+
def get_location_effective_tag_binding_collection(name, fields: nil, quota_user: nil, options: nil, &block)
805+
command = make_simple_command(:get, 'v3/{+name}', options)
806+
command.response_representation = Google::Apis::CloudresourcemanagerV3::EffectiveTagBindingCollection::Representation
807+
command.response_class = Google::Apis::CloudresourcemanagerV3::EffectiveTagBindingCollection
808+
command.params['name'] = name unless name.nil?
809+
command.query['fields'] = fields unless fields.nil?
810+
command.query['quotaUser'] = quota_user unless quota_user.nil?
811+
execute_or_queue_command(command, &block)
812+
end
813+
814+
# Returns tag bindings directly attached to a GCP resource.
815+
# @param [String] name
816+
# Required. The full name of the TagBindingCollection in format: `locations/`
817+
# location`/tagBindingCollections/`encoded-full-resource-name`` where the enoded-
818+
# full-resource-name is the UTF-8 encoded name of the resource the TagBindings
819+
# are bound to. E.g. "locations/global/tagBindingCollections/%2f%
820+
# 2fcloudresourcemanager.googleapis.com%2fprojects%2f123"
821+
# @param [String] fields
822+
# Selector specifying which fields to include in a partial response.
823+
# @param [String] quota_user
824+
# Available to use for quota purposes for server-side applications. Can be any
825+
# arbitrary string assigned to a user, but should not exceed 40 characters.
826+
# @param [Google::Apis::RequestOptions] options
827+
# Request-specific options
828+
#
829+
# @yield [result, err] Result & error if block supplied
830+
# @yieldparam result [Google::Apis::CloudresourcemanagerV3::TagBindingCollection] parsed result object
831+
# @yieldparam err [StandardError] error object if request failed
832+
#
833+
# @return [Google::Apis::CloudresourcemanagerV3::TagBindingCollection]
834+
#
835+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
836+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
837+
# @raise [Google::Apis::AuthorizationError] Authorization is required
838+
def get_location_tag_binding_collection(name, fields: nil, quota_user: nil, options: nil, &block)
839+
command = make_simple_command(:get, 'v3/{+name}', options)
840+
command.response_representation = Google::Apis::CloudresourcemanagerV3::TagBindingCollection::Representation
841+
command.response_class = Google::Apis::CloudresourcemanagerV3::TagBindingCollection
842+
command.params['name'] = name unless name.nil?
843+
command.query['fields'] = fields unless fields.nil?
844+
command.query['quotaUser'] = quota_user unless quota_user.nil?
845+
execute_or_queue_command(command, &block)
846+
end
847+
848+
# Updates tag bindings directly attached to a GCP resource. Update_mask can be
849+
# kept empty or "*".
850+
# @param [String] name
851+
# Identifier. The name of the TagBindingCollection, following the convention: `
852+
# locations/`location`/tagBindingCollections/`encoded-full-resource-name`` where
853+
# the encoded-full-resource-name is the UTF-8 encoded name of the GCP resource
854+
# the TagBindings are bound to. "locations/global/tagBindingCollections/%2f%
855+
# 2fcloudresourcemanager.googleapis.com%2fprojects%2f123"
856+
# @param [Google::Apis::CloudresourcemanagerV3::TagBindingCollection] tag_binding_collection_object
857+
# @param [String] update_mask
858+
# Optional. An update mask to selectively update fields.
859+
# @param [String] fields
860+
# Selector specifying which fields to include in a partial response.
861+
# @param [String] quota_user
862+
# Available to use for quota purposes for server-side applications. Can be any
863+
# arbitrary string assigned to a user, but should not exceed 40 characters.
864+
# @param [Google::Apis::RequestOptions] options
865+
# Request-specific options
866+
#
867+
# @yield [result, err] Result & error if block supplied
868+
# @yieldparam result [Google::Apis::CloudresourcemanagerV3::Operation] parsed result object
869+
# @yieldparam err [StandardError] error object if request failed
870+
#
871+
# @return [Google::Apis::CloudresourcemanagerV3::Operation]
872+
#
873+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
874+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
875+
# @raise [Google::Apis::AuthorizationError] Authorization is required
876+
def patch_location_tag_binding_collection(name, tag_binding_collection_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block)
877+
command = make_simple_command(:patch, 'v3/{+name}', options)
878+
command.request_representation = Google::Apis::CloudresourcemanagerV3::TagBindingCollection::Representation
879+
command.request_object = tag_binding_collection_object
880+
command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation
881+
command.response_class = Google::Apis::CloudresourcemanagerV3::Operation
882+
command.params['name'] = name unless name.nil?
883+
command.query['updateMask'] = update_mask unless update_mask.nil?
884+
command.query['fields'] = fields unless fields.nil?
885+
command.query['quotaUser'] = quota_user unless quota_user.nil?
886+
execute_or_queue_command(command, &block)
887+
end
888+
779889
# Gets the latest state of a long-running operation. Clients can use this method
780890
# to poll the operation result at intervals as recommended by the API service.
781891
# @param [String] name

0 commit comments

Comments
 (0)