Compute Engine v1 API - Class RegionSecurityPoliciesClientImpl (2.4.0)

public sealed class RegionSecurityPoliciesClientImpl : RegionSecurityPoliciesClient

Reference documentation and code samples for the Compute Engine v1 API class RegionSecurityPoliciesClientImpl.

RegionSecurityPolicies client wrapper implementation, for convenient use.

Inheritance

Object > RegionSecurityPoliciesClient > RegionSecurityPoliciesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The RegionSecurityPolicies API.

Constructors

RegionSecurityPoliciesClientImpl(RegionSecurityPolicies.RegionSecurityPoliciesClient, RegionSecurityPoliciesSettings, ILogger)

public RegionSecurityPoliciesClientImpl(RegionSecurityPolicies.RegionSecurityPoliciesClient grpcClient, RegionSecurityPoliciesSettings settings, ILogger logger)

Constructs a client wrapper for the RegionSecurityPolicies service, with the specified gRPC client and settings.

Parameters
NameDescription
grpcClientRegionSecurityPolicies.RegionSecurityPoliciesClient

The underlying gRPC client.

settingsRegionSecurityPoliciesSettings

The base RegionSecurityPoliciesSettings 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 RegionSecurityPolicies.RegionSecurityPoliciesClient GrpcClient { get; }

The underlying gRPC RegionSecurityPolicies client

Property Value
TypeDescription
RegionSecurityPolicies.RegionSecurityPoliciesClient
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

Delete(DeleteRegionSecurityPolicyRequest, CallSettings)

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

Deletes the specified policy.

Parameters
NameDescription
requestDeleteRegionSecurityPolicyRequest

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(DeleteRegionSecurityPolicyRequest, CallSettings)

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

Deletes the specified policy.

Parameters
NameDescription
requestDeleteRegionSecurityPolicyRequest

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(GetRegionSecurityPolicyRequest, CallSettings)

public override SecurityPolicy Get(GetRegionSecurityPolicyRequest request, CallSettings callSettings = null)

List all of the ordered rules present in a single specified policy.

Parameters
NameDescription
requestGetRegionSecurityPolicyRequest

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

callSettingsCallSettings

If not null, applies overrides to this RPC call.

Returns
TypeDescription
SecurityPolicy

The RPC response.

Overrides

GetAsync(GetRegionSecurityPolicyRequest, CallSettings)

public override Task<SecurityPolicy> GetAsync(GetRegionSecurityPolicyRequest request, CallSettings callSettings = null)

List all of the ordered rules present in a single specified policy.

Parameters
NameDescription
requestGetRegionSecurityPolicyRequest

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<SecurityPolicy>

A Task containing the RPC response.

Overrides

Insert(InsertRegionSecurityPolicyRequest, CallSettings)

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

Creates a new policy in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertRegionSecurityPolicyRequest

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(InsertRegionSecurityPolicyRequest, CallSettings)

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

Creates a new policy in the specified project using the data included in the request.

Parameters
NameDescription
requestInsertRegionSecurityPolicyRequest

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(ListRegionSecurityPoliciesRequest, CallSettings)

public override PagedEnumerable<SecurityPolicyList, SecurityPolicy> List(ListRegionSecurityPoliciesRequest request, CallSettings callSettings = null)

List all the policies that have been configured for the specified project and region.

Parameters
NameDescription
requestListRegionSecurityPoliciesRequest

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<SecurityPolicyList, SecurityPolicy>

A pageable sequence of SecurityPolicy resources.

Overrides

ListAsync(ListRegionSecurityPoliciesRequest, CallSettings)

public override PagedAsyncEnumerable<SecurityPolicyList, SecurityPolicy> ListAsync(ListRegionSecurityPoliciesRequest request, CallSettings callSettings = null)

List all the policies that have been configured for the specified project and region.

Parameters
NameDescription
requestListRegionSecurityPoliciesRequest

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<SecurityPolicyList, SecurityPolicy>

A pageable asynchronous sequence of SecurityPolicy resources.

Overrides

Patch(PatchRegionSecurityPolicyRequest, CallSettings)

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

Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.

Parameters
NameDescription
requestPatchRegionSecurityPolicyRequest

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

PatchAsync(PatchRegionSecurityPolicyRequest, CallSettings)

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

Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.

Parameters
NameDescription
requestPatchRegionSecurityPolicyRequest

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