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,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 ListAgentsResponse(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[AgentListVo]',
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"""ListAgentsResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param lists: 实例集合
36
+ :type lists: list[:class:`huaweicloudsdktics.v1.AgentListVo`]
37
+ :param total: 总记录数
38
+ :type total: int
39
+ """
40
+
41
+ super(ListAgentsResponse, 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 ListAgentsResponse.
55
+
56
+ 实例集合
57
+
58
+ :return: The lists of this ListAgentsResponse.
59
+ :rtype: list[:class:`huaweicloudsdktics.v1.AgentListVo`]
60
+ """
61
+ return self._lists
62
+
63
+ @lists.setter
64
+ def lists(self, lists):
65
+ r"""Sets the lists of this ListAgentsResponse.
66
+
67
+ 实例集合
68
+
69
+ :param lists: The lists of this ListAgentsResponse.
70
+ :type lists: list[:class:`huaweicloudsdktics.v1.AgentListVo`]
71
+ """
72
+ self._lists = lists
73
+
74
+ @property
75
+ def total(self):
76
+ r"""Gets the total of this ListAgentsResponse.
77
+
78
+ 总记录数
79
+
80
+ :return: The total of this ListAgentsResponse.
81
+ :rtype: int
82
+ """
83
+ return self._total
84
+
85
+ @total.setter
86
+ def total(self, total):
87
+ r"""Sets the total of this ListAgentsResponse.
88
+
89
+ 总记录数
90
+
91
+ :param total: The total of this ListAgentsResponse.
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, ListAgentsResponse):
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 ListAuditInfoRequest:
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
+ 'limit': 'int',
22
+ 'offset': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'league_id': 'league_id',
27
+ 'limit': 'limit',
28
+ 'offset': 'offset'
29
+ }
30
+
31
+ def __init__(self, league_id=None, limit=None, offset=None):
32
+ r"""ListAuditInfoRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param league_id: 联盟id,最大32位,字母和数字组成
37
+ :type league_id: str
38
+ :param limit: 每页记录数,取值0-100
39
+ :type limit: int
40
+ :param offset: 记录数偏移量
41
+ :type offset: int
42
+ """
43
+
44
+
45
+
46
+ self._league_id = None
47
+ self._limit = None
48
+ self._offset = None
49
+ self.discriminator = None
50
+
51
+ self.league_id = league_id
52
+ self.limit = limit
53
+ self.offset = offset
54
+
55
+ @property
56
+ def league_id(self):
57
+ r"""Gets the league_id of this ListAuditInfoRequest.
58
+
59
+ 联盟id,最大32位,字母和数字组成
60
+
61
+ :return: The league_id of this ListAuditInfoRequest.
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 ListAuditInfoRequest.
69
+
70
+ 联盟id,最大32位,字母和数字组成
71
+
72
+ :param league_id: The league_id of this ListAuditInfoRequest.
73
+ :type league_id: str
74
+ """
75
+ self._league_id = league_id
76
+
77
+ @property
78
+ def limit(self):
79
+ r"""Gets the limit of this ListAuditInfoRequest.
80
+
81
+ 每页记录数,取值0-100
82
+
83
+ :return: The limit of this ListAuditInfoRequest.
84
+ :rtype: int
85
+ """
86
+ return self._limit
87
+
88
+ @limit.setter
89
+ def limit(self, limit):
90
+ r"""Sets the limit of this ListAuditInfoRequest.
91
+
92
+ 每页记录数,取值0-100
93
+
94
+ :param limit: The limit of this ListAuditInfoRequest.
95
+ :type limit: int
96
+ """
97
+ self._limit = limit
98
+
99
+ @property
100
+ def offset(self):
101
+ r"""Gets the offset of this ListAuditInfoRequest.
102
+
103
+ 记录数偏移量
104
+
105
+ :return: The offset of this ListAuditInfoRequest.
106
+ :rtype: int
107
+ """
108
+ return self._offset
109
+
110
+ @offset.setter
111
+ def offset(self, offset):
112
+ r"""Sets the offset of this ListAuditInfoRequest.
113
+
114
+ 记录数偏移量
115
+
116
+ :param offset: The offset of this ListAuditInfoRequest.
117
+ :type offset: int
118
+ """
119
+ self._offset = offset
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, ListAuditInfoRequest):
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 ListAuditInfoResponse(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[TicsLeagueAuditLog]',
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"""ListAuditInfoResponse
32
+
33
+ The model defined in huaweicloud sdk
34
+
35
+ :param lists: 实例集合
36
+ :type lists: list[:class:`huaweicloudsdktics.v1.TicsLeagueAuditLog`]
37
+ :param total: 总记录数
38
+ :type total: int
39
+ """
40
+
41
+ super(ListAuditInfoResponse, 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 ListAuditInfoResponse.
55
+
56
+ 实例集合
57
+
58
+ :return: The lists of this ListAuditInfoResponse.
59
+ :rtype: list[:class:`huaweicloudsdktics.v1.TicsLeagueAuditLog`]
60
+ """
61
+ return self._lists
62
+
63
+ @lists.setter
64
+ def lists(self, lists):
65
+ r"""Sets the lists of this ListAuditInfoResponse.
66
+
67
+ 实例集合
68
+
69
+ :param lists: The lists of this ListAuditInfoResponse.
70
+ :type lists: list[:class:`huaweicloudsdktics.v1.TicsLeagueAuditLog`]
71
+ """
72
+ self._lists = lists
73
+
74
+ @property
75
+ def total(self):
76
+ r"""Gets the total of this ListAuditInfoResponse.
77
+
78
+ 总记录数
79
+
80
+ :return: The total of this ListAuditInfoResponse.
81
+ :rtype: int
82
+ """
83
+ return self._total
84
+
85
+ @total.setter
86
+ def total(self, total):
87
+ r"""Sets the total of this ListAuditInfoResponse.
88
+
89
+ 总记录数
90
+
91
+ :param total: The total of this ListAuditInfoResponse.
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, ListAuditInfoResponse):
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 ListFlJobRequest:
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
+ 'limit': 'int',
22
+ 'offset': 'int'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'league_id': 'league_id',
27
+ 'limit': 'limit',
28
+ 'offset': 'offset'
29
+ }
30
+
31
+ def __init__(self, league_id=None, limit=None, offset=None):
32
+ r"""ListFlJobRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param league_id: 联盟id,最大32位,字母和数字组成
37
+ :type league_id: str
38
+ :param limit: 每页记录数,取值0-100
39
+ :type limit: int
40
+ :param offset: 记录数偏移量
41
+ :type offset: int
42
+ """
43
+
44
+
45
+
46
+ self._league_id = None
47
+ self._limit = None
48
+ self._offset = None
49
+ self.discriminator = None
50
+
51
+ self.league_id = league_id
52
+ self.limit = limit
53
+ self.offset = offset
54
+
55
+ @property
56
+ def league_id(self):
57
+ r"""Gets the league_id of this ListFlJobRequest.
58
+
59
+ 联盟id,最大32位,字母和数字组成
60
+
61
+ :return: The league_id of this ListFlJobRequest.
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 ListFlJobRequest.
69
+
70
+ 联盟id,最大32位,字母和数字组成
71
+
72
+ :param league_id: The league_id of this ListFlJobRequest.
73
+ :type league_id: str
74
+ """
75
+ self._league_id = league_id
76
+
77
+ @property
78
+ def limit(self):
79
+ r"""Gets the limit of this ListFlJobRequest.
80
+
81
+ 每页记录数,取值0-100
82
+
83
+ :return: The limit of this ListFlJobRequest.
84
+ :rtype: int
85
+ """
86
+ return self._limit
87
+
88
+ @limit.setter
89
+ def limit(self, limit):
90
+ r"""Sets the limit of this ListFlJobRequest.
91
+
92
+ 每页记录数,取值0-100
93
+
94
+ :param limit: The limit of this ListFlJobRequest.
95
+ :type limit: int
96
+ """
97
+ self._limit = limit
98
+
99
+ @property
100
+ def offset(self):
101
+ r"""Gets the offset of this ListFlJobRequest.
102
+
103
+ 记录数偏移量
104
+
105
+ :return: The offset of this ListFlJobRequest.
106
+ :rtype: int
107
+ """
108
+ return self._offset
109
+
110
+ @offset.setter
111
+ def offset(self, offset):
112
+ r"""Sets the offset of this ListFlJobRequest.
113
+
114
+ 记录数偏移量
115
+
116
+ :param offset: The offset of this ListFlJobRequest.
117
+ :type offset: int
118
+ """
119
+ self._offset = offset
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, ListFlJobRequest):
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