huaweicloudsdkclouddc 3.1.158__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.

Potentially problematic release.


This version of huaweicloudsdkclouddc might be problematic. Click here for more details.

Files changed (142) hide show
  1. huaweicloudsdkclouddc/__init__.py +0 -0
  2. huaweicloudsdkclouddc/v1/__init__.py +138 -0
  3. huaweicloudsdkclouddc/v1/clouddc_async_client.py +2255 -0
  4. huaweicloudsdkclouddc/v1/clouddc_client.py +2252 -0
  5. huaweicloudsdkclouddc/v1/model/__init__.py +135 -0
  6. huaweicloudsdkclouddc/v1/model/alarm_daily_trend.py +173 -0
  7. huaweicloudsdkclouddc/v1/model/alarm_device_info.py +144 -0
  8. huaweicloudsdkclouddc/v1/model/alarm_group.py +173 -0
  9. huaweicloudsdkclouddc/v1/model/alarm_history.py +343 -0
  10. huaweicloudsdkclouddc/v1/model/alarm_host.py +173 -0
  11. huaweicloudsdkclouddc/v1/model/alarm_info.py +173 -0
  12. huaweicloudsdkclouddc/v1/model/alarm_level_info.py +144 -0
  13. huaweicloudsdkclouddc/v1/model/batch_create_irack_tags_request.py +139 -0
  14. huaweicloudsdkclouddc/v1/model/batch_create_irack_tags_response.py +85 -0
  15. huaweicloudsdkclouddc/v1/model/batch_create_tags_request.py +167 -0
  16. huaweicloudsdkclouddc/v1/model/batch_create_tags_response.py +85 -0
  17. huaweicloudsdkclouddc/v1/model/batch_delete_irack_tags_request.py +139 -0
  18. huaweicloudsdkclouddc/v1/model/batch_delete_irack_tags_response.py +85 -0
  19. huaweicloudsdkclouddc/v1/model/batch_delete_options.py +115 -0
  20. huaweicloudsdkclouddc/v1/model/batch_delete_tags_request.py +167 -0
  21. huaweicloudsdkclouddc/v1/model/batch_delete_tags_response.py +85 -0
  22. huaweicloudsdkclouddc/v1/model/capacity_bytes.py +84 -0
  23. huaweicloudsdkclouddc/v1/model/change_instance_password_options.py +143 -0
  24. huaweicloudsdkclouddc/v1/model/change_instance_password_request.py +111 -0
  25. huaweicloudsdkclouddc/v1/model/change_instance_password_response.py +116 -0
  26. huaweicloudsdkclouddc/v1/model/change_server_power_state_request.py +111 -0
  27. huaweicloudsdkclouddc/v1/model/change_server_power_state_response.py +116 -0
  28. huaweicloudsdkclouddc/v1/model/create_instance_opitons.py +305 -0
  29. huaweicloudsdkclouddc/v1/model/create_instance_opitons_placement.py +115 -0
  30. huaweicloudsdkclouddc/v1/model/create_instance_request.py +111 -0
  31. huaweicloudsdkclouddc/v1/model/create_instance_response.py +116 -0
  32. huaweicloudsdkclouddc/v1/model/delete_instance_request.py +114 -0
  33. huaweicloudsdkclouddc/v1/model/delete_instance_response.py +112 -0
  34. huaweicloudsdkclouddc/v1/model/delete_instances_request.py +111 -0
  35. huaweicloudsdkclouddc/v1/model/delete_instances_response.py +116 -0
  36. huaweicloudsdkclouddc/v1/model/dimension.py +144 -0
  37. huaweicloudsdkclouddc/v1/model/download_server_logs_request.py +142 -0
  38. huaweicloudsdkclouddc/v1/model/download_server_logs_response.py +162 -0
  39. huaweicloudsdkclouddc/v1/model/drive.py +637 -0
  40. huaweicloudsdkclouddc/v1/model/error_status.py +170 -0
  41. huaweicloudsdkclouddc/v1/model/event_info.py +318 -0
  42. huaweicloudsdkclouddc/v1/model/export_server_logs_request.py +114 -0
  43. huaweicloudsdkclouddc/v1/model/export_server_logs_response.py +278 -0
  44. huaweicloudsdkclouddc/v1/model/fan.py +285 -0
  45. huaweicloudsdkclouddc/v1/model/fault_host_info.py +173 -0
  46. huaweicloudsdkclouddc/v1/model/firmware_details.py +202 -0
  47. huaweicloudsdkclouddc/v1/model/hardware_summary.py +199 -0
  48. huaweicloudsdkclouddc/v1/model/health.py +90 -0
  49. huaweicloudsdkclouddc/v1/model/i_dc.py +208 -0
  50. huaweicloudsdkclouddc/v1/model/i_rack.py +521 -0
  51. huaweicloudsdkclouddc/v1/model/i_rack_request.py +115 -0
  52. huaweicloudsdkclouddc/v1/model/image.py +170 -0
  53. huaweicloudsdkclouddc/v1/model/image_id.py +84 -0
  54. huaweicloudsdkclouddc/v1/model/instance.py +280 -0
  55. huaweicloudsdkclouddc/v1/model/instance_id.py +84 -0
  56. huaweicloudsdkclouddc/v1/model/instance_state.py +94 -0
  57. huaweicloudsdkclouddc/v1/model/list_alarms_request.py +347 -0
  58. huaweicloudsdkclouddc/v1/model/list_alarms_response.py +145 -0
  59. huaweicloudsdkclouddc/v1/model/list_events_request.py +260 -0
  60. huaweicloudsdkclouddc/v1/model/list_events_response.py +145 -0
  61. huaweicloudsdkclouddc/v1/model/list_i_dcs_request.py +201 -0
  62. huaweicloudsdkclouddc/v1/model/list_i_dcs_response.py +137 -0
  63. huaweicloudsdkclouddc/v1/model/list_i_rack_request.py +201 -0
  64. huaweicloudsdkclouddc/v1/model/list_i_rack_response.py +137 -0
  65. huaweicloudsdkclouddc/v1/model/list_instances_request.py +231 -0
  66. huaweicloudsdkclouddc/v1/model/list_instances_response.py +170 -0
  67. huaweicloudsdkclouddc/v1/model/list_servers_request.py +173 -0
  68. huaweicloudsdkclouddc/v1/model/list_servers_response.py +170 -0
  69. huaweicloudsdkclouddc/v1/model/location.py +173 -0
  70. huaweicloudsdkclouddc/v1/model/manage_state.py +91 -0
  71. huaweicloudsdkclouddc/v1/model/memory.py +579 -0
  72. huaweicloudsdkclouddc/v1/model/metric.py +144 -0
  73. huaweicloudsdkclouddc/v1/model/modify_instance_ip_request.py +139 -0
  74. huaweicloudsdkclouddc/v1/model/modify_instance_ip_request_body.py +144 -0
  75. huaweicloudsdkclouddc/v1/model/modify_instance_ip_request_body_nics.py +143 -0
  76. huaweicloudsdkclouddc/v1/model/modify_instance_ip_response.py +85 -0
  77. huaweicloudsdkclouddc/v1/model/network_adapter.py +492 -0
  78. huaweicloudsdkclouddc/v1/model/network_interface.py +143 -0
  79. huaweicloudsdkclouddc/v1/model/network_port.py +347 -0
  80. huaweicloudsdkclouddc/v1/model/page_info.py +173 -0
  81. huaweicloudsdkclouddc/v1/model/password.py +84 -0
  82. huaweicloudsdkclouddc/v1/model/physical_server.py +402 -0
  83. huaweicloudsdkclouddc/v1/model/power.py +488 -0
  84. huaweicloudsdkclouddc/v1/model/power_action.py +143 -0
  85. huaweicloudsdkclouddc/v1/model/power_state.py +91 -0
  86. huaweicloudsdkclouddc/v1/model/processors.py +608 -0
  87. huaweicloudsdkclouddc/v1/model/query_instance_response_body.py +499 -0
  88. huaweicloudsdkclouddc/v1/model/reinstall_os_options.py +172 -0
  89. huaweicloudsdkclouddc/v1/model/reinstall_os_request.py +111 -0
  90. huaweicloudsdkclouddc/v1/model/reinstall_os_response.py +116 -0
  91. huaweicloudsdkclouddc/v1/model/resource_name.py +84 -0
  92. huaweicloudsdkclouddc/v1/model/resource_tags.py +115 -0
  93. huaweicloudsdkclouddc/v1/model/resource_uuid.py +84 -0
  94. huaweicloudsdkclouddc/v1/model/run_instances_options.py +367 -0
  95. huaweicloudsdkclouddc/v1/model/run_instances_options_network_interfaces.py +114 -0
  96. huaweicloudsdkclouddc/v1/model/run_instances_options_placement.py +115 -0
  97. huaweicloudsdkclouddc/v1/model/run_instances_request.py +111 -0
  98. huaweicloudsdkclouddc/v1/model/run_instances_response.py +116 -0
  99. huaweicloudsdkclouddc/v1/model/sas_address.py +84 -0
  100. huaweicloudsdkclouddc/v1/model/server_instance_id_set.py +115 -0
  101. huaweicloudsdkclouddc/v1/model/server_power_status.py +171 -0
  102. huaweicloudsdkclouddc/v1/model/server_state.py +142 -0
  103. huaweicloudsdkclouddc/v1/model/server_status.py +279 -0
  104. huaweicloudsdkclouddc/v1/model/servers_response_physical_servers.py +115 -0
  105. huaweicloudsdkclouddc/v1/model/show_alarm_summary_request.py +84 -0
  106. huaweicloudsdkclouddc/v1/model/show_alarm_summary_response.py +203 -0
  107. huaweicloudsdkclouddc/v1/model/show_alarm_trend_request.py +142 -0
  108. huaweicloudsdkclouddc/v1/model/show_alarm_trend_response.py +145 -0
  109. huaweicloudsdkclouddc/v1/model/show_event_request.py +114 -0
  110. huaweicloudsdkclouddc/v1/model/show_event_response.py +377 -0
  111. huaweicloudsdkclouddc/v1/model/show_instance_status_request.py +114 -0
  112. huaweicloudsdkclouddc/v1/model/show_instance_status_response.py +137 -0
  113. huaweicloudsdkclouddc/v1/model/show_logs_export_status_request.py +142 -0
  114. huaweicloudsdkclouddc/v1/model/show_logs_export_status_response.py +203 -0
  115. huaweicloudsdkclouddc/v1/model/show_remote_console_request.py +114 -0
  116. huaweicloudsdkclouddc/v1/model/show_remote_console_response.py +116 -0
  117. huaweicloudsdkclouddc/v1/model/show_server_firmware_attributes_request.py +114 -0
  118. huaweicloudsdkclouddc/v1/model/show_server_firmware_attributes_response.py +116 -0
  119. huaweicloudsdkclouddc/v1/model/show_server_hardware_attributes_request.py +114 -0
  120. huaweicloudsdkclouddc/v1/model/show_server_hardware_attributes_response.py +286 -0
  121. huaweicloudsdkclouddc/v1/model/show_server_request.py +114 -0
  122. huaweicloudsdkclouddc/v1/model/show_server_response.py +411 -0
  123. huaweicloudsdkclouddc/v1/model/show_server_status_request.py +84 -0
  124. huaweicloudsdkclouddc/v1/model/show_server_status_response.py +137 -0
  125. huaweicloudsdkclouddc/v1/model/state.py +89 -0
  126. huaweicloudsdkclouddc/v1/model/status.py +136 -0
  127. huaweicloudsdkclouddc/v1/model/storage_controller.py +608 -0
  128. huaweicloudsdkclouddc/v1/model/tag.py +143 -0
  129. huaweicloudsdkclouddc/v1/model/update_i_dcs_request.py +111 -0
  130. huaweicloudsdkclouddc/v1/model/update_i_dcs_response.py +112 -0
  131. huaweicloudsdkclouddc/v1/model/update_i_rack_request.py +139 -0
  132. huaweicloudsdkclouddc/v1/model/update_i_rack_response.py +112 -0
  133. huaweicloudsdkclouddc/v1/model/user_data.py +84 -0
  134. huaweicloudsdkclouddc/v1/model/volume.py +459 -0
  135. huaweicloudsdkclouddc/v1/model/vpc_id.py +84 -0
  136. huaweicloudsdkclouddc/v1/region/__init__.py +0 -0
  137. huaweicloudsdkclouddc/v1/region/clouddc_region.py +40 -0
  138. huaweicloudsdkclouddc-3.1.158.dist-info/LICENSE +13 -0
  139. huaweicloudsdkclouddc-3.1.158.dist-info/METADATA +27 -0
  140. huaweicloudsdkclouddc-3.1.158.dist-info/RECORD +142 -0
  141. huaweicloudsdkclouddc-3.1.158.dist-info/WHEEL +6 -0
  142. huaweicloudsdkclouddc-3.1.158.dist-info/top_level.txt +1 -0
@@ -0,0 +1,115 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class IRackRequest:
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
+ 'description': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'description': 'description'
25
+ }
26
+
27
+ def __init__(self, description=None):
28
+ r"""IRackRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param description: 机柜描述,大小不超过512字节
33
+ :type description: str
34
+ """
35
+
36
+
37
+
38
+ self._description = None
39
+ self.discriminator = None
40
+
41
+ if description is not None:
42
+ self.description = description
43
+
44
+ @property
45
+ def description(self):
46
+ r"""Gets the description of this IRackRequest.
47
+
48
+ 机柜描述,大小不超过512字节
49
+
50
+ :return: The description of this IRackRequest.
51
+ :rtype: str
52
+ """
53
+ return self._description
54
+
55
+ @description.setter
56
+ def description(self, description):
57
+ r"""Sets the description of this IRackRequest.
58
+
59
+ 机柜描述,大小不超过512字节
60
+
61
+ :param description: The description of this IRackRequest.
62
+ :type description: str
63
+ """
64
+ self._description = description
65
+
66
+ def to_dict(self):
67
+ """Returns the model properties as a dict"""
68
+ result = {}
69
+
70
+ for attr, _ in six.iteritems(self.openapi_types):
71
+ value = getattr(self, attr)
72
+ if isinstance(value, list):
73
+ result[attr] = list(map(
74
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
75
+ value
76
+ ))
77
+ elif hasattr(value, "to_dict"):
78
+ result[attr] = value.to_dict()
79
+ elif isinstance(value, dict):
80
+ result[attr] = dict(map(
81
+ lambda item: (item[0], item[1].to_dict())
82
+ if hasattr(item[1], "to_dict") else item,
83
+ value.items()
84
+ ))
85
+ else:
86
+ if attr in self.sensitive_list:
87
+ result[attr] = "****"
88
+ else:
89
+ result[attr] = value
90
+
91
+ return result
92
+
93
+ def to_str(self):
94
+ """Returns the string representation of the model"""
95
+ import simplejson as json
96
+ if six.PY2:
97
+ import sys
98
+ reload(sys)
99
+ sys.setdefaultencoding("utf-8")
100
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
101
+
102
+ def __repr__(self):
103
+ """For `print`"""
104
+ return self.to_str()
105
+
106
+ def __eq__(self, other):
107
+ """Returns true if both objects are equal"""
108
+ if not isinstance(other, IRackRequest):
109
+ return False
110
+
111
+ return self.__dict__ == other.__dict__
112
+
113
+ def __ne__(self, other):
114
+ """Returns true if both objects are not equal"""
115
+ return not self == other
@@ -0,0 +1,170 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class Image:
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
+ 'id': 'str',
21
+ 'name': 'str',
22
+ 'os_type': 'str'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'id': 'id',
27
+ 'name': 'name',
28
+ 'os_type': 'os_type'
29
+ }
30
+
31
+ def __init__(self, id=None, name=None, os_type=None):
32
+ r"""Image
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param id: 镜像ID,格式为UUID。
37
+ :type id: str
38
+ :param name: 镜像名称
39
+ :type name: str
40
+ :param os_type: 镜像os类型
41
+ :type os_type: str
42
+ """
43
+
44
+
45
+
46
+ self._id = None
47
+ self._name = None
48
+ self._os_type = None
49
+ self.discriminator = None
50
+
51
+ self.id = id
52
+ self.name = name
53
+ self.os_type = os_type
54
+
55
+ @property
56
+ def id(self):
57
+ r"""Gets the id of this Image.
58
+
59
+ 镜像ID,格式为UUID。
60
+
61
+ :return: The id of this Image.
62
+ :rtype: str
63
+ """
64
+ return self._id
65
+
66
+ @id.setter
67
+ def id(self, id):
68
+ r"""Sets the id of this Image.
69
+
70
+ 镜像ID,格式为UUID。
71
+
72
+ :param id: The id of this Image.
73
+ :type id: str
74
+ """
75
+ self._id = id
76
+
77
+ @property
78
+ def name(self):
79
+ r"""Gets the name of this Image.
80
+
81
+ 镜像名称
82
+
83
+ :return: The name of this Image.
84
+ :rtype: str
85
+ """
86
+ return self._name
87
+
88
+ @name.setter
89
+ def name(self, name):
90
+ r"""Sets the name of this Image.
91
+
92
+ 镜像名称
93
+
94
+ :param name: The name of this Image.
95
+ :type name: str
96
+ """
97
+ self._name = name
98
+
99
+ @property
100
+ def os_type(self):
101
+ r"""Gets the os_type of this Image.
102
+
103
+ 镜像os类型
104
+
105
+ :return: The os_type of this Image.
106
+ :rtype: str
107
+ """
108
+ return self._os_type
109
+
110
+ @os_type.setter
111
+ def os_type(self, os_type):
112
+ r"""Sets the os_type of this Image.
113
+
114
+ 镜像os类型
115
+
116
+ :param os_type: The os_type of this Image.
117
+ :type os_type: str
118
+ """
119
+ self._os_type = os_type
120
+
121
+ def to_dict(self):
122
+ """Returns the model properties as a dict"""
123
+ result = {}
124
+
125
+ for attr, _ in six.iteritems(self.openapi_types):
126
+ value = getattr(self, attr)
127
+ if isinstance(value, list):
128
+ result[attr] = list(map(
129
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
130
+ value
131
+ ))
132
+ elif hasattr(value, "to_dict"):
133
+ result[attr] = value.to_dict()
134
+ elif isinstance(value, dict):
135
+ result[attr] = dict(map(
136
+ lambda item: (item[0], item[1].to_dict())
137
+ if hasattr(item[1], "to_dict") else item,
138
+ value.items()
139
+ ))
140
+ else:
141
+ if attr in self.sensitive_list:
142
+ result[attr] = "****"
143
+ else:
144
+ result[attr] = value
145
+
146
+ return result
147
+
148
+ def to_str(self):
149
+ """Returns the string representation of the model"""
150
+ import simplejson as json
151
+ if six.PY2:
152
+ import sys
153
+ reload(sys)
154
+ sys.setdefaultencoding("utf-8")
155
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
156
+
157
+ def __repr__(self):
158
+ """For `print`"""
159
+ return self.to_str()
160
+
161
+ def __eq__(self, other):
162
+ """Returns true if both objects are equal"""
163
+ if not isinstance(other, Image):
164
+ return False
165
+
166
+ return self.__dict__ == other.__dict__
167
+
168
+ def __ne__(self, other):
169
+ """Returns true if both objects are not equal"""
170
+ return not self == other
@@ -0,0 +1,84 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ImageId:
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
+ }
21
+
22
+ attribute_map = {
23
+ }
24
+
25
+ def __init__(self):
26
+ r"""ImageId
27
+
28
+ The model defined in huaweicloud sdk
29
+
30
+ """
31
+
32
+
33
+ self.discriminator = None
34
+
35
+ def to_dict(self):
36
+ """Returns the model properties as a dict"""
37
+ result = {}
38
+
39
+ for attr, _ in six.iteritems(self.openapi_types):
40
+ value = getattr(self, attr)
41
+ if isinstance(value, list):
42
+ result[attr] = list(map(
43
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
44
+ value
45
+ ))
46
+ elif hasattr(value, "to_dict"):
47
+ result[attr] = value.to_dict()
48
+ elif isinstance(value, dict):
49
+ result[attr] = dict(map(
50
+ lambda item: (item[0], item[1].to_dict())
51
+ if hasattr(item[1], "to_dict") else item,
52
+ value.items()
53
+ ))
54
+ else:
55
+ if attr in self.sensitive_list:
56
+ result[attr] = "****"
57
+ else:
58
+ result[attr] = value
59
+
60
+ return result
61
+
62
+ def to_str(self):
63
+ """Returns the string representation of the model"""
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)
70
+
71
+ def __repr__(self):
72
+ """For `print`"""
73
+ return self.to_str()
74
+
75
+ def __eq__(self, other):
76
+ """Returns true if both objects are equal"""
77
+ if not isinstance(other, ImageId):
78
+ return False
79
+
80
+ return self.__dict__ == other.__dict__
81
+
82
+ def __ne__(self, other):
83
+ """Returns true if both objects are not equal"""
84
+ return not self == other
@@ -0,0 +1,280 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class Instance:
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
+ 'id': 'str',
21
+ 'name': 'str',
22
+ 'vpc_id': 'str',
23
+ 'network_interfaces': 'list[NetworkInterface]',
24
+ 'tags': 'list[Tag]',
25
+ 'image': 'Image',
26
+ 'description': 'str'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'id': 'id',
31
+ 'name': 'name',
32
+ 'vpc_id': 'vpc_id',
33
+ 'network_interfaces': 'network_interfaces',
34
+ 'tags': 'tags',
35
+ 'image': 'image',
36
+ 'description': 'description'
37
+ }
38
+
39
+ def __init__(self, id=None, name=None, vpc_id=None, network_interfaces=None, tags=None, image=None, description=None):
40
+ r"""Instance
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param id: UUID(Universally Unique Identifier)是一个 128 位的数字,通常以 32 个十六进制数字的形式表示,分为 5 组,用连字符分隔。具体格式如下: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 其中: 每个 x 是一个十六进制数字(0-9 或 a-f)。 5 组的长度分别是:8 位、4 位、4 位、4 位 和 12 位。 为了匹配这种格式的 UUID,可以使用以下正则表达式: regex ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
45
+ :type id: str
46
+ :param name: instance name
47
+ :type name: str
48
+ :param vpc_id: VPC ID
49
+ :type vpc_id: str
50
+ :param network_interfaces: 指定裸机实例的网卡信息。 约束: 一个裸机实例最多挂载2个网卡,参数中第一个网卡会作为裸机实例的主网卡。若用户指定了多组网卡参数,需保证各组参数都属于同一VPC。
51
+ :type network_interfaces: list[:class:`huaweicloudsdkclouddc.v1.NetworkInterface`]
52
+ :param tags: 标签
53
+ :type tags: list[:class:`huaweicloudsdkclouddc.v1.Tag`]
54
+ :param image:
55
+ :type image: :class:`huaweicloudsdkclouddc.v1.Image`
56
+ :param description: 云服务器描述信息,默认为空字符串。
57
+ :type description: str
58
+ """
59
+
60
+
61
+
62
+ self._id = None
63
+ self._name = None
64
+ self._vpc_id = None
65
+ self._network_interfaces = None
66
+ self._tags = None
67
+ self._image = None
68
+ self._description = None
69
+ self.discriminator = None
70
+
71
+ self.id = id
72
+ self.name = name
73
+ self.vpc_id = vpc_id
74
+ if network_interfaces is not None:
75
+ self.network_interfaces = network_interfaces
76
+ self.tags = tags
77
+ self.image = image
78
+ if description is not None:
79
+ self.description = description
80
+
81
+ @property
82
+ def id(self):
83
+ r"""Gets the id of this Instance.
84
+
85
+ UUID(Universally Unique Identifier)是一个 128 位的数字,通常以 32 个十六进制数字的形式表示,分为 5 组,用连字符分隔。具体格式如下: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 其中: 每个 x 是一个十六进制数字(0-9 或 a-f)。 5 组的长度分别是:8 位、4 位、4 位、4 位 和 12 位。 为了匹配这种格式的 UUID,可以使用以下正则表达式: regex ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
86
+
87
+ :return: The id of this Instance.
88
+ :rtype: str
89
+ """
90
+ return self._id
91
+
92
+ @id.setter
93
+ def id(self, id):
94
+ r"""Sets the id of this Instance.
95
+
96
+ UUID(Universally Unique Identifier)是一个 128 位的数字,通常以 32 个十六进制数字的形式表示,分为 5 组,用连字符分隔。具体格式如下: xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx 其中: 每个 x 是一个十六进制数字(0-9 或 a-f)。 5 组的长度分别是:8 位、4 位、4 位、4 位 和 12 位。 为了匹配这种格式的 UUID,可以使用以下正则表达式: regex ^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$
97
+
98
+ :param id: The id of this Instance.
99
+ :type id: str
100
+ """
101
+ self._id = id
102
+
103
+ @property
104
+ def name(self):
105
+ r"""Gets the name of this Instance.
106
+
107
+ instance name
108
+
109
+ :return: The name of this Instance.
110
+ :rtype: str
111
+ """
112
+ return self._name
113
+
114
+ @name.setter
115
+ def name(self, name):
116
+ r"""Sets the name of this Instance.
117
+
118
+ instance name
119
+
120
+ :param name: The name of this Instance.
121
+ :type name: str
122
+ """
123
+ self._name = name
124
+
125
+ @property
126
+ def vpc_id(self):
127
+ r"""Gets the vpc_id of this Instance.
128
+
129
+ VPC ID
130
+
131
+ :return: The vpc_id of this Instance.
132
+ :rtype: str
133
+ """
134
+ return self._vpc_id
135
+
136
+ @vpc_id.setter
137
+ def vpc_id(self, vpc_id):
138
+ r"""Sets the vpc_id of this Instance.
139
+
140
+ VPC ID
141
+
142
+ :param vpc_id: The vpc_id of this Instance.
143
+ :type vpc_id: str
144
+ """
145
+ self._vpc_id = vpc_id
146
+
147
+ @property
148
+ def network_interfaces(self):
149
+ r"""Gets the network_interfaces of this Instance.
150
+
151
+ 指定裸机实例的网卡信息。 约束: 一个裸机实例最多挂载2个网卡,参数中第一个网卡会作为裸机实例的主网卡。若用户指定了多组网卡参数,需保证各组参数都属于同一VPC。
152
+
153
+ :return: The network_interfaces of this Instance.
154
+ :rtype: list[:class:`huaweicloudsdkclouddc.v1.NetworkInterface`]
155
+ """
156
+ return self._network_interfaces
157
+
158
+ @network_interfaces.setter
159
+ def network_interfaces(self, network_interfaces):
160
+ r"""Sets the network_interfaces of this Instance.
161
+
162
+ 指定裸机实例的网卡信息。 约束: 一个裸机实例最多挂载2个网卡,参数中第一个网卡会作为裸机实例的主网卡。若用户指定了多组网卡参数,需保证各组参数都属于同一VPC。
163
+
164
+ :param network_interfaces: The network_interfaces of this Instance.
165
+ :type network_interfaces: list[:class:`huaweicloudsdkclouddc.v1.NetworkInterface`]
166
+ """
167
+ self._network_interfaces = network_interfaces
168
+
169
+ @property
170
+ def tags(self):
171
+ r"""Gets the tags of this Instance.
172
+
173
+ 标签
174
+
175
+ :return: The tags of this Instance.
176
+ :rtype: list[:class:`huaweicloudsdkclouddc.v1.Tag`]
177
+ """
178
+ return self._tags
179
+
180
+ @tags.setter
181
+ def tags(self, tags):
182
+ r"""Sets the tags of this Instance.
183
+
184
+ 标签
185
+
186
+ :param tags: The tags of this Instance.
187
+ :type tags: list[:class:`huaweicloudsdkclouddc.v1.Tag`]
188
+ """
189
+ self._tags = tags
190
+
191
+ @property
192
+ def image(self):
193
+ r"""Gets the image of this Instance.
194
+
195
+ :return: The image of this Instance.
196
+ :rtype: :class:`huaweicloudsdkclouddc.v1.Image`
197
+ """
198
+ return self._image
199
+
200
+ @image.setter
201
+ def image(self, image):
202
+ r"""Sets the image of this Instance.
203
+
204
+ :param image: The image of this Instance.
205
+ :type image: :class:`huaweicloudsdkclouddc.v1.Image`
206
+ """
207
+ self._image = image
208
+
209
+ @property
210
+ def description(self):
211
+ r"""Gets the description of this Instance.
212
+
213
+ 云服务器描述信息,默认为空字符串。
214
+
215
+ :return: The description of this Instance.
216
+ :rtype: str
217
+ """
218
+ return self._description
219
+
220
+ @description.setter
221
+ def description(self, description):
222
+ r"""Sets the description of this Instance.
223
+
224
+ 云服务器描述信息,默认为空字符串。
225
+
226
+ :param description: The description of this Instance.
227
+ :type description: str
228
+ """
229
+ self._description = description
230
+
231
+ def to_dict(self):
232
+ """Returns the model properties as a dict"""
233
+ result = {}
234
+
235
+ for attr, _ in six.iteritems(self.openapi_types):
236
+ value = getattr(self, attr)
237
+ if isinstance(value, list):
238
+ result[attr] = list(map(
239
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
240
+ value
241
+ ))
242
+ elif hasattr(value, "to_dict"):
243
+ result[attr] = value.to_dict()
244
+ elif isinstance(value, dict):
245
+ result[attr] = dict(map(
246
+ lambda item: (item[0], item[1].to_dict())
247
+ if hasattr(item[1], "to_dict") else item,
248
+ value.items()
249
+ ))
250
+ else:
251
+ if attr in self.sensitive_list:
252
+ result[attr] = "****"
253
+ else:
254
+ result[attr] = value
255
+
256
+ return result
257
+
258
+ def to_str(self):
259
+ """Returns the string representation of the model"""
260
+ import simplejson as json
261
+ if six.PY2:
262
+ import sys
263
+ reload(sys)
264
+ sys.setdefaultencoding("utf-8")
265
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
266
+
267
+ def __repr__(self):
268
+ """For `print`"""
269
+ return self.to_str()
270
+
271
+ def __eq__(self, other):
272
+ """Returns true if both objects are equal"""
273
+ if not isinstance(other, Instance):
274
+ return False
275
+
276
+ return self.__dict__ == other.__dict__
277
+
278
+ def __ne__(self, other):
279
+ """Returns true if both objects are not equal"""
280
+ return not self == other