development-framework-cli 1.7.3__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.
- development_framework_cli-1.7.3.dist-info/METADATA +141 -0
- development_framework_cli-1.7.3.dist-info/RECORD +71 -0
- development_framework_cli-1.7.3.dist-info/WHEEL +4 -0
- development_framework_cli-1.7.3.dist-info/entry_points.txt +2 -0
- development_framework_cli-1.7.3.dist-info/licenses/LICENSE +21 -0
- dm_cli/__init__.py +1 -0
- dm_cli/cli.py +180 -0
- dm_cli/command_group/__init__.py +0 -0
- dm_cli/command_group/data_source.py +176 -0
- dm_cli/command_group/entities.py +116 -0
- dm_cli/dmss.py +104 -0
- dm_cli/dmss_api/__init__.py +27 -0
- dm_cli/dmss_api/api/__init__.py +3 -0
- dm_cli/dmss_api/api/access_control_api.py +349 -0
- dm_cli/dmss_api/api/attribute_api.py +175 -0
- dm_cli/dmss_api/api/blob_api.py +344 -0
- dm_cli/dmss_api/api/blueprint_api.py +326 -0
- dm_cli/dmss_api/api/datasource_api.py +448 -0
- dm_cli/dmss_api/api/default_api.py +4439 -0
- dm_cli/dmss_api/api/document_api.py +922 -0
- dm_cli/dmss_api/api/entity_api.py +464 -0
- dm_cli/dmss_api/api/export_api.py +313 -0
- dm_cli/dmss_api/api/file_api.py +197 -0
- dm_cli/dmss_api/api/health_check_api.py +160 -0
- dm_cli/dmss_api/api/lookup_table_api.py +323 -0
- dm_cli/dmss_api/api/meta_api.py +185 -0
- dm_cli/dmss_api/api/personal_access_token_api.py +433 -0
- dm_cli/dmss_api/api/reference_api.py +174 -0
- dm_cli/dmss_api/api/search_api.py +183 -0
- dm_cli/dmss_api/api/whoami_api.py +163 -0
- dm_cli/dmss_api/api_client.py +896 -0
- dm_cli/dmss_api/apis/__init__.py +32 -0
- dm_cli/dmss_api/configuration.py +482 -0
- dm_cli/dmss_api/exceptions.py +158 -0
- dm_cli/dmss_api/model/__init__.py +5 -0
- dm_cli/dmss_api/model/access_control_list.py +287 -0
- dm_cli/dmss_api/model/access_level.py +290 -0
- dm_cli/dmss_api/model/acl.py +287 -0
- dm_cli/dmss_api/model/data_source_information.py +282 -0
- dm_cli/dmss_api/model/data_source_request.py +281 -0
- dm_cli/dmss_api/model/dependency.py +294 -0
- dm_cli/dmss_api/model/entity.py +275 -0
- dm_cli/dmss_api/model/error_response.py +278 -0
- dm_cli/dmss_api/model/export_meta_response.py +277 -0
- dm_cli/dmss_api/model/get_blueprint_response.py +280 -0
- dm_cli/dmss_api/model/lookup.py +283 -0
- dm_cli/dmss_api/model/pat_data.py +299 -0
- dm_cli/dmss_api/model/recipe.py +311 -0
- dm_cli/dmss_api/model/recipe_attribute.py +304 -0
- dm_cli/dmss_api/model/reference.py +280 -0
- dm_cli/dmss_api/model/reference_entity.py +288 -0
- dm_cli/dmss_api/model/repository.py +317 -0
- dm_cli/dmss_api/model/repository_type.py +290 -0
- dm_cli/dmss_api/model/storage_attribute.py +295 -0
- dm_cli/dmss_api/model/storage_data_types.py +292 -0
- dm_cli/dmss_api/model/storage_recipe.py +293 -0
- dm_cli/dmss_api/model_utils.py +2057 -0
- dm_cli/dmss_api/models/__init__.py +29 -0
- dm_cli/dmss_api/rest.py +358 -0
- dm_cli/domain.py +166 -0
- dm_cli/enums.py +48 -0
- dm_cli/import_entity.py +128 -0
- dm_cli/import_package.py +173 -0
- dm_cli/package_tree_from_zip.py +120 -0
- dm_cli/state.py +12 -0
- dm_cli/utils/__init__.py +0 -0
- dm_cli/utils/file_structure.py +31 -0
- dm_cli/utils/reference.py +129 -0
- dm_cli/utils/resolve_local_ids.py +142 -0
- dm_cli/utils/utils.py +161 -0
- dm_cli/utils/zip.py +70 -0
|
@@ -0,0 +1,448 @@
|
|
|
1
|
+
"""
|
|
2
|
+
Data Modelling Storage Service
|
|
3
|
+
|
|
4
|
+
API for basic data modelling interaction # noqa: E501
|
|
5
|
+
|
|
6
|
+
The version of the OpenAPI document: 1.3.0
|
|
7
|
+
Generated by: https://openapi-generator.tech
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
import re # noqa: F401
|
|
12
|
+
import sys # noqa: F401
|
|
13
|
+
|
|
14
|
+
from dm_cli.dmss_api.api_client import ApiClient
|
|
15
|
+
from dm_cli.dmss_api.api_client import Endpoint as _Endpoint
|
|
16
|
+
from dm_cli.dmss_api.model.data_source_information import DataSourceInformation
|
|
17
|
+
from dm_cli.dmss_api.model.data_source_request import DataSourceRequest
|
|
18
|
+
from dm_cli.dmss_api.model.error_response import ErrorResponse
|
|
19
|
+
from dm_cli.dmss_api.model_utils import ( # noqa: F401
|
|
20
|
+
check_allowed_values,
|
|
21
|
+
check_validations,
|
|
22
|
+
date,
|
|
23
|
+
datetime,
|
|
24
|
+
file_type,
|
|
25
|
+
none_type,
|
|
26
|
+
validate_and_convert_types,
|
|
27
|
+
)
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
class DatasourceApi(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.data_source_get_endpoint = _Endpoint(
|
|
42
|
+
settings={
|
|
43
|
+
'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
|
|
44
|
+
'auth': [
|
|
45
|
+
'APIKeyHeader',
|
|
46
|
+
'OAuth2AuthorizationCodeBearer'
|
|
47
|
+
],
|
|
48
|
+
'endpoint_path': '/api/data-sources/{data_source_id}',
|
|
49
|
+
'operation_id': 'data_source_get',
|
|
50
|
+
'http_method': 'GET',
|
|
51
|
+
'servers': None,
|
|
52
|
+
},
|
|
53
|
+
params_map={
|
|
54
|
+
'all': [
|
|
55
|
+
'data_source_id',
|
|
56
|
+
],
|
|
57
|
+
'required': [
|
|
58
|
+
'data_source_id',
|
|
59
|
+
],
|
|
60
|
+
'nullable': [
|
|
61
|
+
],
|
|
62
|
+
'enum': [
|
|
63
|
+
],
|
|
64
|
+
'validation': [
|
|
65
|
+
]
|
|
66
|
+
},
|
|
67
|
+
root_map={
|
|
68
|
+
'validations': {
|
|
69
|
+
},
|
|
70
|
+
'allowed_values': {
|
|
71
|
+
},
|
|
72
|
+
'openapi_types': {
|
|
73
|
+
'data_source_id':
|
|
74
|
+
(str,),
|
|
75
|
+
},
|
|
76
|
+
'attribute_map': {
|
|
77
|
+
'data_source_id': 'data_source_id',
|
|
78
|
+
},
|
|
79
|
+
'location_map': {
|
|
80
|
+
'data_source_id': 'path',
|
|
81
|
+
},
|
|
82
|
+
'collection_format_map': {
|
|
83
|
+
}
|
|
84
|
+
},
|
|
85
|
+
headers_map={
|
|
86
|
+
'accept': [
|
|
87
|
+
'application/json',
|
|
88
|
+
'text/plain'
|
|
89
|
+
],
|
|
90
|
+
'content_type': [],
|
|
91
|
+
},
|
|
92
|
+
api_client=api_client
|
|
93
|
+
)
|
|
94
|
+
self.data_source_get_all_endpoint = _Endpoint(
|
|
95
|
+
settings={
|
|
96
|
+
'response_type': ([DataSourceInformation],),
|
|
97
|
+
'auth': [
|
|
98
|
+
'APIKeyHeader',
|
|
99
|
+
'OAuth2AuthorizationCodeBearer'
|
|
100
|
+
],
|
|
101
|
+
'endpoint_path': '/api/data-sources',
|
|
102
|
+
'operation_id': 'data_source_get_all',
|
|
103
|
+
'http_method': 'GET',
|
|
104
|
+
'servers': None,
|
|
105
|
+
},
|
|
106
|
+
params_map={
|
|
107
|
+
'all': [
|
|
108
|
+
],
|
|
109
|
+
'required': [],
|
|
110
|
+
'nullable': [
|
|
111
|
+
],
|
|
112
|
+
'enum': [
|
|
113
|
+
],
|
|
114
|
+
'validation': [
|
|
115
|
+
]
|
|
116
|
+
},
|
|
117
|
+
root_map={
|
|
118
|
+
'validations': {
|
|
119
|
+
},
|
|
120
|
+
'allowed_values': {
|
|
121
|
+
},
|
|
122
|
+
'openapi_types': {
|
|
123
|
+
},
|
|
124
|
+
'attribute_map': {
|
|
125
|
+
},
|
|
126
|
+
'location_map': {
|
|
127
|
+
},
|
|
128
|
+
'collection_format_map': {
|
|
129
|
+
}
|
|
130
|
+
},
|
|
131
|
+
headers_map={
|
|
132
|
+
'accept': [
|
|
133
|
+
'application/json',
|
|
134
|
+
'text/plain'
|
|
135
|
+
],
|
|
136
|
+
'content_type': [],
|
|
137
|
+
},
|
|
138
|
+
api_client=api_client
|
|
139
|
+
)
|
|
140
|
+
self.data_source_save_endpoint = _Endpoint(
|
|
141
|
+
settings={
|
|
142
|
+
'response_type': (str,),
|
|
143
|
+
'auth': [
|
|
144
|
+
'APIKeyHeader',
|
|
145
|
+
'OAuth2AuthorizationCodeBearer'
|
|
146
|
+
],
|
|
147
|
+
'endpoint_path': '/api/data-sources/{data_source_id}',
|
|
148
|
+
'operation_id': 'data_source_save',
|
|
149
|
+
'http_method': 'POST',
|
|
150
|
+
'servers': None,
|
|
151
|
+
},
|
|
152
|
+
params_map={
|
|
153
|
+
'all': [
|
|
154
|
+
'data_source_id',
|
|
155
|
+
'data_source_request',
|
|
156
|
+
],
|
|
157
|
+
'required': [
|
|
158
|
+
'data_source_id',
|
|
159
|
+
'data_source_request',
|
|
160
|
+
],
|
|
161
|
+
'nullable': [
|
|
162
|
+
],
|
|
163
|
+
'enum': [
|
|
164
|
+
],
|
|
165
|
+
'validation': [
|
|
166
|
+
]
|
|
167
|
+
},
|
|
168
|
+
root_map={
|
|
169
|
+
'validations': {
|
|
170
|
+
},
|
|
171
|
+
'allowed_values': {
|
|
172
|
+
},
|
|
173
|
+
'openapi_types': {
|
|
174
|
+
'data_source_id':
|
|
175
|
+
(str,),
|
|
176
|
+
'data_source_request':
|
|
177
|
+
(DataSourceRequest,),
|
|
178
|
+
},
|
|
179
|
+
'attribute_map': {
|
|
180
|
+
'data_source_id': 'data_source_id',
|
|
181
|
+
},
|
|
182
|
+
'location_map': {
|
|
183
|
+
'data_source_id': 'path',
|
|
184
|
+
'data_source_request': 'body',
|
|
185
|
+
},
|
|
186
|
+
'collection_format_map': {
|
|
187
|
+
}
|
|
188
|
+
},
|
|
189
|
+
headers_map={
|
|
190
|
+
'accept': [
|
|
191
|
+
'application/json',
|
|
192
|
+
'text/plain'
|
|
193
|
+
],
|
|
194
|
+
'content_type': [
|
|
195
|
+
'application/json'
|
|
196
|
+
]
|
|
197
|
+
},
|
|
198
|
+
api_client=api_client
|
|
199
|
+
)
|
|
200
|
+
|
|
201
|
+
def data_source_get(
|
|
202
|
+
self,
|
|
203
|
+
data_source_id,
|
|
204
|
+
**kwargs
|
|
205
|
+
):
|
|
206
|
+
"""Get # noqa: E501
|
|
207
|
+
|
|
208
|
+
Get configuration of a single data source. Args: - data_source_id (str): ID of the data source - user (User): The authenticated user accessing the endpoint, automatically generated from provided bearer token or Access-Key. Returns: - dict: A dictionary containing configuration for the specified data source. # noqa: E501
|
|
209
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
210
|
+
asynchronous HTTP request, please pass async_req=True
|
|
211
|
+
|
|
212
|
+
>>> thread = api.data_source_get(data_source_id, async_req=True)
|
|
213
|
+
>>> result = thread.get()
|
|
214
|
+
|
|
215
|
+
Args:
|
|
216
|
+
data_source_id (str):
|
|
217
|
+
|
|
218
|
+
Keyword Args:
|
|
219
|
+
_return_http_data_only (bool): response data without head status
|
|
220
|
+
code and headers. Default is True.
|
|
221
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
222
|
+
will be returned without reading/decoding response data.
|
|
223
|
+
Default is True.
|
|
224
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
225
|
+
one number provided, it will be total request timeout. It can also
|
|
226
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
227
|
+
Default is None.
|
|
228
|
+
_check_input_type (bool): specifies if type checking
|
|
229
|
+
should be done one the data sent to the server.
|
|
230
|
+
Default is True.
|
|
231
|
+
_check_return_type (bool): specifies if type checking
|
|
232
|
+
should be done one the data received from the server.
|
|
233
|
+
Default is True.
|
|
234
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
235
|
+
are serialized names, as specified in the OpenAPI document.
|
|
236
|
+
False if the variable names in the input data
|
|
237
|
+
are pythonic names, e.g. snake case (default)
|
|
238
|
+
_content_type (str/None): force body content-type.
|
|
239
|
+
Default is None and content-type will be predicted by allowed
|
|
240
|
+
content-types and body.
|
|
241
|
+
_host_index (int/None): specifies the index of the server
|
|
242
|
+
that we want to use.
|
|
243
|
+
Default is read from the configuration.
|
|
244
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
245
|
+
request; this effectively ignores the authentication
|
|
246
|
+
in the spec for a single request.
|
|
247
|
+
Default is None
|
|
248
|
+
async_req (bool): execute request asynchronously
|
|
249
|
+
|
|
250
|
+
Returns:
|
|
251
|
+
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
|
|
252
|
+
If the method is called asynchronously, returns the request
|
|
253
|
+
thread.
|
|
254
|
+
"""
|
|
255
|
+
kwargs['async_req'] = kwargs.get(
|
|
256
|
+
'async_req', False
|
|
257
|
+
)
|
|
258
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
259
|
+
'_return_http_data_only', True
|
|
260
|
+
)
|
|
261
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
262
|
+
'_preload_content', True
|
|
263
|
+
)
|
|
264
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
265
|
+
'_request_timeout', None
|
|
266
|
+
)
|
|
267
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
268
|
+
'_check_input_type', True
|
|
269
|
+
)
|
|
270
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
271
|
+
'_check_return_type', True
|
|
272
|
+
)
|
|
273
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
274
|
+
'_spec_property_naming', False
|
|
275
|
+
)
|
|
276
|
+
kwargs['_content_type'] = kwargs.get(
|
|
277
|
+
'_content_type')
|
|
278
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
279
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
280
|
+
kwargs['data_source_id'] = \
|
|
281
|
+
data_source_id
|
|
282
|
+
return self.data_source_get_endpoint.call_with_http_info(**kwargs)
|
|
283
|
+
|
|
284
|
+
def data_source_get_all(
|
|
285
|
+
self,
|
|
286
|
+
**kwargs
|
|
287
|
+
):
|
|
288
|
+
"""Get All # noqa: E501
|
|
289
|
+
|
|
290
|
+
Get list of all data sources found in DMSS. Args: - user (User): The authenticated user accessing the endpoint, automatically generated from provided bearer token or Access-Key. Returns: - list (DataSourceInformation): A list of information about each data source found in the DMSS protocol. # noqa: E501
|
|
291
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
292
|
+
asynchronous HTTP request, please pass async_req=True
|
|
293
|
+
|
|
294
|
+
>>> thread = api.data_source_get_all(async_req=True)
|
|
295
|
+
>>> result = thread.get()
|
|
296
|
+
|
|
297
|
+
|
|
298
|
+
Keyword Args:
|
|
299
|
+
_return_http_data_only (bool): response data without head status
|
|
300
|
+
code and headers. Default is True.
|
|
301
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
302
|
+
will be returned without reading/decoding response data.
|
|
303
|
+
Default is True.
|
|
304
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
305
|
+
one number provided, it will be total request timeout. It can also
|
|
306
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
307
|
+
Default is None.
|
|
308
|
+
_check_input_type (bool): specifies if type checking
|
|
309
|
+
should be done one the data sent to the server.
|
|
310
|
+
Default is True.
|
|
311
|
+
_check_return_type (bool): specifies if type checking
|
|
312
|
+
should be done one the data received from the server.
|
|
313
|
+
Default is True.
|
|
314
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
315
|
+
are serialized names, as specified in the OpenAPI document.
|
|
316
|
+
False if the variable names in the input data
|
|
317
|
+
are pythonic names, e.g. snake case (default)
|
|
318
|
+
_content_type (str/None): force body content-type.
|
|
319
|
+
Default is None and content-type will be predicted by allowed
|
|
320
|
+
content-types and body.
|
|
321
|
+
_host_index (int/None): specifies the index of the server
|
|
322
|
+
that we want to use.
|
|
323
|
+
Default is read from the configuration.
|
|
324
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
325
|
+
request; this effectively ignores the authentication
|
|
326
|
+
in the spec for a single request.
|
|
327
|
+
Default is None
|
|
328
|
+
async_req (bool): execute request asynchronously
|
|
329
|
+
|
|
330
|
+
Returns:
|
|
331
|
+
[DataSourceInformation]
|
|
332
|
+
If the method is called asynchronously, returns the request
|
|
333
|
+
thread.
|
|
334
|
+
"""
|
|
335
|
+
kwargs['async_req'] = kwargs.get(
|
|
336
|
+
'async_req', False
|
|
337
|
+
)
|
|
338
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
339
|
+
'_return_http_data_only', True
|
|
340
|
+
)
|
|
341
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
342
|
+
'_preload_content', True
|
|
343
|
+
)
|
|
344
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
345
|
+
'_request_timeout', None
|
|
346
|
+
)
|
|
347
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
348
|
+
'_check_input_type', True
|
|
349
|
+
)
|
|
350
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
351
|
+
'_check_return_type', True
|
|
352
|
+
)
|
|
353
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
354
|
+
'_spec_property_naming', False
|
|
355
|
+
)
|
|
356
|
+
kwargs['_content_type'] = kwargs.get(
|
|
357
|
+
'_content_type')
|
|
358
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
359
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
360
|
+
return self.data_source_get_all_endpoint.call_with_http_info(**kwargs)
|
|
361
|
+
|
|
362
|
+
def data_source_save(
|
|
363
|
+
self,
|
|
364
|
+
data_source_id,
|
|
365
|
+
data_source_request,
|
|
366
|
+
**kwargs
|
|
367
|
+
):
|
|
368
|
+
"""Save # noqa: E501
|
|
369
|
+
|
|
370
|
+
Create or update a data source configuration. This endpoint is used for creating or updating a data source configuration. A data source can have multiple repositories. Args: - data_source_id (str): ID of the data source - new_data_source (DataSourceRequest): A dict object with keys \"name\" and \"repositories\" which is another dict of str and repository configuration. This is the config of the data source. - user (User): The authenticated user accessing the endpoint, automatically generated from provided bearer token or Access-Key. Returns: - str: The ID of the newly created or updated data source. # noqa: E501
|
|
371
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
372
|
+
asynchronous HTTP request, please pass async_req=True
|
|
373
|
+
|
|
374
|
+
>>> thread = api.data_source_save(data_source_id, data_source_request, async_req=True)
|
|
375
|
+
>>> result = thread.get()
|
|
376
|
+
|
|
377
|
+
Args:
|
|
378
|
+
data_source_id (str):
|
|
379
|
+
data_source_request (DataSourceRequest):
|
|
380
|
+
|
|
381
|
+
Keyword Args:
|
|
382
|
+
_return_http_data_only (bool): response data without head status
|
|
383
|
+
code and headers. Default is True.
|
|
384
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
385
|
+
will be returned without reading/decoding response data.
|
|
386
|
+
Default is True.
|
|
387
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
388
|
+
one number provided, it will be total request timeout. It can also
|
|
389
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
390
|
+
Default is None.
|
|
391
|
+
_check_input_type (bool): specifies if type checking
|
|
392
|
+
should be done one the data sent to the server.
|
|
393
|
+
Default is True.
|
|
394
|
+
_check_return_type (bool): specifies if type checking
|
|
395
|
+
should be done one the data received from the server.
|
|
396
|
+
Default is True.
|
|
397
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
398
|
+
are serialized names, as specified in the OpenAPI document.
|
|
399
|
+
False if the variable names in the input data
|
|
400
|
+
are pythonic names, e.g. snake case (default)
|
|
401
|
+
_content_type (str/None): force body content-type.
|
|
402
|
+
Default is None and content-type will be predicted by allowed
|
|
403
|
+
content-types and body.
|
|
404
|
+
_host_index (int/None): specifies the index of the server
|
|
405
|
+
that we want to use.
|
|
406
|
+
Default is read from the configuration.
|
|
407
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
408
|
+
request; this effectively ignores the authentication
|
|
409
|
+
in the spec for a single request.
|
|
410
|
+
Default is None
|
|
411
|
+
async_req (bool): execute request asynchronously
|
|
412
|
+
|
|
413
|
+
Returns:
|
|
414
|
+
str
|
|
415
|
+
If the method is called asynchronously, returns the request
|
|
416
|
+
thread.
|
|
417
|
+
"""
|
|
418
|
+
kwargs['async_req'] = kwargs.get(
|
|
419
|
+
'async_req', False
|
|
420
|
+
)
|
|
421
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
422
|
+
'_return_http_data_only', True
|
|
423
|
+
)
|
|
424
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
425
|
+
'_preload_content', True
|
|
426
|
+
)
|
|
427
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
428
|
+
'_request_timeout', None
|
|
429
|
+
)
|
|
430
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
431
|
+
'_check_input_type', True
|
|
432
|
+
)
|
|
433
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
434
|
+
'_check_return_type', True
|
|
435
|
+
)
|
|
436
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
437
|
+
'_spec_property_naming', False
|
|
438
|
+
)
|
|
439
|
+
kwargs['_content_type'] = kwargs.get(
|
|
440
|
+
'_content_type')
|
|
441
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
442
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
443
|
+
kwargs['data_source_id'] = \
|
|
444
|
+
data_source_id
|
|
445
|
+
kwargs['data_source_request'] = \
|
|
446
|
+
data_source_request
|
|
447
|
+
return self.data_source_save_endpoint.call_with_http_info(**kwargs)
|
|
448
|
+
|