touchdesigner-mcp-server 0.4.0-alpha.1 → 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 +1 -0
- package/README.md +1 -0
- 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 +10 -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,127 +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 TdPythonClassInfo(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, name=None, type=None, description=None): # noqa: E501
|
|
16
|
-
"""TdPythonClassInfo - a model defined in OpenAPI
|
|
17
|
-
|
|
18
|
-
:param name: The name of this TdPythonClassInfo. # noqa: E501
|
|
19
|
-
:type name: str
|
|
20
|
-
:param type: The type of this TdPythonClassInfo. # noqa: E501
|
|
21
|
-
:type type: str
|
|
22
|
-
:param description: The description of this TdPythonClassInfo. # noqa: E501
|
|
23
|
-
:type description: str
|
|
24
|
-
"""
|
|
25
|
-
self.openapi_types = {
|
|
26
|
-
'name': str,
|
|
27
|
-
'type': str,
|
|
28
|
-
'description': str
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
self.attribute_map = {
|
|
32
|
-
'name': 'name',
|
|
33
|
-
'type': 'type',
|
|
34
|
-
'description': 'description'
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
self._name = name
|
|
38
|
-
self._type = type
|
|
39
|
-
self._description = description
|
|
40
|
-
|
|
41
|
-
@classmethod
|
|
42
|
-
def from_dict(cls, dikt) -> 'TdPythonClassInfo':
|
|
43
|
-
"""Returns the dict as a model
|
|
44
|
-
|
|
45
|
-
:param dikt: A dict.
|
|
46
|
-
:type: dict
|
|
47
|
-
:return: The TdPythonClassInfo of this TdPythonClassInfo. # noqa: E501
|
|
48
|
-
:rtype: TdPythonClassInfo
|
|
49
|
-
"""
|
|
50
|
-
return util.deserialize_model(dikt, cls)
|
|
51
|
-
|
|
52
|
-
@property
|
|
53
|
-
def name(self) -> str:
|
|
54
|
-
"""Gets the name of this TdPythonClassInfo.
|
|
55
|
-
|
|
56
|
-
Name of the class or module # noqa: E501
|
|
57
|
-
|
|
58
|
-
:return: The name of this TdPythonClassInfo.
|
|
59
|
-
:rtype: str
|
|
60
|
-
"""
|
|
61
|
-
return self._name
|
|
62
|
-
|
|
63
|
-
@name.setter
|
|
64
|
-
def name(self, name: str):
|
|
65
|
-
"""Sets the name of this TdPythonClassInfo.
|
|
66
|
-
|
|
67
|
-
Name of the class or module # noqa: E501
|
|
68
|
-
|
|
69
|
-
:param name: The name of this TdPythonClassInfo.
|
|
70
|
-
:type name: str
|
|
71
|
-
"""
|
|
72
|
-
if name is None:
|
|
73
|
-
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
74
|
-
|
|
75
|
-
self._name = name
|
|
76
|
-
|
|
77
|
-
@property
|
|
78
|
-
def type(self) -> str:
|
|
79
|
-
"""Gets the type of this TdPythonClassInfo.
|
|
80
|
-
|
|
81
|
-
Type of the Python entity # noqa: E501
|
|
82
|
-
|
|
83
|
-
:return: The type of this TdPythonClassInfo.
|
|
84
|
-
:rtype: str
|
|
85
|
-
"""
|
|
86
|
-
return self._type
|
|
87
|
-
|
|
88
|
-
@type.setter
|
|
89
|
-
def type(self, type: str):
|
|
90
|
-
"""Sets the type of this TdPythonClassInfo.
|
|
91
|
-
|
|
92
|
-
Type of the Python entity # noqa: E501
|
|
93
|
-
|
|
94
|
-
:param type: The type of this TdPythonClassInfo.
|
|
95
|
-
:type type: str
|
|
96
|
-
"""
|
|
97
|
-
allowed_values = ["class", "module", "function", "object"] # noqa: E501
|
|
98
|
-
if type not in allowed_values:
|
|
99
|
-
raise ValueError(
|
|
100
|
-
"Invalid value for `type` ({0}), must be one of {1}"
|
|
101
|
-
.format(type, allowed_values)
|
|
102
|
-
)
|
|
103
|
-
|
|
104
|
-
self._type = type
|
|
105
|
-
|
|
106
|
-
@property
|
|
107
|
-
def description(self) -> str:
|
|
108
|
-
"""Gets the description of this TdPythonClassInfo.
|
|
109
|
-
|
|
110
|
-
Description of the class or module # noqa: E501
|
|
111
|
-
|
|
112
|
-
:return: The description of this TdPythonClassInfo.
|
|
113
|
-
:rtype: str
|
|
114
|
-
"""
|
|
115
|
-
return self._description
|
|
116
|
-
|
|
117
|
-
@description.setter
|
|
118
|
-
def description(self, description: str):
|
|
119
|
-
"""Sets the description of this TdPythonClassInfo.
|
|
120
|
-
|
|
121
|
-
Description of the class or module # noqa: E501
|
|
122
|
-
|
|
123
|
-
:param description: The description of this TdPythonClassInfo.
|
|
124
|
-
:type description: str
|
|
125
|
-
"""
|
|
126
|
-
|
|
127
|
-
self._description = description
|
|
@@ -1,121 +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 TdPythonMethodInfo(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, name=None, signature=None, description=None): # noqa: E501
|
|
16
|
-
"""TdPythonMethodInfo - a model defined in OpenAPI
|
|
17
|
-
|
|
18
|
-
:param name: The name of this TdPythonMethodInfo. # noqa: E501
|
|
19
|
-
:type name: str
|
|
20
|
-
:param signature: The signature of this TdPythonMethodInfo. # noqa: E501
|
|
21
|
-
:type signature: str
|
|
22
|
-
:param description: The description of this TdPythonMethodInfo. # noqa: E501
|
|
23
|
-
:type description: str
|
|
24
|
-
"""
|
|
25
|
-
self.openapi_types = {
|
|
26
|
-
'name': str,
|
|
27
|
-
'signature': str,
|
|
28
|
-
'description': str
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
self.attribute_map = {
|
|
32
|
-
'name': 'name',
|
|
33
|
-
'signature': 'signature',
|
|
34
|
-
'description': 'description'
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
self._name = name
|
|
38
|
-
self._signature = signature
|
|
39
|
-
self._description = description
|
|
40
|
-
|
|
41
|
-
@classmethod
|
|
42
|
-
def from_dict(cls, dikt) -> 'TdPythonMethodInfo':
|
|
43
|
-
"""Returns the dict as a model
|
|
44
|
-
|
|
45
|
-
:param dikt: A dict.
|
|
46
|
-
:type: dict
|
|
47
|
-
:return: The TdPythonMethodInfo of this TdPythonMethodInfo. # noqa: E501
|
|
48
|
-
:rtype: TdPythonMethodInfo
|
|
49
|
-
"""
|
|
50
|
-
return util.deserialize_model(dikt, cls)
|
|
51
|
-
|
|
52
|
-
@property
|
|
53
|
-
def name(self) -> str:
|
|
54
|
-
"""Gets the name of this TdPythonMethodInfo.
|
|
55
|
-
|
|
56
|
-
Method name # noqa: E501
|
|
57
|
-
|
|
58
|
-
:return: The name of this TdPythonMethodInfo.
|
|
59
|
-
:rtype: str
|
|
60
|
-
"""
|
|
61
|
-
return self._name
|
|
62
|
-
|
|
63
|
-
@name.setter
|
|
64
|
-
def name(self, name: str):
|
|
65
|
-
"""Sets the name of this TdPythonMethodInfo.
|
|
66
|
-
|
|
67
|
-
Method name # noqa: E501
|
|
68
|
-
|
|
69
|
-
:param name: The name of this TdPythonMethodInfo.
|
|
70
|
-
:type name: str
|
|
71
|
-
"""
|
|
72
|
-
if name is None:
|
|
73
|
-
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
74
|
-
|
|
75
|
-
self._name = name
|
|
76
|
-
|
|
77
|
-
@property
|
|
78
|
-
def signature(self) -> str:
|
|
79
|
-
"""Gets the signature of this TdPythonMethodInfo.
|
|
80
|
-
|
|
81
|
-
Method signature including parameters # noqa: E501
|
|
82
|
-
|
|
83
|
-
:return: The signature of this TdPythonMethodInfo.
|
|
84
|
-
:rtype: str
|
|
85
|
-
"""
|
|
86
|
-
return self._signature
|
|
87
|
-
|
|
88
|
-
@signature.setter
|
|
89
|
-
def signature(self, signature: str):
|
|
90
|
-
"""Sets the signature of this TdPythonMethodInfo.
|
|
91
|
-
|
|
92
|
-
Method signature including parameters # noqa: E501
|
|
93
|
-
|
|
94
|
-
:param signature: The signature of this TdPythonMethodInfo.
|
|
95
|
-
:type signature: str
|
|
96
|
-
"""
|
|
97
|
-
|
|
98
|
-
self._signature = signature
|
|
99
|
-
|
|
100
|
-
@property
|
|
101
|
-
def description(self) -> str:
|
|
102
|
-
"""Gets the description of this TdPythonMethodInfo.
|
|
103
|
-
|
|
104
|
-
Description of the method # noqa: E501
|
|
105
|
-
|
|
106
|
-
:return: The description of this TdPythonMethodInfo.
|
|
107
|
-
:rtype: str
|
|
108
|
-
"""
|
|
109
|
-
return self._description
|
|
110
|
-
|
|
111
|
-
@description.setter
|
|
112
|
-
def description(self, description: str):
|
|
113
|
-
"""Sets the description of this TdPythonMethodInfo.
|
|
114
|
-
|
|
115
|
-
Description of the method # noqa: E501
|
|
116
|
-
|
|
117
|
-
:param description: The description of this TdPythonMethodInfo.
|
|
118
|
-
:type description: str
|
|
119
|
-
"""
|
|
120
|
-
|
|
121
|
-
self._description = description
|
|
@@ -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 TdPythonPropertyInfo(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, name=None, type=None, value=None): # noqa: E501
|
|
16
|
-
"""TdPythonPropertyInfo - a model defined in OpenAPI
|
|
17
|
-
|
|
18
|
-
:param name: The name of this TdPythonPropertyInfo. # noqa: E501
|
|
19
|
-
:type name: str
|
|
20
|
-
:param type: The type of this TdPythonPropertyInfo. # noqa: E501
|
|
21
|
-
:type type: str
|
|
22
|
-
:param value: The value of this TdPythonPropertyInfo. # noqa: E501
|
|
23
|
-
:type value: object
|
|
24
|
-
"""
|
|
25
|
-
self.openapi_types = {
|
|
26
|
-
'name': str,
|
|
27
|
-
'type': str,
|
|
28
|
-
'value': object
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
self.attribute_map = {
|
|
32
|
-
'name': 'name',
|
|
33
|
-
'type': 'type',
|
|
34
|
-
'value': 'value'
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
self._name = name
|
|
38
|
-
self._type = type
|
|
39
|
-
self._value = value
|
|
40
|
-
|
|
41
|
-
@classmethod
|
|
42
|
-
def from_dict(cls, dikt) -> 'TdPythonPropertyInfo':
|
|
43
|
-
"""Returns the dict as a model
|
|
44
|
-
|
|
45
|
-
:param dikt: A dict.
|
|
46
|
-
:type: dict
|
|
47
|
-
:return: The TdPythonPropertyInfo of this TdPythonPropertyInfo. # noqa: E501
|
|
48
|
-
:rtype: TdPythonPropertyInfo
|
|
49
|
-
"""
|
|
50
|
-
return util.deserialize_model(dikt, cls)
|
|
51
|
-
|
|
52
|
-
@property
|
|
53
|
-
def name(self) -> str:
|
|
54
|
-
"""Gets the name of this TdPythonPropertyInfo.
|
|
55
|
-
|
|
56
|
-
Property name # noqa: E501
|
|
57
|
-
|
|
58
|
-
:return: The name of this TdPythonPropertyInfo.
|
|
59
|
-
:rtype: str
|
|
60
|
-
"""
|
|
61
|
-
return self._name
|
|
62
|
-
|
|
63
|
-
@name.setter
|
|
64
|
-
def name(self, name: str):
|
|
65
|
-
"""Sets the name of this TdPythonPropertyInfo.
|
|
66
|
-
|
|
67
|
-
Property name # noqa: E501
|
|
68
|
-
|
|
69
|
-
:param name: The name of this TdPythonPropertyInfo.
|
|
70
|
-
:type name: str
|
|
71
|
-
"""
|
|
72
|
-
if name is None:
|
|
73
|
-
raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
|
|
74
|
-
|
|
75
|
-
self._name = name
|
|
76
|
-
|
|
77
|
-
@property
|
|
78
|
-
def type(self) -> str:
|
|
79
|
-
"""Gets the type of this TdPythonPropertyInfo.
|
|
80
|
-
|
|
81
|
-
Type of the property # noqa: E501
|
|
82
|
-
|
|
83
|
-
:return: The type of this TdPythonPropertyInfo.
|
|
84
|
-
:rtype: str
|
|
85
|
-
"""
|
|
86
|
-
return self._type
|
|
87
|
-
|
|
88
|
-
@type.setter
|
|
89
|
-
def type(self, type: str):
|
|
90
|
-
"""Sets the type of this TdPythonPropertyInfo.
|
|
91
|
-
|
|
92
|
-
Type of the property # noqa: E501
|
|
93
|
-
|
|
94
|
-
:param type: The type of this TdPythonPropertyInfo.
|
|
95
|
-
:type type: str
|
|
96
|
-
"""
|
|
97
|
-
if type is None:
|
|
98
|
-
raise ValueError("Invalid value for `type`, must not be `None`") # noqa: E501
|
|
99
|
-
|
|
100
|
-
self._type = type
|
|
101
|
-
|
|
102
|
-
@property
|
|
103
|
-
def value(self) -> object:
|
|
104
|
-
"""Gets the value of this TdPythonPropertyInfo.
|
|
105
|
-
|
|
106
|
-
Current value of the property (if serializable) # noqa: E501
|
|
107
|
-
|
|
108
|
-
:return: The value of this TdPythonPropertyInfo.
|
|
109
|
-
:rtype: object
|
|
110
|
-
"""
|
|
111
|
-
return self._value
|
|
112
|
-
|
|
113
|
-
@value.setter
|
|
114
|
-
def value(self, value: object):
|
|
115
|
-
"""Sets the value of this TdPythonPropertyInfo.
|
|
116
|
-
|
|
117
|
-
Current value of the property (if serializable) # noqa: E501
|
|
118
|
-
|
|
119
|
-
:param value: The value of this TdPythonPropertyInfo.
|
|
120
|
-
:type value: object
|
|
121
|
-
"""
|
|
122
|
-
|
|
123
|
-
self._value = value
|
|
@@ -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.update_node200_response_data import UpdateNode200ResponseData
|
|
7
|
-
from openapi_server import util
|
|
8
|
-
|
|
9
|
-
from openapi_server.models.update_node200_response_data import UpdateNode200ResponseData # noqa: E501
|
|
10
|
-
|
|
11
|
-
class UpdateNode200Response(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
|
-
"""UpdateNode200Response - a model defined in OpenAPI
|
|
19
|
-
|
|
20
|
-
:param success: The success of this UpdateNode200Response. # noqa: E501
|
|
21
|
-
:type success: bool
|
|
22
|
-
:param data: The data of this UpdateNode200Response. # noqa: E501
|
|
23
|
-
:type data: UpdateNode200ResponseData
|
|
24
|
-
:param error: The error of this UpdateNode200Response. # noqa: E501
|
|
25
|
-
:type error: str
|
|
26
|
-
"""
|
|
27
|
-
self.openapi_types = {
|
|
28
|
-
'success': bool,
|
|
29
|
-
'data': UpdateNode200ResponseData,
|
|
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) -> 'UpdateNode200Response':
|
|
45
|
-
"""Returns the dict as a model
|
|
46
|
-
|
|
47
|
-
:param dikt: A dict.
|
|
48
|
-
:type: dict
|
|
49
|
-
:return: The update_node_200_response of this UpdateNode200Response. # noqa: E501
|
|
50
|
-
:rtype: UpdateNode200Response
|
|
51
|
-
"""
|
|
52
|
-
return util.deserialize_model(dikt, cls)
|
|
53
|
-
|
|
54
|
-
@property
|
|
55
|
-
def success(self) -> bool:
|
|
56
|
-
"""Gets the success of this UpdateNode200Response.
|
|
57
|
-
|
|
58
|
-
Whether the update operation was successful # noqa: E501
|
|
59
|
-
|
|
60
|
-
:return: The success of this UpdateNode200Response.
|
|
61
|
-
:rtype: bool
|
|
62
|
-
"""
|
|
63
|
-
return self._success
|
|
64
|
-
|
|
65
|
-
@success.setter
|
|
66
|
-
def success(self, success: bool):
|
|
67
|
-
"""Sets the success of this UpdateNode200Response.
|
|
68
|
-
|
|
69
|
-
Whether the update operation was successful # noqa: E501
|
|
70
|
-
|
|
71
|
-
:param success: The success of this UpdateNode200Response.
|
|
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) -> UpdateNode200ResponseData:
|
|
81
|
-
"""Gets the data of this UpdateNode200Response.
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
:return: The data of this UpdateNode200Response.
|
|
85
|
-
:rtype: UpdateNode200ResponseData
|
|
86
|
-
"""
|
|
87
|
-
return self._data
|
|
88
|
-
|
|
89
|
-
@data.setter
|
|
90
|
-
def data(self, data: UpdateNode200ResponseData):
|
|
91
|
-
"""Sets the data of this UpdateNode200Response.
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
:param data: The data of this UpdateNode200Response.
|
|
95
|
-
:type data: UpdateNode200ResponseData
|
|
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 UpdateNode200Response.
|
|
105
|
-
|
|
106
|
-
Error message if the operation was not successful # noqa: E501
|
|
107
|
-
|
|
108
|
-
:return: The error of this UpdateNode200Response.
|
|
109
|
-
:rtype: str
|
|
110
|
-
"""
|
|
111
|
-
return self._error
|
|
112
|
-
|
|
113
|
-
@error.setter
|
|
114
|
-
def error(self, error: str):
|
|
115
|
-
"""Sets the error of this UpdateNode200Response.
|
|
116
|
-
|
|
117
|
-
Error message if the operation was not successful # noqa: E501
|
|
118
|
-
|
|
119
|
-
:param error: The error of this UpdateNode200Response.
|
|
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,149 +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.update_node200_response_data_failed_inner import UpdateNode200ResponseDataFailedInner
|
|
7
|
-
from openapi_server import util
|
|
8
|
-
|
|
9
|
-
from openapi_server.models.update_node200_response_data_failed_inner import UpdateNode200ResponseDataFailedInner # noqa: E501
|
|
10
|
-
|
|
11
|
-
class UpdateNode200ResponseData(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, path=None, updated=None, failed=None, message=None): # noqa: E501
|
|
18
|
-
"""UpdateNode200ResponseData - a model defined in OpenAPI
|
|
19
|
-
|
|
20
|
-
:param path: The path of this UpdateNode200ResponseData. # noqa: E501
|
|
21
|
-
:type path: str
|
|
22
|
-
:param updated: The updated of this UpdateNode200ResponseData. # noqa: E501
|
|
23
|
-
:type updated: List[str]
|
|
24
|
-
:param failed: The failed of this UpdateNode200ResponseData. # noqa: E501
|
|
25
|
-
:type failed: List[UpdateNode200ResponseDataFailedInner]
|
|
26
|
-
:param message: The message of this UpdateNode200ResponseData. # noqa: E501
|
|
27
|
-
:type message: str
|
|
28
|
-
"""
|
|
29
|
-
self.openapi_types = {
|
|
30
|
-
'path': str,
|
|
31
|
-
'updated': List[str],
|
|
32
|
-
'failed': List[UpdateNode200ResponseDataFailedInner],
|
|
33
|
-
'message': str
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
self.attribute_map = {
|
|
37
|
-
'path': 'path',
|
|
38
|
-
'updated': 'updated',
|
|
39
|
-
'failed': 'failed',
|
|
40
|
-
'message': 'message'
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
self._path = path
|
|
44
|
-
self._updated = updated
|
|
45
|
-
self._failed = failed
|
|
46
|
-
self._message = message
|
|
47
|
-
|
|
48
|
-
@classmethod
|
|
49
|
-
def from_dict(cls, dikt) -> 'UpdateNode200ResponseData':
|
|
50
|
-
"""Returns the dict as a model
|
|
51
|
-
|
|
52
|
-
:param dikt: A dict.
|
|
53
|
-
:type: dict
|
|
54
|
-
:return: The update_node_200_response_data of this UpdateNode200ResponseData. # noqa: E501
|
|
55
|
-
:rtype: UpdateNode200ResponseData
|
|
56
|
-
"""
|
|
57
|
-
return util.deserialize_model(dikt, cls)
|
|
58
|
-
|
|
59
|
-
@property
|
|
60
|
-
def path(self) -> str:
|
|
61
|
-
"""Gets the path of this UpdateNode200ResponseData.
|
|
62
|
-
|
|
63
|
-
Path of the node that was updated # noqa: E501
|
|
64
|
-
|
|
65
|
-
:return: The path of this UpdateNode200ResponseData.
|
|
66
|
-
:rtype: str
|
|
67
|
-
"""
|
|
68
|
-
return self._path
|
|
69
|
-
|
|
70
|
-
@path.setter
|
|
71
|
-
def path(self, path: str):
|
|
72
|
-
"""Sets the path of this UpdateNode200ResponseData.
|
|
73
|
-
|
|
74
|
-
Path of the node that was updated # noqa: E501
|
|
75
|
-
|
|
76
|
-
:param path: The path of this UpdateNode200ResponseData.
|
|
77
|
-
:type path: str
|
|
78
|
-
"""
|
|
79
|
-
|
|
80
|
-
self._path = path
|
|
81
|
-
|
|
82
|
-
@property
|
|
83
|
-
def updated(self) -> List[str]:
|
|
84
|
-
"""Gets the updated of this UpdateNode200ResponseData.
|
|
85
|
-
|
|
86
|
-
List of property names that were successfully updated # noqa: E501
|
|
87
|
-
|
|
88
|
-
:return: The updated of this UpdateNode200ResponseData.
|
|
89
|
-
:rtype: List[str]
|
|
90
|
-
"""
|
|
91
|
-
return self._updated
|
|
92
|
-
|
|
93
|
-
@updated.setter
|
|
94
|
-
def updated(self, updated: List[str]):
|
|
95
|
-
"""Sets the updated of this UpdateNode200ResponseData.
|
|
96
|
-
|
|
97
|
-
List of property names that were successfully updated # noqa: E501
|
|
98
|
-
|
|
99
|
-
:param updated: The updated of this UpdateNode200ResponseData.
|
|
100
|
-
:type updated: List[str]
|
|
101
|
-
"""
|
|
102
|
-
|
|
103
|
-
self._updated = updated
|
|
104
|
-
|
|
105
|
-
@property
|
|
106
|
-
def failed(self) -> List[UpdateNode200ResponseDataFailedInner]:
|
|
107
|
-
"""Gets the failed of this UpdateNode200ResponseData.
|
|
108
|
-
|
|
109
|
-
List of properties that failed to update # noqa: E501
|
|
110
|
-
|
|
111
|
-
:return: The failed of this UpdateNode200ResponseData.
|
|
112
|
-
:rtype: List[UpdateNode200ResponseDataFailedInner]
|
|
113
|
-
"""
|
|
114
|
-
return self._failed
|
|
115
|
-
|
|
116
|
-
@failed.setter
|
|
117
|
-
def failed(self, failed: List[UpdateNode200ResponseDataFailedInner]):
|
|
118
|
-
"""Sets the failed of this UpdateNode200ResponseData.
|
|
119
|
-
|
|
120
|
-
List of properties that failed to update # noqa: E501
|
|
121
|
-
|
|
122
|
-
:param failed: The failed of this UpdateNode200ResponseData.
|
|
123
|
-
:type failed: List[UpdateNode200ResponseDataFailedInner]
|
|
124
|
-
"""
|
|
125
|
-
|
|
126
|
-
self._failed = failed
|
|
127
|
-
|
|
128
|
-
@property
|
|
129
|
-
def message(self) -> str:
|
|
130
|
-
"""Gets the message of this UpdateNode200ResponseData.
|
|
131
|
-
|
|
132
|
-
Summary message about the update operation # noqa: E501
|
|
133
|
-
|
|
134
|
-
:return: The message of this UpdateNode200ResponseData.
|
|
135
|
-
:rtype: str
|
|
136
|
-
"""
|
|
137
|
-
return self._message
|
|
138
|
-
|
|
139
|
-
@message.setter
|
|
140
|
-
def message(self, message: str):
|
|
141
|
-
"""Sets the message of this UpdateNode200ResponseData.
|
|
142
|
-
|
|
143
|
-
Summary message about the update operation # noqa: E501
|
|
144
|
-
|
|
145
|
-
:param message: The message of this UpdateNode200ResponseData.
|
|
146
|
-
:type message: str
|
|
147
|
-
"""
|
|
148
|
-
|
|
149
|
-
self._message = message
|