Class protos.google.cloud.compute.v1.RegionCommitments (3.6.0)

Represents a RegionCommitments

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

Calls AggregatedList.

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

AggregatedListRegionCommitmentsRequest message or plain object

callback google.cloud.compute.v1.RegionCommitments.AggregatedListCallback

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

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest): Promise<google.cloud.compute.v1.CommitmentAggregatedList>;

Calls AggregatedList.

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

AggregatedListRegionCommitmentsRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

get(request, callback)

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

Calls Get.

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

GetRegionCommitmentRequest message or plain object

callback google.cloud.compute.v1.RegionCommitments.GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetRegionCommitmentRequest): Promise<google.cloud.compute.v1.Commitment>;

Calls Get.

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

GetRegionCommitmentRequest message or plain object

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

Promise

insert(request, callback)

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

Calls Insert.

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

InsertRegionCommitmentRequest message or plain object

callback google.cloud.compute.v1.RegionCommitments.InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

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

InsertRegionCommitmentRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

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

ListRegionCommitmentsRequest message or plain object

callback google.cloud.compute.v1.RegionCommitments.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListRegionCommitmentsRequest): Promise<google.cloud.compute.v1.CommitmentList>;

Calls List.

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

ListRegionCommitmentsRequest message or plain object

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

Promise

update(request, callback)

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

Calls Update.

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

UpdateRegionCommitmentRequest message or plain object

callback google.cloud.compute.v1.RegionCommitments.UpdateCallback

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

Returns
TypeDescription
void

update(request)

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

Calls Update.

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

UpdateRegionCommitmentRequest message or plain object

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

Promise