google_cloud_developerconnect_v1/
stub.rs1#![allow(rustdoc::broken_intra_doc_links)]
26
27use gax::error::Error;
28use std::sync::Arc;
29
30pub(crate) mod dynamic;
31
32pub trait DeveloperConnect: std::fmt::Debug + Send + Sync {
44 fn list_connections(
46 &self,
47 _req: crate::model::ListConnectionsRequest,
48 _options: gax::options::RequestOptions,
49 ) -> impl std::future::Future<
50 Output = crate::Result<gax::response::Response<crate::model::ListConnectionsResponse>>,
51 > + Send {
52 std::future::ready::<
53 crate::Result<gax::response::Response<crate::model::ListConnectionsResponse>>,
54 >(Err(Error::other("unimplemented")))
55 }
56
57 fn get_connection(
59 &self,
60 _req: crate::model::GetConnectionRequest,
61 _options: gax::options::RequestOptions,
62 ) -> impl std::future::Future<
63 Output = crate::Result<gax::response::Response<crate::model::Connection>>,
64 > + Send {
65 std::future::ready::<crate::Result<gax::response::Response<crate::model::Connection>>>(Err(
66 Error::other("unimplemented"),
67 ))
68 }
69
70 fn create_connection(
72 &self,
73 _req: crate::model::CreateConnectionRequest,
74 _options: gax::options::RequestOptions,
75 ) -> impl std::future::Future<
76 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
77 > + Send {
78 std::future::ready::<crate::Result<gax::response::Response<longrunning::model::Operation>>>(
79 Err(Error::other("unimplemented")),
80 )
81 }
82
83 fn update_connection(
85 &self,
86 _req: crate::model::UpdateConnectionRequest,
87 _options: gax::options::RequestOptions,
88 ) -> impl std::future::Future<
89 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
90 > + Send {
91 std::future::ready::<crate::Result<gax::response::Response<longrunning::model::Operation>>>(
92 Err(Error::other("unimplemented")),
93 )
94 }
95
96 fn delete_connection(
98 &self,
99 _req: crate::model::DeleteConnectionRequest,
100 _options: gax::options::RequestOptions,
101 ) -> impl std::future::Future<
102 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
103 > + Send {
104 std::future::ready::<crate::Result<gax::response::Response<longrunning::model::Operation>>>(
105 Err(Error::other("unimplemented")),
106 )
107 }
108
109 fn create_git_repository_link(
111 &self,
112 _req: crate::model::CreateGitRepositoryLinkRequest,
113 _options: gax::options::RequestOptions,
114 ) -> impl std::future::Future<
115 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
116 > + Send {
117 std::future::ready::<crate::Result<gax::response::Response<longrunning::model::Operation>>>(
118 Err(Error::other("unimplemented")),
119 )
120 }
121
122 fn delete_git_repository_link(
124 &self,
125 _req: crate::model::DeleteGitRepositoryLinkRequest,
126 _options: gax::options::RequestOptions,
127 ) -> impl std::future::Future<
128 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
129 > + Send {
130 std::future::ready::<crate::Result<gax::response::Response<longrunning::model::Operation>>>(
131 Err(Error::other("unimplemented")),
132 )
133 }
134
135 fn list_git_repository_links(
137 &self,
138 _req: crate::model::ListGitRepositoryLinksRequest,
139 _options: gax::options::RequestOptions,
140 ) -> impl std::future::Future<
141 Output = crate::Result<
142 gax::response::Response<crate::model::ListGitRepositoryLinksResponse>,
143 >,
144 > + Send {
145 std::future::ready::<
146 crate::Result<gax::response::Response<crate::model::ListGitRepositoryLinksResponse>>,
147 >(Err(Error::other("unimplemented")))
148 }
149
150 fn get_git_repository_link(
152 &self,
153 _req: crate::model::GetGitRepositoryLinkRequest,
154 _options: gax::options::RequestOptions,
155 ) -> impl std::future::Future<
156 Output = crate::Result<gax::response::Response<crate::model::GitRepositoryLink>>,
157 > + Send {
158 std::future::ready::<crate::Result<gax::response::Response<crate::model::GitRepositoryLink>>>(
159 Err(Error::other("unimplemented")),
160 )
161 }
162
163 fn fetch_read_write_token(
165 &self,
166 _req: crate::model::FetchReadWriteTokenRequest,
167 _options: gax::options::RequestOptions,
168 ) -> impl std::future::Future<
169 Output = crate::Result<gax::response::Response<crate::model::FetchReadWriteTokenResponse>>,
170 > + Send {
171 std::future::ready::<
172 crate::Result<gax::response::Response<crate::model::FetchReadWriteTokenResponse>>,
173 >(Err(Error::other("unimplemented")))
174 }
175
176 fn fetch_read_token(
178 &self,
179 _req: crate::model::FetchReadTokenRequest,
180 _options: gax::options::RequestOptions,
181 ) -> impl std::future::Future<
182 Output = crate::Result<gax::response::Response<crate::model::FetchReadTokenResponse>>,
183 > + Send {
184 std::future::ready::<
185 crate::Result<gax::response::Response<crate::model::FetchReadTokenResponse>>,
186 >(Err(Error::other("unimplemented")))
187 }
188
189 fn fetch_linkable_git_repositories(
191 &self,
192 _req: crate::model::FetchLinkableGitRepositoriesRequest,
193 _options: gax::options::RequestOptions,
194 ) -> impl std::future::Future<
195 Output = crate::Result<
196 gax::response::Response<crate::model::FetchLinkableGitRepositoriesResponse>,
197 >,
198 > + Send {
199 std::future::ready::<
200 crate::Result<
201 gax::response::Response<crate::model::FetchLinkableGitRepositoriesResponse>,
202 >,
203 >(Err(Error::other("unimplemented")))
204 }
205
206 fn fetch_git_hub_installations(
208 &self,
209 _req: crate::model::FetchGitHubInstallationsRequest,
210 _options: gax::options::RequestOptions,
211 ) -> impl std::future::Future<
212 Output = crate::Result<
213 gax::response::Response<crate::model::FetchGitHubInstallationsResponse>,
214 >,
215 > + Send {
216 std::future::ready::<
217 crate::Result<gax::response::Response<crate::model::FetchGitHubInstallationsResponse>>,
218 >(Err(Error::other("unimplemented")))
219 }
220
221 fn fetch_git_refs(
223 &self,
224 _req: crate::model::FetchGitRefsRequest,
225 _options: gax::options::RequestOptions,
226 ) -> impl std::future::Future<
227 Output = crate::Result<gax::response::Response<crate::model::FetchGitRefsResponse>>,
228 > + Send {
229 std::future::ready::<
230 crate::Result<gax::response::Response<crate::model::FetchGitRefsResponse>>,
231 >(Err(Error::other("unimplemented")))
232 }
233
234 fn list_locations(
236 &self,
237 _req: location::model::ListLocationsRequest,
238 _options: gax::options::RequestOptions,
239 ) -> impl std::future::Future<
240 Output = crate::Result<gax::response::Response<location::model::ListLocationsResponse>>,
241 > + Send {
242 std::future::ready::<
243 crate::Result<gax::response::Response<location::model::ListLocationsResponse>>,
244 >(Err(Error::other("unimplemented")))
245 }
246
247 fn get_location(
249 &self,
250 _req: location::model::GetLocationRequest,
251 _options: gax::options::RequestOptions,
252 ) -> impl std::future::Future<
253 Output = crate::Result<gax::response::Response<location::model::Location>>,
254 > + Send {
255 std::future::ready::<crate::Result<gax::response::Response<location::model::Location>>>(
256 Err(Error::other("unimplemented")),
257 )
258 }
259
260 fn list_operations(
262 &self,
263 _req: longrunning::model::ListOperationsRequest,
264 _options: gax::options::RequestOptions,
265 ) -> impl std::future::Future<
266 Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
267 > + Send {
268 std::future::ready::<
269 crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
270 >(Err(Error::other("unimplemented")))
271 }
272
273 fn get_operation(
275 &self,
276 _req: longrunning::model::GetOperationRequest,
277 _options: gax::options::RequestOptions,
278 ) -> impl std::future::Future<
279 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
280 > + Send {
281 std::future::ready::<crate::Result<gax::response::Response<longrunning::model::Operation>>>(
282 Err(Error::other("unimplemented")),
283 )
284 }
285
286 fn delete_operation(
288 &self,
289 _req: longrunning::model::DeleteOperationRequest,
290 _options: gax::options::RequestOptions,
291 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
292 std::future::ready::<crate::Result<gax::response::Response<()>>>(Err(Error::other(
293 "unimplemented",
294 )))
295 }
296
297 fn cancel_operation(
299 &self,
300 _req: longrunning::model::CancelOperationRequest,
301 _options: gax::options::RequestOptions,
302 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
303 std::future::ready::<crate::Result<gax::response::Response<()>>>(Err(Error::other(
304 "unimplemented",
305 )))
306 }
307
308 fn get_polling_error_policy(
313 &self,
314 _options: &gax::options::RequestOptions,
315 ) -> Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
316 Arc::new(gax::polling_error_policy::Aip194Strict)
317 }
318
319 fn get_polling_backoff_policy(
324 &self,
325 _options: &gax::options::RequestOptions,
326 ) -> Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
327 Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
328 }
329}