Skip to content

Commit 4bd519d

Browse files
committed
PATCH: add model.binary_2d_file field
1 parent b266f02 commit 4bd519d

16 files changed

Lines changed: 645 additions & 7 deletions

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,9 +190,11 @@ Class | Method | HTTP request | Description
190190
*BcfApi* | [**get_extensions**](docs/BcfApi.md#get_extensions) | **GET** /bcf/2.1/projects/{id}/extensions | Retrieve project extensions
191191
*BcfApi* | [**get_full_topic**](docs/BcfApi.md#get_full_topic) | **GET** /bcf/2.1/projects/{projects_pk}/full-topic/{guid} | Retrieve a full topic
192192
*BcfApi* | [**get_full_topics**](docs/BcfApi.md#get_full_topics) | **GET** /bcf/2.1/projects/{projects_pk}/full-topic | Retrieve all full topics
193+
*BcfApi* | [**get_related_topics**](docs/BcfApi.md#get_related_topics) | **GET** /bcf/2.1/projects/{projects_pk}/topics/{guid}/related_topics | Get all related topics
193194
*BcfApi* | [**get_selections**](docs/BcfApi.md#get_selections) | **GET** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{guid}/selection | Retrieve all selections of a viewpoint
194195
*BcfApi* | [**get_snapshot**](docs/BcfApi.md#get_snapshot) | **GET** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/viewpoints/{guid}/snapshot | Retrieve the viewpoint' snapshot
195196
*BcfApi* | [**get_topic**](docs/BcfApi.md#get_topic) | **GET** /bcf/2.1/projects/{projects_pk}/topics/{guid} | Retrieve a topic
197+
*BcfApi* | [**get_topic_document_references**](docs/BcfApi.md#get_topic_document_references) | **GET** /bcf/2.1/projects/{projects_pk}/topics/{guid}/document_references | Get all related documents
196198
*BcfApi* | [**get_topic_viewpoints**](docs/BcfApi.md#get_topic_viewpoints) | **GET** /bcf/2.1/projects/{projects_pk}/topics/{topics_guid}/topic-viewpoints | Retrieve all viewpoints attached to the topic
197199
*BcfApi* | [**get_topics**](docs/BcfApi.md#get_topics) | **GET** /bcf/2.1/projects/{projects_pk}/topics | Retrieve all topics
198200
*BcfApi* | [**get_user**](docs/BcfApi.md#get_user) | **GET** /bcf/2.1/current-user | Get current user info

bimdata_api_client/api/bcf_api.py

Lines changed: 324 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2258,6 +2258,83 @@ def __init__(self, api_client=None):
22582258
},
22592259
api_client=api_client
22602260
)
2261+
self.get_related_topics_endpoint = _Endpoint(
2262+
settings={
2263+
'response_type': ([str],),
2264+
'auth': [
2265+
'ApiKey',
2266+
'BIMData_Connect',
2267+
'BIMData_Connect',
2268+
'Bearer'
2269+
],
2270+
'endpoint_path': '/bcf/2.1/projects/{projects_pk}/topics/{guid}/related_topics',
2271+
'operation_id': 'get_related_topics',
2272+
'http_method': 'GET',
2273+
'servers': None,
2274+
},
2275+
params_map={
2276+
'all': [
2277+
'guid',
2278+
'projects_pk',
2279+
'format',
2280+
'ifcs',
2281+
'models',
2282+
],
2283+
'required': [
2284+
'guid',
2285+
'projects_pk',
2286+
],
2287+
'nullable': [
2288+
],
2289+
'enum': [
2290+
],
2291+
'validation': [
2292+
]
2293+
},
2294+
root_map={
2295+
'validations': {
2296+
},
2297+
'allowed_values': {
2298+
},
2299+
'openapi_types': {
2300+
'guid':
2301+
(str,),
2302+
'projects_pk':
2303+
(int,),
2304+
'format':
2305+
(str,),
2306+
'ifcs':
2307+
([int],),
2308+
'models':
2309+
([int],),
2310+
},
2311+
'attribute_map': {
2312+
'guid': 'guid',
2313+
'projects_pk': 'projects_pk',
2314+
'format': 'format',
2315+
'ifcs': 'ifcs',
2316+
'models': 'models',
2317+
},
2318+
'location_map': {
2319+
'guid': 'path',
2320+
'projects_pk': 'path',
2321+
'format': 'query',
2322+
'ifcs': 'query',
2323+
'models': 'query',
2324+
},
2325+
'collection_format_map': {
2326+
'ifcs': 'multi',
2327+
'models': 'multi',
2328+
}
2329+
},
2330+
headers_map={
2331+
'accept': [
2332+
'application/json'
2333+
],
2334+
'content_type': [],
2335+
},
2336+
api_client=api_client
2337+
)
22612338
self.get_selections_endpoint = _Endpoint(
22622339
settings={
22632340
'response_type': ([Component],),
@@ -2450,6 +2527,83 @@ def __init__(self, api_client=None):
24502527
},
24512528
api_client=api_client
24522529
)
2530+
self.get_topic_document_references_endpoint = _Endpoint(
2531+
settings={
2532+
'response_type': ([str],),
2533+
'auth': [
2534+
'ApiKey',
2535+
'BIMData_Connect',
2536+
'BIMData_Connect',
2537+
'Bearer'
2538+
],
2539+
'endpoint_path': '/bcf/2.1/projects/{projects_pk}/topics/{guid}/document_references',
2540+
'operation_id': 'get_topic_document_references',
2541+
'http_method': 'GET',
2542+
'servers': None,
2543+
},
2544+
params_map={
2545+
'all': [
2546+
'guid',
2547+
'projects_pk',
2548+
'format',
2549+
'ifcs',
2550+
'models',
2551+
],
2552+
'required': [
2553+
'guid',
2554+
'projects_pk',
2555+
],
2556+
'nullable': [
2557+
],
2558+
'enum': [
2559+
],
2560+
'validation': [
2561+
]
2562+
},
2563+
root_map={
2564+
'validations': {
2565+
},
2566+
'allowed_values': {
2567+
},
2568+
'openapi_types': {
2569+
'guid':
2570+
(str,),
2571+
'projects_pk':
2572+
(int,),
2573+
'format':
2574+
(str,),
2575+
'ifcs':
2576+
([int],),
2577+
'models':
2578+
([int],),
2579+
},
2580+
'attribute_map': {
2581+
'guid': 'guid',
2582+
'projects_pk': 'projects_pk',
2583+
'format': 'format',
2584+
'ifcs': 'ifcs',
2585+
'models': 'models',
2586+
},
2587+
'location_map': {
2588+
'guid': 'path',
2589+
'projects_pk': 'path',
2590+
'format': 'query',
2591+
'ifcs': 'query',
2592+
'models': 'query',
2593+
},
2594+
'collection_format_map': {
2595+
'ifcs': 'multi',
2596+
'models': 'multi',
2597+
}
2598+
},
2599+
headers_map={
2600+
'accept': [
2601+
'application/json'
2602+
],
2603+
'content_type': [],
2604+
},
2605+
api_client=api_client
2606+
)
24532607
self.get_topic_viewpoints_endpoint = _Endpoint(
24542608
settings={
24552609
'response_type': ([Viewpoint],),
@@ -6412,6 +6566,91 @@ def get_full_topics(
64126566
projects_pk
64136567
return self.get_full_topics_endpoint.call_with_http_info(**kwargs)
64146568

6569+
def get_related_topics(
6570+
self,
6571+
guid,
6572+
projects_pk,
6573+
**kwargs
6574+
):
6575+
"""Get all related topics # noqa: E501
6576+
6577+
This feature is not supported yet and will always respond with an empty array Required scopes: bcf:read # noqa: E501
6578+
This method makes a synchronous HTTP request by default. To make an
6579+
asynchronous HTTP request, please pass async_req=True
6580+
6581+
>>> thread = api.get_related_topics(guid, projects_pk, async_req=True)
6582+
>>> result = thread.get()
6583+
6584+
Args:
6585+
guid (str):
6586+
projects_pk (int):
6587+
6588+
Keyword Args:
6589+
format (str): [optional]
6590+
ifcs ([int]): [optional]
6591+
models ([int]): [optional]
6592+
_return_http_data_only (bool): response data without head status
6593+
code and headers. Default is True.
6594+
_preload_content (bool): if False, the urllib3.HTTPResponse object
6595+
will be returned without reading/decoding response data.
6596+
Default is True.
6597+
_request_timeout (int/float/tuple): timeout setting for this request. If
6598+
one number provided, it will be total request timeout. It can also
6599+
be a pair (tuple) of (connection, read) timeouts.
6600+
Default is None.
6601+
_check_input_type (bool): specifies if type checking
6602+
should be done one the data sent to the server.
6603+
Default is True.
6604+
_check_return_type (bool): specifies if type checking
6605+
should be done one the data received from the server.
6606+
Default is True.
6607+
_spec_property_naming (bool): True if the variable names in the input data
6608+
are serialized names, as specified in the OpenAPI document.
6609+
False if the variable names in the input data
6610+
are pythonic names, e.g. snake case (default)
6611+
_content_type (str/None): force body content-type.
6612+
Default is None and content-type will be predicted by allowed
6613+
content-types and body.
6614+
_host_index (int/None): specifies the index of the server
6615+
that we want to use.
6616+
Default is read from the configuration.
6617+
async_req (bool): execute request asynchronously
6618+
6619+
Returns:
6620+
[str]
6621+
If the method is called asynchronously, returns the request
6622+
thread.
6623+
"""
6624+
kwargs['async_req'] = kwargs.get(
6625+
'async_req', False
6626+
)
6627+
kwargs['_return_http_data_only'] = kwargs.get(
6628+
'_return_http_data_only', True
6629+
)
6630+
kwargs['_preload_content'] = kwargs.get(
6631+
'_preload_content', True
6632+
)
6633+
kwargs['_request_timeout'] = kwargs.get(
6634+
'_request_timeout', None
6635+
)
6636+
kwargs['_check_input_type'] = kwargs.get(
6637+
'_check_input_type', True
6638+
)
6639+
kwargs['_check_return_type'] = kwargs.get(
6640+
'_check_return_type', True
6641+
)
6642+
kwargs['_spec_property_naming'] = kwargs.get(
6643+
'_spec_property_naming', False
6644+
)
6645+
kwargs['_content_type'] = kwargs.get(
6646+
'_content_type')
6647+
kwargs['_host_index'] = kwargs.get('_host_index')
6648+
kwargs['guid'] = \
6649+
guid
6650+
kwargs['projects_pk'] = \
6651+
projects_pk
6652+
return self.get_related_topics_endpoint.call_with_http_info(**kwargs)
6653+
64156654
def get_selections(
64166655
self,
64176656
guid,
@@ -6666,6 +6905,91 @@ def get_topic(
66666905
projects_pk
66676906
return self.get_topic_endpoint.call_with_http_info(**kwargs)
66686907

6908+
def get_topic_document_references(
6909+
self,
6910+
guid,
6911+
projects_pk,
6912+
**kwargs
6913+
):
6914+
"""Get all related documents # noqa: E501
6915+
6916+
This feature is not supported yet and will always respond with an empty array Required scopes: bcf:read # noqa: E501
6917+
This method makes a synchronous HTTP request by default. To make an
6918+
asynchronous HTTP request, please pass async_req=True
6919+
6920+
>>> thread = api.get_topic_document_references(guid, projects_pk, async_req=True)
6921+
>>> result = thread.get()
6922+
6923+
Args:
6924+
guid (str):
6925+
projects_pk (int):
6926+
6927+
Keyword Args:
6928+
format (str): [optional]
6929+
ifcs ([int]): [optional]
6930+
models ([int]): [optional]
6931+
_return_http_data_only (bool): response data without head status
6932+
code and headers. Default is True.
6933+
_preload_content (bool): if False, the urllib3.HTTPResponse object
6934+
will be returned without reading/decoding response data.
6935+
Default is True.
6936+
_request_timeout (int/float/tuple): timeout setting for this request. If
6937+
one number provided, it will be total request timeout. It can also
6938+
be a pair (tuple) of (connection, read) timeouts.
6939+
Default is None.
6940+
_check_input_type (bool): specifies if type checking
6941+
should be done one the data sent to the server.
6942+
Default is True.
6943+
_check_return_type (bool): specifies if type checking
6944+
should be done one the data received from the server.
6945+
Default is True.
6946+
_spec_property_naming (bool): True if the variable names in the input data
6947+
are serialized names, as specified in the OpenAPI document.
6948+
False if the variable names in the input data
6949+
are pythonic names, e.g. snake case (default)
6950+
_content_type (str/None): force body content-type.
6951+
Default is None and content-type will be predicted by allowed
6952+
content-types and body.
6953+
_host_index (int/None): specifies the index of the server
6954+
that we want to use.
6955+
Default is read from the configuration.
6956+
async_req (bool): execute request asynchronously
6957+
6958+
Returns:
6959+
[str]
6960+
If the method is called asynchronously, returns the request
6961+
thread.
6962+
"""
6963+
kwargs['async_req'] = kwargs.get(
6964+
'async_req', False
6965+
)
6966+
kwargs['_return_http_data_only'] = kwargs.get(
6967+
'_return_http_data_only', True
6968+
)
6969+
kwargs['_preload_content'] = kwargs.get(
6970+
'_preload_content', True
6971+
)
6972+
kwargs['_request_timeout'] = kwargs.get(
6973+
'_request_timeout', None
6974+
)
6975+
kwargs['_check_input_type'] = kwargs.get(
6976+
'_check_input_type', True
6977+
)
6978+
kwargs['_check_return_type'] = kwargs.get(
6979+
'_check_return_type', True
6980+
)
6981+
kwargs['_spec_property_naming'] = kwargs.get(
6982+
'_spec_property_naming', False
6983+
)
6984+
kwargs['_content_type'] = kwargs.get(
6985+
'_content_type')
6986+
kwargs['_host_index'] = kwargs.get('_host_index')
6987+
kwargs['guid'] = \
6988+
guid
6989+
kwargs['projects_pk'] = \
6990+
projects_pk
6991+
return self.get_topic_document_references_endpoint.call_with_http_info(**kwargs)
6992+
66696993
def get_topic_viewpoints(
66706994
self,
66716995
projects_pk,

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8388,7 +8388,7 @@ def create_document(
83888388
):
83898389
"""Create a document # noqa: E501
83908390

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

0 commit comments

Comments
 (0)