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,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ServerState:
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
+ 'count': 'int',
21
+ 'dc_stats': 'dict(str, int)'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'count': 'count',
26
+ 'dc_stats': 'dc_stats'
27
+ }
28
+
29
+ def __init__(self, count=None, dc_stats=None):
30
+ r"""ServerState
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param count: 数量
35
+ :type count: int
36
+ :param dc_stats: 数据中心名称对应数量映射
37
+ :type dc_stats: dict(str, int)
38
+ """
39
+
40
+
41
+
42
+ self._count = None
43
+ self._dc_stats = None
44
+ self.discriminator = None
45
+
46
+ self.count = count
47
+ self.dc_stats = dc_stats
48
+
49
+ @property
50
+ def count(self):
51
+ r"""Gets the count of this ServerState.
52
+
53
+ 数量
54
+
55
+ :return: The count of this ServerState.
56
+ :rtype: int
57
+ """
58
+ return self._count
59
+
60
+ @count.setter
61
+ def count(self, count):
62
+ r"""Sets the count of this ServerState.
63
+
64
+ 数量
65
+
66
+ :param count: The count of this ServerState.
67
+ :type count: int
68
+ """
69
+ self._count = count
70
+
71
+ @property
72
+ def dc_stats(self):
73
+ r"""Gets the dc_stats of this ServerState.
74
+
75
+ 数据中心名称对应数量映射
76
+
77
+ :return: The dc_stats of this ServerState.
78
+ :rtype: dict(str, int)
79
+ """
80
+ return self._dc_stats
81
+
82
+ @dc_stats.setter
83
+ def dc_stats(self, dc_stats):
84
+ r"""Sets the dc_stats of this ServerState.
85
+
86
+ 数据中心名称对应数量映射
87
+
88
+ :param dc_stats: The dc_stats of this ServerState.
89
+ :type dc_stats: dict(str, int)
90
+ """
91
+ self._dc_stats = dc_stats
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, ServerState):
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,279 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ServerStatus:
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
+ 'total': 'ServerState',
21
+ 'ok': 'object',
22
+ 'warning': 'object',
23
+ 'critical': 'object',
24
+ 'health': 'object',
25
+ 'unhealth': 'object',
26
+ 'isolation': 'object'
27
+ }
28
+
29
+ attribute_map = {
30
+ 'total': 'total',
31
+ 'ok': 'ok',
32
+ 'warning': 'warning',
33
+ 'critical': 'critical',
34
+ 'health': 'health',
35
+ 'unhealth': 'unhealth',
36
+ 'isolation': 'isolation'
37
+ }
38
+
39
+ def __init__(self, total=None, ok=None, warning=None, critical=None, health=None, unhealth=None, isolation=None):
40
+ r"""ServerStatus
41
+
42
+ The model defined in huaweicloud sdk
43
+
44
+ :param total:
45
+ :type total: :class:`huaweicloudsdkclouddc.v1.ServerState`
46
+ :param ok: 服务器运行OK状态所有对象
47
+ :type ok: object
48
+ :param warning: 服务器运行Warning状态所有对象
49
+ :type warning: object
50
+ :param critical: 服务器运行Critical状态所有对象
51
+ :type critical: object
52
+ :param health: 服务器运行Health状态所有对象
53
+ :type health: object
54
+ :param unhealth: 服务器运行UnHealth状态所有对象
55
+ :type unhealth: object
56
+ :param isolation: 服务器运行Isolation状态所有对象
57
+ :type isolation: object
58
+ """
59
+
60
+
61
+
62
+ self._total = None
63
+ self._ok = None
64
+ self._warning = None
65
+ self._critical = None
66
+ self._health = None
67
+ self._unhealth = None
68
+ self._isolation = None
69
+ self.discriminator = None
70
+
71
+ self.total = total
72
+ self.ok = ok
73
+ self.warning = warning
74
+ self.critical = critical
75
+ self.health = health
76
+ if unhealth is not None:
77
+ self.unhealth = unhealth
78
+ self.isolation = isolation
79
+
80
+ @property
81
+ def total(self):
82
+ r"""Gets the total of this ServerStatus.
83
+
84
+ :return: The total of this ServerStatus.
85
+ :rtype: :class:`huaweicloudsdkclouddc.v1.ServerState`
86
+ """
87
+ return self._total
88
+
89
+ @total.setter
90
+ def total(self, total):
91
+ r"""Sets the total of this ServerStatus.
92
+
93
+ :param total: The total of this ServerStatus.
94
+ :type total: :class:`huaweicloudsdkclouddc.v1.ServerState`
95
+ """
96
+ self._total = total
97
+
98
+ @property
99
+ def ok(self):
100
+ r"""Gets the ok of this ServerStatus.
101
+
102
+ 服务器运行OK状态所有对象
103
+
104
+ :return: The ok of this ServerStatus.
105
+ :rtype: object
106
+ """
107
+ return self._ok
108
+
109
+ @ok.setter
110
+ def ok(self, ok):
111
+ r"""Sets the ok of this ServerStatus.
112
+
113
+ 服务器运行OK状态所有对象
114
+
115
+ :param ok: The ok of this ServerStatus.
116
+ :type ok: object
117
+ """
118
+ self._ok = ok
119
+
120
+ @property
121
+ def warning(self):
122
+ r"""Gets the warning of this ServerStatus.
123
+
124
+ 服务器运行Warning状态所有对象
125
+
126
+ :return: The warning of this ServerStatus.
127
+ :rtype: object
128
+ """
129
+ return self._warning
130
+
131
+ @warning.setter
132
+ def warning(self, warning):
133
+ r"""Sets the warning of this ServerStatus.
134
+
135
+ 服务器运行Warning状态所有对象
136
+
137
+ :param warning: The warning of this ServerStatus.
138
+ :type warning: object
139
+ """
140
+ self._warning = warning
141
+
142
+ @property
143
+ def critical(self):
144
+ r"""Gets the critical of this ServerStatus.
145
+
146
+ 服务器运行Critical状态所有对象
147
+
148
+ :return: The critical of this ServerStatus.
149
+ :rtype: object
150
+ """
151
+ return self._critical
152
+
153
+ @critical.setter
154
+ def critical(self, critical):
155
+ r"""Sets the critical of this ServerStatus.
156
+
157
+ 服务器运行Critical状态所有对象
158
+
159
+ :param critical: The critical of this ServerStatus.
160
+ :type critical: object
161
+ """
162
+ self._critical = critical
163
+
164
+ @property
165
+ def health(self):
166
+ r"""Gets the health of this ServerStatus.
167
+
168
+ 服务器运行Health状态所有对象
169
+
170
+ :return: The health of this ServerStatus.
171
+ :rtype: object
172
+ """
173
+ return self._health
174
+
175
+ @health.setter
176
+ def health(self, health):
177
+ r"""Sets the health of this ServerStatus.
178
+
179
+ 服务器运行Health状态所有对象
180
+
181
+ :param health: The health of this ServerStatus.
182
+ :type health: object
183
+ """
184
+ self._health = health
185
+
186
+ @property
187
+ def unhealth(self):
188
+ r"""Gets the unhealth of this ServerStatus.
189
+
190
+ 服务器运行UnHealth状态所有对象
191
+
192
+ :return: The unhealth of this ServerStatus.
193
+ :rtype: object
194
+ """
195
+ return self._unhealth
196
+
197
+ @unhealth.setter
198
+ def unhealth(self, unhealth):
199
+ r"""Sets the unhealth of this ServerStatus.
200
+
201
+ 服务器运行UnHealth状态所有对象
202
+
203
+ :param unhealth: The unhealth of this ServerStatus.
204
+ :type unhealth: object
205
+ """
206
+ self._unhealth = unhealth
207
+
208
+ @property
209
+ def isolation(self):
210
+ r"""Gets the isolation of this ServerStatus.
211
+
212
+ 服务器运行Isolation状态所有对象
213
+
214
+ :return: The isolation of this ServerStatus.
215
+ :rtype: object
216
+ """
217
+ return self._isolation
218
+
219
+ @isolation.setter
220
+ def isolation(self, isolation):
221
+ r"""Sets the isolation of this ServerStatus.
222
+
223
+ 服务器运行Isolation状态所有对象
224
+
225
+ :param isolation: The isolation of this ServerStatus.
226
+ :type isolation: object
227
+ """
228
+ self._isolation = isolation
229
+
230
+ def to_dict(self):
231
+ """Returns the model properties as a dict"""
232
+ result = {}
233
+
234
+ for attr, _ in six.iteritems(self.openapi_types):
235
+ value = getattr(self, attr)
236
+ if isinstance(value, list):
237
+ result[attr] = list(map(
238
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
239
+ value
240
+ ))
241
+ elif hasattr(value, "to_dict"):
242
+ result[attr] = value.to_dict()
243
+ elif isinstance(value, dict):
244
+ result[attr] = dict(map(
245
+ lambda item: (item[0], item[1].to_dict())
246
+ if hasattr(item[1], "to_dict") else item,
247
+ value.items()
248
+ ))
249
+ else:
250
+ if attr in self.sensitive_list:
251
+ result[attr] = "****"
252
+ else:
253
+ result[attr] = value
254
+
255
+ return result
256
+
257
+ def to_str(self):
258
+ """Returns the string representation of the model"""
259
+ import simplejson as json
260
+ if six.PY2:
261
+ import sys
262
+ reload(sys)
263
+ sys.setdefaultencoding("utf-8")
264
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
265
+
266
+ def __repr__(self):
267
+ """For `print`"""
268
+ return self.to_str()
269
+
270
+ def __eq__(self, other):
271
+ """Returns true if both objects are equal"""
272
+ if not isinstance(other, ServerStatus):
273
+ return False
274
+
275
+ return self.__dict__ == other.__dict__
276
+
277
+ def __ne__(self, other):
278
+ """Returns true if both objects are not equal"""
279
+ return not self == other
@@ -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 ServersResponsePhysicalServers:
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
+ }
22
+
23
+ attribute_map = {
24
+ 'id': 'id'
25
+ }
26
+
27
+ def __init__(self, id=None):
28
+ r"""ServersResponsePhysicalServers
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :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}$
33
+ :type id: str
34
+ """
35
+
36
+
37
+
38
+ self._id = None
39
+ self.discriminator = None
40
+
41
+ if id is not None:
42
+ self.id = id
43
+
44
+ @property
45
+ def id(self):
46
+ r"""Gets the id of this ServersResponsePhysicalServers.
47
+
48
+ 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}$
49
+
50
+ :return: The id of this ServersResponsePhysicalServers.
51
+ :rtype: str
52
+ """
53
+ return self._id
54
+
55
+ @id.setter
56
+ def id(self, id):
57
+ r"""Sets the id of this ServersResponsePhysicalServers.
58
+
59
+ 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}$
60
+
61
+ :param id: The id of this ServersResponsePhysicalServers.
62
+ :type id: str
63
+ """
64
+ self._id = id
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, ServersResponsePhysicalServers):
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,84 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ShowAlarmSummaryRequest:
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"""ShowAlarmSummaryRequest
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, ShowAlarmSummaryRequest):
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