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.

Files changed (78) hide show
  1. huaweicloudsdktics/__init__.py +0 -0
  2. huaweicloudsdktics/v1/__init__.py +74 -0
  3. huaweicloudsdktics/v1/model/__init__.py +71 -0
  4. huaweicloudsdktics/v1/model/agent_list_vo.py +521 -0
  5. huaweicloudsdktics/v1/model/deploy_vo.py +228 -0
  6. huaweicloudsdktics/v1/model/fl_job_list_vo.py +457 -0
  7. huaweicloudsdktics/v1/model/job_report_base_info_vo.py +256 -0
  8. huaweicloudsdktics/v1/model/job_report_env_vo.py +231 -0
  9. huaweicloudsdktics/v1/model/job_report_output_vo.py +173 -0
  10. huaweicloudsdktics/v1/model/job_report_partner_vo.py +231 -0
  11. huaweicloudsdktics/v1/model/league_dataset_statistics_vo.py +260 -0
  12. huaweicloudsdktics/v1/model/league_partner_statistics_vo.py +318 -0
  13. huaweicloudsdktics/v1/model/league_update_vo.py +173 -0
  14. huaweicloudsdktics/v1/model/list_agents_request.py +200 -0
  15. huaweicloudsdktics/v1/model/list_agents_response.py +145 -0
  16. huaweicloudsdktics/v1/model/list_audit_info_request.py +170 -0
  17. huaweicloudsdktics/v1/model/list_audit_info_response.py +145 -0
  18. huaweicloudsdktics/v1/model/list_fl_job_request.py +170 -0
  19. huaweicloudsdktics/v1/model/list_fl_job_response.py +145 -0
  20. huaweicloudsdktics/v1/model/list_instance_history_request.py +199 -0
  21. huaweicloudsdktics/v1/model/list_instance_history_response.py +145 -0
  22. huaweicloudsdktics/v1/model/list_league_datasets_request.py +228 -0
  23. huaweicloudsdktics/v1/model/list_league_datasets_response.py +145 -0
  24. huaweicloudsdktics/v1/model/list_leagues_request.py +170 -0
  25. huaweicloudsdktics/v1/model/list_leagues_response.py +145 -0
  26. huaweicloudsdktics/v1/model/list_nodes_request.py +170 -0
  27. huaweicloudsdktics/v1/model/list_nodes_response.py +145 -0
  28. huaweicloudsdktics/v1/model/list_notices_request.py +142 -0
  29. huaweicloudsdktics/v1/model/list_notices_response.py +145 -0
  30. huaweicloudsdktics/v1/model/list_partners_request.py +170 -0
  31. huaweicloudsdktics/v1/model/list_partners_response.py +145 -0
  32. huaweicloudsdktics/v1/model/list_sql_job_request.py +170 -0
  33. huaweicloudsdktics/v1/model/list_sql_job_response.py +145 -0
  34. huaweicloudsdktics/v1/model/partner_data_vo.py +289 -0
  35. huaweicloudsdktics/v1/model/processor_vo.py +374 -0
  36. huaweicloudsdktics/v1/model/round_deploy_vo.py +144 -0
  37. huaweicloudsdktics/v1/model/show_agent_detail_request.py +114 -0
  38. huaweicloudsdktics/v1/model/show_agent_detail_response.py +212 -0
  39. huaweicloudsdktics/v1/model/show_dataset_statistics_request.py +172 -0
  40. huaweicloudsdktics/v1/model/show_dataset_statistics_response.py +112 -0
  41. huaweicloudsdktics/v1/model/show_instance_report_request.py +142 -0
  42. huaweicloudsdktics/v1/model/show_instance_report_response.py +220 -0
  43. huaweicloudsdktics/v1/model/show_job_instance_dag_request.py +170 -0
  44. huaweicloudsdktics/v1/model/show_job_instance_dag_response.py +112 -0
  45. huaweicloudsdktics/v1/model/show_job_statistics_request.py +172 -0
  46. huaweicloudsdktics/v1/model/show_job_statistics_response.py +232 -0
  47. huaweicloudsdktics/v1/model/show_league_request.py +114 -0
  48. huaweicloudsdktics/v1/model/show_league_response.py +725 -0
  49. huaweicloudsdktics/v1/model/show_overview_request.py +84 -0
  50. huaweicloudsdktics/v1/model/show_overview_response.py +203 -0
  51. huaweicloudsdktics/v1/model/show_partner_statistics_request.py +172 -0
  52. huaweicloudsdktics/v1/model/show_partner_statistics_response.py +112 -0
  53. huaweicloudsdktics/v1/model/stage_vo.py +201 -0
  54. huaweicloudsdktics/v1/model/tics_agent_deploy.py +724 -0
  55. huaweicloudsdktics/v1/model/tics_agent_deploy_bcs.py +289 -0
  56. huaweicloudsdktics/v1/model/tics_agent_deploy_detail.py +463 -0
  57. huaweicloudsdktics/v1/model/tics_agent_nat_common_info.py +202 -0
  58. huaweicloudsdktics/v1/model/tics_agent_node_info.py +492 -0
  59. huaweicloudsdktics/v1/model/tics_approve_log_vo.py +484 -0
  60. huaweicloudsdktics/v1/model/tics_dataset_column.py +405 -0
  61. huaweicloudsdktics/v1/model/tics_job_instance_vo.py +401 -0
  62. huaweicloudsdktics/v1/model/tics_league_audit_log.py +376 -0
  63. huaweicloudsdktics/v1/model/tics_league_list_vo.py +543 -0
  64. huaweicloudsdktics/v1/model/tics_league_notice_vo.py +430 -0
  65. huaweicloudsdktics/v1/model/tics_league_partner_vo.py +202 -0
  66. huaweicloudsdktics/v1/model/tics_sql_job_vo.py +483 -0
  67. huaweicloudsdktics/v1/model/tics_trust_info_vo.py +347 -0
  68. huaweicloudsdktics/v1/model/update_league_request.py +139 -0
  69. huaweicloudsdktics/v1/model/update_league_response.py +112 -0
  70. huaweicloudsdktics/v1/region/__init__.py +0 -0
  71. huaweicloudsdktics/v1/region/tics_region.py +34 -0
  72. huaweicloudsdktics/v1/tics_async_client.py +1382 -0
  73. huaweicloudsdktics/v1/tics_client.py +1379 -0
  74. huaweicloudsdktics-3.1.160.dist-info/LICENSE +13 -0
  75. huaweicloudsdktics-3.1.160.dist-info/METADATA +26 -0
  76. huaweicloudsdktics-3.1.160.dist-info/RECORD +78 -0
  77. huaweicloudsdktics-3.1.160.dist-info/WHEEL +5 -0
  78. huaweicloudsdktics-3.1.160.dist-info/top_level.txt +1 -0
@@ -0,0 +1,318 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class LeaguePartnerStatisticsVo:
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
+ 'partner_access_cnt': 'int',
21
+ 'partner_domain_alias': 'str',
22
+ 'partner_domain_name': 'str',
23
+ 'partner_job_cnt': 'int',
24
+ 'partner_job_ins_cnt': 'int',
25
+ 'partner_job_ins_fail_cnt': 'int',
26
+ 'partner_job_ins_intercept_cnt': 'int',
27
+ 'partner_job_ins_success_cnt': 'int'
28
+ }
29
+
30
+ attribute_map = {
31
+ 'partner_access_cnt': 'partner_access_cnt',
32
+ 'partner_domain_alias': 'partner_domain_alias',
33
+ 'partner_domain_name': 'partner_domain_name',
34
+ 'partner_job_cnt': 'partner_job_cnt',
35
+ 'partner_job_ins_cnt': 'partner_job_ins_cnt',
36
+ 'partner_job_ins_fail_cnt': 'partner_job_ins_fail_cnt',
37
+ 'partner_job_ins_intercept_cnt': 'partner_job_ins_intercept_cnt',
38
+ 'partner_job_ins_success_cnt': 'partner_job_ins_success_cnt'
39
+ }
40
+
41
+ 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):
42
+ r"""LeaguePartnerStatisticsVo
43
+
44
+ The model defined in huaweicloud sdk
45
+
46
+ :param partner_access_cnt: 合作方访问次数
47
+ :type partner_access_cnt: int
48
+ :param partner_domain_alias: 租户别名
49
+ :type partner_domain_alias: str
50
+ :param partner_domain_name: 租户名
51
+ :type partner_domain_name: str
52
+ :param partner_job_cnt: 作业总数
53
+ :type partner_job_cnt: int
54
+ :param partner_job_ins_cnt: 实例总数
55
+ :type partner_job_ins_cnt: int
56
+ :param partner_job_ins_fail_cnt: 实例失败数
57
+ :type partner_job_ins_fail_cnt: int
58
+ :param partner_job_ins_intercept_cnt: 实例拦截数
59
+ :type partner_job_ins_intercept_cnt: int
60
+ :param partner_job_ins_success_cnt: 实例成功数
61
+ :type partner_job_ins_success_cnt: int
62
+ """
63
+
64
+
65
+
66
+ self._partner_access_cnt = None
67
+ self._partner_domain_alias = None
68
+ self._partner_domain_name = None
69
+ self._partner_job_cnt = None
70
+ self._partner_job_ins_cnt = None
71
+ self._partner_job_ins_fail_cnt = None
72
+ self._partner_job_ins_intercept_cnt = None
73
+ self._partner_job_ins_success_cnt = None
74
+ self.discriminator = None
75
+
76
+ if partner_access_cnt is not None:
77
+ self.partner_access_cnt = partner_access_cnt
78
+ if partner_domain_alias is not None:
79
+ self.partner_domain_alias = partner_domain_alias
80
+ if partner_domain_name is not None:
81
+ self.partner_domain_name = partner_domain_name
82
+ if partner_job_cnt is not None:
83
+ self.partner_job_cnt = partner_job_cnt
84
+ if partner_job_ins_cnt is not None:
85
+ self.partner_job_ins_cnt = partner_job_ins_cnt
86
+ if partner_job_ins_fail_cnt is not None:
87
+ self.partner_job_ins_fail_cnt = partner_job_ins_fail_cnt
88
+ if partner_job_ins_intercept_cnt is not None:
89
+ self.partner_job_ins_intercept_cnt = partner_job_ins_intercept_cnt
90
+ if partner_job_ins_success_cnt is not None:
91
+ self.partner_job_ins_success_cnt = partner_job_ins_success_cnt
92
+
93
+ @property
94
+ def partner_access_cnt(self):
95
+ r"""Gets the partner_access_cnt of this LeaguePartnerStatisticsVo.
96
+
97
+ 合作方访问次数
98
+
99
+ :return: The partner_access_cnt of this LeaguePartnerStatisticsVo.
100
+ :rtype: int
101
+ """
102
+ return self._partner_access_cnt
103
+
104
+ @partner_access_cnt.setter
105
+ def partner_access_cnt(self, partner_access_cnt):
106
+ r"""Sets the partner_access_cnt of this LeaguePartnerStatisticsVo.
107
+
108
+ 合作方访问次数
109
+
110
+ :param partner_access_cnt: The partner_access_cnt of this LeaguePartnerStatisticsVo.
111
+ :type partner_access_cnt: int
112
+ """
113
+ self._partner_access_cnt = partner_access_cnt
114
+
115
+ @property
116
+ def partner_domain_alias(self):
117
+ r"""Gets the partner_domain_alias of this LeaguePartnerStatisticsVo.
118
+
119
+ 租户别名
120
+
121
+ :return: The partner_domain_alias of this LeaguePartnerStatisticsVo.
122
+ :rtype: str
123
+ """
124
+ return self._partner_domain_alias
125
+
126
+ @partner_domain_alias.setter
127
+ def partner_domain_alias(self, partner_domain_alias):
128
+ r"""Sets the partner_domain_alias of this LeaguePartnerStatisticsVo.
129
+
130
+ 租户别名
131
+
132
+ :param partner_domain_alias: The partner_domain_alias of this LeaguePartnerStatisticsVo.
133
+ :type partner_domain_alias: str
134
+ """
135
+ self._partner_domain_alias = partner_domain_alias
136
+
137
+ @property
138
+ def partner_domain_name(self):
139
+ r"""Gets the partner_domain_name of this LeaguePartnerStatisticsVo.
140
+
141
+ 租户名
142
+
143
+ :return: The partner_domain_name of this LeaguePartnerStatisticsVo.
144
+ :rtype: str
145
+ """
146
+ return self._partner_domain_name
147
+
148
+ @partner_domain_name.setter
149
+ def partner_domain_name(self, partner_domain_name):
150
+ r"""Sets the partner_domain_name of this LeaguePartnerStatisticsVo.
151
+
152
+ 租户名
153
+
154
+ :param partner_domain_name: The partner_domain_name of this LeaguePartnerStatisticsVo.
155
+ :type partner_domain_name: str
156
+ """
157
+ self._partner_domain_name = partner_domain_name
158
+
159
+ @property
160
+ def partner_job_cnt(self):
161
+ r"""Gets the partner_job_cnt of this LeaguePartnerStatisticsVo.
162
+
163
+ 作业总数
164
+
165
+ :return: The partner_job_cnt of this LeaguePartnerStatisticsVo.
166
+ :rtype: int
167
+ """
168
+ return self._partner_job_cnt
169
+
170
+ @partner_job_cnt.setter
171
+ def partner_job_cnt(self, partner_job_cnt):
172
+ r"""Sets the partner_job_cnt of this LeaguePartnerStatisticsVo.
173
+
174
+ 作业总数
175
+
176
+ :param partner_job_cnt: The partner_job_cnt of this LeaguePartnerStatisticsVo.
177
+ :type partner_job_cnt: int
178
+ """
179
+ self._partner_job_cnt = partner_job_cnt
180
+
181
+ @property
182
+ def partner_job_ins_cnt(self):
183
+ r"""Gets the partner_job_ins_cnt of this LeaguePartnerStatisticsVo.
184
+
185
+ 实例总数
186
+
187
+ :return: The partner_job_ins_cnt of this LeaguePartnerStatisticsVo.
188
+ :rtype: int
189
+ """
190
+ return self._partner_job_ins_cnt
191
+
192
+ @partner_job_ins_cnt.setter
193
+ def partner_job_ins_cnt(self, partner_job_ins_cnt):
194
+ r"""Sets the partner_job_ins_cnt of this LeaguePartnerStatisticsVo.
195
+
196
+ 实例总数
197
+
198
+ :param partner_job_ins_cnt: The partner_job_ins_cnt of this LeaguePartnerStatisticsVo.
199
+ :type partner_job_ins_cnt: int
200
+ """
201
+ self._partner_job_ins_cnt = partner_job_ins_cnt
202
+
203
+ @property
204
+ def partner_job_ins_fail_cnt(self):
205
+ r"""Gets the partner_job_ins_fail_cnt of this LeaguePartnerStatisticsVo.
206
+
207
+ 实例失败数
208
+
209
+ :return: The partner_job_ins_fail_cnt of this LeaguePartnerStatisticsVo.
210
+ :rtype: int
211
+ """
212
+ return self._partner_job_ins_fail_cnt
213
+
214
+ @partner_job_ins_fail_cnt.setter
215
+ def partner_job_ins_fail_cnt(self, partner_job_ins_fail_cnt):
216
+ r"""Sets the partner_job_ins_fail_cnt of this LeaguePartnerStatisticsVo.
217
+
218
+ 实例失败数
219
+
220
+ :param partner_job_ins_fail_cnt: The partner_job_ins_fail_cnt of this LeaguePartnerStatisticsVo.
221
+ :type partner_job_ins_fail_cnt: int
222
+ """
223
+ self._partner_job_ins_fail_cnt = partner_job_ins_fail_cnt
224
+
225
+ @property
226
+ def partner_job_ins_intercept_cnt(self):
227
+ r"""Gets the partner_job_ins_intercept_cnt of this LeaguePartnerStatisticsVo.
228
+
229
+ 实例拦截数
230
+
231
+ :return: The partner_job_ins_intercept_cnt of this LeaguePartnerStatisticsVo.
232
+ :rtype: int
233
+ """
234
+ return self._partner_job_ins_intercept_cnt
235
+
236
+ @partner_job_ins_intercept_cnt.setter
237
+ def partner_job_ins_intercept_cnt(self, partner_job_ins_intercept_cnt):
238
+ r"""Sets the partner_job_ins_intercept_cnt of this LeaguePartnerStatisticsVo.
239
+
240
+ 实例拦截数
241
+
242
+ :param partner_job_ins_intercept_cnt: The partner_job_ins_intercept_cnt of this LeaguePartnerStatisticsVo.
243
+ :type partner_job_ins_intercept_cnt: int
244
+ """
245
+ self._partner_job_ins_intercept_cnt = partner_job_ins_intercept_cnt
246
+
247
+ @property
248
+ def partner_job_ins_success_cnt(self):
249
+ r"""Gets the partner_job_ins_success_cnt of this LeaguePartnerStatisticsVo.
250
+
251
+ 实例成功数
252
+
253
+ :return: The partner_job_ins_success_cnt of this LeaguePartnerStatisticsVo.
254
+ :rtype: int
255
+ """
256
+ return self._partner_job_ins_success_cnt
257
+
258
+ @partner_job_ins_success_cnt.setter
259
+ def partner_job_ins_success_cnt(self, partner_job_ins_success_cnt):
260
+ r"""Sets the partner_job_ins_success_cnt of this LeaguePartnerStatisticsVo.
261
+
262
+ 实例成功数
263
+
264
+ :param partner_job_ins_success_cnt: The partner_job_ins_success_cnt of this LeaguePartnerStatisticsVo.
265
+ :type partner_job_ins_success_cnt: int
266
+ """
267
+ self._partner_job_ins_success_cnt = partner_job_ins_success_cnt
268
+
269
+ def to_dict(self):
270
+ """Returns the model properties as a dict"""
271
+ result = {}
272
+
273
+ for attr, _ in six.iteritems(self.openapi_types):
274
+ value = getattr(self, attr)
275
+ if isinstance(value, list):
276
+ result[attr] = list(map(
277
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
278
+ value
279
+ ))
280
+ elif hasattr(value, "to_dict"):
281
+ result[attr] = value.to_dict()
282
+ elif isinstance(value, dict):
283
+ result[attr] = dict(map(
284
+ lambda item: (item[0], item[1].to_dict())
285
+ if hasattr(item[1], "to_dict") else item,
286
+ value.items()
287
+ ))
288
+ else:
289
+ if attr in self.sensitive_list:
290
+ result[attr] = "****"
291
+ else:
292
+ result[attr] = value
293
+
294
+ return result
295
+
296
+ def to_str(self):
297
+ """Returns the string representation of the model"""
298
+ import simplejson as json
299
+ if six.PY2:
300
+ import sys
301
+ reload(sys)
302
+ sys.setdefaultencoding("utf-8")
303
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
304
+
305
+ def __repr__(self):
306
+ """For `print`"""
307
+ return self.to_str()
308
+
309
+ def __eq__(self, other):
310
+ """Returns true if both objects are equal"""
311
+ if not isinstance(other, LeaguePartnerStatisticsVo):
312
+ return False
313
+
314
+ return self.__dict__ == other.__dict__
315
+
316
+ def __ne__(self, other):
317
+ """Returns true if both objects are not equal"""
318
+ return not self == other
@@ -0,0 +1,173 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class LeagueUpdateVo:
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
+ 'description': 'str',
21
+ 'dp_enabled': 'bool',
22
+ 'privacy_protection_type': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'description': 'description',
27
+ 'dp_enabled': 'dp_enabled',
28
+ 'privacy_protection_type': 'privacy_protection_type'
29
+ }
30
+
31
+ def __init__(self, description=None, dp_enabled=None, privacy_protection_type=None):
32
+ r"""LeagueUpdateVo
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param description: 描述
37
+ :type description: str
38
+ :param dp_enabled: 差分隐私开关
39
+ :type dp_enabled: bool
40
+ :param privacy_protection_type: 隐私保护类别,HIGH.高,STANDARD.标准
41
+ :type privacy_protection_type: str
42
+ """
43
+
44
+
45
+
46
+ self._description = None
47
+ self._dp_enabled = None
48
+ self._privacy_protection_type = None
49
+ self.discriminator = None
50
+
51
+ if description is not None:
52
+ self.description = description
53
+ if dp_enabled is not None:
54
+ self.dp_enabled = dp_enabled
55
+ if privacy_protection_type is not None:
56
+ self.privacy_protection_type = privacy_protection_type
57
+
58
+ @property
59
+ def description(self):
60
+ r"""Gets the description of this LeagueUpdateVo.
61
+
62
+ 描述
63
+
64
+ :return: The description of this LeagueUpdateVo.
65
+ :rtype: str
66
+ """
67
+ return self._description
68
+
69
+ @description.setter
70
+ def description(self, description):
71
+ r"""Sets the description of this LeagueUpdateVo.
72
+
73
+ 描述
74
+
75
+ :param description: The description of this LeagueUpdateVo.
76
+ :type description: str
77
+ """
78
+ self._description = description
79
+
80
+ @property
81
+ def dp_enabled(self):
82
+ r"""Gets the dp_enabled of this LeagueUpdateVo.
83
+
84
+ 差分隐私开关
85
+
86
+ :return: The dp_enabled of this LeagueUpdateVo.
87
+ :rtype: bool
88
+ """
89
+ return self._dp_enabled
90
+
91
+ @dp_enabled.setter
92
+ def dp_enabled(self, dp_enabled):
93
+ r"""Sets the dp_enabled of this LeagueUpdateVo.
94
+
95
+ 差分隐私开关
96
+
97
+ :param dp_enabled: The dp_enabled of this LeagueUpdateVo.
98
+ :type dp_enabled: bool
99
+ """
100
+ self._dp_enabled = dp_enabled
101
+
102
+ @property
103
+ def privacy_protection_type(self):
104
+ r"""Gets the privacy_protection_type of this LeagueUpdateVo.
105
+
106
+ 隐私保护类别,HIGH.高,STANDARD.标准
107
+
108
+ :return: The privacy_protection_type of this LeagueUpdateVo.
109
+ :rtype: str
110
+ """
111
+ return self._privacy_protection_type
112
+
113
+ @privacy_protection_type.setter
114
+ def privacy_protection_type(self, privacy_protection_type):
115
+ r"""Sets the privacy_protection_type of this LeagueUpdateVo.
116
+
117
+ 隐私保护类别,HIGH.高,STANDARD.标准
118
+
119
+ :param privacy_protection_type: The privacy_protection_type of this LeagueUpdateVo.
120
+ :type privacy_protection_type: str
121
+ """
122
+ self._privacy_protection_type = privacy_protection_type
123
+
124
+ def to_dict(self):
125
+ """Returns the model properties as a dict"""
126
+ result = {}
127
+
128
+ for attr, _ in six.iteritems(self.openapi_types):
129
+ value = getattr(self, attr)
130
+ if isinstance(value, list):
131
+ result[attr] = list(map(
132
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
133
+ value
134
+ ))
135
+ elif hasattr(value, "to_dict"):
136
+ result[attr] = value.to_dict()
137
+ elif isinstance(value, dict):
138
+ result[attr] = dict(map(
139
+ lambda item: (item[0], item[1].to_dict())
140
+ if hasattr(item[1], "to_dict") else item,
141
+ value.items()
142
+ ))
143
+ else:
144
+ if attr in self.sensitive_list:
145
+ result[attr] = "****"
146
+ else:
147
+ result[attr] = value
148
+
149
+ return result
150
+
151
+ def to_str(self):
152
+ """Returns the string representation of the model"""
153
+ import simplejson as json
154
+ if six.PY2:
155
+ import sys
156
+ reload(sys)
157
+ sys.setdefaultencoding("utf-8")
158
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
159
+
160
+ def __repr__(self):
161
+ """For `print`"""
162
+ return self.to_str()
163
+
164
+ def __eq__(self, other):
165
+ """Returns true if both objects are equal"""
166
+ if not isinstance(other, LeagueUpdateVo):
167
+ return False
168
+
169
+ return self.__dict__ == other.__dict__
170
+
171
+ def __ne__(self, other):
172
+ """Returns true if both objects are not equal"""
173
+ return not self == other
@@ -0,0 +1,200 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListAgentsRequest:
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
+ 'limit': 'int',
21
+ 'offset': 'int',
22
+ 'agent_name': 'str',
23
+ 'league_name': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'limit': 'limit',
28
+ 'offset': 'offset',
29
+ 'agent_name': 'agent_name',
30
+ 'league_name': 'league_name'
31
+ }
32
+
33
+ def __init__(self, limit=None, offset=None, agent_name=None, league_name=None):
34
+ r"""ListAgentsRequest
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param limit: 每页记录数,取值0-100
39
+ :type limit: int
40
+ :param offset: 记录数偏移量
41
+ :type offset: int
42
+ :param agent_name: 可信节点名称
43
+ :type agent_name: str
44
+ :param league_name: 联盟名称
45
+ :type league_name: str
46
+ """
47
+
48
+
49
+
50
+ self._limit = None
51
+ self._offset = None
52
+ self._agent_name = None
53
+ self._league_name = None
54
+ self.discriminator = None
55
+
56
+ self.limit = limit
57
+ self.offset = offset
58
+ if agent_name is not None:
59
+ self.agent_name = agent_name
60
+ if league_name is not None:
61
+ self.league_name = league_name
62
+
63
+ @property
64
+ def limit(self):
65
+ r"""Gets the limit of this ListAgentsRequest.
66
+
67
+ 每页记录数,取值0-100
68
+
69
+ :return: The limit of this ListAgentsRequest.
70
+ :rtype: int
71
+ """
72
+ return self._limit
73
+
74
+ @limit.setter
75
+ def limit(self, limit):
76
+ r"""Sets the limit of this ListAgentsRequest.
77
+
78
+ 每页记录数,取值0-100
79
+
80
+ :param limit: The limit of this ListAgentsRequest.
81
+ :type limit: int
82
+ """
83
+ self._limit = limit
84
+
85
+ @property
86
+ def offset(self):
87
+ r"""Gets the offset of this ListAgentsRequest.
88
+
89
+ 记录数偏移量
90
+
91
+ :return: The offset of this ListAgentsRequest.
92
+ :rtype: int
93
+ """
94
+ return self._offset
95
+
96
+ @offset.setter
97
+ def offset(self, offset):
98
+ r"""Sets the offset of this ListAgentsRequest.
99
+
100
+ 记录数偏移量
101
+
102
+ :param offset: The offset of this ListAgentsRequest.
103
+ :type offset: int
104
+ """
105
+ self._offset = offset
106
+
107
+ @property
108
+ def agent_name(self):
109
+ r"""Gets the agent_name of this ListAgentsRequest.
110
+
111
+ 可信节点名称
112
+
113
+ :return: The agent_name of this ListAgentsRequest.
114
+ :rtype: str
115
+ """
116
+ return self._agent_name
117
+
118
+ @agent_name.setter
119
+ def agent_name(self, agent_name):
120
+ r"""Sets the agent_name of this ListAgentsRequest.
121
+
122
+ 可信节点名称
123
+
124
+ :param agent_name: The agent_name of this ListAgentsRequest.
125
+ :type agent_name: str
126
+ """
127
+ self._agent_name = agent_name
128
+
129
+ @property
130
+ def league_name(self):
131
+ r"""Gets the league_name of this ListAgentsRequest.
132
+
133
+ 联盟名称
134
+
135
+ :return: The league_name of this ListAgentsRequest.
136
+ :rtype: str
137
+ """
138
+ return self._league_name
139
+
140
+ @league_name.setter
141
+ def league_name(self, league_name):
142
+ r"""Sets the league_name of this ListAgentsRequest.
143
+
144
+ 联盟名称
145
+
146
+ :param league_name: The league_name of this ListAgentsRequest.
147
+ :type league_name: str
148
+ """
149
+ self._league_name = league_name
150
+
151
+ def to_dict(self):
152
+ """Returns the model properties as a dict"""
153
+ result = {}
154
+
155
+ for attr, _ in six.iteritems(self.openapi_types):
156
+ value = getattr(self, attr)
157
+ if isinstance(value, list):
158
+ result[attr] = list(map(
159
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
160
+ value
161
+ ))
162
+ elif hasattr(value, "to_dict"):
163
+ result[attr] = value.to_dict()
164
+ elif isinstance(value, dict):
165
+ result[attr] = dict(map(
166
+ lambda item: (item[0], item[1].to_dict())
167
+ if hasattr(item[1], "to_dict") else item,
168
+ value.items()
169
+ ))
170
+ else:
171
+ if attr in self.sensitive_list:
172
+ result[attr] = "****"
173
+ else:
174
+ result[attr] = value
175
+
176
+ return result
177
+
178
+ def to_str(self):
179
+ """Returns the string representation of the model"""
180
+ import simplejson as json
181
+ if six.PY2:
182
+ import sys
183
+ reload(sys)
184
+ sys.setdefaultencoding("utf-8")
185
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
186
+
187
+ def __repr__(self):
188
+ """For `print`"""
189
+ return self.to_str()
190
+
191
+ def __eq__(self, other):
192
+ """Returns true if both objects are equal"""
193
+ if not isinstance(other, ListAgentsRequest):
194
+ return False
195
+
196
+ return self.__dict__ == other.__dict__
197
+
198
+ def __ne__(self, other):
199
+ """Returns true if both objects are not equal"""
200
+ return not self == other