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,112 @@
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 CreateTasksResponse(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
+ 'body': 'list[CreateResponseBody]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ r"""CreateTasksResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body:
34
+ :type body: list[:class:`huaweicloudsdkvas.v2.CreateResponseBody`]
35
+ """
36
+
37
+ super(CreateTasksResponse, self).__init__()
38
+
39
+ self._body = None
40
+ self.discriminator = None
41
+
42
+ if body is not None:
43
+ self.body = body
44
+
45
+ @property
46
+ def body(self):
47
+ r"""Gets the body of this CreateTasksResponse.
48
+
49
+ :return: The body of this CreateTasksResponse.
50
+ :rtype: list[:class:`huaweicloudsdkvas.v2.CreateResponseBody`]
51
+ """
52
+ return self._body
53
+
54
+ @body.setter
55
+ def body(self, body):
56
+ r"""Sets the body of this CreateTasksResponse.
57
+
58
+ :param body: The body of this CreateTasksResponse.
59
+ :type body: list[:class:`huaweicloudsdkvas.v2.CreateResponseBody`]
60
+ """
61
+ self._body = body
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, CreateTasksResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ return not self == other
@@ -0,0 +1,142 @@
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
+ 'service_name': 'str',
21
+ 'task_id': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'service_name': 'service_name',
26
+ 'task_id': 'task_id'
27
+ }
28
+
29
+ def __init__(self, service_name=None, task_id=None):
30
+ r"""DeleteTaskRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param service_name: 服务名称
35
+ :type service_name: str
36
+ :param task_id: 指定的服务作业ID
37
+ :type task_id: str
38
+ """
39
+
40
+
41
+
42
+ self._service_name = None
43
+ self._task_id = None
44
+ self.discriminator = None
45
+
46
+ self.service_name = service_name
47
+ self.task_id = task_id
48
+
49
+ @property
50
+ def service_name(self):
51
+ r"""Gets the service_name of this DeleteTaskRequest.
52
+
53
+ 服务名称
54
+
55
+ :return: The service_name of this DeleteTaskRequest.
56
+ :rtype: str
57
+ """
58
+ return self._service_name
59
+
60
+ @service_name.setter
61
+ def service_name(self, service_name):
62
+ r"""Sets the service_name of this DeleteTaskRequest.
63
+
64
+ 服务名称
65
+
66
+ :param service_name: The service_name of this DeleteTaskRequest.
67
+ :type service_name: str
68
+ """
69
+ self._service_name = service_name
70
+
71
+ @property
72
+ def task_id(self):
73
+ r"""Gets the task_id of this DeleteTaskRequest.
74
+
75
+ 指定的服务作业ID
76
+
77
+ :return: The task_id of this DeleteTaskRequest.
78
+ :rtype: str
79
+ """
80
+ return self._task_id
81
+
82
+ @task_id.setter
83
+ def task_id(self, task_id):
84
+ r"""Sets the task_id of this DeleteTaskRequest.
85
+
86
+ 指定的服务作业ID
87
+
88
+ :param task_id: The task_id of this DeleteTaskRequest.
89
+ :type task_id: str
90
+ """
91
+ self._task_id = task_id
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, DeleteTaskRequest):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ 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