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,2058 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class Cluster:
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
+ 'cluster_name': 'str',
22
+ 'total_node_num': 'str',
23
+ 'cluster_state': 'str',
24
+ 'stage_desc': 'str',
25
+ 'create_at': 'str',
26
+ 'update_at': 'str',
27
+ 'charging_start_time': 'str',
28
+ 'billing_type': 'str',
29
+ 'data_center': 'str',
30
+ 'vpc': 'str',
31
+ 'vpc_id': 'str',
32
+ 'duration': 'str',
33
+ 'fee': 'str',
34
+ 'hadoop_version': 'str',
35
+ 'component_list': 'list[ComponentAmb]',
36
+ 'external_ip': 'str',
37
+ 'external_alternate_ip': 'str',
38
+ 'internal_ip': 'str',
39
+ 'deployment_id': 'str',
40
+ 'remark': 'str',
41
+ 'order_id': 'str',
42
+ 'az_id': 'str',
43
+ 'az_name': 'str',
44
+ 'az_code': 'str',
45
+ 'availability_zone_id': 'str',
46
+ 'instance_id': 'str',
47
+ 'vnc': 'str',
48
+ 'tenant_id': 'str',
49
+ 'volume_size': 'int',
50
+ 'volume_type': 'str',
51
+ 'subnet_id': 'str',
52
+ 'subnet_name': 'str',
53
+ 'security_groups_id': 'str',
54
+ 'slave_security_groups_id': 'str',
55
+ 'bootstrap_scripts': 'list[BootstrapScript]',
56
+ 'safe_mode': 'int',
57
+ 'cluster_version': 'str',
58
+ 'node_public_cert_name': 'str',
59
+ 'master_node_ip': 'str',
60
+ 'private_ip_first': 'str',
61
+ 'error_info': 'str',
62
+ 'tags': 'str',
63
+ 'master_node_num': 'str',
64
+ 'core_node_num': 'str',
65
+ 'master_node_size': 'str',
66
+ 'core_node_size': 'str',
67
+ 'master_node_product_id': 'str',
68
+ 'master_node_spec_id': 'str',
69
+ 'core_node_product_id': 'str',
70
+ 'core_node_spec_id': 'str',
71
+ 'master_data_volume_type': 'str',
72
+ 'master_data_volume_size': 'int',
73
+ 'master_data_volume_count': 'int',
74
+ 'core_data_volume_type': 'str',
75
+ 'core_data_volume_size': 'int',
76
+ 'core_data_volume_count': 'int',
77
+ 'enterprise_project_id': 'str',
78
+ 'is_mrs_manager_finish': 'bool',
79
+ 'cluster_type': 'int',
80
+ 'log_collection': 'int',
81
+ 'period_type': 'int',
82
+ 'scale': 'str',
83
+ 'node_groups': 'list[NodeGroupV10]',
84
+ 'task_node_groups': 'list[NodeGroupV10]',
85
+ 'eip_id': 'str',
86
+ 'eip_address': 'str',
87
+ 'eipv6_address': 'str'
88
+ }
89
+
90
+ attribute_map = {
91
+ 'cluster_id': 'clusterId',
92
+ 'cluster_name': 'clusterName',
93
+ 'total_node_num': 'totalNodeNum',
94
+ 'cluster_state': 'clusterState',
95
+ 'stage_desc': 'stageDesc',
96
+ 'create_at': 'createAt',
97
+ 'update_at': 'updateAt',
98
+ 'charging_start_time': 'chargingStartTime',
99
+ 'billing_type': 'billingType',
100
+ 'data_center': 'dataCenter',
101
+ 'vpc': 'vpc',
102
+ 'vpc_id': 'vpcId',
103
+ 'duration': 'duration',
104
+ 'fee': 'fee',
105
+ 'hadoop_version': 'hadoopVersion',
106
+ 'component_list': 'componentList',
107
+ 'external_ip': 'externalIp',
108
+ 'external_alternate_ip': 'externalAlternateIp',
109
+ 'internal_ip': 'internalIp',
110
+ 'deployment_id': 'deploymentId',
111
+ 'remark': 'remark',
112
+ 'order_id': 'orderId',
113
+ 'az_id': 'azId',
114
+ 'az_name': 'azName',
115
+ 'az_code': 'azCode',
116
+ 'availability_zone_id': 'availabilityZoneId',
117
+ 'instance_id': 'instanceId',
118
+ 'vnc': 'vnc',
119
+ 'tenant_id': 'tenantId',
120
+ 'volume_size': 'volumeSize',
121
+ 'volume_type': 'volumeType',
122
+ 'subnet_id': 'subnetId',
123
+ 'subnet_name': 'subnetName',
124
+ 'security_groups_id': 'securityGroupsId',
125
+ 'slave_security_groups_id': 'slaveSecurityGroupsId',
126
+ 'bootstrap_scripts': 'bootstrapScripts',
127
+ 'safe_mode': 'safeMode',
128
+ 'cluster_version': 'clusterVersion',
129
+ 'node_public_cert_name': 'nodePublicCertName',
130
+ 'master_node_ip': 'masterNodeIp',
131
+ 'private_ip_first': 'privateIpFirst',
132
+ 'error_info': 'errorInfo',
133
+ 'tags': 'tags',
134
+ 'master_node_num': 'masterNodeNum',
135
+ 'core_node_num': 'coreNodeNum',
136
+ 'master_node_size': 'masterNodeSize',
137
+ 'core_node_size': 'coreNodeSize',
138
+ 'master_node_product_id': 'masterNodeProductId',
139
+ 'master_node_spec_id': 'masterNodeSpecId',
140
+ 'core_node_product_id': 'coreNodeProductId',
141
+ 'core_node_spec_id': 'coreNodeSpecId',
142
+ 'master_data_volume_type': 'masterDataVolumeType',
143
+ 'master_data_volume_size': 'masterDataVolumeSize',
144
+ 'master_data_volume_count': 'masterDataVolumeCount',
145
+ 'core_data_volume_type': 'coreDataVolumeType',
146
+ 'core_data_volume_size': 'coreDataVolumeSize',
147
+ 'core_data_volume_count': 'coreDataVolumeCount',
148
+ 'enterprise_project_id': 'enterpriseProjectId',
149
+ 'is_mrs_manager_finish': 'isMrsManagerFinish',
150
+ 'cluster_type': 'clusterType',
151
+ 'log_collection': 'logCollection',
152
+ 'period_type': 'periodType',
153
+ 'scale': 'scale',
154
+ 'node_groups': 'nodeGroups',
155
+ 'task_node_groups': 'taskNodeGroups',
156
+ 'eip_id': 'eipId',
157
+ 'eip_address': 'eipAddress',
158
+ 'eipv6_address': 'eipv6Address'
159
+ }
160
+
161
+ def __init__(self, cluster_id=None, cluster_name=None, total_node_num=None, cluster_state=None, stage_desc=None, create_at=None, update_at=None, charging_start_time=None, billing_type=None, data_center=None, vpc=None, vpc_id=None, duration=None, fee=None, hadoop_version=None, component_list=None, external_ip=None, external_alternate_ip=None, internal_ip=None, deployment_id=None, remark=None, order_id=None, az_id=None, az_name=None, az_code=None, availability_zone_id=None, instance_id=None, vnc=None, tenant_id=None, volume_size=None, volume_type=None, subnet_id=None, subnet_name=None, security_groups_id=None, slave_security_groups_id=None, bootstrap_scripts=None, safe_mode=None, cluster_version=None, node_public_cert_name=None, master_node_ip=None, private_ip_first=None, error_info=None, tags=None, master_node_num=None, core_node_num=None, master_node_size=None, core_node_size=None, master_node_product_id=None, master_node_spec_id=None, core_node_product_id=None, core_node_spec_id=None, master_data_volume_type=None, master_data_volume_size=None, master_data_volume_count=None, core_data_volume_type=None, core_data_volume_size=None, core_data_volume_count=None, enterprise_project_id=None, is_mrs_manager_finish=None, cluster_type=None, log_collection=None, period_type=None, scale=None, node_groups=None, task_node_groups=None, eip_id=None, eip_address=None, eipv6_address=None):
162
+ r"""Cluster
163
+
164
+ The model defined in huaweicloud sdk
165
+
166
+ :param cluster_id: 集群ID。
167
+ :type cluster_id: str
168
+ :param cluster_name: 集群名称。
169
+ :type cluster_name: str
170
+ :param total_node_num: 集群部署的节点总数。
171
+ :type total_node_num: str
172
+ :param cluster_state: 集群状态,包括: - starting:启动中的集群。 - running:运行中的集群。 - terminated:已删除的集群。 - failed:失败的集群。 - abnormal:异常的集群。 - terminating:删除中的集群。 - frozen:已冻结的集群。 - scaling-out:扩容中的集群。 - scaling-in:缩容中的集群。
173
+ :type cluster_state: str
174
+ :param stage_desc: 集群进度描述。 安装集群进度包括: - Verifying cluster parameters:校验集群参数中 - Applying for cluster resources:申请集群资源中 - Creating VM:创建虚拟机中 - Initializing VM:初始化虚拟机中 - Installing MRS Manager:安装MRS Manager中 - Deploying cluster:部署集群中 - Cluster installation failed:集群安装失败 扩容集群进度包括: - Preparing for cluster expansion:准备扩容中 - Creating VM:创建虚拟机中 - Initializing VM:初始化虚拟机中 - Adding node to the cluster:节点加入集群中 - Cluster expansion failed:集群扩容失败 缩容集群进度包括: - Preparing for cluster shrink:正在准备缩容 - Decommissioning instance:实例退服中 - Deleting VM:删除虚拟机中 - Deleting node from the cluster:从集群删除节点中 - Cluster shrink failed:集群缩容失败 集群安装、扩容、缩容失败,stageDesc会显示失败的原因。
175
+ :type stage_desc: str
176
+ :param create_at: 集群创建时间,十位时间戳。
177
+ :type create_at: str
178
+ :param update_at: 集群更新时间,十位时间戳。
179
+ :type update_at: str
180
+ :param charging_start_time: 开始计费时间。
181
+ :type charging_start_time: str
182
+ :param billing_type: 集群计费模式。
183
+ :type billing_type: str
184
+ :param data_center: 集群工作区域。
185
+ :type data_center: str
186
+ :param vpc: VPC名称。
187
+ :type vpc: str
188
+ :param vpc_id: VPC ID。
189
+ :type vpc_id: str
190
+ :param duration: 集群购买时长。
191
+ :type duration: str
192
+ :param fee: 创建集群所需费用,系统自动计算。
193
+ :type fee: str
194
+ :param hadoop_version: Hadoop组件版本信息。
195
+ :type hadoop_version: str
196
+ :param component_list: 组件列表信息。
197
+ :type component_list: list[:class:`huaweicloudsdkmrs.v1.ComponentAmb`]
198
+ :param external_ip: 公网IP地址。
199
+ :type external_ip: str
200
+ :param external_alternate_ip: 公网备用IP地址。
201
+ :type external_alternate_ip: str
202
+ :param internal_ip: 内网IP地址。
203
+ :type internal_ip: str
204
+ :param deployment_id: 集群部署ID。
205
+ :type deployment_id: str
206
+ :param remark: 集群备注信息。
207
+ :type remark: str
208
+ :param order_id: 创建集群的订单号。
209
+ :type order_id: str
210
+ :param az_id: 可用区域ID。
211
+ :type az_id: str
212
+ :param az_name: 可用区域名称。
213
+ :type az_name: str
214
+ :param az_code: 可用区域英文名称
215
+ :type az_code: str
216
+ :param availability_zone_id: 可用区域
217
+ :type availability_zone_id: str
218
+ :param instance_id: 实例ID。
219
+ :type instance_id: str
220
+ :param vnc: 远程登录弹性云服务器的URI地址。
221
+ :type vnc: str
222
+ :param tenant_id: 项目编号。
223
+ :type tenant_id: str
224
+ :param volume_size: 磁盘存储空间。
225
+ :type volume_size: int
226
+ :param volume_type: 磁盘类型。
227
+ :type volume_type: str
228
+ :param subnet_id: 子网ID。
229
+ :type subnet_id: str
230
+ :param subnet_name: 子网名称。
231
+ :type subnet_name: str
232
+ :param security_groups_id: 安全组ID。
233
+ :type security_groups_id: str
234
+ :param slave_security_groups_id: 非Master节点的安全组id,当前一个MRS集群只会使用一个安全组,所以该字段已经废弃,从兼容性考虑,该字段会返回和securityGroupsId同样的值。
235
+ :type slave_security_groups_id: str
236
+ :param bootstrap_scripts: 配置引导操作脚本信息。
237
+ :type bootstrap_scripts: list[:class:`huaweicloudsdkmrs.v1.BootstrapScript`]
238
+ :param safe_mode: MRS集群运行模式。 - 0:普通集群 - 1:安全集群
239
+ :type safe_mode: int
240
+ :param cluster_version: 集群版本。
241
+ :type cluster_version: str
242
+ :param node_public_cert_name: 密钥文件名称。
243
+ :type node_public_cert_name: str
244
+ :param master_node_ip: Master节点IP。
245
+ :type master_node_ip: str
246
+ :param private_ip_first: 首选私有IP。
247
+ :type private_ip_first: str
248
+ :param error_info: 错误信息。
249
+ :type error_info: str
250
+ :param tags: 标签信息
251
+ :type tags: str
252
+ :param master_node_num: 集群部署的Master节点数量。
253
+ :type master_node_num: str
254
+ :param core_node_num: 集群部署的Core节点数量。
255
+ :type core_node_num: str
256
+ :param master_node_size: Master节点的实例规格。
257
+ :type master_node_size: str
258
+ :param core_node_size: Core节点的实例规格。
259
+ :type core_node_size: str
260
+ :param master_node_product_id: Master节点产品ID。
261
+ :type master_node_product_id: str
262
+ :param master_node_spec_id: Master节点规格ID。
263
+ :type master_node_spec_id: str
264
+ :param core_node_product_id: Core节点产品ID。
265
+ :type core_node_product_id: str
266
+ :param core_node_spec_id: Core节点规格ID。
267
+ :type core_node_spec_id: str
268
+ :param master_data_volume_type: Master节点数据磁盘存储类别,目前支持SATA、SAS和SSD。
269
+ :type master_data_volume_type: str
270
+ :param master_data_volume_size: Master节点数据磁盘存储空间。为增大数据存储容量,创建集群时可同时添加磁盘。 取值范围:100GB~32000GB,传值只需填数字,不需要带单位GB。
271
+ :type master_data_volume_size: int
272
+ :param master_data_volume_count: Master节点数据磁盘个数。 取值只能是1
273
+ :type master_data_volume_count: int
274
+ :param core_data_volume_type: Core节点数据磁盘存储类别,目前支持SATA、SAS和SSD。
275
+ :type core_data_volume_type: str
276
+ :param core_data_volume_size: Core节点数据磁盘存储空间。为增大数据存储容量,创建集群时可同时添加磁盘。 取值范围:100GB~32000GB,传值只需填数字,不需要带单位GB。
277
+ :type core_data_volume_size: int
278
+ :param core_data_volume_count: Core节点数据磁盘个数。 取值范围:1~10
279
+ :type core_data_volume_count: int
280
+ :param enterprise_project_id: 企业项目ID。
281
+ :type enterprise_project_id: str
282
+ :param is_mrs_manager_finish: 表示集群创建过程中,MRS Manager是否安装完成。 - true:安装完成 - false:安装未完成
283
+ :type is_mrs_manager_finish: bool
284
+ :param cluster_type: 集群类型。
285
+ :type cluster_type: int
286
+ :param log_collection: 集群安装失败时,是否搜集日志。 - 0:不收集 - 1:收集
287
+ :type log_collection: int
288
+ :param period_type: 区分包周期,集群是包年还是包月。 - 0:包月 - 1:包年
289
+ :type period_type: int
290
+ :param scale: 集群节点的变更状态(扩容/缩容/变更规格)。当该参数取值为空时,表示集群节点没有进行变更操作。 取值范围: - scaling-out:扩容中 - scaling-in:缩容中 - scaling-error:处于running状态,且上一次扩容/缩容/升级规格失败的集群 - scaling-up:Master节点规格升级中 - scaling_up_first:备Master节点规格升级中 - scaled_up_first:备Master节点规格升级成功 - scaled-up-success:Master节点规格升级成功
291
+ :type scale: str
292
+ :param node_groups: Master节点、Core节点和Task节点列表信息。
293
+ :type node_groups: list[:class:`huaweicloudsdkmrs.v1.NodeGroupV10`]
294
+ :param task_node_groups: Task节点列表信息。
295
+ :type task_node_groups: list[:class:`huaweicloudsdkmrs.v1.NodeGroupV10`]
296
+ :param eip_id: 集群弹性公网ip的唯一标识
297
+ :type eip_id: str
298
+ :param eip_address: 集群弹性公网ip的IPV4地址
299
+ :type eip_address: str
300
+ :param eipv6_address: 集群弹性公网ip的IPV6地址,IPv4时无此字段。
301
+ :type eipv6_address: str
302
+ """
303
+
304
+
305
+
306
+ self._cluster_id = None
307
+ self._cluster_name = None
308
+ self._total_node_num = None
309
+ self._cluster_state = None
310
+ self._stage_desc = None
311
+ self._create_at = None
312
+ self._update_at = None
313
+ self._charging_start_time = None
314
+ self._billing_type = None
315
+ self._data_center = None
316
+ self._vpc = None
317
+ self._vpc_id = None
318
+ self._duration = None
319
+ self._fee = None
320
+ self._hadoop_version = None
321
+ self._component_list = None
322
+ self._external_ip = None
323
+ self._external_alternate_ip = None
324
+ self._internal_ip = None
325
+ self._deployment_id = None
326
+ self._remark = None
327
+ self._order_id = None
328
+ self._az_id = None
329
+ self._az_name = None
330
+ self._az_code = None
331
+ self._availability_zone_id = None
332
+ self._instance_id = None
333
+ self._vnc = None
334
+ self._tenant_id = None
335
+ self._volume_size = None
336
+ self._volume_type = None
337
+ self._subnet_id = None
338
+ self._subnet_name = None
339
+ self._security_groups_id = None
340
+ self._slave_security_groups_id = None
341
+ self._bootstrap_scripts = None
342
+ self._safe_mode = None
343
+ self._cluster_version = None
344
+ self._node_public_cert_name = None
345
+ self._master_node_ip = None
346
+ self._private_ip_first = None
347
+ self._error_info = None
348
+ self._tags = None
349
+ self._master_node_num = None
350
+ self._core_node_num = None
351
+ self._master_node_size = None
352
+ self._core_node_size = None
353
+ self._master_node_product_id = None
354
+ self._master_node_spec_id = None
355
+ self._core_node_product_id = None
356
+ self._core_node_spec_id = None
357
+ self._master_data_volume_type = None
358
+ self._master_data_volume_size = None
359
+ self._master_data_volume_count = None
360
+ self._core_data_volume_type = None
361
+ self._core_data_volume_size = None
362
+ self._core_data_volume_count = None
363
+ self._enterprise_project_id = None
364
+ self._is_mrs_manager_finish = None
365
+ self._cluster_type = None
366
+ self._log_collection = None
367
+ self._period_type = None
368
+ self._scale = None
369
+ self._node_groups = None
370
+ self._task_node_groups = None
371
+ self._eip_id = None
372
+ self._eip_address = None
373
+ self._eipv6_address = None
374
+ self.discriminator = None
375
+
376
+ if cluster_id is not None:
377
+ self.cluster_id = cluster_id
378
+ if cluster_name is not None:
379
+ self.cluster_name = cluster_name
380
+ if total_node_num is not None:
381
+ self.total_node_num = total_node_num
382
+ if cluster_state is not None:
383
+ self.cluster_state = cluster_state
384
+ if stage_desc is not None:
385
+ self.stage_desc = stage_desc
386
+ if create_at is not None:
387
+ self.create_at = create_at
388
+ if update_at is not None:
389
+ self.update_at = update_at
390
+ if charging_start_time is not None:
391
+ self.charging_start_time = charging_start_time
392
+ if billing_type is not None:
393
+ self.billing_type = billing_type
394
+ if data_center is not None:
395
+ self.data_center = data_center
396
+ if vpc is not None:
397
+ self.vpc = vpc
398
+ if vpc_id is not None:
399
+ self.vpc_id = vpc_id
400
+ if duration is not None:
401
+ self.duration = duration
402
+ if fee is not None:
403
+ self.fee = fee
404
+ if hadoop_version is not None:
405
+ self.hadoop_version = hadoop_version
406
+ if component_list is not None:
407
+ self.component_list = component_list
408
+ if external_ip is not None:
409
+ self.external_ip = external_ip
410
+ if external_alternate_ip is not None:
411
+ self.external_alternate_ip = external_alternate_ip
412
+ if internal_ip is not None:
413
+ self.internal_ip = internal_ip
414
+ if deployment_id is not None:
415
+ self.deployment_id = deployment_id
416
+ if remark is not None:
417
+ self.remark = remark
418
+ if order_id is not None:
419
+ self.order_id = order_id
420
+ if az_id is not None:
421
+ self.az_id = az_id
422
+ if az_name is not None:
423
+ self.az_name = az_name
424
+ if az_code is not None:
425
+ self.az_code = az_code
426
+ if availability_zone_id is not None:
427
+ self.availability_zone_id = availability_zone_id
428
+ if instance_id is not None:
429
+ self.instance_id = instance_id
430
+ if vnc is not None:
431
+ self.vnc = vnc
432
+ if tenant_id is not None:
433
+ self.tenant_id = tenant_id
434
+ if volume_size is not None:
435
+ self.volume_size = volume_size
436
+ if volume_type is not None:
437
+ self.volume_type = volume_type
438
+ if subnet_id is not None:
439
+ self.subnet_id = subnet_id
440
+ if subnet_name is not None:
441
+ self.subnet_name = subnet_name
442
+ if security_groups_id is not None:
443
+ self.security_groups_id = security_groups_id
444
+ if slave_security_groups_id is not None:
445
+ self.slave_security_groups_id = slave_security_groups_id
446
+ if bootstrap_scripts is not None:
447
+ self.bootstrap_scripts = bootstrap_scripts
448
+ if safe_mode is not None:
449
+ self.safe_mode = safe_mode
450
+ if cluster_version is not None:
451
+ self.cluster_version = cluster_version
452
+ if node_public_cert_name is not None:
453
+ self.node_public_cert_name = node_public_cert_name
454
+ if master_node_ip is not None:
455
+ self.master_node_ip = master_node_ip
456
+ if private_ip_first is not None:
457
+ self.private_ip_first = private_ip_first
458
+ if error_info is not None:
459
+ self.error_info = error_info
460
+ if tags is not None:
461
+ self.tags = tags
462
+ if master_node_num is not None:
463
+ self.master_node_num = master_node_num
464
+ if core_node_num is not None:
465
+ self.core_node_num = core_node_num
466
+ if master_node_size is not None:
467
+ self.master_node_size = master_node_size
468
+ if core_node_size is not None:
469
+ self.core_node_size = core_node_size
470
+ if master_node_product_id is not None:
471
+ self.master_node_product_id = master_node_product_id
472
+ if master_node_spec_id is not None:
473
+ self.master_node_spec_id = master_node_spec_id
474
+ if core_node_product_id is not None:
475
+ self.core_node_product_id = core_node_product_id
476
+ if core_node_spec_id is not None:
477
+ self.core_node_spec_id = core_node_spec_id
478
+ if master_data_volume_type is not None:
479
+ self.master_data_volume_type = master_data_volume_type
480
+ if master_data_volume_size is not None:
481
+ self.master_data_volume_size = master_data_volume_size
482
+ if master_data_volume_count is not None:
483
+ self.master_data_volume_count = master_data_volume_count
484
+ if core_data_volume_type is not None:
485
+ self.core_data_volume_type = core_data_volume_type
486
+ if core_data_volume_size is not None:
487
+ self.core_data_volume_size = core_data_volume_size
488
+ if core_data_volume_count is not None:
489
+ self.core_data_volume_count = core_data_volume_count
490
+ if enterprise_project_id is not None:
491
+ self.enterprise_project_id = enterprise_project_id
492
+ if is_mrs_manager_finish is not None:
493
+ self.is_mrs_manager_finish = is_mrs_manager_finish
494
+ if cluster_type is not None:
495
+ self.cluster_type = cluster_type
496
+ if log_collection is not None:
497
+ self.log_collection = log_collection
498
+ if period_type is not None:
499
+ self.period_type = period_type
500
+ if scale is not None:
501
+ self.scale = scale
502
+ if node_groups is not None:
503
+ self.node_groups = node_groups
504
+ if task_node_groups is not None:
505
+ self.task_node_groups = task_node_groups
506
+ if eip_id is not None:
507
+ self.eip_id = eip_id
508
+ if eip_address is not None:
509
+ self.eip_address = eip_address
510
+ if eipv6_address is not None:
511
+ self.eipv6_address = eipv6_address
512
+
513
+ @property
514
+ def cluster_id(self):
515
+ r"""Gets the cluster_id of this Cluster.
516
+
517
+ 集群ID。
518
+
519
+ :return: The cluster_id of this Cluster.
520
+ :rtype: str
521
+ """
522
+ return self._cluster_id
523
+
524
+ @cluster_id.setter
525
+ def cluster_id(self, cluster_id):
526
+ r"""Sets the cluster_id of this Cluster.
527
+
528
+ 集群ID。
529
+
530
+ :param cluster_id: The cluster_id of this Cluster.
531
+ :type cluster_id: str
532
+ """
533
+ self._cluster_id = cluster_id
534
+
535
+ @property
536
+ def cluster_name(self):
537
+ r"""Gets the cluster_name of this Cluster.
538
+
539
+ 集群名称。
540
+
541
+ :return: The cluster_name of this Cluster.
542
+ :rtype: str
543
+ """
544
+ return self._cluster_name
545
+
546
+ @cluster_name.setter
547
+ def cluster_name(self, cluster_name):
548
+ r"""Sets the cluster_name of this Cluster.
549
+
550
+ 集群名称。
551
+
552
+ :param cluster_name: The cluster_name of this Cluster.
553
+ :type cluster_name: str
554
+ """
555
+ self._cluster_name = cluster_name
556
+
557
+ @property
558
+ def total_node_num(self):
559
+ r"""Gets the total_node_num of this Cluster.
560
+
561
+ 集群部署的节点总数。
562
+
563
+ :return: The total_node_num of this Cluster.
564
+ :rtype: str
565
+ """
566
+ return self._total_node_num
567
+
568
+ @total_node_num.setter
569
+ def total_node_num(self, total_node_num):
570
+ r"""Sets the total_node_num of this Cluster.
571
+
572
+ 集群部署的节点总数。
573
+
574
+ :param total_node_num: The total_node_num of this Cluster.
575
+ :type total_node_num: str
576
+ """
577
+ self._total_node_num = total_node_num
578
+
579
+ @property
580
+ def cluster_state(self):
581
+ r"""Gets the cluster_state of this Cluster.
582
+
583
+ 集群状态,包括: - starting:启动中的集群。 - running:运行中的集群。 - terminated:已删除的集群。 - failed:失败的集群。 - abnormal:异常的集群。 - terminating:删除中的集群。 - frozen:已冻结的集群。 - scaling-out:扩容中的集群。 - scaling-in:缩容中的集群。
584
+
585
+ :return: The cluster_state of this Cluster.
586
+ :rtype: str
587
+ """
588
+ return self._cluster_state
589
+
590
+ @cluster_state.setter
591
+ def cluster_state(self, cluster_state):
592
+ r"""Sets the cluster_state of this Cluster.
593
+
594
+ 集群状态,包括: - starting:启动中的集群。 - running:运行中的集群。 - terminated:已删除的集群。 - failed:失败的集群。 - abnormal:异常的集群。 - terminating:删除中的集群。 - frozen:已冻结的集群。 - scaling-out:扩容中的集群。 - scaling-in:缩容中的集群。
595
+
596
+ :param cluster_state: The cluster_state of this Cluster.
597
+ :type cluster_state: str
598
+ """
599
+ self._cluster_state = cluster_state
600
+
601
+ @property
602
+ def stage_desc(self):
603
+ r"""Gets the stage_desc of this Cluster.
604
+
605
+ 集群进度描述。 安装集群进度包括: - Verifying cluster parameters:校验集群参数中 - Applying for cluster resources:申请集群资源中 - Creating VM:创建虚拟机中 - Initializing VM:初始化虚拟机中 - Installing MRS Manager:安装MRS Manager中 - Deploying cluster:部署集群中 - Cluster installation failed:集群安装失败 扩容集群进度包括: - Preparing for cluster expansion:准备扩容中 - Creating VM:创建虚拟机中 - Initializing VM:初始化虚拟机中 - Adding node to the cluster:节点加入集群中 - Cluster expansion failed:集群扩容失败 缩容集群进度包括: - Preparing for cluster shrink:正在准备缩容 - Decommissioning instance:实例退服中 - Deleting VM:删除虚拟机中 - Deleting node from the cluster:从集群删除节点中 - Cluster shrink failed:集群缩容失败 集群安装、扩容、缩容失败,stageDesc会显示失败的原因。
606
+
607
+ :return: The stage_desc of this Cluster.
608
+ :rtype: str
609
+ """
610
+ return self._stage_desc
611
+
612
+ @stage_desc.setter
613
+ def stage_desc(self, stage_desc):
614
+ r"""Sets the stage_desc of this Cluster.
615
+
616
+ 集群进度描述。 安装集群进度包括: - Verifying cluster parameters:校验集群参数中 - Applying for cluster resources:申请集群资源中 - Creating VM:创建虚拟机中 - Initializing VM:初始化虚拟机中 - Installing MRS Manager:安装MRS Manager中 - Deploying cluster:部署集群中 - Cluster installation failed:集群安装失败 扩容集群进度包括: - Preparing for cluster expansion:准备扩容中 - Creating VM:创建虚拟机中 - Initializing VM:初始化虚拟机中 - Adding node to the cluster:节点加入集群中 - Cluster expansion failed:集群扩容失败 缩容集群进度包括: - Preparing for cluster shrink:正在准备缩容 - Decommissioning instance:实例退服中 - Deleting VM:删除虚拟机中 - Deleting node from the cluster:从集群删除节点中 - Cluster shrink failed:集群缩容失败 集群安装、扩容、缩容失败,stageDesc会显示失败的原因。
617
+
618
+ :param stage_desc: The stage_desc of this Cluster.
619
+ :type stage_desc: str
620
+ """
621
+ self._stage_desc = stage_desc
622
+
623
+ @property
624
+ def create_at(self):
625
+ r"""Gets the create_at of this Cluster.
626
+
627
+ 集群创建时间,十位时间戳。
628
+
629
+ :return: The create_at of this Cluster.
630
+ :rtype: str
631
+ """
632
+ return self._create_at
633
+
634
+ @create_at.setter
635
+ def create_at(self, create_at):
636
+ r"""Sets the create_at of this Cluster.
637
+
638
+ 集群创建时间,十位时间戳。
639
+
640
+ :param create_at: The create_at of this Cluster.
641
+ :type create_at: str
642
+ """
643
+ self._create_at = create_at
644
+
645
+ @property
646
+ def update_at(self):
647
+ r"""Gets the update_at of this Cluster.
648
+
649
+ 集群更新时间,十位时间戳。
650
+
651
+ :return: The update_at of this Cluster.
652
+ :rtype: str
653
+ """
654
+ return self._update_at
655
+
656
+ @update_at.setter
657
+ def update_at(self, update_at):
658
+ r"""Sets the update_at of this Cluster.
659
+
660
+ 集群更新时间,十位时间戳。
661
+
662
+ :param update_at: The update_at of this Cluster.
663
+ :type update_at: str
664
+ """
665
+ self._update_at = update_at
666
+
667
+ @property
668
+ def charging_start_time(self):
669
+ r"""Gets the charging_start_time of this Cluster.
670
+
671
+ 开始计费时间。
672
+
673
+ :return: The charging_start_time of this Cluster.
674
+ :rtype: str
675
+ """
676
+ return self._charging_start_time
677
+
678
+ @charging_start_time.setter
679
+ def charging_start_time(self, charging_start_time):
680
+ r"""Sets the charging_start_time of this Cluster.
681
+
682
+ 开始计费时间。
683
+
684
+ :param charging_start_time: The charging_start_time of this Cluster.
685
+ :type charging_start_time: str
686
+ """
687
+ self._charging_start_time = charging_start_time
688
+
689
+ @property
690
+ def billing_type(self):
691
+ r"""Gets the billing_type of this Cluster.
692
+
693
+ 集群计费模式。
694
+
695
+ :return: The billing_type of this Cluster.
696
+ :rtype: str
697
+ """
698
+ return self._billing_type
699
+
700
+ @billing_type.setter
701
+ def billing_type(self, billing_type):
702
+ r"""Sets the billing_type of this Cluster.
703
+
704
+ 集群计费模式。
705
+
706
+ :param billing_type: The billing_type of this Cluster.
707
+ :type billing_type: str
708
+ """
709
+ self._billing_type = billing_type
710
+
711
+ @property
712
+ def data_center(self):
713
+ r"""Gets the data_center of this Cluster.
714
+
715
+ 集群工作区域。
716
+
717
+ :return: The data_center of this Cluster.
718
+ :rtype: str
719
+ """
720
+ return self._data_center
721
+
722
+ @data_center.setter
723
+ def data_center(self, data_center):
724
+ r"""Sets the data_center of this Cluster.
725
+
726
+ 集群工作区域。
727
+
728
+ :param data_center: The data_center of this Cluster.
729
+ :type data_center: str
730
+ """
731
+ self._data_center = data_center
732
+
733
+ @property
734
+ def vpc(self):
735
+ r"""Gets the vpc of this Cluster.
736
+
737
+ VPC名称。
738
+
739
+ :return: The vpc of this Cluster.
740
+ :rtype: str
741
+ """
742
+ return self._vpc
743
+
744
+ @vpc.setter
745
+ def vpc(self, vpc):
746
+ r"""Sets the vpc of this Cluster.
747
+
748
+ VPC名称。
749
+
750
+ :param vpc: The vpc of this Cluster.
751
+ :type vpc: str
752
+ """
753
+ self._vpc = vpc
754
+
755
+ @property
756
+ def vpc_id(self):
757
+ r"""Gets the vpc_id of this Cluster.
758
+
759
+ VPC ID。
760
+
761
+ :return: The vpc_id of this Cluster.
762
+ :rtype: str
763
+ """
764
+ return self._vpc_id
765
+
766
+ @vpc_id.setter
767
+ def vpc_id(self, vpc_id):
768
+ r"""Sets the vpc_id of this Cluster.
769
+
770
+ VPC ID。
771
+
772
+ :param vpc_id: The vpc_id of this Cluster.
773
+ :type vpc_id: str
774
+ """
775
+ self._vpc_id = vpc_id
776
+
777
+ @property
778
+ def duration(self):
779
+ r"""Gets the duration of this Cluster.
780
+
781
+ 集群购买时长。
782
+
783
+ :return: The duration of this Cluster.
784
+ :rtype: str
785
+ """
786
+ return self._duration
787
+
788
+ @duration.setter
789
+ def duration(self, duration):
790
+ r"""Sets the duration of this Cluster.
791
+
792
+ 集群购买时长。
793
+
794
+ :param duration: The duration of this Cluster.
795
+ :type duration: str
796
+ """
797
+ self._duration = duration
798
+
799
+ @property
800
+ def fee(self):
801
+ r"""Gets the fee of this Cluster.
802
+
803
+ 创建集群所需费用,系统自动计算。
804
+
805
+ :return: The fee of this Cluster.
806
+ :rtype: str
807
+ """
808
+ return self._fee
809
+
810
+ @fee.setter
811
+ def fee(self, fee):
812
+ r"""Sets the fee of this Cluster.
813
+
814
+ 创建集群所需费用,系统自动计算。
815
+
816
+ :param fee: The fee of this Cluster.
817
+ :type fee: str
818
+ """
819
+ self._fee = fee
820
+
821
+ @property
822
+ def hadoop_version(self):
823
+ r"""Gets the hadoop_version of this Cluster.
824
+
825
+ Hadoop组件版本信息。
826
+
827
+ :return: The hadoop_version of this Cluster.
828
+ :rtype: str
829
+ """
830
+ return self._hadoop_version
831
+
832
+ @hadoop_version.setter
833
+ def hadoop_version(self, hadoop_version):
834
+ r"""Sets the hadoop_version of this Cluster.
835
+
836
+ Hadoop组件版本信息。
837
+
838
+ :param hadoop_version: The hadoop_version of this Cluster.
839
+ :type hadoop_version: str
840
+ """
841
+ self._hadoop_version = hadoop_version
842
+
843
+ @property
844
+ def component_list(self):
845
+ r"""Gets the component_list of this Cluster.
846
+
847
+ 组件列表信息。
848
+
849
+ :return: The component_list of this Cluster.
850
+ :rtype: list[:class:`huaweicloudsdkmrs.v1.ComponentAmb`]
851
+ """
852
+ return self._component_list
853
+
854
+ @component_list.setter
855
+ def component_list(self, component_list):
856
+ r"""Sets the component_list of this Cluster.
857
+
858
+ 组件列表信息。
859
+
860
+ :param component_list: The component_list of this Cluster.
861
+ :type component_list: list[:class:`huaweicloudsdkmrs.v1.ComponentAmb`]
862
+ """
863
+ self._component_list = component_list
864
+
865
+ @property
866
+ def external_ip(self):
867
+ r"""Gets the external_ip of this Cluster.
868
+
869
+ 公网IP地址。
870
+
871
+ :return: The external_ip of this Cluster.
872
+ :rtype: str
873
+ """
874
+ return self._external_ip
875
+
876
+ @external_ip.setter
877
+ def external_ip(self, external_ip):
878
+ r"""Sets the external_ip of this Cluster.
879
+
880
+ 公网IP地址。
881
+
882
+ :param external_ip: The external_ip of this Cluster.
883
+ :type external_ip: str
884
+ """
885
+ self._external_ip = external_ip
886
+
887
+ @property
888
+ def external_alternate_ip(self):
889
+ r"""Gets the external_alternate_ip of this Cluster.
890
+
891
+ 公网备用IP地址。
892
+
893
+ :return: The external_alternate_ip of this Cluster.
894
+ :rtype: str
895
+ """
896
+ return self._external_alternate_ip
897
+
898
+ @external_alternate_ip.setter
899
+ def external_alternate_ip(self, external_alternate_ip):
900
+ r"""Sets the external_alternate_ip of this Cluster.
901
+
902
+ 公网备用IP地址。
903
+
904
+ :param external_alternate_ip: The external_alternate_ip of this Cluster.
905
+ :type external_alternate_ip: str
906
+ """
907
+ self._external_alternate_ip = external_alternate_ip
908
+
909
+ @property
910
+ def internal_ip(self):
911
+ r"""Gets the internal_ip of this Cluster.
912
+
913
+ 内网IP地址。
914
+
915
+ :return: The internal_ip of this Cluster.
916
+ :rtype: str
917
+ """
918
+ return self._internal_ip
919
+
920
+ @internal_ip.setter
921
+ def internal_ip(self, internal_ip):
922
+ r"""Sets the internal_ip of this Cluster.
923
+
924
+ 内网IP地址。
925
+
926
+ :param internal_ip: The internal_ip of this Cluster.
927
+ :type internal_ip: str
928
+ """
929
+ self._internal_ip = internal_ip
930
+
931
+ @property
932
+ def deployment_id(self):
933
+ r"""Gets the deployment_id of this Cluster.
934
+
935
+ 集群部署ID。
936
+
937
+ :return: The deployment_id of this Cluster.
938
+ :rtype: str
939
+ """
940
+ return self._deployment_id
941
+
942
+ @deployment_id.setter
943
+ def deployment_id(self, deployment_id):
944
+ r"""Sets the deployment_id of this Cluster.
945
+
946
+ 集群部署ID。
947
+
948
+ :param deployment_id: The deployment_id of this Cluster.
949
+ :type deployment_id: str
950
+ """
951
+ self._deployment_id = deployment_id
952
+
953
+ @property
954
+ def remark(self):
955
+ r"""Gets the remark of this Cluster.
956
+
957
+ 集群备注信息。
958
+
959
+ :return: The remark of this Cluster.
960
+ :rtype: str
961
+ """
962
+ return self._remark
963
+
964
+ @remark.setter
965
+ def remark(self, remark):
966
+ r"""Sets the remark of this Cluster.
967
+
968
+ 集群备注信息。
969
+
970
+ :param remark: The remark of this Cluster.
971
+ :type remark: str
972
+ """
973
+ self._remark = remark
974
+
975
+ @property
976
+ def order_id(self):
977
+ r"""Gets the order_id of this Cluster.
978
+
979
+ 创建集群的订单号。
980
+
981
+ :return: The order_id of this Cluster.
982
+ :rtype: str
983
+ """
984
+ return self._order_id
985
+
986
+ @order_id.setter
987
+ def order_id(self, order_id):
988
+ r"""Sets the order_id of this Cluster.
989
+
990
+ 创建集群的订单号。
991
+
992
+ :param order_id: The order_id of this Cluster.
993
+ :type order_id: str
994
+ """
995
+ self._order_id = order_id
996
+
997
+ @property
998
+ def az_id(self):
999
+ r"""Gets the az_id of this Cluster.
1000
+
1001
+ 可用区域ID。
1002
+
1003
+ :return: The az_id of this Cluster.
1004
+ :rtype: str
1005
+ """
1006
+ return self._az_id
1007
+
1008
+ @az_id.setter
1009
+ def az_id(self, az_id):
1010
+ r"""Sets the az_id of this Cluster.
1011
+
1012
+ 可用区域ID。
1013
+
1014
+ :param az_id: The az_id of this Cluster.
1015
+ :type az_id: str
1016
+ """
1017
+ self._az_id = az_id
1018
+
1019
+ @property
1020
+ def az_name(self):
1021
+ r"""Gets the az_name of this Cluster.
1022
+
1023
+ 可用区域名称。
1024
+
1025
+ :return: The az_name of this Cluster.
1026
+ :rtype: str
1027
+ """
1028
+ return self._az_name
1029
+
1030
+ @az_name.setter
1031
+ def az_name(self, az_name):
1032
+ r"""Sets the az_name of this Cluster.
1033
+
1034
+ 可用区域名称。
1035
+
1036
+ :param az_name: The az_name of this Cluster.
1037
+ :type az_name: str
1038
+ """
1039
+ self._az_name = az_name
1040
+
1041
+ @property
1042
+ def az_code(self):
1043
+ r"""Gets the az_code of this Cluster.
1044
+
1045
+ 可用区域英文名称
1046
+
1047
+ :return: The az_code of this Cluster.
1048
+ :rtype: str
1049
+ """
1050
+ return self._az_code
1051
+
1052
+ @az_code.setter
1053
+ def az_code(self, az_code):
1054
+ r"""Sets the az_code of this Cluster.
1055
+
1056
+ 可用区域英文名称
1057
+
1058
+ :param az_code: The az_code of this Cluster.
1059
+ :type az_code: str
1060
+ """
1061
+ self._az_code = az_code
1062
+
1063
+ @property
1064
+ def availability_zone_id(self):
1065
+ r"""Gets the availability_zone_id of this Cluster.
1066
+
1067
+ 可用区域
1068
+
1069
+ :return: The availability_zone_id of this Cluster.
1070
+ :rtype: str
1071
+ """
1072
+ return self._availability_zone_id
1073
+
1074
+ @availability_zone_id.setter
1075
+ def availability_zone_id(self, availability_zone_id):
1076
+ r"""Sets the availability_zone_id of this Cluster.
1077
+
1078
+ 可用区域
1079
+
1080
+ :param availability_zone_id: The availability_zone_id of this Cluster.
1081
+ :type availability_zone_id: str
1082
+ """
1083
+ self._availability_zone_id = availability_zone_id
1084
+
1085
+ @property
1086
+ def instance_id(self):
1087
+ r"""Gets the instance_id of this Cluster.
1088
+
1089
+ 实例ID。
1090
+
1091
+ :return: The instance_id of this Cluster.
1092
+ :rtype: str
1093
+ """
1094
+ return self._instance_id
1095
+
1096
+ @instance_id.setter
1097
+ def instance_id(self, instance_id):
1098
+ r"""Sets the instance_id of this Cluster.
1099
+
1100
+ 实例ID。
1101
+
1102
+ :param instance_id: The instance_id of this Cluster.
1103
+ :type instance_id: str
1104
+ """
1105
+ self._instance_id = instance_id
1106
+
1107
+ @property
1108
+ def vnc(self):
1109
+ r"""Gets the vnc of this Cluster.
1110
+
1111
+ 远程登录弹性云服务器的URI地址。
1112
+
1113
+ :return: The vnc of this Cluster.
1114
+ :rtype: str
1115
+ """
1116
+ return self._vnc
1117
+
1118
+ @vnc.setter
1119
+ def vnc(self, vnc):
1120
+ r"""Sets the vnc of this Cluster.
1121
+
1122
+ 远程登录弹性云服务器的URI地址。
1123
+
1124
+ :param vnc: The vnc of this Cluster.
1125
+ :type vnc: str
1126
+ """
1127
+ self._vnc = vnc
1128
+
1129
+ @property
1130
+ def tenant_id(self):
1131
+ r"""Gets the tenant_id of this Cluster.
1132
+
1133
+ 项目编号。
1134
+
1135
+ :return: The tenant_id of this Cluster.
1136
+ :rtype: str
1137
+ """
1138
+ return self._tenant_id
1139
+
1140
+ @tenant_id.setter
1141
+ def tenant_id(self, tenant_id):
1142
+ r"""Sets the tenant_id of this Cluster.
1143
+
1144
+ 项目编号。
1145
+
1146
+ :param tenant_id: The tenant_id of this Cluster.
1147
+ :type tenant_id: str
1148
+ """
1149
+ self._tenant_id = tenant_id
1150
+
1151
+ @property
1152
+ def volume_size(self):
1153
+ r"""Gets the volume_size of this Cluster.
1154
+
1155
+ 磁盘存储空间。
1156
+
1157
+ :return: The volume_size of this Cluster.
1158
+ :rtype: int
1159
+ """
1160
+ return self._volume_size
1161
+
1162
+ @volume_size.setter
1163
+ def volume_size(self, volume_size):
1164
+ r"""Sets the volume_size of this Cluster.
1165
+
1166
+ 磁盘存储空间。
1167
+
1168
+ :param volume_size: The volume_size of this Cluster.
1169
+ :type volume_size: int
1170
+ """
1171
+ self._volume_size = volume_size
1172
+
1173
+ @property
1174
+ def volume_type(self):
1175
+ r"""Gets the volume_type of this Cluster.
1176
+
1177
+ 磁盘类型。
1178
+
1179
+ :return: The volume_type of this Cluster.
1180
+ :rtype: str
1181
+ """
1182
+ return self._volume_type
1183
+
1184
+ @volume_type.setter
1185
+ def volume_type(self, volume_type):
1186
+ r"""Sets the volume_type of this Cluster.
1187
+
1188
+ 磁盘类型。
1189
+
1190
+ :param volume_type: The volume_type of this Cluster.
1191
+ :type volume_type: str
1192
+ """
1193
+ self._volume_type = volume_type
1194
+
1195
+ @property
1196
+ def subnet_id(self):
1197
+ r"""Gets the subnet_id of this Cluster.
1198
+
1199
+ 子网ID。
1200
+
1201
+ :return: The subnet_id of this Cluster.
1202
+ :rtype: str
1203
+ """
1204
+ return self._subnet_id
1205
+
1206
+ @subnet_id.setter
1207
+ def subnet_id(self, subnet_id):
1208
+ r"""Sets the subnet_id of this Cluster.
1209
+
1210
+ 子网ID。
1211
+
1212
+ :param subnet_id: The subnet_id of this Cluster.
1213
+ :type subnet_id: str
1214
+ """
1215
+ self._subnet_id = subnet_id
1216
+
1217
+ @property
1218
+ def subnet_name(self):
1219
+ r"""Gets the subnet_name of this Cluster.
1220
+
1221
+ 子网名称。
1222
+
1223
+ :return: The subnet_name of this Cluster.
1224
+ :rtype: str
1225
+ """
1226
+ return self._subnet_name
1227
+
1228
+ @subnet_name.setter
1229
+ def subnet_name(self, subnet_name):
1230
+ r"""Sets the subnet_name of this Cluster.
1231
+
1232
+ 子网名称。
1233
+
1234
+ :param subnet_name: The subnet_name of this Cluster.
1235
+ :type subnet_name: str
1236
+ """
1237
+ self._subnet_name = subnet_name
1238
+
1239
+ @property
1240
+ def security_groups_id(self):
1241
+ r"""Gets the security_groups_id of this Cluster.
1242
+
1243
+ 安全组ID。
1244
+
1245
+ :return: The security_groups_id of this Cluster.
1246
+ :rtype: str
1247
+ """
1248
+ return self._security_groups_id
1249
+
1250
+ @security_groups_id.setter
1251
+ def security_groups_id(self, security_groups_id):
1252
+ r"""Sets the security_groups_id of this Cluster.
1253
+
1254
+ 安全组ID。
1255
+
1256
+ :param security_groups_id: The security_groups_id of this Cluster.
1257
+ :type security_groups_id: str
1258
+ """
1259
+ self._security_groups_id = security_groups_id
1260
+
1261
+ @property
1262
+ def slave_security_groups_id(self):
1263
+ r"""Gets the slave_security_groups_id of this Cluster.
1264
+
1265
+ 非Master节点的安全组id,当前一个MRS集群只会使用一个安全组,所以该字段已经废弃,从兼容性考虑,该字段会返回和securityGroupsId同样的值。
1266
+
1267
+ :return: The slave_security_groups_id of this Cluster.
1268
+ :rtype: str
1269
+ """
1270
+ return self._slave_security_groups_id
1271
+
1272
+ @slave_security_groups_id.setter
1273
+ def slave_security_groups_id(self, slave_security_groups_id):
1274
+ r"""Sets the slave_security_groups_id of this Cluster.
1275
+
1276
+ 非Master节点的安全组id,当前一个MRS集群只会使用一个安全组,所以该字段已经废弃,从兼容性考虑,该字段会返回和securityGroupsId同样的值。
1277
+
1278
+ :param slave_security_groups_id: The slave_security_groups_id of this Cluster.
1279
+ :type slave_security_groups_id: str
1280
+ """
1281
+ self._slave_security_groups_id = slave_security_groups_id
1282
+
1283
+ @property
1284
+ def bootstrap_scripts(self):
1285
+ r"""Gets the bootstrap_scripts of this Cluster.
1286
+
1287
+ 配置引导操作脚本信息。
1288
+
1289
+ :return: The bootstrap_scripts of this Cluster.
1290
+ :rtype: list[:class:`huaweicloudsdkmrs.v1.BootstrapScript`]
1291
+ """
1292
+ return self._bootstrap_scripts
1293
+
1294
+ @bootstrap_scripts.setter
1295
+ def bootstrap_scripts(self, bootstrap_scripts):
1296
+ r"""Sets the bootstrap_scripts of this Cluster.
1297
+
1298
+ 配置引导操作脚本信息。
1299
+
1300
+ :param bootstrap_scripts: The bootstrap_scripts of this Cluster.
1301
+ :type bootstrap_scripts: list[:class:`huaweicloudsdkmrs.v1.BootstrapScript`]
1302
+ """
1303
+ self._bootstrap_scripts = bootstrap_scripts
1304
+
1305
+ @property
1306
+ def safe_mode(self):
1307
+ r"""Gets the safe_mode of this Cluster.
1308
+
1309
+ MRS集群运行模式。 - 0:普通集群 - 1:安全集群
1310
+
1311
+ :return: The safe_mode of this Cluster.
1312
+ :rtype: int
1313
+ """
1314
+ return self._safe_mode
1315
+
1316
+ @safe_mode.setter
1317
+ def safe_mode(self, safe_mode):
1318
+ r"""Sets the safe_mode of this Cluster.
1319
+
1320
+ MRS集群运行模式。 - 0:普通集群 - 1:安全集群
1321
+
1322
+ :param safe_mode: The safe_mode of this Cluster.
1323
+ :type safe_mode: int
1324
+ """
1325
+ self._safe_mode = safe_mode
1326
+
1327
+ @property
1328
+ def cluster_version(self):
1329
+ r"""Gets the cluster_version of this Cluster.
1330
+
1331
+ 集群版本。
1332
+
1333
+ :return: The cluster_version of this Cluster.
1334
+ :rtype: str
1335
+ """
1336
+ return self._cluster_version
1337
+
1338
+ @cluster_version.setter
1339
+ def cluster_version(self, cluster_version):
1340
+ r"""Sets the cluster_version of this Cluster.
1341
+
1342
+ 集群版本。
1343
+
1344
+ :param cluster_version: The cluster_version of this Cluster.
1345
+ :type cluster_version: str
1346
+ """
1347
+ self._cluster_version = cluster_version
1348
+
1349
+ @property
1350
+ def node_public_cert_name(self):
1351
+ r"""Gets the node_public_cert_name of this Cluster.
1352
+
1353
+ 密钥文件名称。
1354
+
1355
+ :return: The node_public_cert_name of this Cluster.
1356
+ :rtype: str
1357
+ """
1358
+ return self._node_public_cert_name
1359
+
1360
+ @node_public_cert_name.setter
1361
+ def node_public_cert_name(self, node_public_cert_name):
1362
+ r"""Sets the node_public_cert_name of this Cluster.
1363
+
1364
+ 密钥文件名称。
1365
+
1366
+ :param node_public_cert_name: The node_public_cert_name of this Cluster.
1367
+ :type node_public_cert_name: str
1368
+ """
1369
+ self._node_public_cert_name = node_public_cert_name
1370
+
1371
+ @property
1372
+ def master_node_ip(self):
1373
+ r"""Gets the master_node_ip of this Cluster.
1374
+
1375
+ Master节点IP。
1376
+
1377
+ :return: The master_node_ip of this Cluster.
1378
+ :rtype: str
1379
+ """
1380
+ return self._master_node_ip
1381
+
1382
+ @master_node_ip.setter
1383
+ def master_node_ip(self, master_node_ip):
1384
+ r"""Sets the master_node_ip of this Cluster.
1385
+
1386
+ Master节点IP。
1387
+
1388
+ :param master_node_ip: The master_node_ip of this Cluster.
1389
+ :type master_node_ip: str
1390
+ """
1391
+ self._master_node_ip = master_node_ip
1392
+
1393
+ @property
1394
+ def private_ip_first(self):
1395
+ r"""Gets the private_ip_first of this Cluster.
1396
+
1397
+ 首选私有IP。
1398
+
1399
+ :return: The private_ip_first of this Cluster.
1400
+ :rtype: str
1401
+ """
1402
+ return self._private_ip_first
1403
+
1404
+ @private_ip_first.setter
1405
+ def private_ip_first(self, private_ip_first):
1406
+ r"""Sets the private_ip_first of this Cluster.
1407
+
1408
+ 首选私有IP。
1409
+
1410
+ :param private_ip_first: The private_ip_first of this Cluster.
1411
+ :type private_ip_first: str
1412
+ """
1413
+ self._private_ip_first = private_ip_first
1414
+
1415
+ @property
1416
+ def error_info(self):
1417
+ r"""Gets the error_info of this Cluster.
1418
+
1419
+ 错误信息。
1420
+
1421
+ :return: The error_info of this Cluster.
1422
+ :rtype: str
1423
+ """
1424
+ return self._error_info
1425
+
1426
+ @error_info.setter
1427
+ def error_info(self, error_info):
1428
+ r"""Sets the error_info of this Cluster.
1429
+
1430
+ 错误信息。
1431
+
1432
+ :param error_info: The error_info of this Cluster.
1433
+ :type error_info: str
1434
+ """
1435
+ self._error_info = error_info
1436
+
1437
+ @property
1438
+ def tags(self):
1439
+ r"""Gets the tags of this Cluster.
1440
+
1441
+ 标签信息
1442
+
1443
+ :return: The tags of this Cluster.
1444
+ :rtype: str
1445
+ """
1446
+ return self._tags
1447
+
1448
+ @tags.setter
1449
+ def tags(self, tags):
1450
+ r"""Sets the tags of this Cluster.
1451
+
1452
+ 标签信息
1453
+
1454
+ :param tags: The tags of this Cluster.
1455
+ :type tags: str
1456
+ """
1457
+ self._tags = tags
1458
+
1459
+ @property
1460
+ def master_node_num(self):
1461
+ r"""Gets the master_node_num of this Cluster.
1462
+
1463
+ 集群部署的Master节点数量。
1464
+
1465
+ :return: The master_node_num of this Cluster.
1466
+ :rtype: str
1467
+ """
1468
+ return self._master_node_num
1469
+
1470
+ @master_node_num.setter
1471
+ def master_node_num(self, master_node_num):
1472
+ r"""Sets the master_node_num of this Cluster.
1473
+
1474
+ 集群部署的Master节点数量。
1475
+
1476
+ :param master_node_num: The master_node_num of this Cluster.
1477
+ :type master_node_num: str
1478
+ """
1479
+ self._master_node_num = master_node_num
1480
+
1481
+ @property
1482
+ def core_node_num(self):
1483
+ r"""Gets the core_node_num of this Cluster.
1484
+
1485
+ 集群部署的Core节点数量。
1486
+
1487
+ :return: The core_node_num of this Cluster.
1488
+ :rtype: str
1489
+ """
1490
+ return self._core_node_num
1491
+
1492
+ @core_node_num.setter
1493
+ def core_node_num(self, core_node_num):
1494
+ r"""Sets the core_node_num of this Cluster.
1495
+
1496
+ 集群部署的Core节点数量。
1497
+
1498
+ :param core_node_num: The core_node_num of this Cluster.
1499
+ :type core_node_num: str
1500
+ """
1501
+ self._core_node_num = core_node_num
1502
+
1503
+ @property
1504
+ def master_node_size(self):
1505
+ r"""Gets the master_node_size of this Cluster.
1506
+
1507
+ Master节点的实例规格。
1508
+
1509
+ :return: The master_node_size of this Cluster.
1510
+ :rtype: str
1511
+ """
1512
+ return self._master_node_size
1513
+
1514
+ @master_node_size.setter
1515
+ def master_node_size(self, master_node_size):
1516
+ r"""Sets the master_node_size of this Cluster.
1517
+
1518
+ Master节点的实例规格。
1519
+
1520
+ :param master_node_size: The master_node_size of this Cluster.
1521
+ :type master_node_size: str
1522
+ """
1523
+ self._master_node_size = master_node_size
1524
+
1525
+ @property
1526
+ def core_node_size(self):
1527
+ r"""Gets the core_node_size of this Cluster.
1528
+
1529
+ Core节点的实例规格。
1530
+
1531
+ :return: The core_node_size of this Cluster.
1532
+ :rtype: str
1533
+ """
1534
+ return self._core_node_size
1535
+
1536
+ @core_node_size.setter
1537
+ def core_node_size(self, core_node_size):
1538
+ r"""Sets the core_node_size of this Cluster.
1539
+
1540
+ Core节点的实例规格。
1541
+
1542
+ :param core_node_size: The core_node_size of this Cluster.
1543
+ :type core_node_size: str
1544
+ """
1545
+ self._core_node_size = core_node_size
1546
+
1547
+ @property
1548
+ def master_node_product_id(self):
1549
+ r"""Gets the master_node_product_id of this Cluster.
1550
+
1551
+ Master节点产品ID。
1552
+
1553
+ :return: The master_node_product_id of this Cluster.
1554
+ :rtype: str
1555
+ """
1556
+ return self._master_node_product_id
1557
+
1558
+ @master_node_product_id.setter
1559
+ def master_node_product_id(self, master_node_product_id):
1560
+ r"""Sets the master_node_product_id of this Cluster.
1561
+
1562
+ Master节点产品ID。
1563
+
1564
+ :param master_node_product_id: The master_node_product_id of this Cluster.
1565
+ :type master_node_product_id: str
1566
+ """
1567
+ self._master_node_product_id = master_node_product_id
1568
+
1569
+ @property
1570
+ def master_node_spec_id(self):
1571
+ r"""Gets the master_node_spec_id of this Cluster.
1572
+
1573
+ Master节点规格ID。
1574
+
1575
+ :return: The master_node_spec_id of this Cluster.
1576
+ :rtype: str
1577
+ """
1578
+ return self._master_node_spec_id
1579
+
1580
+ @master_node_spec_id.setter
1581
+ def master_node_spec_id(self, master_node_spec_id):
1582
+ r"""Sets the master_node_spec_id of this Cluster.
1583
+
1584
+ Master节点规格ID。
1585
+
1586
+ :param master_node_spec_id: The master_node_spec_id of this Cluster.
1587
+ :type master_node_spec_id: str
1588
+ """
1589
+ self._master_node_spec_id = master_node_spec_id
1590
+
1591
+ @property
1592
+ def core_node_product_id(self):
1593
+ r"""Gets the core_node_product_id of this Cluster.
1594
+
1595
+ Core节点产品ID。
1596
+
1597
+ :return: The core_node_product_id of this Cluster.
1598
+ :rtype: str
1599
+ """
1600
+ return self._core_node_product_id
1601
+
1602
+ @core_node_product_id.setter
1603
+ def core_node_product_id(self, core_node_product_id):
1604
+ r"""Sets the core_node_product_id of this Cluster.
1605
+
1606
+ Core节点产品ID。
1607
+
1608
+ :param core_node_product_id: The core_node_product_id of this Cluster.
1609
+ :type core_node_product_id: str
1610
+ """
1611
+ self._core_node_product_id = core_node_product_id
1612
+
1613
+ @property
1614
+ def core_node_spec_id(self):
1615
+ r"""Gets the core_node_spec_id of this Cluster.
1616
+
1617
+ Core节点规格ID。
1618
+
1619
+ :return: The core_node_spec_id of this Cluster.
1620
+ :rtype: str
1621
+ """
1622
+ return self._core_node_spec_id
1623
+
1624
+ @core_node_spec_id.setter
1625
+ def core_node_spec_id(self, core_node_spec_id):
1626
+ r"""Sets the core_node_spec_id of this Cluster.
1627
+
1628
+ Core节点规格ID。
1629
+
1630
+ :param core_node_spec_id: The core_node_spec_id of this Cluster.
1631
+ :type core_node_spec_id: str
1632
+ """
1633
+ self._core_node_spec_id = core_node_spec_id
1634
+
1635
+ @property
1636
+ def master_data_volume_type(self):
1637
+ r"""Gets the master_data_volume_type of this Cluster.
1638
+
1639
+ Master节点数据磁盘存储类别,目前支持SATA、SAS和SSD。
1640
+
1641
+ :return: The master_data_volume_type of this Cluster.
1642
+ :rtype: str
1643
+ """
1644
+ return self._master_data_volume_type
1645
+
1646
+ @master_data_volume_type.setter
1647
+ def master_data_volume_type(self, master_data_volume_type):
1648
+ r"""Sets the master_data_volume_type of this Cluster.
1649
+
1650
+ Master节点数据磁盘存储类别,目前支持SATA、SAS和SSD。
1651
+
1652
+ :param master_data_volume_type: The master_data_volume_type of this Cluster.
1653
+ :type master_data_volume_type: str
1654
+ """
1655
+ self._master_data_volume_type = master_data_volume_type
1656
+
1657
+ @property
1658
+ def master_data_volume_size(self):
1659
+ r"""Gets the master_data_volume_size of this Cluster.
1660
+
1661
+ Master节点数据磁盘存储空间。为增大数据存储容量,创建集群时可同时添加磁盘。 取值范围:100GB~32000GB,传值只需填数字,不需要带单位GB。
1662
+
1663
+ :return: The master_data_volume_size of this Cluster.
1664
+ :rtype: int
1665
+ """
1666
+ return self._master_data_volume_size
1667
+
1668
+ @master_data_volume_size.setter
1669
+ def master_data_volume_size(self, master_data_volume_size):
1670
+ r"""Sets the master_data_volume_size of this Cluster.
1671
+
1672
+ Master节点数据磁盘存储空间。为增大数据存储容量,创建集群时可同时添加磁盘。 取值范围:100GB~32000GB,传值只需填数字,不需要带单位GB。
1673
+
1674
+ :param master_data_volume_size: The master_data_volume_size of this Cluster.
1675
+ :type master_data_volume_size: int
1676
+ """
1677
+ self._master_data_volume_size = master_data_volume_size
1678
+
1679
+ @property
1680
+ def master_data_volume_count(self):
1681
+ r"""Gets the master_data_volume_count of this Cluster.
1682
+
1683
+ Master节点数据磁盘个数。 取值只能是1
1684
+
1685
+ :return: The master_data_volume_count of this Cluster.
1686
+ :rtype: int
1687
+ """
1688
+ return self._master_data_volume_count
1689
+
1690
+ @master_data_volume_count.setter
1691
+ def master_data_volume_count(self, master_data_volume_count):
1692
+ r"""Sets the master_data_volume_count of this Cluster.
1693
+
1694
+ Master节点数据磁盘个数。 取值只能是1
1695
+
1696
+ :param master_data_volume_count: The master_data_volume_count of this Cluster.
1697
+ :type master_data_volume_count: int
1698
+ """
1699
+ self._master_data_volume_count = master_data_volume_count
1700
+
1701
+ @property
1702
+ def core_data_volume_type(self):
1703
+ r"""Gets the core_data_volume_type of this Cluster.
1704
+
1705
+ Core节点数据磁盘存储类别,目前支持SATA、SAS和SSD。
1706
+
1707
+ :return: The core_data_volume_type of this Cluster.
1708
+ :rtype: str
1709
+ """
1710
+ return self._core_data_volume_type
1711
+
1712
+ @core_data_volume_type.setter
1713
+ def core_data_volume_type(self, core_data_volume_type):
1714
+ r"""Sets the core_data_volume_type of this Cluster.
1715
+
1716
+ Core节点数据磁盘存储类别,目前支持SATA、SAS和SSD。
1717
+
1718
+ :param core_data_volume_type: The core_data_volume_type of this Cluster.
1719
+ :type core_data_volume_type: str
1720
+ """
1721
+ self._core_data_volume_type = core_data_volume_type
1722
+
1723
+ @property
1724
+ def core_data_volume_size(self):
1725
+ r"""Gets the core_data_volume_size of this Cluster.
1726
+
1727
+ Core节点数据磁盘存储空间。为增大数据存储容量,创建集群时可同时添加磁盘。 取值范围:100GB~32000GB,传值只需填数字,不需要带单位GB。
1728
+
1729
+ :return: The core_data_volume_size of this Cluster.
1730
+ :rtype: int
1731
+ """
1732
+ return self._core_data_volume_size
1733
+
1734
+ @core_data_volume_size.setter
1735
+ def core_data_volume_size(self, core_data_volume_size):
1736
+ r"""Sets the core_data_volume_size of this Cluster.
1737
+
1738
+ Core节点数据磁盘存储空间。为增大数据存储容量,创建集群时可同时添加磁盘。 取值范围:100GB~32000GB,传值只需填数字,不需要带单位GB。
1739
+
1740
+ :param core_data_volume_size: The core_data_volume_size of this Cluster.
1741
+ :type core_data_volume_size: int
1742
+ """
1743
+ self._core_data_volume_size = core_data_volume_size
1744
+
1745
+ @property
1746
+ def core_data_volume_count(self):
1747
+ r"""Gets the core_data_volume_count of this Cluster.
1748
+
1749
+ Core节点数据磁盘个数。 取值范围:1~10
1750
+
1751
+ :return: The core_data_volume_count of this Cluster.
1752
+ :rtype: int
1753
+ """
1754
+ return self._core_data_volume_count
1755
+
1756
+ @core_data_volume_count.setter
1757
+ def core_data_volume_count(self, core_data_volume_count):
1758
+ r"""Sets the core_data_volume_count of this Cluster.
1759
+
1760
+ Core节点数据磁盘个数。 取值范围:1~10
1761
+
1762
+ :param core_data_volume_count: The core_data_volume_count of this Cluster.
1763
+ :type core_data_volume_count: int
1764
+ """
1765
+ self._core_data_volume_count = core_data_volume_count
1766
+
1767
+ @property
1768
+ def enterprise_project_id(self):
1769
+ r"""Gets the enterprise_project_id of this Cluster.
1770
+
1771
+ 企业项目ID。
1772
+
1773
+ :return: The enterprise_project_id of this Cluster.
1774
+ :rtype: str
1775
+ """
1776
+ return self._enterprise_project_id
1777
+
1778
+ @enterprise_project_id.setter
1779
+ def enterprise_project_id(self, enterprise_project_id):
1780
+ r"""Sets the enterprise_project_id of this Cluster.
1781
+
1782
+ 企业项目ID。
1783
+
1784
+ :param enterprise_project_id: The enterprise_project_id of this Cluster.
1785
+ :type enterprise_project_id: str
1786
+ """
1787
+ self._enterprise_project_id = enterprise_project_id
1788
+
1789
+ @property
1790
+ def is_mrs_manager_finish(self):
1791
+ r"""Gets the is_mrs_manager_finish of this Cluster.
1792
+
1793
+ 表示集群创建过程中,MRS Manager是否安装完成。 - true:安装完成 - false:安装未完成
1794
+
1795
+ :return: The is_mrs_manager_finish of this Cluster.
1796
+ :rtype: bool
1797
+ """
1798
+ return self._is_mrs_manager_finish
1799
+
1800
+ @is_mrs_manager_finish.setter
1801
+ def is_mrs_manager_finish(self, is_mrs_manager_finish):
1802
+ r"""Sets the is_mrs_manager_finish of this Cluster.
1803
+
1804
+ 表示集群创建过程中,MRS Manager是否安装完成。 - true:安装完成 - false:安装未完成
1805
+
1806
+ :param is_mrs_manager_finish: The is_mrs_manager_finish of this Cluster.
1807
+ :type is_mrs_manager_finish: bool
1808
+ """
1809
+ self._is_mrs_manager_finish = is_mrs_manager_finish
1810
+
1811
+ @property
1812
+ def cluster_type(self):
1813
+ r"""Gets the cluster_type of this Cluster.
1814
+
1815
+ 集群类型。
1816
+
1817
+ :return: The cluster_type of this Cluster.
1818
+ :rtype: int
1819
+ """
1820
+ return self._cluster_type
1821
+
1822
+ @cluster_type.setter
1823
+ def cluster_type(self, cluster_type):
1824
+ r"""Sets the cluster_type of this Cluster.
1825
+
1826
+ 集群类型。
1827
+
1828
+ :param cluster_type: The cluster_type of this Cluster.
1829
+ :type cluster_type: int
1830
+ """
1831
+ self._cluster_type = cluster_type
1832
+
1833
+ @property
1834
+ def log_collection(self):
1835
+ r"""Gets the log_collection of this Cluster.
1836
+
1837
+ 集群安装失败时,是否搜集日志。 - 0:不收集 - 1:收集
1838
+
1839
+ :return: The log_collection of this Cluster.
1840
+ :rtype: int
1841
+ """
1842
+ return self._log_collection
1843
+
1844
+ @log_collection.setter
1845
+ def log_collection(self, log_collection):
1846
+ r"""Sets the log_collection of this Cluster.
1847
+
1848
+ 集群安装失败时,是否搜集日志。 - 0:不收集 - 1:收集
1849
+
1850
+ :param log_collection: The log_collection of this Cluster.
1851
+ :type log_collection: int
1852
+ """
1853
+ self._log_collection = log_collection
1854
+
1855
+ @property
1856
+ def period_type(self):
1857
+ r"""Gets the period_type of this Cluster.
1858
+
1859
+ 区分包周期,集群是包年还是包月。 - 0:包月 - 1:包年
1860
+
1861
+ :return: The period_type of this Cluster.
1862
+ :rtype: int
1863
+ """
1864
+ return self._period_type
1865
+
1866
+ @period_type.setter
1867
+ def period_type(self, period_type):
1868
+ r"""Sets the period_type of this Cluster.
1869
+
1870
+ 区分包周期,集群是包年还是包月。 - 0:包月 - 1:包年
1871
+
1872
+ :param period_type: The period_type of this Cluster.
1873
+ :type period_type: int
1874
+ """
1875
+ self._period_type = period_type
1876
+
1877
+ @property
1878
+ def scale(self):
1879
+ r"""Gets the scale of this Cluster.
1880
+
1881
+ 集群节点的变更状态(扩容/缩容/变更规格)。当该参数取值为空时,表示集群节点没有进行变更操作。 取值范围: - scaling-out:扩容中 - scaling-in:缩容中 - scaling-error:处于running状态,且上一次扩容/缩容/升级规格失败的集群 - scaling-up:Master节点规格升级中 - scaling_up_first:备Master节点规格升级中 - scaled_up_first:备Master节点规格升级成功 - scaled-up-success:Master节点规格升级成功
1882
+
1883
+ :return: The scale of this Cluster.
1884
+ :rtype: str
1885
+ """
1886
+ return self._scale
1887
+
1888
+ @scale.setter
1889
+ def scale(self, scale):
1890
+ r"""Sets the scale of this Cluster.
1891
+
1892
+ 集群节点的变更状态(扩容/缩容/变更规格)。当该参数取值为空时,表示集群节点没有进行变更操作。 取值范围: - scaling-out:扩容中 - scaling-in:缩容中 - scaling-error:处于running状态,且上一次扩容/缩容/升级规格失败的集群 - scaling-up:Master节点规格升级中 - scaling_up_first:备Master节点规格升级中 - scaled_up_first:备Master节点规格升级成功 - scaled-up-success:Master节点规格升级成功
1893
+
1894
+ :param scale: The scale of this Cluster.
1895
+ :type scale: str
1896
+ """
1897
+ self._scale = scale
1898
+
1899
+ @property
1900
+ def node_groups(self):
1901
+ r"""Gets the node_groups of this Cluster.
1902
+
1903
+ Master节点、Core节点和Task节点列表信息。
1904
+
1905
+ :return: The node_groups of this Cluster.
1906
+ :rtype: list[:class:`huaweicloudsdkmrs.v1.NodeGroupV10`]
1907
+ """
1908
+ return self._node_groups
1909
+
1910
+ @node_groups.setter
1911
+ def node_groups(self, node_groups):
1912
+ r"""Sets the node_groups of this Cluster.
1913
+
1914
+ Master节点、Core节点和Task节点列表信息。
1915
+
1916
+ :param node_groups: The node_groups of this Cluster.
1917
+ :type node_groups: list[:class:`huaweicloudsdkmrs.v1.NodeGroupV10`]
1918
+ """
1919
+ self._node_groups = node_groups
1920
+
1921
+ @property
1922
+ def task_node_groups(self):
1923
+ r"""Gets the task_node_groups of this Cluster.
1924
+
1925
+ Task节点列表信息。
1926
+
1927
+ :return: The task_node_groups of this Cluster.
1928
+ :rtype: list[:class:`huaweicloudsdkmrs.v1.NodeGroupV10`]
1929
+ """
1930
+ return self._task_node_groups
1931
+
1932
+ @task_node_groups.setter
1933
+ def task_node_groups(self, task_node_groups):
1934
+ r"""Sets the task_node_groups of this Cluster.
1935
+
1936
+ Task节点列表信息。
1937
+
1938
+ :param task_node_groups: The task_node_groups of this Cluster.
1939
+ :type task_node_groups: list[:class:`huaweicloudsdkmrs.v1.NodeGroupV10`]
1940
+ """
1941
+ self._task_node_groups = task_node_groups
1942
+
1943
+ @property
1944
+ def eip_id(self):
1945
+ r"""Gets the eip_id of this Cluster.
1946
+
1947
+ 集群弹性公网ip的唯一标识
1948
+
1949
+ :return: The eip_id of this Cluster.
1950
+ :rtype: str
1951
+ """
1952
+ return self._eip_id
1953
+
1954
+ @eip_id.setter
1955
+ def eip_id(self, eip_id):
1956
+ r"""Sets the eip_id of this Cluster.
1957
+
1958
+ 集群弹性公网ip的唯一标识
1959
+
1960
+ :param eip_id: The eip_id of this Cluster.
1961
+ :type eip_id: str
1962
+ """
1963
+ self._eip_id = eip_id
1964
+
1965
+ @property
1966
+ def eip_address(self):
1967
+ r"""Gets the eip_address of this Cluster.
1968
+
1969
+ 集群弹性公网ip的IPV4地址
1970
+
1971
+ :return: The eip_address of this Cluster.
1972
+ :rtype: str
1973
+ """
1974
+ return self._eip_address
1975
+
1976
+ @eip_address.setter
1977
+ def eip_address(self, eip_address):
1978
+ r"""Sets the eip_address of this Cluster.
1979
+
1980
+ 集群弹性公网ip的IPV4地址
1981
+
1982
+ :param eip_address: The eip_address of this Cluster.
1983
+ :type eip_address: str
1984
+ """
1985
+ self._eip_address = eip_address
1986
+
1987
+ @property
1988
+ def eipv6_address(self):
1989
+ r"""Gets the eipv6_address of this Cluster.
1990
+
1991
+ 集群弹性公网ip的IPV6地址,IPv4时无此字段。
1992
+
1993
+ :return: The eipv6_address of this Cluster.
1994
+ :rtype: str
1995
+ """
1996
+ return self._eipv6_address
1997
+
1998
+ @eipv6_address.setter
1999
+ def eipv6_address(self, eipv6_address):
2000
+ r"""Sets the eipv6_address of this Cluster.
2001
+
2002
+ 集群弹性公网ip的IPV6地址,IPv4时无此字段。
2003
+
2004
+ :param eipv6_address: The eipv6_address of this Cluster.
2005
+ :type eipv6_address: str
2006
+ """
2007
+ self._eipv6_address = eipv6_address
2008
+
2009
+ def to_dict(self):
2010
+ """Returns the model properties as a dict"""
2011
+ result = {}
2012
+
2013
+ for attr, _ in six.iteritems(self.openapi_types):
2014
+ value = getattr(self, attr)
2015
+ if isinstance(value, list):
2016
+ result[attr] = list(map(
2017
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
2018
+ value
2019
+ ))
2020
+ elif hasattr(value, "to_dict"):
2021
+ result[attr] = value.to_dict()
2022
+ elif isinstance(value, dict):
2023
+ result[attr] = dict(map(
2024
+ lambda item: (item[0], item[1].to_dict())
2025
+ if hasattr(item[1], "to_dict") else item,
2026
+ value.items()
2027
+ ))
2028
+ else:
2029
+ if attr in self.sensitive_list:
2030
+ result[attr] = "****"
2031
+ else:
2032
+ result[attr] = value
2033
+
2034
+ return result
2035
+
2036
+ def to_str(self):
2037
+ """Returns the string representation of the model"""
2038
+ import simplejson as json
2039
+ if six.PY2:
2040
+ import sys
2041
+ reload(sys)
2042
+ sys.setdefaultencoding("utf-8")
2043
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
2044
+
2045
+ def __repr__(self):
2046
+ """For `print`"""
2047
+ return self.to_str()
2048
+
2049
+ def __eq__(self, other):
2050
+ """Returns true if both objects are equal"""
2051
+ if not isinstance(other, Cluster):
2052
+ return False
2053
+
2054
+ return self.__dict__ == other.__dict__
2055
+
2056
+ def __ne__(self, other):
2057
+ """Returns true if both objects are not equal"""
2058
+ return not self == other