
target.apidocs.com.google.api.services.compute.Compute.ResourcePolicies.html Maven / Gradle / Ivy
Compute.ResourcePolicies (Compute Engine API beta-rev20220312-1.32.1)
com.google.api.services.compute
Class Compute.ResourcePolicies
- java.lang.Object
-
- com.google.api.services.compute.Compute.ResourcePolicies
-
-
Nested Class Summary
Nested Classes
Modifier and Type
Class and Description
class
Compute.ResourcePolicies.AggregatedList
class
Compute.ResourcePolicies.Delete
class
Compute.ResourcePolicies.Get
class
Compute.ResourcePolicies.GetIamPolicy
class
Compute.ResourcePolicies.Insert
class
Compute.ResourcePolicies.List
class
Compute.ResourcePolicies.SetIamPolicy
class
Compute.ResourcePolicies.TestIamPermissions
-
Constructor Summary
Constructors
Constructor and Description
ResourcePolicies()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
Compute.ResourcePolicies.AggregatedList
aggregatedList(String project)
Retrieves an aggregated list of resource policies.
Compute.ResourcePolicies.Delete
delete(String project,
String region,
String resourcePolicy)
Deletes the specified resource policy.
Compute.ResourcePolicies.Get
get(String project,
String region,
String resourcePolicy)
Retrieves all information of the specified resource policy.
Compute.ResourcePolicies.GetIamPolicy
getIamPolicy(String project,
String region,
String resource)
Gets the access control policy for a resource.
Compute.ResourcePolicies.Insert
insert(String project,
String region,
ResourcePolicy content)
Creates a new resource policy.
Compute.ResourcePolicies.List
list(String project,
String region)
A list all the resource policies that have been configured for the specified project in specified
region.
Compute.ResourcePolicies.SetIamPolicy
setIamPolicy(String project,
String region,
String resource,
RegionSetPolicyRequest content)
Sets the access control policy on the specified resource.
Compute.ResourcePolicies.TestIamPermissions
testIamPermissions(String project,
String region,
String resource,
TestPermissionsRequest content)
Returns permissions that a caller has on the specified resource.
-
-
Method Detail
-
aggregatedList
public Compute.ResourcePolicies.AggregatedList aggregatedList(String project)
throws IOException
Retrieves an aggregated list of resource policies.
Create a request for the method "resourcePolicies.aggregatedList".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
- Returns:
- the request
- Throws:
IOException
-
delete
public Compute.ResourcePolicies.Delete delete(String project,
String region,
String resourcePolicy)
throws IOException
Deletes the specified resource policy.
Create a request for the method "resourcePolicies.delete".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- Name of the region for this request.
resourcePolicy
- Name of the resource policy to delete.
- Returns:
- the request
- Throws:
IOException
-
get
public Compute.ResourcePolicies.Get get(String project,
String region,
String resourcePolicy)
throws IOException
Retrieves all information of the specified resource policy.
Create a request for the method "resourcePolicies.get".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- Name of the region for this request.
resourcePolicy
- Name of the resource policy to retrieve.
- Returns:
- the request
- Throws:
IOException
-
getIamPolicy
public Compute.ResourcePolicies.GetIamPolicy getIamPolicy(String project,
String region,
String resource)
throws IOException
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Create a request for the method "resourcePolicies.getIamPolicy".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- The name of the region for this request.
resource
- Name or id of the resource for this request.
- Returns:
- the request
- Throws:
IOException
-
insert
public Compute.ResourcePolicies.Insert insert(String project,
String region,
ResourcePolicy content)
throws IOException
Creates a new resource policy.
Create a request for the method "resourcePolicies.insert".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- Name of the region for this request.
content
- the ResourcePolicy
- Returns:
- the request
- Throws:
IOException
-
list
public Compute.ResourcePolicies.List list(String project,
String region)
throws IOException
A list all the resource policies that have been configured for the specified project in specified
region.
Create a request for the method "resourcePolicies.list".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- Name of the region for this request.
- Returns:
- the request
- Throws:
IOException
-
setIamPolicy
public Compute.ResourcePolicies.SetIamPolicy setIamPolicy(String project,
String region,
String resource,
RegionSetPolicyRequest content)
throws IOException
Sets the access control policy on the specified resource. Replaces any existing policy.
Create a request for the method "resourcePolicies.setIamPolicy".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- The name of the region for this request.
resource
- Name or id of the resource for this request.
content
- the RegionSetPolicyRequest
- Returns:
- the request
- Throws:
IOException
-
testIamPermissions
public Compute.ResourcePolicies.TestIamPermissions testIamPermissions(String project,
String region,
String resource,
TestPermissionsRequest content)
throws IOException
Returns permissions that a caller has on the specified resource.
Create a request for the method "resourcePolicies.testIamPermissions".
This request holds the parameters needed by the compute server. After setting any optional
parameters, call the AbstractGoogleClientRequest.execute()
method to invoke the remote operation.
- Parameters:
project
- Project ID for this request.
region
- The name of the region for this request.
resource
- Name or id of the resource for this request.
content
- the TestPermissionsRequest
- Returns:
- the request
- Throws:
IOException
Copyright © 2011–2022 Google. All rights reserved.
© 2015 - 2025 Weber Informatics LLC | Privacy Policy