@@ -109,18 +109,18 @@ def openapi_types():
109109 """
110110 lazy_import ()
111111 return {
112- 'type' : (str ,), # noqa: E501
113- 'nature' : (str ,), # noqa: E501
112+ 'id' : (int ,), # noqa: E501
113+ 'user_permission' : (int ,), # noqa: E501
114+ 'name' : (str ,), # noqa: E501
114115 'created_at' : (datetime ,), # noqa: E501
115116 'groups_permissions' : ([GroupFolderRead ],), # noqa: E501
116- 'user_permission' : (int ,), # noqa: E501
117- 'updated_at' : (datetime ,), # noqa: E501
118117 'created_by' : (bool , date , datetime , dict , float , int , list , str , none_type ,), # noqa: E501
119- 'id' : (int ,), # noqa: E501
120- 'name' : (str ,), # noqa: E501
118+ 'nature' : (str ,), # noqa: E501
119+ 'updated_at' : (datetime ,), # noqa: E501
120+ 'type' : (str ,), # noqa: E501
121121 'conflicting_documents' : ([LightDocument ],), # noqa: E501
122- 'default_permission' : (int ,), # noqa: E501
123122 'parent_id' : (int , none_type ,), # noqa: E501
123+ 'default_permission' : (int ,), # noqa: E501
124124 }
125125
126126 @cached_property
@@ -129,49 +129,49 @@ def discriminator():
129129
130130
131131 attribute_map = {
132- 'type' : 'type' , # noqa: E501
133- 'nature' : 'nature' , # noqa: E501
132+ 'id' : 'id' , # noqa: E501
133+ 'user_permission' : 'user_permission' , # noqa: E501
134+ 'name' : 'name' , # noqa: E501
134135 'created_at' : 'created_at' , # noqa: E501
135136 'groups_permissions' : 'groups_permissions' , # noqa: E501
136- 'user_permission' : 'user_permission' , # noqa: E501
137- 'updated_at' : 'updated_at' , # noqa: E501
138137 'created_by' : 'created_by' , # noqa: E501
139- 'id' : 'id' , # noqa: E501
140- 'name' : 'name' , # noqa: E501
138+ 'nature' : 'nature' , # noqa: E501
139+ 'updated_at' : 'updated_at' , # noqa: E501
140+ 'type' : 'type' , # noqa: E501
141141 'conflicting_documents' : 'conflicting_documents' , # noqa: E501
142- 'default_permission' : 'default_permission' , # noqa: E501
143142 'parent_id' : 'parent_id' , # noqa: E501
143+ 'default_permission' : 'default_permission' , # noqa: E501
144144 }
145145
146146 read_only_vars = {
147- 'type ' , # noqa: E501
148- 'nature ' , # noqa: E501
147+ 'id ' , # noqa: E501
148+ 'user_permission ' , # noqa: E501
149149 'created_at' , # noqa: E501
150150 'groups_permissions' , # noqa: E501
151- 'user_permission' , # noqa: E501
152- 'updated_at' , # noqa: E501
153151 'created_by' , # noqa: E501
154- 'id' , # noqa: E501
152+ 'nature' , # noqa: E501
153+ 'updated_at' , # noqa: E501
154+ 'type' , # noqa: E501
155155 'conflicting_documents' , # noqa: E501
156156 }
157157
158158 _composed_schemas = {}
159159
160160 @classmethod
161161 @convert_js_args_to_python_args
162- def _from_openapi_data (cls , type , nature , created_at , groups_permissions , user_permission , updated_at , created_by , id , name , conflicting_documents , * args , ** kwargs ): # noqa: E501
162+ def _from_openapi_data (cls , id , user_permission , name , created_at , groups_permissions , created_by , nature , updated_at , type , conflicting_documents , * args , ** kwargs ): # noqa: E501
163163 """EditFolder - a model defined in OpenAPI
164164
165165 Args:
166- type (str): DEPRECATED: Use 'nature' instead. Value is \" Folder\" . It is usefull to parse the tree and discriminate folders and files
167- nature (str): Value is \" Folder\" . It is usefull to parse the tree and discriminate folders and files
166+ id (int):
167+ user_permission (int): Aggregate of group user permissions and folder default permission
168+ name (str): Name of the folder
168169 created_at (datetime): Creation date
169170 groups_permissions ([GroupFolderRead]): List of group permissions
170- user_permission (int): Aggregate of group user permissions and folder default permission
171- updated_at (datetime): Date of the last update
172171 created_by (bool, date, datetime, dict, float, int, list, str, none_type):
173- id (int):
174- name (str): Name of the folder
172+ nature (str): Value is \" Folder\" . It is usefull to parse the tree and discriminate folders and files
173+ updated_at (datetime): Date of the last update
174+ type (str): DEPRECATED: Use 'nature' instead. Value is \" Folder\" . It is usefull to parse the tree and discriminate folders and files
175175 conflicting_documents ([LightDocument]): Return document with naming conflict. This is only set when you move a folder
176176
177177 Keyword Args:
@@ -205,8 +205,8 @@ def _from_openapi_data(cls, type, nature, created_at, groups_permissions, user_p
205205 Animal class but this time we won't travel
206206 through its discriminator because we passed in
207207 _visited_composed_classes = (Animal,)
208- default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
209208 parent_id (int, none_type): [optional] # noqa: E501
209+ default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
210210 """
211211
212212 _check_type = kwargs .pop ('_check_type' , True )
@@ -234,15 +234,15 @@ def _from_openapi_data(cls, type, nature, created_at, groups_permissions, user_p
234234 self ._configuration = _configuration
235235 self ._visited_composed_classes = _visited_composed_classes + (self .__class__ ,)
236236
237- self .type = type
238- self .nature = nature
237+ self .id = id
238+ self .user_permission = user_permission
239+ self .name = name
239240 self .created_at = created_at
240241 self .groups_permissions = groups_permissions
241- self .user_permission = user_permission
242- self .updated_at = updated_at
243242 self .created_by = created_by
244- self .id = id
245- self .name = name
243+ self .nature = nature
244+ self .updated_at = updated_at
245+ self .type = type
246246 self .conflicting_documents = conflicting_documents
247247 for var_name , var_value in kwargs .items ():
248248 if var_name not in self .attribute_map and \
@@ -299,8 +299,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
299299 Animal class but this time we won't travel
300300 through its discriminator because we passed in
301301 _visited_composed_classes = (Animal,)
302- default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
303302 parent_id (int, none_type): [optional] # noqa: E501
303+ default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
304304 """
305305
306306 _check_type = kwargs .pop ('_check_type' , True )
0 commit comments