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 InputPortsBulletinsApi {
    /// Clears bulletins for an input port
    async fn clear_bulletins_2(
        &self,
        body: &crate::v2_7_2::types::ClearBulletinsRequestEntity,
    ) -> Result<crate::v2_7_2::types::ClearBulletinsResultEntity, NifiError>;
}
/// Sub-resource trait for the `run_status` sub-group.
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait InputPortsRunStatusApi {
    /// Updates run status of an input-port
    async fn update_run_status_2(
        &self,
        body: &crate::v2_7_2::types::PortRunStatusEntity,
    ) -> Result<crate::v2_7_2::types::ProcessorEntity, NifiError>;
}
/// The InputPorts API.
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait InputPortsApi {
    fn bulletins<'b>(&'b self, id: &'b str) -> impl InputPortsBulletinsApi + 'b;
    fn run_status<'b>(&'b self, id: &'b str) -> impl InputPortsRunStatusApi + 'b;
    /// Deletes an input port
    async fn remove_input_port(
        &self,
        id: &str,
        version: Option<&str>,
        client_id: Option<&str>,
        disconnected_node_acknowledged: Option<bool>,
    ) -> Result<crate::v2_7_2::types::PortEntity, NifiError>;
    /// Gets an input port
    async fn get_input_port(&self, id: &str)
    -> Result<crate::v2_7_2::types::PortEntity, NifiError>;
    /// Updates an input port
    async fn update_input_port(
        &self,
        id: &str,
        body: &crate::v2_7_2::types::PortEntity,
    ) -> Result<crate::v2_7_2::types::PortEntity, NifiError>;
}