Skip to content

Commit

Permalink
PATCH: allow null cloud serializer + add sub field to userproject (#643)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bimdata-io committed Apr 26, 2023
1 parent f7ba1fd commit 8d8ad1c
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 7 deletions.
2 changes: 1 addition & 1 deletion bimdata_api_client/api/collaboration_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -8303,7 +8303,7 @@ def create_document(
):
"""Create a document # noqa: E501

Create a document. If the document is one of {'IFC', 'DXF', 'DWG', 'GLTF', 'OBJ', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write # noqa: E501
Create a document. If the document is one of {'DXF', 'DWG', 'GLTF', 'OBJ', 'IFC', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True

Expand Down
4 changes: 2 additions & 2 deletions bimdata_api_client/model/cloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def openapi_types():
'marketplace_apps': ([MarketplaceAppLight],), # noqa: E501
'organization': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
'creator': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
'creator_app': (str,), # noqa: E501
'creator_app': (str, none_type,), # noqa: E501
'is_default': (bool,), # noqa: E501
'created_at': (datetime,), # noqa: E501
'updated_at': (datetime,), # noqa: E501
Expand Down Expand Up @@ -155,7 +155,7 @@ def _from_openapi_data(cls, id, name, features, marketplace_apps, organization,
marketplace_apps ([MarketplaceAppLight]):
organization (bool, date, datetime, dict, float, int, list, str, none_type):
creator (bool, date, datetime, dict, float, int, list, str, none_type):
creator_app (str):
creator_app (str, none_type):
is_default (bool):
created_at (datetime): Creation date
updated_at (datetime): Date of the last update
Expand Down
7 changes: 6 additions & 1 deletion bimdata_api_client/model/folder_user_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ def openapi_types():
'firstname': (str, none_type,), # noqa: E501
'lastname': (str, none_type,), # noqa: E501
'profile_picture': (str, none_type,), # noqa: E501
'sub': (str, none_type,), # noqa: E501
'role': (int,), # noqa: E501
'permission': (int,), # noqa: E501
}
Expand All @@ -116,6 +117,7 @@ def discriminator():
'firstname': 'firstname', # noqa: E501
'lastname': 'lastname', # noqa: E501
'profile_picture': 'profile_picture', # noqa: E501
'sub': 'sub', # noqa: E501
'role': 'role', # noqa: E501
'permission': 'permission', # noqa: E501
}
Expand All @@ -128,6 +130,7 @@ def discriminator():
'firstname', # noqa: E501
'lastname', # noqa: E501
'profile_picture', # noqa: E501
'sub', # noqa: E501
'role', # noqa: E501
'permission', # noqa: E501
}
Expand All @@ -136,7 +139,7 @@ def discriminator():

@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, id, user_id, invitation_id, email, firstname, lastname, profile_picture, role, permission, *args, **kwargs): # noqa: E501
def _from_openapi_data(cls, id, user_id, invitation_id, email, firstname, lastname, profile_picture, sub, role, permission, *args, **kwargs): # noqa: E501
"""FolderUserProject - a model defined in OpenAPI
Args:
Expand All @@ -147,6 +150,7 @@ def _from_openapi_data(cls, id, user_id, invitation_id, email, firstname, lastna
firstname (str, none_type):
lastname (str, none_type):
profile_picture (str, none_type):
sub (str, none_type):
role (int):
permission (int):
Expand Down Expand Up @@ -215,6 +219,7 @@ def _from_openapi_data(cls, id, user_id, invitation_id, email, firstname, lastna
self.firstname = firstname
self.lastname = lastname
self.profile_picture = profile_picture
self.sub = sub
self.role = role
self.permission = permission
for var_name, var_value in kwargs.items():
Expand Down
7 changes: 6 additions & 1 deletion bimdata_api_client/model/user_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,7 @@ def openapi_types():
'firstname': (str, none_type,), # noqa: E501
'lastname': (str, none_type,), # noqa: E501
'profile_picture': (str, none_type,), # noqa: E501
'sub': (str, none_type,), # noqa: E501
'role': (int,), # noqa: E501
}

Expand All @@ -110,6 +111,7 @@ def discriminator():
'firstname': 'firstname', # noqa: E501
'lastname': 'lastname', # noqa: E501
'profile_picture': 'profile_picture', # noqa: E501
'sub': 'sub', # noqa: E501
'role': 'role', # noqa: E501
}

Expand All @@ -121,14 +123,15 @@ def discriminator():
'firstname', # noqa: E501
'lastname', # noqa: E501
'profile_picture', # noqa: E501
'sub', # noqa: E501
'role', # noqa: E501
}

_composed_schemas = {}

@classmethod
@convert_js_args_to_python_args
def _from_openapi_data(cls, id, user_id, invitation_id, email, firstname, lastname, profile_picture, role, *args, **kwargs): # noqa: E501
def _from_openapi_data(cls, id, user_id, invitation_id, email, firstname, lastname, profile_picture, sub, role, *args, **kwargs): # noqa: E501
"""UserProject - a model defined in OpenAPI
Args:
Expand All @@ -139,6 +142,7 @@ def _from_openapi_data(cls, id, user_id, invitation_id, email, firstname, lastna
firstname (str, none_type):
lastname (str, none_type):
profile_picture (str, none_type):
sub (str, none_type):
role (int):
Keyword Args:
Expand Down Expand Up @@ -206,6 +210,7 @@ def _from_openapi_data(cls, id, user_id, invitation_id, email, firstname, lastna
self.firstname = firstname
self.lastname = lastname
self.profile_picture = profile_picture
self.sub = sub
self.role = role
for var_name, var_value in kwargs.items():
if var_name not in self.attribute_map and \
Expand Down
2 changes: 1 addition & 1 deletion docs/Cloud.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Name | Type | Description | Notes
**marketplace_apps** | [**[MarketplaceAppLight]**](MarketplaceAppLight.md) | | [readonly]
**organization** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [readonly]
**creator** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [readonly]
**creator_app** | **str** | | [readonly]
**creator_app** | **str, none_type** | | [readonly]
**is_default** | **bool** | | [readonly]
**created_at** | **datetime** | Creation date | [readonly]
**updated_at** | **datetime** | Date of the last update | [readonly]
Expand Down
2 changes: 1 addition & 1 deletion docs/CollaborationApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -1526,7 +1526,7 @@ Name | Type | Description | Notes
Create a document

Create a document. If the document is one of {'IFC', 'DXF', 'DWG', 'GLTF', 'OBJ', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write
Create a document. If the document is one of {'DXF', 'DWG', 'GLTF', 'OBJ', 'IFC', 'POINT_CLOUD'}, a model will be created and attached to this document Required scopes: document:write

### Example

Expand Down
1 change: 1 addition & 0 deletions docs/FolderUserProject.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**firstname** | **str, none_type** | | [readonly]
**lastname** | **str, none_type** | | [readonly]
**profile_picture** | **str, none_type** | | [readonly]
**sub** | **str, none_type** | | [readonly]
**role** | **int** | | [readonly]
**permission** | **int** | | [readonly]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
Expand Down
1 change: 1 addition & 0 deletions docs/UserProject.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ Name | Type | Description | Notes
**firstname** | **str, none_type** | | [readonly]
**lastname** | **str, none_type** | | [readonly]
**profile_picture** | **str, none_type** | | [readonly]
**sub** | **str, none_type** | | [readonly]
**role** | **int** | | [readonly]
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]

Expand Down

0 comments on commit 8d8ad1c

Please sign in to comment.