touchdesigner-mcp-server 0.4.0-alpha.0 → 0.4.0-alpha.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.ja.md +4 -4
- package/README.md +4 -3
- package/dist/cli.js +0 -0
- package/dist/gen/endpoints/TouchDesignerAPI.js +1 -1
- package/dist/gen/mcp/touchDesignerAPI.zod.js +1 -1
- package/dist/index.js +0 -0
- package/dist/server/touchDesignerServer.js +1 -1
- package/package.json +14 -12
- package/td/genHandlers.js +0 -47
- package/td/import_modules.py +0 -52
- package/td/mcp_webserver_base.tox +0 -0
- package/td/modules/mcp/controllers/__init__.py +0 -9
- package/td/modules/mcp/controllers/api_controller.py +0 -637
- package/td/modules/mcp/controllers/generated_handlers.py +0 -365
- package/td/modules/mcp/controllers/openapi_router.py +0 -265
- package/td/modules/mcp/services/__init__.py +0 -8
- package/td/modules/mcp/services/api_service.py +0 -555
- package/td/modules/mcp_webserver_script.py +0 -134
- package/td/modules/td_server/.dockerignore +0 -72
- package/td/modules/td_server/.openapi-generator/FILES +0 -55
- package/td/modules/td_server/.openapi-generator/VERSION +0 -1
- package/td/modules/td_server/.openapi-generator-ignore +0 -23
- package/td/modules/td_server/.travis.yml +0 -14
- package/td/modules/td_server/Dockerfile +0 -16
- package/td/modules/td_server/README.md +0 -49
- package/td/modules/td_server/git_push.sh +0 -57
- package/td/modules/td_server/openapi_server/__init__.py +0 -0
- package/td/modules/td_server/openapi_server/__main__.py +0 -19
- package/td/modules/td_server/openapi_server/controllers/__init__.py +0 -0
- package/td/modules/td_server/openapi_server/controllers/default_controller.py +0 -162
- package/td/modules/td_server/openapi_server/controllers/security_controller.py +0 -2
- package/td/modules/td_server/openapi_server/encoder.py +0 -19
- package/td/modules/td_server/openapi_server/models/__init__.py +0 -33
- package/td/modules/td_server/openapi_server/models/base_model.py +0 -68
- package/td/modules/td_server/openapi_server/models/create_node200_response.py +0 -125
- package/td/modules/td_server/openapi_server/models/create_node200_response_data.py +0 -63
- package/td/modules/td_server/openapi_server/models/create_node_request.py +0 -123
- package/td/modules/td_server/openapi_server/models/delete_node200_response.py +0 -125
- package/td/modules/td_server/openapi_server/models/delete_node200_response_data.py +0 -91
- package/td/modules/td_server/openapi_server/models/exec_node_method200_response.py +0 -125
- package/td/modules/td_server/openapi_server/models/exec_node_method200_response_data.py +0 -65
- package/td/modules/td_server/openapi_server/models/exec_node_method_request.py +0 -153
- package/td/modules/td_server/openapi_server/models/exec_node_method_request_args_inner.py +0 -34
- package/td/modules/td_server/openapi_server/models/exec_python_script200_response.py +0 -125
- package/td/modules/td_server/openapi_server/models/exec_python_script200_response_data.py +0 -65
- package/td/modules/td_server/openapi_server/models/exec_python_script200_response_data_result.py +0 -63
- package/td/modules/td_server/openapi_server/models/exec_python_script_request.py +0 -65
- package/td/modules/td_server/openapi_server/models/get_node_detail200_response.py +0 -125
- package/td/modules/td_server/openapi_server/models/get_nodes200_response.py +0 -125
- package/td/modules/td_server/openapi_server/models/get_nodes200_response_data.py +0 -65
- package/td/modules/td_server/openapi_server/models/get_td_info200_response.py +0 -125
- package/td/modules/td_server/openapi_server/models/get_td_info200_response_data.py +0 -155
- package/td/modules/td_server/openapi_server/models/get_td_python_class_details200_response.py +0 -125
- package/td/modules/td_server/openapi_server/models/get_td_python_classes200_response.py +0 -125
- package/td/modules/td_server/openapi_server/models/get_td_python_classes200_response_data.py +0 -63
- package/td/modules/td_server/openapi_server/models/td_node.py +0 -175
- package/td/modules/td_server/openapi_server/models/td_node_family_type.py +0 -44
- package/td/modules/td_server/openapi_server/models/td_python_class_details.py +0 -191
- package/td/modules/td_server/openapi_server/models/td_python_class_info.py +0 -127
- package/td/modules/td_server/openapi_server/models/td_python_method_info.py +0 -121
- package/td/modules/td_server/openapi_server/models/td_python_property_info.py +0 -123
- package/td/modules/td_server/openapi_server/models/update_node200_response.py +0 -125
- package/td/modules/td_server/openapi_server/models/update_node200_response_data.py +0 -149
- package/td/modules/td_server/openapi_server/models/update_node200_response_data_failed_inner.py +0 -91
- package/td/modules/td_server/openapi_server/models/update_node_request.py +0 -93
- package/td/modules/td_server/openapi_server/openapi/openapi.yaml +0 -975
- package/td/modules/td_server/openapi_server/test/__init__.py +0 -16
- package/td/modules/td_server/openapi_server/test/test_default_controller.py +0 -201
- package/td/modules/td_server/openapi_server/typing_utils.py +0 -30
- package/td/modules/td_server/openapi_server/util.py +0 -147
- package/td/modules/td_server/requirements.txt +0 -13
- package/td/modules/td_server/setup.py +0 -37
- package/td/modules/td_server/test-requirements.txt +0 -4
- package/td/modules/td_server/tox.ini +0 -11
- package/td/modules/utils/config.py +0 -7
- package/td/modules/utils/error_handling.py +0 -104
- package/td/modules/utils/logging.py +0 -23
- package/td/modules/utils/result.py +0 -40
- package/td/modules/utils/serialization.py +0 -57
- package/td/modules/utils/types.py +0 -33
- package/td/modules/utils/utils_logging.py +0 -60
- package/td/templates/mcp/api_controller_handlers.mustache +0 -63
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
from datetime import date, datetime # noqa: F401
|
|
2
|
-
|
|
3
|
-
from typing import List, Dict # noqa: F401
|
|
4
|
-
|
|
5
|
-
from openapi_server.models.base_model import Model
|
|
6
|
-
from openapi_server.models.create_node200_response_data import CreateNode200ResponseData
|
|
7
|
-
from openapi_server import util
|
|
8
|
-
|
|
9
|
-
from openapi_server.models.create_node200_response_data import CreateNode200ResponseData # noqa: E501
|
|
10
|
-
|
|
11
|
-
class CreateNode200Response(Model):
|
|
12
|
-
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
-
|
|
14
|
-
Do not edit the class manually.
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
def __init__(self, success=None, data=None, error=None): # noqa: E501
|
|
18
|
-
"""CreateNode200Response - a model defined in OpenAPI
|
|
19
|
-
|
|
20
|
-
:param success: The success of this CreateNode200Response. # noqa: E501
|
|
21
|
-
:type success: bool
|
|
22
|
-
:param data: The data of this CreateNode200Response. # noqa: E501
|
|
23
|
-
:type data: CreateNode200ResponseData
|
|
24
|
-
:param error: The error of this CreateNode200Response. # noqa: E501
|
|
25
|
-
:type error: str
|
|
26
|
-
"""
|
|
27
|
-
self.openapi_types = {
|
|
28
|
-
'success': bool,
|
|
29
|
-
'data': CreateNode200ResponseData,
|
|
30
|
-
'error': str
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
self.attribute_map = {
|
|
34
|
-
'success': 'success',
|
|
35
|
-
'data': 'data',
|
|
36
|
-
'error': 'error'
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
self._success = success
|
|
40
|
-
self._data = data
|
|
41
|
-
self._error = error
|
|
42
|
-
|
|
43
|
-
@classmethod
|
|
44
|
-
def from_dict(cls, dikt) -> 'CreateNode200Response':
|
|
45
|
-
"""Returns the dict as a model
|
|
46
|
-
|
|
47
|
-
:param dikt: A dict.
|
|
48
|
-
:type: dict
|
|
49
|
-
:return: The create_node_200_response of this CreateNode200Response. # noqa: E501
|
|
50
|
-
:rtype: CreateNode200Response
|
|
51
|
-
"""
|
|
52
|
-
return util.deserialize_model(dikt, cls)
|
|
53
|
-
|
|
54
|
-
@property
|
|
55
|
-
def success(self) -> bool:
|
|
56
|
-
"""Gets the success of this CreateNode200Response.
|
|
57
|
-
|
|
58
|
-
Whether the operation was successful # noqa: E501
|
|
59
|
-
|
|
60
|
-
:return: The success of this CreateNode200Response.
|
|
61
|
-
:rtype: bool
|
|
62
|
-
"""
|
|
63
|
-
return self._success
|
|
64
|
-
|
|
65
|
-
@success.setter
|
|
66
|
-
def success(self, success: bool):
|
|
67
|
-
"""Sets the success of this CreateNode200Response.
|
|
68
|
-
|
|
69
|
-
Whether the operation was successful # noqa: E501
|
|
70
|
-
|
|
71
|
-
:param success: The success of this CreateNode200Response.
|
|
72
|
-
:type success: bool
|
|
73
|
-
"""
|
|
74
|
-
if success is None:
|
|
75
|
-
raise ValueError("Invalid value for `success`, must not be `None`") # noqa: E501
|
|
76
|
-
|
|
77
|
-
self._success = success
|
|
78
|
-
|
|
79
|
-
@property
|
|
80
|
-
def data(self) -> CreateNode200ResponseData:
|
|
81
|
-
"""Gets the data of this CreateNode200Response.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
:return: The data of this CreateNode200Response.
|
|
85
|
-
:rtype: CreateNode200ResponseData
|
|
86
|
-
"""
|
|
87
|
-
return self._data
|
|
88
|
-
|
|
89
|
-
@data.setter
|
|
90
|
-
def data(self, data: CreateNode200ResponseData):
|
|
91
|
-
"""Sets the data of this CreateNode200Response.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
:param data: The data of this CreateNode200Response.
|
|
95
|
-
:type data: CreateNode200ResponseData
|
|
96
|
-
"""
|
|
97
|
-
if data is None:
|
|
98
|
-
raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501
|
|
99
|
-
|
|
100
|
-
self._data = data
|
|
101
|
-
|
|
102
|
-
@property
|
|
103
|
-
def error(self) -> str:
|
|
104
|
-
"""Gets the error of this CreateNode200Response.
|
|
105
|
-
|
|
106
|
-
Error message if the operation was not successful # noqa: E501
|
|
107
|
-
|
|
108
|
-
:return: The error of this CreateNode200Response.
|
|
109
|
-
:rtype: str
|
|
110
|
-
"""
|
|
111
|
-
return self._error
|
|
112
|
-
|
|
113
|
-
@error.setter
|
|
114
|
-
def error(self, error: str):
|
|
115
|
-
"""Sets the error of this CreateNode200Response.
|
|
116
|
-
|
|
117
|
-
Error message if the operation was not successful # noqa: E501
|
|
118
|
-
|
|
119
|
-
:param error: The error of this CreateNode200Response.
|
|
120
|
-
:type error: str
|
|
121
|
-
"""
|
|
122
|
-
if error is None:
|
|
123
|
-
raise ValueError("Invalid value for `error`, must not be `None`") # noqa: E501
|
|
124
|
-
|
|
125
|
-
self._error = error
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
from datetime import date, datetime # noqa: F401
|
|
2
|
-
|
|
3
|
-
from typing import List, Dict # noqa: F401
|
|
4
|
-
|
|
5
|
-
from openapi_server.models.base_model import Model
|
|
6
|
-
from openapi_server.models.td_node import TdNode
|
|
7
|
-
from openapi_server import util
|
|
8
|
-
|
|
9
|
-
from openapi_server.models.td_node import TdNode # noqa: E501
|
|
10
|
-
|
|
11
|
-
class CreateNode200ResponseData(Model):
|
|
12
|
-
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
-
|
|
14
|
-
Do not edit the class manually.
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
def __init__(self, result=None): # noqa: E501
|
|
18
|
-
"""CreateNode200ResponseData - a model defined in OpenAPI
|
|
19
|
-
|
|
20
|
-
:param result: The result of this CreateNode200ResponseData. # noqa: E501
|
|
21
|
-
:type result: TdNode
|
|
22
|
-
"""
|
|
23
|
-
self.openapi_types = {
|
|
24
|
-
'result': TdNode
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
self.attribute_map = {
|
|
28
|
-
'result': 'result'
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
self._result = result
|
|
32
|
-
|
|
33
|
-
@classmethod
|
|
34
|
-
def from_dict(cls, dikt) -> 'CreateNode200ResponseData':
|
|
35
|
-
"""Returns the dict as a model
|
|
36
|
-
|
|
37
|
-
:param dikt: A dict.
|
|
38
|
-
:type: dict
|
|
39
|
-
:return: The create_node_200_response_data of this CreateNode200ResponseData. # noqa: E501
|
|
40
|
-
:rtype: CreateNode200ResponseData
|
|
41
|
-
"""
|
|
42
|
-
return util.deserialize_model(dikt, cls)
|
|
43
|
-
|
|
44
|
-
@property
|
|
45
|
-
def result(self) -> TdNode:
|
|
46
|
-
"""Gets the result of this CreateNode200ResponseData.
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
:return: The result of this CreateNode200ResponseData.
|
|
50
|
-
:rtype: TdNode
|
|
51
|
-
"""
|
|
52
|
-
return self._result
|
|
53
|
-
|
|
54
|
-
@result.setter
|
|
55
|
-
def result(self, result: TdNode):
|
|
56
|
-
"""Sets the result of this CreateNode200ResponseData.
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
:param result: The result of this CreateNode200ResponseData.
|
|
60
|
-
:type result: TdNode
|
|
61
|
-
"""
|
|
62
|
-
|
|
63
|
-
self._result = result
|
|
@@ -1,123 +0,0 @@
|
|
|
1
|
-
from datetime import date, datetime # noqa: F401
|
|
2
|
-
|
|
3
|
-
from typing import List, Dict # noqa: F401
|
|
4
|
-
|
|
5
|
-
from openapi_server.models.base_model import Model
|
|
6
|
-
from openapi_server import util
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
class CreateNodeRequest(Model):
|
|
10
|
-
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
-
|
|
12
|
-
Do not edit the class manually.
|
|
13
|
-
"""
|
|
14
|
-
|
|
15
|
-
def __init__(self, parent_path=None, node_type=None, node_name=None): # noqa: E501
|
|
16
|
-
"""CreateNodeRequest - a model defined in OpenAPI
|
|
17
|
-
|
|
18
|
-
:param parent_path: The parent_path of this CreateNodeRequest. # noqa: E501
|
|
19
|
-
:type parent_path: str
|
|
20
|
-
:param node_type: The node_type of this CreateNodeRequest. # noqa: E501
|
|
21
|
-
:type node_type: str
|
|
22
|
-
:param node_name: The node_name of this CreateNodeRequest. # noqa: E501
|
|
23
|
-
:type node_name: str
|
|
24
|
-
"""
|
|
25
|
-
self.openapi_types = {
|
|
26
|
-
'parent_path': str,
|
|
27
|
-
'node_type': str,
|
|
28
|
-
'node_name': str
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
self.attribute_map = {
|
|
32
|
-
'parent_path': 'parentPath',
|
|
33
|
-
'node_type': 'nodeType',
|
|
34
|
-
'node_name': 'nodeName'
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
self._parent_path = parent_path
|
|
38
|
-
self._node_type = node_type
|
|
39
|
-
self._node_name = node_name
|
|
40
|
-
|
|
41
|
-
@classmethod
|
|
42
|
-
def from_dict(cls, dikt) -> 'CreateNodeRequest':
|
|
43
|
-
"""Returns the dict as a model
|
|
44
|
-
|
|
45
|
-
:param dikt: A dict.
|
|
46
|
-
:type: dict
|
|
47
|
-
:return: The create_node_request of this CreateNodeRequest. # noqa: E501
|
|
48
|
-
:rtype: CreateNodeRequest
|
|
49
|
-
"""
|
|
50
|
-
return util.deserialize_model(dikt, cls)
|
|
51
|
-
|
|
52
|
-
@property
|
|
53
|
-
def parent_path(self) -> str:
|
|
54
|
-
"""Gets the parent_path of this CreateNodeRequest.
|
|
55
|
-
|
|
56
|
-
Path to the parent node (e.g., /project1) # noqa: E501
|
|
57
|
-
|
|
58
|
-
:return: The parent_path of this CreateNodeRequest.
|
|
59
|
-
:rtype: str
|
|
60
|
-
"""
|
|
61
|
-
return self._parent_path
|
|
62
|
-
|
|
63
|
-
@parent_path.setter
|
|
64
|
-
def parent_path(self, parent_path: str):
|
|
65
|
-
"""Sets the parent_path of this CreateNodeRequest.
|
|
66
|
-
|
|
67
|
-
Path to the parent node (e.g., /project1) # noqa: E501
|
|
68
|
-
|
|
69
|
-
:param parent_path: The parent_path of this CreateNodeRequest.
|
|
70
|
-
:type parent_path: str
|
|
71
|
-
"""
|
|
72
|
-
if parent_path is None:
|
|
73
|
-
raise ValueError("Invalid value for `parent_path`, must not be `None`") # noqa: E501
|
|
74
|
-
|
|
75
|
-
self._parent_path = parent_path
|
|
76
|
-
|
|
77
|
-
@property
|
|
78
|
-
def node_type(self) -> str:
|
|
79
|
-
"""Gets the node_type of this CreateNodeRequest.
|
|
80
|
-
|
|
81
|
-
Type of the node to create (e.g., textTop) # noqa: E501
|
|
82
|
-
|
|
83
|
-
:return: The node_type of this CreateNodeRequest.
|
|
84
|
-
:rtype: str
|
|
85
|
-
"""
|
|
86
|
-
return self._node_type
|
|
87
|
-
|
|
88
|
-
@node_type.setter
|
|
89
|
-
def node_type(self, node_type: str):
|
|
90
|
-
"""Sets the node_type of this CreateNodeRequest.
|
|
91
|
-
|
|
92
|
-
Type of the node to create (e.g., textTop) # noqa: E501
|
|
93
|
-
|
|
94
|
-
:param node_type: The node_type of this CreateNodeRequest.
|
|
95
|
-
:type node_type: str
|
|
96
|
-
"""
|
|
97
|
-
if node_type is None:
|
|
98
|
-
raise ValueError("Invalid value for `node_type`, must not be `None`") # noqa: E501
|
|
99
|
-
|
|
100
|
-
self._node_type = node_type
|
|
101
|
-
|
|
102
|
-
@property
|
|
103
|
-
def node_name(self) -> str:
|
|
104
|
-
"""Gets the node_name of this CreateNodeRequest.
|
|
105
|
-
|
|
106
|
-
Name of the new node (optional) # noqa: E501
|
|
107
|
-
|
|
108
|
-
:return: The node_name of this CreateNodeRequest.
|
|
109
|
-
:rtype: str
|
|
110
|
-
"""
|
|
111
|
-
return self._node_name
|
|
112
|
-
|
|
113
|
-
@node_name.setter
|
|
114
|
-
def node_name(self, node_name: str):
|
|
115
|
-
"""Sets the node_name of this CreateNodeRequest.
|
|
116
|
-
|
|
117
|
-
Name of the new node (optional) # noqa: E501
|
|
118
|
-
|
|
119
|
-
:param node_name: The node_name of this CreateNodeRequest.
|
|
120
|
-
:type node_name: str
|
|
121
|
-
"""
|
|
122
|
-
|
|
123
|
-
self._node_name = node_name
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
from datetime import date, datetime # noqa: F401
|
|
2
|
-
|
|
3
|
-
from typing import List, Dict # noqa: F401
|
|
4
|
-
|
|
5
|
-
from openapi_server.models.base_model import Model
|
|
6
|
-
from openapi_server.models.delete_node200_response_data import DeleteNode200ResponseData
|
|
7
|
-
from openapi_server import util
|
|
8
|
-
|
|
9
|
-
from openapi_server.models.delete_node200_response_data import DeleteNode200ResponseData # noqa: E501
|
|
10
|
-
|
|
11
|
-
class DeleteNode200Response(Model):
|
|
12
|
-
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
-
|
|
14
|
-
Do not edit the class manually.
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
def __init__(self, success=None, data=None, error=None): # noqa: E501
|
|
18
|
-
"""DeleteNode200Response - a model defined in OpenAPI
|
|
19
|
-
|
|
20
|
-
:param success: The success of this DeleteNode200Response. # noqa: E501
|
|
21
|
-
:type success: bool
|
|
22
|
-
:param data: The data of this DeleteNode200Response. # noqa: E501
|
|
23
|
-
:type data: DeleteNode200ResponseData
|
|
24
|
-
:param error: The error of this DeleteNode200Response. # noqa: E501
|
|
25
|
-
:type error: str
|
|
26
|
-
"""
|
|
27
|
-
self.openapi_types = {
|
|
28
|
-
'success': bool,
|
|
29
|
-
'data': DeleteNode200ResponseData,
|
|
30
|
-
'error': str
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
self.attribute_map = {
|
|
34
|
-
'success': 'success',
|
|
35
|
-
'data': 'data',
|
|
36
|
-
'error': 'error'
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
self._success = success
|
|
40
|
-
self._data = data
|
|
41
|
-
self._error = error
|
|
42
|
-
|
|
43
|
-
@classmethod
|
|
44
|
-
def from_dict(cls, dikt) -> 'DeleteNode200Response':
|
|
45
|
-
"""Returns the dict as a model
|
|
46
|
-
|
|
47
|
-
:param dikt: A dict.
|
|
48
|
-
:type: dict
|
|
49
|
-
:return: The delete_node_200_response of this DeleteNode200Response. # noqa: E501
|
|
50
|
-
:rtype: DeleteNode200Response
|
|
51
|
-
"""
|
|
52
|
-
return util.deserialize_model(dikt, cls)
|
|
53
|
-
|
|
54
|
-
@property
|
|
55
|
-
def success(self) -> bool:
|
|
56
|
-
"""Gets the success of this DeleteNode200Response.
|
|
57
|
-
|
|
58
|
-
Whether the operation was successful # noqa: E501
|
|
59
|
-
|
|
60
|
-
:return: The success of this DeleteNode200Response.
|
|
61
|
-
:rtype: bool
|
|
62
|
-
"""
|
|
63
|
-
return self._success
|
|
64
|
-
|
|
65
|
-
@success.setter
|
|
66
|
-
def success(self, success: bool):
|
|
67
|
-
"""Sets the success of this DeleteNode200Response.
|
|
68
|
-
|
|
69
|
-
Whether the operation was successful # noqa: E501
|
|
70
|
-
|
|
71
|
-
:param success: The success of this DeleteNode200Response.
|
|
72
|
-
:type success: bool
|
|
73
|
-
"""
|
|
74
|
-
if success is None:
|
|
75
|
-
raise ValueError("Invalid value for `success`, must not be `None`") # noqa: E501
|
|
76
|
-
|
|
77
|
-
self._success = success
|
|
78
|
-
|
|
79
|
-
@property
|
|
80
|
-
def data(self) -> DeleteNode200ResponseData:
|
|
81
|
-
"""Gets the data of this DeleteNode200Response.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
:return: The data of this DeleteNode200Response.
|
|
85
|
-
:rtype: DeleteNode200ResponseData
|
|
86
|
-
"""
|
|
87
|
-
return self._data
|
|
88
|
-
|
|
89
|
-
@data.setter
|
|
90
|
-
def data(self, data: DeleteNode200ResponseData):
|
|
91
|
-
"""Sets the data of this DeleteNode200Response.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
:param data: The data of this DeleteNode200Response.
|
|
95
|
-
:type data: DeleteNode200ResponseData
|
|
96
|
-
"""
|
|
97
|
-
if data is None:
|
|
98
|
-
raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501
|
|
99
|
-
|
|
100
|
-
self._data = data
|
|
101
|
-
|
|
102
|
-
@property
|
|
103
|
-
def error(self) -> str:
|
|
104
|
-
"""Gets the error of this DeleteNode200Response.
|
|
105
|
-
|
|
106
|
-
Error message if the operation was not successful # noqa: E501
|
|
107
|
-
|
|
108
|
-
:return: The error of this DeleteNode200Response.
|
|
109
|
-
:rtype: str
|
|
110
|
-
"""
|
|
111
|
-
return self._error
|
|
112
|
-
|
|
113
|
-
@error.setter
|
|
114
|
-
def error(self, error: str):
|
|
115
|
-
"""Sets the error of this DeleteNode200Response.
|
|
116
|
-
|
|
117
|
-
Error message if the operation was not successful # noqa: E501
|
|
118
|
-
|
|
119
|
-
:param error: The error of this DeleteNode200Response.
|
|
120
|
-
:type error: str
|
|
121
|
-
"""
|
|
122
|
-
if error is None:
|
|
123
|
-
raise ValueError("Invalid value for `error`, must not be `None`") # noqa: E501
|
|
124
|
-
|
|
125
|
-
self._error = error
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
from datetime import date, datetime # noqa: F401
|
|
2
|
-
|
|
3
|
-
from typing import List, Dict # noqa: F401
|
|
4
|
-
|
|
5
|
-
from openapi_server.models.base_model import Model
|
|
6
|
-
from openapi_server.models.td_node import TdNode
|
|
7
|
-
from openapi_server import util
|
|
8
|
-
|
|
9
|
-
from openapi_server.models.td_node import TdNode # noqa: E501
|
|
10
|
-
|
|
11
|
-
class DeleteNode200ResponseData(Model):
|
|
12
|
-
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
-
|
|
14
|
-
Do not edit the class manually.
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
def __init__(self, deleted=None, node=None): # noqa: E501
|
|
18
|
-
"""DeleteNode200ResponseData - a model defined in OpenAPI
|
|
19
|
-
|
|
20
|
-
:param deleted: The deleted of this DeleteNode200ResponseData. # noqa: E501
|
|
21
|
-
:type deleted: bool
|
|
22
|
-
:param node: The node of this DeleteNode200ResponseData. # noqa: E501
|
|
23
|
-
:type node: TdNode
|
|
24
|
-
"""
|
|
25
|
-
self.openapi_types = {
|
|
26
|
-
'deleted': bool,
|
|
27
|
-
'node': TdNode
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
self.attribute_map = {
|
|
31
|
-
'deleted': 'deleted',
|
|
32
|
-
'node': 'node'
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
self._deleted = deleted
|
|
36
|
-
self._node = node
|
|
37
|
-
|
|
38
|
-
@classmethod
|
|
39
|
-
def from_dict(cls, dikt) -> 'DeleteNode200ResponseData':
|
|
40
|
-
"""Returns the dict as a model
|
|
41
|
-
|
|
42
|
-
:param dikt: A dict.
|
|
43
|
-
:type: dict
|
|
44
|
-
:return: The delete_node_200_response_data of this DeleteNode200ResponseData. # noqa: E501
|
|
45
|
-
:rtype: DeleteNode200ResponseData
|
|
46
|
-
"""
|
|
47
|
-
return util.deserialize_model(dikt, cls)
|
|
48
|
-
|
|
49
|
-
@property
|
|
50
|
-
def deleted(self) -> bool:
|
|
51
|
-
"""Gets the deleted of this DeleteNode200ResponseData.
|
|
52
|
-
|
|
53
|
-
Whether the node was successfully deleted # noqa: E501
|
|
54
|
-
|
|
55
|
-
:return: The deleted of this DeleteNode200ResponseData.
|
|
56
|
-
:rtype: bool
|
|
57
|
-
"""
|
|
58
|
-
return self._deleted
|
|
59
|
-
|
|
60
|
-
@deleted.setter
|
|
61
|
-
def deleted(self, deleted: bool):
|
|
62
|
-
"""Sets the deleted of this DeleteNode200ResponseData.
|
|
63
|
-
|
|
64
|
-
Whether the node was successfully deleted # noqa: E501
|
|
65
|
-
|
|
66
|
-
:param deleted: The deleted of this DeleteNode200ResponseData.
|
|
67
|
-
:type deleted: bool
|
|
68
|
-
"""
|
|
69
|
-
|
|
70
|
-
self._deleted = deleted
|
|
71
|
-
|
|
72
|
-
@property
|
|
73
|
-
def node(self) -> TdNode:
|
|
74
|
-
"""Gets the node of this DeleteNode200ResponseData.
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
:return: The node of this DeleteNode200ResponseData.
|
|
78
|
-
:rtype: TdNode
|
|
79
|
-
"""
|
|
80
|
-
return self._node
|
|
81
|
-
|
|
82
|
-
@node.setter
|
|
83
|
-
def node(self, node: TdNode):
|
|
84
|
-
"""Sets the node of this DeleteNode200ResponseData.
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
:param node: The node of this DeleteNode200ResponseData.
|
|
88
|
-
:type node: TdNode
|
|
89
|
-
"""
|
|
90
|
-
|
|
91
|
-
self._node = node
|
|
@@ -1,125 +0,0 @@
|
|
|
1
|
-
from datetime import date, datetime # noqa: F401
|
|
2
|
-
|
|
3
|
-
from typing import List, Dict # noqa: F401
|
|
4
|
-
|
|
5
|
-
from openapi_server.models.base_model import Model
|
|
6
|
-
from openapi_server.models.exec_node_method200_response_data import ExecNodeMethod200ResponseData
|
|
7
|
-
from openapi_server import util
|
|
8
|
-
|
|
9
|
-
from openapi_server.models.exec_node_method200_response_data import ExecNodeMethod200ResponseData # noqa: E501
|
|
10
|
-
|
|
11
|
-
class ExecNodeMethod200Response(Model):
|
|
12
|
-
"""NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
13
|
-
|
|
14
|
-
Do not edit the class manually.
|
|
15
|
-
"""
|
|
16
|
-
|
|
17
|
-
def __init__(self, success=None, data=None, error=None): # noqa: E501
|
|
18
|
-
"""ExecNodeMethod200Response - a model defined in OpenAPI
|
|
19
|
-
|
|
20
|
-
:param success: The success of this ExecNodeMethod200Response. # noqa: E501
|
|
21
|
-
:type success: bool
|
|
22
|
-
:param data: The data of this ExecNodeMethod200Response. # noqa: E501
|
|
23
|
-
:type data: ExecNodeMethod200ResponseData
|
|
24
|
-
:param error: The error of this ExecNodeMethod200Response. # noqa: E501
|
|
25
|
-
:type error: str
|
|
26
|
-
"""
|
|
27
|
-
self.openapi_types = {
|
|
28
|
-
'success': bool,
|
|
29
|
-
'data': ExecNodeMethod200ResponseData,
|
|
30
|
-
'error': str
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
self.attribute_map = {
|
|
34
|
-
'success': 'success',
|
|
35
|
-
'data': 'data',
|
|
36
|
-
'error': 'error'
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
self._success = success
|
|
40
|
-
self._data = data
|
|
41
|
-
self._error = error
|
|
42
|
-
|
|
43
|
-
@classmethod
|
|
44
|
-
def from_dict(cls, dikt) -> 'ExecNodeMethod200Response':
|
|
45
|
-
"""Returns the dict as a model
|
|
46
|
-
|
|
47
|
-
:param dikt: A dict.
|
|
48
|
-
:type: dict
|
|
49
|
-
:return: The exec_node_method_200_response of this ExecNodeMethod200Response. # noqa: E501
|
|
50
|
-
:rtype: ExecNodeMethod200Response
|
|
51
|
-
"""
|
|
52
|
-
return util.deserialize_model(dikt, cls)
|
|
53
|
-
|
|
54
|
-
@property
|
|
55
|
-
def success(self) -> bool:
|
|
56
|
-
"""Gets the success of this ExecNodeMethod200Response.
|
|
57
|
-
|
|
58
|
-
Whether the operation was successful # noqa: E501
|
|
59
|
-
|
|
60
|
-
:return: The success of this ExecNodeMethod200Response.
|
|
61
|
-
:rtype: bool
|
|
62
|
-
"""
|
|
63
|
-
return self._success
|
|
64
|
-
|
|
65
|
-
@success.setter
|
|
66
|
-
def success(self, success: bool):
|
|
67
|
-
"""Sets the success of this ExecNodeMethod200Response.
|
|
68
|
-
|
|
69
|
-
Whether the operation was successful # noqa: E501
|
|
70
|
-
|
|
71
|
-
:param success: The success of this ExecNodeMethod200Response.
|
|
72
|
-
:type success: bool
|
|
73
|
-
"""
|
|
74
|
-
if success is None:
|
|
75
|
-
raise ValueError("Invalid value for `success`, must not be `None`") # noqa: E501
|
|
76
|
-
|
|
77
|
-
self._success = success
|
|
78
|
-
|
|
79
|
-
@property
|
|
80
|
-
def data(self) -> ExecNodeMethod200ResponseData:
|
|
81
|
-
"""Gets the data of this ExecNodeMethod200Response.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
:return: The data of this ExecNodeMethod200Response.
|
|
85
|
-
:rtype: ExecNodeMethod200ResponseData
|
|
86
|
-
"""
|
|
87
|
-
return self._data
|
|
88
|
-
|
|
89
|
-
@data.setter
|
|
90
|
-
def data(self, data: ExecNodeMethod200ResponseData):
|
|
91
|
-
"""Sets the data of this ExecNodeMethod200Response.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
:param data: The data of this ExecNodeMethod200Response.
|
|
95
|
-
:type data: ExecNodeMethod200ResponseData
|
|
96
|
-
"""
|
|
97
|
-
if data is None:
|
|
98
|
-
raise ValueError("Invalid value for `data`, must not be `None`") # noqa: E501
|
|
99
|
-
|
|
100
|
-
self._data = data
|
|
101
|
-
|
|
102
|
-
@property
|
|
103
|
-
def error(self) -> str:
|
|
104
|
-
"""Gets the error of this ExecNodeMethod200Response.
|
|
105
|
-
|
|
106
|
-
Error message if the operation was not successful # noqa: E501
|
|
107
|
-
|
|
108
|
-
:return: The error of this ExecNodeMethod200Response.
|
|
109
|
-
:rtype: str
|
|
110
|
-
"""
|
|
111
|
-
return self._error
|
|
112
|
-
|
|
113
|
-
@error.setter
|
|
114
|
-
def error(self, error: str):
|
|
115
|
-
"""Sets the error of this ExecNodeMethod200Response.
|
|
116
|
-
|
|
117
|
-
Error message if the operation was not successful # noqa: E501
|
|
118
|
-
|
|
119
|
-
:param error: The error of this ExecNodeMethod200Response.
|
|
120
|
-
:type error: str
|
|
121
|
-
"""
|
|
122
|
-
if error is None:
|
|
123
|
-
raise ValueError("Invalid value for `error`, must not be `None`") # noqa: E501
|
|
124
|
-
|
|
125
|
-
self._error = error
|