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,198 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TaskInputVcn:
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
+ 'ip': 'str',
21
+ 'port': 'int',
22
+ 'username': 'str',
23
+ 'password': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'ip': 'ip',
28
+ 'port': 'port',
29
+ 'username': 'username',
30
+ 'password': 'password'
31
+ }
32
+
33
+ def __init__(self, ip=None, port=None, username=None, password=None):
34
+ r"""TaskInputVcn
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param ip: VCN服务器的IP地址,仅输入类型为vcn时需填且必填。
39
+ :type ip: str
40
+ :param port: VCN服务器的端口号,仅输入类型为vcn时需填且必填。
41
+ :type port: int
42
+ :param username: VCN服务器的账号名,仅输入类型为vcn时需填且必填。
43
+ :type username: str
44
+ :param password: VCN服务器的与账号对应的密码,仅输入类型为vcn时需填且必填。
45
+ :type password: str
46
+ """
47
+
48
+
49
+
50
+ self._ip = None
51
+ self._port = None
52
+ self._username = None
53
+ self._password = None
54
+ self.discriminator = None
55
+
56
+ self.ip = ip
57
+ self.port = port
58
+ self.username = username
59
+ self.password = password
60
+
61
+ @property
62
+ def ip(self):
63
+ r"""Gets the ip of this TaskInputVcn.
64
+
65
+ VCN服务器的IP地址,仅输入类型为vcn时需填且必填。
66
+
67
+ :return: The ip of this TaskInputVcn.
68
+ :rtype: str
69
+ """
70
+ return self._ip
71
+
72
+ @ip.setter
73
+ def ip(self, ip):
74
+ r"""Sets the ip of this TaskInputVcn.
75
+
76
+ VCN服务器的IP地址,仅输入类型为vcn时需填且必填。
77
+
78
+ :param ip: The ip of this TaskInputVcn.
79
+ :type ip: str
80
+ """
81
+ self._ip = ip
82
+
83
+ @property
84
+ def port(self):
85
+ r"""Gets the port of this TaskInputVcn.
86
+
87
+ VCN服务器的端口号,仅输入类型为vcn时需填且必填。
88
+
89
+ :return: The port of this TaskInputVcn.
90
+ :rtype: int
91
+ """
92
+ return self._port
93
+
94
+ @port.setter
95
+ def port(self, port):
96
+ r"""Sets the port of this TaskInputVcn.
97
+
98
+ VCN服务器的端口号,仅输入类型为vcn时需填且必填。
99
+
100
+ :param port: The port of this TaskInputVcn.
101
+ :type port: int
102
+ """
103
+ self._port = port
104
+
105
+ @property
106
+ def username(self):
107
+ r"""Gets the username of this TaskInputVcn.
108
+
109
+ VCN服务器的账号名,仅输入类型为vcn时需填且必填。
110
+
111
+ :return: The username of this TaskInputVcn.
112
+ :rtype: str
113
+ """
114
+ return self._username
115
+
116
+ @username.setter
117
+ def username(self, username):
118
+ r"""Sets the username of this TaskInputVcn.
119
+
120
+ VCN服务器的账号名,仅输入类型为vcn时需填且必填。
121
+
122
+ :param username: The username of this TaskInputVcn.
123
+ :type username: str
124
+ """
125
+ self._username = username
126
+
127
+ @property
128
+ def password(self):
129
+ r"""Gets the password of this TaskInputVcn.
130
+
131
+ VCN服务器的与账号对应的密码,仅输入类型为vcn时需填且必填。
132
+
133
+ :return: The password of this TaskInputVcn.
134
+ :rtype: str
135
+ """
136
+ return self._password
137
+
138
+ @password.setter
139
+ def password(self, password):
140
+ r"""Sets the password of this TaskInputVcn.
141
+
142
+ VCN服务器的与账号对应的密码,仅输入类型为vcn时需填且必填。
143
+
144
+ :param password: The password of this TaskInputVcn.
145
+ :type password: str
146
+ """
147
+ self._password = password
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, TaskInputVcn):
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,211 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TaskOutput:
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
+ 'obs': 'TaskOutputObs',
21
+ 'dis': 'TaskOutputDis',
22
+ 'webhook': 'TaskOutputWebhook',
23
+ 'hosting': 'TaskOutputHosting',
24
+ 'localpath': 'TaskOutputLocalpath'
25
+ }
26
+
27
+ attribute_map = {
28
+ 'obs': 'obs',
29
+ 'dis': 'dis',
30
+ 'webhook': 'webhook',
31
+ 'hosting': 'hosting',
32
+ 'localpath': 'localpath'
33
+ }
34
+
35
+ def __init__(self, obs=None, dis=None, webhook=None, hosting=None, localpath=None):
36
+ r"""TaskOutput
37
+
38
+ The model defined in huaweicloud sdk
39
+
40
+ :param obs:
41
+ :type obs: :class:`huaweicloudsdkvas.v2.TaskOutputObs`
42
+ :param dis:
43
+ :type dis: :class:`huaweicloudsdkvas.v2.TaskOutputDis`
44
+ :param webhook:
45
+ :type webhook: :class:`huaweicloudsdkvas.v2.TaskOutputWebhook`
46
+ :param hosting:
47
+ :type hosting: :class:`huaweicloudsdkvas.v2.TaskOutputHosting`
48
+ :param localpath:
49
+ :type localpath: :class:`huaweicloudsdkvas.v2.TaskOutputLocalpath`
50
+ """
51
+
52
+
53
+
54
+ self._obs = None
55
+ self._dis = None
56
+ self._webhook = None
57
+ self._hosting = None
58
+ self._localpath = None
59
+ self.discriminator = None
60
+
61
+ if obs is not None:
62
+ self.obs = obs
63
+ if dis is not None:
64
+ self.dis = dis
65
+ if webhook is not None:
66
+ self.webhook = webhook
67
+ if hosting is not None:
68
+ self.hosting = hosting
69
+ if localpath is not None:
70
+ self.localpath = localpath
71
+
72
+ @property
73
+ def obs(self):
74
+ r"""Gets the obs of this TaskOutput.
75
+
76
+ :return: The obs of this TaskOutput.
77
+ :rtype: :class:`huaweicloudsdkvas.v2.TaskOutputObs`
78
+ """
79
+ return self._obs
80
+
81
+ @obs.setter
82
+ def obs(self, obs):
83
+ r"""Sets the obs of this TaskOutput.
84
+
85
+ :param obs: The obs of this TaskOutput.
86
+ :type obs: :class:`huaweicloudsdkvas.v2.TaskOutputObs`
87
+ """
88
+ self._obs = obs
89
+
90
+ @property
91
+ def dis(self):
92
+ r"""Gets the dis of this TaskOutput.
93
+
94
+ :return: The dis of this TaskOutput.
95
+ :rtype: :class:`huaweicloudsdkvas.v2.TaskOutputDis`
96
+ """
97
+ return self._dis
98
+
99
+ @dis.setter
100
+ def dis(self, dis):
101
+ r"""Sets the dis of this TaskOutput.
102
+
103
+ :param dis: The dis of this TaskOutput.
104
+ :type dis: :class:`huaweicloudsdkvas.v2.TaskOutputDis`
105
+ """
106
+ self._dis = dis
107
+
108
+ @property
109
+ def webhook(self):
110
+ r"""Gets the webhook of this TaskOutput.
111
+
112
+ :return: The webhook of this TaskOutput.
113
+ :rtype: :class:`huaweicloudsdkvas.v2.TaskOutputWebhook`
114
+ """
115
+ return self._webhook
116
+
117
+ @webhook.setter
118
+ def webhook(self, webhook):
119
+ r"""Sets the webhook of this TaskOutput.
120
+
121
+ :param webhook: The webhook of this TaskOutput.
122
+ :type webhook: :class:`huaweicloudsdkvas.v2.TaskOutputWebhook`
123
+ """
124
+ self._webhook = webhook
125
+
126
+ @property
127
+ def hosting(self):
128
+ r"""Gets the hosting of this TaskOutput.
129
+
130
+ :return: The hosting of this TaskOutput.
131
+ :rtype: :class:`huaweicloudsdkvas.v2.TaskOutputHosting`
132
+ """
133
+ return self._hosting
134
+
135
+ @hosting.setter
136
+ def hosting(self, hosting):
137
+ r"""Sets the hosting of this TaskOutput.
138
+
139
+ :param hosting: The hosting of this TaskOutput.
140
+ :type hosting: :class:`huaweicloudsdkvas.v2.TaskOutputHosting`
141
+ """
142
+ self._hosting = hosting
143
+
144
+ @property
145
+ def localpath(self):
146
+ r"""Gets the localpath of this TaskOutput.
147
+
148
+ :return: The localpath of this TaskOutput.
149
+ :rtype: :class:`huaweicloudsdkvas.v2.TaskOutputLocalpath`
150
+ """
151
+ return self._localpath
152
+
153
+ @localpath.setter
154
+ def localpath(self, localpath):
155
+ r"""Sets the localpath of this TaskOutput.
156
+
157
+ :param localpath: The localpath of this TaskOutput.
158
+ :type localpath: :class:`huaweicloudsdkvas.v2.TaskOutputLocalpath`
159
+ """
160
+ self._localpath = localpath
161
+
162
+ def to_dict(self):
163
+ """Returns the model properties as a dict"""
164
+ result = {}
165
+
166
+ for attr, _ in six.iteritems(self.openapi_types):
167
+ value = getattr(self, attr)
168
+ if isinstance(value, list):
169
+ result[attr] = list(map(
170
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
171
+ value
172
+ ))
173
+ elif hasattr(value, "to_dict"):
174
+ result[attr] = value.to_dict()
175
+ elif isinstance(value, dict):
176
+ result[attr] = dict(map(
177
+ lambda item: (item[0], item[1].to_dict())
178
+ if hasattr(item[1], "to_dict") else item,
179
+ value.items()
180
+ ))
181
+ else:
182
+ if attr in self.sensitive_list:
183
+ result[attr] = "****"
184
+ else:
185
+ result[attr] = value
186
+
187
+ return result
188
+
189
+ def to_str(self):
190
+ """Returns the string representation of the model"""
191
+ import simplejson as json
192
+ if six.PY2:
193
+ import sys
194
+ reload(sys)
195
+ sys.setdefaultencoding("utf-8")
196
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
197
+
198
+ def __repr__(self):
199
+ """For `print`"""
200
+ return self.to_str()
201
+
202
+ def __eq__(self, other):
203
+ """Returns true if both objects are equal"""
204
+ if not isinstance(other, TaskOutput):
205
+ return False
206
+
207
+ return self.__dict__ == other.__dict__
208
+
209
+ def __ne__(self, other):
210
+ """Returns true if both objects are not equal"""
211
+ return not self == other
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TaskOutputDis:
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
+ 'stream_name': 'str',
21
+ 'data_category': 'list[str]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'stream_name': 'stream_name',
26
+ 'data_category': 'data_category'
27
+ }
28
+
29
+ def __init__(self, stream_name=None, data_category=None):
30
+ r"""TaskOutputDis
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param stream_name: DIS流名称,选用dis类型输出时必填。
35
+ :type stream_name: str
36
+ :param data_category: 作业输出数据类别的列表,选填,仅部分服务需要。当输出类型下有这个列表时,表示希望这个输出类型下存放dataCategory列表内的数据。
37
+ :type data_category: list[str]
38
+ """
39
+
40
+
41
+
42
+ self._stream_name = None
43
+ self._data_category = None
44
+ self.discriminator = None
45
+
46
+ self.stream_name = stream_name
47
+ if data_category is not None:
48
+ self.data_category = data_category
49
+
50
+ @property
51
+ def stream_name(self):
52
+ r"""Gets the stream_name of this TaskOutputDis.
53
+
54
+ DIS流名称,选用dis类型输出时必填。
55
+
56
+ :return: The stream_name of this TaskOutputDis.
57
+ :rtype: str
58
+ """
59
+ return self._stream_name
60
+
61
+ @stream_name.setter
62
+ def stream_name(self, stream_name):
63
+ r"""Sets the stream_name of this TaskOutputDis.
64
+
65
+ DIS流名称,选用dis类型输出时必填。
66
+
67
+ :param stream_name: The stream_name of this TaskOutputDis.
68
+ :type stream_name: str
69
+ """
70
+ self._stream_name = stream_name
71
+
72
+ @property
73
+ def data_category(self):
74
+ r"""Gets the data_category of this TaskOutputDis.
75
+
76
+ 作业输出数据类别的列表,选填,仅部分服务需要。当输出类型下有这个列表时,表示希望这个输出类型下存放dataCategory列表内的数据。
77
+
78
+ :return: The data_category of this TaskOutputDis.
79
+ :rtype: list[str]
80
+ """
81
+ return self._data_category
82
+
83
+ @data_category.setter
84
+ def data_category(self, data_category):
85
+ r"""Sets the data_category of this TaskOutputDis.
86
+
87
+ 作业输出数据类别的列表,选填,仅部分服务需要。当输出类型下有这个列表时,表示希望这个输出类型下存放dataCategory列表内的数据。
88
+
89
+ :param data_category: The data_category of this TaskOutputDis.
90
+ :type data_category: list[str]
91
+ """
92
+ self._data_category = data_category
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, TaskOutputDis):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other