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