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,433 @@
|
|
|
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.error_response import ErrorResponse
|
|
17
|
+
from dm_cli.dmss_api.model.pat_data import PATData
|
|
18
|
+
from dm_cli.dmss_api.model_utils import ( # noqa: F401
|
|
19
|
+
check_allowed_values,
|
|
20
|
+
check_validations,
|
|
21
|
+
date,
|
|
22
|
+
datetime,
|
|
23
|
+
file_type,
|
|
24
|
+
none_type,
|
|
25
|
+
validate_and_convert_types,
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class PersonalAccessTokenApi(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.token_create_endpoint = _Endpoint(
|
|
41
|
+
settings={
|
|
42
|
+
'response_type': (str,),
|
|
43
|
+
'auth': [
|
|
44
|
+
'OAuth2AuthorizationCodeBearer'
|
|
45
|
+
],
|
|
46
|
+
'endpoint_path': '/api/token',
|
|
47
|
+
'operation_id': 'token_create',
|
|
48
|
+
'http_method': 'POST',
|
|
49
|
+
'servers': None,
|
|
50
|
+
},
|
|
51
|
+
params_map={
|
|
52
|
+
'all': [
|
|
53
|
+
'scope',
|
|
54
|
+
'time_to_live',
|
|
55
|
+
],
|
|
56
|
+
'required': [],
|
|
57
|
+
'nullable': [
|
|
58
|
+
],
|
|
59
|
+
'enum': [
|
|
60
|
+
],
|
|
61
|
+
'validation': [
|
|
62
|
+
]
|
|
63
|
+
},
|
|
64
|
+
root_map={
|
|
65
|
+
'validations': {
|
|
66
|
+
},
|
|
67
|
+
'allowed_values': {
|
|
68
|
+
},
|
|
69
|
+
'openapi_types': {
|
|
70
|
+
'scope':
|
|
71
|
+
(bool, date, datetime, dict, float, int, list, str, none_type,),
|
|
72
|
+
'time_to_live':
|
|
73
|
+
(int,),
|
|
74
|
+
},
|
|
75
|
+
'attribute_map': {
|
|
76
|
+
'scope': 'scope',
|
|
77
|
+
'time_to_live': 'time_to_live',
|
|
78
|
+
},
|
|
79
|
+
'location_map': {
|
|
80
|
+
'scope': 'query',
|
|
81
|
+
'time_to_live': 'query',
|
|
82
|
+
},
|
|
83
|
+
'collection_format_map': {
|
|
84
|
+
}
|
|
85
|
+
},
|
|
86
|
+
headers_map={
|
|
87
|
+
'accept': [
|
|
88
|
+
'application/json',
|
|
89
|
+
'text/plain'
|
|
90
|
+
],
|
|
91
|
+
'content_type': [],
|
|
92
|
+
},
|
|
93
|
+
api_client=api_client
|
|
94
|
+
)
|
|
95
|
+
self.token_delete_endpoint = _Endpoint(
|
|
96
|
+
settings={
|
|
97
|
+
'response_type': (str,),
|
|
98
|
+
'auth': [
|
|
99
|
+
'OAuth2AuthorizationCodeBearer'
|
|
100
|
+
],
|
|
101
|
+
'endpoint_path': '/api/token/{token_id}',
|
|
102
|
+
'operation_id': 'token_delete',
|
|
103
|
+
'http_method': 'DELETE',
|
|
104
|
+
'servers': None,
|
|
105
|
+
},
|
|
106
|
+
params_map={
|
|
107
|
+
'all': [
|
|
108
|
+
'token_id',
|
|
109
|
+
],
|
|
110
|
+
'required': [
|
|
111
|
+
'token_id',
|
|
112
|
+
],
|
|
113
|
+
'nullable': [
|
|
114
|
+
],
|
|
115
|
+
'enum': [
|
|
116
|
+
],
|
|
117
|
+
'validation': [
|
|
118
|
+
]
|
|
119
|
+
},
|
|
120
|
+
root_map={
|
|
121
|
+
'validations': {
|
|
122
|
+
},
|
|
123
|
+
'allowed_values': {
|
|
124
|
+
},
|
|
125
|
+
'openapi_types': {
|
|
126
|
+
'token_id':
|
|
127
|
+
(str,),
|
|
128
|
+
},
|
|
129
|
+
'attribute_map': {
|
|
130
|
+
'token_id': 'token_id',
|
|
131
|
+
},
|
|
132
|
+
'location_map': {
|
|
133
|
+
'token_id': 'path',
|
|
134
|
+
},
|
|
135
|
+
'collection_format_map': {
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
headers_map={
|
|
139
|
+
'accept': [
|
|
140
|
+
'application/json',
|
|
141
|
+
'text/plain'
|
|
142
|
+
],
|
|
143
|
+
'content_type': [],
|
|
144
|
+
},
|
|
145
|
+
api_client=api_client
|
|
146
|
+
)
|
|
147
|
+
self.token_list_all_endpoint = _Endpoint(
|
|
148
|
+
settings={
|
|
149
|
+
'response_type': ([PATData],),
|
|
150
|
+
'auth': [
|
|
151
|
+
'OAuth2AuthorizationCodeBearer'
|
|
152
|
+
],
|
|
153
|
+
'endpoint_path': '/api/token',
|
|
154
|
+
'operation_id': 'token_list_all',
|
|
155
|
+
'http_method': 'GET',
|
|
156
|
+
'servers': None,
|
|
157
|
+
},
|
|
158
|
+
params_map={
|
|
159
|
+
'all': [
|
|
160
|
+
],
|
|
161
|
+
'required': [],
|
|
162
|
+
'nullable': [
|
|
163
|
+
],
|
|
164
|
+
'enum': [
|
|
165
|
+
],
|
|
166
|
+
'validation': [
|
|
167
|
+
]
|
|
168
|
+
},
|
|
169
|
+
root_map={
|
|
170
|
+
'validations': {
|
|
171
|
+
},
|
|
172
|
+
'allowed_values': {
|
|
173
|
+
},
|
|
174
|
+
'openapi_types': {
|
|
175
|
+
},
|
|
176
|
+
'attribute_map': {
|
|
177
|
+
},
|
|
178
|
+
'location_map': {
|
|
179
|
+
},
|
|
180
|
+
'collection_format_map': {
|
|
181
|
+
}
|
|
182
|
+
},
|
|
183
|
+
headers_map={
|
|
184
|
+
'accept': [
|
|
185
|
+
'application/json',
|
|
186
|
+
'text/plain'
|
|
187
|
+
],
|
|
188
|
+
'content_type': [],
|
|
189
|
+
},
|
|
190
|
+
api_client=api_client
|
|
191
|
+
)
|
|
192
|
+
|
|
193
|
+
def token_create(
|
|
194
|
+
self,
|
|
195
|
+
**kwargs
|
|
196
|
+
):
|
|
197
|
+
"""New Personal Access Token # noqa: E501
|
|
198
|
+
|
|
199
|
+
Create a Personal Access Token (PAT). This endpoint creates a PAT token for the currently logged in user, stores it in the database and returns it to the user. Args: - scope (WRITE | READ | NONE): Access level for the PAT. - time_to_live (int): Optional parameter specifying the lifespan of the PAT in seconds. Default lifespan is 30 days. Returns: - str: The generated PAT token # noqa: E501
|
|
200
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
201
|
+
asynchronous HTTP request, please pass async_req=True
|
|
202
|
+
|
|
203
|
+
>>> thread = api.token_create(async_req=True)
|
|
204
|
+
>>> result = thread.get()
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
Keyword Args:
|
|
208
|
+
scope (bool, date, datetime, dict, float, int, list, str, none_type): [optional]
|
|
209
|
+
time_to_live (int): [optional] if omitted the server will use the default value of 2592000
|
|
210
|
+
_return_http_data_only (bool): response data without head status
|
|
211
|
+
code and headers. Default is True.
|
|
212
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
213
|
+
will be returned without reading/decoding response data.
|
|
214
|
+
Default is True.
|
|
215
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
216
|
+
one number provided, it will be total request timeout. It can also
|
|
217
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
218
|
+
Default is None.
|
|
219
|
+
_check_input_type (bool): specifies if type checking
|
|
220
|
+
should be done one the data sent to the server.
|
|
221
|
+
Default is True.
|
|
222
|
+
_check_return_type (bool): specifies if type checking
|
|
223
|
+
should be done one the data received from the server.
|
|
224
|
+
Default is True.
|
|
225
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
226
|
+
are serialized names, as specified in the OpenAPI document.
|
|
227
|
+
False if the variable names in the input data
|
|
228
|
+
are pythonic names, e.g. snake case (default)
|
|
229
|
+
_content_type (str/None): force body content-type.
|
|
230
|
+
Default is None and content-type will be predicted by allowed
|
|
231
|
+
content-types and body.
|
|
232
|
+
_host_index (int/None): specifies the index of the server
|
|
233
|
+
that we want to use.
|
|
234
|
+
Default is read from the configuration.
|
|
235
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
236
|
+
request; this effectively ignores the authentication
|
|
237
|
+
in the spec for a single request.
|
|
238
|
+
Default is None
|
|
239
|
+
async_req (bool): execute request asynchronously
|
|
240
|
+
|
|
241
|
+
Returns:
|
|
242
|
+
str
|
|
243
|
+
If the method is called asynchronously, returns the request
|
|
244
|
+
thread.
|
|
245
|
+
"""
|
|
246
|
+
kwargs['async_req'] = kwargs.get(
|
|
247
|
+
'async_req', False
|
|
248
|
+
)
|
|
249
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
250
|
+
'_return_http_data_only', True
|
|
251
|
+
)
|
|
252
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
253
|
+
'_preload_content', True
|
|
254
|
+
)
|
|
255
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
256
|
+
'_request_timeout', None
|
|
257
|
+
)
|
|
258
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
259
|
+
'_check_input_type', True
|
|
260
|
+
)
|
|
261
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
262
|
+
'_check_return_type', True
|
|
263
|
+
)
|
|
264
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
265
|
+
'_spec_property_naming', False
|
|
266
|
+
)
|
|
267
|
+
kwargs['_content_type'] = kwargs.get(
|
|
268
|
+
'_content_type')
|
|
269
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
270
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
271
|
+
return self.token_create_endpoint.call_with_http_info(**kwargs)
|
|
272
|
+
|
|
273
|
+
def token_delete(
|
|
274
|
+
self,
|
|
275
|
+
token_id,
|
|
276
|
+
**kwargs
|
|
277
|
+
):
|
|
278
|
+
"""Revoke Personal Access Token # noqa: E501
|
|
279
|
+
|
|
280
|
+
Revoke a Personal Access Token (PAT). This endpoint revokes a PAT token so that it is invalid and can no longer be used to gain access. Args: token_id (str): The ID of the token to be revoked. Returns: str: A string with the message \"OK\" when the token has been revoked. # noqa: E501
|
|
281
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
282
|
+
asynchronous HTTP request, please pass async_req=True
|
|
283
|
+
|
|
284
|
+
>>> thread = api.token_delete(token_id, async_req=True)
|
|
285
|
+
>>> result = thread.get()
|
|
286
|
+
|
|
287
|
+
Args:
|
|
288
|
+
token_id (str):
|
|
289
|
+
|
|
290
|
+
Keyword Args:
|
|
291
|
+
_return_http_data_only (bool): response data without head status
|
|
292
|
+
code and headers. Default is True.
|
|
293
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
294
|
+
will be returned without reading/decoding response data.
|
|
295
|
+
Default is True.
|
|
296
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
297
|
+
one number provided, it will be total request timeout. It can also
|
|
298
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
299
|
+
Default is None.
|
|
300
|
+
_check_input_type (bool): specifies if type checking
|
|
301
|
+
should be done one the data sent to the server.
|
|
302
|
+
Default is True.
|
|
303
|
+
_check_return_type (bool): specifies if type checking
|
|
304
|
+
should be done one the data received from the server.
|
|
305
|
+
Default is True.
|
|
306
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
307
|
+
are serialized names, as specified in the OpenAPI document.
|
|
308
|
+
False if the variable names in the input data
|
|
309
|
+
are pythonic names, e.g. snake case (default)
|
|
310
|
+
_content_type (str/None): force body content-type.
|
|
311
|
+
Default is None and content-type will be predicted by allowed
|
|
312
|
+
content-types and body.
|
|
313
|
+
_host_index (int/None): specifies the index of the server
|
|
314
|
+
that we want to use.
|
|
315
|
+
Default is read from the configuration.
|
|
316
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
317
|
+
request; this effectively ignores the authentication
|
|
318
|
+
in the spec for a single request.
|
|
319
|
+
Default is None
|
|
320
|
+
async_req (bool): execute request asynchronously
|
|
321
|
+
|
|
322
|
+
Returns:
|
|
323
|
+
str
|
|
324
|
+
If the method is called asynchronously, returns the request
|
|
325
|
+
thread.
|
|
326
|
+
"""
|
|
327
|
+
kwargs['async_req'] = kwargs.get(
|
|
328
|
+
'async_req', False
|
|
329
|
+
)
|
|
330
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
331
|
+
'_return_http_data_only', True
|
|
332
|
+
)
|
|
333
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
334
|
+
'_preload_content', True
|
|
335
|
+
)
|
|
336
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
337
|
+
'_request_timeout', None
|
|
338
|
+
)
|
|
339
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
340
|
+
'_check_input_type', True
|
|
341
|
+
)
|
|
342
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
343
|
+
'_check_return_type', True
|
|
344
|
+
)
|
|
345
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
346
|
+
'_spec_property_naming', False
|
|
347
|
+
)
|
|
348
|
+
kwargs['_content_type'] = kwargs.get(
|
|
349
|
+
'_content_type')
|
|
350
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
351
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
352
|
+
kwargs['token_id'] = \
|
|
353
|
+
token_id
|
|
354
|
+
return self.token_delete_endpoint.call_with_http_info(**kwargs)
|
|
355
|
+
|
|
356
|
+
def token_list_all(
|
|
357
|
+
self,
|
|
358
|
+
**kwargs
|
|
359
|
+
):
|
|
360
|
+
"""List All Pats # noqa: E501
|
|
361
|
+
|
|
362
|
+
Get All Personal Access Tokens for the Current User. Get a list of all personal access tokens (PATs) for the currently logged in user. Args: user (User): The authenticated user accessing the endpoint. Returns: list: A list of all personal access tokens for the currently logged in user. # noqa: E501
|
|
363
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
364
|
+
asynchronous HTTP request, please pass async_req=True
|
|
365
|
+
|
|
366
|
+
>>> thread = api.token_list_all(async_req=True)
|
|
367
|
+
>>> result = thread.get()
|
|
368
|
+
|
|
369
|
+
|
|
370
|
+
Keyword Args:
|
|
371
|
+
_return_http_data_only (bool): response data without head status
|
|
372
|
+
code and headers. Default is True.
|
|
373
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
374
|
+
will be returned without reading/decoding response data.
|
|
375
|
+
Default is True.
|
|
376
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
377
|
+
one number provided, it will be total request timeout. It can also
|
|
378
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
379
|
+
Default is None.
|
|
380
|
+
_check_input_type (bool): specifies if type checking
|
|
381
|
+
should be done one the data sent to the server.
|
|
382
|
+
Default is True.
|
|
383
|
+
_check_return_type (bool): specifies if type checking
|
|
384
|
+
should be done one the data received from the server.
|
|
385
|
+
Default is True.
|
|
386
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
387
|
+
are serialized names, as specified in the OpenAPI document.
|
|
388
|
+
False if the variable names in the input data
|
|
389
|
+
are pythonic names, e.g. snake case (default)
|
|
390
|
+
_content_type (str/None): force body content-type.
|
|
391
|
+
Default is None and content-type will be predicted by allowed
|
|
392
|
+
content-types and body.
|
|
393
|
+
_host_index (int/None): specifies the index of the server
|
|
394
|
+
that we want to use.
|
|
395
|
+
Default is read from the configuration.
|
|
396
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
397
|
+
request; this effectively ignores the authentication
|
|
398
|
+
in the spec for a single request.
|
|
399
|
+
Default is None
|
|
400
|
+
async_req (bool): execute request asynchronously
|
|
401
|
+
|
|
402
|
+
Returns:
|
|
403
|
+
[PATData]
|
|
404
|
+
If the method is called asynchronously, returns the request
|
|
405
|
+
thread.
|
|
406
|
+
"""
|
|
407
|
+
kwargs['async_req'] = kwargs.get(
|
|
408
|
+
'async_req', False
|
|
409
|
+
)
|
|
410
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
411
|
+
'_return_http_data_only', True
|
|
412
|
+
)
|
|
413
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
414
|
+
'_preload_content', True
|
|
415
|
+
)
|
|
416
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
417
|
+
'_request_timeout', None
|
|
418
|
+
)
|
|
419
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
420
|
+
'_check_input_type', True
|
|
421
|
+
)
|
|
422
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
423
|
+
'_check_return_type', True
|
|
424
|
+
)
|
|
425
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
426
|
+
'_spec_property_naming', False
|
|
427
|
+
)
|
|
428
|
+
kwargs['_content_type'] = kwargs.get(
|
|
429
|
+
'_content_type')
|
|
430
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
431
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
432
|
+
return self.token_list_all_endpoint.call_with_http_info(**kwargs)
|
|
433
|
+
|
|
@@ -0,0 +1,174 @@
|
|
|
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.2.3
|
|
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, Endpoint as _Endpoint
|
|
15
|
+
from dm_cli.dmss_api.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 dm_cli.dmss_api.model.error_response import ErrorResponse
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class ReferenceApi(object):
|
|
28
|
+
"""NOTE: This class is auto generated by OpenAPI Generator
|
|
29
|
+
Ref: https://openapi-generator.tech
|
|
30
|
+
|
|
31
|
+
Do not edit the class manually.
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
def __init__(self, api_client=None):
|
|
35
|
+
if api_client is None:
|
|
36
|
+
api_client = ApiClient()
|
|
37
|
+
self.api_client = api_client
|
|
38
|
+
self.reference_delete_endpoint = _Endpoint(
|
|
39
|
+
settings={
|
|
40
|
+
'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
|
|
41
|
+
'auth': [
|
|
42
|
+
'APIKeyHeader',
|
|
43
|
+
'OAuth2AuthorizationCodeBearer'
|
|
44
|
+
],
|
|
45
|
+
'endpoint_path': '/api/reference/{address}',
|
|
46
|
+
'operation_id': 'reference_delete',
|
|
47
|
+
'http_method': 'DELETE',
|
|
48
|
+
'servers': None,
|
|
49
|
+
},
|
|
50
|
+
params_map={
|
|
51
|
+
'all': [
|
|
52
|
+
'address',
|
|
53
|
+
],
|
|
54
|
+
'required': [
|
|
55
|
+
'address',
|
|
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
|
+
'address':
|
|
71
|
+
(str,),
|
|
72
|
+
},
|
|
73
|
+
'attribute_map': {
|
|
74
|
+
'address': 'address',
|
|
75
|
+
},
|
|
76
|
+
'location_map': {
|
|
77
|
+
'address': 'path',
|
|
78
|
+
},
|
|
79
|
+
'collection_format_map': {
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
headers_map={
|
|
83
|
+
'accept': [
|
|
84
|
+
'application/json',
|
|
85
|
+
'text/plain'
|
|
86
|
+
],
|
|
87
|
+
'content_type': [],
|
|
88
|
+
},
|
|
89
|
+
api_client=api_client
|
|
90
|
+
)
|
|
91
|
+
|
|
92
|
+
def reference_delete(
|
|
93
|
+
self,
|
|
94
|
+
address,
|
|
95
|
+
**kwargs
|
|
96
|
+
):
|
|
97
|
+
"""Delete Reference # noqa: E501
|
|
98
|
+
|
|
99
|
+
Delete a reference in an entity. Used to delete uncontained attributes in an entity. - **document_dotted_id**: <data_source>/<path_to_entity>/<entity_name>.<attribute> # noqa: E501
|
|
100
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
101
|
+
asynchronous HTTP request, please pass async_req=True
|
|
102
|
+
|
|
103
|
+
>>> thread = api.reference_delete(address, async_req=True)
|
|
104
|
+
>>> result = thread.get()
|
|
105
|
+
|
|
106
|
+
Args:
|
|
107
|
+
address (str):
|
|
108
|
+
|
|
109
|
+
Keyword Args:
|
|
110
|
+
_return_http_data_only (bool): response data without head status
|
|
111
|
+
code and headers. Default is True.
|
|
112
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
113
|
+
will be returned without reading/decoding response data.
|
|
114
|
+
Default is True.
|
|
115
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
116
|
+
one number provided, it will be total request timeout. It can also
|
|
117
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
118
|
+
Default is None.
|
|
119
|
+
_check_input_type (bool): specifies if type checking
|
|
120
|
+
should be done one the data sent to the server.
|
|
121
|
+
Default is True.
|
|
122
|
+
_check_return_type (bool): specifies if type checking
|
|
123
|
+
should be done one the data received from the server.
|
|
124
|
+
Default is True.
|
|
125
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
126
|
+
are serialized names, as specified in the OpenAPI document.
|
|
127
|
+
False if the variable names in the input data
|
|
128
|
+
are pythonic names, e.g. snake case (default)
|
|
129
|
+
_content_type (str/None): force body content-type.
|
|
130
|
+
Default is None and content-type will be predicted by allowed
|
|
131
|
+
content-types and body.
|
|
132
|
+
_host_index (int/None): specifies the index of the server
|
|
133
|
+
that we want to use.
|
|
134
|
+
Default is read from the configuration.
|
|
135
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
136
|
+
request; this effectively ignores the authentication
|
|
137
|
+
in the spec for a single request.
|
|
138
|
+
Default is None
|
|
139
|
+
async_req (bool): execute request asynchronously
|
|
140
|
+
|
|
141
|
+
Returns:
|
|
142
|
+
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
|
|
143
|
+
If the method is called asynchronously, returns the request
|
|
144
|
+
thread.
|
|
145
|
+
"""
|
|
146
|
+
kwargs['async_req'] = kwargs.get(
|
|
147
|
+
'async_req', False
|
|
148
|
+
)
|
|
149
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
150
|
+
'_return_http_data_only', True
|
|
151
|
+
)
|
|
152
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
153
|
+
'_preload_content', True
|
|
154
|
+
)
|
|
155
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
156
|
+
'_request_timeout', None
|
|
157
|
+
)
|
|
158
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
159
|
+
'_check_input_type', True
|
|
160
|
+
)
|
|
161
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
162
|
+
'_check_return_type', True
|
|
163
|
+
)
|
|
164
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
165
|
+
'_spec_property_naming', False
|
|
166
|
+
)
|
|
167
|
+
kwargs['_content_type'] = kwargs.get(
|
|
168
|
+
'_content_type')
|
|
169
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
170
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
171
|
+
kwargs['address'] = \
|
|
172
|
+
address
|
|
173
|
+
return self.reference_delete_endpoint.call_with_http_info(**kwargs)
|
|
174
|
+
|