use crate::NifiError;
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait FlowFileQueuesDropRequestsApi {
async fn create_drop_request(&self) -> Result<crate::v2_7_2::types::DropRequestDto, NifiError>;
async fn remove_drop_request(
&self,
drop_request_id: &str,
) -> Result<crate::v2_7_2::types::DropRequestDto, NifiError>;
async fn get_drop_request(
&self,
drop_request_id: &str,
) -> Result<crate::v2_7_2::types::DropRequestDto, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait FlowFileQueuesFlowfilesApi {
async fn get_flow_file(
&self,
flowfile_uuid: &str,
cluster_node_id: Option<&str>,
) -> Result<crate::v2_7_2::types::FlowFileDto, NifiError>;
async fn download_flow_file_content(
&self,
flowfile_uuid: &str,
client_id: Option<&str>,
cluster_node_id: Option<&str>,
) -> Result<(), NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait FlowFileQueuesListingRequestsApi {
async fn create_flow_file_listing(
&self,
) -> Result<crate::v2_7_2::types::ListingRequestDto, NifiError>;
async fn delete_listing_request(
&self,
listing_request_id: &str,
) -> Result<crate::v2_7_2::types::ListingRequestDto, NifiError>;
async fn get_listing_request(
&self,
listing_request_id: &str,
) -> Result<crate::v2_7_2::types::ListingRequestDto, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait FlowFileQueuesApi {
fn drop_requests<'b>(&'b self, id: &'b str) -> impl FlowFileQueuesDropRequestsApi + 'b;
fn flowfiles<'b>(&'b self, id: &'b str) -> impl FlowFileQueuesFlowfilesApi + 'b;
fn listing_requests<'b>(&'b self, id: &'b str) -> impl FlowFileQueuesListingRequestsApi + 'b;
}