pub struct DynamicClient { /* private fields */ }Expand description
A dynamic NiFi client that detects the server version at connect time and dispatches API calls to the correct version’s generated code.
Implementations§
Source§impl DynamicClient
impl DynamicClient
Sourcepub async fn from_client(client: NifiClient) -> Result<Self, NifiError>
pub async fn from_client(client: NifiClient) -> Result<Self, NifiError>
Wrap an existing NifiClient and detect the NiFi server version via GET /flow/about.
Sourcepub fn detected_version(&self) -> DetectedVersion
pub fn detected_version(&self) -> DetectedVersion
Returns the detected NiFi server version.
Sourcepub fn inner(&self) -> &NifiClient
pub fn inner(&self) -> &NifiClient
Returns a reference to the underlying NifiClient.
Sourcepub fn inner_mut(&mut self) -> &mut NifiClient
pub fn inner_mut(&mut self) -> &mut NifiClient
Returns a mutable reference to the underlying NifiClient.
Sourcepub async fn login(
&mut self,
username: &str,
password: &str,
) -> Result<(), NifiError>
pub async fn login( &mut self, username: &str, password: &str, ) -> Result<(), NifiError>
Authenticate with the NiFi instance.
Sourcepub fn access_api(&self) -> DynamicAccessApi<'_>
pub fn access_api(&self) -> DynamicAccessApi<'_>
Access the Access API with dynamic dispatch.
Sourcepub fn authentication_api(&self) -> DynamicAuthenticationApi<'_>
pub fn authentication_api(&self) -> DynamicAuthenticationApi<'_>
Access the Authentication API with dynamic dispatch.
Sourcepub fn connections_api(&self) -> DynamicConnectionsApi<'_>
pub fn connections_api(&self) -> DynamicConnectionsApi<'_>
Access the Connections API with dynamic dispatch.
Sourcepub fn controller_api(&self) -> DynamicControllerApi<'_>
pub fn controller_api(&self) -> DynamicControllerApi<'_>
Access the Controller API with dynamic dispatch.
Sourcepub fn controller_services_api(&self) -> DynamicControllerServicesApi<'_>
pub fn controller_services_api(&self) -> DynamicControllerServicesApi<'_>
Access the Controller Services API with dynamic dispatch.
Sourcepub fn counters_api(&self) -> DynamicCountersApi<'_>
pub fn counters_api(&self) -> DynamicCountersApi<'_>
Access the Counters API with dynamic dispatch.
Sourcepub fn datatransfer_api(&self) -> DynamicDataTransferApi<'_>
pub fn datatransfer_api(&self) -> DynamicDataTransferApi<'_>
Access the DataTransfer API with dynamic dispatch.
Sourcepub fn flow_api(&self) -> DynamicFlowApi<'_>
pub fn flow_api(&self) -> DynamicFlowApi<'_>
Access the Flow API with dynamic dispatch.
Sourcepub fn flowfilequeues_api(&self) -> DynamicFlowFileQueuesApi<'_>
pub fn flowfilequeues_api(&self) -> DynamicFlowFileQueuesApi<'_>
Access the FlowFileQueues API with dynamic dispatch.
Sourcepub fn funnels_api(&self) -> DynamicFunnelsApi<'_>
pub fn funnels_api(&self) -> DynamicFunnelsApi<'_>
Access the Funnels API with dynamic dispatch.
Sourcepub fn inputports_api(&self) -> DynamicInputPortsApi<'_>
pub fn inputports_api(&self) -> DynamicInputPortsApi<'_>
Access the InputPorts API with dynamic dispatch.
Sourcepub fn labels_api(&self) -> DynamicLabelsApi<'_>
pub fn labels_api(&self) -> DynamicLabelsApi<'_>
Access the Labels API with dynamic dispatch.
Sourcepub fn outputports_api(&self) -> DynamicOutputPortsApi<'_>
pub fn outputports_api(&self) -> DynamicOutputPortsApi<'_>
Access the OutputPorts API with dynamic dispatch.
Sourcepub fn parametercontexts_api(&self) -> DynamicParameterContextsApi<'_>
pub fn parametercontexts_api(&self) -> DynamicParameterContextsApi<'_>
Access the ParameterContexts API with dynamic dispatch.
Sourcepub fn parameterproviders_api(&self) -> DynamicParameterProvidersApi<'_>
pub fn parameterproviders_api(&self) -> DynamicParameterProvidersApi<'_>
Access the ParameterProviders API with dynamic dispatch.
Sourcepub fn policies_api(&self) -> DynamicPoliciesApi<'_>
pub fn policies_api(&self) -> DynamicPoliciesApi<'_>
Access the Policies API with dynamic dispatch.
Sourcepub fn processgroups_api(&self) -> DynamicProcessGroupsApi<'_>
pub fn processgroups_api(&self) -> DynamicProcessGroupsApi<'_>
Access the ProcessGroups API with dynamic dispatch.
Sourcepub fn processors_api(&self) -> DynamicProcessorsApi<'_>
pub fn processors_api(&self) -> DynamicProcessorsApi<'_>
Access the Processors API with dynamic dispatch.
Sourcepub fn provenance_api(&self) -> DynamicProvenanceApi<'_>
pub fn provenance_api(&self) -> DynamicProvenanceApi<'_>
Access the Provenance API with dynamic dispatch.
Sourcepub fn provenanceevents_api(&self) -> DynamicProvenanceEventsApi<'_>
pub fn provenanceevents_api(&self) -> DynamicProvenanceEventsApi<'_>
Access the ProvenanceEvents API with dynamic dispatch.
Sourcepub fn remoteprocessgroups_api(&self) -> DynamicRemoteProcessGroupsApi<'_>
pub fn remoteprocessgroups_api(&self) -> DynamicRemoteProcessGroupsApi<'_>
Access the RemoteProcessGroups API with dynamic dispatch.
Sourcepub fn reportingtasks_api(&self) -> DynamicReportingTasksApi<'_>
pub fn reportingtasks_api(&self) -> DynamicReportingTasksApi<'_>
Access the ReportingTasks API with dynamic dispatch.
Sourcepub fn resources_api(&self) -> DynamicResourcesApi<'_>
pub fn resources_api(&self) -> DynamicResourcesApi<'_>
Access the Resources API with dynamic dispatch.
Sourcepub fn sitetosite_api(&self) -> DynamicSiteToSiteApi<'_>
pub fn sitetosite_api(&self) -> DynamicSiteToSiteApi<'_>
Access the SiteToSite API with dynamic dispatch.
Sourcepub fn snippets_api(&self) -> DynamicSnippetsApi<'_>
pub fn snippets_api(&self) -> DynamicSnippetsApi<'_>
Access the Snippets API with dynamic dispatch.
Sourcepub fn systemdiagnostics_api(&self) -> DynamicSystemDiagnosticsApi<'_>
pub fn systemdiagnostics_api(&self) -> DynamicSystemDiagnosticsApi<'_>
Access the SystemDiagnostics API with dynamic dispatch.
Sourcepub fn tenants_api(&self) -> DynamicTenantsApi<'_>
pub fn tenants_api(&self) -> DynamicTenantsApi<'_>
Access the Tenants API with dynamic dispatch.
Sourcepub fn versions_api(&self) -> DynamicVersionsApi<'_>
pub fn versions_api(&self) -> DynamicVersionsApi<'_>
Access the Versions API with dynamic dispatch.