Class protos.google.cloud.compute.v1.GlobalForwardingRules (3.9.1)

Represents a GlobalForwardingRules

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new GlobalForwardingRules service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

create(rpcImpl, requestDelimited, responseDelimited)

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

Creates new GlobalForwardingRules 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
GlobalForwardingRules

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

delete(request, callback)

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

Calls Delete.

Parameters
NameDescription
request IDeleteGlobalForwardingRuleRequest

DeleteGlobalForwardingRuleRequest message or plain object

callback google.cloud.compute.v1.GlobalForwardingRules.DeleteCallback

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

Returns
TypeDescription
void

delete(request)

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

Calls Delete.

Parameter
NameDescription
request IDeleteGlobalForwardingRuleRequest

DeleteGlobalForwardingRuleRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request IGetGlobalForwardingRuleRequest

GetGlobalForwardingRuleRequest message or plain object

callback google.cloud.compute.v1.GlobalForwardingRules.GetCallback

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

Returns
TypeDescription
void

get(request)

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

Calls Get.

Parameter
NameDescription
request IGetGlobalForwardingRuleRequest

GetGlobalForwardingRuleRequest message or plain object

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

Promise

insert(request, callback)

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

Calls Insert.

Parameters
NameDescription
request IInsertGlobalForwardingRuleRequest

InsertGlobalForwardingRuleRequest message or plain object

callback google.cloud.compute.v1.GlobalForwardingRules.InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

Parameter
NameDescription
request IInsertGlobalForwardingRuleRequest

InsertGlobalForwardingRuleRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListGlobalForwardingRulesRequest

ListGlobalForwardingRulesRequest message or plain object

callback google.cloud.compute.v1.GlobalForwardingRules.ListCallback

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

Returns
TypeDescription
void

list(request)

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

Calls List.

Parameter
NameDescription
request IListGlobalForwardingRulesRequest

ListGlobalForwardingRulesRequest message or plain object

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

Promise

patch(request, callback)

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

Calls Patch.

Parameters
NameDescription
request IPatchGlobalForwardingRuleRequest

PatchGlobalForwardingRuleRequest message or plain object

callback google.cloud.compute.v1.GlobalForwardingRules.PatchCallback

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

Returns
TypeDescription
void

patch(request)

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

Calls Patch.

Parameter
NameDescription
request IPatchGlobalForwardingRuleRequest

PatchGlobalForwardingRuleRequest message or plain object

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

Promise

setLabels(request, callback)

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

Calls SetLabels.

Parameters
NameDescription
request ISetLabelsGlobalForwardingRuleRequest

SetLabelsGlobalForwardingRuleRequest message or plain object

callback google.cloud.compute.v1.GlobalForwardingRules.SetLabelsCallback

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

Returns
TypeDescription
void

setLabels(request)

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

Calls SetLabels.

Parameter
NameDescription
request ISetLabelsGlobalForwardingRuleRequest

SetLabelsGlobalForwardingRuleRequest message or plain object

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

Promise

setTarget(request, callback)

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

Calls SetTarget.

Parameters
NameDescription
request ISetTargetGlobalForwardingRuleRequest

SetTargetGlobalForwardingRuleRequest message or plain object

callback google.cloud.compute.v1.GlobalForwardingRules.SetTargetCallback

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

Returns
TypeDescription
void

setTarget(request)

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

Calls SetTarget.

Parameter
NameDescription
request ISetTargetGlobalForwardingRuleRequest

SetTargetGlobalForwardingRuleRequest message or plain object

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

Promise