Class protos.google.cloud.compute.v1.TargetInstances (3.1.2)

Represents a TargetInstances

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new TargetInstances 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.IAggregatedListTargetInstancesRequest, callback: google.cloud.compute.v1.TargetInstances.AggregatedListCallback): void;

Calls AggregatedList.

Parameters
NameDescription
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

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListTargetInstancesRequest): Promise<google.cloud.compute.v1.TargetInstanceAggregatedList>;

Calls AggregatedList.

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

AggregatedListTargetInstancesRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

delete(request)

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

Calls Delete.

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

DeleteTargetInstanceRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetTargetInstanceRequest): Promise<google.cloud.compute.v1.TargetInstance>;

Calls Get.

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

GetTargetInstanceRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

Parameter
NameDescription
request IInsertTargetInstanceRequest

InsertTargetInstanceRequest message or plain object

Returns
TypeDescription
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.

Parameters
NameDescription
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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListTargetInstancesRequest): Promise<google.cloud.compute.v1.TargetInstanceList>;

Calls List.

Parameter
NameDescription
request IListTargetInstancesRequest

ListTargetInstancesRequest message or plain object

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

Promise