huaweicloudsdkclouddc 3.1.160__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.
- huaweicloudsdkclouddc/__init__.py +0 -0
- huaweicloudsdkclouddc/v1/__init__.py +138 -0
- huaweicloudsdkclouddc/v1/clouddc_async_client.py +2255 -0
- huaweicloudsdkclouddc/v1/clouddc_client.py +2252 -0
- huaweicloudsdkclouddc/v1/model/__init__.py +135 -0
- huaweicloudsdkclouddc/v1/model/alarm_daily_trend.py +173 -0
- huaweicloudsdkclouddc/v1/model/alarm_device_info.py +144 -0
- huaweicloudsdkclouddc/v1/model/alarm_group.py +173 -0
- huaweicloudsdkclouddc/v1/model/alarm_history.py +343 -0
- huaweicloudsdkclouddc/v1/model/alarm_host.py +173 -0
- huaweicloudsdkclouddc/v1/model/alarm_info.py +173 -0
- huaweicloudsdkclouddc/v1/model/alarm_level_info.py +144 -0
- huaweicloudsdkclouddc/v1/model/batch_create_irack_tags_request.py +139 -0
- huaweicloudsdkclouddc/v1/model/batch_create_irack_tags_response.py +85 -0
- huaweicloudsdkclouddc/v1/model/batch_create_tags_request.py +167 -0
- huaweicloudsdkclouddc/v1/model/batch_create_tags_response.py +85 -0
- huaweicloudsdkclouddc/v1/model/batch_delete_irack_tags_request.py +139 -0
- huaweicloudsdkclouddc/v1/model/batch_delete_irack_tags_response.py +85 -0
- huaweicloudsdkclouddc/v1/model/batch_delete_options.py +115 -0
- huaweicloudsdkclouddc/v1/model/batch_delete_tags_request.py +167 -0
- huaweicloudsdkclouddc/v1/model/batch_delete_tags_response.py +85 -0
- huaweicloudsdkclouddc/v1/model/capacity_bytes.py +84 -0
- huaweicloudsdkclouddc/v1/model/change_instance_password_options.py +143 -0
- huaweicloudsdkclouddc/v1/model/change_instance_password_request.py +111 -0
- huaweicloudsdkclouddc/v1/model/change_instance_password_response.py +116 -0
- huaweicloudsdkclouddc/v1/model/change_server_power_state_request.py +111 -0
- huaweicloudsdkclouddc/v1/model/change_server_power_state_response.py +116 -0
- huaweicloudsdkclouddc/v1/model/create_instance_opitons.py +305 -0
- huaweicloudsdkclouddc/v1/model/create_instance_opitons_placement.py +115 -0
- huaweicloudsdkclouddc/v1/model/create_instance_request.py +111 -0
- huaweicloudsdkclouddc/v1/model/create_instance_response.py +116 -0
- huaweicloudsdkclouddc/v1/model/delete_instance_request.py +114 -0
- huaweicloudsdkclouddc/v1/model/delete_instance_response.py +112 -0
- huaweicloudsdkclouddc/v1/model/delete_instances_request.py +111 -0
- huaweicloudsdkclouddc/v1/model/delete_instances_response.py +116 -0
- huaweicloudsdkclouddc/v1/model/dimension.py +144 -0
- huaweicloudsdkclouddc/v1/model/download_server_logs_request.py +142 -0
- huaweicloudsdkclouddc/v1/model/download_server_logs_response.py +162 -0
- huaweicloudsdkclouddc/v1/model/drive.py +637 -0
- huaweicloudsdkclouddc/v1/model/error_status.py +170 -0
- huaweicloudsdkclouddc/v1/model/event_info.py +318 -0
- huaweicloudsdkclouddc/v1/model/export_server_logs_request.py +114 -0
- huaweicloudsdkclouddc/v1/model/export_server_logs_response.py +278 -0
- huaweicloudsdkclouddc/v1/model/fan.py +285 -0
- huaweicloudsdkclouddc/v1/model/fault_host_info.py +173 -0
- huaweicloudsdkclouddc/v1/model/firmware_details.py +202 -0
- huaweicloudsdkclouddc/v1/model/hardware_summary.py +199 -0
- huaweicloudsdkclouddc/v1/model/health.py +90 -0
- huaweicloudsdkclouddc/v1/model/i_dc.py +208 -0
- huaweicloudsdkclouddc/v1/model/i_rack.py +521 -0
- huaweicloudsdkclouddc/v1/model/i_rack_request.py +115 -0
- huaweicloudsdkclouddc/v1/model/image.py +170 -0
- huaweicloudsdkclouddc/v1/model/image_id.py +84 -0
- huaweicloudsdkclouddc/v1/model/instance.py +280 -0
- huaweicloudsdkclouddc/v1/model/instance_id.py +84 -0
- huaweicloudsdkclouddc/v1/model/instance_state.py +94 -0
- huaweicloudsdkclouddc/v1/model/list_alarms_request.py +347 -0
- huaweicloudsdkclouddc/v1/model/list_alarms_response.py +145 -0
- huaweicloudsdkclouddc/v1/model/list_events_request.py +260 -0
- huaweicloudsdkclouddc/v1/model/list_events_response.py +145 -0
- huaweicloudsdkclouddc/v1/model/list_i_dcs_request.py +201 -0
- huaweicloudsdkclouddc/v1/model/list_i_dcs_response.py +137 -0
- huaweicloudsdkclouddc/v1/model/list_i_rack_request.py +201 -0
- huaweicloudsdkclouddc/v1/model/list_i_rack_response.py +137 -0
- huaweicloudsdkclouddc/v1/model/list_instances_request.py +231 -0
- huaweicloudsdkclouddc/v1/model/list_instances_response.py +170 -0
- huaweicloudsdkclouddc/v1/model/list_servers_request.py +173 -0
- huaweicloudsdkclouddc/v1/model/list_servers_response.py +170 -0
- huaweicloudsdkclouddc/v1/model/location.py +173 -0
- huaweicloudsdkclouddc/v1/model/manage_state.py +91 -0
- huaweicloudsdkclouddc/v1/model/memory.py +579 -0
- huaweicloudsdkclouddc/v1/model/metric.py +144 -0
- huaweicloudsdkclouddc/v1/model/modify_instance_ip_request.py +139 -0
- huaweicloudsdkclouddc/v1/model/modify_instance_ip_request_body.py +144 -0
- huaweicloudsdkclouddc/v1/model/modify_instance_ip_request_body_nics.py +143 -0
- huaweicloudsdkclouddc/v1/model/modify_instance_ip_response.py +85 -0
- huaweicloudsdkclouddc/v1/model/network_adapter.py +492 -0
- huaweicloudsdkclouddc/v1/model/network_interface.py +143 -0
- huaweicloudsdkclouddc/v1/model/network_port.py +347 -0
- huaweicloudsdkclouddc/v1/model/page_info.py +173 -0
- huaweicloudsdkclouddc/v1/model/password.py +84 -0
- huaweicloudsdkclouddc/v1/model/physical_server.py +402 -0
- huaweicloudsdkclouddc/v1/model/power.py +488 -0
- huaweicloudsdkclouddc/v1/model/power_action.py +143 -0
- huaweicloudsdkclouddc/v1/model/power_state.py +91 -0
- huaweicloudsdkclouddc/v1/model/processors.py +608 -0
- huaweicloudsdkclouddc/v1/model/query_instance_response_body.py +499 -0
- huaweicloudsdkclouddc/v1/model/reinstall_os_options.py +172 -0
- huaweicloudsdkclouddc/v1/model/reinstall_os_request.py +111 -0
- huaweicloudsdkclouddc/v1/model/reinstall_os_response.py +116 -0
- huaweicloudsdkclouddc/v1/model/resource_name.py +84 -0
- huaweicloudsdkclouddc/v1/model/resource_tags.py +115 -0
- huaweicloudsdkclouddc/v1/model/resource_uuid.py +84 -0
- huaweicloudsdkclouddc/v1/model/run_instances_options.py +367 -0
- huaweicloudsdkclouddc/v1/model/run_instances_options_network_interfaces.py +114 -0
- huaweicloudsdkclouddc/v1/model/run_instances_options_placement.py +115 -0
- huaweicloudsdkclouddc/v1/model/run_instances_request.py +111 -0
- huaweicloudsdkclouddc/v1/model/run_instances_response.py +116 -0
- huaweicloudsdkclouddc/v1/model/sas_address.py +84 -0
- huaweicloudsdkclouddc/v1/model/server_instance_id_set.py +115 -0
- huaweicloudsdkclouddc/v1/model/server_power_status.py +171 -0
- huaweicloudsdkclouddc/v1/model/server_state.py +142 -0
- huaweicloudsdkclouddc/v1/model/server_status.py +279 -0
- huaweicloudsdkclouddc/v1/model/servers_response_physical_servers.py +115 -0
- huaweicloudsdkclouddc/v1/model/show_alarm_summary_request.py +84 -0
- huaweicloudsdkclouddc/v1/model/show_alarm_summary_response.py +203 -0
- huaweicloudsdkclouddc/v1/model/show_alarm_trend_request.py +142 -0
- huaweicloudsdkclouddc/v1/model/show_alarm_trend_response.py +145 -0
- huaweicloudsdkclouddc/v1/model/show_event_request.py +114 -0
- huaweicloudsdkclouddc/v1/model/show_event_response.py +377 -0
- huaweicloudsdkclouddc/v1/model/show_instance_status_request.py +114 -0
- huaweicloudsdkclouddc/v1/model/show_instance_status_response.py +137 -0
- huaweicloudsdkclouddc/v1/model/show_logs_export_status_request.py +142 -0
- huaweicloudsdkclouddc/v1/model/show_logs_export_status_response.py +203 -0
- huaweicloudsdkclouddc/v1/model/show_remote_console_request.py +114 -0
- huaweicloudsdkclouddc/v1/model/show_remote_console_response.py +116 -0
- huaweicloudsdkclouddc/v1/model/show_server_firmware_attributes_request.py +114 -0
- huaweicloudsdkclouddc/v1/model/show_server_firmware_attributes_response.py +116 -0
- huaweicloudsdkclouddc/v1/model/show_server_hardware_attributes_request.py +114 -0
- huaweicloudsdkclouddc/v1/model/show_server_hardware_attributes_response.py +286 -0
- huaweicloudsdkclouddc/v1/model/show_server_request.py +114 -0
- huaweicloudsdkclouddc/v1/model/show_server_response.py +411 -0
- huaweicloudsdkclouddc/v1/model/show_server_status_request.py +84 -0
- huaweicloudsdkclouddc/v1/model/show_server_status_response.py +137 -0
- huaweicloudsdkclouddc/v1/model/state.py +89 -0
- huaweicloudsdkclouddc/v1/model/status.py +136 -0
- huaweicloudsdkclouddc/v1/model/storage_controller.py +608 -0
- huaweicloudsdkclouddc/v1/model/tag.py +143 -0
- huaweicloudsdkclouddc/v1/model/update_i_dcs_request.py +111 -0
- huaweicloudsdkclouddc/v1/model/update_i_dcs_response.py +112 -0
- huaweicloudsdkclouddc/v1/model/update_i_rack_request.py +139 -0
- huaweicloudsdkclouddc/v1/model/update_i_rack_response.py +112 -0
- huaweicloudsdkclouddc/v1/model/user_data.py +84 -0
- huaweicloudsdkclouddc/v1/model/volume.py +459 -0
- huaweicloudsdkclouddc/v1/model/vpc_id.py +84 -0
- huaweicloudsdkclouddc/v1/region/__init__.py +0 -0
- huaweicloudsdkclouddc/v1/region/clouddc_region.py +40 -0
- huaweicloudsdkclouddc-3.1.160.dist-info/LICENSE +13 -0
- huaweicloudsdkclouddc-3.1.160.dist-info/METADATA +26 -0
- huaweicloudsdkclouddc-3.1.160.dist-info/RECORD +142 -0
- huaweicloudsdkclouddc-3.1.160.dist-info/WHEEL +5 -0
- huaweicloudsdkclouddc-3.1.160.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 ShowLogsExportStatusRequest:
|
|
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
|
+
'export_id': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'id': 'id',
|
|
26
|
+
'export_id': 'export_id'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, id=None, export_id=None):
|
|
30
|
+
r"""ShowLogsExportStatusRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param id: imetal server id
|
|
35
|
+
:type id: str
|
|
36
|
+
:param export_id: 日志导出id
|
|
37
|
+
:type export_id: str
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._id = None
|
|
43
|
+
self._export_id = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.id = id
|
|
47
|
+
self.export_id = export_id
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def id(self):
|
|
51
|
+
r"""Gets the id of this ShowLogsExportStatusRequest.
|
|
52
|
+
|
|
53
|
+
imetal server id
|
|
54
|
+
|
|
55
|
+
:return: The id of this ShowLogsExportStatusRequest.
|
|
56
|
+
:rtype: str
|
|
57
|
+
"""
|
|
58
|
+
return self._id
|
|
59
|
+
|
|
60
|
+
@id.setter
|
|
61
|
+
def id(self, id):
|
|
62
|
+
r"""Sets the id of this ShowLogsExportStatusRequest.
|
|
63
|
+
|
|
64
|
+
imetal server id
|
|
65
|
+
|
|
66
|
+
:param id: The id of this ShowLogsExportStatusRequest.
|
|
67
|
+
:type id: str
|
|
68
|
+
"""
|
|
69
|
+
self._id = id
|
|
70
|
+
|
|
71
|
+
@property
|
|
72
|
+
def export_id(self):
|
|
73
|
+
r"""Gets the export_id of this ShowLogsExportStatusRequest.
|
|
74
|
+
|
|
75
|
+
日志导出id
|
|
76
|
+
|
|
77
|
+
:return: The export_id of this ShowLogsExportStatusRequest.
|
|
78
|
+
:rtype: str
|
|
79
|
+
"""
|
|
80
|
+
return self._export_id
|
|
81
|
+
|
|
82
|
+
@export_id.setter
|
|
83
|
+
def export_id(self, export_id):
|
|
84
|
+
r"""Sets the export_id of this ShowLogsExportStatusRequest.
|
|
85
|
+
|
|
86
|
+
日志导出id
|
|
87
|
+
|
|
88
|
+
:param export_id: The export_id of this ShowLogsExportStatusRequest.
|
|
89
|
+
:type export_id: str
|
|
90
|
+
"""
|
|
91
|
+
self._export_id = export_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, ShowLogsExportStatusRequest):
|
|
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,203 @@
|
|
|
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 ShowLogsExportStatusResponse(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
|
+
'export_id': 'str',
|
|
22
|
+
'status': 'str',
|
|
23
|
+
'percentage': 'str',
|
|
24
|
+
'created_at': 'datetime'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
attribute_map = {
|
|
28
|
+
'export_id': 'export_id',
|
|
29
|
+
'status': 'status',
|
|
30
|
+
'percentage': 'percentage',
|
|
31
|
+
'created_at': 'created_at'
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
def __init__(self, export_id=None, status=None, percentage=None, created_at=None):
|
|
35
|
+
r"""ShowLogsExportStatusResponse
|
|
36
|
+
|
|
37
|
+
The model defined in huaweicloud sdk
|
|
38
|
+
|
|
39
|
+
:param export_id: export task id
|
|
40
|
+
:type export_id: str
|
|
41
|
+
:param status: 导出进度
|
|
42
|
+
:type status: str
|
|
43
|
+
:param percentage: 导出进度百分比,范围0-100,如\"10%\"
|
|
44
|
+
:type percentage: str
|
|
45
|
+
:param created_at: 导出开始时间,时间戳格式为ISO 8601,例如:2025-03-20T02:48:06+00:00
|
|
46
|
+
:type created_at: datetime
|
|
47
|
+
"""
|
|
48
|
+
|
|
49
|
+
super(ShowLogsExportStatusResponse, self).__init__()
|
|
50
|
+
|
|
51
|
+
self._export_id = None
|
|
52
|
+
self._status = None
|
|
53
|
+
self._percentage = None
|
|
54
|
+
self._created_at = None
|
|
55
|
+
self.discriminator = None
|
|
56
|
+
|
|
57
|
+
if export_id is not None:
|
|
58
|
+
self.export_id = export_id
|
|
59
|
+
if status is not None:
|
|
60
|
+
self.status = status
|
|
61
|
+
if percentage is not None:
|
|
62
|
+
self.percentage = percentage
|
|
63
|
+
if created_at is not None:
|
|
64
|
+
self.created_at = created_at
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def export_id(self):
|
|
68
|
+
r"""Gets the export_id of this ShowLogsExportStatusResponse.
|
|
69
|
+
|
|
70
|
+
export task id
|
|
71
|
+
|
|
72
|
+
:return: The export_id of this ShowLogsExportStatusResponse.
|
|
73
|
+
:rtype: str
|
|
74
|
+
"""
|
|
75
|
+
return self._export_id
|
|
76
|
+
|
|
77
|
+
@export_id.setter
|
|
78
|
+
def export_id(self, export_id):
|
|
79
|
+
r"""Sets the export_id of this ShowLogsExportStatusResponse.
|
|
80
|
+
|
|
81
|
+
export task id
|
|
82
|
+
|
|
83
|
+
:param export_id: The export_id of this ShowLogsExportStatusResponse.
|
|
84
|
+
:type export_id: str
|
|
85
|
+
"""
|
|
86
|
+
self._export_id = export_id
|
|
87
|
+
|
|
88
|
+
@property
|
|
89
|
+
def status(self):
|
|
90
|
+
r"""Gets the status of this ShowLogsExportStatusResponse.
|
|
91
|
+
|
|
92
|
+
导出进度
|
|
93
|
+
|
|
94
|
+
:return: The status of this ShowLogsExportStatusResponse.
|
|
95
|
+
:rtype: str
|
|
96
|
+
"""
|
|
97
|
+
return self._status
|
|
98
|
+
|
|
99
|
+
@status.setter
|
|
100
|
+
def status(self, status):
|
|
101
|
+
r"""Sets the status of this ShowLogsExportStatusResponse.
|
|
102
|
+
|
|
103
|
+
导出进度
|
|
104
|
+
|
|
105
|
+
:param status: The status of this ShowLogsExportStatusResponse.
|
|
106
|
+
:type status: str
|
|
107
|
+
"""
|
|
108
|
+
self._status = status
|
|
109
|
+
|
|
110
|
+
@property
|
|
111
|
+
def percentage(self):
|
|
112
|
+
r"""Gets the percentage of this ShowLogsExportStatusResponse.
|
|
113
|
+
|
|
114
|
+
导出进度百分比,范围0-100,如\"10%\"
|
|
115
|
+
|
|
116
|
+
:return: The percentage of this ShowLogsExportStatusResponse.
|
|
117
|
+
:rtype: str
|
|
118
|
+
"""
|
|
119
|
+
return self._percentage
|
|
120
|
+
|
|
121
|
+
@percentage.setter
|
|
122
|
+
def percentage(self, percentage):
|
|
123
|
+
r"""Sets the percentage of this ShowLogsExportStatusResponse.
|
|
124
|
+
|
|
125
|
+
导出进度百分比,范围0-100,如\"10%\"
|
|
126
|
+
|
|
127
|
+
:param percentage: The percentage of this ShowLogsExportStatusResponse.
|
|
128
|
+
:type percentage: str
|
|
129
|
+
"""
|
|
130
|
+
self._percentage = percentage
|
|
131
|
+
|
|
132
|
+
@property
|
|
133
|
+
def created_at(self):
|
|
134
|
+
r"""Gets the created_at of this ShowLogsExportStatusResponse.
|
|
135
|
+
|
|
136
|
+
导出开始时间,时间戳格式为ISO 8601,例如:2025-03-20T02:48:06+00:00
|
|
137
|
+
|
|
138
|
+
:return: The created_at of this ShowLogsExportStatusResponse.
|
|
139
|
+
:rtype: datetime
|
|
140
|
+
"""
|
|
141
|
+
return self._created_at
|
|
142
|
+
|
|
143
|
+
@created_at.setter
|
|
144
|
+
def created_at(self, created_at):
|
|
145
|
+
r"""Sets the created_at of this ShowLogsExportStatusResponse.
|
|
146
|
+
|
|
147
|
+
导出开始时间,时间戳格式为ISO 8601,例如:2025-03-20T02:48:06+00:00
|
|
148
|
+
|
|
149
|
+
:param created_at: The created_at of this ShowLogsExportStatusResponse.
|
|
150
|
+
:type created_at: datetime
|
|
151
|
+
"""
|
|
152
|
+
self._created_at = created_at
|
|
153
|
+
|
|
154
|
+
def to_dict(self):
|
|
155
|
+
"""Returns the model properties as a dict"""
|
|
156
|
+
result = {}
|
|
157
|
+
|
|
158
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
159
|
+
value = getattr(self, attr)
|
|
160
|
+
if isinstance(value, list):
|
|
161
|
+
result[attr] = list(map(
|
|
162
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
163
|
+
value
|
|
164
|
+
))
|
|
165
|
+
elif hasattr(value, "to_dict"):
|
|
166
|
+
result[attr] = value.to_dict()
|
|
167
|
+
elif isinstance(value, dict):
|
|
168
|
+
result[attr] = dict(map(
|
|
169
|
+
lambda item: (item[0], item[1].to_dict())
|
|
170
|
+
if hasattr(item[1], "to_dict") else item,
|
|
171
|
+
value.items()
|
|
172
|
+
))
|
|
173
|
+
else:
|
|
174
|
+
if attr in self.sensitive_list:
|
|
175
|
+
result[attr] = "****"
|
|
176
|
+
else:
|
|
177
|
+
result[attr] = value
|
|
178
|
+
|
|
179
|
+
return result
|
|
180
|
+
|
|
181
|
+
def to_str(self):
|
|
182
|
+
"""Returns the string representation of the model"""
|
|
183
|
+
import simplejson as json
|
|
184
|
+
if six.PY2:
|
|
185
|
+
import sys
|
|
186
|
+
reload(sys)
|
|
187
|
+
sys.setdefaultencoding("utf-8")
|
|
188
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
189
|
+
|
|
190
|
+
def __repr__(self):
|
|
191
|
+
"""For `print`"""
|
|
192
|
+
return self.to_str()
|
|
193
|
+
|
|
194
|
+
def __eq__(self, other):
|
|
195
|
+
"""Returns true if both objects are equal"""
|
|
196
|
+
if not isinstance(other, ShowLogsExportStatusResponse):
|
|
197
|
+
return False
|
|
198
|
+
|
|
199
|
+
return self.__dict__ == other.__dict__
|
|
200
|
+
|
|
201
|
+
def __ne__(self, other):
|
|
202
|
+
"""Returns true if both objects are not equal"""
|
|
203
|
+
return not self == other
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ShowRemoteConsoleRequest:
|
|
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"""ShowRemoteConsoleRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param id: imetal server id
|
|
33
|
+
:type id: str
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._id = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
self.id = id
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def id(self):
|
|
45
|
+
r"""Gets the id of this ShowRemoteConsoleRequest.
|
|
46
|
+
|
|
47
|
+
imetal server id
|
|
48
|
+
|
|
49
|
+
:return: The id of this ShowRemoteConsoleRequest.
|
|
50
|
+
:rtype: str
|
|
51
|
+
"""
|
|
52
|
+
return self._id
|
|
53
|
+
|
|
54
|
+
@id.setter
|
|
55
|
+
def id(self, id):
|
|
56
|
+
r"""Sets the id of this ShowRemoteConsoleRequest.
|
|
57
|
+
|
|
58
|
+
imetal server id
|
|
59
|
+
|
|
60
|
+
:param id: The id of this ShowRemoteConsoleRequest.
|
|
61
|
+
:type id: str
|
|
62
|
+
"""
|
|
63
|
+
self._id = id
|
|
64
|
+
|
|
65
|
+
def to_dict(self):
|
|
66
|
+
"""Returns the model properties as a dict"""
|
|
67
|
+
result = {}
|
|
68
|
+
|
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
70
|
+
value = getattr(self, attr)
|
|
71
|
+
if isinstance(value, list):
|
|
72
|
+
result[attr] = list(map(
|
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
74
|
+
value
|
|
75
|
+
))
|
|
76
|
+
elif hasattr(value, "to_dict"):
|
|
77
|
+
result[attr] = value.to_dict()
|
|
78
|
+
elif isinstance(value, dict):
|
|
79
|
+
result[attr] = dict(map(
|
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
|
82
|
+
value.items()
|
|
83
|
+
))
|
|
84
|
+
else:
|
|
85
|
+
if attr in self.sensitive_list:
|
|
86
|
+
result[attr] = "****"
|
|
87
|
+
else:
|
|
88
|
+
result[attr] = value
|
|
89
|
+
|
|
90
|
+
return result
|
|
91
|
+
|
|
92
|
+
def to_str(self):
|
|
93
|
+
"""Returns the string representation of the model"""
|
|
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)
|
|
100
|
+
|
|
101
|
+
def __repr__(self):
|
|
102
|
+
"""For `print`"""
|
|
103
|
+
return self.to_str()
|
|
104
|
+
|
|
105
|
+
def __eq__(self, other):
|
|
106
|
+
"""Returns true if both objects are equal"""
|
|
107
|
+
if not isinstance(other, ShowRemoteConsoleRequest):
|
|
108
|
+
return False
|
|
109
|
+
|
|
110
|
+
return self.__dict__ == other.__dict__
|
|
111
|
+
|
|
112
|
+
def __ne__(self, other):
|
|
113
|
+
"""Returns true if both objects are not equal"""
|
|
114
|
+
return not self == other
|
|
@@ -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 ShowRemoteConsoleResponse(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
|
+
'url': 'str'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'url': 'url'
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
def __init__(self, url=None):
|
|
29
|
+
r"""ShowRemoteConsoleResponse
|
|
30
|
+
|
|
31
|
+
The model defined in huaweicloud sdk
|
|
32
|
+
|
|
33
|
+
:param url: 远程登录地址
|
|
34
|
+
:type url: str
|
|
35
|
+
"""
|
|
36
|
+
|
|
37
|
+
super(ShowRemoteConsoleResponse, self).__init__()
|
|
38
|
+
|
|
39
|
+
self._url = None
|
|
40
|
+
self.discriminator = None
|
|
41
|
+
|
|
42
|
+
if url is not None:
|
|
43
|
+
self.url = url
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def url(self):
|
|
47
|
+
r"""Gets the url of this ShowRemoteConsoleResponse.
|
|
48
|
+
|
|
49
|
+
远程登录地址
|
|
50
|
+
|
|
51
|
+
:return: The url of this ShowRemoteConsoleResponse.
|
|
52
|
+
:rtype: str
|
|
53
|
+
"""
|
|
54
|
+
return self._url
|
|
55
|
+
|
|
56
|
+
@url.setter
|
|
57
|
+
def url(self, url):
|
|
58
|
+
r"""Sets the url of this ShowRemoteConsoleResponse.
|
|
59
|
+
|
|
60
|
+
远程登录地址
|
|
61
|
+
|
|
62
|
+
:param url: The url of this ShowRemoteConsoleResponse.
|
|
63
|
+
:type url: str
|
|
64
|
+
"""
|
|
65
|
+
self._url = url
|
|
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, ShowRemoteConsoleResponse):
|
|
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
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class ShowServerFirmwareAttributesRequest:
|
|
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"""ShowServerFirmwareAttributesRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param id: imetal server id
|
|
33
|
+
:type id: str
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._id = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
self.id = id
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def id(self):
|
|
45
|
+
r"""Gets the id of this ShowServerFirmwareAttributesRequest.
|
|
46
|
+
|
|
47
|
+
imetal server id
|
|
48
|
+
|
|
49
|
+
:return: The id of this ShowServerFirmwareAttributesRequest.
|
|
50
|
+
:rtype: str
|
|
51
|
+
"""
|
|
52
|
+
return self._id
|
|
53
|
+
|
|
54
|
+
@id.setter
|
|
55
|
+
def id(self, id):
|
|
56
|
+
r"""Sets the id of this ShowServerFirmwareAttributesRequest.
|
|
57
|
+
|
|
58
|
+
imetal server id
|
|
59
|
+
|
|
60
|
+
:param id: The id of this ShowServerFirmwareAttributesRequest.
|
|
61
|
+
:type id: str
|
|
62
|
+
"""
|
|
63
|
+
self._id = id
|
|
64
|
+
|
|
65
|
+
def to_dict(self):
|
|
66
|
+
"""Returns the model properties as a dict"""
|
|
67
|
+
result = {}
|
|
68
|
+
|
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
70
|
+
value = getattr(self, attr)
|
|
71
|
+
if isinstance(value, list):
|
|
72
|
+
result[attr] = list(map(
|
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
74
|
+
value
|
|
75
|
+
))
|
|
76
|
+
elif hasattr(value, "to_dict"):
|
|
77
|
+
result[attr] = value.to_dict()
|
|
78
|
+
elif isinstance(value, dict):
|
|
79
|
+
result[attr] = dict(map(
|
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
|
82
|
+
value.items()
|
|
83
|
+
))
|
|
84
|
+
else:
|
|
85
|
+
if attr in self.sensitive_list:
|
|
86
|
+
result[attr] = "****"
|
|
87
|
+
else:
|
|
88
|
+
result[attr] = value
|
|
89
|
+
|
|
90
|
+
return result
|
|
91
|
+
|
|
92
|
+
def to_str(self):
|
|
93
|
+
"""Returns the string representation of the model"""
|
|
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)
|
|
100
|
+
|
|
101
|
+
def __repr__(self):
|
|
102
|
+
"""For `print`"""
|
|
103
|
+
return self.to_str()
|
|
104
|
+
|
|
105
|
+
def __eq__(self, other):
|
|
106
|
+
"""Returns true if both objects are equal"""
|
|
107
|
+
if not isinstance(other, ShowServerFirmwareAttributesRequest):
|
|
108
|
+
return False
|
|
109
|
+
|
|
110
|
+
return self.__dict__ == other.__dict__
|
|
111
|
+
|
|
112
|
+
def __ne__(self, other):
|
|
113
|
+
"""Returns true if both objects are not equal"""
|
|
114
|
+
return not self == other
|