google_cloud_datastore_admin_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 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<Output = crate::Result<longrunning::model::Operation>> + Send
50 {
51 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
52 "unimplemented",
53 )))
54 }
55
56 fn import_entities(
58 &self,
59 _req: crate::model::ImportEntitiesRequest,
60 _options: gax::options::RequestOptions,
61 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
62 {
63 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
64 "unimplemented",
65 )))
66 }
67
68 fn create_index(
70 &self,
71 _req: crate::model::CreateIndexRequest,
72 _options: gax::options::RequestOptions,
73 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
74 {
75 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
76 "unimplemented",
77 )))
78 }
79
80 fn delete_index(
82 &self,
83 _req: crate::model::DeleteIndexRequest,
84 _options: gax::options::RequestOptions,
85 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
86 {
87 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
88 "unimplemented",
89 )))
90 }
91
92 fn get_index(
94 &self,
95 _req: crate::model::GetIndexRequest,
96 _options: gax::options::RequestOptions,
97 ) -> impl std::future::Future<Output = crate::Result<crate::model::Index>> + Send {
98 std::future::ready::<crate::Result<crate::model::Index>>(Err(Error::other("unimplemented")))
99 }
100
101 fn list_indexes(
103 &self,
104 _req: crate::model::ListIndexesRequest,
105 _options: gax::options::RequestOptions,
106 ) -> impl std::future::Future<Output = crate::Result<crate::model::ListIndexesResponse>> + Send
107 {
108 std::future::ready::<crate::Result<crate::model::ListIndexesResponse>>(Err(Error::other(
109 "unimplemented",
110 )))
111 }
112
113 fn list_operations(
115 &self,
116 _req: longrunning::model::ListOperationsRequest,
117 _options: gax::options::RequestOptions,
118 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::ListOperationsResponse>>
119 + Send {
120 std::future::ready::<crate::Result<longrunning::model::ListOperationsResponse>>(Err(
121 Error::other("unimplemented"),
122 ))
123 }
124
125 fn get_operation(
127 &self,
128 _req: longrunning::model::GetOperationRequest,
129 _options: gax::options::RequestOptions,
130 ) -> impl std::future::Future<Output = crate::Result<longrunning::model::Operation>> + Send
131 {
132 std::future::ready::<crate::Result<longrunning::model::Operation>>(Err(Error::other(
133 "unimplemented",
134 )))
135 }
136
137 fn delete_operation(
139 &self,
140 _req: longrunning::model::DeleteOperationRequest,
141 _options: gax::options::RequestOptions,
142 ) -> impl std::future::Future<Output = crate::Result<wkt::Empty>> + Send {
143 std::future::ready::<crate::Result<wkt::Empty>>(Err(Error::other("unimplemented")))
144 }
145
146 fn cancel_operation(
148 &self,
149 _req: longrunning::model::CancelOperationRequest,
150 _options: gax::options::RequestOptions,
151 ) -> impl std::future::Future<Output = crate::Result<wkt::Empty>> + Send {
152 std::future::ready::<crate::Result<wkt::Empty>>(Err(Error::other("unimplemented")))
153 }
154
155 fn get_polling_policy(
160 &self,
161 _options: &gax::options::RequestOptions,
162 ) -> Arc<dyn gax::polling_policy::PollingPolicy> {
163 Arc::new(gax::polling_policy::Aip194Strict)
164 }
165
166 fn get_polling_backoff_policy(
171 &self,
172 _options: &gax::options::RequestOptions,
173 ) -> Arc<dyn gax::polling_backoff_policy::PollingBackoffPolicy> {
174 Arc::new(gax::exponential_backoff::ExponentialBackoff::default())
175 }
176}