eis-webhook 1.1.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (54) hide show
  1. eis_webhook-1.1.0/PKG-INFO +22 -0
  2. eis_webhook-1.1.0/README.md +161 -0
  3. eis_webhook-1.1.0/eis/__init__.py +0 -0
  4. eis_webhook-1.1.0/eis/webhook/__init__.py +28 -0
  5. eis_webhook-1.1.0/eis/webhook/api/__init__.py +3 -0
  6. eis_webhook-1.1.0/eis/webhook/api/health_checks_api.py +168 -0
  7. eis_webhook-1.1.0/eis/webhook/api/inbound_webhooks_api.py +784 -0
  8. eis_webhook-1.1.0/eis/webhook/api/trigger_inbound_webhooks_api.py +180 -0
  9. eis_webhook-1.1.0/eis/webhook/api/webhook_requests_api.py +209 -0
  10. eis_webhook-1.1.0/eis/webhook/api_client.py +998 -0
  11. eis_webhook-1.1.0/eis/webhook/apis/__init__.py +20 -0
  12. eis_webhook-1.1.0/eis/webhook/configuration.py +456 -0
  13. eis_webhook-1.1.0/eis/webhook/exceptions.py +159 -0
  14. eis_webhook-1.1.0/eis/webhook/model/__init__.py +5 -0
  15. eis_webhook-1.1.0/eis/webhook/model/create_inbound_webhook_request_dto.py +317 -0
  16. eis_webhook-1.1.0/eis/webhook/model/create_inbound_webhook_response_class.py +276 -0
  17. eis_webhook-1.1.0/eis/webhook/model/get_inbound_webhook_response_class.py +276 -0
  18. eis_webhook-1.1.0/eis/webhook/model/inbound_webhook_class.py +341 -0
  19. eis_webhook-1.1.0/eis/webhook/model/inline_response200.py +276 -0
  20. eis_webhook-1.1.0/eis/webhook/model/inline_response503.py +276 -0
  21. eis_webhook-1.1.0/eis/webhook/model/list_inbound_webhook_response_class.py +294 -0
  22. eis_webhook-1.1.0/eis/webhook/model/list_webhook_requests_response_class.py +294 -0
  23. eis_webhook-1.1.0/eis/webhook/model/trigger_inbound_webhook_accepted_response_class.py +280 -0
  24. eis_webhook-1.1.0/eis/webhook/model/trigger_inbound_webhook_rejected_response_class.py +284 -0
  25. eis_webhook-1.1.0/eis/webhook/model/update_inbound_webhook_request_dto.py +285 -0
  26. eis_webhook-1.1.0/eis/webhook/model/update_inbound_webhook_response_class.py +276 -0
  27. eis_webhook-1.1.0/eis/webhook/model/webhook_request_class.py +381 -0
  28. eis_webhook-1.1.0/eis/webhook/model_utils.py +2063 -0
  29. eis_webhook-1.1.0/eis/webhook/models/__init__.py +24 -0
  30. eis_webhook-1.1.0/eis/webhook/rest.py +475 -0
  31. eis_webhook-1.1.0/eis_webhook.egg-info/PKG-INFO +22 -0
  32. eis_webhook-1.1.0/eis_webhook.egg-info/SOURCES.txt +53 -0
  33. eis_webhook-1.1.0/eis_webhook.egg-info/dependency_links.txt +1 -0
  34. eis_webhook-1.1.0/eis_webhook.egg-info/requires.txt +2 -0
  35. eis_webhook-1.1.0/eis_webhook.egg-info/top_level.txt +1 -0
  36. eis_webhook-1.1.0/setup.cfg +11 -0
  37. eis_webhook-1.1.0/setup.py +43 -0
  38. eis_webhook-1.1.0/test/test_create_inbound_webhook_request_dto.py +36 -0
  39. eis_webhook-1.1.0/test/test_create_inbound_webhook_response_class.py +38 -0
  40. eis_webhook-1.1.0/test/test_get_inbound_webhook_response_class.py +38 -0
  41. eis_webhook-1.1.0/test/test_health_checks_api.py +36 -0
  42. eis_webhook-1.1.0/test/test_inbound_webhook_class.py +36 -0
  43. eis_webhook-1.1.0/test/test_inbound_webhooks_api.py +64 -0
  44. eis_webhook-1.1.0/test/test_inline_response200.py +36 -0
  45. eis_webhook-1.1.0/test/test_inline_response503.py +36 -0
  46. eis_webhook-1.1.0/test/test_list_inbound_webhook_response_class.py +38 -0
  47. eis_webhook-1.1.0/test/test_list_webhook_requests_response_class.py +38 -0
  48. eis_webhook-1.1.0/test/test_trigger_inbound_webhook_accepted_response_class.py +36 -0
  49. eis_webhook-1.1.0/test/test_trigger_inbound_webhook_rejected_response_class.py +36 -0
  50. eis_webhook-1.1.0/test/test_trigger_inbound_webhooks_api.py +36 -0
  51. eis_webhook-1.1.0/test/test_update_inbound_webhook_request_dto.py +36 -0
  52. eis_webhook-1.1.0/test/test_update_inbound_webhook_response_class.py +38 -0
  53. eis_webhook-1.1.0/test/test_webhook_request_class.py +36 -0
  54. eis_webhook-1.1.0/test/test_webhook_requests_api.py +36 -0
@@ -0,0 +1,22 @@
1
+ Metadata-Version: 2.4
2
+ Name: eis_webhook
3
+ Version: 1.1.0
4
+ Summary: EMIL Webhookservice
5
+ Home-page:
6
+ Author: Contact us
7
+ Author-email: kontakt@emil.de
8
+ Keywords: OpenAPI,OpenAPI-Generator,EMIL Webhookservice
9
+ Requires-Python: >=3.6
10
+ Description-Content-Type: text/markdown
11
+ Requires-Dist: urllib3>=1.25.3
12
+ Requires-Dist: python-dateutil
13
+ Dynamic: author
14
+ Dynamic: author-email
15
+ Dynamic: description
16
+ Dynamic: keywords
17
+ Dynamic: requires-dist
18
+ Dynamic: requires-python
19
+ Dynamic: summary
20
+
21
+ The EMIL Webhookservice API description # noqa: E501
22
+
@@ -0,0 +1,161 @@
1
+ # eis_webhook
2
+ The EMIL Webhookservice API description
3
+
4
+ This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
5
+
6
+ - API version: 1.19.3
7
+ - Package version: 1.1.0
8
+ - Build package: org.openapitools.codegen.languages.PythonClientCodegen
9
+ For more information, please visit [https://www.emil.de](https://www.emil.de)
10
+
11
+ ## Requirements.
12
+
13
+ Python >=3.6
14
+
15
+ ## Installation & Usage
16
+ ### pip install
17
+
18
+ If the python package is hosted on a repository, you can install directly using:
19
+
20
+ ```sh
21
+ pip install eis.webhook
22
+ ```
23
+ (you may need to run `pip` with root permission: `sudo pip install git+https://github.com/emilDev/eis-webhook-sdk.git`)
24
+
25
+ Then import the package:
26
+ ```python
27
+ import eis.webhook
28
+ ```
29
+
30
+ ### Setuptools
31
+
32
+ Install via [Setuptools](http://pypi.python.org/pypi/setuptools).
33
+
34
+ ```sh
35
+ python setup.py install --user
36
+ ```
37
+ (or `sudo python setup.py install` to install the package for all users)
38
+
39
+ Then import the package:
40
+ ```python
41
+ import eis.webhook
42
+ ```
43
+
44
+ ## Getting Started
45
+
46
+ The environment variables must be set in order to properly use this SDK.
47
+
48
+ ```shell
49
+ export EMIL_USERNAME=XXXXXXX
50
+ export EMIL_PASSWORD=XXXXXXX
51
+ ```
52
+
53
+ Please follow the [installation procedure](#installation--usage) and then run the following:
54
+
55
+ ```python
56
+ import time
57
+ import eis.webhook
58
+ from pprint import pprint
59
+ from eis.webhook.api import health_checks_api
60
+ from eis.webhook.model.inline_response200 import InlineResponse200
61
+ from eis.webhook.model.inline_response503 import InlineResponse503
62
+ # Defining the host is optional and defaults to https://apiv2.emil.de
63
+ # See configuration.py for a list of all supported configuration parameters.
64
+ configuration = eis.webhook.Configuration(
65
+ host = "https://apiv2.emil.de"
66
+ )
67
+
68
+ # The client must configure the authentication and authorization parameters
69
+ # in accordance with the API server security policy.
70
+ # Examples for each auth method are provided below, use the example that
71
+ # satisfies your auth use case.
72
+
73
+ # Bearer is automatically handled with exported environment variables. However, you
74
+ # can manuallay configure Bearer authorization (JWT): bearer
75
+ configuration = eis.webhook.Configuration(
76
+ access_token = 'YOUR_BEARER_TOKEN'
77
+ )
78
+
79
+ # After manual token becomes invalid, the SDK will default to re-login automatically
80
+ # with environment variable credentials.
81
+
82
+
83
+ # Enter a context with an instance of the API client
84
+ with eis.webhook.ApiClient(configuration) as api_client:
85
+ # Create an instance of the API class
86
+ api_instance = health_checks_api.HealthChecksApi(api_client)
87
+ authorization = "Authorization_example" # str | Bearer Token: provided by the login endpoint under the name accessToken. (optional)
88
+
89
+ try:
90
+ # Health Check
91
+ api_response = api_instance.check(authorization=authorization)
92
+ pprint(api_response)
93
+ except eis.webhook.ApiException as e:
94
+ print("Exception when calling HealthChecksApi->check: %s\n" % e)
95
+ ```
96
+
97
+ ## Documentation for API Endpoints
98
+
99
+ All URIs are relative to *https://apiv2.emil.de*
100
+
101
+ Class | Method | HTTP request | Description
102
+ ------------ | ------------- | ------------- | -------------
103
+ *HealthChecksApi* | [**check**](docs/HealthChecksApi.md#check) | **GET** /webhookservice/health | Health Check
104
+ *InboundWebhooksApi* | [**create_inbound_webhook**](docs/InboundWebhooksApi.md#create_inbound_webhook) | **POST** /webhookservice/v1/inbound-webhooks | Create the inbound webhook
105
+ *InboundWebhooksApi* | [**delete_inbound_webhook**](docs/InboundWebhooksApi.md#delete_inbound_webhook) | **DELETE** /webhookservice/v1/inbound-webhooks/{code} | Delete the inbound webhook
106
+ *InboundWebhooksApi* | [**get_inbound_webhook**](docs/InboundWebhooksApi.md#get_inbound_webhook) | **GET** /webhookservice/v1/inbound-webhooks/{code} | Retrieve the inbound webhook
107
+ *InboundWebhooksApi* | [**list_inbound_webhooks**](docs/InboundWebhooksApi.md#list_inbound_webhooks) | **GET** /webhookservice/v1/inbound-webhooks | List inbound webhooks
108
+ *InboundWebhooksApi* | [**update_inbound_webhook**](docs/InboundWebhooksApi.md#update_inbound_webhook) | **PATCH** /webhookservice/v1/inbound-webhooks/{code} | Update the inbound webhook
109
+ *TriggerInboundWebhooksApi* | [**trigger_incoming_webhook**](docs/TriggerInboundWebhooksApi.md#trigger_incoming_webhook) | **POST** /webhookservice/v1/in/{code} | Execute incoming webhook
110
+ *WebhookRequestsApi* | [**list_webhook_requests**](docs/WebhookRequestsApi.md#list_webhook_requests) | **GET** /webhookservice/v1/webhook-requests | List webhook requests
111
+
112
+
113
+ ## Documentation For Models
114
+
115
+ - [CreateInboundWebhookRequestDto](docs/CreateInboundWebhookRequestDto.md)
116
+ - [CreateInboundWebhookResponseClass](docs/CreateInboundWebhookResponseClass.md)
117
+ - [GetInboundWebhookResponseClass](docs/GetInboundWebhookResponseClass.md)
118
+ - [InboundWebhookClass](docs/InboundWebhookClass.md)
119
+ - [InlineResponse200](docs/InlineResponse200.md)
120
+ - [InlineResponse503](docs/InlineResponse503.md)
121
+ - [ListInboundWebhookResponseClass](docs/ListInboundWebhookResponseClass.md)
122
+ - [ListWebhookRequestsResponseClass](docs/ListWebhookRequestsResponseClass.md)
123
+ - [TriggerInboundWebhookAcceptedResponseClass](docs/TriggerInboundWebhookAcceptedResponseClass.md)
124
+ - [TriggerInboundWebhookRejectedResponseClass](docs/TriggerInboundWebhookRejectedResponseClass.md)
125
+ - [UpdateInboundWebhookRequestDto](docs/UpdateInboundWebhookRequestDto.md)
126
+ - [UpdateInboundWebhookResponseClass](docs/UpdateInboundWebhookResponseClass.md)
127
+ - [WebhookRequestClass](docs/WebhookRequestClass.md)
128
+
129
+
130
+ ## Documentation For Authorization
131
+
132
+
133
+ ## bearer
134
+
135
+ - **Type**: Bearer authentication (JWT)
136
+
137
+
138
+ ## Author
139
+
140
+ kontakt@emil.de
141
+
142
+
143
+ ## Notes for Large OpenAPI documents
144
+ If the OpenAPI document is large, imports in eis.webhook.apis and eis.webhook.models may fail with a
145
+ RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
146
+
147
+ Solution 1:
148
+ Use specific imports for apis and models like:
149
+ - `from eis.webhook.api.default_api import DefaultApi`
150
+ - `from eis.webhook.model.pet import Pet`
151
+
152
+ Solution 2:
153
+ Before importing the package, adjust the maximum recursion limit as shown below:
154
+ ```
155
+ import sys
156
+ sys.setrecursionlimit(1500)
157
+ import eis.webhook
158
+ from eis.webhook.apis import *
159
+ from eis.webhook.models import *
160
+ ```
161
+
File without changes
@@ -0,0 +1,28 @@
1
+ # flake8: noqa
2
+
3
+ """
4
+ EMIL Webhookservice
5
+
6
+ The EMIL Webhookservice API description # noqa: E501
7
+
8
+ The version of the OpenAPI document: 1.19.3
9
+ Contact: kontakt@emil.de
10
+ Generated by: https://openapi-generator.tech
11
+ """
12
+
13
+
14
+ __version__ = "1.1.0"
15
+
16
+ # import ApiClient
17
+ from eis.webhook.api_client import ApiClient
18
+
19
+ # import Configuration
20
+ from eis.webhook.configuration import Configuration
21
+
22
+ # import exceptions
23
+ from eis.webhook.exceptions import OpenApiException
24
+ from eis.webhook.exceptions import ApiAttributeError
25
+ from eis.webhook.exceptions import ApiTypeError
26
+ from eis.webhook.exceptions import ApiValueError
27
+ from eis.webhook.exceptions import ApiKeyError
28
+ from eis.webhook.exceptions import ApiException
@@ -0,0 +1,3 @@
1
+ # do not import all apis into this module because that uses a lot of memory and stack frames
2
+ # if you need the ability to import all apis from one package, import them with
3
+ # from eis.webhook.apis import HealthChecksApi
@@ -0,0 +1,168 @@
1
+ """
2
+ EMIL Webhookservice
3
+
4
+ The EMIL Webhookservice API description # noqa: E501
5
+
6
+ The version of the OpenAPI document: 1.19.3
7
+ Contact: kontakt@emil.de
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from eis.webhook.api_client import ApiClient, Endpoint as _Endpoint
16
+ from eis.webhook.model_utils import ( # noqa: F401
17
+ check_allowed_values,
18
+ check_validations,
19
+ date,
20
+ datetime,
21
+ file_type,
22
+ none_type,
23
+ validate_and_convert_types
24
+ )
25
+ from eis.webhook.model.inline_response200 import InlineResponse200
26
+ from eis.webhook.model.inline_response503 import InlineResponse503
27
+
28
+
29
+ class HealthChecksApi(object):
30
+ """NOTE: This class is auto generated by OpenAPI Generator
31
+ Ref: https://openapi-generator.tech
32
+
33
+ Do not edit the class manually.
34
+ """
35
+
36
+ def __init__(self, api_client=None):
37
+ if api_client is None:
38
+ api_client = ApiClient()
39
+ self.api_client = api_client
40
+ self.check_endpoint = _Endpoint(
41
+ settings={
42
+ 'response_type': (InlineResponse200,),
43
+ 'auth': [
44
+ 'bearer'
45
+ ],
46
+ 'endpoint_path': '/webhookservice/health',
47
+ 'operation_id': 'check',
48
+ 'http_method': 'GET',
49
+ 'servers': None,
50
+ },
51
+ params_map={
52
+ 'all': [
53
+ 'authorization',
54
+ ],
55
+ 'required': [],
56
+ 'nullable': [
57
+ ],
58
+ 'enum': [
59
+ ],
60
+ 'validation': [
61
+ ]
62
+ },
63
+ root_map={
64
+ 'validations': {
65
+ },
66
+ 'allowed_values': {
67
+ },
68
+ 'openapi_types': {
69
+ 'authorization':
70
+ (str,),
71
+ },
72
+ 'attribute_map': {
73
+ 'authorization': 'Authorization',
74
+ },
75
+ 'location_map': {
76
+ 'authorization': 'header',
77
+ },
78
+ 'collection_format_map': {
79
+ }
80
+ },
81
+ headers_map={
82
+ 'accept': [
83
+ 'application/json'
84
+ ],
85
+ 'content_type': [],
86
+ },
87
+ api_client=api_client
88
+ )
89
+
90
+ def check(
91
+ self,
92
+ **kwargs
93
+ ):
94
+ """Health Check # noqa: E501
95
+
96
+ Returns the health status of the webhook service. This endpoint is used to monitor the operational status of the webhook service. It typically returns a simple status indicator, such as 'UP' or 'OK', confirming that the service is operational and available. # noqa: E501
97
+ This method makes a synchronous HTTP request by default. To make an
98
+ asynchronous HTTP request, please pass async_req=True
99
+
100
+ >>> thread = api.check(async_req=True)
101
+ >>> result = thread.get()
102
+
103
+
104
+ Keyword Args:
105
+ authorization (str): Bearer Token: provided by the login endpoint under the name accessToken.. [optional]
106
+ _return_http_data_only (bool): response data without head status
107
+ code and headers. Default is True.
108
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
109
+ will be returned without reading/decoding response data.
110
+ Default is True.
111
+ _request_timeout (int/float/tuple): timeout setting for this request. If
112
+ one number provided, it will be total request timeout. It can also
113
+ be a pair (tuple) of (connection, read) timeouts.
114
+ Default is None.
115
+ _check_input_type (bool): specifies if type checking
116
+ should be done one the data sent to the server.
117
+ Default is True.
118
+ _check_return_type (bool): specifies if type checking
119
+ should be done one the data received from the server.
120
+ Default is True.
121
+ _spec_property_naming (bool): True if the variable names in the input data
122
+ are serialized names, as specified in the OpenAPI document.
123
+ False if the variable names in the input data
124
+ are pythonic names, e.g. snake case (default)
125
+ _content_type (str/None): force body content-type.
126
+ Default is None and content-type will be predicted by allowed
127
+ content-types and body.
128
+ _host_index (int/None): specifies the index of the server
129
+ that we want to use.
130
+ Default is read from the configuration.
131
+ _request_auths (list): set to override the auth_settings for an a single
132
+ request; this effectively ignores the authentication
133
+ in the spec for a single request.
134
+ Default is None
135
+ async_req (bool): execute request asynchronously
136
+
137
+ Returns:
138
+ InlineResponse200
139
+ If the method is called asynchronously, returns the request
140
+ thread.
141
+ """
142
+ kwargs['async_req'] = kwargs.get(
143
+ 'async_req', False
144
+ )
145
+ kwargs['_return_http_data_only'] = kwargs.get(
146
+ '_return_http_data_only', True
147
+ )
148
+ kwargs['_preload_content'] = kwargs.get(
149
+ '_preload_content', True
150
+ )
151
+ kwargs['_request_timeout'] = kwargs.get(
152
+ '_request_timeout', None
153
+ )
154
+ kwargs['_check_input_type'] = kwargs.get(
155
+ '_check_input_type', True
156
+ )
157
+ kwargs['_check_return_type'] = kwargs.get(
158
+ '_check_return_type', True
159
+ )
160
+ kwargs['_spec_property_naming'] = kwargs.get(
161
+ '_spec_property_naming', False
162
+ )
163
+ kwargs['_content_type'] = kwargs.get(
164
+ '_content_type')
165
+ kwargs['_host_index'] = kwargs.get('_host_index')
166
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
167
+ return self.check_endpoint.call_with_http_info(**kwargs)
168
+