Google Cloud BigQuery C++ Client  2.6.0
A C++ Client Library for Google Cloud BigQuery
Public Member Functions | List of all members
google::cloud::bigquery_mocks::MockReservationServiceConnection Class Reference

A class to mock ReservationServiceConnection. More...

#include <google/cloud/bigquery/mocks/mock_reservation_connection.h>

Public Member Functions

 MOCK_METHOD (Options, options,(),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::reservation::v1::Reservation >, CreateReservation,(google::cloud::bigquery::reservation::v1::CreateReservationRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::reservation::v1::Reservation >, ListReservations,(google::cloud::bigquery::reservation::v1::ListReservationsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::reservation::v1::Reservation >, GetReservation,(google::cloud::bigquery::reservation::v1::GetReservationRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteReservation,(google::cloud::bigquery::reservation::v1::DeleteReservationRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::reservation::v1::Reservation >, UpdateReservation,(google::cloud::bigquery::reservation::v1::UpdateReservationRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment >, CreateCapacityCommitment,(google::cloud::bigquery::reservation::v1::CreateCapacityCommitmentRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::reservation::v1::CapacityCommitment >, ListCapacityCommitments,(google::cloud::bigquery::reservation::v1::ListCapacityCommitmentsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment >, GetCapacityCommitment,(google::cloud::bigquery::reservation::v1::GetCapacityCommitmentRequest const &request),(override))
 
 MOCK_METHOD (Status, DeleteCapacityCommitment,(google::cloud::bigquery::reservation::v1::DeleteCapacityCommitmentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment >, UpdateCapacityCommitment,(google::cloud::bigquery::reservation::v1::UpdateCapacityCommitmentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::reservation::v1::SplitCapacityCommitmentResponse >, SplitCapacityCommitment,(google::cloud::bigquery::reservation::v1::SplitCapacityCommitmentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment >, MergeCapacityCommitments,(google::cloud::bigquery::reservation::v1::MergeCapacityCommitmentsRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::reservation::v1::Assignment >, CreateAssignment,(google::cloud::bigquery::reservation::v1::CreateAssignmentRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::reservation::v1::Assignment >, ListAssignments,(google::cloud::bigquery::reservation::v1::ListAssignmentsRequest request),(override))
 
 MOCK_METHOD (Status, DeleteAssignment,(google::cloud::bigquery::reservation::v1::DeleteAssignmentRequest const &request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::reservation::v1::Assignment >, SearchAssignments,(google::cloud::bigquery::reservation::v1::SearchAssignmentsRequest request),(override))
 
 MOCK_METHOD (StreamRange< google::cloud::bigquery::reservation::v1::Assignment >, SearchAllAssignments,(google::cloud::bigquery::reservation::v1::SearchAllAssignmentsRequest request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::reservation::v1::Assignment >, MoveAssignment,(google::cloud::bigquery::reservation::v1::MoveAssignmentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::reservation::v1::Assignment >, UpdateAssignment,(google::cloud::bigquery::reservation::v1::UpdateAssignmentRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::reservation::v1::BiReservation >, GetBiReservation,(google::cloud::bigquery::reservation::v1::GetBiReservationRequest const &request),(override))
 
 MOCK_METHOD (StatusOr< google::cloud::bigquery::reservation::v1::BiReservation >, UpdateBiReservation,(google::cloud::bigquery::reservation::v1::UpdateBiReservationRequest const &request),(override))
 
virtual Options options ()
 
virtual StatusOr< google::cloud::bigquery::reservation::v1::Reservation > CreateReservation (google::cloud::bigquery::reservation::v1::CreateReservationRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::reservation::v1::Reservation > ListReservations (google::cloud::bigquery::reservation::v1::ListReservationsRequest request)
 
virtual StatusOr< google::cloud::bigquery::reservation::v1::Reservation > GetReservation (google::cloud::bigquery::reservation::v1::GetReservationRequest const &request)
 
virtual Status DeleteReservation (google::cloud::bigquery::reservation::v1::DeleteReservationRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::reservation::v1::Reservation > UpdateReservation (google::cloud::bigquery::reservation::v1::UpdateReservationRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment > CreateCapacityCommitment (google::cloud::bigquery::reservation::v1::CreateCapacityCommitmentRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::reservation::v1::CapacityCommitment > ListCapacityCommitments (google::cloud::bigquery::reservation::v1::ListCapacityCommitmentsRequest request)
 
virtual StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment > GetCapacityCommitment (google::cloud::bigquery::reservation::v1::GetCapacityCommitmentRequest const &request)
 
virtual Status DeleteCapacityCommitment (google::cloud::bigquery::reservation::v1::DeleteCapacityCommitmentRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment > UpdateCapacityCommitment (google::cloud::bigquery::reservation::v1::UpdateCapacityCommitmentRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::reservation::v1::SplitCapacityCommitmentResponse > SplitCapacityCommitment (google::cloud::bigquery::reservation::v1::SplitCapacityCommitmentRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment > MergeCapacityCommitments (google::cloud::bigquery::reservation::v1::MergeCapacityCommitmentsRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::reservation::v1::Assignment > CreateAssignment (google::cloud::bigquery::reservation::v1::CreateAssignmentRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::reservation::v1::Assignment > ListAssignments (google::cloud::bigquery::reservation::v1::ListAssignmentsRequest request)
 
virtual Status DeleteAssignment (google::cloud::bigquery::reservation::v1::DeleteAssignmentRequest const &request)
 
virtual StreamRange< google::cloud::bigquery::reservation::v1::Assignment > SearchAssignments (google::cloud::bigquery::reservation::v1::SearchAssignmentsRequest request)
 
virtual StreamRange< google::cloud::bigquery::reservation::v1::Assignment > SearchAllAssignments (google::cloud::bigquery::reservation::v1::SearchAllAssignmentsRequest request)
 
virtual StatusOr< google::cloud::bigquery::reservation::v1::Assignment > MoveAssignment (google::cloud::bigquery::reservation::v1::MoveAssignmentRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::reservation::v1::Assignment > UpdateAssignment (google::cloud::bigquery::reservation::v1::UpdateAssignmentRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::reservation::v1::BiReservation > GetBiReservation (google::cloud::bigquery::reservation::v1::GetBiReservationRequest const &request)
 
virtual StatusOr< google::cloud::bigquery::reservation::v1::BiReservation > UpdateBiReservation (google::cloud::bigquery::reservation::v1::UpdateBiReservationRequest const &request)
 

Detailed Description

A class to mock ReservationServiceConnection.

Application developers may want to test their code with simulated responses, including errors, from an object of type ReservationServiceClient. To do so, construct an object of type ReservationServiceClient with an instance of this class. Then use the Google Test framework functions to program the behavior of this mock.

See also
This example for how to test your application with GoogleTest. While the example showcases types from the BigQuery library, the underlying principles apply for any pair of *Client and *Connection.

Definition at line 45 of file mock_reservation_connection.h.

Member Function Documentation

◆ CreateAssignment()

virtual StatusOr<google::cloud::bigquery::reservation::v1::Assignment> google::cloud::bigquery::ReservationServiceConnection::CreateAssignment ( google::cloud::bigquery::reservation::v1::CreateAssignmentRequest const &  request)
virtualinherited

◆ CreateCapacityCommitment()

virtual StatusOr<google::cloud::bigquery::reservation::v1::CapacityCommitment> google::cloud::bigquery::ReservationServiceConnection::CreateCapacityCommitment ( google::cloud::bigquery::reservation::v1::CreateCapacityCommitmentRequest const &  request)
virtualinherited

◆ CreateReservation()

virtual StatusOr<google::cloud::bigquery::reservation::v1::Reservation> google::cloud::bigquery::ReservationServiceConnection::CreateReservation ( google::cloud::bigquery::reservation::v1::CreateReservationRequest const &  request)
virtualinherited

◆ DeleteAssignment()

virtual Status google::cloud::bigquery::ReservationServiceConnection::DeleteAssignment ( google::cloud::bigquery::reservation::v1::DeleteAssignmentRequest const &  request)
virtualinherited

◆ DeleteCapacityCommitment()

virtual Status google::cloud::bigquery::ReservationServiceConnection::DeleteCapacityCommitment ( google::cloud::bigquery::reservation::v1::DeleteCapacityCommitmentRequest const &  request)
virtualinherited

◆ DeleteReservation()

virtual Status google::cloud::bigquery::ReservationServiceConnection::DeleteReservation ( google::cloud::bigquery::reservation::v1::DeleteReservationRequest const &  request)
virtualinherited

◆ GetBiReservation()

virtual StatusOr<google::cloud::bigquery::reservation::v1::BiReservation> google::cloud::bigquery::ReservationServiceConnection::GetBiReservation ( google::cloud::bigquery::reservation::v1::GetBiReservationRequest const &  request)
virtualinherited

◆ GetCapacityCommitment()

virtual StatusOr<google::cloud::bigquery::reservation::v1::CapacityCommitment> google::cloud::bigquery::ReservationServiceConnection::GetCapacityCommitment ( google::cloud::bigquery::reservation::v1::GetCapacityCommitmentRequest const &  request)
virtualinherited

◆ GetReservation()

virtual StatusOr<google::cloud::bigquery::reservation::v1::Reservation> google::cloud::bigquery::ReservationServiceConnection::GetReservation ( google::cloud::bigquery::reservation::v1::GetReservationRequest const &  request)
virtualinherited

◆ ListAssignments()

virtual StreamRange<google::cloud::bigquery::reservation::v1::Assignment> google::cloud::bigquery::ReservationServiceConnection::ListAssignments ( google::cloud::bigquery::reservation::v1::ListAssignmentsRequest  request)
virtualinherited

◆ ListCapacityCommitments()

virtual StreamRange< google::cloud::bigquery::reservation::v1::CapacityCommitment> google::cloud::bigquery::ReservationServiceConnection::ListCapacityCommitments ( google::cloud::bigquery::reservation::v1::ListCapacityCommitmentsRequest  request)
virtualinherited

◆ ListReservations()

virtual StreamRange<google::cloud::bigquery::reservation::v1::Reservation> google::cloud::bigquery::ReservationServiceConnection::ListReservations ( google::cloud::bigquery::reservation::v1::ListReservationsRequest  request)
virtualinherited

◆ MergeCapacityCommitments()

virtual StatusOr<google::cloud::bigquery::reservation::v1::CapacityCommitment> google::cloud::bigquery::ReservationServiceConnection::MergeCapacityCommitments ( google::cloud::bigquery::reservation::v1::MergeCapacityCommitmentsRequest const &  request)
virtualinherited

◆ MOCK_METHOD() [1/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( Options  ,
options  ,
()  ,
(override)   
)

◆ MOCK_METHOD() [2/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( Status  ,
DeleteAssignment  ,
(google::cloud::bigquery::reservation::v1::DeleteAssignmentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [3/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( Status  ,
DeleteCapacityCommitment  ,
(google::cloud::bigquery::reservation::v1::DeleteCapacityCommitmentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [4/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( Status  ,
DeleteReservation  ,
(google::cloud::bigquery::reservation::v1::DeleteReservationRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [5/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::reservation::v1::Assignment >  ,
CreateAssignment  ,
(google::cloud::bigquery::reservation::v1::CreateAssignmentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [6/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::reservation::v1::Assignment >  ,
MoveAssignment  ,
(google::cloud::bigquery::reservation::v1::MoveAssignmentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [7/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::reservation::v1::Assignment >  ,
UpdateAssignment  ,
(google::cloud::bigquery::reservation::v1::UpdateAssignmentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [8/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::reservation::v1::BiReservation >  ,
GetBiReservation  ,
(google::cloud::bigquery::reservation::v1::GetBiReservationRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [9/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::reservation::v1::BiReservation >  ,
UpdateBiReservation  ,
(google::cloud::bigquery::reservation::v1::UpdateBiReservationRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [10/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment >  ,
CreateCapacityCommitment  ,
(google::cloud::bigquery::reservation::v1::CreateCapacityCommitmentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [11/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment >  ,
GetCapacityCommitment  ,
(google::cloud::bigquery::reservation::v1::GetCapacityCommitmentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [12/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment >  ,
MergeCapacityCommitments  ,
(google::cloud::bigquery::reservation::v1::MergeCapacityCommitmentsRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [13/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::reservation::v1::CapacityCommitment >  ,
UpdateCapacityCommitment  ,
(google::cloud::bigquery::reservation::v1::UpdateCapacityCommitmentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [14/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::reservation::v1::Reservation >  ,
CreateReservation  ,
(google::cloud::bigquery::reservation::v1::CreateReservationRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [15/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::reservation::v1::Reservation >  ,
GetReservation  ,
(google::cloud::bigquery::reservation::v1::GetReservationRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [16/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::reservation::v1::Reservation >  ,
UpdateReservation  ,
(google::cloud::bigquery::reservation::v1::UpdateReservationRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [17/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StatusOr< google::cloud::bigquery::reservation::v1::SplitCapacityCommitmentResponse >  ,
SplitCapacityCommitment  ,
(google::cloud::bigquery::reservation::v1::SplitCapacityCommitmentRequest const &request)  ,
(override)   
)

◆ MOCK_METHOD() [18/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::reservation::v1::Assignment >  ,
ListAssignments  ,
(google::cloud::bigquery::reservation::v1::ListAssignmentsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [19/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::reservation::v1::Assignment >  ,
SearchAllAssignments  ,
(google::cloud::bigquery::reservation::v1::SearchAllAssignmentsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [20/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::reservation::v1::Assignment >  ,
SearchAssignments  ,
(google::cloud::bigquery::reservation::v1::SearchAssignmentsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [21/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::reservation::v1::CapacityCommitment >  ,
ListCapacityCommitments  ,
(google::cloud::bigquery::reservation::v1::ListCapacityCommitmentsRequest request)  ,
(override)   
)

◆ MOCK_METHOD() [22/22]

google::cloud::bigquery_mocks::MockReservationServiceConnection::MOCK_METHOD ( StreamRange< google::cloud::bigquery::reservation::v1::Reservation >  ,
ListReservations  ,
(google::cloud::bigquery::reservation::v1::ListReservationsRequest request)  ,
(override)   
)

◆ MoveAssignment()

virtual StatusOr<google::cloud::bigquery::reservation::v1::Assignment> google::cloud::bigquery::ReservationServiceConnection::MoveAssignment ( google::cloud::bigquery::reservation::v1::MoveAssignmentRequest const &  request)
virtualinherited

◆ options()

virtual Options google::cloud::bigquery::ReservationServiceConnection::options ( )
inlinevirtualinherited

Definition at line 65 of file reservation_connection.h.

◆ SearchAllAssignments()

virtual StreamRange<google::cloud::bigquery::reservation::v1::Assignment> google::cloud::bigquery::ReservationServiceConnection::SearchAllAssignments ( google::cloud::bigquery::reservation::v1::SearchAllAssignmentsRequest  request)
virtualinherited

◆ SearchAssignments()

virtual StreamRange<google::cloud::bigquery::reservation::v1::Assignment> google::cloud::bigquery::ReservationServiceConnection::SearchAssignments ( google::cloud::bigquery::reservation::v1::SearchAssignmentsRequest  request)
virtualinherited

◆ SplitCapacityCommitment()

virtual StatusOr< google::cloud::bigquery::reservation::v1::SplitCapacityCommitmentResponse> google::cloud::bigquery::ReservationServiceConnection::SplitCapacityCommitment ( google::cloud::bigquery::reservation::v1::SplitCapacityCommitmentRequest const &  request)
virtualinherited

◆ UpdateAssignment()

virtual StatusOr<google::cloud::bigquery::reservation::v1::Assignment> google::cloud::bigquery::ReservationServiceConnection::UpdateAssignment ( google::cloud::bigquery::reservation::v1::UpdateAssignmentRequest const &  request)
virtualinherited

◆ UpdateBiReservation()

virtual StatusOr<google::cloud::bigquery::reservation::v1::BiReservation> google::cloud::bigquery::ReservationServiceConnection::UpdateBiReservation ( google::cloud::bigquery::reservation::v1::UpdateBiReservationRequest const &  request)
virtualinherited

◆ UpdateCapacityCommitment()

virtual StatusOr<google::cloud::bigquery::reservation::v1::CapacityCommitment> google::cloud::bigquery::ReservationServiceConnection::UpdateCapacityCommitment ( google::cloud::bigquery::reservation::v1::UpdateCapacityCommitmentRequest const &  request)
virtualinherited

◆ UpdateReservation()

virtual StatusOr<google::cloud::bigquery::reservation::v1::Reservation> google::cloud::bigquery::ReservationServiceConnection::UpdateReservation ( google::cloud::bigquery::reservation::v1::UpdateReservationRequest const &  request)
virtualinherited