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 ShowImageByTagsResource:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,42 +14,53 @@ class ShowImageByTagsResource:
|
|
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
|
'resource_id': 'str',
|
27
|
-
'
|
21
|
+
'resource_detail': 'QueryImageByTagsResourceDetail',
|
28
22
|
'tags': 'list[TagKeyValue]',
|
29
23
|
'resource_name': 'str'
|
30
24
|
}
|
31
25
|
|
32
26
|
attribute_map = {
|
33
27
|
'resource_id': 'resource_id',
|
34
|
-
'
|
28
|
+
'resource_detail': 'resource_detail',
|
35
29
|
'tags': 'tags',
|
36
30
|
'resource_name': 'resource_name'
|
37
31
|
}
|
38
32
|
|
39
|
-
def __init__(self, resource_id=None,
|
40
|
-
"""ShowImageByTagsResource
|
33
|
+
def __init__(self, resource_id=None, resource_detail=None, tags=None, resource_name=None):
|
34
|
+
r"""ShowImageByTagsResource
|
35
|
+
|
36
|
+
The model defined in huaweicloud sdk
|
37
|
+
|
38
|
+
:param resource_id: 镜像ID
|
39
|
+
:type resource_id: str
|
40
|
+
:param resource_detail:
|
41
|
+
:type resource_detail: :class:`huaweicloudsdkims.v2.QueryImageByTagsResourceDetail`
|
42
|
+
:param tags: 镜像的标签列表
|
43
|
+
:type tags: list[:class:`huaweicloudsdkims.v2.TagKeyValue`]
|
44
|
+
:param resource_name: 镜像名称
|
45
|
+
:type resource_name: str
|
46
|
+
"""
|
41
47
|
|
42
48
|
|
43
49
|
|
44
50
|
self._resource_id = None
|
45
|
-
self.
|
51
|
+
self._resource_detail = None
|
46
52
|
self._tags = None
|
47
53
|
self._resource_name = None
|
48
54
|
self.discriminator = None
|
49
55
|
|
50
56
|
self.resource_id = resource_id
|
51
|
-
self.
|
57
|
+
self.resource_detail = resource_detail
|
52
58
|
self.tags = tags
|
53
59
|
self.resource_name = resource_name
|
54
60
|
|
55
61
|
@property
|
56
62
|
def resource_id(self):
|
57
|
-
"""Gets the resource_id of this ShowImageByTagsResource.
|
63
|
+
r"""Gets the resource_id of this ShowImageByTagsResource.
|
58
64
|
|
59
65
|
镜像ID
|
60
66
|
|
@@ -65,60 +71,58 @@ class ShowImageByTagsResource:
|
|
65
71
|
|
66
72
|
@resource_id.setter
|
67
73
|
def resource_id(self, resource_id):
|
68
|
-
"""Sets the resource_id of this ShowImageByTagsResource.
|
74
|
+
r"""Sets the resource_id of this ShowImageByTagsResource.
|
69
75
|
|
70
76
|
镜像ID
|
71
77
|
|
72
78
|
:param resource_id: The resource_id of this ShowImageByTagsResource.
|
73
|
-
:type: str
|
79
|
+
:type resource_id: str
|
74
80
|
"""
|
75
81
|
self._resource_id = resource_id
|
76
82
|
|
77
83
|
@property
|
78
|
-
def
|
79
|
-
"""Gets the
|
84
|
+
def resource_detail(self):
|
85
|
+
r"""Gets the resource_detail of this ShowImageByTagsResource.
|
80
86
|
|
81
|
-
|
82
|
-
:
|
83
|
-
:rtype: QueryImageByTagsResourceDetail
|
87
|
+
:return: The resource_detail of this ShowImageByTagsResource.
|
88
|
+
:rtype: :class:`huaweicloudsdkims.v2.QueryImageByTagsResourceDetail`
|
84
89
|
"""
|
85
|
-
return self.
|
86
|
-
|
87
|
-
@resouce_detail.setter
|
88
|
-
def resouce_detail(self, resouce_detail):
|
89
|
-
"""Sets the resouce_detail of this ShowImageByTagsResource.
|
90
|
+
return self._resource_detail
|
90
91
|
|
92
|
+
@resource_detail.setter
|
93
|
+
def resource_detail(self, resource_detail):
|
94
|
+
r"""Sets the resource_detail of this ShowImageByTagsResource.
|
91
95
|
|
92
|
-
:param
|
93
|
-
:type: QueryImageByTagsResourceDetail
|
96
|
+
:param resource_detail: The resource_detail of this ShowImageByTagsResource.
|
97
|
+
:type resource_detail: :class:`huaweicloudsdkims.v2.QueryImageByTagsResourceDetail`
|
94
98
|
"""
|
95
|
-
self.
|
99
|
+
self._resource_detail = resource_detail
|
96
100
|
|
97
101
|
@property
|
98
102
|
def tags(self):
|
99
|
-
"""Gets the tags of this ShowImageByTagsResource.
|
103
|
+
r"""Gets the tags of this ShowImageByTagsResource.
|
100
104
|
|
101
105
|
镜像的标签列表
|
102
106
|
|
103
107
|
:return: The tags of this ShowImageByTagsResource.
|
104
|
-
:rtype: list[TagKeyValue]
|
108
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.TagKeyValue`]
|
105
109
|
"""
|
106
110
|
return self._tags
|
107
111
|
|
108
112
|
@tags.setter
|
109
113
|
def tags(self, tags):
|
110
|
-
"""Sets the tags of this ShowImageByTagsResource.
|
114
|
+
r"""Sets the tags of this ShowImageByTagsResource.
|
111
115
|
|
112
116
|
镜像的标签列表
|
113
117
|
|
114
118
|
:param tags: The tags of this ShowImageByTagsResource.
|
115
|
-
:type: list[TagKeyValue]
|
119
|
+
:type tags: list[:class:`huaweicloudsdkims.v2.TagKeyValue`]
|
116
120
|
"""
|
117
121
|
self._tags = tags
|
118
122
|
|
119
123
|
@property
|
120
124
|
def resource_name(self):
|
121
|
-
"""Gets the resource_name of this ShowImageByTagsResource.
|
125
|
+
r"""Gets the resource_name of this ShowImageByTagsResource.
|
122
126
|
|
123
127
|
镜像名称
|
124
128
|
|
@@ -129,12 +133,12 @@ class ShowImageByTagsResource:
|
|
129
133
|
|
130
134
|
@resource_name.setter
|
131
135
|
def resource_name(self, resource_name):
|
132
|
-
"""Sets the resource_name of this ShowImageByTagsResource.
|
136
|
+
r"""Sets the resource_name of this ShowImageByTagsResource.
|
133
137
|
|
134
138
|
镜像名称
|
135
139
|
|
136
140
|
:param resource_name: The resource_name of this ShowImageByTagsResource.
|
137
|
-
:type: str
|
141
|
+
:type resource_name: str
|
138
142
|
"""
|
139
143
|
self._resource_name = resource_name
|
140
144
|
|
@@ -167,10 +171,15 @@ class ShowImageByTagsResource:
|
|
167
171
|
|
168
172
|
def to_str(self):
|
169
173
|
"""Returns the string representation of the model"""
|
170
|
-
|
174
|
+
import simplejson as json
|
175
|
+
if six.PY2:
|
176
|
+
import sys
|
177
|
+
reload(sys)
|
178
|
+
sys.setdefaultencoding("utf-8")
|
179
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
171
180
|
|
172
181
|
def __repr__(self):
|
173
|
-
"""For `print`
|
182
|
+
"""For `print`"""
|
174
183
|
return self.to_str()
|
175
184
|
|
176
185
|
def __eq__(self, other):
|
@@ -0,0 +1,142 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class ShowImageMemberRequest:
|
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
|
+
'member_id': 'str'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'image_id': 'image_id',
|
26
|
+
'member_id': 'member_id'
|
27
|
+
}
|
28
|
+
|
29
|
+
def __init__(self, image_id=None, member_id=None):
|
30
|
+
r"""ShowImageMemberRequest
|
31
|
+
|
32
|
+
The model defined in huaweicloud sdk
|
33
|
+
|
34
|
+
:param image_id: 镜像id
|
35
|
+
:type image_id: str
|
36
|
+
:param member_id: 成员id
|
37
|
+
:type member_id: str
|
38
|
+
"""
|
39
|
+
|
40
|
+
|
41
|
+
|
42
|
+
self._image_id = None
|
43
|
+
self._member_id = None
|
44
|
+
self.discriminator = None
|
45
|
+
|
46
|
+
self.image_id = image_id
|
47
|
+
self.member_id = member_id
|
48
|
+
|
49
|
+
@property
|
50
|
+
def image_id(self):
|
51
|
+
r"""Gets the image_id of this ShowImageMemberRequest.
|
52
|
+
|
53
|
+
镜像id
|
54
|
+
|
55
|
+
:return: The image_id of this ShowImageMemberRequest.
|
56
|
+
:rtype: str
|
57
|
+
"""
|
58
|
+
return self._image_id
|
59
|
+
|
60
|
+
@image_id.setter
|
61
|
+
def image_id(self, image_id):
|
62
|
+
r"""Sets the image_id of this ShowImageMemberRequest.
|
63
|
+
|
64
|
+
镜像id
|
65
|
+
|
66
|
+
:param image_id: The image_id of this ShowImageMemberRequest.
|
67
|
+
:type image_id: str
|
68
|
+
"""
|
69
|
+
self._image_id = image_id
|
70
|
+
|
71
|
+
@property
|
72
|
+
def member_id(self):
|
73
|
+
r"""Gets the member_id of this ShowImageMemberRequest.
|
74
|
+
|
75
|
+
成员id
|
76
|
+
|
77
|
+
:return: The member_id of this ShowImageMemberRequest.
|
78
|
+
:rtype: str
|
79
|
+
"""
|
80
|
+
return self._member_id
|
81
|
+
|
82
|
+
@member_id.setter
|
83
|
+
def member_id(self, member_id):
|
84
|
+
r"""Sets the member_id of this ShowImageMemberRequest.
|
85
|
+
|
86
|
+
成员id
|
87
|
+
|
88
|
+
:param member_id: The member_id of this ShowImageMemberRequest.
|
89
|
+
:type member_id: str
|
90
|
+
"""
|
91
|
+
self._member_id = member_id
|
92
|
+
|
93
|
+
def to_dict(self):
|
94
|
+
"""Returns the model properties as a dict"""
|
95
|
+
result = {}
|
96
|
+
|
97
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
98
|
+
value = getattr(self, attr)
|
99
|
+
if isinstance(value, list):
|
100
|
+
result[attr] = list(map(
|
101
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
102
|
+
value
|
103
|
+
))
|
104
|
+
elif hasattr(value, "to_dict"):
|
105
|
+
result[attr] = value.to_dict()
|
106
|
+
elif isinstance(value, dict):
|
107
|
+
result[attr] = dict(map(
|
108
|
+
lambda item: (item[0], item[1].to_dict())
|
109
|
+
if hasattr(item[1], "to_dict") else item,
|
110
|
+
value.items()
|
111
|
+
))
|
112
|
+
else:
|
113
|
+
if attr in self.sensitive_list:
|
114
|
+
result[attr] = "****"
|
115
|
+
else:
|
116
|
+
result[attr] = value
|
117
|
+
|
118
|
+
return result
|
119
|
+
|
120
|
+
def to_str(self):
|
121
|
+
"""Returns the string representation of the model"""
|
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)
|
128
|
+
|
129
|
+
def __repr__(self):
|
130
|
+
"""For `print`"""
|
131
|
+
return self.to_str()
|
132
|
+
|
133
|
+
def __eq__(self, other):
|
134
|
+
"""Returns true if both objects are equal"""
|
135
|
+
if not isinstance(other, ShowImageMemberRequest):
|
136
|
+
return False
|
137
|
+
|
138
|
+
return self.__dict__ == other.__dict__
|
139
|
+
|
140
|
+
def __ne__(self, other):
|
141
|
+
"""Returns true if both objects are not equal"""
|
142
|
+
return not self == other
|
@@ -0,0 +1,319 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
7
|
+
|
8
|
+
|
9
|
+
class ShowImageMemberResponse(SdkResponse):
|
10
|
+
|
11
|
+
"""
|
12
|
+
Attributes:
|
13
|
+
openapi_types (dict): The key is attribute name
|
14
|
+
and the value is attribute type.
|
15
|
+
attribute_map (dict): The key is attribute name
|
16
|
+
and the value is json key in definition.
|
17
|
+
"""
|
18
|
+
sensitive_list = []
|
19
|
+
|
20
|
+
openapi_types = {
|
21
|
+
'status': 'str',
|
22
|
+
'created_at': 'str',
|
23
|
+
'updated_at': 'str',
|
24
|
+
'image_id': 'str',
|
25
|
+
'member_id': 'str',
|
26
|
+
'schema': 'str',
|
27
|
+
'member_type': 'str',
|
28
|
+
'urn': 'str'
|
29
|
+
}
|
30
|
+
|
31
|
+
attribute_map = {
|
32
|
+
'status': 'status',
|
33
|
+
'created_at': 'created_at',
|
34
|
+
'updated_at': 'updated_at',
|
35
|
+
'image_id': 'image_id',
|
36
|
+
'member_id': 'member_id',
|
37
|
+
'schema': 'schema',
|
38
|
+
'member_type': 'member_type',
|
39
|
+
'urn': 'urn'
|
40
|
+
}
|
41
|
+
|
42
|
+
def __init__(self, status=None, created_at=None, updated_at=None, image_id=None, member_id=None, schema=None, member_type=None, urn=None):
|
43
|
+
r"""ShowImageMemberResponse
|
44
|
+
|
45
|
+
The model defined in huaweicloud sdk
|
46
|
+
|
47
|
+
:param status: 共享状态
|
48
|
+
:type status: str
|
49
|
+
:param created_at: 共享时间,格式为UTC时间
|
50
|
+
:type created_at: str
|
51
|
+
:param updated_at: 更新时间,格式为UTC时间
|
52
|
+
:type updated_at: str
|
53
|
+
:param image_id: 镜像ID
|
54
|
+
:type image_id: str
|
55
|
+
:param member_id: 成员ID
|
56
|
+
:type member_id: str
|
57
|
+
:param schema: 共享视图
|
58
|
+
:type schema: str
|
59
|
+
:param member_type: 共享成员类型
|
60
|
+
:type member_type: str
|
61
|
+
:param urn: 共享组织的URN,仅当member_type类型为organization时,才会返回urn字段。
|
62
|
+
:type urn: str
|
63
|
+
"""
|
64
|
+
|
65
|
+
super(ShowImageMemberResponse, self).__init__()
|
66
|
+
|
67
|
+
self._status = None
|
68
|
+
self._created_at = None
|
69
|
+
self._updated_at = None
|
70
|
+
self._image_id = None
|
71
|
+
self._member_id = None
|
72
|
+
self._schema = None
|
73
|
+
self._member_type = None
|
74
|
+
self._urn = None
|
75
|
+
self.discriminator = None
|
76
|
+
|
77
|
+
if status is not None:
|
78
|
+
self.status = status
|
79
|
+
if created_at is not None:
|
80
|
+
self.created_at = created_at
|
81
|
+
if updated_at is not None:
|
82
|
+
self.updated_at = updated_at
|
83
|
+
if image_id is not None:
|
84
|
+
self.image_id = image_id
|
85
|
+
if member_id is not None:
|
86
|
+
self.member_id = member_id
|
87
|
+
if schema is not None:
|
88
|
+
self.schema = schema
|
89
|
+
if member_type is not None:
|
90
|
+
self.member_type = member_type
|
91
|
+
if urn is not None:
|
92
|
+
self.urn = urn
|
93
|
+
|
94
|
+
@property
|
95
|
+
def status(self):
|
96
|
+
r"""Gets the status of this ShowImageMemberResponse.
|
97
|
+
|
98
|
+
共享状态
|
99
|
+
|
100
|
+
:return: The status of this ShowImageMemberResponse.
|
101
|
+
:rtype: str
|
102
|
+
"""
|
103
|
+
return self._status
|
104
|
+
|
105
|
+
@status.setter
|
106
|
+
def status(self, status):
|
107
|
+
r"""Sets the status of this ShowImageMemberResponse.
|
108
|
+
|
109
|
+
共享状态
|
110
|
+
|
111
|
+
:param status: The status of this ShowImageMemberResponse.
|
112
|
+
:type status: str
|
113
|
+
"""
|
114
|
+
self._status = status
|
115
|
+
|
116
|
+
@property
|
117
|
+
def created_at(self):
|
118
|
+
r"""Gets the created_at of this ShowImageMemberResponse.
|
119
|
+
|
120
|
+
共享时间,格式为UTC时间
|
121
|
+
|
122
|
+
:return: The created_at of this ShowImageMemberResponse.
|
123
|
+
:rtype: str
|
124
|
+
"""
|
125
|
+
return self._created_at
|
126
|
+
|
127
|
+
@created_at.setter
|
128
|
+
def created_at(self, created_at):
|
129
|
+
r"""Sets the created_at of this ShowImageMemberResponse.
|
130
|
+
|
131
|
+
共享时间,格式为UTC时间
|
132
|
+
|
133
|
+
:param created_at: The created_at of this ShowImageMemberResponse.
|
134
|
+
:type created_at: str
|
135
|
+
"""
|
136
|
+
self._created_at = created_at
|
137
|
+
|
138
|
+
@property
|
139
|
+
def updated_at(self):
|
140
|
+
r"""Gets the updated_at of this ShowImageMemberResponse.
|
141
|
+
|
142
|
+
更新时间,格式为UTC时间
|
143
|
+
|
144
|
+
:return: The updated_at of this ShowImageMemberResponse.
|
145
|
+
:rtype: str
|
146
|
+
"""
|
147
|
+
return self._updated_at
|
148
|
+
|
149
|
+
@updated_at.setter
|
150
|
+
def updated_at(self, updated_at):
|
151
|
+
r"""Sets the updated_at of this ShowImageMemberResponse.
|
152
|
+
|
153
|
+
更新时间,格式为UTC时间
|
154
|
+
|
155
|
+
:param updated_at: The updated_at of this ShowImageMemberResponse.
|
156
|
+
:type updated_at: str
|
157
|
+
"""
|
158
|
+
self._updated_at = updated_at
|
159
|
+
|
160
|
+
@property
|
161
|
+
def image_id(self):
|
162
|
+
r"""Gets the image_id of this ShowImageMemberResponse.
|
163
|
+
|
164
|
+
镜像ID
|
165
|
+
|
166
|
+
:return: The image_id of this ShowImageMemberResponse.
|
167
|
+
:rtype: str
|
168
|
+
"""
|
169
|
+
return self._image_id
|
170
|
+
|
171
|
+
@image_id.setter
|
172
|
+
def image_id(self, image_id):
|
173
|
+
r"""Sets the image_id of this ShowImageMemberResponse.
|
174
|
+
|
175
|
+
镜像ID
|
176
|
+
|
177
|
+
:param image_id: The image_id of this ShowImageMemberResponse.
|
178
|
+
:type image_id: str
|
179
|
+
"""
|
180
|
+
self._image_id = image_id
|
181
|
+
|
182
|
+
@property
|
183
|
+
def member_id(self):
|
184
|
+
r"""Gets the member_id of this ShowImageMemberResponse.
|
185
|
+
|
186
|
+
成员ID
|
187
|
+
|
188
|
+
:return: The member_id of this ShowImageMemberResponse.
|
189
|
+
:rtype: str
|
190
|
+
"""
|
191
|
+
return self._member_id
|
192
|
+
|
193
|
+
@member_id.setter
|
194
|
+
def member_id(self, member_id):
|
195
|
+
r"""Sets the member_id of this ShowImageMemberResponse.
|
196
|
+
|
197
|
+
成员ID
|
198
|
+
|
199
|
+
:param member_id: The member_id of this ShowImageMemberResponse.
|
200
|
+
:type member_id: str
|
201
|
+
"""
|
202
|
+
self._member_id = member_id
|
203
|
+
|
204
|
+
@property
|
205
|
+
def schema(self):
|
206
|
+
r"""Gets the schema of this ShowImageMemberResponse.
|
207
|
+
|
208
|
+
共享视图
|
209
|
+
|
210
|
+
:return: The schema of this ShowImageMemberResponse.
|
211
|
+
:rtype: str
|
212
|
+
"""
|
213
|
+
return self._schema
|
214
|
+
|
215
|
+
@schema.setter
|
216
|
+
def schema(self, schema):
|
217
|
+
r"""Sets the schema of this ShowImageMemberResponse.
|
218
|
+
|
219
|
+
共享视图
|
220
|
+
|
221
|
+
:param schema: The schema of this ShowImageMemberResponse.
|
222
|
+
:type schema: str
|
223
|
+
"""
|
224
|
+
self._schema = schema
|
225
|
+
|
226
|
+
@property
|
227
|
+
def member_type(self):
|
228
|
+
r"""Gets the member_type of this ShowImageMemberResponse.
|
229
|
+
|
230
|
+
共享成员类型
|
231
|
+
|
232
|
+
:return: The member_type of this ShowImageMemberResponse.
|
233
|
+
:rtype: str
|
234
|
+
"""
|
235
|
+
return self._member_type
|
236
|
+
|
237
|
+
@member_type.setter
|
238
|
+
def member_type(self, member_type):
|
239
|
+
r"""Sets the member_type of this ShowImageMemberResponse.
|
240
|
+
|
241
|
+
共享成员类型
|
242
|
+
|
243
|
+
:param member_type: The member_type of this ShowImageMemberResponse.
|
244
|
+
:type member_type: str
|
245
|
+
"""
|
246
|
+
self._member_type = member_type
|
247
|
+
|
248
|
+
@property
|
249
|
+
def urn(self):
|
250
|
+
r"""Gets the urn of this ShowImageMemberResponse.
|
251
|
+
|
252
|
+
共享组织的URN,仅当member_type类型为organization时,才会返回urn字段。
|
253
|
+
|
254
|
+
:return: The urn of this ShowImageMemberResponse.
|
255
|
+
:rtype: str
|
256
|
+
"""
|
257
|
+
return self._urn
|
258
|
+
|
259
|
+
@urn.setter
|
260
|
+
def urn(self, urn):
|
261
|
+
r"""Sets the urn of this ShowImageMemberResponse.
|
262
|
+
|
263
|
+
共享组织的URN,仅当member_type类型为organization时,才会返回urn字段。
|
264
|
+
|
265
|
+
:param urn: The urn of this ShowImageMemberResponse.
|
266
|
+
:type urn: str
|
267
|
+
"""
|
268
|
+
self._urn = urn
|
269
|
+
|
270
|
+
def to_dict(self):
|
271
|
+
"""Returns the model properties as a dict"""
|
272
|
+
result = {}
|
273
|
+
|
274
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
275
|
+
value = getattr(self, attr)
|
276
|
+
if isinstance(value, list):
|
277
|
+
result[attr] = list(map(
|
278
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
279
|
+
value
|
280
|
+
))
|
281
|
+
elif hasattr(value, "to_dict"):
|
282
|
+
result[attr] = value.to_dict()
|
283
|
+
elif isinstance(value, dict):
|
284
|
+
result[attr] = dict(map(
|
285
|
+
lambda item: (item[0], item[1].to_dict())
|
286
|
+
if hasattr(item[1], "to_dict") else item,
|
287
|
+
value.items()
|
288
|
+
))
|
289
|
+
else:
|
290
|
+
if attr in self.sensitive_list:
|
291
|
+
result[attr] = "****"
|
292
|
+
else:
|
293
|
+
result[attr] = value
|
294
|
+
|
295
|
+
return result
|
296
|
+
|
297
|
+
def to_str(self):
|
298
|
+
"""Returns the string representation of the model"""
|
299
|
+
import simplejson as json
|
300
|
+
if six.PY2:
|
301
|
+
import sys
|
302
|
+
reload(sys)
|
303
|
+
sys.setdefaultencoding("utf-8")
|
304
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
305
|
+
|
306
|
+
def __repr__(self):
|
307
|
+
"""For `print`"""
|
308
|
+
return self.to_str()
|
309
|
+
|
310
|
+
def __eq__(self, other):
|
311
|
+
"""Returns true if both objects are equal"""
|
312
|
+
if not isinstance(other, ShowImageMemberResponse):
|
313
|
+
return False
|
314
|
+
|
315
|
+
return self.__dict__ == other.__dict__
|
316
|
+
|
317
|
+
def __ne__(self, other):
|
318
|
+
"""Returns true if both objects are not equal"""
|
319
|
+
return not self == other
|
@@ -1,17 +1,12 @@
|
|
1
1
|
# coding: utf-8
|
2
2
|
|
3
|
-
import pprint
|
4
|
-
import re
|
5
|
-
|
6
3
|
import six
|
7
4
|
|
8
|
-
|
9
|
-
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
10
6
|
|
11
7
|
|
12
8
|
class ShowImageQuotaRequest:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class ShowImageQuotaRequest:
|
|
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 ShowImageQuotaRequest:
|
|
29
23
|
}
|
30
24
|
|
31
25
|
def __init__(self):
|
32
|
-
"""ShowImageQuotaRequest
|
26
|
+
r"""ShowImageQuotaRequest
|
27
|
+
|
28
|
+
The model defined in huaweicloud sdk
|
29
|
+
|
30
|
+
"""
|
33
31
|
|
34
32
|
|
35
33
|
self.discriminator = None
|
@@ -63,10 +61,15 @@ class ShowImageQuotaRequest:
|
|
63
61
|
|
64
62
|
def to_str(self):
|
65
63
|
"""Returns the string representation of the model"""
|
66
|
-
|
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`
|
72
|
+
"""For `print`"""
|
70
73
|
return self.to_str()
|
71
74
|
|
72
75
|
def __eq__(self, other):
|