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