Skip to content

Commit 5f4bd06

Browse files
committed
MINOR: Point cloud
1 parent 953bea9 commit 5f4bd06

File tree

14 files changed

+1115
-8
lines changed

14 files changed

+1115
-8
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -375,6 +375,7 @@ Class | Method | HTTP request | Description
375375
*IfcApi* | [**create_storey_deprecated**](docs/IfcApi.md#create_storey_deprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey | Create a storey of a model
376376
*IfcApi* | [**create_storey_plan_deprecated**](docs/IfcApi.md#create_storey_plan_deprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey/{storey_uuid}/plan/add | Create a relation between a 2d model and a storey
377377
*IfcApi* | [**create_system_deprecated**](docs/IfcApi.md#create_system_deprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/system | Create a system in the model
378+
*IfcApi* | [**create_tileset_deprecated**](docs/IfcApi.md#create_tileset_deprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/tileset | Create the tileset of the model and upload all files
378379
*IfcApi* | [**create_zone_deprecated**](docs/IfcApi.md#create_zone_deprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone | Create a zone in the model
379380
*IfcApi* | [**create_zone_space_deprecated**](docs/IfcApi.md#create_zone_space_deprecated) | **POST** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{zone_pk}/space | Create a space in a zone
380381
*IfcApi* | [**delete_access_token_deprecated**](docs/IfcApi.md#delete_access_token_deprecated) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/access_token/{token} | Delete a token
@@ -450,6 +451,7 @@ Class | Method | HTTP request | Description
450451
*IfcApi* | [**get_storeys_deprecated**](docs/IfcApi.md#get_storeys_deprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/storey | Retrieve all storeys of a model
451452
*IfcApi* | [**get_system_deprecated**](docs/IfcApi.md#get_system_deprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/system/{uuid} | Retrieve a system of a model
452453
*IfcApi* | [**get_systems_deprecated**](docs/IfcApi.md#get_systems_deprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/system | Retrieve all systems of a model
454+
*IfcApi* | [**get_tileset_deprecated**](docs/IfcApi.md#get_tileset_deprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/tileset | Retrieve the tileset of the model
453455
*IfcApi* | [**get_zone_deprecated**](docs/IfcApi.md#get_zone_deprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{id} | Retrieve one zone of a model
454456
*IfcApi* | [**get_zone_space_deprecated**](docs/IfcApi.md#get_zone_space_deprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{zone_pk}/space/{id} | Retrieve one space of a zone
455457
*IfcApi* | [**get_zone_spaces_deprecated**](docs/IfcApi.md#get_zone_spaces_deprecated) | **GET** /cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{zone_pk}/space | Retrieve all spaces of a zone
@@ -527,6 +529,7 @@ Class | Method | HTTP request | Description
527529
*ModelApi* | [**create_storey**](docs/ModelApi.md#create_storey) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/storey | Create a storey of a model
528530
*ModelApi* | [**create_storey_plan**](docs/ModelApi.md#create_storey_plan) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/storey/{storey_uuid}/plan/add | Create a relation between a 2d model and a storey
529531
*ModelApi* | [**create_system**](docs/ModelApi.md#create_system) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/system | Create a system in the model
532+
*ModelApi* | [**create_tileset**](docs/ModelApi.md#create_tileset) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{id}/tileset | Create the tileset of the model and upload all files
530533
*ModelApi* | [**create_zone**](docs/ModelApi.md#create_zone) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/zone | Create a zone in the model
531534
*ModelApi* | [**create_zone_space**](docs/ModelApi.md#create_zone_space) | **POST** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/zone/{zone_pk}/space | Create a space in a zone
532535
*ModelApi* | [**delete_access_token**](docs/ModelApi.md#delete_access_token) | **DELETE** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/access_token/{token} | Delete a token
@@ -596,6 +599,7 @@ Class | Method | HTTP request | Description
596599
*ModelApi* | [**get_storeys**](docs/ModelApi.md#get_storeys) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/storey | Retrieve all storeys of a model
597600
*ModelApi* | [**get_system**](docs/ModelApi.md#get_system) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/system/{uuid} | Retrieve a system of a model
598601
*ModelApi* | [**get_systems**](docs/ModelApi.md#get_systems) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/system | Retrieve all systems of a model
602+
*ModelApi* | [**get_tileset**](docs/ModelApi.md#get_tileset) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{id}/tileset | Retrieve the tileset of the model
599603
*ModelApi* | [**get_zone**](docs/ModelApi.md#get_zone) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/zone/{id} | Retrieve one zone of a model
600604
*ModelApi* | [**get_zone_space**](docs/ModelApi.md#get_zone_space) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/zone/{zone_pk}/space/{id} | Retrieve one space of a zone
601605
*ModelApi* | [**get_zone_spaces**](docs/ModelApi.md#get_zone_spaces) | **GET** /cloud/{cloud_pk}/project/{project_pk}/model/{model_pk}/zone/{zone_pk}/space | Retrieve all spaces of a zone

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7743,7 +7743,7 @@ def create_document(
77437743
):
77447744
"""Create a document # noqa: E501
77457745

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

bimdata_api_client/api/ifc_api.py

Lines changed: 314 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2916,6 +2916,70 @@ def __init__(self, api_client=None):
29162916
},
29172917
api_client=api_client
29182918
)
2919+
self.create_tileset_deprecated_endpoint = _Endpoint(
2920+
settings={
2921+
'response_type': None,
2922+
'auth': [
2923+
'ApiKey',
2924+
'BIMData_Connect',
2925+
'BIMData_Connect',
2926+
'Bearer'
2927+
],
2928+
'endpoint_path': '/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/tileset',
2929+
'operation_id': 'create_tileset_deprecated',
2930+
'http_method': 'POST',
2931+
'servers': None,
2932+
},
2933+
params_map={
2934+
'all': [
2935+
'cloud_pk',
2936+
'id',
2937+
'project_pk',
2938+
],
2939+
'required': [
2940+
'cloud_pk',
2941+
'id',
2942+
'project_pk',
2943+
],
2944+
'nullable': [
2945+
],
2946+
'enum': [
2947+
],
2948+
'validation': [
2949+
]
2950+
},
2951+
root_map={
2952+
'validations': {
2953+
},
2954+
'allowed_values': {
2955+
},
2956+
'openapi_types': {
2957+
'cloud_pk':
2958+
(int,),
2959+
'id':
2960+
(int,),
2961+
'project_pk':
2962+
(int,),
2963+
},
2964+
'attribute_map': {
2965+
'cloud_pk': 'cloud_pk',
2966+
'id': 'id',
2967+
'project_pk': 'project_pk',
2968+
},
2969+
'location_map': {
2970+
'cloud_pk': 'path',
2971+
'id': 'path',
2972+
'project_pk': 'path',
2973+
},
2974+
'collection_format_map': {
2975+
}
2976+
},
2977+
headers_map={
2978+
'accept': [],
2979+
'content_type': [],
2980+
},
2981+
api_client=api_client
2982+
)
29192983
self.create_zone_deprecated_endpoint = _Endpoint(
29202984
settings={
29212985
'response_type': ([Zone],),
@@ -7093,7 +7157,8 @@ def __init__(self, api_client=None):
70937157
"METABUILDING": "METABUILDING",
70947158
"OBJ": "OBJ",
70957159
"PDF": "PDF",
7096-
"PNG": "PNG"
7160+
"PNG": "PNG",
7161+
"POINT_CLOUD": "POINT_CLOUD"
70977162
},
70987163
},
70997164
'openapi_types': {
@@ -8395,6 +8460,81 @@ def __init__(self, api_client=None):
83958460
},
83968461
api_client=api_client
83978462
)
8463+
self.get_tileset_deprecated_endpoint = _Endpoint(
8464+
settings={
8465+
'response_type': None,
8466+
'auth': [
8467+
'ApiKey',
8468+
'BIMData_Connect',
8469+
'BIMData_Connect',
8470+
'Bearer'
8471+
],
8472+
'endpoint_path': '/cloud/{cloud_pk}/project/{project_pk}/ifc/{id}/tileset',
8473+
'operation_id': 'get_tileset_deprecated',
8474+
'http_method': 'GET',
8475+
'servers': None,
8476+
},
8477+
params_map={
8478+
'all': [
8479+
'cloud_pk',
8480+
'id',
8481+
'project_pk',
8482+
'tile_format',
8483+
],
8484+
'required': [
8485+
'cloud_pk',
8486+
'id',
8487+
'project_pk',
8488+
],
8489+
'nullable': [
8490+
],
8491+
'enum': [
8492+
'tile_format',
8493+
],
8494+
'validation': [
8495+
]
8496+
},
8497+
root_map={
8498+
'validations': {
8499+
},
8500+
'allowed_values': {
8501+
('tile_format',): {
8502+
8503+
"PNTS": "pnts",
8504+
"XKT": "xkt"
8505+
},
8506+
},
8507+
'openapi_types': {
8508+
'cloud_pk':
8509+
(int,),
8510+
'id':
8511+
(int,),
8512+
'project_pk':
8513+
(int,),
8514+
'tile_format':
8515+
(str,),
8516+
},
8517+
'attribute_map': {
8518+
'cloud_pk': 'cloud_pk',
8519+
'id': 'id',
8520+
'project_pk': 'project_pk',
8521+
'tile_format': 'tile_format',
8522+
},
8523+
'location_map': {
8524+
'cloud_pk': 'path',
8525+
'id': 'path',
8526+
'project_pk': 'path',
8527+
'tile_format': 'query',
8528+
},
8529+
'collection_format_map': {
8530+
}
8531+
},
8532+
headers_map={
8533+
'accept': [],
8534+
'content_type': [],
8535+
},
8536+
api_client=api_client
8537+
)
83988538
self.get_zone_deprecated_endpoint = _Endpoint(
83998539
settings={
84008540
'response_type': (Zone,),
@@ -15079,6 +15219,92 @@ def create_system_deprecated(
1507915219
system_request
1508015220
return self.create_system_deprecated_endpoint.call_with_http_info(**kwargs)
1508115221

15222+
def create_tileset_deprecated(
15223+
self,
15224+
cloud_pk,
15225+
id,
15226+
project_pk,
15227+
**kwargs
15228+
):
15229+
"""Create the tileset of the model and upload all files # noqa: E501
15230+
15231+
This route is internaly used by BIMData, you probably don't want to use it Required scopes: ifc:write, model:write # noqa: E501
15232+
This method makes a synchronous HTTP request by default. To make an
15233+
asynchronous HTTP request, please pass async_req=True
15234+
15235+
>>> thread = api.create_tileset_deprecated(cloud_pk, id, project_pk, async_req=True)
15236+
>>> result = thread.get()
15237+
15238+
Args:
15239+
cloud_pk (int):
15240+
id (int): A unique integer value identifying this model.
15241+
project_pk (int):
15242+
15243+
Keyword Args:
15244+
_return_http_data_only (bool): response data without head status
15245+
code and headers. Default is True.
15246+
_preload_content (bool): if False, the urllib3.HTTPResponse object
15247+
will be returned without reading/decoding response data.
15248+
Default is True.
15249+
_request_timeout (int/float/tuple): timeout setting for this request. If
15250+
one number provided, it will be total request timeout. It can also
15251+
be a pair (tuple) of (connection, read) timeouts.
15252+
Default is None.
15253+
_check_input_type (bool): specifies if type checking
15254+
should be done one the data sent to the server.
15255+
Default is True.
15256+
_check_return_type (bool): specifies if type checking
15257+
should be done one the data received from the server.
15258+
Default is True.
15259+
_spec_property_naming (bool): True if the variable names in the input data
15260+
are serialized names, as specified in the OpenAPI document.
15261+
False if the variable names in the input data
15262+
are pythonic names, e.g. snake case (default)
15263+
_content_type (str/None): force body content-type.
15264+
Default is None and content-type will be predicted by allowed
15265+
content-types and body.
15266+
_host_index (int/None): specifies the index of the server
15267+
that we want to use.
15268+
Default is read from the configuration.
15269+
async_req (bool): execute request asynchronously
15270+
15271+
Returns:
15272+
None
15273+
If the method is called asynchronously, returns the request
15274+
thread.
15275+
"""
15276+
kwargs['async_req'] = kwargs.get(
15277+
'async_req', False
15278+
)
15279+
kwargs['_return_http_data_only'] = kwargs.get(
15280+
'_return_http_data_only', True
15281+
)
15282+
kwargs['_preload_content'] = kwargs.get(
15283+
'_preload_content', True
15284+
)
15285+
kwargs['_request_timeout'] = kwargs.get(
15286+
'_request_timeout', None
15287+
)
15288+
kwargs['_check_input_type'] = kwargs.get(
15289+
'_check_input_type', True
15290+
)
15291+
kwargs['_check_return_type'] = kwargs.get(
15292+
'_check_return_type', True
15293+
)
15294+
kwargs['_spec_property_naming'] = kwargs.get(
15295+
'_spec_property_naming', False
15296+
)
15297+
kwargs['_content_type'] = kwargs.get(
15298+
'_content_type')
15299+
kwargs['_host_index'] = kwargs.get('_host_index')
15300+
kwargs['cloud_pk'] = \
15301+
cloud_pk
15302+
kwargs['id'] = \
15303+
id
15304+
kwargs['project_pk'] = \
15305+
project_pk
15306+
return self.create_tileset_deprecated_endpoint.call_with_http_info(**kwargs)
15307+
1508215308
def create_zone_deprecated(
1508315309
self,
1508415310
cloud_pk,
@@ -21851,6 +22077,93 @@ def get_systems_deprecated(
2185122077
project_pk
2185222078
return self.get_systems_deprecated_endpoint.call_with_http_info(**kwargs)
2185322079

22080+
def get_tileset_deprecated(
22081+
self,
22082+
cloud_pk,
22083+
id,
22084+
project_pk,
22085+
**kwargs
22086+
):
22087+
"""Retrieve the tileset of the model # noqa: E501
22088+
22089+
This is only availble if the model is a POINT_CLOUD Required scopes: ifc:read, model:read # noqa: E501
22090+
This method makes a synchronous HTTP request by default. To make an
22091+
asynchronous HTTP request, please pass async_req=True
22092+
22093+
>>> thread = api.get_tileset_deprecated(cloud_pk, id, project_pk, async_req=True)
22094+
>>> result = thread.get()
22095+
22096+
Args:
22097+
cloud_pk (int):
22098+
id (int): A unique integer value identifying this model.
22099+
project_pk (int):
22100+
22101+
Keyword Args:
22102+
tile_format (str): [optional] if omitted the server will use the default value of "pnts"
22103+
_return_http_data_only (bool): response data without head status
22104+
code and headers. Default is True.
22105+
_preload_content (bool): if False, the urllib3.HTTPResponse object
22106+
will be returned without reading/decoding response data.
22107+
Default is True.
22108+
_request_timeout (int/float/tuple): timeout setting for this request. If
22109+
one number provided, it will be total request timeout. It can also
22110+
be a pair (tuple) of (connection, read) timeouts.
22111+
Default is None.
22112+
_check_input_type (bool): specifies if type checking
22113+
should be done one the data sent to the server.
22114+
Default is True.
22115+
_check_return_type (bool): specifies if type checking
22116+
should be done one the data received from the server.
22117+
Default is True.
22118+
_spec_property_naming (bool): True if the variable names in the input data
22119+
are serialized names, as specified in the OpenAPI document.
22120+
False if the variable names in the input data
22121+
are pythonic names, e.g. snake case (default)
22122+
_content_type (str/None): force body content-type.
22123+
Default is None and content-type will be predicted by allowed
22124+
content-types and body.
22125+
_host_index (int/None): specifies the index of the server
22126+
that we want to use.
22127+
Default is read from the configuration.
22128+
async_req (bool): execute request asynchronously
22129+
22130+
Returns:
22131+
None
22132+
If the method is called asynchronously, returns the request
22133+
thread.
22134+
"""
22135+
kwargs['async_req'] = kwargs.get(
22136+
'async_req', False
22137+
)
22138+
kwargs['_return_http_data_only'] = kwargs.get(
22139+
'_return_http_data_only', True
22140+
)
22141+
kwargs['_preload_content'] = kwargs.get(
22142+
'_preload_content', True
22143+
)
22144+
kwargs['_request_timeout'] = kwargs.get(
22145+
'_request_timeout', None
22146+
)
22147+
kwargs['_check_input_type'] = kwargs.get(
22148+
'_check_input_type', True
22149+
)
22150+
kwargs['_check_return_type'] = kwargs.get(
22151+
'_check_return_type', True
22152+
)
22153+
kwargs['_spec_property_naming'] = kwargs.get(
22154+
'_spec_property_naming', False
22155+
)
22156+
kwargs['_content_type'] = kwargs.get(
22157+
'_content_type')
22158+
kwargs['_host_index'] = kwargs.get('_host_index')
22159+
kwargs['cloud_pk'] = \
22160+
cloud_pk
22161+
kwargs['id'] = \
22162+
id
22163+
kwargs['project_pk'] = \
22164+
project_pk
22165+
return self.get_tileset_deprecated_endpoint.call_with_http_info(**kwargs)
22166+
2185422167
def get_zone_deprecated(
2185522168
self,
2185622169
cloud_pk,

0 commit comments

Comments
 (0)