Skip to content

Commit 36ae8df

Browse files
committed
MINOR: use without_urls instead of with_urls /dms-tree
1 parent 92ee877 commit 36ae8df

File tree

10 files changed

+62
-62
lines changed

10 files changed

+62
-62
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4889,7 +4889,7 @@ def __init__(self, api_client=None):
48894889
'all': [
48904890
'cloud_pk',
48914891
'id',
4892-
'with_urls',
4892+
'without_urls',
48934893
],
48944894
'required': [
48954895
'cloud_pk',
@@ -4898,7 +4898,7 @@ def __init__(self, api_client=None):
48984898
'nullable': [
48994899
],
49004900
'enum': [
4901-
'with_urls',
4901+
'without_urls',
49024902
],
49034903
'validation': [
49044904
]
@@ -4907,7 +4907,7 @@ def __init__(self, api_client=None):
49074907
'validations': {
49084908
},
49094909
'allowed_values': {
4910-
('with_urls',): {
4910+
('without_urls',): {
49114911

49124912
"FALSE": "false",
49134913
"TRUE": "true"
@@ -4918,18 +4918,18 @@ def __init__(self, api_client=None):
49184918
(int,),
49194919
'id':
49204920
(int,),
4921-
'with_urls':
4921+
'without_urls':
49224922
(str,),
49234923
},
49244924
'attribute_map': {
49254925
'cloud_pk': 'cloud_pk',
49264926
'id': 'id',
4927-
'with_urls': 'with_urls',
4927+
'without_urls': 'without_urls',
49284928
},
49294929
'location_map': {
49304930
'cloud_pk': 'path',
49314931
'id': 'path',
4932-
'with_urls': 'query',
4932+
'without_urls': 'query',
49334933
},
49344934
'collection_format_map': {
49354935
}
@@ -9344,7 +9344,7 @@ def create_document(
93449344
):
93459345
"""Create a document # noqa: E501
93469346

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

@@ -13678,7 +13678,7 @@ def get_project_dms_tree(
1367813678
id (int): A unique integer value identifying this project.
1367913679

1368013680
Keyword Args:
13681-
with_urls (str): By default, `file` and `office_preview` fields are set to None for performance reasons. If you want those fields, set `?with_urls=true`. . [optional]
13681+
without_urls (str): Serializing many file fields is slow and CPU heavy. If you don't need those fields, you can skip them. File fields will be set to None, even if they are set. . [optional]
1368213682
_return_http_data_only (bool): response data without head status
1368313683
code and headers. Default is True.
1368413684
_preload_content (bool): if False, the urllib3.HTTPResponse object

bimdata_api_client/model/document_text.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ class DocumentText(ModelNormal):
5858
allowed_values = {
5959
('language',): {
6060
'None': None,
61-
'ENGLISH': "english",
62-
'SPANISH': "spanish",
6361
'FRENCH': "french",
64-
'ITALIAN': "italian",
62+
'SPANISH': "spanish",
6563
'GERMAN': "german",
64+
'ITALIAN': "italian",
65+
'ENGLISH': "english",
6666
'NULL': "null",
6767
},
6868
}
@@ -153,7 +153,7 @@ def _from_openapi_data(cls, id, *args, **kwargs): # noqa: E501
153153
through its discriminator because we passed in
154154
_visited_composed_classes = (Animal,)
155155
text (str, none_type): The full text representation of a document if the feature is enabled and the file format supported. [optional] # noqa: E501
156-
language (str, none_type): * `english` - english * `spanish` - spanish * `french` - french * `italian` - italian * `german` - german. [optional] # noqa: E501
156+
language (str, none_type): * `french` - french * `spanish` - spanish * `german` - german * `italian` - italian * `english` - english. [optional] # noqa: E501
157157
"""
158158

159159
_check_type = kwargs.pop('_check_type', True)
@@ -237,7 +237,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
237237
through its discriminator because we passed in
238238
_visited_composed_classes = (Animal,)
239239
text (str, none_type): The full text representation of a document if the feature is enabled and the file format supported. [optional] # noqa: E501
240-
language (str, none_type): * `english` - english * `spanish` - spanish * `french` - french * `italian` - italian * `german` - german. [optional] # noqa: E501
240+
language (str, none_type): * `french` - french * `spanish` - spanish * `german` - german * `italian` - italian * `english` - english. [optional] # noqa: E501
241241
"""
242242

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

bimdata_api_client/model/patched_document_text_request.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,11 +58,11 @@ class PatchedDocumentTextRequest(ModelNormal):
5858
allowed_values = {
5959
('language',): {
6060
'None': None,
61-
'ENGLISH': "english",
62-
'SPANISH': "spanish",
6361
'FRENCH': "french",
64-
'ITALIAN': "italian",
62+
'SPANISH': "spanish",
6563
'GERMAN': "german",
64+
'ITALIAN': "italian",
65+
'ENGLISH': "english",
6666
'NULL': "null",
6767
},
6868
}
@@ -147,7 +147,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
147147
through its discriminator because we passed in
148148
_visited_composed_classes = (Animal,)
149149
text (str, none_type): The full text representation of a document if the feature is enabled and the file format supported. [optional] # noqa: E501
150-
language (str, none_type): * `english` - english * `spanish` - spanish * `french` - french * `italian` - italian * `german` - german. [optional] # noqa: E501
150+
language (str, none_type): * `french` - french * `spanish` - spanish * `german` - german * `italian` - italian * `english` - english. [optional] # noqa: E501
151151
"""
152152

153153
_check_type = kwargs.pop('_check_type', True)
@@ -230,7 +230,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
230230
through its discriminator because we passed in
231231
_visited_composed_classes = (Animal,)
232232
text (str, none_type): The full text representation of a document if the feature is enabled and the file format supported. [optional] # noqa: E501
233-
language (str, none_type): * `english` - english * `spanish` - spanish * `french` - french * `italian` - italian * `german` - german. [optional] # noqa: E501
233+
language (str, none_type): * `french` - french * `spanish` - spanish * `german` - german * `italian` - italian * `english` - english. [optional] # noqa: E501
234234
"""
235235

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

bimdata_api_client/model/write_folder.py

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -108,16 +108,16 @@ def openapi_types():
108108
lazy_import()
109109
return {
110110
'created_by': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
111-
'id': (int,), # noqa: E501
111+
'nature': (str,), # noqa: E501
112112
'updated_at': (datetime,), # noqa: E501
113-
'type': (str,), # noqa: E501
114-
'user_permission': (int,), # noqa: E501
115113
'groups_permissions': ([GroupFolderRead],), # noqa: E501
116-
'nature': (str,), # noqa: E501
114+
'user_permission': (int,), # noqa: E501
117115
'name': (str,), # noqa: E501
118116
'created_at': (datetime,), # noqa: E501
119-
'parent_id': (int, none_type,), # noqa: E501
117+
'type': (str,), # noqa: E501
118+
'id': (int,), # noqa: E501
120119
'default_permission': (int,), # noqa: E501
120+
'parent_id': (int, none_type,), # noqa: E501
121121
'children': ([WriteFolder], none_type,), # noqa: E501
122122
}
123123

@@ -128,47 +128,47 @@ def discriminator():
128128

129129
attribute_map = {
130130
'created_by': 'created_by', # noqa: E501
131-
'id': 'id', # noqa: E501
131+
'nature': 'nature', # noqa: E501
132132
'updated_at': 'updated_at', # noqa: E501
133-
'type': 'type', # noqa: E501
134-
'user_permission': 'user_permission', # noqa: E501
135133
'groups_permissions': 'groups_permissions', # noqa: E501
136-
'nature': 'nature', # noqa: E501
134+
'user_permission': 'user_permission', # noqa: E501
137135
'name': 'name', # noqa: E501
138136
'created_at': 'created_at', # noqa: E501
139-
'parent_id': 'parent_id', # noqa: E501
137+
'type': 'type', # noqa: E501
138+
'id': 'id', # noqa: E501
140139
'default_permission': 'default_permission', # noqa: E501
140+
'parent_id': 'parent_id', # noqa: E501
141141
'children': 'children', # noqa: E501
142142
}
143143

144144
read_only_vars = {
145145
'created_by', # noqa: E501
146-
'id', # noqa: E501
146+
'nature', # noqa: E501
147147
'updated_at', # noqa: E501
148-
'type', # noqa: E501
149-
'user_permission', # noqa: E501
150148
'groups_permissions', # noqa: E501
151-
'nature', # noqa: E501
149+
'user_permission', # noqa: E501
152150
'created_at', # noqa: E501
151+
'type', # noqa: E501
152+
'id', # noqa: E501
153153
}
154154

155155
_composed_schemas = {}
156156

157157
@classmethod
158158
@convert_js_args_to_python_args
159-
def _from_openapi_data(cls, created_by, id, updated_at, type, user_permission, groups_permissions, nature, name, created_at, *args, **kwargs): # noqa: E501
159+
def _from_openapi_data(cls, created_by, nature, updated_at, groups_permissions, user_permission, name, created_at, type, id, *args, **kwargs): # noqa: E501
160160
"""WriteFolder - a model defined in OpenAPI
161161
162162
Args:
163163
created_by (bool, date, datetime, dict, float, int, list, str, none_type):
164-
id (int):
164+
nature (str): Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
165165
updated_at (datetime): Date of the last update
166-
type (str): DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
167-
user_permission (int): Aggregate of group user permissions and folder default permission
168166
groups_permissions ([GroupFolderRead]): List of group permissions
169-
nature (str): Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
167+
user_permission (int): Aggregate of group user permissions and folder default permission
170168
name (str): Name of the folder
171169
created_at (datetime): Creation date
170+
type (str): DEPRECATED: Use 'nature' instead. Value is \"Folder\". It is usefull to parse the tree and discriminate folders and files
171+
id (int):
172172
173173
Keyword Args:
174174
_check_type (bool): if True, values for parameters in openapi_types
@@ -201,8 +201,8 @@ def _from_openapi_data(cls, created_by, id, updated_at, type, user_permission, g
201201
Animal class but this time we won't travel
202202
through its discriminator because we passed in
203203
_visited_composed_classes = (Animal,)
204-
parent_id (int, none_type): [optional] # noqa: E501
205204
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
205+
parent_id (int, none_type): [optional] # noqa: E501
206206
children ([WriteFolder], none_type): [optional] # noqa: E501
207207
"""
208208

@@ -232,14 +232,14 @@ def _from_openapi_data(cls, created_by, id, updated_at, type, user_permission, g
232232
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
233233

234234
self.created_by = created_by
235-
self.id = id
235+
self.nature = nature
236236
self.updated_at = updated_at
237-
self.type = type
238-
self.user_permission = user_permission
239237
self.groups_permissions = groups_permissions
240-
self.nature = nature
238+
self.user_permission = user_permission
241239
self.name = name
242240
self.created_at = created_at
241+
self.type = type
242+
self.id = id
243243
for var_name, var_value in kwargs.items():
244244
if var_name not in self.attribute_map and \
245245
self._configuration is not None and \
@@ -295,8 +295,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
295295
Animal class but this time we won't travel
296296
through its discriminator because we passed in
297297
_visited_composed_classes = (Animal,)
298-
parent_id (int, none_type): [optional] # noqa: E501
299298
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
299+
parent_id (int, none_type): [optional] # noqa: E501
300300
children ([WriteFolder], none_type): [optional] # noqa: E501
301301
"""
302302

bimdata_api_client/model/write_folder_request.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -102,8 +102,8 @@ def openapi_types():
102102
lazy_import()
103103
return {
104104
'name': (str,), # noqa: E501
105-
'parent_id': (int, none_type,), # noqa: E501
106105
'default_permission': (int,), # noqa: E501
106+
'parent_id': (int, none_type,), # noqa: E501
107107
'children': ([WriteFolder], none_type,), # noqa: E501
108108
}
109109

@@ -114,8 +114,8 @@ def discriminator():
114114

115115
attribute_map = {
116116
'name': 'name', # noqa: E501
117-
'parent_id': 'parent_id', # noqa: E501
118117
'default_permission': 'default_permission', # noqa: E501
118+
'parent_id': 'parent_id', # noqa: E501
119119
'children': 'children', # noqa: E501
120120
}
121121

@@ -163,8 +163,8 @@ def _from_openapi_data(cls, name, *args, **kwargs): # noqa: E501
163163
Animal class but this time we won't travel
164164
through its discriminator because we passed in
165165
_visited_composed_classes = (Animal,)
166-
parent_id (int, none_type): [optional] # noqa: E501
167166
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
167+
parent_id (int, none_type): [optional] # noqa: E501
168168
children ([WriteFolder], none_type): [optional] # noqa: E501
169169
"""
170170

@@ -251,8 +251,8 @@ def __init__(self, name, *args, **kwargs): # noqa: E501
251251
Animal class but this time we won't travel
252252
through its discriminator because we passed in
253253
_visited_composed_classes = (Animal,)
254-
parent_id (int, none_type): [optional] # noqa: E501
255254
default_permission (int): Permission for a Folder * `1` - denied * `50` - read_only * `100` - read_write. [optional] # noqa: E501
255+
parent_id (int, none_type): [optional] # noqa: E501
256256
children ([WriteFolder], none_type): [optional] # noqa: E501
257257
"""
258258

docs/CollaborationApi.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,14 +1808,14 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
18081808
id = 1 # int | A unique integer value identifying this project.
18091809
write_folder_request = [
18101810
WriteFolderRequest(
1811+
default_permission=1,
18111812
parent_id=1,
18121813
name="name_example",
1813-
default_permission=1,
18141814
children=[
18151815
WriteFolder(
1816+
default_permission=1,
18161817
parent_id=1,
18171818
name="name_example",
1818-
default_permission=1,
18191819
children=None,
18201820
),
18211821
],
@@ -1872,7 +1872,7 @@ Name | Type | Description | Notes
18721872

18731873
Create a document
18741874

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

18771877
### Example
18781878

@@ -7520,7 +7520,7 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
75207520
api_instance = collaboration_api.CollaborationApi(api_client)
75217521
cloud_pk = 1 # int |
75227522
id = 1 # int | A unique integer value identifying this project.
7523-
with_urls = "false" # str | By default, `file` and `office_preview` fields are set to None for performance reasons. If you want those fields, set `?with_urls=true`. (optional)
7523+
without_urls = "false" # str | Serializing many file fields is slow and CPU heavy. If you don't need those fields, you can skip them. File fields will be set to None, even if they are set. (optional)
75247524

75257525
# example passing only required values which don't have defaults set
75267526
try:
@@ -7534,7 +7534,7 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
75347534
# and optional values
75357535
try:
75367536
# Retrieve the complete DMS tree
7537-
api_response = api_instance.get_project_dms_tree(cloud_pk, id, with_urls=with_urls)
7537+
api_response = api_instance.get_project_dms_tree(cloud_pk, id, without_urls=without_urls)
75387538
pprint(api_response)
75397539
except bimdata_api_client.ApiException as e:
75407540
print("Exception when calling CollaborationApi->get_project_dms_tree: %s\n" % e)
@@ -7547,7 +7547,7 @@ Name | Type | Description | Notes
75477547
------------- | ------------- | ------------- | -------------
75487548
**cloud_pk** | **int**| |
75497549
**id** | **int**| A unique integer value identifying this project. |
7550-
**with_urls** | **str**| By default, `file` and `office_preview` fields are set to None for performance reasons. If you want those fields, set `?with_urls=true`. | [optional]
7550+
**without_urls** | **str**| Serializing many file fields is slow and CPU heavy. If you don't need those fields, you can skip them. File fields will be set to None, even if they are set. | [optional]
75517551

75527552
### Return type
75537553

@@ -11262,7 +11262,7 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
1126211262
project_pk = 1 # int | A unique integer value identifying this project.
1126311263
patched_document_text_request = PatchedDocumentTextRequest(
1126411264
text="text_example",
11265-
language="english",
11265+
language="french",
1126611266
) # PatchedDocumentTextRequest | (optional)
1126711267

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

docs/DocumentText.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**id** | **int** | | [readonly]
88
**text** | **str, none_type** | The full text representation of a document if the feature is enabled and the file format supported | [optional]
9-
**language** | **str, none_type** | * `english` - english * `spanish` - spanish * `french` - french * `italian` - italian * `german` - german | [optional]
9+
**language** | **str, none_type** | * `french` - french * `spanish` - spanish * `german` - german * `italian` - italian * `english` - english | [optional]
1010
**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]
1111

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