Class: Google::Apis::CloudresourcemanagerV3::CloudResourceManagerService
- Inherits:
-
Google::Apis::Core::BaseService
- Object
- Google::Apis::Core::BaseService
- Google::Apis::CloudresourcemanagerV3::CloudResourceManagerService
- Defined in:
- lib/google/apis/cloudresourcemanager_v3/service.rb
Overview
Cloud Resource Manager API
Creates, reads, and updates metadata for Google Cloud Platform resource containers.
Instance Attribute Summary collapse
-
#key ⇒ String
API key.
-
#quota_user ⇒ String
Available to use for quota purposes for server-side applications.
Instance Method Summary collapse
-
#create_lien(lien_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Lien
Create a Lien which applies to the resource denoted by the
parentfield. -
#create_tag_binding(tag_binding_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Creates a TagBinding between a TagValue and a cloud resource (currently project, folder, or organization).
-
#create_tag_key(tag_key_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Creates a new TagKey.
-
#create_tag_value(tag_value_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Creates a TagValue as a child of the specified TagKey.
-
#delete_lien(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Empty
Delete a Lien by
name. -
#delete_tag_binding(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Deletes a TagBinding.
-
#delete_tag_key(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Deletes a TagKey.
-
#delete_tag_value(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Deletes a TagValue.
-
#get_lien(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Lien
Retrieve a Lien by
name. -
#get_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Gets the latest state of a long-running operation.
-
#get_tag_key(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::TagKey
Retrieves a TagKey.
-
#get_tag_key_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Policy
Gets the access control policy for a TagKey.
-
#get_tag_value(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::TagValue
Retrieves TagValue.
-
#get_tag_value_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Policy
Gets the access control policy for a TagValue.
-
#initialize ⇒ CloudResourceManagerService
constructor
A new instance of CloudResourceManagerService.
-
#list_liens(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::ListLiensResponse
List all Liens applied to the
parentresource. -
#list_tag_bindings(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::ListTagBindingsResponse
Lists the TagBindings for the given cloud resource, as specified with
parent. -
#list_tag_keys(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::ListTagKeysResponse
Lists all TagKeys for a parent resource.
-
#list_tag_values(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::ListTagValuesResponse
Lists all TagValues for a specific TagKey.
-
#patch_tag_key(name, tag_key_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Updates the attributes of the TagKey resource.
-
#patch_tag_value(name, tag_value_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Updates the attributes of the TagValue resource.
-
#set_tag_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Policy
Sets the access control policy on a TagKey, replacing any existing policy.
-
#set_tag_value_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Policy
Sets the access control policy on a TagValue, replacing any existing policy.
-
#test_tag_key_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::TestIamPermissionsResponse
Returns permissions that a caller has on the specified TagKey.
-
#test_tag_value_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::TestIamPermissionsResponse
Returns permissions that a caller has on the specified TagValue.
Constructor Details
#initialize ⇒ CloudResourceManagerService
Returns a new instance of CloudResourceManagerService.
46 47 48 49 50 51 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 46 def initialize super('https://cloudresourcemanager.googleapis.com/', '', client_name: 'google-apis-cloudresourcemanager_v3', client_version: Google::Apis::CloudresourcemanagerV3::GEM_VERSION) @batch_path = 'batch' end |
Instance Attribute Details
#key ⇒ String
Returns API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.
39 40 41 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 39 def key @key end |
#quota_user ⇒ String
Returns Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.
44 45 46 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 44 def quota_user @quota_user end |
Instance Method Details
#create_lien(lien_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Lien
Create a Lien which applies to the resource denoted by the parent field.
Callers of this method will require permission on the parent resource. For
example, applying to projects/1234 requires permission resourcemanager.
projects.updateLiens. NOTE: Some resources may limit the number of Liens
which may be applied.
76 77 78 79 80 81 82 83 84 85 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 76 def create_lien(lien_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/liens', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::Lien::Representation command.request_object = lien_object command.response_representation = Google::Apis::CloudresourcemanagerV3::Lien::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Lien command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_tag_binding(tag_binding_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Creates a TagBinding between a TagValue and a cloud resource (currently project, folder, or organization).
246 247 248 249 250 251 252 253 254 255 256 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 246 def create_tag_binding(tag_binding_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/tagBindings', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::TagBinding::Representation command.request_object = tag_binding_object command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Operation command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_tag_key(tag_key_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Creates a new TagKey. If another request with the same parameters is sent while the original request is in process, the second request will receive an error. A maximum of 300 TagKeys can exist under a parent at any given time.
356 357 358 359 360 361 362 363 364 365 366 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 356 def create_tag_key(tag_key_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/tagKeys', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::TagKey::Representation command.request_object = tag_key_object command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Operation command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#create_tag_value(tag_value_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Creates a TagValue as a child of the specified TagKey. If a another request with the same parameters is sent while the original request is in process the second request will receive an error. A maximum of 300 TagValues can exist under a TagKey at any given time.
657 658 659 660 661 662 663 664 665 666 667 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 657 def create_tag_value(tag_value_object = nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/tagValues', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::TagValue::Representation command.request_object = tag_value_object command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Operation command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_lien(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Empty
Delete a Lien by name. Callers of this method will require permission on the
parent resource. For example, a Lien with a parent of projects/1234
requires permission resourcemanager.projects.updateLiens.
109 110 111 112 113 114 115 116 117 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 109 def delete_lien(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v3/{+name}', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::Empty::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Empty command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_tag_binding(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Deletes a TagBinding.
280 281 282 283 284 285 286 287 288 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 280 def delete_tag_binding(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v3/{+name}', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_tag_key(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Deletes a TagKey. The TagKey cannot be deleted if it has any child TagValues.
396 397 398 399 400 401 402 403 404 405 406 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 396 def delete_tag_key(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v3/{+name}', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Operation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#delete_tag_value(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Deletes a TagValue. The TagValue cannot have any bindings when it is deleted.
695 696 697 698 699 700 701 702 703 704 705 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 695 def delete_tag_value(name, etag: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:delete, 'v3/{+name}', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Operation command.params['name'] = name unless name.nil? command.query['etag'] = etag unless etag.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_lien(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Lien
Retrieve a Lien by name. Callers of this method will require permission on
the parent resource. For example, a Lien with a parent of projects/1234
requires permission resourcemanager.projects.get
141 142 143 144 145 146 147 148 149 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 141 def get_lien(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::Lien::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Lien command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_operation(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service.
213 214 215 216 217 218 219 220 221 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 213 def get_operation(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Operation command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_tag_key(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::TagKey
Retrieves a TagKey. This method will return PERMISSION_DENIED if the key
does not exist or the user does not have permission to view it.
429 430 431 432 433 434 435 436 437 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 429 def get_tag_key(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::TagKey::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::TagKey command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_tag_key_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Policy
Gets the access control policy for a TagKey. The returned policy may be empty
if no such policy or resource exists. The resource field should be the
TagKey's resource name. For example, "tagKeys/1234". The caller must have
cloudresourcemanager.googleapis.com/tagKeys.getIamPolicy permission on the
specified TagKey.
465 466 467 468 469 470 471 472 473 474 475 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 465 def get_tag_key_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+resource}:getIamPolicy', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::CloudresourcemanagerV3::Policy::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_tag_value(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::TagValue
Retrieves TagValue. If the TagValue or namespaced name does not exist, or if
the user does not have permission to view it, this method will return
PERMISSION_DENIED.
730 731 732 733 734 735 736 737 738 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 730 def get_tag_value(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::TagValue::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::TagValue command.params['name'] = name unless name.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#get_tag_value_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Policy
Gets the access control policy for a TagValue. The returned policy may be
empty if no such policy or resource exists. The resource field should be the
TagValue's resource name. For example: tagValues/1234. The caller must have
the cloudresourcemanager.googleapis.com/tagValues.getIamPolicy permission on
the identified TagValue to get the access control policy.
766 767 768 769 770 771 772 773 774 775 776 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 766 def get_tag_value_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+resource}:getIamPolicy', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::GetIamPolicyRequest::Representation command.request_object = get_iam_policy_request_object command.response_representation = Google::Apis::CloudresourcemanagerV3::Policy::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_liens(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::ListLiensResponse
List all Liens applied to the parent resource. Callers of this method will
require permission on the parent resource. For example, a Lien with a
parent of projects/1234 requires permission resourcemanager.projects.get.
180 181 182 183 184 185 186 187 188 189 190 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 180 def list_liens(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/liens', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::ListLiensResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::ListLiensResponse command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_tag_bindings(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::ListTagBindingsResponse
Lists the TagBindings for the given cloud resource, as specified with parent.
NOTE: The parent field is expected to be a full resource name: https://
cloud.google.com/apis/design/resource_names#full_resource_name
320 321 322 323 324 325 326 327 328 329 330 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 320 def list_tag_bindings(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/tagBindings', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::ListTagBindingsResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::ListTagBindingsResponse command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_tag_keys(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::ListTagKeysResponse
Lists all TagKeys for a parent resource.
505 506 507 508 509 510 511 512 513 514 515 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 505 def list_tag_keys(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/tagKeys', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::ListTagKeysResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::ListTagKeysResponse command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#list_tag_values(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::ListTagValuesResponse
Lists all TagValues for a specific TagKey.
806 807 808 809 810 811 812 813 814 815 816 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 806 def list_tag_values(page_size: nil, page_token: nil, parent: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/tagValues', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::ListTagValuesResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::ListTagValuesResponse command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['parent'] = parent unless parent.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_tag_key(name, tag_key_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Updates the attributes of the TagKey resource.
545 546 547 548 549 550 551 552 553 554 555 556 557 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 545 def patch_tag_key(name, tag_key_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v3/{+name}', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::TagKey::Representation command.request_object = tag_key_object command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_tag_value(name, tag_value_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Updates the attributes of the TagValue resource.
844 845 846 847 848 849 850 851 852 853 854 855 856 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 844 def patch_tag_value(name, tag_value_object = nil, update_mask: nil, validate_only: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v3/{+name}', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::TagValue::Representation command.request_object = tag_value_object command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Operation command.params['name'] = name unless name.nil? command.query['updateMask'] = update_mask unless update_mask.nil? command.query['validateOnly'] = validate_only unless validate_only.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_tag_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Policy
Sets the access control policy on a TagKey, replacing any existing policy. The
resource field should be the TagKey's resource name. For example, "tagKeys/
1234". The caller must have resourcemanager.tagKeys.setIamPolicy permission
on the identified tagValue.
584 585 586 587 588 589 590 591 592 593 594 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 584 def set_tag_key_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::CloudresourcemanagerV3::Policy::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#set_tag_value_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Policy
Sets the access control policy on a TagValue, replacing any existing policy.
The resource field should be the TagValue's resource name. For example:
tagValues/1234. The caller must have resourcemanager.tagValues.setIamPolicy
permission on the identified tagValue.
883 884 885 886 887 888 889 890 891 892 893 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 883 def set_tag_value_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+resource}:setIamPolicy', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::SetIamPolicyRequest::Representation command.request_object = set_iam_policy_request_object command.response_representation = Google::Apis::CloudresourcemanagerV3::Policy::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Policy command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_tag_key_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::TestIamPermissionsResponse
Returns permissions that a caller has on the specified TagKey. The resource
field should be the TagKey's resource name. For example, "tagKeys/1234". There
are no permissions required for making this API call.
620 621 622 623 624 625 626 627 628 629 630 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 620 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::CloudresourcemanagerV3::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#test_tag_value_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::TestIamPermissionsResponse
Returns permissions that a caller has on the specified TagValue. The resource
field should be the TagValue's resource name. For example: tagValues/1234.
There are no permissions required for making this API call.
919 920 921 922 923 924 925 926 927 928 929 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 919 def (resource, = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+resource}:testIamPermissions', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::TestIamPermissionsRequest::Representation command.request_object = command.response_representation = Google::Apis::CloudresourcemanagerV3::TestIamPermissionsResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::TestIamPermissionsResponse command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |