Google Cloud BigQuery C++ Client 2.11.0
A C++ Client Library for Google Cloud BigQuery
Loading...
Searching...
No Matches
mock_reservation_connection.h
1// Copyright 2022 Google LLC
2//
3// Licensed under the Apache License, Version 2.0 (the "License");
4// you may not use this file except in compliance with the License.
5// You may obtain a copy of the License at
6//
7// https://www.apache.org/licenses/LICENSE-2.0
8//
9// Unless required by applicable law or agreed to in writing, software
10// distributed under the License is distributed on an "AS IS" BASIS,
11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12// See the License for the specific language governing permissions and
13// limitations under the License.
14
15// Generated by the Codegen C++ plugin.
16// If you make any local changes, they will be lost.
17// source: google/cloud/bigquery/reservation/v1/reservation.proto
18
19#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_RESERVATION_V1_MOCKS_MOCK_RESERVATION_CONNECTION_H
20#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_RESERVATION_V1_MOCKS_MOCK_RESERVATION_CONNECTION_H
21
22#include "google/cloud/bigquery/reservation/v1/reservation_connection.h"
23#include <gmock/gmock.h>
24
25namespace google {
26namespace cloud {
28GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
29
30/**
31 * A class to mock `ReservationServiceConnection`.
32 *
33 * Application developers may want to test their code with simulated responses,
34 * including errors, from an object of type `ReservationServiceClient`. To do
35 * so, construct an object of type `ReservationServiceClient` with an instance
36 * of this class. Then use the Google Test framework functions to program the
37 * behavior of this mock.
38 *
39 * @see [This example][bq-mock] for how to test your application with GoogleTest.
40 * While the example showcases types from the BigQuery library, the underlying
41 * principles apply for any pair of `*Client` and `*Connection`.
42 *
43 * [bq-mock]: @googleapis_dev_link{bigquery,bigquery-read-mock.html}
44 */
47 public:
48 MOCK_METHOD(Options, options, (), (override));
49
50 MOCK_METHOD(
51 StatusOr<google::cloud::bigquery::reservation::v1::Reservation>,
52 CreateReservation,
53 (google::cloud::bigquery::reservation::v1::CreateReservationRequest const&
54 request),
55 (override));
56
57 MOCK_METHOD(
58 StreamRange<google::cloud::bigquery::reservation::v1::Reservation>,
59 ListReservations,
60 (google::cloud::bigquery::reservation::v1::ListReservationsRequest
61 request),
62 (override));
63
64 MOCK_METHOD(
65 StatusOr<google::cloud::bigquery::reservation::v1::Reservation>,
66 GetReservation,
67 (google::cloud::bigquery::reservation::v1::GetReservationRequest const&
68 request),
69 (override));
70
71 MOCK_METHOD(
72 Status, DeleteReservation,
73 (google::cloud::bigquery::reservation::v1::DeleteReservationRequest const&
74 request),
75 (override));
76
77 MOCK_METHOD(
78 StatusOr<google::cloud::bigquery::reservation::v1::Reservation>,
79 UpdateReservation,
80 (google::cloud::bigquery::reservation::v1::UpdateReservationRequest const&
81 request),
82 (override));
83
84 MOCK_METHOD(
85 StatusOr<google::cloud::bigquery::reservation::v1::CapacityCommitment>,
86 CreateCapacityCommitment,
87 (google::cloud::bigquery::reservation::v1::
88 CreateCapacityCommitmentRequest const& request),
89 (override));
90
91 MOCK_METHOD(
92 StreamRange<google::cloud::bigquery::reservation::v1::CapacityCommitment>,
93 ListCapacityCommitments,
94 (google::cloud::bigquery::reservation::v1::ListCapacityCommitmentsRequest
95 request),
96 (override));
97
98 MOCK_METHOD(
99 StatusOr<google::cloud::bigquery::reservation::v1::CapacityCommitment>,
100 GetCapacityCommitment,
101 (google::cloud::bigquery::reservation::v1::
102 GetCapacityCommitmentRequest const& request),
103 (override));
104
105 MOCK_METHOD(Status, DeleteCapacityCommitment,
106 (google::cloud::bigquery::reservation::v1::
107 DeleteCapacityCommitmentRequest const& request),
108 (override));
109
110 MOCK_METHOD(
111 StatusOr<google::cloud::bigquery::reservation::v1::CapacityCommitment>,
112 UpdateCapacityCommitment,
113 (google::cloud::bigquery::reservation::v1::
114 UpdateCapacityCommitmentRequest const& request),
115 (override));
116
117 MOCK_METHOD(StatusOr<google::cloud::bigquery::reservation::v1::
118 SplitCapacityCommitmentResponse>,
119 SplitCapacityCommitment,
120 (google::cloud::bigquery::reservation::v1::
121 SplitCapacityCommitmentRequest const& request),
122 (override));
123
124 MOCK_METHOD(
125 StatusOr<google::cloud::bigquery::reservation::v1::CapacityCommitment>,
126 MergeCapacityCommitments,
127 (google::cloud::bigquery::reservation::v1::
128 MergeCapacityCommitmentsRequest const& request),
129 (override));
130
131 MOCK_METHOD(
132 StatusOr<google::cloud::bigquery::reservation::v1::Assignment>,
133 CreateAssignment,
134 (google::cloud::bigquery::reservation::v1::CreateAssignmentRequest const&
135 request),
136 (override));
137
138 MOCK_METHOD(StreamRange<google::cloud::bigquery::reservation::v1::Assignment>,
139 ListAssignments,
140 (google::cloud::bigquery::reservation::v1::ListAssignmentsRequest
141 request),
142 (override));
143
144 MOCK_METHOD(
145 Status, DeleteAssignment,
146 (google::cloud::bigquery::reservation::v1::DeleteAssignmentRequest const&
147 request),
148 (override));
149
150 MOCK_METHOD(
151 StreamRange<google::cloud::bigquery::reservation::v1::Assignment>,
152 SearchAssignments,
153 (google::cloud::bigquery::reservation::v1::SearchAssignmentsRequest
154 request),
155 (override));
156
157 MOCK_METHOD(
158 StreamRange<google::cloud::bigquery::reservation::v1::Assignment>,
159 SearchAllAssignments,
160 (google::cloud::bigquery::reservation::v1::SearchAllAssignmentsRequest
161 request),
162 (override));
163
164 MOCK_METHOD(
165 StatusOr<google::cloud::bigquery::reservation::v1::Assignment>,
166 MoveAssignment,
167 (google::cloud::bigquery::reservation::v1::MoveAssignmentRequest const&
168 request),
169 (override));
170
171 MOCK_METHOD(
172 StatusOr<google::cloud::bigquery::reservation::v1::Assignment>,
173 UpdateAssignment,
174 (google::cloud::bigquery::reservation::v1::UpdateAssignmentRequest const&
175 request),
176 (override));
177
178 MOCK_METHOD(
179 StatusOr<google::cloud::bigquery::reservation::v1::BiReservation>,
180 GetBiReservation,
181 (google::cloud::bigquery::reservation::v1::GetBiReservationRequest const&
182 request),
183 (override));
184
185 MOCK_METHOD(StatusOr<google::cloud::bigquery::reservation::v1::BiReservation>,
186 UpdateBiReservation,
187 (google::cloud::bigquery::reservation::v1::
188 UpdateBiReservationRequest const& request),
189 (override));
190};
191
192GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
193} // namespace bigquery_reservation_v1_mocks
194} // namespace cloud
195} // namespace google
196
197#endif // GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_BIGQUERY_RESERVATION_V1_MOCKS_MOCK_RESERVATION_CONNECTION_H
The ReservationServiceConnection object for ReservationServiceClient.
Definition: reservation_connection.h:62
A class to mock ReservationServiceConnection.
Definition: mock_reservation_connection.h:46
Definition: mock_reservation_connection.h:27
Definition: reservation_client.h:32
Definition: analytics_hub_client.h:30