public class CloudResourceManager.Projects extends Object
| Constructor and Description |
|---|
Projects() |
| Modifier and Type | Method and Description |
|---|---|
CloudResourceManager.Projects.ClearOrgPolicy |
clearOrgPolicy(String resource,
ClearOrgPolicyRequest content)
Clears a `Policy` from a resource.
|
CloudResourceManager.Projects.Create |
create(Project content)
Request that a new Project be created.
|
CloudResourceManager.Projects.Delete |
delete(String projectId)
Marks the Project identified by the specified `project_id` (for example, `my-project-123`) for
deletion.
|
CloudResourceManager.Projects.Get |
get(String projectId)
Retrieves the Project identified by the specified `project_id` (for example, `my-project-123`).
|
CloudResourceManager.Projects.GetAncestry |
getAncestry(String projectId,
GetAncestryRequest content)
Gets a list of ancestors in the resource hierarchy for the Project identified by the specified
`project_id` (for example, `my-project-123`).
|
CloudResourceManager.Projects.GetEffectiveOrgPolicy |
getEffectiveOrgPolicy(String resource,
GetEffectiveOrgPolicyRequest content)
Gets the effective `Policy` on a resource.
|
CloudResourceManager.Projects.GetIamPolicy |
getIamPolicy(String resource,
GetIamPolicyRequest content)
Returns the IAM access control policy for the specified Project.
|
CloudResourceManager.Projects.GetOrgPolicy |
getOrgPolicy(String resource,
GetOrgPolicyRequest content)
Gets a `Policy` on a resource.
|
CloudResourceManager.Projects.List |
list()
Lists Projects that the caller has the `resourcemanager.projects.get` permission on and satisfy
the specified filter.
|
CloudResourceManager.Projects.ListAvailableOrgPolicyConstraints |
listAvailableOrgPolicyConstraints(String resource,
ListAvailableOrgPolicyConstraintsRequest content)
Lists `Constraints` that could be applied on the specified resource.
|
CloudResourceManager.Projects.ListOrgPolicies |
listOrgPolicies(String resource,
ListOrgPoliciesRequest content)
Lists all the `Policies` set for a particular resource.
|
CloudResourceManager.Projects.SetIamPolicy |
setIamPolicy(String resource,
SetIamPolicyRequest content)
Sets the IAM access control policy for the specified Project.
|
CloudResourceManager.Projects.SetOrgPolicy |
setOrgPolicy(String resource,
SetOrgPolicyRequest content)
Updates the specified `Policy` on the resource.
|
CloudResourceManager.Projects.TestIamPermissions |
testIamPermissions(String resource,
TestIamPermissionsRequest content)
Returns permissions that a caller has on the specified Project.
|
CloudResourceManager.Projects.Undelete |
undelete(String projectId,
UndeleteProjectRequest content)
Restores the Project identified by the specified `project_id` (for example, `my-project-123`).
|
CloudResourceManager.Projects.Update |
update(String projectId,
Project content)
Updates the attributes of the Project identified by the specified `project_id` (for example, `my-
project-123`).
|
public CloudResourceManager.Projects.ClearOrgPolicy clearOrgPolicy(String resource, ClearOrgPolicyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.resource - Name of the resource for the `Policy` to clear.content - the ClearOrgPolicyRequestIOExceptionpublic CloudResourceManager.Projects.Create create(Project content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.content - the ProjectIOExceptionpublic CloudResourceManager.Projects.Delete delete(String projectId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.projectId - The Project ID (for example, `foo-bar-123`). Required.IOExceptionpublic CloudResourceManager.Projects.Get get(String projectId) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.projectId - Required. The Project ID (for example, `my-project-123`).IOExceptionpublic CloudResourceManager.Projects.GetAncestry getAncestry(String projectId, GetAncestryRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.projectId - Required. The Project ID (for example, `my-project-123`).content - the GetAncestryRequestIOExceptionpublic CloudResourceManager.Projects.GetEffectiveOrgPolicy getEffectiveOrgPolicy(String resource, GetEffectiveOrgPolicyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.resource - The name of the resource to start computing the effective `Policy`.content - the GetEffectiveOrgPolicyRequestIOExceptionpublic CloudResourceManager.Projects.GetIamPolicy getIamPolicy(String resource, GetIamPolicyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.resource - REQUIRED: The resource for which the policy is being requested. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.content - the GetIamPolicyRequestIOExceptionpublic CloudResourceManager.Projects.GetOrgPolicy getOrgPolicy(String resource, GetOrgPolicyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.resource - Name of the resource the `Policy` is set on.content - the GetOrgPolicyRequestIOExceptionpublic CloudResourceManager.Projects.List list() throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.IOExceptionpublic CloudResourceManager.Projects.ListAvailableOrgPolicyConstraints listAvailableOrgPolicyConstraints(String resource, ListAvailableOrgPolicyConstraintsRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to
invoke the remote operation.resource - Name of the resource to list `Constraints` for.content - the ListAvailableOrgPolicyConstraintsRequestIOExceptionpublic CloudResourceManager.Projects.ListOrgPolicies listOrgPolicies(String resource, ListOrgPoliciesRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.resource - Name of the resource to list Policies for.content - the ListOrgPoliciesRequestIOExceptionpublic CloudResourceManager.Projects.SetIamPolicy setIamPolicy(String resource, SetIamPolicyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.resource - REQUIRED: The resource for which the policy is being specified. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.content - the SetIamPolicyRequestIOExceptionpublic CloudResourceManager.Projects.SetOrgPolicy setOrgPolicy(String resource, SetOrgPolicyRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.resource - Resource name of the resource to attach the `Policy`.content - the SetOrgPolicyRequestIOExceptionpublic CloudResourceManager.Projects.TestIamPermissions testIamPermissions(String resource, TestIamPermissionsRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote
operation.resource - REQUIRED: The resource for which the policy detail is being requested. See [Resource
names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
this field.content - the TestIamPermissionsRequestIOExceptionpublic CloudResourceManager.Projects.Undelete undelete(String projectId, UndeleteProjectRequest content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.projectId - Required. The project ID (for example, `foo-bar-123`).content - the UndeleteProjectRequestIOExceptionpublic CloudResourceManager.Projects.Update update(String projectId, Project content) throws IOException
AbstractGoogleClientRequest.execute() method to invoke the remote operation.projectId - The project ID (for example, `my-project-123`). Required.content - the ProjectIOExceptionCopyright © 2011–2024 Google. All rights reserved.