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.

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.160.dist-info/LICENSE +13 -0
  139. huaweicloudsdkclouddc-3.1.160.dist-info/METADATA +26 -0
  140. huaweicloudsdkclouddc-3.1.160.dist-info/RECORD +142 -0
  141. huaweicloudsdkclouddc-3.1.160.dist-info/WHEEL +5 -0
  142. huaweicloudsdkclouddc-3.1.160.dist-info/top_level.txt +1 -0
@@ -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 BatchDeleteIrackTagsRequest:
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
+ 'body': 'ResourceTags'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'id': 'id',
26
+ 'body': 'body'
27
+ }
28
+
29
+ def __init__(self, id=None, body=None):
30
+ r"""BatchDeleteIrackTagsRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param id: 资源id
35
+ :type id: str
36
+ :param body: Body of the BatchDeleteIrackTagsRequest
37
+ :type body: :class:`huaweicloudsdkclouddc.v1.ResourceTags`
38
+ """
39
+
40
+
41
+
42
+ self._id = None
43
+ self._body = None
44
+ self.discriminator = None
45
+
46
+ self.id = id
47
+ if body is not None:
48
+ self.body = body
49
+
50
+ @property
51
+ def id(self):
52
+ r"""Gets the id of this BatchDeleteIrackTagsRequest.
53
+
54
+ 资源id
55
+
56
+ :return: The id of this BatchDeleteIrackTagsRequest.
57
+ :rtype: str
58
+ """
59
+ return self._id
60
+
61
+ @id.setter
62
+ def id(self, id):
63
+ r"""Sets the id of this BatchDeleteIrackTagsRequest.
64
+
65
+ 资源id
66
+
67
+ :param id: The id of this BatchDeleteIrackTagsRequest.
68
+ :type id: str
69
+ """
70
+ self._id = id
71
+
72
+ @property
73
+ def body(self):
74
+ r"""Gets the body of this BatchDeleteIrackTagsRequest.
75
+
76
+ :return: The body of this BatchDeleteIrackTagsRequest.
77
+ :rtype: :class:`huaweicloudsdkclouddc.v1.ResourceTags`
78
+ """
79
+ return self._body
80
+
81
+ @body.setter
82
+ def body(self, body):
83
+ r"""Sets the body of this BatchDeleteIrackTagsRequest.
84
+
85
+ :param body: The body of this BatchDeleteIrackTagsRequest.
86
+ :type body: :class:`huaweicloudsdkclouddc.v1.ResourceTags`
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, BatchDeleteIrackTagsRequest):
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,85 @@
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 BatchDeleteIrackTagsResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ r"""BatchDeleteIrackTagsResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(BatchDeleteIrackTagsResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, BatchDeleteIrackTagsResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ 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 BatchDeleteOptions:
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
+ 'instance_id_set': 'list[str]'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'instance_id_set': 'instance_id_set'
25
+ }
26
+
27
+ def __init__(self, instance_id_set=None):
28
+ r"""BatchDeleteOptions
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param instance_id_set: instance id set
33
+ :type instance_id_set: list[str]
34
+ """
35
+
36
+
37
+
38
+ self._instance_id_set = None
39
+ self.discriminator = None
40
+
41
+ if instance_id_set is not None:
42
+ self.instance_id_set = instance_id_set
43
+
44
+ @property
45
+ def instance_id_set(self):
46
+ r"""Gets the instance_id_set of this BatchDeleteOptions.
47
+
48
+ instance id set
49
+
50
+ :return: The instance_id_set of this BatchDeleteOptions.
51
+ :rtype: list[str]
52
+ """
53
+ return self._instance_id_set
54
+
55
+ @instance_id_set.setter
56
+ def instance_id_set(self, instance_id_set):
57
+ r"""Sets the instance_id_set of this BatchDeleteOptions.
58
+
59
+ instance id set
60
+
61
+ :param instance_id_set: The instance_id_set of this BatchDeleteOptions.
62
+ :type instance_id_set: list[str]
63
+ """
64
+ self._instance_id_set = instance_id_set
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, BatchDeleteOptions):
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,167 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class BatchDeleteTagsRequest:
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
+ 'resource_type': 'str',
21
+ 'resource_id': 'str',
22
+ 'body': 'ResourceTags'
23
+ }
24
+
25
+ attribute_map = {
26
+ 'resource_type': 'resource_type',
27
+ 'resource_id': 'resource_id',
28
+ 'body': 'body'
29
+ }
30
+
31
+ def __init__(self, resource_type=None, resource_id=None, body=None):
32
+ r"""BatchDeleteTagsRequest
33
+
34
+ The model defined in huaweicloud sdk
35
+
36
+ :param resource_type: 资源类型
37
+ :type resource_type: str
38
+ :param resource_id: 资源id
39
+ :type resource_id: str
40
+ :param body: Body of the BatchDeleteTagsRequest
41
+ :type body: :class:`huaweicloudsdkclouddc.v1.ResourceTags`
42
+ """
43
+
44
+
45
+
46
+ self._resource_type = None
47
+ self._resource_id = None
48
+ self._body = None
49
+ self.discriminator = None
50
+
51
+ self.resource_type = resource_type
52
+ self.resource_id = resource_id
53
+ if body is not None:
54
+ self.body = body
55
+
56
+ @property
57
+ def resource_type(self):
58
+ r"""Gets the resource_type of this BatchDeleteTagsRequest.
59
+
60
+ 资源类型
61
+
62
+ :return: The resource_type of this BatchDeleteTagsRequest.
63
+ :rtype: str
64
+ """
65
+ return self._resource_type
66
+
67
+ @resource_type.setter
68
+ def resource_type(self, resource_type):
69
+ r"""Sets the resource_type of this BatchDeleteTagsRequest.
70
+
71
+ 资源类型
72
+
73
+ :param resource_type: The resource_type of this BatchDeleteTagsRequest.
74
+ :type resource_type: str
75
+ """
76
+ self._resource_type = resource_type
77
+
78
+ @property
79
+ def resource_id(self):
80
+ r"""Gets the resource_id of this BatchDeleteTagsRequest.
81
+
82
+ 资源id
83
+
84
+ :return: The resource_id of this BatchDeleteTagsRequest.
85
+ :rtype: str
86
+ """
87
+ return self._resource_id
88
+
89
+ @resource_id.setter
90
+ def resource_id(self, resource_id):
91
+ r"""Sets the resource_id of this BatchDeleteTagsRequest.
92
+
93
+ 资源id
94
+
95
+ :param resource_id: The resource_id of this BatchDeleteTagsRequest.
96
+ :type resource_id: str
97
+ """
98
+ self._resource_id = resource_id
99
+
100
+ @property
101
+ def body(self):
102
+ r"""Gets the body of this BatchDeleteTagsRequest.
103
+
104
+ :return: The body of this BatchDeleteTagsRequest.
105
+ :rtype: :class:`huaweicloudsdkclouddc.v1.ResourceTags`
106
+ """
107
+ return self._body
108
+
109
+ @body.setter
110
+ def body(self, body):
111
+ r"""Sets the body of this BatchDeleteTagsRequest.
112
+
113
+ :param body: The body of this BatchDeleteTagsRequest.
114
+ :type body: :class:`huaweicloudsdkclouddc.v1.ResourceTags`
115
+ """
116
+ self._body = body
117
+
118
+ def to_dict(self):
119
+ """Returns the model properties as a dict"""
120
+ result = {}
121
+
122
+ for attr, _ in six.iteritems(self.openapi_types):
123
+ value = getattr(self, attr)
124
+ if isinstance(value, list):
125
+ result[attr] = list(map(
126
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
127
+ value
128
+ ))
129
+ elif hasattr(value, "to_dict"):
130
+ result[attr] = value.to_dict()
131
+ elif isinstance(value, dict):
132
+ result[attr] = dict(map(
133
+ lambda item: (item[0], item[1].to_dict())
134
+ if hasattr(item[1], "to_dict") else item,
135
+ value.items()
136
+ ))
137
+ else:
138
+ if attr in self.sensitive_list:
139
+ result[attr] = "****"
140
+ else:
141
+ result[attr] = value
142
+
143
+ return result
144
+
145
+ def to_str(self):
146
+ """Returns the string representation of the model"""
147
+ import simplejson as json
148
+ if six.PY2:
149
+ import sys
150
+ reload(sys)
151
+ sys.setdefaultencoding("utf-8")
152
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
153
+
154
+ def __repr__(self):
155
+ """For `print`"""
156
+ return self.to_str()
157
+
158
+ def __eq__(self, other):
159
+ """Returns true if both objects are equal"""
160
+ if not isinstance(other, BatchDeleteTagsRequest):
161
+ return False
162
+
163
+ return self.__dict__ == other.__dict__
164
+
165
+ def __ne__(self, other):
166
+ """Returns true if both objects are not equal"""
167
+ return not self == other
@@ -0,0 +1,85 @@
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 BatchDeleteTagsResponse(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
+ }
22
+
23
+ attribute_map = {
24
+ }
25
+
26
+ def __init__(self):
27
+ r"""BatchDeleteTagsResponse
28
+
29
+ The model defined in huaweicloud sdk
30
+
31
+ """
32
+
33
+ super(BatchDeleteTagsResponse, self).__init__()
34
+ self.discriminator = None
35
+
36
+ def to_dict(self):
37
+ """Returns the model properties as a dict"""
38
+ result = {}
39
+
40
+ for attr, _ in six.iteritems(self.openapi_types):
41
+ value = getattr(self, attr)
42
+ if isinstance(value, list):
43
+ result[attr] = list(map(
44
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
45
+ value
46
+ ))
47
+ elif hasattr(value, "to_dict"):
48
+ result[attr] = value.to_dict()
49
+ elif isinstance(value, dict):
50
+ result[attr] = dict(map(
51
+ lambda item: (item[0], item[1].to_dict())
52
+ if hasattr(item[1], "to_dict") else item,
53
+ value.items()
54
+ ))
55
+ else:
56
+ if attr in self.sensitive_list:
57
+ result[attr] = "****"
58
+ else:
59
+ result[attr] = value
60
+
61
+ return result
62
+
63
+ def to_str(self):
64
+ """Returns the string representation of the model"""
65
+ import simplejson as json
66
+ if six.PY2:
67
+ import sys
68
+ reload(sys)
69
+ sys.setdefaultencoding("utf-8")
70
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
71
+
72
+ def __repr__(self):
73
+ """For `print`"""
74
+ return self.to_str()
75
+
76
+ def __eq__(self, other):
77
+ """Returns true if both objects are equal"""
78
+ if not isinstance(other, BatchDeleteTagsResponse):
79
+ return False
80
+
81
+ return self.__dict__ == other.__dict__
82
+
83
+ def __ne__(self, other):
84
+ """Returns true if both objects are not equal"""
85
+ 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 CapacityBytes:
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"""CapacityBytes
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, CapacityBytes):
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