public class CloudResourceManager.Projects extends Object
Modifier and Type | Class and Description |
---|---|
class |
CloudResourceManager.Projects.Create |
class |
CloudResourceManager.Projects.Delete |
class |
CloudResourceManager.Projects.Get |
class |
CloudResourceManager.Projects.GetIamPolicy |
class |
CloudResourceManager.Projects.List |
class |
CloudResourceManager.Projects.Move |
class |
CloudResourceManager.Projects.Patch |
class |
CloudResourceManager.Projects.Search |
class |
CloudResourceManager.Projects.SetIamPolicy |
class |
CloudResourceManager.Projects.TestIamPermissions |
class |
CloudResourceManager.Projects.Undelete |
Constructor and Description |
---|
Projects() |
Modifier and Type | Method and Description |
---|---|
CloudResourceManager.Projects.Create |
create(Project content)
Request that a new project be created.
|
CloudResourceManager.Projects.Delete |
delete(String name)
Marks the project identified by the specified `name` (for example, `projects/415104041262`) for
deletion.
|
CloudResourceManager.Projects.Get |
get(String name)
Retrieves the project identified by the specified `name` (for example, `projects/415104041262`).
|
CloudResourceManager.Projects.GetIamPolicy |
getIamPolicy(String resource,
GetIamPolicyRequest content)
Returns the IAM access control policy for the specified project, in the format
`projects/{ProjectIdOrNumber}` e.g.
|
CloudResourceManager.Projects.List |
list()
Lists projects that are direct children of the specified folder or organization resource.
|
CloudResourceManager.Projects.Move |
move(String name,
MoveProjectRequest content)
Move a project to another place in your resource hierarchy, under a new resource parent.
|
CloudResourceManager.Projects.Patch |
patch(String name,
Project content)
Updates the `display_name` and labels of the project identified by the specified `name` (for
example, `projects/415104041262`).
|
CloudResourceManager.Projects.Search |
search()
Search for projects that the caller has the `resourcemanager.projects.get` permission on, and
also satisfy the specified query.
|
CloudResourceManager.Projects.SetIamPolicy |
setIamPolicy(String resource,
SetIamPolicyRequest content)
Sets the IAM access control policy for the specified project, in the format
`projects/{ProjectIdOrNumber}` e.g.
|
CloudResourceManager.Projects.TestIamPermissions |
testIamPermissions(String resource,
TestIamPermissionsRequest content)
Returns permissions that a caller has on the specified project, in the format
`projects/{ProjectIdOrNumber}` e.g.
|
CloudResourceManager.Projects.Undelete |
undelete(String name,
UndeleteProjectRequest content)
Restores the project identified by the specified `name` (for example, `projects/415104041262`).
|
public CloudResourceManager.Projects.Create create(Project content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.content
- the Project
IOException
public CloudResourceManager.Projects.Delete delete(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the Project (for example, `projects/415104041262`).IOException
public CloudResourceManager.Projects.Get get(String name) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the project (for example, `projects/415104041262`).IOException
public 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 GetIamPolicyRequest
IOException
public CloudResourceManager.Projects.List list() throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.IOException
public CloudResourceManager.Projects.Move move(String name, MoveProjectRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the project to move.content
- the MoveProjectRequest
IOException
public CloudResourceManager.Projects.Patch patch(String name, Project content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Output only. The unique resource name of the project. It is an int64 generated number prefixed by
"projects/". Example: `projects/415104041262`content
- the Project
IOException
public CloudResourceManager.Projects.Search search() throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.IOException
public 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 SetIamPolicyRequest
IOException
public 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 TestIamPermissionsRequest
IOException
public CloudResourceManager.Projects.Undelete undelete(String name, UndeleteProjectRequest content) throws IOException
AbstractGoogleClientRequest.execute()
method to invoke the remote operation.name
- Required. The name of the project (for example, `projects/415104041262`). Required.content
- the UndeleteProjectRequest
IOException
Copyright © 2011–2024 Google. All rights reserved.