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.
Files changed (77) 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 +514 -0
  5. huaweicloudsdktics/v1/model/deploy_vo.py +221 -0
  6. huaweicloudsdktics/v1/model/fl_job_list_vo.py +450 -0
  7. huaweicloudsdktics/v1/model/job_report_base_info_vo.py +249 -0
  8. huaweicloudsdktics/v1/model/job_report_env_vo.py +224 -0
  9. huaweicloudsdktics/v1/model/job_report_output_vo.py +166 -0
  10. huaweicloudsdktics/v1/model/job_report_partner_vo.py +224 -0
  11. huaweicloudsdktics/v1/model/league_dataset_statistics_vo.py +253 -0
  12. huaweicloudsdktics/v1/model/league_partner_statistics_vo.py +311 -0
  13. huaweicloudsdktics/v1/model/league_update_vo.py +166 -0
  14. huaweicloudsdktics/v1/model/list_agents_request.py +193 -0
  15. huaweicloudsdktics/v1/model/list_agents_response.py +141 -0
  16. huaweicloudsdktics/v1/model/list_audit_info_request.py +163 -0
  17. huaweicloudsdktics/v1/model/list_audit_info_response.py +141 -0
  18. huaweicloudsdktics/v1/model/list_fl_job_request.py +163 -0
  19. huaweicloudsdktics/v1/model/list_fl_job_response.py +141 -0
  20. huaweicloudsdktics/v1/model/list_instance_history_request.py +192 -0
  21. huaweicloudsdktics/v1/model/list_instance_history_response.py +141 -0
  22. huaweicloudsdktics/v1/model/list_league_datasets_request.py +221 -0
  23. huaweicloudsdktics/v1/model/list_league_datasets_response.py +141 -0
  24. huaweicloudsdktics/v1/model/list_leagues_request.py +163 -0
  25. huaweicloudsdktics/v1/model/list_leagues_response.py +141 -0
  26. huaweicloudsdktics/v1/model/list_nodes_request.py +163 -0
  27. huaweicloudsdktics/v1/model/list_nodes_response.py +141 -0
  28. huaweicloudsdktics/v1/model/list_notices_request.py +135 -0
  29. huaweicloudsdktics/v1/model/list_notices_response.py +141 -0
  30. huaweicloudsdktics/v1/model/list_partners_request.py +163 -0
  31. huaweicloudsdktics/v1/model/list_partners_response.py +141 -0
  32. huaweicloudsdktics/v1/model/list_sql_job_request.py +163 -0
  33. huaweicloudsdktics/v1/model/list_sql_job_response.py +141 -0
  34. huaweicloudsdktics/v1/model/partner_data_vo.py +282 -0
  35. huaweicloudsdktics/v1/model/processor_vo.py +367 -0
  36. huaweicloudsdktics/v1/model/round_deploy_vo.py +137 -0
  37. huaweicloudsdktics/v1/model/show_agent_detail_request.py +107 -0
  38. huaweicloudsdktics/v1/model/show_agent_detail_response.py +208 -0
  39. huaweicloudsdktics/v1/model/show_dataset_statistics_request.py +165 -0
  40. huaweicloudsdktics/v1/model/show_dataset_statistics_response.py +108 -0
  41. huaweicloudsdktics/v1/model/show_instance_report_request.py +135 -0
  42. huaweicloudsdktics/v1/model/show_instance_report_response.py +216 -0
  43. huaweicloudsdktics/v1/model/show_job_instance_dag_request.py +163 -0
  44. huaweicloudsdktics/v1/model/show_job_instance_dag_response.py +108 -0
  45. huaweicloudsdktics/v1/model/show_job_statistics_request.py +165 -0
  46. huaweicloudsdktics/v1/model/show_job_statistics_response.py +228 -0
  47. huaweicloudsdktics/v1/model/show_league_request.py +107 -0
  48. huaweicloudsdktics/v1/model/show_league_response.py +721 -0
  49. huaweicloudsdktics/v1/model/show_overview_request.py +77 -0
  50. huaweicloudsdktics/v1/model/show_overview_response.py +199 -0
  51. huaweicloudsdktics/v1/model/show_partner_statistics_request.py +165 -0
  52. huaweicloudsdktics/v1/model/show_partner_statistics_response.py +108 -0
  53. huaweicloudsdktics/v1/model/stage_vo.py +194 -0
  54. huaweicloudsdktics/v1/model/tics_agent_deploy.py +717 -0
  55. huaweicloudsdktics/v1/model/tics_agent_deploy_bcs.py +282 -0
  56. huaweicloudsdktics/v1/model/tics_agent_deploy_detail.py +456 -0
  57. huaweicloudsdktics/v1/model/tics_agent_nat_common_info.py +195 -0
  58. huaweicloudsdktics/v1/model/tics_agent_node_info.py +485 -0
  59. huaweicloudsdktics/v1/model/tics_approve_log_vo.py +477 -0
  60. huaweicloudsdktics/v1/model/tics_dataset_column.py +398 -0
  61. huaweicloudsdktics/v1/model/tics_job_instance_vo.py +394 -0
  62. huaweicloudsdktics/v1/model/tics_league_audit_log.py +369 -0
  63. huaweicloudsdktics/v1/model/tics_league_list_vo.py +536 -0
  64. huaweicloudsdktics/v1/model/tics_league_notice_vo.py +423 -0
  65. huaweicloudsdktics/v1/model/tics_league_partner_vo.py +195 -0
  66. huaweicloudsdktics/v1/model/tics_sql_job_vo.py +476 -0
  67. huaweicloudsdktics/v1/model/tics_trust_info_vo.py +340 -0
  68. huaweicloudsdktics/v1/model/update_league_request.py +132 -0
  69. huaweicloudsdktics/v1/model/update_league_response.py +108 -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.181.dist-info/METADATA +25 -0
  75. huaweicloudsdktics-3.1.181.dist-info/RECORD +77 -0
  76. huaweicloudsdktics-3.1.181.dist-info/WHEEL +4 -0
  77. huaweicloudsdktics-3.1.181.dist-info/licenses/LICENSE +13 -0
@@ -0,0 +1,108 @@
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 ShowJobInstanceDagResponse(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
+ 'body': 'list[DeployVo]'
20
+ }
21
+
22
+ attribute_map = {
23
+ 'body': 'body'
24
+ }
25
+
26
+ def __init__(self, body=None):
27
+ r"""ShowJobInstanceDagResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ :param body:
32
+ :type body: list[:class:`huaweicloudsdktics.v1.DeployVo`]
33
+ """
34
+
35
+ super().__init__()
36
+
37
+ self._body = None
38
+ self.discriminator = None
39
+
40
+ if body is not None:
41
+ self.body = body
42
+
43
+ @property
44
+ def body(self):
45
+ r"""Gets the body of this ShowJobInstanceDagResponse.
46
+
47
+ :return: The body of this ShowJobInstanceDagResponse.
48
+ :rtype: list[:class:`huaweicloudsdktics.v1.DeployVo`]
49
+ """
50
+ return self._body
51
+
52
+ @body.setter
53
+ def body(self, body):
54
+ r"""Sets the body of this ShowJobInstanceDagResponse.
55
+
56
+ :param body: The body of this ShowJobInstanceDagResponse.
57
+ :type body: list[:class:`huaweicloudsdktics.v1.DeployVo`]
58
+ """
59
+ self._body = body
60
+
61
+ def to_dict(self):
62
+ import warnings
63
+ warnings.warn("ShowJobInstanceDagResponse.to_dict() is deprecated and no longer maintained, "
64
+ "use to_json_object() to get the response content.", DeprecationWarning)
65
+ result = {}
66
+
67
+ for attr, _ in self.openapi_types.items():
68
+ value = getattr(self, attr)
69
+ if isinstance(value, list):
70
+ result[attr] = list(map(
71
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
72
+ value
73
+ ))
74
+ elif hasattr(value, "to_dict"):
75
+ result[attr] = value.to_dict()
76
+ elif isinstance(value, dict):
77
+ result[attr] = dict(map(
78
+ lambda item: (item[0], item[1].to_dict())
79
+ if hasattr(item[1], "to_dict") else item,
80
+ value.items()
81
+ ))
82
+ else:
83
+ if attr in self.sensitive_list:
84
+ result[attr] = "****"
85
+ else:
86
+ result[attr] = value
87
+
88
+ return result
89
+
90
+ def to_str(self):
91
+ """Returns the string representation of the model"""
92
+ import simplejson as json
93
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
94
+
95
+ def __repr__(self):
96
+ """For `print`"""
97
+ return self.to_str()
98
+
99
+ def __eq__(self, other):
100
+ """Returns true if both objects are equal"""
101
+ if not isinstance(other, ShowJobInstanceDagResponse):
102
+ return False
103
+
104
+ return self.__dict__ == other.__dict__
105
+
106
+ def __ne__(self, other):
107
+ """Returns true if both objects are not equal"""
108
+ return not self == other
@@ -0,0 +1,165 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class ShowJobStatisticsRequest:
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
+ 'start_date': 'str',
20
+ 'end_date': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'league_id': 'league_id',
25
+ 'start_date': 'start_date',
26
+ 'end_date': 'end_date'
27
+ }
28
+
29
+ def __init__(self, league_id=None, start_date=None, end_date=None):
30
+ r"""ShowJobStatisticsRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param league_id: 联盟id,最大32位,字母和数字组成
35
+ :type league_id: str
36
+ :param start_date: 开始日期
37
+ :type start_date: str
38
+ :param end_date: 结束日期
39
+ :type end_date: str
40
+ """
41
+
42
+
43
+
44
+ self._league_id = None
45
+ self._start_date = None
46
+ self._end_date = None
47
+ self.discriminator = None
48
+
49
+ self.league_id = league_id
50
+ if start_date is not None:
51
+ self.start_date = start_date
52
+ if end_date is not None:
53
+ self.end_date = end_date
54
+
55
+ @property
56
+ def league_id(self):
57
+ r"""Gets the league_id of this ShowJobStatisticsRequest.
58
+
59
+ 联盟id,最大32位,字母和数字组成
60
+
61
+ :return: The league_id of this ShowJobStatisticsRequest.
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 ShowJobStatisticsRequest.
69
+
70
+ 联盟id,最大32位,字母和数字组成
71
+
72
+ :param league_id: The league_id of this ShowJobStatisticsRequest.
73
+ :type league_id: str
74
+ """
75
+ self._league_id = league_id
76
+
77
+ @property
78
+ def start_date(self):
79
+ r"""Gets the start_date of this ShowJobStatisticsRequest.
80
+
81
+ 开始日期
82
+
83
+ :return: The start_date of this ShowJobStatisticsRequest.
84
+ :rtype: str
85
+ """
86
+ return self._start_date
87
+
88
+ @start_date.setter
89
+ def start_date(self, start_date):
90
+ r"""Sets the start_date of this ShowJobStatisticsRequest.
91
+
92
+ 开始日期
93
+
94
+ :param start_date: The start_date of this ShowJobStatisticsRequest.
95
+ :type start_date: str
96
+ """
97
+ self._start_date = start_date
98
+
99
+ @property
100
+ def end_date(self):
101
+ r"""Gets the end_date of this ShowJobStatisticsRequest.
102
+
103
+ 结束日期
104
+
105
+ :return: The end_date of this ShowJobStatisticsRequest.
106
+ :rtype: str
107
+ """
108
+ return self._end_date
109
+
110
+ @end_date.setter
111
+ def end_date(self, end_date):
112
+ r"""Sets the end_date of this ShowJobStatisticsRequest.
113
+
114
+ 结束日期
115
+
116
+ :param end_date: The end_date of this ShowJobStatisticsRequest.
117
+ :type end_date: str
118
+ """
119
+ self._end_date = end_date
120
+
121
+ def to_dict(self):
122
+ result = {}
123
+
124
+ for attr, _ in self.openapi_types.items():
125
+ value = getattr(self, attr)
126
+ if isinstance(value, list):
127
+ result[attr] = list(map(
128
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
129
+ value
130
+ ))
131
+ elif hasattr(value, "to_dict"):
132
+ result[attr] = value.to_dict()
133
+ elif isinstance(value, dict):
134
+ result[attr] = dict(map(
135
+ lambda item: (item[0], item[1].to_dict())
136
+ if hasattr(item[1], "to_dict") else item,
137
+ value.items()
138
+ ))
139
+ else:
140
+ if attr in self.sensitive_list:
141
+ result[attr] = "****"
142
+ else:
143
+ result[attr] = value
144
+
145
+ return result
146
+
147
+ def to_str(self):
148
+ """Returns the string representation of the model"""
149
+ import simplejson as json
150
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
151
+
152
+ def __repr__(self):
153
+ """For `print`"""
154
+ return self.to_str()
155
+
156
+ def __eq__(self, other):
157
+ """Returns true if both objects are equal"""
158
+ if not isinstance(other, ShowJobStatisticsRequest):
159
+ return False
160
+
161
+ return self.__dict__ == other.__dict__
162
+
163
+ def __ne__(self, other):
164
+ """Returns true if both objects are not equal"""
165
+ return not self == other
@@ -0,0 +1,228 @@
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 ShowJobStatisticsResponse(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
+ 'job_cnt': 'int',
20
+ 'job_ins_cnt': 'int',
21
+ 'job_ins_fail_cnt': 'int',
22
+ 'job_ins_intercept_cnt': 'int',
23
+ 'job_ins_success_cnt': 'int'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'job_cnt': 'job_cnt',
28
+ 'job_ins_cnt': 'job_ins_cnt',
29
+ 'job_ins_fail_cnt': 'job_ins_fail_cnt',
30
+ 'job_ins_intercept_cnt': 'job_ins_intercept_cnt',
31
+ 'job_ins_success_cnt': 'job_ins_success_cnt'
32
+ }
33
+
34
+ def __init__(self, job_cnt=None, job_ins_cnt=None, job_ins_fail_cnt=None, job_ins_intercept_cnt=None, job_ins_success_cnt=None):
35
+ r"""ShowJobStatisticsResponse
36
+
37
+ The model defined in huaweicloud sdk
38
+
39
+ :param job_cnt: 作业数量统计
40
+ :type job_cnt: int
41
+ :param job_ins_cnt: 作业实例次数
42
+ :type job_ins_cnt: int
43
+ :param job_ins_fail_cnt: 作业实例失败次数
44
+ :type job_ins_fail_cnt: int
45
+ :param job_ins_intercept_cnt: 作业实例拦截次数
46
+ :type job_ins_intercept_cnt: int
47
+ :param job_ins_success_cnt: 作业实例成功次数
48
+ :type job_ins_success_cnt: int
49
+ """
50
+
51
+ super().__init__()
52
+
53
+ self._job_cnt = None
54
+ self._job_ins_cnt = None
55
+ self._job_ins_fail_cnt = None
56
+ self._job_ins_intercept_cnt = None
57
+ self._job_ins_success_cnt = None
58
+ self.discriminator = None
59
+
60
+ if job_cnt is not None:
61
+ self.job_cnt = job_cnt
62
+ if job_ins_cnt is not None:
63
+ self.job_ins_cnt = job_ins_cnt
64
+ if job_ins_fail_cnt is not None:
65
+ self.job_ins_fail_cnt = job_ins_fail_cnt
66
+ if job_ins_intercept_cnt is not None:
67
+ self.job_ins_intercept_cnt = job_ins_intercept_cnt
68
+ if job_ins_success_cnt is not None:
69
+ self.job_ins_success_cnt = job_ins_success_cnt
70
+
71
+ @property
72
+ def job_cnt(self):
73
+ r"""Gets the job_cnt of this ShowJobStatisticsResponse.
74
+
75
+ 作业数量统计
76
+
77
+ :return: The job_cnt of this ShowJobStatisticsResponse.
78
+ :rtype: int
79
+ """
80
+ return self._job_cnt
81
+
82
+ @job_cnt.setter
83
+ def job_cnt(self, job_cnt):
84
+ r"""Sets the job_cnt of this ShowJobStatisticsResponse.
85
+
86
+ 作业数量统计
87
+
88
+ :param job_cnt: The job_cnt of this ShowJobStatisticsResponse.
89
+ :type job_cnt: int
90
+ """
91
+ self._job_cnt = job_cnt
92
+
93
+ @property
94
+ def job_ins_cnt(self):
95
+ r"""Gets the job_ins_cnt of this ShowJobStatisticsResponse.
96
+
97
+ 作业实例次数
98
+
99
+ :return: The job_ins_cnt of this ShowJobStatisticsResponse.
100
+ :rtype: int
101
+ """
102
+ return self._job_ins_cnt
103
+
104
+ @job_ins_cnt.setter
105
+ def job_ins_cnt(self, job_ins_cnt):
106
+ r"""Sets the job_ins_cnt of this ShowJobStatisticsResponse.
107
+
108
+ 作业实例次数
109
+
110
+ :param job_ins_cnt: The job_ins_cnt of this ShowJobStatisticsResponse.
111
+ :type job_ins_cnt: int
112
+ """
113
+ self._job_ins_cnt = job_ins_cnt
114
+
115
+ @property
116
+ def job_ins_fail_cnt(self):
117
+ r"""Gets the job_ins_fail_cnt of this ShowJobStatisticsResponse.
118
+
119
+ 作业实例失败次数
120
+
121
+ :return: The job_ins_fail_cnt of this ShowJobStatisticsResponse.
122
+ :rtype: int
123
+ """
124
+ return self._job_ins_fail_cnt
125
+
126
+ @job_ins_fail_cnt.setter
127
+ def job_ins_fail_cnt(self, job_ins_fail_cnt):
128
+ r"""Sets the job_ins_fail_cnt of this ShowJobStatisticsResponse.
129
+
130
+ 作业实例失败次数
131
+
132
+ :param job_ins_fail_cnt: The job_ins_fail_cnt of this ShowJobStatisticsResponse.
133
+ :type job_ins_fail_cnt: int
134
+ """
135
+ self._job_ins_fail_cnt = job_ins_fail_cnt
136
+
137
+ @property
138
+ def job_ins_intercept_cnt(self):
139
+ r"""Gets the job_ins_intercept_cnt of this ShowJobStatisticsResponse.
140
+
141
+ 作业实例拦截次数
142
+
143
+ :return: The job_ins_intercept_cnt of this ShowJobStatisticsResponse.
144
+ :rtype: int
145
+ """
146
+ return self._job_ins_intercept_cnt
147
+
148
+ @job_ins_intercept_cnt.setter
149
+ def job_ins_intercept_cnt(self, job_ins_intercept_cnt):
150
+ r"""Sets the job_ins_intercept_cnt of this ShowJobStatisticsResponse.
151
+
152
+ 作业实例拦截次数
153
+
154
+ :param job_ins_intercept_cnt: The job_ins_intercept_cnt of this ShowJobStatisticsResponse.
155
+ :type job_ins_intercept_cnt: int
156
+ """
157
+ self._job_ins_intercept_cnt = job_ins_intercept_cnt
158
+
159
+ @property
160
+ def job_ins_success_cnt(self):
161
+ r"""Gets the job_ins_success_cnt of this ShowJobStatisticsResponse.
162
+
163
+ 作业实例成功次数
164
+
165
+ :return: The job_ins_success_cnt of this ShowJobStatisticsResponse.
166
+ :rtype: int
167
+ """
168
+ return self._job_ins_success_cnt
169
+
170
+ @job_ins_success_cnt.setter
171
+ def job_ins_success_cnt(self, job_ins_success_cnt):
172
+ r"""Sets the job_ins_success_cnt of this ShowJobStatisticsResponse.
173
+
174
+ 作业实例成功次数
175
+
176
+ :param job_ins_success_cnt: The job_ins_success_cnt of this ShowJobStatisticsResponse.
177
+ :type job_ins_success_cnt: int
178
+ """
179
+ self._job_ins_success_cnt = job_ins_success_cnt
180
+
181
+ def to_dict(self):
182
+ import warnings
183
+ warnings.warn("ShowJobStatisticsResponse.to_dict() is deprecated and no longer maintained, "
184
+ "use to_json_object() to get the response content.", DeprecationWarning)
185
+ result = {}
186
+
187
+ for attr, _ in self.openapi_types.items():
188
+ value = getattr(self, attr)
189
+ if isinstance(value, list):
190
+ result[attr] = list(map(
191
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
192
+ value
193
+ ))
194
+ elif hasattr(value, "to_dict"):
195
+ result[attr] = value.to_dict()
196
+ elif isinstance(value, dict):
197
+ result[attr] = dict(map(
198
+ lambda item: (item[0], item[1].to_dict())
199
+ if hasattr(item[1], "to_dict") else item,
200
+ value.items()
201
+ ))
202
+ else:
203
+ if attr in self.sensitive_list:
204
+ result[attr] = "****"
205
+ else:
206
+ result[attr] = value
207
+
208
+ return result
209
+
210
+ def to_str(self):
211
+ """Returns the string representation of the model"""
212
+ import simplejson as json
213
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
214
+
215
+ def __repr__(self):
216
+ """For `print`"""
217
+ return self.to_str()
218
+
219
+ def __eq__(self, other):
220
+ """Returns true if both objects are equal"""
221
+ if not isinstance(other, ShowJobStatisticsResponse):
222
+ return False
223
+
224
+ return self.__dict__ == other.__dict__
225
+
226
+ def __ne__(self, other):
227
+ """Returns true if both objects are not equal"""
228
+ return not self == other
@@ -0,0 +1,107 @@
1
+ # coding: utf-8
2
+
3
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
4
+
5
+
6
+ class ShowLeagueRequest:
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
+ }
20
+
21
+ attribute_map = {
22
+ 'league_id': 'league_id'
23
+ }
24
+
25
+ def __init__(self, league_id=None):
26
+ r"""ShowLeagueRequest
27
+
28
+ The model defined in huaweicloud sdk
29
+
30
+ :param league_id: 联盟id,最大32位,字母和数字组成
31
+ :type league_id: str
32
+ """
33
+
34
+
35
+
36
+ self._league_id = None
37
+ self.discriminator = None
38
+
39
+ self.league_id = league_id
40
+
41
+ @property
42
+ def league_id(self):
43
+ r"""Gets the league_id of this ShowLeagueRequest.
44
+
45
+ 联盟id,最大32位,字母和数字组成
46
+
47
+ :return: The league_id of this ShowLeagueRequest.
48
+ :rtype: str
49
+ """
50
+ return self._league_id
51
+
52
+ @league_id.setter
53
+ def league_id(self, league_id):
54
+ r"""Sets the league_id of this ShowLeagueRequest.
55
+
56
+ 联盟id,最大32位,字母和数字组成
57
+
58
+ :param league_id: The league_id of this ShowLeagueRequest.
59
+ :type league_id: str
60
+ """
61
+ self._league_id = league_id
62
+
63
+ def to_dict(self):
64
+ result = {}
65
+
66
+ for attr, _ in self.openapi_types.items():
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
93
+
94
+ def __repr__(self):
95
+ """For `print`"""
96
+ return self.to_str()
97
+
98
+ def __eq__(self, other):
99
+ """Returns true if both objects are equal"""
100
+ if not isinstance(other, ShowLeagueRequest):
101
+ return False
102
+
103
+ return self.__dict__ == other.__dict__
104
+
105
+ def __ne__(self, other):
106
+ """Returns true if both objects are not equal"""
107
+ return not self == other