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.
Files changed (73) hide show
  1. huaweicloudsdkcodeartsbuild/v3/__init__.py +60 -1
  2. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_async_client.py +1466 -89
  3. huaweicloudsdkcodeartsbuild/v3/codeartsbuild_client.py +1466 -89
  4. huaweicloudsdkcodeartsbuild/v3/model/__init__.py +60 -1
  5. huaweicloudsdkcodeartsbuild/v3/model/brief_record_items.py +550 -0
  6. huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request.py +111 -0
  7. huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_request_body.py +170 -0
  8. huaweicloudsdkcodeartsbuild/v3/model/check_webhook_url_response.py +145 -0
  9. huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_request.py +84 -0
  10. huaweicloudsdkcodeartsbuild/v3/model/clear_recycling_jobs_response.py +145 -0
  11. huaweicloudsdkcodeartsbuild/v3/model/copy_build_job_request_body.py +429 -0
  12. huaweicloudsdkcodeartsbuild/v3/model/copy_job_request.py +111 -0
  13. huaweicloudsdkcodeartsbuild/v3/model/copy_job_response.py +170 -0
  14. huaweicloudsdkcodeartsbuild/v3/model/create_build_job_request_body.py +115 -3
  15. huaweicloudsdkcodeartsbuild/v3/model/create_build_job_scm.py +90 -3
  16. huaweicloudsdkcodeartsbuild/v3/model/create_build_timeout.py +144 -0
  17. huaweicloudsdkcodeartsbuild/v3/model/create_new_job_request.py +111 -0
  18. huaweicloudsdkcodeartsbuild/v3/model/create_new_job_response.py +170 -0
  19. huaweicloudsdkcodeartsbuild/v3/model/create_template_request.py +111 -0
  20. huaweicloudsdkcodeartsbuild/v3/model/create_template_response.py +141 -0
  21. huaweicloudsdkcodeartsbuild/v3/model/delete_build_job_response.py +4 -4
  22. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_request.py +114 -0
  23. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_permission_response.py +174 -0
  24. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_request.py +114 -0
  25. huaweicloudsdkcodeartsbuild/v3/model/delete_keystore_response.py +174 -0
  26. huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_request.py +111 -0
  27. huaweicloudsdkcodeartsbuild/v3/model/delete_recycling_jobs_response.py +116 -0
  28. huaweicloudsdkcodeartsbuild/v3/model/delete_template_request.py +114 -0
  29. huaweicloudsdkcodeartsbuild/v3/model/delete_template_response.py +116 -0
  30. huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_request.py +114 -0
  31. huaweicloudsdkcodeartsbuild/v3/model/delete_the_job_response.py +170 -0
  32. huaweicloudsdkcodeartsbuild/v3/model/{delete_build_job_response_body_result.py → delete_the_job_response_body_result.py} +11 -11
  33. huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request.py +139 -0
  34. huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_request_body.py +143 -0
  35. huaweicloudsdkcodeartsbuild/v3/model/disable_the_job_response.py +116 -0
  36. huaweicloudsdkcodeartsbuild/v3/model/execute_job_request.py +111 -0
  37. huaweicloudsdkcodeartsbuild/v3/model/execute_job_response.py +174 -0
  38. huaweicloudsdkcodeartsbuild/v3/model/job.py +264 -3
  39. huaweicloudsdkcodeartsbuild/v3/model/jobs_request_body.py +114 -0
  40. huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_request.py +143 -0
  41. huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response.py +174 -0
  42. huaweicloudsdkcodeartsbuild/v3/model/list_brief_record_response_body_result.py +144 -0
  43. huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request.py +111 -0
  44. huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_request_body.py +173 -0
  45. huaweicloudsdkcodeartsbuild/v3/model/list_recommend_official_template_response.py +170 -0
  46. huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_request.py +111 -0
  47. huaweicloudsdkcodeartsbuild/v3/model/restore_recycling_jobs_response.py +145 -0
  48. huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_request.py +111 -0
  49. huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_request_body.py +142 -0
  50. huaweicloudsdkcodeartsbuild/v3/model/save_template_used_info_response.py +174 -0
  51. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request.py +111 -0
  52. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_request_body.py +114 -0
  53. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_response.py +170 -0
  54. huaweicloudsdkcodeartsbuild/v3/model/set_keep_time_result.py +115 -0
  55. huaweicloudsdkcodeartsbuild/v3/model/show_job_permission_result.py +434 -0
  56. huaweicloudsdkcodeartsbuild/v3/model/show_project_job_permission_request.py +142 -0
  57. huaweicloudsdkcodeartsbuild/v3/model/show_project_job_permission_response.py +141 -0
  58. huaweicloudsdkcodeartsbuild/v3/model/status_success_result_with_uuid_result.py +115 -0
  59. huaweicloudsdkcodeartsbuild/v3/model/trigger.py +142 -0
  60. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_request.py +139 -0
  61. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_request_body.py +198 -0
  62. huaweicloudsdkcodeartsbuild/v3/model/update_keystore_response.py +145 -0
  63. huaweicloudsdkcodeartsbuild/v3/model/update_new_job_request.py +111 -0
  64. huaweicloudsdkcodeartsbuild/v3/model/update_new_job_response.py +170 -0
  65. huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_request.py +111 -0
  66. huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_request_body.py +171 -0
  67. huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_response.py +170 -0
  68. huaweicloudsdkcodeartsbuild/v3/model/upload_keystore_result.py +115 -0
  69. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/METADATA +2 -2
  70. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/RECORD +73 -14
  71. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/LICENSE +0 -0
  72. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/WHEEL +0 -0
  73. {huaweicloudsdkcodeartsbuild-3.1.152.dist-info → huaweicloudsdkcodeartsbuild-3.1.154.dist-info}/top_level.txt +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 SaveTemplateUsedInfoResponse(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
+ '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"""SaveTemplateUsedInfoResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param result: 成功
38
+ :type result: str
39
+ :param error: 返回错误信息
40
+ :type error: str
41
+ :param status: 返回状态信息
42
+ :type status: str
43
+ """
44
+
45
+ super(SaveTemplateUsedInfoResponse, 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 SaveTemplateUsedInfoResponse.
62
+
63
+ 成功
64
+
65
+ :return: The result of this SaveTemplateUsedInfoResponse.
66
+ :rtype: str
67
+ """
68
+ return self._result
69
+
70
+ @result.setter
71
+ def result(self, result):
72
+ r"""Sets the result of this SaveTemplateUsedInfoResponse.
73
+
74
+ 成功
75
+
76
+ :param result: The result of this SaveTemplateUsedInfoResponse.
77
+ :type result: str
78
+ """
79
+ self._result = result
80
+
81
+ @property
82
+ def error(self):
83
+ r"""Gets the error of this SaveTemplateUsedInfoResponse.
84
+
85
+ 返回错误信息
86
+
87
+ :return: The error of this SaveTemplateUsedInfoResponse.
88
+ :rtype: str
89
+ """
90
+ return self._error
91
+
92
+ @error.setter
93
+ def error(self, error):
94
+ r"""Sets the error of this SaveTemplateUsedInfoResponse.
95
+
96
+ 返回错误信息
97
+
98
+ :param error: The error of this SaveTemplateUsedInfoResponse.
99
+ :type error: str
100
+ """
101
+ self._error = error
102
+
103
+ @property
104
+ def status(self):
105
+ r"""Gets the status of this SaveTemplateUsedInfoResponse.
106
+
107
+ 返回状态信息
108
+
109
+ :return: The status of this SaveTemplateUsedInfoResponse.
110
+ :rtype: str
111
+ """
112
+ return self._status
113
+
114
+ @status.setter
115
+ def status(self, status):
116
+ r"""Sets the status of this SaveTemplateUsedInfoResponse.
117
+
118
+ 返回状态信息
119
+
120
+ :param status: The status of this SaveTemplateUsedInfoResponse.
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, SaveTemplateUsedInfoResponse):
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,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SetKeepTimeRequest:
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': 'SetKeepTimeRequestBody'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ r"""SetKeepTimeRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the SetKeepTimeRequest
33
+ :type body: :class:`huaweicloudsdkcodeartsbuild.v3.SetKeepTimeRequestBody`
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 SetKeepTimeRequest.
47
+
48
+ :return: The body of this SetKeepTimeRequest.
49
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.SetKeepTimeRequestBody`
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ r"""Sets the body of this SetKeepTimeRequest.
56
+
57
+ :param body: The body of this SetKeepTimeRequest.
58
+ :type body: :class:`huaweicloudsdkcodeartsbuild.v3.SetKeepTimeRequestBody`
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, SetKeepTimeRequest):
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,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SetKeepTimeRequestBody:
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
+ 'keep_time': 'int'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'keep_time': 'keep_time'
25
+ }
26
+
27
+ def __init__(self, keep_time=None):
28
+ r"""SetKeepTimeRequestBody
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param keep_time: 回收站中的任务保留时间
33
+ :type keep_time: int
34
+ """
35
+
36
+
37
+
38
+ self._keep_time = None
39
+ self.discriminator = None
40
+
41
+ self.keep_time = keep_time
42
+
43
+ @property
44
+ def keep_time(self):
45
+ r"""Gets the keep_time of this SetKeepTimeRequestBody.
46
+
47
+ 回收站中的任务保留时间
48
+
49
+ :return: The keep_time of this SetKeepTimeRequestBody.
50
+ :rtype: int
51
+ """
52
+ return self._keep_time
53
+
54
+ @keep_time.setter
55
+ def keep_time(self, keep_time):
56
+ r"""Sets the keep_time of this SetKeepTimeRequestBody.
57
+
58
+ 回收站中的任务保留时间
59
+
60
+ :param keep_time: The keep_time of this SetKeepTimeRequestBody.
61
+ :type keep_time: int
62
+ """
63
+ self._keep_time = keep_time
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, SetKeepTimeRequestBody):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ 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 SetKeepTimeResponse(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': 'SetKeepTimeResult',
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"""SetKeepTimeResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param result:
38
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.SetKeepTimeResult`
39
+ :param error: 返回错误信息
40
+ :type error: str
41
+ :param status: 返回状态信息
42
+ :type status: str
43
+ """
44
+
45
+ super(SetKeepTimeResponse, 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 SetKeepTimeResponse.
62
+
63
+ :return: The result of this SetKeepTimeResponse.
64
+ :rtype: :class:`huaweicloudsdkcodeartsbuild.v3.SetKeepTimeResult`
65
+ """
66
+ return self._result
67
+
68
+ @result.setter
69
+ def result(self, result):
70
+ r"""Sets the result of this SetKeepTimeResponse.
71
+
72
+ :param result: The result of this SetKeepTimeResponse.
73
+ :type result: :class:`huaweicloudsdkcodeartsbuild.v3.SetKeepTimeResult`
74
+ """
75
+ self._result = result
76
+
77
+ @property
78
+ def error(self):
79
+ r"""Gets the error of this SetKeepTimeResponse.
80
+
81
+ 返回错误信息
82
+
83
+ :return: The error of this SetKeepTimeResponse.
84
+ :rtype: str
85
+ """
86
+ return self._error
87
+
88
+ @error.setter
89
+ def error(self, error):
90
+ r"""Sets the error of this SetKeepTimeResponse.
91
+
92
+ 返回错误信息
93
+
94
+ :param error: The error of this SetKeepTimeResponse.
95
+ :type error: str
96
+ """
97
+ self._error = error
98
+
99
+ @property
100
+ def status(self):
101
+ r"""Gets the status of this SetKeepTimeResponse.
102
+
103
+ 返回状态信息
104
+
105
+ :return: The status of this SetKeepTimeResponse.
106
+ :rtype: str
107
+ """
108
+ return self._status
109
+
110
+ @status.setter
111
+ def status(self, status):
112
+ r"""Sets the status of this SetKeepTimeResponse.
113
+
114
+ 返回状态信息
115
+
116
+ :param status: The status of this SetKeepTimeResponse.
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, SetKeepTimeResponse):
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,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class SetKeepTimeResult:
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
+ 'keep_time': 'int'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'keep_time': 'keep_time'
25
+ }
26
+
27
+ def __init__(self, keep_time=None):
28
+ r"""SetKeepTimeResult
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param keep_time: 回收站中的任务保留时间
33
+ :type keep_time: int
34
+ """
35
+
36
+
37
+
38
+ self._keep_time = None
39
+ self.discriminator = None
40
+
41
+ if keep_time is not None:
42
+ self.keep_time = keep_time
43
+
44
+ @property
45
+ def keep_time(self):
46
+ r"""Gets the keep_time of this SetKeepTimeResult.
47
+
48
+ 回收站中的任务保留时间
49
+
50
+ :return: The keep_time of this SetKeepTimeResult.
51
+ :rtype: int
52
+ """
53
+ return self._keep_time
54
+
55
+ @keep_time.setter
56
+ def keep_time(self, keep_time):
57
+ r"""Sets the keep_time of this SetKeepTimeResult.
58
+
59
+ 回收站中的任务保留时间
60
+
61
+ :param keep_time: The keep_time of this SetKeepTimeResult.
62
+ :type keep_time: int
63
+ """
64
+ self._keep_time = keep_time
65
+
66
+ def to_dict(self):
67
+ """Returns the model properties as a dict"""
68
+ result = {}
69
+
70
+ for attr, _ in six.iteritems(self.openapi_types):
71
+ value = getattr(self, attr)
72
+ if isinstance(value, list):
73
+ result[attr] = list(map(
74
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
75
+ value
76
+ ))
77
+ elif hasattr(value, "to_dict"):
78
+ result[attr] = value.to_dict()
79
+ elif isinstance(value, dict):
80
+ result[attr] = dict(map(
81
+ lambda item: (item[0], item[1].to_dict())
82
+ if hasattr(item[1], "to_dict") else item,
83
+ value.items()
84
+ ))
85
+ else:
86
+ if attr in self.sensitive_list:
87
+ result[attr] = "****"
88
+ else:
89
+ result[attr] = value
90
+
91
+ return result
92
+
93
+ def to_str(self):
94
+ """Returns the string representation of the model"""
95
+ import simplejson as json
96
+ if six.PY2:
97
+ import sys
98
+ reload(sys)
99
+ sys.setdefaultencoding("utf-8")
100
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
101
+
102
+ def __repr__(self):
103
+ """For `print`"""
104
+ return self.to_str()
105
+
106
+ def __eq__(self, other):
107
+ """Returns true if both objects are equal"""
108
+ if not isinstance(other, SetKeepTimeResult):
109
+ return False
110
+
111
+ return self.__dict__ == other.__dict__
112
+
113
+ def __ne__(self, other):
114
+ """Returns true if both objects are not equal"""
115
+ return not self == other