Skip to content

Commit 157b488

Browse files
committed
MINOR: Add missing attachment in visa validation serializer. (#726)
1 parent bd00ba2 commit 157b488

10 files changed

Lines changed: 26 additions & 9 deletions

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8741,7 +8741,7 @@ def create_document(
87418741
):
87428742
"""Create a document # noqa: E501
87438743

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

bimdata_api_client/model/patched_visa_validation_request.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def openapi_types():
8383
"""
8484
return {
8585
'validator_id': (int,), # noqa: E501
86+
'attachment': (file_type, none_type,), # noqa: E501
8687
}
8788

8889
@cached_property
@@ -92,6 +93,7 @@ def discriminator():
9293

9394
attribute_map = {
9495
'validator_id': 'validator_id', # noqa: E501
96+
'attachment': 'attachment', # noqa: E501
9597
}
9698

9799
read_only_vars = {
@@ -136,6 +138,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
136138
through its discriminator because we passed in
137139
_visited_composed_classes = (Animal,)
138140
validator_id (int): This is the userproject_id. [optional] # noqa: E501
141+
attachment (file_type, none_type): [optional] # noqa: E501
139142
"""
140143

141144
_check_type = kwargs.pop('_check_type', True)
@@ -218,6 +221,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
218221
through its discriminator because we passed in
219222
_visited_composed_classes = (Animal,)
220223
validator_id (int): This is the userproject_id. [optional] # noqa: E501
224+
attachment (file_type, none_type): [optional] # noqa: E501
221225
"""
222226

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

bimdata_api_client/model/visa_validation.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ def openapi_types():
100100
'has_commented': (bool,), # noqa: E501
101101
'created_at': (datetime,), # noqa: E501
102102
'updated_at': (datetime,), # noqa: E501
103+
'attachment': (str, none_type,), # noqa: E501
103104
}
104105

105106
@cached_property
@@ -115,6 +116,7 @@ def discriminator():
115116
'has_commented': 'has_commented', # noqa: E501
116117
'created_at': 'created_at', # noqa: E501
117118
'updated_at': 'updated_at', # noqa: E501
119+
'attachment': 'attachment', # noqa: E501
118120
}
119121

120122
read_only_vars = {
@@ -174,6 +176,7 @@ def _from_openapi_data(cls, id, visa_id, validator, status, has_commented, creat
174176
Animal class but this time we won't travel
175177
through its discriminator because we passed in
176178
_visited_composed_classes = (Animal,)
179+
attachment (str, none_type): [optional] # noqa: E501
177180
"""
178181

179182
_check_type = kwargs.pop('_check_type', True)
@@ -262,6 +265,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
262265
Animal class but this time we won't travel
263266
through its discriminator because we passed in
264267
_visited_composed_classes = (Animal,)
268+
attachment (str, none_type): [optional] # noqa: E501
265269
"""
266270

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

bimdata_api_client/model/visa_validation_request.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,7 @@ def openapi_types():
8383
"""
8484
return {
8585
'validator_id': (int,), # noqa: E501
86+
'attachment': (file_type, none_type,), # noqa: E501
8687
}
8788

8889
@cached_property
@@ -92,6 +93,7 @@ def discriminator():
9293

9394
attribute_map = {
9495
'validator_id': 'validator_id', # noqa: E501
96+
'attachment': 'attachment', # noqa: E501
9597
}
9698

9799
read_only_vars = {
@@ -138,6 +140,7 @@ def _from_openapi_data(cls, validator_id, *args, **kwargs): # noqa: E501
138140
Animal class but this time we won't travel
139141
through its discriminator because we passed in
140142
_visited_composed_classes = (Animal,)
143+
attachment (file_type, none_type): [optional] # noqa: E501
141144
"""
142145

143146
_check_type = kwargs.pop('_check_type', True)
@@ -223,6 +226,7 @@ def __init__(self, validator_id, *args, **kwargs): # noqa: E501
223226
Animal class but this time we won't travel
224227
through its discriminator because we passed in
225228
_visited_composed_classes = (Animal,)
229+
attachment (file_type, none_type): [optional] # noqa: E501
226230
"""
227231

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

bimdata_api_client/model/write_folder_request.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,8 +96,8 @@ def openapi_types():
9696
"""
9797
return {
9898
'name': (str,), # noqa: E501
99-
'parent_id': (int, none_type,), # noqa: E501
10099
'default_permission': (int,), # noqa: E501
100+
'parent_id': (int, none_type,), # noqa: E501
101101
'children': ([WriteFolderRequest], none_type,), # noqa: E501
102102
}
103103

@@ -108,8 +108,8 @@ def discriminator():
108108

109109
attribute_map = {
110110
'name': 'name', # noqa: E501
111-
'parent_id': 'parent_id', # noqa: E501
112111
'default_permission': 'default_permission', # noqa: E501
112+
'parent_id': 'parent_id', # noqa: E501
113113
'children': 'children', # noqa: E501
114114
}
115115

@@ -157,8 +157,8 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501
157157
Animal class but this time we won't travel
158158
through its discriminator because we passed in
159159
_visited_composed_classes = (Animal,)
160-
parent_id (int, none_type): [optional] # noqa: E501
161160
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
161+
parent_id (int, none_type): [optional] # noqa: E501
162162
children ([WriteFolderRequest], none_type): [optional] # noqa: E501
163163
"""
164164

@@ -245,8 +245,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
245245
Animal class but this time we won't travel
246246
through its discriminator because we passed in
247247
_visited_composed_classes = (Animal,)
248-
parent_id (int, none_type): [optional] # noqa: E501
249248
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
249+
parent_id (int, none_type): [optional] # noqa: E501
250250
children ([WriteFolderRequest], none_type): [optional] # noqa: E501
251251
"""
252252

docs/CollaborationApi.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1482,9 +1482,9 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
14821482
id = 1 # int | A unique integer value identifying this project.
14831483
write_folder_request = [
14841484
WriteFolderRequest(
1485-
parent_id=1,
1486-
name="name_example",
14871485
default_permission=1,
1486+
name="name_example",
1487+
parent_id=1,
14881488
children=[
14891489
WriteFolderRequest(),
14901490
],
@@ -1541,7 +1541,7 @@ Name | Type | Description | Notes
15411541
15421542
Create a document
15431543

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

15461546
### Example
15471547

@@ -2301,6 +2301,7 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
23012301
visa_pk = 1 # int | A unique integer value identifying this visa.
23022302
visa_validation_request = VisaValidationRequest(
23032303
validator_id=1,
2304+
attachment=open('/path/to/file', 'rb'),
23042305
) # VisaValidationRequest |
23052306

23062307
# example passing only required values which don't have defaults set
@@ -11907,6 +11908,7 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
1190711908
visa_pk = 1 # int | A unique integer value identifying this visa.
1190811909
patched_visa_validation_request = PatchedVisaValidationRequest(
1190911910
validator_id=1,
11911+
attachment=open('/path/to/file', 'rb'),
1191011912
) # PatchedVisaValidationRequest | (optional)
1191111913

1191211914
# example passing only required values which don't have defaults set

docs/PatchedVisaValidationRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**validator_id** | **int** | This is the userproject_id | [optional]
8+
**attachment** | **file_type, none_type** | | [optional]
89
**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]
910

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

docs/VisaValidation.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Name | Type | Description | Notes
1111
**has_commented** | **bool** | Return True if validator has commented the visa | [readonly]
1212
**created_at** | **datetime** | | [readonly]
1313
**updated_at** | **datetime** | | [readonly]
14+
**attachment** | **str, none_type** | | [optional]
1415
**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]
1516

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

docs/VisaValidationRequest.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**validator_id** | **int** | This is the userproject_id |
8+
**attachment** | **file_type, none_type** | | [optional]
89
**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]
910

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

docs/WriteFolderRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**name** | **str** | Name of the folder |
8-
**parent_id** | **int, none_type** | | [optional]
98
**default_permission** | **int** | Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write | [optional]
9+
**parent_id** | **int, none_type** | | [optional]
1010
**children** | [**[WriteFolderRequest], none_type**](WriteFolderRequest.md) | | [optional]
1111
**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]
1212

0 commit comments

Comments
 (0)