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.
- huaweicloudsdkvas/__init__.py +0 -0
- huaweicloudsdkvas/v2/__init__.py +46 -0
- huaweicloudsdkvas/v2/model/__init__.py +43 -0
- huaweicloudsdkvas/v2/model/create_response_body.py +114 -0
- huaweicloudsdkvas/v2/model/create_tasks_request.py +139 -0
- huaweicloudsdkvas/v2/model/create_tasks_request_body.py +327 -0
- huaweicloudsdkvas/v2/model/create_tasks_response.py +112 -0
- huaweicloudsdkvas/v2/model/delete_task_request.py +142 -0
- huaweicloudsdkvas/v2/model/delete_task_response.py +85 -0
- huaweicloudsdkvas/v2/model/list_tasks_details_request.py +375 -0
- huaweicloudsdkvas/v2/model/list_tasks_details_response.py +145 -0
- huaweicloudsdkvas/v2/model/show_task_request.py +142 -0
- huaweicloudsdkvas/v2/model/show_task_response.py +656 -0
- huaweicloudsdkvas/v2/model/start_task_request.py +142 -0
- huaweicloudsdkvas/v2/model/start_task_response.py +85 -0
- huaweicloudsdkvas/v2/model/stop_task_request.py +142 -0
- huaweicloudsdkvas/v2/model/stop_task_response.py +85 -0
- huaweicloudsdkvas/v2/model/task_details.py +630 -0
- huaweicloudsdkvas/v2/model/task_details_error.py +142 -0
- huaweicloudsdkvas/v2/model/task_details_service_title.py +144 -0
- huaweicloudsdkvas/v2/model/task_hosting_result.py +111 -0
- huaweicloudsdkvas/v2/model/task_hosting_result_hosting_result.py +202 -0
- huaweicloudsdkvas/v2/model/task_input.py +167 -0
- huaweicloudsdkvas/v2/model/task_input_data.py +405 -0
- huaweicloudsdkvas/v2/model/task_input_vcn.py +198 -0
- huaweicloudsdkvas/v2/model/task_output.py +211 -0
- huaweicloudsdkvas/v2/model/task_output_dis.py +143 -0
- huaweicloudsdkvas/v2/model/task_output_for_display.py +211 -0
- huaweicloudsdkvas/v2/model/task_output_hosting.py +115 -0
- huaweicloudsdkvas/v2/model/task_output_hosting_for_display.py +173 -0
- huaweicloudsdkvas/v2/model/task_output_hosting_for_display_obs.py +144 -0
- huaweicloudsdkvas/v2/model/task_output_localpath.py +143 -0
- huaweicloudsdkvas/v2/model/task_output_obs.py +171 -0
- huaweicloudsdkvas/v2/model/task_output_webhook.py +171 -0
- huaweicloudsdkvas/v2/model/task_service_config.py +115 -0
- huaweicloudsdkvas/v2/model/task_timing.py +283 -0
- huaweicloudsdkvas/v2/model/task_timing_frequency.py +200 -0
- huaweicloudsdkvas/v2/model/task_timing_periods.py +144 -0
- huaweicloudsdkvas/v2/model/update_task_request.py +167 -0
- huaweicloudsdkvas/v2/model/update_task_request_body.py +244 -0
- huaweicloudsdkvas/v2/model/update_task_response.py +631 -0
- huaweicloudsdkvas/v2/region/__init__.py +0 -0
- huaweicloudsdkvas/v2/region/vas_region.py +52 -0
- huaweicloudsdkvas/v2/vas_async_client.py +570 -0
- huaweicloudsdkvas/v2/vas_client.py +567 -0
- huaweicloudsdkvas-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkvas-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkvas-3.1.160.dist-info/RECORD +50 -0
- huaweicloudsdkvas-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkvas-3.1.160.dist-info/top_level.txt +1 -0
@@ -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 TaskDetailsError:
|
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
|
+
'code': 'str',
|
21
|
+
'message': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'code': 'code',
|
26
|
+
'message': 'message'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, code=None, message=None):
|
30
|
+
r"""TaskDetailsError
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param code: 算法服务定义的错误码
|
35
|
+
:type code: str
|
36
|
+
:param message: 算法服务反馈的错误信息
|
37
|
+
:type message: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._code = None
|
43
|
+
self._message = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.code = code
|
47
|
+
self.message = message
|
48
|
+
|
49
|
+
@property
|
50
|
+
def code(self):
|
51
|
+
r"""Gets the code of this TaskDetailsError.
|
52
|
+
|
53
|
+
算法服务定义的错误码
|
54
|
+
|
55
|
+
:return: The code of this TaskDetailsError.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._code
|
59
|
+
|
60
|
+
@code.setter
|
61
|
+
def code(self, code):
|
62
|
+
r"""Sets the code of this TaskDetailsError.
|
63
|
+
|
64
|
+
算法服务定义的错误码
|
65
|
+
|
66
|
+
:param code: The code of this TaskDetailsError.
|
67
|
+
:type code: str
|
68
|
+
"""
|
69
|
+
self._code = code
|
70
|
+
|
71
|
+
@property
|
72
|
+
def message(self):
|
73
|
+
r"""Gets the message of this TaskDetailsError.
|
74
|
+
|
75
|
+
算法服务反馈的错误信息
|
76
|
+
|
77
|
+
:return: The message of this TaskDetailsError.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._message
|
81
|
+
|
82
|
+
@message.setter
|
83
|
+
def message(self, message):
|
84
|
+
r"""Sets the message of this TaskDetailsError.
|
85
|
+
|
86
|
+
算法服务反馈的错误信息
|
87
|
+
|
88
|
+
:param message: The message of this TaskDetailsError.
|
89
|
+
:type message: str
|
90
|
+
"""
|
91
|
+
self._message = message
|
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, TaskDetailsError):
|
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,144 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class TaskDetailsServiceTitle:
|
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
|
+
'zh': 'str',
|
21
|
+
'en': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'zh': 'zh',
|
26
|
+
'en': 'en'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, zh=None, en=None):
|
30
|
+
r"""TaskDetailsServiceTitle
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param zh: 作业对应服务的中文标题
|
35
|
+
:type zh: str
|
36
|
+
:param en: 作业对应服务的英文标题
|
37
|
+
:type en: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._zh = None
|
43
|
+
self._en = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
if zh is not None:
|
47
|
+
self.zh = zh
|
48
|
+
if en is not None:
|
49
|
+
self.en = en
|
50
|
+
|
51
|
+
@property
|
52
|
+
def zh(self):
|
53
|
+
r"""Gets the zh of this TaskDetailsServiceTitle.
|
54
|
+
|
55
|
+
作业对应服务的中文标题
|
56
|
+
|
57
|
+
:return: The zh of this TaskDetailsServiceTitle.
|
58
|
+
:rtype: str
|
59
|
+
"""
|
60
|
+
return self._zh
|
61
|
+
|
62
|
+
@zh.setter
|
63
|
+
def zh(self, zh):
|
64
|
+
r"""Sets the zh of this TaskDetailsServiceTitle.
|
65
|
+
|
66
|
+
作业对应服务的中文标题
|
67
|
+
|
68
|
+
:param zh: The zh of this TaskDetailsServiceTitle.
|
69
|
+
:type zh: str
|
70
|
+
"""
|
71
|
+
self._zh = zh
|
72
|
+
|
73
|
+
@property
|
74
|
+
def en(self):
|
75
|
+
r"""Gets the en of this TaskDetailsServiceTitle.
|
76
|
+
|
77
|
+
作业对应服务的英文标题
|
78
|
+
|
79
|
+
:return: The en of this TaskDetailsServiceTitle.
|
80
|
+
:rtype: str
|
81
|
+
"""
|
82
|
+
return self._en
|
83
|
+
|
84
|
+
@en.setter
|
85
|
+
def en(self, en):
|
86
|
+
r"""Sets the en of this TaskDetailsServiceTitle.
|
87
|
+
|
88
|
+
作业对应服务的英文标题
|
89
|
+
|
90
|
+
:param en: The en of this TaskDetailsServiceTitle.
|
91
|
+
:type en: str
|
92
|
+
"""
|
93
|
+
self._en = en
|
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, TaskDetailsServiceTitle):
|
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
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class TaskHostingResult:
|
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
|
+
'hosting_result': 'TaskHostingResultHostingResult'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'hosting_result': 'hosting_result'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, hosting_result=None):
|
28
|
+
r"""TaskHostingResult
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param hosting_result:
|
33
|
+
:type hosting_result: :class:`huaweicloudsdkvas.v2.TaskHostingResultHostingResult`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._hosting_result = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if hosting_result is not None:
|
42
|
+
self.hosting_result = hosting_result
|
43
|
+
|
44
|
+
@property
|
45
|
+
def hosting_result(self):
|
46
|
+
r"""Gets the hosting_result of this TaskHostingResult.
|
47
|
+
|
48
|
+
:return: The hosting_result of this TaskHostingResult.
|
49
|
+
:rtype: :class:`huaweicloudsdkvas.v2.TaskHostingResultHostingResult`
|
50
|
+
"""
|
51
|
+
return self._hosting_result
|
52
|
+
|
53
|
+
@hosting_result.setter
|
54
|
+
def hosting_result(self, hosting_result):
|
55
|
+
r"""Sets the hosting_result of this TaskHostingResult.
|
56
|
+
|
57
|
+
:param hosting_result: The hosting_result of this TaskHostingResult.
|
58
|
+
:type hosting_result: :class:`huaweicloudsdkvas.v2.TaskHostingResultHostingResult`
|
59
|
+
"""
|
60
|
+
self._hosting_result = hosting_result
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, TaskHostingResult):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class TaskHostingResultHostingResult:
|
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
|
+
'overdue_date': 'datetime',
|
21
|
+
'status': 'str',
|
22
|
+
'data': 'str',
|
23
|
+
'file_size': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'overdue_date': 'overdue_date',
|
28
|
+
'status': 'status',
|
29
|
+
'data': 'data',
|
30
|
+
'file_size': 'file_size'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, overdue_date=None, status=None, data=None, file_size=None):
|
34
|
+
r"""TaskHostingResultHostingResult
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param overdue_date: 结果文件result.json的过期时间
|
39
|
+
:type overdue_date: datetime
|
40
|
+
:param status: 结果文件result.json的状态
|
41
|
+
:type status: str
|
42
|
+
:param data: 结果文件result.json的具体内容
|
43
|
+
:type data: str
|
44
|
+
:param file_size: 结果文件result.json的大小
|
45
|
+
:type file_size: str
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._overdue_date = None
|
51
|
+
self._status = None
|
52
|
+
self._data = None
|
53
|
+
self._file_size = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if overdue_date is not None:
|
57
|
+
self.overdue_date = overdue_date
|
58
|
+
if status is not None:
|
59
|
+
self.status = status
|
60
|
+
if data is not None:
|
61
|
+
self.data = data
|
62
|
+
if file_size is not None:
|
63
|
+
self.file_size = file_size
|
64
|
+
|
65
|
+
@property
|
66
|
+
def overdue_date(self):
|
67
|
+
r"""Gets the overdue_date of this TaskHostingResultHostingResult.
|
68
|
+
|
69
|
+
结果文件result.json的过期时间
|
70
|
+
|
71
|
+
:return: The overdue_date of this TaskHostingResultHostingResult.
|
72
|
+
:rtype: datetime
|
73
|
+
"""
|
74
|
+
return self._overdue_date
|
75
|
+
|
76
|
+
@overdue_date.setter
|
77
|
+
def overdue_date(self, overdue_date):
|
78
|
+
r"""Sets the overdue_date of this TaskHostingResultHostingResult.
|
79
|
+
|
80
|
+
结果文件result.json的过期时间
|
81
|
+
|
82
|
+
:param overdue_date: The overdue_date of this TaskHostingResultHostingResult.
|
83
|
+
:type overdue_date: datetime
|
84
|
+
"""
|
85
|
+
self._overdue_date = overdue_date
|
86
|
+
|
87
|
+
@property
|
88
|
+
def status(self):
|
89
|
+
r"""Gets the status of this TaskHostingResultHostingResult.
|
90
|
+
|
91
|
+
结果文件result.json的状态
|
92
|
+
|
93
|
+
:return: The status of this TaskHostingResultHostingResult.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._status
|
97
|
+
|
98
|
+
@status.setter
|
99
|
+
def status(self, status):
|
100
|
+
r"""Sets the status of this TaskHostingResultHostingResult.
|
101
|
+
|
102
|
+
结果文件result.json的状态
|
103
|
+
|
104
|
+
:param status: The status of this TaskHostingResultHostingResult.
|
105
|
+
:type status: str
|
106
|
+
"""
|
107
|
+
self._status = status
|
108
|
+
|
109
|
+
@property
|
110
|
+
def data(self):
|
111
|
+
r"""Gets the data of this TaskHostingResultHostingResult.
|
112
|
+
|
113
|
+
结果文件result.json的具体内容
|
114
|
+
|
115
|
+
:return: The data of this TaskHostingResultHostingResult.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._data
|
119
|
+
|
120
|
+
@data.setter
|
121
|
+
def data(self, data):
|
122
|
+
r"""Sets the data of this TaskHostingResultHostingResult.
|
123
|
+
|
124
|
+
结果文件result.json的具体内容
|
125
|
+
|
126
|
+
:param data: The data of this TaskHostingResultHostingResult.
|
127
|
+
:type data: str
|
128
|
+
"""
|
129
|
+
self._data = data
|
130
|
+
|
131
|
+
@property
|
132
|
+
def file_size(self):
|
133
|
+
r"""Gets the file_size of this TaskHostingResultHostingResult.
|
134
|
+
|
135
|
+
结果文件result.json的大小
|
136
|
+
|
137
|
+
:return: The file_size of this TaskHostingResultHostingResult.
|
138
|
+
:rtype: str
|
139
|
+
"""
|
140
|
+
return self._file_size
|
141
|
+
|
142
|
+
@file_size.setter
|
143
|
+
def file_size(self, file_size):
|
144
|
+
r"""Sets the file_size of this TaskHostingResultHostingResult.
|
145
|
+
|
146
|
+
结果文件result.json的大小
|
147
|
+
|
148
|
+
:param file_size: The file_size of this TaskHostingResultHostingResult.
|
149
|
+
:type file_size: str
|
150
|
+
"""
|
151
|
+
self._file_size = file_size
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, TaskHostingResultHostingResult):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
return not self == other
|