Class protos.google.cloud.compute.v1.GlobalOperations (3.9.1)

Represents a GlobalOperations

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

Calls AggregatedList.

Parameters
NameDescription
request IAggregatedListGlobalOperationsRequest

AggregatedListGlobalOperationsRequest message or plain object

callback google.cloud.compute.v1.GlobalOperations.AggregatedListCallback

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

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListGlobalOperationsRequest): Promise<google.cloud.compute.v1.OperationAggregatedList>;

Calls AggregatedList.

Parameter
NameDescription
request IAggregatedListGlobalOperationsRequest

AggregatedListGlobalOperationsRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

delete(request, callback)

public delete(request: google.cloud.compute.v1.IDeleteGlobalOperationRequest, callback: google.cloud.compute.v1.GlobalOperations.DeleteCallback): void;

Calls Delete.

Parameters
NameDescription
request IDeleteGlobalOperationRequest

DeleteGlobalOperationRequest message or plain object

callback google.cloud.compute.v1.GlobalOperations.DeleteCallback

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

Returns
TypeDescription
void

delete(request)

public delete(request: google.cloud.compute.v1.IDeleteGlobalOperationRequest): Promise<google.cloud.compute.v1.DeleteGlobalOperationResponse>;

Calls Delete.

Parameter
NameDescription
request IDeleteGlobalOperationRequest

DeleteGlobalOperationRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request IGetGlobalOperationRequest

GetGlobalOperationRequest message or plain object

callback google.cloud.compute.v1.GlobalOperations.GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetGlobalOperationRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Get.

Parameter
NameDescription
request IGetGlobalOperationRequest

GetGlobalOperationRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListGlobalOperationsRequest

ListGlobalOperationsRequest message or plain object

callback google.cloud.compute.v1.GlobalOperations.ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListGlobalOperationsRequest): Promise<google.cloud.compute.v1.OperationList>;

Calls List.

Parameter
NameDescription
request IListGlobalOperationsRequest

ListGlobalOperationsRequest message or plain object

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

Promise

wait(request, callback)

public wait(request: google.cloud.compute.v1.IWaitGlobalOperationRequest, callback: google.cloud.compute.v1.GlobalOperations.WaitCallback): void;

Calls Wait.

Parameters
NameDescription
request IWaitGlobalOperationRequest

WaitGlobalOperationRequest message or plain object

callback google.cloud.compute.v1.GlobalOperations.WaitCallback

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

Returns
TypeDescription
void

wait(request)

public wait(request: google.cloud.compute.v1.IWaitGlobalOperationRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Wait.

Parameter
NameDescription
request IWaitGlobalOperationRequest

WaitGlobalOperationRequest message or plain object

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

Promise