use crate::NifiError;
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsConnectionsApi {
async fn get_connections(&self) -> Result<crate::v2_6_0::types::ConnectionsEntity, NifiError>;
async fn create_connection(
&self,
body: &crate::v2_6_0::types::ConnectionEntity,
) -> Result<crate::v2_6_0::types::ConnectionEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsControllerServicesApi {
async fn create_controller_service_1(
&self,
body: &crate::v2_6_0::types::ControllerServiceEntity,
) -> Result<crate::v2_6_0::types::ControllerServiceEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsCopyApi {
async fn copy(
&self,
body: &crate::v2_6_0::types::CopyRequestEntity,
) -> Result<crate::v2_6_0::types::CopyResponseEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsDownloadApi {
async fn export_process_group(
&self,
include_referenced_services: Option<bool>,
) -> Result<(), NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsEmptyAllConnectionsRequestsApi {
async fn create_empty_all_connections_request(
&self,
) -> Result<crate::v2_6_0::types::DropRequestDto, NifiError>;
async fn remove_drop_request_1(
&self,
drop_request_id: &str,
) -> Result<crate::v2_6_0::types::DropRequestDto, NifiError>;
async fn get_drop_all_flowfiles_request(
&self,
drop_request_id: &str,
) -> Result<crate::v2_6_0::types::DropRequestDto, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsFlowContentsApi {
async fn replace_process_group(
&self,
body: &crate::v2_6_0::types::ProcessGroupImportEntity,
) -> Result<crate::v2_6_0::types::ProcessGroupImportEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsFunnelsApi {
async fn get_funnels(&self) -> Result<crate::v2_6_0::types::FunnelsEntity, NifiError>;
async fn create_funnel(
&self,
body: &crate::v2_6_0::types::FunnelEntity,
) -> Result<crate::v2_6_0::types::FunnelEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsInputPortsApi {
async fn get_input_ports(&self) -> Result<crate::v2_6_0::types::InputPortsEntity, NifiError>;
async fn create_input_port(
&self,
body: &crate::v2_6_0::types::PortEntity,
) -> Result<crate::v2_6_0::types::PortEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsLabelsApi {
async fn get_labels(&self) -> Result<crate::v2_6_0::types::LabelsEntity, NifiError>;
async fn create_label(
&self,
body: &crate::v2_6_0::types::LabelEntity,
) -> Result<crate::v2_6_0::types::LabelEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsLocalModificationsApi {
async fn get_local_modifications(
&self,
) -> Result<crate::v2_6_0::types::FlowComparisonEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsOutputPortsApi {
async fn get_output_ports(&self) -> Result<crate::v2_6_0::types::OutputPortsEntity, NifiError>;
async fn create_output_port(
&self,
body: &crate::v2_6_0::types::PortEntity,
) -> Result<crate::v2_6_0::types::PortEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsPasteApi {
async fn paste(
&self,
body: &crate::v2_6_0::types::PasteRequestEntity,
) -> Result<crate::v2_6_0::types::PasteResponseEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsProcessGroupsApi {
async fn get_process_groups(
&self,
) -> Result<crate::v2_6_0::types::ProcessGroupsEntity, NifiError>;
async fn create_process_group(
&self,
parameter_context_handling_strategy: Option<
crate::v2_6_0::types::ParameterContextHandlingStrategy,
>,
body: &crate::v2_6_0::types::ProcessGroupEntity,
) -> Result<crate::v2_6_0::types::ProcessGroupEntity, NifiError>;
async fn import_process_group(
&self,
body: &crate::v2_6_0::types::ProcessGroupUploadEntity,
) -> Result<crate::v2_6_0::types::ProcessGroupEntity, NifiError>;
async fn upload_process_group(
&self,
) -> Result<crate::v2_6_0::types::ProcessGroupEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsProcessorsApi {
async fn get_processors(
&self,
include_descendant_groups: Option<bool>,
) -> Result<crate::v2_6_0::types::ProcessorsEntity, NifiError>;
async fn create_processor(
&self,
body: &crate::v2_6_0::types::ProcessorEntity,
) -> Result<crate::v2_6_0::types::ProcessorEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsRemoteProcessGroupsApi {
async fn get_remote_process_groups(
&self,
) -> Result<crate::v2_6_0::types::RemoteProcessGroupsEntity, NifiError>;
async fn create_remote_process_group(
&self,
body: &crate::v2_6_0::types::RemoteProcessGroupEntity,
) -> Result<crate::v2_6_0::types::RemoteProcessGroupEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsReplaceRequestsApi {
async fn initiate_replace_process_group(
&self,
body: &crate::v2_6_0::types::ProcessGroupImportEntity,
) -> Result<crate::v2_6_0::types::ProcessGroupReplaceRequestEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsSnippetInstanceApi {
async fn copy_snippet(
&self,
body: &crate::v2_6_0::types::CopySnippetRequestEntity,
) -> Result<crate::v2_6_0::types::FlowDto, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait ProcessGroupsApi {
fn connections<'b>(&'b self, id: &'b str) -> impl ProcessGroupsConnectionsApi + 'b;
fn controller_services<'b>(
&'b self,
id: &'b str,
) -> impl ProcessGroupsControllerServicesApi + 'b;
fn copy<'b>(&'b self, id: &'b str) -> impl ProcessGroupsCopyApi + 'b;
fn download<'b>(&'b self, id: &'b str) -> impl ProcessGroupsDownloadApi + 'b;
fn empty_all_connections_requests<'b>(
&'b self,
id: &'b str,
) -> impl ProcessGroupsEmptyAllConnectionsRequestsApi + 'b;
fn flow_contents<'b>(&'b self, id: &'b str) -> impl ProcessGroupsFlowContentsApi + 'b;
fn funnels<'b>(&'b self, id: &'b str) -> impl ProcessGroupsFunnelsApi + 'b;
fn input_ports<'b>(&'b self, id: &'b str) -> impl ProcessGroupsInputPortsApi + 'b;
fn labels<'b>(&'b self, id: &'b str) -> impl ProcessGroupsLabelsApi + 'b;
fn local_modifications<'b>(
&'b self,
id: &'b str,
) -> impl ProcessGroupsLocalModificationsApi + 'b;
fn output_ports<'b>(&'b self, id: &'b str) -> impl ProcessGroupsOutputPortsApi + 'b;
fn paste<'b>(&'b self, id: &'b str) -> impl ProcessGroupsPasteApi + 'b;
fn process_groups<'b>(&'b self, id: &'b str) -> impl ProcessGroupsProcessGroupsApi + 'b;
fn processors<'b>(&'b self, id: &'b str) -> impl ProcessGroupsProcessorsApi + 'b;
fn remote_process_groups<'b>(
&'b self,
id: &'b str,
) -> impl ProcessGroupsRemoteProcessGroupsApi + 'b;
fn replace_requests<'b>(&'b self, id: &'b str) -> impl ProcessGroupsReplaceRequestsApi + 'b;
fn snippet_instance<'b>(&'b self, id: &'b str) -> impl ProcessGroupsSnippetInstanceApi + 'b;
async fn delete_replace_process_group_request(
&self,
id: &str,
disconnected_node_acknowledged: Option<bool>,
) -> Result<crate::v2_6_0::types::ProcessGroupReplaceRequestEntity, NifiError>;
async fn get_replace_process_group_request(
&self,
id: &str,
) -> Result<crate::v2_6_0::types::ProcessGroupReplaceRequestEntity, NifiError>;
async fn remove_process_group(
&self,
id: &str,
version: Option<&str>,
client_id: Option<&str>,
disconnected_node_acknowledged: Option<bool>,
) -> Result<crate::v2_6_0::types::ProcessGroupEntity, NifiError>;
async fn get_process_group(
&self,
id: &str,
) -> Result<crate::v2_6_0::types::ProcessGroupEntity, NifiError>;
async fn update_process_group(
&self,
id: &str,
body: &crate::v2_6_0::types::ProcessGroupEntity,
) -> Result<crate::v2_6_0::types::ProcessGroupEntity, NifiError>;
}