google_cloud_datastream_v1/
stubs.rs1#![allow(rustdoc::broken_intra_doc_links)]
26
27use gax::error::Error;
28use std::sync::Arc;
29
30pub(crate) mod dynamic;
31
32pub trait Datastream: std::fmt::Debug + Send + Sync {
44 fn list_connection_profiles(
46 &self,
47 _req: crate::model::ListConnectionProfilesRequest,
48 _options: gax::options::RequestOptions,
49 ) -> impl std::future::Future<Output = crate::Result<crate::model::ListConnectionProfilesResponse>>
50 + Send {
51 std::future::ready::<crate::Result<crate::model::ListConnectionProfilesResponse>>(Err(
52 Error::other("unimplemented"),
53 ))
54 }
55
56 fn get_connection_profile(
58 &self,
59 _req: crate::model::GetConnectionProfileRequest,
60 _options: gax::options::RequestOptions,
61 ) -> impl std::future::Future<Output = crate::Result<crate::model::ConnectionProfile>> + Send
62 {
63 std::future::ready::<crate::Result<crate::model::ConnectionProfile>>(Err(Error::other(
64 "unimplemented",
65 )))
66 }
67
68 fn create_connection_profile(
70 &self,
71 _req: crate::model::CreateConnectionProfileRequest,
72 _options: gax::options::RequestOptions,
73 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
74 {
75 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
76 "unimplemented",
77 )))
78 }
79
80 fn update_connection_profile(
82 &self,
83 _req: crate::model::UpdateConnectionProfileRequest,
84 _options: gax::options::RequestOptions,
85 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
86 {
87 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
88 "unimplemented",
89 )))
90 }
91
92 fn delete_connection_profile(
94 &self,
95 _req: crate::model::DeleteConnectionProfileRequest,
96 _options: gax::options::RequestOptions,
97 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
98 {
99 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
100 "unimplemented",
101 )))
102 }
103
104 fn discover_connection_profile(
106 &self,
107 _req: crate::model::DiscoverConnectionProfileRequest,
108 _options: gax::options::RequestOptions,
109 ) -> impl std::future::Future<
110 Output = crate::Result<crate::model::DiscoverConnectionProfileResponse>,
111 > + Send {
112 std::future::ready::<crate::Result<crate::model::DiscoverConnectionProfileResponse>>(Err(
113 Error::other("unimplemented"),
114 ))
115 }
116
117 fn list_streams(
119 &self,
120 _req: crate::model::ListStreamsRequest,
121 _options: gax::options::RequestOptions,
122 ) -> impl std::future::Future<Output = crate::Result<crate::model::ListStreamsResponse>> + Send
123 {
124 std::future::ready::<crate::Result<crate::model::ListStreamsResponse>>(Err(Error::other(
125 "unimplemented",
126 )))
127 }
128
129 fn get_stream(
131 &self,
132 _req: crate::model::GetStreamRequest,
133 _options: gax::options::RequestOptions,
134 ) -> impl std::future::Future<Output = crate::Result<crate::model::Stream>> + Send {
135 std::future::ready::<crate::Result<crate::model::Stream>>(Err(Error::other(
136 "unimplemented",
137 )))
138 }
139
140 fn create_stream(
142 &self,
143 _req: crate::model::CreateStreamRequest,
144 _options: gax::options::RequestOptions,
145 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
146 {
147 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
148 "unimplemented",
149 )))
150 }
151
152 fn update_stream(
154 &self,
155 _req: crate::model::UpdateStreamRequest,
156 _options: gax::options::RequestOptions,
157 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
158 {
159 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
160 "unimplemented",
161 )))
162 }
163
164 fn delete_stream(
166 &self,
167 _req: crate::model::DeleteStreamRequest,
168 _options: gax::options::RequestOptions,
169 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
170 {
171 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
172 "unimplemented",
173 )))
174 }
175
176 fn run_stream(
178 &self,
179 _req: crate::model::RunStreamRequest,
180 _options: gax::options::RequestOptions,
181 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
182 {
183 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
184 "unimplemented",
185 )))
186 }
187
188 fn get_stream_object(
190 &self,
191 _req: crate::model::GetStreamObjectRequest,
192 _options: gax::options::RequestOptions,
193 ) -> impl std::future::Future<Output = crate::Result<crate::model::StreamObject>> + Send {
194 std::future::ready::<crate::Result<crate::model::StreamObject>>(Err(Error::other(
195 "unimplemented",
196 )))
197 }
198
199 fn lookup_stream_object(
201 &self,
202 _req: crate::model::LookupStreamObjectRequest,
203 _options: gax::options::RequestOptions,
204 ) -> impl std::future::Future<Output = crate::Result<crate::model::StreamObject>> + Send {
205 std::future::ready::<crate::Result<crate::model::StreamObject>>(Err(Error::other(
206 "unimplemented",
207 )))
208 }
209
210 fn list_stream_objects(
212 &self,
213 _req: crate::model::ListStreamObjectsRequest,
214 _options: gax::options::RequestOptions,
215 ) -> impl std::future::Future<Output = crate::Result<crate::model::ListStreamObjectsResponse>> + Send
216 {
217 std::future::ready::<crate::Result<crate::model::ListStreamObjectsResponse>>(Err(
218 Error::other("unimplemented"),
219 ))
220 }
221
222 fn start_backfill_job(
224 &self,
225 _req: crate::model::StartBackfillJobRequest,
226 _options: gax::options::RequestOptions,
227 ) -> impl std::future::Future<Output = crate::Result<crate::model::StartBackfillJobResponse>> + Send
228 {
229 std::future::ready::<crate::Result<crate::model::StartBackfillJobResponse>>(Err(
230 Error::other("unimplemented"),
231 ))
232 }
233
234 fn stop_backfill_job(
236 &self,
237 _req: crate::model::StopBackfillJobRequest,
238 _options: gax::options::RequestOptions,
239 ) -> impl std::future::Future<Output = crate::Result<crate::model::StopBackfillJobResponse>> + Send
240 {
241 std::future::ready::<crate::Result<crate::model::StopBackfillJobResponse>>(Err(
242 Error::other("unimplemented"),
243 ))
244 }
245
246 fn fetch_static_ips(
248 &self,
249 _req: crate::model::FetchStaticIpsRequest,
250 _options: gax::options::RequestOptions,
251 ) -> impl std::future::Future<Output = crate::Result<crate::model::FetchStaticIpsResponse>> + Send
252 {
253 std::future::ready::<crate::Result<crate::model::FetchStaticIpsResponse>>(Err(
254 Error::other("unimplemented"),
255 ))
256 }
257
258 fn create_private_connection(
260 &self,
261 _req: crate::model::CreatePrivateConnectionRequest,
262 _options: gax::options::RequestOptions,
263 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
264 {
265 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
266 "unimplemented",
267 )))
268 }
269
270 fn get_private_connection(
272 &self,
273 _req: crate::model::GetPrivateConnectionRequest,
274 _options: gax::options::RequestOptions,
275 ) -> impl std::future::Future<Output = crate::Result<crate::model::PrivateConnection>> + Send
276 {
277 std::future::ready::<crate::Result<crate::model::PrivateConnection>>(Err(Error::other(
278 "unimplemented",
279 )))
280 }
281
282 fn list_private_connections(
284 &self,
285 _req: crate::model::ListPrivateConnectionsRequest,
286 _options: gax::options::RequestOptions,
287 ) -> impl std::future::Future<Output = crate::Result<crate::model::ListPrivateConnectionsResponse>>
288 + Send {
289 std::future::ready::<crate::Result<crate::model::ListPrivateConnectionsResponse>>(Err(
290 Error::other("unimplemented"),
291 ))
292 }
293
294 fn delete_private_connection(
296 &self,
297 _req: crate::model::DeletePrivateConnectionRequest,
298 _options: gax::options::RequestOptions,
299 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
300 {
301 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
302 "unimplemented",
303 )))
304 }
305
306 fn create_route(
308 &self,
309 _req: crate::model::CreateRouteRequest,
310 _options: gax::options::RequestOptions,
311 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
312 {
313 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
314 "unimplemented",
315 )))
316 }
317
318 fn get_route(
320 &self,
321 _req: crate::model::GetRouteRequest,
322 _options: gax::options::RequestOptions,
323 ) -> impl std::future::Future<Output = crate::Result<crate::model::Route>> + Send {
324 std::future::ready::<crate::Result<crate::model::Route>>(Err(Error::other("unimplemented")))
325 }
326
327 fn list_routes(
329 &self,
330 _req: crate::model::ListRoutesRequest,
331 _options: gax::options::RequestOptions,
332 ) -> impl std::future::Future<Output = crate::Result<crate::model::ListRoutesResponse>> + Send
333 {
334 std::future::ready::<crate::Result<crate::model::ListRoutesResponse>>(Err(Error::other(
335 "unimplemented",
336 )))
337 }
338
339 fn delete_route(
341 &self,
342 _req: crate::model::DeleteRouteRequest,
343 _options: gax::options::RequestOptions,
344 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
345 {
346 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
347 "unimplemented",
348 )))
349 }
350
351 fn list_locations(
353 &self,
354 _req: location::model::ListLocationsRequest,
355 _options: gax::options::RequestOptions,
356 ) -> impl std::future::Future<Output = crate::Result<location::model::ListLocationsResponse>> + Send
357 {
358 std::future::ready::<crate::Result<location::model::ListLocationsResponse>>(Err(
359 Error::other("unimplemented"),
360 ))
361 }
362
363 fn get_location(
365 &self,
366 _req: location::model::GetLocationRequest,
367 _options: gax::options::RequestOptions,
368 ) -> impl std::future::Future<Output = crate::Result<location::model::Location>> + Send {
369 std::future::ready::<crate::Result<location::model::Location>>(Err(Error::other(
370 "unimplemented",
371 )))
372 }
373
374 fn list_operations(
376 &self,
377 _req: longrunning::model::ListOperationsRequest,
378 _options: gax::options::RequestOptions,
379 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::ListOperationsResponse>>
380 + Send {
381 std::future::ready::<crate::Result<longrunning::model::ListOperationsResponse>>(Err(
382 Error::other("unimplemented"),
383 ))
384 }
385
386 fn get_operation(
388 &self,
389 _req: longrunning::model::GetOperationRequest,
390 _options: gax::options::RequestOptions,
391 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
392 {
393 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
394 "unimplemented",
395 )))
396 }
397
398 fn delete_operation(
400 &self,
401 _req: longrunning::model::DeleteOperationRequest,
402 _options: gax::options::RequestOptions,
403 ) -> impl std::future::Future<Output = crate::Result<wkt::Empty>> + Send {
404 std::future::ready::<crate::Result<wkt::Empty>>(Err(Error::other("unimplemented")))
405 }
406
407 fn cancel_operation(
409 &self,
410 _req: longrunning::model::CancelOperationRequest,
411 _options: gax::options::RequestOptions,
412 ) -> impl std::future::Future<Output = crate::Result<wkt::Empty>> + Send {
413 std::future::ready::<crate::Result<wkt::Empty>>(Err(Error::other("unimplemented")))
414 }
415
416 fn get_polling_policy(
421 &self,
422 _options: &gax::options::RequestOptions,
423 ) -> Arc<dyn gax::polling_policy::PollingPolicy> {
424 Arc::new(gax::polling_policy::Aip194Strict)
425 }
426
427 fn get_polling_backoff_policy(
432 &self,
433 _options: &gax::options::RequestOptions,
434 ) -> Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
435 Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
436 }
437}