eis-task 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.
- eis_task-1.1.0/PKG-INFO +22 -0
- eis_task-1.1.0/README.md +188 -0
- eis_task-1.1.0/eis/__init__.py +0 -0
- eis_task-1.1.0/eis/task/__init__.py +28 -0
- eis_task-1.1.0/eis/task/api/__init__.py +3 -0
- eis_task-1.1.0/eis/task/api/assignees_api.py +173 -0
- eis_task-1.1.0/eis/task/api/categories_api.py +790 -0
- eis_task-1.1.0/eis/task/api/default_api.py +160 -0
- eis_task-1.1.0/eis/task/api/hub_spot_api.py +181 -0
- eis_task-1.1.0/eis/task/api/statuses_api.py +778 -0
- eis_task-1.1.0/eis/task/api/tasks_api.py +790 -0
- eis_task-1.1.0/eis/task/api_client.py +998 -0
- eis_task-1.1.0/eis/task/apis/__init__.py +22 -0
- eis_task-1.1.0/eis/task/configuration.py +456 -0
- eis_task-1.1.0/eis/task/exceptions.py +159 -0
- eis_task-1.1.0/eis/task/model/__init__.py +5 -0
- eis_task-1.1.0/eis/task/model/assignee_class.py +270 -0
- eis_task-1.1.0/eis/task/model/category_class.py +308 -0
- eis_task-1.1.0/eis/task/model/create_category_request_dto.py +274 -0
- eis_task-1.1.0/eis/task/model/create_category_response_class.py +270 -0
- eis_task-1.1.0/eis/task/model/create_hub_spot_ticket_request_dto.py +280 -0
- eis_task-1.1.0/eis/task/model/create_hub_spot_ticket_response_class.py +270 -0
- eis_task-1.1.0/eis/task/model/create_status_request_dto.py +283 -0
- eis_task-1.1.0/eis/task/model/create_status_response_class.py +270 -0
- eis_task-1.1.0/eis/task/model/create_task_request_dto.py +307 -0
- eis_task-1.1.0/eis/task/model/create_task_response_class.py +270 -0
- eis_task-1.1.0/eis/task/model/get_category_response_class.py +270 -0
- eis_task-1.1.0/eis/task/model/get_status_response_class.py +270 -0
- eis_task-1.1.0/eis/task/model/get_task_response_class.py +270 -0
- eis_task-1.1.0/eis/task/model/hub_spot_ticket_class.py +300 -0
- eis_task-1.1.0/eis/task/model/hub_spot_ticket_error_class.py +276 -0
- eis_task-1.1.0/eis/task/model/hub_spot_ticket_name_value_dto.py +276 -0
- eis_task-1.1.0/eis/task/model/inline_response200.py +276 -0
- eis_task-1.1.0/eis/task/model/inline_response503.py +276 -0
- eis_task-1.1.0/eis/task/model/list_assignees_response_class.py +294 -0
- eis_task-1.1.0/eis/task/model/list_categories_response_class.py +294 -0
- eis_task-1.1.0/eis/task/model/list_statuses_response_class.py +294 -0
- eis_task-1.1.0/eis/task/model/list_tasks_response_class.py +294 -0
- eis_task-1.1.0/eis/task/model/patch_category_request_dto.py +278 -0
- eis_task-1.1.0/eis/task/model/patch_category_response_class.py +270 -0
- eis_task-1.1.0/eis/task/model/patch_status_request_dto.py +285 -0
- eis_task-1.1.0/eis/task/model/patch_status_response_class.py +270 -0
- eis_task-1.1.0/eis/task/model/patch_task_request_dto.py +330 -0
- eis_task-1.1.0/eis/task/model/patch_task_response_class.py +270 -0
- eis_task-1.1.0/eis/task/model/status_class.py +314 -0
- eis_task-1.1.0/eis/task/model/task_class.py +363 -0
- eis_task-1.1.0/eis/task/model_utils.py +2063 -0
- eis_task-1.1.0/eis/task/models/__init__.py +41 -0
- eis_task-1.1.0/eis/task/rest.py +475 -0
- eis_task-1.1.0/eis_task.egg-info/PKG-INFO +22 -0
- eis_task-1.1.0/eis_task.egg-info/SOURCES.txt +91 -0
- eis_task-1.1.0/eis_task.egg-info/dependency_links.txt +1 -0
- eis_task-1.1.0/eis_task.egg-info/requires.txt +2 -0
- eis_task-1.1.0/eis_task.egg-info/top_level.txt +1 -0
- eis_task-1.1.0/setup.cfg +11 -0
- eis_task-1.1.0/setup.py +43 -0
- eis_task-1.1.0/test/test_assignee_class.py +36 -0
- eis_task-1.1.0/test/test_assignees_api.py +36 -0
- eis_task-1.1.0/test/test_categories_api.py +64 -0
- eis_task-1.1.0/test/test_category_class.py +36 -0
- eis_task-1.1.0/test/test_create_category_request_dto.py +36 -0
- eis_task-1.1.0/test/test_create_category_response_class.py +38 -0
- eis_task-1.1.0/test/test_create_hub_spot_ticket_request_dto.py +38 -0
- eis_task-1.1.0/test/test_create_hub_spot_ticket_response_class.py +38 -0
- eis_task-1.1.0/test/test_create_status_request_dto.py +36 -0
- eis_task-1.1.0/test/test_create_status_response_class.py +38 -0
- eis_task-1.1.0/test/test_create_task_request_dto.py +36 -0
- eis_task-1.1.0/test/test_create_task_response_class.py +38 -0
- eis_task-1.1.0/test/test_default_api.py +36 -0
- eis_task-1.1.0/test/test_get_category_response_class.py +38 -0
- eis_task-1.1.0/test/test_get_status_response_class.py +38 -0
- eis_task-1.1.0/test/test_get_task_response_class.py +38 -0
- eis_task-1.1.0/test/test_hub_spot_api.py +36 -0
- eis_task-1.1.0/test/test_hub_spot_ticket_class.py +38 -0
- eis_task-1.1.0/test/test_hub_spot_ticket_error_class.py +36 -0
- eis_task-1.1.0/test/test_hub_spot_ticket_name_value_dto.py +36 -0
- eis_task-1.1.0/test/test_inline_response200.py +36 -0
- eis_task-1.1.0/test/test_inline_response503.py +36 -0
- eis_task-1.1.0/test/test_list_assignees_response_class.py +38 -0
- eis_task-1.1.0/test/test_list_categories_response_class.py +38 -0
- eis_task-1.1.0/test/test_list_statuses_response_class.py +38 -0
- eis_task-1.1.0/test/test_list_tasks_response_class.py +38 -0
- eis_task-1.1.0/test/test_patch_category_request_dto.py +36 -0
- eis_task-1.1.0/test/test_patch_category_response_class.py +38 -0
- eis_task-1.1.0/test/test_patch_status_request_dto.py +36 -0
- eis_task-1.1.0/test/test_patch_status_response_class.py +38 -0
- eis_task-1.1.0/test/test_patch_task_request_dto.py +36 -0
- eis_task-1.1.0/test/test_patch_task_response_class.py +38 -0
- eis_task-1.1.0/test/test_status_class.py +36 -0
- eis_task-1.1.0/test/test_statuses_api.py +64 -0
- eis_task-1.1.0/test/test_task_class.py +40 -0
- eis_task-1.1.0/test/test_tasks_api.py +64 -0
eis_task-1.1.0/PKG-INFO
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: eis_task
|
|
3
|
+
Version: 1.1.0
|
|
4
|
+
Summary: EMIL TaskService
|
|
5
|
+
Home-page:
|
|
6
|
+
Author: Contact us
|
|
7
|
+
Author-email: kontakt@emil.de
|
|
8
|
+
Keywords: OpenAPI,OpenAPI-Generator,EMIL TaskService
|
|
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 Task API description # noqa: E501
|
|
22
|
+
|
eis_task-1.1.0/README.md
ADDED
|
@@ -0,0 +1,188 @@
|
|
|
1
|
+
# eis_task
|
|
2
|
+
The EMIL Task API description
|
|
3
|
+
|
|
4
|
+
This Python package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
|
5
|
+
|
|
6
|
+
- API version: 1.0
|
|
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.task
|
|
22
|
+
```
|
|
23
|
+
(you may need to run `pip` with root permission: `sudo pip install git+https://github.com/emilDev/eis-task-sdk.git`)
|
|
24
|
+
|
|
25
|
+
Then import the package:
|
|
26
|
+
```python
|
|
27
|
+
import eis.task
|
|
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.task
|
|
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.task
|
|
58
|
+
from pprint import pprint
|
|
59
|
+
from eis.task.api import assignees_api
|
|
60
|
+
from eis.task.model.list_assignees_response_class import ListAssigneesResponseClass
|
|
61
|
+
# Defining the host is optional and defaults to https://apiv2.emil.de
|
|
62
|
+
# See configuration.py for a list of all supported configuration parameters.
|
|
63
|
+
configuration = eis.task.Configuration(
|
|
64
|
+
host = "https://apiv2.emil.de"
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
# The client must configure the authentication and authorization parameters
|
|
68
|
+
# in accordance with the API server security policy.
|
|
69
|
+
# Examples for each auth method are provided below, use the example that
|
|
70
|
+
# satisfies your auth use case.
|
|
71
|
+
|
|
72
|
+
# Bearer is automatically handled with exported environment variables. However, you
|
|
73
|
+
# can manuallay configure Bearer authorization (JWT): bearer
|
|
74
|
+
configuration = eis.task.Configuration(
|
|
75
|
+
access_token = 'YOUR_BEARER_TOKEN'
|
|
76
|
+
)
|
|
77
|
+
|
|
78
|
+
# After manual token becomes invalid, the SDK will default to re-login automatically
|
|
79
|
+
# with environment variable credentials.
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
# Enter a context with an instance of the API client
|
|
83
|
+
with eis.task.ApiClient(configuration) as api_client:
|
|
84
|
+
# Create an instance of the API class
|
|
85
|
+
api_instance = assignees_api.AssigneesApi(api_client)
|
|
86
|
+
authorization = "Authorization_example" # str | Bearer Token: provided by the login endpoint under the name accessToken. (optional)
|
|
87
|
+
expand = "Entity has no possible expands" # str | Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> (optional)
|
|
88
|
+
|
|
89
|
+
try:
|
|
90
|
+
# List assignees
|
|
91
|
+
api_response = api_instance.list_assignees(authorization=authorization, expand=expand)
|
|
92
|
+
pprint(api_response)
|
|
93
|
+
except eis.task.ApiException as e:
|
|
94
|
+
print("Exception when calling AssigneesApi->list_assignees: %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
|
+
*AssigneesApi* | [**list_assignees**](docs/AssigneesApi.md#list_assignees) | **GET** /taskservice/v1/assignees | List assignees
|
|
104
|
+
*CategoriesApi* | [**create_category**](docs/CategoriesApi.md#create_category) | **POST** /taskservice/v1/categories | Create the category
|
|
105
|
+
*CategoriesApi* | [**delete_category**](docs/CategoriesApi.md#delete_category) | **DELETE** /taskservice/v1/categories/{code} | Delete the category
|
|
106
|
+
*CategoriesApi* | [**get_category**](docs/CategoriesApi.md#get_category) | **GET** /taskservice/v1/categories/{code} | Retrieve the category
|
|
107
|
+
*CategoriesApi* | [**list_categories**](docs/CategoriesApi.md#list_categories) | **GET** /taskservice/v1/categories | List categories
|
|
108
|
+
*CategoriesApi* | [**patch_category**](docs/CategoriesApi.md#patch_category) | **PATCH** /taskservice/v1/categories/{code} | Update the category
|
|
109
|
+
*HubSpotApi* | [**create_hub_spot_ticket**](docs/HubSpotApi.md#create_hub_spot_ticket) | **POST** /taskservice/v1/hub-spot-tickets | Create the hub spot ticket
|
|
110
|
+
*StatusesApi* | [**create_status**](docs/StatusesApi.md#create_status) | **POST** /taskservice/v1/statuses | Create the status
|
|
111
|
+
*StatusesApi* | [**delete_status**](docs/StatusesApi.md#delete_status) | **DELETE** /taskservice/v1/statuses/{code} | Delete the status
|
|
112
|
+
*StatusesApi* | [**get_status**](docs/StatusesApi.md#get_status) | **GET** /taskservice/v1/statuses/{code} | Retrieve the status
|
|
113
|
+
*StatusesApi* | [**list_statuses**](docs/StatusesApi.md#list_statuses) | **GET** /taskservice/v1/statuses | List statuses
|
|
114
|
+
*StatusesApi* | [**patch_status**](docs/StatusesApi.md#patch_status) | **PATCH** /taskservice/v1/statuses/{code} | Update the status
|
|
115
|
+
*TasksApi* | [**create_task**](docs/TasksApi.md#create_task) | **POST** /taskservice/v1/tasks | Create the task
|
|
116
|
+
*TasksApi* | [**delete_task**](docs/TasksApi.md#delete_task) | **DELETE** /taskservice/v1/tasks/{code} | Delete the task
|
|
117
|
+
*TasksApi* | [**get_task**](docs/TasksApi.md#get_task) | **GET** /taskservice/v1/tasks/{code} | Retrieve the task
|
|
118
|
+
*TasksApi* | [**list_tasks**](docs/TasksApi.md#list_tasks) | **GET** /taskservice/v1/tasks | List tasks
|
|
119
|
+
*TasksApi* | [**patch_task**](docs/TasksApi.md#patch_task) | **PATCH** /taskservice/v1/tasks/{code} | Update the task
|
|
120
|
+
*DefaultApi* | [**check**](docs/DefaultApi.md#check) | **GET** /taskservice/health | Health Check
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
## Documentation For Models
|
|
124
|
+
|
|
125
|
+
- [AssigneeClass](docs/AssigneeClass.md)
|
|
126
|
+
- [CategoryClass](docs/CategoryClass.md)
|
|
127
|
+
- [CreateCategoryRequestDto](docs/CreateCategoryRequestDto.md)
|
|
128
|
+
- [CreateCategoryResponseClass](docs/CreateCategoryResponseClass.md)
|
|
129
|
+
- [CreateHubSpotTicketRequestDto](docs/CreateHubSpotTicketRequestDto.md)
|
|
130
|
+
- [CreateHubSpotTicketResponseClass](docs/CreateHubSpotTicketResponseClass.md)
|
|
131
|
+
- [CreateStatusRequestDto](docs/CreateStatusRequestDto.md)
|
|
132
|
+
- [CreateStatusResponseClass](docs/CreateStatusResponseClass.md)
|
|
133
|
+
- [CreateTaskRequestDto](docs/CreateTaskRequestDto.md)
|
|
134
|
+
- [CreateTaskResponseClass](docs/CreateTaskResponseClass.md)
|
|
135
|
+
- [GetCategoryResponseClass](docs/GetCategoryResponseClass.md)
|
|
136
|
+
- [GetStatusResponseClass](docs/GetStatusResponseClass.md)
|
|
137
|
+
- [GetTaskResponseClass](docs/GetTaskResponseClass.md)
|
|
138
|
+
- [HubSpotTicketClass](docs/HubSpotTicketClass.md)
|
|
139
|
+
- [HubSpotTicketErrorClass](docs/HubSpotTicketErrorClass.md)
|
|
140
|
+
- [HubSpotTicketNameValueDto](docs/HubSpotTicketNameValueDto.md)
|
|
141
|
+
- [InlineResponse200](docs/InlineResponse200.md)
|
|
142
|
+
- [InlineResponse503](docs/InlineResponse503.md)
|
|
143
|
+
- [ListAssigneesResponseClass](docs/ListAssigneesResponseClass.md)
|
|
144
|
+
- [ListCategoriesResponseClass](docs/ListCategoriesResponseClass.md)
|
|
145
|
+
- [ListStatusesResponseClass](docs/ListStatusesResponseClass.md)
|
|
146
|
+
- [ListTasksResponseClass](docs/ListTasksResponseClass.md)
|
|
147
|
+
- [PatchCategoryRequestDto](docs/PatchCategoryRequestDto.md)
|
|
148
|
+
- [PatchCategoryResponseClass](docs/PatchCategoryResponseClass.md)
|
|
149
|
+
- [PatchStatusRequestDto](docs/PatchStatusRequestDto.md)
|
|
150
|
+
- [PatchStatusResponseClass](docs/PatchStatusResponseClass.md)
|
|
151
|
+
- [PatchTaskRequestDto](docs/PatchTaskRequestDto.md)
|
|
152
|
+
- [PatchTaskResponseClass](docs/PatchTaskResponseClass.md)
|
|
153
|
+
- [StatusClass](docs/StatusClass.md)
|
|
154
|
+
- [TaskClass](docs/TaskClass.md)
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
## Documentation For Authorization
|
|
158
|
+
|
|
159
|
+
|
|
160
|
+
## bearer
|
|
161
|
+
|
|
162
|
+
- **Type**: Bearer authentication (JWT)
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
## Author
|
|
166
|
+
|
|
167
|
+
kontakt@emil.de
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
## Notes for Large OpenAPI documents
|
|
171
|
+
If the OpenAPI document is large, imports in eis.task.apis and eis.task.models may fail with a
|
|
172
|
+
RecursionError indicating the maximum recursion limit has been exceeded. In that case, there are a couple of solutions:
|
|
173
|
+
|
|
174
|
+
Solution 1:
|
|
175
|
+
Use specific imports for apis and models like:
|
|
176
|
+
- `from eis.task.api.default_api import DefaultApi`
|
|
177
|
+
- `from eis.task.model.pet import Pet`
|
|
178
|
+
|
|
179
|
+
Solution 2:
|
|
180
|
+
Before importing the package, adjust the maximum recursion limit as shown below:
|
|
181
|
+
```
|
|
182
|
+
import sys
|
|
183
|
+
sys.setrecursionlimit(1500)
|
|
184
|
+
import eis.task
|
|
185
|
+
from eis.task.apis import *
|
|
186
|
+
from eis.task.models import *
|
|
187
|
+
```
|
|
188
|
+
|
|
File without changes
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
# flake8: noqa
|
|
2
|
+
|
|
3
|
+
"""
|
|
4
|
+
EMIL TaskService
|
|
5
|
+
|
|
6
|
+
The EMIL Task API description # noqa: E501
|
|
7
|
+
|
|
8
|
+
The version of the OpenAPI document: 1.0
|
|
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.task.api_client import ApiClient
|
|
18
|
+
|
|
19
|
+
# import Configuration
|
|
20
|
+
from eis.task.configuration import Configuration
|
|
21
|
+
|
|
22
|
+
# import exceptions
|
|
23
|
+
from eis.task.exceptions import OpenApiException
|
|
24
|
+
from eis.task.exceptions import ApiAttributeError
|
|
25
|
+
from eis.task.exceptions import ApiTypeError
|
|
26
|
+
from eis.task.exceptions import ApiValueError
|
|
27
|
+
from eis.task.exceptions import ApiKeyError
|
|
28
|
+
from eis.task.exceptions import ApiException
|
|
@@ -0,0 +1,173 @@
|
|
|
1
|
+
"""
|
|
2
|
+
EMIL TaskService
|
|
3
|
+
|
|
4
|
+
The EMIL Task API description # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
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.task.api_client import ApiClient, Endpoint as _Endpoint
|
|
16
|
+
from eis.task.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.task.model.list_assignees_response_class import ListAssigneesResponseClass
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class AssigneesApi(object):
|
|
29
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
30
|
+
Ref: https://openapi-generator.tech
|
|
31
|
+
|
|
32
|
+
Do not edit the class manually.
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
def __init__(self, api_client=None):
|
|
36
|
+
if api_client is None:
|
|
37
|
+
api_client = ApiClient()
|
|
38
|
+
self.api_client = api_client
|
|
39
|
+
self.list_assignees_endpoint = _Endpoint(
|
|
40
|
+
settings={
|
|
41
|
+
'response_type': (ListAssigneesResponseClass,),
|
|
42
|
+
'auth': [
|
|
43
|
+
'bearer'
|
|
44
|
+
],
|
|
45
|
+
'endpoint_path': '/taskservice/v1/assignees',
|
|
46
|
+
'operation_id': 'list_assignees',
|
|
47
|
+
'http_method': 'GET',
|
|
48
|
+
'servers': None,
|
|
49
|
+
},
|
|
50
|
+
params_map={
|
|
51
|
+
'all': [
|
|
52
|
+
'authorization',
|
|
53
|
+
'expand',
|
|
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
|
+
'expand':
|
|
72
|
+
(str,),
|
|
73
|
+
},
|
|
74
|
+
'attribute_map': {
|
|
75
|
+
'authorization': 'Authorization',
|
|
76
|
+
'expand': 'expand',
|
|
77
|
+
},
|
|
78
|
+
'location_map': {
|
|
79
|
+
'authorization': 'header',
|
|
80
|
+
'expand': 'query',
|
|
81
|
+
},
|
|
82
|
+
'collection_format_map': {
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
headers_map={
|
|
86
|
+
'accept': [
|
|
87
|
+
'application/json'
|
|
88
|
+
],
|
|
89
|
+
'content_type': [],
|
|
90
|
+
},
|
|
91
|
+
api_client=api_client
|
|
92
|
+
)
|
|
93
|
+
|
|
94
|
+
def list_assignees(
|
|
95
|
+
self,
|
|
96
|
+
**kwargs
|
|
97
|
+
):
|
|
98
|
+
"""List assignees # noqa: E501
|
|
99
|
+
|
|
100
|
+
Retrieves a list of distinct assignees from tasks. **Required Permissions** \"task-management.tasks.view\" # noqa: E501
|
|
101
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
102
|
+
asynchronous HTTP request, please pass async_req=True
|
|
103
|
+
|
|
104
|
+
>>> thread = api.list_assignees(async_req=True)
|
|
105
|
+
>>> result = thread.get()
|
|
106
|
+
|
|
107
|
+
|
|
108
|
+
Keyword Args:
|
|
109
|
+
authorization (str): Bearer Token: provided by the login endpoint under the name accessToken.. [optional]
|
|
110
|
+
expand (str): Expand to fetch additional information about the list items. Expanding resources can reduce the number of API calls required to accomplish a task. Use with discretion as some expanded fields can drastically increase payload size.<br/> <br/> . [optional]
|
|
111
|
+
_return_http_data_only (bool): response data without head status
|
|
112
|
+
code and headers. Default is True.
|
|
113
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
114
|
+
will be returned without reading/decoding response data.
|
|
115
|
+
Default is True.
|
|
116
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
117
|
+
one number provided, it will be total request timeout. It can also
|
|
118
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
119
|
+
Default is None.
|
|
120
|
+
_check_input_type (bool): specifies if type checking
|
|
121
|
+
should be done one the data sent to the server.
|
|
122
|
+
Default is True.
|
|
123
|
+
_check_return_type (bool): specifies if type checking
|
|
124
|
+
should be done one the data received from the server.
|
|
125
|
+
Default is True.
|
|
126
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
127
|
+
are serialized names, as specified in the OpenAPI document.
|
|
128
|
+
False if the variable names in the input data
|
|
129
|
+
are pythonic names, e.g. snake case (default)
|
|
130
|
+
_content_type (str/None): force body content-type.
|
|
131
|
+
Default is None and content-type will be predicted by allowed
|
|
132
|
+
content-types and body.
|
|
133
|
+
_host_index (int/None): specifies the index of the server
|
|
134
|
+
that we want to use.
|
|
135
|
+
Default is read from the configuration.
|
|
136
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
137
|
+
request; this effectively ignores the authentication
|
|
138
|
+
in the spec for a single request.
|
|
139
|
+
Default is None
|
|
140
|
+
async_req (bool): execute request asynchronously
|
|
141
|
+
|
|
142
|
+
Returns:
|
|
143
|
+
ListAssigneesResponseClass
|
|
144
|
+
If the method is called asynchronously, returns the request
|
|
145
|
+
thread.
|
|
146
|
+
"""
|
|
147
|
+
kwargs['async_req'] = kwargs.get(
|
|
148
|
+
'async_req', False
|
|
149
|
+
)
|
|
150
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
151
|
+
'_return_http_data_only', True
|
|
152
|
+
)
|
|
153
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
154
|
+
'_preload_content', True
|
|
155
|
+
)
|
|
156
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
157
|
+
'_request_timeout', None
|
|
158
|
+
)
|
|
159
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
160
|
+
'_check_input_type', True
|
|
161
|
+
)
|
|
162
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
163
|
+
'_check_return_type', True
|
|
164
|
+
)
|
|
165
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
166
|
+
'_spec_property_naming', False
|
|
167
|
+
)
|
|
168
|
+
kwargs['_content_type'] = kwargs.get(
|
|
169
|
+
'_content_type')
|
|
170
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
171
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
172
|
+
return self.list_assignees_endpoint.call_with_http_info(**kwargs)
|
|
173
|
+
|