public interface ResourceManagerRpc extends ServiceRpc
Modifier and Type | Interface and Description |
---|---|
static class |
ResourceManagerRpc.Option |
Modifier and Type | Method and Description |
---|---|
com.google.api.services.cloudresourcemanager.model.Project |
create(com.google.api.services.cloudresourcemanager.model.Project project)
Creates a new project.
|
void |
delete(String projectId)
Marks the project identified by the specified project ID for deletion.
|
com.google.api.services.cloudresourcemanager.model.Project |
get(String projectId,
Map<ResourceManagerRpc.Option,?> options)
Retrieves the project identified by the specified project ID.
|
com.google.api.services.cloudresourcemanager.model.Policy |
getPolicy(String projectId)
Returns the IAM policy associated with a project.
|
Tuple<String,Iterable<com.google.api.services.cloudresourcemanager.model.Project>> |
list(Map<ResourceManagerRpc.Option,?> options)
Lists the projects visible to the current user.
|
com.google.api.services.cloudresourcemanager.model.Project |
replace(com.google.api.services.cloudresourcemanager.model.Project project)
Replaces the attributes of the project.
|
com.google.api.services.cloudresourcemanager.model.Policy |
replacePolicy(String projectId,
com.google.api.services.cloudresourcemanager.model.Policy newPolicy)
Replaces the IAM policy associated with the given project.
|
List<Boolean> |
testPermissions(String projectId,
List<String> permissions)
Tests whether the caller has the given permissions.
|
void |
undelete(String projectId)
Restores the project identified by the specified project ID.
|
com.google.api.services.cloudresourcemanager.model.Project create(com.google.api.services.cloudresourcemanager.model.Project project)
ResourceManagerException
- upon failurevoid delete(String projectId)
ResourceManagerException
- upon failurecom.google.api.services.cloudresourcemanager.model.Project get(String projectId, Map<ResourceManagerRpc.Option,?> options)
null
if the
project is not found or if the user doesn't have read permissions for the project.ResourceManagerException
- upon failureTuple<String,Iterable<com.google.api.services.cloudresourcemanager.model.Project>> list(Map<ResourceManagerRpc.Option,?> options)
ResourceManagerException
- upon failurevoid undelete(String projectId)
DELETE_REQUESTED
state. The caller must have modify
permissions for this project.ResourceManagerException
- upon failurecom.google.api.services.cloudresourcemanager.model.Project replace(com.google.api.services.cloudresourcemanager.model.Project project)
ResourceManagerException
- upon failurecom.google.api.services.cloudresourcemanager.model.Policy getPolicy(String projectId)
ResourceManagerException
- upon failurecom.google.api.services.cloudresourcemanager.model.Policy replacePolicy(String projectId, com.google.api.services.cloudresourcemanager.model.Policy newPolicy)
ResourceManagerException
- upon failureList<Boolean> testPermissions(String projectId, List<String> permissions)
ResourceManagerException
- upon failureCopyright © 2019 Google LLC. All rights reserved.