google_cloud_memcache_v1/
stubs.rs1#![allow(rustdoc::broken_intra_doc_links)]
26
27use gax::error::Error;
28use std::sync::Arc;
29
30pub(crate) mod dynamic;
31
32pub trait CloudMemcache: std::fmt::Debug + Send + Sync {
44 fn list_instances(
46 &self,
47 _req: crate::model::ListInstancesRequest,
48 _options: gax::options::RequestOptions,
49 ) -> impl std::future::Future<Output = crate::Result<crate::model::ListInstancesResponse>> + Send
50 {
51 std::future::ready::<crate::Result<crate::model::ListInstancesResponse>>(Err(Error::other(
52 "unimplemented",
53 )))
54 }
55
56 fn get_instance(
58 &self,
59 _req: crate::model::GetInstanceRequest,
60 _options: gax::options::RequestOptions,
61 ) -> impl std::future::Future<Output = crate::Result<crate::model::Instance>> + Send {
62 std::future::ready::<crate::Result<crate::model::Instance>>(Err(Error::other(
63 "unimplemented",
64 )))
65 }
66
67 fn create_instance(
69 &self,
70 _req: crate::model::CreateInstanceRequest,
71 _options: gax::options::RequestOptions,
72 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
73 {
74 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
75 "unimplemented",
76 )))
77 }
78
79 fn update_instance(
81 &self,
82 _req: crate::model::UpdateInstanceRequest,
83 _options: gax::options::RequestOptions,
84 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
85 {
86 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
87 "unimplemented",
88 )))
89 }
90
91 fn update_parameters(
93 &self,
94 _req: crate::model::UpdateParametersRequest,
95 _options: gax::options::RequestOptions,
96 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
97 {
98 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
99 "unimplemented",
100 )))
101 }
102
103 fn delete_instance(
105 &self,
106 _req: crate::model::DeleteInstanceRequest,
107 _options: gax::options::RequestOptions,
108 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
109 {
110 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
111 "unimplemented",
112 )))
113 }
114
115 fn apply_parameters(
117 &self,
118 _req: crate::model::ApplyParametersRequest,
119 _options: gax::options::RequestOptions,
120 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
121 {
122 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
123 "unimplemented",
124 )))
125 }
126
127 fn reschedule_maintenance(
129 &self,
130 _req: crate::model::RescheduleMaintenanceRequest,
131 _options: gax::options::RequestOptions,
132 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
133 {
134 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
135 "unimplemented",
136 )))
137 }
138
139 fn list_locations(
141 &self,
142 _req: location::model::ListLocationsRequest,
143 _options: gax::options::RequestOptions,
144 ) -> impl std::future::Future<Output = crate::Result<location::model::ListLocationsResponse>> + Send
145 {
146 std::future::ready::<crate::Result<location::model::ListLocationsResponse>>(Err(
147 Error::other("unimplemented"),
148 ))
149 }
150
151 fn get_location(
153 &self,
154 _req: location::model::GetLocationRequest,
155 _options: gax::options::RequestOptions,
156 ) -> impl std::future::Future<Output = crate::Result<location::model::Location>> + Send {
157 std::future::ready::<crate::Result<location::model::Location>>(Err(Error::other(
158 "unimplemented",
159 )))
160 }
161
162 fn list_operations(
164 &self,
165 _req: longrunning::model::ListOperationsRequest,
166 _options: gax::options::RequestOptions,
167 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::ListOperationsResponse>>
168 + Send {
169 std::future::ready::<crate::Result<longrunning::model::ListOperationsResponse>>(Err(
170 Error::other("unimplemented"),
171 ))
172 }
173
174 fn get_operation(
176 &self,
177 _req: longrunning::model::GetOperationRequest,
178 _options: gax::options::RequestOptions,
179 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
180 {
181 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
182 "unimplemented",
183 )))
184 }
185
186 fn delete_operation(
188 &self,
189 _req: longrunning::model::DeleteOperationRequest,
190 _options: gax::options::RequestOptions,
191 ) -> impl std::future::Future<Output = crate::Result<wkt::Empty>> + Send {
192 std::future::ready::<crate::Result<wkt::Empty>>(Err(Error::other("unimplemented")))
193 }
194
195 fn cancel_operation(
197 &self,
198 _req: longrunning::model::CancelOperationRequest,
199 _options: gax::options::RequestOptions,
200 ) -> impl std::future::Future<Output = crate::Result<wkt::Empty>> + Send {
201 std::future::ready::<crate::Result<wkt::Empty>>(Err(Error::other("unimplemented")))
202 }
203
204 fn get_polling_policy(
209 &self,
210 _options: &gax::options::RequestOptions,
211 ) -> Arc<dyn gax::polling_policy::PollingPolicy> {
212 Arc::new(gax::polling_policy::Aip194Strict)
213 }
214
215 fn get_polling_backoff_policy(
220 &self,
221 _options: &gax::options::RequestOptions,
222 ) -> Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
223 Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
224 }
225}