Skip to content

Commit d7315c0

Browse files
committed
PATCH: cloud_id and project_id in Invitation serializer
1 parent 97b1b10 commit d7315c0

4 files changed

Lines changed: 15 additions & 3 deletions

File tree

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8027,7 +8027,7 @@ def create_document(
80278027
):
80288028
"""Create a document # noqa: E501
80298029

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

bimdata_api_client/model/user_invitation.py

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ def openapi_types():
9898
return {
9999
'id': (int,), # noqa: E501
100100
'redirect_uri': (str,), # noqa: E501
101+
'cloud_id': (int,), # noqa: E501
101102
'cloud_name': (str,), # noqa: E501
103+
'project_id': (int, none_type,), # noqa: E501
102104
'sender': (User,), # noqa: E501
103105
'project_name': (str,), # noqa: E501
104106
'status': (str,), # noqa: E501
@@ -112,27 +114,33 @@ def discriminator():
112114
attribute_map = {
113115
'id': 'id', # noqa: E501
114116
'redirect_uri': 'redirect_uri', # noqa: E501
117+
'cloud_id': 'cloud_id', # noqa: E501
115118
'cloud_name': 'cloud_name', # noqa: E501
119+
'project_id': 'project_id', # noqa: E501
116120
'sender': 'sender', # noqa: E501
117121
'project_name': 'project_name', # noqa: E501
118122
'status': 'status', # noqa: E501
119123
}
120124

121125
read_only_vars = {
122126
'id', # noqa: E501
127+
'cloud_id', # noqa: E501
128+
'project_id', # noqa: E501
123129
}
124130

125131
_composed_schemas = {}
126132

127133
@classmethod
128134
@convert_js_args_to_python_args
129-
def _from_openapi_data(cls, id, redirect_uri, cloud_name, sender, *args, **kwargs): # noqa: E501
135+
def _from_openapi_data(cls, id, redirect_uri, cloud_id, cloud_name, project_id, sender, *args, **kwargs): # noqa: E501
130136
"""UserInvitation - a model defined in OpenAPI
131137
132138
Args:
133139
id (int):
134140
redirect_uri (str): User will be redirected to this uri when they accept the invitation
141+
cloud_id (int):
135142
cloud_name (str):
143+
project_id (int, none_type):
136144
sender (User):
137145
138146
Keyword Args:
@@ -197,7 +205,9 @@ def _from_openapi_data(cls, id, redirect_uri, cloud_name, sender, *args, **kwarg
197205

198206
self.id = id
199207
self.redirect_uri = redirect_uri
208+
self.cloud_id = cloud_id
200209
self.cloud_name = cloud_name
210+
self.project_id = project_id
201211
self.sender = sender
202212
for var_name, var_value in kwargs.items():
203213
if var_name not in self.attribute_map and \

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1418,7 +1418,7 @@ Name | Type | Description | Notes
14181418
14191419
Create a document
14201420

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

14231423
### Example
14241424

docs/UserInvitation.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**id** | **int** | | [readonly]
88
**redirect_uri** | **str** | User will be redirected to this uri when they accept the invitation |
9+
**cloud_id** | **int** | | [readonly]
910
**cloud_name** | **str** | |
11+
**project_id** | **int, none_type** | | [readonly]
1012
**sender** | [**User**](User.md) | |
1113
**project_name** | **str** | | [optional]
1214
**status** | **str** | A: Accepted D: Denied P: Pending | [optional]

0 commit comments

Comments
 (0)