@Deprecated public interface ResourceManagerRpc extends com.google.cloud.ServiceRpc
| Modifier and Type | Interface and Description |
|---|---|
static class |
ResourceManagerRpc.ListResult<T>
Deprecated.
|
static class |
ResourceManagerRpc.Option
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clearOrgPolicy(String resource,
com.google.api.services.cloudresourcemanager.model.OrgPolicy orgPolicy)
Deprecated.
Clears the Policy from a resource.
|
com.google.api.services.cloudresourcemanager.model.Project |
create(com.google.api.services.cloudresourcemanager.model.Project project)
Deprecated.
Creates a new project.
|
void |
delete(String projectId)
Deprecated.
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)
Deprecated.
Retrieves the project identified by the specified project ID.
|
com.google.api.services.cloudresourcemanager.model.OrgPolicy |
getEffectiveOrgPolicy(String resource,
String constraint)
Deprecated.
Gets the effective Policy on a resource.
|
com.google.api.services.cloudresourcemanager.model.OrgPolicy |
getOrgPolicy(String resource,
String constraint)
Deprecated.
Gets the Policy on a resource.
|
com.google.api.services.cloudresourcemanager.model.Policy |
getPolicy(String projectId)
Deprecated.
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)
Deprecated.
Lists the projects visible to the current user.
|
ResourceManagerRpc.ListResult<com.google.api.services.cloudresourcemanager.model.Constraint> |
listAvailableOrgPolicyConstraints(String resource,
Map<ResourceManagerRpc.Option,?> options)
Deprecated.
Lists all the Constraints that can be applied on the specified resource.
|
ResourceManagerRpc.ListResult<com.google.api.services.cloudresourcemanager.model.OrgPolicy> |
listOrgPolicies(String resource,
Map<ResourceManagerRpc.Option,?> options)
Deprecated.
Lists all the Policies set for a particular resource.
|
com.google.api.services.cloudresourcemanager.model.Project |
replace(com.google.api.services.cloudresourcemanager.model.Project project)
Deprecated.
Replaces the attributes of the project.
|
com.google.api.services.cloudresourcemanager.model.OrgPolicy |
replaceOrgPolicy(String resource,
com.google.api.services.cloudresourcemanager.model.OrgPolicy orgPolicy)
Deprecated.
Updates the specified Policy on the resource.
|
com.google.api.services.cloudresourcemanager.model.Policy |
replacePolicy(String projectId,
com.google.api.services.cloudresourcemanager.model.Policy newPolicy)
Deprecated.
Replaces the IAM policy associated with the given project.
|
Map<String,Boolean> |
testOrgPermissions(String resource,
List<String> permissions)
Deprecated.
Tests whether the caller has the given permissions on the specified Organization.
|
List<Boolean> |
testPermissions(String projectId,
List<String> permissions)
Deprecated.
Tests whether the caller has the given permissions.
|
void |
undelete(String projectId)
Deprecated.
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 failurecom.google.cloud.Tuple<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 failureMap<String,Boolean> testOrgPermissions(String resource, List<String> permissions) throws IOException
ResourceManagerException - upon failureIOExceptionvoid clearOrgPolicy(String resource, com.google.api.services.cloudresourcemanager.model.OrgPolicy orgPolicy) throws IOException
IOExceptioncom.google.api.services.cloudresourcemanager.model.OrgPolicy getEffectiveOrgPolicy(String resource, String constraint) throws IOException
This is the result of merging Policies in the resource hierarchy. The returned Policy does not have an etag set because it is a computed Policy across multiple resources. Subtrees of Resource Manager resource hierarchy with 'under:' prefix will not be expanded.
ResourceManagerException - upon failureIOExceptioncom.google.api.services.cloudresourcemanager.model.OrgPolicy getOrgPolicy(String resource, String constraint) throws IOException
If no Policy is set on the resource, a Policy is returned with default values including POLICY_TYPE_NOT_SET for the policy_type oneof. The etag value can be used with projects.setOrgPolicy() to create or update a Policy during read-modify-write.
ResourceManagerException - upon failureIOExceptionResourceManagerRpc.ListResult<com.google.api.services.cloudresourcemanager.model.Constraint> listAvailableOrgPolicyConstraints(String resource, Map<ResourceManagerRpc.Option,?> options) throws IOException
ResourceManagerException - upon failureIOExceptionResourceManagerRpc.ListResult<com.google.api.services.cloudresourcemanager.model.OrgPolicy> listOrgPolicies(String resource, Map<ResourceManagerRpc.Option,?> options) throws IOException
ResourceManagerException - upon failureIOExceptioncom.google.api.services.cloudresourcemanager.model.OrgPolicy replaceOrgPolicy(String resource, com.google.api.services.cloudresourcemanager.model.OrgPolicy orgPolicy) throws IOException
Not supplying an etag on the request Policy results in an unconditional write of the Policy.
ResourceManagerException - upon failureIOExceptionCopyright © 2025 Google LLC. All rights reserved.