google-apis-cloudresourcemanager_v3 0.24.0 → 0.25.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/cloudresourcemanager_v3/classes.rb +83 -0
- data/lib/google/apis/cloudresourcemanager_v3/gem_version.rb +2 -2
- data/lib/google/apis/cloudresourcemanager_v3/representations.rb +32 -0
- data/lib/google/apis/cloudresourcemanager_v3/service.rb +41 -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: 9f79c7aca64e154de1b3304548e3a24f33d33cdcf2c18165026b40543e8d68e5
|
4
|
+
data.tar.gz: 2a11f8843e622e2c914b0f432f48be3369da71100b71b6fde2ed9aa2fa2b4e2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf778f1157a6eee87b8e82609a74d2fb30335da00012562745de3d3029188681c553c64642d7518d736c57571a2e938c61de204cfd58edb6207928cb05c2ff12
|
7
|
+
data.tar.gz: 359bad5839e75f0f576d62c2d7ceae7b01082db94ced0686b75d95004a0fd7d94bb8128c515a9e913bef23b7fb4b5fee2fddbac1ad915b75dedf0c94bceb038a
|
data/CHANGELOG.md
CHANGED
@@ -424,6 +424,59 @@ module Google
|
|
424
424
|
end
|
425
425
|
end
|
426
426
|
|
427
|
+
# An EffectiveTag represents a tag that applies to a resource during policy
|
428
|
+
# evaluation. Tags can be either directly bound to a resource or inherited from
|
429
|
+
# its ancestor. EffectiveTag contains the name and namespaced_name of the tag
|
430
|
+
# value and tag key, with additional fields of `inherited` to indicate the
|
431
|
+
# inheritance status of the effective tag.
|
432
|
+
class EffectiveTag
|
433
|
+
include Google::Apis::Core::Hashable
|
434
|
+
|
435
|
+
# Indicates the inheritance status of a tag value attached to the given resource.
|
436
|
+
# If the tag value is inherited from one of the resource's ancestors, inherited
|
437
|
+
# will be true. If false, then the tag value is directly attached to the
|
438
|
+
# resource, inherited will be false.
|
439
|
+
# Corresponds to the JSON property `inherited`
|
440
|
+
# @return [Boolean]
|
441
|
+
attr_accessor :inherited
|
442
|
+
alias_method :inherited?, :inherited
|
443
|
+
|
444
|
+
# The namespaced_name of the TagKey, in the format of ``organization_id`/`
|
445
|
+
# tag_key_short_name``
|
446
|
+
# Corresponds to the JSON property `namespacedTagKey`
|
447
|
+
# @return [String]
|
448
|
+
attr_accessor :namespaced_tag_key
|
449
|
+
|
450
|
+
# Namespaced name of the TagValue. Must be in the format ``organization_id`/`
|
451
|
+
# tag_key_short_name`/`tag_value_short_name``.
|
452
|
+
# Corresponds to the JSON property `namespacedTagValue`
|
453
|
+
# @return [String]
|
454
|
+
attr_accessor :namespaced_tag_value
|
455
|
+
|
456
|
+
# The name of the TagKey, in the format `tagKeys/`id``, such as `tagKeys/123`.
|
457
|
+
# Corresponds to the JSON property `tagKey`
|
458
|
+
# @return [String]
|
459
|
+
attr_accessor :tag_key
|
460
|
+
|
461
|
+
# Resource name for TagValue in the format `tagValues/456`.
|
462
|
+
# Corresponds to the JSON property `tagValue`
|
463
|
+
# @return [String]
|
464
|
+
attr_accessor :tag_value
|
465
|
+
|
466
|
+
def initialize(**args)
|
467
|
+
update!(**args)
|
468
|
+
end
|
469
|
+
|
470
|
+
# Update properties of this object
|
471
|
+
def update!(**args)
|
472
|
+
@inherited = args[:inherited] if args.key?(:inherited)
|
473
|
+
@namespaced_tag_key = args[:namespaced_tag_key] if args.key?(:namespaced_tag_key)
|
474
|
+
@namespaced_tag_value = args[:namespaced_tag_value] if args.key?(:namespaced_tag_value)
|
475
|
+
@tag_key = args[:tag_key] if args.key?(:tag_key)
|
476
|
+
@tag_value = args[:tag_value] if args.key?(:tag_value)
|
477
|
+
end
|
478
|
+
end
|
479
|
+
|
427
480
|
# A generic empty message that you can re-use to avoid defining duplicated empty
|
428
481
|
# messages in your APIs. A typical example is to use it as the request or the
|
429
482
|
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
@@ -729,6 +782,36 @@ module Google
|
|
729
782
|
end
|
730
783
|
end
|
731
784
|
|
785
|
+
# The response of ListEffectiveTags.
|
786
|
+
class ListEffectiveTagsResponse
|
787
|
+
include Google::Apis::Core::Hashable
|
788
|
+
|
789
|
+
# A possibly paginated list of effective tags for the specified resource.
|
790
|
+
# Corresponds to the JSON property `effectiveTags`
|
791
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV3::EffectiveTag>]
|
792
|
+
attr_accessor :effective_tags
|
793
|
+
|
794
|
+
# Pagination token. If the result set is too large to fit in a single response,
|
795
|
+
# this token is returned. It encodes the position of the current result cursor.
|
796
|
+
# Feeding this value into a new list request with the `page_token` parameter
|
797
|
+
# gives the next page of the results. When `next_page_token` is not filled in,
|
798
|
+
# there is no next page and the list returned is the last page in the result set.
|
799
|
+
# Pagination tokens have a limited lifetime.
|
800
|
+
# Corresponds to the JSON property `nextPageToken`
|
801
|
+
# @return [String]
|
802
|
+
attr_accessor :next_page_token
|
803
|
+
|
804
|
+
def initialize(**args)
|
805
|
+
update!(**args)
|
806
|
+
end
|
807
|
+
|
808
|
+
# Update properties of this object
|
809
|
+
def update!(**args)
|
810
|
+
@effective_tags = args[:effective_tags] if args.key?(:effective_tags)
|
811
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
812
|
+
end
|
813
|
+
end
|
814
|
+
|
732
815
|
# The ListFolders response message.
|
733
816
|
class ListFoldersResponse
|
734
817
|
include Google::Apis::Core::Hashable
|
@@ -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.25.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.4.1"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20220424"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -118,6 +118,12 @@ module Google
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
+
class EffectiveTag
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
|
124
|
+
include Google::Apis::Core::JsonObjectSupport
|
125
|
+
end
|
126
|
+
|
121
127
|
class Empty
|
122
128
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
129
|
|
@@ -166,6 +172,12 @@ module Google
|
|
166
172
|
include Google::Apis::Core::JsonObjectSupport
|
167
173
|
end
|
168
174
|
|
175
|
+
class ListEffectiveTagsResponse
|
176
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
177
|
+
|
178
|
+
include Google::Apis::Core::JsonObjectSupport
|
179
|
+
end
|
180
|
+
|
169
181
|
class ListFoldersResponse
|
170
182
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
171
183
|
|
@@ -500,6 +512,17 @@ module Google
|
|
500
512
|
end
|
501
513
|
end
|
502
514
|
|
515
|
+
class EffectiveTag
|
516
|
+
# @private
|
517
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
518
|
+
property :inherited, as: 'inherited'
|
519
|
+
property :namespaced_tag_key, as: 'namespacedTagKey'
|
520
|
+
property :namespaced_tag_value, as: 'namespacedTagValue'
|
521
|
+
property :tag_key, as: 'tagKey'
|
522
|
+
property :tag_value, as: 'tagValue'
|
523
|
+
end
|
524
|
+
end
|
525
|
+
|
503
526
|
class Empty
|
504
527
|
# @private
|
505
528
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -574,6 +597,15 @@ module Google
|
|
574
597
|
end
|
575
598
|
end
|
576
599
|
|
600
|
+
class ListEffectiveTagsResponse
|
601
|
+
# @private
|
602
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
603
|
+
collection :effective_tags, as: 'effectiveTags', class: Google::Apis::CloudresourcemanagerV3::EffectiveTag, decorator: Google::Apis::CloudresourcemanagerV3::EffectiveTag::Representation
|
604
|
+
|
605
|
+
property :next_page_token, as: 'nextPageToken'
|
606
|
+
end
|
607
|
+
end
|
608
|
+
|
577
609
|
class ListFoldersResponse
|
578
610
|
# @private
|
579
611
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -50,6 +50,47 @@ module Google
|
|
50
50
|
@batch_path = 'batch'
|
51
51
|
end
|
52
52
|
|
53
|
+
# Return a list of effective tags for the given cloud resource, as specified in `
|
54
|
+
# parent`.
|
55
|
+
# @param [Fixnum] page_size
|
56
|
+
# Optional. The maximum number of effective tags to return in the response. The
|
57
|
+
# server allows a maximum of 300 effective tags to return in a single page. If
|
58
|
+
# unspecified, the server will use 100 as the default.
|
59
|
+
# @param [String] page_token
|
60
|
+
# Optional. A pagination token returned from a previous call to `
|
61
|
+
# ListEffectiveTags` that indicates from where this listing should continue.
|
62
|
+
# @param [String] parent
|
63
|
+
# Required. The full resource name of a resource for which you want to list the
|
64
|
+
# effective tags. E.g. "//cloudresourcemanager.googleapis.com/projects/123"
|
65
|
+
# @param [String] fields
|
66
|
+
# Selector specifying which fields to include in a partial response.
|
67
|
+
# @param [String] quota_user
|
68
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
69
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
70
|
+
# @param [Google::Apis::RequestOptions] options
|
71
|
+
# Request-specific options
|
72
|
+
#
|
73
|
+
# @yield [result, err] Result & error if block supplied
|
74
|
+
# @yieldparam result [Google::Apis::CloudresourcemanagerV3::ListEffectiveTagsResponse] parsed result object
|
75
|
+
# @yieldparam err [StandardError] error object if request failed
|
76
|
+
#
|
77
|
+
# @return [Google::Apis::CloudresourcemanagerV3::ListEffectiveTagsResponse]
|
78
|
+
#
|
79
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
80
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
81
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
82
|
+
def list_effective_tags(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block)
|
83
|
+
command = make_simple_command(:get, 'v3/effectiveTags', options)
|
84
|
+
command.response_representation = Google::Apis::CloudresourcemanagerV3::ListEffectiveTagsResponse::Representation
|
85
|
+
command.response_class = Google::Apis::CloudresourcemanagerV3::ListEffectiveTagsResponse
|
86
|
+
command.query['pageSize'] = page_size unless page_size.nil?
|
87
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
88
|
+
command.query['parent'] = parent unless parent.nil?
|
89
|
+
command.query['fields'] = fields unless fields.nil?
|
90
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
91
|
+
execute_or_queue_command(command, &block)
|
92
|
+
end
|
93
|
+
|
53
94
|
# Creates a folder in the resource hierarchy. Returns an `Operation` which can
|
54
95
|
# be used to track the progress of the folder creation workflow. Upon success,
|
55
96
|
# the `Operation.response` field will be populated with the created Folder. In
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.25.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: 2022-
|
11
|
+
date: 2022-05-02 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-cloudresourcemanager_v3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudresourcemanager_v3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-cloudresourcemanager_v3/v0.25.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-cloudresourcemanager_v3
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|