huaweicloudsdkcodeartsbuild 3.1.149__py2.py3-none-any.whl → 3.1.151__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 +83 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1885 -128
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1885 -128
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +83 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_response_body.py +347 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_params.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_params_body_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record.py +981 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record_build_record_type.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_record_parameters.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_name_is_exists_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_keystore_by_name_response.py +85 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_request.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_by_job_id_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_keystore_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_official_template_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_request.py +373 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_project_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_records_request.py +317 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_records_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_records_result.py +140 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_records_result_pagination.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_related_project_info_result_project_info_list.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
- huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
- huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_info_record_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_params_list_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_build_script_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_params.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_default_build_parameters_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_dockerfile_template_response.py +85 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_image_template_list_response_body_result_image_templates.py +318 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_request.py +199 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_time_result_chart.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_diff_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_config_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_info_result.py +724 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_notice_config_info_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_role_permission_result.py +492 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_system_parameters_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_keystore_permission_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_related_project_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_related_project_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_related_project_result_project_info_list.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/RECORD +92 -9
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.151.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,231 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowRelatedProjectResultProjectInfoList:
|
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
|
+
'identifier': 'str',
|
21
|
+
'name': 'str',
|
22
|
+
'author_id': 'str',
|
23
|
+
'is_creator': 'bool',
|
24
|
+
'author_domain_id': 'str'
|
25
|
+
}
|
26
|
+
|
27
|
+
attribute_map = {
|
28
|
+
'identifier': 'identifier',
|
29
|
+
'name': 'name',
|
30
|
+
'author_id': 'author_id',
|
31
|
+
'is_creator': 'is_creator',
|
32
|
+
'author_domain_id': 'author_domain_id'
|
33
|
+
}
|
34
|
+
|
35
|
+
def __init__(self, identifier=None, name=None, author_id=None, is_creator=None, author_domain_id=None):
|
36
|
+
r"""ShowRelatedProjectResultProjectInfoList
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param identifier: 唯一标识
|
41
|
+
:type identifier: str
|
42
|
+
:param name: 项目名
|
43
|
+
:type name: str
|
44
|
+
:param author_id: 用户ID
|
45
|
+
:type author_id: str
|
46
|
+
:param is_creator: 是否为项目创建者
|
47
|
+
:type is_creator: bool
|
48
|
+
:param author_domain_id: 项目创建者租户ID
|
49
|
+
:type author_domain_id: str
|
50
|
+
"""
|
51
|
+
|
52
|
+
|
53
|
+
|
54
|
+
self._identifier = None
|
55
|
+
self._name = None
|
56
|
+
self._author_id = None
|
57
|
+
self._is_creator = None
|
58
|
+
self._author_domain_id = None
|
59
|
+
self.discriminator = None
|
60
|
+
|
61
|
+
if identifier is not None:
|
62
|
+
self.identifier = identifier
|
63
|
+
if name is not None:
|
64
|
+
self.name = name
|
65
|
+
if author_id is not None:
|
66
|
+
self.author_id = author_id
|
67
|
+
if is_creator is not None:
|
68
|
+
self.is_creator = is_creator
|
69
|
+
if author_domain_id is not None:
|
70
|
+
self.author_domain_id = author_domain_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def identifier(self):
|
74
|
+
r"""Gets the identifier of this ShowRelatedProjectResultProjectInfoList.
|
75
|
+
|
76
|
+
唯一标识
|
77
|
+
|
78
|
+
:return: The identifier of this ShowRelatedProjectResultProjectInfoList.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._identifier
|
82
|
+
|
83
|
+
@identifier.setter
|
84
|
+
def identifier(self, identifier):
|
85
|
+
r"""Sets the identifier of this ShowRelatedProjectResultProjectInfoList.
|
86
|
+
|
87
|
+
唯一标识
|
88
|
+
|
89
|
+
:param identifier: The identifier of this ShowRelatedProjectResultProjectInfoList.
|
90
|
+
:type identifier: str
|
91
|
+
"""
|
92
|
+
self._identifier = identifier
|
93
|
+
|
94
|
+
@property
|
95
|
+
def name(self):
|
96
|
+
r"""Gets the name of this ShowRelatedProjectResultProjectInfoList.
|
97
|
+
|
98
|
+
项目名
|
99
|
+
|
100
|
+
:return: The name of this ShowRelatedProjectResultProjectInfoList.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._name
|
104
|
+
|
105
|
+
@name.setter
|
106
|
+
def name(self, name):
|
107
|
+
r"""Sets the name of this ShowRelatedProjectResultProjectInfoList.
|
108
|
+
|
109
|
+
项目名
|
110
|
+
|
111
|
+
:param name: The name of this ShowRelatedProjectResultProjectInfoList.
|
112
|
+
:type name: str
|
113
|
+
"""
|
114
|
+
self._name = name
|
115
|
+
|
116
|
+
@property
|
117
|
+
def author_id(self):
|
118
|
+
r"""Gets the author_id of this ShowRelatedProjectResultProjectInfoList.
|
119
|
+
|
120
|
+
用户ID
|
121
|
+
|
122
|
+
:return: The author_id of this ShowRelatedProjectResultProjectInfoList.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._author_id
|
126
|
+
|
127
|
+
@author_id.setter
|
128
|
+
def author_id(self, author_id):
|
129
|
+
r"""Sets the author_id of this ShowRelatedProjectResultProjectInfoList.
|
130
|
+
|
131
|
+
用户ID
|
132
|
+
|
133
|
+
:param author_id: The author_id of this ShowRelatedProjectResultProjectInfoList.
|
134
|
+
:type author_id: str
|
135
|
+
"""
|
136
|
+
self._author_id = author_id
|
137
|
+
|
138
|
+
@property
|
139
|
+
def is_creator(self):
|
140
|
+
r"""Gets the is_creator of this ShowRelatedProjectResultProjectInfoList.
|
141
|
+
|
142
|
+
是否为项目创建者
|
143
|
+
|
144
|
+
:return: The is_creator of this ShowRelatedProjectResultProjectInfoList.
|
145
|
+
:rtype: bool
|
146
|
+
"""
|
147
|
+
return self._is_creator
|
148
|
+
|
149
|
+
@is_creator.setter
|
150
|
+
def is_creator(self, is_creator):
|
151
|
+
r"""Sets the is_creator of this ShowRelatedProjectResultProjectInfoList.
|
152
|
+
|
153
|
+
是否为项目创建者
|
154
|
+
|
155
|
+
:param is_creator: The is_creator of this ShowRelatedProjectResultProjectInfoList.
|
156
|
+
:type is_creator: bool
|
157
|
+
"""
|
158
|
+
self._is_creator = is_creator
|
159
|
+
|
160
|
+
@property
|
161
|
+
def author_domain_id(self):
|
162
|
+
r"""Gets the author_domain_id of this ShowRelatedProjectResultProjectInfoList.
|
163
|
+
|
164
|
+
项目创建者租户ID
|
165
|
+
|
166
|
+
:return: The author_domain_id of this ShowRelatedProjectResultProjectInfoList.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._author_domain_id
|
170
|
+
|
171
|
+
@author_domain_id.setter
|
172
|
+
def author_domain_id(self, author_domain_id):
|
173
|
+
r"""Sets the author_domain_id of this ShowRelatedProjectResultProjectInfoList.
|
174
|
+
|
175
|
+
项目创建者租户ID
|
176
|
+
|
177
|
+
:param author_domain_id: The author_domain_id of this ShowRelatedProjectResultProjectInfoList.
|
178
|
+
:type author_domain_id: str
|
179
|
+
"""
|
180
|
+
self._author_domain_id = author_domain_id
|
181
|
+
|
182
|
+
def to_dict(self):
|
183
|
+
"""Returns the model properties as a dict"""
|
184
|
+
result = {}
|
185
|
+
|
186
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
187
|
+
value = getattr(self, attr)
|
188
|
+
if isinstance(value, list):
|
189
|
+
result[attr] = list(map(
|
190
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
191
|
+
value
|
192
|
+
))
|
193
|
+
elif hasattr(value, "to_dict"):
|
194
|
+
result[attr] = value.to_dict()
|
195
|
+
elif isinstance(value, dict):
|
196
|
+
result[attr] = dict(map(
|
197
|
+
lambda item: (item[0], item[1].to_dict())
|
198
|
+
if hasattr(item[1], "to_dict") else item,
|
199
|
+
value.items()
|
200
|
+
))
|
201
|
+
else:
|
202
|
+
if attr in self.sensitive_list:
|
203
|
+
result[attr] = "****"
|
204
|
+
else:
|
205
|
+
result[attr] = value
|
206
|
+
|
207
|
+
return result
|
208
|
+
|
209
|
+
def to_str(self):
|
210
|
+
"""Returns the string representation of the model"""
|
211
|
+
import simplejson as json
|
212
|
+
if six.PY2:
|
213
|
+
import sys
|
214
|
+
reload(sys)
|
215
|
+
sys.setdefaultencoding("utf-8")
|
216
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
217
|
+
|
218
|
+
def __repr__(self):
|
219
|
+
"""For `print`"""
|
220
|
+
return self.to_str()
|
221
|
+
|
222
|
+
def __eq__(self, other):
|
223
|
+
"""Returns true if both objects are equal"""
|
224
|
+
if not isinstance(other, ShowRelatedProjectResultProjectInfoList):
|
225
|
+
return False
|
226
|
+
|
227
|
+
return self.__dict__ == other.__dict__
|
228
|
+
|
229
|
+
def __ne__(self, other):
|
230
|
+
"""Returns true if both objects are not equal"""
|
231
|
+
return not self == other
|
@@ -0,0 +1,260 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowUserProjectPermissionResult:
|
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
|
+
'project_id': 'str',
|
21
|
+
'create_permission': 'bool',
|
22
|
+
'modify_permission': 'bool',
|
23
|
+
'group_permission': 'bool',
|
24
|
+
'role_id': 'str',
|
25
|
+
'role_name': 'str'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'project_id': 'project_id',
|
30
|
+
'create_permission': 'create_permission',
|
31
|
+
'modify_permission': 'modify_permission',
|
32
|
+
'group_permission': 'group_permission',
|
33
|
+
'role_id': 'role_id',
|
34
|
+
'role_name': 'role_name'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, project_id=None, create_permission=None, modify_permission=None, group_permission=None, role_id=None, role_name=None):
|
38
|
+
r"""ShowUserProjectPermissionResult
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param project_id: 工程编号
|
43
|
+
:type project_id: str
|
44
|
+
:param create_permission: 用户是否有创建权限
|
45
|
+
:type create_permission: bool
|
46
|
+
:param modify_permission: 用户是否有修改权限
|
47
|
+
:type modify_permission: bool
|
48
|
+
:param group_permission: 用户是否有分类权限
|
49
|
+
:type group_permission: bool
|
50
|
+
:param role_id: 角色ID
|
51
|
+
:type role_id: str
|
52
|
+
:param role_name: 角色名
|
53
|
+
:type role_name: str
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._project_id = None
|
59
|
+
self._create_permission = None
|
60
|
+
self._modify_permission = None
|
61
|
+
self._group_permission = None
|
62
|
+
self._role_id = None
|
63
|
+
self._role_name = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if project_id is not None:
|
67
|
+
self.project_id = project_id
|
68
|
+
if create_permission is not None:
|
69
|
+
self.create_permission = create_permission
|
70
|
+
if modify_permission is not None:
|
71
|
+
self.modify_permission = modify_permission
|
72
|
+
if group_permission is not None:
|
73
|
+
self.group_permission = group_permission
|
74
|
+
if role_id is not None:
|
75
|
+
self.role_id = role_id
|
76
|
+
if role_name is not None:
|
77
|
+
self.role_name = role_name
|
78
|
+
|
79
|
+
@property
|
80
|
+
def project_id(self):
|
81
|
+
r"""Gets the project_id of this ShowUserProjectPermissionResult.
|
82
|
+
|
83
|
+
工程编号
|
84
|
+
|
85
|
+
:return: The project_id of this ShowUserProjectPermissionResult.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._project_id
|
89
|
+
|
90
|
+
@project_id.setter
|
91
|
+
def project_id(self, project_id):
|
92
|
+
r"""Sets the project_id of this ShowUserProjectPermissionResult.
|
93
|
+
|
94
|
+
工程编号
|
95
|
+
|
96
|
+
:param project_id: The project_id of this ShowUserProjectPermissionResult.
|
97
|
+
:type project_id: str
|
98
|
+
"""
|
99
|
+
self._project_id = project_id
|
100
|
+
|
101
|
+
@property
|
102
|
+
def create_permission(self):
|
103
|
+
r"""Gets the create_permission of this ShowUserProjectPermissionResult.
|
104
|
+
|
105
|
+
用户是否有创建权限
|
106
|
+
|
107
|
+
:return: The create_permission of this ShowUserProjectPermissionResult.
|
108
|
+
:rtype: bool
|
109
|
+
"""
|
110
|
+
return self._create_permission
|
111
|
+
|
112
|
+
@create_permission.setter
|
113
|
+
def create_permission(self, create_permission):
|
114
|
+
r"""Sets the create_permission of this ShowUserProjectPermissionResult.
|
115
|
+
|
116
|
+
用户是否有创建权限
|
117
|
+
|
118
|
+
:param create_permission: The create_permission of this ShowUserProjectPermissionResult.
|
119
|
+
:type create_permission: bool
|
120
|
+
"""
|
121
|
+
self._create_permission = create_permission
|
122
|
+
|
123
|
+
@property
|
124
|
+
def modify_permission(self):
|
125
|
+
r"""Gets the modify_permission of this ShowUserProjectPermissionResult.
|
126
|
+
|
127
|
+
用户是否有修改权限
|
128
|
+
|
129
|
+
:return: The modify_permission of this ShowUserProjectPermissionResult.
|
130
|
+
:rtype: bool
|
131
|
+
"""
|
132
|
+
return self._modify_permission
|
133
|
+
|
134
|
+
@modify_permission.setter
|
135
|
+
def modify_permission(self, modify_permission):
|
136
|
+
r"""Sets the modify_permission of this ShowUserProjectPermissionResult.
|
137
|
+
|
138
|
+
用户是否有修改权限
|
139
|
+
|
140
|
+
:param modify_permission: The modify_permission of this ShowUserProjectPermissionResult.
|
141
|
+
:type modify_permission: bool
|
142
|
+
"""
|
143
|
+
self._modify_permission = modify_permission
|
144
|
+
|
145
|
+
@property
|
146
|
+
def group_permission(self):
|
147
|
+
r"""Gets the group_permission of this ShowUserProjectPermissionResult.
|
148
|
+
|
149
|
+
用户是否有分类权限
|
150
|
+
|
151
|
+
:return: The group_permission of this ShowUserProjectPermissionResult.
|
152
|
+
:rtype: bool
|
153
|
+
"""
|
154
|
+
return self._group_permission
|
155
|
+
|
156
|
+
@group_permission.setter
|
157
|
+
def group_permission(self, group_permission):
|
158
|
+
r"""Sets the group_permission of this ShowUserProjectPermissionResult.
|
159
|
+
|
160
|
+
用户是否有分类权限
|
161
|
+
|
162
|
+
:param group_permission: The group_permission of this ShowUserProjectPermissionResult.
|
163
|
+
:type group_permission: bool
|
164
|
+
"""
|
165
|
+
self._group_permission = group_permission
|
166
|
+
|
167
|
+
@property
|
168
|
+
def role_id(self):
|
169
|
+
r"""Gets the role_id of this ShowUserProjectPermissionResult.
|
170
|
+
|
171
|
+
角色ID
|
172
|
+
|
173
|
+
:return: The role_id of this ShowUserProjectPermissionResult.
|
174
|
+
:rtype: str
|
175
|
+
"""
|
176
|
+
return self._role_id
|
177
|
+
|
178
|
+
@role_id.setter
|
179
|
+
def role_id(self, role_id):
|
180
|
+
r"""Sets the role_id of this ShowUserProjectPermissionResult.
|
181
|
+
|
182
|
+
角色ID
|
183
|
+
|
184
|
+
:param role_id: The role_id of this ShowUserProjectPermissionResult.
|
185
|
+
:type role_id: str
|
186
|
+
"""
|
187
|
+
self._role_id = role_id
|
188
|
+
|
189
|
+
@property
|
190
|
+
def role_name(self):
|
191
|
+
r"""Gets the role_name of this ShowUserProjectPermissionResult.
|
192
|
+
|
193
|
+
角色名
|
194
|
+
|
195
|
+
:return: The role_name of this ShowUserProjectPermissionResult.
|
196
|
+
:rtype: str
|
197
|
+
"""
|
198
|
+
return self._role_name
|
199
|
+
|
200
|
+
@role_name.setter
|
201
|
+
def role_name(self, role_name):
|
202
|
+
r"""Sets the role_name of this ShowUserProjectPermissionResult.
|
203
|
+
|
204
|
+
角色名
|
205
|
+
|
206
|
+
:param role_name: The role_name of this ShowUserProjectPermissionResult.
|
207
|
+
:type role_name: str
|
208
|
+
"""
|
209
|
+
self._role_name = role_name
|
210
|
+
|
211
|
+
def to_dict(self):
|
212
|
+
"""Returns the model properties as a dict"""
|
213
|
+
result = {}
|
214
|
+
|
215
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
216
|
+
value = getattr(self, attr)
|
217
|
+
if isinstance(value, list):
|
218
|
+
result[attr] = list(map(
|
219
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
220
|
+
value
|
221
|
+
))
|
222
|
+
elif hasattr(value, "to_dict"):
|
223
|
+
result[attr] = value.to_dict()
|
224
|
+
elif isinstance(value, dict):
|
225
|
+
result[attr] = dict(map(
|
226
|
+
lambda item: (item[0], item[1].to_dict())
|
227
|
+
if hasattr(item[1], "to_dict") else item,
|
228
|
+
value.items()
|
229
|
+
))
|
230
|
+
else:
|
231
|
+
if attr in self.sensitive_list:
|
232
|
+
result[attr] = "****"
|
233
|
+
else:
|
234
|
+
result[attr] = value
|
235
|
+
|
236
|
+
return result
|
237
|
+
|
238
|
+
def to_str(self):
|
239
|
+
"""Returns the string representation of the model"""
|
240
|
+
import simplejson as json
|
241
|
+
if six.PY2:
|
242
|
+
import sys
|
243
|
+
reload(sys)
|
244
|
+
sys.setdefaultencoding("utf-8")
|
245
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
246
|
+
|
247
|
+
def __repr__(self):
|
248
|
+
"""For `print`"""
|
249
|
+
return self.to_str()
|
250
|
+
|
251
|
+
def __eq__(self, other):
|
252
|
+
"""Returns true if both objects are equal"""
|
253
|
+
if not isinstance(other, ShowUserProjectPermissionResult):
|
254
|
+
return False
|
255
|
+
|
256
|
+
return self.__dict__ == other.__dict__
|
257
|
+
|
258
|
+
def __ne__(self, other):
|
259
|
+
"""Returns true if both objects are not equal"""
|
260
|
+
return not self == other
|
@@ -0,0 +1,173 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class SystemParametersResult:
|
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
|
+
'id': 'int',
|
21
|
+
'parameter_name': 'str',
|
22
|
+
'description': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'id': 'id',
|
27
|
+
'parameter_name': 'parameter_name',
|
28
|
+
'description': 'description'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, id=None, parameter_name=None, description=None):
|
32
|
+
r"""SystemParametersResult
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param id: 编号
|
37
|
+
:type id: int
|
38
|
+
:param parameter_name: 参数名称
|
39
|
+
:type parameter_name: str
|
40
|
+
:param description: 参数描述
|
41
|
+
:type description: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._id = None
|
47
|
+
self._parameter_name = None
|
48
|
+
self._description = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
if id is not None:
|
52
|
+
self.id = id
|
53
|
+
if parameter_name is not None:
|
54
|
+
self.parameter_name = parameter_name
|
55
|
+
if description is not None:
|
56
|
+
self.description = description
|
57
|
+
|
58
|
+
@property
|
59
|
+
def id(self):
|
60
|
+
r"""Gets the id of this SystemParametersResult.
|
61
|
+
|
62
|
+
编号
|
63
|
+
|
64
|
+
:return: The id of this SystemParametersResult.
|
65
|
+
:rtype: int
|
66
|
+
"""
|
67
|
+
return self._id
|
68
|
+
|
69
|
+
@id.setter
|
70
|
+
def id(self, id):
|
71
|
+
r"""Sets the id of this SystemParametersResult.
|
72
|
+
|
73
|
+
编号
|
74
|
+
|
75
|
+
:param id: The id of this SystemParametersResult.
|
76
|
+
:type id: int
|
77
|
+
"""
|
78
|
+
self._id = id
|
79
|
+
|
80
|
+
@property
|
81
|
+
def parameter_name(self):
|
82
|
+
r"""Gets the parameter_name of this SystemParametersResult.
|
83
|
+
|
84
|
+
参数名称
|
85
|
+
|
86
|
+
:return: The parameter_name of this SystemParametersResult.
|
87
|
+
:rtype: str
|
88
|
+
"""
|
89
|
+
return self._parameter_name
|
90
|
+
|
91
|
+
@parameter_name.setter
|
92
|
+
def parameter_name(self, parameter_name):
|
93
|
+
r"""Sets the parameter_name of this SystemParametersResult.
|
94
|
+
|
95
|
+
参数名称
|
96
|
+
|
97
|
+
:param parameter_name: The parameter_name of this SystemParametersResult.
|
98
|
+
:type parameter_name: str
|
99
|
+
"""
|
100
|
+
self._parameter_name = parameter_name
|
101
|
+
|
102
|
+
@property
|
103
|
+
def description(self):
|
104
|
+
r"""Gets the description of this SystemParametersResult.
|
105
|
+
|
106
|
+
参数描述
|
107
|
+
|
108
|
+
:return: The description of this SystemParametersResult.
|
109
|
+
:rtype: str
|
110
|
+
"""
|
111
|
+
return self._description
|
112
|
+
|
113
|
+
@description.setter
|
114
|
+
def description(self, description):
|
115
|
+
r"""Sets the description of this SystemParametersResult.
|
116
|
+
|
117
|
+
参数描述
|
118
|
+
|
119
|
+
:param description: The description of this SystemParametersResult.
|
120
|
+
:type description: str
|
121
|
+
"""
|
122
|
+
self._description = description
|
123
|
+
|
124
|
+
def to_dict(self):
|
125
|
+
"""Returns the model properties as a dict"""
|
126
|
+
result = {}
|
127
|
+
|
128
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
129
|
+
value = getattr(self, attr)
|
130
|
+
if isinstance(value, list):
|
131
|
+
result[attr] = list(map(
|
132
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
133
|
+
value
|
134
|
+
))
|
135
|
+
elif hasattr(value, "to_dict"):
|
136
|
+
result[attr] = value.to_dict()
|
137
|
+
elif isinstance(value, dict):
|
138
|
+
result[attr] = dict(map(
|
139
|
+
lambda item: (item[0], item[1].to_dict())
|
140
|
+
if hasattr(item[1], "to_dict") else item,
|
141
|
+
value.items()
|
142
|
+
))
|
143
|
+
else:
|
144
|
+
if attr in self.sensitive_list:
|
145
|
+
result[attr] = "****"
|
146
|
+
else:
|
147
|
+
result[attr] = value
|
148
|
+
|
149
|
+
return result
|
150
|
+
|
151
|
+
def to_str(self):
|
152
|
+
"""Returns the string representation of the model"""
|
153
|
+
import simplejson as json
|
154
|
+
if six.PY2:
|
155
|
+
import sys
|
156
|
+
reload(sys)
|
157
|
+
sys.setdefaultencoding("utf-8")
|
158
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
159
|
+
|
160
|
+
def __repr__(self):
|
161
|
+
"""For `print`"""
|
162
|
+
return self.to_str()
|
163
|
+
|
164
|
+
def __eq__(self, other):
|
165
|
+
"""Returns true if both objects are equal"""
|
166
|
+
if not isinstance(other, SystemParametersResult):
|
167
|
+
return False
|
168
|
+
|
169
|
+
return self.__dict__ == other.__dict__
|
170
|
+
|
171
|
+
def __ne__(self, other):
|
172
|
+
"""Returns true if both objects are not equal"""
|
173
|
+
return not self == other
|