Google Cloud BigQuery C++ Client 2.13.0
A C++ Client Library for Google Cloud BigQuery
Loading...
Searching...
No Matches
Public Member Functions | List of all members
google::cloud::bigquery_reservation_v1_mocks::MockReservationServiceConnection Class Reference

A class to mock ReservationServiceConnection. More...

#include <google/cloud/bigquery/reservation/v1/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.

Member Function Documentation

◆ CreateAssignment()

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

◆ CreateCapacityCommitment()

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

◆ CreateReservation()

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

◆ DeleteAssignment()

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

◆ DeleteCapacityCommitment()

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

◆ DeleteReservation()

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

◆ GetBiReservation()

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

◆ GetCapacityCommitment()

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

◆ GetReservation()

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

◆ ListAssignments()

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

◆ ListCapacityCommitments()

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

◆ ListReservations()

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

◆ MergeCapacityCommitments()

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

◆ MOCK_METHOD() [1/22]

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

◆ MOCK_METHOD() [2/22]

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

◆ MOCK_METHOD() [3/22]

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

◆ MOCK_METHOD() [4/22]

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

◆ MOCK_METHOD() [5/22]

google::cloud::bigquery_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1_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_reservation_v1::ReservationServiceConnection::MoveAssignment ( google::cloud::bigquery::reservation::v1::MoveAssignmentRequest const &  request)
virtualinherited

◆ options()

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

◆ SearchAllAssignments()

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

◆ SearchAssignments()

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

◆ SplitCapacityCommitment()

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

◆ UpdateAssignment()

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

◆ UpdateBiReservation()

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

◆ UpdateCapacityCommitment()

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

◆ UpdateReservation()

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