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.
Files changed (82) hide show
  1. package/README.ja.md +4 -4
  2. package/README.md +4 -3
  3. package/dist/cli.js +0 -0
  4. package/dist/gen/endpoints/TouchDesignerAPI.js +1 -1
  5. package/dist/gen/mcp/touchDesignerAPI.zod.js +1 -1
  6. package/dist/index.js +0 -0
  7. package/dist/server/touchDesignerServer.js +1 -1
  8. package/package.json +14 -12
  9. package/td/genHandlers.js +0 -47
  10. package/td/import_modules.py +0 -52
  11. package/td/mcp_webserver_base.tox +0 -0
  12. package/td/modules/mcp/controllers/__init__.py +0 -9
  13. package/td/modules/mcp/controllers/api_controller.py +0 -637
  14. package/td/modules/mcp/controllers/generated_handlers.py +0 -365
  15. package/td/modules/mcp/controllers/openapi_router.py +0 -265
  16. package/td/modules/mcp/services/__init__.py +0 -8
  17. package/td/modules/mcp/services/api_service.py +0 -555
  18. package/td/modules/mcp_webserver_script.py +0 -134
  19. package/td/modules/td_server/.dockerignore +0 -72
  20. package/td/modules/td_server/.openapi-generator/FILES +0 -55
  21. package/td/modules/td_server/.openapi-generator/VERSION +0 -1
  22. package/td/modules/td_server/.openapi-generator-ignore +0 -23
  23. package/td/modules/td_server/.travis.yml +0 -14
  24. package/td/modules/td_server/Dockerfile +0 -16
  25. package/td/modules/td_server/README.md +0 -49
  26. package/td/modules/td_server/git_push.sh +0 -57
  27. package/td/modules/td_server/openapi_server/__init__.py +0 -0
  28. package/td/modules/td_server/openapi_server/__main__.py +0 -19
  29. package/td/modules/td_server/openapi_server/controllers/__init__.py +0 -0
  30. package/td/modules/td_server/openapi_server/controllers/default_controller.py +0 -162
  31. package/td/modules/td_server/openapi_server/controllers/security_controller.py +0 -2
  32. package/td/modules/td_server/openapi_server/encoder.py +0 -19
  33. package/td/modules/td_server/openapi_server/models/__init__.py +0 -33
  34. package/td/modules/td_server/openapi_server/models/base_model.py +0 -68
  35. package/td/modules/td_server/openapi_server/models/create_node200_response.py +0 -125
  36. package/td/modules/td_server/openapi_server/models/create_node200_response_data.py +0 -63
  37. package/td/modules/td_server/openapi_server/models/create_node_request.py +0 -123
  38. package/td/modules/td_server/openapi_server/models/delete_node200_response.py +0 -125
  39. package/td/modules/td_server/openapi_server/models/delete_node200_response_data.py +0 -91
  40. package/td/modules/td_server/openapi_server/models/exec_node_method200_response.py +0 -125
  41. package/td/modules/td_server/openapi_server/models/exec_node_method200_response_data.py +0 -65
  42. package/td/modules/td_server/openapi_server/models/exec_node_method_request.py +0 -153
  43. package/td/modules/td_server/openapi_server/models/exec_node_method_request_args_inner.py +0 -34
  44. package/td/modules/td_server/openapi_server/models/exec_python_script200_response.py +0 -125
  45. package/td/modules/td_server/openapi_server/models/exec_python_script200_response_data.py +0 -65
  46. package/td/modules/td_server/openapi_server/models/exec_python_script200_response_data_result.py +0 -63
  47. package/td/modules/td_server/openapi_server/models/exec_python_script_request.py +0 -65
  48. package/td/modules/td_server/openapi_server/models/get_node_detail200_response.py +0 -125
  49. package/td/modules/td_server/openapi_server/models/get_nodes200_response.py +0 -125
  50. package/td/modules/td_server/openapi_server/models/get_nodes200_response_data.py +0 -65
  51. package/td/modules/td_server/openapi_server/models/get_td_info200_response.py +0 -125
  52. package/td/modules/td_server/openapi_server/models/get_td_info200_response_data.py +0 -155
  53. package/td/modules/td_server/openapi_server/models/get_td_python_class_details200_response.py +0 -125
  54. package/td/modules/td_server/openapi_server/models/get_td_python_classes200_response.py +0 -125
  55. package/td/modules/td_server/openapi_server/models/get_td_python_classes200_response_data.py +0 -63
  56. package/td/modules/td_server/openapi_server/models/td_node.py +0 -175
  57. package/td/modules/td_server/openapi_server/models/td_node_family_type.py +0 -44
  58. package/td/modules/td_server/openapi_server/models/td_python_class_details.py +0 -191
  59. package/td/modules/td_server/openapi_server/models/td_python_class_info.py +0 -127
  60. package/td/modules/td_server/openapi_server/models/td_python_method_info.py +0 -121
  61. package/td/modules/td_server/openapi_server/models/td_python_property_info.py +0 -123
  62. package/td/modules/td_server/openapi_server/models/update_node200_response.py +0 -125
  63. package/td/modules/td_server/openapi_server/models/update_node200_response_data.py +0 -149
  64. package/td/modules/td_server/openapi_server/models/update_node200_response_data_failed_inner.py +0 -91
  65. package/td/modules/td_server/openapi_server/models/update_node_request.py +0 -93
  66. package/td/modules/td_server/openapi_server/openapi/openapi.yaml +0 -975
  67. package/td/modules/td_server/openapi_server/test/__init__.py +0 -16
  68. package/td/modules/td_server/openapi_server/test/test_default_controller.py +0 -201
  69. package/td/modules/td_server/openapi_server/typing_utils.py +0 -30
  70. package/td/modules/td_server/openapi_server/util.py +0 -147
  71. package/td/modules/td_server/requirements.txt +0 -13
  72. package/td/modules/td_server/setup.py +0 -37
  73. package/td/modules/td_server/test-requirements.txt +0 -4
  74. package/td/modules/td_server/tox.ini +0 -11
  75. package/td/modules/utils/config.py +0 -7
  76. package/td/modules/utils/error_handling.py +0 -104
  77. package/td/modules/utils/logging.py +0 -23
  78. package/td/modules/utils/result.py +0 -40
  79. package/td/modules/utils/serialization.py +0 -57
  80. package/td/modules/utils/types.py +0 -33
  81. package/td/modules/utils/utils_logging.py +0 -60
  82. package/td/templates/mcp/api_controller_handlers.mustache +0 -63
@@ -1,65 +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 ExecNodeMethod200ResponseData(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, result=None): # noqa: E501
16
- """ExecNodeMethod200ResponseData - a model defined in OpenAPI
17
-
18
- :param result: The result of this ExecNodeMethod200ResponseData. # noqa: E501
19
- :type result: object
20
- """
21
- self.openapi_types = {
22
- 'result': object
23
- }
24
-
25
- self.attribute_map = {
26
- 'result': 'result'
27
- }
28
-
29
- self._result = result
30
-
31
- @classmethod
32
- def from_dict(cls, dikt) -> 'ExecNodeMethod200ResponseData':
33
- """Returns the dict as a model
34
-
35
- :param dikt: A dict.
36
- :type: dict
37
- :return: The exec_node_method_200_response_data of this ExecNodeMethod200ResponseData. # noqa: E501
38
- :rtype: ExecNodeMethod200ResponseData
39
- """
40
- return util.deserialize_model(dikt, cls)
41
-
42
- @property
43
- def result(self) -> object:
44
- """Gets the result of this ExecNodeMethod200ResponseData.
45
-
46
- Result of the method call. Can be any type (equivalent to unknown in TypeScript). # noqa: E501
47
-
48
- :return: The result of this ExecNodeMethod200ResponseData.
49
- :rtype: object
50
- """
51
- return self._result
52
-
53
- @result.setter
54
- def result(self, result: object):
55
- """Sets the result of this ExecNodeMethod200ResponseData.
56
-
57
- Result of the method call. Can be any type (equivalent to unknown in TypeScript). # noqa: E501
58
-
59
- :param result: The result of this ExecNodeMethod200ResponseData.
60
- :type result: object
61
- """
62
- if result is None:
63
- raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
64
-
65
- self._result = result
@@ -1,153 +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_method_request_args_inner import ExecNodeMethodRequestArgsInner
7
- from openapi_server import util
8
-
9
- from openapi_server.models.exec_node_method_request_args_inner import ExecNodeMethodRequestArgsInner # noqa: E501
10
-
11
- class ExecNodeMethodRequest(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, node_path=None, method=None, args=None, kwargs=None): # noqa: E501
18
- """ExecNodeMethodRequest - a model defined in OpenAPI
19
-
20
- :param node_path: The node_path of this ExecNodeMethodRequest. # noqa: E501
21
- :type node_path: str
22
- :param method: The method of this ExecNodeMethodRequest. # noqa: E501
23
- :type method: str
24
- :param args: The args of this ExecNodeMethodRequest. # noqa: E501
25
- :type args: List[ExecNodeMethodRequestArgsInner]
26
- :param kwargs: The kwargs of this ExecNodeMethodRequest. # noqa: E501
27
- :type kwargs: Dict[str, object]
28
- """
29
- self.openapi_types = {
30
- 'node_path': str,
31
- 'method': str,
32
- 'args': List[ExecNodeMethodRequestArgsInner],
33
- 'kwargs': Dict[str, object]
34
- }
35
-
36
- self.attribute_map = {
37
- 'node_path': 'nodePath',
38
- 'method': 'method',
39
- 'args': 'args',
40
- 'kwargs': 'kwargs'
41
- }
42
-
43
- self._node_path = node_path
44
- self._method = method
45
- self._args = args
46
- self._kwargs = kwargs
47
-
48
- @classmethod
49
- def from_dict(cls, dikt) -> 'ExecNodeMethodRequest':
50
- """Returns the dict as a model
51
-
52
- :param dikt: A dict.
53
- :type: dict
54
- :return: The exec_node_method_request of this ExecNodeMethodRequest. # noqa: E501
55
- :rtype: ExecNodeMethodRequest
56
- """
57
- return util.deserialize_model(dikt, cls)
58
-
59
- @property
60
- def node_path(self) -> str:
61
- """Gets the node_path of this ExecNodeMethodRequest.
62
-
63
- Path to the node (e.g., /project1/null1) # noqa: E501
64
-
65
- :return: The node_path of this ExecNodeMethodRequest.
66
- :rtype: str
67
- """
68
- return self._node_path
69
-
70
- @node_path.setter
71
- def node_path(self, node_path: str):
72
- """Sets the node_path of this ExecNodeMethodRequest.
73
-
74
- Path to the node (e.g., /project1/null1) # noqa: E501
75
-
76
- :param node_path: The node_path of this ExecNodeMethodRequest.
77
- :type node_path: str
78
- """
79
- if node_path is None:
80
- raise ValueError("Invalid value for `node_path`, must not be `None`") # noqa: E501
81
-
82
- self._node_path = node_path
83
-
84
- @property
85
- def method(self) -> str:
86
- """Gets the method of this ExecNodeMethodRequest.
87
-
88
- Name of the method to call # noqa: E501
89
-
90
- :return: The method of this ExecNodeMethodRequest.
91
- :rtype: str
92
- """
93
- return self._method
94
-
95
- @method.setter
96
- def method(self, method: str):
97
- """Sets the method of this ExecNodeMethodRequest.
98
-
99
- Name of the method to call # noqa: E501
100
-
101
- :param method: The method of this ExecNodeMethodRequest.
102
- :type method: str
103
- """
104
- if method is None:
105
- raise ValueError("Invalid value for `method`, must not be `None`") # noqa: E501
106
-
107
- self._method = method
108
-
109
- @property
110
- def args(self) -> List[ExecNodeMethodRequestArgsInner]:
111
- """Gets the args of this ExecNodeMethodRequest.
112
-
113
- List of arguments for the method call # noqa: E501
114
-
115
- :return: The args of this ExecNodeMethodRequest.
116
- :rtype: List[ExecNodeMethodRequestArgsInner]
117
- """
118
- return self._args
119
-
120
- @args.setter
121
- def args(self, args: List[ExecNodeMethodRequestArgsInner]):
122
- """Sets the args of this ExecNodeMethodRequest.
123
-
124
- List of arguments for the method call # noqa: E501
125
-
126
- :param args: The args of this ExecNodeMethodRequest.
127
- :type args: List[ExecNodeMethodRequestArgsInner]
128
- """
129
-
130
- self._args = args
131
-
132
- @property
133
- def kwargs(self) -> Dict[str, object]:
134
- """Gets the kwargs of this ExecNodeMethodRequest.
135
-
136
- Keyword arguments for the method call # noqa: E501
137
-
138
- :return: The kwargs of this ExecNodeMethodRequest.
139
- :rtype: Dict[str, object]
140
- """
141
- return self._kwargs
142
-
143
- @kwargs.setter
144
- def kwargs(self, kwargs: Dict[str, object]):
145
- """Sets the kwargs of this ExecNodeMethodRequest.
146
-
147
- Keyword arguments for the method call # noqa: E501
148
-
149
- :param kwargs: The kwargs of this ExecNodeMethodRequest.
150
- :type kwargs: Dict[str, object]
151
- """
152
-
153
- self._kwargs = kwargs
@@ -1,34 +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 ExecNodeMethodRequestArgsInner(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): # noqa: E501
16
- """ExecNodeMethodRequestArgsInner - a model defined in OpenAPI
17
-
18
- """
19
- self.openapi_types = {
20
- }
21
-
22
- self.attribute_map = {
23
- }
24
-
25
- @classmethod
26
- def from_dict(cls, dikt) -> 'ExecNodeMethodRequestArgsInner':
27
- """Returns the dict as a model
28
-
29
- :param dikt: A dict.
30
- :type: dict
31
- :return: The exec_node_method_request_args_inner of this ExecNodeMethodRequestArgsInner. # noqa: E501
32
- :rtype: ExecNodeMethodRequestArgsInner
33
- """
34
- return util.deserialize_model(dikt, cls)
@@ -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_python_script200_response_data import ExecPythonScript200ResponseData
7
- from openapi_server import util
8
-
9
- from openapi_server.models.exec_python_script200_response_data import ExecPythonScript200ResponseData # noqa: E501
10
-
11
- class ExecPythonScript200Response(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
- """ExecPythonScript200Response - a model defined in OpenAPI
19
-
20
- :param success: The success of this ExecPythonScript200Response. # noqa: E501
21
- :type success: bool
22
- :param data: The data of this ExecPythonScript200Response. # noqa: E501
23
- :type data: ExecPythonScript200ResponseData
24
- :param error: The error of this ExecPythonScript200Response. # noqa: E501
25
- :type error: str
26
- """
27
- self.openapi_types = {
28
- 'success': bool,
29
- 'data': ExecPythonScript200ResponseData,
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) -> 'ExecPythonScript200Response':
45
- """Returns the dict as a model
46
-
47
- :param dikt: A dict.
48
- :type: dict
49
- :return: The exec_python_script_200_response of this ExecPythonScript200Response. # noqa: E501
50
- :rtype: ExecPythonScript200Response
51
- """
52
- return util.deserialize_model(dikt, cls)
53
-
54
- @property
55
- def success(self) -> bool:
56
- """Gets the success of this ExecPythonScript200Response.
57
-
58
- Whether the operation was successful # noqa: E501
59
-
60
- :return: The success of this ExecPythonScript200Response.
61
- :rtype: bool
62
- """
63
- return self._success
64
-
65
- @success.setter
66
- def success(self, success: bool):
67
- """Sets the success of this ExecPythonScript200Response.
68
-
69
- Whether the operation was successful # noqa: E501
70
-
71
- :param success: The success of this ExecPythonScript200Response.
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) -> ExecPythonScript200ResponseData:
81
- """Gets the data of this ExecPythonScript200Response.
82
-
83
-
84
- :return: The data of this ExecPythonScript200Response.
85
- :rtype: ExecPythonScript200ResponseData
86
- """
87
- return self._data
88
-
89
- @data.setter
90
- def data(self, data: ExecPythonScript200ResponseData):
91
- """Sets the data of this ExecPythonScript200Response.
92
-
93
-
94
- :param data: The data of this ExecPythonScript200Response.
95
- :type data: ExecPythonScript200ResponseData
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 ExecPythonScript200Response.
105
-
106
- Error message if the operation was not successful # noqa: E501
107
-
108
- :return: The error of this ExecPythonScript200Response.
109
- :rtype: str
110
- """
111
- return self._error
112
-
113
- @error.setter
114
- def error(self, error: str):
115
- """Sets the error of this ExecPythonScript200Response.
116
-
117
- Error message if the operation was not successful # noqa: E501
118
-
119
- :param error: The error of this ExecPythonScript200Response.
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,65 +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_python_script200_response_data_result import ExecPythonScript200ResponseDataResult
7
- from openapi_server import util
8
-
9
- from openapi_server.models.exec_python_script200_response_data_result import ExecPythonScript200ResponseDataResult # noqa: E501
10
-
11
- class ExecPythonScript200ResponseData(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
- """ExecPythonScript200ResponseData - a model defined in OpenAPI
19
-
20
- :param result: The result of this ExecPythonScript200ResponseData. # noqa: E501
21
- :type result: ExecPythonScript200ResponseDataResult
22
- """
23
- self.openapi_types = {
24
- 'result': ExecPythonScript200ResponseDataResult
25
- }
26
-
27
- self.attribute_map = {
28
- 'result': 'result'
29
- }
30
-
31
- self._result = result
32
-
33
- @classmethod
34
- def from_dict(cls, dikt) -> 'ExecPythonScript200ResponseData':
35
- """Returns the dict as a model
36
-
37
- :param dikt: A dict.
38
- :type: dict
39
- :return: The exec_python_script_200_response_data of this ExecPythonScript200ResponseData. # noqa: E501
40
- :rtype: ExecPythonScript200ResponseData
41
- """
42
- return util.deserialize_model(dikt, cls)
43
-
44
- @property
45
- def result(self) -> ExecPythonScript200ResponseDataResult:
46
- """Gets the result of this ExecPythonScript200ResponseData.
47
-
48
-
49
- :return: The result of this ExecPythonScript200ResponseData.
50
- :rtype: ExecPythonScript200ResponseDataResult
51
- """
52
- return self._result
53
-
54
- @result.setter
55
- def result(self, result: ExecPythonScript200ResponseDataResult):
56
- """Sets the result of this ExecPythonScript200ResponseData.
57
-
58
-
59
- :param result: The result of this ExecPythonScript200ResponseData.
60
- :type result: ExecPythonScript200ResponseDataResult
61
- """
62
- if result is None:
63
- raise ValueError("Invalid value for `result`, must not be `None`") # noqa: E501
64
-
65
- self._result = result
@@ -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 import util
7
-
8
-
9
- class ExecPythonScript200ResponseDataResult(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, value=None): # noqa: E501
16
- """ExecPythonScript200ResponseDataResult - a model defined in OpenAPI
17
-
18
- :param value: The value of this ExecPythonScript200ResponseDataResult. # noqa: E501
19
- :type value: object
20
- """
21
- self.openapi_types = {
22
- 'value': object
23
- }
24
-
25
- self.attribute_map = {
26
- 'value': 'value'
27
- }
28
-
29
- self._value = value
30
-
31
- @classmethod
32
- def from_dict(cls, dikt) -> 'ExecPythonScript200ResponseDataResult':
33
- """Returns the dict as a model
34
-
35
- :param dikt: A dict.
36
- :type: dict
37
- :return: The exec_python_script_200_response_data_result of this ExecPythonScript200ResponseDataResult. # noqa: E501
38
- :rtype: ExecPythonScript200ResponseDataResult
39
- """
40
- return util.deserialize_model(dikt, cls)
41
-
42
- @property
43
- def value(self) -> object:
44
- """Gets the value of this ExecPythonScript200ResponseDataResult.
45
-
46
- Return value of the executed script, can be any serializable value # noqa: E501
47
-
48
- :return: The value of this ExecPythonScript200ResponseDataResult.
49
- :rtype: object
50
- """
51
- return self._value
52
-
53
- @value.setter
54
- def value(self, value: object):
55
- """Sets the value of this ExecPythonScript200ResponseDataResult.
56
-
57
- Return value of the executed script, can be any serializable value # noqa: E501
58
-
59
- :param value: The value of this ExecPythonScript200ResponseDataResult.
60
- :type value: object
61
- """
62
-
63
- self._value = value
@@ -1,65 +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 ExecPythonScriptRequest(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, script=None): # noqa: E501
16
- """ExecPythonScriptRequest - a model defined in OpenAPI
17
-
18
- :param script: The script of this ExecPythonScriptRequest. # noqa: E501
19
- :type script: str
20
- """
21
- self.openapi_types = {
22
- 'script': str
23
- }
24
-
25
- self.attribute_map = {
26
- 'script': 'script'
27
- }
28
-
29
- self._script = script
30
-
31
- @classmethod
32
- def from_dict(cls, dikt) -> 'ExecPythonScriptRequest':
33
- """Returns the dict as a model
34
-
35
- :param dikt: A dict.
36
- :type: dict
37
- :return: The exec_python_script_request of this ExecPythonScriptRequest. # noqa: E501
38
- :rtype: ExecPythonScriptRequest
39
- """
40
- return util.deserialize_model(dikt, cls)
41
-
42
- @property
43
- def script(self) -> str:
44
- """Gets the script of this ExecPythonScriptRequest.
45
-
46
- e.g., \"op('/project1/text_over_image').outputConnectors[0].connect(op('/project1/out1'))\" # noqa: E501
47
-
48
- :return: The script of this ExecPythonScriptRequest.
49
- :rtype: str
50
- """
51
- return self._script
52
-
53
- @script.setter
54
- def script(self, script: str):
55
- """Sets the script of this ExecPythonScriptRequest.
56
-
57
- e.g., \"op('/project1/text_over_image').outputConnectors[0].connect(op('/project1/out1'))\" # noqa: E501
58
-
59
- :param script: The script of this ExecPythonScriptRequest.
60
- :type script: str
61
- """
62
- if script is None:
63
- raise ValueError("Invalid value for `script`, must not be `None`") # noqa: E501
64
-
65
- self._script = script
@@ -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.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 GetNodeDetail200Response(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
- """GetNodeDetail200Response - a model defined in OpenAPI
19
-
20
- :param success: The success of this GetNodeDetail200Response. # noqa: E501
21
- :type success: bool
22
- :param data: The data of this GetNodeDetail200Response. # noqa: E501
23
- :type data: TdNode
24
- :param error: The error of this GetNodeDetail200Response. # noqa: E501
25
- :type error: str
26
- """
27
- self.openapi_types = {
28
- 'success': bool,
29
- 'data': TdNode,
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) -> 'GetNodeDetail200Response':
45
- """Returns the dict as a model
46
-
47
- :param dikt: A dict.
48
- :type: dict
49
- :return: The get_node_detail_200_response of this GetNodeDetail200Response. # noqa: E501
50
- :rtype: GetNodeDetail200Response
51
- """
52
- return util.deserialize_model(dikt, cls)
53
-
54
- @property
55
- def success(self) -> bool:
56
- """Gets the success of this GetNodeDetail200Response.
57
-
58
- Whether the operation was successful # noqa: E501
59
-
60
- :return: The success of this GetNodeDetail200Response.
61
- :rtype: bool
62
- """
63
- return self._success
64
-
65
- @success.setter
66
- def success(self, success: bool):
67
- """Sets the success of this GetNodeDetail200Response.
68
-
69
- Whether the operation was successful # noqa: E501
70
-
71
- :param success: The success of this GetNodeDetail200Response.
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) -> TdNode:
81
- """Gets the data of this GetNodeDetail200Response.
82
-
83
-
84
- :return: The data of this GetNodeDetail200Response.
85
- :rtype: TdNode
86
- """
87
- return self._data
88
-
89
- @data.setter
90
- def data(self, data: TdNode):
91
- """Sets the data of this GetNodeDetail200Response.
92
-
93
-
94
- :param data: The data of this GetNodeDetail200Response.
95
- :type data: TdNode
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 GetNodeDetail200Response.
105
-
106
- Error message if the operation was not successful # noqa: E501
107
-
108
- :return: The error of this GetNodeDetail200Response.
109
- :rtype: str
110
- """
111
- return self._error
112
-
113
- @error.setter
114
- def error(self, error: str):
115
- """Sets the error of this GetNodeDetail200Response.
116
-
117
- Error message if the operation was not successful # noqa: E501
118
-
119
- :param error: The error of this GetNodeDetail200Response.
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