google_cloud_iap_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::IdentityAwareProxyAdminService].
30///
31/// Application developers may need to implement this trait to mock
32/// `client::IdentityAwareProxyAdminService`.  In other use-cases, application developers only
33/// use `client::IdentityAwareProxyAdminService` 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 IdentityAwareProxyAdminService: std::fmt::Debug + Send + Sync {
41    /// Implements [super::client::IdentityAwareProxyAdminService::set_iam_policy].
42    fn set_iam_policy(
43        &self,
44        _req: iam_v1::model::SetIamPolicyRequest,
45        _options: gax::options::RequestOptions,
46    ) -> impl std::future::Future<
47        Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
48    > + Send {
49        gaxi::unimplemented::unimplemented_stub()
50    }
51
52    /// Implements [super::client::IdentityAwareProxyAdminService::get_iam_policy].
53    fn get_iam_policy(
54        &self,
55        _req: iam_v1::model::GetIamPolicyRequest,
56        _options: gax::options::RequestOptions,
57    ) -> impl std::future::Future<
58        Output = crate::Result<gax::response::Response<iam_v1::model::Policy>>,
59    > + Send {
60        gaxi::unimplemented::unimplemented_stub()
61    }
62
63    /// Implements [super::client::IdentityAwareProxyAdminService::test_iam_permissions].
64    fn test_iam_permissions(
65        &self,
66        _req: iam_v1::model::TestIamPermissionsRequest,
67        _options: gax::options::RequestOptions,
68    ) -> impl std::future::Future<
69        Output = crate::Result<gax::response::Response<iam_v1::model::TestIamPermissionsResponse>>,
70    > + Send {
71        gaxi::unimplemented::unimplemented_stub()
72    }
73
74    /// Implements [super::client::IdentityAwareProxyAdminService::get_iap_settings].
75    fn get_iap_settings(
76        &self,
77        _req: crate::model::GetIapSettingsRequest,
78        _options: gax::options::RequestOptions,
79    ) -> impl std::future::Future<
80        Output = crate::Result<gax::response::Response<crate::model::IapSettings>>,
81    > + Send {
82        gaxi::unimplemented::unimplemented_stub()
83    }
84
85    /// Implements [super::client::IdentityAwareProxyAdminService::update_iap_settings].
86    fn update_iap_settings(
87        &self,
88        _req: crate::model::UpdateIapSettingsRequest,
89        _options: gax::options::RequestOptions,
90    ) -> impl std::future::Future<
91        Output = crate::Result<gax::response::Response<crate::model::IapSettings>>,
92    > + Send {
93        gaxi::unimplemented::unimplemented_stub()
94    }
95
96    /// Implements [super::client::IdentityAwareProxyAdminService::validate_iap_attribute_expression].
97    fn validate_iap_attribute_expression(
98        &self,
99        _req: crate::model::ValidateIapAttributeExpressionRequest,
100        _options: gax::options::RequestOptions,
101    ) -> impl std::future::Future<
102        Output = crate::Result<
103            gax::response::Response<crate::model::ValidateIapAttributeExpressionResponse>,
104        >,
105    > + Send {
106        gaxi::unimplemented::unimplemented_stub()
107    }
108
109    /// Implements [super::client::IdentityAwareProxyAdminService::list_tunnel_dest_groups].
110    fn list_tunnel_dest_groups(
111        &self,
112        _req: crate::model::ListTunnelDestGroupsRequest,
113        _options: gax::options::RequestOptions,
114    ) -> impl std::future::Future<
115        Output = crate::Result<gax::response::Response<crate::model::ListTunnelDestGroupsResponse>>,
116    > + Send {
117        gaxi::unimplemented::unimplemented_stub()
118    }
119
120    /// Implements [super::client::IdentityAwareProxyAdminService::create_tunnel_dest_group].
121    fn create_tunnel_dest_group(
122        &self,
123        _req: crate::model::CreateTunnelDestGroupRequest,
124        _options: gax::options::RequestOptions,
125    ) -> impl std::future::Future<
126        Output = crate::Result<gax::response::Response<crate::model::TunnelDestGroup>>,
127    > + Send {
128        gaxi::unimplemented::unimplemented_stub()
129    }
130
131    /// Implements [super::client::IdentityAwareProxyAdminService::get_tunnel_dest_group].
132    fn get_tunnel_dest_group(
133        &self,
134        _req: crate::model::GetTunnelDestGroupRequest,
135        _options: gax::options::RequestOptions,
136    ) -> impl std::future::Future<
137        Output = crate::Result<gax::response::Response<crate::model::TunnelDestGroup>>,
138    > + Send {
139        gaxi::unimplemented::unimplemented_stub()
140    }
141
142    /// Implements [super::client::IdentityAwareProxyAdminService::delete_tunnel_dest_group].
143    fn delete_tunnel_dest_group(
144        &self,
145        _req: crate::model::DeleteTunnelDestGroupRequest,
146        _options: gax::options::RequestOptions,
147    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
148        gaxi::unimplemented::unimplemented_stub()
149    }
150
151    /// Implements [super::client::IdentityAwareProxyAdminService::update_tunnel_dest_group].
152    fn update_tunnel_dest_group(
153        &self,
154        _req: crate::model::UpdateTunnelDestGroupRequest,
155        _options: gax::options::RequestOptions,
156    ) -> impl std::future::Future<
157        Output = crate::Result<gax::response::Response<crate::model::TunnelDestGroup>>,
158    > + Send {
159        gaxi::unimplemented::unimplemented_stub()
160    }
161}
162
163/// Defines the trait used to implement [super::client::IdentityAwareProxyOAuthService].
164///
165/// Application developers may need to implement this trait to mock
166/// `client::IdentityAwareProxyOAuthService`.  In other use-cases, application developers only
167/// use `client::IdentityAwareProxyOAuthService` and need not be concerned with this trait or
168/// its implementations.
169///
170/// Services gain new RPCs routinely. Consequently, this trait gains new methods
171/// too. To avoid breaking applications the trait provides a default
172/// implementation of each method. Most of these implementations just return an
173/// error.
174pub trait IdentityAwareProxyOAuthService: std::fmt::Debug + Send + Sync {
175    /// Implements [super::client::IdentityAwareProxyOAuthService::list_brands].
176    fn list_brands(
177        &self,
178        _req: crate::model::ListBrandsRequest,
179        _options: gax::options::RequestOptions,
180    ) -> impl std::future::Future<
181        Output = crate::Result<gax::response::Response<crate::model::ListBrandsResponse>>,
182    > + Send {
183        gaxi::unimplemented::unimplemented_stub()
184    }
185
186    /// Implements [super::client::IdentityAwareProxyOAuthService::create_brand].
187    fn create_brand(
188        &self,
189        _req: crate::model::CreateBrandRequest,
190        _options: gax::options::RequestOptions,
191    ) -> impl std::future::Future<
192        Output = crate::Result<gax::response::Response<crate::model::Brand>>,
193    > + Send {
194        gaxi::unimplemented::unimplemented_stub()
195    }
196
197    /// Implements [super::client::IdentityAwareProxyOAuthService::get_brand].
198    fn get_brand(
199        &self,
200        _req: crate::model::GetBrandRequest,
201        _options: gax::options::RequestOptions,
202    ) -> impl std::future::Future<
203        Output = crate::Result<gax::response::Response<crate::model::Brand>>,
204    > + Send {
205        gaxi::unimplemented::unimplemented_stub()
206    }
207
208    /// Implements [super::client::IdentityAwareProxyOAuthService::create_identity_aware_proxy_client].
209    fn create_identity_aware_proxy_client(
210        &self,
211        _req: crate::model::CreateIdentityAwareProxyClientRequest,
212        _options: gax::options::RequestOptions,
213    ) -> impl std::future::Future<
214        Output = crate::Result<gax::response::Response<crate::model::IdentityAwareProxyClient>>,
215    > + Send {
216        gaxi::unimplemented::unimplemented_stub()
217    }
218
219    /// Implements [super::client::IdentityAwareProxyOAuthService::list_identity_aware_proxy_clients].
220    fn list_identity_aware_proxy_clients(
221        &self,
222        _req: crate::model::ListIdentityAwareProxyClientsRequest,
223        _options: gax::options::RequestOptions,
224    ) -> impl std::future::Future<
225        Output = crate::Result<
226            gax::response::Response<crate::model::ListIdentityAwareProxyClientsResponse>,
227        >,
228    > + Send {
229        gaxi::unimplemented::unimplemented_stub()
230    }
231
232    /// Implements [super::client::IdentityAwareProxyOAuthService::get_identity_aware_proxy_client].
233    fn get_identity_aware_proxy_client(
234        &self,
235        _req: crate::model::GetIdentityAwareProxyClientRequest,
236        _options: gax::options::RequestOptions,
237    ) -> impl std::future::Future<
238        Output = crate::Result<gax::response::Response<crate::model::IdentityAwareProxyClient>>,
239    > + Send {
240        gaxi::unimplemented::unimplemented_stub()
241    }
242
243    /// Implements [super::client::IdentityAwareProxyOAuthService::reset_identity_aware_proxy_client_secret].
244    fn reset_identity_aware_proxy_client_secret(
245        &self,
246        _req: crate::model::ResetIdentityAwareProxyClientSecretRequest,
247        _options: gax::options::RequestOptions,
248    ) -> impl std::future::Future<
249        Output = crate::Result<gax::response::Response<crate::model::IdentityAwareProxyClient>>,
250    > + Send {
251        gaxi::unimplemented::unimplemented_stub()
252    }
253
254    /// Implements [super::client::IdentityAwareProxyOAuthService::delete_identity_aware_proxy_client].
255    fn delete_identity_aware_proxy_client(
256        &self,
257        _req: crate::model::DeleteIdentityAwareProxyClientRequest,
258        _options: gax::options::RequestOptions,
259    ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
260        gaxi::unimplemented::unimplemented_stub()
261    }
262}