19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_RESERVATION_V1_RESERVATION_CLIENT_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_RESERVATION_V1_RESERVATION_CLIENT_H
22#include "google/cloud/bigquery/reservation/v1/reservation_connection.h"
23#include "google/cloud/future.h"
24#include "google/cloud/options.h"
25#include "google/cloud/polling_policy.h"
26#include "google/cloud/status_or.h"
27#include "google/cloud/version.h"
33GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
95 return a.connection_ == b.connection_;
125 std::string
const& parent,
127 std::string
const& reservation_id,
Options opts
= {});
321 std::string
const& parent,
343 CreateCapacityCommitmentRequest
const& request,
421 GetCapacityCommitmentRequest
const& request,
455 DeleteCapacityCommitmentRequest
const& request,
509 UpdateCapacityCommitmentRequest
const& request,
566 SplitCapacityCommitmentRequest
const& request,
598 std::string
const& parent,
599 std::vector<std::string>
const& capacity_commitment_ids,
625 MergeCapacityCommitmentsRequest
const& request,
680 std::string
const& parent,
1075 std::string
const& name, std::string
const& destination_id,
1239 UpdateBiReservationRequest
const& request,
1247GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
This API allows users to manage their BigQuery reservations.
Definition: reservation_client.h:75
StreamRange< google::cloud::bigquery::reservation::v1::Assignment > ListAssignments(google::cloud::bigquery::reservation::v1::ListAssignmentsRequest request, Options opts={})
Lists assignments.
~ReservationServiceClient()
StatusOr< google::cloud::bigquery::reservation::v1::Reservation > GetReservation(std::string const &name, Options opts={})
Returns information about the reservation.
ReservationServiceClient(ReservationServiceClient const &)=default
StreamRange< google::cloud::bigquery::reservation::v1::Assignment > SearchAllAssignments(std::string const &parent, std::string const &query, Options opts={})
Looks up assignments for a specified resource for a particular region.
StatusOr< google::cloud::bigquery::reservation::v1::Assignment > CreateAssignment(google::cloud::bigquery::reservation::v1::CreateAssignmentRequest const &request, Options opts={})
Creates an assignment object which allows the given project to submit jobs of a certain type using sl...
ReservationServiceClient(ReservationServiceClient &&)=default
StatusOr< google::cloud::bigquery::reservation::v1::SplitCapacityCommitmentResponse > SplitCapacityCommitment(std::string const &name, std::int64_t slot_count, Options opts={})
Splits capacity commitment to two commitments of the same plan and commitment_end_time.
Status DeleteCapacityCommitment(google::cloud::bigquery::reservation::v1::DeleteCapacityCommitmentRequest const &request, Options opts={})
Deletes a capacity commitment.
StatusOr< google::cloud::bigquery::reservation::v1::BiReservation > GetBiReservation(google::cloud::bigquery::reservation::v1::GetBiReservationRequest const &request, Options opts={})
Retrieves a BI reservation.
StreamRange< google::cloud::bigquery::reservation::v1::Assignment > SearchAllAssignments(google::cloud::bigquery::reservation::v1::SearchAllAssignmentsRequest request, Options opts={})
Looks up assignments for a specified resource for a particular region.
StatusOr< google::cloud::bigquery::reservation::v1::Assignment > UpdateAssignment(google::cloud::bigquery::reservation::v1::Assignment const &assignment, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates an existing assignment.
StreamRange< google::cloud::bigquery::reservation::v1::Assignment > SearchAssignments(google::cloud::bigquery::reservation::v1::SearchAssignmentsRequest request, Options opts={})
Deprecated: Looks up assignments for a specified resource for a particular region.
StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment > UpdateCapacityCommitment(google::cloud::bigquery::reservation::v1::UpdateCapacityCommitmentRequest const &request, Options opts={})
Updates an existing capacity commitment.
Status DeleteReservation(google::cloud::bigquery::reservation::v1::DeleteReservationRequest const &request, Options opts={})
Deletes a reservation.
StatusOr< google::cloud::bigquery::reservation::v1::Reservation > CreateReservation(std::string const &parent, google::cloud::bigquery::reservation::v1::Reservation const &reservation, std::string const &reservation_id, Options opts={})
Creates a new reservation resource.
StatusOr< google::cloud::bigquery::reservation::v1::BiReservation > UpdateBiReservation(google::cloud::bigquery::reservation::v1::BiReservation const &bi_reservation, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates a BI reservation.
ReservationServiceClient & operator=(ReservationServiceClient const &)=default
ReservationServiceClient & operator=(ReservationServiceClient &&)=default
StreamRange< google::cloud::bigquery::reservation::v1::CapacityCommitment > ListCapacityCommitments(google::cloud::bigquery::reservation::v1::ListCapacityCommitmentsRequest request, Options opts={})
Lists all the capacity commitments for the admin project.
StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment > GetCapacityCommitment(google::cloud::bigquery::reservation::v1::GetCapacityCommitmentRequest const &request, Options opts={})
Returns information about the capacity commitment.
StatusOr< google::cloud::bigquery::reservation::v1::Assignment > UpdateAssignment(google::cloud::bigquery::reservation::v1::UpdateAssignmentRequest const &request, Options opts={})
Updates an existing assignment.
Status DeleteAssignment(google::cloud::bigquery::reservation::v1::DeleteAssignmentRequest const &request, Options opts={})
Deletes a assignment.
StatusOr< google::cloud::bigquery::reservation::v1::BiReservation > GetBiReservation(std::string const &name, Options opts={})
Retrieves a BI reservation.
StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment > GetCapacityCommitment(std::string const &name, Options opts={})
Returns information about the capacity commitment.
StatusOr< google::cloud::bigquery::reservation::v1::Reservation > UpdateReservation(google::cloud::bigquery::reservation::v1::UpdateReservationRequest const &request, Options opts={})
Updates an existing reservation resource.
StatusOr< google::cloud::bigquery::reservation::v1::BiReservation > UpdateBiReservation(google::cloud::bigquery::reservation::v1::UpdateBiReservationRequest const &request, Options opts={})
Updates a BI reservation.
Status DeleteReservation(std::string const &name, Options opts={})
Deletes a reservation.
StatusOr< google::cloud::bigquery::reservation::v1::Assignment > MoveAssignment(std::string const &name, std::string const &destination_id, Options opts={})
Moves an assignment under a new reservation.
StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment > CreateCapacityCommitment(google::cloud::bigquery::reservation::v1::CreateCapacityCommitmentRequest const &request, Options opts={})
Creates a new capacity commitment resource.
StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment > MergeCapacityCommitments(google::cloud::bigquery::reservation::v1::MergeCapacityCommitmentsRequest const &request, Options opts={})
Merges capacity commitments of the same plan into a single commitment.
StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment > CreateCapacityCommitment(std::string const &parent, google::cloud::bigquery::reservation::v1::CapacityCommitment const &capacity_commitment, Options opts={})
Creates a new capacity commitment resource.
Status DeleteAssignment(std::string const &name, Options opts={})
Deletes a assignment.
Status DeleteCapacityCommitment(std::string const &name, Options opts={})
Deletes a capacity commitment.
StatusOr< google::cloud::bigquery::reservation::v1::Reservation > CreateReservation(google::cloud::bigquery::reservation::v1::CreateReservationRequest const &request, Options opts={})
Creates a new reservation resource.
StreamRange< google::cloud::bigquery::reservation::v1::Reservation > ListReservations(google::cloud::bigquery::reservation::v1::ListReservationsRequest request, Options opts={})
Lists all the reservations for the project in the specified location.
StatusOr< google::cloud::bigquery::reservation::v1::Reservation > GetReservation(google::cloud::bigquery::reservation::v1::GetReservationRequest const &request, Options opts={})
Returns information about the reservation.
StreamRange< google::cloud::bigquery::reservation::v1::Assignment > ListAssignments(std::string const &parent, Options opts={})
Lists assignments.
StatusOr< google::cloud::bigquery::reservation::v1::SplitCapacityCommitmentResponse > SplitCapacityCommitment(google::cloud::bigquery::reservation::v1::SplitCapacityCommitmentRequest const &request, Options opts={})
Splits capacity commitment to two commitments of the same plan and commitment_end_time.
friend bool operator!=(ReservationServiceClient const &a, ReservationServiceClient const &b)
Definition: reservation_client.h:97
StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment > MergeCapacityCommitments(std::string const &parent, std::vector< std::string > const &capacity_commitment_ids, Options opts={})
Merges capacity commitments of the same plan into a single commitment.
StreamRange< google::cloud::bigquery::reservation::v1::CapacityCommitment > ListCapacityCommitments(std::string const &parent, Options opts={})
Lists all the capacity commitments for the admin project.
friend bool operator==(ReservationServiceClient const &a, ReservationServiceClient const &b)
Definition: reservation_client.h:93
StreamRange< google::cloud::bigquery::reservation::v1::Assignment > SearchAssignments(std::string const &parent, std::string const &query, Options opts={})
Deprecated: Looks up assignments for a specified resource for a particular region.
StatusOr< google::cloud::bigquery::reservation::v1::Reservation > UpdateReservation(google::cloud::bigquery::reservation::v1::Reservation const &reservation, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates an existing reservation resource.
StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment > UpdateCapacityCommitment(google::cloud::bigquery::reservation::v1::CapacityCommitment const &capacity_commitment, google::protobuf::FieldMask const &update_mask, Options opts={})
Updates an existing capacity commitment.
StatusOr< google::cloud::bigquery::reservation::v1::Assignment > CreateAssignment(std::string const &parent, google::cloud::bigquery::reservation::v1::Assignment const &assignment, Options opts={})
Creates an assignment object which allows the given project to submit jobs of a certain type using sl...
StreamRange< google::cloud::bigquery::reservation::v1::Reservation > ListReservations(std::string const &parent, Options opts={})
Lists all the reservations for the project in the specified location.
ReservationServiceClient(std::shared_ptr< ReservationServiceConnection > connection, Options opts={})
StatusOr< google::cloud::bigquery::reservation::v1::Assignment > MoveAssignment(google::cloud::bigquery::reservation::v1::MoveAssignmentRequest const &request, Options opts={})
Moves an assignment under a new reservation.
The ReservationServiceConnection object for ReservationServiceClient.
Definition: reservation_connection.h:62
Definition: reservation_client.h:32
Definition: analytics_hub_client.h:30