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,323 @@
|
|
|
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.lookup import Lookup
|
|
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 LookupTableApi(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.create_lookup_endpoint = _Endpoint(
|
|
41
|
+
settings={
|
|
42
|
+
'response_type': None,
|
|
43
|
+
'auth': [
|
|
44
|
+
'APIKeyHeader',
|
|
45
|
+
'OAuth2AuthorizationCodeBearer'
|
|
46
|
+
],
|
|
47
|
+
'endpoint_path': '/api/application/{application}',
|
|
48
|
+
'operation_id': 'create_lookup',
|
|
49
|
+
'http_method': 'POST',
|
|
50
|
+
'servers': None,
|
|
51
|
+
},
|
|
52
|
+
params_map={
|
|
53
|
+
'all': [
|
|
54
|
+
'application',
|
|
55
|
+
'recipe_package',
|
|
56
|
+
],
|
|
57
|
+
'required': [
|
|
58
|
+
'application',
|
|
59
|
+
'recipe_package',
|
|
60
|
+
],
|
|
61
|
+
'nullable': [
|
|
62
|
+
],
|
|
63
|
+
'enum': [
|
|
64
|
+
],
|
|
65
|
+
'validation': [
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
root_map={
|
|
69
|
+
'validations': {
|
|
70
|
+
},
|
|
71
|
+
'allowed_values': {
|
|
72
|
+
},
|
|
73
|
+
'openapi_types': {
|
|
74
|
+
'application':
|
|
75
|
+
(str,),
|
|
76
|
+
'recipe_package':
|
|
77
|
+
([str],),
|
|
78
|
+
},
|
|
79
|
+
'attribute_map': {
|
|
80
|
+
'application': 'application',
|
|
81
|
+
'recipe_package': 'recipe_package',
|
|
82
|
+
},
|
|
83
|
+
'location_map': {
|
|
84
|
+
'application': 'path',
|
|
85
|
+
'recipe_package': 'query',
|
|
86
|
+
},
|
|
87
|
+
'collection_format_map': {
|
|
88
|
+
'recipe_package': 'multi',
|
|
89
|
+
}
|
|
90
|
+
},
|
|
91
|
+
headers_map={
|
|
92
|
+
'accept': [
|
|
93
|
+
'application/json',
|
|
94
|
+
'text/plain'
|
|
95
|
+
],
|
|
96
|
+
'content_type': [],
|
|
97
|
+
},
|
|
98
|
+
api_client=api_client
|
|
99
|
+
)
|
|
100
|
+
self.get_lookup_endpoint = _Endpoint(
|
|
101
|
+
settings={
|
|
102
|
+
'response_type': (Lookup,),
|
|
103
|
+
'auth': [
|
|
104
|
+
'APIKeyHeader',
|
|
105
|
+
'OAuth2AuthorizationCodeBearer'
|
|
106
|
+
],
|
|
107
|
+
'endpoint_path': '/api/application/{application}',
|
|
108
|
+
'operation_id': 'get_lookup',
|
|
109
|
+
'http_method': 'GET',
|
|
110
|
+
'servers': None,
|
|
111
|
+
},
|
|
112
|
+
params_map={
|
|
113
|
+
'all': [
|
|
114
|
+
'application',
|
|
115
|
+
],
|
|
116
|
+
'required': [
|
|
117
|
+
'application',
|
|
118
|
+
],
|
|
119
|
+
'nullable': [
|
|
120
|
+
],
|
|
121
|
+
'enum': [
|
|
122
|
+
],
|
|
123
|
+
'validation': [
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
root_map={
|
|
127
|
+
'validations': {
|
|
128
|
+
},
|
|
129
|
+
'allowed_values': {
|
|
130
|
+
},
|
|
131
|
+
'openapi_types': {
|
|
132
|
+
'application':
|
|
133
|
+
(str,),
|
|
134
|
+
},
|
|
135
|
+
'attribute_map': {
|
|
136
|
+
'application': 'application',
|
|
137
|
+
},
|
|
138
|
+
'location_map': {
|
|
139
|
+
'application': 'path',
|
|
140
|
+
},
|
|
141
|
+
'collection_format_map': {
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
headers_map={
|
|
145
|
+
'accept': [
|
|
146
|
+
'application/json',
|
|
147
|
+
'text/plain'
|
|
148
|
+
],
|
|
149
|
+
'content_type': [],
|
|
150
|
+
},
|
|
151
|
+
api_client=api_client
|
|
152
|
+
)
|
|
153
|
+
|
|
154
|
+
def create_lookup(
|
|
155
|
+
self,
|
|
156
|
+
application,
|
|
157
|
+
recipe_package,
|
|
158
|
+
**kwargs
|
|
159
|
+
):
|
|
160
|
+
"""Create Lookup # noqa: E501
|
|
161
|
+
|
|
162
|
+
Creates a Recipe Lookup Table for an Application, given a Package Containing RecipeLinks. This endpoint creates a lookup table for an application. This lookup table is used to find UI- and Storage recipes given a blueprint. This recipe is associated with an application, based on application name. Args: - application (str): Name of an application. - recipe_package (list[str]): A list of one or more paths to packages that contain recipe links. - Example: [\"system/SIMOS/recipe_links\"] - user (User): The authenticated user accessing the endpoint, automatically generated from provided bearer token or Access-Key. Returns: - None, with status Code 204 (No Content). # noqa: E501
|
|
163
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
164
|
+
asynchronous HTTP request, please pass async_req=True
|
|
165
|
+
|
|
166
|
+
>>> thread = api.create_lookup(application, recipe_package, async_req=True)
|
|
167
|
+
>>> result = thread.get()
|
|
168
|
+
|
|
169
|
+
Args:
|
|
170
|
+
application (str):
|
|
171
|
+
recipe_package ([str]):
|
|
172
|
+
|
|
173
|
+
Keyword Args:
|
|
174
|
+
_return_http_data_only (bool): response data without head status
|
|
175
|
+
code and headers. Default is True.
|
|
176
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
177
|
+
will be returned without reading/decoding response data.
|
|
178
|
+
Default is True.
|
|
179
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
180
|
+
one number provided, it will be total request timeout. It can also
|
|
181
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
182
|
+
Default is None.
|
|
183
|
+
_check_input_type (bool): specifies if type checking
|
|
184
|
+
should be done one the data sent to the server.
|
|
185
|
+
Default is True.
|
|
186
|
+
_check_return_type (bool): specifies if type checking
|
|
187
|
+
should be done one the data received from the server.
|
|
188
|
+
Default is True.
|
|
189
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
190
|
+
are serialized names, as specified in the OpenAPI document.
|
|
191
|
+
False if the variable names in the input data
|
|
192
|
+
are pythonic names, e.g. snake case (default)
|
|
193
|
+
_content_type (str/None): force body content-type.
|
|
194
|
+
Default is None and content-type will be predicted by allowed
|
|
195
|
+
content-types and body.
|
|
196
|
+
_host_index (int/None): specifies the index of the server
|
|
197
|
+
that we want to use.
|
|
198
|
+
Default is read from the configuration.
|
|
199
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
200
|
+
request; this effectively ignores the authentication
|
|
201
|
+
in the spec for a single request.
|
|
202
|
+
Default is None
|
|
203
|
+
async_req (bool): execute request asynchronously
|
|
204
|
+
|
|
205
|
+
Returns:
|
|
206
|
+
None
|
|
207
|
+
If the method is called asynchronously, returns the request
|
|
208
|
+
thread.
|
|
209
|
+
"""
|
|
210
|
+
kwargs['async_req'] = kwargs.get(
|
|
211
|
+
'async_req', False
|
|
212
|
+
)
|
|
213
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
214
|
+
'_return_http_data_only', True
|
|
215
|
+
)
|
|
216
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
217
|
+
'_preload_content', True
|
|
218
|
+
)
|
|
219
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
220
|
+
'_request_timeout', None
|
|
221
|
+
)
|
|
222
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
223
|
+
'_check_input_type', True
|
|
224
|
+
)
|
|
225
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
226
|
+
'_check_return_type', True
|
|
227
|
+
)
|
|
228
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
229
|
+
'_spec_property_naming', False
|
|
230
|
+
)
|
|
231
|
+
kwargs['_content_type'] = kwargs.get(
|
|
232
|
+
'_content_type')
|
|
233
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
234
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
235
|
+
kwargs['application'] = \
|
|
236
|
+
application
|
|
237
|
+
kwargs['recipe_package'] = \
|
|
238
|
+
recipe_package
|
|
239
|
+
return self.create_lookup_endpoint.call_with_http_info(**kwargs)
|
|
240
|
+
|
|
241
|
+
def get_lookup(
|
|
242
|
+
self,
|
|
243
|
+
application,
|
|
244
|
+
**kwargs
|
|
245
|
+
):
|
|
246
|
+
"""Get Lookup # noqa: E501
|
|
247
|
+
|
|
248
|
+
Get The Lookup Table for UI- and Storage Recipes the Provided Application This endpoint fetches the recipe lookup table for the application provided. This lookup table is used to find UI- and Storage recipes given a blueprint. Args: - application (str): The name of the desired application. - user (User): The authenticated user accessing the endpoint, automatically generated from provided bearer token or Access-Key. Returns: - dict: The recipe lookup table for the provided application. # noqa: E501
|
|
249
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
250
|
+
asynchronous HTTP request, please pass async_req=True
|
|
251
|
+
|
|
252
|
+
>>> thread = api.get_lookup(application, async_req=True)
|
|
253
|
+
>>> result = thread.get()
|
|
254
|
+
|
|
255
|
+
Args:
|
|
256
|
+
application (str):
|
|
257
|
+
|
|
258
|
+
Keyword Args:
|
|
259
|
+
_return_http_data_only (bool): response data without head status
|
|
260
|
+
code and headers. Default is True.
|
|
261
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
262
|
+
will be returned without reading/decoding response data.
|
|
263
|
+
Default is True.
|
|
264
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
265
|
+
one number provided, it will be total request timeout. It can also
|
|
266
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
267
|
+
Default is None.
|
|
268
|
+
_check_input_type (bool): specifies if type checking
|
|
269
|
+
should be done one the data sent to the server.
|
|
270
|
+
Default is True.
|
|
271
|
+
_check_return_type (bool): specifies if type checking
|
|
272
|
+
should be done one the data received from the server.
|
|
273
|
+
Default is True.
|
|
274
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
275
|
+
are serialized names, as specified in the OpenAPI document.
|
|
276
|
+
False if the variable names in the input data
|
|
277
|
+
are pythonic names, e.g. snake case (default)
|
|
278
|
+
_content_type (str/None): force body content-type.
|
|
279
|
+
Default is None and content-type will be predicted by allowed
|
|
280
|
+
content-types and body.
|
|
281
|
+
_host_index (int/None): specifies the index of the server
|
|
282
|
+
that we want to use.
|
|
283
|
+
Default is read from the configuration.
|
|
284
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
285
|
+
request; this effectively ignores the authentication
|
|
286
|
+
in the spec for a single request.
|
|
287
|
+
Default is None
|
|
288
|
+
async_req (bool): execute request asynchronously
|
|
289
|
+
|
|
290
|
+
Returns:
|
|
291
|
+
Lookup
|
|
292
|
+
If the method is called asynchronously, returns the request
|
|
293
|
+
thread.
|
|
294
|
+
"""
|
|
295
|
+
kwargs['async_req'] = kwargs.get(
|
|
296
|
+
'async_req', False
|
|
297
|
+
)
|
|
298
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
299
|
+
'_return_http_data_only', True
|
|
300
|
+
)
|
|
301
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
302
|
+
'_preload_content', True
|
|
303
|
+
)
|
|
304
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
305
|
+
'_request_timeout', None
|
|
306
|
+
)
|
|
307
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
308
|
+
'_check_input_type', True
|
|
309
|
+
)
|
|
310
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
311
|
+
'_check_return_type', True
|
|
312
|
+
)
|
|
313
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
314
|
+
'_spec_property_naming', False
|
|
315
|
+
)
|
|
316
|
+
kwargs['_content_type'] = kwargs.get(
|
|
317
|
+
'_content_type')
|
|
318
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
319
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
320
|
+
kwargs['application'] = \
|
|
321
|
+
application
|
|
322
|
+
return self.get_lookup_endpoint.call_with_http_info(**kwargs)
|
|
323
|
+
|
|
@@ -0,0 +1,185 @@
|
|
|
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_utils import ( # noqa: F401
|
|
18
|
+
check_allowed_values,
|
|
19
|
+
check_validations,
|
|
20
|
+
date,
|
|
21
|
+
datetime,
|
|
22
|
+
file_type,
|
|
23
|
+
none_type,
|
|
24
|
+
validate_and_convert_types,
|
|
25
|
+
)
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
class MetaApi(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.meta_by_id_endpoint = _Endpoint(
|
|
40
|
+
settings={
|
|
41
|
+
'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
|
|
42
|
+
'auth': [
|
|
43
|
+
'APIKeyHeader',
|
|
44
|
+
'OAuth2AuthorizationCodeBearer'
|
|
45
|
+
],
|
|
46
|
+
'endpoint_path': '/api/meta/{data_source_id}/{document_id}',
|
|
47
|
+
'operation_id': 'meta_by_id',
|
|
48
|
+
'http_method': 'GET',
|
|
49
|
+
'servers': None,
|
|
50
|
+
},
|
|
51
|
+
params_map={
|
|
52
|
+
'all': [
|
|
53
|
+
'data_source_id',
|
|
54
|
+
'document_id',
|
|
55
|
+
],
|
|
56
|
+
'required': [
|
|
57
|
+
'data_source_id',
|
|
58
|
+
'document_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
|
+
'document_id':
|
|
76
|
+
(str,),
|
|
77
|
+
},
|
|
78
|
+
'attribute_map': {
|
|
79
|
+
'data_source_id': 'data_source_id',
|
|
80
|
+
'document_id': 'document_id',
|
|
81
|
+
},
|
|
82
|
+
'location_map': {
|
|
83
|
+
'data_source_id': 'path',
|
|
84
|
+
'document_id': 'path',
|
|
85
|
+
},
|
|
86
|
+
'collection_format_map': {
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
headers_map={
|
|
90
|
+
'accept': [
|
|
91
|
+
'application/json',
|
|
92
|
+
'text/plain'
|
|
93
|
+
],
|
|
94
|
+
'content_type': [],
|
|
95
|
+
},
|
|
96
|
+
api_client=api_client
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
def meta_by_id(
|
|
100
|
+
self,
|
|
101
|
+
data_source_id,
|
|
102
|
+
document_id,
|
|
103
|
+
**kwargs
|
|
104
|
+
):
|
|
105
|
+
"""Get Meta By Id # noqa: E501
|
|
106
|
+
|
|
107
|
+
Get Meta Information About a blob. This endpoint returns meta information for a blob file provided document id and the id of the data source of which it is located. Args: - data_source_id (str): The ID of the data source. - document_id (str): The ID of the document. - user (User): The authenticated user accessing the endpoint, automatically generated from provided bearer token or Access-Key. Returns: - dict: A dictionary containing the meta information about the blob file of the document. # noqa: E501
|
|
108
|
+
This method makes a synchronous HTTP request by default. To make an
|
|
109
|
+
asynchronous HTTP request, please pass async_req=True
|
|
110
|
+
|
|
111
|
+
>>> thread = api.meta_by_id(data_source_id, document_id, async_req=True)
|
|
112
|
+
>>> result = thread.get()
|
|
113
|
+
|
|
114
|
+
Args:
|
|
115
|
+
data_source_id (str):
|
|
116
|
+
document_id (str):
|
|
117
|
+
|
|
118
|
+
Keyword Args:
|
|
119
|
+
_return_http_data_only (bool): response data without head status
|
|
120
|
+
code and headers. Default is True.
|
|
121
|
+
_preload_content (bool): if False, the urllib3.HTTPResponse object
|
|
122
|
+
will be returned without reading/decoding response data.
|
|
123
|
+
Default is True.
|
|
124
|
+
_request_timeout (int/float/tuple): timeout setting for this request. If
|
|
125
|
+
one number provided, it will be total request timeout. It can also
|
|
126
|
+
be a pair (tuple) of (connection, read) timeouts.
|
|
127
|
+
Default is None.
|
|
128
|
+
_check_input_type (bool): specifies if type checking
|
|
129
|
+
should be done one the data sent to the server.
|
|
130
|
+
Default is True.
|
|
131
|
+
_check_return_type (bool): specifies if type checking
|
|
132
|
+
should be done one the data received from the server.
|
|
133
|
+
Default is True.
|
|
134
|
+
_spec_property_naming (bool): True if the variable names in the input data
|
|
135
|
+
are serialized names, as specified in the OpenAPI document.
|
|
136
|
+
False if the variable names in the input data
|
|
137
|
+
are pythonic names, e.g. snake case (default)
|
|
138
|
+
_content_type (str/None): force body content-type.
|
|
139
|
+
Default is None and content-type will be predicted by allowed
|
|
140
|
+
content-types and body.
|
|
141
|
+
_host_index (int/None): specifies the index of the server
|
|
142
|
+
that we want to use.
|
|
143
|
+
Default is read from the configuration.
|
|
144
|
+
_request_auths (list): set to override the auth_settings for an a single
|
|
145
|
+
request; this effectively ignores the authentication
|
|
146
|
+
in the spec for a single request.
|
|
147
|
+
Default is None
|
|
148
|
+
async_req (bool): execute request asynchronously
|
|
149
|
+
|
|
150
|
+
Returns:
|
|
151
|
+
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
|
|
152
|
+
If the method is called asynchronously, returns the request
|
|
153
|
+
thread.
|
|
154
|
+
"""
|
|
155
|
+
kwargs['async_req'] = kwargs.get(
|
|
156
|
+
'async_req', False
|
|
157
|
+
)
|
|
158
|
+
kwargs['_return_http_data_only'] = kwargs.get(
|
|
159
|
+
'_return_http_data_only', True
|
|
160
|
+
)
|
|
161
|
+
kwargs['_preload_content'] = kwargs.get(
|
|
162
|
+
'_preload_content', True
|
|
163
|
+
)
|
|
164
|
+
kwargs['_request_timeout'] = kwargs.get(
|
|
165
|
+
'_request_timeout', None
|
|
166
|
+
)
|
|
167
|
+
kwargs['_check_input_type'] = kwargs.get(
|
|
168
|
+
'_check_input_type', True
|
|
169
|
+
)
|
|
170
|
+
kwargs['_check_return_type'] = kwargs.get(
|
|
171
|
+
'_check_return_type', True
|
|
172
|
+
)
|
|
173
|
+
kwargs['_spec_property_naming'] = kwargs.get(
|
|
174
|
+
'_spec_property_naming', False
|
|
175
|
+
)
|
|
176
|
+
kwargs['_content_type'] = kwargs.get(
|
|
177
|
+
'_content_type')
|
|
178
|
+
kwargs['_host_index'] = kwargs.get('_host_index')
|
|
179
|
+
kwargs['_request_auths'] = kwargs.get('_request_auths', None)
|
|
180
|
+
kwargs['data_source_id'] = \
|
|
181
|
+
data_source_id
|
|
182
|
+
kwargs['document_id'] = \
|
|
183
|
+
document_id
|
|
184
|
+
return self.meta_by_id_endpoint.call_with_http_info(**kwargs)
|
|
185
|
+
|