Represents a Reservations
Inheritance
$protobuf.rpc.Service > protos.google.cloud.compute.v1.ReservationsPackage
@google-cloud/computeConstructors
(constructor)(rpcImpl, requestDelimited, responseDelimited)
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
Constructs a new Reservations 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.IAggregatedListReservationsRequest, callback: google.cloud.compute.v1.Reservations.AggregatedListCallback): void;
Calls AggregatedList.
Parameters | |
---|---|
Name | Description |
request |
IAggregatedListReservationsRequest
AggregatedListReservationsRequest message or plain object |
callback |
AggregatedListCallback
Node-style callback called with the error, if any, and ReservationAggregatedList |
Returns | |
---|---|
Type | Description |
void |
aggregatedList(request)
public aggregatedList(request: google.cloud.compute.v1.IAggregatedListReservationsRequest): Promise<google.cloud.compute.v1.ReservationAggregatedList>;
Calls AggregatedList.
Parameter | |
---|---|
Name | Description |
request |
IAggregatedListReservationsRequest
AggregatedListReservationsRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
rpcImpl |
$protobuf.RPCImpl
RPC implementation |
requestDelimited |
boolean
Whether requests are length-delimited |
responseDelimited |
boolean
Whether responses are length-delimited |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IDeleteReservationRequest
DeleteReservationRequest message or plain object |
callback |
DeleteCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
delete(request)
public delete(request: google.cloud.compute.v1.IDeleteReservationRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Delete.
Parameter | |
---|---|
Name | Description |
request |
IDeleteReservationRequest
DeleteReservationRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IGetReservationRequest
GetReservationRequest message or plain object |
callback |
GetCallback
Node-style callback called with the error, if any, and Reservation |
Returns | |
---|---|
Type | Description |
void |
get(request)
public get(request: google.cloud.compute.v1.IGetReservationRequest): Promise<google.cloud.compute.v1.Reservation>;
Calls Get.
Parameter | |
---|---|
Name | Description |
request |
IGetReservationRequest
GetReservationRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IGetIamPolicyReservationRequest
GetIamPolicyReservationRequest message or plain object |
callback |
GetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
Returns | |
---|---|
Type | Description |
void |
getIamPolicy(request)
public getIamPolicy(request: google.cloud.compute.v1.IGetIamPolicyReservationRequest): Promise<google.cloud.compute.v1.Policy>;
Calls GetIamPolicy.
Parameter | |
---|---|
Name | Description |
request |
IGetIamPolicyReservationRequest
GetIamPolicyReservationRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IInsertReservationRequest
InsertReservationRequest 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.IInsertReservationRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Insert.
Parameter | |
---|---|
Name | Description |
request |
IInsertReservationRequest
InsertReservationRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IListReservationsRequest
ListReservationsRequest message or plain object |
callback |
ListCallback
Node-style callback called with the error, if any, and ReservationList |
Returns | |
---|---|
Type | Description |
void |
list(request)
public list(request: google.cloud.compute.v1.IListReservationsRequest): Promise<google.cloud.compute.v1.ReservationList>;
Calls List.
Parameter | |
---|---|
Name | Description |
request |
IListReservationsRequest
ListReservationsRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IResizeReservationRequest
ResizeReservationRequest message or plain object |
callback |
ResizeCallback
Node-style callback called with the error, if any, and Operation |
Returns | |
---|---|
Type | Description |
void |
resize(request)
public resize(request: google.cloud.compute.v1.IResizeReservationRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Resize.
Parameter | |
---|---|
Name | Description |
request |
IResizeReservationRequest
ResizeReservationRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
ISetIamPolicyReservationRequest
SetIamPolicyReservationRequest message or plain object |
callback |
SetIamPolicyCallback
Node-style callback called with the error, if any, and Policy |
Returns | |
---|---|
Type | Description |
void |
setIamPolicy(request)
public setIamPolicy(request: google.cloud.compute.v1.ISetIamPolicyReservationRequest): Promise<google.cloud.compute.v1.Policy>;
Calls SetIamPolicy.
Parameter | |
---|---|
Name | Description |
request |
ISetIamPolicyReservationRequest
SetIamPolicyReservationRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
ITestIamPermissionsReservationRequest
TestIamPermissionsReservationRequest message or plain object |
callback |
TestIamPermissionsCallback
Node-style callback called with the error, if any, and TestPermissionsResponse |
Returns | |
---|---|
Type | Description |
void |
testIamPermissions(request)
public testIamPermissions(request: google.cloud.compute.v1.ITestIamPermissionsReservationRequest): Promise<google.cloud.compute.v1.TestPermissionsResponse>;
Calls TestIamPermissions.
Parameter | |
---|---|
Name | Description |
request |
ITestIamPermissionsReservationRequest
TestIamPermissionsReservationRequest message or plain object |
Returns | |
---|---|
Type | Description |
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 | |
---|---|
Name | Description |
request |
IUpdateReservationRequest
UpdateReservationRequest 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.IUpdateReservationRequest): Promise<google.cloud.compute.v1.Operation>;
Calls Update.
Parameter | |
---|---|
Name | Description |
request |
IUpdateReservationRequest
UpdateReservationRequest message or plain object |
Returns | |
---|---|
Type | Description |
Promise<google.cloud.compute.v1.Operation> | Promise |