google_cloud_shell_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 CloudShellService: std::fmt::Debug + Send + Sync {
44 fn get_environment(
46 &self,
47 _req: crate::model::GetEnvironmentRequest,
48 _options: gax::options::RequestOptions,
49 ) -> impl std::future::Future<
50 Output = crate::Result<gax::response::Response<crate::model::Environment>>,
51 > + Send {
52 std::future::ready::<crate::Result<gax::response::Response<crate::model::Environment>>>(
53 Err(Error::other("unimplemented")),
54 )
55 }
56
57 fn start_environment(
59 &self,
60 _req: crate::model::StartEnvironmentRequest,
61 _options: gax::options::RequestOptions,
62 ) -> impl std::future::Future<
63 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
64 > + Send {
65 std::future::ready::<crate::Result<gax::response::Response<longrunning::model::Operation>>>(
66 Err(Error::other("unimplemented")),
67 )
68 }
69
70 fn authorize_environment(
72 &self,
73 _req: crate::model::AuthorizeEnvironmentRequest,
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 add_public_key(
85 &self,
86 _req: crate::model::AddPublicKeyRequest,
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 remove_public_key(
98 &self,
99 _req: crate::model::RemovePublicKeyRequest,
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 get_operation(
111 &self,
112 _req: longrunning::model::GetOperationRequest,
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 get_polling_error_policy(
127 &self,
128 _options: &gax::options::RequestOptions,
129 ) -> Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
130 Arc::new(gax::polling_error_policy::Aip194Strict)
131 }
132
133 fn get_polling_backoff_policy(
138 &self,
139 _options: &gax::options::RequestOptions,
140 ) -> Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
141 Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
142 }
143}