Class ResourcePoliciesResource
The "resourcePolicies" collection of methods.
Inherited Members
Namespace: Google.Apis.Compute.alpha
Assembly: Google.Apis.Compute.alpha.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. To prevent failure, Google recommends that you set the
returnPartialSuccess
parameter to true
.
Declaration
public virtual ResourcePoliciesResource.AggregatedListRequest AggregatedList(string project)
Parameters
Type | Name | Description |
---|---|---|
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 |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
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 |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
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 |
---|---|---|
string | project | Project ID for this request. |
string | region | The name of the region for this request. |
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. |
string | project | Project ID for this request. |
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 |
---|---|---|
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
Returns
Type | Description |
---|---|
ResourcePoliciesResource.ListRequest |
Patch(ResourcePolicy, string, string, string)
Modify the specified resource policy.
Declaration
public virtual ResourcePoliciesResource.PatchRequest Patch(ResourcePolicy body, string project, string region, string resourcePolicy)
Parameters
Type | Name | Description |
---|---|---|
ResourcePolicy | body | The body of the request. |
string | project | Project ID for this request. |
string | region | Name of the region for this request. |
string | resourcePolicy | Id of the resource policy to patch. |
Returns
Type | Description |
---|---|
ResourcePoliciesResource.PatchRequest |
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. |
string | project | Project ID for this request. |
string | region | The name of the region for this request. |
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. |
string | project | Project ID for this request. |
string | region | The name of the region for this request. |
string | resource | Name or id of the resource for this request. |
Returns
Type | Description |
---|---|
ResourcePoliciesResource.TestIamPermissionsRequest |