public sealed class ResourcePoliciesClientImpl : ResourcePoliciesClient
Reference documentation and code samples for the Compute Engine v1 API class ResourcePoliciesClientImpl.
ResourcePolicies client wrapper implementation, for convenient use.
Namespace
Google.Cloud.Compute.V1Assembly
Google.Cloud.Compute.V1.dll
Remarks
The ResourcePolicies API.
Constructors
ResourcePoliciesClientImpl(ResourcePolicies.ResourcePoliciesClient, ResourcePoliciesSettings, ILogger)
public ResourcePoliciesClientImpl(ResourcePolicies.ResourcePoliciesClient grpcClient, ResourcePoliciesSettings settings, ILogger logger)
Constructs a client wrapper for the ResourcePolicies service, with the specified gRPC client and settings.
Parameters | |
---|---|
Name | Description |
grpcClient | ResourcePolicies.ResourcePoliciesClient The underlying gRPC client. |
settings | ResourcePoliciesSettings The base ResourcePoliciesSettings used within this client. |
logger | ILogger Optional ILogger to use within this client. |
Properties
DeleteOperationsClient
public override OperationsClient DeleteOperationsClient { get; }
The long-running operations client for Delete
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
GrpcClient
public override ResourcePolicies.ResourcePoliciesClient GrpcClient { get; }
The underlying gRPC ResourcePolicies client
Property Value | |
---|---|
Type | Description |
ResourcePolicies.ResourcePoliciesClient |
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
Methods
AggregatedList(AggregatedListResourcePoliciesRequest, CallSettings)
public override PagedEnumerable<ResourcePolicyAggregatedList, KeyValuePair<string, ResourcePoliciesScopedList>> AggregatedList(AggregatedListResourcePoliciesRequest request, CallSettings callSettings = null)
Retrieves an aggregated list of resource policies.
Parameters | |
---|---|
Name | Description |
request | AggregatedListResourcePoliciesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ResourcePolicyAggregatedList, KeyValuePair<String, ResourcePoliciesScopedList>> | A pageable sequence of KeyValuePair<TKey,TValue> resources. |
AggregatedListAsync(AggregatedListResourcePoliciesRequest, CallSettings)
public override PagedAsyncEnumerable<ResourcePolicyAggregatedList, KeyValuePair<string, ResourcePoliciesScopedList>> AggregatedListAsync(AggregatedListResourcePoliciesRequest request, CallSettings callSettings = null)
Retrieves an aggregated list of resource policies.
Parameters | |
---|---|
Name | Description |
request | AggregatedListResourcePoliciesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ResourcePolicyAggregatedList, KeyValuePair<String, ResourcePoliciesScopedList>> | A pageable asynchronous sequence of KeyValuePair<TKey,TValue> resources. |
Delete(DeleteResourcePolicyRequest, CallSettings)
public override Operation<Operation, Operation> Delete(DeleteResourcePolicyRequest request, CallSettings callSettings = null)
Deletes the specified resource policy.
Parameters | |
---|---|
Name | Description |
request | DeleteResourcePolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
DeleteAsync(DeleteResourcePolicyRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> DeleteAsync(DeleteResourcePolicyRequest request, CallSettings callSettings = null)
Deletes the specified resource policy.
Parameters | |
---|---|
Name | Description |
request | DeleteResourcePolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
Get(GetResourcePolicyRequest, CallSettings)
public override ResourcePolicy Get(GetResourcePolicyRequest request, CallSettings callSettings = null)
Retrieves all information of the specified resource policy.
Parameters | |
---|---|
Name | Description |
request | GetResourcePolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
ResourcePolicy | The RPC response. |
GetAsync(GetResourcePolicyRequest, CallSettings)
public override Task<ResourcePolicy> GetAsync(GetResourcePolicyRequest request, CallSettings callSettings = null)
Retrieves all information of the specified resource policy.
Parameters | |
---|---|
Name | Description |
request | GetResourcePolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<ResourcePolicy> | A Task containing the RPC response. |
GetIamPolicy(GetIamPolicyResourcePolicyRequest, CallSettings)
public override Policy GetIamPolicy(GetIamPolicyResourcePolicyRequest request, CallSettings callSettings = null)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyResourcePolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
GetIamPolicyAsync(GetIamPolicyResourcePolicyRequest, CallSettings)
public override Task<Policy> GetIamPolicyAsync(GetIamPolicyResourcePolicyRequest request, CallSettings callSettings = null)
Gets the access control policy for a resource. May be empty if no such policy or resource exists.
Parameters | |
---|---|
Name | Description |
request | GetIamPolicyResourcePolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
Insert(InsertResourcePolicyRequest, CallSettings)
public override Operation<Operation, Operation> Insert(InsertResourcePolicyRequest request, CallSettings callSettings = null)
Creates a new resource policy.
Parameters | |
---|---|
Name | Description |
request | InsertResourcePolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Operation<Operation, Operation> | The RPC response. |
InsertAsync(InsertResourcePolicyRequest, CallSettings)
public override async Task<Operation<Operation, Operation>> InsertAsync(InsertResourcePolicyRequest request, CallSettings callSettings = null)
Creates a new resource policy.
Parameters | |
---|---|
Name | Description |
request | InsertResourcePolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Operation<Operation, Operation>> | A Task containing the RPC response. |
List(ListResourcePoliciesRequest, CallSettings)
public override PagedEnumerable<ResourcePolicyList, ResourcePolicy> List(ListResourcePoliciesRequest request, CallSettings callSettings = null)
A list all the resource policies that have been configured for the specified project in specified region.
Parameters | |
---|---|
Name | Description |
request | ListResourcePoliciesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedEnumerable<ResourcePolicyList, ResourcePolicy> | A pageable sequence of ResourcePolicy resources. |
ListAsync(ListResourcePoliciesRequest, CallSettings)
public override PagedAsyncEnumerable<ResourcePolicyList, ResourcePolicy> ListAsync(ListResourcePoliciesRequest request, CallSettings callSettings = null)
A list all the resource policies that have been configured for the specified project in specified region.
Parameters | |
---|---|
Name | Description |
request | ListResourcePoliciesRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
PagedAsyncEnumerable<ResourcePolicyList, ResourcePolicy> | A pageable asynchronous sequence of ResourcePolicy resources. |
SetIamPolicy(SetIamPolicyResourcePolicyRequest, CallSettings)
public override Policy SetIamPolicy(SetIamPolicyResourcePolicyRequest request, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyResourcePolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Policy | The RPC response. |
SetIamPolicyAsync(SetIamPolicyResourcePolicyRequest, CallSettings)
public override Task<Policy> SetIamPolicyAsync(SetIamPolicyResourcePolicyRequest request, CallSettings callSettings = null)
Sets the access control policy on the specified resource. Replaces any existing policy.
Parameters | |
---|---|
Name | Description |
request | SetIamPolicyResourcePolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<Policy> | A Task containing the RPC response. |
TestIamPermissions(TestIamPermissionsResourcePolicyRequest, CallSettings)
public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsResourcePolicyRequest request, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsResourcePolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
TestPermissionsResponse | The RPC response. |
TestIamPermissionsAsync(TestIamPermissionsResourcePolicyRequest, CallSettings)
public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsResourcePolicyRequest request, CallSettings callSettings = null)
Returns permissions that a caller has on the specified resource.
Parameters | |
---|---|
Name | Description |
request | TestIamPermissionsResourcePolicyRequest The request object containing all of the parameters for the API call. |
callSettings | CallSettings If not null, applies overrides to this RPC call. |
Returns | |
---|---|
Type | Description |
Task<TestPermissionsResponse> | A Task containing the RPC response. |