huaweicloudsdkcodeartsbuild 3.1.152__py2.py3-none-any.whl → 3.1.154__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 +60 -1
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1466 -89
- huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1466 -89
- huaweicloudsdkcodeartsbuild/v3/model/__init__.py +60 -1
- huaweicloudsdkcodeartsbuild/v3/model/brief_record_items.py +550 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request_body.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_request.py +84 -0
- huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_build_job_request_body.py +429 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/copy_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_build_job_request_body.py +115 -3
- huaweicloudsdkcodeartsbuild/v3/model/create_build_job_scm.py +90 -3
- huaweicloudsdkcodeartsbuild/v3/model/create_build_timeout.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_new_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_new_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_template_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/create_template_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_build_job_response.py +4 -4
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_template_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_template_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_request.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/{delete_build_job_response_body_result.py → delete_the_job_response_body_result.py} +11 -11
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request_body.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_response.py +116 -0
- huaweicloudsdkcodeartsbuild/v3/model/execute_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/execute_job_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/job.py +264 -3
- huaweicloudsdkcodeartsbuild/v3/model/jobs_request_body.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_request.py +143 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response_body_result.py +144 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request_body.py +173 -0
- huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_request_body.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_response.py +174 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request_body.py +114 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_job_permission_result.py +434 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_job_permission_request.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/show_project_job_permission_response.py +141 -0
- huaweicloudsdkcodeartsbuild/v3/model/status_success_result_with_uuid_result.py +115 -0
- huaweicloudsdkcodeartsbuild/v3/model/trigger.py +142 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_keystore_request.py +139 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_keystore_request_body.py +198 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_keystore_response.py +145 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_job_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/update_new_job_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_request.py +111 -0
- huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_request_body.py +171 -0
- huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_response.py +170 -0
- huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_result.py +115 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/METADATA +2 -2
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/RECORD +73 -14
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/LICENSE +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/WHEEL +0 -0
- {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/top_level.txt +0 -0
@@ -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 UpdateKeystoreResponse(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
|
+
'error': 'str',
|
22
|
+
'status': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'error': 'error',
|
27
|
+
'status': 'status'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, error=None, status=None):
|
31
|
+
r"""UpdateKeystoreResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param error: 返回错误信息
|
36
|
+
:type error: str
|
37
|
+
:param status: 返回状态信息
|
38
|
+
:type status: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(UpdateKeystoreResponse, self).__init__()
|
42
|
+
|
43
|
+
self._error = None
|
44
|
+
self._status = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if error is not None:
|
48
|
+
self.error = error
|
49
|
+
if status is not None:
|
50
|
+
self.status = status
|
51
|
+
|
52
|
+
@property
|
53
|
+
def error(self):
|
54
|
+
r"""Gets the error of this UpdateKeystoreResponse.
|
55
|
+
|
56
|
+
返回错误信息
|
57
|
+
|
58
|
+
:return: The error of this UpdateKeystoreResponse.
|
59
|
+
:rtype: str
|
60
|
+
"""
|
61
|
+
return self._error
|
62
|
+
|
63
|
+
@error.setter
|
64
|
+
def error(self, error):
|
65
|
+
r"""Sets the error of this UpdateKeystoreResponse.
|
66
|
+
|
67
|
+
返回错误信息
|
68
|
+
|
69
|
+
:param error: The error of this UpdateKeystoreResponse.
|
70
|
+
:type error: str
|
71
|
+
"""
|
72
|
+
self._error = error
|
73
|
+
|
74
|
+
@property
|
75
|
+
def status(self):
|
76
|
+
r"""Gets the status of this UpdateKeystoreResponse.
|
77
|
+
|
78
|
+
返回状态信息
|
79
|
+
|
80
|
+
:return: The status of this UpdateKeystoreResponse.
|
81
|
+
:rtype: str
|
82
|
+
"""
|
83
|
+
return self._status
|
84
|
+
|
85
|
+
@status.setter
|
86
|
+
def status(self, status):
|
87
|
+
r"""Sets the status of this UpdateKeystoreResponse.
|
88
|
+
|
89
|
+
返回状态信息
|
90
|
+
|
91
|
+
:param status: The status of this UpdateKeystoreResponse.
|
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, UpdateKeystoreResponse):
|
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,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UpdateNewJobRequest:
|
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
|
+
'body': 'UpdateBuildJobRequestBody'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""UpdateNewJobRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the UpdateNewJobRequest
|
33
|
+
:type body: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateBuildJobRequestBody`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
r"""Gets the body of this UpdateNewJobRequest.
|
47
|
+
|
48
|
+
:return: The body of this UpdateNewJobRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateBuildJobRequestBody`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this UpdateNewJobRequest.
|
56
|
+
|
57
|
+
:param body: The body of this UpdateNewJobRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkcodeartsbuild.v3.UpdateBuildJobRequestBody`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, UpdateNewJobRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
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 UpdateNewJobResponse(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': 'CreateBuildJobResponseBodyResult',
|
22
|
+
'status': 'str',
|
23
|
+
'error': 'str'
|
24
|
+
}
|
25
|
+
|
26
|
+
attribute_map = {
|
27
|
+
'result': 'result',
|
28
|
+
'status': 'status',
|
29
|
+
'error': 'error'
|
30
|
+
}
|
31
|
+
|
32
|
+
def __init__(self, result=None, status=None, error=None):
|
33
|
+
r"""UpdateNewJobResponse
|
34
|
+
|
35
|
+
The model defined in huaweicloud sdk
|
36
|
+
|
37
|
+
:param result:
|
38
|
+
:type result: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobResponseBodyResult`
|
39
|
+
:param status: 状态信息
|
40
|
+
:type status: str
|
41
|
+
:param error: 错误信息
|
42
|
+
:type error: str
|
43
|
+
"""
|
44
|
+
|
45
|
+
super(UpdateNewJobResponse, self).__init__()
|
46
|
+
|
47
|
+
self._result = None
|
48
|
+
self._status = None
|
49
|
+
self._error = None
|
50
|
+
self.discriminator = None
|
51
|
+
|
52
|
+
if result is not None:
|
53
|
+
self.result = result
|
54
|
+
if status is not None:
|
55
|
+
self.status = status
|
56
|
+
if error is not None:
|
57
|
+
self.error = error
|
58
|
+
|
59
|
+
@property
|
60
|
+
def result(self):
|
61
|
+
r"""Gets the result of this UpdateNewJobResponse.
|
62
|
+
|
63
|
+
:return: The result of this UpdateNewJobResponse.
|
64
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobResponseBodyResult`
|
65
|
+
"""
|
66
|
+
return self._result
|
67
|
+
|
68
|
+
@result.setter
|
69
|
+
def result(self, result):
|
70
|
+
r"""Sets the result of this UpdateNewJobResponse.
|
71
|
+
|
72
|
+
:param result: The result of this UpdateNewJobResponse.
|
73
|
+
:type result: :class:`huaweicloudsdkcodeartsbuild.v3.CreateBuildJobResponseBodyResult`
|
74
|
+
"""
|
75
|
+
self._result = result
|
76
|
+
|
77
|
+
@property
|
78
|
+
def status(self):
|
79
|
+
r"""Gets the status of this UpdateNewJobResponse.
|
80
|
+
|
81
|
+
状态信息
|
82
|
+
|
83
|
+
:return: The status of this UpdateNewJobResponse.
|
84
|
+
:rtype: str
|
85
|
+
"""
|
86
|
+
return self._status
|
87
|
+
|
88
|
+
@status.setter
|
89
|
+
def status(self, status):
|
90
|
+
r"""Sets the status of this UpdateNewJobResponse.
|
91
|
+
|
92
|
+
状态信息
|
93
|
+
|
94
|
+
:param status: The status of this UpdateNewJobResponse.
|
95
|
+
:type status: str
|
96
|
+
"""
|
97
|
+
self._status = status
|
98
|
+
|
99
|
+
@property
|
100
|
+
def error(self):
|
101
|
+
r"""Gets the error of this UpdateNewJobResponse.
|
102
|
+
|
103
|
+
错误信息
|
104
|
+
|
105
|
+
:return: The error of this UpdateNewJobResponse.
|
106
|
+
:rtype: str
|
107
|
+
"""
|
108
|
+
return self._error
|
109
|
+
|
110
|
+
@error.setter
|
111
|
+
def error(self, error):
|
112
|
+
r"""Sets the error of this UpdateNewJobResponse.
|
113
|
+
|
114
|
+
错误信息
|
115
|
+
|
116
|
+
:param error: The error of this UpdateNewJobResponse.
|
117
|
+
:type error: str
|
118
|
+
"""
|
119
|
+
self._error = error
|
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, UpdateNewJobResponse):
|
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,111 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UploadKeystoreRequest:
|
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
|
+
'body': 'UploadKeystoreRequestBody'
|
21
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'body': 'body'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, body=None):
|
28
|
+
r"""UploadKeystoreRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param body: Body of the UploadKeystoreRequest
|
33
|
+
:type body: :class:`huaweicloudsdkcodeartsbuild.v3.UploadKeystoreRequestBody`
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._body = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
if body is not None:
|
42
|
+
self.body = body
|
43
|
+
|
44
|
+
@property
|
45
|
+
def body(self):
|
46
|
+
r"""Gets the body of this UploadKeystoreRequest.
|
47
|
+
|
48
|
+
:return: The body of this UploadKeystoreRequest.
|
49
|
+
:rtype: :class:`huaweicloudsdkcodeartsbuild.v3.UploadKeystoreRequestBody`
|
50
|
+
"""
|
51
|
+
return self._body
|
52
|
+
|
53
|
+
@body.setter
|
54
|
+
def body(self, body):
|
55
|
+
r"""Sets the body of this UploadKeystoreRequest.
|
56
|
+
|
57
|
+
:param body: The body of this UploadKeystoreRequest.
|
58
|
+
:type body: :class:`huaweicloudsdkcodeartsbuild.v3.UploadKeystoreRequestBody`
|
59
|
+
"""
|
60
|
+
self._body = body
|
61
|
+
|
62
|
+
def to_dict(self):
|
63
|
+
"""Returns the model properties as a dict"""
|
64
|
+
result = {}
|
65
|
+
|
66
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
67
|
+
value = getattr(self, attr)
|
68
|
+
if isinstance(value, list):
|
69
|
+
result[attr] = list(map(
|
70
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
71
|
+
value
|
72
|
+
))
|
73
|
+
elif hasattr(value, "to_dict"):
|
74
|
+
result[attr] = value.to_dict()
|
75
|
+
elif isinstance(value, dict):
|
76
|
+
result[attr] = dict(map(
|
77
|
+
lambda item: (item[0], item[1].to_dict())
|
78
|
+
if hasattr(item[1], "to_dict") else item,
|
79
|
+
value.items()
|
80
|
+
))
|
81
|
+
else:
|
82
|
+
if attr in self.sensitive_list:
|
83
|
+
result[attr] = "****"
|
84
|
+
else:
|
85
|
+
result[attr] = value
|
86
|
+
|
87
|
+
return result
|
88
|
+
|
89
|
+
def to_str(self):
|
90
|
+
"""Returns the string representation of the model"""
|
91
|
+
import simplejson as json
|
92
|
+
if six.PY2:
|
93
|
+
import sys
|
94
|
+
reload(sys)
|
95
|
+
sys.setdefaultencoding("utf-8")
|
96
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
97
|
+
|
98
|
+
def __repr__(self):
|
99
|
+
"""For `print`"""
|
100
|
+
return self.to_str()
|
101
|
+
|
102
|
+
def __eq__(self, other):
|
103
|
+
"""Returns true if both objects are equal"""
|
104
|
+
if not isinstance(other, UploadKeystoreRequest):
|
105
|
+
return False
|
106
|
+
|
107
|
+
return self.__dict__ == other.__dict__
|
108
|
+
|
109
|
+
def __ne__(self, other):
|
110
|
+
"""Returns true if both objects are not equal"""
|
111
|
+
return not self == other
|
@@ -0,0 +1,171 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class UploadKeystoreRequestBody:
|
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
|
+
'file': 'file',
|
21
|
+
'privacy': 'str',
|
22
|
+
'description': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'file': 'file',
|
27
|
+
'privacy': 'privacy',
|
28
|
+
'description': 'description'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, file=None, privacy=None, description=None):
|
32
|
+
r"""UploadKeystoreRequestBody
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param file: 文件
|
37
|
+
:type file: :class:`huaweicloudsdkcore.http.formdata.FormFile`
|
38
|
+
:param privacy: 同意隐私声明,允许使用用户敏感信息进行相关业务操作。
|
39
|
+
:type privacy: str
|
40
|
+
:param description: 文件描述
|
41
|
+
:type description: str
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._file = None
|
47
|
+
self._privacy = None
|
48
|
+
self._description = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.file = file
|
52
|
+
self.privacy = privacy
|
53
|
+
if description is not None:
|
54
|
+
self.description = description
|
55
|
+
|
56
|
+
@property
|
57
|
+
def file(self):
|
58
|
+
r"""Gets the file of this UploadKeystoreRequestBody.
|
59
|
+
|
60
|
+
文件
|
61
|
+
|
62
|
+
:return: The file of this UploadKeystoreRequestBody.
|
63
|
+
:rtype: :class:`huaweicloudsdkcore.http.formdata.FormFile`
|
64
|
+
"""
|
65
|
+
return self._file
|
66
|
+
|
67
|
+
@file.setter
|
68
|
+
def file(self, file):
|
69
|
+
r"""Sets the file of this UploadKeystoreRequestBody.
|
70
|
+
|
71
|
+
文件
|
72
|
+
|
73
|
+
:param file: The file of this UploadKeystoreRequestBody.
|
74
|
+
:type file: :class:`huaweicloudsdkcore.http.formdata.FormFile`
|
75
|
+
"""
|
76
|
+
self._file = file
|
77
|
+
|
78
|
+
@property
|
79
|
+
def privacy(self):
|
80
|
+
r"""Gets the privacy of this UploadKeystoreRequestBody.
|
81
|
+
|
82
|
+
同意隐私声明,允许使用用户敏感信息进行相关业务操作。
|
83
|
+
|
84
|
+
:return: The privacy of this UploadKeystoreRequestBody.
|
85
|
+
:rtype: str
|
86
|
+
"""
|
87
|
+
return self._privacy
|
88
|
+
|
89
|
+
@privacy.setter
|
90
|
+
def privacy(self, privacy):
|
91
|
+
r"""Sets the privacy of this UploadKeystoreRequestBody.
|
92
|
+
|
93
|
+
同意隐私声明,允许使用用户敏感信息进行相关业务操作。
|
94
|
+
|
95
|
+
:param privacy: The privacy of this UploadKeystoreRequestBody.
|
96
|
+
:type privacy: str
|
97
|
+
"""
|
98
|
+
self._privacy = privacy
|
99
|
+
|
100
|
+
@property
|
101
|
+
def description(self):
|
102
|
+
r"""Gets the description of this UploadKeystoreRequestBody.
|
103
|
+
|
104
|
+
文件描述
|
105
|
+
|
106
|
+
:return: The description of this UploadKeystoreRequestBody.
|
107
|
+
:rtype: str
|
108
|
+
"""
|
109
|
+
return self._description
|
110
|
+
|
111
|
+
@description.setter
|
112
|
+
def description(self, description):
|
113
|
+
r"""Sets the description of this UploadKeystoreRequestBody.
|
114
|
+
|
115
|
+
文件描述
|
116
|
+
|
117
|
+
:param description: The description of this UploadKeystoreRequestBody.
|
118
|
+
:type description: str
|
119
|
+
"""
|
120
|
+
self._description = description
|
121
|
+
|
122
|
+
def to_dict(self):
|
123
|
+
"""Returns the model properties as a dict"""
|
124
|
+
result = {}
|
125
|
+
|
126
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
127
|
+
value = getattr(self, attr)
|
128
|
+
if isinstance(value, list):
|
129
|
+
result[attr] = list(map(
|
130
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
131
|
+
value
|
132
|
+
))
|
133
|
+
elif hasattr(value, "to_dict"):
|
134
|
+
result[attr] = value.to_dict()
|
135
|
+
elif isinstance(value, dict):
|
136
|
+
result[attr] = dict(map(
|
137
|
+
lambda item: (item[0], item[1].to_dict())
|
138
|
+
if hasattr(item[1], "to_dict") else item,
|
139
|
+
value.items()
|
140
|
+
))
|
141
|
+
else:
|
142
|
+
if attr in self.sensitive_list:
|
143
|
+
result[attr] = "****"
|
144
|
+
else:
|
145
|
+
result[attr] = value
|
146
|
+
|
147
|
+
return result
|
148
|
+
|
149
|
+
def to_str(self):
|
150
|
+
"""Returns the string representation of the model"""
|
151
|
+
import simplejson as json
|
152
|
+
if six.PY2:
|
153
|
+
import sys
|
154
|
+
reload(sys)
|
155
|
+
sys.setdefaultencoding("utf-8")
|
156
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
157
|
+
|
158
|
+
def __repr__(self):
|
159
|
+
"""For `print`"""
|
160
|
+
return self.to_str()
|
161
|
+
|
162
|
+
def __eq__(self, other):
|
163
|
+
"""Returns true if both objects are equal"""
|
164
|
+
if not isinstance(other, UploadKeystoreRequestBody):
|
165
|
+
return False
|
166
|
+
|
167
|
+
return self.__dict__ == other.__dict__
|
168
|
+
|
169
|
+
def __ne__(self, other):
|
170
|
+
"""Returns true if both objects are not equal"""
|
171
|
+
return not self == other
|