huaweicloudsdkims 3.0.43rc0__py3-none-any.whl → 3.1.161__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.
- huaweicloudsdkims/v2/__init__.py +31 -3
- huaweicloudsdkims/v2/ims_async_client.py +2198 -1356
- huaweicloudsdkims/v2/ims_client.py +2188 -1347
- huaweicloudsdkims/v2/model/__init__.py +30 -1
- huaweicloudsdkims/v2/model/add_image_tag_request.py +26 -19
- huaweicloudsdkims/v2/model/add_image_tag_request_body.py +19 -16
- huaweicloudsdkims/v2/model/add_image_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/add_or_update_tags_request_body.py +29 -22
- huaweicloudsdkims/v2/model/additional_properties.py +18 -13
- huaweicloudsdkims/v2/model/batch_add_members_request.py +19 -16
- huaweicloudsdkims/v2/model/batch_add_members_request_body.py +84 -19
- huaweicloudsdkims/v2/model/batch_add_members_response.py +19 -13
- huaweicloudsdkims/v2/model/batch_add_or_delete_tags_request.py +26 -19
- huaweicloudsdkims/v2/model/batch_add_or_delete_tags_request_body.py +24 -17
- huaweicloudsdkims/v2/model/batch_add_or_delete_tags_response.py +14 -10
- huaweicloudsdkims/v2/model/batch_delete_members_request.py +19 -16
- huaweicloudsdkims/v2/model/batch_delete_members_response.py +19 -13
- huaweicloudsdkims/v2/model/batch_delete_tags_request.py +139 -0
- huaweicloudsdkims/v2/model/batch_delete_tags_request_body.py +114 -0
- huaweicloudsdkims/v2/model/batch_delete_tags_response.py +85 -0
- huaweicloudsdkims/v2/model/batch_update_members_request.py +19 -16
- huaweicloudsdkims/v2/model/batch_update_members_request_body.py +33 -22
- huaweicloudsdkims/v2/model/batch_update_members_response.py +19 -13
- huaweicloudsdkims/v2/model/copy_image_cross_region_request.py +26 -19
- huaweicloudsdkims/v2/model/copy_image_cross_region_request_body.py +70 -28
- huaweicloudsdkims/v2/model/copy_image_cross_region_response.py +19 -13
- huaweicloudsdkims/v2/model/copy_image_in_region_in_safe_mode_request.py +139 -0
- huaweicloudsdkims/v2/model/copy_image_in_region_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/copy_image_in_region_request.py +26 -19
- huaweicloudsdkims/v2/model/copy_image_in_region_request_body.py +33 -22
- huaweicloudsdkims/v2/model/copy_image_in_region_response.py +19 -13
- huaweicloudsdkims/v2/model/create_data_image.py +33 -22
- huaweicloudsdkims/v2/model/create_data_image_in_safe_mode_request.py +111 -0
- huaweicloudsdkims/v2/model/create_data_image_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/create_data_image_request.py +19 -16
- huaweicloudsdkims/v2/model/create_data_image_request_body.py +63 -41
- huaweicloudsdkims/v2/model/create_data_image_response.py +19 -13
- huaweicloudsdkims/v2/model/create_image_in_safe_mode_request.py +111 -0
- huaweicloudsdkims/v2/model/create_image_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/create_image_request.py +19 -16
- huaweicloudsdkims/v2/model/create_image_request_body.py +139 -70
- huaweicloudsdkims/v2/model/create_image_response.py +19 -13
- huaweicloudsdkims/v2/model/create_or_update_tags_request.py +19 -16
- huaweicloudsdkims/v2/model/create_or_update_tags_response.py +14 -10
- huaweicloudsdkims/v2/model/create_whole_image_request.py +19 -16
- huaweicloudsdkims/v2/model/create_whole_image_request_body.py +74 -50
- huaweicloudsdkims/v2/model/create_whole_image_response.py +19 -13
- huaweicloudsdkims/v2/model/delete_image_tag_request.py +27 -16
- huaweicloudsdkims/v2/model/delete_image_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/export_image_in_safe_mode_request.py +139 -0
- huaweicloudsdkims/v2/model/export_image_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/export_image_request.py +26 -19
- huaweicloudsdkims/v2/model/export_image_request_body.py +55 -19
- huaweicloudsdkims/v2/model/export_image_response.py +19 -13
- huaweicloudsdkims/v2/model/glance_add_image_member_request.py +26 -19
- huaweicloudsdkims/v2/model/glance_add_image_member_request_body.py +18 -13
- huaweicloudsdkims/v2/model/glance_add_image_member_response.py +105 -31
- huaweicloudsdkims/v2/model/glance_create_image_metadata_request.py +19 -16
- huaweicloudsdkims/v2/model/glance_create_image_metadata_request_body.py +58 -37
- huaweicloudsdkims/v2/model/glance_create_image_metadata_response.py +239 -94
- huaweicloudsdkims/v2/model/glance_create_tag_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_create_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_delete_image_member_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_delete_image_member_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_delete_image_request.py +26 -19
- huaweicloudsdkims/v2/model/glance_delete_image_request_body.py +18 -13
- huaweicloudsdkims/v2/model/glance_delete_image_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_delete_tag_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_delete_tag_response.py +14 -10
- huaweicloudsdkims/v2/model/glance_image_members.py +104 -31
- huaweicloudsdkims/v2/model/glance_list_image_member_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_list_image_member_schemas_response.py +30 -20
- huaweicloudsdkims/v2/model/glance_list_image_members_request.py +20 -13
- huaweicloudsdkims/v2/model/glance_list_image_members_response.py +25 -17
- huaweicloudsdkims/v2/model/glance_list_image_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_list_image_schemas_response.py +30 -20
- huaweicloudsdkims/v2/model/glance_list_images_request.py +237 -106
- huaweicloudsdkims/v2/model/glance_list_images_response.py +36 -24
- huaweicloudsdkims/v2/model/glance_show_image_list_response_body.py +1833 -0
- huaweicloudsdkims/v2/model/glance_show_image_member_request.py +27 -16
- huaweicloudsdkims/v2/model/glance_show_image_member_response.py +105 -31
- huaweicloudsdkims/v2/model/glance_show_image_member_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_show_image_member_schemas_response.py +24 -16
- huaweicloudsdkims/v2/model/glance_show_image_request.py +20 -13
- huaweicloudsdkims/v2/model/glance_show_image_response.py +631 -210
- huaweicloudsdkims/v2/model/glance_show_image_schemas_request.py +13 -10
- huaweicloudsdkims/v2/model/glance_show_image_schemas_response.py +36 -26
- huaweicloudsdkims/v2/model/glance_update_image_member_request.py +33 -22
- huaweicloudsdkims/v2/model/glance_update_image_member_request_body.py +23 -16
- huaweicloudsdkims/v2/model/glance_update_image_member_response.py +105 -31
- huaweicloudsdkims/v2/model/glance_update_image_request.py +26 -19
- huaweicloudsdkims/v2/model/glance_update_image_request_body.py +28 -19
- huaweicloudsdkims/v2/model/glance_update_image_response.py +631 -210
- huaweicloudsdkims/v2/model/image_info.py +616 -260
- huaweicloudsdkims/v2/model/image_member.py +310 -0
- huaweicloudsdkims/v2/model/image_tag.py +23 -16
- huaweicloudsdkims/v2/model/import_image_quick_in_safe_mode_request.py +111 -0
- huaweicloudsdkims/v2/model/import_image_quick_in_safe_mode_response.py +116 -0
- huaweicloudsdkims/v2/model/import_image_quick_request.py +19 -16
- huaweicloudsdkims/v2/model/import_image_quick_response.py +19 -13
- huaweicloudsdkims/v2/model/job_entities.py +340 -16
- huaweicloudsdkims/v2/model/job_entities_result.py +173 -0
- huaweicloudsdkims/v2/model/job_progress_entities.py +289 -0
- huaweicloudsdkims/v2/model/links.py +23 -16
- huaweicloudsdkims/v2/model/list_image_by_tags_request.py +19 -16
- huaweicloudsdkims/v2/model/list_image_by_tags_request_body.py +90 -42
- huaweicloudsdkims/v2/model/list_image_by_tags_response.py +25 -17
- huaweicloudsdkims/v2/model/list_image_members_request.py +114 -0
- huaweicloudsdkims/v2/model/list_image_members_response.py +145 -0
- huaweicloudsdkims/v2/model/list_image_tags_request.py +20 -13
- huaweicloudsdkims/v2/model/list_image_tags_response.py +20 -14
- huaweicloudsdkims/v2/model/list_images_request.py +272 -121
- huaweicloudsdkims/v2/model/list_images_response.py +20 -14
- huaweicloudsdkims/v2/model/list_images_tags_request.py +13 -10
- huaweicloudsdkims/v2/model/list_images_tags_response.py +20 -14
- huaweicloudsdkims/v2/model/list_os_versions_request.py +20 -13
- huaweicloudsdkims/v2/model/list_os_versions_response.py +20 -16
- huaweicloudsdkims/v2/model/list_os_versions_response_body.py +24 -17
- huaweicloudsdkims/v2/model/list_tags_request.py +118 -55
- huaweicloudsdkims/v2/model/list_tags_response.py +19 -13
- huaweicloudsdkims/v2/model/list_versions_request.py +84 -0
- huaweicloudsdkims/v2/model/list_versions_response.py +116 -0
- huaweicloudsdkims/v2/model/os_version_info.py +38 -25
- huaweicloudsdkims/v2/model/os_version_response.py +172 -0
- huaweicloudsdkims/v2/model/query_image_by_tags_resource_detail.py +18 -13
- huaweicloudsdkims/v2/model/quick_import_image_by_file_request_body.py +130 -47
- huaweicloudsdkims/v2/model/quota.py +19 -14
- huaweicloudsdkims/v2/model/quota_info.py +38 -25
- huaweicloudsdkims/v2/model/register_image_request.py +26 -19
- huaweicloudsdkims/v2/model/register_image_request_body.py +18 -13
- huaweicloudsdkims/v2/model/register_image_response.py +19 -13
- huaweicloudsdkims/v2/model/resource_tag.py +23 -16
- huaweicloudsdkims/v2/model/show_image_by_tags_resource.py +47 -38
- huaweicloudsdkims/v2/model/show_image_member_request.py +142 -0
- huaweicloudsdkims/v2/model/show_image_member_response.py +319 -0
- huaweicloudsdkims/v2/model/show_image_quota_request.py +13 -10
- huaweicloudsdkims/v2/model/show_image_quota_response.py +20 -16
- huaweicloudsdkims/v2/model/show_job_progress_request.py +114 -0
- huaweicloudsdkims/v2/model/show_job_progress_response.py +315 -0
- huaweicloudsdkims/v2/model/show_job_request.py +20 -13
- huaweicloudsdkims/v2/model/show_job_response.py +55 -37
- huaweicloudsdkims/v2/model/show_version_request.py +114 -0
- huaweicloudsdkims/v2/model/show_version_response.py +116 -0
- huaweicloudsdkims/v2/model/sub_job_entities.py +144 -0
- huaweicloudsdkims/v2/model/sub_job_result.py +314 -0
- huaweicloudsdkims/v2/model/tag_key_value.py +23 -16
- huaweicloudsdkims/v2/model/tags.py +23 -16
- huaweicloudsdkims/v2/model/update_image_request.py +26 -19
- huaweicloudsdkims/v2/model/update_image_request_body.py +29 -21
- huaweicloudsdkims/v2/model/update_image_response.py +600 -254
- huaweicloudsdkims/v2/region/ims_region.py +101 -42
- {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.161.dist-info}/METADATA +9 -9
- huaweicloudsdkims-3.1.161.dist-info/RECORD +158 -0
- {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.161.dist-info}/WHEEL +1 -1
- huaweicloudsdkims/v2/model/glance_show_image_response_body.py +0 -1357
- huaweicloudsdkims-3.0.43rc0.dist-info/RECORD +0 -129
- {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.161.dist-info}/LICENSE +0 -0
- {huaweicloudsdkims-3.0.43rc0.dist-info → huaweicloudsdkims-3.1.161.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 ListImageByTagsRequestBody:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class ListImageByTagsRequestBody:
|
|
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 = {
|
@@ -30,7 +24,8 @@ class ListImageByTagsRequestBody:
|
|
30
24
|
'not_tags_any': 'list[Tags]',
|
31
25
|
'limit': 'str',
|
32
26
|
'offset': 'str',
|
33
|
-
'matches': 'list[TagKeyValue]'
|
27
|
+
'matches': 'list[TagKeyValue]',
|
28
|
+
'without_any_tag': 'bool'
|
34
29
|
}
|
35
30
|
|
36
31
|
attribute_map = {
|
@@ -41,11 +36,34 @@ class ListImageByTagsRequestBody:
|
|
41
36
|
'not_tags_any': 'not_tags_any',
|
42
37
|
'limit': 'limit',
|
43
38
|
'offset': 'offset',
|
44
|
-
'matches': 'matches'
|
39
|
+
'matches': 'matches',
|
40
|
+
'without_any_tag': 'without_any_tag'
|
45
41
|
}
|
46
42
|
|
47
|
-
def __init__(self, action=None, tags=None, tags_any=None, not_tags=None, not_tags_any=None, limit=None, offset=None, matches=None):
|
48
|
-
"""ListImageByTagsRequestBody
|
43
|
+
def __init__(self, action=None, tags=None, tags_any=None, not_tags=None, not_tags_any=None, limit=None, offset=None, matches=None, without_any_tag=None):
|
44
|
+
r"""ListImageByTagsRequestBody
|
45
|
+
|
46
|
+
The model defined in huaweicloud sdk
|
47
|
+
|
48
|
+
:param action: 操作标识(区分大小写),支持filter、count。filter就是分页查询;count是只需按照条件将总条数返回即可。
|
49
|
+
:type action: str
|
50
|
+
:param tags: 包含标签,最多包含10个key,每个key对应的values最多包含10个值,且key和values都不能重复。不能为空列表。
|
51
|
+
:type tags: list[:class:`huaweicloudsdkims.v2.Tags`]
|
52
|
+
:param tags_any: 包含任意标签,最多包含10个key,每个key对应的values最多包含10个值,且key和values都不能重复。不允许为空列表,但可以不传递参数。
|
53
|
+
:type tags_any: list[:class:`huaweicloudsdkims.v2.Tags`]
|
54
|
+
:param not_tags: 不包含标签,最多包含10个key,每个key对应的values最多包含10个值,且key和values都不能重复。不能为空列表。
|
55
|
+
:type not_tags: list[:class:`huaweicloudsdkims.v2.Tags`]
|
56
|
+
:param not_tags_any: 不包含任意标签,最多包含10个key,每个key对应的values最多包含10个值,且key和values都不能重复。不能为空列表。
|
57
|
+
:type not_tags_any: list[:class:`huaweicloudsdkims.v2.Tags`]
|
58
|
+
:param limit: 最大查询记录数(action为count,时此参数无效)如果action为filter默认为10,limit最多为1000,不能为负数,最小值为1。
|
59
|
+
:type limit: str
|
60
|
+
:param offset: 索引位置, 从offset指定的下一条数据开始查询。 查询第一页数据时,不需要传入此参数(action为count时,此参数无效),如果action为filter默认为0,不能为负数。
|
61
|
+
:type offset: str
|
62
|
+
:param matches: 搜索字段,key为要匹配的字段,如resource_name、resource_id等。value为匹配的值。多个matches的key不允许重复。不允许为空列表,但可以不传递参数。
|
63
|
+
:type matches: list[:class:`huaweicloudsdkims.v2.TagKeyValue`]
|
64
|
+
:param without_any_tag: 不包含任意一个标签,该字段为true时查询所有不带标签的资源,此时忽略tag、not_tags、tags_any、not_tags_any字段。
|
65
|
+
:type without_any_tag: bool
|
66
|
+
"""
|
49
67
|
|
50
68
|
|
51
69
|
|
@@ -57,6 +75,7 @@ class ListImageByTagsRequestBody:
|
|
57
75
|
self._limit = None
|
58
76
|
self._offset = None
|
59
77
|
self._matches = None
|
78
|
+
self._without_any_tag = None
|
60
79
|
self.discriminator = None
|
61
80
|
|
62
81
|
self.action = action
|
@@ -74,10 +93,12 @@ class ListImageByTagsRequestBody:
|
|
74
93
|
self.offset = offset
|
75
94
|
if matches is not None:
|
76
95
|
self.matches = matches
|
96
|
+
if without_any_tag is not None:
|
97
|
+
self.without_any_tag = without_any_tag
|
77
98
|
|
78
99
|
@property
|
79
100
|
def action(self):
|
80
|
-
"""Gets the action of this ListImageByTagsRequestBody.
|
101
|
+
r"""Gets the action of this ListImageByTagsRequestBody.
|
81
102
|
|
82
103
|
操作标识(区分大小写),支持filter、count。filter就是分页查询;count是只需按照条件将总条数返回即可。
|
83
104
|
|
@@ -88,106 +109,106 @@ class ListImageByTagsRequestBody:
|
|
88
109
|
|
89
110
|
@action.setter
|
90
111
|
def action(self, action):
|
91
|
-
"""Sets the action of this ListImageByTagsRequestBody.
|
112
|
+
r"""Sets the action of this ListImageByTagsRequestBody.
|
92
113
|
|
93
114
|
操作标识(区分大小写),支持filter、count。filter就是分页查询;count是只需按照条件将总条数返回即可。
|
94
115
|
|
95
116
|
:param action: The action of this ListImageByTagsRequestBody.
|
96
|
-
:type: str
|
117
|
+
:type action: str
|
97
118
|
"""
|
98
119
|
self._action = action
|
99
120
|
|
100
121
|
@property
|
101
122
|
def tags(self):
|
102
|
-
"""Gets the tags of this ListImageByTagsRequestBody.
|
123
|
+
r"""Gets the tags of this ListImageByTagsRequestBody.
|
103
124
|
|
104
125
|
包含标签,最多包含10个key,每个key对应的values最多包含10个值,且key和values都不能重复。不能为空列表。
|
105
126
|
|
106
127
|
:return: The tags of this ListImageByTagsRequestBody.
|
107
|
-
:rtype: list[Tags]
|
128
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.Tags`]
|
108
129
|
"""
|
109
130
|
return self._tags
|
110
131
|
|
111
132
|
@tags.setter
|
112
133
|
def tags(self, tags):
|
113
|
-
"""Sets the tags of this ListImageByTagsRequestBody.
|
134
|
+
r"""Sets the tags of this ListImageByTagsRequestBody.
|
114
135
|
|
115
136
|
包含标签,最多包含10个key,每个key对应的values最多包含10个值,且key和values都不能重复。不能为空列表。
|
116
137
|
|
117
138
|
:param tags: The tags of this ListImageByTagsRequestBody.
|
118
|
-
:type: list[Tags]
|
139
|
+
:type tags: list[:class:`huaweicloudsdkims.v2.Tags`]
|
119
140
|
"""
|
120
141
|
self._tags = tags
|
121
142
|
|
122
143
|
@property
|
123
144
|
def tags_any(self):
|
124
|
-
"""Gets the tags_any of this ListImageByTagsRequestBody.
|
145
|
+
r"""Gets the tags_any of this ListImageByTagsRequestBody.
|
125
146
|
|
126
147
|
包含任意标签,最多包含10个key,每个key对应的values最多包含10个值,且key和values都不能重复。不允许为空列表,但可以不传递参数。
|
127
148
|
|
128
149
|
:return: The tags_any of this ListImageByTagsRequestBody.
|
129
|
-
:rtype: list[Tags]
|
150
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.Tags`]
|
130
151
|
"""
|
131
152
|
return self._tags_any
|
132
153
|
|
133
154
|
@tags_any.setter
|
134
155
|
def tags_any(self, tags_any):
|
135
|
-
"""Sets the tags_any of this ListImageByTagsRequestBody.
|
156
|
+
r"""Sets the tags_any of this ListImageByTagsRequestBody.
|
136
157
|
|
137
158
|
包含任意标签,最多包含10个key,每个key对应的values最多包含10个值,且key和values都不能重复。不允许为空列表,但可以不传递参数。
|
138
159
|
|
139
160
|
:param tags_any: The tags_any of this ListImageByTagsRequestBody.
|
140
|
-
:type: list[Tags]
|
161
|
+
:type tags_any: list[:class:`huaweicloudsdkims.v2.Tags`]
|
141
162
|
"""
|
142
163
|
self._tags_any = tags_any
|
143
164
|
|
144
165
|
@property
|
145
166
|
def not_tags(self):
|
146
|
-
"""Gets the not_tags of this ListImageByTagsRequestBody.
|
167
|
+
r"""Gets the not_tags of this ListImageByTagsRequestBody.
|
147
168
|
|
148
169
|
不包含标签,最多包含10个key,每个key对应的values最多包含10个值,且key和values都不能重复。不能为空列表。
|
149
170
|
|
150
171
|
:return: The not_tags of this ListImageByTagsRequestBody.
|
151
|
-
:rtype: list[Tags]
|
172
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.Tags`]
|
152
173
|
"""
|
153
174
|
return self._not_tags
|
154
175
|
|
155
176
|
@not_tags.setter
|
156
177
|
def not_tags(self, not_tags):
|
157
|
-
"""Sets the not_tags of this ListImageByTagsRequestBody.
|
178
|
+
r"""Sets the not_tags of this ListImageByTagsRequestBody.
|
158
179
|
|
159
180
|
不包含标签,最多包含10个key,每个key对应的values最多包含10个值,且key和values都不能重复。不能为空列表。
|
160
181
|
|
161
182
|
:param not_tags: The not_tags of this ListImageByTagsRequestBody.
|
162
|
-
:type: list[Tags]
|
183
|
+
:type not_tags: list[:class:`huaweicloudsdkims.v2.Tags`]
|
163
184
|
"""
|
164
185
|
self._not_tags = not_tags
|
165
186
|
|
166
187
|
@property
|
167
188
|
def not_tags_any(self):
|
168
|
-
"""Gets the not_tags_any of this ListImageByTagsRequestBody.
|
189
|
+
r"""Gets the not_tags_any of this ListImageByTagsRequestBody.
|
169
190
|
|
170
191
|
不包含任意标签,最多包含10个key,每个key对应的values最多包含10个值,且key和values都不能重复。不能为空列表。
|
171
192
|
|
172
193
|
:return: The not_tags_any of this ListImageByTagsRequestBody.
|
173
|
-
:rtype: list[Tags]
|
194
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.Tags`]
|
174
195
|
"""
|
175
196
|
return self._not_tags_any
|
176
197
|
|
177
198
|
@not_tags_any.setter
|
178
199
|
def not_tags_any(self, not_tags_any):
|
179
|
-
"""Sets the not_tags_any of this ListImageByTagsRequestBody.
|
200
|
+
r"""Sets the not_tags_any of this ListImageByTagsRequestBody.
|
180
201
|
|
181
202
|
不包含任意标签,最多包含10个key,每个key对应的values最多包含10个值,且key和values都不能重复。不能为空列表。
|
182
203
|
|
183
204
|
:param not_tags_any: The not_tags_any of this ListImageByTagsRequestBody.
|
184
|
-
:type: list[Tags]
|
205
|
+
:type not_tags_any: list[:class:`huaweicloudsdkims.v2.Tags`]
|
185
206
|
"""
|
186
207
|
self._not_tags_any = not_tags_any
|
187
208
|
|
188
209
|
@property
|
189
210
|
def limit(self):
|
190
|
-
"""Gets the limit of this ListImageByTagsRequestBody.
|
211
|
+
r"""Gets the limit of this ListImageByTagsRequestBody.
|
191
212
|
|
192
213
|
最大查询记录数(action为count,时此参数无效)如果action为filter默认为10,limit最多为1000,不能为负数,最小值为1。
|
193
214
|
|
@@ -198,18 +219,18 @@ class ListImageByTagsRequestBody:
|
|
198
219
|
|
199
220
|
@limit.setter
|
200
221
|
def limit(self, limit):
|
201
|
-
"""Sets the limit of this ListImageByTagsRequestBody.
|
222
|
+
r"""Sets the limit of this ListImageByTagsRequestBody.
|
202
223
|
|
203
224
|
最大查询记录数(action为count,时此参数无效)如果action为filter默认为10,limit最多为1000,不能为负数,最小值为1。
|
204
225
|
|
205
226
|
:param limit: The limit of this ListImageByTagsRequestBody.
|
206
|
-
:type: str
|
227
|
+
:type limit: str
|
207
228
|
"""
|
208
229
|
self._limit = limit
|
209
230
|
|
210
231
|
@property
|
211
232
|
def offset(self):
|
212
|
-
"""Gets the offset of this ListImageByTagsRequestBody.
|
233
|
+
r"""Gets the offset of this ListImageByTagsRequestBody.
|
213
234
|
|
214
235
|
索引位置, 从offset指定的下一条数据开始查询。 查询第一页数据时,不需要传入此参数(action为count时,此参数无效),如果action为filter默认为0,不能为负数。
|
215
236
|
|
@@ -220,37 +241,59 @@ class ListImageByTagsRequestBody:
|
|
220
241
|
|
221
242
|
@offset.setter
|
222
243
|
def offset(self, offset):
|
223
|
-
"""Sets the offset of this ListImageByTagsRequestBody.
|
244
|
+
r"""Sets the offset of this ListImageByTagsRequestBody.
|
224
245
|
|
225
246
|
索引位置, 从offset指定的下一条数据开始查询。 查询第一页数据时,不需要传入此参数(action为count时,此参数无效),如果action为filter默认为0,不能为负数。
|
226
247
|
|
227
248
|
:param offset: The offset of this ListImageByTagsRequestBody.
|
228
|
-
:type: str
|
249
|
+
:type offset: str
|
229
250
|
"""
|
230
251
|
self._offset = offset
|
231
252
|
|
232
253
|
@property
|
233
254
|
def matches(self):
|
234
|
-
"""Gets the matches of this ListImageByTagsRequestBody.
|
255
|
+
r"""Gets the matches of this ListImageByTagsRequestBody.
|
235
256
|
|
236
257
|
搜索字段,key为要匹配的字段,如resource_name、resource_id等。value为匹配的值。多个matches的key不允许重复。不允许为空列表,但可以不传递参数。
|
237
258
|
|
238
259
|
:return: The matches of this ListImageByTagsRequestBody.
|
239
|
-
:rtype: list[TagKeyValue]
|
260
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.TagKeyValue`]
|
240
261
|
"""
|
241
262
|
return self._matches
|
242
263
|
|
243
264
|
@matches.setter
|
244
265
|
def matches(self, matches):
|
245
|
-
"""Sets the matches of this ListImageByTagsRequestBody.
|
266
|
+
r"""Sets the matches of this ListImageByTagsRequestBody.
|
246
267
|
|
247
268
|
搜索字段,key为要匹配的字段,如resource_name、resource_id等。value为匹配的值。多个matches的key不允许重复。不允许为空列表,但可以不传递参数。
|
248
269
|
|
249
270
|
:param matches: The matches of this ListImageByTagsRequestBody.
|
250
|
-
:type: list[TagKeyValue]
|
271
|
+
:type matches: list[:class:`huaweicloudsdkims.v2.TagKeyValue`]
|
251
272
|
"""
|
252
273
|
self._matches = matches
|
253
274
|
|
275
|
+
@property
|
276
|
+
def without_any_tag(self):
|
277
|
+
r"""Gets the without_any_tag of this ListImageByTagsRequestBody.
|
278
|
+
|
279
|
+
不包含任意一个标签,该字段为true时查询所有不带标签的资源,此时忽略tag、not_tags、tags_any、not_tags_any字段。
|
280
|
+
|
281
|
+
:return: The without_any_tag of this ListImageByTagsRequestBody.
|
282
|
+
:rtype: bool
|
283
|
+
"""
|
284
|
+
return self._without_any_tag
|
285
|
+
|
286
|
+
@without_any_tag.setter
|
287
|
+
def without_any_tag(self, without_any_tag):
|
288
|
+
r"""Sets the without_any_tag of this ListImageByTagsRequestBody.
|
289
|
+
|
290
|
+
不包含任意一个标签,该字段为true时查询所有不带标签的资源,此时忽略tag、not_tags、tags_any、not_tags_any字段。
|
291
|
+
|
292
|
+
:param without_any_tag: The without_any_tag of this ListImageByTagsRequestBody.
|
293
|
+
:type without_any_tag: bool
|
294
|
+
"""
|
295
|
+
self._without_any_tag = without_any_tag
|
296
|
+
|
254
297
|
def to_dict(self):
|
255
298
|
"""Returns the model properties as a dict"""
|
256
299
|
result = {}
|
@@ -280,10 +323,15 @@ class ListImageByTagsRequestBody:
|
|
280
323
|
|
281
324
|
def to_str(self):
|
282
325
|
"""Returns the string representation of the model"""
|
283
|
-
|
326
|
+
import simplejson as json
|
327
|
+
if six.PY2:
|
328
|
+
import sys
|
329
|
+
reload(sys)
|
330
|
+
sys.setdefaultencoding("utf-8")
|
331
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
284
332
|
|
285
333
|
def __repr__(self):
|
286
|
-
"""For `print`
|
334
|
+
"""For `print`"""
|
287
335
|
return self.to_str()
|
288
336
|
|
289
337
|
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 ListImageByTagsResponse(SdkResponse):
|
13
10
|
|
14
|
-
|
15
11
|
"""
|
16
12
|
Attributes:
|
17
13
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +15,6 @@ class ListImageByTagsResponse(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 = {
|
@@ -33,9 +28,17 @@ class ListImageByTagsResponse(SdkResponse):
|
|
33
28
|
}
|
34
29
|
|
35
30
|
def __init__(self, resources=None, total_count=None):
|
36
|
-
"""ListImageByTagsResponse
|
31
|
+
r"""ListImageByTagsResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param resources: 镜像信息列表
|
36
|
+
:type resources: list[:class:`huaweicloudsdkims.v2.ShowImageByTagsResource`]
|
37
|
+
:param total_count: 总记录数
|
38
|
+
:type total_count: int
|
39
|
+
"""
|
37
40
|
|
38
|
-
super().__init__()
|
41
|
+
super(ListImageByTagsResponse, self).__init__()
|
39
42
|
|
40
43
|
self._resources = None
|
41
44
|
self._total_count = None
|
@@ -48,29 +51,29 @@ class ListImageByTagsResponse(SdkResponse):
|
|
48
51
|
|
49
52
|
@property
|
50
53
|
def resources(self):
|
51
|
-
"""Gets the resources of this ListImageByTagsResponse.
|
54
|
+
r"""Gets the resources of this ListImageByTagsResponse.
|
52
55
|
|
53
56
|
镜像信息列表
|
54
57
|
|
55
58
|
:return: The resources of this ListImageByTagsResponse.
|
56
|
-
:rtype: list[ShowImageByTagsResource]
|
59
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.ShowImageByTagsResource`]
|
57
60
|
"""
|
58
61
|
return self._resources
|
59
62
|
|
60
63
|
@resources.setter
|
61
64
|
def resources(self, resources):
|
62
|
-
"""Sets the resources of this ListImageByTagsResponse.
|
65
|
+
r"""Sets the resources of this ListImageByTagsResponse.
|
63
66
|
|
64
67
|
镜像信息列表
|
65
68
|
|
66
69
|
:param resources: The resources of this ListImageByTagsResponse.
|
67
|
-
:type: list[ShowImageByTagsResource]
|
70
|
+
:type resources: list[:class:`huaweicloudsdkims.v2.ShowImageByTagsResource`]
|
68
71
|
"""
|
69
72
|
self._resources = resources
|
70
73
|
|
71
74
|
@property
|
72
75
|
def total_count(self):
|
73
|
-
"""Gets the total_count of this ListImageByTagsResponse.
|
76
|
+
r"""Gets the total_count of this ListImageByTagsResponse.
|
74
77
|
|
75
78
|
总记录数
|
76
79
|
|
@@ -81,12 +84,12 @@ class ListImageByTagsResponse(SdkResponse):
|
|
81
84
|
|
82
85
|
@total_count.setter
|
83
86
|
def total_count(self, total_count):
|
84
|
-
"""Sets the total_count of this ListImageByTagsResponse.
|
87
|
+
r"""Sets the total_count of this ListImageByTagsResponse.
|
85
88
|
|
86
89
|
总记录数
|
87
90
|
|
88
91
|
:param total_count: The total_count of this ListImageByTagsResponse.
|
89
|
-
:type: int
|
92
|
+
:type total_count: int
|
90
93
|
"""
|
91
94
|
self._total_count = total_count
|
92
95
|
|
@@ -119,10 +122,15 @@ class ListImageByTagsResponse(SdkResponse):
|
|
119
122
|
|
120
123
|
def to_str(self):
|
121
124
|
"""Returns the string representation of the model"""
|
122
|
-
|
125
|
+
import simplejson as json
|
126
|
+
if six.PY2:
|
127
|
+
import sys
|
128
|
+
reload(sys)
|
129
|
+
sys.setdefaultencoding("utf-8")
|
130
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
123
131
|
|
124
132
|
def __repr__(self):
|
125
|
-
"""For `print`
|
133
|
+
"""For `print`"""
|
126
134
|
return self.to_str()
|
127
135
|
|
128
136
|
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 ListImageMembersRequest:
|
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
|
+
}
|
22
|
+
|
23
|
+
attribute_map = {
|
24
|
+
'image_id': 'image_id'
|
25
|
+
}
|
26
|
+
|
27
|
+
def __init__(self, image_id=None):
|
28
|
+
r"""ListImageMembersRequest
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param image_id: 镜像id
|
33
|
+
:type image_id: str
|
34
|
+
"""
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
self._image_id = None
|
39
|
+
self.discriminator = None
|
40
|
+
|
41
|
+
self.image_id = image_id
|
42
|
+
|
43
|
+
@property
|
44
|
+
def image_id(self):
|
45
|
+
r"""Gets the image_id of this ListImageMembersRequest.
|
46
|
+
|
47
|
+
镜像id
|
48
|
+
|
49
|
+
:return: The image_id of this ListImageMembersRequest.
|
50
|
+
:rtype: str
|
51
|
+
"""
|
52
|
+
return self._image_id
|
53
|
+
|
54
|
+
@image_id.setter
|
55
|
+
def image_id(self, image_id):
|
56
|
+
r"""Sets the image_id of this ListImageMembersRequest.
|
57
|
+
|
58
|
+
镜像id
|
59
|
+
|
60
|
+
:param image_id: The image_id of this ListImageMembersRequest.
|
61
|
+
:type image_id: str
|
62
|
+
"""
|
63
|
+
self._image_id = image_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, ListImageMembersRequest):
|
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
|