Represents a ForwardingRules
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.ForwardingRulesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new ForwardingRules service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
aggregatedList(request)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListForwardingRulesRequest): Promise<google.cloud.compute.v1.ForwardingRuleAggregatedList>;
Calls AggregatedList.
Parameter | |
---|---|
Name | Description |
request |
IAggregatedListForwardingRulesRequest
AggregatedListForwardingRulesRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
delete(request)
public delete(request: google.cloud.compute.v1.IDeleteForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
IDeleteForwardingRuleRequest
DeleteForwardingRuleRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
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 | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetForwardingRuleRequest): Promise<google.cloud.compute.v1.ForwardingRule>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetForwardingRuleRequest
GetForwardingRuleRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.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 | |
---|---|
Type | Description |
void |
insert(request)
public insert(request: google.cloud.compute.v1.IInsertForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IInsertForwardingRuleRequest
InsertForwardingRuleRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.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 | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListForwardingRulesRequest): Promise<google.cloud.compute.v1.ForwardingRuleList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IListForwardingRulesRequest
ListForwardingRulesRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.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 | |
---|---|
Type | Description |
void |
patch(request)
public patch(request: google.cloud.compute.v1.IPatchForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Patch.
Parameter | |
---|---|
Name | Description |
request |
google.cloud.compute.v1.IPatchForwardingRuleRequest
PatchForwardingRuleRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
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 | |
---|---|
Type | Description |
void |
setLabels(request)
public setLabels(request: google.cloud.compute.v1.ISetLabelsForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;
Calls SetLabels.
Parameter | |
---|---|
Name | Description |
request |
ISetLabelsForwardingRuleRequest
SetLabelsForwardingRuleRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
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 | |
---|---|
Type | Description |
void |
setTarget(request)
public setTarget(request: google.cloud.compute.v1.ISetTargetForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;
Calls SetTarget.
Parameter | |
---|---|
Name | Description |
request |
ISetTargetForwardingRuleRequest
SetTargetForwardingRuleRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |