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,211 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TaskOutputForDisplay:
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': 'TaskOutputHostingForDisplay',
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"""TaskOutputForDisplay
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.TaskOutputHostingForDisplay`
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 TaskOutputForDisplay.
75
+
76
+ :return: The obs of this TaskOutputForDisplay.
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 TaskOutputForDisplay.
84
+
85
+ :param obs: The obs of this TaskOutputForDisplay.
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 TaskOutputForDisplay.
93
+
94
+ :return: The dis of this TaskOutputForDisplay.
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 TaskOutputForDisplay.
102
+
103
+ :param dis: The dis of this TaskOutputForDisplay.
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 TaskOutputForDisplay.
111
+
112
+ :return: The webhook of this TaskOutputForDisplay.
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 TaskOutputForDisplay.
120
+
121
+ :param webhook: The webhook of this TaskOutputForDisplay.
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 TaskOutputForDisplay.
129
+
130
+ :return: The hosting of this TaskOutputForDisplay.
131
+ :rtype: :class:`huaweicloudsdkvas.v2.TaskOutputHostingForDisplay`
132
+ """
133
+ return self._hosting
134
+
135
+ @hosting.setter
136
+ def hosting(self, hosting):
137
+ r"""Sets the hosting of this TaskOutputForDisplay.
138
+
139
+ :param hosting: The hosting of this TaskOutputForDisplay.
140
+ :type hosting: :class:`huaweicloudsdkvas.v2.TaskOutputHostingForDisplay`
141
+ """
142
+ self._hosting = hosting
143
+
144
+ @property
145
+ def localpath(self):
146
+ r"""Gets the localpath of this TaskOutputForDisplay.
147
+
148
+ :return: The localpath of this TaskOutputForDisplay.
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 TaskOutputForDisplay.
156
+
157
+ :param localpath: The localpath of this TaskOutputForDisplay.
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, TaskOutputForDisplay):
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,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TaskOutputHosting:
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
+ 'data_category': 'list[str]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'data_category': 'data_category'
25
+ }
26
+
27
+ def __init__(self, data_category=None):
28
+ r"""TaskOutputHosting
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param data_category: 作业输出数据类别的列表,选填,仅部分服务需要。当输出类型下有这个列表时,表示希望这个输出类型下存放dataCategory列表内的数据。
33
+ :type data_category: list[str]
34
+ """
35
+
36
+
37
+
38
+ self._data_category = None
39
+ self.discriminator = None
40
+
41
+ if data_category is not None:
42
+ self.data_category = data_category
43
+
44
+ @property
45
+ def data_category(self):
46
+ r"""Gets the data_category of this TaskOutputHosting.
47
+
48
+ 作业输出数据类别的列表,选填,仅部分服务需要。当输出类型下有这个列表时,表示希望这个输出类型下存放dataCategory列表内的数据。
49
+
50
+ :return: The data_category of this TaskOutputHosting.
51
+ :rtype: list[str]
52
+ """
53
+ return self._data_category
54
+
55
+ @data_category.setter
56
+ def data_category(self, data_category):
57
+ r"""Sets the data_category of this TaskOutputHosting.
58
+
59
+ 作业输出数据类别的列表,选填,仅部分服务需要。当输出类型下有这个列表时,表示希望这个输出类型下存放dataCategory列表内的数据。
60
+
61
+ :param data_category: The data_category of this TaskOutputHosting.
62
+ :type data_category: list[str]
63
+ """
64
+ self._data_category = data_category
65
+
66
+ def to_dict(self):
67
+ """Returns the model properties as a dict"""
68
+ result = {}
69
+
70
+ for attr, _ in six.iteritems(self.openapi_types):
71
+ value = getattr(self, attr)
72
+ if isinstance(value, list):
73
+ result[attr] = list(map(
74
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
75
+ value
76
+ ))
77
+ elif hasattr(value, "to_dict"):
78
+ result[attr] = value.to_dict()
79
+ elif isinstance(value, dict):
80
+ result[attr] = dict(map(
81
+ lambda item: (item[0], item[1].to_dict())
82
+ if hasattr(item[1], "to_dict") else item,
83
+ value.items()
84
+ ))
85
+ else:
86
+ if attr in self.sensitive_list:
87
+ result[attr] = "****"
88
+ else:
89
+ result[attr] = value
90
+
91
+ return result
92
+
93
+ def to_str(self):
94
+ """Returns the string representation of the model"""
95
+ import simplejson as json
96
+ if six.PY2:
97
+ import sys
98
+ reload(sys)
99
+ sys.setdefaultencoding("utf-8")
100
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
101
+
102
+ def __repr__(self):
103
+ """For `print`"""
104
+ return self.to_str()
105
+
106
+ def __eq__(self, other):
107
+ """Returns true if both objects are equal"""
108
+ if not isinstance(other, TaskOutputHosting):
109
+ return False
110
+
111
+ return self.__dict__ == other.__dict__
112
+
113
+ def __ne__(self, other):
114
+ """Returns true if both objects are not equal"""
115
+ return not self == other
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TaskOutputHostingForDisplay:
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': 'list[TaskOutputHostingForDisplayObs]',
21
+ 'result_json_overdue_at': 'int',
22
+ 'data_category': 'list[str]'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'obs': 'obs',
27
+ 'result_json_overdue_at': 'result_json_overdue_at',
28
+ 'data_category': 'data_category'
29
+ }
30
+
31
+ def __init__(self, obs=None, result_json_overdue_at=None, data_category=None):
32
+ r"""TaskOutputHostingForDisplay
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param obs: 作业所有结果文件所在的OBS桶和路径
37
+ :type obs: list[:class:`huaweicloudsdkvas.v2.TaskOutputHostingForDisplayObs`]
38
+ :param result_json_overdue_at: 作业结果文件的过期时间
39
+ :type result_json_overdue_at: int
40
+ :param data_category: 作业输出数据类别的列表,当输出类型下有这个列表时,表示希望这个输出类型下存放dataCategory列表内的数据,部分服务需要
41
+ :type data_category: list[str]
42
+ """
43
+
44
+
45
+
46
+ self._obs = None
47
+ self._result_json_overdue_at = None
48
+ self._data_category = None
49
+ self.discriminator = None
50
+
51
+ if obs is not None:
52
+ self.obs = obs
53
+ if result_json_overdue_at is not None:
54
+ self.result_json_overdue_at = result_json_overdue_at
55
+ if data_category is not None:
56
+ self.data_category = data_category
57
+
58
+ @property
59
+ def obs(self):
60
+ r"""Gets the obs of this TaskOutputHostingForDisplay.
61
+
62
+ 作业所有结果文件所在的OBS桶和路径
63
+
64
+ :return: The obs of this TaskOutputHostingForDisplay.
65
+ :rtype: list[:class:`huaweicloudsdkvas.v2.TaskOutputHostingForDisplayObs`]
66
+ """
67
+ return self._obs
68
+
69
+ @obs.setter
70
+ def obs(self, obs):
71
+ r"""Sets the obs of this TaskOutputHostingForDisplay.
72
+
73
+ 作业所有结果文件所在的OBS桶和路径
74
+
75
+ :param obs: The obs of this TaskOutputHostingForDisplay.
76
+ :type obs: list[:class:`huaweicloudsdkvas.v2.TaskOutputHostingForDisplayObs`]
77
+ """
78
+ self._obs = obs
79
+
80
+ @property
81
+ def result_json_overdue_at(self):
82
+ r"""Gets the result_json_overdue_at of this TaskOutputHostingForDisplay.
83
+
84
+ 作业结果文件的过期时间
85
+
86
+ :return: The result_json_overdue_at of this TaskOutputHostingForDisplay.
87
+ :rtype: int
88
+ """
89
+ return self._result_json_overdue_at
90
+
91
+ @result_json_overdue_at.setter
92
+ def result_json_overdue_at(self, result_json_overdue_at):
93
+ r"""Sets the result_json_overdue_at of this TaskOutputHostingForDisplay.
94
+
95
+ 作业结果文件的过期时间
96
+
97
+ :param result_json_overdue_at: The result_json_overdue_at of this TaskOutputHostingForDisplay.
98
+ :type result_json_overdue_at: int
99
+ """
100
+ self._result_json_overdue_at = result_json_overdue_at
101
+
102
+ @property
103
+ def data_category(self):
104
+ r"""Gets the data_category of this TaskOutputHostingForDisplay.
105
+
106
+ 作业输出数据类别的列表,当输出类型下有这个列表时,表示希望这个输出类型下存放dataCategory列表内的数据,部分服务需要
107
+
108
+ :return: The data_category of this TaskOutputHostingForDisplay.
109
+ :rtype: list[str]
110
+ """
111
+ return self._data_category
112
+
113
+ @data_category.setter
114
+ def data_category(self, data_category):
115
+ r"""Sets the data_category of this TaskOutputHostingForDisplay.
116
+
117
+ 作业输出数据类别的列表,当输出类型下有这个列表时,表示希望这个输出类型下存放dataCategory列表内的数据,部分服务需要
118
+
119
+ :param data_category: The data_category of this TaskOutputHostingForDisplay.
120
+ :type data_category: list[str]
121
+ """
122
+ self._data_category = data_category
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, TaskOutputHostingForDisplay):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other
@@ -0,0 +1,144 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class TaskOutputHostingForDisplayObs:
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
+ 'bucket': 'str',
21
+ 'path': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'bucket': 'bucket',
26
+ 'path': 'path'
27
+ }
28
+
29
+ def __init__(self, bucket=None, path=None):
30
+ r"""TaskOutputHostingForDisplayObs
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param bucket: 结果文件result.json所在的OBS桶
35
+ :type bucket: str
36
+ :param path: 结果文件result.json所在的路径
37
+ :type path: str
38
+ """
39
+
40
+
41
+
42
+ self._bucket = None
43
+ self._path = None
44
+ self.discriminator = None
45
+
46
+ if bucket is not None:
47
+ self.bucket = bucket
48
+ if path is not None:
49
+ self.path = path
50
+
51
+ @property
52
+ def bucket(self):
53
+ r"""Gets the bucket of this TaskOutputHostingForDisplayObs.
54
+
55
+ 结果文件result.json所在的OBS桶
56
+
57
+ :return: The bucket of this TaskOutputHostingForDisplayObs.
58
+ :rtype: str
59
+ """
60
+ return self._bucket
61
+
62
+ @bucket.setter
63
+ def bucket(self, bucket):
64
+ r"""Sets the bucket of this TaskOutputHostingForDisplayObs.
65
+
66
+ 结果文件result.json所在的OBS桶
67
+
68
+ :param bucket: The bucket of this TaskOutputHostingForDisplayObs.
69
+ :type bucket: str
70
+ """
71
+ self._bucket = bucket
72
+
73
+ @property
74
+ def path(self):
75
+ r"""Gets the path of this TaskOutputHostingForDisplayObs.
76
+
77
+ 结果文件result.json所在的路径
78
+
79
+ :return: The path of this TaskOutputHostingForDisplayObs.
80
+ :rtype: str
81
+ """
82
+ return self._path
83
+
84
+ @path.setter
85
+ def path(self, path):
86
+ r"""Sets the path of this TaskOutputHostingForDisplayObs.
87
+
88
+ 结果文件result.json所在的路径
89
+
90
+ :param path: The path of this TaskOutputHostingForDisplayObs.
91
+ :type path: str
92
+ """
93
+ self._path = path
94
+
95
+ def to_dict(self):
96
+ """Returns the model properties as a dict"""
97
+ result = {}
98
+
99
+ for attr, _ in six.iteritems(self.openapi_types):
100
+ value = getattr(self, attr)
101
+ if isinstance(value, list):
102
+ result[attr] = list(map(
103
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
104
+ value
105
+ ))
106
+ elif hasattr(value, "to_dict"):
107
+ result[attr] = value.to_dict()
108
+ elif isinstance(value, dict):
109
+ result[attr] = dict(map(
110
+ lambda item: (item[0], item[1].to_dict())
111
+ if hasattr(item[1], "to_dict") else item,
112
+ value.items()
113
+ ))
114
+ else:
115
+ if attr in self.sensitive_list:
116
+ result[attr] = "****"
117
+ else:
118
+ result[attr] = value
119
+
120
+ return result
121
+
122
+ def to_str(self):
123
+ """Returns the string representation of the model"""
124
+ import simplejson as json
125
+ if six.PY2:
126
+ import sys
127
+ reload(sys)
128
+ sys.setdefaultencoding("utf-8")
129
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
130
+
131
+ def __repr__(self):
132
+ """For `print`"""
133
+ return self.to_str()
134
+
135
+ def __eq__(self, other):
136
+ """Returns true if both objects are equal"""
137
+ if not isinstance(other, TaskOutputHostingForDisplayObs):
138
+ return False
139
+
140
+ return self.__dict__ == other.__dict__
141
+
142
+ def __ne__(self, other):
143
+ """Returns true if both objects are not equal"""
144
+ return not self == other