Apache NiFi REST API

REST API definition for Apache NiFi web services

OpenAPI spec version: 2.7.2 Contact: dev@nifi.apache.org Generated by: https://github.com/swagger-api/swagger-codegen.git

class nipyapi.nifi.apis.labels_api.LabelsApi(api_client=None)[source]

Bases: object

NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. Ref: https://github.com/swagger-api/swagger-codegen

__init__(api_client=None)[source]
get_label(id, **kwargs)[source]

Gets a label. This method makes a synchronous HTTP request and returns the response data directly.

For full HTTP response details (status code, headers, etc.), use the corresponding get_label_with_http_info() method instead.

Parameters:

id (str) – The label id. (required)

Returns:

The response data.

Return type:

LabelEntity

get_label_with_http_info(id, **kwargs)[source]

Gets a label. This method makes a synchronous HTTP request and returns detailed response information.

Returns the response data along with HTTP status code, headers, and other metadata. For just the response data, use the corresponding get_label() method instead.

Parameters:

id (str) – The label id. (required)

Returns:

(LabelEntity, status_code, headers) - Response data with HTTP details.

Return type:

tuple

remove_label(id, **kwargs)[source]

Deletes a label. This method makes a synchronous HTTP request and returns the response data directly.

For full HTTP response details (status code, headers, etc.), use the corresponding remove_label_with_http_info() method instead.

Parameters:
  • id (str) – The label id. (required)

  • version (LongParameter) – The revision is used to verify the client is working with the latest version of the flow.

  • client_id (ClientIdParameter) – If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.

  • disconnected_node_acknowledged (bool) – Acknowledges that this node is disconnected to allow for mutable requests to proceed.

Returns:

The response data.

Return type:

LabelEntity

remove_label_with_http_info(id, **kwargs)[source]

Deletes a label. This method makes a synchronous HTTP request and returns detailed response information.

Returns the response data along with HTTP status code, headers, and other metadata. For just the response data, use the corresponding remove_label() method instead.

Parameters:
  • id (str) – The label id. (required)

  • version (LongParameter) – The revision is used to verify the client is working with the latest version of the flow.

  • client_id (ClientIdParameter) – If the client id is not specified, new one will be generated. This value (whether specified or generated) is included in the response.

  • disconnected_node_acknowledged (bool) – Acknowledges that this node is disconnected to allow for mutable requests to proceed.

Returns:

(LabelEntity, status_code, headers) - Response data with HTTP details.

Return type:

tuple

update_label(body, id, **kwargs)[source]

Updates a label. This method makes a synchronous HTTP request and returns the response data directly.

For full HTTP response details (status code, headers, etc.), use the corresponding update_label_with_http_info() method instead.

Parameters:
  • body (LabelEntity) – The label configuration details. (required)

  • id (str) – The label id. (required)

Returns:

The response data.

Return type:

LabelEntity

update_label_with_http_info(body, id, **kwargs)[source]

Updates a label. This method makes a synchronous HTTP request and returns detailed response information.

Returns the response data along with HTTP status code, headers, and other metadata. For just the response data, use the corresponding update_label() method instead.

Parameters:
  • body (LabelEntity) – The label configuration details. (required)

  • id (str) – The label id. (required)

Returns:

(LabelEntity, status_code, headers) - Response data with HTTP details.

Return type:

tuple