pub struct DynamicClient { /* private fields */ }Expand description
DynamicClient — the new canonical dispatch path. Reachable only via
the #[doc(hidden)] dynamic re-export in Phase 4a.
Implementations§
Source§impl DynamicClient
impl DynamicClient
Sourcepub fn access(&self) -> Access<'_>
pub fn access(&self) -> Access<'_>
Access the Access API (canonical dynamic).
Sourcepub fn authentication(&self) -> Authentication<'_>
pub fn authentication(&self) -> Authentication<'_>
Access the Authentication API (canonical dynamic).
Sourcepub fn connections(&self) -> Connections<'_>
pub fn connections(&self) -> Connections<'_>
Access the Connections API (canonical dynamic).
Sourcepub fn connectors(&self) -> Connectors<'_>
pub fn connectors(&self) -> Connectors<'_>
Access the Connectors API (canonical dynamic).
Sourcepub fn controller(&self) -> Controller<'_>
pub fn controller(&self) -> Controller<'_>
Access the Controller API (canonical dynamic).
Sourcepub fn controller_services(&self) -> ControllerServices<'_>
pub fn controller_services(&self) -> ControllerServices<'_>
Access the Controller Services API (canonical dynamic).
Sourcepub fn counters(&self) -> Counters<'_>
pub fn counters(&self) -> Counters<'_>
Access the Counters API (canonical dynamic).
Sourcepub fn datatransfer(&self) -> DataTransfer<'_>
pub fn datatransfer(&self) -> DataTransfer<'_>
Access the DataTransfer API (canonical dynamic).
Sourcepub fn flowfilequeues(&self) -> FlowFileQueues<'_>
pub fn flowfilequeues(&self) -> FlowFileQueues<'_>
Access the FlowFileQueues API (canonical dynamic).
Sourcepub fn funnels(&self) -> Funnels<'_>
pub fn funnels(&self) -> Funnels<'_>
Access the Funnels API (canonical dynamic).
Sourcepub fn inputports(&self) -> InputPorts<'_>
pub fn inputports(&self) -> InputPorts<'_>
Access the InputPorts API (canonical dynamic).
Sourcepub fn labels(&self) -> Labels<'_>
pub fn labels(&self) -> Labels<'_>
Access the Labels API (canonical dynamic).
Sourcepub fn outputports(&self) -> OutputPorts<'_>
pub fn outputports(&self) -> OutputPorts<'_>
Access the OutputPorts API (canonical dynamic).
Sourcepub fn parametercontexts(&self) -> ParameterContexts<'_>
pub fn parametercontexts(&self) -> ParameterContexts<'_>
Access the ParameterContexts API (canonical dynamic).
Sourcepub fn parameterproviders(&self) -> ParameterProviders<'_>
pub fn parameterproviders(&self) -> ParameterProviders<'_>
Access the ParameterProviders API (canonical dynamic).
Sourcepub fn policies(&self) -> Policies<'_>
pub fn policies(&self) -> Policies<'_>
Access the Policies API (canonical dynamic).
Sourcepub fn processgroups(&self) -> ProcessGroups<'_>
pub fn processgroups(&self) -> ProcessGroups<'_>
Access the ProcessGroups API (canonical dynamic).
Sourcepub fn processors(&self) -> Processors<'_>
pub fn processors(&self) -> Processors<'_>
Access the Processors API (canonical dynamic).
Sourcepub fn provenance(&self) -> Provenance<'_>
pub fn provenance(&self) -> Provenance<'_>
Access the Provenance API (canonical dynamic).
Sourcepub fn provenanceevents(&self) -> ProvenanceEvents<'_>
pub fn provenanceevents(&self) -> ProvenanceEvents<'_>
Access the ProvenanceEvents API (canonical dynamic).
Sourcepub fn remoteprocessgroups(&self) -> RemoteProcessGroups<'_>
pub fn remoteprocessgroups(&self) -> RemoteProcessGroups<'_>
Access the RemoteProcessGroups API (canonical dynamic).
Sourcepub fn reportingtasks(&self) -> ReportingTasks<'_>
pub fn reportingtasks(&self) -> ReportingTasks<'_>
Access the ReportingTasks API (canonical dynamic).
Sourcepub fn resources(&self) -> Resources<'_>
pub fn resources(&self) -> Resources<'_>
Access the Resources API (canonical dynamic).
Sourcepub fn sitetosite(&self) -> SiteToSite<'_>
pub fn sitetosite(&self) -> SiteToSite<'_>
Access the SiteToSite API (canonical dynamic).
Sourcepub fn snippets(&self) -> Snippets<'_>
pub fn snippets(&self) -> Snippets<'_>
Access the Snippets API (canonical dynamic).
Sourcepub fn systemdiagnostics(&self) -> SystemDiagnostics<'_>
pub fn systemdiagnostics(&self) -> SystemDiagnostics<'_>
Access the SystemDiagnostics API (canonical dynamic).
Sourcepub fn tenants(&self) -> Tenants<'_>
pub fn tenants(&self) -> Tenants<'_>
Access the Tenants API (canonical dynamic).
Sourcepub fn versions(&self) -> Versions<'_>
pub fn versions(&self) -> Versions<'_>
Access the Versions API (canonical dynamic).
Source§impl DynamicClient
impl DynamicClient
Sourcepub fn new(client: NifiClient) -> Self
pub fn new(client: NifiClient) -> Self
Wrap a NifiClient. Uses the default VersionResolutionStrategy.
Version detection happens lazily on the first call to a method that
consults require_endpoint.
Sourcepub fn with_strategy(
client: NifiClient,
strategy: VersionResolutionStrategy,
) -> Self
pub fn with_strategy( client: NifiClient, strategy: VersionResolutionStrategy, ) -> Self
Wrap a NifiClient with a specific VersionResolutionStrategy.
Sourcepub async fn from_client(client: NifiClient) -> Result<Self, NifiError>
pub async fn from_client(client: NifiClient) -> Result<Self, NifiError>
Async constructor that eagerly detects the version and discovers cluster
topology. Mirrors the legacy DynamicClient::from_client.
Sourcepub fn inner(&self) -> &NifiClient
pub fn inner(&self) -> &NifiClient
Underlying NifiClient used by generated methods to issue HTTP requests.
Sourcepub fn strategy(&self) -> VersionResolutionStrategy
pub fn strategy(&self) -> VersionResolutionStrategy
The configured VersionResolutionStrategy.
Sourcepub async fn login(
&self,
username: &str,
password: &str,
) -> Result<(), NifiError>
pub async fn login( &self, username: &str, password: &str, ) -> Result<(), NifiError>
Authenticate and detect the server version. Mirrors the legacy
DynamicClient::login.
Sourcepub async fn token(&self) -> Option<String>
pub async fn token(&self) -> Option<String>
Return the current bearer token, if any.
Useful for persisting the token between process restarts.
See NifiClient::token for details.
Sourcepub async fn set_token(&self, token: String)
pub async fn set_token(&self, token: String)
Restore a previously obtained bearer token.
See NifiClient::set_token for details.
Sourcepub async fn authenticate(&self) -> Result<(), NifiError>
pub async fn authenticate(&self) -> Result<(), NifiError>
Re-authenticate using the configured AuthProvider.
See NifiClient::authenticate for details.
Sourcepub async fn detect_version(&self) -> Result<DetectedVersion, NifiError>
pub async fn detect_version(&self) -> Result<DetectedVersion, NifiError>
Detect the NiFi server version via GET /flow/about. Idempotent —
subsequent calls return the cached result. Honors the configured
VersionResolutionStrategy.
Sourcepub fn detected_version(&self) -> Option<DetectedVersion>
pub fn detected_version(&self) -> Option<DetectedVersion>
Currently-detected version, or None if detect_version has not yet
completed successfully.
Sourcepub fn detected_version_str(&self) -> String
pub fn detected_version_str(&self) -> String
Currently-detected version string, or an empty string if
detect_version has not yet completed. Returned as an owned String
so the generated URL-building code can pass it by value into the
UnsupportedQueryParam error constructor without cloning.
Sourcepub fn cluster_node_id(&self) -> Option<&str>
pub fn cluster_node_id(&self) -> Option<&str>
The cluster node ID of the connected (primary) node, if this NiFi
instance is part of a cluster. None for standalone instances or if
cluster discovery has not yet been performed.