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,200 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ExpandParam:
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
+ 'node_group_name': 'str',
21
+ 'count': 'int',
22
+ 'skip_bootstrap_scripts': 'bool',
23
+ 'scale_without_start': 'bool'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'node_group_name': 'node_group_name',
28
+ 'count': 'count',
29
+ 'skip_bootstrap_scripts': 'skip_bootstrap_scripts',
30
+ 'scale_without_start': 'scale_without_start'
31
+ }
32
+
33
+ def __init__(self, node_group_name=None, count=None, skip_bootstrap_scripts=None, scale_without_start=None):
34
+ r"""ExpandParam
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param node_group_name: 节点组名称
39
+ :type node_group_name: str
40
+ :param count: 扩容节点数量
41
+ :type count: int
42
+ :param skip_bootstrap_scripts: 扩容时是否在新增节点上跳过执行创建集群时指定的引导操作。未填写时,默认不执行引导操作。
43
+ :type skip_bootstrap_scripts: bool
44
+ :param scale_without_start: 扩容后是否选择不启动扩容节点上的组件。未填写时,默认启动组件。 - true:扩容后不启动组件。 - false:扩容后启动组件。
45
+ :type scale_without_start: bool
46
+ """
47
+
48
+
49
+
50
+ self._node_group_name = None
51
+ self._count = None
52
+ self._skip_bootstrap_scripts = None
53
+ self._scale_without_start = None
54
+ self.discriminator = None
55
+
56
+ self.node_group_name = node_group_name
57
+ self.count = count
58
+ if skip_bootstrap_scripts is not None:
59
+ self.skip_bootstrap_scripts = skip_bootstrap_scripts
60
+ if scale_without_start is not None:
61
+ self.scale_without_start = scale_without_start
62
+
63
+ @property
64
+ def node_group_name(self):
65
+ r"""Gets the node_group_name of this ExpandParam.
66
+
67
+ 节点组名称
68
+
69
+ :return: The node_group_name of this ExpandParam.
70
+ :rtype: str
71
+ """
72
+ return self._node_group_name
73
+
74
+ @node_group_name.setter
75
+ def node_group_name(self, node_group_name):
76
+ r"""Sets the node_group_name of this ExpandParam.
77
+
78
+ 节点组名称
79
+
80
+ :param node_group_name: The node_group_name of this ExpandParam.
81
+ :type node_group_name: str
82
+ """
83
+ self._node_group_name = node_group_name
84
+
85
+ @property
86
+ def count(self):
87
+ r"""Gets the count of this ExpandParam.
88
+
89
+ 扩容节点数量
90
+
91
+ :return: The count of this ExpandParam.
92
+ :rtype: int
93
+ """
94
+ return self._count
95
+
96
+ @count.setter
97
+ def count(self, count):
98
+ r"""Sets the count of this ExpandParam.
99
+
100
+ 扩容节点数量
101
+
102
+ :param count: The count of this ExpandParam.
103
+ :type count: int
104
+ """
105
+ self._count = count
106
+
107
+ @property
108
+ def skip_bootstrap_scripts(self):
109
+ r"""Gets the skip_bootstrap_scripts of this ExpandParam.
110
+
111
+ 扩容时是否在新增节点上跳过执行创建集群时指定的引导操作。未填写时,默认不执行引导操作。
112
+
113
+ :return: The skip_bootstrap_scripts of this ExpandParam.
114
+ :rtype: bool
115
+ """
116
+ return self._skip_bootstrap_scripts
117
+
118
+ @skip_bootstrap_scripts.setter
119
+ def skip_bootstrap_scripts(self, skip_bootstrap_scripts):
120
+ r"""Sets the skip_bootstrap_scripts of this ExpandParam.
121
+
122
+ 扩容时是否在新增节点上跳过执行创建集群时指定的引导操作。未填写时,默认不执行引导操作。
123
+
124
+ :param skip_bootstrap_scripts: The skip_bootstrap_scripts of this ExpandParam.
125
+ :type skip_bootstrap_scripts: bool
126
+ """
127
+ self._skip_bootstrap_scripts = skip_bootstrap_scripts
128
+
129
+ @property
130
+ def scale_without_start(self):
131
+ r"""Gets the scale_without_start of this ExpandParam.
132
+
133
+ 扩容后是否选择不启动扩容节点上的组件。未填写时,默认启动组件。 - true:扩容后不启动组件。 - false:扩容后启动组件。
134
+
135
+ :return: The scale_without_start of this ExpandParam.
136
+ :rtype: bool
137
+ """
138
+ return self._scale_without_start
139
+
140
+ @scale_without_start.setter
141
+ def scale_without_start(self, scale_without_start):
142
+ r"""Sets the scale_without_start of this ExpandParam.
143
+
144
+ 扩容后是否选择不启动扩容节点上的组件。未填写时,默认启动组件。 - true:扩容后不启动组件。 - false:扩容后启动组件。
145
+
146
+ :param scale_without_start: The scale_without_start of this ExpandParam.
147
+ :type scale_without_start: bool
148
+ """
149
+ self._scale_without_start = scale_without_start
150
+
151
+ def to_dict(self):
152
+ """Returns the model properties as a dict"""
153
+ result = {}
154
+
155
+ for attr, _ in six.iteritems(self.openapi_types):
156
+ value = getattr(self, attr)
157
+ if isinstance(value, list):
158
+ result[attr] = list(map(
159
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
160
+ value
161
+ ))
162
+ elif hasattr(value, "to_dict"):
163
+ result[attr] = value.to_dict()
164
+ elif isinstance(value, dict):
165
+ result[attr] = dict(map(
166
+ lambda item: (item[0], item[1].to_dict())
167
+ if hasattr(item[1], "to_dict") else item,
168
+ value.items()
169
+ ))
170
+ else:
171
+ if attr in self.sensitive_list:
172
+ result[attr] = "****"
173
+ else:
174
+ result[attr] = value
175
+
176
+ return result
177
+
178
+ def to_str(self):
179
+ """Returns the string representation of the model"""
180
+ import simplejson as json
181
+ if six.PY2:
182
+ import sys
183
+ reload(sys)
184
+ sys.setdefaultencoding("utf-8")
185
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
186
+
187
+ def __repr__(self):
188
+ """For `print`"""
189
+ return self.to_str()
190
+
191
+ def __eq__(self, other):
192
+ """Returns true if both objects are equal"""
193
+ if not isinstance(other, ExpandParam):
194
+ return False
195
+
196
+ return self.__dict__ == other.__dict__
197
+
198
+ def __ne__(self, other):
199
+ """Returns true if both objects are not equal"""
200
+ return not self == other
@@ -0,0 +1,405 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class FileStatusV2:
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
+ 'path_suffix': 'str',
21
+ 'owner': 'str',
22
+ 'group': 'str',
23
+ 'permission': 'str',
24
+ 'replication': 'int',
25
+ 'block_size': 'int',
26
+ 'length': 'int',
27
+ 'type': 'str',
28
+ 'children_num': 'int',
29
+ 'access_time': 'int',
30
+ 'modification_time': 'int'
31
+ }
32
+
33
+ attribute_map = {
34
+ 'path_suffix': 'path_suffix',
35
+ 'owner': 'owner',
36
+ 'group': 'group',
37
+ 'permission': 'permission',
38
+ 'replication': 'replication',
39
+ 'block_size': 'block_size',
40
+ 'length': 'length',
41
+ 'type': 'type',
42
+ 'children_num': 'children_num',
43
+ 'access_time': 'access_time',
44
+ 'modification_time': 'modification_time'
45
+ }
46
+
47
+ def __init__(self, path_suffix=None, owner=None, group=None, permission=None, replication=None, block_size=None, length=None, type=None, children_num=None, access_time=None, modification_time=None):
48
+ r"""FileStatusV2
49
+
50
+ The model defined in huaweicloud sdk
51
+
52
+ :param path_suffix: 文件在当前目录下的后缀,如获取“/tmp”目录,下面的“/tmp/test”文件,此处path_suffix内容为“test”。
53
+ :type path_suffix: str
54
+ :param owner: 文件拥有者。
55
+ :type owner: str
56
+ :param group: 文件属组。
57
+ :type group: str
58
+ :param permission: 权限信息。
59
+ :type permission: str
60
+ :param replication: 副本数。
61
+ :type replication: int
62
+ :param block_size: 块大小。
63
+ :type block_size: int
64
+ :param length: 文件长度。
65
+ :type length: int
66
+ :param type: 文件类型: - FILE:文件 - DIRECTORY:目录
67
+ :type type: str
68
+ :param children_num: 该目录下的文件条目数。
69
+ :type children_num: int
70
+ :param access_time: 文件访问时间。
71
+ :type access_time: int
72
+ :param modification_time: 文件修改时间。
73
+ :type modification_time: int
74
+ """
75
+
76
+
77
+
78
+ self._path_suffix = None
79
+ self._owner = None
80
+ self._group = None
81
+ self._permission = None
82
+ self._replication = None
83
+ self._block_size = None
84
+ self._length = None
85
+ self._type = None
86
+ self._children_num = None
87
+ self._access_time = None
88
+ self._modification_time = None
89
+ self.discriminator = None
90
+
91
+ if path_suffix is not None:
92
+ self.path_suffix = path_suffix
93
+ if owner is not None:
94
+ self.owner = owner
95
+ if group is not None:
96
+ self.group = group
97
+ if permission is not None:
98
+ self.permission = permission
99
+ if replication is not None:
100
+ self.replication = replication
101
+ if block_size is not None:
102
+ self.block_size = block_size
103
+ if length is not None:
104
+ self.length = length
105
+ if type is not None:
106
+ self.type = type
107
+ if children_num is not None:
108
+ self.children_num = children_num
109
+ if access_time is not None:
110
+ self.access_time = access_time
111
+ if modification_time is not None:
112
+ self.modification_time = modification_time
113
+
114
+ @property
115
+ def path_suffix(self):
116
+ r"""Gets the path_suffix of this FileStatusV2.
117
+
118
+ 文件在当前目录下的后缀,如获取“/tmp”目录,下面的“/tmp/test”文件,此处path_suffix内容为“test”。
119
+
120
+ :return: The path_suffix of this FileStatusV2.
121
+ :rtype: str
122
+ """
123
+ return self._path_suffix
124
+
125
+ @path_suffix.setter
126
+ def path_suffix(self, path_suffix):
127
+ r"""Sets the path_suffix of this FileStatusV2.
128
+
129
+ 文件在当前目录下的后缀,如获取“/tmp”目录,下面的“/tmp/test”文件,此处path_suffix内容为“test”。
130
+
131
+ :param path_suffix: The path_suffix of this FileStatusV2.
132
+ :type path_suffix: str
133
+ """
134
+ self._path_suffix = path_suffix
135
+
136
+ @property
137
+ def owner(self):
138
+ r"""Gets the owner of this FileStatusV2.
139
+
140
+ 文件拥有者。
141
+
142
+ :return: The owner of this FileStatusV2.
143
+ :rtype: str
144
+ """
145
+ return self._owner
146
+
147
+ @owner.setter
148
+ def owner(self, owner):
149
+ r"""Sets the owner of this FileStatusV2.
150
+
151
+ 文件拥有者。
152
+
153
+ :param owner: The owner of this FileStatusV2.
154
+ :type owner: str
155
+ """
156
+ self._owner = owner
157
+
158
+ @property
159
+ def group(self):
160
+ r"""Gets the group of this FileStatusV2.
161
+
162
+ 文件属组。
163
+
164
+ :return: The group of this FileStatusV2.
165
+ :rtype: str
166
+ """
167
+ return self._group
168
+
169
+ @group.setter
170
+ def group(self, group):
171
+ r"""Sets the group of this FileStatusV2.
172
+
173
+ 文件属组。
174
+
175
+ :param group: The group of this FileStatusV2.
176
+ :type group: str
177
+ """
178
+ self._group = group
179
+
180
+ @property
181
+ def permission(self):
182
+ r"""Gets the permission of this FileStatusV2.
183
+
184
+ 权限信息。
185
+
186
+ :return: The permission of this FileStatusV2.
187
+ :rtype: str
188
+ """
189
+ return self._permission
190
+
191
+ @permission.setter
192
+ def permission(self, permission):
193
+ r"""Sets the permission of this FileStatusV2.
194
+
195
+ 权限信息。
196
+
197
+ :param permission: The permission of this FileStatusV2.
198
+ :type permission: str
199
+ """
200
+ self._permission = permission
201
+
202
+ @property
203
+ def replication(self):
204
+ r"""Gets the replication of this FileStatusV2.
205
+
206
+ 副本数。
207
+
208
+ :return: The replication of this FileStatusV2.
209
+ :rtype: int
210
+ """
211
+ return self._replication
212
+
213
+ @replication.setter
214
+ def replication(self, replication):
215
+ r"""Sets the replication of this FileStatusV2.
216
+
217
+ 副本数。
218
+
219
+ :param replication: The replication of this FileStatusV2.
220
+ :type replication: int
221
+ """
222
+ self._replication = replication
223
+
224
+ @property
225
+ def block_size(self):
226
+ r"""Gets the block_size of this FileStatusV2.
227
+
228
+ 块大小。
229
+
230
+ :return: The block_size of this FileStatusV2.
231
+ :rtype: int
232
+ """
233
+ return self._block_size
234
+
235
+ @block_size.setter
236
+ def block_size(self, block_size):
237
+ r"""Sets the block_size of this FileStatusV2.
238
+
239
+ 块大小。
240
+
241
+ :param block_size: The block_size of this FileStatusV2.
242
+ :type block_size: int
243
+ """
244
+ self._block_size = block_size
245
+
246
+ @property
247
+ def length(self):
248
+ r"""Gets the length of this FileStatusV2.
249
+
250
+ 文件长度。
251
+
252
+ :return: The length of this FileStatusV2.
253
+ :rtype: int
254
+ """
255
+ return self._length
256
+
257
+ @length.setter
258
+ def length(self, length):
259
+ r"""Sets the length of this FileStatusV2.
260
+
261
+ 文件长度。
262
+
263
+ :param length: The length of this FileStatusV2.
264
+ :type length: int
265
+ """
266
+ self._length = length
267
+
268
+ @property
269
+ def type(self):
270
+ r"""Gets the type of this FileStatusV2.
271
+
272
+ 文件类型: - FILE:文件 - DIRECTORY:目录
273
+
274
+ :return: The type of this FileStatusV2.
275
+ :rtype: str
276
+ """
277
+ return self._type
278
+
279
+ @type.setter
280
+ def type(self, type):
281
+ r"""Sets the type of this FileStatusV2.
282
+
283
+ 文件类型: - FILE:文件 - DIRECTORY:目录
284
+
285
+ :param type: The type of this FileStatusV2.
286
+ :type type: str
287
+ """
288
+ self._type = type
289
+
290
+ @property
291
+ def children_num(self):
292
+ r"""Gets the children_num of this FileStatusV2.
293
+
294
+ 该目录下的文件条目数。
295
+
296
+ :return: The children_num of this FileStatusV2.
297
+ :rtype: int
298
+ """
299
+ return self._children_num
300
+
301
+ @children_num.setter
302
+ def children_num(self, children_num):
303
+ r"""Sets the children_num of this FileStatusV2.
304
+
305
+ 该目录下的文件条目数。
306
+
307
+ :param children_num: The children_num of this FileStatusV2.
308
+ :type children_num: int
309
+ """
310
+ self._children_num = children_num
311
+
312
+ @property
313
+ def access_time(self):
314
+ r"""Gets the access_time of this FileStatusV2.
315
+
316
+ 文件访问时间。
317
+
318
+ :return: The access_time of this FileStatusV2.
319
+ :rtype: int
320
+ """
321
+ return self._access_time
322
+
323
+ @access_time.setter
324
+ def access_time(self, access_time):
325
+ r"""Sets the access_time of this FileStatusV2.
326
+
327
+ 文件访问时间。
328
+
329
+ :param access_time: The access_time of this FileStatusV2.
330
+ :type access_time: int
331
+ """
332
+ self._access_time = access_time
333
+
334
+ @property
335
+ def modification_time(self):
336
+ r"""Gets the modification_time of this FileStatusV2.
337
+
338
+ 文件修改时间。
339
+
340
+ :return: The modification_time of this FileStatusV2.
341
+ :rtype: int
342
+ """
343
+ return self._modification_time
344
+
345
+ @modification_time.setter
346
+ def modification_time(self, modification_time):
347
+ r"""Sets the modification_time of this FileStatusV2.
348
+
349
+ 文件修改时间。
350
+
351
+ :param modification_time: The modification_time of this FileStatusV2.
352
+ :type modification_time: int
353
+ """
354
+ self._modification_time = modification_time
355
+
356
+ def to_dict(self):
357
+ """Returns the model properties as a dict"""
358
+ result = {}
359
+
360
+ for attr, _ in six.iteritems(self.openapi_types):
361
+ value = getattr(self, attr)
362
+ if isinstance(value, list):
363
+ result[attr] = list(map(
364
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
365
+ value
366
+ ))
367
+ elif hasattr(value, "to_dict"):
368
+ result[attr] = value.to_dict()
369
+ elif isinstance(value, dict):
370
+ result[attr] = dict(map(
371
+ lambda item: (item[0], item[1].to_dict())
372
+ if hasattr(item[1], "to_dict") else item,
373
+ value.items()
374
+ ))
375
+ else:
376
+ if attr in self.sensitive_list:
377
+ result[attr] = "****"
378
+ else:
379
+ result[attr] = value
380
+
381
+ return result
382
+
383
+ def to_str(self):
384
+ """Returns the string representation of the model"""
385
+ import simplejson as json
386
+ if six.PY2:
387
+ import sys
388
+ reload(sys)
389
+ sys.setdefaultencoding("utf-8")
390
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
391
+
392
+ def __repr__(self):
393
+ """For `print`"""
394
+ return self.to_str()
395
+
396
+ def __eq__(self, other):
397
+ """Returns true if both objects are equal"""
398
+ if not isinstance(other, FileStatusV2):
399
+ return False
400
+
401
+ return self.__dict__ == other.__dict__
402
+
403
+ def __ne__(self, other):
404
+ """Returns true if both objects are not equal"""
405
+ return not self == other