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 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.
-
-
-
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:ResourceManagerRpc
Creates a new project.- Specified by:
create
in interfaceResourceManagerRpc
-
delete
public void delete(String projectId)
Deprecated.Description copied from interface:ResourceManagerRpc
Marks the project identified by the specified project ID for deletion.- Specified by:
delete
in interfaceResourceManagerRpc
-
get
public com.google.api.services.cloudresourcemanager.model.Project get(String projectId, Map<ResourceManagerRpc.Option,?> options)
Deprecated.Description copied from interface:ResourceManagerRpc
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.- Specified by:
get
in 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:ResourceManagerRpc
Lists the projects visible to the current user.- Specified by:
list
in interfaceResourceManagerRpc
-
undelete
public void undelete(String projectId)
Deprecated.Description copied from interface:ResourceManagerRpc
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.- Specified by:
undelete
in interfaceResourceManagerRpc
-
replace
public com.google.api.services.cloudresourcemanager.model.Project replace(com.google.api.services.cloudresourcemanager.model.Project project)
Deprecated.Description copied from interface:ResourceManagerRpc
Replaces the attributes of the project. The caller must have modify permissions for this project.- Specified by:
replace
in interfaceResourceManagerRpc
-
getPolicy
public com.google.api.services.cloudresourcemanager.model.Policy getPolicy(String projectId) throws ResourceManagerException
Deprecated.Description copied from interface:ResourceManagerRpc
Returns the IAM policy associated with a project.- Specified by:
getPolicy
in 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:ResourceManagerRpc
Replaces the IAM policy associated with the given project.- Specified by:
replacePolicy
in interfaceResourceManagerRpc
- Throws:
ResourceManagerException
- upon failure
-
testPermissions
public List<Boolean> testPermissions(String projectId, List<String> permissions) throws ResourceManagerException
Deprecated.Description copied from interface:ResourceManagerRpc
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.- Specified by:
testPermissions
in interfaceResourceManagerRpc
- Throws:
ResourceManagerException
- upon failure
-
testOrgPermissions
public Map<String,Boolean> testOrgPermissions(String resource, List<String> permissions) throws IOException
Deprecated.Description copied from interface:ResourceManagerRpc
Tests whether the caller has the given permissions on the specified Organization. Returns the permissions and their results.- Specified by:
testOrgPermissions
in interfaceResourceManagerRpc
- Throws:
IOException
-
clearOrgPolicy
public void clearOrgPolicy(String resource, com.google.api.services.cloudresourcemanager.model.OrgPolicy orgPolicy) throws IOException
Deprecated.Description copied from interface:ResourceManagerRpc
Clears the Policy from a resource.- Specified by:
clearOrgPolicy
in interfaceResourceManagerRpc
- Throws:
IOException
-
getEffectiveOrgPolicy
public com.google.api.services.cloudresourcemanager.model.OrgPolicy getEffectiveOrgPolicy(String resource, String constraint) throws IOException
Deprecated.Description copied from interface:ResourceManagerRpc
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.
- Specified by:
getEffectiveOrgPolicy
in interfaceResourceManagerRpc
- Throws:
IOException
-
getOrgPolicy
public com.google.api.services.cloudresourcemanager.model.OrgPolicy getOrgPolicy(String resource, String constraint) throws IOException
Deprecated.Description copied from interface:ResourceManagerRpc
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.
- Specified by:
getOrgPolicy
in 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:ResourceManagerRpc
Lists all the Constraints that can be applied on the specified resource.- Specified by:
listAvailableOrgPolicyConstraints
in 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:ResourceManagerRpc
Lists all the Policies set for a particular resource.- Specified by:
listOrgPolicies
in 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:ResourceManagerRpc
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.
- Specified by:
replaceOrgPolicy
in interfaceResourceManagerRpc
- Throws:
IOException
-
-