Class protos.google.cloud.compute.v1.Reservations (4.1.0)

Represents a Reservations

Inheritance

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

Package

@google-cloud/compute

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

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

Calls AggregatedList.

Parameters
NameDescription
request IAggregatedListReservationsRequest

AggregatedListReservationsRequest message or plain object

callback AggregatedListCallback

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

Returns
TypeDescription
void

aggregatedList(request)

public aggregatedList(request: google.cloud.compute.v1.IAggregatedListReservationsRequest): Promise<google.cloud.compute.v1.ReservationAggregatedList>;

Calls AggregatedList.

Parameter
NameDescription
request IAggregatedListReservationsRequest

AggregatedListReservationsRequest message or plain object

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

Promise

create(rpcImpl, requestDelimited, responseDelimited)

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

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

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

delete(request, callback)

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

Calls Delete.

Parameters
NameDescription
request IDeleteReservationRequest

DeleteReservationRequest message or plain object

callback DeleteCallback

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

Returns
TypeDescription
void

delete(request)

public delete(request: google.cloud.compute.v1.IDeleteReservationRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Delete.

Parameter
NameDescription
request IDeleteReservationRequest

DeleteReservationRequest message or plain object

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

Promise

get(request, callback)

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

Calls Get.

Parameters
NameDescription
request IGetReservationRequest

GetReservationRequest message or plain object

callback GetCallback

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

Returns
TypeDescription
void

get(request)

public get(request: google.cloud.compute.v1.IGetReservationRequest): Promise<google.cloud.compute.v1.Reservation>;

Calls Get.

Parameter
NameDescription
request IGetReservationRequest

GetReservationRequest message or plain object

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

Promise

getIamPolicy(request, callback)

public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyReservationRequest, callback: google.cloud.compute.v1.Reservations.GetIamPolicyCallback): void;

Calls GetIamPolicy.

Parameters
NameDescription
request IGetIamPolicyReservationRequest

GetIamPolicyReservationRequest message or plain object

callback GetIamPolicyCallback

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

Returns
TypeDescription
void

getIamPolicy(request)

public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyReservationRequest): Promise<google.cloud.compute.v1.Policy>;

Calls GetIamPolicy.

Parameter
NameDescription
request IGetIamPolicyReservationRequest

GetIamPolicyReservationRequest message or plain object

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

Promise

insert(request, callback)

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

Calls Insert.

Parameters
NameDescription
request IInsertReservationRequest

InsertReservationRequest message or plain object

callback InsertCallback

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

Returns
TypeDescription
void

insert(request)

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

Calls Insert.

Parameter
NameDescription
request IInsertReservationRequest

InsertReservationRequest message or plain object

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

Promise

list(request, callback)

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

Calls List.

Parameters
NameDescription
request IListReservationsRequest

ListReservationsRequest message or plain object

callback ListCallback

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

Returns
TypeDescription
void

list(request)

public list(request: google.cloud.compute.v1.IListReservationsRequest): Promise<google.cloud.compute.v1.ReservationList>;

Calls List.

Parameter
NameDescription
request IListReservationsRequest

ListReservationsRequest message or plain object

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

Promise

resize(request, callback)

public resize(request: google.cloud.compute.v1.IResizeReservationRequest, callback: google.cloud.compute.v1.Reservations.ResizeCallback): void;

Calls Resize.

Parameters
NameDescription
request IResizeReservationRequest

ResizeReservationRequest message or plain object

callback ResizeCallback

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

Returns
TypeDescription
void

resize(request)

public resize(request: google.cloud.compute.v1.IResizeReservationRequest): Promise<google.cloud.compute.v1.Operation>;

Calls Resize.

Parameter
NameDescription
request IResizeReservationRequest

ResizeReservationRequest message or plain object

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

Promise

setIamPolicy(request, callback)

public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyReservationRequest, callback: google.cloud.compute.v1.Reservations.SetIamPolicyCallback): void;

Calls SetIamPolicy.

Parameters
NameDescription
request ISetIamPolicyReservationRequest

SetIamPolicyReservationRequest message or plain object

callback SetIamPolicyCallback

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

Returns
TypeDescription
void

setIamPolicy(request)

public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyReservationRequest): Promise<google.cloud.compute.v1.Policy>;

Calls SetIamPolicy.

Parameter
NameDescription
request ISetIamPolicyReservationRequest

SetIamPolicyReservationRequest message or plain object

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

Promise

testIamPermissions(request, callback)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsReservationRequest, callback: google.cloud.compute.v1.Reservations.TestIamPermissionsCallback): void;

Calls TestIamPermissions.

Parameters
NameDescription
request ITestIamPermissionsReservationRequest

TestIamPermissionsReservationRequest message or plain object

callback TestIamPermissionsCallback

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

Returns
TypeDescription
void

testIamPermissions(request)

public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsReservationRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;

Calls TestIamPermissions.

Parameter
NameDescription
request ITestIamPermissionsReservationRequest

TestIamPermissionsReservationRequest message or plain object

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

Promise

update(request, callback)

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

Calls Update.

Parameters
NameDescription
request IUpdateReservationRequest

UpdateReservationRequest message or plain object

callback UpdateCallback

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

Returns
TypeDescription
void

update(request)

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

Calls Update.

Parameter
NameDescription
request IUpdateReservationRequest

UpdateReservationRequest message or plain object

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

Promise