huaweicloudsdkvas 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.
Files changed (50) hide show
  1. huaweicloudsdkvas/__init__.py +0 -0
  2. huaweicloudsdkvas/v2/__init__.py +46 -0
  3. huaweicloudsdkvas/v2/model/__init__.py +43 -0
  4. huaweicloudsdkvas/v2/model/create_response_body.py +114 -0
  5. huaweicloudsdkvas/v2/model/create_tasks_request.py +139 -0
  6. huaweicloudsdkvas/v2/model/create_tasks_request_body.py +327 -0
  7. huaweicloudsdkvas/v2/model/create_tasks_response.py +112 -0
  8. huaweicloudsdkvas/v2/model/delete_task_request.py +142 -0
  9. huaweicloudsdkvas/v2/model/delete_task_response.py +85 -0
  10. huaweicloudsdkvas/v2/model/list_tasks_details_request.py +375 -0
  11. huaweicloudsdkvas/v2/model/list_tasks_details_response.py +145 -0
  12. huaweicloudsdkvas/v2/model/show_task_request.py +142 -0
  13. huaweicloudsdkvas/v2/model/show_task_response.py +656 -0
  14. huaweicloudsdkvas/v2/model/start_task_request.py +142 -0
  15. huaweicloudsdkvas/v2/model/start_task_response.py +85 -0
  16. huaweicloudsdkvas/v2/model/stop_task_request.py +142 -0
  17. huaweicloudsdkvas/v2/model/stop_task_response.py +85 -0
  18. huaweicloudsdkvas/v2/model/task_details.py +630 -0
  19. huaweicloudsdkvas/v2/model/task_details_error.py +142 -0
  20. huaweicloudsdkvas/v2/model/task_details_service_title.py +144 -0
  21. huaweicloudsdkvas/v2/model/task_hosting_result.py +111 -0
  22. huaweicloudsdkvas/v2/model/task_hosting_result_hosting_result.py +202 -0
  23. huaweicloudsdkvas/v2/model/task_input.py +167 -0
  24. huaweicloudsdkvas/v2/model/task_input_data.py +405 -0
  25. huaweicloudsdkvas/v2/model/task_input_vcn.py +198 -0
  26. huaweicloudsdkvas/v2/model/task_output.py +211 -0
  27. huaweicloudsdkvas/v2/model/task_output_dis.py +143 -0
  28. huaweicloudsdkvas/v2/model/task_output_for_display.py +211 -0
  29. huaweicloudsdkvas/v2/model/task_output_hosting.py +115 -0
  30. huaweicloudsdkvas/v2/model/task_output_hosting_for_display.py +173 -0
  31. huaweicloudsdkvas/v2/model/task_output_hosting_for_display_obs.py +144 -0
  32. huaweicloudsdkvas/v2/model/task_output_localpath.py +143 -0
  33. huaweicloudsdkvas/v2/model/task_output_obs.py +171 -0
  34. huaweicloudsdkvas/v2/model/task_output_webhook.py +171 -0
  35. huaweicloudsdkvas/v2/model/task_service_config.py +115 -0
  36. huaweicloudsdkvas/v2/model/task_timing.py +283 -0
  37. huaweicloudsdkvas/v2/model/task_timing_frequency.py +200 -0
  38. huaweicloudsdkvas/v2/model/task_timing_periods.py +144 -0
  39. huaweicloudsdkvas/v2/model/update_task_request.py +167 -0
  40. huaweicloudsdkvas/v2/model/update_task_request_body.py +244 -0
  41. huaweicloudsdkvas/v2/model/update_task_response.py +631 -0
  42. huaweicloudsdkvas/v2/region/__init__.py +0 -0
  43. huaweicloudsdkvas/v2/region/vas_region.py +52 -0
  44. huaweicloudsdkvas/v2/vas_async_client.py +570 -0
  45. huaweicloudsdkvas/v2/vas_client.py +567 -0
  46. huaweicloudsdkvas-3.1.160.dist-info/LICENSE +13 -0
  47. huaweicloudsdkvas-3.1.160.dist-info/METADATA +26 -0
  48. huaweicloudsdkvas-3.1.160.dist-info/RECORD +50 -0
  49. huaweicloudsdkvas-3.1.160.dist-info/WHEEL +5 -0
  50. huaweicloudsdkvas-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,167 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateTaskRequest:
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
+ 'service_name': 'str',
21
+ 'task_id': 'str',
22
+ 'body': 'UpdateTaskRequestBody'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'service_name': 'service_name',
27
+ 'task_id': 'task_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, service_name=None, task_id=None, body=None):
32
+ r"""UpdateTaskRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param service_name: 服务名称
37
+ :type service_name: str
38
+ :param task_id: 指定的服务作业ID
39
+ :type task_id: str
40
+ :param body: Body of the UpdateTaskRequest
41
+ :type body: :class:`huaweicloudsdkvas.v2.UpdateTaskRequestBody`
42
+ """
43
+
44
+
45
+
46
+ self._service_name = None
47
+ self._task_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ self.service_name = service_name
52
+ self.task_id = task_id
53
+ if body is not None:
54
+ self.body = body
55
+
56
+ @property
57
+ def service_name(self):
58
+ r"""Gets the service_name of this UpdateTaskRequest.
59
+
60
+ 服务名称
61
+
62
+ :return: The service_name of this UpdateTaskRequest.
63
+ :rtype: str
64
+ """
65
+ return self._service_name
66
+
67
+ @service_name.setter
68
+ def service_name(self, service_name):
69
+ r"""Sets the service_name of this UpdateTaskRequest.
70
+
71
+ 服务名称
72
+
73
+ :param service_name: The service_name of this UpdateTaskRequest.
74
+ :type service_name: str
75
+ """
76
+ self._service_name = service_name
77
+
78
+ @property
79
+ def task_id(self):
80
+ r"""Gets the task_id of this UpdateTaskRequest.
81
+
82
+ 指定的服务作业ID
83
+
84
+ :return: The task_id of this UpdateTaskRequest.
85
+ :rtype: str
86
+ """
87
+ return self._task_id
88
+
89
+ @task_id.setter
90
+ def task_id(self, task_id):
91
+ r"""Sets the task_id of this UpdateTaskRequest.
92
+
93
+ 指定的服务作业ID
94
+
95
+ :param task_id: The task_id of this UpdateTaskRequest.
96
+ :type task_id: str
97
+ """
98
+ self._task_id = task_id
99
+
100
+ @property
101
+ def body(self):
102
+ r"""Gets the body of this UpdateTaskRequest.
103
+
104
+ :return: The body of this UpdateTaskRequest.
105
+ :rtype: :class:`huaweicloudsdkvas.v2.UpdateTaskRequestBody`
106
+ """
107
+ return self._body
108
+
109
+ @body.setter
110
+ def body(self, body):
111
+ r"""Sets the body of this UpdateTaskRequest.
112
+
113
+ :param body: The body of this UpdateTaskRequest.
114
+ :type body: :class:`huaweicloudsdkvas.v2.UpdateTaskRequestBody`
115
+ """
116
+ self._body = body
117
+
118
+ def to_dict(self):
119
+ """Returns the model properties as a dict"""
120
+ result = {}
121
+
122
+ for attr, _ in six.iteritems(self.openapi_types):
123
+ value = getattr(self, attr)
124
+ if isinstance(value, list):
125
+ result[attr] = list(map(
126
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
127
+ value
128
+ ))
129
+ elif hasattr(value, "to_dict"):
130
+ result[attr] = value.to_dict()
131
+ elif isinstance(value, dict):
132
+ result[attr] = dict(map(
133
+ lambda item: (item[0], item[1].to_dict())
134
+ if hasattr(item[1], "to_dict") else item,
135
+ value.items()
136
+ ))
137
+ else:
138
+ if attr in self.sensitive_list:
139
+ result[attr] = "****"
140
+ else:
141
+ result[attr] = value
142
+
143
+ return result
144
+
145
+ def to_str(self):
146
+ """Returns the string representation of the model"""
147
+ import simplejson as json
148
+ if six.PY2:
149
+ import sys
150
+ reload(sys)
151
+ sys.setdefaultencoding("utf-8")
152
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
153
+
154
+ def __repr__(self):
155
+ """For `print`"""
156
+ return self.to_str()
157
+
158
+ def __eq__(self, other):
159
+ """Returns true if both objects are equal"""
160
+ if not isinstance(other, UpdateTaskRequest):
161
+ return False
162
+
163
+ return self.__dict__ == other.__dict__
164
+
165
+ def __ne__(self, other):
166
+ """Returns true if both objects are not equal"""
167
+ return not self == other
@@ -0,0 +1,244 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateTaskRequestBody:
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
+ 'name': 'str',
21
+ 'description': 'str',
22
+ 'timing': 'TaskTiming',
23
+ 'input': 'TaskInput',
24
+ 'output': 'TaskOutput',
25
+ 'service_config': 'TaskServiceConfig'
26
+ }
27
+
28
+ attribute_map = {
29
+ 'name': 'name',
30
+ 'description': 'description',
31
+ 'timing': 'timing',
32
+ 'input': 'input',
33
+ 'output': 'output',
34
+ 'service_config': 'service_config'
35
+ }
36
+
37
+ def __init__(self, name=None, description=None, timing=None, input=None, output=None, service_config=None):
38
+ r"""UpdateTaskRequestBody
39
+
40
+ The model defined in huaweicloud sdk
41
+
42
+ :param name: 作业的名称,必填。仅能包含汉字、字母、数字、中划线和下划线,长度介于1~100之间。
43
+ :type name: str
44
+ :param description: 作业的描述,选填。长度不超过500。
45
+ :type description: str
46
+ :param timing:
47
+ :type timing: :class:`huaweicloudsdkvas.v2.TaskTiming`
48
+ :param input:
49
+ :type input: :class:`huaweicloudsdkvas.v2.TaskInput`
50
+ :param output:
51
+ :type output: :class:`huaweicloudsdkvas.v2.TaskOutput`
52
+ :param service_config:
53
+ :type service_config: :class:`huaweicloudsdkvas.v2.TaskServiceConfig`
54
+ """
55
+
56
+
57
+
58
+ self._name = None
59
+ self._description = None
60
+ self._timing = None
61
+ self._input = None
62
+ self._output = None
63
+ self._service_config = None
64
+ self.discriminator = None
65
+
66
+ if name is not None:
67
+ self.name = name
68
+ if description is not None:
69
+ self.description = description
70
+ if timing is not None:
71
+ self.timing = timing
72
+ if input is not None:
73
+ self.input = input
74
+ if output is not None:
75
+ self.output = output
76
+ if service_config is not None:
77
+ self.service_config = service_config
78
+
79
+ @property
80
+ def name(self):
81
+ r"""Gets the name of this UpdateTaskRequestBody.
82
+
83
+ 作业的名称,必填。仅能包含汉字、字母、数字、中划线和下划线,长度介于1~100之间。
84
+
85
+ :return: The name of this UpdateTaskRequestBody.
86
+ :rtype: str
87
+ """
88
+ return self._name
89
+
90
+ @name.setter
91
+ def name(self, name):
92
+ r"""Sets the name of this UpdateTaskRequestBody.
93
+
94
+ 作业的名称,必填。仅能包含汉字、字母、数字、中划线和下划线,长度介于1~100之间。
95
+
96
+ :param name: The name of this UpdateTaskRequestBody.
97
+ :type name: str
98
+ """
99
+ self._name = name
100
+
101
+ @property
102
+ def description(self):
103
+ r"""Gets the description of this UpdateTaskRequestBody.
104
+
105
+ 作业的描述,选填。长度不超过500。
106
+
107
+ :return: The description of this UpdateTaskRequestBody.
108
+ :rtype: str
109
+ """
110
+ return self._description
111
+
112
+ @description.setter
113
+ def description(self, description):
114
+ r"""Sets the description of this UpdateTaskRequestBody.
115
+
116
+ 作业的描述,选填。长度不超过500。
117
+
118
+ :param description: The description of this UpdateTaskRequestBody.
119
+ :type description: str
120
+ """
121
+ self._description = description
122
+
123
+ @property
124
+ def timing(self):
125
+ r"""Gets the timing of this UpdateTaskRequestBody.
126
+
127
+ :return: The timing of this UpdateTaskRequestBody.
128
+ :rtype: :class:`huaweicloudsdkvas.v2.TaskTiming`
129
+ """
130
+ return self._timing
131
+
132
+ @timing.setter
133
+ def timing(self, timing):
134
+ r"""Sets the timing of this UpdateTaskRequestBody.
135
+
136
+ :param timing: The timing of this UpdateTaskRequestBody.
137
+ :type timing: :class:`huaweicloudsdkvas.v2.TaskTiming`
138
+ """
139
+ self._timing = timing
140
+
141
+ @property
142
+ def input(self):
143
+ r"""Gets the input of this UpdateTaskRequestBody.
144
+
145
+ :return: The input of this UpdateTaskRequestBody.
146
+ :rtype: :class:`huaweicloudsdkvas.v2.TaskInput`
147
+ """
148
+ return self._input
149
+
150
+ @input.setter
151
+ def input(self, input):
152
+ r"""Sets the input of this UpdateTaskRequestBody.
153
+
154
+ :param input: The input of this UpdateTaskRequestBody.
155
+ :type input: :class:`huaweicloudsdkvas.v2.TaskInput`
156
+ """
157
+ self._input = input
158
+
159
+ @property
160
+ def output(self):
161
+ r"""Gets the output of this UpdateTaskRequestBody.
162
+
163
+ :return: The output of this UpdateTaskRequestBody.
164
+ :rtype: :class:`huaweicloudsdkvas.v2.TaskOutput`
165
+ """
166
+ return self._output
167
+
168
+ @output.setter
169
+ def output(self, output):
170
+ r"""Sets the output of this UpdateTaskRequestBody.
171
+
172
+ :param output: The output of this UpdateTaskRequestBody.
173
+ :type output: :class:`huaweicloudsdkvas.v2.TaskOutput`
174
+ """
175
+ self._output = output
176
+
177
+ @property
178
+ def service_config(self):
179
+ r"""Gets the service_config of this UpdateTaskRequestBody.
180
+
181
+ :return: The service_config of this UpdateTaskRequestBody.
182
+ :rtype: :class:`huaweicloudsdkvas.v2.TaskServiceConfig`
183
+ """
184
+ return self._service_config
185
+
186
+ @service_config.setter
187
+ def service_config(self, service_config):
188
+ r"""Sets the service_config of this UpdateTaskRequestBody.
189
+
190
+ :param service_config: The service_config of this UpdateTaskRequestBody.
191
+ :type service_config: :class:`huaweicloudsdkvas.v2.TaskServiceConfig`
192
+ """
193
+ self._service_config = service_config
194
+
195
+ def to_dict(self):
196
+ """Returns the model properties as a dict"""
197
+ result = {}
198
+
199
+ for attr, _ in six.iteritems(self.openapi_types):
200
+ value = getattr(self, attr)
201
+ if isinstance(value, list):
202
+ result[attr] = list(map(
203
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
204
+ value
205
+ ))
206
+ elif hasattr(value, "to_dict"):
207
+ result[attr] = value.to_dict()
208
+ elif isinstance(value, dict):
209
+ result[attr] = dict(map(
210
+ lambda item: (item[0], item[1].to_dict())
211
+ if hasattr(item[1], "to_dict") else item,
212
+ value.items()
213
+ ))
214
+ else:
215
+ if attr in self.sensitive_list:
216
+ result[attr] = "****"
217
+ else:
218
+ result[attr] = value
219
+
220
+ return result
221
+
222
+ def to_str(self):
223
+ """Returns the string representation of the model"""
224
+ import simplejson as json
225
+ if six.PY2:
226
+ import sys
227
+ reload(sys)
228
+ sys.setdefaultencoding("utf-8")
229
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
230
+
231
+ def __repr__(self):
232
+ """For `print`"""
233
+ return self.to_str()
234
+
235
+ def __eq__(self, other):
236
+ """Returns true if both objects are equal"""
237
+ if not isinstance(other, UpdateTaskRequestBody):
238
+ return False
239
+
240
+ return self.__dict__ == other.__dict__
241
+
242
+ def __ne__(self, other):
243
+ """Returns true if both objects are not equal"""
244
+ return not self == other