huaweicloudsdkims 3.1.144__py2.py3-none-any.whl → 3.1.145__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.
- huaweicloudsdkims/v2/__init__.py +8 -0
- huaweicloudsdkims/v2/ims_async_client.py +199 -0
- huaweicloudsdkims/v2/ims_client.py +199 -0
- huaweicloudsdkims/v2/model/__init__.py +8 -0
- 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/image_member.py +310 -0
- huaweicloudsdkims/v2/model/list_image_members_request.py +114 -0
- huaweicloudsdkims/v2/model/list_image_members_response.py +145 -0
- huaweicloudsdkims/v2/model/show_image_member_request.py +142 -0
- huaweicloudsdkims/v2/model/show_image_member_response.py +319 -0
- {huaweicloudsdkims-3.1.144.dist-info → huaweicloudsdkims-3.1.145.dist-info}/METADATA +2 -2
- {huaweicloudsdkims-3.1.144.dist-info → huaweicloudsdkims-3.1.145.dist-info}/RECORD +17 -9
- {huaweicloudsdkims-3.1.144.dist-info → huaweicloudsdkims-3.1.145.dist-info}/LICENSE +0 -0
- {huaweicloudsdkims-3.1.144.dist-info → huaweicloudsdkims-3.1.145.dist-info}/WHEEL +0 -0
- {huaweicloudsdkims-3.1.144.dist-info → huaweicloudsdkims-3.1.145.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,145 @@
|
|
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 ListImageMembersResponse(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
|
+
'members': 'list[ImageMember]',
|
22
|
+
'schema': 'str'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'members': 'members',
|
27
|
+
'schema': 'schema'
|
28
|
+
}
|
29
|
+
|
30
|
+
def __init__(self, members=None, schema=None):
|
31
|
+
r"""ListImageMembersResponse
|
32
|
+
|
33
|
+
The model defined in huaweicloud sdk
|
34
|
+
|
35
|
+
:param members: 成员信息
|
36
|
+
:type members: list[:class:`huaweicloudsdkims.v2.ImageMember`]
|
37
|
+
:param schema: 视图信息
|
38
|
+
:type schema: str
|
39
|
+
"""
|
40
|
+
|
41
|
+
super(ListImageMembersResponse, self).__init__()
|
42
|
+
|
43
|
+
self._members = None
|
44
|
+
self._schema = None
|
45
|
+
self.discriminator = None
|
46
|
+
|
47
|
+
if members is not None:
|
48
|
+
self.members = members
|
49
|
+
if schema is not None:
|
50
|
+
self.schema = schema
|
51
|
+
|
52
|
+
@property
|
53
|
+
def members(self):
|
54
|
+
r"""Gets the members of this ListImageMembersResponse.
|
55
|
+
|
56
|
+
成员信息
|
57
|
+
|
58
|
+
:return: The members of this ListImageMembersResponse.
|
59
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.ImageMember`]
|
60
|
+
"""
|
61
|
+
return self._members
|
62
|
+
|
63
|
+
@members.setter
|
64
|
+
def members(self, members):
|
65
|
+
r"""Sets the members of this ListImageMembersResponse.
|
66
|
+
|
67
|
+
成员信息
|
68
|
+
|
69
|
+
:param members: The members of this ListImageMembersResponse.
|
70
|
+
:type members: list[:class:`huaweicloudsdkims.v2.ImageMember`]
|
71
|
+
"""
|
72
|
+
self._members = members
|
73
|
+
|
74
|
+
@property
|
75
|
+
def schema(self):
|
76
|
+
r"""Gets the schema of this ListImageMembersResponse.
|
77
|
+
|
78
|
+
视图信息
|
79
|
+
|
80
|
+
:return: The schema of this ListImageMembersResponse.
|
81
|
+
:rtype: str
|
82
|
+
"""
|
83
|
+
return self._schema
|
84
|
+
|
85
|
+
@schema.setter
|
86
|
+
def schema(self, schema):
|
87
|
+
r"""Sets the schema of this ListImageMembersResponse.
|
88
|
+
|
89
|
+
视图信息
|
90
|
+
|
91
|
+
:param schema: The schema of this ListImageMembersResponse.
|
92
|
+
:type schema: str
|
93
|
+
"""
|
94
|
+
self._schema = schema
|
95
|
+
|
96
|
+
def to_dict(self):
|
97
|
+
"""Returns the model properties as a dict"""
|
98
|
+
result = {}
|
99
|
+
|
100
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
101
|
+
value = getattr(self, attr)
|
102
|
+
if isinstance(value, list):
|
103
|
+
result[attr] = list(map(
|
104
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
105
|
+
value
|
106
|
+
))
|
107
|
+
elif hasattr(value, "to_dict"):
|
108
|
+
result[attr] = value.to_dict()
|
109
|
+
elif isinstance(value, dict):
|
110
|
+
result[attr] = dict(map(
|
111
|
+
lambda item: (item[0], item[1].to_dict())
|
112
|
+
if hasattr(item[1], "to_dict") else item,
|
113
|
+
value.items()
|
114
|
+
))
|
115
|
+
else:
|
116
|
+
if attr in self.sensitive_list:
|
117
|
+
result[attr] = "****"
|
118
|
+
else:
|
119
|
+
result[attr] = value
|
120
|
+
|
121
|
+
return result
|
122
|
+
|
123
|
+
def to_str(self):
|
124
|
+
"""Returns the string representation of the model"""
|
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)
|
131
|
+
|
132
|
+
def __repr__(self):
|
133
|
+
"""For `print`"""
|
134
|
+
return self.to_str()
|
135
|
+
|
136
|
+
def __eq__(self, other):
|
137
|
+
"""Returns true if both objects are equal"""
|
138
|
+
if not isinstance(other, ListImageMembersResponse):
|
139
|
+
return False
|
140
|
+
|
141
|
+
return self.__dict__ == other.__dict__
|
142
|
+
|
143
|
+
def __ne__(self, other):
|
144
|
+
"""Returns true if both objects are not equal"""
|
145
|
+
return not 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,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: huaweicloudsdkims
|
3
|
-
Version: 3.1.
|
3
|
+
Version: 3.1.145
|
4
4
|
Summary: IMS
|
5
5
|
Home-page: https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
6
6
|
Author: HuaweiCloud SDK
|
@@ -22,6 +22,6 @@ Classifier: Topic :: Software Development
|
|
22
22
|
Requires-Python: >=2.7,!=3.0.*,!=3.1.*,!=3.2.*
|
23
23
|
Description-Content-Type: text/markdown
|
24
24
|
License-File: LICENSE
|
25
|
-
Requires-Dist: huaweicloudsdkcore>=3.1.
|
25
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.145
|
26
26
|
|
27
27
|
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
@@ -1,8 +1,8 @@
|
|
1
1
|
huaweicloudsdkims/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
2
|
-
huaweicloudsdkims/v2/__init__.py,sha256=
|
3
|
-
huaweicloudsdkims/v2/ims_async_client.py,sha256=
|
4
|
-
huaweicloudsdkims/v2/ims_client.py,sha256=
|
5
|
-
huaweicloudsdkims/v2/model/__init__.py,sha256=
|
2
|
+
huaweicloudsdkims/v2/__init__.py,sha256=NWQ1vUMyWhSrkvnkt2nIsMEqUttLrKKZ5SWornsV5XQ,12404
|
3
|
+
huaweicloudsdkims/v2/ims_async_client.py,sha256=rN83DugV_v2CTC4oVFCm_65D3TFNXnWD3zOIpgldFM0,118008
|
4
|
+
huaweicloudsdkims/v2/ims_client.py,sha256=Ox85V21eH4NN5BaWBJmv5ld0FkyhOURRgUIcqnvi0pE,117995
|
5
|
+
huaweicloudsdkims/v2/model/__init__.py,sha256=EAjnhzsn6s7kMVkjU8yMoT0IpFDLrAJ2bMhjqcAqjO8,12318
|
6
6
|
huaweicloudsdkims/v2/model/add_image_tag_request.py,sha256=6fBfVSOCgjtl0mbx_MqBYt47LrvtjIvWO64CXosVOZE,3835
|
7
7
|
huaweicloudsdkims/v2/model/add_image_tag_request_body.py,sha256=xOkRF6e2N7z9X-EbzOgpYqJ8gUIbtR-rv-X-vmC7y-Q,3017
|
8
8
|
huaweicloudsdkims/v2/model/add_image_tag_response.py,sha256=LfA4RwgTj05FhJ8RKihThQvkm5e2r6Kw6rSz0YI8pMA,2428
|
@@ -16,6 +16,9 @@ huaweicloudsdkims/v2/model/batch_add_or_delete_tags_request_body.py,sha256=UMIvw
|
|
16
16
|
huaweicloudsdkims/v2/model/batch_add_or_delete_tags_response.py,sha256=rll2WMwhMGdeVHvDx0BYR4fQKpR_Q2LMYyZnIWPmcGA,2464
|
17
17
|
huaweicloudsdkims/v2/model/batch_delete_members_request.py,sha256=TaP9VA7RCf_wUsGsZheZrSzRYMZdAP7URPw74PUbeuY,3190
|
18
18
|
huaweicloudsdkims/v2/model/batch_delete_members_response.py,sha256=uxUMZHW26NY3j4_dHJRfEZYKn7pjtz9JwZK8T7gf66g,3214
|
19
|
+
huaweicloudsdkims/v2/model/batch_delete_tags_request.py,sha256=NO7-gHqTQXgN0WuUADYLepW8TK13K0x0hL3rOK8ajZw,3899
|
20
|
+
huaweicloudsdkims/v2/model/batch_delete_tags_request_body.py,sha256=21I7pWJb6ETcT0PtsKR0JC5yGrlNjs0DoS81fnBFW3g,3228
|
21
|
+
huaweicloudsdkims/v2/model/batch_delete_tags_response.py,sha256=pSPvjOTAeKXGq1v-9WyXoRqJiYmWqYKBxLwsxdVJELw,2444
|
19
22
|
huaweicloudsdkims/v2/model/batch_update_members_request.py,sha256=ju5joxrcxgxQU5iJQpIixcolIQjfk8AA2bNPuLOGU5o,3202
|
20
23
|
huaweicloudsdkims/v2/model/batch_update_members_request_body.py,sha256=cFjwLZQdF8luh7IEIkYjxBOXujUSIDkYj3CGgTVsFjQ,6757
|
21
24
|
huaweicloudsdkims/v2/model/batch_update_members_response.py,sha256=lFNW9aHymGsXwiwxgwNFCq-kEAPrZ5DJ4x01uMdVepk,3214
|
@@ -82,6 +85,7 @@ huaweicloudsdkims/v2/model/glance_update_image_request.py,sha256=yemMnfM3rWBM3RY
|
|
82
85
|
huaweicloudsdkims/v2/model/glance_update_image_request_body.py,sha256=ol5OF8zm87mXJOf08VS7txws7qEZBlw9PALPEWrGd2Q,5232
|
83
86
|
huaweicloudsdkims/v2/model/glance_update_image_response.py,sha256=T3uuDXM0lMGqdN3sZhpmPVBJooYdbvdgG5Ho4IaOs_c,67493
|
84
87
|
huaweicloudsdkims/v2/model/image_info.py,sha256=B3BL4rGM5coVp8kiPaQJtWirl1UNyPyp8bjuHzo7DM4,68411
|
88
|
+
huaweicloudsdkims/v2/model/image_member.py,sha256=zdto-u3xLlliLbTwyupPi1XcNG--nekk88aEIdgydp4,8157
|
85
89
|
huaweicloudsdkims/v2/model/image_tag.py,sha256=qGL2wt_KIO_jW81cQPi75zT-yEhE_OaAp_P0vuTsUlQ,3539
|
86
90
|
huaweicloudsdkims/v2/model/import_image_quick_request.py,sha256=Zaj1rY2y7WL_vJcqZIKNkTN2xIK4De48PvtIHxcCO4A,3202
|
87
91
|
huaweicloudsdkims/v2/model/import_image_quick_response.py,sha256=FM0ZNQ1sPiUejV9pvkZl1vTeaXwBef6noZ1uYWtWuO4,3198
|
@@ -92,6 +96,8 @@ huaweicloudsdkims/v2/model/links.py,sha256=k5LOwF74yUNrreCZm7U88UnTC8iVL8_sutTyT
|
|
92
96
|
huaweicloudsdkims/v2/model/list_image_by_tags_request.py,sha256=XSVYKmBWorwZWHUdikRL0rWoBBkIqoIhn5WCzFypipM,3166
|
93
97
|
huaweicloudsdkims/v2/model/list_image_by_tags_request_body.py,sha256=Q0egFCWcP3JKX-tY3ClP5XyCCgYJkSIxQQCHptiJjQI,13998
|
94
98
|
huaweicloudsdkims/v2/model/list_image_by_tags_response.py,sha256=27qbq-hdYuWa_tx1iMnbhK1rumRB4B-KlG7A2AyjlCo,4302
|
99
|
+
huaweicloudsdkims/v2/model/list_image_members_request.py,sha256=wwO6Q-3YFu3KgwaRRmj0zpS59QHf0ZTwIgFyENAuCgk,3056
|
100
|
+
huaweicloudsdkims/v2/model/list_image_members_response.py,sha256=yR5VYG0WtUfDJ5r-hu8DBwrzZW1dZ4vGf61YGgxREqE,4087
|
95
101
|
huaweicloudsdkims/v2/model/list_image_tags_request.py,sha256=-5QGAp1SVYRbygFt5Z2x4SMUb2EILpOVDcPsRdzQcnk,3044
|
96
102
|
huaweicloudsdkims/v2/model/list_image_tags_response.py,sha256=EIjZdB40JVE5SMlnNqWj_DxM0VTbWwb182lJXCmGFdI,3259
|
97
103
|
huaweicloudsdkims/v2/model/list_images_request.py,sha256=MrP5Jrxo9nJqUQVERpKLfuRSy1XrwbqBEHYSOuOcr54,46526
|
@@ -116,6 +122,8 @@ huaweicloudsdkims/v2/model/register_image_request_body.py,sha256=szlbHVKy1EwnFfh
|
|
116
122
|
huaweicloudsdkims/v2/model/register_image_response.py,sha256=_Na2t6-176b397N8k8gdJQczDJX4tXgP_WB_VHE5CLw,3174
|
117
123
|
huaweicloudsdkims/v2/model/resource_tag.py,sha256=YXlh3CBRz8jwpDeYFo4vYDZmD5BDrmhuP7TE-f8R-jo,3500
|
118
124
|
huaweicloudsdkims/v2/model/show_image_by_tags_resource.py,sha256=0n03KsIbclMNNbscOnSt5hH52-B4ouInxrmXe0WhYEY,5833
|
125
|
+
huaweicloudsdkims/v2/model/show_image_member_request.py,sha256=Rv_F6j-oQH4Ifz-vSq5YcXGGkwfD2OM8Rj1forXEX_w,3795
|
126
|
+
huaweicloudsdkims/v2/model/show_image_member_response.py,sha256=5BCDUQP08pOJoYKJJlou1pVg7Acb-VQ12BAnudwOhoo,8988
|
119
127
|
huaweicloudsdkims/v2/model/show_image_quota_request.py,sha256=WNEekpuSxEY3F8zvwdTbOdZ6ldi8B2_ePYXjTBYs7Sg,2322
|
120
128
|
huaweicloudsdkims/v2/model/show_image_quota_response.py,sha256=nvJc5iZrAVpLSjC2BsphKg7-DzUtNmPPvHzNUwSmh0A,3209
|
121
129
|
huaweicloudsdkims/v2/model/show_job_progress_request.py,sha256=DYvJ8yV3osc8CkigTq_-98J3IjuGCTDbhkVPlJoQBwk,3023
|
@@ -133,8 +141,8 @@ huaweicloudsdkims/v2/model/update_image_request_body.py,sha256=ujQQ1ST2WrhrLn5av
|
|
133
141
|
huaweicloudsdkims/v2/model/update_image_response.py,sha256=R_GuyrH2SPSctELzhf_uYXtVg5xTjO23O3Y2CdujDS8,71829
|
134
142
|
huaweicloudsdkims/v2/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
135
143
|
huaweicloudsdkims/v2/region/ims_region.py,sha256=zhZVEJZaG9RZa3M2sahEa52aLbWBPxoNAQprGWF8N-M,5141
|
136
|
-
huaweicloudsdkims-3.1.
|
137
|
-
huaweicloudsdkims-3.1.
|
138
|
-
huaweicloudsdkims-3.1.
|
139
|
-
huaweicloudsdkims-3.1.
|
140
|
-
huaweicloudsdkims-3.1.
|
144
|
+
huaweicloudsdkims-3.1.145.dist-info/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
145
|
+
huaweicloudsdkims-3.1.145.dist-info/METADATA,sha256=822aE7ikVM9UfYgs9k5F4_0EttDCY6VMx0x99gIREl0,1135
|
146
|
+
huaweicloudsdkims-3.1.145.dist-info/WHEEL,sha256=Kh9pAotZVRFj97E15yTA4iADqXdQfIVTHcNaZTjxeGM,110
|
147
|
+
huaweicloudsdkims-3.1.145.dist-info/top_level.txt,sha256=beY7g3KzOOg2_S8f1Fa3GKquy1uP3gPs0mkVWNNL21g,18
|
148
|
+
huaweicloudsdkims-3.1.145.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|