Class protos.google.cloud.compute.v1small.RegionOperations (4.3.0)

Represents a RegionOperations

Inheritance

$protobuf.rpc.Service > protos.google.cloud.compute.v1small.RegionOperations

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

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

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

get(request, callback)

public get(request: google.cloud.compute.v1small.IGetRegionOperationRequest, callback: google.cloud.compute.v1small.RegionOperations.GetCallback): void;

Calls Get.

Parameters
Name Description
request IGetRegionOperationRequest

GetRegionOperationRequest message or plain object

callback GetCallback

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

Returns
Type Description
void

get(request)

public get(request: google.cloud.compute.v1small.IGetRegionOperationRequest): Promise<google.cloud.compute.v1small.Operation>;

Calls Get.

Parameter
Name Description
request IGetRegionOperationRequest

GetRegionOperationRequest message or plain object

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

Promise

wait(request, callback)

public wait(request: google.cloud.compute.v1small.IWaitRegionOperationRequest, callback: google.cloud.compute.v1small.RegionOperations.WaitCallback): void;

Calls Wait.

Parameters
Name Description
request IWaitRegionOperationRequest

WaitRegionOperationRequest message or plain object

callback WaitCallback

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

Returns
Type Description
void

wait(request)

public wait(request: google.cloud.compute.v1small.IWaitRegionOperationRequest): Promise<google.cloud.compute.v1small.Operation>;

Calls Wait.

Parameter
Name Description
request IWaitRegionOperationRequest

WaitRegionOperationRequest message or plain object

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

Promise