huaweicloudsdktics 3.1.181__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.
- 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 +514 -0
- huaweicloudsdktics/v1/model/deploy_vo.py +221 -0
- huaweicloudsdktics/v1/model/fl_job_list_vo.py +450 -0
- huaweicloudsdktics/v1/model/job_report_base_info_vo.py +249 -0
- huaweicloudsdktics/v1/model/job_report_env_vo.py +224 -0
- huaweicloudsdktics/v1/model/job_report_output_vo.py +166 -0
- huaweicloudsdktics/v1/model/job_report_partner_vo.py +224 -0
- huaweicloudsdktics/v1/model/league_dataset_statistics_vo.py +253 -0
- huaweicloudsdktics/v1/model/league_partner_statistics_vo.py +311 -0
- huaweicloudsdktics/v1/model/league_update_vo.py +166 -0
- huaweicloudsdktics/v1/model/list_agents_request.py +193 -0
- huaweicloudsdktics/v1/model/list_agents_response.py +141 -0
- huaweicloudsdktics/v1/model/list_audit_info_request.py +163 -0
- huaweicloudsdktics/v1/model/list_audit_info_response.py +141 -0
- huaweicloudsdktics/v1/model/list_fl_job_request.py +163 -0
- huaweicloudsdktics/v1/model/list_fl_job_response.py +141 -0
- huaweicloudsdktics/v1/model/list_instance_history_request.py +192 -0
- huaweicloudsdktics/v1/model/list_instance_history_response.py +141 -0
- huaweicloudsdktics/v1/model/list_league_datasets_request.py +221 -0
- huaweicloudsdktics/v1/model/list_league_datasets_response.py +141 -0
- huaweicloudsdktics/v1/model/list_leagues_request.py +163 -0
- huaweicloudsdktics/v1/model/list_leagues_response.py +141 -0
- huaweicloudsdktics/v1/model/list_nodes_request.py +163 -0
- huaweicloudsdktics/v1/model/list_nodes_response.py +141 -0
- huaweicloudsdktics/v1/model/list_notices_request.py +135 -0
- huaweicloudsdktics/v1/model/list_notices_response.py +141 -0
- huaweicloudsdktics/v1/model/list_partners_request.py +163 -0
- huaweicloudsdktics/v1/model/list_partners_response.py +141 -0
- huaweicloudsdktics/v1/model/list_sql_job_request.py +163 -0
- huaweicloudsdktics/v1/model/list_sql_job_response.py +141 -0
- huaweicloudsdktics/v1/model/partner_data_vo.py +282 -0
- huaweicloudsdktics/v1/model/processor_vo.py +367 -0
- huaweicloudsdktics/v1/model/round_deploy_vo.py +137 -0
- huaweicloudsdktics/v1/model/show_agent_detail_request.py +107 -0
- huaweicloudsdktics/v1/model/show_agent_detail_response.py +208 -0
- huaweicloudsdktics/v1/model/show_dataset_statistics_request.py +165 -0
- huaweicloudsdktics/v1/model/show_dataset_statistics_response.py +108 -0
- huaweicloudsdktics/v1/model/show_instance_report_request.py +135 -0
- huaweicloudsdktics/v1/model/show_instance_report_response.py +216 -0
- huaweicloudsdktics/v1/model/show_job_instance_dag_request.py +163 -0
- huaweicloudsdktics/v1/model/show_job_instance_dag_response.py +108 -0
- huaweicloudsdktics/v1/model/show_job_statistics_request.py +165 -0
- huaweicloudsdktics/v1/model/show_job_statistics_response.py +228 -0
- huaweicloudsdktics/v1/model/show_league_request.py +107 -0
- huaweicloudsdktics/v1/model/show_league_response.py +721 -0
- huaweicloudsdktics/v1/model/show_overview_request.py +77 -0
- huaweicloudsdktics/v1/model/show_overview_response.py +199 -0
- huaweicloudsdktics/v1/model/show_partner_statistics_request.py +165 -0
- huaweicloudsdktics/v1/model/show_partner_statistics_response.py +108 -0
- huaweicloudsdktics/v1/model/stage_vo.py +194 -0
- huaweicloudsdktics/v1/model/tics_agent_deploy.py +717 -0
- huaweicloudsdktics/v1/model/tics_agent_deploy_bcs.py +282 -0
- huaweicloudsdktics/v1/model/tics_agent_deploy_detail.py +456 -0
- huaweicloudsdktics/v1/model/tics_agent_nat_common_info.py +195 -0
- huaweicloudsdktics/v1/model/tics_agent_node_info.py +485 -0
- huaweicloudsdktics/v1/model/tics_approve_log_vo.py +477 -0
- huaweicloudsdktics/v1/model/tics_dataset_column.py +398 -0
- huaweicloudsdktics/v1/model/tics_job_instance_vo.py +394 -0
- huaweicloudsdktics/v1/model/tics_league_audit_log.py +369 -0
- huaweicloudsdktics/v1/model/tics_league_list_vo.py +536 -0
- huaweicloudsdktics/v1/model/tics_league_notice_vo.py +423 -0
- huaweicloudsdktics/v1/model/tics_league_partner_vo.py +195 -0
- huaweicloudsdktics/v1/model/tics_sql_job_vo.py +476 -0
- huaweicloudsdktics/v1/model/tics_trust_info_vo.py +340 -0
- huaweicloudsdktics/v1/model/update_league_request.py +132 -0
- huaweicloudsdktics/v1/model/update_league_response.py +108 -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.181.dist-info/METADATA +25 -0
- huaweicloudsdktics-3.1.181.dist-info/RECORD +77 -0
- huaweicloudsdktics-3.1.181.dist-info/WHEEL +4 -0
- huaweicloudsdktics-3.1.181.dist-info/licenses/LICENSE +13 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ListAgentsResponse(SdkResponse):
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
Attributes:
|
|
11
|
+
openapi_types (dict): The key is attribute name
|
|
12
|
+
and the value is attribute type.
|
|
13
|
+
attribute_map (dict): The key is attribute name
|
|
14
|
+
and the value is json key in definition.
|
|
15
|
+
"""
|
|
16
|
+
sensitive_list = []
|
|
17
|
+
|
|
18
|
+
openapi_types = {
|
|
19
|
+
'lists': 'list[AgentListVo]',
|
|
20
|
+
'total': 'int'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'lists': 'lists',
|
|
25
|
+
'total': 'total'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, lists=None, total=None):
|
|
29
|
+
r"""ListAgentsResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param lists: 实例集合
|
|
34
|
+
:type lists: list[:class:`huaweicloudsdktics.v1.AgentListVo`]
|
|
35
|
+
:param total: 总记录数
|
|
36
|
+
:type total: int
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
super().__init__()
|
|
40
|
+
|
|
41
|
+
self._lists = None
|
|
42
|
+
self._total = None
|
|
43
|
+
self.discriminator = None
|
|
44
|
+
|
|
45
|
+
if lists is not None:
|
|
46
|
+
self.lists = lists
|
|
47
|
+
if total is not None:
|
|
48
|
+
self.total = total
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def lists(self):
|
|
52
|
+
r"""Gets the lists of this ListAgentsResponse.
|
|
53
|
+
|
|
54
|
+
实例集合
|
|
55
|
+
|
|
56
|
+
:return: The lists of this ListAgentsResponse.
|
|
57
|
+
:rtype: list[:class:`huaweicloudsdktics.v1.AgentListVo`]
|
|
58
|
+
"""
|
|
59
|
+
return self._lists
|
|
60
|
+
|
|
61
|
+
@lists.setter
|
|
62
|
+
def lists(self, lists):
|
|
63
|
+
r"""Sets the lists of this ListAgentsResponse.
|
|
64
|
+
|
|
65
|
+
实例集合
|
|
66
|
+
|
|
67
|
+
:param lists: The lists of this ListAgentsResponse.
|
|
68
|
+
:type lists: list[:class:`huaweicloudsdktics.v1.AgentListVo`]
|
|
69
|
+
"""
|
|
70
|
+
self._lists = lists
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def total(self):
|
|
74
|
+
r"""Gets the total of this ListAgentsResponse.
|
|
75
|
+
|
|
76
|
+
总记录数
|
|
77
|
+
|
|
78
|
+
:return: The total of this ListAgentsResponse.
|
|
79
|
+
:rtype: int
|
|
80
|
+
"""
|
|
81
|
+
return self._total
|
|
82
|
+
|
|
83
|
+
@total.setter
|
|
84
|
+
def total(self, total):
|
|
85
|
+
r"""Sets the total of this ListAgentsResponse.
|
|
86
|
+
|
|
87
|
+
总记录数
|
|
88
|
+
|
|
89
|
+
:param total: The total of this ListAgentsResponse.
|
|
90
|
+
:type total: int
|
|
91
|
+
"""
|
|
92
|
+
self._total = total
|
|
93
|
+
|
|
94
|
+
def to_dict(self):
|
|
95
|
+
import warnings
|
|
96
|
+
warnings.warn("ListAgentsResponse.to_dict() is deprecated and no longer maintained, "
|
|
97
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
98
|
+
result = {}
|
|
99
|
+
|
|
100
|
+
for attr, _ in self.openapi_types.items():
|
|
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
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
127
|
+
|
|
128
|
+
def __repr__(self):
|
|
129
|
+
"""For `print`"""
|
|
130
|
+
return self.to_str()
|
|
131
|
+
|
|
132
|
+
def __eq__(self, other):
|
|
133
|
+
"""Returns true if both objects are equal"""
|
|
134
|
+
if not isinstance(other, ListAgentsResponse):
|
|
135
|
+
return False
|
|
136
|
+
|
|
137
|
+
return self.__dict__ == other.__dict__
|
|
138
|
+
|
|
139
|
+
def __ne__(self, other):
|
|
140
|
+
"""Returns true if both objects are not equal"""
|
|
141
|
+
return not self == other
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ListAuditInfoRequest:
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Attributes:
|
|
10
|
+
openapi_types (dict): The key is attribute name
|
|
11
|
+
and the value is attribute type.
|
|
12
|
+
attribute_map (dict): The key is attribute name
|
|
13
|
+
and the value is json key in definition.
|
|
14
|
+
"""
|
|
15
|
+
sensitive_list = []
|
|
16
|
+
|
|
17
|
+
openapi_types = {
|
|
18
|
+
'league_id': 'str',
|
|
19
|
+
'limit': 'int',
|
|
20
|
+
'offset': 'int'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'league_id': 'league_id',
|
|
25
|
+
'limit': 'limit',
|
|
26
|
+
'offset': 'offset'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, league_id=None, limit=None, offset=None):
|
|
30
|
+
r"""ListAuditInfoRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param league_id: 联盟id,最大32位,字母和数字组成
|
|
35
|
+
:type league_id: str
|
|
36
|
+
:param limit: 每页记录数,取值0-100
|
|
37
|
+
:type limit: int
|
|
38
|
+
:param offset: 记录数偏移量
|
|
39
|
+
:type offset: int
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
self._league_id = None
|
|
45
|
+
self._limit = None
|
|
46
|
+
self._offset = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
|
|
49
|
+
self.league_id = league_id
|
|
50
|
+
self.limit = limit
|
|
51
|
+
self.offset = offset
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def league_id(self):
|
|
55
|
+
r"""Gets the league_id of this ListAuditInfoRequest.
|
|
56
|
+
|
|
57
|
+
联盟id,最大32位,字母和数字组成
|
|
58
|
+
|
|
59
|
+
:return: The league_id of this ListAuditInfoRequest.
|
|
60
|
+
:rtype: str
|
|
61
|
+
"""
|
|
62
|
+
return self._league_id
|
|
63
|
+
|
|
64
|
+
@league_id.setter
|
|
65
|
+
def league_id(self, league_id):
|
|
66
|
+
r"""Sets the league_id of this ListAuditInfoRequest.
|
|
67
|
+
|
|
68
|
+
联盟id,最大32位,字母和数字组成
|
|
69
|
+
|
|
70
|
+
:param league_id: The league_id of this ListAuditInfoRequest.
|
|
71
|
+
:type league_id: str
|
|
72
|
+
"""
|
|
73
|
+
self._league_id = league_id
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def limit(self):
|
|
77
|
+
r"""Gets the limit of this ListAuditInfoRequest.
|
|
78
|
+
|
|
79
|
+
每页记录数,取值0-100
|
|
80
|
+
|
|
81
|
+
:return: The limit of this ListAuditInfoRequest.
|
|
82
|
+
:rtype: int
|
|
83
|
+
"""
|
|
84
|
+
return self._limit
|
|
85
|
+
|
|
86
|
+
@limit.setter
|
|
87
|
+
def limit(self, limit):
|
|
88
|
+
r"""Sets the limit of this ListAuditInfoRequest.
|
|
89
|
+
|
|
90
|
+
每页记录数,取值0-100
|
|
91
|
+
|
|
92
|
+
:param limit: The limit of this ListAuditInfoRequest.
|
|
93
|
+
:type limit: int
|
|
94
|
+
"""
|
|
95
|
+
self._limit = limit
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def offset(self):
|
|
99
|
+
r"""Gets the offset of this ListAuditInfoRequest.
|
|
100
|
+
|
|
101
|
+
记录数偏移量
|
|
102
|
+
|
|
103
|
+
:return: The offset of this ListAuditInfoRequest.
|
|
104
|
+
:rtype: int
|
|
105
|
+
"""
|
|
106
|
+
return self._offset
|
|
107
|
+
|
|
108
|
+
@offset.setter
|
|
109
|
+
def offset(self, offset):
|
|
110
|
+
r"""Sets the offset of this ListAuditInfoRequest.
|
|
111
|
+
|
|
112
|
+
记录数偏移量
|
|
113
|
+
|
|
114
|
+
:param offset: The offset of this ListAuditInfoRequest.
|
|
115
|
+
:type offset: int
|
|
116
|
+
"""
|
|
117
|
+
self._offset = offset
|
|
118
|
+
|
|
119
|
+
def to_dict(self):
|
|
120
|
+
result = {}
|
|
121
|
+
|
|
122
|
+
for attr, _ in self.openapi_types.items():
|
|
123
|
+
value = getattr(self, attr)
|
|
124
|
+
if isinstance(value, list):
|
|
125
|
+
result[attr] = list(map(
|
|
126
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
127
|
+
value
|
|
128
|
+
))
|
|
129
|
+
elif hasattr(value, "to_dict"):
|
|
130
|
+
result[attr] = value.to_dict()
|
|
131
|
+
elif isinstance(value, dict):
|
|
132
|
+
result[attr] = dict(map(
|
|
133
|
+
lambda item: (item[0], item[1].to_dict())
|
|
134
|
+
if hasattr(item[1], "to_dict") else item,
|
|
135
|
+
value.items()
|
|
136
|
+
))
|
|
137
|
+
else:
|
|
138
|
+
if attr in self.sensitive_list:
|
|
139
|
+
result[attr] = "****"
|
|
140
|
+
else:
|
|
141
|
+
result[attr] = value
|
|
142
|
+
|
|
143
|
+
return result
|
|
144
|
+
|
|
145
|
+
def to_str(self):
|
|
146
|
+
"""Returns the string representation of the model"""
|
|
147
|
+
import simplejson as json
|
|
148
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
149
|
+
|
|
150
|
+
def __repr__(self):
|
|
151
|
+
"""For `print`"""
|
|
152
|
+
return self.to_str()
|
|
153
|
+
|
|
154
|
+
def __eq__(self, other):
|
|
155
|
+
"""Returns true if both objects are equal"""
|
|
156
|
+
if not isinstance(other, ListAuditInfoRequest):
|
|
157
|
+
return False
|
|
158
|
+
|
|
159
|
+
return self.__dict__ == other.__dict__
|
|
160
|
+
|
|
161
|
+
def __ne__(self, other):
|
|
162
|
+
"""Returns true if both objects are not equal"""
|
|
163
|
+
return not self == other
|
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class ListAuditInfoResponse(SdkResponse):
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
Attributes:
|
|
11
|
+
openapi_types (dict): The key is attribute name
|
|
12
|
+
and the value is attribute type.
|
|
13
|
+
attribute_map (dict): The key is attribute name
|
|
14
|
+
and the value is json key in definition.
|
|
15
|
+
"""
|
|
16
|
+
sensitive_list = []
|
|
17
|
+
|
|
18
|
+
openapi_types = {
|
|
19
|
+
'lists': 'list[TicsLeagueAuditLog]',
|
|
20
|
+
'total': 'int'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'lists': 'lists',
|
|
25
|
+
'total': 'total'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, lists=None, total=None):
|
|
29
|
+
r"""ListAuditInfoResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param lists: 实例集合
|
|
34
|
+
:type lists: list[:class:`huaweicloudsdktics.v1.TicsLeagueAuditLog`]
|
|
35
|
+
:param total: 总记录数
|
|
36
|
+
:type total: int
|
|
37
|
+
"""
|
|
38
|
+
|
|
39
|
+
super().__init__()
|
|
40
|
+
|
|
41
|
+
self._lists = None
|
|
42
|
+
self._total = None
|
|
43
|
+
self.discriminator = None
|
|
44
|
+
|
|
45
|
+
if lists is not None:
|
|
46
|
+
self.lists = lists
|
|
47
|
+
if total is not None:
|
|
48
|
+
self.total = total
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def lists(self):
|
|
52
|
+
r"""Gets the lists of this ListAuditInfoResponse.
|
|
53
|
+
|
|
54
|
+
实例集合
|
|
55
|
+
|
|
56
|
+
:return: The lists of this ListAuditInfoResponse.
|
|
57
|
+
:rtype: list[:class:`huaweicloudsdktics.v1.TicsLeagueAuditLog`]
|
|
58
|
+
"""
|
|
59
|
+
return self._lists
|
|
60
|
+
|
|
61
|
+
@lists.setter
|
|
62
|
+
def lists(self, lists):
|
|
63
|
+
r"""Sets the lists of this ListAuditInfoResponse.
|
|
64
|
+
|
|
65
|
+
实例集合
|
|
66
|
+
|
|
67
|
+
:param lists: The lists of this ListAuditInfoResponse.
|
|
68
|
+
:type lists: list[:class:`huaweicloudsdktics.v1.TicsLeagueAuditLog`]
|
|
69
|
+
"""
|
|
70
|
+
self._lists = lists
|
|
71
|
+
|
|
72
|
+
@property
|
|
73
|
+
def total(self):
|
|
74
|
+
r"""Gets the total of this ListAuditInfoResponse.
|
|
75
|
+
|
|
76
|
+
总记录数
|
|
77
|
+
|
|
78
|
+
:return: The total of this ListAuditInfoResponse.
|
|
79
|
+
:rtype: int
|
|
80
|
+
"""
|
|
81
|
+
return self._total
|
|
82
|
+
|
|
83
|
+
@total.setter
|
|
84
|
+
def total(self, total):
|
|
85
|
+
r"""Sets the total of this ListAuditInfoResponse.
|
|
86
|
+
|
|
87
|
+
总记录数
|
|
88
|
+
|
|
89
|
+
:param total: The total of this ListAuditInfoResponse.
|
|
90
|
+
:type total: int
|
|
91
|
+
"""
|
|
92
|
+
self._total = total
|
|
93
|
+
|
|
94
|
+
def to_dict(self):
|
|
95
|
+
import warnings
|
|
96
|
+
warnings.warn("ListAuditInfoResponse.to_dict() is deprecated and no longer maintained, "
|
|
97
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
98
|
+
result = {}
|
|
99
|
+
|
|
100
|
+
for attr, _ in self.openapi_types.items():
|
|
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
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
127
|
+
|
|
128
|
+
def __repr__(self):
|
|
129
|
+
"""For `print`"""
|
|
130
|
+
return self.to_str()
|
|
131
|
+
|
|
132
|
+
def __eq__(self, other):
|
|
133
|
+
"""Returns true if both objects are equal"""
|
|
134
|
+
if not isinstance(other, ListAuditInfoResponse):
|
|
135
|
+
return False
|
|
136
|
+
|
|
137
|
+
return self.__dict__ == other.__dict__
|
|
138
|
+
|
|
139
|
+
def __ne__(self, other):
|
|
140
|
+
"""Returns true if both objects are not equal"""
|
|
141
|
+
return not self == other
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ListFlJobRequest:
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Attributes:
|
|
10
|
+
openapi_types (dict): The key is attribute name
|
|
11
|
+
and the value is attribute type.
|
|
12
|
+
attribute_map (dict): The key is attribute name
|
|
13
|
+
and the value is json key in definition.
|
|
14
|
+
"""
|
|
15
|
+
sensitive_list = []
|
|
16
|
+
|
|
17
|
+
openapi_types = {
|
|
18
|
+
'league_id': 'str',
|
|
19
|
+
'limit': 'int',
|
|
20
|
+
'offset': 'int'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'league_id': 'league_id',
|
|
25
|
+
'limit': 'limit',
|
|
26
|
+
'offset': 'offset'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, league_id=None, limit=None, offset=None):
|
|
30
|
+
r"""ListFlJobRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param league_id: 联盟id,最大32位,字母和数字组成
|
|
35
|
+
:type league_id: str
|
|
36
|
+
:param limit: 每页记录数,取值0-100
|
|
37
|
+
:type limit: int
|
|
38
|
+
:param offset: 记录数偏移量
|
|
39
|
+
:type offset: int
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
self._league_id = None
|
|
45
|
+
self._limit = None
|
|
46
|
+
self._offset = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
|
|
49
|
+
self.league_id = league_id
|
|
50
|
+
self.limit = limit
|
|
51
|
+
self.offset = offset
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def league_id(self):
|
|
55
|
+
r"""Gets the league_id of this ListFlJobRequest.
|
|
56
|
+
|
|
57
|
+
联盟id,最大32位,字母和数字组成
|
|
58
|
+
|
|
59
|
+
:return: The league_id of this ListFlJobRequest.
|
|
60
|
+
:rtype: str
|
|
61
|
+
"""
|
|
62
|
+
return self._league_id
|
|
63
|
+
|
|
64
|
+
@league_id.setter
|
|
65
|
+
def league_id(self, league_id):
|
|
66
|
+
r"""Sets the league_id of this ListFlJobRequest.
|
|
67
|
+
|
|
68
|
+
联盟id,最大32位,字母和数字组成
|
|
69
|
+
|
|
70
|
+
:param league_id: The league_id of this ListFlJobRequest.
|
|
71
|
+
:type league_id: str
|
|
72
|
+
"""
|
|
73
|
+
self._league_id = league_id
|
|
74
|
+
|
|
75
|
+
@property
|
|
76
|
+
def limit(self):
|
|
77
|
+
r"""Gets the limit of this ListFlJobRequest.
|
|
78
|
+
|
|
79
|
+
每页记录数,取值0-100
|
|
80
|
+
|
|
81
|
+
:return: The limit of this ListFlJobRequest.
|
|
82
|
+
:rtype: int
|
|
83
|
+
"""
|
|
84
|
+
return self._limit
|
|
85
|
+
|
|
86
|
+
@limit.setter
|
|
87
|
+
def limit(self, limit):
|
|
88
|
+
r"""Sets the limit of this ListFlJobRequest.
|
|
89
|
+
|
|
90
|
+
每页记录数,取值0-100
|
|
91
|
+
|
|
92
|
+
:param limit: The limit of this ListFlJobRequest.
|
|
93
|
+
:type limit: int
|
|
94
|
+
"""
|
|
95
|
+
self._limit = limit
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def offset(self):
|
|
99
|
+
r"""Gets the offset of this ListFlJobRequest.
|
|
100
|
+
|
|
101
|
+
记录数偏移量
|
|
102
|
+
|
|
103
|
+
:return: The offset of this ListFlJobRequest.
|
|
104
|
+
:rtype: int
|
|
105
|
+
"""
|
|
106
|
+
return self._offset
|
|
107
|
+
|
|
108
|
+
@offset.setter
|
|
109
|
+
def offset(self, offset):
|
|
110
|
+
r"""Sets the offset of this ListFlJobRequest.
|
|
111
|
+
|
|
112
|
+
记录数偏移量
|
|
113
|
+
|
|
114
|
+
:param offset: The offset of this ListFlJobRequest.
|
|
115
|
+
:type offset: int
|
|
116
|
+
"""
|
|
117
|
+
self._offset = offset
|
|
118
|
+
|
|
119
|
+
def to_dict(self):
|
|
120
|
+
result = {}
|
|
121
|
+
|
|
122
|
+
for attr, _ in self.openapi_types.items():
|
|
123
|
+
value = getattr(self, attr)
|
|
124
|
+
if isinstance(value, list):
|
|
125
|
+
result[attr] = list(map(
|
|
126
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
127
|
+
value
|
|
128
|
+
))
|
|
129
|
+
elif hasattr(value, "to_dict"):
|
|
130
|
+
result[attr] = value.to_dict()
|
|
131
|
+
elif isinstance(value, dict):
|
|
132
|
+
result[attr] = dict(map(
|
|
133
|
+
lambda item: (item[0], item[1].to_dict())
|
|
134
|
+
if hasattr(item[1], "to_dict") else item,
|
|
135
|
+
value.items()
|
|
136
|
+
))
|
|
137
|
+
else:
|
|
138
|
+
if attr in self.sensitive_list:
|
|
139
|
+
result[attr] = "****"
|
|
140
|
+
else:
|
|
141
|
+
result[attr] = value
|
|
142
|
+
|
|
143
|
+
return result
|
|
144
|
+
|
|
145
|
+
def to_str(self):
|
|
146
|
+
"""Returns the string representation of the model"""
|
|
147
|
+
import simplejson as json
|
|
148
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
149
|
+
|
|
150
|
+
def __repr__(self):
|
|
151
|
+
"""For `print`"""
|
|
152
|
+
return self.to_str()
|
|
153
|
+
|
|
154
|
+
def __eq__(self, other):
|
|
155
|
+
"""Returns true if both objects are equal"""
|
|
156
|
+
if not isinstance(other, ListFlJobRequest):
|
|
157
|
+
return False
|
|
158
|
+
|
|
159
|
+
return self.__dict__ == other.__dict__
|
|
160
|
+
|
|
161
|
+
def __ne__(self, other):
|
|
162
|
+
"""Returns true if both objects are not equal"""
|
|
163
|
+
return not self == other
|