Represents a ZoneOperations
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.ZoneOperationsPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new ZoneOperations 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): ZoneOperations;
Creates new ZoneOperations 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 |
ZoneOperations | RPC service. Useful where requests and/or responses are streamed. |
delete(request, callback)
public delete(request: google.cloud.compute.v1.IDeleteZoneOperationRequest, callback: google.cloud.compute.v1.ZoneOperations.DeleteCallback): void;
Calls Delete.
Parameters | |
---|---|
Name | Description |
request |
IDeleteZoneOperationRequest
DeleteZoneOperationRequest message or plain object |
callback |
DeleteCallback
Node-style callback called with the error, if any, and DeleteZoneOperationResponse |
Returns | |
---|---|
Type | Description |
void |
delete(request)
public delete(request: google.cloud.compute.v1.IDeleteZoneOperationRequest): Promise<google.cloud.compute.v1.DeleteZoneOperationResponse>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
IDeleteZoneOperationRequest
DeleteZoneOperationRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.DeleteZoneOperationResponse> | Promise |
get(request, callback)
public get(request: google.cloud.compute.v1.IGetZoneOperationRequest, callback: google.cloud.compute.v1.ZoneOperations.GetCallback): void;
Calls Get.
Parameters | |
---|---|
Name | Description |
request |
IGetZoneOperationRequest
GetZoneOperationRequest 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.v1.IGetZoneOperationRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetZoneOperationRequest
GetZoneOperationRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |
list(request, callback)
public list(request: google.cloud.compute.v1.IListZoneOperationsRequest, callback: google.cloud.compute.v1.ZoneOperations.ListCallback): void;
Calls List.
Parameters | |
---|---|
Name | Description |
request |
IListZoneOperationsRequest
ListZoneOperationsRequest message or plain object |
callback |
ListCallback
Node-style callback called with the error, if any, and OperationList |
Returns | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListZoneOperationsRequest): Promise<google.cloud.compute.v1.OperationList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListZoneOperationsRequest
ListZoneOperationsRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.OperationList> | Promise |
wait(request, callback)
public wait(request: google.cloud.compute.v1.IWaitZoneOperationRequest, callback: google.cloud.compute.v1.ZoneOperations.WaitCallback): void;
Calls Wait.
Parameters | |
---|---|
Name | Description |
request |
IWaitZoneOperationRequest
WaitZoneOperationRequest 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.v1.IWaitZoneOperationRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Wait.
Parameter | |
---|---|
Name | Description |
request |
IWaitZoneOperationRequest
WaitZoneOperationRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |