public class HttpResourceManagerRpc extends Object implements ResourceManagerRpc
ResourceManagerRpc.Option
Constructor and Description |
---|
HttpResourceManagerRpc(ResourceManagerOptions options) |
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.
|
com.google.cloud.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.
|
public HttpResourceManagerRpc(ResourceManagerOptions options)
public com.google.api.services.cloudresourcemanager.model.Project create(com.google.api.services.cloudresourcemanager.model.Project project)
ResourceManagerRpc
create
in interface ResourceManagerRpc
public void delete(String projectId)
ResourceManagerRpc
delete
in interface ResourceManagerRpc
public com.google.api.services.cloudresourcemanager.model.Project get(String projectId, Map<ResourceManagerRpc.Option,?> options)
ResourceManagerRpc
null
if the
project is not found or if the user doesn't have read permissions for the project.get
in interface ResourceManagerRpc
public com.google.cloud.Tuple<String,Iterable<com.google.api.services.cloudresourcemanager.model.Project>> list(Map<ResourceManagerRpc.Option,?> options)
ResourceManagerRpc
list
in interface ResourceManagerRpc
public void undelete(String projectId)
ResourceManagerRpc
DELETE_REQUESTED
state. The caller must have modify
permissions for this project.undelete
in interface ResourceManagerRpc
public com.google.api.services.cloudresourcemanager.model.Project replace(com.google.api.services.cloudresourcemanager.model.Project project)
ResourceManagerRpc
replace
in interface ResourceManagerRpc
public com.google.api.services.cloudresourcemanager.model.Policy getPolicy(String projectId) throws ResourceManagerException
ResourceManagerRpc
getPolicy
in interface ResourceManagerRpc
ResourceManagerException
- upon failurepublic com.google.api.services.cloudresourcemanager.model.Policy replacePolicy(String projectId, com.google.api.services.cloudresourcemanager.model.Policy newPolicy) throws ResourceManagerException
ResourceManagerRpc
replacePolicy
in interface ResourceManagerRpc
ResourceManagerException
- upon failurepublic List<Boolean> testPermissions(String projectId, List<String> permissions) throws ResourceManagerException
ResourceManagerRpc
testPermissions
in interface ResourceManagerRpc
ResourceManagerException
- upon failureCopyright © 2019 Google LLC. All rights reserved.