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.
File without changes
@@ -0,0 +1,18 @@
1
+ # coding: utf-8
2
+
3
+ from __future__ import absolute_import
4
+
5
+ from huaweicloudsdkoroas.v1.oroas_client import OroasClient
6
+ from huaweicloudsdkoroas.v1.oroas_async_client import OroasAsyncClient
7
+
8
+ from huaweicloudsdkoroas.v1.model.create_task_request import CreateTaskRequest
9
+ from huaweicloudsdkoroas.v1.model.create_task_response import CreateTaskResponse
10
+ from huaweicloudsdkoroas.v1.model.delete_task_request import DeleteTaskRequest
11
+ from huaweicloudsdkoroas.v1.model.delete_task_response import DeleteTaskResponse
12
+ from huaweicloudsdkoroas.v1.model.list_task_request import ListTaskRequest
13
+ from huaweicloudsdkoroas.v1.model.list_task_response import ListTaskResponse
14
+ from huaweicloudsdkoroas.v1.model.show_task_request import ShowTaskRequest
15
+ from huaweicloudsdkoroas.v1.model.show_task_response import ShowTaskResponse
16
+ from huaweicloudsdkoroas.v1.model.task_dto import TaskDto
17
+ from huaweicloudsdkoroas.v1.model.task_list_item_vo import TaskListItemVo
18
+
@@ -0,0 +1,15 @@
1
+ # coding: utf-8
2
+
3
+ from __future__ import absolute_import
4
+
5
+ # import models into model package
6
+ from huaweicloudsdkoroas.v1.model.create_task_request import CreateTaskRequest
7
+ from huaweicloudsdkoroas.v1.model.create_task_response import CreateTaskResponse
8
+ from huaweicloudsdkoroas.v1.model.delete_task_request import DeleteTaskRequest
9
+ from huaweicloudsdkoroas.v1.model.delete_task_response import DeleteTaskResponse
10
+ from huaweicloudsdkoroas.v1.model.list_task_request import ListTaskRequest
11
+ from huaweicloudsdkoroas.v1.model.list_task_response import ListTaskResponse
12
+ from huaweicloudsdkoroas.v1.model.show_task_request import ShowTaskRequest
13
+ from huaweicloudsdkoroas.v1.model.show_task_response import ShowTaskResponse
14
+ from huaweicloudsdkoroas.v1.model.task_dto import TaskDto
15
+ from huaweicloudsdkoroas.v1.model.task_list_item_vo import TaskListItemVo
@@ -0,0 +1,195 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class CreateTaskRequest:
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
+ 'body': 'TaskDto'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'x_apig_app_code': 'X-Apig-AppCode',
28
+ 'service_group': 'service_group',
29
+ 'service_type': 'service_type',
30
+ 'body': 'body'
31
+ }
32
+
33
+ def __init__(self, x_apig_app_code=None, service_group=None, service_type=None, body=None):
34
+ r"""CreateTaskRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param x_apig_app_code: 用户凭证
39
+ :type x_apig_app_code: str
40
+ :param service_group: 服务类别,针对不同服务类场景,为用户提前填充对应值,用户侧不需单独赋值;当前仅支持 二维切割 2dcut ,便于后续扩展
41
+ :type service_group: str
42
+ :param service_type: 子服务类型,针对不同服务,为用户提前填充对应值,用户侧不需单独赋值;服装切割固定为 irregular-textile,雕刻机切割固定为 engraving-machine-cutting, 板材切割固定为 regular-plate
43
+ :type service_type: str
44
+ :param body: Body of the CreateTaskRequest
45
+ :type body: :class:`huaweicloudsdkoroas.v1.TaskDto`
46
+ """
47
+
48
+
49
+
50
+ self._x_apig_app_code = None
51
+ self._service_group = None
52
+ self._service_type = None
53
+ self._body = None
54
+ self.discriminator = None
55
+
56
+ self.x_apig_app_code = x_apig_app_code
57
+ self.service_group = service_group
58
+ self.service_type = service_type
59
+ if body is not None:
60
+ self.body = body
61
+
62
+ @property
63
+ def x_apig_app_code(self):
64
+ r"""Gets the x_apig_app_code of this CreateTaskRequest.
65
+
66
+ 用户凭证
67
+
68
+ :return: The x_apig_app_code of this CreateTaskRequest.
69
+ :rtype: str
70
+ """
71
+ return self._x_apig_app_code
72
+
73
+ @x_apig_app_code.setter
74
+ def x_apig_app_code(self, x_apig_app_code):
75
+ r"""Sets the x_apig_app_code of this CreateTaskRequest.
76
+
77
+ 用户凭证
78
+
79
+ :param x_apig_app_code: The x_apig_app_code of this CreateTaskRequest.
80
+ :type x_apig_app_code: str
81
+ """
82
+ self._x_apig_app_code = x_apig_app_code
83
+
84
+ @property
85
+ def service_group(self):
86
+ r"""Gets the service_group of this CreateTaskRequest.
87
+
88
+ 服务类别,针对不同服务类场景,为用户提前填充对应值,用户侧不需单独赋值;当前仅支持 二维切割 2dcut ,便于后续扩展
89
+
90
+ :return: The service_group of this CreateTaskRequest.
91
+ :rtype: str
92
+ """
93
+ return self._service_group
94
+
95
+ @service_group.setter
96
+ def service_group(self, service_group):
97
+ r"""Sets the service_group of this CreateTaskRequest.
98
+
99
+ 服务类别,针对不同服务类场景,为用户提前填充对应值,用户侧不需单独赋值;当前仅支持 二维切割 2dcut ,便于后续扩展
100
+
101
+ :param service_group: The service_group of this CreateTaskRequest.
102
+ :type service_group: str
103
+ """
104
+ self._service_group = service_group
105
+
106
+ @property
107
+ def service_type(self):
108
+ r"""Gets the service_type of this CreateTaskRequest.
109
+
110
+ 子服务类型,针对不同服务,为用户提前填充对应值,用户侧不需单独赋值;服装切割固定为 irregular-textile,雕刻机切割固定为 engraving-machine-cutting, 板材切割固定为 regular-plate
111
+
112
+ :return: The service_type of this CreateTaskRequest.
113
+ :rtype: str
114
+ """
115
+ return self._service_type
116
+
117
+ @service_type.setter
118
+ def service_type(self, service_type):
119
+ r"""Sets the service_type of this CreateTaskRequest.
120
+
121
+ 子服务类型,针对不同服务,为用户提前填充对应值,用户侧不需单独赋值;服装切割固定为 irregular-textile,雕刻机切割固定为 engraving-machine-cutting, 板材切割固定为 regular-plate
122
+
123
+ :param service_type: The service_type of this CreateTaskRequest.
124
+ :type service_type: str
125
+ """
126
+ self._service_type = service_type
127
+
128
+ @property
129
+ def body(self):
130
+ r"""Gets the body of this CreateTaskRequest.
131
+
132
+ :return: The body of this CreateTaskRequest.
133
+ :rtype: :class:`huaweicloudsdkoroas.v1.TaskDto`
134
+ """
135
+ return self._body
136
+
137
+ @body.setter
138
+ def body(self, body):
139
+ r"""Sets the body of this CreateTaskRequest.
140
+
141
+ :param body: The body of this CreateTaskRequest.
142
+ :type body: :class:`huaweicloudsdkoroas.v1.TaskDto`
143
+ """
144
+ self._body = body
145
+
146
+ def to_dict(self):
147
+ """Returns the model properties as a dict"""
148
+ result = {}
149
+
150
+ for attr, _ in six.iteritems(self.openapi_types):
151
+ value = getattr(self, attr)
152
+ if isinstance(value, list):
153
+ result[attr] = list(map(
154
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
155
+ value
156
+ ))
157
+ elif hasattr(value, "to_dict"):
158
+ result[attr] = value.to_dict()
159
+ elif isinstance(value, dict):
160
+ result[attr] = dict(map(
161
+ lambda item: (item[0], item[1].to_dict())
162
+ if hasattr(item[1], "to_dict") else item,
163
+ value.items()
164
+ ))
165
+ else:
166
+ if attr in self.sensitive_list:
167
+ result[attr] = "****"
168
+ else:
169
+ result[attr] = value
170
+
171
+ return result
172
+
173
+ def to_str(self):
174
+ """Returns the string representation of the model"""
175
+ import simplejson as json
176
+ if six.PY2:
177
+ import sys
178
+ reload(sys)
179
+ sys.setdefaultencoding("utf-8")
180
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
181
+
182
+ def __repr__(self):
183
+ """For `print`"""
184
+ return self.to_str()
185
+
186
+ def __eq__(self, other):
187
+ """Returns true if both objects are equal"""
188
+ if not isinstance(other, CreateTaskRequest):
189
+ return False
190
+
191
+ return self.__dict__ == other.__dict__
192
+
193
+ def __ne__(self, other):
194
+ """Returns true if both objects are not equal"""
195
+ return not self == other
@@ -0,0 +1,116 @@
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 CreateTaskResponse(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
+ 'task_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'task_id': 'task_id'
26
+ }
27
+
28
+ def __init__(self, task_id=None):
29
+ r"""CreateTaskResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param task_id: 任务编号
34
+ :type task_id: str
35
+ """
36
+
37
+ super(CreateTaskResponse, self).__init__()
38
+
39
+ self._task_id = None
40
+ self.discriminator = None
41
+
42
+ if task_id is not None:
43
+ self.task_id = task_id
44
+
45
+ @property
46
+ def task_id(self):
47
+ r"""Gets the task_id of this CreateTaskResponse.
48
+
49
+ 任务编号
50
+
51
+ :return: The task_id of this CreateTaskResponse.
52
+ :rtype: str
53
+ """
54
+ return self._task_id
55
+
56
+ @task_id.setter
57
+ def task_id(self, task_id):
58
+ r"""Sets the task_id of this CreateTaskResponse.
59
+
60
+ 任务编号
61
+
62
+ :param task_id: The task_id of this CreateTaskResponse.
63
+ :type task_id: str
64
+ """
65
+ self._task_id = task_id
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, CreateTaskResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -0,0 +1,198 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class DeleteTaskRequest:
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
+ }
25
+
26
+ attribute_map = {
27
+ 'x_apig_app_code': 'X-Apig-AppCode',
28
+ 'service_group': 'service_group',
29
+ 'service_type': 'service_type',
30
+ 'task_id': 'task_id'
31
+ }
32
+
33
+ def __init__(self, x_apig_app_code=None, service_group=None, service_type=None, task_id=None):
34
+ r"""DeleteTaskRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param x_apig_app_code: 用户凭证
39
+ :type x_apig_app_code: str
40
+ :param service_group: 服务类别,针对不同服务类场景,为用户提前填充对应值,用户侧不需单独赋值;当前仅支持 二维切割 2dcut ,便于后续扩展
41
+ :type service_group: str
42
+ :param service_type: 子服务类型,针对不同服务,为用户提前填充对应值,用户侧不需单独赋值;服装切割固定为 irregular-textile,雕刻机切割固定为 engraving-machine-cutting, 板材切割固定为 regular-plate
43
+ :type service_type: str
44
+ :param task_id: 任务id
45
+ :type task_id: str
46
+ """
47
+
48
+
49
+
50
+ self._x_apig_app_code = None
51
+ self._service_group = None
52
+ self._service_type = None
53
+ self._task_id = None
54
+ self.discriminator = None
55
+
56
+ self.x_apig_app_code = x_apig_app_code
57
+ self.service_group = service_group
58
+ self.service_type = service_type
59
+ self.task_id = task_id
60
+
61
+ @property
62
+ def x_apig_app_code(self):
63
+ r"""Gets the x_apig_app_code of this DeleteTaskRequest.
64
+
65
+ 用户凭证
66
+
67
+ :return: The x_apig_app_code of this DeleteTaskRequest.
68
+ :rtype: str
69
+ """
70
+ return self._x_apig_app_code
71
+
72
+ @x_apig_app_code.setter
73
+ def x_apig_app_code(self, x_apig_app_code):
74
+ r"""Sets the x_apig_app_code of this DeleteTaskRequest.
75
+
76
+ 用户凭证
77
+
78
+ :param x_apig_app_code: The x_apig_app_code of this DeleteTaskRequest.
79
+ :type x_apig_app_code: str
80
+ """
81
+ self._x_apig_app_code = x_apig_app_code
82
+
83
+ @property
84
+ def service_group(self):
85
+ r"""Gets the service_group of this DeleteTaskRequest.
86
+
87
+ 服务类别,针对不同服务类场景,为用户提前填充对应值,用户侧不需单独赋值;当前仅支持 二维切割 2dcut ,便于后续扩展
88
+
89
+ :return: The service_group of this DeleteTaskRequest.
90
+ :rtype: str
91
+ """
92
+ return self._service_group
93
+
94
+ @service_group.setter
95
+ def service_group(self, service_group):
96
+ r"""Sets the service_group of this DeleteTaskRequest.
97
+
98
+ 服务类别,针对不同服务类场景,为用户提前填充对应值,用户侧不需单独赋值;当前仅支持 二维切割 2dcut ,便于后续扩展
99
+
100
+ :param service_group: The service_group of this DeleteTaskRequest.
101
+ :type service_group: str
102
+ """
103
+ self._service_group = service_group
104
+
105
+ @property
106
+ def service_type(self):
107
+ r"""Gets the service_type of this DeleteTaskRequest.
108
+
109
+ 子服务类型,针对不同服务,为用户提前填充对应值,用户侧不需单独赋值;服装切割固定为 irregular-textile,雕刻机切割固定为 engraving-machine-cutting, 板材切割固定为 regular-plate
110
+
111
+ :return: The service_type of this DeleteTaskRequest.
112
+ :rtype: str
113
+ """
114
+ return self._service_type
115
+
116
+ @service_type.setter
117
+ def service_type(self, service_type):
118
+ r"""Sets the service_type of this DeleteTaskRequest.
119
+
120
+ 子服务类型,针对不同服务,为用户提前填充对应值,用户侧不需单独赋值;服装切割固定为 irregular-textile,雕刻机切割固定为 engraving-machine-cutting, 板材切割固定为 regular-plate
121
+
122
+ :param service_type: The service_type of this DeleteTaskRequest.
123
+ :type service_type: str
124
+ """
125
+ self._service_type = service_type
126
+
127
+ @property
128
+ def task_id(self):
129
+ r"""Gets the task_id of this DeleteTaskRequest.
130
+
131
+ 任务id
132
+
133
+ :return: The task_id of this DeleteTaskRequest.
134
+ :rtype: str
135
+ """
136
+ return self._task_id
137
+
138
+ @task_id.setter
139
+ def task_id(self, task_id):
140
+ r"""Sets the task_id of this DeleteTaskRequest.
141
+
142
+ 任务id
143
+
144
+ :param task_id: The task_id of this DeleteTaskRequest.
145
+ :type task_id: str
146
+ """
147
+ self._task_id = task_id
148
+
149
+ def to_dict(self):
150
+ """Returns the model properties as a dict"""
151
+ result = {}
152
+
153
+ for attr, _ in six.iteritems(self.openapi_types):
154
+ value = getattr(self, attr)
155
+ if isinstance(value, list):
156
+ result[attr] = list(map(
157
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
158
+ value
159
+ ))
160
+ elif hasattr(value, "to_dict"):
161
+ result[attr] = value.to_dict()
162
+ elif isinstance(value, dict):
163
+ result[attr] = dict(map(
164
+ lambda item: (item[0], item[1].to_dict())
165
+ if hasattr(item[1], "to_dict") else item,
166
+ value.items()
167
+ ))
168
+ else:
169
+ if attr in self.sensitive_list:
170
+ result[attr] = "****"
171
+ else:
172
+ result[attr] = value
173
+
174
+ return result
175
+
176
+ def to_str(self):
177
+ """Returns the string representation of the model"""
178
+ import simplejson as json
179
+ if six.PY2:
180
+ import sys
181
+ reload(sys)
182
+ sys.setdefaultencoding("utf-8")
183
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
184
+
185
+ def __repr__(self):
186
+ """For `print`"""
187
+ return self.to_str()
188
+
189
+ def __eq__(self, other):
190
+ """Returns true if both objects are equal"""
191
+ if not isinstance(other, DeleteTaskRequest):
192
+ return False
193
+
194
+ return self.__dict__ == other.__dict__
195
+
196
+ def __ne__(self, other):
197
+ """Returns true if both objects are not equal"""
198
+ return not self == other
@@ -0,0 +1,85 @@
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 DeleteTaskResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ r"""DeleteTaskResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(DeleteTaskResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, DeleteTaskResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ return not self == other