Skip to content

Commit fbc5445

Browse files
committed
PATCH: remove parent from document serialization (#521)
1 parent 0051217 commit fbc5445

File tree

3 files changed

+1
-11
lines changed

3 files changed

+1
-11
lines changed

bimdata_api_client/model/document.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,7 @@
3131

3232

3333
def lazy_import():
34-
from bimdata_api_client.model.folder import Folder
3534
from bimdata_api_client.model.tag import Tag
36-
globals()['Folder'] = Folder
3735
globals()['Tag'] = Tag
3836

3937

@@ -106,7 +104,6 @@ def openapi_types():
106104
lazy_import()
107105
return {
108106
'id': (int,), # noqa: E501
109-
'parent': (bool, date, datetime, dict, float, int, list, str, none_type,), # noqa: E501
110107
'project': (int,), # noqa: E501
111108
'name': (str,), # noqa: E501
112109
'file': (str,), # noqa: E501
@@ -130,7 +127,6 @@ def discriminator():
130127

131128
attribute_map = {
132129
'id': 'id', # noqa: E501
133-
'parent': 'parent', # noqa: E501
134130
'project': 'project', # noqa: E501
135131
'name': 'name', # noqa: E501
136132
'file': 'file', # noqa: E501
@@ -149,7 +145,6 @@ def discriminator():
149145

150146
read_only_vars = {
151147
'id', # noqa: E501
152-
'parent', # noqa: E501
153148
'project', # noqa: E501
154149
'tags', # noqa: E501
155150
'created_at', # noqa: E501
@@ -163,12 +158,11 @@ def discriminator():
163158

164159
@classmethod
165160
@convert_js_args_to_python_args
166-
def _from_openapi_data(cls, id, parent, project, name, file, tags, created_at, updated_at, model_id, ifc_id, user_permission, *args, **kwargs): # noqa: E501
161+
def _from_openapi_data(cls, id, project, name, file, tags, created_at, updated_at, model_id, ifc_id, user_permission, *args, **kwargs): # noqa: E501
167162
"""Document - a model defined in OpenAPI
168163
169164
Args:
170165
id (int):
171-
parent (bool, date, datetime, dict, float, int, list, str, none_type):
172166
project (int):
173167
name (str): Shown name of the file
174168
file (str):
@@ -243,7 +237,6 @@ def _from_openapi_data(cls, id, parent, project, name, file, tags, created_at, u
243237
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
244238

245239
self.id = id
246-
self.parent = parent
247240
self.project = project
248241
self.name = name
249242
self.file = file

docs/Document.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**id** | **int** | | [readonly]
8-
**parent** | **bool, date, datetime, dict, float, int, list, str, none_type** | | [readonly]
98
**project** | **int** | | [readonly]
109
**name** | **str** | Shown name of the file |
1110
**file** | **str** | |

test/test_document.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@
1313
import unittest
1414

1515
import bimdata_api_client
16-
from bimdata_api_client.model.folder import Folder
1716
from bimdata_api_client.model.tag import Tag
18-
globals()['Folder'] = Folder
1917
globals()['Tag'] = Tag
2018
from bimdata_api_client.model.document import Document
2119

0 commit comments

Comments
 (0)