huaweicloudsdkims 3.1.144__py2.py3-none-any.whl → 3.1.146__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.
@@ -18,6 +18,9 @@ from huaweicloudsdkims.v2.model.batch_add_or_delete_tags_request_body import Bat
18
18
  from huaweicloudsdkims.v2.model.batch_add_or_delete_tags_response import BatchAddOrDeleteTagsResponse
19
19
  from huaweicloudsdkims.v2.model.batch_delete_members_request import BatchDeleteMembersRequest
20
20
  from huaweicloudsdkims.v2.model.batch_delete_members_response import BatchDeleteMembersResponse
21
+ from huaweicloudsdkims.v2.model.batch_delete_tags_request import BatchDeleteTagsRequest
22
+ from huaweicloudsdkims.v2.model.batch_delete_tags_request_body import BatchDeleteTagsRequestBody
23
+ from huaweicloudsdkims.v2.model.batch_delete_tags_response import BatchDeleteTagsResponse
21
24
  from huaweicloudsdkims.v2.model.batch_update_members_request import BatchUpdateMembersRequest
22
25
  from huaweicloudsdkims.v2.model.batch_update_members_request_body import BatchUpdateMembersRequestBody
23
26
  from huaweicloudsdkims.v2.model.batch_update_members_response import BatchUpdateMembersResponse
@@ -84,6 +87,7 @@ from huaweicloudsdkims.v2.model.glance_update_image_request import GlanceUpdateI
84
87
  from huaweicloudsdkims.v2.model.glance_update_image_request_body import GlanceUpdateImageRequestBody
85
88
  from huaweicloudsdkims.v2.model.glance_update_image_response import GlanceUpdateImageResponse
86
89
  from huaweicloudsdkims.v2.model.image_info import ImageInfo
90
+ from huaweicloudsdkims.v2.model.image_member import ImageMember
87
91
  from huaweicloudsdkims.v2.model.image_tag import ImageTag
88
92
  from huaweicloudsdkims.v2.model.import_image_quick_request import ImportImageQuickRequest
89
93
  from huaweicloudsdkims.v2.model.import_image_quick_response import ImportImageQuickResponse
@@ -94,6 +98,8 @@ from huaweicloudsdkims.v2.model.links import Links
94
98
  from huaweicloudsdkims.v2.model.list_image_by_tags_request import ListImageByTagsRequest
95
99
  from huaweicloudsdkims.v2.model.list_image_by_tags_request_body import ListImageByTagsRequestBody
96
100
  from huaweicloudsdkims.v2.model.list_image_by_tags_response import ListImageByTagsResponse
101
+ from huaweicloudsdkims.v2.model.list_image_members_request import ListImageMembersRequest
102
+ from huaweicloudsdkims.v2.model.list_image_members_response import ListImageMembersResponse
97
103
  from huaweicloudsdkims.v2.model.list_image_tags_request import ListImageTagsRequest
98
104
  from huaweicloudsdkims.v2.model.list_image_tags_response import ListImageTagsResponse
99
105
  from huaweicloudsdkims.v2.model.list_images_request import ListImagesRequest
@@ -118,6 +124,8 @@ from huaweicloudsdkims.v2.model.register_image_request_body import RegisterImage
118
124
  from huaweicloudsdkims.v2.model.register_image_response import RegisterImageResponse
119
125
  from huaweicloudsdkims.v2.model.resource_tag import ResourceTag
120
126
  from huaweicloudsdkims.v2.model.show_image_by_tags_resource import ShowImageByTagsResource
127
+ from huaweicloudsdkims.v2.model.show_image_member_request import ShowImageMemberRequest
128
+ from huaweicloudsdkims.v2.model.show_image_member_response import ShowImageMemberResponse
121
129
  from huaweicloudsdkims.v2.model.show_image_quota_request import ShowImageQuotaRequest
122
130
  from huaweicloudsdkims.v2.model.show_image_quota_response import ShowImageQuotaResponse
123
131
  from huaweicloudsdkims.v2.model.show_job_progress_request import ShowJobProgressRequest
@@ -299,6 +299,73 @@ class ImsAsyncClient(Client):
299
299
 
300
300
  return http_info
301
301
 
302
+ def batch_delete_tags_async(self, request):
303
+ r"""批量删除镜像标签
304
+
305
+ 该接口用于为指定镜像批量删除标签。
306
+
307
+ Please refer to HUAWEI cloud API Explorer for details.
308
+
309
+
310
+ :param request: Request instance for BatchDeleteTags
311
+ :type request: :class:`huaweicloudsdkims.v2.BatchDeleteTagsRequest`
312
+ :rtype: :class:`huaweicloudsdkims.v2.BatchDeleteTagsResponse`
313
+ """
314
+ http_info = self._batch_delete_tags_http_info(request)
315
+ return self._call_api(**http_info)
316
+
317
+ def batch_delete_tags_async_invoker(self, request):
318
+ http_info = self._batch_delete_tags_http_info(request)
319
+ return AsyncInvoker(self, http_info)
320
+
321
+ def _batch_delete_tags_http_info(self, request):
322
+ http_info = {
323
+ "method": "DELETE",
324
+ "resource_path": "/v1/{project_id}/cloudimages/{image_id}/tags/delete",
325
+ "request_type": request.__class__.__name__,
326
+ "response_type": "BatchDeleteTagsResponse"
327
+ }
328
+
329
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
330
+
331
+ cname = None
332
+
333
+ collection_formats = {}
334
+
335
+ path_params = {}
336
+ if 'image_id' in local_var_params:
337
+ path_params['image_id'] = local_var_params['image_id']
338
+
339
+ query_params = []
340
+
341
+ header_params = {}
342
+
343
+ form_params = {}
344
+
345
+ body = None
346
+ if 'body' in local_var_params:
347
+ body = local_var_params['body']
348
+ if isinstance(request, SdkStreamRequest):
349
+ body = request.get_file_stream()
350
+
351
+ response_headers = []
352
+
353
+ header_params['Content-Type'] = http_utils.select_header_content_type(
354
+ ['application/json;charset=UTF-8'])
355
+
356
+ auth_settings = []
357
+
358
+ http_info["cname"] = cname
359
+ http_info["collection_formats"] = collection_formats
360
+ http_info["path_params"] = path_params
361
+ http_info["query_params"] = query_params
362
+ http_info["header_params"] = header_params
363
+ http_info["post_params"] = form_params
364
+ http_info["body"] = body
365
+ http_info["response_headers"] = response_headers
366
+
367
+ return http_info
368
+
302
369
  def batch_update_members_async(self, request):
303
370
  r"""批量更新镜像成员状态
304
371
 
@@ -1039,6 +1106,71 @@ class ImsAsyncClient(Client):
1039
1106
 
1040
1107
  return http_info
1041
1108
 
1109
+ def list_image_members_async(self, request):
1110
+ r"""获取镜像成员列表
1111
+
1112
+ 该接口用于共享镜像过程中,获取接受该镜像的成员列表。
1113
+
1114
+ Please refer to HUAWEI cloud API Explorer for details.
1115
+
1116
+
1117
+ :param request: Request instance for ListImageMembers
1118
+ :type request: :class:`huaweicloudsdkims.v2.ListImageMembersRequest`
1119
+ :rtype: :class:`huaweicloudsdkims.v2.ListImageMembersResponse`
1120
+ """
1121
+ http_info = self._list_image_members_http_info(request)
1122
+ return self._call_api(**http_info)
1123
+
1124
+ def list_image_members_async_invoker(self, request):
1125
+ http_info = self._list_image_members_http_info(request)
1126
+ return AsyncInvoker(self, http_info)
1127
+
1128
+ def _list_image_members_http_info(self, request):
1129
+ http_info = {
1130
+ "method": "GET",
1131
+ "resource_path": "/v1/{project_id}/cloudimages/{image_id}/members",
1132
+ "request_type": request.__class__.__name__,
1133
+ "response_type": "ListImageMembersResponse"
1134
+ }
1135
+
1136
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1137
+
1138
+ cname = None
1139
+
1140
+ collection_formats = {}
1141
+
1142
+ path_params = {}
1143
+ if 'image_id' in local_var_params:
1144
+ path_params['image_id'] = local_var_params['image_id']
1145
+
1146
+ query_params = []
1147
+
1148
+ header_params = {}
1149
+
1150
+ form_params = {}
1151
+
1152
+ body = None
1153
+ if isinstance(request, SdkStreamRequest):
1154
+ body = request.get_file_stream()
1155
+
1156
+ response_headers = []
1157
+
1158
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1159
+ ['application/json'])
1160
+
1161
+ auth_settings = []
1162
+
1163
+ http_info["cname"] = cname
1164
+ http_info["collection_formats"] = collection_formats
1165
+ http_info["path_params"] = path_params
1166
+ http_info["query_params"] = query_params
1167
+ http_info["header_params"] = header_params
1168
+ http_info["post_params"] = form_params
1169
+ http_info["body"] = body
1170
+ http_info["response_headers"] = response_headers
1171
+
1172
+ return http_info
1173
+
1042
1174
  def list_image_tags_async(self, request):
1043
1175
  r"""查询镜像标签
1044
1176
 
@@ -1536,6 +1668,73 @@ class ImsAsyncClient(Client):
1536
1668
 
1537
1669
  return http_info
1538
1670
 
1671
+ def show_image_member_async(self, request):
1672
+ r"""获取镜像成员详情
1673
+
1674
+ 该接口主要用于镜像共享中查询某个镜像成员的详情。
1675
+
1676
+ Please refer to HUAWEI cloud API Explorer for details.
1677
+
1678
+
1679
+ :param request: Request instance for ShowImageMember
1680
+ :type request: :class:`huaweicloudsdkims.v2.ShowImageMemberRequest`
1681
+ :rtype: :class:`huaweicloudsdkims.v2.ShowImageMemberResponse`
1682
+ """
1683
+ http_info = self._show_image_member_http_info(request)
1684
+ return self._call_api(**http_info)
1685
+
1686
+ def show_image_member_async_invoker(self, request):
1687
+ http_info = self._show_image_member_http_info(request)
1688
+ return AsyncInvoker(self, http_info)
1689
+
1690
+ def _show_image_member_http_info(self, request):
1691
+ http_info = {
1692
+ "method": "GET",
1693
+ "resource_path": "/v1/{project_id}/cloudimages/{image_id}/members/{member_id}",
1694
+ "request_type": request.__class__.__name__,
1695
+ "response_type": "ShowImageMemberResponse"
1696
+ }
1697
+
1698
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1699
+
1700
+ cname = None
1701
+
1702
+ collection_formats = {}
1703
+
1704
+ path_params = {}
1705
+ if 'image_id' in local_var_params:
1706
+ path_params['image_id'] = local_var_params['image_id']
1707
+ if 'member_id' in local_var_params:
1708
+ path_params['member_id'] = local_var_params['member_id']
1709
+
1710
+ query_params = []
1711
+
1712
+ header_params = {}
1713
+
1714
+ form_params = {}
1715
+
1716
+ body = None
1717
+ if isinstance(request, SdkStreamRequest):
1718
+ body = request.get_file_stream()
1719
+
1720
+ response_headers = []
1721
+
1722
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1723
+ ['application/json'])
1724
+
1725
+ auth_settings = []
1726
+
1727
+ http_info["cname"] = cname
1728
+ http_info["collection_formats"] = collection_formats
1729
+ http_info["path_params"] = path_params
1730
+ http_info["query_params"] = query_params
1731
+ http_info["header_params"] = header_params
1732
+ http_info["post_params"] = form_params
1733
+ http_info["body"] = body
1734
+ http_info["response_headers"] = response_headers
1735
+
1736
+ return http_info
1737
+
1539
1738
  def show_image_quota_async(self, request):
1540
1739
  r"""查询镜像配额
1541
1740
 
@@ -299,6 +299,73 @@ class ImsClient(Client):
299
299
 
300
300
  return http_info
301
301
 
302
+ def batch_delete_tags(self, request):
303
+ r"""批量删除镜像标签
304
+
305
+ 该接口用于为指定镜像批量删除标签。
306
+
307
+ Please refer to HUAWEI cloud API Explorer for details.
308
+
309
+ :param request: Request instance for BatchDeleteTags
310
+ :type request: :class:`huaweicloudsdkims.v2.BatchDeleteTagsRequest`
311
+ :rtype: :class:`huaweicloudsdkims.v2.BatchDeleteTagsResponse`
312
+ """
313
+ http_info = self._batch_delete_tags_http_info(request)
314
+ return self._call_api(**http_info)
315
+
316
+ def batch_delete_tags_invoker(self, request):
317
+ http_info = self._batch_delete_tags_http_info(request)
318
+ return SyncInvoker(self, http_info)
319
+
320
+ @classmethod
321
+ def _batch_delete_tags_http_info(cls, request):
322
+ http_info = {
323
+ "method": "DELETE",
324
+ "resource_path": "/v1/{project_id}/cloudimages/{image_id}/tags/delete",
325
+ "request_type": request.__class__.__name__,
326
+ "response_type": "BatchDeleteTagsResponse"
327
+ }
328
+
329
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
330
+
331
+ cname = None
332
+
333
+ collection_formats = {}
334
+
335
+ path_params = {}
336
+ if 'image_id' in local_var_params:
337
+ path_params['image_id'] = local_var_params['image_id']
338
+
339
+ query_params = []
340
+
341
+ header_params = {}
342
+
343
+ form_params = {}
344
+
345
+ body = None
346
+ if 'body' in local_var_params:
347
+ body = local_var_params['body']
348
+ if isinstance(request, SdkStreamRequest):
349
+ body = request.get_file_stream()
350
+
351
+ response_headers = []
352
+
353
+ header_params['Content-Type'] = http_utils.select_header_content_type(
354
+ ['application/json;charset=UTF-8'])
355
+
356
+ auth_settings = []
357
+
358
+ http_info["cname"] = cname
359
+ http_info["collection_formats"] = collection_formats
360
+ http_info["path_params"] = path_params
361
+ http_info["query_params"] = query_params
362
+ http_info["header_params"] = header_params
363
+ http_info["post_params"] = form_params
364
+ http_info["body"] = body
365
+ http_info["response_headers"] = response_headers
366
+
367
+ return http_info
368
+
302
369
  def batch_update_members(self, request):
303
370
  r"""批量更新镜像成员状态
304
371
 
@@ -1039,6 +1106,71 @@ class ImsClient(Client):
1039
1106
 
1040
1107
  return http_info
1041
1108
 
1109
+ def list_image_members(self, request):
1110
+ r"""获取镜像成员列表
1111
+
1112
+ 该接口用于共享镜像过程中,获取接受该镜像的成员列表。
1113
+
1114
+ Please refer to HUAWEI cloud API Explorer for details.
1115
+
1116
+ :param request: Request instance for ListImageMembers
1117
+ :type request: :class:`huaweicloudsdkims.v2.ListImageMembersRequest`
1118
+ :rtype: :class:`huaweicloudsdkims.v2.ListImageMembersResponse`
1119
+ """
1120
+ http_info = self._list_image_members_http_info(request)
1121
+ return self._call_api(**http_info)
1122
+
1123
+ def list_image_members_invoker(self, request):
1124
+ http_info = self._list_image_members_http_info(request)
1125
+ return SyncInvoker(self, http_info)
1126
+
1127
+ @classmethod
1128
+ def _list_image_members_http_info(cls, request):
1129
+ http_info = {
1130
+ "method": "GET",
1131
+ "resource_path": "/v1/{project_id}/cloudimages/{image_id}/members",
1132
+ "request_type": request.__class__.__name__,
1133
+ "response_type": "ListImageMembersResponse"
1134
+ }
1135
+
1136
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1137
+
1138
+ cname = None
1139
+
1140
+ collection_formats = {}
1141
+
1142
+ path_params = {}
1143
+ if 'image_id' in local_var_params:
1144
+ path_params['image_id'] = local_var_params['image_id']
1145
+
1146
+ query_params = []
1147
+
1148
+ header_params = {}
1149
+
1150
+ form_params = {}
1151
+
1152
+ body = None
1153
+ if isinstance(request, SdkStreamRequest):
1154
+ body = request.get_file_stream()
1155
+
1156
+ response_headers = []
1157
+
1158
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1159
+ ['application/json'])
1160
+
1161
+ auth_settings = []
1162
+
1163
+ http_info["cname"] = cname
1164
+ http_info["collection_formats"] = collection_formats
1165
+ http_info["path_params"] = path_params
1166
+ http_info["query_params"] = query_params
1167
+ http_info["header_params"] = header_params
1168
+ http_info["post_params"] = form_params
1169
+ http_info["body"] = body
1170
+ http_info["response_headers"] = response_headers
1171
+
1172
+ return http_info
1173
+
1042
1174
  def list_image_tags(self, request):
1043
1175
  r"""查询镜像标签
1044
1176
 
@@ -1536,6 +1668,73 @@ class ImsClient(Client):
1536
1668
 
1537
1669
  return http_info
1538
1670
 
1671
+ def show_image_member(self, request):
1672
+ r"""获取镜像成员详情
1673
+
1674
+ 该接口主要用于镜像共享中查询某个镜像成员的详情。
1675
+
1676
+ Please refer to HUAWEI cloud API Explorer for details.
1677
+
1678
+ :param request: Request instance for ShowImageMember
1679
+ :type request: :class:`huaweicloudsdkims.v2.ShowImageMemberRequest`
1680
+ :rtype: :class:`huaweicloudsdkims.v2.ShowImageMemberResponse`
1681
+ """
1682
+ http_info = self._show_image_member_http_info(request)
1683
+ return self._call_api(**http_info)
1684
+
1685
+ def show_image_member_invoker(self, request):
1686
+ http_info = self._show_image_member_http_info(request)
1687
+ return SyncInvoker(self, http_info)
1688
+
1689
+ @classmethod
1690
+ def _show_image_member_http_info(cls, request):
1691
+ http_info = {
1692
+ "method": "GET",
1693
+ "resource_path": "/v1/{project_id}/cloudimages/{image_id}/members/{member_id}",
1694
+ "request_type": request.__class__.__name__,
1695
+ "response_type": "ShowImageMemberResponse"
1696
+ }
1697
+
1698
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1699
+
1700
+ cname = None
1701
+
1702
+ collection_formats = {}
1703
+
1704
+ path_params = {}
1705
+ if 'image_id' in local_var_params:
1706
+ path_params['image_id'] = local_var_params['image_id']
1707
+ if 'member_id' in local_var_params:
1708
+ path_params['member_id'] = local_var_params['member_id']
1709
+
1710
+ query_params = []
1711
+
1712
+ header_params = {}
1713
+
1714
+ form_params = {}
1715
+
1716
+ body = None
1717
+ if isinstance(request, SdkStreamRequest):
1718
+ body = request.get_file_stream()
1719
+
1720
+ response_headers = []
1721
+
1722
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1723
+ ['application/json'])
1724
+
1725
+ auth_settings = []
1726
+
1727
+ http_info["cname"] = cname
1728
+ http_info["collection_formats"] = collection_formats
1729
+ http_info["path_params"] = path_params
1730
+ http_info["query_params"] = query_params
1731
+ http_info["header_params"] = header_params
1732
+ http_info["post_params"] = form_params
1733
+ http_info["body"] = body
1734
+ http_info["response_headers"] = response_headers
1735
+
1736
+ return http_info
1737
+
1539
1738
  def show_image_quota(self, request):
1540
1739
  r"""查询镜像配额
1541
1740
 
@@ -16,6 +16,9 @@ from huaweicloudsdkims.v2.model.batch_add_or_delete_tags_request_body import Bat
16
16
  from huaweicloudsdkims.v2.model.batch_add_or_delete_tags_response import BatchAddOrDeleteTagsResponse
17
17
  from huaweicloudsdkims.v2.model.batch_delete_members_request import BatchDeleteMembersRequest
18
18
  from huaweicloudsdkims.v2.model.batch_delete_members_response import BatchDeleteMembersResponse
19
+ from huaweicloudsdkims.v2.model.batch_delete_tags_request import BatchDeleteTagsRequest
20
+ from huaweicloudsdkims.v2.model.batch_delete_tags_request_body import BatchDeleteTagsRequestBody
21
+ from huaweicloudsdkims.v2.model.batch_delete_tags_response import BatchDeleteTagsResponse
19
22
  from huaweicloudsdkims.v2.model.batch_update_members_request import BatchUpdateMembersRequest
20
23
  from huaweicloudsdkims.v2.model.batch_update_members_request_body import BatchUpdateMembersRequestBody
21
24
  from huaweicloudsdkims.v2.model.batch_update_members_response import BatchUpdateMembersResponse
@@ -82,6 +85,7 @@ from huaweicloudsdkims.v2.model.glance_update_image_request import GlanceUpdateI
82
85
  from huaweicloudsdkims.v2.model.glance_update_image_request_body import GlanceUpdateImageRequestBody
83
86
  from huaweicloudsdkims.v2.model.glance_update_image_response import GlanceUpdateImageResponse
84
87
  from huaweicloudsdkims.v2.model.image_info import ImageInfo
88
+ from huaweicloudsdkims.v2.model.image_member import ImageMember
85
89
  from huaweicloudsdkims.v2.model.image_tag import ImageTag
86
90
  from huaweicloudsdkims.v2.model.import_image_quick_request import ImportImageQuickRequest
87
91
  from huaweicloudsdkims.v2.model.import_image_quick_response import ImportImageQuickResponse
@@ -92,6 +96,8 @@ from huaweicloudsdkims.v2.model.links import Links
92
96
  from huaweicloudsdkims.v2.model.list_image_by_tags_request import ListImageByTagsRequest
93
97
  from huaweicloudsdkims.v2.model.list_image_by_tags_request_body import ListImageByTagsRequestBody
94
98
  from huaweicloudsdkims.v2.model.list_image_by_tags_response import ListImageByTagsResponse
99
+ from huaweicloudsdkims.v2.model.list_image_members_request import ListImageMembersRequest
100
+ from huaweicloudsdkims.v2.model.list_image_members_response import ListImageMembersResponse
95
101
  from huaweicloudsdkims.v2.model.list_image_tags_request import ListImageTagsRequest
96
102
  from huaweicloudsdkims.v2.model.list_image_tags_response import ListImageTagsResponse
97
103
  from huaweicloudsdkims.v2.model.list_images_request import ListImagesRequest
@@ -116,6 +122,8 @@ from huaweicloudsdkims.v2.model.register_image_request_body import RegisterImage
116
122
  from huaweicloudsdkims.v2.model.register_image_response import RegisterImageResponse
117
123
  from huaweicloudsdkims.v2.model.resource_tag import ResourceTag
118
124
  from huaweicloudsdkims.v2.model.show_image_by_tags_resource import ShowImageByTagsResource
125
+ from huaweicloudsdkims.v2.model.show_image_member_request import ShowImageMemberRequest
126
+ from huaweicloudsdkims.v2.model.show_image_member_response import ShowImageMemberResponse
119
127
  from huaweicloudsdkims.v2.model.show_image_quota_request import ShowImageQuotaRequest
120
128
  from huaweicloudsdkims.v2.model.show_image_quota_response import ShowImageQuotaResponse
121
129
  from huaweicloudsdkims.v2.model.show_job_progress_request import ShowJobProgressRequest
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchDeleteTagsRequest:
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
+ 'image_id': 'str',
21
+ 'body': 'BatchDeleteTagsRequestBody'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'image_id': 'image_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, image_id=None, body=None):
30
+ r"""BatchDeleteTagsRequest
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 BatchDeleteTagsRequest
37
+ :type body: :class:`huaweicloudsdkims.v2.BatchDeleteTagsRequestBody`
38
+ """
39
+
40
+
41
+
42
+ self._image_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.image_id = image_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def image_id(self):
52
+ r"""Gets the image_id of this BatchDeleteTagsRequest.
53
+
54
+ 镜像ID。
55
+
56
+ :return: The image_id of this BatchDeleteTagsRequest.
57
+ :rtype: str
58
+ """
59
+ return self._image_id
60
+
61
+ @image_id.setter
62
+ def image_id(self, image_id):
63
+ r"""Sets the image_id of this BatchDeleteTagsRequest.
64
+
65
+ 镜像ID。
66
+
67
+ :param image_id: The image_id of this BatchDeleteTagsRequest.
68
+ :type image_id: str
69
+ """
70
+ self._image_id = image_id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this BatchDeleteTagsRequest.
75
+
76
+ :return: The body of this BatchDeleteTagsRequest.
77
+ :rtype: :class:`huaweicloudsdkims.v2.BatchDeleteTagsRequestBody`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this BatchDeleteTagsRequest.
84
+
85
+ :param body: The body of this BatchDeleteTagsRequest.
86
+ :type body: :class:`huaweicloudsdkims.v2.BatchDeleteTagsRequestBody`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
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)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, BatchDeleteTagsRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other