Skip to content

Commit 2b6e416

Browse files
committed
MINOR: order in zones and spacezones
1 parent d76454f commit 2b6e416

19 files changed

+96
-74
lines changed

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8298,7 +8298,7 @@ def create_document(
82988298
):
82998299
"""Create a document # noqa: E501
83008300

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

bimdata_api_client/model/patched_zone_request.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@
3131

3232

3333
def lazy_import():
34-
from bimdata_api_client.model.space_request import SpaceRequest
3534
from bimdata_api_client.model.zone_request import ZoneRequest
36-
globals()['SpaceRequest'] = SpaceRequest
35+
from bimdata_api_client.model.zone_space_request import ZoneSpaceRequest
3736
globals()['ZoneRequest'] = ZoneRequest
37+
globals()['ZoneSpaceRequest'] = ZoneSpaceRequest
3838

3939

4040
class PatchedZoneRequest(ModelNormal):
@@ -75,6 +75,9 @@ class PatchedZoneRequest(ModelNormal):
7575
('color',): {
7676
'max_length': 8,
7777
},
78+
('order',): {
79+
'inclusive_minimum': 0,
80+
},
7881
}
7982

8083
@cached_property
@@ -104,8 +107,9 @@ def openapi_types():
104107
'uuid': (str,), # noqa: E501
105108
'zones': ([ZoneRequest],), # noqa: E501
106109
'parent_id': (int,), # noqa: E501
107-
'spaces': ([SpaceRequest],), # noqa: E501
110+
'spaces': ([ZoneSpaceRequest],), # noqa: E501
108111
'color': (str, none_type,), # noqa: E501
112+
'order': (int,), # noqa: E501
109113
}
110114

111115
@cached_property
@@ -120,6 +124,7 @@ def discriminator():
120124
'parent_id': 'parent_id', # noqa: E501
121125
'spaces': 'spaces', # noqa: E501
122126
'color': 'color', # noqa: E501
127+
'order': 'order', # noqa: E501
123128
}
124129

125130
read_only_vars = {
@@ -167,8 +172,9 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
167172
uuid (str): [optional] # noqa: E501
168173
zones ([ZoneRequest]): [optional] # noqa: E501
169174
parent_id (int): [optional] # noqa: E501
170-
spaces ([SpaceRequest]): [optional] # noqa: E501
175+
spaces ([ZoneSpaceRequest]): [optional] # noqa: E501
171176
color (str, none_type): [optional] # noqa: E501
177+
order (int): [optional] # noqa: E501
172178
"""
173179

174180
_check_type = kwargs.pop('_check_type', True)
@@ -254,8 +260,9 @@ def __init__(self, *args, **kwargs): # noqa: E501
254260
uuid (str): [optional] # noqa: E501
255261
zones ([ZoneRequest]): [optional] # noqa: E501
256262
parent_id (int): [optional] # noqa: E501
257-
spaces ([SpaceRequest]): [optional] # noqa: E501
263+
spaces ([ZoneSpaceRequest]): [optional] # noqa: E501
258264
color (str, none_type): [optional] # noqa: E501
265+
order (int): [optional] # noqa: E501
259266
"""
260267

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

bimdata_api_client/model/patched_zone_space_request.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ class PatchedZoneSpaceRequest(ModelNormal):
6969
'max_length': 512,
7070
'min_length': 1,
7171
},
72+
('order',): {
73+
'inclusive_minimum': 0,
74+
},
7275
}
7376

7477
@cached_property
@@ -95,6 +98,7 @@ def openapi_types():
9598
'name': (str, none_type,), # noqa: E501
9699
'longname': (str, none_type,), # noqa: E501
97100
'uuid': (str,), # noqa: E501
101+
'order': (int,), # noqa: E501
98102
}
99103

100104
@cached_property
@@ -106,6 +110,7 @@ def discriminator():
106110
'name': 'name', # noqa: E501
107111
'longname': 'longname', # noqa: E501
108112
'uuid': 'uuid', # noqa: E501
113+
'order': 'order', # noqa: E501
109114
}
110115

111116
read_only_vars = {
@@ -152,6 +157,7 @@ def _from_openapi_data(cls, *args, **kwargs): # noqa: E501
152157
name (str, none_type): [optional] # noqa: E501
153158
longname (str, none_type): [optional] # noqa: E501
154159
uuid (str): [optional] # noqa: E501
160+
order (int): [optional] # noqa: E501
155161
"""
156162

157163
_check_type = kwargs.pop('_check_type', True)
@@ -236,6 +242,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
236242
name (str, none_type): [optional] # noqa: E501
237243
longname (str, none_type): [optional] # noqa: E501
238244
uuid (str): [optional] # noqa: E501
245+
order (int): [optional] # noqa: E501
239246
"""
240247

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

bimdata_api_client/model/zone.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131

3232

3333
def lazy_import():
34-
from bimdata_api_client.model.space import Space
35-
globals()['Space'] = Space
34+
from bimdata_api_client.model.zone_space import ZoneSpace
35+
globals()['ZoneSpace'] = ZoneSpace
3636

3737

3838
class Zone(ModelNormal):
@@ -72,6 +72,9 @@ class Zone(ModelNormal):
7272
('color',): {
7373
'max_length': 8,
7474
},
75+
('order',): {
76+
'inclusive_minimum': 0,
77+
},
7578
}
7679

7780
@cached_property
@@ -104,8 +107,9 @@ def openapi_types():
104107
'name': (str, none_type,), # noqa: E501
105108
'zones': ([Zone],), # noqa: E501
106109
'parent_id': (int,), # noqa: E501
107-
'spaces': ([Space],), # noqa: E501
110+
'spaces': ([ZoneSpace],), # noqa: E501
108111
'color': (str, none_type,), # noqa: E501
112+
'order': (int,), # noqa: E501
109113
}
110114

111115
@cached_property
@@ -123,6 +127,7 @@ def discriminator():
123127
'parent_id': 'parent_id', # noqa: E501
124128
'spaces': 'spaces', # noqa: E501
125129
'color': 'color', # noqa: E501
130+
'order': 'order', # noqa: E501
126131
}
127132

128133
read_only_vars = {
@@ -178,8 +183,9 @@ def _from_openapi_data(cls, id, uuid, created_at, updated_at, *args, **kwargs):
178183
name (str, none_type): [optional] # noqa: E501
179184
zones ([Zone]): [optional] # noqa: E501
180185
parent_id (int): [optional] # noqa: E501
181-
spaces ([Space]): [optional] # noqa: E501
186+
spaces ([ZoneSpace]): [optional] # noqa: E501
182187
color (str, none_type): [optional] # noqa: E501
188+
order (int): [optional] # noqa: E501
183189
"""
184190

185191
_check_type = kwargs.pop('_check_type', True)
@@ -269,8 +275,9 @@ def __init__(self, uuid, *args, **kwargs): # noqa: E501
269275
name (str, none_type): [optional] # noqa: E501
270276
zones ([Zone]): [optional] # noqa: E501
271277
parent_id (int): [optional] # noqa: E501
272-
spaces ([Space]): [optional] # noqa: E501
278+
spaces ([ZoneSpace]): [optional] # noqa: E501
273279
color (str, none_type): [optional] # noqa: E501
280+
order (int): [optional] # noqa: E501
274281
"""
275282

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

bimdata_api_client/model/zone_request.py

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@
3131

3232

3333
def lazy_import():
34-
from bimdata_api_client.model.space_request import SpaceRequest
35-
globals()['SpaceRequest'] = SpaceRequest
34+
from bimdata_api_client.model.zone_space_request import ZoneSpaceRequest
35+
globals()['ZoneSpaceRequest'] = ZoneSpaceRequest
3636

3737

3838
class ZoneRequest(ModelNormal):
@@ -73,6 +73,9 @@ class ZoneRequest(ModelNormal):
7373
('color',): {
7474
'max_length': 8,
7575
},
76+
('order',): {
77+
'inclusive_minimum': 0,
78+
},
7679
}
7780

7881
@cached_property
@@ -102,8 +105,9 @@ def openapi_types():
102105
'name': (str, none_type,), # noqa: E501
103106
'zones': ([ZoneRequest],), # noqa: E501
104107
'parent_id': (int,), # noqa: E501
105-
'spaces': ([SpaceRequest],), # noqa: E501
108+
'spaces': ([ZoneSpaceRequest],), # noqa: E501
106109
'color': (str, none_type,), # noqa: E501
110+
'order': (int,), # noqa: E501
107111
}
108112

109113
@cached_property
@@ -118,6 +122,7 @@ def discriminator():
118122
'parent_id': 'parent_id', # noqa: E501
119123
'spaces': 'spaces', # noqa: E501
120124
'color': 'color', # noqa: E501
125+
'order': 'order', # noqa: E501
121126
}
122127

123128
read_only_vars = {
@@ -167,8 +172,9 @@ def _from_openapi_data(cls, uuid, *args, **kwargs): # noqa: E501
167172
name (str, none_type): [optional] # noqa: E501
168173
zones ([ZoneRequest]): [optional] # noqa: E501
169174
parent_id (int): [optional] # noqa: E501
170-
spaces ([SpaceRequest]): [optional] # noqa: E501
175+
spaces ([ZoneSpaceRequest]): [optional] # noqa: E501
171176
color (str, none_type): [optional] # noqa: E501
177+
order (int): [optional] # noqa: E501
172178
"""
173179

174180
_check_type = kwargs.pop('_check_type', True)
@@ -257,8 +263,9 @@ def __init__(self, uuid, *args, **kwargs): # noqa: E501
257263
name (str, none_type): [optional] # noqa: E501
258264
zones ([ZoneRequest]): [optional] # noqa: E501
259265
parent_id (int): [optional] # noqa: E501
260-
spaces ([SpaceRequest]): [optional] # noqa: E501
266+
spaces ([ZoneSpaceRequest]): [optional] # noqa: E501
261267
color (str, none_type): [optional] # noqa: E501
268+
order (int): [optional] # noqa: E501
262269
"""
263270

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

bimdata_api_client/model/zone_space.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ class ZoneSpace(ModelNormal):
6868
('longname',): {
6969
'max_length': 255,
7070
},
71+
('order',): {
72+
'inclusive_minimum': 0,
73+
},
7174
}
7275

7376
@cached_property
@@ -98,6 +101,7 @@ def openapi_types():
98101
'updated_at': (datetime,), # noqa: E501
99102
'name': (str, none_type,), # noqa: E501
100103
'longname': (str, none_type,), # noqa: E501
104+
'order': (int,), # noqa: E501
101105
}
102106

103107
@cached_property
@@ -113,6 +117,7 @@ def discriminator():
113117
'updated_at': 'updated_at', # noqa: E501
114118
'name': 'name', # noqa: E501
115119
'longname': 'longname', # noqa: E501
120+
'order': 'order', # noqa: E501
116121
}
117122

118123
read_only_vars = {
@@ -169,6 +174,7 @@ def _from_openapi_data(cls, id, uuid, zone_set, created_at, updated_at, *args, *
169174
_visited_composed_classes = (Animal,)
170175
name (str, none_type): [optional] # noqa: E501
171176
longname (str, none_type): [optional] # noqa: E501
177+
order (int): [optional] # noqa: E501
172178
"""
173179

174180
_check_type = kwargs.pop('_check_type', True)
@@ -258,6 +264,7 @@ def __init__(self, uuid, *args, **kwargs): # noqa: E501
258264
_visited_composed_classes = (Animal,)
259265
name (str, none_type): [optional] # noqa: E501
260266
longname (str, none_type): [optional] # noqa: E501
267+
order (int): [optional] # noqa: E501
261268
"""
262269

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

bimdata_api_client/model/zone_space_request.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,9 @@ class ZoneSpaceRequest(ModelNormal):
6969
('longname',): {
7070
'max_length': 255,
7171
},
72+
('order',): {
73+
'inclusive_minimum': 0,
74+
},
7275
}
7376

7477
@cached_property
@@ -95,6 +98,7 @@ def openapi_types():
9598
'uuid': (str,), # noqa: E501
9699
'name': (str, none_type,), # noqa: E501
97100
'longname': (str, none_type,), # noqa: E501
101+
'order': (int,), # noqa: E501
98102
}
99103

100104
@cached_property
@@ -106,6 +110,7 @@ def discriminator():
106110
'uuid': 'uuid', # noqa: E501
107111
'name': 'name', # noqa: E501
108112
'longname': 'longname', # noqa: E501
113+
'order': 'order', # noqa: E501
109114
}
110115

111116
read_only_vars = {
@@ -154,6 +159,7 @@ def _from_openapi_data(cls, uuid, *args, **kwargs): # noqa: E501
154159
_visited_composed_classes = (Animal,)
155160
name (str, none_type): [optional] # noqa: E501
156161
longname (str, none_type): [optional] # noqa: E501
162+
order (int): [optional] # noqa: E501
157163
"""
158164

159165
_check_type = kwargs.pop('_check_type', True)
@@ -241,6 +247,7 @@ def __init__(self, uuid, *args, **kwargs): # noqa: E501
241247
_visited_composed_classes = (Animal,)
242248
name (str, none_type): [optional] # noqa: E501
243249
longname (str, none_type): [optional] # noqa: E501
250+
order (int): [optional] # noqa: E501
244251
"""
245252

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

docs/CollaborationApi.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@ Name | Type | Description | Notes
15261526
15271527
Create a document
15281528

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

15311531
### Example
15321532

0 commit comments

Comments
 (0)