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,283 @@
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.exceptions import ApiAttributeError
15
+ from dm_cli.dmss_api.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ OpenApiModel,
21
+ cached_property,
22
+ change_keys_js_to_python,
23
+ convert_js_args_to_python_args,
24
+ date,
25
+ datetime,
26
+ file_type,
27
+ none_type,
28
+ validate_get_composed_info,
29
+ )
30
+
31
+
32
+ def lazy_import():
33
+ from dm_cli.dmss_api.model.recipe import Recipe
34
+ from dm_cli.dmss_api.model.storage_recipe import StorageRecipe
35
+ globals()['Recipe'] = Recipe
36
+ globals()['StorageRecipe'] = StorageRecipe
37
+
38
+
39
+ class Lookup(ModelNormal):
40
+ """NOTE: This class is auto generated by OpenAPI Generator.
41
+ Ref: https://openapi-generator.tech
42
+
43
+ Do not edit the class manually.
44
+
45
+ Attributes:
46
+ allowed_values (dict): The key is the tuple path to the attribute
47
+ and the for var_name this is (var_name,). The value is a dict
48
+ with a capitalized key describing the allowed value and an allowed
49
+ value. These dicts store the allowed enum values.
50
+ attribute_map (dict): The key is attribute name
51
+ and the value is json key in definition.
52
+ discriminator_value_class_map (dict): A dict to go from the discriminator
53
+ variable value to the discriminator class name.
54
+ validations (dict): The key is the tuple path to the attribute
55
+ and the for var_name this is (var_name,). The value is a dict
56
+ that stores validations for max_length, min_length, max_items,
57
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
58
+ inclusive_minimum, and regex.
59
+ additional_properties_type (tuple): A tuple of classes accepted
60
+ as additional properties values.
61
+ """
62
+
63
+ allowed_values = {
64
+ }
65
+
66
+ validations = {
67
+ }
68
+
69
+ @cached_property
70
+ def additional_properties_type():
71
+ """
72
+ This must be a method because a model may have properties that are
73
+ of type self, this must run after the class is loaded
74
+ """
75
+ lazy_import()
76
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
77
+
78
+ _nullable = False
79
+
80
+ @cached_property
81
+ def openapi_types():
82
+ """
83
+ This must be a method because a model may have properties that are
84
+ of type self, this must run after the class is loaded
85
+
86
+ Returns
87
+ openapi_types (dict): The key is attribute name
88
+ and the value is attribute type.
89
+ """
90
+ lazy_import()
91
+ return {
92
+ 'ui_recipes': ({str: ([Recipe],)},), # noqa: E501
93
+ 'storage_recipes': ({str: ([StorageRecipe],)},), # noqa: E501
94
+ 'initial_ui_recipes': ({str: (Recipe,)},), # noqa: E501
95
+ 'extends': ({str: ([str],)},), # noqa: E501
96
+ }
97
+
98
+ @cached_property
99
+ def discriminator():
100
+ return None
101
+
102
+
103
+ attribute_map = {
104
+ 'ui_recipes': 'uiRecipes', # noqa: E501
105
+ 'storage_recipes': 'storageRecipes', # noqa: E501
106
+ 'initial_ui_recipes': 'initialUiRecipes', # noqa: E501
107
+ 'extends': 'extends', # noqa: E501
108
+ }
109
+
110
+ read_only_vars = {
111
+ }
112
+
113
+ _composed_schemas = {}
114
+
115
+ @classmethod
116
+ @convert_js_args_to_python_args
117
+ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
118
+ """Lookup - a model defined in OpenAPI
119
+
120
+ Keyword Args:
121
+ _check_type (bool): if True, values for parameters in openapi_types
122
+ will be type checked and a TypeError will be
123
+ raised if the wrong type is input.
124
+ Defaults to True
125
+ _path_to_item (tuple/list): This is a list of keys or values to
126
+ drill down to the model in received_data
127
+ when deserializing a response
128
+ _spec_property_naming (bool): True if the variable names in the input data
129
+ are serialized names, as specified in the OpenAPI document.
130
+ False if the variable names in the input data
131
+ are pythonic names, e.g. snake case (default)
132
+ _configuration (Configuration): the instance to use when
133
+ deserializing a file_type parameter.
134
+ If passed, type conversion is attempted
135
+ If omitted no type conversion is done.
136
+ _visited_composed_classes (tuple): This stores a tuple of
137
+ classes that we have traveled through so that
138
+ if we see that class again we will not use its
139
+ discriminator again.
140
+ When traveling through a discriminator, the
141
+ composed schema that is
142
+ is traveled through is added to this set.
143
+ For example if Animal has a discriminator
144
+ petType and we pass in "Dog", and the class Dog
145
+ allOf includes Animal, we move through Animal
146
+ once using the discriminator, and pick Dog.
147
+ Then in Dog, we will make an instance of the
148
+ Animal class but this time we won't travel
149
+ through its discriminator because we passed in
150
+ _visited_composed_classes = (Animal,)
151
+ ui_recipes ({str: ([Recipe],)}): [optional] # noqa: E501
152
+ storage_recipes ({str: ([StorageRecipe],)}): [optional] # noqa: E501
153
+ initial_ui_recipes ({str: (Recipe,)}): [optional] # noqa: E501
154
+ extends ({str: ([str],)}): [optional] if omitted the server will use the default value of {} # noqa: E501
155
+ """
156
+
157
+ _check_type = kwargs.pop('_check_type', True)
158
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
159
+ _path_to_item = kwargs.pop('_path_to_item', ())
160
+ _configuration = kwargs.pop('_configuration', None)
161
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
162
+
163
+ self = super(OpenApiModel, cls).__new__(cls)
164
+
165
+ if args:
166
+ for arg in args:
167
+ if isinstance(arg, dict):
168
+ kwargs.update(arg)
169
+ else:
170
+ raise ApiTypeError(
171
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
172
+ args,
173
+ self.__class__.__name__,
174
+ ),
175
+ path_to_item=_path_to_item,
176
+ valid_classes=(self.__class__,),
177
+ )
178
+
179
+ self._data_store = {}
180
+ self._check_type = _check_type
181
+ self._spec_property_naming = _spec_property_naming
182
+ self._path_to_item = _path_to_item
183
+ self._configuration = _configuration
184
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
185
+
186
+ for var_name, var_value in kwargs.items():
187
+ if var_name not in self.attribute_map and \
188
+ self._configuration is not None and \
189
+ self._configuration.discard_unknown_keys and \
190
+ self.additional_properties_type is None:
191
+ # discard variable.
192
+ continue
193
+ setattr(self, var_name, var_value)
194
+ return self
195
+
196
+ required_properties = set([
197
+ '_data_store',
198
+ '_check_type',
199
+ '_spec_property_naming',
200
+ '_path_to_item',
201
+ '_configuration',
202
+ '_visited_composed_classes',
203
+ ])
204
+
205
+ @convert_js_args_to_python_args
206
+ def __init__(self, *args, **kwargs): # noqa: E501
207
+ """Lookup - a model defined in OpenAPI
208
+
209
+ Keyword Args:
210
+ _check_type (bool): if True, values for parameters in openapi_types
211
+ will be type checked and a TypeError will be
212
+ raised if the wrong type is input.
213
+ Defaults to True
214
+ _path_to_item (tuple/list): This is a list of keys or values to
215
+ drill down to the model in received_data
216
+ when deserializing a response
217
+ _spec_property_naming (bool): True if the variable names in the input data
218
+ are serialized names, as specified in the OpenAPI document.
219
+ False if the variable names in the input data
220
+ are pythonic names, e.g. snake case (default)
221
+ _configuration (Configuration): the instance to use when
222
+ deserializing a file_type parameter.
223
+ If passed, type conversion is attempted
224
+ If omitted no type conversion is done.
225
+ _visited_composed_classes (tuple): This stores a tuple of
226
+ classes that we have traveled through so that
227
+ if we see that class again we will not use its
228
+ discriminator again.
229
+ When traveling through a discriminator, the
230
+ composed schema that is
231
+ is traveled through is added to this set.
232
+ For example if Animal has a discriminator
233
+ petType and we pass in "Dog", and the class Dog
234
+ allOf includes Animal, we move through Animal
235
+ once using the discriminator, and pick Dog.
236
+ Then in Dog, we will make an instance of the
237
+ Animal class but this time we won't travel
238
+ through its discriminator because we passed in
239
+ _visited_composed_classes = (Animal,)
240
+ ui_recipes ({str: ([Recipe],)}): [optional] # noqa: E501
241
+ storage_recipes ({str: ([StorageRecipe],)}): [optional] # noqa: E501
242
+ initial_ui_recipes ({str: (Recipe,)}): [optional] # noqa: E501
243
+ extends ({str: ([str],)}): [optional] if omitted the server will use the default value of {} # noqa: E501
244
+ """
245
+
246
+ _check_type = kwargs.pop('_check_type', True)
247
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
248
+ _path_to_item = kwargs.pop('_path_to_item', ())
249
+ _configuration = kwargs.pop('_configuration', None)
250
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
251
+
252
+ if args:
253
+ for arg in args:
254
+ if isinstance(arg, dict):
255
+ kwargs.update(arg)
256
+ else:
257
+ raise ApiTypeError(
258
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
259
+ args,
260
+ self.__class__.__name__,
261
+ ),
262
+ path_to_item=_path_to_item,
263
+ valid_classes=(self.__class__,),
264
+ )
265
+
266
+ self._data_store = {}
267
+ self._check_type = _check_type
268
+ self._spec_property_naming = _spec_property_naming
269
+ self._path_to_item = _path_to_item
270
+ self._configuration = _configuration
271
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
272
+
273
+ for var_name, var_value in kwargs.items():
274
+ if var_name not in self.attribute_map and \
275
+ self._configuration is not None and \
276
+ self._configuration.discard_unknown_keys and \
277
+ self.additional_properties_type is None:
278
+ # discard variable.
279
+ continue
280
+ setattr(self, var_name, var_value)
281
+ if var_name in self.read_only_vars:
282
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
283
+ f"class with read only attributes.")
@@ -0,0 +1,299 @@
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.exceptions import ApiAttributeError
15
+ from dm_cli.dmss_api.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ OpenApiModel,
21
+ cached_property,
22
+ change_keys_js_to_python,
23
+ convert_js_args_to_python_args,
24
+ date,
25
+ datetime,
26
+ file_type,
27
+ none_type,
28
+ validate_get_composed_info,
29
+ )
30
+
31
+
32
+ def lazy_import():
33
+ from dm_cli.dmss_api.model.access_level import AccessLevel
34
+ globals()['AccessLevel'] = AccessLevel
35
+
36
+
37
+ class PATData(ModelNormal):
38
+ """NOTE: This class is auto generated by OpenAPI Generator.
39
+ Ref: https://openapi-generator.tech
40
+
41
+ Do not edit the class manually.
42
+
43
+ Attributes:
44
+ allowed_values (dict): The key is the tuple path to the attribute
45
+ and the for var_name this is (var_name,). The value is a dict
46
+ with a capitalized key describing the allowed value and an allowed
47
+ value. These dicts store the allowed enum values.
48
+ attribute_map (dict): The key is attribute name
49
+ and the value is json key in definition.
50
+ discriminator_value_class_map (dict): A dict to go from the discriminator
51
+ variable value to the discriminator class name.
52
+ validations (dict): The key is the tuple path to the attribute
53
+ and the for var_name this is (var_name,). The value is a dict
54
+ that stores validations for max_length, min_length, max_items,
55
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
56
+ inclusive_minimum, and regex.
57
+ additional_properties_type (tuple): A tuple of classes accepted
58
+ as additional properties values.
59
+ """
60
+
61
+ allowed_values = {
62
+ }
63
+
64
+ validations = {
65
+ }
66
+
67
+ @cached_property
68
+ def additional_properties_type():
69
+ """
70
+ This must be a method because a model may have properties that are
71
+ of type self, this must run after the class is loaded
72
+ """
73
+ lazy_import()
74
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
75
+
76
+ _nullable = False
77
+
78
+ @cached_property
79
+ def openapi_types():
80
+ """
81
+ This must be a method because a model may have properties that are
82
+ of type self, this must run after the class is loaded
83
+
84
+ Returns
85
+ openapi_types (dict): The key is attribute name
86
+ and the value is attribute type.
87
+ """
88
+ lazy_import()
89
+ return {
90
+ 'user_id': (str,), # noqa: E501
91
+ 'scope': (AccessLevel,), # noqa: E501
92
+ 'expire': (datetime,), # noqa: E501
93
+ 'pat_hash': (str,), # noqa: E501
94
+ 'uuid': (str,), # noqa: E501
95
+ 'roles': ([str],), # noqa: E501
96
+ }
97
+
98
+ @cached_property
99
+ def discriminator():
100
+ return None
101
+
102
+
103
+ attribute_map = {
104
+ 'user_id': 'user_id', # noqa: E501
105
+ 'scope': 'scope', # noqa: E501
106
+ 'expire': 'expire', # noqa: E501
107
+ 'pat_hash': 'pat_hash', # noqa: E501
108
+ 'uuid': 'uuid', # noqa: E501
109
+ 'roles': 'roles', # noqa: E501
110
+ }
111
+
112
+ read_only_vars = {
113
+ }
114
+
115
+ _composed_schemas = {}
116
+
117
+ @classmethod
118
+ @convert_js_args_to_python_args
119
+ def _from_openapi_data(cls, user_id, scope, expire, *args, **kwargs): # noqa: E501
120
+ """PATData - a model defined in OpenAPI
121
+
122
+ Args:
123
+ user_id (str):
124
+ scope (AccessLevel):
125
+ expire (datetime):
126
+
127
+ Keyword Args:
128
+ _check_type (bool): if True, values for parameters in openapi_types
129
+ will be type checked and a TypeError will be
130
+ raised if the wrong type is input.
131
+ Defaults to True
132
+ _path_to_item (tuple/list): This is a list of keys or values to
133
+ drill down to the model in received_data
134
+ when deserializing a response
135
+ _spec_property_naming (bool): True if the variable names in the input data
136
+ are serialized names, as specified in the OpenAPI document.
137
+ False if the variable names in the input data
138
+ are pythonic names, e.g. snake case (default)
139
+ _configuration (Configuration): the instance to use when
140
+ deserializing a file_type parameter.
141
+ If passed, type conversion is attempted
142
+ If omitted no type conversion is done.
143
+ _visited_composed_classes (tuple): This stores a tuple of
144
+ classes that we have traveled through so that
145
+ if we see that class again we will not use its
146
+ discriminator again.
147
+ When traveling through a discriminator, the
148
+ composed schema that is
149
+ is traveled through is added to this set.
150
+ For example if Animal has a discriminator
151
+ petType and we pass in "Dog", and the class Dog
152
+ allOf includes Animal, we move through Animal
153
+ once using the discriminator, and pick Dog.
154
+ Then in Dog, we will make an instance of the
155
+ Animal class but this time we won't travel
156
+ through its discriminator because we passed in
157
+ _visited_composed_classes = (Animal,)
158
+ pat_hash (str): [optional] # noqa: E501
159
+ uuid (str): [optional] if omitted the server will use the default value of "4e22abca-1344-43a3-9aeb-1496626606bf" # noqa: E501
160
+ roles ([str]): [optional] if omitted the server will use the default value of [] # noqa: E501
161
+ """
162
+
163
+ _check_type = kwargs.pop('_check_type', True)
164
+ _spec_property_naming = kwargs.pop('_spec_property_naming', True)
165
+ _path_to_item = kwargs.pop('_path_to_item', ())
166
+ _configuration = kwargs.pop('_configuration', None)
167
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
168
+
169
+ self = super(OpenApiModel, cls).__new__(cls)
170
+
171
+ if args:
172
+ for arg in args:
173
+ if isinstance(arg, dict):
174
+ kwargs.update(arg)
175
+ else:
176
+ raise ApiTypeError(
177
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
178
+ args,
179
+ self.__class__.__name__,
180
+ ),
181
+ path_to_item=_path_to_item,
182
+ valid_classes=(self.__class__,),
183
+ )
184
+
185
+ self._data_store = {}
186
+ self._check_type = _check_type
187
+ self._spec_property_naming = _spec_property_naming
188
+ self._path_to_item = _path_to_item
189
+ self._configuration = _configuration
190
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
191
+
192
+ self.user_id = user_id
193
+ self.scope = scope
194
+ self.expire = expire
195
+ for var_name, var_value in kwargs.items():
196
+ if var_name not in self.attribute_map and \
197
+ self._configuration is not None and \
198
+ self._configuration.discard_unknown_keys and \
199
+ self.additional_properties_type is None:
200
+ # discard variable.
201
+ continue
202
+ setattr(self, var_name, var_value)
203
+ return self
204
+
205
+ required_properties = set([
206
+ '_data_store',
207
+ '_check_type',
208
+ '_spec_property_naming',
209
+ '_path_to_item',
210
+ '_configuration',
211
+ '_visited_composed_classes',
212
+ ])
213
+
214
+ @convert_js_args_to_python_args
215
+ def __init__(self, user_id, scope, expire, *args, **kwargs): # noqa: E501
216
+ """PATData - a model defined in OpenAPI
217
+
218
+ Args:
219
+ user_id (str):
220
+ scope (AccessLevel):
221
+ expire (datetime):
222
+
223
+ Keyword Args:
224
+ _check_type (bool): if True, values for parameters in openapi_types
225
+ will be type checked and a TypeError will be
226
+ raised if the wrong type is input.
227
+ Defaults to True
228
+ _path_to_item (tuple/list): This is a list of keys or values to
229
+ drill down to the model in received_data
230
+ when deserializing a response
231
+ _spec_property_naming (bool): True if the variable names in the input data
232
+ are serialized names, as specified in the OpenAPI document.
233
+ False if the variable names in the input data
234
+ are pythonic names, e.g. snake case (default)
235
+ _configuration (Configuration): the instance to use when
236
+ deserializing a file_type parameter.
237
+ If passed, type conversion is attempted
238
+ If omitted no type conversion is done.
239
+ _visited_composed_classes (tuple): This stores a tuple of
240
+ classes that we have traveled through so that
241
+ if we see that class again we will not use its
242
+ discriminator again.
243
+ When traveling through a discriminator, the
244
+ composed schema that is
245
+ is traveled through is added to this set.
246
+ For example if Animal has a discriminator
247
+ petType and we pass in "Dog", and the class Dog
248
+ allOf includes Animal, we move through Animal
249
+ once using the discriminator, and pick Dog.
250
+ Then in Dog, we will make an instance of the
251
+ Animal class but this time we won't travel
252
+ through its discriminator because we passed in
253
+ _visited_composed_classes = (Animal,)
254
+ pat_hash (str): [optional] # noqa: E501
255
+ uuid (str): [optional] if omitted the server will use the default value of "4e22abca-1344-43a3-9aeb-1496626606bf" # noqa: E501
256
+ roles ([str]): [optional] if omitted the server will use the default value of [] # noqa: E501
257
+ """
258
+
259
+ _check_type = kwargs.pop('_check_type', True)
260
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
261
+ _path_to_item = kwargs.pop('_path_to_item', ())
262
+ _configuration = kwargs.pop('_configuration', None)
263
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
264
+
265
+ if args:
266
+ for arg in args:
267
+ if isinstance(arg, dict):
268
+ kwargs.update(arg)
269
+ else:
270
+ raise ApiTypeError(
271
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
272
+ args,
273
+ self.__class__.__name__,
274
+ ),
275
+ path_to_item=_path_to_item,
276
+ valid_classes=(self.__class__,),
277
+ )
278
+
279
+ self._data_store = {}
280
+ self._check_type = _check_type
281
+ self._spec_property_naming = _spec_property_naming
282
+ self._path_to_item = _path_to_item
283
+ self._configuration = _configuration
284
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
285
+
286
+ self.user_id = user_id
287
+ self.scope = scope
288
+ self.expire = expire
289
+ for var_name, var_value in kwargs.items():
290
+ if var_name not in self.attribute_map and \
291
+ self._configuration is not None and \
292
+ self._configuration.discard_unknown_keys and \
293
+ self.additional_properties_type is None:
294
+ # discard variable.
295
+ continue
296
+ setattr(self, var_name, var_value)
297
+ if var_name in self.read_only_vars:
298
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
299
+ f"class with read only attributes.")