huaweicloudsdkcodeartsbuild 3.1.155__py2.py3-none-any.whl → 3.1.156__py2.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 (23) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +13 -0
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +280 -0
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +280 -0
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +13 -0
  5. huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_request.py +111 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_request_body.py +282 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_response.py +174 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/job_pipeline_info_items.py +260 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/job_pipeline_info_parameters.py +202 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/job_pipeline_info_params_items.py +144 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/list_job_request.py +206 -1
  12. huaweicloudsdkcodeartsbuild/v3/model/show_job_pipeline_info_request.py +172 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/show_job_pipeline_info_response.py +170 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/stop_the_job_request.py +143 -0
  15. huaweicloudsdkcodeartsbuild/v3/model/stop_the_job_response.py +116 -0
  16. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_permission_request.py +111 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_permission_request_body.py +283 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_permission_response.py +174 -0
  19. {huaweicloudsdkcodeartsbuild-3.1.155.dist-info → huaweicloudsdkcodeartsbuild-3.1.156.dist-info}/METADATA +2 -2
  20. {huaweicloudsdkcodeartsbuild-3.1.155.dist-info → huaweicloudsdkcodeartsbuild-3.1.156.dist-info}/RECORD +23 -10
  21. {huaweicloudsdkcodeartsbuild-3.1.155.dist-info → huaweicloudsdkcodeartsbuild-3.1.156.dist-info}/LICENSE +0 -0
  22. {huaweicloudsdkcodeartsbuild-3.1.155.dist-info → huaweicloudsdkcodeartsbuild-3.1.156.dist-info}/WHEEL +0 -0
  23. {huaweicloudsdkcodeartsbuild-3.1.155.dist-info → huaweicloudsdkcodeartsbuild-3.1.156.dist-info}/top_level.txt +0 -0
@@ -17,21 +17,226 @@ class ListJobRequest:
17
17
  sensitive_list = []
18
18
 
19
19
  openapi_types = {
20
+ 'page_index': 'int',
21
+ 'page_size': 'int',
22
+ 'search': 'str',
23
+ 'sort_field': 'str',
24
+ 'sort_order': 'str',
25
+ 'creator_id': 'str',
26
+ 'build_status': 'str'
20
27
  }
21
28
 
22
29
  attribute_map = {
30
+ 'page_index': 'page_index',
31
+ 'page_size': 'page_size',
32
+ 'search': 'search',
33
+ 'sort_field': 'sort_field',
34
+ 'sort_order': 'sort_order',
35
+ 'creator_id': 'creator_id',
36
+ 'build_status': 'build_status'
23
37
  }
24
38
 
25
- def __init__(self):
39
+ def __init__(self, page_index=None, page_size=None, search=None, sort_field=None, sort_order=None, creator_id=None, build_status=None):
26
40
  r"""ListJobRequest
27
41
 
28
42
  The model defined in huaweicloud sdk
29
43
 
44
+ :param page_index: 分页页码,表示从此页开始查询,page_index大于等于0
45
+ :type page_index: int
46
+ :param page_size: 每页显示的条目数量,page_size小于等于100
47
+ :type page_size: int
48
+ :param search: 查询关键字
49
+ :type search: str
50
+ :param sort_field: 排序字段
51
+ :type sort_field: str
52
+ :param sort_order: 排序方式(ASC|DESC)
53
+ :type sort_order: str
54
+ :param creator_id: 创建人
55
+ :type creator_id: str
56
+ :param build_status: 构建状态
57
+ :type build_status: str
30
58
  """
31
59
 
32
60
 
61
+
62
+ self._page_index = None
63
+ self._page_size = None
64
+ self._search = None
65
+ self._sort_field = None
66
+ self._sort_order = None
67
+ self._creator_id = None
68
+ self._build_status = None
33
69
  self.discriminator = None
34
70
 
71
+ if page_index is not None:
72
+ self.page_index = page_index
73
+ if page_size is not None:
74
+ self.page_size = page_size
75
+ if search is not None:
76
+ self.search = search
77
+ if sort_field is not None:
78
+ self.sort_field = sort_field
79
+ if sort_order is not None:
80
+ self.sort_order = sort_order
81
+ if creator_id is not None:
82
+ self.creator_id = creator_id
83
+ if build_status is not None:
84
+ self.build_status = build_status
85
+
86
+ @property
87
+ def page_index(self):
88
+ r"""Gets the page_index of this ListJobRequest.
89
+
90
+ 分页页码,表示从此页开始查询,page_index大于等于0
91
+
92
+ :return: The page_index of this ListJobRequest.
93
+ :rtype: int
94
+ """
95
+ return self._page_index
96
+
97
+ @page_index.setter
98
+ def page_index(self, page_index):
99
+ r"""Sets the page_index of this ListJobRequest.
100
+
101
+ 分页页码,表示从此页开始查询,page_index大于等于0
102
+
103
+ :param page_index: The page_index of this ListJobRequest.
104
+ :type page_index: int
105
+ """
106
+ self._page_index = page_index
107
+
108
+ @property
109
+ def page_size(self):
110
+ r"""Gets the page_size of this ListJobRequest.
111
+
112
+ 每页显示的条目数量,page_size小于等于100
113
+
114
+ :return: The page_size of this ListJobRequest.
115
+ :rtype: int
116
+ """
117
+ return self._page_size
118
+
119
+ @page_size.setter
120
+ def page_size(self, page_size):
121
+ r"""Sets the page_size of this ListJobRequest.
122
+
123
+ 每页显示的条目数量,page_size小于等于100
124
+
125
+ :param page_size: The page_size of this ListJobRequest.
126
+ :type page_size: int
127
+ """
128
+ self._page_size = page_size
129
+
130
+ @property
131
+ def search(self):
132
+ r"""Gets the search of this ListJobRequest.
133
+
134
+ 查询关键字
135
+
136
+ :return: The search of this ListJobRequest.
137
+ :rtype: str
138
+ """
139
+ return self._search
140
+
141
+ @search.setter
142
+ def search(self, search):
143
+ r"""Sets the search of this ListJobRequest.
144
+
145
+ 查询关键字
146
+
147
+ :param search: The search of this ListJobRequest.
148
+ :type search: str
149
+ """
150
+ self._search = search
151
+
152
+ @property
153
+ def sort_field(self):
154
+ r"""Gets the sort_field of this ListJobRequest.
155
+
156
+ 排序字段
157
+
158
+ :return: The sort_field of this ListJobRequest.
159
+ :rtype: str
160
+ """
161
+ return self._sort_field
162
+
163
+ @sort_field.setter
164
+ def sort_field(self, sort_field):
165
+ r"""Sets the sort_field of this ListJobRequest.
166
+
167
+ 排序字段
168
+
169
+ :param sort_field: The sort_field of this ListJobRequest.
170
+ :type sort_field: str
171
+ """
172
+ self._sort_field = sort_field
173
+
174
+ @property
175
+ def sort_order(self):
176
+ r"""Gets the sort_order of this ListJobRequest.
177
+
178
+ 排序方式(ASC|DESC)
179
+
180
+ :return: The sort_order of this ListJobRequest.
181
+ :rtype: str
182
+ """
183
+ return self._sort_order
184
+
185
+ @sort_order.setter
186
+ def sort_order(self, sort_order):
187
+ r"""Sets the sort_order of this ListJobRequest.
188
+
189
+ 排序方式(ASC|DESC)
190
+
191
+ :param sort_order: The sort_order of this ListJobRequest.
192
+ :type sort_order: str
193
+ """
194
+ self._sort_order = sort_order
195
+
196
+ @property
197
+ def creator_id(self):
198
+ r"""Gets the creator_id of this ListJobRequest.
199
+
200
+ 创建人
201
+
202
+ :return: The creator_id of this ListJobRequest.
203
+ :rtype: str
204
+ """
205
+ return self._creator_id
206
+
207
+ @creator_id.setter
208
+ def creator_id(self, creator_id):
209
+ r"""Sets the creator_id of this ListJobRequest.
210
+
211
+ 创建人
212
+
213
+ :param creator_id: The creator_id of this ListJobRequest.
214
+ :type creator_id: str
215
+ """
216
+ self._creator_id = creator_id
217
+
218
+ @property
219
+ def build_status(self):
220
+ r"""Gets the build_status of this ListJobRequest.
221
+
222
+ 构建状态
223
+
224
+ :return: The build_status of this ListJobRequest.
225
+ :rtype: str
226
+ """
227
+ return self._build_status
228
+
229
+ @build_status.setter
230
+ def build_status(self, build_status):
231
+ r"""Sets the build_status of this ListJobRequest.
232
+
233
+ 构建状态
234
+
235
+ :param build_status: The build_status of this ListJobRequest.
236
+ :type build_status: str
237
+ """
238
+ self._build_status = build_status
239
+
35
240
  def to_dict(self):
36
241
  """Returns the model properties as a dict"""
37
242
  result = {}
@@ -0,0 +1,172 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowJobPipelineInfoRequest:
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
+ 'job_id': 'str',
21
+ 'all': 'str',
22
+ 'check_param_used': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'job_id': 'job_id',
27
+ 'all': 'all',
28
+ 'check_param_used': 'check_param_used'
29
+ }
30
+
31
+ def __init__(self, job_id=None, all=None, check_param_used=None):
32
+ r"""ShowJobPipelineInfoRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param job_id: 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
37
+ :type job_id: str
38
+ :param all: 输入\"true\"或者\"false\"来控制返回参数是不是完整的
39
+ :type all: str
40
+ :param check_param_used: 移除未使用的参数
41
+ :type check_param_used: str
42
+ """
43
+
44
+
45
+
46
+ self._job_id = None
47
+ self._all = None
48
+ self._check_param_used = None
49
+ self.discriminator = None
50
+
51
+ self.job_id = job_id
52
+ if all is not None:
53
+ self.all = all
54
+ if check_param_used is not None:
55
+ self.check_param_used = check_param_used
56
+
57
+ @property
58
+ def job_id(self):
59
+ r"""Gets the job_id of this ShowJobPipelineInfoRequest.
60
+
61
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
62
+
63
+ :return: The job_id of this ShowJobPipelineInfoRequest.
64
+ :rtype: str
65
+ """
66
+ return self._job_id
67
+
68
+ @job_id.setter
69
+ def job_id(self, job_id):
70
+ r"""Sets the job_id of this ShowJobPipelineInfoRequest.
71
+
72
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
73
+
74
+ :param job_id: The job_id of this ShowJobPipelineInfoRequest.
75
+ :type job_id: str
76
+ """
77
+ self._job_id = job_id
78
+
79
+ @property
80
+ def all(self):
81
+ r"""Gets the all of this ShowJobPipelineInfoRequest.
82
+
83
+ 输入\"true\"或者\"false\"来控制返回参数是不是完整的
84
+
85
+ :return: The all of this ShowJobPipelineInfoRequest.
86
+ :rtype: str
87
+ """
88
+ return self._all
89
+
90
+ @all.setter
91
+ def all(self, all):
92
+ r"""Sets the all of this ShowJobPipelineInfoRequest.
93
+
94
+ 输入\"true\"或者\"false\"来控制返回参数是不是完整的
95
+
96
+ :param all: The all of this ShowJobPipelineInfoRequest.
97
+ :type all: str
98
+ """
99
+ self._all = all
100
+
101
+ @property
102
+ def check_param_used(self):
103
+ r"""Gets the check_param_used of this ShowJobPipelineInfoRequest.
104
+
105
+ 移除未使用的参数
106
+
107
+ :return: The check_param_used of this ShowJobPipelineInfoRequest.
108
+ :rtype: str
109
+ """
110
+ return self._check_param_used
111
+
112
+ @check_param_used.setter
113
+ def check_param_used(self, check_param_used):
114
+ r"""Sets the check_param_used of this ShowJobPipelineInfoRequest.
115
+
116
+ 移除未使用的参数
117
+
118
+ :param check_param_used: The check_param_used of this ShowJobPipelineInfoRequest.
119
+ :type check_param_used: str
120
+ """
121
+ self._check_param_used = check_param_used
122
+
123
+ def to_dict(self):
124
+ """Returns the model properties as a dict"""
125
+ result = {}
126
+
127
+ for attr, _ in six.iteritems(self.openapi_types):
128
+ value = getattr(self, attr)
129
+ if isinstance(value, list):
130
+ result[attr] = list(map(
131
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
132
+ value
133
+ ))
134
+ elif hasattr(value, "to_dict"):
135
+ result[attr] = value.to_dict()
136
+ elif isinstance(value, dict):
137
+ result[attr] = dict(map(
138
+ lambda item: (item[0], item[1].to_dict())
139
+ if hasattr(item[1], "to_dict") else item,
140
+ value.items()
141
+ ))
142
+ else:
143
+ if attr in self.sensitive_list:
144
+ result[attr] = "****"
145
+ else:
146
+ result[attr] = value
147
+
148
+ return result
149
+
150
+ def to_str(self):
151
+ """Returns the string representation of the model"""
152
+ import simplejson as json
153
+ if six.PY2:
154
+ import sys
155
+ reload(sys)
156
+ sys.setdefaultencoding("utf-8")
157
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
158
+
159
+ def __repr__(self):
160
+ """For `print`"""
161
+ return self.to_str()
162
+
163
+ def __eq__(self, other):
164
+ """Returns true if both objects are equal"""
165
+ if not isinstance(other, ShowJobPipelineInfoRequest):
166
+ return False
167
+
168
+ return self.__dict__ == other.__dict__
169
+
170
+ def __ne__(self, other):
171
+ """Returns true if both objects are not equal"""
172
+ return not self == other
@@ -0,0 +1,170 @@
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 ShowJobPipelineInfoResponse(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
+ 'result': 'JobPipelineInfoItems',
22
+ 'error': 'str',
23
+ 'status': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'result': 'result',
28
+ 'error': 'error',
29
+ 'status': 'status'
30
+ }
31
+
32
+ def __init__(self, result=None, error=None, status=None):
33
+ r"""ShowJobPipelineInfoResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param result:
38
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.JobPipelineInfoItems`
39
+ :param error: 返回错误信息
40
+ :type error: str
41
+ :param status: 返回状态信息
42
+ :type status: str
43
+ """
44
+
45
+ super(ShowJobPipelineInfoResponse, self).__init__()
46
+
47
+ self._result = None
48
+ self._error = None
49
+ self._status = None
50
+ self.discriminator = None
51
+
52
+ if result is not None:
53
+ self.result = result
54
+ if error is not None:
55
+ self.error = error
56
+ if status is not None:
57
+ self.status = status
58
+
59
+ @property
60
+ def result(self):
61
+ r"""Gets the result of this ShowJobPipelineInfoResponse.
62
+
63
+ :return: The result of this ShowJobPipelineInfoResponse.
64
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.JobPipelineInfoItems`
65
+ """
66
+ return self._result
67
+
68
+ @result.setter
69
+ def result(self, result):
70
+ r"""Sets the result of this ShowJobPipelineInfoResponse.
71
+
72
+ :param result: The result of this ShowJobPipelineInfoResponse.
73
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.JobPipelineInfoItems`
74
+ """
75
+ self._result = result
76
+
77
+ @property
78
+ def error(self):
79
+ r"""Gets the error of this ShowJobPipelineInfoResponse.
80
+
81
+ 返回错误信息
82
+
83
+ :return: The error of this ShowJobPipelineInfoResponse.
84
+ :rtype: str
85
+ """
86
+ return self._error
87
+
88
+ @error.setter
89
+ def error(self, error):
90
+ r"""Sets the error of this ShowJobPipelineInfoResponse.
91
+
92
+ 返回错误信息
93
+
94
+ :param error: The error of this ShowJobPipelineInfoResponse.
95
+ :type error: str
96
+ """
97
+ self._error = error
98
+
99
+ @property
100
+ def status(self):
101
+ r"""Gets the status of this ShowJobPipelineInfoResponse.
102
+
103
+ 返回状态信息
104
+
105
+ :return: The status of this ShowJobPipelineInfoResponse.
106
+ :rtype: str
107
+ """
108
+ return self._status
109
+
110
+ @status.setter
111
+ def status(self, status):
112
+ r"""Sets the status of this ShowJobPipelineInfoResponse.
113
+
114
+ 返回状态信息
115
+
116
+ :param status: The status of this ShowJobPipelineInfoResponse.
117
+ :type status: str
118
+ """
119
+ self._status = status
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, ShowJobPipelineInfoResponse):
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,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class StopTheJobRequest:
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
+ 'job_id': 'str',
21
+ 'build_no': 'int'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'job_id': 'job_id',
26
+ 'build_no': 'build_no'
27
+ }
28
+
29
+ def __init__(self, job_id=None, build_no=None):
30
+ r"""StopTheJobRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param job_id: 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
35
+ :type job_id: str
36
+ :param build_no: 构建任务的构建编号,从1开始,每次构建递增1
37
+ :type build_no: int
38
+ """
39
+
40
+
41
+
42
+ self._job_id = None
43
+ self._build_no = None
44
+ self.discriminator = None
45
+
46
+ self.job_id = job_id
47
+ if build_no is not None:
48
+ self.build_no = build_no
49
+
50
+ @property
51
+ def job_id(self):
52
+ r"""Gets the job_id of this StopTheJobRequest.
53
+
54
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
55
+
56
+ :return: The job_id of this StopTheJobRequest.
57
+ :rtype: str
58
+ """
59
+ return self._job_id
60
+
61
+ @job_id.setter
62
+ def job_id(self, job_id):
63
+ r"""Sets the job_id of this StopTheJobRequest.
64
+
65
+ 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
66
+
67
+ :param job_id: The job_id of this StopTheJobRequest.
68
+ :type job_id: str
69
+ """
70
+ self._job_id = job_id
71
+
72
+ @property
73
+ def build_no(self):
74
+ r"""Gets the build_no of this StopTheJobRequest.
75
+
76
+ 构建任务的构建编号,从1开始,每次构建递增1
77
+
78
+ :return: The build_no of this StopTheJobRequest.
79
+ :rtype: int
80
+ """
81
+ return self._build_no
82
+
83
+ @build_no.setter
84
+ def build_no(self, build_no):
85
+ r"""Sets the build_no of this StopTheJobRequest.
86
+
87
+ 构建任务的构建编号,从1开始,每次构建递增1
88
+
89
+ :param build_no: The build_no of this StopTheJobRequest.
90
+ :type build_no: int
91
+ """
92
+ self._build_no = build_no
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, StopTheJobRequest):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other