use crate::NifiError;
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessorsBulletinsApi {
async fn clear_bulletins_5(
&self,
body: &crate::v2_7_2::types::ClearBulletinsRequestEntity,
) -> Result<crate::v2_7_2::types::ClearBulletinsResultEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessorsConfigApi {
async fn analyze_configuration_2(
&self,
body: &crate::v2_7_2::types::ConfigurationAnalysisEntity,
) -> Result<crate::v2_7_2::types::ConfigurationAnalysisDto, NifiError>;
async fn submit_processor_verification_request(
&self,
body: &crate::v2_7_2::types::VerifyConfigRequestEntity,
) -> Result<crate::v2_7_2::types::VerifyConfigRequestDto, NifiError>;
async fn delete_verification_request_2(
&self,
request_id: &str,
) -> Result<crate::v2_7_2::types::VerifyConfigRequestDto, NifiError>;
async fn get_verification_request_2(
&self,
request_id: &str,
) -> Result<crate::v2_7_2::types::VerifyConfigRequestDto, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessorsDescriptorsApi {
async fn get_property_descriptor_3(
&self,
client_id: Option<&str>,
property_name: &str,
sensitive: Option<bool>,
) -> Result<crate::v2_7_2::types::PropertyDescriptorDto, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessorsDiagnosticsApi {
async fn get_processor_diagnostics(
&self,
) -> Result<crate::v2_7_2::types::ProcessorEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessorsRunStatusApi {
async fn update_run_status_4(
&self,
body: &crate::v2_7_2::types::ProcessorRunStatusEntity,
) -> Result<crate::v2_7_2::types::ProcessorEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessorsStateApi {
async fn get_state_2(&self) -> Result<crate::v2_7_2::types::ComponentStateDto, NifiError>;
async fn clear_state_3(
&self,
body: &crate::v2_7_2::types::ComponentStateEntity,
) -> Result<crate::v2_7_2::types::ComponentStateDto, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessorsThreadsApi {
async fn terminate_processor(&self)
-> Result<crate::v2_7_2::types::ProcessorEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessorsApi {
fn bulletins<'b>(&'b self, id: &'b str) -> impl ProcessorsBulletinsApi + 'b;
fn config<'b>(&'b self, id: &'b str) -> impl ProcessorsConfigApi + 'b;
fn descriptors<'b>(&'b self, id: &'b str) -> impl ProcessorsDescriptorsApi + 'b;
fn diagnostics<'b>(&'b self, id: &'b str) -> impl ProcessorsDiagnosticsApi + 'b;
fn run_status<'b>(&'b self, id: &'b str) -> impl ProcessorsRunStatusApi + 'b;
fn state<'b>(&'b self, id: &'b str) -> impl ProcessorsStateApi + 'b;
fn threads<'b>(&'b self, id: &'b str) -> impl ProcessorsThreadsApi + 'b;
async fn get_processor_run_status_details(
&self,
body: &crate::v2_7_2::types::RunStatusDetailsRequestEntity,
) -> Result<crate::v2_7_2::types::ProcessorsRunStatusDetailsEntity, NifiError>;
async fn delete_processor(
&self,
id: &str,
version: Option<&str>,
client_id: Option<&str>,
disconnected_node_acknowledged: Option<bool>,
) -> Result<crate::v2_7_2::types::ProcessorEntity, NifiError>;
async fn get_processor(
&self,
id: &str,
) -> Result<crate::v2_7_2::types::ProcessorEntity, NifiError>;
async fn update_processor(
&self,
id: &str,
body: &crate::v2_7_2::types::ProcessorEntity,
) -> Result<crate::v2_7_2::types::ProcessorEntity, NifiError>;
}