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(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 |
ResourcePoliciesResourcePoliciesClient 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 |
ResourcePoliciesResourcePoliciesClient |
InsertOperationsClient
public override OperationsClient InsertOperationsClient { get; }
The long-running operations client for Insert
.
Property Value | |
---|---|
Type | Description |
OperationsClient |
PatchOperationsClient
public override OperationsClient PatchOperationsClient { get; }
The long-running operations client for Patch
.
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. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
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 |
PagedEnumerableResourcePolicyAggregatedListKeyValuePairstringResourcePoliciesScopedList |
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. To prevent failure, Google recommends that you set the returnPartialSuccess
parameter to true
.
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 |
PagedAsyncEnumerableResourcePolicyAggregatedListKeyValuePairstringResourcePoliciesScopedList |
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 |
OperationOperationOperation |
The RPC response. |
DeleteAsync(DeleteResourcePolicyRequest, CallSettings)
public override 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 |
TaskOperationOperationOperation |
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 |
TaskResourcePolicy |
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 |
TaskPolicy |
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 |
OperationOperationOperation |
The RPC response. |
InsertAsync(InsertResourcePolicyRequest, CallSettings)
public override 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 |
TaskOperationOperationOperation |
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 |
PagedEnumerableResourcePolicyListResourcePolicy |
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 |
PagedAsyncEnumerableResourcePolicyListResourcePolicy |
A pageable asynchronous sequence of ResourcePolicy resources. |
Patch(PatchResourcePolicyRequest, CallSettings)
public override Operation<Operation, Operation> Patch(PatchResourcePolicyRequest request, CallSettings callSettings = null)
Modify the specified resource policy.
Parameters | |
---|---|
Name | Description |
request |
PatchResourcePolicyRequest 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 |
OperationOperationOperation |
The RPC response. |
PatchAsync(PatchResourcePolicyRequest, CallSettings)
public override Task<Operation<Operation, Operation>> PatchAsync(PatchResourcePolicyRequest request, CallSettings callSettings = null)
Modify the specified resource policy.
Parameters | |
---|---|
Name | Description |
request |
PatchResourcePolicyRequest 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 |
TaskOperationOperationOperation |
A Task containing the RPC response. |
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 |
TaskPolicy |
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 |
TaskTestPermissionsResponse |
A Task containing the RPC response. |