Represents a GlobalForwardingRules
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.GlobalForwardingRulesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new GlobalForwardingRules service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
delete(request)
public delete(request: google.cloud.compute.v1.IDeleteGlobalForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
IDeleteGlobalForwardingRuleRequest
DeleteGlobalForwardingRuleRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetGlobalForwardingRuleRequest): Promise<google.cloud.compute.v1.ForwardingRule>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetGlobalForwardingRuleRequest
GetGlobalForwardingRuleRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
insert(request)
public insert(request: google.cloud.compute.v1.IInsertGlobalForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
IInsertGlobalForwardingRuleRequest
InsertGlobalForwardingRuleRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListGlobalForwardingRulesRequest): Promise<google.cloud.compute.v1.ForwardingRuleList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListGlobalForwardingRulesRequest
ListGlobalForwardingRulesRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
patch(request)
public patch(request: google.cloud.compute.v1.IPatchGlobalForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Patch.
Parameter | |
---|---|
Name | Description |
request |
IPatchGlobalForwardingRuleRequest
PatchGlobalForwardingRuleRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
setLabels(request)
public setLabels(request: google.cloud.compute.v1.ISetLabelsGlobalForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;
Calls SetLabels.
Parameter | |
---|---|
Name | Description |
request |
ISetLabelsGlobalForwardingRuleRequest
SetLabelsGlobalForwardingRuleRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
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 | |
---|---|
Type | Description |
void |
setTarget(request)
public setTarget(request: google.cloud.compute.v1.ISetTargetGlobalForwardingRuleRequest): Promise<google.cloud.compute.v1.Operation>;
Calls SetTarget.
Parameter | |
---|---|
Name | Description |
request |
ISetTargetGlobalForwardingRuleRequest
SetTargetGlobalForwardingRuleRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |