Class ResourcePoliciesResource
The "resourcePolicies" collection of methods.
Inheritance
Inherited Members
Namespace: Google.Apis.Compute.v1
Assembly: Google.Apis.Compute.v1.dll
Syntax
public class ResourcePoliciesResource
Constructors
ResourcePoliciesResource(IClientService)
Constructs a new resource.
Declaration
public ResourcePoliciesResource(IClientService service)
Parameters
| Type | Name | Description |
|---|---|---|
| IClientService | service |
Methods
AggregatedList(String)
Retrieves an aggregated list of resource policies.
Declaration
public virtual ResourcePoliciesResource.AggregatedListRequest AggregatedList(string project)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
Returns
| Type | Description |
|---|---|
| ResourcePoliciesResource.AggregatedListRequest |
Delete(String, String, String)
Deletes the specified resource policy.
Declaration
public virtual ResourcePoliciesResource.DeleteRequest Delete(string project, string region, string resourcePolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | resourcePolicy | Name of the resource policy to delete. |
Returns
| Type | Description |
|---|---|
| ResourcePoliciesResource.DeleteRequest |
Get(String, String, String)
Retrieves all information of the specified resource policy.
Declaration
public virtual ResourcePoliciesResource.GetRequest Get(string project, string region, string resourcePolicy)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
| System.String | resourcePolicy | Name of the resource policy to retrieve. |
Returns
| Type | Description |
|---|---|
| ResourcePoliciesResource.GetRequest |
GetIamPolicy(String, String, String)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Declaration
public virtual ResourcePoliciesResource.GetIamPolicyRequest GetIamPolicy(string project, string region, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| ResourcePoliciesResource.GetIamPolicyRequest |
Insert(ResourcePolicy, String, String)
Creates a new resource policy.
Declaration
public virtual ResourcePoliciesResource.InsertRequest Insert(ResourcePolicy body, string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| ResourcePolicy | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
Returns
| Type | Description |
|---|---|
| ResourcePoliciesResource.InsertRequest |
List(String, String)
A list all the resource policies that have been configured for the specified project in specified region.
Declaration
public virtual ResourcePoliciesResource.ListRequest List(string project, string region)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | project | Project ID for this request. |
| System.String | region | Name of the region for this request. |
Returns
| Type | Description |
|---|---|
| ResourcePoliciesResource.ListRequest |
SetIamPolicy(RegionSetPolicyRequest, String, String, String)
Sets the access control policy on the specified resource. Replaces any existing policy.
Declaration
public virtual ResourcePoliciesResource.SetIamPolicyRequest SetIamPolicy(RegionSetPolicyRequest body, string project, string region, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| RegionSetPolicyRequest | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| ResourcePoliciesResource.SetIamPolicyRequest |
TestIamPermissions(TestPermissionsRequest, String, String, String)
Returns permissions that a caller has on the specified resource.
Declaration
public virtual ResourcePoliciesResource.TestIamPermissionsRequest TestIamPermissions(TestPermissionsRequest body, string project, string region, string resource)
Parameters
| Type | Name | Description |
|---|---|---|
| TestPermissionsRequest | body | The body of the request. |
| System.String | project | Project ID for this request. |
| System.String | region | The name of the region for this request. |
| System.String | resource | Name or id of the resource for this request. |
Returns
| Type | Description |
|---|---|
| ResourcePoliciesResource.TestIamPermissionsRequest |