manta_server/backend_dispatcher/
redfish_endpoint.rs1use super::*;
4
5impl RedfishEndpointTrait for StaticBackendDispatcher {
6 async fn get_all_redfish_endpoints(
7 &self,
8 auth_token: &str,
9 ) -> Result<RedfishEndpointArray, Error> {
10 dispatch!(self, get_all_redfish_endpoints, auth_token)
11 }
12
13 async fn get_redfish_endpoints(
14 &self,
15 auth_token: &str,
16 id: Option<&str>,
17 fqdn: Option<&str>,
18 r#type: Option<&str>,
19 uuid: Option<&str>,
20 macaddr: Option<&str>,
21 ip_address: Option<&str>,
22 last_status: Option<&str>,
23 ) -> Result<RedfishEndpointArray, Error> {
24 dispatch!(
25 self,
26 get_redfish_endpoints,
27 auth_token,
28 id,
29 fqdn,
30 r#type,
31 uuid,
32 macaddr,
33 ip_address,
34 last_status
35 )
36 }
37
38 async fn add_redfish_endpoint(
39 &self,
40 auth_token: &str,
41 redfish_endpoint: &RedfishEndpointArray,
42 ) -> Result<(), Error> {
43 dispatch!(self, add_redfish_endpoint, auth_token, redfish_endpoint)
44 }
45
46 async fn update_redfish_endpoint(
47 &self,
48 auth_token: &str,
49 redfish_endpoint: &RedfishEndpoint,
50 ) -> Result<(), Error> {
51 dispatch!(self, update_redfish_endpoint, auth_token, redfish_endpoint)
52 }
53
54 async fn delete_redfish_endpoint(
55 &self,
56 auth_token: &str,
57 id: &str,
58 ) -> Result<Value, Error> {
59 dispatch!(self, delete_redfish_endpoint, auth_token, id)
60 }
61}