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,183 @@
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 SearchApi(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.search_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/search',
47
+ 'operation_id': 'search',
48
+ 'http_method': 'POST',
49
+ 'servers': None,
50
+ },
51
+ params_map={
52
+ 'all': [
53
+ 'data_sources',
54
+ 'sort_by_attribute',
55
+ 'body',
56
+ ],
57
+ 'required': [],
58
+ 'nullable': [
59
+ ],
60
+ 'enum': [
61
+ ],
62
+ 'validation': [
63
+ ]
64
+ },
65
+ root_map={
66
+ 'validations': {
67
+ },
68
+ 'allowed_values': {
69
+ },
70
+ 'openapi_types': {
71
+ 'data_sources':
72
+ ([str],),
73
+ 'sort_by_attribute':
74
+ (str,),
75
+ 'body':
76
+ ({str: (bool, date, datetime, dict, float, int, list, str, none_type)},),
77
+ },
78
+ 'attribute_map': {
79
+ 'data_sources': 'data_sources',
80
+ 'sort_by_attribute': 'sort_by_attribute',
81
+ },
82
+ 'location_map': {
83
+ 'data_sources': 'query',
84
+ 'sort_by_attribute': 'query',
85
+ 'body': 'body',
86
+ },
87
+ 'collection_format_map': {
88
+ 'data_sources': 'multi',
89
+ }
90
+ },
91
+ headers_map={
92
+ 'accept': [
93
+ 'application/json',
94
+ 'text/plain'
95
+ ],
96
+ 'content_type': [
97
+ 'application/json'
98
+ ]
99
+ },
100
+ api_client=api_client
101
+ )
102
+
103
+ def search(
104
+ self,
105
+ **kwargs
106
+ ):
107
+ """Search # noqa: E501
108
+
109
+ Search for Entities of a Specific Blueprint Type in the Provided Data Sources. This endpoint searches the provided data sources for entities that match the search data object provided. It will return all the entities in database of the type specified, with attributes that match the requirements set in the search query. Args: - data (dict): A dictionary containing a \"type\"-attribute which will be used to search . Other attributes can be used to filter the search. - Example: { \"type\": \"dmss://blueprints/root_package/ValuesBlueprint\", \"attribute_greater_than_example\": \">100\", \"attribute_less_than_example\": \"<11\". \"my_string\": \"de\" # will return entities with attributes of type \"my_string\" that starts with \"de\" } - data_sources (List[str]): Optional list of data source id's of which to search. If left empty it will search all available databases. - sort_by_attribute (str): Optional attribute of which to sort the results. Default is \"name\". - user (User): The authenticated user accessing the endpoint, automatically generated from provided bearer token or Access-Key. Returns: - dict: The sorted search results. # noqa: E501
110
+ This method makes a synchronous HTTP request by default. To make an
111
+ asynchronous HTTP request, please pass async_req=True
112
+
113
+ >>> thread = api.search(async_req=True)
114
+ >>> result = thread.get()
115
+
116
+
117
+ Keyword Args:
118
+ data_sources ([str]): [optional] if omitted the server will use the default value of []
119
+ sort_by_attribute (str): [optional] if omitted the server will use the default value of "name"
120
+ body ({str: (bool, date, datetime, dict, float, int, list, str, none_type)}): [optional]
121
+ _return_http_data_only (bool): response data without head status
122
+ code and headers. Default is True.
123
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
124
+ will be returned without reading/decoding response data.
125
+ Default is True.
126
+ _request_timeout (int/float/tuple): timeout setting for this request. If
127
+ one number provided, it will be total request timeout. It can also
128
+ be a pair (tuple) of (connection, read) timeouts.
129
+ Default is None.
130
+ _check_input_type (bool): specifies if type checking
131
+ should be done one the data sent to the server.
132
+ Default is True.
133
+ _check_return_type (bool): specifies if type checking
134
+ should be done one the data received from the server.
135
+ Default is True.
136
+ _spec_property_naming (bool): True if the variable names in the input data
137
+ are serialized names, as specified in the OpenAPI document.
138
+ False if the variable names in the input data
139
+ are pythonic names, e.g. snake case (default)
140
+ _content_type (str/None): force body content-type.
141
+ Default is None and content-type will be predicted by allowed
142
+ content-types and body.
143
+ _host_index (int/None): specifies the index of the server
144
+ that we want to use.
145
+ Default is read from the configuration.
146
+ _request_auths (list): set to override the auth_settings for an a single
147
+ request; this effectively ignores the authentication
148
+ in the spec for a single request.
149
+ Default is None
150
+ async_req (bool): execute request asynchronously
151
+
152
+ Returns:
153
+ {str: (bool, date, datetime, dict, float, int, list, str, none_type)}
154
+ If the method is called asynchronously, returns the request
155
+ thread.
156
+ """
157
+ kwargs['async_req'] = kwargs.get(
158
+ 'async_req', False
159
+ )
160
+ kwargs['_return_http_data_only'] = kwargs.get(
161
+ '_return_http_data_only', True
162
+ )
163
+ kwargs['_preload_content'] = kwargs.get(
164
+ '_preload_content', True
165
+ )
166
+ kwargs['_request_timeout'] = kwargs.get(
167
+ '_request_timeout', None
168
+ )
169
+ kwargs['_check_input_type'] = kwargs.get(
170
+ '_check_input_type', True
171
+ )
172
+ kwargs['_check_return_type'] = kwargs.get(
173
+ '_check_return_type', True
174
+ )
175
+ kwargs['_spec_property_naming'] = kwargs.get(
176
+ '_spec_property_naming', False
177
+ )
178
+ kwargs['_content_type'] = kwargs.get(
179
+ '_content_type')
180
+ kwargs['_host_index'] = kwargs.get('_host_index')
181
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
182
+ return self.search_endpoint.call_with_http_info(**kwargs)
183
+
@@ -0,0 +1,163 @@
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 WhoamiApi(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.whoami_endpoint = _Endpoint(
40
+ settings={
41
+ 'response_type': (bool, date, datetime, dict, float, int, list, str, none_type,),
42
+ 'auth': [
43
+ 'APIKeyHeader',
44
+ 'OAuth2AuthorizationCodeBearer'
45
+ ],
46
+ 'endpoint_path': '/api/whoami',
47
+ 'operation_id': 'whoami',
48
+ 'http_method': 'GET',
49
+ 'servers': None,
50
+ },
51
+ params_map={
52
+ 'all': [
53
+ ],
54
+ 'required': [],
55
+ 'nullable': [
56
+ ],
57
+ 'enum': [
58
+ ],
59
+ 'validation': [
60
+ ]
61
+ },
62
+ root_map={
63
+ 'validations': {
64
+ },
65
+ 'allowed_values': {
66
+ },
67
+ 'openapi_types': {
68
+ },
69
+ 'attribute_map': {
70
+ },
71
+ 'location_map': {
72
+ },
73
+ 'collection_format_map': {
74
+ }
75
+ },
76
+ headers_map={
77
+ 'accept': [
78
+ 'application/json',
79
+ 'text/plain'
80
+ ],
81
+ 'content_type': [],
82
+ },
83
+ api_client=api_client
84
+ )
85
+
86
+ def whoami(
87
+ self,
88
+ **kwargs
89
+ ):
90
+ """Get Information On Authenticated User # noqa: E501
91
+
92
+ Get information about the user who sent the request. If no user is authenticated, a default \"nologin\" user is returned. This endpoint always responds with a status code of 200 (OK). Args: - user (User): The authenticated user accessing the endpoint, automatically generated from provided bearer token or Access-Key. Returns: - dict: A dictionary containing information about the user who sent the request. # noqa: E501
93
+ This method makes a synchronous HTTP request by default. To make an
94
+ asynchronous HTTP request, please pass async_req=True
95
+
96
+ >>> thread = api.whoami(async_req=True)
97
+ >>> result = thread.get()
98
+
99
+
100
+ Keyword Args:
101
+ _return_http_data_only (bool): response data without head status
102
+ code and headers. Default is True.
103
+ _preload_content (bool): if False, the urllib3.HTTPResponse object
104
+ will be returned without reading/decoding response data.
105
+ Default is True.
106
+ _request_timeout (int/float/tuple): timeout setting for this request. If
107
+ one number provided, it will be total request timeout. It can also
108
+ be a pair (tuple) of (connection, read) timeouts.
109
+ Default is None.
110
+ _check_input_type (bool): specifies if type checking
111
+ should be done one the data sent to the server.
112
+ Default is True.
113
+ _check_return_type (bool): specifies if type checking
114
+ should be done one the data received from the server.
115
+ Default is True.
116
+ _spec_property_naming (bool): True if the variable names in the input data
117
+ are serialized names, as specified in the OpenAPI document.
118
+ False if the variable names in the input data
119
+ are pythonic names, e.g. snake case (default)
120
+ _content_type (str/None): force body content-type.
121
+ Default is None and content-type will be predicted by allowed
122
+ content-types and body.
123
+ _host_index (int/None): specifies the index of the server
124
+ that we want to use.
125
+ Default is read from the configuration.
126
+ _request_auths (list): set to override the auth_settings for an a single
127
+ request; this effectively ignores the authentication
128
+ in the spec for a single request.
129
+ Default is None
130
+ async_req (bool): execute request asynchronously
131
+
132
+ Returns:
133
+ bool, date, datetime, dict, float, int, list, str, none_type
134
+ If the method is called asynchronously, returns the request
135
+ thread.
136
+ """
137
+ kwargs['async_req'] = kwargs.get(
138
+ 'async_req', False
139
+ )
140
+ kwargs['_return_http_data_only'] = kwargs.get(
141
+ '_return_http_data_only', True
142
+ )
143
+ kwargs['_preload_content'] = kwargs.get(
144
+ '_preload_content', True
145
+ )
146
+ kwargs['_request_timeout'] = kwargs.get(
147
+ '_request_timeout', None
148
+ )
149
+ kwargs['_check_input_type'] = kwargs.get(
150
+ '_check_input_type', True
151
+ )
152
+ kwargs['_check_return_type'] = kwargs.get(
153
+ '_check_return_type', True
154
+ )
155
+ kwargs['_spec_property_naming'] = kwargs.get(
156
+ '_spec_property_naming', False
157
+ )
158
+ kwargs['_content_type'] = kwargs.get(
159
+ '_content_type')
160
+ kwargs['_host_index'] = kwargs.get('_host_index')
161
+ kwargs['_request_auths'] = kwargs.get('_request_auths', None)
162
+ return self.whoami_endpoint.call_with_http_info(**kwargs)
163
+