|
87 | 87 | from bimdata_api_client.model.zone import Zone |
88 | 88 | from bimdata_api_client.model.zone_request import ZoneRequest |
89 | 89 | from bimdata_api_client.model.zone_space import ZoneSpace |
| 90 | +from bimdata_api_client.model.zone_space_relation_request import ZoneSpaceRelationRequest |
90 | 91 | from bimdata_api_client.model.zone_space_request import ZoneSpaceRequest |
91 | 92 |
|
92 | 93 |
|
@@ -175,6 +176,87 @@ def __init__(self, api_client=None): |
175 | 176 | }, |
176 | 177 | api_client=api_client |
177 | 178 | ) |
| 179 | + self.add_zone_space_deprecated_endpoint = _Endpoint( |
| 180 | + settings={ |
| 181 | + 'response_type': (ZoneSpace,), |
| 182 | + 'auth': [ |
| 183 | + 'ApiKey', |
| 184 | + 'BIMData_Connect', |
| 185 | + 'BIMData_Connect', |
| 186 | + 'Bearer' |
| 187 | + ], |
| 188 | + 'endpoint_path': '/cloud/{cloud_pk}/project/{project_pk}/ifc/{ifc_pk}/zone/{zone_pk}/space/add', |
| 189 | + 'operation_id': 'add_zone_space_deprecated', |
| 190 | + 'http_method': 'POST', |
| 191 | + 'servers': None, |
| 192 | + }, |
| 193 | + params_map={ |
| 194 | + 'all': [ |
| 195 | + 'cloud_pk', |
| 196 | + 'ifc_pk', |
| 197 | + 'project_pk', |
| 198 | + 'zone_pk', |
| 199 | + 'zone_space_relation_request', |
| 200 | + ], |
| 201 | + 'required': [ |
| 202 | + 'cloud_pk', |
| 203 | + 'ifc_pk', |
| 204 | + 'project_pk', |
| 205 | + 'zone_pk', |
| 206 | + 'zone_space_relation_request', |
| 207 | + ], |
| 208 | + 'nullable': [ |
| 209 | + ], |
| 210 | + 'enum': [ |
| 211 | + ], |
| 212 | + 'validation': [ |
| 213 | + ] |
| 214 | + }, |
| 215 | + root_map={ |
| 216 | + 'validations': { |
| 217 | + }, |
| 218 | + 'allowed_values': { |
| 219 | + }, |
| 220 | + 'openapi_types': { |
| 221 | + 'cloud_pk': |
| 222 | + (int,), |
| 223 | + 'ifc_pk': |
| 224 | + (int,), |
| 225 | + 'project_pk': |
| 226 | + (int,), |
| 227 | + 'zone_pk': |
| 228 | + (int,), |
| 229 | + 'zone_space_relation_request': |
| 230 | + (ZoneSpaceRelationRequest,), |
| 231 | + }, |
| 232 | + 'attribute_map': { |
| 233 | + 'cloud_pk': 'cloud_pk', |
| 234 | + 'ifc_pk': 'ifc_pk', |
| 235 | + 'project_pk': 'project_pk', |
| 236 | + 'zone_pk': 'zone_pk', |
| 237 | + }, |
| 238 | + 'location_map': { |
| 239 | + 'cloud_pk': 'path', |
| 240 | + 'ifc_pk': 'path', |
| 241 | + 'project_pk': 'path', |
| 242 | + 'zone_pk': 'path', |
| 243 | + 'zone_space_relation_request': 'body', |
| 244 | + }, |
| 245 | + 'collection_format_map': { |
| 246 | + } |
| 247 | + }, |
| 248 | + headers_map={ |
| 249 | + 'accept': [ |
| 250 | + 'application/json' |
| 251 | + ], |
| 252 | + 'content_type': [ |
| 253 | + 'application/json', |
| 254 | + 'application/x-www-form-urlencoded', |
| 255 | + 'multipart/form-data' |
| 256 | + ] |
| 257 | + }, |
| 258 | + api_client=api_client |
| 259 | + ) |
178 | 260 | self.bulk_delete_ifc_classifications_deprecated_endpoint = _Endpoint( |
179 | 261 | settings={ |
180 | 262 | 'response_type': None, |
@@ -11352,6 +11434,100 @@ def add_ifc_errors_deprecated( |
11352 | 11434 | project_pk |
11353 | 11435 | return self.add_ifc_errors_deprecated_endpoint.call_with_http_info(**kwargs) |
11354 | 11436 |
|
| 11437 | + def add_zone_space_deprecated( |
| 11438 | + self, |
| 11439 | + cloud_pk, |
| 11440 | + ifc_pk, |
| 11441 | + project_pk, |
| 11442 | + zone_pk, |
| 11443 | + zone_space_relation_request, |
| 11444 | + **kwargs |
| 11445 | + ): |
| 11446 | + """Add a space to a zone # noqa: E501 |
| 11447 | + |
| 11448 | + Add a space to a zone. The IFC file will not be updated. The created space will be accessible over the API and when exporting an IFC file Required scopes: ifc:write, model:write # noqa: E501 |
| 11449 | + This method makes a synchronous HTTP request by default. To make an |
| 11450 | + asynchronous HTTP request, please pass async_req=True |
| 11451 | + |
| 11452 | + >>> thread = api.add_zone_space_deprecated(cloud_pk, ifc_pk, project_pk, zone_pk, zone_space_relation_request, async_req=True) |
| 11453 | + >>> result = thread.get() |
| 11454 | + |
| 11455 | + Args: |
| 11456 | + cloud_pk (int): A unique integer value identifying this cloud. |
| 11457 | + ifc_pk (int): A unique integer value identifying this model. |
| 11458 | + project_pk (int): A unique integer value identifying this project. |
| 11459 | + zone_pk (int): A unique integer value identifying this zone. |
| 11460 | + zone_space_relation_request (ZoneSpaceRelationRequest): |
| 11461 | + |
| 11462 | + Keyword Args: |
| 11463 | + _return_http_data_only (bool): response data without head status |
| 11464 | + code and headers. Default is True. |
| 11465 | + _preload_content (bool): if False, the urllib3.HTTPResponse object |
| 11466 | + will be returned without reading/decoding response data. |
| 11467 | + Default is True. |
| 11468 | + _request_timeout (int/float/tuple): timeout setting for this request. If |
| 11469 | + one number provided, it will be total request timeout. It can also |
| 11470 | + be a pair (tuple) of (connection, read) timeouts. |
| 11471 | + Default is None. |
| 11472 | + _check_input_type (bool): specifies if type checking |
| 11473 | + should be done one the data sent to the server. |
| 11474 | + Default is True. |
| 11475 | + _check_return_type (bool): specifies if type checking |
| 11476 | + should be done one the data received from the server. |
| 11477 | + Default is True. |
| 11478 | + _spec_property_naming (bool): True if the variable names in the input data |
| 11479 | + are serialized names, as specified in the OpenAPI document. |
| 11480 | + False if the variable names in the input data |
| 11481 | + are pythonic names, e.g. snake case (default) |
| 11482 | + _content_type (str/None): force body content-type. |
| 11483 | + Default is None and content-type will be predicted by allowed |
| 11484 | + content-types and body. |
| 11485 | + _host_index (int/None): specifies the index of the server |
| 11486 | + that we want to use. |
| 11487 | + Default is read from the configuration. |
| 11488 | + async_req (bool): execute request asynchronously |
| 11489 | + |
| 11490 | + Returns: |
| 11491 | + ZoneSpace |
| 11492 | + If the method is called asynchronously, returns the request |
| 11493 | + thread. |
| 11494 | + """ |
| 11495 | + kwargs['async_req'] = kwargs.get( |
| 11496 | + 'async_req', False |
| 11497 | + ) |
| 11498 | + kwargs['_return_http_data_only'] = kwargs.get( |
| 11499 | + '_return_http_data_only', True |
| 11500 | + ) |
| 11501 | + kwargs['_preload_content'] = kwargs.get( |
| 11502 | + '_preload_content', True |
| 11503 | + ) |
| 11504 | + kwargs['_request_timeout'] = kwargs.get( |
| 11505 | + '_request_timeout', None |
| 11506 | + ) |
| 11507 | + kwargs['_check_input_type'] = kwargs.get( |
| 11508 | + '_check_input_type', True |
| 11509 | + ) |
| 11510 | + kwargs['_check_return_type'] = kwargs.get( |
| 11511 | + '_check_return_type', True |
| 11512 | + ) |
| 11513 | + kwargs['_spec_property_naming'] = kwargs.get( |
| 11514 | + '_spec_property_naming', False |
| 11515 | + ) |
| 11516 | + kwargs['_content_type'] = kwargs.get( |
| 11517 | + '_content_type') |
| 11518 | + kwargs['_host_index'] = kwargs.get('_host_index') |
| 11519 | + kwargs['cloud_pk'] = \ |
| 11520 | + cloud_pk |
| 11521 | + kwargs['ifc_pk'] = \ |
| 11522 | + ifc_pk |
| 11523 | + kwargs['project_pk'] = \ |
| 11524 | + project_pk |
| 11525 | + kwargs['zone_pk'] = \ |
| 11526 | + zone_pk |
| 11527 | + kwargs['zone_space_relation_request'] = \ |
| 11528 | + zone_space_relation_request |
| 11529 | + return self.add_zone_space_deprecated_endpoint.call_with_http_info(**kwargs) |
| 11530 | + |
11355 | 11531 | def bulk_delete_ifc_classifications_deprecated( |
11356 | 11532 | self, |
11357 | 11533 | cloud_pk, |
@@ -16369,9 +16545,9 @@ def delete_zone_space_deprecated( |
16369 | 16545 | zone_pk, |
16370 | 16546 | **kwargs |
16371 | 16547 | ): |
16372 | | - """Delete a space of a zone # noqa: E501 |
| 16548 | + """Delete the relation between a space and a zone # noqa: E501 |
16373 | 16549 |
|
16374 | | - The IFC file will not be updated. The remaining spaces are available in API and will be available when exporting an IFC file Required scopes: ifc:write, model:write # noqa: E501 |
| 16550 | + Delete the relation between a space and a zone. The IFC file will not be updated. The remaining spaces are available in API and will be available when exporting an IFC file Required scopes: ifc:write, model:write # noqa: E501 |
16375 | 16551 | This method makes a synchronous HTTP request by default. To make an |
16376 | 16552 | asynchronous HTTP request, please pass async_req=True |
16377 | 16553 |
|
|
0 commit comments