Skip to content

Commit dc7063d

Browse files
committed
PATCH: created_at and responded_at in Invitation model (#570)
* created_at and updated_at in Invitation model * invitation: manual responded_at field
1 parent 7e31302 commit dc7063d

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

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 {'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
8030+
Create a document. If the document is one of {'GLTF', 'OBJ', 'IFC', 'DXF', 'POINT_CLOUD', 'BFX', 'DWG', 'DAE'}, 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: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,10 @@ def openapi_types():
102102
'cloud_name': (str,), # noqa: E501
103103
'project_id': (int, none_type,), # noqa: E501
104104
'sender': (User,), # noqa: E501
105+
'created_at': (datetime,), # noqa: E501
105106
'project_name': (str,), # noqa: E501
106107
'status': (str,), # noqa: E501
108+
'responded_at': (datetime, none_type,), # noqa: E501
107109
}
108110

109111
@cached_property
@@ -118,21 +120,24 @@ def discriminator():
118120
'cloud_name': 'cloud_name', # noqa: E501
119121
'project_id': 'project_id', # noqa: E501
120122
'sender': 'sender', # noqa: E501
123+
'created_at': 'created_at', # noqa: E501
121124
'project_name': 'project_name', # noqa: E501
122125
'status': 'status', # noqa: E501
126+
'responded_at': 'responded_at', # noqa: E501
123127
}
124128

125129
read_only_vars = {
126130
'id', # noqa: E501
127131
'cloud_id', # noqa: E501
128132
'project_id', # noqa: E501
133+
'created_at', # noqa: E501
129134
}
130135

131136
_composed_schemas = {}
132137

133138
@classmethod
134139
@convert_js_args_to_python_args
135-
def _from_openapi_data(cls, id, redirect_uri, cloud_id, cloud_name, project_id, sender, *args, **kwargs): # noqa: E501
140+
def _from_openapi_data(cls, id, redirect_uri, cloud_id, cloud_name, project_id, sender, created_at, *args, **kwargs): # noqa: E501
136141
"""UserInvitation - a model defined in OpenAPI
137142
138143
Args:
@@ -142,6 +147,7 @@ def _from_openapi_data(cls, id, redirect_uri, cloud_id, cloud_name, project_id,
142147
cloud_name (str):
143148
project_id (int, none_type):
144149
sender (User):
150+
created_at (datetime):
145151
146152
Keyword Args:
147153
_check_type (bool): if True, values for parameters in openapi_types
@@ -176,6 +182,7 @@ def _from_openapi_data(cls, id, redirect_uri, cloud_id, cloud_name, project_id,
176182
_visited_composed_classes = (Animal,)
177183
project_name (str): [optional] # noqa: E501
178184
status (str): A: Accepted D: Denied P: Pending . [optional] # noqa: E501
185+
responded_at (datetime, none_type): [optional] # noqa: E501
179186
"""
180187

181188
_check_type = kwargs.pop('_check_type', True)
@@ -209,6 +216,7 @@ def _from_openapi_data(cls, id, redirect_uri, cloud_id, cloud_name, project_id,
209216
self.cloud_name = cloud_name
210217
self.project_id = project_id
211218
self.sender = sender
219+
self.created_at = created_at
212220
for var_name, var_value in kwargs.items():
213221
if var_name not in self.attribute_map and \
214222
self._configuration is not None and \
@@ -235,7 +243,6 @@ def __init__(self, redirect_uri, cloud_name, sender, *args, **kwargs): # noqa:
235243
redirect_uri (str): User will be redirected to this uri when they accept the invitation
236244
cloud_name (str):
237245
sender (User):
238-
239246
Keyword Args:
240247
_check_type (bool): if True, values for parameters in openapi_types
241248
will be type checked and a TypeError will be
@@ -269,6 +276,7 @@ def __init__(self, redirect_uri, cloud_name, sender, *args, **kwargs): # noqa:
269276
_visited_composed_classes = (Animal,)
270277
project_name (str): [optional] # noqa: E501
271278
status (str): A: Accepted D: Denied P: Pending . [optional] # noqa: E501
279+
responded_at (datetime, none_type): [optional] # noqa: E501
272280
"""
273281

274282
_check_type = kwargs.pop('_check_type', True)

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 {'DAE', 'GLTF', 'DXF', 'DWG', 'POINT_CLOUD', 'BFX', 'IFC', 'OBJ'}, a model will be created and attached to this document Required scopes: document:write
1421+
Create a document. If the document is one of {'GLTF', 'OBJ', 'IFC', 'DXF', 'POINT_CLOUD', 'BFX', 'DWG', 'DAE'}, 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
@@ -10,8 +10,10 @@ Name | Type | Description | Notes
1010
**cloud_name** | **str** | |
1111
**project_id** | **int, none_type** | | [readonly]
1212
**sender** | [**User**](User.md) | |
13+
**created_at** | **datetime** | | [readonly]
1314
**project_name** | **str** | | [optional]
1415
**status** | **str** | A: Accepted D: Denied P: Pending | [optional]
16+
**responded_at** | **datetime, none_type** | | [optional]
1517
**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]
1618

1719
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

0 commit comments

Comments
 (0)