pub struct ProcessGroupsLabelsApi<'a> { /* private fields */ }Implementations§
Source§impl<'a> ProcessGroupsLabelsApi<'a>
impl<'a> ProcessGroupsLabelsApi<'a>
Sourcepub async fn get_labels(&self) -> Result<LabelsEntity, NifiError>
pub async fn get_labels(&self) -> Result<LabelsEntity, NifiError>
Gets all labels
Calls GET /nifi-api/process-groups/{id}/labels.
§Errors
400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.401: Client could not be authenticated.403: Client is not authorized to make this request.404: The specified resource could not be found.409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions
Requires Read - /process-groups/{uuid}.
Sourcepub async fn create_label(
&self,
body: &LabelEntity,
) -> Result<LabelEntity, NifiError>
pub async fn create_label( &self, body: &LabelEntity, ) -> Result<LabelEntity, NifiError>
Creates a label
Calls POST /nifi-api/process-groups/{id}/labels.
§Parameters
body: The label configuration details.
§Errors
400: NiFi was unable to complete the request because it was invalid. The request should not be retried without modification.401: Client could not be authenticated.403: Client is not authorized to make this request.404: The specified resource could not be found.409: The request was valid but NiFi was not in the appropriate state to process it.
§Permissions
Requires Write - /process-groups/{uuid}.
Trait Implementations§
Source§impl ProcessGroupsLabelsApi for ProcessGroupsLabelsApi<'_>
impl ProcessGroupsLabelsApi for ProcessGroupsLabelsApi<'_>
Source§async fn get_labels(&self) -> Result<LabelsEntity, NifiError>
async fn get_labels(&self) -> Result<LabelsEntity, NifiError>
Gets all labels
Source§async fn create_label(
&self,
body: &LabelEntity,
) -> Result<LabelEntity, NifiError>
async fn create_label( &self, body: &LabelEntity, ) -> Result<LabelEntity, NifiError>
Creates a label
Auto Trait Implementations§
impl<'a> Freeze for ProcessGroupsLabelsApi<'a>
impl<'a> !RefUnwindSafe for ProcessGroupsLabelsApi<'a>
impl<'a> Send for ProcessGroupsLabelsApi<'a>
impl<'a> Sync for ProcessGroupsLabelsApi<'a>
impl<'a> Unpin for ProcessGroupsLabelsApi<'a>
impl<'a> UnsafeUnpin for ProcessGroupsLabelsApi<'a>
impl<'a> !UnwindSafe for ProcessGroupsLabelsApi<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more