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
@@ -0,0 +1,116 @@
|
|
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 ListVersionsResponse(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
|
+
'versions': 'list[OsVersionResponse]'
|
22
|
+
}
|
23
|
+
|
24
|
+
attribute_map = {
|
25
|
+
'versions': 'versions'
|
26
|
+
}
|
27
|
+
|
28
|
+
def __init__(self, versions=None):
|
29
|
+
r"""ListVersionsResponse
|
30
|
+
|
31
|
+
The model defined in huaweicloud sdk
|
32
|
+
|
33
|
+
:param versions: 版本信息
|
34
|
+
:type versions: list[:class:`huaweicloudsdkims.v2.OsVersionResponse`]
|
35
|
+
"""
|
36
|
+
|
37
|
+
super(ListVersionsResponse, self).__init__()
|
38
|
+
|
39
|
+
self._versions = None
|
40
|
+
self.discriminator = None
|
41
|
+
|
42
|
+
if versions is not None:
|
43
|
+
self.versions = versions
|
44
|
+
|
45
|
+
@property
|
46
|
+
def versions(self):
|
47
|
+
r"""Gets the versions of this ListVersionsResponse.
|
48
|
+
|
49
|
+
版本信息
|
50
|
+
|
51
|
+
:return: The versions of this ListVersionsResponse.
|
52
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.OsVersionResponse`]
|
53
|
+
"""
|
54
|
+
return self._versions
|
55
|
+
|
56
|
+
@versions.setter
|
57
|
+
def versions(self, versions):
|
58
|
+
r"""Sets the versions of this ListVersionsResponse.
|
59
|
+
|
60
|
+
版本信息
|
61
|
+
|
62
|
+
:param versions: The versions of this ListVersionsResponse.
|
63
|
+
:type versions: list[:class:`huaweicloudsdkims.v2.OsVersionResponse`]
|
64
|
+
"""
|
65
|
+
self._versions = versions
|
66
|
+
|
67
|
+
def to_dict(self):
|
68
|
+
"""Returns the model properties as a dict"""
|
69
|
+
result = {}
|
70
|
+
|
71
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
72
|
+
value = getattr(self, attr)
|
73
|
+
if isinstance(value, list):
|
74
|
+
result[attr] = list(map(
|
75
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
76
|
+
value
|
77
|
+
))
|
78
|
+
elif hasattr(value, "to_dict"):
|
79
|
+
result[attr] = value.to_dict()
|
80
|
+
elif isinstance(value, dict):
|
81
|
+
result[attr] = dict(map(
|
82
|
+
lambda item: (item[0], item[1].to_dict())
|
83
|
+
if hasattr(item[1], "to_dict") else item,
|
84
|
+
value.items()
|
85
|
+
))
|
86
|
+
else:
|
87
|
+
if attr in self.sensitive_list:
|
88
|
+
result[attr] = "****"
|
89
|
+
else:
|
90
|
+
result[attr] = value
|
91
|
+
|
92
|
+
return result
|
93
|
+
|
94
|
+
def to_str(self):
|
95
|
+
"""Returns the string representation of the model"""
|
96
|
+
import simplejson as json
|
97
|
+
if six.PY2:
|
98
|
+
import sys
|
99
|
+
reload(sys)
|
100
|
+
sys.setdefaultencoding("utf-8")
|
101
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
102
|
+
|
103
|
+
def __repr__(self):
|
104
|
+
"""For `print`"""
|
105
|
+
return self.to_str()
|
106
|
+
|
107
|
+
def __eq__(self, other):
|
108
|
+
"""Returns true if both objects are equal"""
|
109
|
+
if not isinstance(other, ListVersionsResponse):
|
110
|
+
return False
|
111
|
+
|
112
|
+
return self.__dict__ == other.__dict__
|
113
|
+
|
114
|
+
def __ne__(self, other):
|
115
|
+
"""Returns true if both objects are not equal"""
|
116
|
+
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 OsVersionInfo:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class OsVersionInfo:
|
|
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 = {
|
@@ -39,7 +33,21 @@ class OsVersionInfo:
|
|
39
33
|
}
|
40
34
|
|
41
35
|
def __init__(self, platform=None, os_version_key=None, os_version=None, os_bit=None, os_type=None):
|
42
|
-
"""OsVersionInfo
|
36
|
+
r"""OsVersionInfo
|
37
|
+
|
38
|
+
The model defined in huaweicloud sdk
|
39
|
+
|
40
|
+
:param platform: 操作系统的平台值
|
41
|
+
:type platform: str
|
42
|
+
:param os_version_key: os_version的key值,和os_version值相同
|
43
|
+
:type os_version_key: str
|
44
|
+
:param os_version: 操作系统的版本
|
45
|
+
:type os_version: str
|
46
|
+
:param os_bit: 操作系统的位数
|
47
|
+
:type os_bit: int
|
48
|
+
:param os_type: 操作系统的类型,Linux或Windows
|
49
|
+
:type os_type: str
|
50
|
+
"""
|
43
51
|
|
44
52
|
|
45
53
|
|
@@ -58,7 +66,7 @@ class OsVersionInfo:
|
|
58
66
|
|
59
67
|
@property
|
60
68
|
def platform(self):
|
61
|
-
"""Gets the platform of this OsVersionInfo.
|
69
|
+
r"""Gets the platform of this OsVersionInfo.
|
62
70
|
|
63
71
|
操作系统的平台值
|
64
72
|
|
@@ -69,18 +77,18 @@ class OsVersionInfo:
|
|
69
77
|
|
70
78
|
@platform.setter
|
71
79
|
def platform(self, platform):
|
72
|
-
"""Sets the platform of this OsVersionInfo.
|
80
|
+
r"""Sets the platform of this OsVersionInfo.
|
73
81
|
|
74
82
|
操作系统的平台值
|
75
83
|
|
76
84
|
:param platform: The platform of this OsVersionInfo.
|
77
|
-
:type: str
|
85
|
+
:type platform: str
|
78
86
|
"""
|
79
87
|
self._platform = platform
|
80
88
|
|
81
89
|
@property
|
82
90
|
def os_version_key(self):
|
83
|
-
"""Gets the os_version_key of this OsVersionInfo.
|
91
|
+
r"""Gets the os_version_key of this OsVersionInfo.
|
84
92
|
|
85
93
|
os_version的key值,和os_version值相同
|
86
94
|
|
@@ -91,18 +99,18 @@ class OsVersionInfo:
|
|
91
99
|
|
92
100
|
@os_version_key.setter
|
93
101
|
def os_version_key(self, os_version_key):
|
94
|
-
"""Sets the os_version_key of this OsVersionInfo.
|
102
|
+
r"""Sets the os_version_key of this OsVersionInfo.
|
95
103
|
|
96
104
|
os_version的key值,和os_version值相同
|
97
105
|
|
98
106
|
:param os_version_key: The os_version_key of this OsVersionInfo.
|
99
|
-
:type: str
|
107
|
+
:type os_version_key: str
|
100
108
|
"""
|
101
109
|
self._os_version_key = os_version_key
|
102
110
|
|
103
111
|
@property
|
104
112
|
def os_version(self):
|
105
|
-
"""Gets the os_version of this OsVersionInfo.
|
113
|
+
r"""Gets the os_version of this OsVersionInfo.
|
106
114
|
|
107
115
|
操作系统的版本
|
108
116
|
|
@@ -113,18 +121,18 @@ class OsVersionInfo:
|
|
113
121
|
|
114
122
|
@os_version.setter
|
115
123
|
def os_version(self, os_version):
|
116
|
-
"""Sets the os_version of this OsVersionInfo.
|
124
|
+
r"""Sets the os_version of this OsVersionInfo.
|
117
125
|
|
118
126
|
操作系统的版本
|
119
127
|
|
120
128
|
:param os_version: The os_version of this OsVersionInfo.
|
121
|
-
:type: str
|
129
|
+
:type os_version: str
|
122
130
|
"""
|
123
131
|
self._os_version = os_version
|
124
132
|
|
125
133
|
@property
|
126
134
|
def os_bit(self):
|
127
|
-
"""Gets the os_bit of this OsVersionInfo.
|
135
|
+
r"""Gets the os_bit of this OsVersionInfo.
|
128
136
|
|
129
137
|
操作系统的位数
|
130
138
|
|
@@ -135,18 +143,18 @@ class OsVersionInfo:
|
|
135
143
|
|
136
144
|
@os_bit.setter
|
137
145
|
def os_bit(self, os_bit):
|
138
|
-
"""Sets the os_bit of this OsVersionInfo.
|
146
|
+
r"""Sets the os_bit of this OsVersionInfo.
|
139
147
|
|
140
148
|
操作系统的位数
|
141
149
|
|
142
150
|
:param os_bit: The os_bit of this OsVersionInfo.
|
143
|
-
:type: int
|
151
|
+
:type os_bit: int
|
144
152
|
"""
|
145
153
|
self._os_bit = os_bit
|
146
154
|
|
147
155
|
@property
|
148
156
|
def os_type(self):
|
149
|
-
"""Gets the os_type of this OsVersionInfo.
|
157
|
+
r"""Gets the os_type of this OsVersionInfo.
|
150
158
|
|
151
159
|
操作系统的类型,Linux或Windows
|
152
160
|
|
@@ -157,12 +165,12 @@ class OsVersionInfo:
|
|
157
165
|
|
158
166
|
@os_type.setter
|
159
167
|
def os_type(self, os_type):
|
160
|
-
"""Sets the os_type of this OsVersionInfo.
|
168
|
+
r"""Sets the os_type of this OsVersionInfo.
|
161
169
|
|
162
170
|
操作系统的类型,Linux或Windows
|
163
171
|
|
164
172
|
:param os_type: The os_type of this OsVersionInfo.
|
165
|
-
:type: str
|
173
|
+
:type os_type: str
|
166
174
|
"""
|
167
175
|
self._os_type = os_type
|
168
176
|
|
@@ -195,10 +203,15 @@ class OsVersionInfo:
|
|
195
203
|
|
196
204
|
def to_str(self):
|
197
205
|
"""Returns the string representation of the model"""
|
198
|
-
|
206
|
+
import simplejson as json
|
207
|
+
if six.PY2:
|
208
|
+
import sys
|
209
|
+
reload(sys)
|
210
|
+
sys.setdefaultencoding("utf-8")
|
211
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
199
212
|
|
200
213
|
def __repr__(self):
|
201
|
-
"""For `print`
|
214
|
+
"""For `print`"""
|
202
215
|
return self.to_str()
|
203
216
|
|
204
217
|
def __eq__(self, other):
|
@@ -0,0 +1,172 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
import six
|
4
|
+
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
6
|
+
|
7
|
+
|
8
|
+
class OsVersionResponse:
|
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
|
+
'status': 'str',
|
21
|
+
'id': 'str',
|
22
|
+
'links': 'list[Links]'
|
23
|
+
}
|
24
|
+
|
25
|
+
attribute_map = {
|
26
|
+
'status': 'status',
|
27
|
+
'id': 'id',
|
28
|
+
'links': 'links'
|
29
|
+
}
|
30
|
+
|
31
|
+
def __init__(self, status=None, id=None, links=None):
|
32
|
+
r"""OsVersionResponse
|
33
|
+
|
34
|
+
The model defined in huaweicloud sdk
|
35
|
+
|
36
|
+
:param status: 接口状态。
|
37
|
+
:type status: str
|
38
|
+
:param id: 接口ID。
|
39
|
+
:type id: str
|
40
|
+
:param links: 自描述信息。
|
41
|
+
:type links: list[:class:`huaweicloudsdkims.v2.Links`]
|
42
|
+
"""
|
43
|
+
|
44
|
+
|
45
|
+
|
46
|
+
self._status = None
|
47
|
+
self._id = None
|
48
|
+
self._links = None
|
49
|
+
self.discriminator = None
|
50
|
+
|
51
|
+
self.status = status
|
52
|
+
if id is not None:
|
53
|
+
self.id = id
|
54
|
+
if links is not None:
|
55
|
+
self.links = links
|
56
|
+
|
57
|
+
@property
|
58
|
+
def status(self):
|
59
|
+
r"""Gets the status of this OsVersionResponse.
|
60
|
+
|
61
|
+
接口状态。
|
62
|
+
|
63
|
+
:return: The status of this OsVersionResponse.
|
64
|
+
:rtype: str
|
65
|
+
"""
|
66
|
+
return self._status
|
67
|
+
|
68
|
+
@status.setter
|
69
|
+
def status(self, status):
|
70
|
+
r"""Sets the status of this OsVersionResponse.
|
71
|
+
|
72
|
+
接口状态。
|
73
|
+
|
74
|
+
:param status: The status of this OsVersionResponse.
|
75
|
+
:type status: str
|
76
|
+
"""
|
77
|
+
self._status = status
|
78
|
+
|
79
|
+
@property
|
80
|
+
def id(self):
|
81
|
+
r"""Gets the id of this OsVersionResponse.
|
82
|
+
|
83
|
+
接口ID。
|
84
|
+
|
85
|
+
:return: The id of this OsVersionResponse.
|
86
|
+
:rtype: str
|
87
|
+
"""
|
88
|
+
return self._id
|
89
|
+
|
90
|
+
@id.setter
|
91
|
+
def id(self, id):
|
92
|
+
r"""Sets the id of this OsVersionResponse.
|
93
|
+
|
94
|
+
接口ID。
|
95
|
+
|
96
|
+
:param id: The id of this OsVersionResponse.
|
97
|
+
:type id: str
|
98
|
+
"""
|
99
|
+
self._id = id
|
100
|
+
|
101
|
+
@property
|
102
|
+
def links(self):
|
103
|
+
r"""Gets the links of this OsVersionResponse.
|
104
|
+
|
105
|
+
自描述信息。
|
106
|
+
|
107
|
+
:return: The links of this OsVersionResponse.
|
108
|
+
:rtype: list[:class:`huaweicloudsdkims.v2.Links`]
|
109
|
+
"""
|
110
|
+
return self._links
|
111
|
+
|
112
|
+
@links.setter
|
113
|
+
def links(self, links):
|
114
|
+
r"""Sets the links of this OsVersionResponse.
|
115
|
+
|
116
|
+
自描述信息。
|
117
|
+
|
118
|
+
:param links: The links of this OsVersionResponse.
|
119
|
+
:type links: list[:class:`huaweicloudsdkims.v2.Links`]
|
120
|
+
"""
|
121
|
+
self._links = links
|
122
|
+
|
123
|
+
def to_dict(self):
|
124
|
+
"""Returns the model properties as a dict"""
|
125
|
+
result = {}
|
126
|
+
|
127
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
128
|
+
value = getattr(self, attr)
|
129
|
+
if isinstance(value, list):
|
130
|
+
result[attr] = list(map(
|
131
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
132
|
+
value
|
133
|
+
))
|
134
|
+
elif hasattr(value, "to_dict"):
|
135
|
+
result[attr] = value.to_dict()
|
136
|
+
elif isinstance(value, dict):
|
137
|
+
result[attr] = dict(map(
|
138
|
+
lambda item: (item[0], item[1].to_dict())
|
139
|
+
if hasattr(item[1], "to_dict") else item,
|
140
|
+
value.items()
|
141
|
+
))
|
142
|
+
else:
|
143
|
+
if attr in self.sensitive_list:
|
144
|
+
result[attr] = "****"
|
145
|
+
else:
|
146
|
+
result[attr] = value
|
147
|
+
|
148
|
+
return result
|
149
|
+
|
150
|
+
def to_str(self):
|
151
|
+
"""Returns the string representation of the model"""
|
152
|
+
import simplejson as json
|
153
|
+
if six.PY2:
|
154
|
+
import sys
|
155
|
+
reload(sys)
|
156
|
+
sys.setdefaultencoding("utf-8")
|
157
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
158
|
+
|
159
|
+
def __repr__(self):
|
160
|
+
"""For `print`"""
|
161
|
+
return self.to_str()
|
162
|
+
|
163
|
+
def __eq__(self, other):
|
164
|
+
"""Returns true if both objects are equal"""
|
165
|
+
if not isinstance(other, OsVersionResponse):
|
166
|
+
return False
|
167
|
+
|
168
|
+
return self.__dict__ == other.__dict__
|
169
|
+
|
170
|
+
def __ne__(self, other):
|
171
|
+
"""Returns true if both objects are not equal"""
|
172
|
+
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 QueryImageByTagsResourceDetail:
|
13
9
|
|
14
|
-
|
15
10
|
"""
|
16
11
|
Attributes:
|
17
12
|
openapi_types (dict): The key is attribute name
|
@@ -19,7 +14,6 @@ class QueryImageByTagsResourceDetail:
|
|
19
14
|
attribute_map (dict): The key is attribute name
|
20
15
|
and the value is json key in definition.
|
21
16
|
"""
|
22
|
-
|
23
17
|
sensitive_list = []
|
24
18
|
|
25
19
|
openapi_types = {
|
@@ -31,7 +25,13 @@ class QueryImageByTagsResourceDetail:
|
|
31
25
|
}
|
32
26
|
|
33
27
|
def __init__(self, status=None):
|
34
|
-
"""QueryImageByTagsResourceDetail
|
28
|
+
r"""QueryImageByTagsResourceDetail
|
29
|
+
|
30
|
+
The model defined in huaweicloud sdk
|
31
|
+
|
32
|
+
:param status: 镜像状态
|
33
|
+
:type status: str
|
34
|
+
"""
|
35
35
|
|
36
36
|
|
37
37
|
|
@@ -42,7 +42,7 @@ class QueryImageByTagsResourceDetail:
|
|
42
42
|
|
43
43
|
@property
|
44
44
|
def status(self):
|
45
|
-
"""Gets the status of this QueryImageByTagsResourceDetail.
|
45
|
+
r"""Gets the status of this QueryImageByTagsResourceDetail.
|
46
46
|
|
47
47
|
镜像状态
|
48
48
|
|
@@ -53,12 +53,12 @@ class QueryImageByTagsResourceDetail:
|
|
53
53
|
|
54
54
|
@status.setter
|
55
55
|
def status(self, status):
|
56
|
-
"""Sets the status of this QueryImageByTagsResourceDetail.
|
56
|
+
r"""Sets the status of this QueryImageByTagsResourceDetail.
|
57
57
|
|
58
58
|
镜像状态
|
59
59
|
|
60
60
|
:param status: The status of this QueryImageByTagsResourceDetail.
|
61
|
-
:type: str
|
61
|
+
:type status: str
|
62
62
|
"""
|
63
63
|
self._status = status
|
64
64
|
|
@@ -91,10 +91,15 @@ class QueryImageByTagsResourceDetail:
|
|
91
91
|
|
92
92
|
def to_str(self):
|
93
93
|
"""Returns the string representation of the model"""
|
94
|
-
|
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)
|
95
100
|
|
96
101
|
def __repr__(self):
|
97
|
-
"""For `print`
|
102
|
+
"""For `print`"""
|
98
103
|
return self.to_str()
|
99
104
|
|
100
105
|
def __eq__(self, other):
|