huaweicloudsdkcodeartsbuild 3.1.164__py3-none-any.whl → 3.1.166__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 +66 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1553 -172
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1553 -172
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +66 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_favourite_custom_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_favourite_custom_template_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/add_keystore_permission_request_body.py +30 -1
- huaweicloudsdkcodeartsbuild/v3/model/apply_project_permission_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/apply_project_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_delete_build_jobs_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_delete_build_jobs_request_body.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_delete_build_jobs_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_update_job_role_permission_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/batch_update_job_role_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_internal_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_job_internal_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/countdown_list.py +256 -0
- huaweicloudsdkcodeartsbuild/v3/model/countdown_list_tips.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/countdown_request_body.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_job_group_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_job_group_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_group_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_group_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/domain_statuses.py +521 -0
- huaweicloudsdkcodeartsbuild/v3/model/domains_statuses_request_body.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/end_point_response.py +339 -0
- huaweicloudsdkcodeartsbuild/v3/model/end_point_response_authorization.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/end_point_response_created_by.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_group_request_body.py +231 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_group_response_body_result.py +434 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_group_tree_response_body.py +434 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_role_permission.py +434 -0
- huaweicloudsdkcodeartsbuild/v3/model/job_status_result_response_body_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_end_points_request.py +171 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_end_points_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_end_points_result_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_group_tree_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_group_tree_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_group_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_group_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_job_group_request_body.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_job_group_request_body_jobs.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/move_job_group_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/project_permission_request_body.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/remover_favourite_custom_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/remover_favourite_custom_template_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/role_permissions_request_body.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_available_inner_spec_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_available_inner_spec_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_details_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_details_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domain_status_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domain_status_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domain_status_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domains_statuses_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_domains_statuses_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_package_spec_count_down_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_package_spec_count_down_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_result.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_user_charge_type_result_main_resource_list.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/switched_packet_request.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/switched_packet_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/tips.py +202 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_job_group_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_job_group_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_notice_new_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_notice_new_response.py +174 -0
- {huaweicloudsdkcodeartsbuild-3.1.164.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info}/METADATA +9 -10
- {huaweicloudsdkcodeartsbuild-3.1.164.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info}/RECORD +75 -10
- {huaweicloudsdkcodeartsbuild-3.1.164.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info}/WHEEL +1 -2
- huaweicloudsdkcodeartsbuild-3.1.164.dist-info/top_level.txt +0 -1
- {huaweicloudsdkcodeartsbuild-3.1.164.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info/licenses}/LICENSE +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 RolePermissionsRequestBody:
|
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
|
+
'job_ids': 'list[str]',
|
22
|
+
'project_switch': 'bool',
|
23
|
+
'permissions': 'list[JobRolePermission]'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'project_id': 'project_id',
|
28
|
+
'job_ids': 'job_ids',
|
29
|
+
'project_switch': 'project_switch',
|
30
|
+
'permissions': 'permissions'
|
31
|
+
}
|
32
|
+
|
33
|
+
def __init__(self, project_id=None, job_ids=None, project_switch=None, permissions=None):
|
34
|
+
r"""RolePermissionsRequestBody
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param project_id: CodeArts项目ID。获取方式请参考[获取CodeArts项目ID](https://support.huaweicloud.com/api-codeci/cloudbuild_03_0022.html)。
|
39
|
+
:type project_id: str
|
40
|
+
:param job_ids: 任务id集合
|
41
|
+
:type job_ids: list[str]
|
42
|
+
:param project_switch: 是否同步最新项目权限
|
43
|
+
:type project_switch: bool
|
44
|
+
:param permissions: 角色权限信息
|
45
|
+
:type permissions: list[:class:`huaweicloudsdkcodeartsbuild.v3.JobRolePermission`]
|
46
|
+
"""
|
47
|
+
|
48
|
+
|
49
|
+
|
50
|
+
self._project_id = None
|
51
|
+
self._job_ids = None
|
52
|
+
self._project_switch = None
|
53
|
+
self._permissions = None
|
54
|
+
self.discriminator = None
|
55
|
+
|
56
|
+
if project_id is not None:
|
57
|
+
self.project_id = project_id
|
58
|
+
if job_ids is not None:
|
59
|
+
self.job_ids = job_ids
|
60
|
+
if project_switch is not None:
|
61
|
+
self.project_switch = project_switch
|
62
|
+
if permissions is not None:
|
63
|
+
self.permissions = permissions
|
64
|
+
|
65
|
+
@property
|
66
|
+
def project_id(self):
|
67
|
+
r"""Gets the project_id of this RolePermissionsRequestBody.
|
68
|
+
|
69
|
+
CodeArts项目ID。获取方式请参考[获取CodeArts项目ID](https://support.huaweicloud.com/api-codeci/cloudbuild_03_0022.html)。
|
70
|
+
|
71
|
+
:return: The project_id of this RolePermissionsRequestBody.
|
72
|
+
:rtype: str
|
73
|
+
"""
|
74
|
+
return self._project_id
|
75
|
+
|
76
|
+
@project_id.setter
|
77
|
+
def project_id(self, project_id):
|
78
|
+
r"""Sets the project_id of this RolePermissionsRequestBody.
|
79
|
+
|
80
|
+
CodeArts项目ID。获取方式请参考[获取CodeArts项目ID](https://support.huaweicloud.com/api-codeci/cloudbuild_03_0022.html)。
|
81
|
+
|
82
|
+
:param project_id: The project_id of this RolePermissionsRequestBody.
|
83
|
+
:type project_id: str
|
84
|
+
"""
|
85
|
+
self._project_id = project_id
|
86
|
+
|
87
|
+
@property
|
88
|
+
def job_ids(self):
|
89
|
+
r"""Gets the job_ids of this RolePermissionsRequestBody.
|
90
|
+
|
91
|
+
任务id集合
|
92
|
+
|
93
|
+
:return: The job_ids of this RolePermissionsRequestBody.
|
94
|
+
:rtype: list[str]
|
95
|
+
"""
|
96
|
+
return self._job_ids
|
97
|
+
|
98
|
+
@job_ids.setter
|
99
|
+
def job_ids(self, job_ids):
|
100
|
+
r"""Sets the job_ids of this RolePermissionsRequestBody.
|
101
|
+
|
102
|
+
任务id集合
|
103
|
+
|
104
|
+
:param job_ids: The job_ids of this RolePermissionsRequestBody.
|
105
|
+
:type job_ids: list[str]
|
106
|
+
"""
|
107
|
+
self._job_ids = job_ids
|
108
|
+
|
109
|
+
@property
|
110
|
+
def project_switch(self):
|
111
|
+
r"""Gets the project_switch of this RolePermissionsRequestBody.
|
112
|
+
|
113
|
+
是否同步最新项目权限
|
114
|
+
|
115
|
+
:return: The project_switch of this RolePermissionsRequestBody.
|
116
|
+
:rtype: bool
|
117
|
+
"""
|
118
|
+
return self._project_switch
|
119
|
+
|
120
|
+
@project_switch.setter
|
121
|
+
def project_switch(self, project_switch):
|
122
|
+
r"""Sets the project_switch of this RolePermissionsRequestBody.
|
123
|
+
|
124
|
+
是否同步最新项目权限
|
125
|
+
|
126
|
+
:param project_switch: The project_switch of this RolePermissionsRequestBody.
|
127
|
+
:type project_switch: bool
|
128
|
+
"""
|
129
|
+
self._project_switch = project_switch
|
130
|
+
|
131
|
+
@property
|
132
|
+
def permissions(self):
|
133
|
+
r"""Gets the permissions of this RolePermissionsRequestBody.
|
134
|
+
|
135
|
+
角色权限信息
|
136
|
+
|
137
|
+
:return: The permissions of this RolePermissionsRequestBody.
|
138
|
+
:rtype: list[:class:`huaweicloudsdkcodeartsbuild.v3.JobRolePermission`]
|
139
|
+
"""
|
140
|
+
return self._permissions
|
141
|
+
|
142
|
+
@permissions.setter
|
143
|
+
def permissions(self, permissions):
|
144
|
+
r"""Sets the permissions of this RolePermissionsRequestBody.
|
145
|
+
|
146
|
+
角色权限信息
|
147
|
+
|
148
|
+
:param permissions: The permissions of this RolePermissionsRequestBody.
|
149
|
+
:type permissions: list[:class:`huaweicloudsdkcodeartsbuild.v3.JobRolePermission`]
|
150
|
+
"""
|
151
|
+
self._permissions = permissions
|
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, RolePermissionsRequestBody):
|
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,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowAvailableInnerSpecRequest:
|
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
|
+
'arch': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'project_id': 'project_id',
|
26
|
+
'arch': 'arch'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, project_id=None, arch=None):
|
30
|
+
r"""ShowAvailableInnerSpecRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param project_id: CodeArts项目ID,32位数字、小写字母组合。
|
35
|
+
:type project_id: str
|
36
|
+
:param arch: 使用机器的架构,如x86-64、arm等
|
37
|
+
:type arch: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._project_id = None
|
43
|
+
self._arch = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.project_id = project_id
|
47
|
+
self.arch = arch
|
48
|
+
|
49
|
+
@property
|
50
|
+
def project_id(self):
|
51
|
+
r"""Gets the project_id of this ShowAvailableInnerSpecRequest.
|
52
|
+
|
53
|
+
CodeArts项目ID,32位数字、小写字母组合。
|
54
|
+
|
55
|
+
:return: The project_id of this ShowAvailableInnerSpecRequest.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._project_id
|
59
|
+
|
60
|
+
@project_id.setter
|
61
|
+
def project_id(self, project_id):
|
62
|
+
r"""Sets the project_id of this ShowAvailableInnerSpecRequest.
|
63
|
+
|
64
|
+
CodeArts项目ID,32位数字、小写字母组合。
|
65
|
+
|
66
|
+
:param project_id: The project_id of this ShowAvailableInnerSpecRequest.
|
67
|
+
:type project_id: str
|
68
|
+
"""
|
69
|
+
self._project_id = project_id
|
70
|
+
|
71
|
+
@property
|
72
|
+
def arch(self):
|
73
|
+
r"""Gets the arch of this ShowAvailableInnerSpecRequest.
|
74
|
+
|
75
|
+
使用机器的架构,如x86-64、arm等
|
76
|
+
|
77
|
+
:return: The arch of this ShowAvailableInnerSpecRequest.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._arch
|
81
|
+
|
82
|
+
@arch.setter
|
83
|
+
def arch(self, arch):
|
84
|
+
r"""Sets the arch of this ShowAvailableInnerSpecRequest.
|
85
|
+
|
86
|
+
使用机器的架构,如x86-64、arm等
|
87
|
+
|
88
|
+
:param arch: The arch of this ShowAvailableInnerSpecRequest.
|
89
|
+
:type arch: str
|
90
|
+
"""
|
91
|
+
self._arch = arch
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, ShowAvailableInnerSpecRequest):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|
@@ -0,0 +1,116 @@
|
|
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 ShowAvailableInnerSpecResponse(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
|
+
'body': 'list[str]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'body': 'body'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, body=None):
|
29
|
+
r"""ShowAvailableInnerSpecResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param body: **参数解释**: 内置执行机规格。 **取值范围**: 不涉及。
|
34
|
+
:type body: list[str]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ShowAvailableInnerSpecResponse, self).__init__()
|
38
|
+
|
39
|
+
self._body = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if body is not None:
|
43
|
+
self.body = body
|
44
|
+
|
45
|
+
@property
|
46
|
+
def body(self):
|
47
|
+
r"""Gets the body of this ShowAvailableInnerSpecResponse.
|
48
|
+
|
49
|
+
**参数解释**: 内置执行机规格。 **取值范围**: 不涉及。
|
50
|
+
|
51
|
+
:return: The body of this ShowAvailableInnerSpecResponse.
|
52
|
+
:rtype: list[str]
|
53
|
+
"""
|
54
|
+
return self._body
|
55
|
+
|
56
|
+
@body.setter
|
57
|
+
def body(self, body):
|
58
|
+
r"""Sets the body of this ShowAvailableInnerSpecResponse.
|
59
|
+
|
60
|
+
**参数解释**: 内置执行机规格。 **取值范围**: 不涉及。
|
61
|
+
|
62
|
+
:param body: The body of this ShowAvailableInnerSpecResponse.
|
63
|
+
:type body: list[str]
|
64
|
+
"""
|
65
|
+
self._body = body
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, ShowAvailableInnerSpecResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
return not self == other
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowBuildDetailsRequest:
|
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"""ShowBuildDetailsRequest
|
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
|
+
self.build_no = build_no
|
48
|
+
|
49
|
+
@property
|
50
|
+
def job_id(self):
|
51
|
+
r"""Gets the job_id of this ShowBuildDetailsRequest.
|
52
|
+
|
53
|
+
构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
54
|
+
|
55
|
+
:return: The job_id of this ShowBuildDetailsRequest.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._job_id
|
59
|
+
|
60
|
+
@job_id.setter
|
61
|
+
def job_id(self, job_id):
|
62
|
+
r"""Sets the job_id of this ShowBuildDetailsRequest.
|
63
|
+
|
64
|
+
构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
65
|
+
|
66
|
+
:param job_id: The job_id of this ShowBuildDetailsRequest.
|
67
|
+
:type job_id: str
|
68
|
+
"""
|
69
|
+
self._job_id = job_id
|
70
|
+
|
71
|
+
@property
|
72
|
+
def build_no(self):
|
73
|
+
r"""Gets the build_no of this ShowBuildDetailsRequest.
|
74
|
+
|
75
|
+
构建任务的构建编号,从1开始,每次构建递增1
|
76
|
+
|
77
|
+
:return: The build_no of this ShowBuildDetailsRequest.
|
78
|
+
:rtype: int
|
79
|
+
"""
|
80
|
+
return self._build_no
|
81
|
+
|
82
|
+
@build_no.setter
|
83
|
+
def build_no(self, build_no):
|
84
|
+
r"""Sets the build_no of this ShowBuildDetailsRequest.
|
85
|
+
|
86
|
+
构建任务的构建编号,从1开始,每次构建递增1
|
87
|
+
|
88
|
+
:param build_no: The build_no of this ShowBuildDetailsRequest.
|
89
|
+
:type build_no: int
|
90
|
+
"""
|
91
|
+
self._build_no = build_no
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
122
|
+
import simplejson as json
|
123
|
+
if six.PY2:
|
124
|
+
import sys
|
125
|
+
reload(sys)
|
126
|
+
sys.setdefaultencoding("utf-8")
|
127
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, ShowBuildDetailsRequest):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|