Class HttpResourceManagerRpc
- java.lang.Object
-
- com.google.cloud.resourcemanager.spi.v1beta1.HttpResourceManagerRpc
-
- All Implemented Interfaces:
ResourceManagerRpc,com.google.cloud.ServiceRpc
@Deprecated public class HttpResourceManagerRpc extends Object implements ResourceManagerRpc
Deprecated.v3 GAPIC client of ResourceManager is now available
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.google.cloud.resourcemanager.spi.v1beta1.ResourceManagerRpc
ResourceManagerRpc.ListResult<T>, ResourceManagerRpc.Option
-
-
Constructor Summary
Constructors Constructor Description HttpResourceManagerRpc(ResourceManagerOptions options)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidclearOrgPolicy(String resource, com.google.api.services.cloudresourcemanager.model.OrgPolicy orgPolicy)Deprecated.Clears the Policy from a resource.com.google.api.services.cloudresourcemanager.model.Projectcreate(com.google.api.services.cloudresourcemanager.model.Project project)Deprecated.Creates a new project.voiddelete(String projectId)Deprecated.Marks the project identified by the specified project ID for deletion.com.google.api.services.cloudresourcemanager.model.Projectget(String projectId, Map<ResourceManagerRpc.Option,?> options)Deprecated.Retrieves the project identified by the specified project ID.com.google.api.services.cloudresourcemanager.model.OrgPolicygetEffectiveOrgPolicy(String resource, String constraint)Deprecated.Gets the effective Policy on a resource.com.google.api.services.cloudresourcemanager.model.OrgPolicygetOrgPolicy(String resource, String constraint)Deprecated.Gets the Policy on a resource.com.google.api.services.cloudresourcemanager.model.PolicygetPolicy(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.Projectreplace(com.google.api.services.cloudresourcemanager.model.Project project)Deprecated.Replaces the attributes of the project.com.google.api.services.cloudresourcemanager.model.OrgPolicyreplaceOrgPolicy(String resource, com.google.api.services.cloudresourcemanager.model.OrgPolicy orgPolicy)Deprecated.Updates the specified Policy on the resource.com.google.api.services.cloudresourcemanager.model.PolicyreplacePolicy(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.voidundelete(String projectId)Deprecated.Restores the project identified by the specified project ID.
-
-
-
Constructor Detail
-
HttpResourceManagerRpc
public HttpResourceManagerRpc(ResourceManagerOptions options)
Deprecated.
-
-
Method Detail
-
create
public com.google.api.services.cloudresourcemanager.model.Project create(com.google.api.services.cloudresourcemanager.model.Project project)
Deprecated.Description copied from interface:ResourceManagerRpcCreates a new project.- Specified by:
createin interfaceResourceManagerRpc
-
delete
public void delete(String projectId)
Deprecated.Description copied from interface:ResourceManagerRpcMarks the project identified by the specified project ID for deletion.- Specified by:
deletein interfaceResourceManagerRpc
-
get
public com.google.api.services.cloudresourcemanager.model.Project get(String projectId, Map<ResourceManagerRpc.Option,?> options)
Deprecated.Description copied from interface:ResourceManagerRpcRetrieves the project identified by the specified project ID. Returnsnullif the project is not found or if the user doesn't have read permissions for the project.- Specified by:
getin interfaceResourceManagerRpc
-
list
public com.google.cloud.Tuple<String,Iterable<com.google.api.services.cloudresourcemanager.model.Project>> list(Map<ResourceManagerRpc.Option,?> options)
Deprecated.Description copied from interface:ResourceManagerRpcLists the projects visible to the current user.- Specified by:
listin interfaceResourceManagerRpc
-
undelete
public void undelete(String projectId)
Deprecated.Description copied from interface:ResourceManagerRpcRestores the project identified by the specified project ID. Undelete will only succeed if the project has a lifecycle state ofDELETE_REQUESTEDstate. The caller must have modify permissions for this project.- Specified by:
undeletein interfaceResourceManagerRpc
-
replace
public com.google.api.services.cloudresourcemanager.model.Project replace(com.google.api.services.cloudresourcemanager.model.Project project)
Deprecated.Description copied from interface:ResourceManagerRpcReplaces the attributes of the project. The caller must have modify permissions for this project.- Specified by:
replacein interfaceResourceManagerRpc
-
getPolicy
public com.google.api.services.cloudresourcemanager.model.Policy getPolicy(String projectId) throws ResourceManagerException
Deprecated.Description copied from interface:ResourceManagerRpcReturns the IAM policy associated with a project.- Specified by:
getPolicyin interfaceResourceManagerRpc- Throws:
ResourceManagerException- upon failure
-
replacePolicy
public com.google.api.services.cloudresourcemanager.model.Policy replacePolicy(String projectId, com.google.api.services.cloudresourcemanager.model.Policy newPolicy) throws ResourceManagerException
Deprecated.Description copied from interface:ResourceManagerRpcReplaces the IAM policy associated with the given project.- Specified by:
replacePolicyin interfaceResourceManagerRpc- Throws:
ResourceManagerException- upon failure
-
testPermissions
public List<Boolean> testPermissions(String projectId, List<String> permissions) throws ResourceManagerException
Deprecated.Description copied from interface:ResourceManagerRpcTests 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.- Specified by:
testPermissionsin interfaceResourceManagerRpc- Throws:
ResourceManagerException- upon failure
-
testOrgPermissions
public Map<String,Boolean> testOrgPermissions(String resource, List<String> permissions) throws IOException
Deprecated.Description copied from interface:ResourceManagerRpcTests whether the caller has the given permissions on the specified Organization. Returns the permissions and their results.- Specified by:
testOrgPermissionsin interfaceResourceManagerRpc- Throws:
IOException
-
clearOrgPolicy
public void clearOrgPolicy(String resource, com.google.api.services.cloudresourcemanager.model.OrgPolicy orgPolicy) throws IOException
Deprecated.Description copied from interface:ResourceManagerRpcClears the Policy from a resource.- Specified by:
clearOrgPolicyin interfaceResourceManagerRpc- Throws:
IOException
-
getEffectiveOrgPolicy
public com.google.api.services.cloudresourcemanager.model.OrgPolicy getEffectiveOrgPolicy(String resource, String constraint) throws IOException
Deprecated.Description copied from interface:ResourceManagerRpcGets 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.
- Specified by:
getEffectiveOrgPolicyin interfaceResourceManagerRpc- Throws:
IOException
-
getOrgPolicy
public com.google.api.services.cloudresourcemanager.model.OrgPolicy getOrgPolicy(String resource, String constraint) throws IOException
Deprecated.Description copied from interface:ResourceManagerRpcGets 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.
- Specified by:
getOrgPolicyin interfaceResourceManagerRpc- Throws:
IOException
-
listAvailableOrgPolicyConstraints
public ResourceManagerRpc.ListResult<com.google.api.services.cloudresourcemanager.model.Constraint> listAvailableOrgPolicyConstraints(String resource, Map<ResourceManagerRpc.Option,?> options) throws IOException
Deprecated.Description copied from interface:ResourceManagerRpcLists all the Constraints that can be applied on the specified resource.- Specified by:
listAvailableOrgPolicyConstraintsin interfaceResourceManagerRpc- Throws:
IOException
-
listOrgPolicies
public ResourceManagerRpc.ListResult<com.google.api.services.cloudresourcemanager.model.OrgPolicy> listOrgPolicies(String resource, Map<ResourceManagerRpc.Option,?> options) throws IOException
Deprecated.Description copied from interface:ResourceManagerRpcLists all the Policies set for a particular resource.- Specified by:
listOrgPoliciesin interfaceResourceManagerRpc- Throws:
IOException
-
replaceOrgPolicy
public com.google.api.services.cloudresourcemanager.model.OrgPolicy replaceOrgPolicy(String resource, com.google.api.services.cloudresourcemanager.model.OrgPolicy orgPolicy) throws IOException
Deprecated.Description copied from interface:ResourceManagerRpcUpdates 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.
- Specified by:
replaceOrgPolicyin interfaceResourceManagerRpc- Throws:
IOException
-
-