use crate::NifiError;
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ControllerConfigApi {
async fn analyze_flow_analysis_rule_configuration(
&self,
body: &crate::v2_6_0::types::ConfigurationAnalysisEntity,
) -> Result<crate::v2_6_0::types::ConfigurationAnalysisDto, NifiError>;
async fn submit_flow_analysis_rule_config_verification_request(
&self,
body: &crate::v2_6_0::types::VerifyConfigRequestEntity,
) -> Result<crate::v2_6_0::types::VerifyConfigRequestDto, NifiError>;
async fn delete_flow_analysis_rule_verification_request(
&self,
request_id: &str,
) -> Result<crate::v2_6_0::types::VerifyConfigRequestDto, NifiError>;
async fn get_flow_analysis_rule_verification_request(
&self,
request_id: &str,
) -> Result<crate::v2_6_0::types::VerifyConfigRequestDto, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ControllerContentApi {
async fn download_nar(&self) -> Result<(), NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ControllerDescriptorsApi {
async fn get_flow_analysis_rule_property_descriptor(
&self,
property_name: &str,
sensitive: Option<bool>,
) -> Result<crate::v2_6_0::types::PropertyDescriptorDto, NifiError>;
async fn get_property_descriptor(
&self,
property_name: &str,
sensitive: Option<bool>,
) -> Result<crate::v2_6_0::types::PropertyDescriptorDto, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ControllerDetailsApi {
async fn get_nar_details(&self) -> Result<crate::v2_6_0::types::NarDetailsEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ControllerRunStatusApi {
async fn update_run_status(
&self,
body: &crate::v2_6_0::types::FlowAnalysisRuleRunStatusEntity,
) -> Result<crate::v2_6_0::types::FlowAnalysisRuleEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ControllerStateApi {
async fn get_flow_analysis_rule_state(
&self,
) -> Result<crate::v2_6_0::types::ComponentStateDto, NifiError>;
async fn clear_state(
&self,
body: &crate::v2_6_0::types::ComponentStateEntity,
) -> Result<crate::v2_6_0::types::ComponentStateDto, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ControllerApi {
fn config<'b>(&'b self, id: &'b str) -> impl ControllerConfigApi + 'b;
fn content<'b>(&'b self, id: &'b str) -> impl ControllerContentApi + 'b;
fn descriptors<'b>(&'b self, id: &'b str) -> impl ControllerDescriptorsApi + 'b;
fn details<'b>(&'b self, id: &'b str) -> impl ControllerDetailsApi + 'b;
fn run_status<'b>(&'b self, id: &'b str) -> impl ControllerRunStatusApi + 'b;
fn state<'b>(&'b self, id: &'b str) -> impl ControllerStateApi + 'b;
async fn create_bulletin(
&self,
body: &crate::v2_6_0::types::BulletinEntity,
) -> Result<crate::v2_6_0::types::BulletinEntity, NifiError>;
async fn get_cluster(&self) -> Result<crate::v2_6_0::types::ClusterDto, NifiError>;
async fn delete_node(&self, id: &str) -> Result<crate::v2_6_0::types::NodeDto, NifiError>;
async fn get_node(&self, id: &str) -> Result<crate::v2_6_0::types::NodeDto, NifiError>;
async fn update_node(
&self,
id: &str,
body: &crate::v2_6_0::types::NodeEntity,
) -> Result<crate::v2_6_0::types::NodeDto, NifiError>;
async fn get_controller_config(
&self,
) -> Result<crate::v2_6_0::types::ControllerConfigurationEntity, NifiError>;
async fn update_controller_config(
&self,
body: &crate::v2_6_0::types::ControllerConfigurationEntity,
) -> Result<crate::v2_6_0::types::ControllerConfigurationEntity, NifiError>;
async fn create_controller_service(
&self,
body: &crate::v2_6_0::types::ControllerServiceEntity,
) -> Result<crate::v2_6_0::types::ControllerServiceEntity, NifiError>;
async fn get_flow_analysis_rules(
&self,
) -> Result<crate::v2_6_0::types::FlowAnalysisRulesEntity, NifiError>;
async fn create_flow_analysis_rule(
&self,
body: &crate::v2_6_0::types::FlowAnalysisRuleEntity,
) -> Result<crate::v2_6_0::types::FlowAnalysisRuleEntity, NifiError>;
async fn remove_flow_analysis_rule(
&self,
id: &str,
version: Option<&str>,
client_id: Option<&str>,
disconnected_node_acknowledged: Option<bool>,
) -> Result<crate::v2_6_0::types::FlowAnalysisRuleEntity, NifiError>;
async fn get_flow_analysis_rule(
&self,
id: &str,
) -> Result<crate::v2_6_0::types::FlowAnalysisRuleEntity, NifiError>;
async fn update_flow_analysis_rule(
&self,
id: &str,
body: &crate::v2_6_0::types::FlowAnalysisRuleEntity,
) -> Result<crate::v2_6_0::types::FlowAnalysisRuleEntity, NifiError>;
async fn delete_history(
&self,
end_date: &str,
) -> Result<crate::v2_6_0::types::HistoryDto, NifiError>;
async fn get_nar_summaries(
&self,
) -> Result<crate::v2_6_0::types::NarSummariesEntity, NifiError>;
async fn upload_nar(
&self,
filename: Option<&str>,
data: Vec<u8>,
) -> Result<crate::v2_6_0::types::NarSummaryDto, NifiError>;
async fn delete_nar(
&self,
id: &str,
disconnected_node_acknowledged: Option<bool>,
force: Option<bool>,
) -> Result<crate::v2_6_0::types::NarSummaryDto, NifiError>;
async fn get_nar_summary(
&self,
id: &str,
) -> Result<crate::v2_6_0::types::NarDetailsEntity, NifiError>;
async fn create_parameter_provider(
&self,
body: &crate::v2_6_0::types::ParameterProviderEntity,
) -> Result<crate::v2_6_0::types::ParameterProviderEntity, NifiError>;
async fn get_flow_registry_clients(
&self,
) -> Result<crate::v2_6_0::types::FlowRegistryClientsEntity, NifiError>;
async fn create_flow_registry_client(
&self,
body: &crate::v2_6_0::types::FlowRegistryClientEntity,
) -> Result<crate::v2_6_0::types::FlowRegistryClientEntity, NifiError>;
async fn delete_flow_registry_client(
&self,
id: &str,
version: Option<&str>,
client_id: Option<&str>,
disconnected_node_acknowledged: Option<bool>,
) -> Result<crate::v2_6_0::types::FlowRegistryClientEntity, NifiError>;
async fn get_flow_registry_client(
&self,
id: &str,
) -> Result<crate::v2_6_0::types::FlowRegistryClientEntity, NifiError>;
async fn update_flow_registry_client(
&self,
id: &str,
body: &crate::v2_6_0::types::FlowRegistryClientEntity,
) -> Result<crate::v2_6_0::types::FlowRegistryClientEntity, NifiError>;
async fn get_registry_client_types(
&self,
) -> Result<crate::v2_6_0::types::FlowRegistryClientTypesEntity, NifiError>;
async fn create_reporting_task(
&self,
body: &crate::v2_6_0::types::ReportingTaskEntity,
) -> Result<crate::v2_6_0::types::ReportingTaskEntity, NifiError>;
async fn import_reporting_task_snapshot(
&self,
body: &crate::v2_6_0::types::VersionedReportingTaskImportRequestEntity,
) -> Result<crate::v2_6_0::types::VersionedReportingTaskImportResponseEntity, NifiError>;
async fn get_node_status_history(
&self,
) -> Result<crate::v2_6_0::types::ComponentHistoryDto, NifiError>;
}