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_folder(folder_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Creates a Folder in the resource hierarchy.
-
#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_project(project_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Request that a new Project be created.
-
#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_folder(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Requests deletion of a Folder.
-
#delete_lien(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Empty
Delete a Lien by
name. -
#delete_project(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Marks the Project identified by the specified
name(for example,projects/ 415104041262) for deletion. -
#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_folder(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Folder
Retrieves a Folder identified by the supplied resource name.
-
#get_folder_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 Folder.
-
#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_organization(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Organization
Fetches an Organization resource identified by the specified resource name.
-
#get_organization_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 an Organization resource.
-
#get_project(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Project
Retrieves the Project identified by the specified
name(for example,projects/415104041262). -
#get_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Policy
Returns the IAM access control policy for the specified Project.
-
#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_folders(page_size: nil, page_token: nil, parent: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::ListFoldersResponse
Lists the Folders that are direct descendants of supplied parent resource.
-
#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_projects(page_size: nil, page_token: nil, parent: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::ListProjectsResponse
Lists Projects that are direct children of the specified folder or organization resource.
-
#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.
-
#move_folder(name, move_folder_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Moves a Folder under a new resource parent.
-
#move_project(name, move_project_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Move a Project under a new resource parent.
-
#patch_folder(name, folder_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Updates a Folder, changing its display_name.
-
#patch_project(name, project_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Updates the attributes of the Project identified by the specified
name(for example,projects/415104041262). -
#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.
-
#search_folders(page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::SearchFoldersResponse
Search for folders that match specific filter criteria.
-
#search_organizations(page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::SearchOrganizationsResponse
Searches Organization resources that are visible to the user and satisfy the specified filter.
-
#search_projects(page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::SearchProjectsResponse
Search for Projects that the caller has the
resourcemanager.projects.getpermission on and satisfy the specified query. -
#set_folder_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 Folder, replacing any existing policy.
-
#set_organization_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 an Organization resource.
-
#set_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Policy
Sets the IAM access control policy for the specified Project.
-
#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_folder_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 Folder.
-
#test_organization_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 Organization.
-
#test_project_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 Project.
-
#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.
-
#undelete_folder(name, undelete_folder_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Cancels the deletion request for a Folder.
-
#undelete_project(name, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Restores the Project identified by the specified
name(for example,projects/415104041262).
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_folder(folder_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Creates a Folder in the resource hierarchy. Returns an Operation which can be
used to track the progress of the folder creation workflow. Upon success the
Operation.response field will be populated with the created Folder. In order
to succeed, the addition of this new Folder must not violate the Folder naming,
height or fanout constraints. + The Folder's display_name must be distinct
from all other Folders that share its parent. + The addition of the Folder
must not cause the active Folder hierarchy to exceed a height of 10. Note, the
full active + deleted Folder hierarchy is allowed to reach a height of 20;
this provides additional headroom when moving folders that contain deleted
folders. + The addition of the Folder must not cause the total number of
Folders under its parent to exceed 300. If the operation fails due to a folder
constraint violation, some errors may be returned by the CreateFolder request,
with status code FAILED_PRECONDITION and an error description. Other folder
constraint violations will be communicated in the Operation, with the specific
PreconditionFailure returned via the details list in the Operation.error field.
The caller must have resourcemanager.folders.create permission on the
identified parent.
88 89 90 91 92 93 94 95 96 97 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 88 def create_folder(folder_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/folders', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::Folder::Representation command.request_object = folder_object command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Operation command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#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.
539 540 541 542 543 544 545 546 547 548 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 539 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_project(project_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Request that a new Project be created. The result is an Operation which can be used to track the creation process. This process usually takes a few seconds, but can sometimes take much longer. The tracking Operation is automatically deleted after a few hours, so there is no need to call DeleteOperation.
903 904 905 906 907 908 909 910 911 912 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 903 def create_project(project_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/projects', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::Project::Representation command.request_object = project_object command.response_representation = Google::Apis::CloudresourcemanagerV3::Operation::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Operation 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).
1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1368 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.
1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1478 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.
1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1779 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_folder(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Requests deletion of a Folder. The Folder is moved into the DELETE_REQUESTED
state immediately, and is deleted approximately 30 days later. This method may
only be called on an empty Folder, where a Folder is empty if it doesn't
contain any Folders or Projects in the ACTIVE state. If called on a folder in
DELETE_REQUESTED state the result will be a no-op success. The caller must
have resourcemanager.folders.delete permission on the identified folder.
125 126 127 128 129 130 131 132 133 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 125 def delete_folder(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_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.
572 573 574 575 576 577 578 579 580 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 572 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_project(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Marks the Project identified by the specified name (for example, projects/
415104041262) for deletion. This method will only affect the Project if it
has a lifecycle state of ACTIVE. This method changes the Project's lifecycle
state from ACTIVE to DELETE_REQUESTED. The deletion starts at an unspecified
time, at which point the Project is no longer accessible. Until the deletion
completes, you can check the lifecycle state checked by retrieving the Project
with GetProject, and the Project remains visible to ListProjects. However, you
cannot update the project. After the deletion completes, the Project is not
retrievable by the GetProject, ListProjects, and SearchProjects methods. This
method behaves idempotently (eg., deleting a DELETE_REQUESTED project will
not be an error, but also won't do anything). The caller must have delete
permissions for this Project.
945 946 947 948 949 950 951 952 953 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 945 def delete_project(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_binding(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Deletes a TagBinding.
1402 1403 1404 1405 1406 1407 1408 1409 1410 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1402 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.
1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1518 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.
1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1817 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_folder(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Folder
Retrieves a Folder identified by the supplied resource name. Valid Folder
resource names have the format folders/folder_id`(for example,folders/
1234). The caller must haveresourcemanager.folders.get` permission on the
identified folder.
159 160 161 162 163 164 165 166 167 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 159 def get_folder(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::Folder::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Folder 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_folder_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 Folder. The returned policy may be empty
if no such policy or resource exists. The resource field should be the
Folder's resource name, e.g. "folders/1234". The caller must have
resourcemanager.folders.getIamPolicy permission on the identified folder.
194 195 196 197 198 199 200 201 202 203 204 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 194 def get_folder_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_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
604 605 606 607 608 609 610 611 612 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 604 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.
676 677 678 679 680 681 682 683 684 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 676 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_organization(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Organization
Fetches an Organization resource identified by the specified resource name.
708 709 710 711 712 713 714 715 716 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 708 def get_organization(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::Organization::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Organization 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_organization_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 an Organization resource. May be empty if
no such policy or resource exists. The resource field should be the
organization's resource name, e.g. "organizations/123". Authorization requires
the Google IAM permission resourcemanager.organizations.getIamPolicy on the
specified organization
744 745 746 747 748 749 750 751 752 753 754 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 744 def get_organization_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_project(name, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Project
Retrieves the Project identified by the specified name (for example,
projects/415104041262). The caller must have read permissions for this
Project.
977 978 979 980 981 982 983 984 985 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 977 def get_project(name, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/{+name}', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::Project::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::Project 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_project_iam_policy(resource, get_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Policy
Returns the IAM access control policy for the specified Project. Permission is denied if the policy or the resource does not exist.
1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1010 def get_project_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_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.
1551 1552 1553 1554 1555 1556 1557 1558 1559 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1551 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.
1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1587 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.
1852 1853 1854 1855 1856 1857 1858 1859 1860 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1852 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.
1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1888 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_folders(page_size: nil, page_token: nil, parent: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::ListFoldersResponse
Lists the Folders that are direct descendants of supplied parent resource.
List provides a strongly consistent view of the Folders underneath the
specified parent resource. List returns Folders sorted based upon the (
ascending) lexical ordering of their display_name. The caller must have
resourcemanager.folders.list permission on the identified parent.
242 243 244 245 246 247 248 249 250 251 252 253 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 242 def list_folders(page_size: nil, page_token: nil, parent: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/folders', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::ListFoldersResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::ListFoldersResponse 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['showDeleted'] = show_deleted unless show_deleted.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.
643 644 645 646 647 648 649 650 651 652 653 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 643 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_projects(page_size: nil, page_token: nil, parent: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::ListProjectsResponse
Lists Projects that are direct children of the specified folder or
organization resource. List provides a strongly consistent view of the
Projects underneath the specified parent resource. List returns Projects
sorted based upon the (ascending) lexical ordering of their display_name.
The caller must have resourcemanager.projects.list permission on the
identified parent.
1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1059 def list_projects(page_size: nil, page_token: nil, parent: nil, show_deleted: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/projects', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::ListProjectsResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::ListProjectsResponse 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['showDeleted'] = show_deleted unless show_deleted.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
1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1442 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.
1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1627 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.
1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1928 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 |
#move_folder(name, move_folder_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Moves a Folder under a new resource parent. Returns an Operation which can be
used to track the progress of the folder move workflow. Upon success the
Operation.response field will be populated with the moved Folder. Upon failure,
a FolderOperationError categorizing the failure cause will be returned - if
the failure occurs synchronously then the FolderOperationError will be
returned via the Status.details field and if it occurs asynchronously then the
FolderOperation will be returned via the Operation.error field. In addition,
the Operation.metadata field will be populated with a FolderOperation message
as an aid to stateless clients. Folder moves will be rejected if they violate
either the naming, height or fanout constraints described in the CreateFolder
documentation. The caller must have resourcemanager.folders.move permission
on the folder's current and proposed new parent.
288 289 290 291 292 293 294 295 296 297 298 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 288 def move_folder(name, move_folder_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+name}:move', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::MoveFolderRequest::Representation command.request_object = move_folder_request_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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#move_project(name, move_project_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Move a Project under a new resource parent. Returns an operation which can be
used to track the process of the Project move workflow. Upon success, the
Operation.response field will be populated with the moved Project. The caller
must have resourcemanager.projects.update permission on the Project and have
resourcemanager.projects.move permission on the Project's current and
proposed new parent.
1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1098 def move_project(name, move_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+name}:move', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::MoveProjectRequest::Representation command.request_object = move_project_request_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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_folder(name, folder_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Updates a Folder, changing its display_name. Changes to the folder
display_name will be rejected if they violate either the display_name
formatting rules or naming constraints described in the CreateFolder
documentation. The Folder's display_name must start and end with a letter or
digit, may contain letters, digits, spaces, hyphens and underscores and can be
between 3 and 30 characters. This is captured by the regular expression: \pL
\pN`1,28[\pL\pN]. The caller must haveresourcemanager.folders.update`
permission on the identified folder. If the update fails due to the unique
name constraint then a PreconditionFailure explaining this violation will be
returned in the Status.details field.
333 334 335 336 337 338 339 340 341 342 343 344 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 333 def patch_folder(name, folder_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v3/{+name}', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::Folder::Representation command.request_object = folder_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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#patch_project(name, project_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Updates the attributes of the Project identified by the specified name (for
example, projects/415104041262). At present this is only useful for updating
the display_name and labels. Deleting all labels requires an update mask for
labels field. The caller must have modify permissions for this Project.
1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1137 def patch_project(name, project_object = nil, update_mask: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:patch, 'v3/{+name}', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::Project::Representation command.request_object = project_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['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.
1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1667 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.
1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1966 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 |
#search_folders(page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::SearchFoldersResponse
Search for folders that match specific filter criteria. Search provides an
eventually consistent view of the folders a user has access to which meet the
specified filter criteria. This will only return folders on which the caller
has the permission resourcemanager.folders.get.
391 392 393 394 395 396 397 398 399 400 401 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 391 def search_folders(page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/folders:search', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::SearchFoldersResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::SearchFoldersResponse command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['query'] = query unless query.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#search_organizations(page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::SearchOrganizationsResponse
Searches Organization resources that are visible to the user and satisfy the
specified filter. This method returns Organizations in an unspecified order.
New Organizations do not necessarily appear at the end of the results, and may
take a small amount of time to appear. Search will only return organizations
on which the user has the permission resourcemanager.organizations.get
795 796 797 798 799 800 801 802 803 804 805 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 795 def search_organizations(page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/organizations:search', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::SearchOrganizationsResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::SearchOrganizationsResponse command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['query'] = query unless query.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#search_projects(page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::SearchProjectsResponse
Search for Projects that the caller has the resourcemanager.projects.get
permission on and satisfy the specified query. This method returns Projects in
an unspecified order. This method is eventually consistent with project
mutations; this means that a newly created project may not appear in the
results or recent updates to an existing project may not be reflected in the
results. To retrieve the latest state of a project, use the GetProject method.
1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1202 def search_projects(page_size: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:get, 'v3/projects:search', ) command.response_representation = Google::Apis::CloudresourcemanagerV3::SearchProjectsResponse::Representation command.response_class = Google::Apis::CloudresourcemanagerV3::SearchProjectsResponse command.query['pageSize'] = page_size unless page_size.nil? command.query['pageToken'] = page_token unless page_token.nil? command.query['query'] = query unless query.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_folder_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 Folder, replacing any existing policy. The
resource field should be the Folder's resource name, e.g. "folders/1234".
The caller must have resourcemanager.folders.setIamPolicy permission on the
identified folder.
428 429 430 431 432 433 434 435 436 437 438 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 428 def set_folder_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_organization_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 an Organization resource. Replaces any
existing policy. The resource field should be the organization's resource
name, e.g. "organizations/123". Authorization requires the Google IAM
permission resourcemanager.organizations.setIamPolicy on the specified
organization
833 834 835 836 837 838 839 840 841 842 843 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 833 def set_organization_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_project_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Policy
Sets the IAM access control policy for the specified Project. CAUTION: This
method will replace the existing policy, and cannot be used to append
additional IAM settings. NOTE: Removing service accounts from policies or
changing their roles can render services completely inoperable. It is
important to understand how the service account is being used before removing
or updating its roles. The following constraints apply when using
setIamPolicy(): + Project does not support allUsers and
allAuthenticatedUsers as members in a Binding of a Policy. + The owner
role can be granted to a user, serviceAccount, or a group that is part of
an organization. For example, group@myownpersonaldomain.com could be added as
an owner to a project in the myownpersonaldomain.com organization, but not the
examplepetstore.com organization. + Service accounts can be made owners of a
project directly without any restrictions. However, to be added as an owner, a
user must be invited via Cloud Platform console and must accept the invitation.
- A user cannot be granted the owner role using
setIamPolicy(). The user must be granted the owner role using the Cloud Platform Console and must explicitly accept the invitation. + Invitations to grant the owner role cannot be sent usingsetIamPolicy(); they must be sent only using the Cloud Platform Console. + Membership changes that leave the project without any owners that have accepted the Terms of Service (ToS) will be rejected. + If the project is not part of an organization, there must be at least one owner who has accepted the Terms of Service (ToS) agreement in the policy. CallingsetIamPolicy()to remove the last ToS-accepted owner from the policy will fail. This restriction also applies to legacy projects that no longer have owners who have accepted the ToS. Edits to IAM policies will be rejected until the lack of a ToS-accepting owner is rectified. + Calling this method requires enabling the App Engine Admin API.
1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1262 def set_project_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_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.
1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1706 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.
2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 2005 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_folder_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 Folder. The resource
field should be the Folder's resource name, e.g. "folders/1234". There are no
permissions required for making this API call.
464 465 466 467 468 469 470 471 472 473 474 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 464 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_organization_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 Organization. The
resource field should be the organization's resource name, e.g. "
organizations/123". There are no permissions required for making this API call.
869 870 871 872 873 874 875 876 877 878 879 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 869 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_project_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 Project.
1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1296 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_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.
1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1742 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.
2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 2041 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 |
#undelete_folder(name, undelete_folder_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Cancels the deletion request for a Folder. This method may be called on a
Folder in any state. If Folder is in ACTIVE state the result will be a no-op
success. In order to succeed, the Folder's parent must be in the ACTIVE state.
In addition, reintroducing the folder into the tree must not violate folder
naming, height and fanout constraints described in the CreateFolder
documentation. The caller must have resourcemanager.folders.undelete
permission on the identified folder.
504 505 506 507 508 509 510 511 512 513 514 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 504 def undelete_folder(name, undelete_folder_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+name}:undelete', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::UndeleteFolderRequest::Representation command.request_object = undelete_folder_request_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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |
#undelete_project(name, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil) {|result, err| ... } ⇒ Google::Apis::CloudresourcemanagerV3::Operation
Restores the Project identified by the specified name (for example,
projects/415104041262). You can only use this method for a Project that has a
lifecycle state of DELETE_REQUESTED. After deletion starts, the Project cannot
be restored. The caller must have undelete permissions for this Project.
1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 |
# File 'lib/google/apis/cloudresourcemanager_v3/service.rb', line 1333 def undelete_project(name, undelete_project_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:post, 'v3/{+name}:undelete', ) command.request_representation = Google::Apis::CloudresourcemanagerV3::UndeleteProjectRequest::Representation command.request_object = undelete_project_request_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['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? execute_or_queue_command(command, &block) end |