google_cloud_container_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::ClusterManager].
30///
31/// Application developers may need to implement this trait to mock
32/// `client::ClusterManager`.  In other use-cases, application developers only
33/// use `client::ClusterManager` 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 ClusterManager: std::fmt::Debug + Send + Sync {
41    /// Implements [super::client::ClusterManager::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::ClusterManager::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::ClusterManager::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<crate::model::Operation>>,
70    > + Send {
71        gaxi::unimplemented::unimplemented_stub()
72    }
73
74    /// Implements [super::client::ClusterManager::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<crate::model::Operation>>,
81    > + Send {
82        gaxi::unimplemented::unimplemented_stub()
83    }
84
85    /// Implements [super::client::ClusterManager::update_node_pool].
86    fn update_node_pool(
87        &self,
88        _req: crate::model::UpdateNodePoolRequest,
89        _options: gax::options::RequestOptions,
90    ) -> impl std::future::Future<
91        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
92    > + Send {
93        gaxi::unimplemented::unimplemented_stub()
94    }
95
96    /// Implements [super::client::ClusterManager::set_node_pool_autoscaling].
97    fn set_node_pool_autoscaling(
98        &self,
99        _req: crate::model::SetNodePoolAutoscalingRequest,
100        _options: gax::options::RequestOptions,
101    ) -> impl std::future::Future<
102        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
103    > + Send {
104        gaxi::unimplemented::unimplemented_stub()
105    }
106
107    /// Implements [super::client::ClusterManager::set_logging_service].
108    fn set_logging_service(
109        &self,
110        _req: crate::model::SetLoggingServiceRequest,
111        _options: gax::options::RequestOptions,
112    ) -> impl std::future::Future<
113        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
114    > + Send {
115        gaxi::unimplemented::unimplemented_stub()
116    }
117
118    /// Implements [super::client::ClusterManager::set_monitoring_service].
119    fn set_monitoring_service(
120        &self,
121        _req: crate::model::SetMonitoringServiceRequest,
122        _options: gax::options::RequestOptions,
123    ) -> impl std::future::Future<
124        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
125    > + Send {
126        gaxi::unimplemented::unimplemented_stub()
127    }
128
129    /// Implements [super::client::ClusterManager::set_addons_config].
130    fn set_addons_config(
131        &self,
132        _req: crate::model::SetAddonsConfigRequest,
133        _options: gax::options::RequestOptions,
134    ) -> impl std::future::Future<
135        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
136    > + Send {
137        gaxi::unimplemented::unimplemented_stub()
138    }
139
140    /// Implements [super::client::ClusterManager::set_locations].
141    fn set_locations(
142        &self,
143        _req: crate::model::SetLocationsRequest,
144        _options: gax::options::RequestOptions,
145    ) -> impl std::future::Future<
146        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
147    > + Send {
148        gaxi::unimplemented::unimplemented_stub()
149    }
150
151    /// Implements [super::client::ClusterManager::update_master].
152    fn update_master(
153        &self,
154        _req: crate::model::UpdateMasterRequest,
155        _options: gax::options::RequestOptions,
156    ) -> impl std::future::Future<
157        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
158    > + Send {
159        gaxi::unimplemented::unimplemented_stub()
160    }
161
162    /// Implements [super::client::ClusterManager::set_master_auth].
163    fn set_master_auth(
164        &self,
165        _req: crate::model::SetMasterAuthRequest,
166        _options: gax::options::RequestOptions,
167    ) -> impl std::future::Future<
168        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
169    > + Send {
170        gaxi::unimplemented::unimplemented_stub()
171    }
172
173    /// Implements [super::client::ClusterManager::delete_cluster].
174    fn delete_cluster(
175        &self,
176        _req: crate::model::DeleteClusterRequest,
177        _options: gax::options::RequestOptions,
178    ) -> impl std::future::Future<
179        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
180    > + Send {
181        gaxi::unimplemented::unimplemented_stub()
182    }
183
184    /// Implements [super::client::ClusterManager::list_operations].
185    fn list_operations(
186        &self,
187        _req: crate::model::ListOperationsRequest,
188        _options: gax::options::RequestOptions,
189    ) -> impl std::future::Future<
190        Output = crate::Result<gax::response::Response<crate::model::ListOperationsResponse>>,
191    > + Send {
192        gaxi::unimplemented::unimplemented_stub()
193    }
194
195    /// Implements [super::client::ClusterManager::get_operation].
196    fn get_operation(
197        &self,
198        _req: crate::model::GetOperationRequest,
199        _options: gax::options::RequestOptions,
200    ) -> impl std::future::Future<
201        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
202    > + Send {
203        gaxi::unimplemented::unimplemented_stub()
204    }
205
206    /// Implements [super::client::ClusterManager::cancel_operation].
207    fn cancel_operation(
208        &self,
209        _req: crate::model::CancelOperationRequest,
210        _options: gax::options::RequestOptions,
211    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
212        gaxi::unimplemented::unimplemented_stub()
213    }
214
215    /// Implements [super::client::ClusterManager::get_server_config].
216    fn get_server_config(
217        &self,
218        _req: crate::model::GetServerConfigRequest,
219        _options: gax::options::RequestOptions,
220    ) -> impl std::future::Future<
221        Output = crate::Result<gax::response::Response<crate::model::ServerConfig>>,
222    > + Send {
223        gaxi::unimplemented::unimplemented_stub()
224    }
225
226    /// Implements [super::client::ClusterManager::get_json_web_keys].
227    fn get_json_web_keys(
228        &self,
229        _req: crate::model::GetJSONWebKeysRequest,
230        _options: gax::options::RequestOptions,
231    ) -> impl std::future::Future<
232        Output = crate::Result<gax::response::Response<crate::model::GetJSONWebKeysResponse>>,
233    > + Send {
234        gaxi::unimplemented::unimplemented_stub()
235    }
236
237    /// Implements [super::client::ClusterManager::list_node_pools].
238    fn list_node_pools(
239        &self,
240        _req: crate::model::ListNodePoolsRequest,
241        _options: gax::options::RequestOptions,
242    ) -> impl std::future::Future<
243        Output = crate::Result<gax::response::Response<crate::model::ListNodePoolsResponse>>,
244    > + Send {
245        gaxi::unimplemented::unimplemented_stub()
246    }
247
248    /// Implements [super::client::ClusterManager::get_node_pool].
249    fn get_node_pool(
250        &self,
251        _req: crate::model::GetNodePoolRequest,
252        _options: gax::options::RequestOptions,
253    ) -> impl std::future::Future<
254        Output = crate::Result<gax::response::Response<crate::model::NodePool>>,
255    > + Send {
256        gaxi::unimplemented::unimplemented_stub()
257    }
258
259    /// Implements [super::client::ClusterManager::create_node_pool].
260    fn create_node_pool(
261        &self,
262        _req: crate::model::CreateNodePoolRequest,
263        _options: gax::options::RequestOptions,
264    ) -> impl std::future::Future<
265        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
266    > + Send {
267        gaxi::unimplemented::unimplemented_stub()
268    }
269
270    /// Implements [super::client::ClusterManager::delete_node_pool].
271    fn delete_node_pool(
272        &self,
273        _req: crate::model::DeleteNodePoolRequest,
274        _options: gax::options::RequestOptions,
275    ) -> impl std::future::Future<
276        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
277    > + Send {
278        gaxi::unimplemented::unimplemented_stub()
279    }
280
281    /// Implements [super::client::ClusterManager::complete_node_pool_upgrade].
282    fn complete_node_pool_upgrade(
283        &self,
284        _req: crate::model::CompleteNodePoolUpgradeRequest,
285        _options: gax::options::RequestOptions,
286    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
287        gaxi::unimplemented::unimplemented_stub()
288    }
289
290    /// Implements [super::client::ClusterManager::rollback_node_pool_upgrade].
291    fn rollback_node_pool_upgrade(
292        &self,
293        _req: crate::model::RollbackNodePoolUpgradeRequest,
294        _options: gax::options::RequestOptions,
295    ) -> impl std::future::Future<
296        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
297    > + Send {
298        gaxi::unimplemented::unimplemented_stub()
299    }
300
301    /// Implements [super::client::ClusterManager::set_node_pool_management].
302    fn set_node_pool_management(
303        &self,
304        _req: crate::model::SetNodePoolManagementRequest,
305        _options: gax::options::RequestOptions,
306    ) -> impl std::future::Future<
307        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
308    > + Send {
309        gaxi::unimplemented::unimplemented_stub()
310    }
311
312    /// Implements [super::client::ClusterManager::set_labels].
313    fn set_labels(
314        &self,
315        _req: crate::model::SetLabelsRequest,
316        _options: gax::options::RequestOptions,
317    ) -> impl std::future::Future<
318        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
319    > + Send {
320        gaxi::unimplemented::unimplemented_stub()
321    }
322
323    /// Implements [super::client::ClusterManager::set_legacy_abac].
324    fn set_legacy_abac(
325        &self,
326        _req: crate::model::SetLegacyAbacRequest,
327        _options: gax::options::RequestOptions,
328    ) -> impl std::future::Future<
329        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
330    > + Send {
331        gaxi::unimplemented::unimplemented_stub()
332    }
333
334    /// Implements [super::client::ClusterManager::start_ip_rotation].
335    fn start_ip_rotation(
336        &self,
337        _req: crate::model::StartIPRotationRequest,
338        _options: gax::options::RequestOptions,
339    ) -> impl std::future::Future<
340        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
341    > + Send {
342        gaxi::unimplemented::unimplemented_stub()
343    }
344
345    /// Implements [super::client::ClusterManager::complete_ip_rotation].
346    fn complete_ip_rotation(
347        &self,
348        _req: crate::model::CompleteIPRotationRequest,
349        _options: gax::options::RequestOptions,
350    ) -> impl std::future::Future<
351        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
352    > + Send {
353        gaxi::unimplemented::unimplemented_stub()
354    }
355
356    /// Implements [super::client::ClusterManager::set_node_pool_size].
357    fn set_node_pool_size(
358        &self,
359        _req: crate::model::SetNodePoolSizeRequest,
360        _options: gax::options::RequestOptions,
361    ) -> impl std::future::Future<
362        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
363    > + Send {
364        gaxi::unimplemented::unimplemented_stub()
365    }
366
367    /// Implements [super::client::ClusterManager::set_network_policy].
368    fn set_network_policy(
369        &self,
370        _req: crate::model::SetNetworkPolicyRequest,
371        _options: gax::options::RequestOptions,
372    ) -> impl std::future::Future<
373        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
374    > + Send {
375        gaxi::unimplemented::unimplemented_stub()
376    }
377
378    /// Implements [super::client::ClusterManager::set_maintenance_policy].
379    fn set_maintenance_policy(
380        &self,
381        _req: crate::model::SetMaintenancePolicyRequest,
382        _options: gax::options::RequestOptions,
383    ) -> impl std::future::Future<
384        Output = crate::Result<gax::response::Response<crate::model::Operation>>,
385    > + Send {
386        gaxi::unimplemented::unimplemented_stub()
387    }
388
389    /// Implements [super::client::ClusterManager::list_usable_subnetworks].
390    fn list_usable_subnetworks(
391        &self,
392        _req: crate::model::ListUsableSubnetworksRequest,
393        _options: gax::options::RequestOptions,
394    ) -> impl std::future::Future<
395        Output = crate::Result<
396            gax::response::Response<crate::model::ListUsableSubnetworksResponse>,
397        >,
398    > + Send {
399        gaxi::unimplemented::unimplemented_stub()
400    }
401
402    /// Implements [super::client::ClusterManager::check_autopilot_compatibility].
403    fn check_autopilot_compatibility(
404        &self,
405        _req: crate::model::CheckAutopilotCompatibilityRequest,
406        _options: gax::options::RequestOptions,
407    ) -> impl std::future::Future<
408        Output = crate::Result<
409            gax::response::Response<crate::model::CheckAutopilotCompatibilityResponse>,
410        >,
411    > + Send {
412        gaxi::unimplemented::unimplemented_stub()
413    }
414
415    /// Implements [super::client::ClusterManager::fetch_cluster_upgrade_info].
416    fn fetch_cluster_upgrade_info(
417        &self,
418        _req: crate::model::FetchClusterUpgradeInfoRequest,
419        _options: gax::options::RequestOptions,
420    ) -> impl std::future::Future<
421        Output = crate::Result<gax::response::Response<crate::model::ClusterUpgradeInfo>>,
422    > + Send {
423        gaxi::unimplemented::unimplemented_stub()
424    }
425
426    /// Implements [super::client::ClusterManager::fetch_node_pool_upgrade_info].
427    fn fetch_node_pool_upgrade_info(
428        &self,
429        _req: crate::model::FetchNodePoolUpgradeInfoRequest,
430        _options: gax::options::RequestOptions,
431    ) -> impl std::future::Future<
432        Output = crate::Result<gax::response::Response<crate::model::NodePoolUpgradeInfo>>,
433    > + Send {
434        gaxi::unimplemented::unimplemented_stub()
435    }
436}