1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
// @generated — do not edit; run `cargo run -p nifi-openapi-gen`
#[allow(unused_imports)]
use crate::NifiError;
#[allow(unused_imports)]
use crate::dynamic::types;
/// The SiteToSite API.
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait SiteToSiteApi {
/// Returns the available Peers and its status of this NiFi
///
/// Calls `GET /nifi-api/site-to-site/peers`.
///
/// # Errors
/// - `400`: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
/// - `401`: Client could not be authenticated.
/// - `403`: Client is not authorized to make this request.
/// - `409`: The request was valid but NiFi was not in the appropriate state to process it.
///
/// # Permissions
/// Requires `Read - /site-to-site`.
async fn get_peers(&self) -> Result<types::PeersEntity, NifiError> {
Err(NifiError::UnsupportedEndpoint {
endpoint: "get_peers".to_string(),
version: "unknown".to_string(),
})
}
/// Returns the details about this NiFi necessary to communicate via site to site
///
/// Calls `GET /nifi-api/site-to-site`.
///
/// # Errors
/// - `400`: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.
/// - `401`: Client could not be authenticated.
/// - `403`: Client is not authorized to make this request.
/// - `409`: The request was valid but NiFi was not in the appropriate state to process it.
///
/// # Permissions
/// Requires `Read - /site-to-site`.
async fn get_site_to_site_details(&self) -> Result<types::ControllerDto, NifiError> {
Err(NifiError::UnsupportedEndpoint {
endpoint: "get_site_to_site_details".to_string(),
version: "unknown".to_string(),
})
}
}