|
45 | 45 | from bimdata_api_client.model.ifc_optimize_request import IfcOptimizeRequest |
46 | 46 | from bimdata_api_client.model.layer import Layer |
47 | 47 | from bimdata_api_client.model.layer_request import LayerRequest |
| 48 | +from bimdata_api_client.model.light_model import LightModel |
48 | 49 | from bimdata_api_client.model.mask2_d import Mask2D |
49 | 50 | from bimdata_api_client.model.mask2_d_request import Mask2DRequest |
50 | 51 | from bimdata_api_client.model.material import Material |
@@ -8247,6 +8248,119 @@ def __init__(self, api_client=None): |
8247 | 8248 | }, |
8248 | 8249 | api_client=api_client |
8249 | 8250 | ) |
| 8251 | + self.get_models_summary_endpoint = _Endpoint( |
| 8252 | + settings={ |
| 8253 | + 'response_type': ([LightModel],), |
| 8254 | + 'auth': [ |
| 8255 | + 'ApiKey', |
| 8256 | + 'BIMData_Connect', |
| 8257 | + 'BIMData_Connect', |
| 8258 | + 'Bearer' |
| 8259 | + ], |
| 8260 | + 'endpoint_path': '/cloud/{cloud_pk}/project/{project_pk}/model/summary', |
| 8261 | + 'operation_id': 'get_models_summary', |
| 8262 | + 'http_method': 'GET', |
| 8263 | + 'servers': None, |
| 8264 | + }, |
| 8265 | + params_map={ |
| 8266 | + 'all': [ |
| 8267 | + 'cloud_pk', |
| 8268 | + 'project_pk', |
| 8269 | + 'source', |
| 8270 | + 'status', |
| 8271 | + 'type', |
| 8272 | + ], |
| 8273 | + 'required': [ |
| 8274 | + 'cloud_pk', |
| 8275 | + 'project_pk', |
| 8276 | + ], |
| 8277 | + 'nullable': [ |
| 8278 | + ], |
| 8279 | + 'enum': [ |
| 8280 | + 'source', |
| 8281 | + 'status', |
| 8282 | + 'type', |
| 8283 | + ], |
| 8284 | + 'validation': [ |
| 8285 | + ] |
| 8286 | + }, |
| 8287 | + root_map={ |
| 8288 | + 'validations': { |
| 8289 | + }, |
| 8290 | + 'allowed_values': { |
| 8291 | + ('source',): { |
| 8292 | + |
| 8293 | + "EXPORT": "EXPORT", |
| 8294 | + "MERGE": "MERGE", |
| 8295 | + "OPTIMIZED": "OPTIMIZED", |
| 8296 | + "SPLIT": "SPLIT", |
| 8297 | + "UPLOAD": "UPLOAD" |
| 8298 | + }, |
| 8299 | + ('status',): { |
| 8300 | + |
| 8301 | + "C": "C", |
| 8302 | + "D": "D", |
| 8303 | + "E": "E", |
| 8304 | + "I": "I", |
| 8305 | + "P": "P", |
| 8306 | + "W": "W", |
| 8307 | + "X": "X" |
| 8308 | + }, |
| 8309 | + ('type',): { |
| 8310 | + |
| 8311 | + "DWG": "DWG", |
| 8312 | + "DXF": "DXF", |
| 8313 | + "GLTF": "GLTF", |
| 8314 | + "IFC": "IFC", |
| 8315 | + "JPEG": "JPEG", |
| 8316 | + "METABUILDING": "METABUILDING", |
| 8317 | + "OBJ": "OBJ", |
| 8318 | + "PDF": "PDF", |
| 8319 | + "PHOTOSPHERE": "PHOTOSPHERE", |
| 8320 | + "PHOTOSPHERE_BUILDING": "PHOTOSPHERE_BUILDING", |
| 8321 | + "PNG": "PNG", |
| 8322 | + "POINT_CLOUD": "POINT_CLOUD" |
| 8323 | + }, |
| 8324 | + }, |
| 8325 | + 'openapi_types': { |
| 8326 | + 'cloud_pk': |
| 8327 | + (int,), |
| 8328 | + 'project_pk': |
| 8329 | + (int,), |
| 8330 | + 'source': |
| 8331 | + (str,), |
| 8332 | + 'status': |
| 8333 | + ([str],), |
| 8334 | + 'type': |
| 8335 | + ([str],), |
| 8336 | + }, |
| 8337 | + 'attribute_map': { |
| 8338 | + 'cloud_pk': 'cloud_pk', |
| 8339 | + 'project_pk': 'project_pk', |
| 8340 | + 'source': 'source', |
| 8341 | + 'status': 'status', |
| 8342 | + 'type': 'type', |
| 8343 | + }, |
| 8344 | + 'location_map': { |
| 8345 | + 'cloud_pk': 'path', |
| 8346 | + 'project_pk': 'path', |
| 8347 | + 'source': 'query', |
| 8348 | + 'status': 'query', |
| 8349 | + 'type': 'query', |
| 8350 | + }, |
| 8351 | + 'collection_format_map': { |
| 8352 | + 'status': 'multi', |
| 8353 | + 'type': 'multi', |
| 8354 | + } |
| 8355 | + }, |
| 8356 | + headers_map={ |
| 8357 | + 'accept': [ |
| 8358 | + 'application/json' |
| 8359 | + ], |
| 8360 | + 'content_type': [], |
| 8361 | + }, |
| 8362 | + api_client=api_client |
| 8363 | + ) |
8250 | 8364 | self.get_positioned_model_endpoint = _Endpoint( |
8251 | 8365 | settings={ |
8252 | 8366 | 'response_type': (ModelOnModelPosition,), |
@@ -22963,6 +23077,91 @@ def get_models( |
22963 | 23077 | project_pk |
22964 | 23078 | return self.get_models_endpoint.call_with_http_info(**kwargs) |
22965 | 23079 |
|
| 23080 | + def get_models_summary( |
| 23081 | + self, |
| 23082 | + cloud_pk, |
| 23083 | + project_pk, |
| 23084 | + **kwargs |
| 23085 | + ): |
| 23086 | + """Retrieve all models summary # noqa: E501 |
| 23087 | + |
| 23088 | + Retrieve all models summary with a light payload. Required scopes: ifc:read, model:read # noqa: E501 |
| 23089 | + This method makes a synchronous HTTP request by default. To make an |
| 23090 | + asynchronous HTTP request, please pass async_req=True |
| 23091 | + |
| 23092 | + >>> thread = api.get_models_summary(cloud_pk, project_pk, async_req=True) |
| 23093 | + >>> result = thread.get() |
| 23094 | + |
| 23095 | + Args: |
| 23096 | + cloud_pk (int): |
| 23097 | + project_pk (int): |
| 23098 | + |
| 23099 | + Keyword Args: |
| 23100 | + source (str): * `UPLOAD` - UPLOAD * `SPLIT` - SPLIT * `MERGE` - MERGE * `EXPORT` - EXPORT * `OPTIMIZED` - OPTIMIZED. [optional] |
| 23101 | + status ([str]): * `C` - completed * `D` - deleted * `P` - pending * `W` - waiting * `I` - in process * `E` - errored * `X` - won't fix. [optional] |
| 23102 | + type ([str]): * `IFC` - IFC * `DWG` - DWG * `DXF` - DXF * `GLTF` - GLTF * `PDF` - PDF * `JPEG` - JPEG * `PNG` - PNG * `OBJ` - OBJ * `POINT_CLOUD` - POINT_CLOUD * `PHOTOSPHERE` - PHOTOSPHERE * `METABUILDING` - METABUILDING * `PHOTOSPHERE_BUILDING` - PHOTOSPHERE_BUILDING. [optional] |
| 23103 | + _return_http_data_only (bool): response data without head status |
| 23104 | + code and headers. Default is True. |
| 23105 | + _preload_content (bool): if False, the urllib3.HTTPResponse object |
| 23106 | + will be returned without reading/decoding response data. |
| 23107 | + Default is True. |
| 23108 | + _request_timeout (int/float/tuple): timeout setting for this request. If |
| 23109 | + one number provided, it will be total request timeout. It can also |
| 23110 | + be a pair (tuple) of (connection, read) timeouts. |
| 23111 | + Default is None. |
| 23112 | + _check_input_type (bool): specifies if type checking |
| 23113 | + should be done one the data sent to the server. |
| 23114 | + Default is True. |
| 23115 | + _check_return_type (bool): specifies if type checking |
| 23116 | + should be done one the data received from the server. |
| 23117 | + Default is True. |
| 23118 | + _spec_property_naming (bool): True if the variable names in the input data |
| 23119 | + are serialized names, as specified in the OpenAPI document. |
| 23120 | + False if the variable names in the input data |
| 23121 | + are pythonic names, e.g. snake case (default) |
| 23122 | + _content_type (str/None): force body content-type. |
| 23123 | + Default is None and content-type will be predicted by allowed |
| 23124 | + content-types and body. |
| 23125 | + _host_index (int/None): specifies the index of the server |
| 23126 | + that we want to use. |
| 23127 | + Default is read from the configuration. |
| 23128 | + async_req (bool): execute request asynchronously |
| 23129 | + |
| 23130 | + Returns: |
| 23131 | + [LightModel] |
| 23132 | + If the method is called asynchronously, returns the request |
| 23133 | + thread. |
| 23134 | + """ |
| 23135 | + kwargs['async_req'] = kwargs.get( |
| 23136 | + 'async_req', False |
| 23137 | + ) |
| 23138 | + kwargs['_return_http_data_only'] = kwargs.get( |
| 23139 | + '_return_http_data_only', True |
| 23140 | + ) |
| 23141 | + kwargs['_preload_content'] = kwargs.get( |
| 23142 | + '_preload_content', True |
| 23143 | + ) |
| 23144 | + kwargs['_request_timeout'] = kwargs.get( |
| 23145 | + '_request_timeout', None |
| 23146 | + ) |
| 23147 | + kwargs['_check_input_type'] = kwargs.get( |
| 23148 | + '_check_input_type', True |
| 23149 | + ) |
| 23150 | + kwargs['_check_return_type'] = kwargs.get( |
| 23151 | + '_check_return_type', True |
| 23152 | + ) |
| 23153 | + kwargs['_spec_property_naming'] = kwargs.get( |
| 23154 | + '_spec_property_naming', False |
| 23155 | + ) |
| 23156 | + kwargs['_content_type'] = kwargs.get( |
| 23157 | + '_content_type') |
| 23158 | + kwargs['_host_index'] = kwargs.get('_host_index') |
| 23159 | + kwargs['cloud_pk'] = \ |
| 23160 | + cloud_pk |
| 23161 | + kwargs['project_pk'] = \ |
| 23162 | + project_pk |
| 23163 | + return self.get_models_summary_endpoint.call_with_http_info(**kwargs) |
| 23164 | + |
22966 | 23165 | def get_positioned_model( |
22967 | 23166 | self, |
22968 | 23167 | cloud_pk, |
|
0 commit comments