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

Represents a RegionInstances

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new RegionInstances service.

Parameters
Name Description
rpcImpl $protobuf.RPCImpl

RPC implementation

requestDelimited boolean

Whether requests are length-delimited

responseDelimited boolean

Whether responses are length-delimited

Methods

bulkInsert(request, callback)

public bulkInsert(request: google.cloud.compute.v1.IBulkInsertRegionInstanceRequest, callback: google.cloud.compute.v1.RegionInstances.BulkInsertCallback): void;

Calls BulkInsert.

Parameters
Name Description
request IBulkInsertRegionInstanceRequest

BulkInsertRegionInstanceRequest message or plain object

callback BulkInsertCallback

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

Returns
Type Description
void

bulkInsert(request)

public bulkInsert(request: google.cloud.compute.v1.IBulkInsertRegionInstanceRequest): Promise<google.cloud.compute.v1.Operation>;

Calls BulkInsert.

Parameter
Name Description
request IBulkInsertRegionInstanceRequest

BulkInsertRegionInstanceRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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