use crate::NifiError;
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait VersionsDownloadApi {
async fn export_flow_version(&self) -> Result<(), NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait VersionsApi {
fn download<'b>(&'b self, id: &'b str) -> impl VersionsDownloadApi + 'b;
async fn create_version_control_request(
&self,
body: &crate::v2_7_2::types::CreateActiveRequestEntity,
) -> Result<(), NifiError>;
async fn delete_version_control_request(
&self,
id: &str,
disconnected_node_acknowledged: Option<bool>,
) -> Result<(), NifiError>;
async fn update_version_control_request(
&self,
id: &str,
body: &crate::v2_7_2::types::VersionControlComponentMappingEntity,
) -> Result<crate::v2_7_2::types::VersionControlInformationEntity, NifiError>;
async fn stop_version_control(
&self,
id: &str,
version: Option<&str>,
client_id: Option<&str>,
disconnected_node_acknowledged: Option<bool>,
) -> Result<crate::v2_7_2::types::VersionControlInformationEntity, NifiError>;
async fn get_version_information(
&self,
id: &str,
) -> Result<crate::v2_7_2::types::VersionControlInformationEntity, NifiError>;
async fn save_to_flow_registry(
&self,
id: &str,
body: &crate::v2_7_2::types::StartVersionControlRequestEntity,
) -> Result<crate::v2_7_2::types::VersionControlInformationEntity, NifiError>;
async fn update_flow_version(
&self,
id: &str,
body: &crate::v2_7_2::types::VersionedFlowSnapshotEntity,
) -> Result<crate::v2_7_2::types::VersionControlInformationEntity, NifiError>;
async fn initiate_revert_flow_version(
&self,
id: &str,
body: &crate::v2_7_2::types::VersionControlInformationEntity,
) -> Result<crate::v2_7_2::types::VersionedFlowUpdateRequestEntity, NifiError>;
async fn delete_revert_request(
&self,
id: &str,
disconnected_node_acknowledged: Option<bool>,
) -> Result<crate::v2_7_2::types::VersionedFlowUpdateRequestEntity, NifiError>;
async fn get_revert_request(
&self,
id: &str,
) -> Result<crate::v2_7_2::types::VersionedFlowUpdateRequestEntity, NifiError>;
async fn initiate_version_control_update(
&self,
id: &str,
body: &crate::v2_7_2::types::VersionControlInformationEntity,
) -> Result<crate::v2_7_2::types::VersionedFlowUpdateRequestEntity, NifiError>;
async fn delete_update_request_1(
&self,
id: &str,
disconnected_node_acknowledged: Option<bool>,
) -> Result<crate::v2_7_2::types::VersionedFlowUpdateRequestEntity, NifiError>;
async fn get_update_request(
&self,
id: &str,
) -> Result<crate::v2_7_2::types::VersionedFlowUpdateRequestEntity, NifiError>;
}