use crate::NifiError;
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ControllerServicesBulletinsApi {
async fn clear_bulletins(
&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 ControllerServicesConfigApi {
async fn analyze_configuration(
&self,
body: &crate::v2_7_2::types::ConfigurationAnalysisEntity,
) -> Result<crate::v2_7_2::types::ConfigurationAnalysisDto, NifiError>;
async fn submit_config_verification_request(
&self,
body: &crate::v2_7_2::types::VerifyConfigRequestEntity,
) -> Result<crate::v2_7_2::types::VerifyConfigRequestDto, NifiError>;
async fn delete_verification_request(
&self,
request_id: &str,
) -> Result<crate::v2_7_2::types::VerifyConfigRequestDto, NifiError>;
async fn get_verification_request(
&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 ControllerServicesDescriptorsApi {
async fn get_property_descriptor_1(
&self,
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 ControllerServicesReferencesApi {
async fn get_controller_service_references(
&self,
) -> Result<crate::v2_7_2::types::ControllerServiceReferencingComponentsEntity, NifiError>;
async fn update_controller_service_references(
&self,
body: &crate::v2_7_2::types::UpdateControllerServiceReferenceRequestEntity,
) -> Result<crate::v2_7_2::types::ControllerServiceReferencingComponentsEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ControllerServicesRunStatusApi {
async fn update_run_status_1(
&self,
body: &crate::v2_7_2::types::ControllerServiceRunStatusEntity,
) -> Result<crate::v2_7_2::types::ControllerServiceEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ControllerServicesStateApi {
async fn get_state(&self) -> Result<crate::v2_7_2::types::ComponentStateDto, NifiError>;
async fn clear_state_1(
&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 ControllerServicesApi {
fn bulletins<'b>(&'b self, id: &'b str) -> impl ControllerServicesBulletinsApi + 'b;
fn config<'b>(&'b self, id: &'b str) -> impl ControllerServicesConfigApi + 'b;
fn descriptors<'b>(&'b self, id: &'b str) -> impl ControllerServicesDescriptorsApi + 'b;
fn references<'b>(&'b self, id: &'b str) -> impl ControllerServicesReferencesApi + 'b;
fn run_status<'b>(&'b self, id: &'b str) -> impl ControllerServicesRunStatusApi + 'b;
fn state<'b>(&'b self, id: &'b str) -> impl ControllerServicesStateApi + 'b;
async fn remove_controller_service(
&self,
id: &str,
version: Option<&str>,
client_id: Option<&str>,
disconnected_node_acknowledged: Option<bool>,
) -> Result<crate::v2_7_2::types::ControllerServiceEntity, NifiError>;
async fn get_controller_service(
&self,
id: &str,
ui_only: Option<bool>,
) -> Result<crate::v2_7_2::types::ControllerServiceEntity, NifiError>;
async fn update_controller_service(
&self,
id: &str,
body: &crate::v2_7_2::types::ControllerServiceEntity,
) -> Result<crate::v2_7_2::types::ControllerServiceEntity, NifiError>;
}