@Deprecated public class HttpResourceManagerRpc extends Object implements ResourceManagerRpc
ResourceManagerRpc.ListResult<T>, ResourceManagerRpc.Option
Constructor and Description |
---|
HttpResourceManagerRpc(ResourceManagerOptions options)
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.
|
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 failurepublic Map<String,Boolean> testOrgPermissions(String resource, List<String> permissions) throws IOException
ResourceManagerRpc
testOrgPermissions
in interface ResourceManagerRpc
IOException
public void clearOrgPolicy(String resource, com.google.api.services.cloudresourcemanager.model.OrgPolicy orgPolicy) throws IOException
ResourceManagerRpc
clearOrgPolicy
in interface ResourceManagerRpc
IOException
public com.google.api.services.cloudresourcemanager.model.OrgPolicy getEffectiveOrgPolicy(String resource, String constraint) throws IOException
ResourceManagerRpc
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.
getEffectiveOrgPolicy
in interface ResourceManagerRpc
IOException
public com.google.api.services.cloudresourcemanager.model.OrgPolicy getOrgPolicy(String resource, String constraint) throws IOException
ResourceManagerRpc
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.
getOrgPolicy
in interface ResourceManagerRpc
IOException
public ResourceManagerRpc.ListResult<com.google.api.services.cloudresourcemanager.model.Constraint> listAvailableOrgPolicyConstraints(String resource, Map<ResourceManagerRpc.Option,?> options) throws IOException
ResourceManagerRpc
listAvailableOrgPolicyConstraints
in interface ResourceManagerRpc
IOException
public ResourceManagerRpc.ListResult<com.google.api.services.cloudresourcemanager.model.OrgPolicy> listOrgPolicies(String resource, Map<ResourceManagerRpc.Option,?> options) throws IOException
ResourceManagerRpc
listOrgPolicies
in interface ResourceManagerRpc
IOException
public com.google.api.services.cloudresourcemanager.model.OrgPolicy replaceOrgPolicy(String resource, com.google.api.services.cloudresourcemanager.model.OrgPolicy orgPolicy) throws IOException
ResourceManagerRpc
Not supplying an etag on the request Policy results in an unconditional write of the Policy.
replaceOrgPolicy
in interface ResourceManagerRpc
IOException
Copyright © 2022 Google LLC. All rights reserved.