Compute Engine v1 API - Class GlobalForwardingRulesClientImpl (3.2.0)

public sealed class GlobalForwardingRulesClientImpl : GlobalForwardingRulesClient

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

GlobalForwardingRules client wrapper implementation, for convenient use.

Inheritance

object > GlobalForwardingRulesClient > GlobalForwardingRulesClientImpl

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Remarks

The GlobalForwardingRules API.

Constructors

GlobalForwardingRulesClientImpl(GlobalForwardingRulesClient, GlobalForwardingRulesSettings, ILogger)

public GlobalForwardingRulesClientImpl(GlobalForwardingRules.GlobalForwardingRulesClient grpcClient, GlobalForwardingRulesSettings settings, ILogger logger)

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

Parameters
Name Description
grpcClient GlobalForwardingRulesGlobalForwardingRulesClient

The underlying gRPC client.

settings GlobalForwardingRulesSettings

The base GlobalForwardingRulesSettings 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
Overrides

GrpcClient

public override GlobalForwardingRules.GlobalForwardingRulesClient GrpcClient { get; }

The underlying gRPC GlobalForwardingRules client

Property Value
Type Description
GlobalForwardingRulesGlobalForwardingRulesClient
Overrides

InsertOperationsClient

public override OperationsClient InsertOperationsClient { get; }

The long-running operations client for Insert.

Property Value
Type Description
OperationsClient
Overrides

PatchOperationsClient

public override OperationsClient PatchOperationsClient { get; }

The long-running operations client for Patch.

Property Value
Type Description
OperationsClient
Overrides

SetLabelsOperationsClient

public override OperationsClient SetLabelsOperationsClient { get; }

The long-running operations client for SetLabels.

Property Value
Type Description
OperationsClient
Overrides

SetTargetOperationsClient

public override OperationsClient SetTargetOperationsClient { get; }

The long-running operations client for SetTarget.

Property Value
Type Description
OperationsClient
Overrides

Methods

Delete(DeleteGlobalForwardingRuleRequest, CallSettings)

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

Deletes the specified GlobalForwardingRule resource.

Parameters
Name Description
request DeleteGlobalForwardingRuleRequest

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.

Overrides

DeleteAsync(DeleteGlobalForwardingRuleRequest, CallSettings)

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

Deletes the specified GlobalForwardingRule resource.

Parameters
Name Description
request DeleteGlobalForwardingRuleRequest

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.

Overrides

Get(GetGlobalForwardingRuleRequest, CallSettings)

public override ForwardingRule Get(GetGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request.

Parameters
Name Description
request GetGlobalForwardingRuleRequest

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
ForwardingRule

The RPC response.

Overrides

GetAsync(GetGlobalForwardingRuleRequest, CallSettings)

public override Task<ForwardingRule> GetAsync(GetGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Returns the specified GlobalForwardingRule resource. Gets a list of available forwarding rules by making a list() request.

Parameters
Name Description
request GetGlobalForwardingRuleRequest

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
TaskForwardingRule

A Task containing the RPC response.

Overrides

Insert(InsertGlobalForwardingRuleRequest, CallSettings)

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

Creates a GlobalForwardingRule resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertGlobalForwardingRuleRequest

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.

Overrides

InsertAsync(InsertGlobalForwardingRuleRequest, CallSettings)

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

Creates a GlobalForwardingRule resource in the specified project using the data included in the request.

Parameters
Name Description
request InsertGlobalForwardingRuleRequest

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.

Overrides

List(ListGlobalForwardingRulesRequest, CallSettings)

public override PagedEnumerable<ForwardingRuleList, ForwardingRule> List(ListGlobalForwardingRulesRequest request, CallSettings callSettings = null)

Retrieves a list of GlobalForwardingRule resources available to the specified project.

Parameters
Name Description
request ListGlobalForwardingRulesRequest

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
PagedEnumerableForwardingRuleListForwardingRule

A pageable sequence of ForwardingRule resources.

Overrides

ListAsync(ListGlobalForwardingRulesRequest, CallSettings)

public override PagedAsyncEnumerable<ForwardingRuleList, ForwardingRule> ListAsync(ListGlobalForwardingRulesRequest request, CallSettings callSettings = null)

Retrieves a list of GlobalForwardingRule resources available to the specified project.

Parameters
Name Description
request ListGlobalForwardingRulesRequest

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
PagedAsyncEnumerableForwardingRuleListForwardingRule

A pageable asynchronous sequence of ForwardingRule resources.

Overrides

Patch(PatchGlobalForwardingRuleRequest, CallSettings)

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

Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.

Parameters
Name Description
request PatchGlobalForwardingRuleRequest

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.

Overrides

PatchAsync(PatchGlobalForwardingRuleRequest, CallSettings)

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

Updates the specified forwarding rule with the data included in the request. This method supports PATCH semantics and uses the JSON merge patch format and processing rules. Currently, you can only patch the network_tier field.

Parameters
Name Description
request PatchGlobalForwardingRuleRequest

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.

Overrides

SetLabels(SetLabelsGlobalForwardingRuleRequest, CallSettings)

public override Operation<Operation, Operation> SetLabels(SetLabelsGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Sets the labels on the specified resource. To learn more about labels, read the Labeling resources documentation.

Parameters
Name Description
request SetLabelsGlobalForwardingRuleRequest

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.

Overrides

SetLabelsAsync(SetLabelsGlobalForwardingRuleRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetLabelsAsync(SetLabelsGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Sets the labels on the specified resource. To learn more about labels, read the Labeling resources documentation.

Parameters
Name Description
request SetLabelsGlobalForwardingRuleRequest

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.

Overrides

SetTarget(SetTargetGlobalForwardingRuleRequest, CallSettings)

public override Operation<Operation, Operation> SetTarget(SetTargetGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target.

Parameters
Name Description
request SetTargetGlobalForwardingRuleRequest

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.

Overrides

SetTargetAsync(SetTargetGlobalForwardingRuleRequest, CallSettings)

public override Task<Operation<Operation, Operation>> SetTargetAsync(SetTargetGlobalForwardingRuleRequest request, CallSettings callSettings = null)

Changes target URL for the GlobalForwardingRule resource. The new target should be of the same type as the old target.

Parameters
Name Description
request SetTargetGlobalForwardingRuleRequest

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.

Overrides