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,326 @@
|
|
|
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.get_blueprint_response import GetBlueprintResponse
|
|
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 BlueprintApi(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.blueprint_get_endpoint = _Endpoint(
|
|
41
|
+
settings={
|
|
42
|
+
'response_type': (GetBlueprintResponse,),
|
|
43
|
+
'auth': [
|
|
44
|
+
'APIKeyHeader',
|
|
45
|
+
'OAuth2AuthorizationCodeBearer'
|
|
46
|
+
],
|
|
47
|
+
'endpoint_path': '/api/blueprint/{type_ref}',
|
|
48
|
+
'operation_id': 'blueprint_get',
|
|
49
|
+
'http_method': 'GET',
|
|
50
|
+
'servers': None,
|
|
51
|
+
},
|
|
52
|
+
params_map={
|
|
53
|
+
'all': [
|
|
54
|
+
'type_ref',
|
|
55
|
+
'context',
|
|
56
|
+
],
|
|
57
|
+
'required': [
|
|
58
|
+
'type_ref',
|
|
59
|
+
],
|
|
60
|
+
'nullable': [
|
|
61
|
+
],
|
|
62
|
+
'enum': [
|
|
63
|
+
],
|
|
64
|
+
'validation': [
|
|
65
|
+
'type_ref',
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
root_map={
|
|
69
|
+
'validations': {
|
|
70
|
+
('type_ref',): {
|
|
71
|
+
'max_length': 128,
|
|
72
|
+
'min_length': 3,
|
|
73
|
+
'regex': {
|
|
74
|
+
'pattern': r'^[A-Z:a-z0-9_\/-]*$', # noqa: E501
|
|
75
|
+
},
|
|
76
|
+
},
|
|
77
|
+
},
|
|
78
|
+
'allowed_values': {
|
|
79
|
+
},
|
|
80
|
+
'openapi_types': {
|
|
81
|
+
'type_ref':
|
|
82
|
+
(str,),
|
|
83
|
+
'context':
|
|
84
|
+
(str,),
|
|
85
|
+
},
|
|
86
|
+
'attribute_map': {
|
|
87
|
+
'type_ref': 'type_ref',
|
|
88
|
+
'context': 'context',
|
|
89
|
+
},
|
|
90
|
+
'location_map': {
|
|
91
|
+
'type_ref': 'path',
|
|
92
|
+
'context': 'query',
|
|
93
|
+
},
|
|
94
|
+
'collection_format_map': {
|
|
95
|
+
}
|
|
96
|
+
},
|
|
97
|
+
headers_map={
|
|
98
|
+
'accept': [
|
|
99
|
+
'application/json',
|
|
100
|
+
'text/plain'
|
|
101
|
+
],
|
|
102
|
+
'content_type': [],
|
|
103
|
+
},
|
|
104
|
+
api_client=api_client
|
|
105
|
+
)
|
|
106
|
+
self.blueprint_resolve_endpoint = _Endpoint(
|
|
107
|
+
settings={
|
|
108
|
+
'response_type': (str,),
|
|
109
|
+
'auth': [
|
|
110
|
+
'APIKeyHeader',
|
|
111
|
+
'OAuth2AuthorizationCodeBearer'
|
|
112
|
+
],
|
|
113
|
+
'endpoint_path': '/api/resolve-path/{address}',
|
|
114
|
+
'operation_id': 'blueprint_resolve',
|
|
115
|
+
'http_method': 'GET',
|
|
116
|
+
'servers': None,
|
|
117
|
+
},
|
|
118
|
+
params_map={
|
|
119
|
+
'all': [
|
|
120
|
+
'address',
|
|
121
|
+
],
|
|
122
|
+
'required': [
|
|
123
|
+
'address',
|
|
124
|
+
],
|
|
125
|
+
'nullable': [
|
|
126
|
+
],
|
|
127
|
+
'enum': [
|
|
128
|
+
],
|
|
129
|
+
'validation': [
|
|
130
|
+
]
|
|
131
|
+
},
|
|
132
|
+
root_map={
|
|
133
|
+
'validations': {
|
|
134
|
+
},
|
|
135
|
+
'allowed_values': {
|
|
136
|
+
},
|
|
137
|
+
'openapi_types': {
|
|
138
|
+
'address':
|
|
139
|
+
(str,),
|
|
140
|
+
},
|
|
141
|
+
'attribute_map': {
|
|
142
|
+
'address': 'address',
|
|
143
|
+
},
|
|
144
|
+
'location_map': {
|
|
145
|
+
'address': 'path',
|
|
146
|
+
},
|
|
147
|
+
'collection_format_map': {
|
|
148
|
+
}
|
|
149
|
+
},
|
|
150
|
+
headers_map={
|
|
151
|
+
'accept': [
|
|
152
|
+
'application/json',
|
|
153
|
+
'text/plain'
|
|
154
|
+
],
|
|
155
|
+
'content_type': [],
|
|
156
|
+
},
|
|
157
|
+
api_client=api_client
|
|
158
|
+
)
|
|
159
|
+
|
|
160
|
+
def blueprint_get(
|
|
161
|
+
self,
|
|
162
|
+
type_ref,
|
|
163
|
+
**kwargs
|
|
164
|
+
):
|
|
165
|
+
"""Get Blueprint # noqa: E501
|
|
166
|
+
|
|
167
|
+
Get a Blueprint and all Ui- and StorageRecipes connected to it, given a Blueprint address. Args: - type_ref (str): The address of the blueprint. - Example: PROTOCOL://<DATA-SOURCE>/<PACKAGE>/<FOLDER>/<NAME> - context (str): Optional name of application that has Ui-/StorageRecipe lookup table. - user (User): The authenticated user accessing the endpoint, automatically generated from provided bearer token or Access-Key. Returns: - GetBlueprintResponse: An object containing the blueprint, a list of all UI- recipes and a list of all StorageRecipes. # noqa: E501
|
|
168
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
169
|
+
asynchronous HTTP request, please pass async_req=True
|
|
170
|
+
|
|
171
|
+
>>> thread = api.blueprint_get(type_ref, async_req=True)
|
|
172
|
+
>>> result = thread.get()
|
|
173
|
+
|
|
174
|
+
Args:
|
|
175
|
+
type_ref (str):
|
|
176
|
+
|
|
177
|
+
Keyword Args:
|
|
178
|
+
context (str): [optional]
|
|
179
|
+
_return_http_data_only (bool): response data without head status
|
|
180
|
+
code and headers. Default is True.
|
|
181
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
182
|
+
will be returned without reading/decoding response data.
|
|
183
|
+
Default is True.
|
|
184
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
185
|
+
one number provided, it will be total request timeout. It can also
|
|
186
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
187
|
+
Default is None.
|
|
188
|
+
_check_input_type (bool): specifies if type checking
|
|
189
|
+
should be done one the data sent to the server.
|
|
190
|
+
Default is True.
|
|
191
|
+
_check_return_type (bool): specifies if type checking
|
|
192
|
+
should be done one the data received from the server.
|
|
193
|
+
Default is True.
|
|
194
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
195
|
+
are serialized names, as specified in the OpenAPI document.
|
|
196
|
+
False if the variable names in the input data
|
|
197
|
+
are pythonic names, e.g. snake case (default)
|
|
198
|
+
_content_type (str/None): force body content-type.
|
|
199
|
+
Default is None and content-type will be predicted by allowed
|
|
200
|
+
content-types and body.
|
|
201
|
+
_host_index (int/None): specifies the index of the server
|
|
202
|
+
that we want to use.
|
|
203
|
+
Default is read from the configuration.
|
|
204
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
205
|
+
request; this effectively ignores the authentication
|
|
206
|
+
in the spec for a single request.
|
|
207
|
+
Default is None
|
|
208
|
+
async_req (bool): execute request asynchronously
|
|
209
|
+
|
|
210
|
+
Returns:
|
|
211
|
+
GetBlueprintResponse
|
|
212
|
+
If the method is called asynchronously, returns the request
|
|
213
|
+
thread.
|
|
214
|
+
"""
|
|
215
|
+
kwargs['async_req'] = kwargs.get(
|
|
216
|
+
'async_req', False
|
|
217
|
+
)
|
|
218
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
219
|
+
'_return_http_data_only', True
|
|
220
|
+
)
|
|
221
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
222
|
+
'_preload_content', True
|
|
223
|
+
)
|
|
224
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
225
|
+
'_request_timeout', None
|
|
226
|
+
)
|
|
227
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
228
|
+
'_check_input_type', True
|
|
229
|
+
)
|
|
230
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
231
|
+
'_check_return_type', True
|
|
232
|
+
)
|
|
233
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
234
|
+
'_spec_property_naming', False
|
|
235
|
+
)
|
|
236
|
+
kwargs['_content_type'] = kwargs.get(
|
|
237
|
+
'_content_type')
|
|
238
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
239
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
240
|
+
kwargs['type_ref'] = \
|
|
241
|
+
type_ref
|
|
242
|
+
return self.blueprint_get_endpoint.call_with_http_info(**kwargs)
|
|
243
|
+
|
|
244
|
+
def blueprint_resolve(
|
|
245
|
+
self,
|
|
246
|
+
address,
|
|
247
|
+
**kwargs
|
|
248
|
+
):
|
|
249
|
+
"""Resolve Blueprint Id # noqa: E501
|
|
250
|
+
|
|
251
|
+
Resolve path address of a blueprint given id address. This endpoint takes in an ID-address of a blueprint and finds the full path address to the blueprint. Args: - address (str): The ID address of the blueprint. - Example: PROTOCOL://<DATA-SOURCE>/$<UUID> Returns: - str: the path address of the blueprint. - Example: PROTOCOL://<DATA-SOURCE>/<PACKAGE>/<FOLDER>/<NAME> # noqa: E501
|
|
252
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
253
|
+
asynchronous HTTP request, please pass async_req=True
|
|
254
|
+
|
|
255
|
+
>>> thread = api.blueprint_resolve(address, async_req=True)
|
|
256
|
+
>>> result = thread.get()
|
|
257
|
+
|
|
258
|
+
Args:
|
|
259
|
+
address (str):
|
|
260
|
+
|
|
261
|
+
Keyword Args:
|
|
262
|
+
_return_http_data_only (bool): response data without head status
|
|
263
|
+
code and headers. Default is True.
|
|
264
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
265
|
+
will be returned without reading/decoding response data.
|
|
266
|
+
Default is True.
|
|
267
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
268
|
+
one number provided, it will be total request timeout. It can also
|
|
269
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
270
|
+
Default is None.
|
|
271
|
+
_check_input_type (bool): specifies if type checking
|
|
272
|
+
should be done one the data sent to the server.
|
|
273
|
+
Default is True.
|
|
274
|
+
_check_return_type (bool): specifies if type checking
|
|
275
|
+
should be done one the data received from the server.
|
|
276
|
+
Default is True.
|
|
277
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
278
|
+
are serialized names, as specified in the OpenAPI document.
|
|
279
|
+
False if the variable names in the input data
|
|
280
|
+
are pythonic names, e.g. snake case (default)
|
|
281
|
+
_content_type (str/None): force body content-type.
|
|
282
|
+
Default is None and content-type will be predicted by allowed
|
|
283
|
+
content-types and body.
|
|
284
|
+
_host_index (int/None): specifies the index of the server
|
|
285
|
+
that we want to use.
|
|
286
|
+
Default is read from the configuration.
|
|
287
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
288
|
+
request; this effectively ignores the authentication
|
|
289
|
+
in the spec for a single request.
|
|
290
|
+
Default is None
|
|
291
|
+
async_req (bool): execute request asynchronously
|
|
292
|
+
|
|
293
|
+
Returns:
|
|
294
|
+
str
|
|
295
|
+
If the method is called asynchronously, returns the request
|
|
296
|
+
thread.
|
|
297
|
+
"""
|
|
298
|
+
kwargs['async_req'] = kwargs.get(
|
|
299
|
+
'async_req', False
|
|
300
|
+
)
|
|
301
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
302
|
+
'_return_http_data_only', True
|
|
303
|
+
)
|
|
304
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
305
|
+
'_preload_content', True
|
|
306
|
+
)
|
|
307
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
308
|
+
'_request_timeout', None
|
|
309
|
+
)
|
|
310
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
311
|
+
'_check_input_type', True
|
|
312
|
+
)
|
|
313
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
314
|
+
'_check_return_type', True
|
|
315
|
+
)
|
|
316
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
317
|
+
'_spec_property_naming', False
|
|
318
|
+
)
|
|
319
|
+
kwargs['_content_type'] = kwargs.get(
|
|
320
|
+
'_content_type')
|
|
321
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
322
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
323
|
+
kwargs['address'] = \
|
|
324
|
+
address
|
|
325
|
+
return self.blueprint_resolve_endpoint.call_with_http_info(**kwargs)
|
|
326
|
+
|