Class protos.google.cloud.compute.v1.RegionHealthChecks (4.5.0)

Represents a RegionHealthChecks

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new RegionHealthChecks 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): RegionHealthChecks;

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

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

delete(request, callback)

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

Calls Delete.

Parameters
Name Description
request IDeleteRegionHealthCheckRequest

DeleteRegionHealthCheckRequest message or plain object

callback 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.IDeleteRegionHealthCheckRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Delete.

Parameter
Name Description
request IDeleteRegionHealthCheckRequest

DeleteRegionHealthCheckRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

get(request, callback)

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

Calls Get.

Parameters
Name Description
request IGetRegionHealthCheckRequest

GetRegionHealthCheckRequest message or plain object

callback GetCallback

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

Returns
Type Description
void

get(request)

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

Calls Get.

Parameter
Name Description
request IGetRegionHealthCheckRequest

GetRegionHealthCheckRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.HealthCheck>

Promise

insert(request, callback)

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

Calls Insert.

Parameters
Name Description
request IInsertRegionHealthCheckRequest

InsertRegionHealthCheckRequest message or plain object

callback 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.IInsertRegionHealthCheckRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Insert.

Parameter
Name Description
request IInsertRegionHealthCheckRequest

InsertRegionHealthCheckRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

list(request, callback)

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

Calls List.

Parameters
Name Description
request IListRegionHealthChecksRequest

ListRegionHealthChecksRequest message or plain object

callback ListCallback

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

Returns
Type Description
void

list(request)

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

Calls List.

Parameter
Name Description
request IListRegionHealthChecksRequest

ListRegionHealthChecksRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.HealthCheckList>

Promise

patch(request, callback)

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

Calls Patch.

Parameters
Name Description
request IPatchRegionHealthCheckRequest

PatchRegionHealthCheckRequest message or plain object

callback 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.IPatchRegionHealthCheckRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Patch.

Parameter
Name Description
request IPatchRegionHealthCheckRequest

PatchRegionHealthCheckRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise

update(request, callback)

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

Calls Update.

Parameters
Name Description
request IUpdateRegionHealthCheckRequest

UpdateRegionHealthCheckRequest message or plain object

callback UpdateCallback

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

Returns
Type Description
void

update(request)

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

Calls Update.

Parameter
Name Description
request IUpdateRegionHealthCheckRequest

UpdateRegionHealthCheckRequest message or plain object

Returns
Type Description
Promise<google.cloud.compute.v1.Operation>

Promise