Represents a TargetInstances
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.TargetInstancesPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);Constructs a new TargetInstances service.
| 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.IAggregatedListTargetInstancesRequest, callback: google.cloud.compute.v1.TargetInstances.AggregatedListCallback): void;Calls AggregatedList.
| Name | Description |
| request |
google.cloud.compute.v1.IAggregatedListTargetInstancesRequest
AggregatedListTargetInstancesRequest message or plain object |
| callback |
google.cloud.compute.v1.TargetInstances.AggregatedListCallback
Node-style callback called with the error, if any, and TargetInstanceAggregatedList |
| Type | Description |
| void |
aggregatedList(request)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListTargetInstancesRequest): Promise<google.cloud.compute.v1.TargetInstanceAggregatedList>;Calls AggregatedList.
| Name | Description |
| request |
google.cloud.compute.v1.IAggregatedListTargetInstancesRequest
AggregatedListTargetInstancesRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.TargetInstanceAggregatedList> | Promise |
create(rpcImpl, requestDelimited, responseDelimited)
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): TargetInstances;Creates new TargetInstances service using the specified rpc implementation.
| Name | Description |
| rpcImpl |
$protobuf.RPCImpl
RPC implementation |
| requestDelimited |
boolean
Whether requests are length-delimited |
| responseDelimited |
boolean
Whether responses are length-delimited |
| Type | Description |
| TargetInstances | RPC service. Useful where requests and/or responses are streamed. |
delete(request, callback)
public delete(request: google.cloud.compute.v1.IDeleteTargetInstanceRequest, callback: google.cloud.compute.v1.TargetInstances.DeleteCallback): void;Calls Delete.
| Name | Description |
| request |
google.cloud.compute.v1.IDeleteTargetInstanceRequest
DeleteTargetInstanceRequest message or plain object |
| callback |
google.cloud.compute.v1.TargetInstances.DeleteCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
| void |
delete(request)
public delete(request: google.cloud.compute.v1.IDeleteTargetInstanceRequest): Promise<google.cloud.compute.v1.Operation>;Calls Delete.
| Name | Description |
| request |
google.cloud.compute.v1.IDeleteTargetInstanceRequest
DeleteTargetInstanceRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.Operation> | Promise |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetTargetInstanceRequest, callback: google.cloud.compute.v1.TargetInstances.GetCallback): void;Calls Get.
| Name | Description |
| request |
google.cloud.compute.v1.IGetTargetInstanceRequest
GetTargetInstanceRequest message or plain object |
| callback |
google.cloud.compute.v1.TargetInstances.GetCallback
Node-style callback called with the error, if any, and TargetInstance |
| Type | Description |
| void |
get(request)
public get(request: google.cloud.compute.v1.IGetTargetInstanceRequest): Promise<google.cloud.compute.v1.TargetInstance>;Calls Get.
| Name | Description |
| request |
google.cloud.compute.v1.IGetTargetInstanceRequest
GetTargetInstanceRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.TargetInstance> | Promise |
insert(request, callback)
public insert(request: google.cloud.compute.v1.IInsertTargetInstanceRequest, callback: google.cloud.compute.v1.TargetInstances.InsertCallback): void;Calls Insert.
| Name | Description |
| request |
IInsertTargetInstanceRequest
InsertTargetInstanceRequest message or plain object |
| callback |
google.cloud.compute.v1.TargetInstances.InsertCallback
Node-style callback called with the error, if any, and Operation |
| Type | Description |
| void |
insert(request)
public insert(request: google.cloud.compute.v1.IInsertTargetInstanceRequest): Promise<google.cloud.compute.v1.Operation>;Calls Insert.
| Name | Description |
| request |
IInsertTargetInstanceRequest
InsertTargetInstanceRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.Operation> | Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListTargetInstancesRequest, callback: google.cloud.compute.v1.TargetInstances.ListCallback): void;Calls List.
| Name | Description |
| request |
IListTargetInstancesRequest
ListTargetInstancesRequest message or plain object |
| callback |
google.cloud.compute.v1.TargetInstances.ListCallback
Node-style callback called with the error, if any, and TargetInstanceList |
| Type | Description |
| void |
list(request)
public list(request: google.cloud.compute.v1.IListTargetInstancesRequest): Promise<google.cloud.compute.v1.TargetInstanceList>;Calls List.
| Name | Description |
| request |
IListTargetInstancesRequest
ListTargetInstancesRequest message or plain object |
| Type | Description |
| Promise<google.cloud.compute.v1.TargetInstanceList> | Promise |