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.
Files changed (71) hide show
  1. development_framework_cli-1.7.3.dist-info/METADATA +141 -0
  2. development_framework_cli-1.7.3.dist-info/RECORD +71 -0
  3. development_framework_cli-1.7.3.dist-info/WHEEL +4 -0
  4. development_framework_cli-1.7.3.dist-info/entry_points.txt +2 -0
  5. development_framework_cli-1.7.3.dist-info/licenses/LICENSE +21 -0
  6. dm_cli/__init__.py +1 -0
  7. dm_cli/cli.py +180 -0
  8. dm_cli/command_group/__init__.py +0 -0
  9. dm_cli/command_group/data_source.py +176 -0
  10. dm_cli/command_group/entities.py +116 -0
  11. dm_cli/dmss.py +104 -0
  12. dm_cli/dmss_api/__init__.py +27 -0
  13. dm_cli/dmss_api/api/__init__.py +3 -0
  14. dm_cli/dmss_api/api/access_control_api.py +349 -0
  15. dm_cli/dmss_api/api/attribute_api.py +175 -0
  16. dm_cli/dmss_api/api/blob_api.py +344 -0
  17. dm_cli/dmss_api/api/blueprint_api.py +326 -0
  18. dm_cli/dmss_api/api/datasource_api.py +448 -0
  19. dm_cli/dmss_api/api/default_api.py +4439 -0
  20. dm_cli/dmss_api/api/document_api.py +922 -0
  21. dm_cli/dmss_api/api/entity_api.py +464 -0
  22. dm_cli/dmss_api/api/export_api.py +313 -0
  23. dm_cli/dmss_api/api/file_api.py +197 -0
  24. dm_cli/dmss_api/api/health_check_api.py +160 -0
  25. dm_cli/dmss_api/api/lookup_table_api.py +323 -0
  26. dm_cli/dmss_api/api/meta_api.py +185 -0
  27. dm_cli/dmss_api/api/personal_access_token_api.py +433 -0
  28. dm_cli/dmss_api/api/reference_api.py +174 -0
  29. dm_cli/dmss_api/api/search_api.py +183 -0
  30. dm_cli/dmss_api/api/whoami_api.py +163 -0
  31. dm_cli/dmss_api/api_client.py +896 -0
  32. dm_cli/dmss_api/apis/__init__.py +32 -0
  33. dm_cli/dmss_api/configuration.py +482 -0
  34. dm_cli/dmss_api/exceptions.py +158 -0
  35. dm_cli/dmss_api/model/__init__.py +5 -0
  36. dm_cli/dmss_api/model/access_control_list.py +287 -0
  37. dm_cli/dmss_api/model/access_level.py +290 -0
  38. dm_cli/dmss_api/model/acl.py +287 -0
  39. dm_cli/dmss_api/model/data_source_information.py +282 -0
  40. dm_cli/dmss_api/model/data_source_request.py +281 -0
  41. dm_cli/dmss_api/model/dependency.py +294 -0
  42. dm_cli/dmss_api/model/entity.py +275 -0
  43. dm_cli/dmss_api/model/error_response.py +278 -0
  44. dm_cli/dmss_api/model/export_meta_response.py +277 -0
  45. dm_cli/dmss_api/model/get_blueprint_response.py +280 -0
  46. dm_cli/dmss_api/model/lookup.py +283 -0
  47. dm_cli/dmss_api/model/pat_data.py +299 -0
  48. dm_cli/dmss_api/model/recipe.py +311 -0
  49. dm_cli/dmss_api/model/recipe_attribute.py +304 -0
  50. dm_cli/dmss_api/model/reference.py +280 -0
  51. dm_cli/dmss_api/model/reference_entity.py +288 -0
  52. dm_cli/dmss_api/model/repository.py +317 -0
  53. dm_cli/dmss_api/model/repository_type.py +290 -0
  54. dm_cli/dmss_api/model/storage_attribute.py +295 -0
  55. dm_cli/dmss_api/model/storage_data_types.py +292 -0
  56. dm_cli/dmss_api/model/storage_recipe.py +293 -0
  57. dm_cli/dmss_api/model_utils.py +2057 -0
  58. dm_cli/dmss_api/models/__init__.py +29 -0
  59. dm_cli/dmss_api/rest.py +358 -0
  60. dm_cli/domain.py +166 -0
  61. dm_cli/enums.py +48 -0
  62. dm_cli/import_entity.py +128 -0
  63. dm_cli/import_package.py +173 -0
  64. dm_cli/package_tree_from_zip.py +120 -0
  65. dm_cli/state.py +12 -0
  66. dm_cli/utils/__init__.py +0 -0
  67. dm_cli/utils/file_structure.py +31 -0
  68. dm_cli/utils/reference.py +129 -0
  69. dm_cli/utils/resolve_local_ids.py +142 -0
  70. dm_cli/utils/utils.py +161 -0
  71. dm_cli/utils/zip.py +70 -0
@@ -0,0 +1,922 @@
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 DocumentApi(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.document_add_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/documents/{address}',
47
+ 'operation_id': 'document_add',
48
+ 'http_method': 'POST',
49
+ 'servers': None,
50
+ },
51
+ params_map={
52
+ 'all': [
53
+ 'address',
54
+ 'document',
55
+ 'update_uncontained',
56
+ 'files',
57
+ ],
58
+ 'required': [
59
+ 'address',
60
+ 'document',
61
+ ],
62
+ 'nullable': [
63
+ ],
64
+ 'enum': [
65
+ ],
66
+ 'validation': [
67
+ ]
68
+ },
69
+ root_map={
70
+ 'validations': {
71
+ },
72
+ 'allowed_values': {
73
+ },
74
+ 'openapi_types': {
75
+ 'address':
76
+ (str,),
77
+ 'document':
78
+ (str,),
79
+ 'update_uncontained':
80
+ (bool,),
81
+ 'files':
82
+ ([file_type],),
83
+ },
84
+ 'attribute_map': {
85
+ 'address': 'address',
86
+ 'document': 'document',
87
+ 'update_uncontained': 'update_uncontained',
88
+ 'files': 'files',
89
+ },
90
+ 'location_map': {
91
+ 'address': 'path',
92
+ 'document': 'form',
93
+ 'update_uncontained': 'query',
94
+ 'files': 'form',
95
+ },
96
+ 'collection_format_map': {
97
+ 'files': 'csv',
98
+ }
99
+ },
100
+ headers_map={
101
+ 'accept': [
102
+ 'application/json',
103
+ 'text/plain'
104
+ ],
105
+ 'content_type': [
106
+ 'multipart/form-data'
107
+ ]
108
+ },
109
+ api_client=api_client
110
+ )
111
+ self.document_add_simple_endpoint = _Endpoint(
112
+ settings={
113
+ 'response_type': (str,),
114
+ 'auth': [
115
+ 'APIKeyHeader',
116
+ 'OAuth2AuthorizationCodeBearer'
117
+ ],
118
+ 'endpoint_path': '/api/documents-add-raw/{data_source_id}',
119
+ 'operation_id': 'document_add_simple',
120
+ 'http_method': 'POST',
121
+ 'servers': None,
122
+ },
123
+ params_map={
124
+ 'all': [
125
+ 'data_source_id',
126
+ 'body',
127
+ ],
128
+ 'required': [
129
+ 'data_source_id',
130
+ 'body',
131
+ ],
132
+ 'nullable': [
133
+ ],
134
+ 'enum': [
135
+ ],
136
+ 'validation': [
137
+ ]
138
+ },
139
+ root_map={
140
+ 'validations': {
141
+ },
142
+ 'allowed_values': {
143
+ },
144
+ 'openapi_types': {
145
+ 'data_source_id':
146
+ (str,),
147
+ 'body':
148
+ ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
149
+ },
150
+ 'attribute_map': {
151
+ 'data_source_id': 'data_source_id',
152
+ },
153
+ 'location_map': {
154
+ 'data_source_id': 'path',
155
+ 'body': 'body',
156
+ },
157
+ 'collection_format_map': {
158
+ }
159
+ },
160
+ headers_map={
161
+ 'accept': [
162
+ 'application/json',
163
+ 'text/plain'
164
+ ],
165
+ 'content_type': [
166
+ 'application/json'
167
+ ]
168
+ },
169
+ api_client=api_client
170
+ )
171
+ self.document_check_endpoint = _Endpoint(
172
+ settings={
173
+ 'response_type': (bool,),
174
+ 'auth': [
175
+ 'APIKeyHeader',
176
+ 'OAuth2AuthorizationCodeBearer'
177
+ ],
178
+ 'endpoint_path': '/api/documents-existence/{address}',
179
+ 'operation_id': 'document_check',
180
+ 'http_method': 'GET',
181
+ 'servers': None,
182
+ },
183
+ params_map={
184
+ 'all': [
185
+ 'address',
186
+ ],
187
+ 'required': [
188
+ 'address',
189
+ ],
190
+ 'nullable': [
191
+ ],
192
+ 'enum': [
193
+ ],
194
+ 'validation': [
195
+ ]
196
+ },
197
+ root_map={
198
+ 'validations': {
199
+ },
200
+ 'allowed_values': {
201
+ },
202
+ 'openapi_types': {
203
+ 'address':
204
+ (str,),
205
+ },
206
+ 'attribute_map': {
207
+ 'address': 'address',
208
+ },
209
+ 'location_map': {
210
+ 'address': 'path',
211
+ },
212
+ 'collection_format_map': {
213
+ }
214
+ },
215
+ headers_map={
216
+ 'accept': [
217
+ 'application/json',
218
+ 'text/plain'
219
+ ],
220
+ 'content_type': [],
221
+ },
222
+ api_client=api_client
223
+ )
224
+ self.document_get_endpoint = _Endpoint(
225
+ settings={
226
+ 'response_type': ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
227
+ 'auth': [
228
+ 'APIKeyHeader',
229
+ 'OAuth2AuthorizationCodeBearer'
230
+ ],
231
+ 'endpoint_path': '/api/documents/{address}',
232
+ 'operation_id': 'document_get',
233
+ 'http_method': 'GET',
234
+ 'servers': None,
235
+ },
236
+ params_map={
237
+ 'all': [
238
+ 'address',
239
+ 'depth',
240
+ ],
241
+ 'required': [
242
+ 'address',
243
+ ],
244
+ 'nullable': [
245
+ ],
246
+ 'enum': [
247
+ ],
248
+ 'validation': [
249
+ ]
250
+ },
251
+ root_map={
252
+ 'validations': {
253
+ },
254
+ 'allowed_values': {
255
+ },
256
+ 'openapi_types': {
257
+ 'address':
258
+ (str,),
259
+ 'depth':
260
+ (int,),
261
+ },
262
+ 'attribute_map': {
263
+ 'address': 'address',
264
+ 'depth': 'depth',
265
+ },
266
+ 'location_map': {
267
+ 'address': 'path',
268
+ 'depth': 'query',
269
+ },
270
+ 'collection_format_map': {
271
+ }
272
+ },
273
+ headers_map={
274
+ 'accept': [
275
+ 'application/json',
276
+ 'text/plain'
277
+ ],
278
+ 'content_type': [],
279
+ },
280
+ api_client=api_client
281
+ )
282
+ self.document_remove_endpoint = _Endpoint(
283
+ settings={
284
+ 'response_type': (bool, date, datetime, dict, float, int, list, str, none_type,),
285
+ 'auth': [
286
+ 'APIKeyHeader',
287
+ 'OAuth2AuthorizationCodeBearer'
288
+ ],
289
+ 'endpoint_path': '/api/documents/{address}',
290
+ 'operation_id': 'document_remove',
291
+ 'http_method': 'DELETE',
292
+ 'servers': None,
293
+ },
294
+ params_map={
295
+ 'all': [
296
+ 'address',
297
+ ],
298
+ 'required': [
299
+ 'address',
300
+ ],
301
+ 'nullable': [
302
+ ],
303
+ 'enum': [
304
+ ],
305
+ 'validation': [
306
+ ]
307
+ },
308
+ root_map={
309
+ 'validations': {
310
+ },
311
+ 'allowed_values': {
312
+ },
313
+ 'openapi_types': {
314
+ 'address':
315
+ (str,),
316
+ },
317
+ 'attribute_map': {
318
+ 'address': 'address',
319
+ },
320
+ 'location_map': {
321
+ 'address': 'path',
322
+ },
323
+ 'collection_format_map': {
324
+ }
325
+ },
326
+ headers_map={
327
+ 'accept': [
328
+ 'application/json',
329
+ 'text/plain'
330
+ ],
331
+ 'content_type': [],
332
+ },
333
+ api_client=api_client
334
+ )
335
+ self.document_update_endpoint = _Endpoint(
336
+ settings={
337
+ 'response_type': (bool, date, datetime, dict, float, int, list, str, none_type,),
338
+ 'auth': [
339
+ 'APIKeyHeader',
340
+ 'OAuth2AuthorizationCodeBearer'
341
+ ],
342
+ 'endpoint_path': '/api/documents/{id_address}',
343
+ 'operation_id': 'document_update',
344
+ 'http_method': 'PUT',
345
+ 'servers': None,
346
+ },
347
+ params_map={
348
+ 'all': [
349
+ 'id_address',
350
+ 'data',
351
+ 'update_uncontained',
352
+ 'files',
353
+ ],
354
+ 'required': [
355
+ 'id_address',
356
+ 'data',
357
+ ],
358
+ 'nullable': [
359
+ ],
360
+ 'enum': [
361
+ ],
362
+ 'validation': [
363
+ ]
364
+ },
365
+ root_map={
366
+ 'validations': {
367
+ },
368
+ 'allowed_values': {
369
+ },
370
+ 'openapi_types': {
371
+ 'id_address':
372
+ (str,),
373
+ 'data':
374
+ (str,),
375
+ 'update_uncontained':
376
+ (bool,),
377
+ 'files':
378
+ ([file_type],),
379
+ },
380
+ 'attribute_map': {
381
+ 'id_address': 'id_address',
382
+ 'data': 'data',
383
+ 'update_uncontained': 'update_uncontained',
384
+ 'files': 'files',
385
+ },
386
+ 'location_map': {
387
+ 'id_address': 'path',
388
+ 'data': 'form',
389
+ 'update_uncontained': 'query',
390
+ 'files': 'form',
391
+ },
392
+ 'collection_format_map': {
393
+ 'files': 'csv',
394
+ }
395
+ },
396
+ headers_map={
397
+ 'accept': [
398
+ 'application/json',
399
+ 'text/plain'
400
+ ],
401
+ 'content_type': [
402
+ 'multipart/form-data'
403
+ ]
404
+ },
405
+ api_client=api_client
406
+ )
407
+
408
+ def document_add(
409
+ self,
410
+ address,
411
+ document,
412
+ **kwargs
413
+ ):
414
+ """Add Document # noqa: E501
415
+
416
+ Add a document to a package or a data source using an address. This endpoint can be used for: - Adding a new document to a package / data source. - Adding an object to an entity (for example filling in an optional, complex attribute) - Adding elements to a list attribute in an entity. Args: - address: path address to where the document should be stored. - Example: Reference to data source: PROTOCOL://DATA SOURCE - Example: Reference to package by id: PROTOCOL://DATA SOURCE/$ID - Example: Reference to package by path: PROTOCOL://DATA SOURCE/ROOT PACKAGE/SUB PACKAGE - The PROTOCOL is optional, and the default is dmss. - document (dict): The document that is to be stored. - files: Optional list of files to be stored as part of this document. - update_uncontained (bool): Optional flag specifying whether to also update uncontained attributes in the document. - user (User): The authenticated user accessing the endpoint, automatically generated from provided bearer token or Access-Key. Returns: - dict: A dictionary with one element, \"uid\", which is the ID of the created document. # noqa: E501
417
+ This method makes a synchronous HTTP request by default. To make an
418
+ asynchronous HTTP request, please pass async_req=True
419
+
420
+ >>> thread = api.document_add(address, document, async_req=True)
421
+ >>> result = thread.get()
422
+
423
+ Args:
424
+ address (str):
425
+ document (str):
426
+
427
+ Keyword Args:
428
+ update_uncontained (bool): [optional] if omitted the server will use the default value of False
429
+ files ([file_type]): [optional]
430
+ _return_http_data_only (bool): response data without head status
431
+ code and headers. Default is True.
432
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
433
+ will be returned without reading/decoding response data.
434
+ Default is True.
435
+ _request_timeout (int/float/tuple): timeout setting for this request. If
436
+ one number provided, it will be total request timeout. It can also
437
+ be a pair (tuple) of (connection, read) timeouts.
438
+ Default is None.
439
+ _check_input_type (bool): specifies if type checking
440
+ should be done one the data sent to the server.
441
+ Default is True.
442
+ _check_return_type (bool): specifies if type checking
443
+ should be done one the data received from the server.
444
+ Default is True.
445
+ _spec_property_naming (bool): True if the variable names in the input data
446
+ are serialized names, as specified in the OpenAPI document.
447
+ False if the variable names in the input data
448
+ are pythonic names, e.g. snake case (default)
449
+ _content_type (str/None): force body content-type.
450
+ Default is None and content-type will be predicted by allowed
451
+ content-types and body.
452
+ _host_index (int/None): specifies the index of the server
453
+ that we want to use.
454
+ Default is read from the configuration.
455
+ _request_auths (list): set to override the auth_settings for an a single
456
+ request; this effectively ignores the authentication
457
+ in the spec for a single request.
458
+ Default is None
459
+ async_req (bool): execute request asynchronously
460
+
461
+ Returns:
462
+ {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
463
+ If the method is called asynchronously, returns the request
464
+ thread.
465
+ """
466
+ kwargs['async_req'] = kwargs.get(
467
+ 'async_req', False
468
+ )
469
+ kwargs['_return_http_data_only'] = kwargs.get(
470
+ '_return_http_data_only', True
471
+ )
472
+ kwargs['_preload_content'] = kwargs.get(
473
+ '_preload_content', True
474
+ )
475
+ kwargs['_request_timeout'] = kwargs.get(
476
+ '_request_timeout', None
477
+ )
478
+ kwargs['_check_input_type'] = kwargs.get(
479
+ '_check_input_type', True
480
+ )
481
+ kwargs['_check_return_type'] = kwargs.get(
482
+ '_check_return_type', True
483
+ )
484
+ kwargs['_spec_property_naming'] = kwargs.get(
485
+ '_spec_property_naming', False
486
+ )
487
+ kwargs['_content_type'] = kwargs.get(
488
+ '_content_type')
489
+ kwargs['_host_index'] = kwargs.get('_host_index')
490
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
491
+ kwargs['address'] = \
492
+ address
493
+ kwargs['document'] = \
494
+ document
495
+ return self.document_add_endpoint.call_with_http_info(**kwargs)
496
+
497
+ def document_add_simple(
498
+ self,
499
+ data_source_id,
500
+ body,
501
+ **kwargs
502
+ ):
503
+ """Add Raw # noqa: E501
504
+
505
+ Adding a document 'as-is' to the data source, mainly used for bootstrapping and imports. This endpoint adds a document to the data source, without any validation or splitting up of entities. A blueprint for the entity need not exist. Posted document must be a valid Entity, with a \"type\" defined. Args: - data_source_id (str): The ID of the data source where the document should be added. - document (dict): The document to add to the data source. - user (User): The authenticated user accessing the endpoint, automatically generated from provided bearer token or Access-Key. Returns: - str: ID of the document that was uploaded. # noqa: E501
506
+ This method makes a synchronous HTTP request by default. To make an
507
+ asynchronous HTTP request, please pass async_req=True
508
+
509
+ >>> thread = api.document_add_simple(data_source_id, body, async_req=True)
510
+ >>> result = thread.get()
511
+
512
+ Args:
513
+ data_source_id (str):
514
+ body ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}):
515
+
516
+ Keyword Args:
517
+ _return_http_data_only (bool): response data without head status
518
+ code and headers. Default is True.
519
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
520
+ will be returned without reading/decoding response data.
521
+ Default is True.
522
+ _request_timeout (int/float/tuple): timeout setting for this request. If
523
+ one number provided, it will be total request timeout. It can also
524
+ be a pair (tuple) of (connection, read) timeouts.
525
+ Default is None.
526
+ _check_input_type (bool): specifies if type checking
527
+ should be done one the data sent to the server.
528
+ Default is True.
529
+ _check_return_type (bool): specifies if type checking
530
+ should be done one the data received from the server.
531
+ Default is True.
532
+ _spec_property_naming (bool): True if the variable names in the input data
533
+ are serialized names, as specified in the OpenAPI document.
534
+ False if the variable names in the input data
535
+ are pythonic names, e.g. snake case (default)
536
+ _content_type (str/None): force body content-type.
537
+ Default is None and content-type will be predicted by allowed
538
+ content-types and body.
539
+ _host_index (int/None): specifies the index of the server
540
+ that we want to use.
541
+ Default is read from the configuration.
542
+ _request_auths (list): set to override the auth_settings for an a single
543
+ request; this effectively ignores the authentication
544
+ in the spec for a single request.
545
+ Default is None
546
+ async_req (bool): execute request asynchronously
547
+
548
+ Returns:
549
+ str
550
+ If the method is called asynchronously, returns the request
551
+ thread.
552
+ """
553
+ kwargs['async_req'] = kwargs.get(
554
+ 'async_req', False
555
+ )
556
+ kwargs['_return_http_data_only'] = kwargs.get(
557
+ '_return_http_data_only', True
558
+ )
559
+ kwargs['_preload_content'] = kwargs.get(
560
+ '_preload_content', True
561
+ )
562
+ kwargs['_request_timeout'] = kwargs.get(
563
+ '_request_timeout', None
564
+ )
565
+ kwargs['_check_input_type'] = kwargs.get(
566
+ '_check_input_type', True
567
+ )
568
+ kwargs['_check_return_type'] = kwargs.get(
569
+ '_check_return_type', True
570
+ )
571
+ kwargs['_spec_property_naming'] = kwargs.get(
572
+ '_spec_property_naming', False
573
+ )
574
+ kwargs['_content_type'] = kwargs.get(
575
+ '_content_type')
576
+ kwargs['_host_index'] = kwargs.get('_host_index')
577
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
578
+ kwargs['data_source_id'] = \
579
+ data_source_id
580
+ kwargs['body'] = \
581
+ body
582
+ return self.document_add_simple_endpoint.call_with_http_info(**kwargs)
583
+
584
+ def document_check(
585
+ self,
586
+ address,
587
+ **kwargs
588
+ ):
589
+ """Check Existence # noqa: E501
590
+
591
+ Checks if an entity exists, given an address. Args: - Address Returns: - bool: 'true' if the address points to an existing document, else 'false'. # noqa: E501
592
+ This method makes a synchronous HTTP request by default. To make an
593
+ asynchronous HTTP request, please pass async_req=True
594
+
595
+ >>> thread = api.document_check(address, async_req=True)
596
+ >>> result = thread.get()
597
+
598
+ Args:
599
+ address (str):
600
+
601
+ Keyword Args:
602
+ _return_http_data_only (bool): response data without head status
603
+ code and headers. Default is True.
604
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
605
+ will be returned without reading/decoding response data.
606
+ Default is True.
607
+ _request_timeout (int/float/tuple): timeout setting for this request. If
608
+ one number provided, it will be total request timeout. It can also
609
+ be a pair (tuple) of (connection, read) timeouts.
610
+ Default is None.
611
+ _check_input_type (bool): specifies if type checking
612
+ should be done one the data sent to the server.
613
+ Default is True.
614
+ _check_return_type (bool): specifies if type checking
615
+ should be done one the data received from the server.
616
+ Default is True.
617
+ _spec_property_naming (bool): True if the variable names in the input data
618
+ are serialized names, as specified in the OpenAPI document.
619
+ False if the variable names in the input data
620
+ are pythonic names, e.g. snake case (default)
621
+ _content_type (str/None): force body content-type.
622
+ Default is None and content-type will be predicted by allowed
623
+ content-types and body.
624
+ _host_index (int/None): specifies the index of the server
625
+ that we want to use.
626
+ Default is read from the configuration.
627
+ _request_auths (list): set to override the auth_settings for an a single
628
+ request; this effectively ignores the authentication
629
+ in the spec for a single request.
630
+ Default is None
631
+ async_req (bool): execute request asynchronously
632
+
633
+ Returns:
634
+ bool
635
+ If the method is called asynchronously, returns the request
636
+ thread.
637
+ """
638
+ kwargs['async_req'] = kwargs.get(
639
+ 'async_req', False
640
+ )
641
+ kwargs['_return_http_data_only'] = kwargs.get(
642
+ '_return_http_data_only', True
643
+ )
644
+ kwargs['_preload_content'] = kwargs.get(
645
+ '_preload_content', True
646
+ )
647
+ kwargs['_request_timeout'] = kwargs.get(
648
+ '_request_timeout', None
649
+ )
650
+ kwargs['_check_input_type'] = kwargs.get(
651
+ '_check_input_type', True
652
+ )
653
+ kwargs['_check_return_type'] = kwargs.get(
654
+ '_check_return_type', True
655
+ )
656
+ kwargs['_spec_property_naming'] = kwargs.get(
657
+ '_spec_property_naming', False
658
+ )
659
+ kwargs['_content_type'] = kwargs.get(
660
+ '_content_type')
661
+ kwargs['_host_index'] = kwargs.get('_host_index')
662
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
663
+ kwargs['address'] = \
664
+ address
665
+ return self.document_check_endpoint.call_with_http_info(**kwargs)
666
+
667
+ def document_get(
668
+ self,
669
+ address,
670
+ **kwargs
671
+ ):
672
+ """Get # noqa: E501
673
+
674
+ Get a Document as JSON String This endpoint can be used for getting entities, blueprints or other json documents from the database. Args: - address: path address to where the document should be stored. - Example: Reference to data source: PROTOCOL://DATA SOURCE - Example: Reference to package by id: PROTOCOL://DATA SOURCE/$ID - Example: Reference to package by path: PROTOCOL://DATA SOURCE/ROOT PACKAGE/SUB PACKAGE - The PROTOCOL is optional, and the default is dmss. - document (dict): The document that is to be stored. - depth (int): The maximum depth for resolving nested documents. - user (User): The authenticated user accessing the endpoint, automatically generated from provided bearer token or Access-Key. Returns: - dict: The document requested. # noqa: E501
675
+ This method makes a synchronous HTTP request by default. To make an
676
+ asynchronous HTTP request, please pass async_req=True
677
+
678
+ >>> thread = api.document_get(address, async_req=True)
679
+ >>> result = thread.get()
680
+
681
+ Args:
682
+ address (str):
683
+
684
+ Keyword Args:
685
+ depth (int): [optional] if omitted the server will use the default value of 1
686
+ _return_http_data_only (bool): response data without head status
687
+ code and headers. Default is True.
688
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
689
+ will be returned without reading/decoding response data.
690
+ Default is True.
691
+ _request_timeout (int/float/tuple): timeout setting for this request. If
692
+ one number provided, it will be total request timeout. It can also
693
+ be a pair (tuple) of (connection, read) timeouts.
694
+ Default is None.
695
+ _check_input_type (bool): specifies if type checking
696
+ should be done one the data sent to the server.
697
+ Default is True.
698
+ _check_return_type (bool): specifies if type checking
699
+ should be done one the data received from the server.
700
+ Default is True.
701
+ _spec_property_naming (bool): True if the variable names in the input data
702
+ are serialized names, as specified in the OpenAPI document.
703
+ False if the variable names in the input data
704
+ are pythonic names, e.g. snake case (default)
705
+ _content_type (str/None): force body content-type.
706
+ Default is None and content-type will be predicted by allowed
707
+ content-types and body.
708
+ _host_index (int/None): specifies the index of the server
709
+ that we want to use.
710
+ Default is read from the configuration.
711
+ _request_auths (list): set to override the auth_settings for an a single
712
+ request; this effectively ignores the authentication
713
+ in the spec for a single request.
714
+ Default is None
715
+ async_req (bool): execute request asynchronously
716
+
717
+ Returns:
718
+ {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
719
+ If the method is called asynchronously, returns the request
720
+ thread.
721
+ """
722
+ kwargs['async_req'] = kwargs.get(
723
+ 'async_req', False
724
+ )
725
+ kwargs['_return_http_data_only'] = kwargs.get(
726
+ '_return_http_data_only', True
727
+ )
728
+ kwargs['_preload_content'] = kwargs.get(
729
+ '_preload_content', True
730
+ )
731
+ kwargs['_request_timeout'] = kwargs.get(
732
+ '_request_timeout', None
733
+ )
734
+ kwargs['_check_input_type'] = kwargs.get(
735
+ '_check_input_type', True
736
+ )
737
+ kwargs['_check_return_type'] = kwargs.get(
738
+ '_check_return_type', True
739
+ )
740
+ kwargs['_spec_property_naming'] = kwargs.get(
741
+ '_spec_property_naming', False
742
+ )
743
+ kwargs['_content_type'] = kwargs.get(
744
+ '_content_type')
745
+ kwargs['_host_index'] = kwargs.get('_host_index')
746
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
747
+ kwargs['address'] = \
748
+ address
749
+ return self.document_get_endpoint.call_with_http_info(**kwargs)
750
+
751
+ def document_remove(
752
+ self,
753
+ address,
754
+ **kwargs
755
+ ):
756
+ """Remove # noqa: E501
757
+
758
+ Remove a document from the database. Args: - address (str): path address to the document that is to be deleted. - user (User): The authenticated user accessing the endpoint, automatically generated from provided bearer token or Access-Key. Returns: - str: \"OK\" (200) # noqa: E501
759
+ This method makes a synchronous HTTP request by default. To make an
760
+ asynchronous HTTP request, please pass async_req=True
761
+
762
+ >>> thread = api.document_remove(address, async_req=True)
763
+ >>> result = thread.get()
764
+
765
+ Args:
766
+ address (str):
767
+
768
+ Keyword Args:
769
+ _return_http_data_only (bool): response data without head status
770
+ code and headers. Default is True.
771
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
772
+ will be returned without reading/decoding response data.
773
+ Default is True.
774
+ _request_timeout (int/float/tuple): timeout setting for this request. If
775
+ one number provided, it will be total request timeout. It can also
776
+ be a pair (tuple) of (connection, read) timeouts.
777
+ Default is None.
778
+ _check_input_type (bool): specifies if type checking
779
+ should be done one the data sent to the server.
780
+ Default is True.
781
+ _check_return_type (bool): specifies if type checking
782
+ should be done one the data received from the server.
783
+ Default is True.
784
+ _spec_property_naming (bool): True if the variable names in the input data
785
+ are serialized names, as specified in the OpenAPI document.
786
+ False if the variable names in the input data
787
+ are pythonic names, e.g. snake case (default)
788
+ _content_type (str/None): force body content-type.
789
+ Default is None and content-type will be predicted by allowed
790
+ content-types and body.
791
+ _host_index (int/None): specifies the index of the server
792
+ that we want to use.
793
+ Default is read from the configuration.
794
+ _request_auths (list): set to override the auth_settings for an a single
795
+ request; this effectively ignores the authentication
796
+ in the spec for a single request.
797
+ Default is None
798
+ async_req (bool): execute request asynchronously
799
+
800
+ Returns:
801
+ bool, date, datetime, dict, float, int, list, str, none_type
802
+ If the method is called asynchronously, returns the request
803
+ thread.
804
+ """
805
+ kwargs['async_req'] = kwargs.get(
806
+ 'async_req', False
807
+ )
808
+ kwargs['_return_http_data_only'] = kwargs.get(
809
+ '_return_http_data_only', True
810
+ )
811
+ kwargs['_preload_content'] = kwargs.get(
812
+ '_preload_content', True
813
+ )
814
+ kwargs['_request_timeout'] = kwargs.get(
815
+ '_request_timeout', None
816
+ )
817
+ kwargs['_check_input_type'] = kwargs.get(
818
+ '_check_input_type', True
819
+ )
820
+ kwargs['_check_return_type'] = kwargs.get(
821
+ '_check_return_type', True
822
+ )
823
+ kwargs['_spec_property_naming'] = kwargs.get(
824
+ '_spec_property_naming', False
825
+ )
826
+ kwargs['_content_type'] = kwargs.get(
827
+ '_content_type')
828
+ kwargs['_host_index'] = kwargs.get('_host_index')
829
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
830
+ kwargs['address'] = \
831
+ address
832
+ return self.document_remove_endpoint.call_with_http_info(**kwargs)
833
+
834
+ def document_update(
835
+ self,
836
+ id_address,
837
+ data,
838
+ **kwargs
839
+ ):
840
+ """Update # noqa: E501
841
+
842
+ Update an Existing Document in the Database. This endpoint can be used for updating an existing document Args: - address: Path address to the document that should be updated. - Example: Reference to data source: PROTOCOL://DATA SOURCE - Example: Reference to package by id: PROTOCOL://DATA SOURCE/$ID - Example: Reference to package by path: PROTOCOL://DATA SOURCE/ROOT PACKAGE/SUB PACKAGE - The PROTOCOL is optional, and the default is dmss. - document (dict): The document to replace the previous version. - files: Optional list of files to be stored as part of this document. - update_uncontained (bool): Optional flag specifying whether to also update uncontained attributes in the document. - user (User): The authenticated user accessing the endpoint, automatically generated from provided bearer token or Access-Key. Returns: - dict: The updated document. # noqa: E501
843
+ This method makes a synchronous HTTP request by default. To make an
844
+ asynchronous HTTP request, please pass async_req=True
845
+
846
+ >>> thread = api.document_update(id_address, data, async_req=True)
847
+ >>> result = thread.get()
848
+
849
+ Args:
850
+ id_address (str):
851
+ data (str):
852
+
853
+ Keyword Args:
854
+ update_uncontained (bool): [optional] if omitted the server will use the default value of False
855
+ files ([file_type]): [optional]
856
+ _return_http_data_only (bool): response data without head status
857
+ code and headers. Default is True.
858
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
859
+ will be returned without reading/decoding response data.
860
+ Default is True.
861
+ _request_timeout (int/float/tuple): timeout setting for this request. If
862
+ one number provided, it will be total request timeout. It can also
863
+ be a pair (tuple) of (connection, read) timeouts.
864
+ Default is None.
865
+ _check_input_type (bool): specifies if type checking
866
+ should be done one the data sent to the server.
867
+ Default is True.
868
+ _check_return_type (bool): specifies if type checking
869
+ should be done one the data received from the server.
870
+ Default is True.
871
+ _spec_property_naming (bool): True if the variable names in the input data
872
+ are serialized names, as specified in the OpenAPI document.
873
+ False if the variable names in the input data
874
+ are pythonic names, e.g. snake case (default)
875
+ _content_type (str/None): force body content-type.
876
+ Default is None and content-type will be predicted by allowed
877
+ content-types and body.
878
+ _host_index (int/None): specifies the index of the server
879
+ that we want to use.
880
+ Default is read from the configuration.
881
+ _request_auths (list): set to override the auth_settings for an a single
882
+ request; this effectively ignores the authentication
883
+ in the spec for a single request.
884
+ Default is None
885
+ async_req (bool): execute request asynchronously
886
+
887
+ Returns:
888
+ bool, date, datetime, dict, float, int, list, str, none_type
889
+ If the method is called asynchronously, returns the request
890
+ thread.
891
+ """
892
+ kwargs['async_req'] = kwargs.get(
893
+ 'async_req', False
894
+ )
895
+ kwargs['_return_http_data_only'] = kwargs.get(
896
+ '_return_http_data_only', True
897
+ )
898
+ kwargs['_preload_content'] = kwargs.get(
899
+ '_preload_content', True
900
+ )
901
+ kwargs['_request_timeout'] = kwargs.get(
902
+ '_request_timeout', None
903
+ )
904
+ kwargs['_check_input_type'] = kwargs.get(
905
+ '_check_input_type', True
906
+ )
907
+ kwargs['_check_return_type'] = kwargs.get(
908
+ '_check_return_type', True
909
+ )
910
+ kwargs['_spec_property_naming'] = kwargs.get(
911
+ '_spec_property_naming', False
912
+ )
913
+ kwargs['_content_type'] = kwargs.get(
914
+ '_content_type')
915
+ kwargs['_host_index'] = kwargs.get('_host_index')
916
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
917
+ kwargs['id_address'] = \
918
+ id_address
919
+ kwargs['data'] = \
920
+ data
921
+ return self.document_update_endpoint.call_with_http_info(**kwargs)
922
+