huaweicloudsdkims 3.0.42rc0__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.42rc0.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.42rc0.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.42rc0.dist-info/RECORD +0 -129
  157. {huaweicloudsdkims-3.0.42rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/LICENSE +0 -0
  158. {huaweicloudsdkims-3.0.42rc0.dist-info → huaweicloudsdkims-3.1.160.dist-info}/top_level.txt +0 -0
@@ -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 BatchAddMembersRequestBody:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,34 +14,55 @@ class BatchAddMembersRequestBody:
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 = {
26
20
  'images': 'list[str]',
27
- 'projects': 'list[str]'
21
+ 'projects': 'list[str]',
22
+ 'domains': 'list[str]',
23
+ 'organizations': 'list[str]'
28
24
  }
29
25
 
30
26
  attribute_map = {
31
27
  'images': 'images',
32
- 'projects': 'projects'
28
+ 'projects': 'projects',
29
+ 'domains': 'domains',
30
+ 'organizations': 'organizations'
33
31
  }
34
32
 
35
- def __init__(self, images=None, projects=None):
36
- """BatchAddMembersRequestBody - a model defined in huaweicloud sdk"""
33
+ def __init__(self, images=None, projects=None, domains=None, organizations=None):
34
+ r"""BatchAddMembersRequestBody
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param images: 镜像ID列表
39
+ :type images: list[str]
40
+ :param projects: 项目ID列表
41
+ :type projects: list[str]
42
+ :param domains: 账号ID列表
43
+ :type domains: list[str]
44
+ :param organizations: 组织URN列表
45
+ :type organizations: list[str]
46
+ """
37
47
 
38
48
 
39
49
 
40
50
  self._images = None
41
51
  self._projects = None
52
+ self._domains = None
53
+ self._organizations = None
42
54
  self.discriminator = None
43
55
 
44
56
  self.images = images
45
57
  self.projects = projects
58
+ if domains is not None:
59
+ self.domains = domains
60
+ if organizations is not None:
61
+ self.organizations = organizations
46
62
 
47
63
  @property
48
64
  def images(self):
49
- """Gets the images of this BatchAddMembersRequestBody.
65
+ r"""Gets the images of this BatchAddMembersRequestBody.
50
66
 
51
67
  镜像ID列表
52
68
 
@@ -57,18 +73,18 @@ class BatchAddMembersRequestBody:
57
73
 
58
74
  @images.setter
59
75
  def images(self, images):
60
- """Sets the images of this BatchAddMembersRequestBody.
76
+ r"""Sets the images of this BatchAddMembersRequestBody.
61
77
 
62
78
  镜像ID列表
63
79
 
64
80
  :param images: The images of this BatchAddMembersRequestBody.
65
- :type: list[str]
81
+ :type images: list[str]
66
82
  """
67
83
  self._images = images
68
84
 
69
85
  @property
70
86
  def projects(self):
71
- """Gets the projects of this BatchAddMembersRequestBody.
87
+ r"""Gets the projects of this BatchAddMembersRequestBody.
72
88
 
73
89
  项目ID列表
74
90
 
@@ -79,15 +95,59 @@ class BatchAddMembersRequestBody:
79
95
 
80
96
  @projects.setter
81
97
  def projects(self, projects):
82
- """Sets the projects of this BatchAddMembersRequestBody.
98
+ r"""Sets the projects of this BatchAddMembersRequestBody.
83
99
 
84
100
  项目ID列表
85
101
 
86
102
  :param projects: The projects of this BatchAddMembersRequestBody.
87
- :type: list[str]
103
+ :type projects: list[str]
88
104
  """
89
105
  self._projects = projects
90
106
 
107
+ @property
108
+ def domains(self):
109
+ r"""Gets the domains of this BatchAddMembersRequestBody.
110
+
111
+ 账号ID列表
112
+
113
+ :return: The domains of this BatchAddMembersRequestBody.
114
+ :rtype: list[str]
115
+ """
116
+ return self._domains
117
+
118
+ @domains.setter
119
+ def domains(self, domains):
120
+ r"""Sets the domains of this BatchAddMembersRequestBody.
121
+
122
+ 账号ID列表
123
+
124
+ :param domains: The domains of this BatchAddMembersRequestBody.
125
+ :type domains: list[str]
126
+ """
127
+ self._domains = domains
128
+
129
+ @property
130
+ def organizations(self):
131
+ r"""Gets the organizations of this BatchAddMembersRequestBody.
132
+
133
+ 组织URN列表
134
+
135
+ :return: The organizations of this BatchAddMembersRequestBody.
136
+ :rtype: list[str]
137
+ """
138
+ return self._organizations
139
+
140
+ @organizations.setter
141
+ def organizations(self, organizations):
142
+ r"""Sets the organizations of this BatchAddMembersRequestBody.
143
+
144
+ 组织URN列表
145
+
146
+ :param organizations: The organizations of this BatchAddMembersRequestBody.
147
+ :type organizations: list[str]
148
+ """
149
+ self._organizations = organizations
150
+
91
151
  def to_dict(self):
92
152
  """Returns the model properties as a dict"""
93
153
  result = {}
@@ -117,10 +177,15 @@ class BatchAddMembersRequestBody:
117
177
 
118
178
  def to_str(self):
119
179
  """Returns the string representation of the model"""
120
- return pprint.pformat(self.to_dict())
180
+ import simplejson as json
181
+ if six.PY2:
182
+ import sys
183
+ reload(sys)
184
+ sys.setdefaultencoding("utf-8")
185
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
121
186
 
122
187
  def __repr__(self):
123
- """For `print` and `pprint`"""
188
+ """For `print`"""
124
189
  return self.to_str()
125
190
 
126
191
  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 BatchAddMembersResponse(SdkResponse):
13
10
 
14
-
15
11
  """
16
12
  Attributes:
17
13
  openapi_types (dict): The key is attribute name
@@ -19,7 +15,6 @@ class BatchAddMembersResponse(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 BatchAddMembersResponse(SdkResponse):
31
26
  }
32
27
 
33
28
  def __init__(self, job_id=None):
34
- """BatchAddMembersResponse - a model defined in huaweicloud sdk"""
29
+ r"""BatchAddMembersResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param job_id: 异步任务ID。
34
+ :type job_id: str
35
+ """
35
36
 
36
- super().__init__()
37
+ super(BatchAddMembersResponse, self).__init__()
37
38
 
38
39
  self._job_id = None
39
40
  self.discriminator = None
@@ -43,7 +44,7 @@ class BatchAddMembersResponse(SdkResponse):
43
44
 
44
45
  @property
45
46
  def job_id(self):
46
- """Gets the job_id of this BatchAddMembersResponse.
47
+ r"""Gets the job_id of this BatchAddMembersResponse.
47
48
 
48
49
  异步任务ID。
49
50
 
@@ -54,12 +55,12 @@ class BatchAddMembersResponse(SdkResponse):
54
55
 
55
56
  @job_id.setter
56
57
  def job_id(self, job_id):
57
- """Sets the job_id of this BatchAddMembersResponse.
58
+ r"""Sets the job_id of this BatchAddMembersResponse.
58
59
 
59
60
  异步任务ID。
60
61
 
61
62
  :param job_id: The job_id of this BatchAddMembersResponse.
62
- :type: str
63
+ :type job_id: str
63
64
  """
64
65
  self._job_id = job_id
65
66
 
@@ -92,10 +93,15 @@ class BatchAddMembersResponse(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 BatchAddOrDeleteTagsRequest:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class BatchAddOrDeleteTagsRequest:
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 BatchAddOrDeleteTagsRequest:
33
27
  }
34
28
 
35
29
  def __init__(self, image_id=None, body=None):
36
- """BatchAddOrDeleteTagsRequest - a model defined in huaweicloud sdk"""
30
+ r"""BatchAddOrDeleteTagsRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param image_id: 镜像ID。
35
+ :type image_id: str
36
+ :param body: Body of the BatchAddOrDeleteTagsRequest
37
+ :type body: :class:`huaweicloudsdkims.v2.BatchAddOrDeleteTagsRequestBody`
38
+ """
37
39
 
38
40
 
39
41
 
@@ -47,8 +49,9 @@ class BatchAddOrDeleteTagsRequest:
47
49
 
48
50
  @property
49
51
  def image_id(self):
50
- """Gets the image_id of this BatchAddOrDeleteTagsRequest.
52
+ r"""Gets the image_id of this BatchAddOrDeleteTagsRequest.
51
53
 
54
+ 镜像ID。
52
55
 
53
56
  :return: The image_id of this BatchAddOrDeleteTagsRequest.
54
57
  :rtype: str
@@ -57,31 +60,30 @@ class BatchAddOrDeleteTagsRequest:
57
60
 
58
61
  @image_id.setter
59
62
  def image_id(self, image_id):
60
- """Sets the image_id of this BatchAddOrDeleteTagsRequest.
63
+ r"""Sets the image_id of this BatchAddOrDeleteTagsRequest.
61
64
 
65
+ 镜像ID。
62
66
 
63
67
  :param image_id: The image_id of this BatchAddOrDeleteTagsRequest.
64
- :type: str
68
+ :type image_id: str
65
69
  """
66
70
  self._image_id = image_id
67
71
 
68
72
  @property
69
73
  def body(self):
70
- """Gets the body of this BatchAddOrDeleteTagsRequest.
71
-
74
+ r"""Gets the body of this BatchAddOrDeleteTagsRequest.
72
75
 
73
76
  :return: The body of this BatchAddOrDeleteTagsRequest.
74
- :rtype: BatchAddOrDeleteTagsRequestBody
77
+ :rtype: :class:`huaweicloudsdkims.v2.BatchAddOrDeleteTagsRequestBody`
75
78
  """
76
79
  return self._body
77
80
 
78
81
  @body.setter
79
82
  def body(self, body):
80
- """Sets the body of this BatchAddOrDeleteTagsRequest.
81
-
83
+ r"""Sets the body of this BatchAddOrDeleteTagsRequest.
82
84
 
83
85
  :param body: The body of this BatchAddOrDeleteTagsRequest.
84
- :type: BatchAddOrDeleteTagsRequestBody
86
+ :type body: :class:`huaweicloudsdkims.v2.BatchAddOrDeleteTagsRequestBody`
85
87
  """
86
88
  self._body = body
87
89
 
@@ -114,10 +116,15 @@ class BatchAddOrDeleteTagsRequest:
114
116
 
115
117
  def to_str(self):
116
118
  """Returns the string representation of the model"""
117
- return pprint.pformat(self.to_dict())
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
118
125
 
119
126
  def __repr__(self):
120
- """For `print` and `pprint`"""
127
+ """For `print`"""
121
128
  return self.to_str()
122
129
 
123
130
  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 BatchAddOrDeleteTagsRequestBody:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class BatchAddOrDeleteTagsRequestBody:
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 BatchAddOrDeleteTagsRequestBody:
33
27
  }
34
28
 
35
29
  def __init__(self, action=None, tags=None):
36
- """BatchAddOrDeleteTagsRequestBody - a model defined in huaweicloud sdk"""
30
+ r"""BatchAddOrDeleteTagsRequestBody
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param action: 要进行的标签操作,区分大小写。支持create、delete,分别用于批量地创建/更新、删除标签。
35
+ :type action: str
36
+ :param tags: 需要增加、修改或者删除的标签键值对集合。
37
+ :type tags: list[:class:`huaweicloudsdkims.v2.ResourceTag`]
38
+ """
37
39
 
38
40
 
39
41
 
@@ -46,7 +48,7 @@ class BatchAddOrDeleteTagsRequestBody:
46
48
 
47
49
  @property
48
50
  def action(self):
49
- """Gets the action of this BatchAddOrDeleteTagsRequestBody.
51
+ r"""Gets the action of this BatchAddOrDeleteTagsRequestBody.
50
52
 
51
53
  要进行的标签操作,区分大小写。支持create、delete,分别用于批量地创建/更新、删除标签。
52
54
 
@@ -57,34 +59,34 @@ class BatchAddOrDeleteTagsRequestBody:
57
59
 
58
60
  @action.setter
59
61
  def action(self, action):
60
- """Sets the action of this BatchAddOrDeleteTagsRequestBody.
62
+ r"""Sets the action of this BatchAddOrDeleteTagsRequestBody.
61
63
 
62
64
  要进行的标签操作,区分大小写。支持create、delete,分别用于批量地创建/更新、删除标签。
63
65
 
64
66
  :param action: The action of this BatchAddOrDeleteTagsRequestBody.
65
- :type: str
67
+ :type action: str
66
68
  """
67
69
  self._action = action
68
70
 
69
71
  @property
70
72
  def tags(self):
71
- """Gets the tags of this BatchAddOrDeleteTagsRequestBody.
73
+ r"""Gets the tags of this BatchAddOrDeleteTagsRequestBody.
72
74
 
73
75
  需要增加、修改或者删除的标签键值对集合。
74
76
 
75
77
  :return: The tags of this BatchAddOrDeleteTagsRequestBody.
76
- :rtype: list[ResourceTag]
78
+ :rtype: list[:class:`huaweicloudsdkims.v2.ResourceTag`]
77
79
  """
78
80
  return self._tags
79
81
 
80
82
  @tags.setter
81
83
  def tags(self, tags):
82
- """Sets the tags of this BatchAddOrDeleteTagsRequestBody.
84
+ r"""Sets the tags of this BatchAddOrDeleteTagsRequestBody.
83
85
 
84
86
  需要增加、修改或者删除的标签键值对集合。
85
87
 
86
88
  :param tags: The tags of this BatchAddOrDeleteTagsRequestBody.
87
- :type: list[ResourceTag]
89
+ :type tags: list[:class:`huaweicloudsdkims.v2.ResourceTag`]
88
90
  """
89
91
  self._tags = tags
90
92
 
@@ -117,10 +119,15 @@ class BatchAddOrDeleteTagsRequestBody:
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):
@@ -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 BatchAddOrDeleteTagsResponse(SdkResponse):
13
10
 
14
-
15
11
  """
16
12
  Attributes:
17
13
  openapi_types (dict): The key is attribute name
@@ -19,7 +15,6 @@ class BatchAddOrDeleteTagsResponse(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 = {
@@ -29,9 +24,13 @@ class BatchAddOrDeleteTagsResponse(SdkResponse):
29
24
  }
30
25
 
31
26
  def __init__(self):
32
- """BatchAddOrDeleteTagsResponse - a model defined in huaweicloud sdk"""
27
+ r"""BatchAddOrDeleteTagsResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
33
32
 
34
- super().__init__()
33
+ super(BatchAddOrDeleteTagsResponse, self).__init__()
35
34
  self.discriminator = None
36
35
 
37
36
  def to_dict(self):
@@ -63,10 +62,15 @@ class BatchAddOrDeleteTagsResponse(SdkResponse):
63
62
 
64
63
  def to_str(self):
65
64
  """Returns the string representation of the model"""
66
- return pprint.pformat(self.to_dict())
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
67
71
 
68
72
  def __repr__(self):
69
- """For `print` and `pprint`"""
73
+ """For `print`"""
70
74
  return self.to_str()
71
75
 
72
76
  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 BatchDeleteMembersRequest:
13
9
 
14
-
15
10
  """
16
11
  Attributes:
17
12
  openapi_types (dict): The key is attribute name
@@ -19,7 +14,6 @@ class BatchDeleteMembersRequest:
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 BatchDeleteMembersRequest:
31
25
  }
32
26
 
33
27
  def __init__(self, body=None):
34
- """BatchDeleteMembersRequest - a model defined in huaweicloud sdk"""
28
+ r"""BatchDeleteMembersRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the BatchDeleteMembersRequest
33
+ :type body: :class:`huaweicloudsdkims.v2.BatchAddMembersRequestBody`
34
+ """
35
35
 
36
36
 
37
37
 
@@ -43,21 +43,19 @@ class BatchDeleteMembersRequest:
43
43
 
44
44
  @property
45
45
  def body(self):
46
- """Gets the body of this BatchDeleteMembersRequest.
47
-
46
+ r"""Gets the body of this BatchDeleteMembersRequest.
48
47
 
49
48
  :return: The body of this BatchDeleteMembersRequest.
50
- :rtype: BatchAddMembersRequestBody
49
+ :rtype: :class:`huaweicloudsdkims.v2.BatchAddMembersRequestBody`
51
50
  """
52
51
  return self._body
53
52
 
54
53
  @body.setter
55
54
  def body(self, body):
56
- """Sets the body of this BatchDeleteMembersRequest.
57
-
55
+ r"""Sets the body of this BatchDeleteMembersRequest.
58
56
 
59
57
  :param body: The body of this BatchDeleteMembersRequest.
60
- :type: BatchAddMembersRequestBody
58
+ :type body: :class:`huaweicloudsdkims.v2.BatchAddMembersRequestBody`
61
59
  """
62
60
  self._body = body
63
61
 
@@ -90,10 +88,15 @@ class BatchDeleteMembersRequest:
90
88
 
91
89
  def to_str(self):
92
90
  """Returns the string representation of the model"""
93
- return pprint.pformat(self.to_dict())
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)
94
97
 
95
98
  def __repr__(self):
96
- """For `print` and `pprint`"""
99
+ """For `print`"""
97
100
  return self.to_str()
98
101
 
99
102
  def __eq__(self, other):