huaweicloudsdkoroas 3.1.160__py3-none-any.whl
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.
- huaweicloudsdkoroas/__init__.py +0 -0
- huaweicloudsdkoroas/v1/__init__.py +18 -0
- huaweicloudsdkoroas/v1/model/__init__.py +15 -0
- huaweicloudsdkoroas/v1/model/create_task_request.py +195 -0
- huaweicloudsdkoroas/v1/model/create_task_response.py +116 -0
- huaweicloudsdkoroas/v1/model/delete_task_request.py +198 -0
- huaweicloudsdkoroas/v1/model/delete_task_response.py +85 -0
- huaweicloudsdkoroas/v1/model/list_task_request.py +228 -0
- huaweicloudsdkoroas/v1/model/list_task_response.py +145 -0
- huaweicloudsdkoroas/v1/model/show_task_request.py +227 -0
- huaweicloudsdkoroas/v1/model/show_task_response.py +348 -0
- huaweicloudsdkoroas/v1/model/task_dto.py +172 -0
- huaweicloudsdkoroas/v1/model/task_list_item_vo.py +231 -0
- huaweicloudsdkoroas/v1/oroas_async_client.py +371 -0
- huaweicloudsdkoroas/v1/oroas_client.py +368 -0
- huaweicloudsdkoroas/v1/region/__init__.py +0 -0
- huaweicloudsdkoroas/v1/region/oroas_region.py +31 -0
- huaweicloudsdkoroas-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkoroas-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkoroas-3.1.160.dist-info/RECORD +22 -0
- huaweicloudsdkoroas-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkoroas-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,228 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ListTaskRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'x_apig_app_code': 'str',
|
21
|
+
'service_group': 'str',
|
22
|
+
'service_type': 'str',
|
23
|
+
'limit': 'int',
|
24
|
+
'offset': 'int'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'x_apig_app_code': 'X-Apig-AppCode',
|
29
|
+
'service_group': 'service_group',
|
30
|
+
'service_type': 'service_type',
|
31
|
+
'limit': 'limit',
|
32
|
+
'offset': 'offset'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, x_apig_app_code=None, service_group=None, service_type=None, limit=None, offset=None):
|
36
|
+
r"""ListTaskRequest
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param x_apig_app_code: 用户凭证
|
41
|
+
:type x_apig_app_code: str
|
42
|
+
:param service_group: 服务类别,针对不同服务类场景,为用户提前填充对应值,用户侧不需单独赋值;当前仅支持 二维切割 2dcut ,便于后续扩展
|
43
|
+
:type service_group: str
|
44
|
+
:param service_type: 子服务类型,针对不同服务,为用户提前填充对应值,用户侧不需单独赋值;服装切割固定为 irregular-textile,雕刻机切割固定为 engraving-machine-cutting, 板材切割固定为 regular-plate
|
45
|
+
:type service_type: str
|
46
|
+
:param limit: 限制量,单次查询总量,必须由数字组成,默认为300,取值范围[1,300]
|
47
|
+
:type limit: int
|
48
|
+
:param offset: 偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
|
49
|
+
:type offset: int
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._x_apig_app_code = None
|
55
|
+
self._service_group = None
|
56
|
+
self._service_type = None
|
57
|
+
self._limit = None
|
58
|
+
self._offset = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.x_apig_app_code = x_apig_app_code
|
62
|
+
self.service_group = service_group
|
63
|
+
self.service_type = service_type
|
64
|
+
if limit is not None:
|
65
|
+
self.limit = limit
|
66
|
+
if offset is not None:
|
67
|
+
self.offset = offset
|
68
|
+
|
69
|
+
@property
|
70
|
+
def x_apig_app_code(self):
|
71
|
+
r"""Gets the x_apig_app_code of this ListTaskRequest.
|
72
|
+
|
73
|
+
用户凭证
|
74
|
+
|
75
|
+
:return: The x_apig_app_code of this ListTaskRequest.
|
76
|
+
:rtype: str
|
77
|
+
"""
|
78
|
+
return self._x_apig_app_code
|
79
|
+
|
80
|
+
@x_apig_app_code.setter
|
81
|
+
def x_apig_app_code(self, x_apig_app_code):
|
82
|
+
r"""Sets the x_apig_app_code of this ListTaskRequest.
|
83
|
+
|
84
|
+
用户凭证
|
85
|
+
|
86
|
+
:param x_apig_app_code: The x_apig_app_code of this ListTaskRequest.
|
87
|
+
:type x_apig_app_code: str
|
88
|
+
"""
|
89
|
+
self._x_apig_app_code = x_apig_app_code
|
90
|
+
|
91
|
+
@property
|
92
|
+
def service_group(self):
|
93
|
+
r"""Gets the service_group of this ListTaskRequest.
|
94
|
+
|
95
|
+
服务类别,针对不同服务类场景,为用户提前填充对应值,用户侧不需单独赋值;当前仅支持 二维切割 2dcut ,便于后续扩展
|
96
|
+
|
97
|
+
:return: The service_group of this ListTaskRequest.
|
98
|
+
:rtype: str
|
99
|
+
"""
|
100
|
+
return self._service_group
|
101
|
+
|
102
|
+
@service_group.setter
|
103
|
+
def service_group(self, service_group):
|
104
|
+
r"""Sets the service_group of this ListTaskRequest.
|
105
|
+
|
106
|
+
服务类别,针对不同服务类场景,为用户提前填充对应值,用户侧不需单独赋值;当前仅支持 二维切割 2dcut ,便于后续扩展
|
107
|
+
|
108
|
+
:param service_group: The service_group of this ListTaskRequest.
|
109
|
+
:type service_group: str
|
110
|
+
"""
|
111
|
+
self._service_group = service_group
|
112
|
+
|
113
|
+
@property
|
114
|
+
def service_type(self):
|
115
|
+
r"""Gets the service_type of this ListTaskRequest.
|
116
|
+
|
117
|
+
子服务类型,针对不同服务,为用户提前填充对应值,用户侧不需单独赋值;服装切割固定为 irregular-textile,雕刻机切割固定为 engraving-machine-cutting, 板材切割固定为 regular-plate
|
118
|
+
|
119
|
+
:return: The service_type of this ListTaskRequest.
|
120
|
+
:rtype: str
|
121
|
+
"""
|
122
|
+
return self._service_type
|
123
|
+
|
124
|
+
@service_type.setter
|
125
|
+
def service_type(self, service_type):
|
126
|
+
r"""Sets the service_type of this ListTaskRequest.
|
127
|
+
|
128
|
+
子服务类型,针对不同服务,为用户提前填充对应值,用户侧不需单独赋值;服装切割固定为 irregular-textile,雕刻机切割固定为 engraving-machine-cutting, 板材切割固定为 regular-plate
|
129
|
+
|
130
|
+
:param service_type: The service_type of this ListTaskRequest.
|
131
|
+
:type service_type: str
|
132
|
+
"""
|
133
|
+
self._service_type = service_type
|
134
|
+
|
135
|
+
@property
|
136
|
+
def limit(self):
|
137
|
+
r"""Gets the limit of this ListTaskRequest.
|
138
|
+
|
139
|
+
限制量,单次查询总量,必须由数字组成,默认为300,取值范围[1,300]
|
140
|
+
|
141
|
+
:return: The limit of this ListTaskRequest.
|
142
|
+
:rtype: int
|
143
|
+
"""
|
144
|
+
return self._limit
|
145
|
+
|
146
|
+
@limit.setter
|
147
|
+
def limit(self, limit):
|
148
|
+
r"""Sets the limit of this ListTaskRequest.
|
149
|
+
|
150
|
+
限制量,单次查询总量,必须由数字组成,默认为300,取值范围[1,300]
|
151
|
+
|
152
|
+
:param limit: The limit of this ListTaskRequest.
|
153
|
+
:type limit: int
|
154
|
+
"""
|
155
|
+
self._limit = limit
|
156
|
+
|
157
|
+
@property
|
158
|
+
def offset(self):
|
159
|
+
r"""Gets the offset of this ListTaskRequest.
|
160
|
+
|
161
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
|
162
|
+
|
163
|
+
:return: The offset of this ListTaskRequest.
|
164
|
+
:rtype: int
|
165
|
+
"""
|
166
|
+
return self._offset
|
167
|
+
|
168
|
+
@offset.setter
|
169
|
+
def offset(self, offset):
|
170
|
+
r"""Sets the offset of this ListTaskRequest.
|
171
|
+
|
172
|
+
偏移量,查询起始偏移,必须由数字组成,默认为0,取值范围[0,100000000]
|
173
|
+
|
174
|
+
:param offset: The offset of this ListTaskRequest.
|
175
|
+
:type offset: int
|
176
|
+
"""
|
177
|
+
self._offset = offset
|
178
|
+
|
179
|
+
def to_dict(self):
|
180
|
+
"""Returns the model properties as a dict"""
|
181
|
+
result = {}
|
182
|
+
|
183
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
184
|
+
value = getattr(self, attr)
|
185
|
+
if isinstance(value, list):
|
186
|
+
result[attr] = list(map(
|
187
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
188
|
+
value
|
189
|
+
))
|
190
|
+
elif hasattr(value, "to_dict"):
|
191
|
+
result[attr] = value.to_dict()
|
192
|
+
elif isinstance(value, dict):
|
193
|
+
result[attr] = dict(map(
|
194
|
+
lambda item: (item[0], item[1].to_dict())
|
195
|
+
if hasattr(item[1], "to_dict") else item,
|
196
|
+
value.items()
|
197
|
+
))
|
198
|
+
else:
|
199
|
+
if attr in self.sensitive_list:
|
200
|
+
result[attr] = "****"
|
201
|
+
else:
|
202
|
+
result[attr] = value
|
203
|
+
|
204
|
+
return result
|
205
|
+
|
206
|
+
def to_str(self):
|
207
|
+
"""Returns the string representation of the model"""
|
208
|
+
import simplejson as json
|
209
|
+
if six.PY2:
|
210
|
+
import sys
|
211
|
+
reload(sys)
|
212
|
+
sys.setdefaultencoding("utf-8")
|
213
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
214
|
+
|
215
|
+
def __repr__(self):
|
216
|
+
"""For `print`"""
|
217
|
+
return self.to_str()
|
218
|
+
|
219
|
+
def __eq__(self, other):
|
220
|
+
"""Returns true if both objects are equal"""
|
221
|
+
if not isinstance(other, ListTaskRequest):
|
222
|
+
return False
|
223
|
+
|
224
|
+
return self.__dict__ == other.__dict__
|
225
|
+
|
226
|
+
def __ne__(self, other):
|
227
|
+
"""Returns true if both objects are not equal"""
|
228
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ListTaskResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'count': 'int',
|
22
|
+
'tasks': 'list[TaskListItemVo]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'count': 'count',
|
27
|
+
'tasks': 'tasks'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, count=None, tasks=None):
|
31
|
+
r"""ListTaskResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param count: 数量
|
36
|
+
:type count: int
|
37
|
+
:param tasks: 任务列表项视图
|
38
|
+
:type tasks: list[:class:`huaweicloudsdkoroas.v1.TaskListItemVo`]
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListTaskResponse, self).__init__()
|
42
|
+
|
43
|
+
self._count = None
|
44
|
+
self._tasks = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if count is not None:
|
48
|
+
self.count = count
|
49
|
+
if tasks is not None:
|
50
|
+
self.tasks = tasks
|
51
|
+
|
52
|
+
@property
|
53
|
+
def count(self):
|
54
|
+
r"""Gets the count of this ListTaskResponse.
|
55
|
+
|
56
|
+
数量
|
57
|
+
|
58
|
+
:return: The count of this ListTaskResponse.
|
59
|
+
:rtype: int
|
60
|
+
"""
|
61
|
+
return self._count
|
62
|
+
|
63
|
+
@count.setter
|
64
|
+
def count(self, count):
|
65
|
+
r"""Sets the count of this ListTaskResponse.
|
66
|
+
|
67
|
+
数量
|
68
|
+
|
69
|
+
:param count: The count of this ListTaskResponse.
|
70
|
+
:type count: int
|
71
|
+
"""
|
72
|
+
self._count = count
|
73
|
+
|
74
|
+
@property
|
75
|
+
def tasks(self):
|
76
|
+
r"""Gets the tasks of this ListTaskResponse.
|
77
|
+
|
78
|
+
任务列表项视图
|
79
|
+
|
80
|
+
:return: The tasks of this ListTaskResponse.
|
81
|
+
:rtype: list[:class:`huaweicloudsdkoroas.v1.TaskListItemVo`]
|
82
|
+
"""
|
83
|
+
return self._tasks
|
84
|
+
|
85
|
+
@tasks.setter
|
86
|
+
def tasks(self, tasks):
|
87
|
+
r"""Sets the tasks of this ListTaskResponse.
|
88
|
+
|
89
|
+
任务列表项视图
|
90
|
+
|
91
|
+
:param tasks: The tasks of this ListTaskResponse.
|
92
|
+
:type tasks: list[:class:`huaweicloudsdkoroas.v1.TaskListItemVo`]
|
93
|
+
"""
|
94
|
+
self._tasks = tasks
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ListTaskResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not self == other
|
@@ -0,0 +1,227 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowTaskRequest:
|
9
|
+
|
10
|
+
"""
|
11
|
+
Attributes:
|
12
|
+
openapi_types (dict): The key is attribute name
|
13
|
+
and the value is attribute type.
|
14
|
+
attribute_map (dict): The key is attribute name
|
15
|
+
and the value is json key in definition.
|
16
|
+
"""
|
17
|
+
sensitive_list = []
|
18
|
+
|
19
|
+
openapi_types = {
|
20
|
+
'x_apig_app_code': 'str',
|
21
|
+
'service_group': 'str',
|
22
|
+
'service_type': 'str',
|
23
|
+
'task_id': 'str',
|
24
|
+
'input_enable': 'bool'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'x_apig_app_code': 'X-Apig-AppCode',
|
29
|
+
'service_group': 'service_group',
|
30
|
+
'service_type': 'service_type',
|
31
|
+
'task_id': 'task_id',
|
32
|
+
'input_enable': 'input_enable'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, x_apig_app_code=None, service_group=None, service_type=None, task_id=None, input_enable=None):
|
36
|
+
r"""ShowTaskRequest
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param x_apig_app_code: 用户凭证
|
41
|
+
:type x_apig_app_code: str
|
42
|
+
:param service_group: 服务类别,针对不同服务类场景,为用户提前填充对应值,用户侧不需单独赋值;当前仅支持 二维切割 2dcut ,便于后续扩展
|
43
|
+
:type service_group: str
|
44
|
+
:param service_type: 子服务类型,针对不同服务,为用户提前填充对应值,用户侧不需单独赋值;服装切割固定为 irregular-textile,雕刻机切割固定为 engraving-machine-cutting, 板材切割固定为 regular-plate
|
45
|
+
:type service_type: str
|
46
|
+
:param task_id: 任务id
|
47
|
+
:type task_id: str
|
48
|
+
:param input_enable: 是否返回输入信息,默认为false; 当前暂不支持该功能,后续扩展
|
49
|
+
:type input_enable: bool
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._x_apig_app_code = None
|
55
|
+
self._service_group = None
|
56
|
+
self._service_type = None
|
57
|
+
self._task_id = None
|
58
|
+
self._input_enable = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
self.x_apig_app_code = x_apig_app_code
|
62
|
+
self.service_group = service_group
|
63
|
+
self.service_type = service_type
|
64
|
+
self.task_id = task_id
|
65
|
+
if input_enable is not None:
|
66
|
+
self.input_enable = input_enable
|
67
|
+
|
68
|
+
@property
|
69
|
+
def x_apig_app_code(self):
|
70
|
+
r"""Gets the x_apig_app_code of this ShowTaskRequest.
|
71
|
+
|
72
|
+
用户凭证
|
73
|
+
|
74
|
+
:return: The x_apig_app_code of this ShowTaskRequest.
|
75
|
+
:rtype: str
|
76
|
+
"""
|
77
|
+
return self._x_apig_app_code
|
78
|
+
|
79
|
+
@x_apig_app_code.setter
|
80
|
+
def x_apig_app_code(self, x_apig_app_code):
|
81
|
+
r"""Sets the x_apig_app_code of this ShowTaskRequest.
|
82
|
+
|
83
|
+
用户凭证
|
84
|
+
|
85
|
+
:param x_apig_app_code: The x_apig_app_code of this ShowTaskRequest.
|
86
|
+
:type x_apig_app_code: str
|
87
|
+
"""
|
88
|
+
self._x_apig_app_code = x_apig_app_code
|
89
|
+
|
90
|
+
@property
|
91
|
+
def service_group(self):
|
92
|
+
r"""Gets the service_group of this ShowTaskRequest.
|
93
|
+
|
94
|
+
服务类别,针对不同服务类场景,为用户提前填充对应值,用户侧不需单独赋值;当前仅支持 二维切割 2dcut ,便于后续扩展
|
95
|
+
|
96
|
+
:return: The service_group of this ShowTaskRequest.
|
97
|
+
:rtype: str
|
98
|
+
"""
|
99
|
+
return self._service_group
|
100
|
+
|
101
|
+
@service_group.setter
|
102
|
+
def service_group(self, service_group):
|
103
|
+
r"""Sets the service_group of this ShowTaskRequest.
|
104
|
+
|
105
|
+
服务类别,针对不同服务类场景,为用户提前填充对应值,用户侧不需单独赋值;当前仅支持 二维切割 2dcut ,便于后续扩展
|
106
|
+
|
107
|
+
:param service_group: The service_group of this ShowTaskRequest.
|
108
|
+
:type service_group: str
|
109
|
+
"""
|
110
|
+
self._service_group = service_group
|
111
|
+
|
112
|
+
@property
|
113
|
+
def service_type(self):
|
114
|
+
r"""Gets the service_type of this ShowTaskRequest.
|
115
|
+
|
116
|
+
子服务类型,针对不同服务,为用户提前填充对应值,用户侧不需单独赋值;服装切割固定为 irregular-textile,雕刻机切割固定为 engraving-machine-cutting, 板材切割固定为 regular-plate
|
117
|
+
|
118
|
+
:return: The service_type of this ShowTaskRequest.
|
119
|
+
:rtype: str
|
120
|
+
"""
|
121
|
+
return self._service_type
|
122
|
+
|
123
|
+
@service_type.setter
|
124
|
+
def service_type(self, service_type):
|
125
|
+
r"""Sets the service_type of this ShowTaskRequest.
|
126
|
+
|
127
|
+
子服务类型,针对不同服务,为用户提前填充对应值,用户侧不需单独赋值;服装切割固定为 irregular-textile,雕刻机切割固定为 engraving-machine-cutting, 板材切割固定为 regular-plate
|
128
|
+
|
129
|
+
:param service_type: The service_type of this ShowTaskRequest.
|
130
|
+
:type service_type: str
|
131
|
+
"""
|
132
|
+
self._service_type = service_type
|
133
|
+
|
134
|
+
@property
|
135
|
+
def task_id(self):
|
136
|
+
r"""Gets the task_id of this ShowTaskRequest.
|
137
|
+
|
138
|
+
任务id
|
139
|
+
|
140
|
+
:return: The task_id of this ShowTaskRequest.
|
141
|
+
:rtype: str
|
142
|
+
"""
|
143
|
+
return self._task_id
|
144
|
+
|
145
|
+
@task_id.setter
|
146
|
+
def task_id(self, task_id):
|
147
|
+
r"""Sets the task_id of this ShowTaskRequest.
|
148
|
+
|
149
|
+
任务id
|
150
|
+
|
151
|
+
:param task_id: The task_id of this ShowTaskRequest.
|
152
|
+
:type task_id: str
|
153
|
+
"""
|
154
|
+
self._task_id = task_id
|
155
|
+
|
156
|
+
@property
|
157
|
+
def input_enable(self):
|
158
|
+
r"""Gets the input_enable of this ShowTaskRequest.
|
159
|
+
|
160
|
+
是否返回输入信息,默认为false; 当前暂不支持该功能,后续扩展
|
161
|
+
|
162
|
+
:return: The input_enable of this ShowTaskRequest.
|
163
|
+
:rtype: bool
|
164
|
+
"""
|
165
|
+
return self._input_enable
|
166
|
+
|
167
|
+
@input_enable.setter
|
168
|
+
def input_enable(self, input_enable):
|
169
|
+
r"""Sets the input_enable of this ShowTaskRequest.
|
170
|
+
|
171
|
+
是否返回输入信息,默认为false; 当前暂不支持该功能,后续扩展
|
172
|
+
|
173
|
+
:param input_enable: The input_enable of this ShowTaskRequest.
|
174
|
+
:type input_enable: bool
|
175
|
+
"""
|
176
|
+
self._input_enable = input_enable
|
177
|
+
|
178
|
+
def to_dict(self):
|
179
|
+
"""Returns the model properties as a dict"""
|
180
|
+
result = {}
|
181
|
+
|
182
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
183
|
+
value = getattr(self, attr)
|
184
|
+
if isinstance(value, list):
|
185
|
+
result[attr] = list(map(
|
186
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
187
|
+
value
|
188
|
+
))
|
189
|
+
elif hasattr(value, "to_dict"):
|
190
|
+
result[attr] = value.to_dict()
|
191
|
+
elif isinstance(value, dict):
|
192
|
+
result[attr] = dict(map(
|
193
|
+
lambda item: (item[0], item[1].to_dict())
|
194
|
+
if hasattr(item[1], "to_dict") else item,
|
195
|
+
value.items()
|
196
|
+
))
|
197
|
+
else:
|
198
|
+
if attr in self.sensitive_list:
|
199
|
+
result[attr] = "****"
|
200
|
+
else:
|
201
|
+
result[attr] = value
|
202
|
+
|
203
|
+
return result
|
204
|
+
|
205
|
+
def to_str(self):
|
206
|
+
"""Returns the string representation of the model"""
|
207
|
+
import simplejson as json
|
208
|
+
if six.PY2:
|
209
|
+
import sys
|
210
|
+
reload(sys)
|
211
|
+
sys.setdefaultencoding("utf-8")
|
212
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
213
|
+
|
214
|
+
def __repr__(self):
|
215
|
+
"""For `print`"""
|
216
|
+
return self.to_str()
|
217
|
+
|
218
|
+
def __eq__(self, other):
|
219
|
+
"""Returns true if both objects are equal"""
|
220
|
+
if not isinstance(other, ShowTaskRequest):
|
221
|
+
return False
|
222
|
+
|
223
|
+
return self.__dict__ == other.__dict__
|
224
|
+
|
225
|
+
def __ne__(self, other):
|
226
|
+
"""Returns true if both objects are not equal"""
|
227
|
+
return not self == other
|