huaweicloudsdkcodeartsbuild 3.1.149__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 +50 -0
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1120 -105
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1120 -105
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +50 -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/constraints.py +173 -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_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/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_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_build_record_response.py +170 -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_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_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.150.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/RECORD +59 -9
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.149.dist-info → huaweicloudsdkcodeartsbuild-3.1.150.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,170 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowJobConfigDiffRequest:
|
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
|
+
'revisedl_no': 'str',
|
22
|
+
'original_no': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'job_id': 'job_id',
|
27
|
+
'revisedl_no': 'revisedl_no',
|
28
|
+
'original_no': 'original_no'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, job_id=None, revisedl_no=None, original_no=None):
|
32
|
+
r"""ShowJobConfigDiffRequest
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param job_id: 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
37
|
+
:type job_id: str
|
38
|
+
:param revisedl_no: 新记录的序号
|
39
|
+
:type revisedl_no: str
|
40
|
+
:param original_no: 原记录的序号
|
41
|
+
:type original_no: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._job_id = None
|
47
|
+
self._revisedl_no = None
|
48
|
+
self._original_no = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.job_id = job_id
|
52
|
+
self.revisedl_no = revisedl_no
|
53
|
+
self.original_no = original_no
|
54
|
+
|
55
|
+
@property
|
56
|
+
def job_id(self):
|
57
|
+
r"""Gets the job_id of this ShowJobConfigDiffRequest.
|
58
|
+
|
59
|
+
构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
60
|
+
|
61
|
+
:return: The job_id of this ShowJobConfigDiffRequest.
|
62
|
+
:rtype: str
|
63
|
+
"""
|
64
|
+
return self._job_id
|
65
|
+
|
66
|
+
@job_id.setter
|
67
|
+
def job_id(self, job_id):
|
68
|
+
r"""Sets the job_id of this ShowJobConfigDiffRequest.
|
69
|
+
|
70
|
+
构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
71
|
+
|
72
|
+
:param job_id: The job_id of this ShowJobConfigDiffRequest.
|
73
|
+
:type job_id: str
|
74
|
+
"""
|
75
|
+
self._job_id = job_id
|
76
|
+
|
77
|
+
@property
|
78
|
+
def revisedl_no(self):
|
79
|
+
r"""Gets the revisedl_no of this ShowJobConfigDiffRequest.
|
80
|
+
|
81
|
+
新记录的序号
|
82
|
+
|
83
|
+
:return: The revisedl_no of this ShowJobConfigDiffRequest.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._revisedl_no
|
87
|
+
|
88
|
+
@revisedl_no.setter
|
89
|
+
def revisedl_no(self, revisedl_no):
|
90
|
+
r"""Sets the revisedl_no of this ShowJobConfigDiffRequest.
|
91
|
+
|
92
|
+
新记录的序号
|
93
|
+
|
94
|
+
:param revisedl_no: The revisedl_no of this ShowJobConfigDiffRequest.
|
95
|
+
:type revisedl_no: str
|
96
|
+
"""
|
97
|
+
self._revisedl_no = revisedl_no
|
98
|
+
|
99
|
+
@property
|
100
|
+
def original_no(self):
|
101
|
+
r"""Gets the original_no of this ShowJobConfigDiffRequest.
|
102
|
+
|
103
|
+
原记录的序号
|
104
|
+
|
105
|
+
:return: The original_no of this ShowJobConfigDiffRequest.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._original_no
|
109
|
+
|
110
|
+
@original_no.setter
|
111
|
+
def original_no(self, original_no):
|
112
|
+
r"""Sets the original_no of this ShowJobConfigDiffRequest.
|
113
|
+
|
114
|
+
原记录的序号
|
115
|
+
|
116
|
+
:param original_no: The original_no of this ShowJobConfigDiffRequest.
|
117
|
+
:type original_no: str
|
118
|
+
"""
|
119
|
+
self._original_no = original_no
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, ShowJobConfigDiffRequest):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
return not self == other
|
@@ -0,0 +1,145 @@
|
|
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 ShowJobConfigDiffResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'result': 'str',
|
22
|
+
'status': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'result': 'result',
|
27
|
+
'status': 'status'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, result=None, status=None):
|
31
|
+
r"""ShowJobConfigDiffResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param result: 差异内容
|
36
|
+
:type result: str
|
37
|
+
:param status: 状态信息
|
38
|
+
:type status: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ShowJobConfigDiffResponse, self).__init__()
|
42
|
+
|
43
|
+
self._result = None
|
44
|
+
self._status = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if result is not None:
|
48
|
+
self.result = result
|
49
|
+
if status is not None:
|
50
|
+
self.status = status
|
51
|
+
|
52
|
+
@property
|
53
|
+
def result(self):
|
54
|
+
r"""Gets the result of this ShowJobConfigDiffResponse.
|
55
|
+
|
56
|
+
差异内容
|
57
|
+
|
58
|
+
:return: The result of this ShowJobConfigDiffResponse.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._result
|
62
|
+
|
63
|
+
@result.setter
|
64
|
+
def result(self, result):
|
65
|
+
r"""Sets the result of this ShowJobConfigDiffResponse.
|
66
|
+
|
67
|
+
差异内容
|
68
|
+
|
69
|
+
:param result: The result of this ShowJobConfigDiffResponse.
|
70
|
+
:type result: str
|
71
|
+
"""
|
72
|
+
self._result = result
|
73
|
+
|
74
|
+
@property
|
75
|
+
def status(self):
|
76
|
+
r"""Gets the status of this ShowJobConfigDiffResponse.
|
77
|
+
|
78
|
+
状态信息
|
79
|
+
|
80
|
+
:return: The status of this ShowJobConfigDiffResponse.
|
81
|
+
:rtype: str
|
82
|
+
"""
|
83
|
+
return self._status
|
84
|
+
|
85
|
+
@status.setter
|
86
|
+
def status(self, status):
|
87
|
+
r"""Sets the status of this ShowJobConfigDiffResponse.
|
88
|
+
|
89
|
+
状态信息
|
90
|
+
|
91
|
+
:param status: The status of this ShowJobConfigDiffResponse.
|
92
|
+
:type status: str
|
93
|
+
"""
|
94
|
+
self._status = status
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ShowJobConfigDiffResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
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 ShowJobConfigRequest:
|
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
|
+
'get_all_params': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'job_id': 'job_id',
|
26
|
+
'get_all_params': 'get_all_params'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, job_id=None, get_all_params=None):
|
30
|
+
r"""ShowJobConfigRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param job_id: 构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
35
|
+
:type job_id: str
|
36
|
+
:param get_all_params: 输入\"true\"或者\"false\"来控制返回参数是不是完整的
|
37
|
+
:type get_all_params: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._job_id = None
|
43
|
+
self._get_all_params = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.job_id = job_id
|
47
|
+
if get_all_params is not None:
|
48
|
+
self.get_all_params = get_all_params
|
49
|
+
|
50
|
+
@property
|
51
|
+
def job_id(self):
|
52
|
+
r"""Gets the job_id of this ShowJobConfigRequest.
|
53
|
+
|
54
|
+
构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
55
|
+
|
56
|
+
:return: The job_id of this ShowJobConfigRequest.
|
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 ShowJobConfigRequest.
|
64
|
+
|
65
|
+
构建的任务ID; 编辑构建任务时,浏览器URL末尾的32位数字、字母组合的字符串。
|
66
|
+
|
67
|
+
:param job_id: The job_id of this ShowJobConfigRequest.
|
68
|
+
:type job_id: str
|
69
|
+
"""
|
70
|
+
self._job_id = job_id
|
71
|
+
|
72
|
+
@property
|
73
|
+
def get_all_params(self):
|
74
|
+
r"""Gets the get_all_params of this ShowJobConfigRequest.
|
75
|
+
|
76
|
+
输入\"true\"或者\"false\"来控制返回参数是不是完整的
|
77
|
+
|
78
|
+
:return: The get_all_params of this ShowJobConfigRequest.
|
79
|
+
:rtype: str
|
80
|
+
"""
|
81
|
+
return self._get_all_params
|
82
|
+
|
83
|
+
@get_all_params.setter
|
84
|
+
def get_all_params(self, get_all_params):
|
85
|
+
r"""Sets the get_all_params of this ShowJobConfigRequest.
|
86
|
+
|
87
|
+
输入\"true\"或者\"false\"来控制返回参数是不是完整的
|
88
|
+
|
89
|
+
:param get_all_params: The get_all_params of this ShowJobConfigRequest.
|
90
|
+
:type get_all_params: str
|
91
|
+
"""
|
92
|
+
self._get_all_params = get_all_params
|
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, ShowJobConfigRequest):
|
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
|
@@ -0,0 +1,170 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ShowJobConfigResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'result': 'CreateBuildJobRequestBody',
|
22
|
+
'error': 'str',
|
23
|
+
'status': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'result': 'result',
|
28
|
+
'error': 'error',
|
29
|
+
'status': 'status'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, result=None, error=None, status=None):
|
33
|
+
r"""ShowJobConfigResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param result:
|
38
|
+
:type result: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobRequestBody`
|
39
|
+
:param error: 返回错误信息
|
40
|
+
:type error: str
|
41
|
+
:param status: 返回状态信息
|
42
|
+
:type status: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(ShowJobConfigResponse, self).__init__()
|
46
|
+
|
47
|
+
self._result = None
|
48
|
+
self._error = None
|
49
|
+
self._status = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if result is not None:
|
53
|
+
self.result = result
|
54
|
+
if error is not None:
|
55
|
+
self.error = error
|
56
|
+
if status is not None:
|
57
|
+
self.status = status
|
58
|
+
|
59
|
+
@property
|
60
|
+
def result(self):
|
61
|
+
r"""Gets the result of this ShowJobConfigResponse.
|
62
|
+
|
63
|
+
:return: The result of this ShowJobConfigResponse.
|
64
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobRequestBody`
|
65
|
+
"""
|
66
|
+
return self._result
|
67
|
+
|
68
|
+
@result.setter
|
69
|
+
def result(self, result):
|
70
|
+
r"""Sets the result of this ShowJobConfigResponse.
|
71
|
+
|
72
|
+
:param result: The result of this ShowJobConfigResponse.
|
73
|
+
:type result: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobRequestBody`
|
74
|
+
"""
|
75
|
+
self._result = result
|
76
|
+
|
77
|
+
@property
|
78
|
+
def error(self):
|
79
|
+
r"""Gets the error of this ShowJobConfigResponse.
|
80
|
+
|
81
|
+
返回错误信息
|
82
|
+
|
83
|
+
:return: The error of this ShowJobConfigResponse.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._error
|
87
|
+
|
88
|
+
@error.setter
|
89
|
+
def error(self, error):
|
90
|
+
r"""Sets the error of this ShowJobConfigResponse.
|
91
|
+
|
92
|
+
返回错误信息
|
93
|
+
|
94
|
+
:param error: The error of this ShowJobConfigResponse.
|
95
|
+
:type error: str
|
96
|
+
"""
|
97
|
+
self._error = error
|
98
|
+
|
99
|
+
@property
|
100
|
+
def status(self):
|
101
|
+
r"""Gets the status of this ShowJobConfigResponse.
|
102
|
+
|
103
|
+
返回状态信息
|
104
|
+
|
105
|
+
:return: The status of this ShowJobConfigResponse.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._status
|
109
|
+
|
110
|
+
@status.setter
|
111
|
+
def status(self, status):
|
112
|
+
r"""Sets the status of this ShowJobConfigResponse.
|
113
|
+
|
114
|
+
返回状态信息
|
115
|
+
|
116
|
+
:param status: The status of this ShowJobConfigResponse.
|
117
|
+
:type status: str
|
118
|
+
"""
|
119
|
+
self._status = status
|
120
|
+
|
121
|
+
def to_dict(self):
|
122
|
+
"""Returns the model properties as a dict"""
|
123
|
+
result = {}
|
124
|
+
|
125
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
126
|
+
value = getattr(self, attr)
|
127
|
+
if isinstance(value, list):
|
128
|
+
result[attr] = list(map(
|
129
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
130
|
+
value
|
131
|
+
))
|
132
|
+
elif hasattr(value, "to_dict"):
|
133
|
+
result[attr] = value.to_dict()
|
134
|
+
elif isinstance(value, dict):
|
135
|
+
result[attr] = dict(map(
|
136
|
+
lambda item: (item[0], item[1].to_dict())
|
137
|
+
if hasattr(item[1], "to_dict") else item,
|
138
|
+
value.items()
|
139
|
+
))
|
140
|
+
else:
|
141
|
+
if attr in self.sensitive_list:
|
142
|
+
result[attr] = "****"
|
143
|
+
else:
|
144
|
+
result[attr] = value
|
145
|
+
|
146
|
+
return result
|
147
|
+
|
148
|
+
def to_str(self):
|
149
|
+
"""Returns the string representation of the model"""
|
150
|
+
import simplejson as json
|
151
|
+
if six.PY2:
|
152
|
+
import sys
|
153
|
+
reload(sys)
|
154
|
+
sys.setdefaultencoding("utf-8")
|
155
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
156
|
+
|
157
|
+
def __repr__(self):
|
158
|
+
"""For `print`"""
|
159
|
+
return self.to_str()
|
160
|
+
|
161
|
+
def __eq__(self, other):
|
162
|
+
"""Returns true if both objects are equal"""
|
163
|
+
if not isinstance(other, ShowJobConfigResponse):
|
164
|
+
return False
|
165
|
+
|
166
|
+
return self.__dict__ == other.__dict__
|
167
|
+
|
168
|
+
def __ne__(self, other):
|
169
|
+
"""Returns true if both objects are not equal"""
|
170
|
+
return not self == other
|