Skip to content

Commit 9746cc3

Browse files
committed
Update NiFi and NiFi-Registry clients to the 1.17.0 release
Update docker resources to the latest 1.17 container image Fix issue in docker volume mounts where certificates were not readable in new versions of Docker Fix issue in test_get_processor_type where new Twitter processor broke existing logic assumptions Update readme to note issues with Python 3.10 and removing reference to python 3.5 testing Signed-off-by: Daniel Chaffelson <[email protected]>
1 parent bd271ec commit 9746cc3

File tree

485 files changed

+32503
-1492
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

485 files changed

+32503
-1492
lines changed

README.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,6 @@ NiFi Version Support
9999
Python Requirements
100100
-------------------
101101

102-
| Python 2.7 or 3.5-8 supported, though other versions may work. *We will shortly stop supporting Python2*
102+
| Python 2.7 or 3.6-9 supported, though other versions may work. *We will shortly stop supporting Python2* *There are known issues on Python 3.10*
103103
| Tested on AL2 and OSX 10.14.x - Windows automated testing not attempted
104104
| Outside of the standard Python modules, we make use of lxml, DeepDiff, ruamel.yaml and xmltodict in processing, and Docker for demo/tests.

nipyapi/nifi/__init__.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The Rest API provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service.
77
8-
OpenAPI spec version: 1.16.1
8+
OpenAPI spec version: 1.17.0
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""
@@ -24,6 +24,8 @@
2424
from .models.access_policy_summary_entity import AccessPolicySummaryEntity
2525
from .models.access_status_dto import AccessStatusDTO
2626
from .models.access_status_entity import AccessStatusEntity
27+
from .models.access_token_expiration_dto import AccessTokenExpirationDTO
28+
from .models.access_token_expiration_entity import AccessTokenExpirationEntity
2729
from .models.action_dto import ActionDTO
2830
from .models.action_details_dto import ActionDetailsDTO
2931
from .models.action_entity import ActionEntity
@@ -281,6 +283,7 @@
281283
from .models.required_permission_dto import RequiredPermissionDTO
282284
from .models.resource_dto import ResourceDTO
283285
from .models.resources_entity import ResourcesEntity
286+
from .models.restriction import Restriction
284287
from .models.revision_dto import RevisionDTO
285288
from .models.revision_info import RevisionInfo
286289
from .models.run_status_details_request_entity import RunStatusDetailsRequestEntity
@@ -364,7 +367,6 @@
364367
# import apis into sdk package
365368
from .apis.access_api import AccessApi
366369
from .apis.accessoidc_api import AccessoidcApi
367-
from .apis.accesssaml_api import AccesssamlApi
368370
from .apis.connections_api import ConnectionsApi
369371
from .apis.controller_api import ControllerApi
370372
from .apis.controller_services_api import ControllerServicesApi

nipyapi/nifi/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
55
The Rest API provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service.
66
7-
OpenAPI spec version: 1.16.1
7+
OpenAPI spec version: 1.17.0
88
99
Generated by: https://github.com/swagger-api/swagger-codegen.git
1010
"""

nipyapi/nifi/apis/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# import apis into api package
44
from .access_api import AccessApi
55
from .accessoidc_api import AccessoidcApi
6-
from .accesssaml_api import AccesssamlApi
76
from .connections_api import ConnectionsApi
87
from .controller_api import ControllerApi
98
from .controller_services_api import ControllerServicesApi

nipyapi/nifi/apis/access_api.py

Lines changed: 95 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The Rest API provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service.
77
8-
OpenAPI spec version: 1.16.1
8+
OpenAPI spec version: 1.17.0
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""
@@ -343,6 +343,100 @@ def get_access_status_with_http_info(self, **kwargs):
343343
_request_timeout=params.get('_request_timeout'),
344344
collection_formats=collection_formats)
345345

346+
def get_access_token_expiration(self, **kwargs):
347+
"""
348+
Get expiration for current Access Token
349+
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
350+
This method makes a synchronous HTTP request by default. To make an
351+
asynchronous HTTP request, please define a `callback` function
352+
to be invoked when receiving the response.
353+
>>> def callback_function(response):
354+
>>> pprint(response)
355+
>>>
356+
>>> thread = api.get_access_token_expiration(callback=callback_function)
357+
358+
:param callback function: The callback function
359+
for asynchronous request. (optional)
360+
:return: AccessTokenExpirationEntity
361+
If the method is called asynchronously,
362+
returns the request thread.
363+
"""
364+
kwargs['_return_http_data_only'] = True
365+
if kwargs.get('callback'):
366+
return self.get_access_token_expiration_with_http_info(**kwargs)
367+
else:
368+
(data) = self.get_access_token_expiration_with_http_info(**kwargs)
369+
return data
370+
371+
def get_access_token_expiration_with_http_info(self, **kwargs):
372+
"""
373+
Get expiration for current Access Token
374+
Note: This endpoint is subject to change as NiFi and it's REST API evolve.
375+
This method makes a synchronous HTTP request by default. To make an
376+
asynchronous HTTP request, please define a `callback` function
377+
to be invoked when receiving the response.
378+
>>> def callback_function(response):
379+
>>> pprint(response)
380+
>>>
381+
>>> thread = api.get_access_token_expiration_with_http_info(callback=callback_function)
382+
383+
:param callback function: The callback function
384+
for asynchronous request. (optional)
385+
:return: AccessTokenExpirationEntity
386+
If the method is called asynchronously,
387+
returns the request thread.
388+
"""
389+
390+
all_params = []
391+
all_params.append('callback')
392+
all_params.append('_return_http_data_only')
393+
all_params.append('_preload_content')
394+
all_params.append('_request_timeout')
395+
396+
params = locals()
397+
for key, val in iteritems(params['kwargs']):
398+
if key not in all_params:
399+
raise TypeError(
400+
"Got an unexpected keyword argument '%s'"
401+
" to method get_access_token_expiration" % key
402+
)
403+
params[key] = val
404+
del params['kwargs']
405+
406+
collection_formats = {}
407+
408+
path_params = {}
409+
410+
query_params = []
411+
412+
header_params = {}
413+
414+
form_params = []
415+
local_var_files = {}
416+
417+
body_params = None
418+
# HTTP header `Accept`
419+
header_params['Accept'] = self.api_client.\
420+
select_header_accept(['application/json'])
421+
422+
# Authentication setting
423+
auth_settings = ['tokenAuth']
424+
425+
return self.api_client.call_api('/access/token/expiration', 'GET',
426+
path_params,
427+
query_params,
428+
header_params,
429+
body=body_params,
430+
post_params=form_params,
431+
files=local_var_files,
432+
response_type='AccessTokenExpirationEntity',
433+
auth_settings=auth_settings,
434+
callback=params.get('callback'),
435+
_return_http_data_only=params.get('_return_http_data_only'),
436+
_preload_content=params.get('_preload_content', True),
437+
_request_timeout=params.get('_request_timeout'),
438+
collection_formats=collection_formats)
439+
346440
def get_login_config(self, **kwargs):
347441
"""
348442
Retrieves the access configuration for this NiFi

nipyapi/nifi/apis/accessoidc_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
The Rest API provides programmatic access to command and control a NiFi instance in real time. Start and stop processors, monitor queues, query provenance data, and more. Each endpoint below includes a description, definitions of the expected input and output, potential response codes, and the authorizations required to invoke each service.
77
8-
OpenAPI spec version: 1.16.1
8+
OpenAPI spec version: 1.17.0
99
1010
Generated by: https://github.com/swagger-api/swagger-codegen.git
1111
"""

0 commit comments

Comments
 (0)