huaweicloudsdkcodeartsbuild 3.1.155__py2.py3-none-any.whl → 3.1.157__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.
- huaweicloudsdkcodeartsbuild/v3/__init__.py +13 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +280 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +280 -0
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +13 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_request_body.py +282 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_pipeline_info_items.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_pipeline_info_parameters.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_pipeline_info_params_items.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_job_request.py +206 -1
- huaweicloudsdkcodeartsbuild/v3/model/show_job_pipeline_info_request.py +172 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_pipeline_info_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/stop_the_job_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/stop_the_job_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_keystore_permission_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_keystore_permission_request_body.py +283 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_keystore_permission_response.py +174 -0
- {huaweicloudsdkcodeartsbuild-3.1.155.dist-info → huaweicloudsdkcodeartsbuild-3.1.157.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.155.dist-info → huaweicloudsdkcodeartsbuild-3.1.157.dist-info}/RECORD +23 -10
- {huaweicloudsdkcodeartsbuild-3.1.155.dist-info → huaweicloudsdkcodeartsbuild-3.1.157.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.155.dist-info → huaweicloudsdkcodeartsbuild-3.1.157.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.155.dist-info → huaweicloudsdkcodeartsbuild-3.1.157.dist-info}/top_level.txt +0 -0
@@ -3,6 +3,9 @@
|
|
3
3
|
from __future__ import absolute_import
|
4
4
|
|
5
5
|
# import models into model package
|
6
|
+
from huaweicloudsdkcodeartsbuild.v3.model.add_keystore_permission_request import AddKeystorePermissionRequest
|
7
|
+
from huaweicloudsdkcodeartsbuild.v3.model.add_keystore_permission_request_body import AddKeystorePermissionRequestBody
|
8
|
+
from huaweicloudsdkcodeartsbuild.v3.model.add_keystore_permission_response import AddKeystorePermissionResponse
|
6
9
|
from huaweicloudsdkcodeartsbuild.v3.model.add_keystore_permission_response_body import AddKeystorePermissionResponseBody
|
7
10
|
from huaweicloudsdkcodeartsbuild.v3.model.brief_record_items import BriefRecordItems
|
8
11
|
from huaweicloudsdkcodeartsbuild.v3.model.build_info_record import BuildInfoRecord
|
@@ -94,6 +97,9 @@ from huaweicloudsdkcodeartsbuild.v3.model.history_record import HistoryRecord
|
|
94
97
|
from huaweicloudsdkcodeartsbuild.v3.model.history_record1 import HistoryRecord1
|
95
98
|
from huaweicloudsdkcodeartsbuild.v3.model.is_disable_result import IsDisableResult
|
96
99
|
from huaweicloudsdkcodeartsbuild.v3.model.job import Job
|
100
|
+
from huaweicloudsdkcodeartsbuild.v3.model.job_pipeline_info_items import JobPipelineInfoItems
|
101
|
+
from huaweicloudsdkcodeartsbuild.v3.model.job_pipeline_info_parameters import JobPipelineInfoParameters
|
102
|
+
from huaweicloudsdkcodeartsbuild.v3.model.job_pipeline_info_params_items import JobPipelineInfoParamsItems
|
97
103
|
from huaweicloudsdkcodeartsbuild.v3.model.job_status_body import JobStatusBody
|
98
104
|
from huaweicloudsdkcodeartsbuild.v3.model.job_summary import JobSummary
|
99
105
|
from huaweicloudsdkcodeartsbuild.v3.model.job_summary_body_result import JobSummaryBodyResult
|
@@ -243,6 +249,8 @@ from huaweicloudsdkcodeartsbuild.v3.model.show_job_list_by_project_id_response i
|
|
243
249
|
from huaweicloudsdkcodeartsbuild.v3.model.show_job_notice_config_info_request import ShowJobNoticeConfigInfoRequest
|
244
250
|
from huaweicloudsdkcodeartsbuild.v3.model.show_job_notice_config_info_response import ShowJobNoticeConfigInfoResponse
|
245
251
|
from huaweicloudsdkcodeartsbuild.v3.model.show_job_permission_result import ShowJobPermissionResult
|
252
|
+
from huaweicloudsdkcodeartsbuild.v3.model.show_job_pipeline_info_request import ShowJobPipelineInfoRequest
|
253
|
+
from huaweicloudsdkcodeartsbuild.v3.model.show_job_pipeline_info_response import ShowJobPipelineInfoResponse
|
246
254
|
from huaweicloudsdkcodeartsbuild.v3.model.show_job_role_permission_request import ShowJobRolePermissionRequest
|
247
255
|
from huaweicloudsdkcodeartsbuild.v3.model.show_job_role_permission_response import ShowJobRolePermissionResponse
|
248
256
|
from huaweicloudsdkcodeartsbuild.v3.model.show_job_role_permission_result import ShowJobRolePermissionResult
|
@@ -300,6 +308,8 @@ from huaweicloudsdkcodeartsbuild.v3.model.stop_build_job_response import StopBui
|
|
300
308
|
from huaweicloudsdkcodeartsbuild.v3.model.stop_job_request import StopJobRequest
|
301
309
|
from huaweicloudsdkcodeartsbuild.v3.model.stop_job_request_body import StopJobRequestBody
|
302
310
|
from huaweicloudsdkcodeartsbuild.v3.model.stop_job_response import StopJobResponse
|
311
|
+
from huaweicloudsdkcodeartsbuild.v3.model.stop_the_job_request import StopTheJobRequest
|
312
|
+
from huaweicloudsdkcodeartsbuild.v3.model.stop_the_job_response import StopTheJobResponse
|
303
313
|
from huaweicloudsdkcodeartsbuild.v3.model.system_parameters_result import SystemParametersResult
|
304
314
|
from huaweicloudsdkcodeartsbuild.v3.model.template_list import TemplateList
|
305
315
|
from huaweicloudsdkcodeartsbuild.v3.model.total_response_body_result import TotalResponseBodyResult
|
@@ -311,6 +321,9 @@ from huaweicloudsdkcodeartsbuild.v3.model.update_build_job_request_body import U
|
|
311
321
|
from huaweicloudsdkcodeartsbuild.v3.model.update_build_job_response import UpdateBuildJobResponse
|
312
322
|
from huaweicloudsdkcodeartsbuild.v3.model.update_build_job_scm import UpdateBuildJobScm
|
313
323
|
from huaweicloudsdkcodeartsbuild.v3.model.update_build_job_steps import UpdateBuildJobSteps
|
324
|
+
from huaweicloudsdkcodeartsbuild.v3.model.update_keystore_permission_request import UpdateKeystorePermissionRequest
|
325
|
+
from huaweicloudsdkcodeartsbuild.v3.model.update_keystore_permission_request_body import UpdateKeystorePermissionRequestBody
|
326
|
+
from huaweicloudsdkcodeartsbuild.v3.model.update_keystore_permission_response import UpdateKeystorePermissionResponse
|
314
327
|
from huaweicloudsdkcodeartsbuild.v3.model.update_keystore_request import UpdateKeystoreRequest
|
315
328
|
from huaweicloudsdkcodeartsbuild.v3.model.update_keystore_request_body import UpdateKeystoreRequestBody
|
316
329
|
from huaweicloudsdkcodeartsbuild.v3.model.update_keystore_response import UpdateKeystoreResponse
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class AddKeystorePermissionRequest:
|
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
|
+
'body': 'AddKeystorePermissionRequestBody'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""AddKeystorePermissionRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the AddKeystorePermissionRequest
|
33
|
+
:type body: :class:`huaweicloudsdkcodeartsbuild.v3.AddKeystorePermissionRequestBody`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
r"""Gets the body of this AddKeystorePermissionRequest.
|
47
|
+
|
48
|
+
:return: The body of this AddKeystorePermissionRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.AddKeystorePermissionRequestBody`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this AddKeystorePermissionRequest.
|
56
|
+
|
57
|
+
:param body: The body of this AddKeystorePermissionRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkcodeartsbuild.v3.AddKeystorePermissionRequestBody`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
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
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, AddKeystorePermissionRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|
@@ -0,0 +1,282 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class AddKeystorePermissionRequestBody:
|
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
|
+
'delete': 'bool',
|
21
|
+
'keystore_id': 'str',
|
22
|
+
'modify': 'bool',
|
23
|
+
'usage': 'bool',
|
24
|
+
'user_name': 'str',
|
25
|
+
'setting': 'bool',
|
26
|
+
'can_absent': 'bool'
|
27
|
+
}
|
28
|
+
|
29
|
+
attribute_map = {
|
30
|
+
'delete': 'delete',
|
31
|
+
'keystore_id': 'keystore_id',
|
32
|
+
'modify': 'modify',
|
33
|
+
'usage': 'usage',
|
34
|
+
'user_name': 'user_name',
|
35
|
+
'setting': 'setting',
|
36
|
+
'can_absent': 'can_absent'
|
37
|
+
}
|
38
|
+
|
39
|
+
def __init__(self, delete=None, keystore_id=None, modify=None, usage=None, user_name=None, setting=None, can_absent=None):
|
40
|
+
r"""AddKeystorePermissionRequestBody
|
41
|
+
|
42
|
+
The model defined in huaweicloud sdk
|
43
|
+
|
44
|
+
:param delete: 是否有删除权限
|
45
|
+
:type delete: bool
|
46
|
+
:param keystore_id: 文件密钥id
|
47
|
+
:type keystore_id: str
|
48
|
+
:param modify: 是否有修改权限
|
49
|
+
:type modify: bool
|
50
|
+
:param usage: 是否有使用权限
|
51
|
+
:type usage: bool
|
52
|
+
:param user_name: 用户名
|
53
|
+
:type user_name: str
|
54
|
+
:param setting: 是否有设置权限
|
55
|
+
:type setting: bool
|
56
|
+
:param can_absent: 是否可编辑
|
57
|
+
:type can_absent: bool
|
58
|
+
"""
|
59
|
+
|
60
|
+
|
61
|
+
|
62
|
+
self._delete = None
|
63
|
+
self._keystore_id = None
|
64
|
+
self._modify = None
|
65
|
+
self._usage = None
|
66
|
+
self._user_name = None
|
67
|
+
self._setting = None
|
68
|
+
self._can_absent = None
|
69
|
+
self.discriminator = None
|
70
|
+
|
71
|
+
self.delete = delete
|
72
|
+
self.keystore_id = keystore_id
|
73
|
+
self.modify = modify
|
74
|
+
self.usage = usage
|
75
|
+
self.user_name = user_name
|
76
|
+
self.setting = setting
|
77
|
+
self.can_absent = can_absent
|
78
|
+
|
79
|
+
@property
|
80
|
+
def delete(self):
|
81
|
+
r"""Gets the delete of this AddKeystorePermissionRequestBody.
|
82
|
+
|
83
|
+
是否有删除权限
|
84
|
+
|
85
|
+
:return: The delete of this AddKeystorePermissionRequestBody.
|
86
|
+
:rtype: bool
|
87
|
+
"""
|
88
|
+
return self._delete
|
89
|
+
|
90
|
+
@delete.setter
|
91
|
+
def delete(self, delete):
|
92
|
+
r"""Sets the delete of this AddKeystorePermissionRequestBody.
|
93
|
+
|
94
|
+
是否有删除权限
|
95
|
+
|
96
|
+
:param delete: The delete of this AddKeystorePermissionRequestBody.
|
97
|
+
:type delete: bool
|
98
|
+
"""
|
99
|
+
self._delete = delete
|
100
|
+
|
101
|
+
@property
|
102
|
+
def keystore_id(self):
|
103
|
+
r"""Gets the keystore_id of this AddKeystorePermissionRequestBody.
|
104
|
+
|
105
|
+
文件密钥id
|
106
|
+
|
107
|
+
:return: The keystore_id of this AddKeystorePermissionRequestBody.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._keystore_id
|
111
|
+
|
112
|
+
@keystore_id.setter
|
113
|
+
def keystore_id(self, keystore_id):
|
114
|
+
r"""Sets the keystore_id of this AddKeystorePermissionRequestBody.
|
115
|
+
|
116
|
+
文件密钥id
|
117
|
+
|
118
|
+
:param keystore_id: The keystore_id of this AddKeystorePermissionRequestBody.
|
119
|
+
:type keystore_id: str
|
120
|
+
"""
|
121
|
+
self._keystore_id = keystore_id
|
122
|
+
|
123
|
+
@property
|
124
|
+
def modify(self):
|
125
|
+
r"""Gets the modify of this AddKeystorePermissionRequestBody.
|
126
|
+
|
127
|
+
是否有修改权限
|
128
|
+
|
129
|
+
:return: The modify of this AddKeystorePermissionRequestBody.
|
130
|
+
:rtype: bool
|
131
|
+
"""
|
132
|
+
return self._modify
|
133
|
+
|
134
|
+
@modify.setter
|
135
|
+
def modify(self, modify):
|
136
|
+
r"""Sets the modify of this AddKeystorePermissionRequestBody.
|
137
|
+
|
138
|
+
是否有修改权限
|
139
|
+
|
140
|
+
:param modify: The modify of this AddKeystorePermissionRequestBody.
|
141
|
+
:type modify: bool
|
142
|
+
"""
|
143
|
+
self._modify = modify
|
144
|
+
|
145
|
+
@property
|
146
|
+
def usage(self):
|
147
|
+
r"""Gets the usage of this AddKeystorePermissionRequestBody.
|
148
|
+
|
149
|
+
是否有使用权限
|
150
|
+
|
151
|
+
:return: The usage of this AddKeystorePermissionRequestBody.
|
152
|
+
:rtype: bool
|
153
|
+
"""
|
154
|
+
return self._usage
|
155
|
+
|
156
|
+
@usage.setter
|
157
|
+
def usage(self, usage):
|
158
|
+
r"""Sets the usage of this AddKeystorePermissionRequestBody.
|
159
|
+
|
160
|
+
是否有使用权限
|
161
|
+
|
162
|
+
:param usage: The usage of this AddKeystorePermissionRequestBody.
|
163
|
+
:type usage: bool
|
164
|
+
"""
|
165
|
+
self._usage = usage
|
166
|
+
|
167
|
+
@property
|
168
|
+
def user_name(self):
|
169
|
+
r"""Gets the user_name of this AddKeystorePermissionRequestBody.
|
170
|
+
|
171
|
+
用户名
|
172
|
+
|
173
|
+
:return: The user_name of this AddKeystorePermissionRequestBody.
|
174
|
+
:rtype: str
|
175
|
+
"""
|
176
|
+
return self._user_name
|
177
|
+
|
178
|
+
@user_name.setter
|
179
|
+
def user_name(self, user_name):
|
180
|
+
r"""Sets the user_name of this AddKeystorePermissionRequestBody.
|
181
|
+
|
182
|
+
用户名
|
183
|
+
|
184
|
+
:param user_name: The user_name of this AddKeystorePermissionRequestBody.
|
185
|
+
:type user_name: str
|
186
|
+
"""
|
187
|
+
self._user_name = user_name
|
188
|
+
|
189
|
+
@property
|
190
|
+
def setting(self):
|
191
|
+
r"""Gets the setting of this AddKeystorePermissionRequestBody.
|
192
|
+
|
193
|
+
是否有设置权限
|
194
|
+
|
195
|
+
:return: The setting of this AddKeystorePermissionRequestBody.
|
196
|
+
:rtype: bool
|
197
|
+
"""
|
198
|
+
return self._setting
|
199
|
+
|
200
|
+
@setting.setter
|
201
|
+
def setting(self, setting):
|
202
|
+
r"""Sets the setting of this AddKeystorePermissionRequestBody.
|
203
|
+
|
204
|
+
是否有设置权限
|
205
|
+
|
206
|
+
:param setting: The setting of this AddKeystorePermissionRequestBody.
|
207
|
+
:type setting: bool
|
208
|
+
"""
|
209
|
+
self._setting = setting
|
210
|
+
|
211
|
+
@property
|
212
|
+
def can_absent(self):
|
213
|
+
r"""Gets the can_absent of this AddKeystorePermissionRequestBody.
|
214
|
+
|
215
|
+
是否可编辑
|
216
|
+
|
217
|
+
:return: The can_absent of this AddKeystorePermissionRequestBody.
|
218
|
+
:rtype: bool
|
219
|
+
"""
|
220
|
+
return self._can_absent
|
221
|
+
|
222
|
+
@can_absent.setter
|
223
|
+
def can_absent(self, can_absent):
|
224
|
+
r"""Sets the can_absent of this AddKeystorePermissionRequestBody.
|
225
|
+
|
226
|
+
是否可编辑
|
227
|
+
|
228
|
+
:param can_absent: The can_absent of this AddKeystorePermissionRequestBody.
|
229
|
+
:type can_absent: bool
|
230
|
+
"""
|
231
|
+
self._can_absent = can_absent
|
232
|
+
|
233
|
+
def to_dict(self):
|
234
|
+
"""Returns the model properties as a dict"""
|
235
|
+
result = {}
|
236
|
+
|
237
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
238
|
+
value = getattr(self, attr)
|
239
|
+
if isinstance(value, list):
|
240
|
+
result[attr] = list(map(
|
241
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
242
|
+
value
|
243
|
+
))
|
244
|
+
elif hasattr(value, "to_dict"):
|
245
|
+
result[attr] = value.to_dict()
|
246
|
+
elif isinstance(value, dict):
|
247
|
+
result[attr] = dict(map(
|
248
|
+
lambda item: (item[0], item[1].to_dict())
|
249
|
+
if hasattr(item[1], "to_dict") else item,
|
250
|
+
value.items()
|
251
|
+
))
|
252
|
+
else:
|
253
|
+
if attr in self.sensitive_list:
|
254
|
+
result[attr] = "****"
|
255
|
+
else:
|
256
|
+
result[attr] = value
|
257
|
+
|
258
|
+
return result
|
259
|
+
|
260
|
+
def to_str(self):
|
261
|
+
"""Returns the string representation of the model"""
|
262
|
+
import simplejson as json
|
263
|
+
if six.PY2:
|
264
|
+
import sys
|
265
|
+
reload(sys)
|
266
|
+
sys.setdefaultencoding("utf-8")
|
267
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
268
|
+
|
269
|
+
def __repr__(self):
|
270
|
+
"""For `print`"""
|
271
|
+
return self.to_str()
|
272
|
+
|
273
|
+
def __eq__(self, other):
|
274
|
+
"""Returns true if both objects are equal"""
|
275
|
+
if not isinstance(other, AddKeystorePermissionRequestBody):
|
276
|
+
return False
|
277
|
+
|
278
|
+
return self.__dict__ == other.__dict__
|
279
|
+
|
280
|
+
def __ne__(self, other):
|
281
|
+
"""Returns true if both objects are not equal"""
|
282
|
+
return not self == other
|
@@ -0,0 +1,174 @@
|
|
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 AddKeystorePermissionResponse(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
|
+
'status': 'str',
|
22
|
+
'error': 'object',
|
23
|
+
'result': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'status': 'status',
|
28
|
+
'error': 'error',
|
29
|
+
'result': 'result'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, status=None, error=None, result=None):
|
33
|
+
r"""AddKeystorePermissionResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param status: 状态
|
38
|
+
:type status: str
|
39
|
+
:param error: 错误
|
40
|
+
:type error: object
|
41
|
+
:param result: 结果
|
42
|
+
:type result: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(AddKeystorePermissionResponse, self).__init__()
|
46
|
+
|
47
|
+
self._status = None
|
48
|
+
self._error = None
|
49
|
+
self._result = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if status is not None:
|
53
|
+
self.status = status
|
54
|
+
if error is not None:
|
55
|
+
self.error = error
|
56
|
+
if result is not None:
|
57
|
+
self.result = result
|
58
|
+
|
59
|
+
@property
|
60
|
+
def status(self):
|
61
|
+
r"""Gets the status of this AddKeystorePermissionResponse.
|
62
|
+
|
63
|
+
状态
|
64
|
+
|
65
|
+
:return: The status of this AddKeystorePermissionResponse.
|
66
|
+
:rtype: str
|
67
|
+
"""
|
68
|
+
return self._status
|
69
|
+
|
70
|
+
@status.setter
|
71
|
+
def status(self, status):
|
72
|
+
r"""Sets the status of this AddKeystorePermissionResponse.
|
73
|
+
|
74
|
+
状态
|
75
|
+
|
76
|
+
:param status: The status of this AddKeystorePermissionResponse.
|
77
|
+
:type status: str
|
78
|
+
"""
|
79
|
+
self._status = status
|
80
|
+
|
81
|
+
@property
|
82
|
+
def error(self):
|
83
|
+
r"""Gets the error of this AddKeystorePermissionResponse.
|
84
|
+
|
85
|
+
错误
|
86
|
+
|
87
|
+
:return: The error of this AddKeystorePermissionResponse.
|
88
|
+
:rtype: object
|
89
|
+
"""
|
90
|
+
return self._error
|
91
|
+
|
92
|
+
@error.setter
|
93
|
+
def error(self, error):
|
94
|
+
r"""Sets the error of this AddKeystorePermissionResponse.
|
95
|
+
|
96
|
+
错误
|
97
|
+
|
98
|
+
:param error: The error of this AddKeystorePermissionResponse.
|
99
|
+
:type error: object
|
100
|
+
"""
|
101
|
+
self._error = error
|
102
|
+
|
103
|
+
@property
|
104
|
+
def result(self):
|
105
|
+
r"""Gets the result of this AddKeystorePermissionResponse.
|
106
|
+
|
107
|
+
结果
|
108
|
+
|
109
|
+
:return: The result of this AddKeystorePermissionResponse.
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._result
|
113
|
+
|
114
|
+
@result.setter
|
115
|
+
def result(self, result):
|
116
|
+
r"""Sets the result of this AddKeystorePermissionResponse.
|
117
|
+
|
118
|
+
结果
|
119
|
+
|
120
|
+
:param result: The result of this AddKeystorePermissionResponse.
|
121
|
+
:type result: str
|
122
|
+
"""
|
123
|
+
self._result = result
|
124
|
+
|
125
|
+
def to_dict(self):
|
126
|
+
"""Returns the model properties as a dict"""
|
127
|
+
result = {}
|
128
|
+
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
130
|
+
value = getattr(self, attr)
|
131
|
+
if isinstance(value, list):
|
132
|
+
result[attr] = list(map(
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
134
|
+
value
|
135
|
+
))
|
136
|
+
elif hasattr(value, "to_dict"):
|
137
|
+
result[attr] = value.to_dict()
|
138
|
+
elif isinstance(value, dict):
|
139
|
+
result[attr] = dict(map(
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
142
|
+
value.items()
|
143
|
+
))
|
144
|
+
else:
|
145
|
+
if attr in self.sensitive_list:
|
146
|
+
result[attr] = "****"
|
147
|
+
else:
|
148
|
+
result[attr] = value
|
149
|
+
|
150
|
+
return result
|
151
|
+
|
152
|
+
def to_str(self):
|
153
|
+
"""Returns the string representation of the model"""
|
154
|
+
import simplejson as json
|
155
|
+
if six.PY2:
|
156
|
+
import sys
|
157
|
+
reload(sys)
|
158
|
+
sys.setdefaultencoding("utf-8")
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
160
|
+
|
161
|
+
def __repr__(self):
|
162
|
+
"""For `print`"""
|
163
|
+
return self.to_str()
|
164
|
+
|
165
|
+
def __eq__(self, other):
|
166
|
+
"""Returns true if both objects are equal"""
|
167
|
+
if not isinstance(other, AddKeystorePermissionResponse):
|
168
|
+
return False
|
169
|
+
|
170
|
+
return self.__dict__ == other.__dict__
|
171
|
+
|
172
|
+
def __ne__(self, other):
|
173
|
+
"""Returns true if both objects are not equal"""
|
174
|
+
return not self == other
|