Send feedback
Class HttpResourceManagerRpc (1.6.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.6.0 keyboard_arrow_down
public class HttpResourceManagerRpc implements ResourceManagerRpc
Deprecated. v3 GAPIC client of ResourceManager is now available
Constructors
HttpResourceManagerRpc(ResourceManagerOptions options) (deprecated)
public HttpResourceManagerRpc ( ResourceManagerOptions options )
Parameter
Methods
clearOrgPolicy(String resource, OrgPolicy orgPolicy) (deprecated)
public void clearOrgPolicy ( String resource , OrgPolicy orgPolicy )
Clears the Policy from a resource.
Parameters
Name Description resource String
orgPolicy com.google.api.services.cloudresourcemanager.model.OrgPolicy
Exceptions
create(Project project) (deprecated)
public Project create ( Project project )
Parameter
Name Description project com.google.api.services.cloudresourcemanager.model.Project
Returns
Type Description com.google.api.services.cloudresourcemanager.model.Project
delete(String projectId) (deprecated)
public void delete ( String projectId )
Marks the project identified by the specified project ID for deletion.
Parameter
Name Description projectId String
get(String projectId, Map<ResourceManagerRpc.Option,?> options) (deprecated)
public Project get ( String projectId , Map<ResourceManagerRpc . Option , ? > options )
Retrieves the project identified by the specified project ID. Returns null
if the
project is not found or if the user doesn't have read permissions for the project.
Parameters
Returns
Type Description com.google.api.services.cloudresourcemanager.model.Project
getEffectiveOrgPolicy(String resource, String constraint) (deprecated)
public OrgPolicy getEffectiveOrgPolicy ( String resource , String constraint )
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.
Parameters
Returns
Type Description com.google.api.services.cloudresourcemanager.model.OrgPolicy
Exceptions
getOrgPolicy(String resource, String constraint) (deprecated)
public OrgPolicy getOrgPolicy ( String resource , String constraint )
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.
Parameters
Returns
Type Description com.google.api.services.cloudresourcemanager.model.OrgPolicy
Exceptions
getPolicy(String projectId) (deprecated)
public Policy getPolicy ( String projectId )
Returns the IAM policy associated with a project.
Parameter
Name Description projectId String
Returns
Type Description com.google.api.services.cloudresourcemanager.model.Policy
Exceptions
list(Map<ResourceManagerRpc.Option,?> options) (deprecated)
public Tuple<String , Iterable<Project> > list ( Map<ResourceManagerRpc . Option , ? > options )
Lists the projects visible to the current user.
Parameter
Returns
Type Description com.google.cloud.Tuple <String ,Iterable <com.google.api.services.cloudresourcemanager.model.Project >>
listAvailableOrgPolicyConstraints(String resource, Map<ResourceManagerRpc.Option,?> options) (deprecated)
public ResourceManagerRpc . ListResult<Constraint> listAvailableOrgPolicyConstraints ( String resource , Map<ResourceManagerRpc . Option , ? > options )
Lists all the Constraints that can be applied on the specified resource.
Parameters
Returns
Type Description ListResult <com.google.api.services.cloudresourcemanager.model.Constraint >
Exceptions
listOrgPolicies(String resource, Map<ResourceManagerRpc.Option,?> options) (deprecated)
public ResourceManagerRpc . ListResult<OrgPolicy> listOrgPolicies ( String resource , Map<ResourceManagerRpc . Option , ? > options )
Lists all the Policies set for a particular resource.
Parameters
Returns
Type Description ListResult <com.google.api.services.cloudresourcemanager.model.OrgPolicy >
Exceptions
replace(Project project) (deprecated)
public Project replace ( Project project )
Replaces the attributes of the project. The caller must have modify permissions for this
project.
Parameter
Name Description project com.google.api.services.cloudresourcemanager.model.Project
Returns
Type Description com.google.api.services.cloudresourcemanager.model.Project
replaceOrgPolicy(String resource, OrgPolicy orgPolicy) (deprecated)
public OrgPolicy replaceOrgPolicy ( String resource , OrgPolicy orgPolicy )
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.
Parameters
Name Description resource String
orgPolicy com.google.api.services.cloudresourcemanager.model.OrgPolicy
Returns
Type Description com.google.api.services.cloudresourcemanager.model.OrgPolicy
Exceptions
replacePolicy(String projectId, Policy newPolicy) (deprecated)
public Policy replacePolicy ( String projectId , Policy newPolicy )
Replaces the IAM policy associated with the given project.
Parameters
Name Description projectId String
newPolicy com.google.api.services.cloudresourcemanager.model.Policy
Returns
Type Description com.google.api.services.cloudresourcemanager.model.Policy
Exceptions
testOrgPermissions(String resource, List<String> permissions) (deprecated)
public Map<String , Boolean > testOrgPermissions ( String resource , List<String> permissions )
Tests whether the caller has the given permissions on the specified Organization. Returns the
permissions and their results.
Parameters
Returns
Exceptions
testPermissions(String projectId, List<String> permissions) (deprecated)
public List<Boolean> testPermissions ( String projectId , List<String> permissions )
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.
Parameters
Returns
Exceptions
undelete(String projectId) (deprecated)
public void undelete ( String projectId )
Restores the project identified by the specified project ID. Undelete will only succeed if the
project has a lifecycle state of DELETE_REQUESTED
state. The caller must have modify
permissions for this project.
Parameter
Name Description projectId String
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-12-05 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-12-05 UTC."],[],[]]