google_cloud_datastore_admin_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 DatastoreAdmin: std::fmt::Debug + Send + Sync {
44 fn export_entities(
46 &self,
47 _req: crate::model::ExportEntitiesRequest,
48 _options: gax::options::RequestOptions,
49 ) -> impl std::future::Future<
50 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
51 > + Send {
52 std::future::ready::<crate::Result<gax::response::Response<longrunning::model::Operation>>>(
53 Err(Error::other("unimplemented")),
54 )
55 }
56
57 fn import_entities(
59 &self,
60 _req: crate::model::ImportEntitiesRequest,
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 create_index(
72 &self,
73 _req: crate::model::CreateIndexRequest,
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 delete_index(
85 &self,
86 _req: crate::model::DeleteIndexRequest,
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 get_index(
98 &self,
99 _req: crate::model::GetIndexRequest,
100 _options: gax::options::RequestOptions,
101 ) -> impl std::future::Future<
102 Output = crate::Result<gax::response::Response<crate::model::Index>>,
103 > + Send {
104 std::future::ready::<crate::Result<gax::response::Response<crate::model::Index>>>(Err(
105 Error::other("unimplemented"),
106 ))
107 }
108
109 fn list_indexes(
111 &self,
112 _req: crate::model::ListIndexesRequest,
113 _options: gax::options::RequestOptions,
114 ) -> impl std::future::Future<
115 Output = crate::Result<gax::response::Response<crate::model::ListIndexesResponse>>,
116 > + Send {
117 std::future::ready::<
118 crate::Result<gax::response::Response<crate::model::ListIndexesResponse>>,
119 >(Err(Error::other("unimplemented")))
120 }
121
122 fn list_operations(
124 &self,
125 _req: longrunning::model::ListOperationsRequest,
126 _options: gax::options::RequestOptions,
127 ) -> impl std::future::Future<
128 Output = crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
129 > + Send {
130 std::future::ready::<
131 crate::Result<gax::response::Response<longrunning::model::ListOperationsResponse>>,
132 >(Err(Error::other("unimplemented")))
133 }
134
135 fn get_operation(
137 &self,
138 _req: longrunning::model::GetOperationRequest,
139 _options: gax::options::RequestOptions,
140 ) -> impl std::future::Future<
141 Output = crate::Result<gax::response::Response<longrunning::model::Operation>>,
142 > + Send {
143 std::future::ready::<crate::Result<gax::response::Response<longrunning::model::Operation>>>(
144 Err(Error::other("unimplemented")),
145 )
146 }
147
148 fn delete_operation(
150 &self,
151 _req: longrunning::model::DeleteOperationRequest,
152 _options: gax::options::RequestOptions,
153 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
154 std::future::ready::<crate::Result<gax::response::Response<()>>>(Err(Error::other(
155 "unimplemented",
156 )))
157 }
158
159 fn cancel_operation(
161 &self,
162 _req: longrunning::model::CancelOperationRequest,
163 _options: gax::options::RequestOptions,
164 ) -> impl std::future::Future<Output = crate::Result<gax::response::Response<()>>> + Send {
165 std::future::ready::<crate::Result<gax::response::Response<()>>>(Err(Error::other(
166 "unimplemented",
167 )))
168 }
169
170 fn get_polling_error_policy(
175 &self,
176 _options: &gax::options::RequestOptions,
177 ) -> Arc<dyn gax::polling_error_policy::PollingErrorPolicy> {
178 Arc::new(gax::polling_error_policy::Aip194Strict)
179 }
180
181 fn get_polling_backoff_policy(
186 &self,
187 _options: &gax::options::RequestOptions,
188 ) -> Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
189 Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
190 }
191}