Class protos.google.cloud.compute.v1.HealthChecks

Represents a HealthChecks

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

Calls AggregatedList.

Parameters
NameDescription
request IAggregatedListHealthChecksRequest

AggregatedListHealthChecksRequest message or plain object

callback google.cloud.compute.v1.HealthChecks.AggregatedListCallback

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

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListHealthChecksRequest): Promise<google.cloud.compute.v1.HealthChecksAggregatedList>;

Calls AggregatedList.

Parameter
NameDescription
request IAggregatedListHealthChecksRequest

AggregatedListHealthChecksRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

delete(request, callback)

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

Calls Delete.

Parameters
NameDescription
request IDeleteHealthCheckRequest

DeleteHealthCheckRequest message or plain object

callback google.cloud.compute.v1.HealthChecks.DeleteCallback

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

Returns
TypeDescription
void

delete(request)

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

Calls Delete.

Parameter
NameDescription
request IDeleteHealthCheckRequest

DeleteHealthCheckRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

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

GetHealthCheckRequest message or plain object

callback google.cloud.compute.v1.HealthChecks.GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetHealthCheckRequest): Promise<google.cloud.compute.v1.HealthCheck>;

Calls Get.

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

GetHealthCheckRequest message or plain object

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

Promise

insert(request, callback)

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

Calls Insert.

Parameters
NameDescription
request IInsertHealthCheckRequest

InsertHealthCheckRequest message or plain object

callback google.cloud.compute.v1.HealthChecks.InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

Parameter
NameDescription
request IInsertHealthCheckRequest

InsertHealthCheckRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListHealthChecksRequest

ListHealthChecksRequest message or plain object

callback google.cloud.compute.v1.HealthChecks.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListHealthChecksRequest): Promise<google.cloud.compute.v1.HealthCheckList>;

Calls List.

Parameter
NameDescription
request IListHealthChecksRequest

ListHealthChecksRequest message or plain object

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

Promise

patch(request, callback)

public patch(request: google.cloud.compute.v1.IPatchHealthCheckRequest, callback: google.cloud.compute.v1.HealthChecks.PatchCallback): void;

Calls Patch.

Parameters
NameDescription
request IPatchHealthCheckRequest

PatchHealthCheckRequest message or plain object

callback google.cloud.compute.v1.HealthChecks.PatchCallback

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

Returns
TypeDescription
void

patch(request)

public patch(request: google.cloud.compute.v1.IPatchHealthCheckRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Patch.

Parameter
NameDescription
request IPatchHealthCheckRequest

PatchHealthCheckRequest message or plain object

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

Promise

update(request, callback)

public update(request: google.cloud.compute.v1.IUpdateHealthCheckRequest, callback: google.cloud.compute.v1.HealthChecks.UpdateCallback): void;

Calls Update.

Parameters
NameDescription
request IUpdateHealthCheckRequest

UpdateHealthCheckRequest message or plain object

callback google.cloud.compute.v1.HealthChecks.UpdateCallback

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

Returns
TypeDescription
void

update(request)

public update(request: google.cloud.compute.v1.IUpdateHealthCheckRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Update.

Parameter
NameDescription
request IUpdateHealthCheckRequest

UpdateHealthCheckRequest message or plain object

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

Promise