testit-python-commons 4.2.8__py3-none-any.whl
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.
- api_client_syncstorage/__init__.py +27 -0
- api_client_syncstorage/api/__init__.py +3 -0
- api_client_syncstorage/api/completion_api.py +302 -0
- api_client_syncstorage/api/health_api.py +158 -0
- api_client_syncstorage/api/system_api.py +158 -0
- api_client_syncstorage/api/test_results_api.py +182 -0
- api_client_syncstorage/api/workers_api.py +308 -0
- api_client_syncstorage/api_client.py +898 -0
- api_client_syncstorage/apis/__init__.py +21 -0
- api_client_syncstorage/configuration.py +450 -0
- api_client_syncstorage/exceptions.py +158 -0
- api_client_syncstorage/model/__init__.py +5 -0
- api_client_syncstorage/model/completion_response.py +267 -0
- api_client_syncstorage/model/health_status_response.py +267 -0
- api_client_syncstorage/model/register_request.py +275 -0
- api_client_syncstorage/model/register_response.py +279 -0
- api_client_syncstorage/model/set_worker_status_request.py +271 -0
- api_client_syncstorage/model/set_worker_status_response.py +267 -0
- api_client_syncstorage/model/shutdown_response.py +267 -0
- api_client_syncstorage/model/test_result_cut_api_model.py +279 -0
- api_client_syncstorage/model/test_result_save_response.py +267 -0
- api_client_syncstorage/model_utils.py +2058 -0
- api_client_syncstorage/models/__init__.py +20 -0
- api_client_syncstorage/rest.py +356 -0
- testit.py +69 -0
- testit_python_commons/__init__.py +0 -0
- testit_python_commons/app_properties.py +257 -0
- testit_python_commons/client/__init__.py +9 -0
- testit_python_commons/client/api_client.py +560 -0
- testit_python_commons/client/client_configuration.py +74 -0
- testit_python_commons/client/converter.py +618 -0
- testit_python_commons/client/helpers/__init__.py +0 -0
- testit_python_commons/client/helpers/bulk_autotest_helper.py +246 -0
- testit_python_commons/client/helpers/threads_manager.py +86 -0
- testit_python_commons/client/models/__init__.py +8 -0
- testit_python_commons/client/models/threads_for_create_and_result.py +35 -0
- testit_python_commons/client/models/threads_for_update_and_result.py +45 -0
- testit_python_commons/configurations/__init__.py +0 -0
- testit_python_commons/configurations/properties_names.py +51 -0
- testit_python_commons/decorators.py +221 -0
- testit_python_commons/dynamic_methods.py +237 -0
- testit_python_commons/models/__init__.py +5 -0
- testit_python_commons/models/adapter_mode.py +4 -0
- testit_python_commons/models/fixture.py +24 -0
- testit_python_commons/models/link.py +53 -0
- testit_python_commons/models/link_type.py +10 -0
- testit_python_commons/models/outcome_type.py +5 -0
- testit_python_commons/models/status_type.py +6 -0
- testit_python_commons/models/step_result.py +90 -0
- testit_python_commons/models/test_result.py +297 -0
- testit_python_commons/models/test_result_with_all_fixture_step_results_model.py +28 -0
- testit_python_commons/services/__init__.py +41 -0
- testit_python_commons/services/adapter_manager.py +318 -0
- testit_python_commons/services/adapter_manager_configuration.py +42 -0
- testit_python_commons/services/fixture_manager.py +60 -0
- testit_python_commons/services/fixture_storage.py +40 -0
- testit_python_commons/services/logger.py +32 -0
- testit_python_commons/services/plugin_manager.py +101 -0
- testit_python_commons/services/retry.py +92 -0
- testit_python_commons/services/step_manager.py +36 -0
- testit_python_commons/services/step_result_storage.py +26 -0
- testit_python_commons/services/sync_storage/__init__.py +9 -0
- testit_python_commons/services/sync_storage/sync_storage_runner.py +589 -0
- testit_python_commons/services/utils.py +132 -0
- testit_python_commons/step.py +101 -0
- testit_python_commons/utils/__init__.py +3 -0
- testit_python_commons/utils/html_escape_utils.py +219 -0
- testit_python_commons-4.2.8.dist-info/METADATA +52 -0
- testit_python_commons-4.2.8.dist-info/RECORD +71 -0
- testit_python_commons-4.2.8.dist-info/WHEEL +5 -0
- testit_python_commons-4.2.8.dist-info/top_level.txt +3 -0
|
@@ -0,0 +1,182 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Sync Storage Service API
|
|
3
|
+
|
|
4
|
+
This is a sync storage service for coordinating test workers. # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import re # noqa: F401
|
|
12
|
+
import sys # noqa: F401
|
|
13
|
+
|
|
14
|
+
from api_client_syncstorage.api_client import ApiClient, Endpoint as _Endpoint
|
|
15
|
+
from api_client_syncstorage.model_utils import ( # noqa: F401
|
|
16
|
+
check_allowed_values,
|
|
17
|
+
check_validations,
|
|
18
|
+
date,
|
|
19
|
+
datetime,
|
|
20
|
+
file_type,
|
|
21
|
+
none_type,
|
|
22
|
+
validate_and_convert_types
|
|
23
|
+
)
|
|
24
|
+
from api_client_syncstorage.model.test_result_cut_api_model import TestResultCutApiModel
|
|
25
|
+
from api_client_syncstorage.model.test_result_save_response import TestResultSaveResponse
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class TestResultsApi(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.in_progress_test_result_post_endpoint = _Endpoint(
|
|
40
|
+
settings={
|
|
41
|
+
'response_type': (TestResultSaveResponse,),
|
|
42
|
+
'auth': [],
|
|
43
|
+
'endpoint_path': '/in_progress_test_result',
|
|
44
|
+
'operation_id': 'in_progress_test_result_post',
|
|
45
|
+
'http_method': 'POST',
|
|
46
|
+
'servers': None,
|
|
47
|
+
},
|
|
48
|
+
params_map={
|
|
49
|
+
'all': [
|
|
50
|
+
'test_run_id',
|
|
51
|
+
'test_result_cut_api_model',
|
|
52
|
+
],
|
|
53
|
+
'required': [
|
|
54
|
+
'test_run_id',
|
|
55
|
+
'test_result_cut_api_model',
|
|
56
|
+
],
|
|
57
|
+
'nullable': [
|
|
58
|
+
],
|
|
59
|
+
'enum': [
|
|
60
|
+
],
|
|
61
|
+
'validation': [
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
root_map={
|
|
65
|
+
'validations': {
|
|
66
|
+
},
|
|
67
|
+
'allowed_values': {
|
|
68
|
+
},
|
|
69
|
+
'openapi_types': {
|
|
70
|
+
'test_run_id':
|
|
71
|
+
(str,),
|
|
72
|
+
'test_result_cut_api_model':
|
|
73
|
+
(TestResultCutApiModel,),
|
|
74
|
+
},
|
|
75
|
+
'attribute_map': {
|
|
76
|
+
'test_run_id': 'testRunId',
|
|
77
|
+
},
|
|
78
|
+
'location_map': {
|
|
79
|
+
'test_run_id': 'query',
|
|
80
|
+
'test_result_cut_api_model': 'body',
|
|
81
|
+
},
|
|
82
|
+
'collection_format_map': {
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
headers_map={
|
|
86
|
+
'accept': [
|
|
87
|
+
'application/json'
|
|
88
|
+
],
|
|
89
|
+
'content_type': [
|
|
90
|
+
'application/json'
|
|
91
|
+
]
|
|
92
|
+
},
|
|
93
|
+
api_client=api_client
|
|
94
|
+
)
|
|
95
|
+
|
|
96
|
+
def in_progress_test_result_post(
|
|
97
|
+
self,
|
|
98
|
+
test_run_id,
|
|
99
|
+
test_result_cut_api_model,
|
|
100
|
+
**kwargs
|
|
101
|
+
):
|
|
102
|
+
"""Save in-progress test result # noqa: E501
|
|
103
|
+
|
|
104
|
+
Save a test result with InProgress status. # noqa: E501
|
|
105
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
106
|
+
asynchronous HTTP request, please pass async_req=True
|
|
107
|
+
|
|
108
|
+
>>> thread = api.in_progress_test_result_post(test_run_id, test_result_cut_api_model, async_req=True)
|
|
109
|
+
>>> result = thread.get()
|
|
110
|
+
|
|
111
|
+
Args:
|
|
112
|
+
test_run_id (str): Test Run ID
|
|
113
|
+
test_result_cut_api_model (TestResultCutApiModel):
|
|
114
|
+
|
|
115
|
+
Keyword Args:
|
|
116
|
+
_return_http_data_only (bool): response data without head status
|
|
117
|
+
code and headers. Default is True.
|
|
118
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
119
|
+
will be returned without reading/decoding response data.
|
|
120
|
+
Default is True.
|
|
121
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
122
|
+
one number provided, it will be total request timeout. It can also
|
|
123
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
124
|
+
Default is None.
|
|
125
|
+
_check_input_type (bool): specifies if type checking
|
|
126
|
+
should be done one the data sent to the server.
|
|
127
|
+
Default is True.
|
|
128
|
+
_check_return_type (bool): specifies if type checking
|
|
129
|
+
should be done one the data received from the server.
|
|
130
|
+
Default is True.
|
|
131
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
132
|
+
are serialized names, as specified in the OpenAPI document.
|
|
133
|
+
False if the variable names in the input data
|
|
134
|
+
are pythonic names, e.g. snake case (default)
|
|
135
|
+
_content_type (str/None): force body content-type.
|
|
136
|
+
Default is None and content-type will be predicted by allowed
|
|
137
|
+
content-types and body.
|
|
138
|
+
_host_index (int/None): specifies the index of the server
|
|
139
|
+
that we want to use.
|
|
140
|
+
Default is read from the configuration.
|
|
141
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
142
|
+
request; this effectively ignores the authentication
|
|
143
|
+
in the spec for a single request.
|
|
144
|
+
Default is None
|
|
145
|
+
async_req (bool): execute request asynchronously
|
|
146
|
+
|
|
147
|
+
Returns:
|
|
148
|
+
TestResultSaveResponse
|
|
149
|
+
If the method is called asynchronously, returns the request
|
|
150
|
+
thread.
|
|
151
|
+
"""
|
|
152
|
+
kwargs['async_req'] = kwargs.get(
|
|
153
|
+
'async_req', False
|
|
154
|
+
)
|
|
155
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
156
|
+
'_return_http_data_only', True
|
|
157
|
+
)
|
|
158
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
159
|
+
'_preload_content', True
|
|
160
|
+
)
|
|
161
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
162
|
+
'_request_timeout', None
|
|
163
|
+
)
|
|
164
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
165
|
+
'_check_input_type', True
|
|
166
|
+
)
|
|
167
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
168
|
+
'_check_return_type', True
|
|
169
|
+
)
|
|
170
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
171
|
+
'_spec_property_naming', False
|
|
172
|
+
)
|
|
173
|
+
kwargs['_content_type'] = kwargs.get(
|
|
174
|
+
'_content_type')
|
|
175
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
176
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
177
|
+
kwargs['test_run_id'] = \
|
|
178
|
+
test_run_id
|
|
179
|
+
kwargs['test_result_cut_api_model'] = \
|
|
180
|
+
test_result_cut_api_model
|
|
181
|
+
return self.in_progress_test_result_post_endpoint.call_with_http_info(**kwargs)
|
|
182
|
+
|
|
@@ -0,0 +1,308 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Sync Storage Service API
|
|
3
|
+
|
|
4
|
+
This is a sync storage service for coordinating test workers. # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.0
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import re # noqa: F401
|
|
12
|
+
import sys # noqa: F401
|
|
13
|
+
|
|
14
|
+
from api_client_syncstorage.api_client import ApiClient, Endpoint as _Endpoint
|
|
15
|
+
from api_client_syncstorage.model_utils import ( # noqa: F401
|
|
16
|
+
check_allowed_values,
|
|
17
|
+
check_validations,
|
|
18
|
+
date,
|
|
19
|
+
datetime,
|
|
20
|
+
file_type,
|
|
21
|
+
none_type,
|
|
22
|
+
validate_and_convert_types
|
|
23
|
+
)
|
|
24
|
+
from api_client_syncstorage.model.register_request import RegisterRequest
|
|
25
|
+
from api_client_syncstorage.model.register_response import RegisterResponse
|
|
26
|
+
from api_client_syncstorage.model.set_worker_status_request import SetWorkerStatusRequest
|
|
27
|
+
from api_client_syncstorage.model.set_worker_status_response import SetWorkerStatusResponse
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class WorkersApi(object):
|
|
31
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
32
|
+
Ref: https://openapi-generator.tech
|
|
33
|
+
|
|
34
|
+
Do not edit the class manually.
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
def __init__(self, api_client=None):
|
|
38
|
+
if api_client is None:
|
|
39
|
+
api_client = ApiClient()
|
|
40
|
+
self.api_client = api_client
|
|
41
|
+
self.register_post_endpoint = _Endpoint(
|
|
42
|
+
settings={
|
|
43
|
+
'response_type': (RegisterResponse,),
|
|
44
|
+
'auth': [],
|
|
45
|
+
'endpoint_path': '/register',
|
|
46
|
+
'operation_id': 'register_post',
|
|
47
|
+
'http_method': 'POST',
|
|
48
|
+
'servers': None,
|
|
49
|
+
},
|
|
50
|
+
params_map={
|
|
51
|
+
'all': [
|
|
52
|
+
'register_request',
|
|
53
|
+
],
|
|
54
|
+
'required': [
|
|
55
|
+
'register_request',
|
|
56
|
+
],
|
|
57
|
+
'nullable': [
|
|
58
|
+
],
|
|
59
|
+
'enum': [
|
|
60
|
+
],
|
|
61
|
+
'validation': [
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
root_map={
|
|
65
|
+
'validations': {
|
|
66
|
+
},
|
|
67
|
+
'allowed_values': {
|
|
68
|
+
},
|
|
69
|
+
'openapi_types': {
|
|
70
|
+
'register_request':
|
|
71
|
+
(RegisterRequest,),
|
|
72
|
+
},
|
|
73
|
+
'attribute_map': {
|
|
74
|
+
},
|
|
75
|
+
'location_map': {
|
|
76
|
+
'register_request': 'body',
|
|
77
|
+
},
|
|
78
|
+
'collection_format_map': {
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
headers_map={
|
|
82
|
+
'accept': [
|
|
83
|
+
'application/json'
|
|
84
|
+
],
|
|
85
|
+
'content_type': [
|
|
86
|
+
'application/json'
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
api_client=api_client
|
|
90
|
+
)
|
|
91
|
+
self.set_worker_status_post_endpoint = _Endpoint(
|
|
92
|
+
settings={
|
|
93
|
+
'response_type': (SetWorkerStatusResponse,),
|
|
94
|
+
'auth': [],
|
|
95
|
+
'endpoint_path': '/set_worker_status',
|
|
96
|
+
'operation_id': 'set_worker_status_post',
|
|
97
|
+
'http_method': 'POST',
|
|
98
|
+
'servers': None,
|
|
99
|
+
},
|
|
100
|
+
params_map={
|
|
101
|
+
'all': [
|
|
102
|
+
'set_worker_status_request',
|
|
103
|
+
],
|
|
104
|
+
'required': [
|
|
105
|
+
'set_worker_status_request',
|
|
106
|
+
],
|
|
107
|
+
'nullable': [
|
|
108
|
+
],
|
|
109
|
+
'enum': [
|
|
110
|
+
],
|
|
111
|
+
'validation': [
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
root_map={
|
|
115
|
+
'validations': {
|
|
116
|
+
},
|
|
117
|
+
'allowed_values': {
|
|
118
|
+
},
|
|
119
|
+
'openapi_types': {
|
|
120
|
+
'set_worker_status_request':
|
|
121
|
+
(SetWorkerStatusRequest,),
|
|
122
|
+
},
|
|
123
|
+
'attribute_map': {
|
|
124
|
+
},
|
|
125
|
+
'location_map': {
|
|
126
|
+
'set_worker_status_request': 'body',
|
|
127
|
+
},
|
|
128
|
+
'collection_format_map': {
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
headers_map={
|
|
132
|
+
'accept': [
|
|
133
|
+
'application/json',
|
|
134
|
+
'text/plain'
|
|
135
|
+
],
|
|
136
|
+
'content_type': [
|
|
137
|
+
'application/json'
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
api_client=api_client
|
|
141
|
+
)
|
|
142
|
+
|
|
143
|
+
def register_post(
|
|
144
|
+
self,
|
|
145
|
+
register_request,
|
|
146
|
+
**kwargs
|
|
147
|
+
):
|
|
148
|
+
"""Register a new worker # noqa: E501
|
|
149
|
+
|
|
150
|
+
Register a new worker with the sync storage service. # noqa: E501
|
|
151
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
152
|
+
asynchronous HTTP request, please pass async_req=True
|
|
153
|
+
|
|
154
|
+
>>> thread = api.register_post(register_request, async_req=True)
|
|
155
|
+
>>> result = thread.get()
|
|
156
|
+
|
|
157
|
+
Args:
|
|
158
|
+
register_request (RegisterRequest):
|
|
159
|
+
|
|
160
|
+
Keyword Args:
|
|
161
|
+
_return_http_data_only (bool): response data without head status
|
|
162
|
+
code and headers. Default is True.
|
|
163
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
164
|
+
will be returned without reading/decoding response data.
|
|
165
|
+
Default is True.
|
|
166
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
167
|
+
one number provided, it will be total request timeout. It can also
|
|
168
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
169
|
+
Default is None.
|
|
170
|
+
_check_input_type (bool): specifies if type checking
|
|
171
|
+
should be done one the data sent to the server.
|
|
172
|
+
Default is True.
|
|
173
|
+
_check_return_type (bool): specifies if type checking
|
|
174
|
+
should be done one the data received from the server.
|
|
175
|
+
Default is True.
|
|
176
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
177
|
+
are serialized names, as specified in the OpenAPI document.
|
|
178
|
+
False if the variable names in the input data
|
|
179
|
+
are pythonic names, e.g. snake case (default)
|
|
180
|
+
_content_type (str/None): force body content-type.
|
|
181
|
+
Default is None and content-type will be predicted by allowed
|
|
182
|
+
content-types and body.
|
|
183
|
+
_host_index (int/None): specifies the index of the server
|
|
184
|
+
that we want to use.
|
|
185
|
+
Default is read from the configuration.
|
|
186
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
187
|
+
request; this effectively ignores the authentication
|
|
188
|
+
in the spec for a single request.
|
|
189
|
+
Default is None
|
|
190
|
+
async_req (bool): execute request asynchronously
|
|
191
|
+
|
|
192
|
+
Returns:
|
|
193
|
+
RegisterResponse
|
|
194
|
+
If the method is called asynchronously, returns the request
|
|
195
|
+
thread.
|
|
196
|
+
"""
|
|
197
|
+
kwargs['async_req'] = kwargs.get(
|
|
198
|
+
'async_req', False
|
|
199
|
+
)
|
|
200
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
201
|
+
'_return_http_data_only', True
|
|
202
|
+
)
|
|
203
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
204
|
+
'_preload_content', True
|
|
205
|
+
)
|
|
206
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
207
|
+
'_request_timeout', None
|
|
208
|
+
)
|
|
209
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
210
|
+
'_check_input_type', True
|
|
211
|
+
)
|
|
212
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
213
|
+
'_check_return_type', True
|
|
214
|
+
)
|
|
215
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
216
|
+
'_spec_property_naming', False
|
|
217
|
+
)
|
|
218
|
+
kwargs['_content_type'] = kwargs.get(
|
|
219
|
+
'_content_type')
|
|
220
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
221
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
222
|
+
kwargs['register_request'] = \
|
|
223
|
+
register_request
|
|
224
|
+
return self.register_post_endpoint.call_with_http_info(**kwargs)
|
|
225
|
+
|
|
226
|
+
def set_worker_status_post(
|
|
227
|
+
self,
|
|
228
|
+
set_worker_status_request,
|
|
229
|
+
**kwargs
|
|
230
|
+
):
|
|
231
|
+
"""Set worker status # noqa: E501
|
|
232
|
+
|
|
233
|
+
Set the status of a worker by its PID. # noqa: E501
|
|
234
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
235
|
+
asynchronous HTTP request, please pass async_req=True
|
|
236
|
+
|
|
237
|
+
>>> thread = api.set_worker_status_post(set_worker_status_request, async_req=True)
|
|
238
|
+
>>> result = thread.get()
|
|
239
|
+
|
|
240
|
+
Args:
|
|
241
|
+
set_worker_status_request (SetWorkerStatusRequest):
|
|
242
|
+
|
|
243
|
+
Keyword Args:
|
|
244
|
+
_return_http_data_only (bool): response data without head status
|
|
245
|
+
code and headers. Default is True.
|
|
246
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
247
|
+
will be returned without reading/decoding response data.
|
|
248
|
+
Default is True.
|
|
249
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
250
|
+
one number provided, it will be total request timeout. It can also
|
|
251
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
252
|
+
Default is None.
|
|
253
|
+
_check_input_type (bool): specifies if type checking
|
|
254
|
+
should be done one the data sent to the server.
|
|
255
|
+
Default is True.
|
|
256
|
+
_check_return_type (bool): specifies if type checking
|
|
257
|
+
should be done one the data received from the server.
|
|
258
|
+
Default is True.
|
|
259
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
260
|
+
are serialized names, as specified in the OpenAPI document.
|
|
261
|
+
False if the variable names in the input data
|
|
262
|
+
are pythonic names, e.g. snake case (default)
|
|
263
|
+
_content_type (str/None): force body content-type.
|
|
264
|
+
Default is None and content-type will be predicted by allowed
|
|
265
|
+
content-types and body.
|
|
266
|
+
_host_index (int/None): specifies the index of the server
|
|
267
|
+
that we want to use.
|
|
268
|
+
Default is read from the configuration.
|
|
269
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
270
|
+
request; this effectively ignores the authentication
|
|
271
|
+
in the spec for a single request.
|
|
272
|
+
Default is None
|
|
273
|
+
async_req (bool): execute request asynchronously
|
|
274
|
+
|
|
275
|
+
Returns:
|
|
276
|
+
SetWorkerStatusResponse
|
|
277
|
+
If the method is called asynchronously, returns the request
|
|
278
|
+
thread.
|
|
279
|
+
"""
|
|
280
|
+
kwargs['async_req'] = kwargs.get(
|
|
281
|
+
'async_req', False
|
|
282
|
+
)
|
|
283
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
284
|
+
'_return_http_data_only', True
|
|
285
|
+
)
|
|
286
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
287
|
+
'_preload_content', True
|
|
288
|
+
)
|
|
289
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
290
|
+
'_request_timeout', None
|
|
291
|
+
)
|
|
292
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
293
|
+
'_check_input_type', True
|
|
294
|
+
)
|
|
295
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
296
|
+
'_check_return_type', True
|
|
297
|
+
)
|
|
298
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
299
|
+
'_spec_property_naming', False
|
|
300
|
+
)
|
|
301
|
+
kwargs['_content_type'] = kwargs.get(
|
|
302
|
+
'_content_type')
|
|
303
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
304
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
305
|
+
kwargs['set_worker_status_request'] = \
|
|
306
|
+
set_worker_status_request
|
|
307
|
+
return self.set_worker_status_post_endpoint.call_with_http_info(**kwargs)
|
|
308
|
+
|