huaweicloudsdkcodeartsbuild 3.1.165__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.165.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info}/METADATA +9 -10
- {huaweicloudsdkcodeartsbuild-3.1.165.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info}/RECORD +75 -10
- {huaweicloudsdkcodeartsbuild-3.1.165.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info}/WHEEL +1 -2
- huaweicloudsdkcodeartsbuild-3.1.165.dist-info/top_level.txt +0 -1
- {huaweicloudsdkcodeartsbuild-3.1.165.dist-info → huaweicloudsdkcodeartsbuild-3.1.166.dist-info/licenses}/LICENSE +0 -0
@@ -0,0 +1,174 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class BatchUpdateJobRolePermissionResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'status': 'str',
|
22
|
+
'error': 'object',
|
23
|
+
'result': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'status': 'status',
|
28
|
+
'error': 'error',
|
29
|
+
'result': 'result'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, status=None, error=None, result=None):
|
33
|
+
r"""BatchUpdateJobRolePermissionResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param status: 状态
|
38
|
+
:type status: str
|
39
|
+
:param error: 错误
|
40
|
+
:type error: object
|
41
|
+
:param result: 结果
|
42
|
+
:type result: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(BatchUpdateJobRolePermissionResponse, self).__init__()
|
46
|
+
|
47
|
+
self._status = None
|
48
|
+
self._error = None
|
49
|
+
self._result = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if status is not None:
|
53
|
+
self.status = status
|
54
|
+
if error is not None:
|
55
|
+
self.error = error
|
56
|
+
if result is not None:
|
57
|
+
self.result = result
|
58
|
+
|
59
|
+
@property
|
60
|
+
def status(self):
|
61
|
+
r"""Gets the status of this BatchUpdateJobRolePermissionResponse.
|
62
|
+
|
63
|
+
状态
|
64
|
+
|
65
|
+
:return: The status of this BatchUpdateJobRolePermissionResponse.
|
66
|
+
:rtype: str
|
67
|
+
"""
|
68
|
+
return self._status
|
69
|
+
|
70
|
+
@status.setter
|
71
|
+
def status(self, status):
|
72
|
+
r"""Sets the status of this BatchUpdateJobRolePermissionResponse.
|
73
|
+
|
74
|
+
状态
|
75
|
+
|
76
|
+
:param status: The status of this BatchUpdateJobRolePermissionResponse.
|
77
|
+
:type status: str
|
78
|
+
"""
|
79
|
+
self._status = status
|
80
|
+
|
81
|
+
@property
|
82
|
+
def error(self):
|
83
|
+
r"""Gets the error of this BatchUpdateJobRolePermissionResponse.
|
84
|
+
|
85
|
+
错误
|
86
|
+
|
87
|
+
:return: The error of this BatchUpdateJobRolePermissionResponse.
|
88
|
+
:rtype: object
|
89
|
+
"""
|
90
|
+
return self._error
|
91
|
+
|
92
|
+
@error.setter
|
93
|
+
def error(self, error):
|
94
|
+
r"""Sets the error of this BatchUpdateJobRolePermissionResponse.
|
95
|
+
|
96
|
+
错误
|
97
|
+
|
98
|
+
:param error: The error of this BatchUpdateJobRolePermissionResponse.
|
99
|
+
:type error: object
|
100
|
+
"""
|
101
|
+
self._error = error
|
102
|
+
|
103
|
+
@property
|
104
|
+
def result(self):
|
105
|
+
r"""Gets the result of this BatchUpdateJobRolePermissionResponse.
|
106
|
+
|
107
|
+
结果
|
108
|
+
|
109
|
+
:return: The result of this BatchUpdateJobRolePermissionResponse.
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._result
|
113
|
+
|
114
|
+
@result.setter
|
115
|
+
def result(self, result):
|
116
|
+
r"""Sets the result of this BatchUpdateJobRolePermissionResponse.
|
117
|
+
|
118
|
+
结果
|
119
|
+
|
120
|
+
:param result: The result of this BatchUpdateJobRolePermissionResponse.
|
121
|
+
:type result: str
|
122
|
+
"""
|
123
|
+
self._result = result
|
124
|
+
|
125
|
+
def to_dict(self):
|
126
|
+
"""Returns the model properties as a dict"""
|
127
|
+
result = {}
|
128
|
+
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
130
|
+
value = getattr(self, attr)
|
131
|
+
if isinstance(value, list):
|
132
|
+
result[attr] = list(map(
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
134
|
+
value
|
135
|
+
))
|
136
|
+
elif hasattr(value, "to_dict"):
|
137
|
+
result[attr] = value.to_dict()
|
138
|
+
elif isinstance(value, dict):
|
139
|
+
result[attr] = dict(map(
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
142
|
+
value.items()
|
143
|
+
))
|
144
|
+
else:
|
145
|
+
if attr in self.sensitive_list:
|
146
|
+
result[attr] = "****"
|
147
|
+
else:
|
148
|
+
result[attr] = value
|
149
|
+
|
150
|
+
return result
|
151
|
+
|
152
|
+
def to_str(self):
|
153
|
+
"""Returns the string representation of the model"""
|
154
|
+
import simplejson as json
|
155
|
+
if six.PY2:
|
156
|
+
import sys
|
157
|
+
reload(sys)
|
158
|
+
sys.setdefaultencoding("utf-8")
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
160
|
+
|
161
|
+
def __repr__(self):
|
162
|
+
"""For `print`"""
|
163
|
+
return self.to_str()
|
164
|
+
|
165
|
+
def __eq__(self, other):
|
166
|
+
"""Returns true if both objects are equal"""
|
167
|
+
if not isinstance(other, BatchUpdateJobRolePermissionResponse):
|
168
|
+
return False
|
169
|
+
|
170
|
+
return self.__dict__ == other.__dict__
|
171
|
+
|
172
|
+
def __ne__(self, other):
|
173
|
+
"""Returns true if both objects are not equal"""
|
174
|
+
return not self == other
|
@@ -0,0 +1,84 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CheckJobInternalRequest:
|
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
|
+
}
|
21
|
+
|
22
|
+
attribute_map = {
|
23
|
+
}
|
24
|
+
|
25
|
+
def __init__(self):
|
26
|
+
r"""CheckJobInternalRequest
|
27
|
+
|
28
|
+
The model defined in huaweicloud sdk
|
29
|
+
|
30
|
+
"""
|
31
|
+
|
32
|
+
|
33
|
+
self.discriminator = None
|
34
|
+
|
35
|
+
def to_dict(self):
|
36
|
+
"""Returns the model properties as a dict"""
|
37
|
+
result = {}
|
38
|
+
|
39
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
40
|
+
value = getattr(self, attr)
|
41
|
+
if isinstance(value, list):
|
42
|
+
result[attr] = list(map(
|
43
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
44
|
+
value
|
45
|
+
))
|
46
|
+
elif hasattr(value, "to_dict"):
|
47
|
+
result[attr] = value.to_dict()
|
48
|
+
elif isinstance(value, dict):
|
49
|
+
result[attr] = dict(map(
|
50
|
+
lambda item: (item[0], item[1].to_dict())
|
51
|
+
if hasattr(item[1], "to_dict") else item,
|
52
|
+
value.items()
|
53
|
+
))
|
54
|
+
else:
|
55
|
+
if attr in self.sensitive_list:
|
56
|
+
result[attr] = "****"
|
57
|
+
else:
|
58
|
+
result[attr] = value
|
59
|
+
|
60
|
+
return result
|
61
|
+
|
62
|
+
def to_str(self):
|
63
|
+
"""Returns the string representation of the model"""
|
64
|
+
import simplejson as json
|
65
|
+
if six.PY2:
|
66
|
+
import sys
|
67
|
+
reload(sys)
|
68
|
+
sys.setdefaultencoding("utf-8")
|
69
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
70
|
+
|
71
|
+
def __repr__(self):
|
72
|
+
"""For `print`"""
|
73
|
+
return self.to_str()
|
74
|
+
|
75
|
+
def __eq__(self, other):
|
76
|
+
"""Returns true if both objects are equal"""
|
77
|
+
if not isinstance(other, CheckJobInternalRequest):
|
78
|
+
return False
|
79
|
+
|
80
|
+
return self.__dict__ == other.__dict__
|
81
|
+
|
82
|
+
def __ne__(self, other):
|
83
|
+
"""Returns true if both objects are not equal"""
|
84
|
+
return not self == other
|
@@ -0,0 +1,174 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class CheckJobInternalResponse(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': 'bool',
|
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"""CheckJobInternalResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param result: 是否已开启内网安全访问
|
38
|
+
:type result: bool
|
39
|
+
:param error: 返回错误信息
|
40
|
+
:type error: str
|
41
|
+
:param status: 返回状态信息
|
42
|
+
:type status: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(CheckJobInternalResponse, 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 CheckJobInternalResponse.
|
62
|
+
|
63
|
+
是否已开启内网安全访问
|
64
|
+
|
65
|
+
:return: The result of this CheckJobInternalResponse.
|
66
|
+
:rtype: bool
|
67
|
+
"""
|
68
|
+
return self._result
|
69
|
+
|
70
|
+
@result.setter
|
71
|
+
def result(self, result):
|
72
|
+
r"""Sets the result of this CheckJobInternalResponse.
|
73
|
+
|
74
|
+
是否已开启内网安全访问
|
75
|
+
|
76
|
+
:param result: The result of this CheckJobInternalResponse.
|
77
|
+
:type result: bool
|
78
|
+
"""
|
79
|
+
self._result = result
|
80
|
+
|
81
|
+
@property
|
82
|
+
def error(self):
|
83
|
+
r"""Gets the error of this CheckJobInternalResponse.
|
84
|
+
|
85
|
+
返回错误信息
|
86
|
+
|
87
|
+
:return: The error of this CheckJobInternalResponse.
|
88
|
+
:rtype: str
|
89
|
+
"""
|
90
|
+
return self._error
|
91
|
+
|
92
|
+
@error.setter
|
93
|
+
def error(self, error):
|
94
|
+
r"""Sets the error of this CheckJobInternalResponse.
|
95
|
+
|
96
|
+
返回错误信息
|
97
|
+
|
98
|
+
:param error: The error of this CheckJobInternalResponse.
|
99
|
+
:type error: str
|
100
|
+
"""
|
101
|
+
self._error = error
|
102
|
+
|
103
|
+
@property
|
104
|
+
def status(self):
|
105
|
+
r"""Gets the status of this CheckJobInternalResponse.
|
106
|
+
|
107
|
+
返回状态信息
|
108
|
+
|
109
|
+
:return: The status of this CheckJobInternalResponse.
|
110
|
+
:rtype: str
|
111
|
+
"""
|
112
|
+
return self._status
|
113
|
+
|
114
|
+
@status.setter
|
115
|
+
def status(self, status):
|
116
|
+
r"""Sets the status of this CheckJobInternalResponse.
|
117
|
+
|
118
|
+
返回状态信息
|
119
|
+
|
120
|
+
:param status: The status of this CheckJobInternalResponse.
|
121
|
+
:type status: str
|
122
|
+
"""
|
123
|
+
self._status = status
|
124
|
+
|
125
|
+
def to_dict(self):
|
126
|
+
"""Returns the model properties as a dict"""
|
127
|
+
result = {}
|
128
|
+
|
129
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
130
|
+
value = getattr(self, attr)
|
131
|
+
if isinstance(value, list):
|
132
|
+
result[attr] = list(map(
|
133
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
134
|
+
value
|
135
|
+
))
|
136
|
+
elif hasattr(value, "to_dict"):
|
137
|
+
result[attr] = value.to_dict()
|
138
|
+
elif isinstance(value, dict):
|
139
|
+
result[attr] = dict(map(
|
140
|
+
lambda item: (item[0], item[1].to_dict())
|
141
|
+
if hasattr(item[1], "to_dict") else item,
|
142
|
+
value.items()
|
143
|
+
))
|
144
|
+
else:
|
145
|
+
if attr in self.sensitive_list:
|
146
|
+
result[attr] = "****"
|
147
|
+
else:
|
148
|
+
result[attr] = value
|
149
|
+
|
150
|
+
return result
|
151
|
+
|
152
|
+
def to_str(self):
|
153
|
+
"""Returns the string representation of the model"""
|
154
|
+
import simplejson as json
|
155
|
+
if six.PY2:
|
156
|
+
import sys
|
157
|
+
reload(sys)
|
158
|
+
sys.setdefaultencoding("utf-8")
|
159
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
160
|
+
|
161
|
+
def __repr__(self):
|
162
|
+
"""For `print`"""
|
163
|
+
return self.to_str()
|
164
|
+
|
165
|
+
def __eq__(self, other):
|
166
|
+
"""Returns true if both objects are equal"""
|
167
|
+
if not isinstance(other, CheckJobInternalResponse):
|
168
|
+
return False
|
169
|
+
|
170
|
+
return self.__dict__ == other.__dict__
|
171
|
+
|
172
|
+
def __ne__(self, other):
|
173
|
+
"""Returns true if both objects are not equal"""
|
174
|
+
return not self == other
|
@@ -0,0 +1,256 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class CountdownList:
|
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
|
+
'service_type': 'str',
|
21
|
+
'resource_id': 'str',
|
22
|
+
'resource_name': 'str',
|
23
|
+
'resource_type': 'str',
|
24
|
+
'resource_spec_code': 'str',
|
25
|
+
'tips': 'CountdownListTips'
|
26
|
+
}
|
27
|
+
|
28
|
+
attribute_map = {
|
29
|
+
'service_type': 'service_type',
|
30
|
+
'resource_id': 'resource_id',
|
31
|
+
'resource_name': 'resource_name',
|
32
|
+
'resource_type': 'resource_type',
|
33
|
+
'resource_spec_code': 'resource_spec_code',
|
34
|
+
'tips': 'tips'
|
35
|
+
}
|
36
|
+
|
37
|
+
def __init__(self, service_type=None, resource_id=None, resource_name=None, resource_type=None, resource_spec_code=None, tips=None):
|
38
|
+
r"""CountdownList
|
39
|
+
|
40
|
+
The model defined in huaweicloud sdk
|
41
|
+
|
42
|
+
:param service_type: 服务类型
|
43
|
+
:type service_type: str
|
44
|
+
:param resource_id: 资源编号
|
45
|
+
:type resource_id: str
|
46
|
+
:param resource_name: 资源名称
|
47
|
+
:type resource_name: str
|
48
|
+
:param resource_type: 资源类型
|
49
|
+
:type resource_type: str
|
50
|
+
:param resource_spec_code: 资源规格
|
51
|
+
:type resource_spec_code: str
|
52
|
+
:param tips:
|
53
|
+
:type tips: :class:`huaweicloudsdkcodeartsbuild.v3.CountdownListTips`
|
54
|
+
"""
|
55
|
+
|
56
|
+
|
57
|
+
|
58
|
+
self._service_type = None
|
59
|
+
self._resource_id = None
|
60
|
+
self._resource_name = None
|
61
|
+
self._resource_type = None
|
62
|
+
self._resource_spec_code = None
|
63
|
+
self._tips = None
|
64
|
+
self.discriminator = None
|
65
|
+
|
66
|
+
if service_type is not None:
|
67
|
+
self.service_type = service_type
|
68
|
+
if resource_id is not None:
|
69
|
+
self.resource_id = resource_id
|
70
|
+
if resource_name is not None:
|
71
|
+
self.resource_name = resource_name
|
72
|
+
if resource_type is not None:
|
73
|
+
self.resource_type = resource_type
|
74
|
+
if resource_spec_code is not None:
|
75
|
+
self.resource_spec_code = resource_spec_code
|
76
|
+
if tips is not None:
|
77
|
+
self.tips = tips
|
78
|
+
|
79
|
+
@property
|
80
|
+
def service_type(self):
|
81
|
+
r"""Gets the service_type of this CountdownList.
|
82
|
+
|
83
|
+
服务类型
|
84
|
+
|
85
|
+
:return: The service_type of this CountdownList.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._service_type
|
89
|
+
|
90
|
+
@service_type.setter
|
91
|
+
def service_type(self, service_type):
|
92
|
+
r"""Sets the service_type of this CountdownList.
|
93
|
+
|
94
|
+
服务类型
|
95
|
+
|
96
|
+
:param service_type: The service_type of this CountdownList.
|
97
|
+
:type service_type: str
|
98
|
+
"""
|
99
|
+
self._service_type = service_type
|
100
|
+
|
101
|
+
@property
|
102
|
+
def resource_id(self):
|
103
|
+
r"""Gets the resource_id of this CountdownList.
|
104
|
+
|
105
|
+
资源编号
|
106
|
+
|
107
|
+
:return: The resource_id of this CountdownList.
|
108
|
+
:rtype: str
|
109
|
+
"""
|
110
|
+
return self._resource_id
|
111
|
+
|
112
|
+
@resource_id.setter
|
113
|
+
def resource_id(self, resource_id):
|
114
|
+
r"""Sets the resource_id of this CountdownList.
|
115
|
+
|
116
|
+
资源编号
|
117
|
+
|
118
|
+
:param resource_id: The resource_id of this CountdownList.
|
119
|
+
:type resource_id: str
|
120
|
+
"""
|
121
|
+
self._resource_id = resource_id
|
122
|
+
|
123
|
+
@property
|
124
|
+
def resource_name(self):
|
125
|
+
r"""Gets the resource_name of this CountdownList.
|
126
|
+
|
127
|
+
资源名称
|
128
|
+
|
129
|
+
:return: The resource_name of this CountdownList.
|
130
|
+
:rtype: str
|
131
|
+
"""
|
132
|
+
return self._resource_name
|
133
|
+
|
134
|
+
@resource_name.setter
|
135
|
+
def resource_name(self, resource_name):
|
136
|
+
r"""Sets the resource_name of this CountdownList.
|
137
|
+
|
138
|
+
资源名称
|
139
|
+
|
140
|
+
:param resource_name: The resource_name of this CountdownList.
|
141
|
+
:type resource_name: str
|
142
|
+
"""
|
143
|
+
self._resource_name = resource_name
|
144
|
+
|
145
|
+
@property
|
146
|
+
def resource_type(self):
|
147
|
+
r"""Gets the resource_type of this CountdownList.
|
148
|
+
|
149
|
+
资源类型
|
150
|
+
|
151
|
+
:return: The resource_type of this CountdownList.
|
152
|
+
:rtype: str
|
153
|
+
"""
|
154
|
+
return self._resource_type
|
155
|
+
|
156
|
+
@resource_type.setter
|
157
|
+
def resource_type(self, resource_type):
|
158
|
+
r"""Sets the resource_type of this CountdownList.
|
159
|
+
|
160
|
+
资源类型
|
161
|
+
|
162
|
+
:param resource_type: The resource_type of this CountdownList.
|
163
|
+
:type resource_type: str
|
164
|
+
"""
|
165
|
+
self._resource_type = resource_type
|
166
|
+
|
167
|
+
@property
|
168
|
+
def resource_spec_code(self):
|
169
|
+
r"""Gets the resource_spec_code of this CountdownList.
|
170
|
+
|
171
|
+
资源规格
|
172
|
+
|
173
|
+
:return: The resource_spec_code of this CountdownList.
|
174
|
+
:rtype: str
|
175
|
+
"""
|
176
|
+
return self._resource_spec_code
|
177
|
+
|
178
|
+
@resource_spec_code.setter
|
179
|
+
def resource_spec_code(self, resource_spec_code):
|
180
|
+
r"""Sets the resource_spec_code of this CountdownList.
|
181
|
+
|
182
|
+
资源规格
|
183
|
+
|
184
|
+
:param resource_spec_code: The resource_spec_code of this CountdownList.
|
185
|
+
:type resource_spec_code: str
|
186
|
+
"""
|
187
|
+
self._resource_spec_code = resource_spec_code
|
188
|
+
|
189
|
+
@property
|
190
|
+
def tips(self):
|
191
|
+
r"""Gets the tips of this CountdownList.
|
192
|
+
|
193
|
+
:return: The tips of this CountdownList.
|
194
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CountdownListTips`
|
195
|
+
"""
|
196
|
+
return self._tips
|
197
|
+
|
198
|
+
@tips.setter
|
199
|
+
def tips(self, tips):
|
200
|
+
r"""Sets the tips of this CountdownList.
|
201
|
+
|
202
|
+
:param tips: The tips of this CountdownList.
|
203
|
+
:type tips: :class:`huaweicloudsdkcodeartsbuild.v3.CountdownListTips`
|
204
|
+
"""
|
205
|
+
self._tips = tips
|
206
|
+
|
207
|
+
def to_dict(self):
|
208
|
+
"""Returns the model properties as a dict"""
|
209
|
+
result = {}
|
210
|
+
|
211
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
212
|
+
value = getattr(self, attr)
|
213
|
+
if isinstance(value, list):
|
214
|
+
result[attr] = list(map(
|
215
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
216
|
+
value
|
217
|
+
))
|
218
|
+
elif hasattr(value, "to_dict"):
|
219
|
+
result[attr] = value.to_dict()
|
220
|
+
elif isinstance(value, dict):
|
221
|
+
result[attr] = dict(map(
|
222
|
+
lambda item: (item[0], item[1].to_dict())
|
223
|
+
if hasattr(item[1], "to_dict") else item,
|
224
|
+
value.items()
|
225
|
+
))
|
226
|
+
else:
|
227
|
+
if attr in self.sensitive_list:
|
228
|
+
result[attr] = "****"
|
229
|
+
else:
|
230
|
+
result[attr] = value
|
231
|
+
|
232
|
+
return result
|
233
|
+
|
234
|
+
def to_str(self):
|
235
|
+
"""Returns the string representation of the model"""
|
236
|
+
import simplejson as json
|
237
|
+
if six.PY2:
|
238
|
+
import sys
|
239
|
+
reload(sys)
|
240
|
+
sys.setdefaultencoding("utf-8")
|
241
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
242
|
+
|
243
|
+
def __repr__(self):
|
244
|
+
"""For `print`"""
|
245
|
+
return self.to_str()
|
246
|
+
|
247
|
+
def __eq__(self, other):
|
248
|
+
"""Returns true if both objects are equal"""
|
249
|
+
if not isinstance(other, CountdownList):
|
250
|
+
return False
|
251
|
+
|
252
|
+
return self.__dict__ == other.__dict__
|
253
|
+
|
254
|
+
def __ne__(self, other):
|
255
|
+
"""Returns true if both objects are not equal"""
|
256
|
+
return not self == other
|