nifi-rust-client 0.4.0

Apache NiFi REST API client library
Documentation
// @generated — do not edit; run `cargo run -p nifi-openapi-gen`

use crate::NifiError;
/// Sub-resource trait for the `bulletins` sub-group.
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ReportingTasksBulletinsApi {
    /// Clears bulletins for a reporting task
    async fn clear_bulletins_7(
        &self,
        body: &crate::v2_7_2::types::ClearBulletinsRequestEntity,
    ) -> Result<crate::v2_7_2::types::ClearBulletinsResultEntity, NifiError>;
}
/// Sub-resource trait for the `config` sub-group.
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ReportingTasksConfigApi {
    /// Performs analysis of the component's configuration, providing information about which attributes are referenced.
    async fn analyze_configuration_3(
        &self,
        body: &crate::v2_7_2::types::ConfigurationAnalysisEntity,
    ) -> Result<crate::v2_7_2::types::ConfigurationAnalysisDto, NifiError>;
    /// Performs verification of the Reporting Task's configuration
    async fn submit_config_verification_request_2(
        &self,
        body: &crate::v2_7_2::types::VerifyConfigRequestEntity,
    ) -> Result<crate::v2_7_2::types::VerifyConfigRequestDto, NifiError>;
    /// Deletes the Verification Request with the given ID
    async fn delete_verification_request_3(
        &self,
        request_id: &str,
    ) -> Result<crate::v2_7_2::types::VerifyConfigRequestDto, NifiError>;
    /// Returns the Verification Request with the given ID
    async fn get_verification_request_3(
        &self,
        request_id: &str,
    ) -> Result<crate::v2_7_2::types::VerifyConfigRequestDto, NifiError>;
}
/// Sub-resource trait for the `descriptors` sub-group.
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ReportingTasksDescriptorsApi {
    /// Gets a reporting task property descriptor
    async fn get_property_descriptor_4(
        &self,
        property_name: &str,
        sensitive: Option<bool>,
    ) -> Result<crate::v2_7_2::types::PropertyDescriptorDto, NifiError>;
}
/// Sub-resource trait for the `run_status` sub-group.
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ReportingTasksRunStatusApi {
    /// Updates run status of a reporting task
    async fn update_run_status_5(
        &self,
        body: &crate::v2_7_2::types::ReportingTaskRunStatusEntity,
    ) -> Result<crate::v2_7_2::types::ReportingTaskEntity, NifiError>;
}
/// Sub-resource trait for the `state` sub-group.
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ReportingTasksStateApi {
    /// Gets the state for a reporting task
    async fn get_state_4(&self) -> Result<crate::v2_7_2::types::ComponentStateDto, NifiError>;
    /// Clears the state for a reporting task
    async fn clear_state_4(
        &self,
        body: &crate::v2_7_2::types::ComponentStateEntity,
    ) -> Result<crate::v2_7_2::types::ComponentStateDto, NifiError>;
}
/// The ReportingTasks API.
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ReportingTasksApi {
    fn bulletins<'b>(&'b self, id: &'b str) -> impl ReportingTasksBulletinsApi + 'b;
    fn config<'b>(&'b self, id: &'b str) -> impl ReportingTasksConfigApi + 'b;
    fn descriptors<'b>(&'b self, id: &'b str) -> impl ReportingTasksDescriptorsApi + 'b;
    fn run_status<'b>(&'b self, id: &'b str) -> impl ReportingTasksRunStatusApi + 'b;
    fn state<'b>(&'b self, id: &'b str) -> impl ReportingTasksStateApi + 'b;
    /// Deletes a reporting task
    async fn remove_reporting_task(
        &self,
        id: &str,
        version: Option<&str>,
        client_id: Option<&str>,
        disconnected_node_acknowledged: Option<bool>,
    ) -> Result<crate::v2_7_2::types::ReportingTaskEntity, NifiError>;
    /// Gets a reporting task
    async fn get_reporting_task(
        &self,
        id: &str,
    ) -> Result<crate::v2_7_2::types::ReportingTaskEntity, NifiError>;
    /// Updates a reporting task
    async fn update_reporting_task(
        &self,
        id: &str,
        body: &crate::v2_7_2::types::ReportingTaskEntity,
    ) -> Result<crate::v2_7_2::types::ReportingTaskEntity, NifiError>;
}