huaweicloudsdkcodeartsbuild 3.1.148__py2.py3-none-any.whl → 3.1.150__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 +77 -2
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1619 -123
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1619 -123
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +77 -2
- huaweicloudsdkcodeartsbuild/v3/model/build_info_record.py +604 -0
- huaweicloudsdkcodeartsbuild/v3/model/build_info_record_commit_info.py +144 -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/build_stage_record.py +608 -0
- huaweicloudsdkcodeartsbuild/v3/model/constraints.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_request.py +199 -0
- huaweicloudsdkcodeartsbuild/v3/model/download_real_time_log_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result.py → flow_graph2_result.py} +15 -15
- huaweicloudsdkcodeartsbuild/v3/model/{flow_graph_result_edges.py → flow_graph2_result_edges.py} +11 -11
- huaweicloudsdkcodeartsbuild/v3/model/full_stages_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_body_result.py +231 -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_build_info_record_request.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_build_info_record_response.py +170 -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_recycling_job_request.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recycling_job_response.py +228 -0
- huaweicloudsdkcodeartsbuild/v3/model/parameter.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/params.py +289 -0
- huaweicloudsdkcodeartsbuild/v3/model/real_time_log_response_body_result.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/recycling_job.py +347 -0
- huaweicloudsdkcodeartsbuild/v3/model/recycling_jobs_result.py +173 -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_full_stages_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_full_stages_response.py +170 -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_flow_graph_response.py +4 -4
- 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_success_ratio_request.py +199 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_build_success_ratio_result_every_day_report.py +144 -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_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_project_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_permission_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary.py +463 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_body_result.py +140 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_report_summary_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_running_status_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_running_status_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_running_status_result.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_project_permission_result.py +260 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_yaml_template_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/system_parameters_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/template_list.py +459 -0
- huaweicloudsdkcodeartsbuild/v3/region/codeartsbuild_region.py +6 -0
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/RECORD +88 -13
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.148.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,202 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowRunningStatusResult:
|
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
|
+
'last_job_id': 'str',
|
21
|
+
'last_build_no': 'str',
|
22
|
+
'last_build_status': 'str',
|
23
|
+
'is_running': 'bool'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'last_job_id': 'last_job_id',
|
28
|
+
'last_build_no': 'last_build_no',
|
29
|
+
'last_build_status': 'last_build_status',
|
30
|
+
'is_running': 'is_running'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, last_job_id=None, last_build_no=None, last_build_status=None, is_running=None):
|
34
|
+
r"""ShowRunningStatusResult
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param last_job_id: 任务ID
|
39
|
+
:type last_job_id: str
|
40
|
+
:param last_build_no: 最新构建编号
|
41
|
+
:type last_build_no: str
|
42
|
+
:param last_build_status: 最新构建状态
|
43
|
+
:type last_build_status: str
|
44
|
+
:param is_running: 是否在运行中
|
45
|
+
:type is_running: bool
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._last_job_id = None
|
51
|
+
self._last_build_no = None
|
52
|
+
self._last_build_status = None
|
53
|
+
self._is_running = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if last_job_id is not None:
|
57
|
+
self.last_job_id = last_job_id
|
58
|
+
if last_build_no is not None:
|
59
|
+
self.last_build_no = last_build_no
|
60
|
+
if last_build_status is not None:
|
61
|
+
self.last_build_status = last_build_status
|
62
|
+
if is_running is not None:
|
63
|
+
self.is_running = is_running
|
64
|
+
|
65
|
+
@property
|
66
|
+
def last_job_id(self):
|
67
|
+
r"""Gets the last_job_id of this ShowRunningStatusResult.
|
68
|
+
|
69
|
+
任务ID
|
70
|
+
|
71
|
+
:return: The last_job_id of this ShowRunningStatusResult.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._last_job_id
|
75
|
+
|
76
|
+
@last_job_id.setter
|
77
|
+
def last_job_id(self, last_job_id):
|
78
|
+
r"""Sets the last_job_id of this ShowRunningStatusResult.
|
79
|
+
|
80
|
+
任务ID
|
81
|
+
|
82
|
+
:param last_job_id: The last_job_id of this ShowRunningStatusResult.
|
83
|
+
:type last_job_id: str
|
84
|
+
"""
|
85
|
+
self._last_job_id = last_job_id
|
86
|
+
|
87
|
+
@property
|
88
|
+
def last_build_no(self):
|
89
|
+
r"""Gets the last_build_no of this ShowRunningStatusResult.
|
90
|
+
|
91
|
+
最新构建编号
|
92
|
+
|
93
|
+
:return: The last_build_no of this ShowRunningStatusResult.
|
94
|
+
:rtype: str
|
95
|
+
"""
|
96
|
+
return self._last_build_no
|
97
|
+
|
98
|
+
@last_build_no.setter
|
99
|
+
def last_build_no(self, last_build_no):
|
100
|
+
r"""Sets the last_build_no of this ShowRunningStatusResult.
|
101
|
+
|
102
|
+
最新构建编号
|
103
|
+
|
104
|
+
:param last_build_no: The last_build_no of this ShowRunningStatusResult.
|
105
|
+
:type last_build_no: str
|
106
|
+
"""
|
107
|
+
self._last_build_no = last_build_no
|
108
|
+
|
109
|
+
@property
|
110
|
+
def last_build_status(self):
|
111
|
+
r"""Gets the last_build_status of this ShowRunningStatusResult.
|
112
|
+
|
113
|
+
最新构建状态
|
114
|
+
|
115
|
+
:return: The last_build_status of this ShowRunningStatusResult.
|
116
|
+
:rtype: str
|
117
|
+
"""
|
118
|
+
return self._last_build_status
|
119
|
+
|
120
|
+
@last_build_status.setter
|
121
|
+
def last_build_status(self, last_build_status):
|
122
|
+
r"""Sets the last_build_status of this ShowRunningStatusResult.
|
123
|
+
|
124
|
+
最新构建状态
|
125
|
+
|
126
|
+
:param last_build_status: The last_build_status of this ShowRunningStatusResult.
|
127
|
+
:type last_build_status: str
|
128
|
+
"""
|
129
|
+
self._last_build_status = last_build_status
|
130
|
+
|
131
|
+
@property
|
132
|
+
def is_running(self):
|
133
|
+
r"""Gets the is_running of this ShowRunningStatusResult.
|
134
|
+
|
135
|
+
是否在运行中
|
136
|
+
|
137
|
+
:return: The is_running of this ShowRunningStatusResult.
|
138
|
+
:rtype: bool
|
139
|
+
"""
|
140
|
+
return self._is_running
|
141
|
+
|
142
|
+
@is_running.setter
|
143
|
+
def is_running(self, is_running):
|
144
|
+
r"""Sets the is_running of this ShowRunningStatusResult.
|
145
|
+
|
146
|
+
是否在运行中
|
147
|
+
|
148
|
+
:param is_running: The is_running of this ShowRunningStatusResult.
|
149
|
+
:type is_running: bool
|
150
|
+
"""
|
151
|
+
self._is_running = is_running
|
152
|
+
|
153
|
+
def to_dict(self):
|
154
|
+
"""Returns the model properties as a dict"""
|
155
|
+
result = {}
|
156
|
+
|
157
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
158
|
+
value = getattr(self, attr)
|
159
|
+
if isinstance(value, list):
|
160
|
+
result[attr] = list(map(
|
161
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
162
|
+
value
|
163
|
+
))
|
164
|
+
elif hasattr(value, "to_dict"):
|
165
|
+
result[attr] = value.to_dict()
|
166
|
+
elif isinstance(value, dict):
|
167
|
+
result[attr] = dict(map(
|
168
|
+
lambda item: (item[0], item[1].to_dict())
|
169
|
+
if hasattr(item[1], "to_dict") else item,
|
170
|
+
value.items()
|
171
|
+
))
|
172
|
+
else:
|
173
|
+
if attr in self.sensitive_list:
|
174
|
+
result[attr] = "****"
|
175
|
+
else:
|
176
|
+
result[attr] = value
|
177
|
+
|
178
|
+
return result
|
179
|
+
|
180
|
+
def to_str(self):
|
181
|
+
"""Returns the string representation of the model"""
|
182
|
+
import simplejson as json
|
183
|
+
if six.PY2:
|
184
|
+
import sys
|
185
|
+
reload(sys)
|
186
|
+
sys.setdefaultencoding("utf-8")
|
187
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
188
|
+
|
189
|
+
def __repr__(self):
|
190
|
+
"""For `print`"""
|
191
|
+
return self.to_str()
|
192
|
+
|
193
|
+
def __eq__(self, other):
|
194
|
+
"""Returns true if both objects are equal"""
|
195
|
+
if not isinstance(other, ShowRunningStatusResult):
|
196
|
+
return False
|
197
|
+
|
198
|
+
return self.__dict__ == other.__dict__
|
199
|
+
|
200
|
+
def __ne__(self, other):
|
201
|
+
"""Returns true if both objects are not equal"""
|
202
|
+
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,143 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowYamlTemplateRequest:
|
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
|
+
'default_host': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id',
|
26
|
+
'default_host': 'default_host'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, job_id=None, default_host=None):
|
30
|
+
r"""ShowYamlTemplateRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param job_id: 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
35
|
+
:type job_id: str
|
36
|
+
:param default_host: 默认主机类型
|
37
|
+
:type default_host: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._job_id = None
|
43
|
+
self._default_host = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.job_id = job_id
|
47
|
+
if default_host is not None:
|
48
|
+
self.default_host = default_host
|
49
|
+
|
50
|
+
@property
|
51
|
+
def job_id(self):
|
52
|
+
r"""Gets the job_id of this ShowYamlTemplateRequest.
|
53
|
+
|
54
|
+
构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
55
|
+
|
56
|
+
:return: The job_id of this ShowYamlTemplateRequest.
|
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 ShowYamlTemplateRequest.
|
64
|
+
|
65
|
+
构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
66
|
+
|
67
|
+
:param job_id: The job_id of this ShowYamlTemplateRequest.
|
68
|
+
:type job_id: str
|
69
|
+
"""
|
70
|
+
self._job_id = job_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def default_host(self):
|
74
|
+
r"""Gets the default_host of this ShowYamlTemplateRequest.
|
75
|
+
|
76
|
+
默认主机类型
|
77
|
+
|
78
|
+
:return: The default_host of this ShowYamlTemplateRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._default_host
|
82
|
+
|
83
|
+
@default_host.setter
|
84
|
+
def default_host(self, default_host):
|
85
|
+
r"""Sets the default_host of this ShowYamlTemplateRequest.
|
86
|
+
|
87
|
+
默认主机类型
|
88
|
+
|
89
|
+
:param default_host: The default_host of this ShowYamlTemplateRequest.
|
90
|
+
:type default_host: str
|
91
|
+
"""
|
92
|
+
self._default_host = default_host
|
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, ShowYamlTemplateRequest):
|
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
|