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 ListImagesResponse(SdkResponse):
13
10
 
14
-
15
11
  """
16
12
  Attributes:
17
13
  openapi_types (dict): The key is attribute name
@@ -19,7 +15,6 @@ class ListImagesResponse(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 ListImagesResponse(SdkResponse):
31
26
  }
32
27
 
33
28
  def __init__(self, images=None):
34
- """ListImagesResponse - a model defined in huaweicloud sdk"""
29
+ r"""ListImagesResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param images: 镜像列表
34
+ :type images: list[:class:`huaweicloudsdkims.v2.ImageInfo`]
35
+ """
35
36
 
36
- super().__init__()
37
+ super(ListImagesResponse, self).__init__()
37
38
 
38
39
  self._images = None
39
40
  self.discriminator = None
@@ -43,23 +44,23 @@ class ListImagesResponse(SdkResponse):
43
44
 
44
45
  @property
45
46
  def images(self):
46
- """Gets the images of this ListImagesResponse.
47
+ r"""Gets the images of this ListImagesResponse.
47
48
 
48
49
  镜像列表
49
50
 
50
51
  :return: The images of this ListImagesResponse.
51
- :rtype: list[ImageInfo]
52
+ :rtype: list[:class:`huaweicloudsdkims.v2.ImageInfo`]
52
53
  """
53
54
  return self._images
54
55
 
55
56
  @images.setter
56
57
  def images(self, images):
57
- """Sets the images of this ListImagesResponse.
58
+ r"""Sets the images of this ListImagesResponse.
58
59
 
59
60
  镜像列表
60
61
 
61
62
  :param images: The images of this ListImagesResponse.
62
- :type: list[ImageInfo]
63
+ :type images: list[:class:`huaweicloudsdkims.v2.ImageInfo`]
63
64
  """
64
65
  self._images = images
65
66
 
@@ -92,10 +93,15 @@ class ListImagesResponse(SdkResponse):
92
93
 
93
94
  def to_str(self):
94
95
  """Returns the string representation of the model"""
95
- return pprint.pformat(self.to_dict())
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
96
102
 
97
103
  def __repr__(self):
98
- """For `print` and `pprint`"""
104
+ """For `print`"""
99
105
  return self.to_str()
100
106
 
101
107
  def __eq__(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 ListImagesTagsRequest:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class ListImagesTagsRequest:
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 = {
@@ -29,7 +23,11 @@ class ListImagesTagsRequest:
29
23
  }
30
24
 
31
25
  def __init__(self):
32
- """ListImagesTagsRequest - a model defined in huaweicloud sdk"""
26
+ r"""ListImagesTagsRequest
27
+
28
+ The model defined in huaweicloud sdk
29
+
30
+ """
33
31
 
34
32
 
35
33
  self.discriminator = None
@@ -63,10 +61,15 @@ class ListImagesTagsRequest:
63
61
 
64
62
  def to_str(self):
65
63
  """Returns the string representation of the model"""
66
- return pprint.pformat(self.to_dict())
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)
67
70
 
68
71
  def __repr__(self):
69
- """For `print` and `pprint`"""
72
+ """For `print`"""
70
73
  return self.to_str()
71
74
 
72
75
  def __eq__(self, other):
@@ -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 ListImagesTagsResponse(SdkResponse):
13
10
 
14
-
15
11
  """
16
12
  Attributes:
17
13
  openapi_types (dict): The key is attribute name
@@ -19,7 +15,6 @@ class ListImagesTagsResponse(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 ListImagesTagsResponse(SdkResponse):
31
26
  }
32
27
 
33
28
  def __init__(self, tags=None):
34
- """ListImagesTagsResponse - a model defined in huaweicloud sdk"""
29
+ r"""ListImagesTagsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param tags: 标签列表
34
+ :type tags: list[:class:`huaweicloudsdkims.v2.Tags`]
35
+ """
35
36
 
36
- super().__init__()
37
+ super(ListImagesTagsResponse, self).__init__()
37
38
 
38
39
  self._tags = None
39
40
  self.discriminator = None
@@ -43,23 +44,23 @@ class ListImagesTagsResponse(SdkResponse):
43
44
 
44
45
  @property
45
46
  def tags(self):
46
- """Gets the tags of this ListImagesTagsResponse.
47
+ r"""Gets the tags of this ListImagesTagsResponse.
47
48
 
48
49
  标签列表
49
50
 
50
51
  :return: The tags of this ListImagesTagsResponse.
51
- :rtype: list[Tags]
52
+ :rtype: list[:class:`huaweicloudsdkims.v2.Tags`]
52
53
  """
53
54
  return self._tags
54
55
 
55
56
  @tags.setter
56
57
  def tags(self, tags):
57
- """Sets the tags of this ListImagesTagsResponse.
58
+ r"""Sets the tags of this ListImagesTagsResponse.
58
59
 
59
60
  标签列表
60
61
 
61
62
  :param tags: The tags of this ListImagesTagsResponse.
62
- :type: list[Tags]
63
+ :type tags: list[:class:`huaweicloudsdkims.v2.Tags`]
63
64
  """
64
65
  self._tags = tags
65
66
 
@@ -92,10 +93,15 @@ class ListImagesTagsResponse(SdkResponse):
92
93
 
93
94
  def to_str(self):
94
95
  """Returns the string representation of the model"""
95
- return pprint.pformat(self.to_dict())
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
96
102
 
97
103
  def __repr__(self):
98
- """For `print` and `pprint`"""
104
+ """For `print`"""
99
105
  return self.to_str()
100
106
 
101
107
  def __eq__(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 ListOsVersionsRequest:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class ListOsVersionsRequest:
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 ListOsVersionsRequest:
31
25
  }
32
26
 
33
27
  def __init__(self, tag=None):
34
- """ListOsVersionsRequest - a model defined in huaweicloud sdk"""
28
+ r"""ListOsVersionsRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param tag: OS的标签。 根据标签值可以过滤查询指定特性的OS信息。 取值范围: bms:表示该镜像支持BMS的os_version列表。 uefi:支持UEFI启动方式的os_version列表。 arm:显示基于arm架构的os_version列表。 x86:显示基于x86架构的os_version列表。不带tag查询条件则默认查询当前region支持的所有的OS列表。
33
+ :type tag: str
34
+ """
35
35
 
36
36
 
37
37
 
@@ -43,8 +43,9 @@ class ListOsVersionsRequest:
43
43
 
44
44
  @property
45
45
  def tag(self):
46
- """Gets the tag of this ListOsVersionsRequest.
46
+ r"""Gets the tag of this ListOsVersionsRequest.
47
47
 
48
+ OS的标签。 根据标签值可以过滤查询指定特性的OS信息。 取值范围: bms:表示该镜像支持BMS的os_version列表。 uefi:支持UEFI启动方式的os_version列表。 arm:显示基于arm架构的os_version列表。 x86:显示基于x86架构的os_version列表。不带tag查询条件则默认查询当前region支持的所有的OS列表。
48
49
 
49
50
  :return: The tag of this ListOsVersionsRequest.
50
51
  :rtype: str
@@ -53,11 +54,12 @@ class ListOsVersionsRequest:
53
54
 
54
55
  @tag.setter
55
56
  def tag(self, tag):
56
- """Sets the tag of this ListOsVersionsRequest.
57
+ r"""Sets the tag of this ListOsVersionsRequest.
57
58
 
59
+ OS的标签。 根据标签值可以过滤查询指定特性的OS信息。 取值范围: bms:表示该镜像支持BMS的os_version列表。 uefi:支持UEFI启动方式的os_version列表。 arm:显示基于arm架构的os_version列表。 x86:显示基于x86架构的os_version列表。不带tag查询条件则默认查询当前region支持的所有的OS列表。
58
60
 
59
61
  :param tag: The tag of this ListOsVersionsRequest.
60
- :type: str
62
+ :type tag: str
61
63
  """
62
64
  self._tag = tag
63
65
 
@@ -90,10 +92,15 @@ class ListOsVersionsRequest:
90
92
 
91
93
  def to_str(self):
92
94
  """Returns the string representation of the model"""
93
- return pprint.pformat(self.to_dict())
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)
94
101
 
95
102
  def __repr__(self):
96
- """For `print` and `pprint`"""
103
+ """For `print`"""
97
104
  return self.to_str()
98
105
 
99
106
  def __eq__(self, other):
@@ -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 ListOsVersionsResponse(SdkResponse):
13
10
 
14
-
15
11
  """
16
12
  Attributes:
17
13
  openapi_types (dict): The key is attribute name
@@ -19,7 +15,6 @@ class ListOsVersionsResponse(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 ListOsVersionsResponse(SdkResponse):
31
26
  }
32
27
 
33
28
  def __init__(self, body=None):
34
- """ListOsVersionsResponse - a model defined in huaweicloud sdk"""
29
+ r"""ListOsVersionsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body:
34
+ :type body: list[:class:`huaweicloudsdkims.v2.ListOsVersionsResponseBody`]
35
+ """
35
36
 
36
- super().__init__()
37
+ super(ListOsVersionsResponse, self).__init__()
37
38
 
38
39
  self._body = None
39
40
  self.discriminator = None
@@ -43,21 +44,19 @@ class ListOsVersionsResponse(SdkResponse):
43
44
 
44
45
  @property
45
46
  def body(self):
46
- """Gets the body of this ListOsVersionsResponse.
47
-
47
+ r"""Gets the body of this ListOsVersionsResponse.
48
48
 
49
49
  :return: The body of this ListOsVersionsResponse.
50
- :rtype: list[ListOsVersionsResponseBody]
50
+ :rtype: list[:class:`huaweicloudsdkims.v2.ListOsVersionsResponseBody`]
51
51
  """
52
52
  return self._body
53
53
 
54
54
  @body.setter
55
55
  def body(self, body):
56
- """Sets the body of this ListOsVersionsResponse.
57
-
56
+ r"""Sets the body of this ListOsVersionsResponse.
58
57
 
59
58
  :param body: The body of this ListOsVersionsResponse.
60
- :type: list[ListOsVersionsResponseBody]
59
+ :type body: list[:class:`huaweicloudsdkims.v2.ListOsVersionsResponseBody`]
61
60
  """
62
61
  self._body = body
63
62
 
@@ -90,10 +89,15 @@ class ListOsVersionsResponse(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):
@@ -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 ListOsVersionsResponseBody:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class ListOsVersionsResponseBody:
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 = {
@@ -33,7 +27,15 @@ class ListOsVersionsResponseBody:
33
27
  }
34
28
 
35
29
  def __init__(self, platform=None, version_list=None):
36
- """ListOsVersionsResponseBody - a model defined in huaweicloud sdk"""
30
+ r"""ListOsVersionsResponseBody
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param platform: 操作系统的平台值,如RedHat等
35
+ :type platform: str
36
+ :param version_list: 操作系统的详情值
37
+ :type version_list: list[:class:`huaweicloudsdkims.v2.OsVersionInfo`]
38
+ """
37
39
 
38
40
 
39
41
 
@@ -46,7 +48,7 @@ class ListOsVersionsResponseBody:
46
48
 
47
49
  @property
48
50
  def platform(self):
49
- """Gets the platform of this ListOsVersionsResponseBody.
51
+ r"""Gets the platform of this ListOsVersionsResponseBody.
50
52
 
51
53
  操作系统的平台值,如RedHat等
52
54
 
@@ -57,34 +59,34 @@ class ListOsVersionsResponseBody:
57
59
 
58
60
  @platform.setter
59
61
  def platform(self, platform):
60
- """Sets the platform of this ListOsVersionsResponseBody.
62
+ r"""Sets the platform of this ListOsVersionsResponseBody.
61
63
 
62
64
  操作系统的平台值,如RedHat等
63
65
 
64
66
  :param platform: The platform of this ListOsVersionsResponseBody.
65
- :type: str
67
+ :type platform: str
66
68
  """
67
69
  self._platform = platform
68
70
 
69
71
  @property
70
72
  def version_list(self):
71
- """Gets the version_list of this ListOsVersionsResponseBody.
73
+ r"""Gets the version_list of this ListOsVersionsResponseBody.
72
74
 
73
75
  操作系统的详情值
74
76
 
75
77
  :return: The version_list of this ListOsVersionsResponseBody.
76
- :rtype: list[OsVersionInfo]
78
+ :rtype: list[:class:`huaweicloudsdkims.v2.OsVersionInfo`]
77
79
  """
78
80
  return self._version_list
79
81
 
80
82
  @version_list.setter
81
83
  def version_list(self, version_list):
82
- """Sets the version_list of this ListOsVersionsResponseBody.
84
+ r"""Sets the version_list of this ListOsVersionsResponseBody.
83
85
 
84
86
  操作系统的详情值
85
87
 
86
88
  :param version_list: The version_list of this ListOsVersionsResponseBody.
87
- :type: list[OsVersionInfo]
89
+ :type version_list: list[:class:`huaweicloudsdkims.v2.OsVersionInfo`]
88
90
  """
89
91
  self._version_list = version_list
90
92
 
@@ -117,10 +119,15 @@ class ListOsVersionsResponseBody:
117
119
 
118
120
  def to_str(self):
119
121
  """Returns the string representation of the model"""
120
- return pprint.pformat(self.to_dict())
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
121
128
 
122
129
  def __repr__(self):
123
- """For `print` and `pprint`"""
130
+ """For `print`"""
124
131
  return self.to_str()
125
132
 
126
133
  def __eq__(self, other):