Class protos.google.cloud.bigquery.reservation.v1.ReservationService

Represents a ReservationService

Inheritance

$protobuf.rpc.Service > protos.google.cloud.bigquery.reservation.v1.ReservationService

Package

@google-cloud/bigquery-reservation

Constructors

(constructor)(rpcImpl, requestDelimited, responseDelimited)

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

Constructs a new ReservationService service.

Parameters
NameDescription
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): ReservationService;

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

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

createAssignment(request, callback)

public createAssignment(request: google.cloud.bigquery.reservation.v1.ICreateAssignmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.CreateAssignmentCallback): void;

Calls CreateAssignment.

Parameters
NameDescription
request ICreateAssignmentRequest

CreateAssignmentRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.CreateAssignmentCallback

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

Returns
TypeDescription
void

createAssignment(request)

public createAssignment(request: google.cloud.bigquery.reservation.v1.ICreateAssignmentRequest): Promise<google.cloud.bigquery.reservation.v1.Assignment>;

Calls CreateAssignment.

Parameter
NameDescription
request ICreateAssignmentRequest

CreateAssignmentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.Assignment>

Promise

createCapacityCommitment(request, callback)

public createCapacityCommitment(request: google.cloud.bigquery.reservation.v1.ICreateCapacityCommitmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.CreateCapacityCommitmentCallback): void;

Calls CreateCapacityCommitment.

Parameters
NameDescription
request ICreateCapacityCommitmentRequest

CreateCapacityCommitmentRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.CreateCapacityCommitmentCallback

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

Returns
TypeDescription
void

createCapacityCommitment(request)

public createCapacityCommitment(request: google.cloud.bigquery.reservation.v1.ICreateCapacityCommitmentRequest): Promise<google.cloud.bigquery.reservation.v1.CapacityCommitment>;

Calls CreateCapacityCommitment.

Parameter
NameDescription
request ICreateCapacityCommitmentRequest

CreateCapacityCommitmentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.CapacityCommitment>

Promise

createReservation(request, callback)

public createReservation(request: google.cloud.bigquery.reservation.v1.ICreateReservationRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.CreateReservationCallback): void;

Calls CreateReservation.

Parameters
NameDescription
request ICreateReservationRequest

CreateReservationRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.CreateReservationCallback

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

Returns
TypeDescription
void

createReservation(request)

public createReservation(request: google.cloud.bigquery.reservation.v1.ICreateReservationRequest): Promise<google.cloud.bigquery.reservation.v1.Reservation>;

Calls CreateReservation.

Parameter
NameDescription
request ICreateReservationRequest

CreateReservationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.Reservation>

Promise

deleteAssignment(request, callback)

public deleteAssignment(request: google.cloud.bigquery.reservation.v1.IDeleteAssignmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.DeleteAssignmentCallback): void;

Calls DeleteAssignment.

Parameters
NameDescription
request IDeleteAssignmentRequest

DeleteAssignmentRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.DeleteAssignmentCallback

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

Returns
TypeDescription
void

deleteAssignment(request)

public deleteAssignment(request: google.cloud.bigquery.reservation.v1.IDeleteAssignmentRequest): Promise<google.protobuf.Empty>;

Calls DeleteAssignment.

Parameter
NameDescription
request IDeleteAssignmentRequest

DeleteAssignmentRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

deleteCapacityCommitment(request, callback)

public deleteCapacityCommitment(request: google.cloud.bigquery.reservation.v1.IDeleteCapacityCommitmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.DeleteCapacityCommitmentCallback): void;

Calls DeleteCapacityCommitment.

Parameters
NameDescription
request IDeleteCapacityCommitmentRequest

DeleteCapacityCommitmentRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.DeleteCapacityCommitmentCallback

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

Returns
TypeDescription
void

deleteCapacityCommitment(request)

public deleteCapacityCommitment(request: google.cloud.bigquery.reservation.v1.IDeleteCapacityCommitmentRequest): Promise<google.protobuf.Empty>;

Calls DeleteCapacityCommitment.

Parameter
NameDescription
request IDeleteCapacityCommitmentRequest

DeleteCapacityCommitmentRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

deleteReservation(request, callback)

public deleteReservation(request: google.cloud.bigquery.reservation.v1.IDeleteReservationRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservationCallback): void;

Calls DeleteReservation.

Parameters
NameDescription
request IDeleteReservationRequest

DeleteReservationRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.DeleteReservationCallback

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

Returns
TypeDescription
void

deleteReservation(request)

public deleteReservation(request: google.cloud.bigquery.reservation.v1.IDeleteReservationRequest): Promise<google.protobuf.Empty>;

Calls DeleteReservation.

Parameter
NameDescription
request IDeleteReservationRequest

DeleteReservationRequest message or plain object

Returns
TypeDescription
Promise<google.protobuf.Empty>

Promise

getBiReservation(request, callback)

public getBiReservation(request: google.cloud.bigquery.reservation.v1.IGetBiReservationRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.GetBiReservationCallback): void;

Calls GetBiReservation.

Parameters
NameDescription
request IGetBiReservationRequest

GetBiReservationRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.GetBiReservationCallback

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

Returns
TypeDescription
void

getBiReservation(request)

public getBiReservation(request: google.cloud.bigquery.reservation.v1.IGetBiReservationRequest): Promise<google.cloud.bigquery.reservation.v1.BiReservation>;

Calls GetBiReservation.

Parameter
NameDescription
request IGetBiReservationRequest

GetBiReservationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.BiReservation>

Promise

getCapacityCommitment(request, callback)

public getCapacityCommitment(request: google.cloud.bigquery.reservation.v1.IGetCapacityCommitmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.GetCapacityCommitmentCallback): void;

Calls GetCapacityCommitment.

Parameters
NameDescription
request IGetCapacityCommitmentRequest

GetCapacityCommitmentRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.GetCapacityCommitmentCallback

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

Returns
TypeDescription
void

getCapacityCommitment(request)

public getCapacityCommitment(request: google.cloud.bigquery.reservation.v1.IGetCapacityCommitmentRequest): Promise<google.cloud.bigquery.reservation.v1.CapacityCommitment>;

Calls GetCapacityCommitment.

Parameter
NameDescription
request IGetCapacityCommitmentRequest

GetCapacityCommitmentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.CapacityCommitment>

Promise

getReservation(request, callback)

public getReservation(request: google.cloud.bigquery.reservation.v1.IGetReservationRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.GetReservationCallback): void;

Calls GetReservation.

Parameters
NameDescription
request IGetReservationRequest

GetReservationRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.GetReservationCallback

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

Returns
TypeDescription
void

getReservation(request)

public getReservation(request: google.cloud.bigquery.reservation.v1.IGetReservationRequest): Promise<google.cloud.bigquery.reservation.v1.Reservation>;

Calls GetReservation.

Parameter
NameDescription
request IGetReservationRequest

GetReservationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.Reservation>

Promise

listAssignments(request, callback)

public listAssignments(request: google.cloud.bigquery.reservation.v1.IListAssignmentsRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.ListAssignmentsCallback): void;

Calls ListAssignments.

Parameters
NameDescription
request IListAssignmentsRequest

ListAssignmentsRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.ListAssignmentsCallback

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

Returns
TypeDescription
void

listAssignments(request)

public listAssignments(request: google.cloud.bigquery.reservation.v1.IListAssignmentsRequest): Promise<google.cloud.bigquery.reservation.v1.ListAssignmentsResponse>;

Calls ListAssignments.

Parameter
NameDescription
request IListAssignmentsRequest

ListAssignmentsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.ListAssignmentsResponse>

Promise

listCapacityCommitments(request, callback)

public listCapacityCommitments(request: google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitmentsCallback): void;

Calls ListCapacityCommitments.

Parameters
NameDescription
request IListCapacityCommitmentsRequest

ListCapacityCommitmentsRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.ListCapacityCommitmentsCallback

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

Returns
TypeDescription
void

listCapacityCommitments(request)

public listCapacityCommitments(request: google.cloud.bigquery.reservation.v1.IListCapacityCommitmentsRequest): Promise<google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse>;

Calls ListCapacityCommitments.

Parameter
NameDescription
request IListCapacityCommitmentsRequest

ListCapacityCommitmentsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.ListCapacityCommitmentsResponse>

Promise

listReservations(request, callback)

public listReservations(request: google.cloud.bigquery.reservation.v1.IListReservationsRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.ListReservationsCallback): void;

Calls ListReservations.

Parameters
NameDescription
request IListReservationsRequest

ListReservationsRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.ListReservationsCallback

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

Returns
TypeDescription
void

listReservations(request)

public listReservations(request: google.cloud.bigquery.reservation.v1.IListReservationsRequest): Promise<google.cloud.bigquery.reservation.v1.ListReservationsResponse>;

Calls ListReservations.

Parameter
NameDescription
request IListReservationsRequest

ListReservationsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.ListReservationsResponse>

Promise

mergeCapacityCommitments(request, callback)

public mergeCapacityCommitments(request: google.cloud.bigquery.reservation.v1.IMergeCapacityCommitmentsRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.MergeCapacityCommitmentsCallback): void;

Calls MergeCapacityCommitments.

Parameters
NameDescription
request IMergeCapacityCommitmentsRequest

MergeCapacityCommitmentsRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.MergeCapacityCommitmentsCallback

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

Returns
TypeDescription
void

mergeCapacityCommitments(request)

public mergeCapacityCommitments(request: google.cloud.bigquery.reservation.v1.IMergeCapacityCommitmentsRequest): Promise<google.cloud.bigquery.reservation.v1.CapacityCommitment>;

Calls MergeCapacityCommitments.

Parameter
NameDescription
request IMergeCapacityCommitmentsRequest

MergeCapacityCommitmentsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.CapacityCommitment>

Promise

moveAssignment(request, callback)

public moveAssignment(request: google.cloud.bigquery.reservation.v1.IMoveAssignmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.MoveAssignmentCallback): void;

Calls MoveAssignment.

Parameters
NameDescription
request IMoveAssignmentRequest

MoveAssignmentRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.MoveAssignmentCallback

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

Returns
TypeDescription
void

moveAssignment(request)

public moveAssignment(request: google.cloud.bigquery.reservation.v1.IMoveAssignmentRequest): Promise<google.cloud.bigquery.reservation.v1.Assignment>;

Calls MoveAssignment.

Parameter
NameDescription
request IMoveAssignmentRequest

MoveAssignmentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.Assignment>

Promise

searchAllAssignments(request, callback)

public searchAllAssignments(request: google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignmentsCallback): void;

Calls SearchAllAssignments.

Parameters
NameDescription
request ISearchAllAssignmentsRequest

SearchAllAssignmentsRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.SearchAllAssignmentsCallback

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

Returns
TypeDescription
void

searchAllAssignments(request)

public searchAllAssignments(request: google.cloud.bigquery.reservation.v1.ISearchAllAssignmentsRequest): Promise<google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse>;

Calls SearchAllAssignments.

Parameter
NameDescription
request ISearchAllAssignmentsRequest

SearchAllAssignmentsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.SearchAllAssignmentsResponse>

Promise

searchAssignments(request, callback)

public searchAssignments(request: google.cloud.bigquery.reservation.v1.ISearchAssignmentsRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignmentsCallback): void;

Calls SearchAssignments.

Parameters
NameDescription
request ISearchAssignmentsRequest

SearchAssignmentsRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.SearchAssignmentsCallback

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

Returns
TypeDescription
void

searchAssignments(request)

public searchAssignments(request: google.cloud.bigquery.reservation.v1.ISearchAssignmentsRequest): Promise<google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse>;

Calls SearchAssignments.

Parameter
NameDescription
request ISearchAssignmentsRequest

SearchAssignmentsRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.SearchAssignmentsResponse>

Promise

splitCapacityCommitment(request, callback)

public splitCapacityCommitment(request: google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitmentCallback): void;

Calls SplitCapacityCommitment.

Parameters
NameDescription
request ISplitCapacityCommitmentRequest

SplitCapacityCommitmentRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.SplitCapacityCommitmentCallback

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

Returns
TypeDescription
void

splitCapacityCommitment(request)

public splitCapacityCommitment(request: google.cloud.bigquery.reservation.v1.ISplitCapacityCommitmentRequest): Promise<google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse>;

Calls SplitCapacityCommitment.

Parameter
NameDescription
request ISplitCapacityCommitmentRequest

SplitCapacityCommitmentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.SplitCapacityCommitmentResponse>

Promise

updateBiReservation(request, callback)

public updateBiReservation(request: google.cloud.bigquery.reservation.v1.IUpdateBiReservationRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.UpdateBiReservationCallback): void;

Calls UpdateBiReservation.

Parameters
NameDescription
request IUpdateBiReservationRequest

UpdateBiReservationRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.UpdateBiReservationCallback

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

Returns
TypeDescription
void

updateBiReservation(request)

public updateBiReservation(request: google.cloud.bigquery.reservation.v1.IUpdateBiReservationRequest): Promise<google.cloud.bigquery.reservation.v1.BiReservation>;

Calls UpdateBiReservation.

Parameter
NameDescription
request IUpdateBiReservationRequest

UpdateBiReservationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.BiReservation>

Promise

updateCapacityCommitment(request, callback)

public updateCapacityCommitment(request: google.cloud.bigquery.reservation.v1.IUpdateCapacityCommitmentRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.UpdateCapacityCommitmentCallback): void;

Calls UpdateCapacityCommitment.

Parameters
NameDescription
request IUpdateCapacityCommitmentRequest

UpdateCapacityCommitmentRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.UpdateCapacityCommitmentCallback

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

Returns
TypeDescription
void

updateCapacityCommitment(request)

public updateCapacityCommitment(request: google.cloud.bigquery.reservation.v1.IUpdateCapacityCommitmentRequest): Promise<google.cloud.bigquery.reservation.v1.CapacityCommitment>;

Calls UpdateCapacityCommitment.

Parameter
NameDescription
request IUpdateCapacityCommitmentRequest

UpdateCapacityCommitmentRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.CapacityCommitment>

Promise

updateReservation(request, callback)

public updateReservation(request: google.cloud.bigquery.reservation.v1.IUpdateReservationRequest, callback: google.cloud.bigquery.reservation.v1.ReservationService.UpdateReservationCallback): void;

Calls UpdateReservation.

Parameters
NameDescription
request IUpdateReservationRequest

UpdateReservationRequest message or plain object

callback google.cloud.bigquery.reservation.v1.ReservationService.UpdateReservationCallback

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

Returns
TypeDescription
void

updateReservation(request)

public updateReservation(request: google.cloud.bigquery.reservation.v1.IUpdateReservationRequest): Promise<google.cloud.bigquery.reservation.v1.Reservation>;

Calls UpdateReservation.

Parameter
NameDescription
request IUpdateReservationRequest

UpdateReservationRequest message or plain object

Returns
TypeDescription
Promise<google.cloud.bigquery.reservation.v1.Reservation>

Promise