Skip to content

Commit 2907dd6

Browse files
committed
PATCH: rename request param in patch user cloud (#572)
1 parent bf0ec3f commit 2907dd6

4 files changed

Lines changed: 9 additions & 13 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', 'IFC', 'DXF', 'POINT_CLOUD', 'GLTF', 'DAE', 'DWG', 'BFX'}, 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 {'DWG', 'POINT_CLOUD', 'BFX', 'OBJ', 'IFC', 'DXF', 'DAE', 'GLTF'}, 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/patched_user_cloud_update_request.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,17 +56,13 @@ class PatchedUserCloudUpdateRequest(ModelNormal):
5656
"""
5757

5858
allowed_values = {
59-
('role',): {
59+
('cloud_role',): {
6060
'100': 100,
6161
'50': 50,
6262
},
6363
}
6464

6565
validations = {
66-
('role',): {
67-
'inclusive_maximum': 32767,
68-
'inclusive_minimum': -32768,
69-
},
7066
}
7167

7268
@cached_property
@@ -90,7 +86,7 @@ def openapi_types():
9086
and the value is attribute type.
9187
"""
9288
return {
93-
'role': (int,), # noqa: E501
89+
'cloud_role': (int,), # noqa: E501
9490
}
9591

9692
@cached_property
@@ -99,7 +95,7 @@ def discriminator():
9995

10096

10197
attribute_map = {
102-
'role': 'role', # noqa: E501
98+
'cloud_role': 'cloud_role', # noqa: E501
10399
}
104100

105101
read_only_vars = {
@@ -143,7 +139,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
143139
Animal class but this time we won't travel
144140
through its discriminator because we passed in
145141
_visited_composed_classes = (Animal,)
146-
role (int): Role of the user in the cloud. [optional] # noqa: E501
142+
cloud_role (int): [optional] # noqa: E501
147143
"""
148144

149145
_check_type = kwargs.pop('_check_type', True)
@@ -225,7 +221,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
225221
Animal class but this time we won't travel
226222
through its discriminator because we passed in
227223
_visited_composed_classes = (Animal,)
228-
role (int): Role of the user in the cloud. [optional] # noqa: E501
224+
cloud_role (int): [optional] # noqa: E501
229225
"""
230226

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

docs/CollaborationApi.md

Lines changed: 2 additions & 2 deletions
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', 'IFC', 'DXF', 'POINT_CLOUD', 'GLTF', 'DAE', 'DWG', 'BFX'}, a model will be created and attached to this document Required scopes: document:write
1421+
Create a document. If the document is one of {'DWG', 'POINT_CLOUD', 'BFX', 'OBJ', 'IFC', 'DXF', 'DAE', 'GLTF'}, a model will be created and attached to this document Required scopes: document:write
14221422

14231423
### Example
14241424

@@ -10096,7 +10096,7 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
1009610096
cloud_pk = 1 # int |
1009710097
id = 1 # int | A unique integer value identifying this fos user.
1009810098
patched_user_cloud_update_request = PatchedUserCloudUpdateRequest(
10099-
role=100,
10099+
cloud_role=100,
1010010100
) # PatchedUserCloudUpdateRequest | (optional)
1010110101

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

docs/PatchedUserCloudUpdateRequest.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
## Properties
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
7-
**role** | **int** | Role of the user in the cloud | [optional]
7+
**cloud_role** | **int** | | [optional]
88
**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]
99

1010
[[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)