Compute Engine v1 API - Class ForwardingRules.ForwardingRulesClient (2.14.0)

public class ForwardingRules.ForwardingRulesClient : ClientBase<ForwardingRules.ForwardingRulesClient>

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

Client for ForwardingRules

Inheritance

object > ClientBase > ClientBaseForwardingRulesForwardingRulesClient > ForwardingRules.ForwardingRulesClient

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Constructors

ForwardingRulesClient()

protected ForwardingRulesClient()

Protected parameterless constructor to allow creation of test doubles.

ForwardingRulesClient(CallInvoker)

public ForwardingRulesClient(CallInvoker callInvoker)

Creates a new client for ForwardingRules that uses a custom CallInvoker.

Parameter
NameDescription
callInvokerCallInvoker

The callInvoker to use to make remote calls.

ForwardingRulesClient(ChannelBase)

public ForwardingRulesClient(ChannelBase channel)

Creates a new client for ForwardingRules

Parameter
NameDescription
channelChannelBase

The channel to use to make remote calls.

ForwardingRulesClient(ClientBaseConfiguration)

protected ForwardingRulesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration

The client configuration.

Methods

AggregatedList(AggregatedListForwardingRulesRequest, CallOptions)

public virtual ForwardingRuleAggregatedList AggregatedList(AggregatedListForwardingRulesRequest request, CallOptions options)

Retrieves an aggregated list of forwarding rules. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
NameDescription
requestAggregatedListForwardingRulesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ForwardingRuleAggregatedList

The response received from the server.

AggregatedList(AggregatedListForwardingRulesRequest, Metadata, DateTime?, CancellationToken)

public virtual ForwardingRuleAggregatedList AggregatedList(AggregatedListForwardingRulesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves an aggregated list of forwarding rules. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
NameDescription
requestAggregatedListForwardingRulesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ForwardingRuleAggregatedList

The response received from the server.

AggregatedListAsync(AggregatedListForwardingRulesRequest, CallOptions)

public virtual AsyncUnaryCall<ForwardingRuleAggregatedList> AggregatedListAsync(AggregatedListForwardingRulesRequest request, CallOptions options)

Retrieves an aggregated list of forwarding rules. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
NameDescription
requestAggregatedListForwardingRulesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallForwardingRuleAggregatedList

The call object.

AggregatedListAsync(AggregatedListForwardingRulesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ForwardingRuleAggregatedList> AggregatedListAsync(AggregatedListForwardingRulesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves an aggregated list of forwarding rules. To prevent failure, Google recommends that you set the returnPartialSuccess parameter to true.

Parameters
NameDescription
requestAggregatedListForwardingRulesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallForwardingRuleAggregatedList

The call object.

CreateOperationsClientForRegionOperations()

public virtual Operations.OperationsClient CreateOperationsClientForRegionOperations()

Creates a new instance of Operations.OperationsClient using the same call invoker as this client, delegating to RegionOperations.

Returns
TypeDescription
OperationsOperationsClient

A new Operations client for the same target as this client.

Delete(DeleteForwardingRuleRequest, CallOptions)

public virtual Operation Delete(DeleteForwardingRuleRequest request, CallOptions options)

Deletes the specified ForwardingRule resource.

Parameters
NameDescription
requestDeleteForwardingRuleRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Delete(DeleteForwardingRuleRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Delete(DeleteForwardingRuleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified ForwardingRule resource.

Parameters
NameDescription
requestDeleteForwardingRuleRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

DeleteAsync(DeleteForwardingRuleRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteForwardingRuleRequest request, CallOptions options)

Deletes the specified ForwardingRule resource.

Parameters
NameDescription
requestDeleteForwardingRuleRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

DeleteAsync(DeleteForwardingRuleRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> DeleteAsync(DeleteForwardingRuleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Deletes the specified ForwardingRule resource.

Parameters
NameDescription
requestDeleteForwardingRuleRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

Get(GetForwardingRuleRequest, CallOptions)

public virtual ForwardingRule Get(GetForwardingRuleRequest request, CallOptions options)

Returns the specified ForwardingRule resource.

Parameters
NameDescription
requestGetForwardingRuleRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ForwardingRule

The response received from the server.

Get(GetForwardingRuleRequest, Metadata, DateTime?, CancellationToken)

public virtual ForwardingRule Get(GetForwardingRuleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified ForwardingRule resource.

Parameters
NameDescription
requestGetForwardingRuleRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ForwardingRule

The response received from the server.

GetAsync(GetForwardingRuleRequest, CallOptions)

public virtual AsyncUnaryCall<ForwardingRule> GetAsync(GetForwardingRuleRequest request, CallOptions options)

Returns the specified ForwardingRule resource.

Parameters
NameDescription
requestGetForwardingRuleRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallForwardingRule

The call object.

GetAsync(GetForwardingRuleRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ForwardingRule> GetAsync(GetForwardingRuleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Returns the specified ForwardingRule resource.

Parameters
NameDescription
requestGetForwardingRuleRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallForwardingRule

The call object.

Insert(InsertForwardingRuleRequest, CallOptions)

public virtual Operation Insert(InsertForwardingRuleRequest request, CallOptions options)

Creates a ForwardingRule resource in the specified project and region using the data included in the request.

Parameters
NameDescription
requestInsertForwardingRuleRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Insert(InsertForwardingRuleRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Insert(InsertForwardingRuleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a ForwardingRule resource in the specified project and region using the data included in the request.

Parameters
NameDescription
requestInsertForwardingRuleRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

InsertAsync(InsertForwardingRuleRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertForwardingRuleRequest request, CallOptions options)

Creates a ForwardingRule resource in the specified project and region using the data included in the request.

Parameters
NameDescription
requestInsertForwardingRuleRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

InsertAsync(InsertForwardingRuleRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> InsertAsync(InsertForwardingRuleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Creates a ForwardingRule resource in the specified project and region using the data included in the request.

Parameters
NameDescription
requestInsertForwardingRuleRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

List(ListForwardingRulesRequest, CallOptions)

public virtual ForwardingRuleList List(ListForwardingRulesRequest request, CallOptions options)

Retrieves a list of ForwardingRule resources available to the specified project and region.

Parameters
NameDescription
requestListForwardingRulesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
ForwardingRuleList

The response received from the server.

List(ListForwardingRulesRequest, Metadata, DateTime?, CancellationToken)

public virtual ForwardingRuleList List(ListForwardingRulesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves a list of ForwardingRule resources available to the specified project and region.

Parameters
NameDescription
requestListForwardingRulesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
ForwardingRuleList

The response received from the server.

ListAsync(ListForwardingRulesRequest, CallOptions)

public virtual AsyncUnaryCall<ForwardingRuleList> ListAsync(ListForwardingRulesRequest request, CallOptions options)

Retrieves a list of ForwardingRule resources available to the specified project and region.

Parameters
NameDescription
requestListForwardingRulesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallForwardingRuleList

The call object.

ListAsync(ListForwardingRulesRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<ForwardingRuleList> ListAsync(ListForwardingRulesRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Retrieves a list of ForwardingRule resources available to the specified project and region.

Parameters
NameDescription
requestListForwardingRulesRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallForwardingRuleList

The call object.

NewInstance(ClientBaseConfiguration)

protected override ForwardingRules.ForwardingRulesClient NewInstance(ClientBase.ClientBaseConfiguration configuration)

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBaseClientBaseConfiguration
Returns
TypeDescription
ForwardingRulesForwardingRulesClient
Overrides

Patch(PatchForwardingRuleRequest, CallOptions)

public virtual Operation Patch(PatchForwardingRuleRequest request, CallOptions options)

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

Patch(PatchForwardingRuleRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation Patch(PatchForwardingRuleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

PatchAsync(PatchForwardingRuleRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchForwardingRuleRequest request, CallOptions options)

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

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

PatchAsync(PatchForwardingRuleRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> PatchAsync(PatchForwardingRuleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

SetLabels(SetLabelsForwardingRuleRequest, CallOptions)

public virtual Operation SetLabels(SetLabelsForwardingRuleRequest request, CallOptions options)

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

Parameters
NameDescription
requestSetLabelsForwardingRuleRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

SetLabels(SetLabelsForwardingRuleRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation SetLabels(SetLabelsForwardingRuleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestSetLabelsForwardingRuleRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

SetLabelsAsync(SetLabelsForwardingRuleRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> SetLabelsAsync(SetLabelsForwardingRuleRequest request, CallOptions options)

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

Parameters
NameDescription
requestSetLabelsForwardingRuleRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

SetLabelsAsync(SetLabelsForwardingRuleRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> SetLabelsAsync(SetLabelsForwardingRuleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

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

Parameters
NameDescription
requestSetLabelsForwardingRuleRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

SetTarget(SetTargetForwardingRuleRequest, CallOptions)

public virtual Operation SetTarget(SetTargetForwardingRuleRequest request, CallOptions options)

Changes target URL for forwarding rule. The new target should be of the same type as the old target.

Parameters
NameDescription
requestSetTargetForwardingRuleRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
Operation

The response received from the server.

SetTarget(SetTargetForwardingRuleRequest, Metadata, DateTime?, CancellationToken)

public virtual Operation SetTarget(SetTargetForwardingRuleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Changes target URL for forwarding rule. The new target should be of the same type as the old target.

Parameters
NameDescription
requestSetTargetForwardingRuleRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
Operation

The response received from the server.

SetTargetAsync(SetTargetForwardingRuleRequest, CallOptions)

public virtual AsyncUnaryCall<Operation> SetTargetAsync(SetTargetForwardingRuleRequest request, CallOptions options)

Changes target URL for forwarding rule. The new target should be of the same type as the old target.

Parameters
NameDescription
requestSetTargetForwardingRuleRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.

SetTargetAsync(SetTargetForwardingRuleRequest, Metadata, DateTime?, CancellationToken)

public virtual AsyncUnaryCall<Operation> SetTargetAsync(SetTargetForwardingRuleRequest request, Metadata headers = null, DateTime? deadline = null, CancellationToken cancellationToken = default)

Changes target URL for forwarding rule. The new target should be of the same type as the old target.

Parameters
NameDescription
requestSetTargetForwardingRuleRequest

The request to send to the server.

headersMetadata

The initial metadata to send with the call. This parameter is optional.

deadlineDateTime

An optional deadline for the call. The call will be cancelled if deadline is hit.

cancellationTokenCancellationToken

An optional token for canceling the call.

Returns
TypeDescription
AsyncUnaryCallOperation

The call object.