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,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class Tag:
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
+ 'key': 'str',
21
+ 'value': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'key': 'key',
26
+ 'value': 'value'
27
+ }
28
+
29
+ def __init__(self, key=None, value=None):
30
+ r"""Tag
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param key: 键。最大长度128个字符。 key需要满足3.1 KEY字符集规范。
35
+ :type key: str
36
+ :param value: 值,每个值最大长度255个字符。
37
+ :type value: str
38
+ """
39
+
40
+
41
+
42
+ self._key = None
43
+ self._value = None
44
+ self.discriminator = None
45
+
46
+ self.key = key
47
+ if value is not None:
48
+ self.value = value
49
+
50
+ @property
51
+ def key(self):
52
+ r"""Gets the key of this Tag.
53
+
54
+ 键。最大长度128个字符。 key需要满足3.1 KEY字符集规范。
55
+
56
+ :return: The key of this Tag.
57
+ :rtype: str
58
+ """
59
+ return self._key
60
+
61
+ @key.setter
62
+ def key(self, key):
63
+ r"""Sets the key of this Tag.
64
+
65
+ 键。最大长度128个字符。 key需要满足3.1 KEY字符集规范。
66
+
67
+ :param key: The key of this Tag.
68
+ :type key: str
69
+ """
70
+ self._key = key
71
+
72
+ @property
73
+ def value(self):
74
+ r"""Gets the value of this Tag.
75
+
76
+ 值,每个值最大长度255个字符。
77
+
78
+ :return: The value of this Tag.
79
+ :rtype: str
80
+ """
81
+ return self._value
82
+
83
+ @value.setter
84
+ def value(self, value):
85
+ r"""Sets the value of this Tag.
86
+
87
+ 值,每个值最大长度255个字符。
88
+
89
+ :param value: The value of this Tag.
90
+ :type value: str
91
+ """
92
+ self._value = value
93
+
94
+ def to_dict(self):
95
+ """Returns the model properties as a dict"""
96
+ result = {}
97
+
98
+ for attr, _ in six.iteritems(self.openapi_types):
99
+ value = getattr(self, attr)
100
+ if isinstance(value, list):
101
+ result[attr] = list(map(
102
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
103
+ value
104
+ ))
105
+ elif hasattr(value, "to_dict"):
106
+ result[attr] = value.to_dict()
107
+ elif isinstance(value, dict):
108
+ result[attr] = dict(map(
109
+ lambda item: (item[0], item[1].to_dict())
110
+ if hasattr(item[1], "to_dict") else item,
111
+ value.items()
112
+ ))
113
+ else:
114
+ if attr in self.sensitive_list:
115
+ result[attr] = "****"
116
+ else:
117
+ result[attr] = value
118
+
119
+ return result
120
+
121
+ def to_str(self):
122
+ """Returns the string representation of the model"""
123
+ import simplejson as json
124
+ if six.PY2:
125
+ import sys
126
+ reload(sys)
127
+ sys.setdefaultencoding("utf-8")
128
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
129
+
130
+ def __repr__(self):
131
+ """For `print`"""
132
+ return self.to_str()
133
+
134
+ def __eq__(self, other):
135
+ """Returns true if both objects are equal"""
136
+ if not isinstance(other, Tag):
137
+ return False
138
+
139
+ return self.__dict__ == other.__dict__
140
+
141
+ def __ne__(self, other):
142
+ """Returns true if both objects are not equal"""
143
+ return not self == other
@@ -0,0 +1,111 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateIDcsRequest:
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
+ 'body': 'list[object]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'body': 'body'
25
+ }
26
+
27
+ def __init__(self, body=None):
28
+ r"""UpdateIDcsRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param body: Body of the UpdateIDcsRequest
33
+ :type body: list[object]
34
+ """
35
+
36
+
37
+
38
+ self._body = None
39
+ self.discriminator = None
40
+
41
+ if body is not None:
42
+ self.body = body
43
+
44
+ @property
45
+ def body(self):
46
+ r"""Gets the body of this UpdateIDcsRequest.
47
+
48
+ :return: The body of this UpdateIDcsRequest.
49
+ :rtype: list[object]
50
+ """
51
+ return self._body
52
+
53
+ @body.setter
54
+ def body(self, body):
55
+ r"""Sets the body of this UpdateIDcsRequest.
56
+
57
+ :param body: The body of this UpdateIDcsRequest.
58
+ :type body: list[object]
59
+ """
60
+ self._body = body
61
+
62
+ def to_dict(self):
63
+ """Returns the model properties as a dict"""
64
+ result = {}
65
+
66
+ for attr, _ in six.iteritems(self.openapi_types):
67
+ value = getattr(self, attr)
68
+ if isinstance(value, list):
69
+ result[attr] = list(map(
70
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
71
+ value
72
+ ))
73
+ elif hasattr(value, "to_dict"):
74
+ result[attr] = value.to_dict()
75
+ elif isinstance(value, dict):
76
+ result[attr] = dict(map(
77
+ lambda item: (item[0], item[1].to_dict())
78
+ if hasattr(item[1], "to_dict") else item,
79
+ value.items()
80
+ ))
81
+ else:
82
+ if attr in self.sensitive_list:
83
+ result[attr] = "****"
84
+ else:
85
+ result[attr] = value
86
+
87
+ return result
88
+
89
+ def to_str(self):
90
+ """Returns the string representation of the model"""
91
+ import simplejson as json
92
+ if six.PY2:
93
+ import sys
94
+ reload(sys)
95
+ sys.setdefaultencoding("utf-8")
96
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
97
+
98
+ def __repr__(self):
99
+ """For `print`"""
100
+ return self.to_str()
101
+
102
+ def __eq__(self, other):
103
+ """Returns true if both objects are equal"""
104
+ if not isinstance(other, UpdateIDcsRequest):
105
+ return False
106
+
107
+ return self.__dict__ == other.__dict__
108
+
109
+ def __ne__(self, other):
110
+ """Returns true if both objects are not equal"""
111
+ return not self == other
@@ -0,0 +1,112 @@
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 UpdateIDcsResponse(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
+ 'body': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ r"""UpdateIDcsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body:
34
+ :type body: str
35
+ """
36
+
37
+ super(UpdateIDcsResponse, self).__init__()
38
+
39
+ self._body = None
40
+ self.discriminator = None
41
+
42
+ if body is not None:
43
+ self.body = body
44
+
45
+ @property
46
+ def body(self):
47
+ r"""Gets the body of this UpdateIDcsResponse.
48
+
49
+ :return: The body of this UpdateIDcsResponse.
50
+ :rtype: str
51
+ """
52
+ return self._body
53
+
54
+ @body.setter
55
+ def body(self, body):
56
+ r"""Sets the body of this UpdateIDcsResponse.
57
+
58
+ :param body: The body of this UpdateIDcsResponse.
59
+ :type body: str
60
+ """
61
+ self._body = body
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
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
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, UpdateIDcsResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ return not self == other
@@ -0,0 +1,139 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class UpdateIRackRequest:
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
+ 'irack_id': 'str',
21
+ 'body': 'IRackRequest'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'irack_id': 'irack_id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, irack_id=None, body=None):
30
+ r"""UpdateIRackRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param irack_id: iRack 唯一标识符
35
+ :type irack_id: str
36
+ :param body: Body of the UpdateIRackRequest
37
+ :type body: :class:`huaweicloudsdkclouddc.v1.IRackRequest`
38
+ """
39
+
40
+
41
+
42
+ self._irack_id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.irack_id = irack_id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def irack_id(self):
52
+ r"""Gets the irack_id of this UpdateIRackRequest.
53
+
54
+ iRack 唯一标识符
55
+
56
+ :return: The irack_id of this UpdateIRackRequest.
57
+ :rtype: str
58
+ """
59
+ return self._irack_id
60
+
61
+ @irack_id.setter
62
+ def irack_id(self, irack_id):
63
+ r"""Sets the irack_id of this UpdateIRackRequest.
64
+
65
+ iRack 唯一标识符
66
+
67
+ :param irack_id: The irack_id of this UpdateIRackRequest.
68
+ :type irack_id: str
69
+ """
70
+ self._irack_id = irack_id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this UpdateIRackRequest.
75
+
76
+ :return: The body of this UpdateIRackRequest.
77
+ :rtype: :class:`huaweicloudsdkclouddc.v1.IRackRequest`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this UpdateIRackRequest.
84
+
85
+ :param body: The body of this UpdateIRackRequest.
86
+ :type body: :class:`huaweicloudsdkclouddc.v1.IRackRequest`
87
+ """
88
+ self._body = body
89
+
90
+ def to_dict(self):
91
+ """Returns the model properties as a dict"""
92
+ result = {}
93
+
94
+ for attr, _ in six.iteritems(self.openapi_types):
95
+ value = getattr(self, attr)
96
+ if isinstance(value, list):
97
+ result[attr] = list(map(
98
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
99
+ value
100
+ ))
101
+ elif hasattr(value, "to_dict"):
102
+ result[attr] = value.to_dict()
103
+ elif isinstance(value, dict):
104
+ result[attr] = dict(map(
105
+ lambda item: (item[0], item[1].to_dict())
106
+ if hasattr(item[1], "to_dict") else item,
107
+ value.items()
108
+ ))
109
+ else:
110
+ if attr in self.sensitive_list:
111
+ result[attr] = "****"
112
+ else:
113
+ result[attr] = value
114
+
115
+ return result
116
+
117
+ def to_str(self):
118
+ """Returns the string representation of the model"""
119
+ import simplejson as json
120
+ if six.PY2:
121
+ import sys
122
+ reload(sys)
123
+ sys.setdefaultencoding("utf-8")
124
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
125
+
126
+ def __repr__(self):
127
+ """For `print`"""
128
+ return self.to_str()
129
+
130
+ def __eq__(self, other):
131
+ """Returns true if both objects are equal"""
132
+ if not isinstance(other, UpdateIRackRequest):
133
+ return False
134
+
135
+ return self.__dict__ == other.__dict__
136
+
137
+ def __ne__(self, other):
138
+ """Returns true if both objects are not equal"""
139
+ return not self == other
@@ -0,0 +1,112 @@
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 UpdateIRackResponse(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
+ 'body': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'body': 'body'
26
+ }
27
+
28
+ def __init__(self, body=None):
29
+ r"""UpdateIRackResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param body:
34
+ :type body: str
35
+ """
36
+
37
+ super(UpdateIRackResponse, self).__init__()
38
+
39
+ self._body = None
40
+ self.discriminator = None
41
+
42
+ if body is not None:
43
+ self.body = body
44
+
45
+ @property
46
+ def body(self):
47
+ r"""Gets the body of this UpdateIRackResponse.
48
+
49
+ :return: The body of this UpdateIRackResponse.
50
+ :rtype: str
51
+ """
52
+ return self._body
53
+
54
+ @body.setter
55
+ def body(self, body):
56
+ r"""Sets the body of this UpdateIRackResponse.
57
+
58
+ :param body: The body of this UpdateIRackResponse.
59
+ :type body: str
60
+ """
61
+ self._body = body
62
+
63
+ def to_dict(self):
64
+ """Returns the model properties as a dict"""
65
+ result = {}
66
+
67
+ for attr, _ in six.iteritems(self.openapi_types):
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
+ if six.PY2:
94
+ import sys
95
+ reload(sys)
96
+ sys.setdefaultencoding("utf-8")
97
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
98
+
99
+ def __repr__(self):
100
+ """For `print`"""
101
+ return self.to_str()
102
+
103
+ def __eq__(self, other):
104
+ """Returns true if both objects are equal"""
105
+ if not isinstance(other, UpdateIRackResponse):
106
+ return False
107
+
108
+ return self.__dict__ == other.__dict__
109
+
110
+ def __ne__(self, other):
111
+ """Returns true if both objects are not equal"""
112
+ 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 UserData:
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"""UserData
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, UserData):
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