huaweicloudsdktics 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.
Potentially problematic release.
This version of huaweicloudsdktics might be problematic. Click here for more details.
- huaweicloudsdktics/__init__.py +0 -0
- huaweicloudsdktics/v1/__init__.py +74 -0
- huaweicloudsdktics/v1/model/__init__.py +71 -0
- huaweicloudsdktics/v1/model/agent_list_vo.py +521 -0
- huaweicloudsdktics/v1/model/deploy_vo.py +228 -0
- huaweicloudsdktics/v1/model/fl_job_list_vo.py +457 -0
- huaweicloudsdktics/v1/model/job_report_base_info_vo.py +256 -0
- huaweicloudsdktics/v1/model/job_report_env_vo.py +231 -0
- huaweicloudsdktics/v1/model/job_report_output_vo.py +173 -0
- huaweicloudsdktics/v1/model/job_report_partner_vo.py +231 -0
- huaweicloudsdktics/v1/model/league_dataset_statistics_vo.py +260 -0
- huaweicloudsdktics/v1/model/league_partner_statistics_vo.py +318 -0
- huaweicloudsdktics/v1/model/league_update_vo.py +173 -0
- huaweicloudsdktics/v1/model/list_agents_request.py +200 -0
- huaweicloudsdktics/v1/model/list_agents_response.py +145 -0
- huaweicloudsdktics/v1/model/list_audit_info_request.py +170 -0
- huaweicloudsdktics/v1/model/list_audit_info_response.py +145 -0
- huaweicloudsdktics/v1/model/list_fl_job_request.py +170 -0
- huaweicloudsdktics/v1/model/list_fl_job_response.py +145 -0
- huaweicloudsdktics/v1/model/list_instance_history_request.py +199 -0
- huaweicloudsdktics/v1/model/list_instance_history_response.py +145 -0
- huaweicloudsdktics/v1/model/list_league_datasets_request.py +228 -0
- huaweicloudsdktics/v1/model/list_league_datasets_response.py +145 -0
- huaweicloudsdktics/v1/model/list_leagues_request.py +170 -0
- huaweicloudsdktics/v1/model/list_leagues_response.py +145 -0
- huaweicloudsdktics/v1/model/list_nodes_request.py +170 -0
- huaweicloudsdktics/v1/model/list_nodes_response.py +145 -0
- huaweicloudsdktics/v1/model/list_notices_request.py +142 -0
- huaweicloudsdktics/v1/model/list_notices_response.py +145 -0
- huaweicloudsdktics/v1/model/list_partners_request.py +170 -0
- huaweicloudsdktics/v1/model/list_partners_response.py +145 -0
- huaweicloudsdktics/v1/model/list_sql_job_request.py +170 -0
- huaweicloudsdktics/v1/model/list_sql_job_response.py +145 -0
- huaweicloudsdktics/v1/model/partner_data_vo.py +289 -0
- huaweicloudsdktics/v1/model/processor_vo.py +374 -0
- huaweicloudsdktics/v1/model/round_deploy_vo.py +144 -0
- huaweicloudsdktics/v1/model/show_agent_detail_request.py +114 -0
- huaweicloudsdktics/v1/model/show_agent_detail_response.py +212 -0
- huaweicloudsdktics/v1/model/show_dataset_statistics_request.py +172 -0
- huaweicloudsdktics/v1/model/show_dataset_statistics_response.py +112 -0
- huaweicloudsdktics/v1/model/show_instance_report_request.py +142 -0
- huaweicloudsdktics/v1/model/show_instance_report_response.py +220 -0
- huaweicloudsdktics/v1/model/show_job_instance_dag_request.py +170 -0
- huaweicloudsdktics/v1/model/show_job_instance_dag_response.py +112 -0
- huaweicloudsdktics/v1/model/show_job_statistics_request.py +172 -0
- huaweicloudsdktics/v1/model/show_job_statistics_response.py +232 -0
- huaweicloudsdktics/v1/model/show_league_request.py +114 -0
- huaweicloudsdktics/v1/model/show_league_response.py +725 -0
- huaweicloudsdktics/v1/model/show_overview_request.py +84 -0
- huaweicloudsdktics/v1/model/show_overview_response.py +203 -0
- huaweicloudsdktics/v1/model/show_partner_statistics_request.py +172 -0
- huaweicloudsdktics/v1/model/show_partner_statistics_response.py +112 -0
- huaweicloudsdktics/v1/model/stage_vo.py +201 -0
- huaweicloudsdktics/v1/model/tics_agent_deploy.py +724 -0
- huaweicloudsdktics/v1/model/tics_agent_deploy_bcs.py +289 -0
- huaweicloudsdktics/v1/model/tics_agent_deploy_detail.py +463 -0
- huaweicloudsdktics/v1/model/tics_agent_nat_common_info.py +202 -0
- huaweicloudsdktics/v1/model/tics_agent_node_info.py +492 -0
- huaweicloudsdktics/v1/model/tics_approve_log_vo.py +484 -0
- huaweicloudsdktics/v1/model/tics_dataset_column.py +405 -0
- huaweicloudsdktics/v1/model/tics_job_instance_vo.py +401 -0
- huaweicloudsdktics/v1/model/tics_league_audit_log.py +376 -0
- huaweicloudsdktics/v1/model/tics_league_list_vo.py +543 -0
- huaweicloudsdktics/v1/model/tics_league_notice_vo.py +430 -0
- huaweicloudsdktics/v1/model/tics_league_partner_vo.py +202 -0
- huaweicloudsdktics/v1/model/tics_sql_job_vo.py +483 -0
- huaweicloudsdktics/v1/model/tics_trust_info_vo.py +347 -0
- huaweicloudsdktics/v1/model/update_league_request.py +139 -0
- huaweicloudsdktics/v1/model/update_league_response.py +112 -0
- huaweicloudsdktics/v1/region/__init__.py +0 -0
- huaweicloudsdktics/v1/region/tics_region.py +34 -0
- huaweicloudsdktics/v1/tics_async_client.py +1382 -0
- huaweicloudsdktics/v1/tics_client.py +1379 -0
- huaweicloudsdktics-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdktics-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdktics-3.1.160.dist-info/RECORD +78 -0
- huaweicloudsdktics-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdktics-3.1.160.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,145 @@
|
|
|
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 ListPartnersResponse(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
|
+
'lists': 'list[TicsLeaguePartnerVo]',
|
|
22
|
+
'total': 'int'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'lists': 'lists',
|
|
27
|
+
'total': 'total'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
def __init__(self, lists=None, total=None):
|
|
31
|
+
r"""ListPartnersResponse
|
|
32
|
+
|
|
33
|
+
The model defined in huaweicloud sdk
|
|
34
|
+
|
|
35
|
+
:param lists: 实例集合
|
|
36
|
+
:type lists: list[:class:`huaweicloudsdktics.v1.TicsLeaguePartnerVo`]
|
|
37
|
+
:param total: 总记录数
|
|
38
|
+
:type total: int
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
super(ListPartnersResponse, self).__init__()
|
|
42
|
+
|
|
43
|
+
self._lists = None
|
|
44
|
+
self._total = None
|
|
45
|
+
self.discriminator = None
|
|
46
|
+
|
|
47
|
+
if lists is not None:
|
|
48
|
+
self.lists = lists
|
|
49
|
+
if total is not None:
|
|
50
|
+
self.total = total
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def lists(self):
|
|
54
|
+
r"""Gets the lists of this ListPartnersResponse.
|
|
55
|
+
|
|
56
|
+
实例集合
|
|
57
|
+
|
|
58
|
+
:return: The lists of this ListPartnersResponse.
|
|
59
|
+
:rtype: list[:class:`huaweicloudsdktics.v1.TicsLeaguePartnerVo`]
|
|
60
|
+
"""
|
|
61
|
+
return self._lists
|
|
62
|
+
|
|
63
|
+
@lists.setter
|
|
64
|
+
def lists(self, lists):
|
|
65
|
+
r"""Sets the lists of this ListPartnersResponse.
|
|
66
|
+
|
|
67
|
+
实例集合
|
|
68
|
+
|
|
69
|
+
:param lists: The lists of this ListPartnersResponse.
|
|
70
|
+
:type lists: list[:class:`huaweicloudsdktics.v1.TicsLeaguePartnerVo`]
|
|
71
|
+
"""
|
|
72
|
+
self._lists = lists
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def total(self):
|
|
76
|
+
r"""Gets the total of this ListPartnersResponse.
|
|
77
|
+
|
|
78
|
+
总记录数
|
|
79
|
+
|
|
80
|
+
:return: The total of this ListPartnersResponse.
|
|
81
|
+
:rtype: int
|
|
82
|
+
"""
|
|
83
|
+
return self._total
|
|
84
|
+
|
|
85
|
+
@total.setter
|
|
86
|
+
def total(self, total):
|
|
87
|
+
r"""Sets the total of this ListPartnersResponse.
|
|
88
|
+
|
|
89
|
+
总记录数
|
|
90
|
+
|
|
91
|
+
:param total: The total of this ListPartnersResponse.
|
|
92
|
+
:type total: int
|
|
93
|
+
"""
|
|
94
|
+
self._total = total
|
|
95
|
+
|
|
96
|
+
def to_dict(self):
|
|
97
|
+
"""Returns the model properties as a dict"""
|
|
98
|
+
result = {}
|
|
99
|
+
|
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
101
|
+
value = getattr(self, attr)
|
|
102
|
+
if isinstance(value, list):
|
|
103
|
+
result[attr] = list(map(
|
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
105
|
+
value
|
|
106
|
+
))
|
|
107
|
+
elif hasattr(value, "to_dict"):
|
|
108
|
+
result[attr] = value.to_dict()
|
|
109
|
+
elif isinstance(value, dict):
|
|
110
|
+
result[attr] = dict(map(
|
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
|
113
|
+
value.items()
|
|
114
|
+
))
|
|
115
|
+
else:
|
|
116
|
+
if attr in self.sensitive_list:
|
|
117
|
+
result[attr] = "****"
|
|
118
|
+
else:
|
|
119
|
+
result[attr] = value
|
|
120
|
+
|
|
121
|
+
return result
|
|
122
|
+
|
|
123
|
+
def to_str(self):
|
|
124
|
+
"""Returns the string representation of the model"""
|
|
125
|
+
import simplejson as json
|
|
126
|
+
if six.PY2:
|
|
127
|
+
import sys
|
|
128
|
+
reload(sys)
|
|
129
|
+
sys.setdefaultencoding("utf-8")
|
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
131
|
+
|
|
132
|
+
def __repr__(self):
|
|
133
|
+
"""For `print`"""
|
|
134
|
+
return self.to_str()
|
|
135
|
+
|
|
136
|
+
def __eq__(self, other):
|
|
137
|
+
"""Returns true if both objects are equal"""
|
|
138
|
+
if not isinstance(other, ListPartnersResponse):
|
|
139
|
+
return False
|
|
140
|
+
|
|
141
|
+
return self.__dict__ == other.__dict__
|
|
142
|
+
|
|
143
|
+
def __ne__(self, other):
|
|
144
|
+
"""Returns true if both objects are not equal"""
|
|
145
|
+
return not self == other
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ListSqlJobRequest:
|
|
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
|
+
'league_id': 'str',
|
|
21
|
+
'limit': 'int',
|
|
22
|
+
'offset': 'int'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'league_id': 'league_id',
|
|
27
|
+
'limit': 'limit',
|
|
28
|
+
'offset': 'offset'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, league_id=None, limit=None, offset=None):
|
|
32
|
+
r"""ListSqlJobRequest
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param league_id: 联盟id,最大32位,字母和数字组成
|
|
37
|
+
:type league_id: str
|
|
38
|
+
:param limit: 每页记录数,取值0-100
|
|
39
|
+
:type limit: int
|
|
40
|
+
:param offset: 记录数偏移量
|
|
41
|
+
:type offset: int
|
|
42
|
+
"""
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
|
|
46
|
+
self._league_id = None
|
|
47
|
+
self._limit = None
|
|
48
|
+
self._offset = None
|
|
49
|
+
self.discriminator = None
|
|
50
|
+
|
|
51
|
+
self.league_id = league_id
|
|
52
|
+
self.limit = limit
|
|
53
|
+
self.offset = offset
|
|
54
|
+
|
|
55
|
+
@property
|
|
56
|
+
def league_id(self):
|
|
57
|
+
r"""Gets the league_id of this ListSqlJobRequest.
|
|
58
|
+
|
|
59
|
+
联盟id,最大32位,字母和数字组成
|
|
60
|
+
|
|
61
|
+
:return: The league_id of this ListSqlJobRequest.
|
|
62
|
+
:rtype: str
|
|
63
|
+
"""
|
|
64
|
+
return self._league_id
|
|
65
|
+
|
|
66
|
+
@league_id.setter
|
|
67
|
+
def league_id(self, league_id):
|
|
68
|
+
r"""Sets the league_id of this ListSqlJobRequest.
|
|
69
|
+
|
|
70
|
+
联盟id,最大32位,字母和数字组成
|
|
71
|
+
|
|
72
|
+
:param league_id: The league_id of this ListSqlJobRequest.
|
|
73
|
+
:type league_id: str
|
|
74
|
+
"""
|
|
75
|
+
self._league_id = league_id
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def limit(self):
|
|
79
|
+
r"""Gets the limit of this ListSqlJobRequest.
|
|
80
|
+
|
|
81
|
+
每页记录数,取值0-100
|
|
82
|
+
|
|
83
|
+
:return: The limit of this ListSqlJobRequest.
|
|
84
|
+
:rtype: int
|
|
85
|
+
"""
|
|
86
|
+
return self._limit
|
|
87
|
+
|
|
88
|
+
@limit.setter
|
|
89
|
+
def limit(self, limit):
|
|
90
|
+
r"""Sets the limit of this ListSqlJobRequest.
|
|
91
|
+
|
|
92
|
+
每页记录数,取值0-100
|
|
93
|
+
|
|
94
|
+
:param limit: The limit of this ListSqlJobRequest.
|
|
95
|
+
:type limit: int
|
|
96
|
+
"""
|
|
97
|
+
self._limit = limit
|
|
98
|
+
|
|
99
|
+
@property
|
|
100
|
+
def offset(self):
|
|
101
|
+
r"""Gets the offset of this ListSqlJobRequest.
|
|
102
|
+
|
|
103
|
+
记录数偏移量
|
|
104
|
+
|
|
105
|
+
:return: The offset of this ListSqlJobRequest.
|
|
106
|
+
:rtype: int
|
|
107
|
+
"""
|
|
108
|
+
return self._offset
|
|
109
|
+
|
|
110
|
+
@offset.setter
|
|
111
|
+
def offset(self, offset):
|
|
112
|
+
r"""Sets the offset of this ListSqlJobRequest.
|
|
113
|
+
|
|
114
|
+
记录数偏移量
|
|
115
|
+
|
|
116
|
+
:param offset: The offset of this ListSqlJobRequest.
|
|
117
|
+
:type offset: int
|
|
118
|
+
"""
|
|
119
|
+
self._offset = offset
|
|
120
|
+
|
|
121
|
+
def to_dict(self):
|
|
122
|
+
"""Returns the model properties as a dict"""
|
|
123
|
+
result = {}
|
|
124
|
+
|
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
126
|
+
value = getattr(self, attr)
|
|
127
|
+
if isinstance(value, list):
|
|
128
|
+
result[attr] = list(map(
|
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
130
|
+
value
|
|
131
|
+
))
|
|
132
|
+
elif hasattr(value, "to_dict"):
|
|
133
|
+
result[attr] = value.to_dict()
|
|
134
|
+
elif isinstance(value, dict):
|
|
135
|
+
result[attr] = dict(map(
|
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
|
138
|
+
value.items()
|
|
139
|
+
))
|
|
140
|
+
else:
|
|
141
|
+
if attr in self.sensitive_list:
|
|
142
|
+
result[attr] = "****"
|
|
143
|
+
else:
|
|
144
|
+
result[attr] = value
|
|
145
|
+
|
|
146
|
+
return result
|
|
147
|
+
|
|
148
|
+
def to_str(self):
|
|
149
|
+
"""Returns the string representation of the model"""
|
|
150
|
+
import simplejson as json
|
|
151
|
+
if six.PY2:
|
|
152
|
+
import sys
|
|
153
|
+
reload(sys)
|
|
154
|
+
sys.setdefaultencoding("utf-8")
|
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
156
|
+
|
|
157
|
+
def __repr__(self):
|
|
158
|
+
"""For `print`"""
|
|
159
|
+
return self.to_str()
|
|
160
|
+
|
|
161
|
+
def __eq__(self, other):
|
|
162
|
+
"""Returns true if both objects are equal"""
|
|
163
|
+
if not isinstance(other, ListSqlJobRequest):
|
|
164
|
+
return False
|
|
165
|
+
|
|
166
|
+
return self.__dict__ == other.__dict__
|
|
167
|
+
|
|
168
|
+
def __ne__(self, other):
|
|
169
|
+
"""Returns true if both objects are not equal"""
|
|
170
|
+
return not self == other
|
|
@@ -0,0 +1,145 @@
|
|
|
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 ListSqlJobResponse(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
|
+
'lists': 'list[TicsSqlJobVo]',
|
|
22
|
+
'total': 'int'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
attribute_map = {
|
|
26
|
+
'lists': 'lists',
|
|
27
|
+
'total': 'total'
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
def __init__(self, lists=None, total=None):
|
|
31
|
+
r"""ListSqlJobResponse
|
|
32
|
+
|
|
33
|
+
The model defined in huaweicloud sdk
|
|
34
|
+
|
|
35
|
+
:param lists: 实例集合
|
|
36
|
+
:type lists: list[:class:`huaweicloudsdktics.v1.TicsSqlJobVo`]
|
|
37
|
+
:param total: 总记录数
|
|
38
|
+
:type total: int
|
|
39
|
+
"""
|
|
40
|
+
|
|
41
|
+
super(ListSqlJobResponse, self).__init__()
|
|
42
|
+
|
|
43
|
+
self._lists = None
|
|
44
|
+
self._total = None
|
|
45
|
+
self.discriminator = None
|
|
46
|
+
|
|
47
|
+
if lists is not None:
|
|
48
|
+
self.lists = lists
|
|
49
|
+
if total is not None:
|
|
50
|
+
self.total = total
|
|
51
|
+
|
|
52
|
+
@property
|
|
53
|
+
def lists(self):
|
|
54
|
+
r"""Gets the lists of this ListSqlJobResponse.
|
|
55
|
+
|
|
56
|
+
实例集合
|
|
57
|
+
|
|
58
|
+
:return: The lists of this ListSqlJobResponse.
|
|
59
|
+
:rtype: list[:class:`huaweicloudsdktics.v1.TicsSqlJobVo`]
|
|
60
|
+
"""
|
|
61
|
+
return self._lists
|
|
62
|
+
|
|
63
|
+
@lists.setter
|
|
64
|
+
def lists(self, lists):
|
|
65
|
+
r"""Sets the lists of this ListSqlJobResponse.
|
|
66
|
+
|
|
67
|
+
实例集合
|
|
68
|
+
|
|
69
|
+
:param lists: The lists of this ListSqlJobResponse.
|
|
70
|
+
:type lists: list[:class:`huaweicloudsdktics.v1.TicsSqlJobVo`]
|
|
71
|
+
"""
|
|
72
|
+
self._lists = lists
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def total(self):
|
|
76
|
+
r"""Gets the total of this ListSqlJobResponse.
|
|
77
|
+
|
|
78
|
+
总记录数
|
|
79
|
+
|
|
80
|
+
:return: The total of this ListSqlJobResponse.
|
|
81
|
+
:rtype: int
|
|
82
|
+
"""
|
|
83
|
+
return self._total
|
|
84
|
+
|
|
85
|
+
@total.setter
|
|
86
|
+
def total(self, total):
|
|
87
|
+
r"""Sets the total of this ListSqlJobResponse.
|
|
88
|
+
|
|
89
|
+
总记录数
|
|
90
|
+
|
|
91
|
+
:param total: The total of this ListSqlJobResponse.
|
|
92
|
+
:type total: int
|
|
93
|
+
"""
|
|
94
|
+
self._total = total
|
|
95
|
+
|
|
96
|
+
def to_dict(self):
|
|
97
|
+
"""Returns the model properties as a dict"""
|
|
98
|
+
result = {}
|
|
99
|
+
|
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
101
|
+
value = getattr(self, attr)
|
|
102
|
+
if isinstance(value, list):
|
|
103
|
+
result[attr] = list(map(
|
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
105
|
+
value
|
|
106
|
+
))
|
|
107
|
+
elif hasattr(value, "to_dict"):
|
|
108
|
+
result[attr] = value.to_dict()
|
|
109
|
+
elif isinstance(value, dict):
|
|
110
|
+
result[attr] = dict(map(
|
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
|
113
|
+
value.items()
|
|
114
|
+
))
|
|
115
|
+
else:
|
|
116
|
+
if attr in self.sensitive_list:
|
|
117
|
+
result[attr] = "****"
|
|
118
|
+
else:
|
|
119
|
+
result[attr] = value
|
|
120
|
+
|
|
121
|
+
return result
|
|
122
|
+
|
|
123
|
+
def to_str(self):
|
|
124
|
+
"""Returns the string representation of the model"""
|
|
125
|
+
import simplejson as json
|
|
126
|
+
if six.PY2:
|
|
127
|
+
import sys
|
|
128
|
+
reload(sys)
|
|
129
|
+
sys.setdefaultencoding("utf-8")
|
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
131
|
+
|
|
132
|
+
def __repr__(self):
|
|
133
|
+
"""For `print`"""
|
|
134
|
+
return self.to_str()
|
|
135
|
+
|
|
136
|
+
def __eq__(self, other):
|
|
137
|
+
"""Returns true if both objects are equal"""
|
|
138
|
+
if not isinstance(other, ListSqlJobResponse):
|
|
139
|
+
return False
|
|
140
|
+
|
|
141
|
+
return self.__dict__ == other.__dict__
|
|
142
|
+
|
|
143
|
+
def __ne__(self, other):
|
|
144
|
+
"""Returns true if both objects are not equal"""
|
|
145
|
+
return not self == other
|