huaweicloudsdkmrs 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.
Files changed (215) hide show
  1. huaweicloudsdkmrs/__init__.py +0 -0
  2. huaweicloudsdkmrs/v1/__init__.py +87 -0
  3. huaweicloudsdkmrs/v1/model/__init__.py +84 -0
  4. huaweicloudsdkmrs/v1/model/add_jobs_req_v11.py +431 -0
  5. huaweicloudsdkmrs/v1/model/auto_scaling_policy.py +257 -0
  6. huaweicloudsdkmrs/v1/model/auto_scaling_policy_req_v11.py +138 -0
  7. huaweicloudsdkmrs/v1/model/available_tag.py +173 -0
  8. huaweicloudsdkmrs/v1/model/available_zone_v2.py +343 -0
  9. huaweicloudsdkmrs/v1/model/batch_create_cluster_tags_req.py +142 -0
  10. huaweicloudsdkmrs/v1/model/batch_create_cluster_tags_request.py +139 -0
  11. huaweicloudsdkmrs/v1/model/batch_create_cluster_tags_response.py +85 -0
  12. huaweicloudsdkmrs/v1/model/batch_delete_cluster_tags_req.py +142 -0
  13. huaweicloudsdkmrs/v1/model/batch_delete_cluster_tags_request.py +139 -0
  14. huaweicloudsdkmrs/v1/model/batch_delete_cluster_tags_response.py +85 -0
  15. huaweicloudsdkmrs/v1/model/bootstrap_script.py +372 -0
  16. huaweicloudsdkmrs/v1/model/cluster.py +2058 -0
  17. huaweicloudsdkmrs/v1/model/cluster_scaling_params.py +340 -0
  18. huaweicloudsdkmrs/v1/model/cluster_scaling_req.py +197 -0
  19. huaweicloudsdkmrs/v1/model/component_amb.py +202 -0
  20. huaweicloudsdkmrs/v1/model/component_amb_v11.py +114 -0
  21. huaweicloudsdkmrs/v1/model/component_external_datasource.py +144 -0
  22. huaweicloudsdkmrs/v1/model/create_and_execute_job_request.py +111 -0
  23. huaweicloudsdkmrs/v1/model/create_and_execute_job_response.py +1334 -0
  24. huaweicloudsdkmrs/v1/model/create_cluster_req_v11.py +1119 -0
  25. huaweicloudsdkmrs/v1/model/create_cluster_request.py +111 -0
  26. huaweicloudsdkmrs/v1/model/create_cluster_response.py +174 -0
  27. huaweicloudsdkmrs/v1/model/create_cluster_tag_request.py +139 -0
  28. huaweicloudsdkmrs/v1/model/create_cluster_tag_response.py +85 -0
  29. huaweicloudsdkmrs/v1/model/create_scaling_policy_request.py +139 -0
  30. huaweicloudsdkmrs/v1/model/create_scaling_policy_response.py +116 -0
  31. huaweicloudsdkmrs/v1/model/create_tag_req.py +110 -0
  32. huaweicloudsdkmrs/v1/model/delete_cluster_request.py +114 -0
  33. huaweicloudsdkmrs/v1/model/delete_cluster_response.py +112 -0
  34. huaweicloudsdkmrs/v1/model/delete_cluster_tag_request.py +142 -0
  35. huaweicloudsdkmrs/v1/model/delete_cluster_tag_response.py +85 -0
  36. huaweicloudsdkmrs/v1/model/delete_job_execution_request.py +114 -0
  37. huaweicloudsdkmrs/v1/model/delete_job_execution_response.py +85 -0
  38. huaweicloudsdkmrs/v1/model/flavor_lists.py +173 -0
  39. huaweicloudsdkmrs/v1/model/host_model.py +550 -0
  40. huaweicloudsdkmrs/v1/model/job_exe_result.py +1011 -0
  41. huaweicloudsdkmrs/v1/model/list_all_tags_request.py +84 -0
  42. huaweicloudsdkmrs/v1/model/list_all_tags_response.py +116 -0
  43. huaweicloudsdkmrs/v1/model/list_available_zones_request.py +143 -0
  44. huaweicloudsdkmrs/v1/model/list_available_zones_response.py +174 -0
  45. huaweicloudsdkmrs/v1/model/list_cluster_tags_request.py +114 -0
  46. huaweicloudsdkmrs/v1/model/list_cluster_tags_response.py +116 -0
  47. huaweicloudsdkmrs/v1/model/list_clusters_by_tags_request.py +111 -0
  48. huaweicloudsdkmrs/v1/model/list_clusters_by_tags_response.py +145 -0
  49. huaweicloudsdkmrs/v1/model/list_clusters_request.py +260 -0
  50. huaweicloudsdkmrs/v1/model/list_clusters_response.py +145 -0
  51. huaweicloudsdkmrs/v1/model/list_execute_job_request.py +259 -0
  52. huaweicloudsdkmrs/v1/model/list_execute_job_response.py +145 -0
  53. huaweicloudsdkmrs/v1/model/list_hosts_request.py +172 -0
  54. huaweicloudsdkmrs/v1/model/list_hosts_response.py +145 -0
  55. huaweicloudsdkmrs/v1/model/list_resource_req.py +317 -0
  56. huaweicloudsdkmrs/v1/model/match.py +144 -0
  57. huaweicloudsdkmrs/v1/model/mrs_resource.py +202 -0
  58. huaweicloudsdkmrs/v1/model/node_constraint.py +376 -0
  59. huaweicloudsdkmrs/v1/model/node_constraints.py +315 -0
  60. huaweicloudsdkmrs/v1/model/node_group_v10.py +608 -0
  61. huaweicloudsdkmrs/v1/model/node_group_v11.py +340 -0
  62. huaweicloudsdkmrs/v1/model/resources_plan.py +226 -0
  63. huaweicloudsdkmrs/v1/model/role_deploy_meta.py +637 -0
  64. huaweicloudsdkmrs/v1/model/rule.py +251 -0
  65. huaweicloudsdkmrs/v1/model/scale_script.py +284 -0
  66. huaweicloudsdkmrs/v1/model/show_cluster_details_request.py +114 -0
  67. huaweicloudsdkmrs/v1/model/show_cluster_details_response.py +112 -0
  68. huaweicloudsdkmrs/v1/model/show_job_exes_request.py +114 -0
  69. huaweicloudsdkmrs/v1/model/show_job_exes_response.py +112 -0
  70. huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_request.py +143 -0
  71. huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_response.py +456 -0
  72. huaweicloudsdkmrs/v1/model/submit_job_req_v11.py +402 -0
  73. huaweicloudsdkmrs/v1/model/tag.py +142 -0
  74. huaweicloudsdkmrs/v1/model/tag_plain.py +144 -0
  75. huaweicloudsdkmrs/v1/model/tag_with_multi_value.py +143 -0
  76. huaweicloudsdkmrs/v1/model/task_node_group.py +251 -0
  77. huaweicloudsdkmrs/v1/model/task_node_info.py +198 -0
  78. huaweicloudsdkmrs/v1/model/trigger.py +199 -0
  79. huaweicloudsdkmrs/v1/model/update_cluster_scaling_request.py +139 -0
  80. huaweicloudsdkmrs/v1/model/update_cluster_scaling_response.py +116 -0
  81. huaweicloudsdkmrs/v1/model/version_component.py +434 -0
  82. huaweicloudsdkmrs/v1/model/version_constraint.py +169 -0
  83. huaweicloudsdkmrs/v1/mrs_async_client.py +1467 -0
  84. huaweicloudsdkmrs/v1/mrs_client.py +1464 -0
  85. huaweicloudsdkmrs/v1/region/__init__.py +0 -0
  86. huaweicloudsdkmrs/v1/region/mrs_region.py +103 -0
  87. huaweicloudsdkmrs/v2/__init__.py +126 -0
  88. huaweicloudsdkmrs/v2/model/__init__.py +123 -0
  89. huaweicloudsdkmrs/v2/model/add_component_request.py +139 -0
  90. huaweicloudsdkmrs/v2/model/add_component_response.py +116 -0
  91. huaweicloudsdkmrs/v2/model/add_components_req.py +114 -0
  92. huaweicloudsdkmrs/v2/model/add_jobs_req_v11.py +431 -0
  93. huaweicloudsdkmrs/v2/model/agency_mapping.py +198 -0
  94. huaweicloudsdkmrs/v2/model/agency_mapping_array.py +114 -0
  95. huaweicloudsdkmrs/v2/model/assigned_node_group.py +142 -0
  96. huaweicloudsdkmrs/v2/model/auto_scaling_policy.py +257 -0
  97. huaweicloudsdkmrs/v2/model/auto_scaling_policy_delete_req.py +142 -0
  98. huaweicloudsdkmrs/v2/model/auto_scaling_policy_info.py +257 -0
  99. huaweicloudsdkmrs/v2/model/auto_scaling_policy_v2.py +167 -0
  100. huaweicloudsdkmrs/v2/model/az_flavors.py +231 -0
  101. huaweicloudsdkmrs/v2/model/batch_delete_jobs_request.py +139 -0
  102. huaweicloudsdkmrs/v2/model/batch_delete_jobs_response.py +85 -0
  103. huaweicloudsdkmrs/v2/model/bootstrap_script.py +372 -0
  104. huaweicloudsdkmrs/v2/model/cancel_sql_request.py +142 -0
  105. huaweicloudsdkmrs/v2/model/cancel_sql_response.py +145 -0
  106. huaweicloudsdkmrs/v2/model/cancel_sync_iam_user_request.py +139 -0
  107. huaweicloudsdkmrs/v2/model/cancel_sync_iam_user_response.py +116 -0
  108. huaweicloudsdkmrs/v2/model/cancel_sync_request.py +144 -0
  109. huaweicloudsdkmrs/v2/model/charge_info.py +201 -0
  110. huaweicloudsdkmrs/v2/model/cluster_data_connector_map.py +289 -0
  111. huaweicloudsdkmrs/v2/model/cluster_node.py +396 -0
  112. huaweicloudsdkmrs/v2/model/component_config.py +143 -0
  113. huaweicloudsdkmrs/v2/model/component_info.py +521 -0
  114. huaweicloudsdkmrs/v2/model/component_install_mode.py +200 -0
  115. huaweicloudsdkmrs/v2/model/config.py +170 -0
  116. huaweicloudsdkmrs/v2/model/create_auto_scaling_policy_request.py +139 -0
  117. huaweicloudsdkmrs/v2/model/create_auto_scaling_policy_response.py +85 -0
  118. huaweicloudsdkmrs/v2/model/create_cluster_req_v2.py +994 -0
  119. huaweicloudsdkmrs/v2/model/create_cluster_request.py +111 -0
  120. huaweicloudsdkmrs/v2/model/create_cluster_response.py +116 -0
  121. huaweicloudsdkmrs/v2/model/create_data_connector_request.py +111 -0
  122. huaweicloudsdkmrs/v2/model/create_data_connector_response.py +116 -0
  123. huaweicloudsdkmrs/v2/model/create_execute_job_request.py +139 -0
  124. huaweicloudsdkmrs/v2/model/create_execute_job_response.py +112 -0
  125. huaweicloudsdkmrs/v2/model/data_connector.py +170 -0
  126. huaweicloudsdkmrs/v2/model/data_connector_detail.py +460 -0
  127. huaweicloudsdkmrs/v2/model/data_connector_req.py +110 -0
  128. huaweicloudsdkmrs/v2/model/delete_auto_scaling_policy_request.py +139 -0
  129. huaweicloudsdkmrs/v2/model/delete_auto_scaling_policy_response.py +85 -0
  130. huaweicloudsdkmrs/v2/model/delete_data_connector_request.py +114 -0
  131. huaweicloudsdkmrs/v2/model/delete_data_connector_response.py +85 -0
  132. huaweicloudsdkmrs/v2/model/execute_sql_request.py +139 -0
  133. huaweicloudsdkmrs/v2/model/execute_sql_response.py +261 -0
  134. huaweicloudsdkmrs/v2/model/expand_cluster_request.py +139 -0
  135. huaweicloudsdkmrs/v2/model/expand_cluster_response.py +145 -0
  136. huaweicloudsdkmrs/v2/model/expand_param.py +200 -0
  137. huaweicloudsdkmrs/v2/model/file_status_v2.py +405 -0
  138. huaweicloudsdkmrs/v2/model/flavor.py +115 -0
  139. huaweicloudsdkmrs/v2/model/job_batch_delete.py +115 -0
  140. huaweicloudsdkmrs/v2/model/job_execution.py +200 -0
  141. huaweicloudsdkmrs/v2/model/job_query_bean.py +579 -0
  142. huaweicloudsdkmrs/v2/model/job_submit_result.py +144 -0
  143. huaweicloudsdkmrs/v2/model/list_data_connector_request.py +260 -0
  144. huaweicloudsdkmrs/v2/model/list_data_connector_response.py +145 -0
  145. huaweicloudsdkmrs/v2/model/list_nodes_request.py +375 -0
  146. huaweicloudsdkmrs/v2/model/list_nodes_response.py +145 -0
  147. huaweicloudsdkmrs/v2/model/modify_default_tags_request_body.py +114 -0
  148. huaweicloudsdkmrs/v2/model/node_detail.py +376 -0
  149. huaweicloudsdkmrs/v2/model/node_group_v2.py +328 -0
  150. huaweicloudsdkmrs/v2/model/resources_plan.py +255 -0
  151. huaweicloudsdkmrs/v2/model/rule.py +251 -0
  152. huaweicloudsdkmrs/v2/model/run_job_flow_command.py +997 -0
  153. huaweicloudsdkmrs/v2/model/run_job_flow_request.py +111 -0
  154. huaweicloudsdkmrs/v2/model/run_job_flow_response.py +116 -0
  155. huaweicloudsdkmrs/v2/model/scale_script.py +284 -0
  156. huaweicloudsdkmrs/v2/model/server_info.py +340 -0
  157. huaweicloudsdkmrs/v2/model/show_agency_mapping_request.py +114 -0
  158. huaweicloudsdkmrs/v2/model/show_agency_mapping_response.py +116 -0
  159. huaweicloudsdkmrs/v2/model/show_auto_scaling_policy_request.py +114 -0
  160. huaweicloudsdkmrs/v2/model/show_auto_scaling_policy_response.py +116 -0
  161. huaweicloudsdkmrs/v2/model/show_hdfs_file_list_request.py +258 -0
  162. huaweicloudsdkmrs/v2/model/show_hdfs_file_list_response.py +145 -0
  163. huaweicloudsdkmrs/v2/model/show_job_exe_list_new_request.py +462 -0
  164. huaweicloudsdkmrs/v2/model/show_job_exe_list_new_response.py +145 -0
  165. huaweicloudsdkmrs/v2/model/show_mrs_flavors_request.py +143 -0
  166. huaweicloudsdkmrs/v2/model/show_mrs_flavors_response.py +145 -0
  167. huaweicloudsdkmrs/v2/model/show_mrs_version_list_request.py +84 -0
  168. huaweicloudsdkmrs/v2/model/show_mrs_version_list_response.py +116 -0
  169. huaweicloudsdkmrs/v2/model/show_single_job_exe_request.py +142 -0
  170. huaweicloudsdkmrs/v2/model/show_single_job_exe_response.py +112 -0
  171. huaweicloudsdkmrs/v2/model/show_sql_result_request.py +142 -0
  172. huaweicloudsdkmrs/v2/model/show_sql_result_response.py +261 -0
  173. huaweicloudsdkmrs/v2/model/show_sql_result_with_job_request.py +142 -0
  174. huaweicloudsdkmrs/v2/model/show_sql_result_with_job_response.py +116 -0
  175. huaweicloudsdkmrs/v2/model/show_sync_iam_user_request.py +114 -0
  176. huaweicloudsdkmrs/v2/model/show_sync_iam_user_response.py +145 -0
  177. huaweicloudsdkmrs/v2/model/show_tag_quota_request.py +143 -0
  178. huaweicloudsdkmrs/v2/model/show_tag_quota_response.py +145 -0
  179. huaweicloudsdkmrs/v2/model/show_tag_status_request.py +114 -0
  180. huaweicloudsdkmrs/v2/model/show_tag_status_response.py +145 -0
  181. huaweicloudsdkmrs/v2/model/shrink_cluster_request.py +139 -0
  182. huaweicloudsdkmrs/v2/model/shrink_cluster_response.py +116 -0
  183. huaweicloudsdkmrs/v2/model/shrink_param.py +172 -0
  184. huaweicloudsdkmrs/v2/model/smn_notify.py +144 -0
  185. huaweicloudsdkmrs/v2/model/sql_execution_req.py +200 -0
  186. huaweicloudsdkmrs/v2/model/step_config.py +110 -0
  187. huaweicloudsdkmrs/v2/model/stop_job_request.py +142 -0
  188. huaweicloudsdkmrs/v2/model/stop_job_response.py +85 -0
  189. huaweicloudsdkmrs/v2/model/switch_cluster_tags_request.py +139 -0
  190. huaweicloudsdkmrs/v2/model/switch_cluster_tags_response.py +85 -0
  191. huaweicloudsdkmrs/v2/model/tag.py +142 -0
  192. huaweicloudsdkmrs/v2/model/trigger.py +199 -0
  193. huaweicloudsdkmrs/v2/model/update_agency_mapping_request.py +139 -0
  194. huaweicloudsdkmrs/v2/model/update_agency_mapping_response.py +116 -0
  195. huaweicloudsdkmrs/v2/model/update_auto_scaling_policy_request.py +139 -0
  196. huaweicloudsdkmrs/v2/model/update_auto_scaling_policy_response.py +85 -0
  197. huaweicloudsdkmrs/v2/model/update_cluster_name_request.py +139 -0
  198. huaweicloudsdkmrs/v2/model/update_cluster_name_response.py +116 -0
  199. huaweicloudsdkmrs/v2/model/update_cluster_req.py +114 -0
  200. huaweicloudsdkmrs/v2/model/update_data_connector_request.py +139 -0
  201. huaweicloudsdkmrs/v2/model/update_data_connector_response.py +116 -0
  202. huaweicloudsdkmrs/v2/model/update_sync_iam_user_request.py +139 -0
  203. huaweicloudsdkmrs/v2/model/update_sync_iam_user_response.py +116 -0
  204. huaweicloudsdkmrs/v2/model/update_sync_request.py +173 -0
  205. huaweicloudsdkmrs/v2/model/volume.py +142 -0
  206. huaweicloudsdkmrs/v2/model/volume_info.py +170 -0
  207. huaweicloudsdkmrs/v2/mrs_async_client.py +2476 -0
  208. huaweicloudsdkmrs/v2/mrs_client.py +2473 -0
  209. huaweicloudsdkmrs/v2/region/__init__.py +0 -0
  210. huaweicloudsdkmrs/v2/region/mrs_region.py +103 -0
  211. huaweicloudsdkmrs-3.1.160.dist-info/LICENSE +13 -0
  212. huaweicloudsdkmrs-3.1.160.dist-info/METADATA +26 -0
  213. huaweicloudsdkmrs-3.1.160.dist-info/RECORD +215 -0
  214. huaweicloudsdkmrs-3.1.160.dist-info/WHEEL +5 -0
  215. huaweicloudsdkmrs-3.1.160.dist-info/top_level.txt +1 -0
@@ -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 ListAllTagsRequest:
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"""ListAllTagsRequest
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, ListAllTagsRequest):
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
@@ -0,0 +1,116 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.sdk_response import SdkResponse
6
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
7
+
8
+
9
+ class ListAllTagsResponse(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
+ 'tags': 'list[TagWithMultiValue]'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'tags': 'tags'
26
+ }
27
+
28
+ def __init__(self, tags=None):
29
+ r"""ListAllTagsResponse
30
+
31
+ The model defined in huaweicloud sdk
32
+
33
+ :param tags: 标签列表信息
34
+ :type tags: list[:class:`huaweicloudsdkmrs.v1.TagWithMultiValue`]
35
+ """
36
+
37
+ super(ListAllTagsResponse, self).__init__()
38
+
39
+ self._tags = None
40
+ self.discriminator = None
41
+
42
+ if tags is not None:
43
+ self.tags = tags
44
+
45
+ @property
46
+ def tags(self):
47
+ r"""Gets the tags of this ListAllTagsResponse.
48
+
49
+ 标签列表信息
50
+
51
+ :return: The tags of this ListAllTagsResponse.
52
+ :rtype: list[:class:`huaweicloudsdkmrs.v1.TagWithMultiValue`]
53
+ """
54
+ return self._tags
55
+
56
+ @tags.setter
57
+ def tags(self, tags):
58
+ r"""Sets the tags of this ListAllTagsResponse.
59
+
60
+ 标签列表信息
61
+
62
+ :param tags: The tags of this ListAllTagsResponse.
63
+ :type tags: list[:class:`huaweicloudsdkmrs.v1.TagWithMultiValue`]
64
+ """
65
+ self._tags = tags
66
+
67
+ def to_dict(self):
68
+ """Returns the model properties as a dict"""
69
+ result = {}
70
+
71
+ for attr, _ in six.iteritems(self.openapi_types):
72
+ value = getattr(self, attr)
73
+ if isinstance(value, list):
74
+ result[attr] = list(map(
75
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
76
+ value
77
+ ))
78
+ elif hasattr(value, "to_dict"):
79
+ result[attr] = value.to_dict()
80
+ elif isinstance(value, dict):
81
+ result[attr] = dict(map(
82
+ lambda item: (item[0], item[1].to_dict())
83
+ if hasattr(item[1], "to_dict") else item,
84
+ value.items()
85
+ ))
86
+ else:
87
+ if attr in self.sensitive_list:
88
+ result[attr] = "****"
89
+ else:
90
+ result[attr] = value
91
+
92
+ return result
93
+
94
+ def to_str(self):
95
+ """Returns the string representation of the model"""
96
+ import simplejson as json
97
+ if six.PY2:
98
+ import sys
99
+ reload(sys)
100
+ sys.setdefaultencoding("utf-8")
101
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
102
+
103
+ def __repr__(self):
104
+ """For `print`"""
105
+ return self.to_str()
106
+
107
+ def __eq__(self, other):
108
+ """Returns true if both objects are equal"""
109
+ if not isinstance(other, ListAllTagsResponse):
110
+ return False
111
+
112
+ return self.__dict__ == other.__dict__
113
+
114
+ def __ne__(self, other):
115
+ """Returns true if both objects are not equal"""
116
+ return not self == other
@@ -0,0 +1,143 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListAvailableZonesRequest:
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
+ 'region_id': 'str',
21
+ 'scope': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'region_id': 'region_id',
26
+ 'scope': 'scope'
27
+ }
28
+
29
+ def __init__(self, region_id=None, scope=None):
30
+ r"""ListAvailableZonesRequest
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param region_id: 区域id,例如cn-north-4
35
+ :type region_id: str
36
+ :param scope: 可用区范围
37
+ :type scope: str
38
+ """
39
+
40
+
41
+
42
+ self._region_id = None
43
+ self._scope = None
44
+ self.discriminator = None
45
+
46
+ self.region_id = region_id
47
+ if scope is not None:
48
+ self.scope = scope
49
+
50
+ @property
51
+ def region_id(self):
52
+ r"""Gets the region_id of this ListAvailableZonesRequest.
53
+
54
+ 区域id,例如cn-north-4
55
+
56
+ :return: The region_id of this ListAvailableZonesRequest.
57
+ :rtype: str
58
+ """
59
+ return self._region_id
60
+
61
+ @region_id.setter
62
+ def region_id(self, region_id):
63
+ r"""Sets the region_id of this ListAvailableZonesRequest.
64
+
65
+ 区域id,例如cn-north-4
66
+
67
+ :param region_id: The region_id of this ListAvailableZonesRequest.
68
+ :type region_id: str
69
+ """
70
+ self._region_id = region_id
71
+
72
+ @property
73
+ def scope(self):
74
+ r"""Gets the scope of this ListAvailableZonesRequest.
75
+
76
+ 可用区范围
77
+
78
+ :return: The scope of this ListAvailableZonesRequest.
79
+ :rtype: str
80
+ """
81
+ return self._scope
82
+
83
+ @scope.setter
84
+ def scope(self, scope):
85
+ r"""Sets the scope of this ListAvailableZonesRequest.
86
+
87
+ 可用区范围
88
+
89
+ :param scope: The scope of this ListAvailableZonesRequest.
90
+ :type scope: str
91
+ """
92
+ self._scope = scope
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, ListAvailableZonesRequest):
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,174 @@
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 ListAvailableZonesResponse(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
+ 'available_zones': 'list[AvailableZoneV2]',
22
+ 'default_az_code': 'str',
23
+ 'support_physical_az_group': 'bool'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'available_zones': 'available_zones',
28
+ 'default_az_code': 'default_az_code',
29
+ 'support_physical_az_group': 'support_physical_az_group'
30
+ }
31
+
32
+ def __init__(self, available_zones=None, default_az_code=None, support_physical_az_group=None):
33
+ r"""ListAvailableZonesResponse
34
+
35
+ The model defined in huaweicloud sdk
36
+
37
+ :param available_zones: 可用区列表
38
+ :type available_zones: list[:class:`huaweicloudsdkmrs.v1.AvailableZoneV2`]
39
+ :param default_az_code: 默认可用区编码
40
+ :type default_az_code: str
41
+ :param support_physical_az_group: 支持的物理可用区分组
42
+ :type support_physical_az_group: bool
43
+ """
44
+
45
+ super(ListAvailableZonesResponse, self).__init__()
46
+
47
+ self._available_zones = None
48
+ self._default_az_code = None
49
+ self._support_physical_az_group = None
50
+ self.discriminator = None
51
+
52
+ if available_zones is not None:
53
+ self.available_zones = available_zones
54
+ if default_az_code is not None:
55
+ self.default_az_code = default_az_code
56
+ if support_physical_az_group is not None:
57
+ self.support_physical_az_group = support_physical_az_group
58
+
59
+ @property
60
+ def available_zones(self):
61
+ r"""Gets the available_zones of this ListAvailableZonesResponse.
62
+
63
+ 可用区列表
64
+
65
+ :return: The available_zones of this ListAvailableZonesResponse.
66
+ :rtype: list[:class:`huaweicloudsdkmrs.v1.AvailableZoneV2`]
67
+ """
68
+ return self._available_zones
69
+
70
+ @available_zones.setter
71
+ def available_zones(self, available_zones):
72
+ r"""Sets the available_zones of this ListAvailableZonesResponse.
73
+
74
+ 可用区列表
75
+
76
+ :param available_zones: The available_zones of this ListAvailableZonesResponse.
77
+ :type available_zones: list[:class:`huaweicloudsdkmrs.v1.AvailableZoneV2`]
78
+ """
79
+ self._available_zones = available_zones
80
+
81
+ @property
82
+ def default_az_code(self):
83
+ r"""Gets the default_az_code of this ListAvailableZonesResponse.
84
+
85
+ 默认可用区编码
86
+
87
+ :return: The default_az_code of this ListAvailableZonesResponse.
88
+ :rtype: str
89
+ """
90
+ return self._default_az_code
91
+
92
+ @default_az_code.setter
93
+ def default_az_code(self, default_az_code):
94
+ r"""Sets the default_az_code of this ListAvailableZonesResponse.
95
+
96
+ 默认可用区编码
97
+
98
+ :param default_az_code: The default_az_code of this ListAvailableZonesResponse.
99
+ :type default_az_code: str
100
+ """
101
+ self._default_az_code = default_az_code
102
+
103
+ @property
104
+ def support_physical_az_group(self):
105
+ r"""Gets the support_physical_az_group of this ListAvailableZonesResponse.
106
+
107
+ 支持的物理可用区分组
108
+
109
+ :return: The support_physical_az_group of this ListAvailableZonesResponse.
110
+ :rtype: bool
111
+ """
112
+ return self._support_physical_az_group
113
+
114
+ @support_physical_az_group.setter
115
+ def support_physical_az_group(self, support_physical_az_group):
116
+ r"""Sets the support_physical_az_group of this ListAvailableZonesResponse.
117
+
118
+ 支持的物理可用区分组
119
+
120
+ :param support_physical_az_group: The support_physical_az_group of this ListAvailableZonesResponse.
121
+ :type support_physical_az_group: bool
122
+ """
123
+ self._support_physical_az_group = support_physical_az_group
124
+
125
+ def to_dict(self):
126
+ """Returns the model properties as a dict"""
127
+ result = {}
128
+
129
+ for attr, _ in six.iteritems(self.openapi_types):
130
+ value = getattr(self, attr)
131
+ if isinstance(value, list):
132
+ result[attr] = list(map(
133
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
134
+ value
135
+ ))
136
+ elif hasattr(value, "to_dict"):
137
+ result[attr] = value.to_dict()
138
+ elif isinstance(value, dict):
139
+ result[attr] = dict(map(
140
+ lambda item: (item[0], item[1].to_dict())
141
+ if hasattr(item[1], "to_dict") else item,
142
+ value.items()
143
+ ))
144
+ else:
145
+ if attr in self.sensitive_list:
146
+ result[attr] = "****"
147
+ else:
148
+ result[attr] = value
149
+
150
+ return result
151
+
152
+ def to_str(self):
153
+ """Returns the string representation of the model"""
154
+ import simplejson as json
155
+ if six.PY2:
156
+ import sys
157
+ reload(sys)
158
+ sys.setdefaultencoding("utf-8")
159
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
160
+
161
+ def __repr__(self):
162
+ """For `print`"""
163
+ return self.to_str()
164
+
165
+ def __eq__(self, other):
166
+ """Returns true if both objects are equal"""
167
+ if not isinstance(other, ListAvailableZonesResponse):
168
+ return False
169
+
170
+ return self.__dict__ == other.__dict__
171
+
172
+ def __ne__(self, other):
173
+ """Returns true if both objects are not equal"""
174
+ return not self == other
@@ -0,0 +1,114 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ListClusterTagsRequest:
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
+ 'cluster_id': 'str'
21
+ }
22
+
23
+ attribute_map = {
24
+ 'cluster_id': 'cluster_id'
25
+ }
26
+
27
+ def __init__(self, cluster_id=None):
28
+ r"""ListClusterTagsRequest
29
+
30
+ The model defined in huaweicloud sdk
31
+
32
+ :param cluster_id: 集群ID。获取方法,请参见[获取集群ID](https://support.huaweicloud.com/api-mrs/mrs_02_9001.html)。
33
+ :type cluster_id: str
34
+ """
35
+
36
+
37
+
38
+ self._cluster_id = None
39
+ self.discriminator = None
40
+
41
+ self.cluster_id = cluster_id
42
+
43
+ @property
44
+ def cluster_id(self):
45
+ r"""Gets the cluster_id of this ListClusterTagsRequest.
46
+
47
+ 集群ID。获取方法,请参见[获取集群ID](https://support.huaweicloud.com/api-mrs/mrs_02_9001.html)。
48
+
49
+ :return: The cluster_id of this ListClusterTagsRequest.
50
+ :rtype: str
51
+ """
52
+ return self._cluster_id
53
+
54
+ @cluster_id.setter
55
+ def cluster_id(self, cluster_id):
56
+ r"""Sets the cluster_id of this ListClusterTagsRequest.
57
+
58
+ 集群ID。获取方法,请参见[获取集群ID](https://support.huaweicloud.com/api-mrs/mrs_02_9001.html)。
59
+
60
+ :param cluster_id: The cluster_id of this ListClusterTagsRequest.
61
+ :type cluster_id: str
62
+ """
63
+ self._cluster_id = cluster_id
64
+
65
+ def to_dict(self):
66
+ """Returns the model properties as a dict"""
67
+ result = {}
68
+
69
+ for attr, _ in six.iteritems(self.openapi_types):
70
+ value = getattr(self, attr)
71
+ if isinstance(value, list):
72
+ result[attr] = list(map(
73
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
74
+ value
75
+ ))
76
+ elif hasattr(value, "to_dict"):
77
+ result[attr] = value.to_dict()
78
+ elif isinstance(value, dict):
79
+ result[attr] = dict(map(
80
+ lambda item: (item[0], item[1].to_dict())
81
+ if hasattr(item[1], "to_dict") else item,
82
+ value.items()
83
+ ))
84
+ else:
85
+ if attr in self.sensitive_list:
86
+ result[attr] = "****"
87
+ else:
88
+ result[attr] = value
89
+
90
+ return result
91
+
92
+ def to_str(self):
93
+ """Returns the string representation of the model"""
94
+ import simplejson as json
95
+ if six.PY2:
96
+ import sys
97
+ reload(sys)
98
+ sys.setdefaultencoding("utf-8")
99
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
100
+
101
+ def __repr__(self):
102
+ """For `print`"""
103
+ return self.to_str()
104
+
105
+ def __eq__(self, other):
106
+ """Returns true if both objects are equal"""
107
+ if not isinstance(other, ListClusterTagsRequest):
108
+ return False
109
+
110
+ return self.__dict__ == other.__dict__
111
+
112
+ def __ne__(self, other):
113
+ """Returns true if both objects are not equal"""
114
+ return not self == other