huaweicloudsdkclouddc 3.1.176__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.
- huaweicloudsdkclouddc/__init__.py +0 -0
- huaweicloudsdkclouddc/v1/__init__.py +140 -0
- huaweicloudsdkclouddc/v1/clouddc_async_client.py +2255 -0
- huaweicloudsdkclouddc/v1/clouddc_client.py +2252 -0
- huaweicloudsdkclouddc/v1/model/__init__.py +137 -0
- huaweicloudsdkclouddc/v1/model/alarm_daily_trend.py +166 -0
- huaweicloudsdkclouddc/v1/model/alarm_device_info.py +137 -0
- huaweicloudsdkclouddc/v1/model/alarm_group.py +166 -0
- huaweicloudsdkclouddc/v1/model/alarm_history.py +336 -0
- huaweicloudsdkclouddc/v1/model/alarm_host.py +166 -0
- huaweicloudsdkclouddc/v1/model/alarm_info.py +166 -0
- huaweicloudsdkclouddc/v1/model/alarm_level_info.py +137 -0
- huaweicloudsdkclouddc/v1/model/batch_create_irack_tags_request.py +132 -0
- huaweicloudsdkclouddc/v1/model/batch_create_irack_tags_response.py +81 -0
- huaweicloudsdkclouddc/v1/model/batch_create_tags_request.py +160 -0
- huaweicloudsdkclouddc/v1/model/batch_create_tags_response.py +81 -0
- huaweicloudsdkclouddc/v1/model/batch_delete_irack_tags_request.py +132 -0
- huaweicloudsdkclouddc/v1/model/batch_delete_irack_tags_response.py +81 -0
- huaweicloudsdkclouddc/v1/model/batch_delete_options.py +108 -0
- huaweicloudsdkclouddc/v1/model/batch_delete_tags_request.py +160 -0
- huaweicloudsdkclouddc/v1/model/batch_delete_tags_response.py +81 -0
- huaweicloudsdkclouddc/v1/model/capacity_bytes.py +77 -0
- huaweicloudsdkclouddc/v1/model/change_instance_password_options.py +136 -0
- huaweicloudsdkclouddc/v1/model/change_instance_password_request.py +104 -0
- huaweicloudsdkclouddc/v1/model/change_instance_password_response.py +112 -0
- huaweicloudsdkclouddc/v1/model/change_server_power_state_request.py +104 -0
- huaweicloudsdkclouddc/v1/model/change_server_power_state_response.py +112 -0
- huaweicloudsdkclouddc/v1/model/create_instance_opitons.py +302 -0
- huaweicloudsdkclouddc/v1/model/create_instance_opitons_placement.py +108 -0
- huaweicloudsdkclouddc/v1/model/create_instance_request.py +104 -0
- huaweicloudsdkclouddc/v1/model/create_instance_response.py +112 -0
- huaweicloudsdkclouddc/v1/model/delete_instance_request.py +107 -0
- huaweicloudsdkclouddc/v1/model/delete_instance_response.py +108 -0
- huaweicloudsdkclouddc/v1/model/delete_instances_request.py +104 -0
- huaweicloudsdkclouddc/v1/model/delete_instances_response.py +112 -0
- huaweicloudsdkclouddc/v1/model/dimension.py +137 -0
- huaweicloudsdkclouddc/v1/model/download_server_logs_request.py +135 -0
- huaweicloudsdkclouddc/v1/model/download_server_logs_response.py +158 -0
- huaweicloudsdkclouddc/v1/model/drive.py +630 -0
- huaweicloudsdkclouddc/v1/model/error_status.py +163 -0
- huaweicloudsdkclouddc/v1/model/event_info.py +311 -0
- huaweicloudsdkclouddc/v1/model/export_server_logs_request.py +107 -0
- huaweicloudsdkclouddc/v1/model/export_server_logs_response.py +274 -0
- huaweicloudsdkclouddc/v1/model/fan.py +278 -0
- huaweicloudsdkclouddc/v1/model/fault_host_info.py +166 -0
- huaweicloudsdkclouddc/v1/model/firmware_details.py +195 -0
- huaweicloudsdkclouddc/v1/model/hardware_metric.py +137 -0
- huaweicloudsdkclouddc/v1/model/hardware_summary.py +221 -0
- huaweicloudsdkclouddc/v1/model/health.py +83 -0
- huaweicloudsdkclouddc/v1/model/i_dc.py +201 -0
- huaweicloudsdkclouddc/v1/model/i_rack.py +514 -0
- huaweicloudsdkclouddc/v1/model/i_rack_request.py +108 -0
- huaweicloudsdkclouddc/v1/model/image.py +163 -0
- huaweicloudsdkclouddc/v1/model/image_id.py +77 -0
- huaweicloudsdkclouddc/v1/model/instance.py +273 -0
- huaweicloudsdkclouddc/v1/model/instance_id.py +77 -0
- huaweicloudsdkclouddc/v1/model/instance_state.py +89 -0
- huaweicloudsdkclouddc/v1/model/list_alarms_request.py +340 -0
- huaweicloudsdkclouddc/v1/model/list_alarms_response.py +141 -0
- huaweicloudsdkclouddc/v1/model/list_events_request.py +251 -0
- huaweicloudsdkclouddc/v1/model/list_events_response.py +141 -0
- huaweicloudsdkclouddc/v1/model/list_i_dcs_request.py +194 -0
- huaweicloudsdkclouddc/v1/model/list_i_dcs_response.py +133 -0
- huaweicloudsdkclouddc/v1/model/list_i_racks_request.py +194 -0
- huaweicloudsdkclouddc/v1/model/list_i_racks_response.py +133 -0
- huaweicloudsdkclouddc/v1/model/list_instances_request.py +224 -0
- huaweicloudsdkclouddc/v1/model/list_instances_response.py +166 -0
- huaweicloudsdkclouddc/v1/model/list_servers_request.py +166 -0
- huaweicloudsdkclouddc/v1/model/list_servers_response.py +166 -0
- huaweicloudsdkclouddc/v1/model/location.py +166 -0
- huaweicloudsdkclouddc/v1/model/manage_state.py +84 -0
- huaweicloudsdkclouddc/v1/model/memory.py +572 -0
- huaweicloudsdkclouddc/v1/model/metric.py +137 -0
- huaweicloudsdkclouddc/v1/model/modify_instance_ip_request.py +132 -0
- huaweicloudsdkclouddc/v1/model/modify_instance_ip_request_body.py +137 -0
- huaweicloudsdkclouddc/v1/model/modify_instance_ip_request_body_nics.py +136 -0
- huaweicloudsdkclouddc/v1/model/modify_instance_ip_response.py +81 -0
- huaweicloudsdkclouddc/v1/model/network_adapter.py +485 -0
- huaweicloudsdkclouddc/v1/model/network_interface.py +136 -0
- huaweicloudsdkclouddc/v1/model/network_port.py +340 -0
- huaweicloudsdkclouddc/v1/model/page_info.py +166 -0
- huaweicloudsdkclouddc/v1/model/password.py +77 -0
- huaweicloudsdkclouddc/v1/model/physical_server.py +395 -0
- huaweicloudsdkclouddc/v1/model/power.py +481 -0
- huaweicloudsdkclouddc/v1/model/power_action.py +136 -0
- huaweicloudsdkclouddc/v1/model/power_state.py +84 -0
- huaweicloudsdkclouddc/v1/model/processors.py +630 -0
- huaweicloudsdkclouddc/v1/model/query_instance_response_body.py +492 -0
- huaweicloudsdkclouddc/v1/model/reinstall_os_options.py +165 -0
- huaweicloudsdkclouddc/v1/model/reinstall_os_request.py +104 -0
- huaweicloudsdkclouddc/v1/model/reinstall_os_response.py +112 -0
- huaweicloudsdkclouddc/v1/model/resource_name.py +77 -0
- huaweicloudsdkclouddc/v1/model/resource_tags.py +108 -0
- huaweicloudsdkclouddc/v1/model/resource_uuid.py +77 -0
- huaweicloudsdkclouddc/v1/model/run_instances_options.py +360 -0
- huaweicloudsdkclouddc/v1/model/run_instances_options_network_interfaces.py +107 -0
- huaweicloudsdkclouddc/v1/model/run_instances_options_placement.py +108 -0
- huaweicloudsdkclouddc/v1/model/run_instances_request.py +104 -0
- huaweicloudsdkclouddc/v1/model/run_instances_response.py +112 -0
- huaweicloudsdkclouddc/v1/model/sas_address.py +77 -0
- huaweicloudsdkclouddc/v1/model/server_instance_id_set.py +108 -0
- huaweicloudsdkclouddc/v1/model/server_power_status.py +164 -0
- huaweicloudsdkclouddc/v1/model/server_state.py +135 -0
- huaweicloudsdkclouddc/v1/model/server_status.py +272 -0
- huaweicloudsdkclouddc/v1/model/servers_response_physical_servers.py +108 -0
- huaweicloudsdkclouddc/v1/model/show_alarm_summary_request.py +77 -0
- huaweicloudsdkclouddc/v1/model/show_alarm_summary_response.py +199 -0
- huaweicloudsdkclouddc/v1/model/show_alarm_trend_request.py +135 -0
- huaweicloudsdkclouddc/v1/model/show_alarm_trend_response.py +141 -0
- huaweicloudsdkclouddc/v1/model/show_event_request.py +107 -0
- huaweicloudsdkclouddc/v1/model/show_event_response.py +373 -0
- huaweicloudsdkclouddc/v1/model/show_instance_status_request.py +107 -0
- huaweicloudsdkclouddc/v1/model/show_instance_status_response.py +133 -0
- huaweicloudsdkclouddc/v1/model/show_logs_export_status_request.py +135 -0
- huaweicloudsdkclouddc/v1/model/show_logs_export_status_response.py +199 -0
- huaweicloudsdkclouddc/v1/model/show_remote_console_request.py +107 -0
- huaweicloudsdkclouddc/v1/model/show_remote_console_response.py +112 -0
- huaweicloudsdkclouddc/v1/model/show_server_firmware_attributes_request.py +107 -0
- huaweicloudsdkclouddc/v1/model/show_server_firmware_attributes_response.py +112 -0
- huaweicloudsdkclouddc/v1/model/show_server_hardware_attributes_request.py +107 -0
- huaweicloudsdkclouddc/v1/model/show_server_hardware_attributes_response.py +311 -0
- huaweicloudsdkclouddc/v1/model/show_server_request.py +107 -0
- huaweicloudsdkclouddc/v1/model/show_server_response.py +407 -0
- huaweicloudsdkclouddc/v1/model/show_server_status_request.py +77 -0
- huaweicloudsdkclouddc/v1/model/show_server_status_response.py +133 -0
- huaweicloudsdkclouddc/v1/model/state.py +82 -0
- huaweicloudsdkclouddc/v1/model/status.py +129 -0
- huaweicloudsdkclouddc/v1/model/storage_controller.py +601 -0
- huaweicloudsdkclouddc/v1/model/tag.py +136 -0
- huaweicloudsdkclouddc/v1/model/update_i_dcs_request.py +104 -0
- huaweicloudsdkclouddc/v1/model/update_i_dcs_response.py +108 -0
- huaweicloudsdkclouddc/v1/model/update_i_rack_request.py +132 -0
- huaweicloudsdkclouddc/v1/model/update_i_rack_response.py +108 -0
- huaweicloudsdkclouddc/v1/model/user_data.py +77 -0
- huaweicloudsdkclouddc/v1/model/volume.py +452 -0
- huaweicloudsdkclouddc/v1/model/volume_status.py +133 -0
- huaweicloudsdkclouddc/v1/model/vpc_id.py +77 -0
- huaweicloudsdkclouddc/v1/region/__init__.py +0 -0
- huaweicloudsdkclouddc/v1/region/clouddc_region.py +40 -0
- huaweicloudsdkclouddc-3.1.176.dist-info/METADATA +25 -0
- huaweicloudsdkclouddc-3.1.176.dist-info/RECORD +143 -0
- huaweicloudsdkclouddc-3.1.176.dist-info/WHEEL +4 -0
- huaweicloudsdkclouddc-3.1.176.dist-info/licenses/LICENSE +13 -0
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class Tag:
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Attributes:
|
|
10
|
+
openapi_types (dict): The key is attribute name
|
|
11
|
+
and the value is attribute type.
|
|
12
|
+
attribute_map (dict): The key is attribute name
|
|
13
|
+
and the value is json key in definition.
|
|
14
|
+
"""
|
|
15
|
+
sensitive_list = []
|
|
16
|
+
|
|
17
|
+
openapi_types = {
|
|
18
|
+
'key': 'str',
|
|
19
|
+
'value': 'str'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'key': 'key',
|
|
24
|
+
'value': 'value'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, key=None, value=None):
|
|
28
|
+
r"""Tag
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param key: 键。最大长度128个字符。 key需要满足3.1 KEY字符集规范。
|
|
33
|
+
:type key: str
|
|
34
|
+
:param value: 值,每个值最大长度255个字符。
|
|
35
|
+
:type value: str
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._key = None
|
|
41
|
+
self._value = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
self.key = key
|
|
45
|
+
if value is not None:
|
|
46
|
+
self.value = value
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def key(self):
|
|
50
|
+
r"""Gets the key of this Tag.
|
|
51
|
+
|
|
52
|
+
键。最大长度128个字符。 key需要满足3.1 KEY字符集规范。
|
|
53
|
+
|
|
54
|
+
:return: The key of this Tag.
|
|
55
|
+
:rtype: str
|
|
56
|
+
"""
|
|
57
|
+
return self._key
|
|
58
|
+
|
|
59
|
+
@key.setter
|
|
60
|
+
def key(self, key):
|
|
61
|
+
r"""Sets the key of this Tag.
|
|
62
|
+
|
|
63
|
+
键。最大长度128个字符。 key需要满足3.1 KEY字符集规范。
|
|
64
|
+
|
|
65
|
+
:param key: The key of this Tag.
|
|
66
|
+
:type key: str
|
|
67
|
+
"""
|
|
68
|
+
self._key = key
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def value(self):
|
|
72
|
+
r"""Gets the value of this Tag.
|
|
73
|
+
|
|
74
|
+
值,每个值最大长度255个字符。
|
|
75
|
+
|
|
76
|
+
:return: The value of this Tag.
|
|
77
|
+
:rtype: str
|
|
78
|
+
"""
|
|
79
|
+
return self._value
|
|
80
|
+
|
|
81
|
+
@value.setter
|
|
82
|
+
def value(self, value):
|
|
83
|
+
r"""Sets the value of this Tag.
|
|
84
|
+
|
|
85
|
+
值,每个值最大长度255个字符。
|
|
86
|
+
|
|
87
|
+
:param value: The value of this Tag.
|
|
88
|
+
:type value: str
|
|
89
|
+
"""
|
|
90
|
+
self._value = value
|
|
91
|
+
|
|
92
|
+
def to_dict(self):
|
|
93
|
+
result = {}
|
|
94
|
+
|
|
95
|
+
for attr, _ in self.openapi_types.items():
|
|
96
|
+
value = getattr(self, attr)
|
|
97
|
+
if isinstance(value, list):
|
|
98
|
+
result[attr] = list(map(
|
|
99
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
100
|
+
value
|
|
101
|
+
))
|
|
102
|
+
elif hasattr(value, "to_dict"):
|
|
103
|
+
result[attr] = value.to_dict()
|
|
104
|
+
elif isinstance(value, dict):
|
|
105
|
+
result[attr] = dict(map(
|
|
106
|
+
lambda item: (item[0], item[1].to_dict())
|
|
107
|
+
if hasattr(item[1], "to_dict") else item,
|
|
108
|
+
value.items()
|
|
109
|
+
))
|
|
110
|
+
else:
|
|
111
|
+
if attr in self.sensitive_list:
|
|
112
|
+
result[attr] = "****"
|
|
113
|
+
else:
|
|
114
|
+
result[attr] = value
|
|
115
|
+
|
|
116
|
+
return result
|
|
117
|
+
|
|
118
|
+
def to_str(self):
|
|
119
|
+
"""Returns the string representation of the model"""
|
|
120
|
+
import simplejson as json
|
|
121
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
122
|
+
|
|
123
|
+
def __repr__(self):
|
|
124
|
+
"""For `print`"""
|
|
125
|
+
return self.to_str()
|
|
126
|
+
|
|
127
|
+
def __eq__(self, other):
|
|
128
|
+
"""Returns true if both objects are equal"""
|
|
129
|
+
if not isinstance(other, Tag):
|
|
130
|
+
return False
|
|
131
|
+
|
|
132
|
+
return self.__dict__ == other.__dict__
|
|
133
|
+
|
|
134
|
+
def __ne__(self, other):
|
|
135
|
+
"""Returns true if both objects are not equal"""
|
|
136
|
+
return not self == other
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UpdateIDcsRequest:
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Attributes:
|
|
10
|
+
openapi_types (dict): The key is attribute name
|
|
11
|
+
and the value is attribute type.
|
|
12
|
+
attribute_map (dict): The key is attribute name
|
|
13
|
+
and the value is json key in definition.
|
|
14
|
+
"""
|
|
15
|
+
sensitive_list = []
|
|
16
|
+
|
|
17
|
+
openapi_types = {
|
|
18
|
+
'body': 'list[object]'
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
attribute_map = {
|
|
22
|
+
'body': 'body'
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
def __init__(self, body=None):
|
|
26
|
+
r"""UpdateIDcsRequest
|
|
27
|
+
|
|
28
|
+
The model defined in huaweicloud sdk
|
|
29
|
+
|
|
30
|
+
:param body: Body of the UpdateIDcsRequest
|
|
31
|
+
:type body: list[object]
|
|
32
|
+
"""
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
self._body = None
|
|
37
|
+
self.discriminator = None
|
|
38
|
+
|
|
39
|
+
if body is not None:
|
|
40
|
+
self.body = body
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def body(self):
|
|
44
|
+
r"""Gets the body of this UpdateIDcsRequest.
|
|
45
|
+
|
|
46
|
+
:return: The body of this UpdateIDcsRequest.
|
|
47
|
+
:rtype: list[object]
|
|
48
|
+
"""
|
|
49
|
+
return self._body
|
|
50
|
+
|
|
51
|
+
@body.setter
|
|
52
|
+
def body(self, body):
|
|
53
|
+
r"""Sets the body of this UpdateIDcsRequest.
|
|
54
|
+
|
|
55
|
+
:param body: The body of this UpdateIDcsRequest.
|
|
56
|
+
:type body: list[object]
|
|
57
|
+
"""
|
|
58
|
+
self._body = body
|
|
59
|
+
|
|
60
|
+
def to_dict(self):
|
|
61
|
+
result = {}
|
|
62
|
+
|
|
63
|
+
for attr, _ in self.openapi_types.items():
|
|
64
|
+
value = getattr(self, attr)
|
|
65
|
+
if isinstance(value, list):
|
|
66
|
+
result[attr] = list(map(
|
|
67
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
68
|
+
value
|
|
69
|
+
))
|
|
70
|
+
elif hasattr(value, "to_dict"):
|
|
71
|
+
result[attr] = value.to_dict()
|
|
72
|
+
elif isinstance(value, dict):
|
|
73
|
+
result[attr] = dict(map(
|
|
74
|
+
lambda item: (item[0], item[1].to_dict())
|
|
75
|
+
if hasattr(item[1], "to_dict") else item,
|
|
76
|
+
value.items()
|
|
77
|
+
))
|
|
78
|
+
else:
|
|
79
|
+
if attr in self.sensitive_list:
|
|
80
|
+
result[attr] = "****"
|
|
81
|
+
else:
|
|
82
|
+
result[attr] = value
|
|
83
|
+
|
|
84
|
+
return result
|
|
85
|
+
|
|
86
|
+
def to_str(self):
|
|
87
|
+
"""Returns the string representation of the model"""
|
|
88
|
+
import simplejson as json
|
|
89
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
90
|
+
|
|
91
|
+
def __repr__(self):
|
|
92
|
+
"""For `print`"""
|
|
93
|
+
return self.to_str()
|
|
94
|
+
|
|
95
|
+
def __eq__(self, other):
|
|
96
|
+
"""Returns true if both objects are equal"""
|
|
97
|
+
if not isinstance(other, UpdateIDcsRequest):
|
|
98
|
+
return False
|
|
99
|
+
|
|
100
|
+
return self.__dict__ == other.__dict__
|
|
101
|
+
|
|
102
|
+
def __ne__(self, other):
|
|
103
|
+
"""Returns true if both objects are not equal"""
|
|
104
|
+
return not self == other
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class UpdateIDcsResponse(SdkResponse):
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
Attributes:
|
|
11
|
+
openapi_types (dict): The key is attribute name
|
|
12
|
+
and the value is attribute type.
|
|
13
|
+
attribute_map (dict): The key is attribute name
|
|
14
|
+
and the value is json key in definition.
|
|
15
|
+
"""
|
|
16
|
+
sensitive_list = []
|
|
17
|
+
|
|
18
|
+
openapi_types = {
|
|
19
|
+
'body': 'str'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'body': 'body'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
def __init__(self, body=None):
|
|
27
|
+
r"""UpdateIDcsResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
:param body:
|
|
32
|
+
:type body: str
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
super().__init__()
|
|
36
|
+
|
|
37
|
+
self._body = None
|
|
38
|
+
self.discriminator = None
|
|
39
|
+
|
|
40
|
+
if body is not None:
|
|
41
|
+
self.body = body
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def body(self):
|
|
45
|
+
r"""Gets the body of this UpdateIDcsResponse.
|
|
46
|
+
|
|
47
|
+
:return: The body of this UpdateIDcsResponse.
|
|
48
|
+
:rtype: str
|
|
49
|
+
"""
|
|
50
|
+
return self._body
|
|
51
|
+
|
|
52
|
+
@body.setter
|
|
53
|
+
def body(self, body):
|
|
54
|
+
r"""Sets the body of this UpdateIDcsResponse.
|
|
55
|
+
|
|
56
|
+
:param body: The body of this UpdateIDcsResponse.
|
|
57
|
+
:type body: str
|
|
58
|
+
"""
|
|
59
|
+
self._body = body
|
|
60
|
+
|
|
61
|
+
def to_dict(self):
|
|
62
|
+
import warnings
|
|
63
|
+
warnings.warn("UpdateIDcsResponse.to_dict() is deprecated and no longer maintained, "
|
|
64
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
65
|
+
result = {}
|
|
66
|
+
|
|
67
|
+
for attr, _ in self.openapi_types.items():
|
|
68
|
+
value = getattr(self, attr)
|
|
69
|
+
if isinstance(value, list):
|
|
70
|
+
result[attr] = list(map(
|
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
72
|
+
value
|
|
73
|
+
))
|
|
74
|
+
elif hasattr(value, "to_dict"):
|
|
75
|
+
result[attr] = value.to_dict()
|
|
76
|
+
elif isinstance(value, dict):
|
|
77
|
+
result[attr] = dict(map(
|
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
|
80
|
+
value.items()
|
|
81
|
+
))
|
|
82
|
+
else:
|
|
83
|
+
if attr in self.sensitive_list:
|
|
84
|
+
result[attr] = "****"
|
|
85
|
+
else:
|
|
86
|
+
result[attr] = value
|
|
87
|
+
|
|
88
|
+
return result
|
|
89
|
+
|
|
90
|
+
def to_str(self):
|
|
91
|
+
"""Returns the string representation of the model"""
|
|
92
|
+
import simplejson as json
|
|
93
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
94
|
+
|
|
95
|
+
def __repr__(self):
|
|
96
|
+
"""For `print`"""
|
|
97
|
+
return self.to_str()
|
|
98
|
+
|
|
99
|
+
def __eq__(self, other):
|
|
100
|
+
"""Returns true if both objects are equal"""
|
|
101
|
+
if not isinstance(other, UpdateIDcsResponse):
|
|
102
|
+
return False
|
|
103
|
+
|
|
104
|
+
return self.__dict__ == other.__dict__
|
|
105
|
+
|
|
106
|
+
def __ne__(self, other):
|
|
107
|
+
"""Returns true if both objects are not equal"""
|
|
108
|
+
return not self == other
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UpdateIRackRequest:
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Attributes:
|
|
10
|
+
openapi_types (dict): The key is attribute name
|
|
11
|
+
and the value is attribute type.
|
|
12
|
+
attribute_map (dict): The key is attribute name
|
|
13
|
+
and the value is json key in definition.
|
|
14
|
+
"""
|
|
15
|
+
sensitive_list = []
|
|
16
|
+
|
|
17
|
+
openapi_types = {
|
|
18
|
+
'irack_id': 'str',
|
|
19
|
+
'body': 'IRackRequest'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'irack_id': 'irack_id',
|
|
24
|
+
'body': 'body'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, irack_id=None, body=None):
|
|
28
|
+
r"""UpdateIRackRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param irack_id: iRack 唯一标识符
|
|
33
|
+
:type irack_id: str
|
|
34
|
+
:param body: Body of the UpdateIRackRequest
|
|
35
|
+
:type body: :class:`huaweicloudsdkclouddc.v1.IRackRequest`
|
|
36
|
+
"""
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
self._irack_id = None
|
|
41
|
+
self._body = None
|
|
42
|
+
self.discriminator = None
|
|
43
|
+
|
|
44
|
+
self.irack_id = irack_id
|
|
45
|
+
if body is not None:
|
|
46
|
+
self.body = body
|
|
47
|
+
|
|
48
|
+
@property
|
|
49
|
+
def irack_id(self):
|
|
50
|
+
r"""Gets the irack_id of this UpdateIRackRequest.
|
|
51
|
+
|
|
52
|
+
iRack 唯一标识符
|
|
53
|
+
|
|
54
|
+
:return: The irack_id of this UpdateIRackRequest.
|
|
55
|
+
:rtype: str
|
|
56
|
+
"""
|
|
57
|
+
return self._irack_id
|
|
58
|
+
|
|
59
|
+
@irack_id.setter
|
|
60
|
+
def irack_id(self, irack_id):
|
|
61
|
+
r"""Sets the irack_id of this UpdateIRackRequest.
|
|
62
|
+
|
|
63
|
+
iRack 唯一标识符
|
|
64
|
+
|
|
65
|
+
:param irack_id: The irack_id of this UpdateIRackRequest.
|
|
66
|
+
:type irack_id: str
|
|
67
|
+
"""
|
|
68
|
+
self._irack_id = irack_id
|
|
69
|
+
|
|
70
|
+
@property
|
|
71
|
+
def body(self):
|
|
72
|
+
r"""Gets the body of this UpdateIRackRequest.
|
|
73
|
+
|
|
74
|
+
:return: The body of this UpdateIRackRequest.
|
|
75
|
+
:rtype: :class:`huaweicloudsdkclouddc.v1.IRackRequest`
|
|
76
|
+
"""
|
|
77
|
+
return self._body
|
|
78
|
+
|
|
79
|
+
@body.setter
|
|
80
|
+
def body(self, body):
|
|
81
|
+
r"""Sets the body of this UpdateIRackRequest.
|
|
82
|
+
|
|
83
|
+
:param body: The body of this UpdateIRackRequest.
|
|
84
|
+
:type body: :class:`huaweicloudsdkclouddc.v1.IRackRequest`
|
|
85
|
+
"""
|
|
86
|
+
self._body = body
|
|
87
|
+
|
|
88
|
+
def to_dict(self):
|
|
89
|
+
result = {}
|
|
90
|
+
|
|
91
|
+
for attr, _ in self.openapi_types.items():
|
|
92
|
+
value = getattr(self, attr)
|
|
93
|
+
if isinstance(value, list):
|
|
94
|
+
result[attr] = list(map(
|
|
95
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
96
|
+
value
|
|
97
|
+
))
|
|
98
|
+
elif hasattr(value, "to_dict"):
|
|
99
|
+
result[attr] = value.to_dict()
|
|
100
|
+
elif isinstance(value, dict):
|
|
101
|
+
result[attr] = dict(map(
|
|
102
|
+
lambda item: (item[0], item[1].to_dict())
|
|
103
|
+
if hasattr(item[1], "to_dict") else item,
|
|
104
|
+
value.items()
|
|
105
|
+
))
|
|
106
|
+
else:
|
|
107
|
+
if attr in self.sensitive_list:
|
|
108
|
+
result[attr] = "****"
|
|
109
|
+
else:
|
|
110
|
+
result[attr] = value
|
|
111
|
+
|
|
112
|
+
return result
|
|
113
|
+
|
|
114
|
+
def to_str(self):
|
|
115
|
+
"""Returns the string representation of the model"""
|
|
116
|
+
import simplejson as json
|
|
117
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
118
|
+
|
|
119
|
+
def __repr__(self):
|
|
120
|
+
"""For `print`"""
|
|
121
|
+
return self.to_str()
|
|
122
|
+
|
|
123
|
+
def __eq__(self, other):
|
|
124
|
+
"""Returns true if both objects are equal"""
|
|
125
|
+
if not isinstance(other, UpdateIRackRequest):
|
|
126
|
+
return False
|
|
127
|
+
|
|
128
|
+
return self.__dict__ == other.__dict__
|
|
129
|
+
|
|
130
|
+
def __ne__(self, other):
|
|
131
|
+
"""Returns true if both objects are not equal"""
|
|
132
|
+
return not self == other
|
|
@@ -0,0 +1,108 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
4
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class UpdateIRackResponse(SdkResponse):
|
|
8
|
+
|
|
9
|
+
"""
|
|
10
|
+
Attributes:
|
|
11
|
+
openapi_types (dict): The key is attribute name
|
|
12
|
+
and the value is attribute type.
|
|
13
|
+
attribute_map (dict): The key is attribute name
|
|
14
|
+
and the value is json key in definition.
|
|
15
|
+
"""
|
|
16
|
+
sensitive_list = []
|
|
17
|
+
|
|
18
|
+
openapi_types = {
|
|
19
|
+
'body': 'str'
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
attribute_map = {
|
|
23
|
+
'body': 'body'
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
def __init__(self, body=None):
|
|
27
|
+
r"""UpdateIRackResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
:param body:
|
|
32
|
+
:type body: str
|
|
33
|
+
"""
|
|
34
|
+
|
|
35
|
+
super().__init__()
|
|
36
|
+
|
|
37
|
+
self._body = None
|
|
38
|
+
self.discriminator = None
|
|
39
|
+
|
|
40
|
+
if body is not None:
|
|
41
|
+
self.body = body
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def body(self):
|
|
45
|
+
r"""Gets the body of this UpdateIRackResponse.
|
|
46
|
+
|
|
47
|
+
:return: The body of this UpdateIRackResponse.
|
|
48
|
+
:rtype: str
|
|
49
|
+
"""
|
|
50
|
+
return self._body
|
|
51
|
+
|
|
52
|
+
@body.setter
|
|
53
|
+
def body(self, body):
|
|
54
|
+
r"""Sets the body of this UpdateIRackResponse.
|
|
55
|
+
|
|
56
|
+
:param body: The body of this UpdateIRackResponse.
|
|
57
|
+
:type body: str
|
|
58
|
+
"""
|
|
59
|
+
self._body = body
|
|
60
|
+
|
|
61
|
+
def to_dict(self):
|
|
62
|
+
import warnings
|
|
63
|
+
warnings.warn("UpdateIRackResponse.to_dict() is deprecated and no longer maintained, "
|
|
64
|
+
"use to_json_object() to get the response content.", DeprecationWarning)
|
|
65
|
+
result = {}
|
|
66
|
+
|
|
67
|
+
for attr, _ in self.openapi_types.items():
|
|
68
|
+
value = getattr(self, attr)
|
|
69
|
+
if isinstance(value, list):
|
|
70
|
+
result[attr] = list(map(
|
|
71
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
72
|
+
value
|
|
73
|
+
))
|
|
74
|
+
elif hasattr(value, "to_dict"):
|
|
75
|
+
result[attr] = value.to_dict()
|
|
76
|
+
elif isinstance(value, dict):
|
|
77
|
+
result[attr] = dict(map(
|
|
78
|
+
lambda item: (item[0], item[1].to_dict())
|
|
79
|
+
if hasattr(item[1], "to_dict") else item,
|
|
80
|
+
value.items()
|
|
81
|
+
))
|
|
82
|
+
else:
|
|
83
|
+
if attr in self.sensitive_list:
|
|
84
|
+
result[attr] = "****"
|
|
85
|
+
else:
|
|
86
|
+
result[attr] = value
|
|
87
|
+
|
|
88
|
+
return result
|
|
89
|
+
|
|
90
|
+
def to_str(self):
|
|
91
|
+
"""Returns the string representation of the model"""
|
|
92
|
+
import simplejson as json
|
|
93
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
94
|
+
|
|
95
|
+
def __repr__(self):
|
|
96
|
+
"""For `print`"""
|
|
97
|
+
return self.to_str()
|
|
98
|
+
|
|
99
|
+
def __eq__(self, other):
|
|
100
|
+
"""Returns true if both objects are equal"""
|
|
101
|
+
if not isinstance(other, UpdateIRackResponse):
|
|
102
|
+
return False
|
|
103
|
+
|
|
104
|
+
return self.__dict__ == other.__dict__
|
|
105
|
+
|
|
106
|
+
def __ne__(self, other):
|
|
107
|
+
"""Returns true if both objects are not equal"""
|
|
108
|
+
return not self == other
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class UserData:
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Attributes:
|
|
10
|
+
openapi_types (dict): The key is attribute name
|
|
11
|
+
and the value is attribute type.
|
|
12
|
+
attribute_map (dict): The key is attribute name
|
|
13
|
+
and the value is json key in definition.
|
|
14
|
+
"""
|
|
15
|
+
sensitive_list = []
|
|
16
|
+
|
|
17
|
+
openapi_types = {
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
attribute_map = {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
def __init__(self):
|
|
24
|
+
r"""UserData
|
|
25
|
+
|
|
26
|
+
The model defined in huaweicloud sdk
|
|
27
|
+
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
self.discriminator = None
|
|
32
|
+
|
|
33
|
+
def to_dict(self):
|
|
34
|
+
result = {}
|
|
35
|
+
|
|
36
|
+
for attr, _ in self.openapi_types.items():
|
|
37
|
+
value = getattr(self, attr)
|
|
38
|
+
if isinstance(value, list):
|
|
39
|
+
result[attr] = list(map(
|
|
40
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
41
|
+
value
|
|
42
|
+
))
|
|
43
|
+
elif hasattr(value, "to_dict"):
|
|
44
|
+
result[attr] = value.to_dict()
|
|
45
|
+
elif isinstance(value, dict):
|
|
46
|
+
result[attr] = dict(map(
|
|
47
|
+
lambda item: (item[0], item[1].to_dict())
|
|
48
|
+
if hasattr(item[1], "to_dict") else item,
|
|
49
|
+
value.items()
|
|
50
|
+
))
|
|
51
|
+
else:
|
|
52
|
+
if attr in self.sensitive_list:
|
|
53
|
+
result[attr] = "****"
|
|
54
|
+
else:
|
|
55
|
+
result[attr] = value
|
|
56
|
+
|
|
57
|
+
return result
|
|
58
|
+
|
|
59
|
+
def to_str(self):
|
|
60
|
+
"""Returns the string representation of the model"""
|
|
61
|
+
import simplejson as json
|
|
62
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
63
|
+
|
|
64
|
+
def __repr__(self):
|
|
65
|
+
"""For `print`"""
|
|
66
|
+
return self.to_str()
|
|
67
|
+
|
|
68
|
+
def __eq__(self, other):
|
|
69
|
+
"""Returns true if both objects are equal"""
|
|
70
|
+
if not isinstance(other, UserData):
|
|
71
|
+
return False
|
|
72
|
+
|
|
73
|
+
return self.__dict__ == other.__dict__
|
|
74
|
+
|
|
75
|
+
def __ne__(self, other):
|
|
76
|
+
"""Returns true if both objects are not equal"""
|
|
77
|
+
return not self == other
|