Class ForwardingRules.ForwardingRulesClient (1.4.0)

public class ForwardingRulesClient : ClientBase<ForwardingRules.ForwardingRulesClient>

Client for ForwardingRules

Inheritance

Object > ClientBase > ClientBase<ForwardingRules.ForwardingRulesClient> > 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(ClientBase.ClientBaseConfiguration)

protected ForwardingRulesClient(ClientBase.ClientBaseConfiguration configuration)

Protected constructor to allow creation of configured clients.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration

The client configuration.

Methods

AggregatedList(AggregatedListForwardingRulesRequest, CallOptions)

public virtual ForwardingRuleAggregatedList AggregatedList(AggregatedListForwardingRulesRequest request, CallOptions options)

Retrieves an aggregated list of forwarding rules.

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, Nullable<DateTime>, CancellationToken)

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

Retrieves an aggregated list of forwarding rules.

Parameters
NameDescription
requestAggregatedListForwardingRulesRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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.

Parameters
NameDescription
requestAggregatedListForwardingRulesRequest

The request to send to the server.

optionsCallOptions

The options for the call.

Returns
TypeDescription
AsyncUnaryCall<ForwardingRuleAggregatedList>

The call object.

AggregatedListAsync(AggregatedListForwardingRulesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

Retrieves an aggregated list of forwarding rules.

Parameters
NameDescription
requestAggregatedListForwardingRulesRequest

The request to send to the server.

headersMetadata

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

deadlineNullable<DateTime>

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
AsyncUnaryCall<ForwardingRuleAggregatedList>

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
Operations.OperationsClient

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

The call object.

DeleteAsync(DeleteForwardingRuleRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<ForwardingRule>

The call object.

GetAsync(GetForwardingRuleRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<ForwardingRule>

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

The call object.

InsertAsync(InsertForwardingRuleRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<ForwardingRuleList>

The call object.

ListAsync(ListForwardingRulesRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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
AsyncUnaryCall<ForwardingRuleList>

The call object.

NewInstance(ClientBase.ClientBaseConfiguration)

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

Creates a new instance of client from given ClientBaseConfiguration.

Parameter
NameDescription
configurationClientBase.ClientBaseConfiguration
Returns
TypeDescription
ForwardingRules.ForwardingRulesClient
Overrides
Grpc.Core.ClientBase<Google.Cloud.Compute.V1.ForwardingRules.ForwardingRulesClient>.NewInstance(Grpc.Core.ClientBase.ClientBaseConfiguration)

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

The call object.

PatchAsync(PatchForwardingRuleRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

The call object.

SetLabelsAsync(SetLabelsForwardingRuleRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

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, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

The call object.

SetTargetAsync(SetTargetForwardingRuleRequest, Metadata, Nullable<DateTime>, CancellationToken)

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

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.

deadlineNullable<DateTime>

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

The call object.