google-apis-cloudresourcemanager_v3 0.57.0 → 0.58.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/cloudresourcemanager_v3/classes.rb +85 -3
- data/lib/google/apis/cloudresourcemanager_v3/gem_version.rb +3 -3
- data/lib/google/apis/cloudresourcemanager_v3/representations.rb +31 -0
- data/lib/google/apis/cloudresourcemanager_v3/service.rb +110 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 22df75577dfa288c435062c6afe878ac7c4402cdedf93c8932222836f237ace9
|
4
|
+
data.tar.gz: e4dd3691e2ee80b616aaeae81114c3fab76d5cc0b8219be262d256aefd92b90a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9be4ffb622f4e04610158e04aaf353fbd9e898b4c27e6d97b3a72c0557807664a09d238c7f7e7620a45f56f9defbd42418da3867107f166ff0016ec408794b29
|
7
|
+
data.tar.gz: d4906ed9d5513921ec9e6d7fd5d33df647c6cc03b6d5c6935927224b7c144e9c6546aa2ba04c394db914784385161e818ac660baa9a5d72207d5dcb3c595d912
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,10 @@
|
|
1
1
|
# Release history for google-apis-cloudresourcemanager_v3
|
2
2
|
|
3
|
+
### v0.58.0 (2025-06-01)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20250522
|
6
|
+
* Regenerated using generator version 0.18.0
|
7
|
+
|
3
8
|
### v0.57.0 (2025-05-18)
|
4
9
|
|
5
10
|
* Regenerated from discovery document revision 20250508
|
@@ -546,6 +546,44 @@ module Google
|
|
546
546
|
end
|
547
547
|
end
|
548
548
|
|
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
|
+
|
549
587
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
550
588
|
# messages in your APIs. A typical example is to use it as the request or the
|
551
589
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -1776,6 +1814,50 @@ module Google
|
|
1776
1814
|
end
|
1777
1815
|
end
|
1778
1816
|
|
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
|
+
|
1779
1861
|
# A TagHold represents the use of a TagValue that is not captured by TagBindings.
|
1780
1862
|
# If a TagValue has any TagHolds, deletion will be blocked. This resource is
|
1781
1863
|
# intended to be created in the same cloud location as the `holder`.
|
@@ -1888,8 +1970,8 @@ module Google
|
|
1888
1970
|
|
1889
1971
|
# Required. Immutable. The user friendly name for a TagKey. The short name
|
1890
1972
|
# should be unique for TagKeys within the same tag namespace. The short name
|
1891
|
-
# must be 1-
|
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
|
1893
1975
|
# between.
|
1894
1976
|
# Corresponds to the JSON property `shortName`
|
1895
1977
|
# @return [String]
|
@@ -1962,7 +2044,7 @@ module Google
|
|
1962
2044
|
|
1963
2045
|
# Required. Immutable. User-assigned short name for TagValue. The short name
|
1964
2046
|
# should be unique for TagValues within the same parent TagKey. The short name
|
1965
|
-
# must be
|
2047
|
+
# must be 256 characters or less, beginning and ending with an alphanumeric
|
1966
2048
|
# character ([a-z0-9A-Z]) with dashes (-), underscores (_), dots (.), and
|
1967
2049
|
# alphanumerics between.
|
1968
2050
|
# Corresponds to the JSON property `shortName`
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module CloudresourcemanagerV3
|
18
18
|
# Version of the google-apis-cloudresourcemanager_v3 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.58.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.18.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20250522"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -130,6 +130,12 @@ module Google
|
|
130
130
|
include Google::Apis::Core::JsonObjectSupport
|
131
131
|
end
|
132
132
|
|
133
|
+
class EffectiveTagBindingCollection
|
134
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
|
+
|
136
|
+
include Google::Apis::Core::JsonObjectSupport
|
137
|
+
end
|
138
|
+
|
133
139
|
class Empty
|
134
140
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
135
141
|
|
@@ -316,6 +322,12 @@ module Google
|
|
316
322
|
include Google::Apis::Core::JsonObjectSupport
|
317
323
|
end
|
318
324
|
|
325
|
+
class TagBindingCollection
|
326
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
327
|
+
|
328
|
+
include Google::Apis::Core::JsonObjectSupport
|
329
|
+
end
|
330
|
+
|
319
331
|
class TagHold
|
320
332
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
321
333
|
|
@@ -538,6 +550,15 @@ module Google
|
|
538
550
|
end
|
539
551
|
end
|
540
552
|
|
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
|
+
|
541
562
|
class Empty
|
542
563
|
# @private
|
543
564
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -835,6 +856,16 @@ module Google
|
|
835
856
|
end
|
836
857
|
end
|
837
858
|
|
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
|
+
|
838
869
|
class TagHold
|
839
870
|
# @private
|
840
871
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -776,6 +776,116 @@ module Google
|
|
776
776
|
execute_or_queue_command(command, &block)
|
777
777
|
end
|
778
778
|
|
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
|
+
|
779
889
|
# Gets the latest state of a long-running operation. Clients can use this method
|
780
890
|
# to poll the operation result at intervals as recommended by the API service.
|
781
891
|
# @param [String] name
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-cloudresourcemanager_v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.58.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-cloudresourcemanager_v3/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudresourcemanager_v3/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudresourcemanager_v3/v0.58.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudresourcemanager_v3
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|
@@ -73,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
75
|
requirements: []
|
76
|
-
rubygems_version: 3.6.
|
76
|
+
rubygems_version: 3.6.9
|
77
77
|
specification_version: 4
|
78
78
|
summary: Simple REST client for Cloud Resource Manager API V3
|
79
79
|
test_files: []
|