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,311 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class LeaguePartnerStatisticsVo:
|
|
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
|
+
'partner_access_cnt': 'int',
|
|
19
|
+
'partner_domain_alias': 'str',
|
|
20
|
+
'partner_domain_name': 'str',
|
|
21
|
+
'partner_job_cnt': 'int',
|
|
22
|
+
'partner_job_ins_cnt': 'int',
|
|
23
|
+
'partner_job_ins_fail_cnt': 'int',
|
|
24
|
+
'partner_job_ins_intercept_cnt': 'int',
|
|
25
|
+
'partner_job_ins_success_cnt': 'int'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
attribute_map = {
|
|
29
|
+
'partner_access_cnt': 'partner_access_cnt',
|
|
30
|
+
'partner_domain_alias': 'partner_domain_alias',
|
|
31
|
+
'partner_domain_name': 'partner_domain_name',
|
|
32
|
+
'partner_job_cnt': 'partner_job_cnt',
|
|
33
|
+
'partner_job_ins_cnt': 'partner_job_ins_cnt',
|
|
34
|
+
'partner_job_ins_fail_cnt': 'partner_job_ins_fail_cnt',
|
|
35
|
+
'partner_job_ins_intercept_cnt': 'partner_job_ins_intercept_cnt',
|
|
36
|
+
'partner_job_ins_success_cnt': 'partner_job_ins_success_cnt'
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
def __init__(self, partner_access_cnt=None, partner_domain_alias=None, partner_domain_name=None, partner_job_cnt=None, partner_job_ins_cnt=None, partner_job_ins_fail_cnt=None, partner_job_ins_intercept_cnt=None, partner_job_ins_success_cnt=None):
|
|
40
|
+
r"""LeaguePartnerStatisticsVo
|
|
41
|
+
|
|
42
|
+
The model defined in huaweicloud sdk
|
|
43
|
+
|
|
44
|
+
:param partner_access_cnt: 合作方访问次数
|
|
45
|
+
:type partner_access_cnt: int
|
|
46
|
+
:param partner_domain_alias: 租户别名
|
|
47
|
+
:type partner_domain_alias: str
|
|
48
|
+
:param partner_domain_name: 租户名
|
|
49
|
+
:type partner_domain_name: str
|
|
50
|
+
:param partner_job_cnt: 作业总数
|
|
51
|
+
:type partner_job_cnt: int
|
|
52
|
+
:param partner_job_ins_cnt: 实例总数
|
|
53
|
+
:type partner_job_ins_cnt: int
|
|
54
|
+
:param partner_job_ins_fail_cnt: 实例失败数
|
|
55
|
+
:type partner_job_ins_fail_cnt: int
|
|
56
|
+
:param partner_job_ins_intercept_cnt: 实例拦截数
|
|
57
|
+
:type partner_job_ins_intercept_cnt: int
|
|
58
|
+
:param partner_job_ins_success_cnt: 实例成功数
|
|
59
|
+
:type partner_job_ins_success_cnt: int
|
|
60
|
+
"""
|
|
61
|
+
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
self._partner_access_cnt = None
|
|
65
|
+
self._partner_domain_alias = None
|
|
66
|
+
self._partner_domain_name = None
|
|
67
|
+
self._partner_job_cnt = None
|
|
68
|
+
self._partner_job_ins_cnt = None
|
|
69
|
+
self._partner_job_ins_fail_cnt = None
|
|
70
|
+
self._partner_job_ins_intercept_cnt = None
|
|
71
|
+
self._partner_job_ins_success_cnt = None
|
|
72
|
+
self.discriminator = None
|
|
73
|
+
|
|
74
|
+
if partner_access_cnt is not None:
|
|
75
|
+
self.partner_access_cnt = partner_access_cnt
|
|
76
|
+
if partner_domain_alias is not None:
|
|
77
|
+
self.partner_domain_alias = partner_domain_alias
|
|
78
|
+
if partner_domain_name is not None:
|
|
79
|
+
self.partner_domain_name = partner_domain_name
|
|
80
|
+
if partner_job_cnt is not None:
|
|
81
|
+
self.partner_job_cnt = partner_job_cnt
|
|
82
|
+
if partner_job_ins_cnt is not None:
|
|
83
|
+
self.partner_job_ins_cnt = partner_job_ins_cnt
|
|
84
|
+
if partner_job_ins_fail_cnt is not None:
|
|
85
|
+
self.partner_job_ins_fail_cnt = partner_job_ins_fail_cnt
|
|
86
|
+
if partner_job_ins_intercept_cnt is not None:
|
|
87
|
+
self.partner_job_ins_intercept_cnt = partner_job_ins_intercept_cnt
|
|
88
|
+
if partner_job_ins_success_cnt is not None:
|
|
89
|
+
self.partner_job_ins_success_cnt = partner_job_ins_success_cnt
|
|
90
|
+
|
|
91
|
+
@property
|
|
92
|
+
def partner_access_cnt(self):
|
|
93
|
+
r"""Gets the partner_access_cnt of this LeaguePartnerStatisticsVo.
|
|
94
|
+
|
|
95
|
+
合作方访问次数
|
|
96
|
+
|
|
97
|
+
:return: The partner_access_cnt of this LeaguePartnerStatisticsVo.
|
|
98
|
+
:rtype: int
|
|
99
|
+
"""
|
|
100
|
+
return self._partner_access_cnt
|
|
101
|
+
|
|
102
|
+
@partner_access_cnt.setter
|
|
103
|
+
def partner_access_cnt(self, partner_access_cnt):
|
|
104
|
+
r"""Sets the partner_access_cnt of this LeaguePartnerStatisticsVo.
|
|
105
|
+
|
|
106
|
+
合作方访问次数
|
|
107
|
+
|
|
108
|
+
:param partner_access_cnt: The partner_access_cnt of this LeaguePartnerStatisticsVo.
|
|
109
|
+
:type partner_access_cnt: int
|
|
110
|
+
"""
|
|
111
|
+
self._partner_access_cnt = partner_access_cnt
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def partner_domain_alias(self):
|
|
115
|
+
r"""Gets the partner_domain_alias of this LeaguePartnerStatisticsVo.
|
|
116
|
+
|
|
117
|
+
租户别名
|
|
118
|
+
|
|
119
|
+
:return: The partner_domain_alias of this LeaguePartnerStatisticsVo.
|
|
120
|
+
:rtype: str
|
|
121
|
+
"""
|
|
122
|
+
return self._partner_domain_alias
|
|
123
|
+
|
|
124
|
+
@partner_domain_alias.setter
|
|
125
|
+
def partner_domain_alias(self, partner_domain_alias):
|
|
126
|
+
r"""Sets the partner_domain_alias of this LeaguePartnerStatisticsVo.
|
|
127
|
+
|
|
128
|
+
租户别名
|
|
129
|
+
|
|
130
|
+
:param partner_domain_alias: The partner_domain_alias of this LeaguePartnerStatisticsVo.
|
|
131
|
+
:type partner_domain_alias: str
|
|
132
|
+
"""
|
|
133
|
+
self._partner_domain_alias = partner_domain_alias
|
|
134
|
+
|
|
135
|
+
@property
|
|
136
|
+
def partner_domain_name(self):
|
|
137
|
+
r"""Gets the partner_domain_name of this LeaguePartnerStatisticsVo.
|
|
138
|
+
|
|
139
|
+
租户名
|
|
140
|
+
|
|
141
|
+
:return: The partner_domain_name of this LeaguePartnerStatisticsVo.
|
|
142
|
+
:rtype: str
|
|
143
|
+
"""
|
|
144
|
+
return self._partner_domain_name
|
|
145
|
+
|
|
146
|
+
@partner_domain_name.setter
|
|
147
|
+
def partner_domain_name(self, partner_domain_name):
|
|
148
|
+
r"""Sets the partner_domain_name of this LeaguePartnerStatisticsVo.
|
|
149
|
+
|
|
150
|
+
租户名
|
|
151
|
+
|
|
152
|
+
:param partner_domain_name: The partner_domain_name of this LeaguePartnerStatisticsVo.
|
|
153
|
+
:type partner_domain_name: str
|
|
154
|
+
"""
|
|
155
|
+
self._partner_domain_name = partner_domain_name
|
|
156
|
+
|
|
157
|
+
@property
|
|
158
|
+
def partner_job_cnt(self):
|
|
159
|
+
r"""Gets the partner_job_cnt of this LeaguePartnerStatisticsVo.
|
|
160
|
+
|
|
161
|
+
作业总数
|
|
162
|
+
|
|
163
|
+
:return: The partner_job_cnt of this LeaguePartnerStatisticsVo.
|
|
164
|
+
:rtype: int
|
|
165
|
+
"""
|
|
166
|
+
return self._partner_job_cnt
|
|
167
|
+
|
|
168
|
+
@partner_job_cnt.setter
|
|
169
|
+
def partner_job_cnt(self, partner_job_cnt):
|
|
170
|
+
r"""Sets the partner_job_cnt of this LeaguePartnerStatisticsVo.
|
|
171
|
+
|
|
172
|
+
作业总数
|
|
173
|
+
|
|
174
|
+
:param partner_job_cnt: The partner_job_cnt of this LeaguePartnerStatisticsVo.
|
|
175
|
+
:type partner_job_cnt: int
|
|
176
|
+
"""
|
|
177
|
+
self._partner_job_cnt = partner_job_cnt
|
|
178
|
+
|
|
179
|
+
@property
|
|
180
|
+
def partner_job_ins_cnt(self):
|
|
181
|
+
r"""Gets the partner_job_ins_cnt of this LeaguePartnerStatisticsVo.
|
|
182
|
+
|
|
183
|
+
实例总数
|
|
184
|
+
|
|
185
|
+
:return: The partner_job_ins_cnt of this LeaguePartnerStatisticsVo.
|
|
186
|
+
:rtype: int
|
|
187
|
+
"""
|
|
188
|
+
return self._partner_job_ins_cnt
|
|
189
|
+
|
|
190
|
+
@partner_job_ins_cnt.setter
|
|
191
|
+
def partner_job_ins_cnt(self, partner_job_ins_cnt):
|
|
192
|
+
r"""Sets the partner_job_ins_cnt of this LeaguePartnerStatisticsVo.
|
|
193
|
+
|
|
194
|
+
实例总数
|
|
195
|
+
|
|
196
|
+
:param partner_job_ins_cnt: The partner_job_ins_cnt of this LeaguePartnerStatisticsVo.
|
|
197
|
+
:type partner_job_ins_cnt: int
|
|
198
|
+
"""
|
|
199
|
+
self._partner_job_ins_cnt = partner_job_ins_cnt
|
|
200
|
+
|
|
201
|
+
@property
|
|
202
|
+
def partner_job_ins_fail_cnt(self):
|
|
203
|
+
r"""Gets the partner_job_ins_fail_cnt of this LeaguePartnerStatisticsVo.
|
|
204
|
+
|
|
205
|
+
实例失败数
|
|
206
|
+
|
|
207
|
+
:return: The partner_job_ins_fail_cnt of this LeaguePartnerStatisticsVo.
|
|
208
|
+
:rtype: int
|
|
209
|
+
"""
|
|
210
|
+
return self._partner_job_ins_fail_cnt
|
|
211
|
+
|
|
212
|
+
@partner_job_ins_fail_cnt.setter
|
|
213
|
+
def partner_job_ins_fail_cnt(self, partner_job_ins_fail_cnt):
|
|
214
|
+
r"""Sets the partner_job_ins_fail_cnt of this LeaguePartnerStatisticsVo.
|
|
215
|
+
|
|
216
|
+
实例失败数
|
|
217
|
+
|
|
218
|
+
:param partner_job_ins_fail_cnt: The partner_job_ins_fail_cnt of this LeaguePartnerStatisticsVo.
|
|
219
|
+
:type partner_job_ins_fail_cnt: int
|
|
220
|
+
"""
|
|
221
|
+
self._partner_job_ins_fail_cnt = partner_job_ins_fail_cnt
|
|
222
|
+
|
|
223
|
+
@property
|
|
224
|
+
def partner_job_ins_intercept_cnt(self):
|
|
225
|
+
r"""Gets the partner_job_ins_intercept_cnt of this LeaguePartnerStatisticsVo.
|
|
226
|
+
|
|
227
|
+
实例拦截数
|
|
228
|
+
|
|
229
|
+
:return: The partner_job_ins_intercept_cnt of this LeaguePartnerStatisticsVo.
|
|
230
|
+
:rtype: int
|
|
231
|
+
"""
|
|
232
|
+
return self._partner_job_ins_intercept_cnt
|
|
233
|
+
|
|
234
|
+
@partner_job_ins_intercept_cnt.setter
|
|
235
|
+
def partner_job_ins_intercept_cnt(self, partner_job_ins_intercept_cnt):
|
|
236
|
+
r"""Sets the partner_job_ins_intercept_cnt of this LeaguePartnerStatisticsVo.
|
|
237
|
+
|
|
238
|
+
实例拦截数
|
|
239
|
+
|
|
240
|
+
:param partner_job_ins_intercept_cnt: The partner_job_ins_intercept_cnt of this LeaguePartnerStatisticsVo.
|
|
241
|
+
:type partner_job_ins_intercept_cnt: int
|
|
242
|
+
"""
|
|
243
|
+
self._partner_job_ins_intercept_cnt = partner_job_ins_intercept_cnt
|
|
244
|
+
|
|
245
|
+
@property
|
|
246
|
+
def partner_job_ins_success_cnt(self):
|
|
247
|
+
r"""Gets the partner_job_ins_success_cnt of this LeaguePartnerStatisticsVo.
|
|
248
|
+
|
|
249
|
+
实例成功数
|
|
250
|
+
|
|
251
|
+
:return: The partner_job_ins_success_cnt of this LeaguePartnerStatisticsVo.
|
|
252
|
+
:rtype: int
|
|
253
|
+
"""
|
|
254
|
+
return self._partner_job_ins_success_cnt
|
|
255
|
+
|
|
256
|
+
@partner_job_ins_success_cnt.setter
|
|
257
|
+
def partner_job_ins_success_cnt(self, partner_job_ins_success_cnt):
|
|
258
|
+
r"""Sets the partner_job_ins_success_cnt of this LeaguePartnerStatisticsVo.
|
|
259
|
+
|
|
260
|
+
实例成功数
|
|
261
|
+
|
|
262
|
+
:param partner_job_ins_success_cnt: The partner_job_ins_success_cnt of this LeaguePartnerStatisticsVo.
|
|
263
|
+
:type partner_job_ins_success_cnt: int
|
|
264
|
+
"""
|
|
265
|
+
self._partner_job_ins_success_cnt = partner_job_ins_success_cnt
|
|
266
|
+
|
|
267
|
+
def to_dict(self):
|
|
268
|
+
result = {}
|
|
269
|
+
|
|
270
|
+
for attr, _ in self.openapi_types.items():
|
|
271
|
+
value = getattr(self, attr)
|
|
272
|
+
if isinstance(value, list):
|
|
273
|
+
result[attr] = list(map(
|
|
274
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
275
|
+
value
|
|
276
|
+
))
|
|
277
|
+
elif hasattr(value, "to_dict"):
|
|
278
|
+
result[attr] = value.to_dict()
|
|
279
|
+
elif isinstance(value, dict):
|
|
280
|
+
result[attr] = dict(map(
|
|
281
|
+
lambda item: (item[0], item[1].to_dict())
|
|
282
|
+
if hasattr(item[1], "to_dict") else item,
|
|
283
|
+
value.items()
|
|
284
|
+
))
|
|
285
|
+
else:
|
|
286
|
+
if attr in self.sensitive_list:
|
|
287
|
+
result[attr] = "****"
|
|
288
|
+
else:
|
|
289
|
+
result[attr] = value
|
|
290
|
+
|
|
291
|
+
return result
|
|
292
|
+
|
|
293
|
+
def to_str(self):
|
|
294
|
+
"""Returns the string representation of the model"""
|
|
295
|
+
import simplejson as json
|
|
296
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
297
|
+
|
|
298
|
+
def __repr__(self):
|
|
299
|
+
"""For `print`"""
|
|
300
|
+
return self.to_str()
|
|
301
|
+
|
|
302
|
+
def __eq__(self, other):
|
|
303
|
+
"""Returns true if both objects are equal"""
|
|
304
|
+
if not isinstance(other, LeaguePartnerStatisticsVo):
|
|
305
|
+
return False
|
|
306
|
+
|
|
307
|
+
return self.__dict__ == other.__dict__
|
|
308
|
+
|
|
309
|
+
def __ne__(self, other):
|
|
310
|
+
"""Returns true if both objects are not equal"""
|
|
311
|
+
return not self == other
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class LeagueUpdateVo:
|
|
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
|
+
'description': 'str',
|
|
19
|
+
'dp_enabled': 'bool',
|
|
20
|
+
'privacy_protection_type': 'str'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'description': 'description',
|
|
25
|
+
'dp_enabled': 'dp_enabled',
|
|
26
|
+
'privacy_protection_type': 'privacy_protection_type'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, description=None, dp_enabled=None, privacy_protection_type=None):
|
|
30
|
+
r"""LeagueUpdateVo
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param description: 描述
|
|
35
|
+
:type description: str
|
|
36
|
+
:param dp_enabled: 差分隐私开关
|
|
37
|
+
:type dp_enabled: bool
|
|
38
|
+
:param privacy_protection_type: 隐私保护类别,HIGH.高,STANDARD.标准
|
|
39
|
+
:type privacy_protection_type: str
|
|
40
|
+
"""
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
self._description = None
|
|
45
|
+
self._dp_enabled = None
|
|
46
|
+
self._privacy_protection_type = None
|
|
47
|
+
self.discriminator = None
|
|
48
|
+
|
|
49
|
+
if description is not None:
|
|
50
|
+
self.description = description
|
|
51
|
+
if dp_enabled is not None:
|
|
52
|
+
self.dp_enabled = dp_enabled
|
|
53
|
+
if privacy_protection_type is not None:
|
|
54
|
+
self.privacy_protection_type = privacy_protection_type
|
|
55
|
+
|
|
56
|
+
@property
|
|
57
|
+
def description(self):
|
|
58
|
+
r"""Gets the description of this LeagueUpdateVo.
|
|
59
|
+
|
|
60
|
+
描述
|
|
61
|
+
|
|
62
|
+
:return: The description of this LeagueUpdateVo.
|
|
63
|
+
:rtype: str
|
|
64
|
+
"""
|
|
65
|
+
return self._description
|
|
66
|
+
|
|
67
|
+
@description.setter
|
|
68
|
+
def description(self, description):
|
|
69
|
+
r"""Sets the description of this LeagueUpdateVo.
|
|
70
|
+
|
|
71
|
+
描述
|
|
72
|
+
|
|
73
|
+
:param description: The description of this LeagueUpdateVo.
|
|
74
|
+
:type description: str
|
|
75
|
+
"""
|
|
76
|
+
self._description = description
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def dp_enabled(self):
|
|
80
|
+
r"""Gets the dp_enabled of this LeagueUpdateVo.
|
|
81
|
+
|
|
82
|
+
差分隐私开关
|
|
83
|
+
|
|
84
|
+
:return: The dp_enabled of this LeagueUpdateVo.
|
|
85
|
+
:rtype: bool
|
|
86
|
+
"""
|
|
87
|
+
return self._dp_enabled
|
|
88
|
+
|
|
89
|
+
@dp_enabled.setter
|
|
90
|
+
def dp_enabled(self, dp_enabled):
|
|
91
|
+
r"""Sets the dp_enabled of this LeagueUpdateVo.
|
|
92
|
+
|
|
93
|
+
差分隐私开关
|
|
94
|
+
|
|
95
|
+
:param dp_enabled: The dp_enabled of this LeagueUpdateVo.
|
|
96
|
+
:type dp_enabled: bool
|
|
97
|
+
"""
|
|
98
|
+
self._dp_enabled = dp_enabled
|
|
99
|
+
|
|
100
|
+
@property
|
|
101
|
+
def privacy_protection_type(self):
|
|
102
|
+
r"""Gets the privacy_protection_type of this LeagueUpdateVo.
|
|
103
|
+
|
|
104
|
+
隐私保护类别,HIGH.高,STANDARD.标准
|
|
105
|
+
|
|
106
|
+
:return: The privacy_protection_type of this LeagueUpdateVo.
|
|
107
|
+
:rtype: str
|
|
108
|
+
"""
|
|
109
|
+
return self._privacy_protection_type
|
|
110
|
+
|
|
111
|
+
@privacy_protection_type.setter
|
|
112
|
+
def privacy_protection_type(self, privacy_protection_type):
|
|
113
|
+
r"""Sets the privacy_protection_type of this LeagueUpdateVo.
|
|
114
|
+
|
|
115
|
+
隐私保护类别,HIGH.高,STANDARD.标准
|
|
116
|
+
|
|
117
|
+
:param privacy_protection_type: The privacy_protection_type of this LeagueUpdateVo.
|
|
118
|
+
:type privacy_protection_type: str
|
|
119
|
+
"""
|
|
120
|
+
self._privacy_protection_type = privacy_protection_type
|
|
121
|
+
|
|
122
|
+
def to_dict(self):
|
|
123
|
+
result = {}
|
|
124
|
+
|
|
125
|
+
for attr, _ in self.openapi_types.items():
|
|
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
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
152
|
+
|
|
153
|
+
def __repr__(self):
|
|
154
|
+
"""For `print`"""
|
|
155
|
+
return self.to_str()
|
|
156
|
+
|
|
157
|
+
def __eq__(self, other):
|
|
158
|
+
"""Returns true if both objects are equal"""
|
|
159
|
+
if not isinstance(other, LeagueUpdateVo):
|
|
160
|
+
return False
|
|
161
|
+
|
|
162
|
+
return self.__dict__ == other.__dict__
|
|
163
|
+
|
|
164
|
+
def __ne__(self, other):
|
|
165
|
+
"""Returns true if both objects are not equal"""
|
|
166
|
+
return not self == other
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class ListAgentsRequest:
|
|
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
|
+
'limit': 'int',
|
|
19
|
+
'offset': 'int',
|
|
20
|
+
'agent_name': 'str',
|
|
21
|
+
'league_name': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'limit': 'limit',
|
|
26
|
+
'offset': 'offset',
|
|
27
|
+
'agent_name': 'agent_name',
|
|
28
|
+
'league_name': 'league_name'
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
def __init__(self, limit=None, offset=None, agent_name=None, league_name=None):
|
|
32
|
+
r"""ListAgentsRequest
|
|
33
|
+
|
|
34
|
+
The model defined in huaweicloud sdk
|
|
35
|
+
|
|
36
|
+
:param limit: 每页记录数,取值0-100
|
|
37
|
+
:type limit: int
|
|
38
|
+
:param offset: 记录数偏移量
|
|
39
|
+
:type offset: int
|
|
40
|
+
:param agent_name: 可信节点名称
|
|
41
|
+
:type agent_name: str
|
|
42
|
+
:param league_name: 联盟名称
|
|
43
|
+
:type league_name: str
|
|
44
|
+
"""
|
|
45
|
+
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
self._limit = None
|
|
49
|
+
self._offset = None
|
|
50
|
+
self._agent_name = None
|
|
51
|
+
self._league_name = None
|
|
52
|
+
self.discriminator = None
|
|
53
|
+
|
|
54
|
+
self.limit = limit
|
|
55
|
+
self.offset = offset
|
|
56
|
+
if agent_name is not None:
|
|
57
|
+
self.agent_name = agent_name
|
|
58
|
+
if league_name is not None:
|
|
59
|
+
self.league_name = league_name
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def limit(self):
|
|
63
|
+
r"""Gets the limit of this ListAgentsRequest.
|
|
64
|
+
|
|
65
|
+
每页记录数,取值0-100
|
|
66
|
+
|
|
67
|
+
:return: The limit of this ListAgentsRequest.
|
|
68
|
+
:rtype: int
|
|
69
|
+
"""
|
|
70
|
+
return self._limit
|
|
71
|
+
|
|
72
|
+
@limit.setter
|
|
73
|
+
def limit(self, limit):
|
|
74
|
+
r"""Sets the limit of this ListAgentsRequest.
|
|
75
|
+
|
|
76
|
+
每页记录数,取值0-100
|
|
77
|
+
|
|
78
|
+
:param limit: The limit of this ListAgentsRequest.
|
|
79
|
+
:type limit: int
|
|
80
|
+
"""
|
|
81
|
+
self._limit = limit
|
|
82
|
+
|
|
83
|
+
@property
|
|
84
|
+
def offset(self):
|
|
85
|
+
r"""Gets the offset of this ListAgentsRequest.
|
|
86
|
+
|
|
87
|
+
记录数偏移量
|
|
88
|
+
|
|
89
|
+
:return: The offset of this ListAgentsRequest.
|
|
90
|
+
:rtype: int
|
|
91
|
+
"""
|
|
92
|
+
return self._offset
|
|
93
|
+
|
|
94
|
+
@offset.setter
|
|
95
|
+
def offset(self, offset):
|
|
96
|
+
r"""Sets the offset of this ListAgentsRequest.
|
|
97
|
+
|
|
98
|
+
记录数偏移量
|
|
99
|
+
|
|
100
|
+
:param offset: The offset of this ListAgentsRequest.
|
|
101
|
+
:type offset: int
|
|
102
|
+
"""
|
|
103
|
+
self._offset = offset
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def agent_name(self):
|
|
107
|
+
r"""Gets the agent_name of this ListAgentsRequest.
|
|
108
|
+
|
|
109
|
+
可信节点名称
|
|
110
|
+
|
|
111
|
+
:return: The agent_name of this ListAgentsRequest.
|
|
112
|
+
:rtype: str
|
|
113
|
+
"""
|
|
114
|
+
return self._agent_name
|
|
115
|
+
|
|
116
|
+
@agent_name.setter
|
|
117
|
+
def agent_name(self, agent_name):
|
|
118
|
+
r"""Sets the agent_name of this ListAgentsRequest.
|
|
119
|
+
|
|
120
|
+
可信节点名称
|
|
121
|
+
|
|
122
|
+
:param agent_name: The agent_name of this ListAgentsRequest.
|
|
123
|
+
:type agent_name: str
|
|
124
|
+
"""
|
|
125
|
+
self._agent_name = agent_name
|
|
126
|
+
|
|
127
|
+
@property
|
|
128
|
+
def league_name(self):
|
|
129
|
+
r"""Gets the league_name of this ListAgentsRequest.
|
|
130
|
+
|
|
131
|
+
联盟名称
|
|
132
|
+
|
|
133
|
+
:return: The league_name of this ListAgentsRequest.
|
|
134
|
+
:rtype: str
|
|
135
|
+
"""
|
|
136
|
+
return self._league_name
|
|
137
|
+
|
|
138
|
+
@league_name.setter
|
|
139
|
+
def league_name(self, league_name):
|
|
140
|
+
r"""Sets the league_name of this ListAgentsRequest.
|
|
141
|
+
|
|
142
|
+
联盟名称
|
|
143
|
+
|
|
144
|
+
:param league_name: The league_name of this ListAgentsRequest.
|
|
145
|
+
:type league_name: str
|
|
146
|
+
"""
|
|
147
|
+
self._league_name = league_name
|
|
148
|
+
|
|
149
|
+
def to_dict(self):
|
|
150
|
+
result = {}
|
|
151
|
+
|
|
152
|
+
for attr, _ in self.openapi_types.items():
|
|
153
|
+
value = getattr(self, attr)
|
|
154
|
+
if isinstance(value, list):
|
|
155
|
+
result[attr] = list(map(
|
|
156
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
157
|
+
value
|
|
158
|
+
))
|
|
159
|
+
elif hasattr(value, "to_dict"):
|
|
160
|
+
result[attr] = value.to_dict()
|
|
161
|
+
elif isinstance(value, dict):
|
|
162
|
+
result[attr] = dict(map(
|
|
163
|
+
lambda item: (item[0], item[1].to_dict())
|
|
164
|
+
if hasattr(item[1], "to_dict") else item,
|
|
165
|
+
value.items()
|
|
166
|
+
))
|
|
167
|
+
else:
|
|
168
|
+
if attr in self.sensitive_list:
|
|
169
|
+
result[attr] = "****"
|
|
170
|
+
else:
|
|
171
|
+
result[attr] = value
|
|
172
|
+
|
|
173
|
+
return result
|
|
174
|
+
|
|
175
|
+
def to_str(self):
|
|
176
|
+
"""Returns the string representation of the model"""
|
|
177
|
+
import simplejson as json
|
|
178
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
179
|
+
|
|
180
|
+
def __repr__(self):
|
|
181
|
+
"""For `print`"""
|
|
182
|
+
return self.to_str()
|
|
183
|
+
|
|
184
|
+
def __eq__(self, other):
|
|
185
|
+
"""Returns true if both objects are equal"""
|
|
186
|
+
if not isinstance(other, ListAgentsRequest):
|
|
187
|
+
return False
|
|
188
|
+
|
|
189
|
+
return self.__dict__ == other.__dict__
|
|
190
|
+
|
|
191
|
+
def __ne__(self, other):
|
|
192
|
+
"""Returns true if both objects are not equal"""
|
|
193
|
+
return not self == other
|