agilicus 1.236.6__py3-none-any.whl → 1.237.1__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. agilicus/.openapi-generator/FILES +9 -0
  2. agilicus/agilicus_api/__init__.py +3 -0
  3. agilicus/agilicus_api/api/files_api.py +717 -40
  4. agilicus/agilicus_api/api/files_api_mock.py +35 -0
  5. agilicus/agilicus_api/api_client.py +1 -1
  6. agilicus/agilicus_api/configuration.py +1 -1
  7. agilicus/agilicus_api/docs/FilesApi.md +447 -0
  8. agilicus/agilicus_api/docs/ListPublicFileOrgLinksResponse.md +15 -0
  9. agilicus/agilicus_api/docs/PublicFileOrgLink.md +14 -0
  10. agilicus/agilicus_api/docs/PublicFileOrgLinkSpec.md +15 -0
  11. agilicus/agilicus_api/model/list_public_file_org_links_response.py +307 -0
  12. agilicus/agilicus_api/model/public_file_org_link.py +295 -0
  13. agilicus/agilicus_api/model/public_file_org_link_spec.py +303 -0
  14. agilicus/agilicus_api/models/__init__.py +3 -0
  15. agilicus/agilicus_api/test/test_files_api.py +35 -0
  16. agilicus/agilicus_api/test/test_list_public_file_org_links_response.py +38 -0
  17. agilicus/agilicus_api/test/test_public_file_org_link.py +40 -0
  18. agilicus/agilicus_api/test/test_public_file_org_link_spec.py +36 -0
  19. agilicus/agilicus_api_README.md +9 -1
  20. agilicus/files_pkg/files_main.py +50 -0
  21. agilicus/files_pkg/public_file_org_links.py +60 -0
  22. agilicus/main.py +2 -0
  23. {agilicus-1.236.6.dist-info → agilicus-1.237.1.dist-info}/METADATA +2 -2
  24. {agilicus-1.236.6.dist-info → agilicus-1.237.1.dist-info}/RECORD +27 -16
  25. {agilicus-1.236.6.dist-info → agilicus-1.237.1.dist-info}/LICENSE.txt +0 -0
  26. {agilicus-1.236.6.dist-info → agilicus-1.237.1.dist-info}/WHEEL +0 -0
  27. {agilicus-1.236.6.dist-info → agilicus-1.237.1.dist-info}/entry_points.txt +0 -0
@@ -0,0 +1,307 @@
1
+ """
2
+ Agilicus API
3
+
4
+ Agilicus is API-first. Modern software is controlled by other software, is open, is available for you to use the way you want, securely, simply. The OpenAPI Specification in YAML format is available on [www](https://www.agilicus.com/www/api/agilicus-openapi.yaml) for importing to other tools. A rendered, online viewable and usable version of this specification is available at [api](https://www.agilicus.com/api). You may try the API inline directly in the web page. To do so, first obtain an Authentication Token (the simplest way is to install the Python SDK, and then run `agilicus-cli --issuer https://MYISSUER get-token`). You will need an org-id for most calls (and can obtain from `agilicus-cli --issuer https://MYISSUER list-orgs`). The `MYISSUER` will typically be `auth.MYDOMAIN`, and you will see it as you sign-in to the administrative UI. This API releases on Bearer-Token authentication. To obtain a valid bearer token you will need to Authenticate to an Issuer with OpenID Connect (a superset of OAUTH2). Your \"issuer\" will look like https://auth.MYDOMAIN. For example, when you signed-up, if you said \"use my own domain name\" and assigned a CNAME of cloud.example.com, then your issuer would be https://auth.cloud.example.com. If you selected \"use an Agilicus supplied domain name\", your issuer would look like https://auth.myorg.agilicus.cloud. For test purposes you can use our [Python SDK](https://pypi.org/project/agilicus/) and run `agilicus-cli --issuer https://auth.MYDOMAIN get-token`. This API may be used in any language runtime that supports OpenAPI 3.0, or, you may use our [Python SDK](https://pypi.org/project/agilicus/), our [Typescript SDK](https://www.npmjs.com/package/@agilicus/angular), or our [Golang SDK](https://git.agilicus.com/pub/sdk-go). 100% of the activities in our system our API-driven, from our web-admin, through our progressive web applications, to all internals: there is nothing that is not accessible. For more information, see [developer resources](https://www.agilicus.com/developer). # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2024.01.18
7
+ Contact: dev@agilicus.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from agilicus_api.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ )
29
+ from ..model_utils import OpenApiModel
30
+ from agilicus_api.exceptions import ApiAttributeError
31
+
32
+
33
+ def lazy_import():
34
+ from agilicus_api.model.public_file_org_link import PublicFileOrgLink
35
+ globals()['PublicFileOrgLink'] = PublicFileOrgLink
36
+
37
+
38
+ class ListPublicFileOrgLinksResponse(ModelNormal):
39
+ """NOTE: This class is auto generated by OpenAPI Generator.
40
+ Ref: https://openapi-generator.tech
41
+
42
+ Do not edit the class manually.
43
+
44
+ Attributes:
45
+ allowed_values (dict): The key is the tuple path to the attribute
46
+ and the for var_name this is (var_name,). The value is a dict
47
+ with a capitalized key describing the allowed value and an allowed
48
+ value. These dicts store the allowed enum values.
49
+ attribute_map (dict): The key is attribute name
50
+ and the value is json key in definition.
51
+ discriminator_value_class_map (dict): A dict to go from the discriminator
52
+ variable value to the discriminator class name.
53
+ validations (dict): The key is the tuple path to the attribute
54
+ and the for var_name this is (var_name,). The value is a dict
55
+ that stores validations for max_length, min_length, max_items,
56
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
57
+ inclusive_minimum, and regex.
58
+ additional_properties_type (tuple): A tuple of classes accepted
59
+ as additional properties values.
60
+ """
61
+
62
+ allowed_values = {
63
+ }
64
+
65
+ validations = {
66
+ }
67
+
68
+ @property
69
+ def public_file_org_links(self):
70
+ return self.get("public_file_org_links")
71
+
72
+ @public_file_org_links.setter
73
+ def public_file_org_links(self, new_value):
74
+ self.public_file_org_links = new_value
75
+
76
+ @property
77
+ def limit(self):
78
+ return self.get("limit")
79
+
80
+ @limit.setter
81
+ def limit(self, new_value):
82
+ self.limit = new_value
83
+
84
+ @property
85
+ def page_at_id(self):
86
+ return self.get("page_at_id")
87
+
88
+ @page_at_id.setter
89
+ def page_at_id(self, new_value):
90
+ self.page_at_id = new_value
91
+
92
+ @cached_property
93
+ def additional_properties_type():
94
+ """
95
+ This must be a method because a model may have properties that are
96
+ of type self, this must run after the class is loaded
97
+ """
98
+ lazy_import()
99
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
100
+
101
+ _nullable = False
102
+
103
+ @cached_property
104
+ def openapi_types():
105
+ """
106
+ This must be a method because a model may have properties that are
107
+ of type self, this must run after the class is loaded
108
+
109
+ Returns
110
+ openapi_types (dict): The key is attribute name
111
+ and the value is attribute type.
112
+ """
113
+ lazy_import()
114
+ return {
115
+ 'public_file_org_links': ([PublicFileOrgLink],), # noqa: E501
116
+ 'limit': (int,), # noqa: E501
117
+ 'page_at_id': (str,), # noqa: E501
118
+ }
119
+
120
+ @cached_property
121
+ def discriminator():
122
+ return None
123
+
124
+
125
+
126
+ attribute_map = {
127
+ 'public_file_org_links': 'public_file_org_links', # noqa: E501
128
+ 'limit': 'limit', # noqa: E501
129
+ 'page_at_id': 'page_at_id', # noqa: E501
130
+ }
131
+
132
+ read_only_vars = {
133
+ }
134
+
135
+ _composed_schemas = {}
136
+
137
+ @classmethod
138
+ @convert_js_args_to_python_args
139
+ def _from_openapi_data(cls, public_file_org_links, limit, *args, **kwargs): # noqa: E501
140
+ """ListPublicFileOrgLinksResponse - a model defined in OpenAPI
141
+
142
+ Args:
143
+ public_file_org_links ([PublicFileOrgLink]): Matching links
144
+ limit (int): Limit of entries in response
145
+
146
+ Keyword Args:
147
+ _check_type (bool): if True, values for parameters in openapi_types
148
+ will be type checked and a TypeError will be
149
+ raised if the wrong type is input.
150
+ Defaults to True
151
+ _path_to_item (tuple/list): This is a list of keys or values to
152
+ drill down to the model in received_data
153
+ when deserializing a response
154
+ _spec_property_naming (bool): True if the variable names in the input data
155
+ are serialized names, as specified in the OpenAPI document.
156
+ False if the variable names in the input data
157
+ are pythonic names, e.g. snake case (default)
158
+ _configuration (Configuration): the instance to use when
159
+ deserializing a file_type parameter.
160
+ If passed, type conversion is attempted
161
+ If omitted no type conversion is done.
162
+ _visited_composed_classes (tuple): This stores a tuple of
163
+ classes that we have traveled through so that
164
+ if we see that class again we will not use its
165
+ discriminator again.
166
+ When traveling through a discriminator, the
167
+ composed schema that is
168
+ is traveled through is added to this set.
169
+ For example if Animal has a discriminator
170
+ petType and we pass in "Dog", and the class Dog
171
+ allOf includes Animal, we move through Animal
172
+ once using the discriminator, and pick Dog.
173
+ Then in Dog, we will make an instance of the
174
+ Animal class but this time we won't travel
175
+ through its discriminator because we passed in
176
+ _visited_composed_classes = (Animal,)
177
+ page_at_id (str): The id to request in the pagination query to get the next page.. [optional] # noqa: E501
178
+ """
179
+
180
+ _check_type = kwargs.pop('_check_type', True)
181
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
182
+ _path_to_item = kwargs.pop('_path_to_item', ())
183
+ _configuration = kwargs.pop('_configuration', None)
184
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
185
+
186
+ self = super(OpenApiModel, cls).__new__(cls)
187
+
188
+ if args:
189
+ raise ApiTypeError(
190
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
191
+ args,
192
+ self.__class__.__name__,
193
+ ),
194
+ path_to_item=_path_to_item,
195
+ valid_classes=(self.__class__,),
196
+ )
197
+
198
+ self._data_store = {}
199
+ self._check_type = _check_type
200
+ self._spec_property_naming = _spec_property_naming
201
+ self._path_to_item = _path_to_item
202
+ self._configuration = _configuration
203
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
204
+
205
+ self.public_file_org_links = public_file_org_links
206
+ self.limit = limit
207
+ for var_name, var_value in kwargs.items():
208
+ if var_name not in self.attribute_map and \
209
+ self._configuration is not None and \
210
+ self._configuration.discard_unknown_keys and \
211
+ self.additional_properties_type is None:
212
+ # discard variable.
213
+ continue
214
+ setattr(self, var_name, var_value)
215
+ return self
216
+
217
+ def __python_set(val):
218
+ return set(val)
219
+
220
+ required_properties = __python_set([
221
+ '_data_store',
222
+ '_check_type',
223
+ '_spec_property_naming',
224
+ '_path_to_item',
225
+ '_configuration',
226
+ '_visited_composed_classes',
227
+ ])
228
+
229
+ @convert_js_args_to_python_args
230
+ def __init__(self, public_file_org_links, limit, *args, **kwargs): # noqa: E501
231
+ """ListPublicFileOrgLinksResponse - a model defined in OpenAPI
232
+
233
+ Args:
234
+ public_file_org_links ([PublicFileOrgLink]): Matching links
235
+ limit (int): Limit of entries in response
236
+
237
+ Keyword Args:
238
+ _check_type (bool): if True, values for parameters in openapi_types
239
+ will be type checked and a TypeError will be
240
+ raised if the wrong type is input.
241
+ Defaults to True
242
+ _path_to_item (tuple/list): This is a list of keys or values to
243
+ drill down to the model in received_data
244
+ when deserializing a response
245
+ _spec_property_naming (bool): True if the variable names in the input data
246
+ are serialized names, as specified in the OpenAPI document.
247
+ False if the variable names in the input data
248
+ are pythonic names, e.g. snake case (default)
249
+ _configuration (Configuration): the instance to use when
250
+ deserializing a file_type parameter.
251
+ If passed, type conversion is attempted
252
+ If omitted no type conversion is done.
253
+ _visited_composed_classes (tuple): This stores a tuple of
254
+ classes that we have traveled through so that
255
+ if we see that class again we will not use its
256
+ discriminator again.
257
+ When traveling through a discriminator, the
258
+ composed schema that is
259
+ is traveled through is added to this set.
260
+ For example if Animal has a discriminator
261
+ petType and we pass in "Dog", and the class Dog
262
+ allOf includes Animal, we move through Animal
263
+ once using the discriminator, and pick Dog.
264
+ Then in Dog, we will make an instance of the
265
+ Animal class but this time we won't travel
266
+ through its discriminator because we passed in
267
+ _visited_composed_classes = (Animal,)
268
+ page_at_id (str): The id to request in the pagination query to get the next page.. [optional] # noqa: E501
269
+ """
270
+
271
+ _check_type = kwargs.pop('_check_type', True)
272
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
273
+ _path_to_item = kwargs.pop('_path_to_item', ())
274
+ _configuration = kwargs.pop('_configuration', None)
275
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
276
+
277
+ if args:
278
+ raise ApiTypeError(
279
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
280
+ args,
281
+ self.__class__.__name__,
282
+ ),
283
+ path_to_item=_path_to_item,
284
+ valid_classes=(self.__class__,),
285
+ )
286
+
287
+ self._data_store = {}
288
+ self._check_type = _check_type
289
+ self._spec_property_naming = _spec_property_naming
290
+ self._path_to_item = _path_to_item
291
+ self._configuration = _configuration
292
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
293
+
294
+ self.public_file_org_links = public_file_org_links
295
+ self.limit = limit
296
+ for var_name, var_value in kwargs.items():
297
+ if var_name not in self.attribute_map and \
298
+ self._configuration is not None and \
299
+ self._configuration.discard_unknown_keys and \
300
+ self.additional_properties_type is None:
301
+ # discard variable.
302
+ continue
303
+ setattr(self, var_name, var_value)
304
+ if var_name in self.read_only_vars:
305
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
306
+ f"class with read only attributes.")
307
+
@@ -0,0 +1,295 @@
1
+ """
2
+ Agilicus API
3
+
4
+ Agilicus is API-first. Modern software is controlled by other software, is open, is available for you to use the way you want, securely, simply. The OpenAPI Specification in YAML format is available on [www](https://www.agilicus.com/www/api/agilicus-openapi.yaml) for importing to other tools. A rendered, online viewable and usable version of this specification is available at [api](https://www.agilicus.com/api). You may try the API inline directly in the web page. To do so, first obtain an Authentication Token (the simplest way is to install the Python SDK, and then run `agilicus-cli --issuer https://MYISSUER get-token`). You will need an org-id for most calls (and can obtain from `agilicus-cli --issuer https://MYISSUER list-orgs`). The `MYISSUER` will typically be `auth.MYDOMAIN`, and you will see it as you sign-in to the administrative UI. This API releases on Bearer-Token authentication. To obtain a valid bearer token you will need to Authenticate to an Issuer with OpenID Connect (a superset of OAUTH2). Your \"issuer\" will look like https://auth.MYDOMAIN. For example, when you signed-up, if you said \"use my own domain name\" and assigned a CNAME of cloud.example.com, then your issuer would be https://auth.cloud.example.com. If you selected \"use an Agilicus supplied domain name\", your issuer would look like https://auth.myorg.agilicus.cloud. For test purposes you can use our [Python SDK](https://pypi.org/project/agilicus/) and run `agilicus-cli --issuer https://auth.MYDOMAIN get-token`. This API may be used in any language runtime that supports OpenAPI 3.0, or, you may use our [Python SDK](https://pypi.org/project/agilicus/), our [Typescript SDK](https://www.npmjs.com/package/@agilicus/angular), or our [Golang SDK](https://git.agilicus.com/pub/sdk-go). 100% of the activities in our system our API-driven, from our web-admin, through our progressive web applications, to all internals: there is nothing that is not accessible. For more information, see [developer resources](https://www.agilicus.com/developer). # noqa: E501
5
+
6
+ The version of the OpenAPI document: 2024.01.18
7
+ Contact: dev@agilicus.com
8
+ Generated by: https://openapi-generator.tech
9
+ """
10
+
11
+
12
+ import re # noqa: F401
13
+ import sys # noqa: F401
14
+
15
+ from agilicus_api.model_utils import ( # noqa: F401
16
+ ApiTypeError,
17
+ ModelComposed,
18
+ ModelNormal,
19
+ ModelSimple,
20
+ cached_property,
21
+ change_keys_js_to_python,
22
+ convert_js_args_to_python_args,
23
+ date,
24
+ datetime,
25
+ file_type,
26
+ none_type,
27
+ validate_get_composed_info,
28
+ )
29
+ from ..model_utils import OpenApiModel
30
+ from agilicus_api.exceptions import ApiAttributeError
31
+
32
+
33
+ def lazy_import():
34
+ from agilicus_api.model.metadata_with_id import MetadataWithId
35
+ from agilicus_api.model.public_file_org_link_spec import PublicFileOrgLinkSpec
36
+ globals()['MetadataWithId'] = MetadataWithId
37
+ globals()['PublicFileOrgLinkSpec'] = PublicFileOrgLinkSpec
38
+
39
+
40
+ class PublicFileOrgLink(ModelNormal):
41
+ """NOTE: This class is auto generated by OpenAPI Generator.
42
+ Ref: https://openapi-generator.tech
43
+
44
+ Do not edit the class manually.
45
+
46
+ Attributes:
47
+ allowed_values (dict): The key is the tuple path to the attribute
48
+ and the for var_name this is (var_name,). The value is a dict
49
+ with a capitalized key describing the allowed value and an allowed
50
+ value. These dicts store the allowed enum values.
51
+ attribute_map (dict): The key is attribute name
52
+ and the value is json key in definition.
53
+ discriminator_value_class_map (dict): A dict to go from the discriminator
54
+ variable value to the discriminator class name.
55
+ validations (dict): The key is the tuple path to the attribute
56
+ and the for var_name this is (var_name,). The value is a dict
57
+ that stores validations for max_length, min_length, max_items,
58
+ min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
59
+ inclusive_minimum, and regex.
60
+ additional_properties_type (tuple): A tuple of classes accepted
61
+ as additional properties values.
62
+ """
63
+
64
+ allowed_values = {
65
+ }
66
+
67
+ validations = {
68
+ }
69
+
70
+ @property
71
+ def metadata(self):
72
+ return self.get("metadata")
73
+
74
+ @metadata.setter
75
+ def metadata(self, new_value):
76
+ self.metadata = new_value
77
+
78
+ @property
79
+ def spec(self):
80
+ return self.get("spec")
81
+
82
+ @spec.setter
83
+ def spec(self, new_value):
84
+ self.spec = new_value
85
+
86
+ @cached_property
87
+ def additional_properties_type():
88
+ """
89
+ This must be a method because a model may have properties that are
90
+ of type self, this must run after the class is loaded
91
+ """
92
+ lazy_import()
93
+ return (bool, date, datetime, dict, float, int, list, str, none_type,) # noqa: E501
94
+
95
+ _nullable = False
96
+
97
+ @cached_property
98
+ def openapi_types():
99
+ """
100
+ This must be a method because a model may have properties that are
101
+ of type self, this must run after the class is loaded
102
+
103
+ Returns
104
+ openapi_types (dict): The key is attribute name
105
+ and the value is attribute type.
106
+ """
107
+ lazy_import()
108
+ return {
109
+ 'spec': (PublicFileOrgLinkSpec,), # noqa: E501
110
+ 'metadata': (MetadataWithId,), # noqa: E501
111
+ }
112
+
113
+ @cached_property
114
+ def discriminator():
115
+ return None
116
+
117
+
118
+
119
+ attribute_map = {
120
+ 'spec': 'spec', # noqa: E501
121
+ 'metadata': 'metadata', # noqa: E501
122
+ }
123
+
124
+ read_only_vars = {
125
+ }
126
+
127
+ _composed_schemas = {}
128
+
129
+ @classmethod
130
+ @convert_js_args_to_python_args
131
+ def _from_openapi_data(cls, spec, *args, **kwargs): # noqa: E501
132
+ """PublicFileOrgLink - a model defined in OpenAPI
133
+
134
+ Args:
135
+ spec (PublicFileOrgLinkSpec):
136
+
137
+ Keyword Args:
138
+ _check_type (bool): if True, values for parameters in openapi_types
139
+ will be type checked and a TypeError will be
140
+ raised if the wrong type is input.
141
+ Defaults to True
142
+ _path_to_item (tuple/list): This is a list of keys or values to
143
+ drill down to the model in received_data
144
+ when deserializing a response
145
+ _spec_property_naming (bool): True if the variable names in the input data
146
+ are serialized names, as specified in the OpenAPI document.
147
+ False if the variable names in the input data
148
+ are pythonic names, e.g. snake case (default)
149
+ _configuration (Configuration): the instance to use when
150
+ deserializing a file_type parameter.
151
+ If passed, type conversion is attempted
152
+ If omitted no type conversion is done.
153
+ _visited_composed_classes (tuple): This stores a tuple of
154
+ classes that we have traveled through so that
155
+ if we see that class again we will not use its
156
+ discriminator again.
157
+ When traveling through a discriminator, the
158
+ composed schema that is
159
+ is traveled through is added to this set.
160
+ For example if Animal has a discriminator
161
+ petType and we pass in "Dog", and the class Dog
162
+ allOf includes Animal, we move through Animal
163
+ once using the discriminator, and pick Dog.
164
+ Then in Dog, we will make an instance of the
165
+ Animal class but this time we won't travel
166
+ through its discriminator because we passed in
167
+ _visited_composed_classes = (Animal,)
168
+ metadata (MetadataWithId): [optional] # noqa: E501
169
+ """
170
+
171
+ _check_type = kwargs.pop('_check_type', True)
172
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
173
+ _path_to_item = kwargs.pop('_path_to_item', ())
174
+ _configuration = kwargs.pop('_configuration', None)
175
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
176
+
177
+ self = super(OpenApiModel, cls).__new__(cls)
178
+
179
+ if args:
180
+ raise ApiTypeError(
181
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
182
+ args,
183
+ self.__class__.__name__,
184
+ ),
185
+ path_to_item=_path_to_item,
186
+ valid_classes=(self.__class__,),
187
+ )
188
+
189
+ self._data_store = {}
190
+ self._check_type = _check_type
191
+ self._spec_property_naming = _spec_property_naming
192
+ self._path_to_item = _path_to_item
193
+ self._configuration = _configuration
194
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
195
+
196
+ self.spec = spec
197
+ for var_name, var_value in kwargs.items():
198
+ if var_name not in self.attribute_map and \
199
+ self._configuration is not None and \
200
+ self._configuration.discard_unknown_keys and \
201
+ self.additional_properties_type is None:
202
+ # discard variable.
203
+ continue
204
+ setattr(self, var_name, var_value)
205
+ return self
206
+
207
+ def __python_set(val):
208
+ return set(val)
209
+
210
+ required_properties = __python_set([
211
+ '_data_store',
212
+ '_check_type',
213
+ '_spec_property_naming',
214
+ '_path_to_item',
215
+ '_configuration',
216
+ '_visited_composed_classes',
217
+ ])
218
+
219
+ @convert_js_args_to_python_args
220
+ def __init__(self, spec, *args, **kwargs): # noqa: E501
221
+ """PublicFileOrgLink - a model defined in OpenAPI
222
+
223
+ Args:
224
+ spec (PublicFileOrgLinkSpec):
225
+
226
+ Keyword Args:
227
+ _check_type (bool): if True, values for parameters in openapi_types
228
+ will be type checked and a TypeError will be
229
+ raised if the wrong type is input.
230
+ Defaults to True
231
+ _path_to_item (tuple/list): This is a list of keys or values to
232
+ drill down to the model in received_data
233
+ when deserializing a response
234
+ _spec_property_naming (bool): True if the variable names in the input data
235
+ are serialized names, as specified in the OpenAPI document.
236
+ False if the variable names in the input data
237
+ are pythonic names, e.g. snake case (default)
238
+ _configuration (Configuration): the instance to use when
239
+ deserializing a file_type parameter.
240
+ If passed, type conversion is attempted
241
+ If omitted no type conversion is done.
242
+ _visited_composed_classes (tuple): This stores a tuple of
243
+ classes that we have traveled through so that
244
+ if we see that class again we will not use its
245
+ discriminator again.
246
+ When traveling through a discriminator, the
247
+ composed schema that is
248
+ is traveled through is added to this set.
249
+ For example if Animal has a discriminator
250
+ petType and we pass in "Dog", and the class Dog
251
+ allOf includes Animal, we move through Animal
252
+ once using the discriminator, and pick Dog.
253
+ Then in Dog, we will make an instance of the
254
+ Animal class but this time we won't travel
255
+ through its discriminator because we passed in
256
+ _visited_composed_classes = (Animal,)
257
+ metadata (MetadataWithId): [optional] # noqa: E501
258
+ """
259
+
260
+ _check_type = kwargs.pop('_check_type', True)
261
+ _spec_property_naming = kwargs.pop('_spec_property_naming', False)
262
+ _path_to_item = kwargs.pop('_path_to_item', ())
263
+ _configuration = kwargs.pop('_configuration', None)
264
+ _visited_composed_classes = kwargs.pop('_visited_composed_classes', ())
265
+
266
+ if args:
267
+ raise ApiTypeError(
268
+ "Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments." % (
269
+ args,
270
+ self.__class__.__name__,
271
+ ),
272
+ path_to_item=_path_to_item,
273
+ valid_classes=(self.__class__,),
274
+ )
275
+
276
+ self._data_store = {}
277
+ self._check_type = _check_type
278
+ self._spec_property_naming = _spec_property_naming
279
+ self._path_to_item = _path_to_item
280
+ self._configuration = _configuration
281
+ self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
282
+
283
+ self.spec = spec
284
+ for var_name, var_value in kwargs.items():
285
+ if var_name not in self.attribute_map and \
286
+ self._configuration is not None and \
287
+ self._configuration.discard_unknown_keys and \
288
+ self.additional_properties_type is None:
289
+ # discard variable.
290
+ continue
291
+ setattr(self, var_name, var_value)
292
+ if var_name in self.read_only_vars:
293
+ raise ApiAttributeError(f"`{var_name}` is a read-only attribute. Use `from_openapi_data` to instantiate "
294
+ f"class with read only attributes.")
295
+