huaweicloudsdkims 3.0.43rc0__py3-none-any.whl → 3.1.160__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 (158) hide show
  1. huaweicloudsdkims/v2/__init__.py +31 -3
  2. huaweicloudsdkims/v2/ims_async_client.py +2198 -1356
  3. huaweicloudsdkims/v2/ims_client.py +2188 -1347
  4. huaweicloudsdkims/v2/model/__init__.py +30 -1
  5. huaweicloudsdkims/v2/model/add_image_tag_request.py +26 -19
  6. huaweicloudsdkims/v2/model/add_image_tag_request_body.py +19 -16
  7. huaweicloudsdkims/v2/model/add_image_tag_response.py +14 -10
  8. huaweicloudsdkims/v2/model/add_or_update_tags_request_body.py +29 -22
  9. huaweicloudsdkims/v2/model/additional_properties.py +18 -13
  10. huaweicloudsdkims/v2/model/batch_add_members_request.py +19 -16
  11. huaweicloudsdkims/v2/model/batch_add_members_request_body.py +84 -19
  12. huaweicloudsdkims/v2/model/batch_add_members_response.py +19 -13
  13. huaweicloudsdkims/v2/model/batch_add_or_delete_tags_request.py +26 -19
  14. huaweicloudsdkims/v2/model/batch_add_or_delete_tags_request_body.py +24 -17
  15. huaweicloudsdkims/v2/model/batch_add_or_delete_tags_response.py +14 -10
  16. huaweicloudsdkims/v2/model/batch_delete_members_request.py +19 -16
  17. huaweicloudsdkims/v2/model/batch_delete_members_response.py +19 -13
  18. huaweicloudsdkims/v2/model/batch_delete_tags_request.py +139 -0
  19. huaweicloudsdkims/v2/model/batch_delete_tags_request_body.py +114 -0
  20. huaweicloudsdkims/v2/model/batch_delete_tags_response.py +85 -0
  21. huaweicloudsdkims/v2/model/batch_update_members_request.py +19 -16
  22. huaweicloudsdkims/v2/model/batch_update_members_request_body.py +33 -22
  23. huaweicloudsdkims/v2/model/batch_update_members_response.py +19 -13
  24. huaweicloudsdkims/v2/model/copy_image_cross_region_request.py +26 -19
  25. huaweicloudsdkims/v2/model/copy_image_cross_region_request_body.py +70 -28
  26. huaweicloudsdkims/v2/model/copy_image_cross_region_response.py +19 -13
  27. huaweicloudsdkims/v2/model/copy_image_in_region_in_safe_mode_request.py +139 -0
  28. huaweicloudsdkims/v2/model/copy_image_in_region_in_safe_mode_response.py +116 -0
  29. huaweicloudsdkims/v2/model/copy_image_in_region_request.py +26 -19
  30. huaweicloudsdkims/v2/model/copy_image_in_region_request_body.py +33 -22
  31. huaweicloudsdkims/v2/model/copy_image_in_region_response.py +19 -13
  32. huaweicloudsdkims/v2/model/create_data_image.py +33 -22
  33. huaweicloudsdkims/v2/model/create_data_image_in_safe_mode_request.py +111 -0
  34. huaweicloudsdkims/v2/model/create_data_image_in_safe_mode_response.py +116 -0
  35. huaweicloudsdkims/v2/model/create_data_image_request.py +19 -16
  36. huaweicloudsdkims/v2/model/create_data_image_request_body.py +63 -41
  37. huaweicloudsdkims/v2/model/create_data_image_response.py +19 -13
  38. huaweicloudsdkims/v2/model/create_image_in_safe_mode_request.py +111 -0
  39. huaweicloudsdkims/v2/model/create_image_in_safe_mode_response.py +116 -0
  40. huaweicloudsdkims/v2/model/create_image_request.py +19 -16
  41. huaweicloudsdkims/v2/model/create_image_request_body.py +139 -70
  42. huaweicloudsdkims/v2/model/create_image_response.py +19 -13
  43. huaweicloudsdkims/v2/model/create_or_update_tags_request.py +19 -16
  44. huaweicloudsdkims/v2/model/create_or_update_tags_response.py +14 -10
  45. huaweicloudsdkims/v2/model/create_whole_image_request.py +19 -16
  46. huaweicloudsdkims/v2/model/create_whole_image_request_body.py +74 -50
  47. huaweicloudsdkims/v2/model/create_whole_image_response.py +19 -13
  48. huaweicloudsdkims/v2/model/delete_image_tag_request.py +27 -16
  49. huaweicloudsdkims/v2/model/delete_image_tag_response.py +14 -10
  50. huaweicloudsdkims/v2/model/export_image_in_safe_mode_request.py +139 -0
  51. huaweicloudsdkims/v2/model/export_image_in_safe_mode_response.py +116 -0
  52. huaweicloudsdkims/v2/model/export_image_request.py +26 -19
  53. huaweicloudsdkims/v2/model/export_image_request_body.py +55 -19
  54. huaweicloudsdkims/v2/model/export_image_response.py +19 -13
  55. huaweicloudsdkims/v2/model/glance_add_image_member_request.py +26 -19
  56. huaweicloudsdkims/v2/model/glance_add_image_member_request_body.py +18 -13
  57. huaweicloudsdkims/v2/model/glance_add_image_member_response.py +105 -31
  58. huaweicloudsdkims/v2/model/glance_create_image_metadata_request.py +19 -16
  59. huaweicloudsdkims/v2/model/glance_create_image_metadata_request_body.py +58 -37
  60. huaweicloudsdkims/v2/model/glance_create_image_metadata_response.py +239 -94
  61. huaweicloudsdkims/v2/model/glance_create_tag_request.py +27 -16
  62. huaweicloudsdkims/v2/model/glance_create_tag_response.py +14 -10
  63. huaweicloudsdkims/v2/model/glance_delete_image_member_request.py +27 -16
  64. huaweicloudsdkims/v2/model/glance_delete_image_member_response.py +14 -10
  65. huaweicloudsdkims/v2/model/glance_delete_image_request.py +26 -19
  66. huaweicloudsdkims/v2/model/glance_delete_image_request_body.py +18 -13
  67. huaweicloudsdkims/v2/model/glance_delete_image_response.py +14 -10
  68. huaweicloudsdkims/v2/model/glance_delete_tag_request.py +27 -16
  69. huaweicloudsdkims/v2/model/glance_delete_tag_response.py +14 -10
  70. huaweicloudsdkims/v2/model/glance_image_members.py +104 -31
  71. huaweicloudsdkims/v2/model/glance_list_image_member_schemas_request.py +13 -10
  72. huaweicloudsdkims/v2/model/glance_list_image_member_schemas_response.py +30 -20
  73. huaweicloudsdkims/v2/model/glance_list_image_members_request.py +20 -13
  74. huaweicloudsdkims/v2/model/glance_list_image_members_response.py +25 -17
  75. huaweicloudsdkims/v2/model/glance_list_image_schemas_request.py +13 -10
  76. huaweicloudsdkims/v2/model/glance_list_image_schemas_response.py +30 -20
  77. huaweicloudsdkims/v2/model/glance_list_images_request.py +237 -106
  78. huaweicloudsdkims/v2/model/glance_list_images_response.py +36 -24
  79. huaweicloudsdkims/v2/model/glance_show_image_list_response_body.py +1833 -0
  80. huaweicloudsdkims/v2/model/glance_show_image_member_request.py +27 -16
  81. huaweicloudsdkims/v2/model/glance_show_image_member_response.py +105 -31
  82. huaweicloudsdkims/v2/model/glance_show_image_member_schemas_request.py +13 -10
  83. huaweicloudsdkims/v2/model/glance_show_image_member_schemas_response.py +24 -16
  84. huaweicloudsdkims/v2/model/glance_show_image_request.py +20 -13
  85. huaweicloudsdkims/v2/model/glance_show_image_response.py +631 -210
  86. huaweicloudsdkims/v2/model/glance_show_image_schemas_request.py +13 -10
  87. huaweicloudsdkims/v2/model/glance_show_image_schemas_response.py +36 -26
  88. huaweicloudsdkims/v2/model/glance_update_image_member_request.py +33 -22
  89. huaweicloudsdkims/v2/model/glance_update_image_member_request_body.py +23 -16
  90. huaweicloudsdkims/v2/model/glance_update_image_member_response.py +105 -31
  91. huaweicloudsdkims/v2/model/glance_update_image_request.py +26 -19
  92. huaweicloudsdkims/v2/model/glance_update_image_request_body.py +28 -19
  93. huaweicloudsdkims/v2/model/glance_update_image_response.py +631 -210
  94. huaweicloudsdkims/v2/model/image_info.py +616 -260
  95. huaweicloudsdkims/v2/model/image_member.py +310 -0
  96. huaweicloudsdkims/v2/model/image_tag.py +23 -16
  97. huaweicloudsdkims/v2/model/import_image_quick_in_safe_mode_request.py +111 -0
  98. huaweicloudsdkims/v2/model/import_image_quick_in_safe_mode_response.py +116 -0
  99. huaweicloudsdkims/v2/model/import_image_quick_request.py +19 -16
  100. huaweicloudsdkims/v2/model/import_image_quick_response.py +19 -13
  101. huaweicloudsdkims/v2/model/job_entities.py +340 -16
  102. huaweicloudsdkims/v2/model/job_entities_result.py +173 -0
  103. huaweicloudsdkims/v2/model/job_progress_entities.py +289 -0
  104. huaweicloudsdkims/v2/model/links.py +23 -16
  105. huaweicloudsdkims/v2/model/list_image_by_tags_request.py +19 -16
  106. huaweicloudsdkims/v2/model/list_image_by_tags_request_body.py +90 -42
  107. huaweicloudsdkims/v2/model/list_image_by_tags_response.py +25 -17
  108. huaweicloudsdkims/v2/model/list_image_members_request.py +114 -0
  109. huaweicloudsdkims/v2/model/list_image_members_response.py +145 -0
  110. huaweicloudsdkims/v2/model/list_image_tags_request.py +20 -13
  111. huaweicloudsdkims/v2/model/list_image_tags_response.py +20 -14
  112. huaweicloudsdkims/v2/model/list_images_request.py +272 -121
  113. huaweicloudsdkims/v2/model/list_images_response.py +20 -14
  114. huaweicloudsdkims/v2/model/list_images_tags_request.py +13 -10
  115. huaweicloudsdkims/v2/model/list_images_tags_response.py +20 -14
  116. huaweicloudsdkims/v2/model/list_os_versions_request.py +20 -13
  117. huaweicloudsdkims/v2/model/list_os_versions_response.py +20 -16
  118. huaweicloudsdkims/v2/model/list_os_versions_response_body.py +24 -17
  119. huaweicloudsdkims/v2/model/list_tags_request.py +118 -55
  120. huaweicloudsdkims/v2/model/list_tags_response.py +19 -13
  121. huaweicloudsdkims/v2/model/list_versions_request.py +84 -0
  122. huaweicloudsdkims/v2/model/list_versions_response.py +116 -0
  123. huaweicloudsdkims/v2/model/os_version_info.py +38 -25
  124. huaweicloudsdkims/v2/model/os_version_response.py +172 -0
  125. huaweicloudsdkims/v2/model/query_image_by_tags_resource_detail.py +18 -13
  126. huaweicloudsdkims/v2/model/quick_import_image_by_file_request_body.py +130 -47
  127. huaweicloudsdkims/v2/model/quota.py +19 -14
  128. huaweicloudsdkims/v2/model/quota_info.py +38 -25
  129. huaweicloudsdkims/v2/model/register_image_request.py +26 -19
  130. huaweicloudsdkims/v2/model/register_image_request_body.py +18 -13
  131. huaweicloudsdkims/v2/model/register_image_response.py +19 -13
  132. huaweicloudsdkims/v2/model/resource_tag.py +23 -16
  133. huaweicloudsdkims/v2/model/show_image_by_tags_resource.py +47 -38
  134. huaweicloudsdkims/v2/model/show_image_member_request.py +142 -0
  135. huaweicloudsdkims/v2/model/show_image_member_response.py +319 -0
  136. huaweicloudsdkims/v2/model/show_image_quota_request.py +13 -10
  137. huaweicloudsdkims/v2/model/show_image_quota_response.py +20 -16
  138. huaweicloudsdkims/v2/model/show_job_progress_request.py +114 -0
  139. huaweicloudsdkims/v2/model/show_job_progress_response.py +315 -0
  140. huaweicloudsdkims/v2/model/show_job_request.py +20 -13
  141. huaweicloudsdkims/v2/model/show_job_response.py +55 -37
  142. huaweicloudsdkims/v2/model/show_version_request.py +114 -0
  143. huaweicloudsdkims/v2/model/show_version_response.py +116 -0
  144. huaweicloudsdkims/v2/model/sub_job_entities.py +144 -0
  145. huaweicloudsdkims/v2/model/sub_job_result.py +314 -0
  146. huaweicloudsdkims/v2/model/tag_key_value.py +23 -16
  147. huaweicloudsdkims/v2/model/tags.py +23 -16
  148. huaweicloudsdkims/v2/model/update_image_request.py +26 -19
  149. huaweicloudsdkims/v2/model/update_image_request_body.py +29 -21
  150. huaweicloudsdkims/v2/model/update_image_response.py +600 -254
  151. huaweicloudsdkims/v2/region/ims_region.py +101 -42
  152. {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/METADATA +9 -9
  153. huaweicloudsdkims-3.1.160.dist-info/RECORD +158 -0
  154. {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/WHEEL +1 -1
  155. huaweicloudsdkims/v2/model/glance_show_image_response_body.py +0 -1357
  156. huaweicloudsdkims-3.0.43rc0.dist-info/RECORD +0 -129
  157. {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/LICENSE +0 -0
  158. {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/top_level.txt +0 -0
@@ -1,17 +1,13 @@
1
1
  # coding: utf-8
2
2
 
3
- import pprint
4
- import re
5
-
6
3
  import six
7
4
 
8
-
9
5
  from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
10
7
 
11
8
 
12
9
  class ShowImageQuotaResponse(SdkResponse):
13
10
 
14
-
15
11
  """
16
12
  Attributes:
17
13
  openapi_types (dict): The key is attribute name
@@ -19,7 +15,6 @@ class ShowImageQuotaResponse(SdkResponse):
19
15
  attribute_map (dict): The key is attribute name
20
16
  and the value is json key in definition.
21
17
  """
22
-
23
18
  sensitive_list = []
24
19
 
25
20
  openapi_types = {
@@ -31,9 +26,15 @@ class ShowImageQuotaResponse(SdkResponse):
31
26
  }
32
27
 
33
28
  def __init__(self, quotas=None):
34
- """ShowImageQuotaResponse - a model defined in huaweicloud sdk"""
29
+ r"""ShowImageQuotaResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param quotas:
34
+ :type quotas: :class:`huaweicloudsdkims.v2.Quota`
35
+ """
35
36
 
36
- super().__init__()
37
+ super(ShowImageQuotaResponse, self).__init__()
37
38
 
38
39
  self._quotas = None
39
40
  self.discriminator = None
@@ -43,21 +44,19 @@ class ShowImageQuotaResponse(SdkResponse):
43
44
 
44
45
  @property
45
46
  def quotas(self):
46
- """Gets the quotas of this ShowImageQuotaResponse.
47
-
47
+ r"""Gets the quotas of this ShowImageQuotaResponse.
48
48
 
49
49
  :return: The quotas of this ShowImageQuotaResponse.
50
- :rtype: Quota
50
+ :rtype: :class:`huaweicloudsdkims.v2.Quota`
51
51
  """
52
52
  return self._quotas
53
53
 
54
54
  @quotas.setter
55
55
  def quotas(self, quotas):
56
- """Sets the quotas of this ShowImageQuotaResponse.
57
-
56
+ r"""Sets the quotas of this ShowImageQuotaResponse.
58
57
 
59
58
  :param quotas: The quotas of this ShowImageQuotaResponse.
60
- :type: Quota
59
+ :type quotas: :class:`huaweicloudsdkims.v2.Quota`
61
60
  """
62
61
  self._quotas = quotas
63
62
 
@@ -90,10 +89,15 @@ class ShowImageQuotaResponse(SdkResponse):
90
89
 
91
90
  def to_str(self):
92
91
  """Returns the string representation of the model"""
93
- return pprint.pformat(self.to_dict())
92
+ import simplejson as json
93
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
94
98
 
95
99
  def __repr__(self):
96
- """For `print` and `pprint`"""
100
+ """For `print`"""
97
101
  return self.to_str()
98
102
 
99
103
  def __eq__(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 ShowJobProgressRequest:
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
+ }
22
+
23
+ attribute_map = {
24
+ 'job_id': 'job_id'
25
+ }
26
+
27
+ def __init__(self, job_id=None):
28
+ r"""ShowJobProgressRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param job_id: 异步任务ID
33
+ :type job_id: str
34
+ """
35
+
36
+
37
+
38
+ self._job_id = None
39
+ self.discriminator = None
40
+
41
+ self.job_id = job_id
42
+
43
+ @property
44
+ def job_id(self):
45
+ r"""Gets the job_id of this ShowJobProgressRequest.
46
+
47
+ 异步任务ID
48
+
49
+ :return: The job_id of this ShowJobProgressRequest.
50
+ :rtype: str
51
+ """
52
+ return self._job_id
53
+
54
+ @job_id.setter
55
+ def job_id(self, job_id):
56
+ r"""Sets the job_id of this ShowJobProgressRequest.
57
+
58
+ 异步任务ID
59
+
60
+ :param job_id: The job_id of this ShowJobProgressRequest.
61
+ :type job_id: str
62
+ """
63
+ self._job_id = job_id
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, ShowJobProgressRequest):
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,315 @@
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 ShowJobProgressResponse(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
+ 'job_id': 'str',
23
+ 'job_type': 'str',
24
+ 'begin_time': 'str',
25
+ 'end_time': 'str',
26
+ 'error_code': 'str',
27
+ 'fail_reason': 'str',
28
+ 'entities': 'JobProgressEntities'
29
+ }
30
+
31
+ attribute_map = {
32
+ 'status': 'status',
33
+ 'job_id': 'job_id',
34
+ 'job_type': 'job_type',
35
+ 'begin_time': 'begin_time',
36
+ 'end_time': 'end_time',
37
+ 'error_code': 'error_code',
38
+ 'fail_reason': 'fail_reason',
39
+ 'entities': 'entities'
40
+ }
41
+
42
+ def __init__(self, status=None, job_id=None, job_type=None, begin_time=None, end_time=None, error_code=None, fail_reason=None, entities=None):
43
+ r"""ShowJobProgressResponse
44
+
45
+ The model defined in huaweicloud sdk
46
+
47
+ :param status: 任务状态,目前取值如下: SUCCESS:表示该任务执行已经结束,任务执行成功。 FAIL:表示该任务执行已经结束,任务执行失败。 RUNNING:表示该任务正在执行。 INIT:表给任务还未执行,正在初始化。
48
+ :type status: str
49
+ :param job_id: 任务ID。
50
+ :type job_id: str
51
+ :param job_type: 任务类型。
52
+ :type job_type: str
53
+ :param begin_time: 任务开始执行时间。格式为UTC时间。
54
+ :type begin_time: str
55
+ :param end_time: 任务结束时间。格式为UTC时间。
56
+ :type end_time: str
57
+ :param error_code: 错误码。
58
+ :type error_code: str
59
+ :param fail_reason: 失败原因。
60
+ :type fail_reason: str
61
+ :param entities:
62
+ :type entities: :class:`huaweicloudsdkims.v2.JobProgressEntities`
63
+ """
64
+
65
+ super(ShowJobProgressResponse, self).__init__()
66
+
67
+ self._status = None
68
+ self._job_id = None
69
+ self._job_type = None
70
+ self._begin_time = None
71
+ self._end_time = None
72
+ self._error_code = None
73
+ self._fail_reason = None
74
+ self._entities = None
75
+ self.discriminator = None
76
+
77
+ if status is not None:
78
+ self.status = status
79
+ if job_id is not None:
80
+ self.job_id = job_id
81
+ if job_type is not None:
82
+ self.job_type = job_type
83
+ if begin_time is not None:
84
+ self.begin_time = begin_time
85
+ if end_time is not None:
86
+ self.end_time = end_time
87
+ if error_code is not None:
88
+ self.error_code = error_code
89
+ if fail_reason is not None:
90
+ self.fail_reason = fail_reason
91
+ if entities is not None:
92
+ self.entities = entities
93
+
94
+ @property
95
+ def status(self):
96
+ r"""Gets the status of this ShowJobProgressResponse.
97
+
98
+ 任务状态,目前取值如下: SUCCESS:表示该任务执行已经结束,任务执行成功。 FAIL:表示该任务执行已经结束,任务执行失败。 RUNNING:表示该任务正在执行。 INIT:表给任务还未执行,正在初始化。
99
+
100
+ :return: The status of this ShowJobProgressResponse.
101
+ :rtype: str
102
+ """
103
+ return self._status
104
+
105
+ @status.setter
106
+ def status(self, status):
107
+ r"""Sets the status of this ShowJobProgressResponse.
108
+
109
+ 任务状态,目前取值如下: SUCCESS:表示该任务执行已经结束,任务执行成功。 FAIL:表示该任务执行已经结束,任务执行失败。 RUNNING:表示该任务正在执行。 INIT:表给任务还未执行,正在初始化。
110
+
111
+ :param status: The status of this ShowJobProgressResponse.
112
+ :type status: str
113
+ """
114
+ self._status = status
115
+
116
+ @property
117
+ def job_id(self):
118
+ r"""Gets the job_id of this ShowJobProgressResponse.
119
+
120
+ 任务ID。
121
+
122
+ :return: The job_id of this ShowJobProgressResponse.
123
+ :rtype: str
124
+ """
125
+ return self._job_id
126
+
127
+ @job_id.setter
128
+ def job_id(self, job_id):
129
+ r"""Sets the job_id of this ShowJobProgressResponse.
130
+
131
+ 任务ID。
132
+
133
+ :param job_id: The job_id of this ShowJobProgressResponse.
134
+ :type job_id: str
135
+ """
136
+ self._job_id = job_id
137
+
138
+ @property
139
+ def job_type(self):
140
+ r"""Gets the job_type of this ShowJobProgressResponse.
141
+
142
+ 任务类型。
143
+
144
+ :return: The job_type of this ShowJobProgressResponse.
145
+ :rtype: str
146
+ """
147
+ return self._job_type
148
+
149
+ @job_type.setter
150
+ def job_type(self, job_type):
151
+ r"""Sets the job_type of this ShowJobProgressResponse.
152
+
153
+ 任务类型。
154
+
155
+ :param job_type: The job_type of this ShowJobProgressResponse.
156
+ :type job_type: str
157
+ """
158
+ self._job_type = job_type
159
+
160
+ @property
161
+ def begin_time(self):
162
+ r"""Gets the begin_time of this ShowJobProgressResponse.
163
+
164
+ 任务开始执行时间。格式为UTC时间。
165
+
166
+ :return: The begin_time of this ShowJobProgressResponse.
167
+ :rtype: str
168
+ """
169
+ return self._begin_time
170
+
171
+ @begin_time.setter
172
+ def begin_time(self, begin_time):
173
+ r"""Sets the begin_time of this ShowJobProgressResponse.
174
+
175
+ 任务开始执行时间。格式为UTC时间。
176
+
177
+ :param begin_time: The begin_time of this ShowJobProgressResponse.
178
+ :type begin_time: str
179
+ """
180
+ self._begin_time = begin_time
181
+
182
+ @property
183
+ def end_time(self):
184
+ r"""Gets the end_time of this ShowJobProgressResponse.
185
+
186
+ 任务结束时间。格式为UTC时间。
187
+
188
+ :return: The end_time of this ShowJobProgressResponse.
189
+ :rtype: str
190
+ """
191
+ return self._end_time
192
+
193
+ @end_time.setter
194
+ def end_time(self, end_time):
195
+ r"""Sets the end_time of this ShowJobProgressResponse.
196
+
197
+ 任务结束时间。格式为UTC时间。
198
+
199
+ :param end_time: The end_time of this ShowJobProgressResponse.
200
+ :type end_time: str
201
+ """
202
+ self._end_time = end_time
203
+
204
+ @property
205
+ def error_code(self):
206
+ r"""Gets the error_code of this ShowJobProgressResponse.
207
+
208
+ 错误码。
209
+
210
+ :return: The error_code of this ShowJobProgressResponse.
211
+ :rtype: str
212
+ """
213
+ return self._error_code
214
+
215
+ @error_code.setter
216
+ def error_code(self, error_code):
217
+ r"""Sets the error_code of this ShowJobProgressResponse.
218
+
219
+ 错误码。
220
+
221
+ :param error_code: The error_code of this ShowJobProgressResponse.
222
+ :type error_code: str
223
+ """
224
+ self._error_code = error_code
225
+
226
+ @property
227
+ def fail_reason(self):
228
+ r"""Gets the fail_reason of this ShowJobProgressResponse.
229
+
230
+ 失败原因。
231
+
232
+ :return: The fail_reason of this ShowJobProgressResponse.
233
+ :rtype: str
234
+ """
235
+ return self._fail_reason
236
+
237
+ @fail_reason.setter
238
+ def fail_reason(self, fail_reason):
239
+ r"""Sets the fail_reason of this ShowJobProgressResponse.
240
+
241
+ 失败原因。
242
+
243
+ :param fail_reason: The fail_reason of this ShowJobProgressResponse.
244
+ :type fail_reason: str
245
+ """
246
+ self._fail_reason = fail_reason
247
+
248
+ @property
249
+ def entities(self):
250
+ r"""Gets the entities of this ShowJobProgressResponse.
251
+
252
+ :return: The entities of this ShowJobProgressResponse.
253
+ :rtype: :class:`huaweicloudsdkims.v2.JobProgressEntities`
254
+ """
255
+ return self._entities
256
+
257
+ @entities.setter
258
+ def entities(self, entities):
259
+ r"""Sets the entities of this ShowJobProgressResponse.
260
+
261
+ :param entities: The entities of this ShowJobProgressResponse.
262
+ :type entities: :class:`huaweicloudsdkims.v2.JobProgressEntities`
263
+ """
264
+ self._entities = entities
265
+
266
+ def to_dict(self):
267
+ """Returns the model properties as a dict"""
268
+ result = {}
269
+
270
+ for attr, _ in six.iteritems(self.openapi_types):
271
+ value = getattr(self, attr)
272
+ if isinstance(value, list):
273
+ result[attr] = list(map(
274
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
275
+ value
276
+ ))
277
+ elif hasattr(value, "to_dict"):
278
+ result[attr] = value.to_dict()
279
+ elif isinstance(value, dict):
280
+ result[attr] = dict(map(
281
+ lambda item: (item[0], item[1].to_dict())
282
+ if hasattr(item[1], "to_dict") else item,
283
+ value.items()
284
+ ))
285
+ else:
286
+ if attr in self.sensitive_list:
287
+ result[attr] = "****"
288
+ else:
289
+ result[attr] = value
290
+
291
+ return result
292
+
293
+ def to_str(self):
294
+ """Returns the string representation of the model"""
295
+ import simplejson as json
296
+ if six.PY2:
297
+ import sys
298
+ reload(sys)
299
+ sys.setdefaultencoding("utf-8")
300
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
301
+
302
+ def __repr__(self):
303
+ """For `print`"""
304
+ return self.to_str()
305
+
306
+ def __eq__(self, other):
307
+ """Returns true if both objects are equal"""
308
+ if not isinstance(other, ShowJobProgressResponse):
309
+ return False
310
+
311
+ return self.__dict__ == other.__dict__
312
+
313
+ def __ne__(self, other):
314
+ """Returns true if both objects are not equal"""
315
+ return not self == other
@@ -1,17 +1,12 @@
1
1
  # coding: utf-8
2
2
 
3
- import pprint
4
- import re
5
-
6
3
  import six
7
4
 
8
-
9
-
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
10
6
 
11
7
 
12
8
  class ShowJobRequest:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class ShowJobRequest:
19
14
  attribute_map (dict): The key is attribute name
20
15
  and the value is json key in definition.
21
16
  """
22
-
23
17
  sensitive_list = []
24
18
 
25
19
  openapi_types = {
@@ -31,7 +25,13 @@ class ShowJobRequest:
31
25
  }
32
26
 
33
27
  def __init__(self, job_id=None):
34
- """ShowJobRequest - a model defined in huaweicloud sdk"""
28
+ r"""ShowJobRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param job_id: 异步任务ID
33
+ :type job_id: str
34
+ """
35
35
 
36
36
 
37
37
 
@@ -42,8 +42,9 @@ class ShowJobRequest:
42
42
 
43
43
  @property
44
44
  def job_id(self):
45
- """Gets the job_id of this ShowJobRequest.
45
+ r"""Gets the job_id of this ShowJobRequest.
46
46
 
47
+ 异步任务ID
47
48
 
48
49
  :return: The job_id of this ShowJobRequest.
49
50
  :rtype: str
@@ -52,11 +53,12 @@ class ShowJobRequest:
52
53
 
53
54
  @job_id.setter
54
55
  def job_id(self, job_id):
55
- """Sets the job_id of this ShowJobRequest.
56
+ r"""Sets the job_id of this ShowJobRequest.
56
57
 
58
+ 异步任务ID
57
59
 
58
60
  :param job_id: The job_id of this ShowJobRequest.
59
- :type: str
61
+ :type job_id: str
60
62
  """
61
63
  self._job_id = job_id
62
64
 
@@ -89,10 +91,15 @@ class ShowJobRequest:
89
91
 
90
92
  def to_str(self):
91
93
  """Returns the string representation of the model"""
92
- return pprint.pformat(self.to_dict())
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)
93
100
 
94
101
  def __repr__(self):
95
- """For `print` and `pprint`"""
102
+ """For `print`"""
96
103
  return self.to_str()
97
104
 
98
105
  def __eq__(self, other):