Class protos.google.cloud.compute.v1.TargetPools

Represents a TargetPools

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new TargetPools service.

Parameters
NameDescription
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

addHealthCheck(request, callback)

public addHealthCheck(request: google.cloud.compute.v1.IAddHealthCheckTargetPoolRequest, callback: google.cloud.compute.v1.TargetPools.AddHealthCheckCallback): void;

Calls AddHealthCheck.

Parameters
NameDescription
request google.cloud.compute.v1.IAddHealthCheckTargetPoolRequest

AddHealthCheckTargetPoolRequest message or plain object

callback google.cloud.compute.v1.TargetPools.AddHealthCheckCallback

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

Returns
TypeDescription
void

addHealthCheck(request)

public addHealthCheck(request: google.cloud.compute.v1.IAddHealthCheckTargetPoolRequest): Promise<google.cloud.compute.v1.Operation>;

Calls AddHealthCheck.

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

AddHealthCheckTargetPoolRequest message or plain object

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

Promise

addInstance(request, callback)

public addInstance(request: google.cloud.compute.v1.IAddInstanceTargetPoolRequest, callback: google.cloud.compute.v1.TargetPools.AddInstanceCallback): void;

Calls AddInstance.

Parameters
NameDescription
request google.cloud.compute.v1.IAddInstanceTargetPoolRequest

AddInstanceTargetPoolRequest message or plain object

callback google.cloud.compute.v1.TargetPools.AddInstanceCallback

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

Returns
TypeDescription
void

addInstance(request)

public addInstance(request: google.cloud.compute.v1.IAddInstanceTargetPoolRequest): Promise<google.cloud.compute.v1.Operation>;

Calls AddInstance.

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

AddInstanceTargetPoolRequest message or plain object

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

Promise

aggregatedList(request, callback)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListTargetPoolsRequest, callback: google.cloud.compute.v1.TargetPools.AggregatedListCallback): void;

Calls AggregatedList.

Parameters
NameDescription
request IAggregatedListTargetPoolsRequest

AggregatedListTargetPoolsRequest message or plain object

callback google.cloud.compute.v1.TargetPools.AggregatedListCallback

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

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListTargetPoolsRequest): Promise<google.cloud.compute.v1.TargetPoolAggregatedList>;

Calls AggregatedList.

Parameter
NameDescription
request IAggregatedListTargetPoolsRequest

AggregatedListTargetPoolsRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

delete(request, callback)

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

Calls Delete.

Parameters
NameDescription
request google.cloud.compute.v1.IDeleteTargetPoolRequest

DeleteTargetPoolRequest message or plain object

callback google.cloud.compute.v1.TargetPools.DeleteCallback

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

Returns
TypeDescription
void

delete(request)

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

Calls Delete.

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

DeleteTargetPoolRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request google.cloud.compute.v1.IGetTargetPoolRequest

GetTargetPoolRequest message or plain object

callback google.cloud.compute.v1.TargetPools.GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetTargetPoolRequest): Promise<google.cloud.compute.v1.TargetPool>;

Calls Get.

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

GetTargetPoolRequest message or plain object

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

Promise

getHealth(request, callback)

public getHealth(request: google.cloud.compute.v1.IGetHealthTargetPoolRequest, callback: google.cloud.compute.v1.TargetPools.GetHealthCallback): void;

Calls GetHealth.

Parameters
NameDescription
request google.cloud.compute.v1.IGetHealthTargetPoolRequest

GetHealthTargetPoolRequest message or plain object

callback google.cloud.compute.v1.TargetPools.GetHealthCallback

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

Returns
TypeDescription
void

getHealth(request)

public getHealth(request: google.cloud.compute.v1.IGetHealthTargetPoolRequest): Promise<google.cloud.compute.v1.TargetPoolInstanceHealth>;

Calls GetHealth.

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

GetHealthTargetPoolRequest message or plain object

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

Promise

insert(request, callback)

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

Calls Insert.

Parameters
NameDescription
request IInsertTargetPoolRequest

InsertTargetPoolRequest message or plain object

callback google.cloud.compute.v1.TargetPools.InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

Parameter
NameDescription
request IInsertTargetPoolRequest

InsertTargetPoolRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request google.cloud.compute.v1.IListTargetPoolsRequest

ListTargetPoolsRequest message or plain object

callback google.cloud.compute.v1.TargetPools.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListTargetPoolsRequest): Promise<google.cloud.compute.v1.TargetPoolList>;

Calls List.

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

ListTargetPoolsRequest message or plain object

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

Promise

removeHealthCheck(request, callback)

public removeHealthCheck(request: google.cloud.compute.v1.IRemoveHealthCheckTargetPoolRequest, callback: google.cloud.compute.v1.TargetPools.RemoveHealthCheckCallback): void;

Calls RemoveHealthCheck.

Parameters
NameDescription
request google.cloud.compute.v1.IRemoveHealthCheckTargetPoolRequest

RemoveHealthCheckTargetPoolRequest message or plain object

callback google.cloud.compute.v1.TargetPools.RemoveHealthCheckCallback

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

Returns
TypeDescription
void

removeHealthCheck(request)

public removeHealthCheck(request: google.cloud.compute.v1.IRemoveHealthCheckTargetPoolRequest): Promise<google.cloud.compute.v1.Operation>;

Calls RemoveHealthCheck.

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

RemoveHealthCheckTargetPoolRequest message or plain object

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

Promise

removeInstance(request, callback)

public removeInstance(request: google.cloud.compute.v1.IRemoveInstanceTargetPoolRequest, callback: google.cloud.compute.v1.TargetPools.RemoveInstanceCallback): void;

Calls RemoveInstance.

Parameters
NameDescription
request google.cloud.compute.v1.IRemoveInstanceTargetPoolRequest

RemoveInstanceTargetPoolRequest message or plain object

callback google.cloud.compute.v1.TargetPools.RemoveInstanceCallback

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

Returns
TypeDescription
void

removeInstance(request)

public removeInstance(request: google.cloud.compute.v1.IRemoveInstanceTargetPoolRequest): Promise<google.cloud.compute.v1.Operation>;

Calls RemoveInstance.

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

RemoveInstanceTargetPoolRequest message or plain object

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

Promise

setBackup(request, callback)

public setBackup(request: google.cloud.compute.v1.ISetBackupTargetPoolRequest, callback: google.cloud.compute.v1.TargetPools.SetBackupCallback): void;

Calls SetBackup.

Parameters
NameDescription
request ISetBackupTargetPoolRequest

SetBackupTargetPoolRequest message or plain object

callback google.cloud.compute.v1.TargetPools.SetBackupCallback

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

Returns
TypeDescription
void

setBackup(request)

public setBackup(request: google.cloud.compute.v1.ISetBackupTargetPoolRequest): Promise<google.cloud.compute.v1.Operation>;

Calls SetBackup.

Parameter
NameDescription
request ISetBackupTargetPoolRequest

SetBackupTargetPoolRequest message or plain object

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

Promise