Compute Engine v1 API - Class ResourcePoliciesClientImpl (2.15.0)

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.

Inheritance

object > ResourcePoliciesClient > ResourcePoliciesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

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
NameDescription
grpcClientResourcePoliciesResourcePoliciesClient

The underlying gRPC client.

settingsResourcePoliciesSettings

The base ResourcePoliciesSettings used within this client.

loggerILogger

Optional ILogger to use within this client.

Properties

DeleteOperationsClient

public override OperationsClient DeleteOperationsClient { get; }

The long-running operations client for Delete.

Property Value
TypeDescription
OperationsClient
Overrides

GrpcClient

public override ResourcePolicies.ResourcePoliciesClient GrpcClient { get; }

The underlying gRPC ResourcePolicies client

Property Value
TypeDescription
ResourcePoliciesResourcePoliciesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
TypeDescription
OperationsClient
Overrides

PatchOperationsClient

public override OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
TypeDescription
OperationsClient
Overrides

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
NameDescription
requestAggregatedListResourcePoliciesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableResourcePolicyAggregatedListKeyValuePairstringResourcePoliciesScopedList

A pageable sequence of KeyValuePair<TKey, TValue> resources.

Overrides

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
NameDescription
requestAggregatedListResourcePoliciesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableResourcePolicyAggregatedListKeyValuePairstringResourcePoliciesScopedList

A pageable asynchronous sequence of KeyValuePair<TKey, TValue> resources.

Overrides

Delete(DeleteResourcePolicyRequest, CallSettings)

public override Operation<Operation, Operation> Delete(DeleteResourcePolicyRequest request, CallSettings callSettings = null)

Deletes the specified resource policy.

Parameters
NameDescription
requestDeleteResourcePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

DeleteAsync(DeleteResourcePolicyRequest, CallSettings)

public override Task<Operation<Operation, Operation>> DeleteAsync(DeleteResourcePolicyRequest request, CallSettings callSettings = null)

Deletes the specified resource policy.

Parameters
NameDescription
requestDeleteResourcePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

Get(GetResourcePolicyRequest, CallSettings)

public override ResourcePolicy Get(GetResourcePolicyRequest request, CallSettings callSettings = null)

Retrieves all information of the specified resource policy.

Parameters
NameDescription
requestGetResourcePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
ResourcePolicy

The RPC response.

Overrides

GetAsync(GetResourcePolicyRequest, CallSettings)

public override Task<ResourcePolicy> GetAsync(GetResourcePolicyRequest request, CallSettings callSettings = null)

Retrieves all information of the specified resource policy.

Parameters
NameDescription
requestGetResourcePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskResourcePolicy

A Task containing the RPC response.

Overrides

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
NameDescription
requestGetIamPolicyResourcePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Overrides

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
NameDescription
requestGetIamPolicyResourcePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Overrides

Insert(InsertResourcePolicyRequest, CallSettings)

public override Operation<Operation, Operation> Insert(InsertResourcePolicyRequest request, CallSettings callSettings = null)

Creates a new resource policy.

Parameters
NameDescription
requestInsertResourcePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

InsertAsync(InsertResourcePolicyRequest, CallSettings)

public override Task<Operation<Operation, Operation>> InsertAsync(InsertResourcePolicyRequest request, CallSettings callSettings = null)

Creates a new resource policy.

Parameters
NameDescription
requestInsertResourcePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

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
NameDescription
requestListResourcePoliciesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedEnumerableResourcePolicyListResourcePolicy

A pageable sequence of ResourcePolicy resources.

Overrides

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
NameDescription
requestListResourcePoliciesRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
PagedAsyncEnumerableResourcePolicyListResourcePolicy

A pageable asynchronous sequence of ResourcePolicy resources.

Overrides

Patch(PatchResourcePolicyRequest, CallSettings)

public override Operation<Operation, Operation> Patch(PatchResourcePolicyRequest request, CallSettings callSettings = null)

Modify the specified resource policy.

Parameters
NameDescription
requestPatchResourcePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
OperationOperationOperation

The RPC response.

Overrides

PatchAsync(PatchResourcePolicyRequest, CallSettings)

public override Task<Operation<Operation, Operation>> PatchAsync(PatchResourcePolicyRequest request, CallSettings callSettings = null)

Modify the specified resource policy.

Parameters
NameDescription
requestPatchResourcePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskOperationOperationOperation

A Task containing the RPC response.

Overrides

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
NameDescription
requestSetIamPolicyResourcePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
Policy

The RPC response.

Overrides

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
NameDescription
requestSetIamPolicyResourcePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskPolicy

A Task containing the RPC response.

Overrides

TestIamPermissions(TestIamPermissionsResourcePolicyRequest, CallSettings)

public override TestPermissionsResponse TestIamPermissions(TestIamPermissionsResourcePolicyRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsResourcePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TestPermissionsResponse

The RPC response.

Overrides

TestIamPermissionsAsync(TestIamPermissionsResourcePolicyRequest, CallSettings)

public override Task<TestPermissionsResponse> TestIamPermissionsAsync(TestIamPermissionsResourcePolicyRequest request, CallSettings callSettings = null)

Returns permissions that a caller has on the specified resource.

Parameters
NameDescription
requestTestIamPermissionsResourcePolicyRequest

The request object containing all of the parameters for the API call.

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
TaskTestPermissionsResponse

A Task containing the RPC response.

Overrides