Skip to content

Commit 395d86c

Browse files
committed
PATCH: add id field to Pin
1 parent 7ad4845 commit 395d86c

6 files changed

Lines changed: 53 additions & 72 deletions

File tree

bimdata_api_client/api/bcf_api.py

Lines changed: 20 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -2155,11 +2155,11 @@ def __init__(self, api_client=None):
21552155
'format':
21562156
(str,),
21572157
'ifcs':
2158-
([int],),
2158+
(str,),
21592159
'img_format':
21602160
(str,),
21612161
'models':
2162-
([int],),
2162+
(str,),
21632163
},
21642164
'attribute_map': {
21652165
'projects_pk': 'projects_pk',
@@ -2176,8 +2176,6 @@ def __init__(self, api_client=None):
21762176
'models': 'query',
21772177
},
21782178
'collection_format_map': {
2179-
'ifcs': 'multi',
2180-
'models': 'multi',
21812179
}
21822180
},
21832181
headers_map={
@@ -2234,9 +2232,9 @@ def __init__(self, api_client=None):
22342232
'format':
22352233
(str,),
22362234
'ifcs':
2237-
([int],),
2235+
(str,),
22382236
'models':
2239-
([int],),
2237+
(str,),
22402238
},
22412239
'attribute_map': {
22422240
'guid': 'guid',
@@ -2253,8 +2251,6 @@ def __init__(self, api_client=None):
22532251
'models': 'query',
22542252
},
22552253
'collection_format_map': {
2256-
'ifcs': 'multi',
2257-
'models': 'multi',
22582254
}
22592255
},
22602256
headers_map={
@@ -2503,9 +2499,9 @@ def __init__(self, api_client=None):
25032499
'format':
25042500
(str,),
25052501
'ifcs':
2506-
([int],),
2502+
(str,),
25072503
'models':
2508-
([int],),
2504+
(str,),
25092505
},
25102506
'attribute_map': {
25112507
'guid': 'guid',
@@ -2522,8 +2518,6 @@ def __init__(self, api_client=None):
25222518
'models': 'query',
25232519
},
25242520
'collection_format_map': {
2525-
'ifcs': 'multi',
2526-
'models': 'multi',
25272521
}
25282522
},
25292523
headers_map={
@@ -2646,9 +2640,9 @@ def __init__(self, api_client=None):
26462640
'format':
26472641
(str,),
26482642
'ifcs':
2649-
([int],),
2643+
(str,),
26502644
'models':
2651-
([int],),
2645+
(str,),
26522646
},
26532647
'attribute_map': {
26542648
'projects_pk': 'projects_pk',
@@ -2663,8 +2657,6 @@ def __init__(self, api_client=None):
26632657
'models': 'query',
26642658
},
26652659
'collection_format_map': {
2666-
'ifcs': 'multi',
2667-
'models': 'multi',
26682660
}
26692661
},
26702662
headers_map={
@@ -6406,10 +6398,10 @@ def get_full_topics(
64066398
projects_pk (int):
64076399
64086400
Keyword Args:
6409-
format (str): [optional]
6410-
ifcs ([int]): [optional]
6401+
format (str): format. [optional]
6402+
ifcs (str): ifcs. [optional]
64116403
img_format (str): All snapshot_data will be returned as url instead of base64. [optional] if omitted the server will use the default value of "url"
6412-
models ([int]): [optional]
6404+
models (str): models. [optional]
64136405
_return_http_data_only (bool): response data without head status
64146406
code and headers. Default is True.
64156407
_preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -6490,9 +6482,9 @@ def get_related_topics(
64906482
projects_pk (int):
64916483
64926484
Keyword Args:
6493-
format (str): [optional]
6494-
ifcs ([int]): [optional]
6495-
models ([int]): [optional]
6485+
format (str): format. [optional]
6486+
ifcs (str): ifcs. [optional]
6487+
models (str): models. [optional]
64966488
_return_http_data_only (bool): response data without head status
64976489
code and headers. Default is True.
64986490
_preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -6829,9 +6821,9 @@ def get_topic_document_references(
68296821
projects_pk (int):
68306822
68316823
Keyword Args:
6832-
format (str): [optional]
6833-
ifcs ([int]): [optional]
6834-
models ([int]): [optional]
6824+
format (str): format. [optional]
6825+
ifcs (str): ifcs. [optional]
6826+
models (str): models. [optional]
68356827
_return_http_data_only (bool): response data without head status
68366828
code and headers. Default is True.
68376829
_preload_content (bool): if False, the urllib3.HTTPResponse object
@@ -6995,9 +6987,9 @@ def get_topics(
69956987
projects_pk (int):
69966988
69976989
Keyword Args:
6998-
format (str): [optional]
6999-
ifcs ([int]): [optional]
7000-
models ([int]): [optional]
6990+
format (str): format. [optional]
6991+
ifcs (str): ifcs. [optional]
6992+
models (str): models. [optional]
70016993
_return_http_data_only (bool): response data without head status
70026994
code and headers. Default is True.
70036995
_preload_content (bool): if False, the urllib3.HTTPResponse object

bimdata_api_client/api/collaboration_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8240,7 +8240,7 @@ def create_document(
82408240
):
82418241
"""Create a document # noqa: E501
82428242

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

bimdata_api_client/model/pin.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ def openapi_types():
9494
"""
9595
lazy_import()
9696
return {
97+
'id': (int,), # noqa: E501
9798
'point': (Point,), # noqa: E501
9899
'name': (str, none_type,), # noqa: E501
99100
'color': (str, none_type,), # noqa: E501
@@ -105,22 +106,25 @@ def discriminator():
105106

106107

107108
attribute_map = {
109+
'id': 'id', # noqa: E501
108110
'point': 'point', # noqa: E501
109111
'name': 'name', # noqa: E501
110112
'color': 'color', # noqa: E501
111113
}
112114

113115
read_only_vars = {
116+
'id', # noqa: E501
114117
}
115118

116119
_composed_schemas = {}
117120

118121
@classmethod
119122
@convert_js_args_to_python_args
120-
def _from_openapi_data(cls, point, *args, **kwargs): # noqa: E501
123+
def _from_openapi_data(cls, id, point, *args, **kwargs): # noqa: E501
121124
"""Pin - a model defined in OpenAPI
122125
123126
Args:
127+
id (int):
124128
point (Point):
125129
126130
Keyword Args:
@@ -183,6 +187,7 @@ def _from_openapi_data(cls, point, *args, **kwargs): # noqa: E501
183187
self._configuration = _configuration
184188
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
185189

190+
self.id = id
186191
self.point = point
187192
for var_name, var_value in kwargs.items():
188193
if var_name not in self.attribute_map and \
@@ -207,7 +212,6 @@ def _from_openapi_data(cls, point, *args, **kwargs): # noqa: E501
207212
def __init__(self, point, *args, **kwargs): # noqa: E501
208213
"""Pin - a model defined in OpenAPI
209214
210-
Args:
211215
point (Point):
212216
213217
Keyword Args:

docs/BcfApi.md

Lines changed: 24 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -3972,14 +3972,10 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
39723972
# Create an instance of the API class
39733973
api_instance = bcf_api.BcfApi(api_client)
39743974
projects_pk = 1 # int |
3975-
format = "format_example" # str | (optional)
3976-
ifcs = [
3977-
1,
3978-
] # [int] | (optional)
3975+
format = "format_example" # str | format (optional)
3976+
ifcs = "ifcs_example" # str | ifcs (optional)
39793977
img_format = "url" # str | All snapshot_data will be returned as url instead of base64 (optional) if omitted the server will use the default value of "url"
3980-
models = [
3981-
1,
3982-
] # [int] | (optional)
3978+
models = "models_example" # str | models (optional)
39833979

39843980
# example passing only required values which don't have defaults set
39853981
try:
@@ -4005,10 +4001,10 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
40054001
Name | Type | Description | Notes
40064002
------------- | ------------- | ------------- | -------------
40074003
**projects_pk** | **int**| |
4008-
**format** | **str**| | [optional]
4009-
**ifcs** | **[int]**| | [optional]
4004+
**format** | **str**| format | [optional]
4005+
**ifcs** | **str**| ifcs | [optional]
40104006
**img_format** | **str**| All snapshot_data will be returned as url instead of base64 | [optional] if omitted the server will use the default value of "url"
4011-
**models** | **[int]**| | [optional]
4007+
**models** | **str**| models | [optional]
40124008

40134009
### Return type
40144010

@@ -4095,13 +4091,9 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
40954091
api_instance = bcf_api.BcfApi(api_client)
40964092
guid = "guid_example" # str |
40974093
projects_pk = 1 # int |
4098-
format = "format_example" # str | (optional)
4099-
ifcs = [
4100-
1,
4101-
] # [int] | (optional)
4102-
models = [
4103-
1,
4104-
] # [int] | (optional)
4094+
format = "format_example" # str | format (optional)
4095+
ifcs = "ifcs_example" # str | ifcs (optional)
4096+
models = "models_example" # str | models (optional)
41054097

41064098
# example passing only required values which don't have defaults set
41074099
try:
@@ -4128,9 +4120,9 @@ Name | Type | Description | Notes
41284120
------------- | ------------- | ------------- | -------------
41294121
**guid** | **str**| |
41304122
**projects_pk** | **int**| |
4131-
**format** | **str**| | [optional]
4132-
**ifcs** | **[int]**| | [optional]
4133-
**models** | **[int]**| | [optional]
4123+
**format** | **str**| format | [optional]
4124+
**ifcs** | **str**| ifcs | [optional]
4125+
**models** | **str**| models | [optional]
41344126

41354127
### Return type
41364128

@@ -4534,13 +4526,9 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
45344526
api_instance = bcf_api.BcfApi(api_client)
45354527
guid = "guid_example" # str |
45364528
projects_pk = 1 # int |
4537-
format = "format_example" # str | (optional)
4538-
ifcs = [
4539-
1,
4540-
] # [int] | (optional)
4541-
models = [
4542-
1,
4543-
] # [int] | (optional)
4529+
format = "format_example" # str | format (optional)
4530+
ifcs = "ifcs_example" # str | ifcs (optional)
4531+
models = "models_example" # str | models (optional)
45444532

45454533
# example passing only required values which don't have defaults set
45464534
try:
@@ -4567,9 +4555,9 @@ Name | Type | Description | Notes
45674555
------------- | ------------- | ------------- | -------------
45684556
**guid** | **str**| |
45694557
**projects_pk** | **int**| |
4570-
**format** | **str**| | [optional]
4571-
**ifcs** | **[int]**| | [optional]
4572-
**models** | **[int]**| | [optional]
4558+
**format** | **str**| format | [optional]
4559+
**ifcs** | **str**| ifcs | [optional]
4560+
**models** | **str**| models | [optional]
45734561

45744562
### Return type
45754563

@@ -4771,13 +4759,9 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
47714759
# Create an instance of the API class
47724760
api_instance = bcf_api.BcfApi(api_client)
47734761
projects_pk = 1 # int |
4774-
format = "format_example" # str | (optional)
4775-
ifcs = [
4776-
1,
4777-
] # [int] | (optional)
4778-
models = [
4779-
1,
4780-
] # [int] | (optional)
4762+
format = "format_example" # str | format (optional)
4763+
ifcs = "ifcs_example" # str | ifcs (optional)
4764+
models = "models_example" # str | models (optional)
47814765

47824766
# example passing only required values which don't have defaults set
47834767
try:
@@ -4803,9 +4787,9 @@ with bimdata_api_client.ApiClient(configuration) as api_client:
48034787
Name | Type | Description | Notes
48044788
------------- | ------------- | ------------- | -------------
48054789
**projects_pk** | **int**| |
4806-
**format** | **str**| | [optional]
4807-
**ifcs** | **[int]**| | [optional]
4808-
**models** | **[int]**| | [optional]
4790+
**format** | **str**| format | [optional]
4791+
**ifcs** | **str**| ifcs | [optional]
4792+
**models** | **str**| models | [optional]
48094793

48104794
### Return type
48114795

docs/CollaborationApi.md

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

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

15301530
### Example
15311531

docs/Pin.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ Adds nested create feature
55
## Properties
66
Name | Type | Description | Notes
77
------------ | ------------- | ------------- | -------------
8+
**id** | **int** | | [readonly]
89
**point** | [**Point**](Point.md) | |
910
**name** | **str, none_type** | | [optional]
1011
**color** | **str, none_type** | | [optional]

0 commit comments

Comments
 (0)