Class protos.google.cloud.compute.v1.ForwardingRules

Represents a ForwardingRules

Inheritance

$protobuf.rpc.Service > protos.google.cloud.compute.v1.ForwardingRules

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);

Constructs a new ForwardingRules service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

aggregatedList(request, callback)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListForwardingRulesRequest, callback: google.cloud.compute.v1.ForwardingRules.AggregatedListCallback): void;

Calls AggregatedList.

Parameters
NameDescription
request IAggregatedListForwardingRulesRequest

AggregatedListForwardingRulesRequest message or plain object

callback google.cloud.compute.v1.ForwardingRules.AggregatedListCallback

Node-style callback called with the error, if any, and ForwardingRuleAggregatedList

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListForwardingRulesRequest): Promise<google.cloud.compute.v1.ForwardingRuleAggregatedList>;

Calls AggregatedList.

Parameter
NameDescription
request IAggregatedListForwardingRulesRequest

AggregatedListForwardingRulesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.ForwardingRuleAggregatedList>

Promise

create(rpcImpl, requestDelimited, responseDelimited)

public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): ForwardingRules;

Creates new ForwardingRules service using the specified rpc implementation.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
ForwardingRules

RPC service. Useful where requests and/or responses are streamed.

delete(request, callback)

public delete(request: google.cloud.compute.v1.IDeleteForwardingRuleRequest, callback: google.cloud.compute.v1.ForwardingRules.DeleteCallback): void;

Calls Delete.

Parameters
NameDescription
request IDeleteForwardingRuleRequest

DeleteForwardingRuleRequest message or plain object

callback google.cloud.compute.v1.ForwardingRules.DeleteCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

delete(request)

public delete(request: google.cloud.compute.v1.IDeleteForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Delete.

Parameter
NameDescription
request IDeleteForwardingRuleRequest

DeleteForwardingRuleRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

get(request, callback)

public get(request: google.cloud.compute.v1.IGetForwardingRuleRequest, callback: google.cloud.compute.v1.ForwardingRules.GetCallback): void;

Calls Get.

Parameters
NameDescription
request google.cloud.compute.v1.IGetForwardingRuleRequest

GetForwardingRuleRequest message or plain object

callback google.cloud.compute.v1.ForwardingRules.GetCallback

Node-style callback called with the error, if any, and ForwardingRule

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetForwardingRuleRequest): Promise<google.cloud.compute.v1.ForwardingRule>;

Calls Get.

Parameter
NameDescription
request google.cloud.compute.v1.IGetForwardingRuleRequest

GetForwardingRuleRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.ForwardingRule>

Promise

insert(request, callback)

public insert(request: google.cloud.compute.v1.IInsertForwardingRuleRequest, callback: google.cloud.compute.v1.ForwardingRules.InsertCallback): void;

Calls Insert.

Parameters
NameDescription
request IInsertForwardingRuleRequest

InsertForwardingRuleRequest message or plain object

callback google.cloud.compute.v1.ForwardingRules.InsertCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

insert(request)

public insert(request: google.cloud.compute.v1.IInsertForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Insert.

Parameter
NameDescription
request IInsertForwardingRuleRequest

InsertForwardingRuleRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

list(request, callback)

public list(request: google.cloud.compute.v1.IListForwardingRulesRequest, callback: google.cloud.compute.v1.ForwardingRules.ListCallback): void;

Calls List.

Parameters
NameDescription
request IListForwardingRulesRequest

ListForwardingRulesRequest message or plain object

callback google.cloud.compute.v1.ForwardingRules.ListCallback

Node-style callback called with the error, if any, and ForwardingRuleList

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListForwardingRulesRequest): Promise<google.cloud.compute.v1.ForwardingRuleList>;

Calls List.

Parameter
NameDescription
request IListForwardingRulesRequest

ListForwardingRulesRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.ForwardingRuleList>

Promise

patch(request, callback)

public patch(request: google.cloud.compute.v1.IPatchForwardingRuleRequest, callback: google.cloud.compute.v1.ForwardingRules.PatchCallback): void;

Calls Patch.

Parameters
NameDescription
request IPatchForwardingRuleRequest

PatchForwardingRuleRequest message or plain object

callback google.cloud.compute.v1.ForwardingRules.PatchCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

patch(request)

public patch(request: google.cloud.compute.v1.IPatchForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Patch.

Parameter
NameDescription
request IPatchForwardingRuleRequest

PatchForwardingRuleRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

setLabels(request, callback)

public setLabels(request: google.cloud.compute.v1.ISetLabelsForwardingRuleRequest, callback: google.cloud.compute.v1.ForwardingRules.SetLabelsCallback): void;

Calls SetLabels.

Parameters
NameDescription
request google.cloud.compute.v1.ISetLabelsForwardingRuleRequest

SetLabelsForwardingRuleRequest message or plain object

callback google.cloud.compute.v1.ForwardingRules.SetLabelsCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

setLabels(request)

public setLabels(request: google.cloud.compute.v1.ISetLabelsForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SetLabels.

Parameter
NameDescription
request google.cloud.compute.v1.ISetLabelsForwardingRuleRequest

SetLabelsForwardingRuleRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise

setTarget(request, callback)

public setTarget(request: google.cloud.compute.v1.ISetTargetForwardingRuleRequest, callback: google.cloud.compute.v1.ForwardingRules.SetTargetCallback): void;

Calls SetTarget.

Parameters
NameDescription
request google.cloud.compute.v1.ISetTargetForwardingRuleRequest

SetTargetForwardingRuleRequest message or plain object

callback google.cloud.compute.v1.ForwardingRules.SetTargetCallback

Node-style callback called with the error, if any, and Operation

Returns
TypeDescription
void

setTarget(request)

public setTarget(request: google.cloud.compute.v1.ISetTargetForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SetTarget.

Parameter
NameDescription
request google.cloud.compute.v1.ISetTargetForwardingRuleRequest

SetTargetForwardingRuleRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.compute.v1.Operation>

Promise