Class GlobalForwardingRules.GlobalForwardingRulesBase (2.1.0)

[BindServiceMethod(typeof(GlobalForwardingRules), "BindService")]
public abstract class GlobalForwardingRulesBase

Base class for server-side implementations of GlobalForwardingRules

Inheritance

Object > GlobalForwardingRules.GlobalForwardingRulesBase

Namespace

Google.Cloud.Compute.V1

Assembly

Google.Cloud.Compute.V1.dll

Methods

Delete(DeleteGlobalForwardingRuleRequest, ServerCallContext)

public virtual Task<Operation> Delete(DeleteGlobalForwardingRuleRequest request, ServerCallContext context)

Deletes the specified GlobalForwardingRule resource.

Parameters
NameDescription
requestDeleteGlobalForwardingRuleRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

Get(GetGlobalForwardingRuleRequest, ServerCallContext)

public virtual Task<ForwardingRule> Get(GetGlobalForwardingRuleRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestGetGlobalForwardingRuleRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ForwardingRule>

The response to send back to the client (wrapped by a task).

Insert(InsertGlobalForwardingRuleRequest, ServerCallContext)

public virtual Task<Operation> Insert(InsertGlobalForwardingRuleRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestInsertGlobalForwardingRuleRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

List(ListGlobalForwardingRulesRequest, ServerCallContext)

public virtual Task<ForwardingRuleList> List(ListGlobalForwardingRulesRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestListGlobalForwardingRulesRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<ForwardingRuleList>

The response to send back to the client (wrapped by a task).

Patch(PatchGlobalForwardingRuleRequest, ServerCallContext)

public virtual Task<Operation> Patch(PatchGlobalForwardingRuleRequest request, ServerCallContext context)

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
requestPatchGlobalForwardingRuleRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

SetLabels(SetLabelsGlobalForwardingRuleRequest, ServerCallContext)

public virtual Task<Operation> SetLabels(SetLabelsGlobalForwardingRuleRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestSetLabelsGlobalForwardingRuleRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).

SetTarget(SetTargetGlobalForwardingRuleRequest, ServerCallContext)

public virtual Task<Operation> SetTarget(SetTargetGlobalForwardingRuleRequest request, ServerCallContext context)

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

Parameters
NameDescription
requestSetTargetGlobalForwardingRuleRequest

The request received from the client.

contextServerCallContext

The context of the server-side call handler being invoked.

Returns
TypeDescription
Task<Operation>

The response to send back to the client (wrapped by a task).