use crate::NifiError;
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait FlowBranchesApi {
async fn get_branches(
&self,
) -> Result<crate::v2_7_2::types::FlowRegistryBranchesEntity, NifiError>;
async fn get_version_differences(
&self,
registry_id: &str,
branch_id_a: &str,
bucket_id_a: &str,
flow_id_a: &str,
version_a: &str,
branch_id_b: &str,
bucket_id_b: &str,
flow_id_b: &str,
version_b: &str,
offset: Option<i32>,
limit: Option<i32>,
) -> Result<crate::v2_7_2::types::FlowComparisonEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait FlowBreadcrumbsApi {
async fn get_breadcrumbs(
&self,
) -> Result<crate::v2_7_2::types::FlowBreadcrumbEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait FlowBucketsApi {
async fn get_buckets(
&self,
branch: Option<&str>,
) -> Result<crate::v2_7_2::types::FlowRegistryBucketsEntity, NifiError>;
async fn get_flows(
&self,
registry_id: &str,
bucket_id: &str,
branch: Option<&str>,
) -> Result<crate::v2_7_2::types::VersionedFlowsEntity, NifiError>;
async fn get_details(
&self,
registry_id: &str,
bucket_id: &str,
flow_id: &str,
branch: Option<&str>,
) -> Result<crate::v2_7_2::types::VersionedFlowDto, NifiError>;
async fn get_versions(
&self,
registry_id: &str,
bucket_id: &str,
flow_id: &str,
branch: Option<&str>,
) -> Result<crate::v2_7_2::types::VersionedFlowSnapshotMetadataSetEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait FlowBulletinsApi {
async fn clear_bulletins_1(
&self,
body: &crate::v2_7_2::types::ClearBulletinsForGroupRequestEntity,
) -> Result<crate::v2_7_2::types::ClearBulletinsForGroupResultsEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait FlowControllerServicesApi {
async fn get_controller_services_from_group(
&self,
include_ancestor_groups: Option<bool>,
include_descendant_groups: Option<bool>,
include_referencing_components: Option<bool>,
ui_only: Option<bool>,
) -> Result<crate::v2_7_2::types::ControllerServicesEntity, NifiError>;
async fn activate_controller_services(
&self,
body: &crate::v2_7_2::types::ActivateControllerServicesEntity,
) -> Result<crate::v2_7_2::types::ActivateControllerServicesEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait FlowStatisticsApi {
async fn get_connection_statistics(
&self,
nodewise: Option<bool>,
cluster_node_id: Option<&str>,
) -> Result<crate::v2_7_2::types::ConnectionStatisticsEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait FlowStatusApi {
async fn get_connection_status(
&self,
nodewise: Option<bool>,
cluster_node_id: Option<&str>,
) -> Result<crate::v2_7_2::types::ConnectionStatusEntity, NifiError>;
async fn get_connection_status_history(
&self,
) -> Result<crate::v2_7_2::types::StatusHistoryEntity, NifiError>;
async fn get_input_port_status(
&self,
nodewise: Option<bool>,
cluster_node_id: Option<&str>,
) -> Result<crate::v2_7_2::types::PortStatusEntity, NifiError>;
async fn get_output_port_status(
&self,
nodewise: Option<bool>,
cluster_node_id: Option<&str>,
) -> Result<crate::v2_7_2::types::PortStatusEntity, NifiError>;
async fn get_process_group_status(
&self,
recursive: Option<bool>,
nodewise: Option<bool>,
cluster_node_id: Option<&str>,
) -> Result<crate::v2_7_2::types::ProcessGroupStatusEntity, NifiError>;
async fn get_process_group_status_history(
&self,
) -> Result<crate::v2_7_2::types::StatusHistoryEntity, NifiError>;
async fn get_processor_status(
&self,
nodewise: Option<bool>,
cluster_node_id: Option<&str>,
) -> Result<crate::v2_7_2::types::ProcessorStatusEntity, NifiError>;
async fn get_processor_status_history(
&self,
) -> Result<crate::v2_7_2::types::StatusHistoryEntity, NifiError>;
async fn get_remote_process_group_status(
&self,
nodewise: Option<bool>,
cluster_node_id: Option<&str>,
) -> Result<crate::v2_7_2::types::RemoteProcessGroupStatusEntity, NifiError>;
async fn get_remote_process_group_status_history(
&self,
) -> Result<crate::v2_7_2::types::StatusHistoryEntity, NifiError>;
}
#[allow(unused_variables, async_fn_in_trait, clippy::too_many_arguments)]
pub trait FlowApi {
fn branches<'b>(&'b self, id: &'b str) -> impl FlowBranchesApi + 'b;
fn breadcrumbs<'b>(&'b self, id: &'b str) -> impl FlowBreadcrumbsApi + 'b;
fn buckets<'b>(&'b self, id: &'b str) -> impl FlowBucketsApi + 'b;
fn bulletins<'b>(&'b self, id: &'b str) -> impl FlowBulletinsApi + 'b;
fn controller_services<'b>(&'b self, id: &'b str) -> impl FlowControllerServicesApi + 'b;
fn statistics<'b>(&'b self, id: &'b str) -> impl FlowStatisticsApi + 'b;
fn status<'b>(&'b self, id: &'b str) -> impl FlowStatusApi + 'b;
async fn get_about_info(&self) -> Result<crate::v2_7_2::types::AboutDto, NifiError>;
async fn get_additional_details(
&self,
group: &str,
artifact: &str,
version: &str,
r#type: &str,
) -> Result<crate::v2_7_2::types::AdditionalDetailsEntity, NifiError>;
async fn get_banners(&self) -> Result<crate::v2_7_2::types::BannerDto, NifiError>;
async fn get_bulletin_board(
&self,
after: Option<&str>,
source_name: Option<&str>,
message: Option<&str>,
source_id: Option<&str>,
group_id: Option<&str>,
limit: Option<&str>,
) -> Result<crate::v2_7_2::types::BulletinBoardDto, NifiError>;
async fn generate_client_id(&self) -> Result<(), NifiError>;
async fn search_cluster(
&self,
q: &str,
) -> Result<crate::v2_7_2::types::ClusterSearchResultsEntity, NifiError>;
async fn get_cluster_summary(
&self,
) -> Result<crate::v2_7_2::types::ClusterSummaryDto, NifiError>;
async fn get_flow_config(
&self,
) -> Result<crate::v2_7_2::types::FlowConfigurationDto, NifiError>;
async fn get_content_viewers(
&self,
) -> Result<crate::v2_7_2::types::ContentViewerEntity, NifiError>;
async fn get_controller_service_definition(
&self,
group: &str,
artifact: &str,
version: &str,
r#type: &str,
) -> Result<crate::v2_7_2::types::ControllerServiceDefinition, NifiError>;
async fn get_controller_service_types(
&self,
service_type: Option<&str>,
service_bundle_group: Option<&str>,
service_bundle_artifact: Option<&str>,
service_bundle_version: Option<&str>,
bundle_group_filter: Option<&str>,
bundle_artifact_filter: Option<&str>,
type_filter: Option<&str>,
) -> Result<crate::v2_7_2::types::ControllerServiceTypesEntity, NifiError>;
async fn get_bulletins(
&self,
) -> Result<crate::v2_7_2::types::ControllerBulletinsEntity, NifiError>;
async fn get_controller_services_from_controller(
&self,
ui_only: Option<bool>,
include_referencing_components: Option<bool>,
) -> Result<crate::v2_7_2::types::ControllerServicesEntity, NifiError>;
async fn get_current_user(&self) -> Result<crate::v2_7_2::types::CurrentUserEntity, NifiError>;
async fn get_flow_analysis_rule_definition(
&self,
group: &str,
artifact: &str,
version: &str,
r#type: &str,
) -> Result<crate::v2_7_2::types::FlowAnalysisRuleDefinition, NifiError>;
async fn get_flow_analysis_rule_types(
&self,
bundle_group_filter: Option<&str>,
bundle_artifact_filter: Option<&str>,
r#type: Option<&str>,
) -> Result<crate::v2_7_2::types::FlowAnalysisRuleTypesEntity, NifiError>;
async fn get_all_flow_analysis_results(
&self,
) -> Result<crate::v2_7_2::types::FlowAnalysisResultEntity, NifiError>;
async fn get_flow_analysis_results(
&self,
process_group_id: &str,
) -> Result<crate::v2_7_2::types::FlowAnalysisResultEntity, NifiError>;
async fn get_flow_registry_client_definition(
&self,
group: &str,
artifact: &str,
version: &str,
r#type: &str,
) -> Result<crate::v2_7_2::types::FlowRegistryClientDefinition, NifiError>;
async fn query_history(
&self,
offset: &str,
count: &str,
sort_column: Option<&str>,
sort_order: Option<&str>,
start_date: Option<&str>,
end_date: Option<&str>,
user_identity: Option<&str>,
source_id: Option<&str>,
) -> Result<crate::v2_7_2::types::HistoryDto, NifiError>;
async fn get_component_history(
&self,
component_id: &str,
) -> Result<crate::v2_7_2::types::ComponentHistoryDto, NifiError>;
async fn get_action(&self, id: &str) -> Result<crate::v2_7_2::types::ActionEntity, NifiError>;
async fn get_listen_ports(&self) -> Result<crate::v2_7_2::types::ListenPortsEntity, NifiError>;
async fn get_flow_metrics(
&self,
producer: &str,
included_registries: Option<crate::v2_7_2::types::IncludedRegistries>,
sample_name: Option<&str>,
sample_label_value: Option<&str>,
root_field_name: Option<&str>,
flow_metrics_reporting_strategy: Option<crate::v2_7_2::types::FlowMetricsReportingStrategy>,
) -> Result<(), NifiError>;
async fn get_parameter_contexts(
&self,
) -> Result<crate::v2_7_2::types::ParameterContextsEntity, NifiError>;
async fn get_parameter_provider_definition(
&self,
group: &str,
artifact: &str,
version: &str,
r#type: &str,
) -> Result<crate::v2_7_2::types::ParameterProviderDefinition, NifiError>;
async fn get_parameter_provider_types(
&self,
bundle_group_filter: Option<&str>,
bundle_artifact_filter: Option<&str>,
r#type: Option<&str>,
) -> Result<crate::v2_7_2::types::ParameterProviderTypesEntity, NifiError>;
async fn get_parameter_providers(
&self,
) -> Result<crate::v2_7_2::types::ParameterProvidersEntity, NifiError>;
async fn get_prioritizers(
&self,
) -> Result<crate::v2_7_2::types::PrioritizerTypesEntity, NifiError>;
async fn get_flow(
&self,
id: &str,
ui_only: Option<bool>,
) -> Result<crate::v2_7_2::types::ProcessGroupFlowEntity, NifiError>;
async fn schedule_components(
&self,
id: &str,
body: &crate::v2_7_2::types::ScheduleComponentsEntity,
) -> Result<crate::v2_7_2::types::ScheduleComponentsEntity, NifiError>;
async fn get_processor_definition(
&self,
group: &str,
artifact: &str,
version: &str,
r#type: &str,
) -> Result<crate::v2_7_2::types::ProcessorDefinition, NifiError>;
async fn get_processor_types(
&self,
bundle_group_filter: Option<&str>,
bundle_artifact_filter: Option<&str>,
r#type: Option<&str>,
) -> Result<crate::v2_7_2::types::ProcessorTypesEntity, NifiError>;
async fn get_registry_clients(
&self,
) -> Result<crate::v2_7_2::types::FlowRegistryClientsEntity, NifiError>;
async fn get_reporting_task_definition(
&self,
group: &str,
artifact: &str,
version: &str,
r#type: &str,
) -> Result<crate::v2_7_2::types::ReportingTaskDefinition, NifiError>;
async fn get_reporting_task_types(
&self,
bundle_group_filter: Option<&str>,
bundle_artifact_filter: Option<&str>,
r#type: Option<&str>,
) -> Result<crate::v2_7_2::types::ReportingTaskTypesEntity, NifiError>;
async fn get_reporting_tasks(
&self,
) -> Result<crate::v2_7_2::types::ReportingTasksEntity, NifiError>;
async fn download_reporting_task_snapshot(
&self,
reporting_task_id: Option<&str>,
) -> Result<(), NifiError>;
async fn get_reporting_task_snapshot(
&self,
reporting_task_id: Option<&str>,
) -> Result<crate::v2_7_2::types::VersionedReportingTaskSnapshot, NifiError>;
async fn get_runtime_manifest(
&self,
) -> Result<crate::v2_7_2::types::RuntimeManifest, NifiError>;
async fn search_flow(
&self,
q: Option<&str>,
a: Option<&str>,
) -> Result<crate::v2_7_2::types::SearchResultsDto, NifiError>;
async fn get_controller_status(
&self,
) -> Result<crate::v2_7_2::types::ControllerStatusDto, NifiError>;
}