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