@@ -107,17 +107,17 @@ def openapi_types():
107107 """
108108 lazy_import ()
109109 return {
110- 'type' : (str ,), # noqa: E501
111- 'created_at' : (datetime ,), # noqa: E501
110+ 'name' : (str ,), # noqa: E501
112111 'created_by' : (bool , date , datetime , dict , float , int , list , str , none_type ,), # noqa: E501
112+ 'user_permission' : (int ,), # noqa: E501
113+ 'groups_permissions' : ([GroupFolderRead ],), # noqa: E501
113114 'id' : (int ,), # noqa: E501
114- 'name' : (str ,), # noqa: E501
115115 'updated_at' : (datetime ,), # noqa: E501
116- 'groups_permissions' : ([GroupFolderRead ],), # noqa: E501
117- 'user_permission' : (int ,), # noqa: E501
118116 'nature' : (str ,), # noqa: E501
119- 'parent_id' : (int , none_type ,), # noqa: E501
117+ 'type' : (str ,), # noqa: E501
118+ 'created_at' : (datetime ,), # noqa: E501
120119 'default_permission' : (int ,), # noqa: E501
120+ 'parent_id' : (int , none_type ,), # noqa: E501
121121 'children' : ([WriteFolder ], none_type ,), # noqa: E501
122122 }
123123
@@ -127,48 +127,48 @@ def discriminator():
127127
128128
129129 attribute_map = {
130- 'type' : 'type' , # noqa: E501
131- 'created_at' : 'created_at' , # noqa: E501
130+ 'name' : 'name' , # noqa: E501
132131 'created_by' : 'created_by' , # noqa: E501
132+ 'user_permission' : 'user_permission' , # noqa: E501
133+ 'groups_permissions' : 'groups_permissions' , # noqa: E501
133134 'id' : 'id' , # noqa: E501
134- 'name' : 'name' , # noqa: E501
135135 'updated_at' : 'updated_at' , # noqa: E501
136- 'groups_permissions' : 'groups_permissions' , # noqa: E501
137- 'user_permission' : 'user_permission' , # noqa: E501
138136 'nature' : 'nature' , # noqa: E501
139- 'parent_id' : 'parent_id' , # noqa: E501
137+ 'type' : 'type' , # noqa: E501
138+ 'created_at' : 'created_at' , # noqa: E501
140139 'default_permission' : 'default_permission' , # noqa: E501
140+ 'parent_id' : 'parent_id' , # noqa: E501
141141 'children' : 'children' , # noqa: E501
142142 }
143143
144144 read_only_vars = {
145- 'type' , # noqa: E501
146- 'created_at' , # noqa: E501
147145 'created_by' , # noqa: E501
146+ 'user_permission' , # noqa: E501
147+ 'groups_permissions' , # noqa: E501
148148 'id' , # noqa: E501
149149 'updated_at' , # noqa: E501
150- 'groups_permissions' , # noqa: E501
151- 'user_permission' , # noqa: E501
152150 'nature' , # noqa: E501
151+ 'type' , # noqa: E501
152+ 'created_at' , # noqa: E501
153153 }
154154
155155 _composed_schemas = {}
156156
157157 @classmethod
158158 @convert_js_args_to_python_args
159- def _from_openapi_data (cls , type , created_at , created_by , id , name , updated_at , groups_permissions , user_permission , nature , * args , ** kwargs ): # noqa: E501
159+ def _from_openapi_data (cls , name , created_by , user_permission , groups_permissions , id , updated_at , nature , type , created_at , * args , ** kwargs ): # noqa: E501
160160 """WriteFolder - a model defined in OpenAPI
161161
162162 Args:
163- type (str): DEPRECATED: Use 'nature' instead. Value is \" Folder\" . It is usefull to parse the tree and discriminate folders and files
164- created_at (datetime): Creation date
163+ name (str): Name of the folder
165164 created_by (bool, date, datetime, dict, float, int, list, str, none_type):
165+ user_permission (int): Aggregate of group user permissions and folder default permission
166+ groups_permissions ([GroupFolderRead]): List of group permissions
166167 id (int):
167- name (str): Name of the folder
168168 updated_at (datetime): Date of the last update
169- groups_permissions ([GroupFolderRead]): List of group permissions
170- user_permission (int): Aggregate of group user permissions and folder default permission
171169 nature (str): Value is \" Folder\" . It is usefull to parse the tree and discriminate folders and files
170+ type (str): DEPRECATED: Use 'nature' instead. Value is \" Folder\" . It is usefull to parse the tree and discriminate folders and files
171+ created_at (datetime): Creation date
172172
173173 Keyword Args:
174174 _check_type (bool): if True, values for parameters in openapi_types
@@ -201,8 +201,8 @@ def _from_openapi_data(cls, type, created_at, created_by, id, name, updated_at,
201201 Animal class but this time we won't travel
202202 through its discriminator because we passed in
203203 _visited_composed_classes = (Animal,)
204- parent_id (int, none_type): [optional] # noqa: E501
205204 default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
205+ parent_id (int, none_type): [optional] # noqa: E501
206206 children ([WriteFolder], none_type): [optional] # noqa: E501
207207 """
208208
@@ -231,15 +231,15 @@ def _from_openapi_data(cls, type, created_at, created_by, id, name, updated_at,
231231 self ._configuration = _configuration
232232 self ._visited_composed_classes = _visited_composed_classes + (self .__class__ ,)
233233
234- self .type = type
235- self .created_at = created_at
234+ self .name = name
236235 self .created_by = created_by
236+ self .user_permission = user_permission
237+ self .groups_permissions = groups_permissions
237238 self .id = id
238- self .name = name
239239 self .updated_at = updated_at
240- self .groups_permissions = groups_permissions
241- self .user_permission = user_permission
242240 self .nature = nature
241+ self .type = type
242+ self .created_at = created_at
243243 for var_name , var_value in kwargs .items ():
244244 if var_name not in self .attribute_map and \
245245 self ._configuration is not None and \
@@ -263,6 +263,7 @@ def _from_openapi_data(cls, type, created_at, created_by, id, name, updated_at,
263263 def __init__ (self , name , * args , ** kwargs ): # noqa: E501
264264 """WriteFolder - a model defined in OpenAPI
265265
266+ Args:
266267 name (str): Name of the folder
267268 Keyword Args:
268269 _check_type (bool): if True, values for parameters in openapi_types
@@ -295,8 +296,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
295296 Animal class but this time we won't travel
296297 through its discriminator because we passed in
297298 _visited_composed_classes = (Animal,)
298- parent_id (int, none_type): [optional] # noqa: E501
299299 default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
300+ parent_id (int, none_type): [optional] # noqa: E501
300301 children ([WriteFolder], none_type): [optional] # noqa: E501
301302 """
302303
0 commit comments