Compute Engine v1 API - Class ResourcePoliciesClientImpl (2.2.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(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
NameDescription
grpcClientResourcePolicies.ResourcePoliciesClient

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
ResourcePolicies.ResourcePoliciesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

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.

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
PagedEnumerable<ResourcePolicyAggregatedList, KeyValuePair<String, ResourcePoliciesScopedList>>

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.

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
PagedAsyncEnumerable<ResourcePolicyAggregatedList, KeyValuePair<String, ResourcePoliciesScopedList>>

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
Operation<Operation, Operation>

The RPC response.

Overrides

DeleteAsync(DeleteResourcePolicyRequest, CallSettings)

public override async 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
Task<Operation<Operation, Operation>>

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
Task<ResourcePolicy>

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
Task<Policy>

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
Operation<Operation, Operation>

The RPC response.

Overrides

InsertAsync(InsertResourcePolicyRequest, CallSettings)

public override async 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
Task<Operation<Operation, Operation>>

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
PagedEnumerable<ResourcePolicyList, ResourcePolicy>

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
PagedAsyncEnumerable<ResourcePolicyList, ResourcePolicy>

A pageable asynchronous sequence of ResourcePolicy resources.

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
Task<Policy>

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
Task<TestPermissionsResponse>

A Task containing the RPC response.

Overrides