google_cloud_edgecontainer_v1/
stub.rs

1// Copyright 2025 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// Code generated by sidekick. DO NOT EDIT.
16
17//! Traits to mock the clients in this library.
18//!
19//! Application developers may need to mock the clients in this library to test
20//! how their application works with different (and sometimes hard to trigger)
21//! client and service behavior. Such test can define mocks implementing the
22//! trait(s) defined in this module, initialize the client with an instance of
23//! this mock in their tests, and verify their application responds as expected.
24
25#![allow(rustdoc::broken_intra_doc_links)]
26
27pub(crate) mod dynamic;
28
29/// Defines the trait used to implement [super::client::EdgeContainer].
30///
31/// Application developers may need to implement this trait to mock
32/// `client::EdgeContainer`.  In other use-cases, application developers only
33/// use `client::EdgeContainer` and need not be concerned with this trait or
34/// its implementations.
35///
36/// Services gain new RPCs routinely. Consequently, this trait gains new methods
37/// too. To avoid breaking applications the trait provides a default
38/// implementation of each method. Most of these implementations just return an
39/// error.
40pub trait EdgeContainer: std::fmt::Debug + Send + Sync {
41    /// Implements [super::client::EdgeContainer::list_clusters].
42    fn list_clusters(
43        &self,
44        _req: crate::model::ListClustersRequest,
45        _options: gax::options::RequestOptions,
46    ) -> impl std::future::Future<
47        Output = crate::Result<gax::response::Response<crate::model::ListClustersResponse>>,
48    > + Send {
49        gaxi::unimplemented::unimplemented_stub()
50    }
51
52    /// Implements [super::client::EdgeContainer::get_cluster].
53    fn get_cluster(
54        &self,
55        _req: crate::model::GetClusterRequest,
56        _options: gax::options::RequestOptions,
57    ) -> impl std::future::Future<
58        Output = crate::Result<gax::response::Response<crate::model::Cluster>>,
59    > + Send {
60        gaxi::unimplemented::unimplemented_stub()
61    }
62
63    /// Implements [super::client::EdgeContainer::create_cluster].
64    fn create_cluster(
65        &self,
66        _req: crate::model::CreateClusterRequest,
67        _options: gax::options::RequestOptions,
68    ) -> impl std::future::Future<
69        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
70    > + Send {
71        gaxi::unimplemented::unimplemented_stub()
72    }
73
74    /// Implements [super::client::EdgeContainer::update_cluster].
75    fn update_cluster(
76        &self,
77        _req: crate::model::UpdateClusterRequest,
78        _options: gax::options::RequestOptions,
79    ) -> impl std::future::Future<
80        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
81    > + Send {
82        gaxi::unimplemented::unimplemented_stub()
83    }
84
85    /// Implements [super::client::EdgeContainer::upgrade_cluster].
86    fn upgrade_cluster(
87        &self,
88        _req: crate::model::UpgradeClusterRequest,
89        _options: gax::options::RequestOptions,
90    ) -> impl std::future::Future<
91        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
92    > + Send {
93        gaxi::unimplemented::unimplemented_stub()
94    }
95
96    /// Implements [super::client::EdgeContainer::delete_cluster].
97    fn delete_cluster(
98        &self,
99        _req: crate::model::DeleteClusterRequest,
100        _options: gax::options::RequestOptions,
101    ) -> impl std::future::Future<
102        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
103    > + Send {
104        gaxi::unimplemented::unimplemented_stub()
105    }
106
107    /// Implements [super::client::EdgeContainer::generate_access_token].
108    fn generate_access_token(
109        &self,
110        _req: crate::model::GenerateAccessTokenRequest,
111        _options: gax::options::RequestOptions,
112    ) -> impl std::future::Future<
113        Output = crate::Result<gax::response::Response<crate::model::GenerateAccessTokenResponse>>,
114    > + Send {
115        gaxi::unimplemented::unimplemented_stub()
116    }
117
118    /// Implements [super::client::EdgeContainer::generate_offline_credential].
119    fn generate_offline_credential(
120        &self,
121        _req: crate::model::GenerateOfflineCredentialRequest,
122        _options: gax::options::RequestOptions,
123    ) -> impl std::future::Future<
124        Output = crate::Result<
125            gax::response::Response<crate::model::GenerateOfflineCredentialResponse>,
126        >,
127    > + Send {
128        gaxi::unimplemented::unimplemented_stub()
129    }
130
131    /// Implements [super::client::EdgeContainer::list_node_pools].
132    fn list_node_pools(
133        &self,
134        _req: crate::model::ListNodePoolsRequest,
135        _options: gax::options::RequestOptions,
136    ) -> impl std::future::Future<
137        Output = crate::Result<gax::response::Response<crate::model::ListNodePoolsResponse>>,
138    > + Send {
139        gaxi::unimplemented::unimplemented_stub()
140    }
141
142    /// Implements [super::client::EdgeContainer::get_node_pool].
143    fn get_node_pool(
144        &self,
145        _req: crate::model::GetNodePoolRequest,
146        _options: gax::options::RequestOptions,
147    ) -> impl std::future::Future<
148        Output = crate::Result<gax::response::Response<crate::model::NodePool>>,
149    > + Send {
150        gaxi::unimplemented::unimplemented_stub()
151    }
152
153    /// Implements [super::client::EdgeContainer::create_node_pool].
154    fn create_node_pool(
155        &self,
156        _req: crate::model::CreateNodePoolRequest,
157        _options: gax::options::RequestOptions,
158    ) -> impl std::future::Future<
159        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
160    > + Send {
161        gaxi::unimplemented::unimplemented_stub()
162    }
163
164    /// Implements [super::client::EdgeContainer::update_node_pool].
165    fn update_node_pool(
166        &self,
167        _req: crate::model::UpdateNodePoolRequest,
168        _options: gax::options::RequestOptions,
169    ) -> impl std::future::Future<
170        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
171    > + Send {
172        gaxi::unimplemented::unimplemented_stub()
173    }
174
175    /// Implements [super::client::EdgeContainer::delete_node_pool].
176    fn delete_node_pool(
177        &self,
178        _req: crate::model::DeleteNodePoolRequest,
179        _options: gax::options::RequestOptions,
180    ) -> impl std::future::Future<
181        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
182    > + Send {
183        gaxi::unimplemented::unimplemented_stub()
184    }
185
186    /// Implements [super::client::EdgeContainer::list_machines].
187    fn list_machines(
188        &self,
189        _req: crate::model::ListMachinesRequest,
190        _options: gax::options::RequestOptions,
191    ) -> impl std::future::Future<
192        Output = crate::Result<gax::response::Response<crate::model::ListMachinesResponse>>,
193    > + Send {
194        gaxi::unimplemented::unimplemented_stub()
195    }
196
197    /// Implements [super::client::EdgeContainer::get_machine].
198    fn get_machine(
199        &self,
200        _req: crate::model::GetMachineRequest,
201        _options: gax::options::RequestOptions,
202    ) -> impl std::future::Future<
203        Output = crate::Result<gax::response::Response<crate::model::Machine>>,
204    > + Send {
205        gaxi::unimplemented::unimplemented_stub()
206    }
207
208    /// Implements [super::client::EdgeContainer::list_vpn_connections].
209    fn list_vpn_connections(
210        &self,
211        _req: crate::model::ListVpnConnectionsRequest,
212        _options: gax::options::RequestOptions,
213    ) -> impl std::future::Future<
214        Output = crate::Result<gax::response::Response<crate::model::ListVpnConnectionsResponse>>,
215    > + Send {
216        gaxi::unimplemented::unimplemented_stub()
217    }
218
219    /// Implements [super::client::EdgeContainer::get_vpn_connection].
220    fn get_vpn_connection(
221        &self,
222        _req: crate::model::GetVpnConnectionRequest,
223        _options: gax::options::RequestOptions,
224    ) -> impl std::future::Future<
225        Output = crate::Result<gax::response::Response<crate::model::VpnConnection>>,
226    > + Send {
227        gaxi::unimplemented::unimplemented_stub()
228    }
229
230    /// Implements [super::client::EdgeContainer::create_vpn_connection].
231    fn create_vpn_connection(
232        &self,
233        _req: crate::model::CreateVpnConnectionRequest,
234        _options: gax::options::RequestOptions,
235    ) -> impl std::future::Future<
236        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
237    > + Send {
238        gaxi::unimplemented::unimplemented_stub()
239    }
240
241    /// Implements [super::client::EdgeContainer::delete_vpn_connection].
242    fn delete_vpn_connection(
243        &self,
244        _req: crate::model::DeleteVpnConnectionRequest,
245        _options: gax::options::RequestOptions,
246    ) -> impl std::future::Future<
247        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
248    > + Send {
249        gaxi::unimplemented::unimplemented_stub()
250    }
251
252    /// Implements [super::client::EdgeContainer::get_server_config].
253    fn get_server_config(
254        &self,
255        _req: crate::model::GetServerConfigRequest,
256        _options: gax::options::RequestOptions,
257    ) -> impl std::future::Future<
258        Output = crate::Result<gax::response::Response<crate::model::ServerConfig>>,
259    > + Send {
260        gaxi::unimplemented::unimplemented_stub()
261    }
262
263    /// Implements [super::client::EdgeContainer::list_locations].
264    fn list_locations(
265        &self,
266        _req: location::model::ListLocationsRequest,
267        _options: gax::options::RequestOptions,
268    ) -> impl std::future::Future<
269        Output = crate::Result<gax::response::Response<location::model::ListLocationsResponse>>,
270    > + Send {
271        gaxi::unimplemented::unimplemented_stub()
272    }
273
274    /// Implements [super::client::EdgeContainer::get_location].
275    fn get_location(
276        &self,
277        _req: location::model::GetLocationRequest,
278        _options: gax::options::RequestOptions,
279    ) -> impl std::future::Future<
280        Output = crate::Result<gax::response::Response<location::model::Location>>,
281    > + Send {
282        gaxi::unimplemented::unimplemented_stub()
283    }
284
285    /// Implements [super::client::EdgeContainer::list_operations].
286    fn list_operations(
287        &self,
288        _req: longrunning::model::ListOperationsRequest,
289        _options: gax::options::RequestOptions,
290    ) -> impl std::future::Future<
291        Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
292    > + Send {
293        gaxi::unimplemented::unimplemented_stub()
294    }
295
296    /// Implements [super::client::EdgeContainer::get_operation].
297    fn get_operation(
298        &self,
299        _req: longrunning::model::GetOperationRequest,
300        _options: gax::options::RequestOptions,
301    ) -> impl std::future::Future<
302        Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
303    > + Send {
304        gaxi::unimplemented::unimplemented_stub()
305    }
306
307    /// Implements [super::client::EdgeContainer::delete_operation].
308    fn delete_operation(
309        &self,
310        _req: longrunning::model::DeleteOperationRequest,
311        _options: gax::options::RequestOptions,
312    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
313        gaxi::unimplemented::unimplemented_stub()
314    }
315
316    /// Implements [super::client::EdgeContainer::cancel_operation].
317    fn cancel_operation(
318        &self,
319        _req: longrunning::model::CancelOperationRequest,
320        _options: gax::options::RequestOptions,
321    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
322        gaxi::unimplemented::unimplemented_stub()
323    }
324
325    /// Returns the polling error policy.
326    ///
327    /// When mocking, this method is typically irrelevant. Do not try to verify
328    /// it is called by your mocks.
329    fn get_polling_error_policy(
330        &self,
331        _options: &gax::options::RequestOptions,
332    ) -> std::sync::Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
333        std::sync::Arc::new(gax::polling_error_policy::Aip194Strict)
334    }
335
336    /// Returns the polling backoff policy.
337    ///
338    /// When mocking, this method is typically irrelevant. Do not try to verify
339    /// it is called by your mocks.
340    fn get_polling_backoff_policy(
341        &self,
342        _options: &gax::options::RequestOptions,
343    ) -> std::sync::Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
344        std::sync::Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
345    }
346}