Interface ResourceManagerRpc
-
- All Superinterfaces:
com.google.cloud.ServiceRpc
- All Known Implementing Classes:
HttpResourceManagerRpc
@Deprecated public interface ResourceManagerRpc extends com.google.cloud.ServiceRpc
Deprecated.v3 GAPIC client of ResourceManager is now available
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
ResourceManagerRpc.ListResult<T>
Deprecated.static class
ResourceManagerRpc.Option
Deprecated.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method 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.
-
-
-
Method Detail
-
create
com.google.api.services.cloudresourcemanager.model.Project create(com.google.api.services.cloudresourcemanager.model.Project project)
Deprecated.Creates a new project.- Throws:
ResourceManagerException
- upon failure
-
delete
void delete(String projectId)
Deprecated.Marks the project identified by the specified project ID for deletion.- Throws:
ResourceManagerException
- upon failure
-
get
com.google.api.services.cloudresourcemanager.model.Project get(String projectId, Map<ResourceManagerRpc.Option,?> options)
Deprecated.Retrieves the project identified by the specified project ID. Returnsnull
if the project is not found or if the user doesn't have read permissions for the project.- Throws:
ResourceManagerException
- upon failure
-
list
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.- Throws:
ResourceManagerException
- upon failure
-
undelete
void undelete(String projectId)
Deprecated.Restores the project identified by the specified project ID. Undelete will only succeed if the project has a lifecycle state ofDELETE_REQUESTED
state. The caller must have modify permissions for this project.- Throws:
ResourceManagerException
- upon failure
-
replace
com.google.api.services.cloudresourcemanager.model.Project replace(com.google.api.services.cloudresourcemanager.model.Project project)
Deprecated.Replaces the attributes of the project. The caller must have modify permissions for this project.- Throws:
ResourceManagerException
- upon failure
-
getPolicy
com.google.api.services.cloudresourcemanager.model.Policy getPolicy(String projectId)
Deprecated.Returns the IAM policy associated with a project.- Throws:
ResourceManagerException
- upon failure
-
replacePolicy
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.- Throws:
ResourceManagerException
- upon failure
-
testPermissions
List<Boolean> testPermissions(String projectId, List<String> permissions)
Deprecated.Tests whether the caller has the given permissions. Returns a list of booleans corresponding to whether or not the user has the permission in the same position of input list.- Throws:
ResourceManagerException
- upon failure
-
testOrgPermissions
Map<String,Boolean> testOrgPermissions(String resource, List<String> permissions) throws IOException
Deprecated.Tests whether the caller has the given permissions on the specified Organization. Returns the permissions and their results.- Throws:
ResourceManagerException
- upon failureIOException
-
clearOrgPolicy
void clearOrgPolicy(String resource, com.google.api.services.cloudresourcemanager.model.OrgPolicy orgPolicy) throws IOException
Deprecated.Clears the Policy from a resource.- Throws:
IOException
-
getEffectiveOrgPolicy
com.google.api.services.cloudresourcemanager.model.OrgPolicy getEffectiveOrgPolicy(String resource, String constraint) throws IOException
Deprecated.Gets the effective Policy on a resource.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.
- Throws:
ResourceManagerException
- upon failureIOException
-
getOrgPolicy
com.google.api.services.cloudresourcemanager.model.OrgPolicy getOrgPolicy(String resource, String constraint) throws IOException
Deprecated.Gets the Policy on a resource.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.
- Throws:
ResourceManagerException
- upon failureIOException
-
listAvailableOrgPolicyConstraints
ResourceManagerRpc.ListResult<com.google.api.services.cloudresourcemanager.model.Constraint> listAvailableOrgPolicyConstraints(String resource, Map<ResourceManagerRpc.Option,?> options) throws IOException
Deprecated.Lists all the Constraints that can be applied on the specified resource.- Throws:
ResourceManagerException
- upon failureIOException
-
listOrgPolicies
ResourceManagerRpc.ListResult<com.google.api.services.cloudresourcemanager.model.OrgPolicy> listOrgPolicies(String resource, Map<ResourceManagerRpc.Option,?> options) throws IOException
Deprecated.Lists all the Policies set for a particular resource.- Throws:
ResourceManagerException
- upon failureIOException
-
replaceOrgPolicy
com.google.api.services.cloudresourcemanager.model.OrgPolicy replaceOrgPolicy(String resource, com.google.api.services.cloudresourcemanager.model.OrgPolicy orgPolicy) throws IOException
Deprecated.Updates the specified Policy on the resource. Creates a new Policy for that Constraint on the resource if one does not exist.Not supplying an etag on the request Policy results in an unconditional write of the Policy.
- Throws:
ResourceManagerException
- upon failureIOException
-
-