Represents a RegionCommitments
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.RegionCommitmentsPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new RegionCommitments service.
Parameters | |
---|---|
Name | Description |
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 | |
---|---|
Name | Description |
request |
IAggregatedListRegionCommitmentsRequest
AggregatedListRegionCommitmentsRequest message or plain object |
callback |
AggregatedListCallback
Node-style callback called with the error, if any, and CommitmentAggregatedList |
Returns | |
---|---|
Type | Description |
void |
aggregatedList(request)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListRegionCommitmentsRequest): Promise<google.cloud.compute.v1.CommitmentAggregatedList>;
Calls AggregatedList.
Parameter | |
---|---|
Name | Description |
request |
IAggregatedListRegionCommitmentsRequest
AggregatedListRegionCommitmentsRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IGetRegionCommitmentRequest
GetRegionCommitmentRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and Commitment |
Returns | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetRegionCommitmentRequest): Promise<google.cloud.compute.v1.Commitment>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetRegionCommitmentRequest
GetRegionCommitmentRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IInsertRegionCommitmentRequest
InsertRegionCommitmentRequest 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.IInsertRegionCommitmentRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
IInsertRegionCommitmentRequest
InsertRegionCommitmentRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IListRegionCommitmentsRequest
ListRegionCommitmentsRequest message or plain object |
callback |
ListCallback
Node-style callback called with the error, if any, and CommitmentList |
Returns | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListRegionCommitmentsRequest): Promise<google.cloud.compute.v1.CommitmentList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListRegionCommitmentsRequest
ListRegionCommitmentsRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IUpdateRegionCommitmentRequest
UpdateRegionCommitmentRequest 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.IUpdateRegionCommitmentRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Update.
Parameter | |
---|---|
Name | Description |
request |
IUpdateRegionCommitmentRequest
UpdateRegionCommitmentRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> |
Promise |