huaweicloudsdkmrs 3.1.70__py2.py3-none-any.whl → 3.1.72__py2.py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. huaweicloudsdkmrs/v1/__init__.py +9 -0
  2. huaweicloudsdkmrs/v1/model/__init__.py +9 -0
  3. huaweicloudsdkmrs/v1/model/component_external_datasource.py +144 -0
  4. huaweicloudsdkmrs/v1/model/flavor_lists.py +173 -0
  5. huaweicloudsdkmrs/v1/model/node_constraint.py +376 -0
  6. huaweicloudsdkmrs/v1/model/node_constraints.py +315 -0
  7. huaweicloudsdkmrs/v1/model/role_deploy_meta.py +637 -0
  8. huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_request.py +143 -0
  9. huaweicloudsdkmrs/v1/model/show_mrs_version_metadata_response.py +456 -0
  10. huaweicloudsdkmrs/v1/model/version_component.py +434 -0
  11. huaweicloudsdkmrs/v1/model/version_constraint.py +169 -0
  12. huaweicloudsdkmrs/v1/mrs_async_client.py +75 -0
  13. huaweicloudsdkmrs/v1/mrs_client.py +75 -0
  14. huaweicloudsdkmrs/v1/region/mrs_region.py +3 -0
  15. huaweicloudsdkmrs/v2/__init__.py +15 -0
  16. huaweicloudsdkmrs/v2/model/__init__.py +15 -0
  17. huaweicloudsdkmrs/v2/model/auto_scaling_policy_delete_req.py +142 -0
  18. huaweicloudsdkmrs/v2/model/auto_scaling_policy_info.py +257 -0
  19. huaweicloudsdkmrs/v2/model/auto_scaling_policy_v2.py +11 -12
  20. huaweicloudsdkmrs/v2/model/create_auto_scaling_policy_request.py +139 -0
  21. huaweicloudsdkmrs/v2/model/create_auto_scaling_policy_response.py +85 -0
  22. huaweicloudsdkmrs/v2/model/delete_auto_scaling_policy_request.py +139 -0
  23. huaweicloudsdkmrs/v2/model/delete_auto_scaling_policy_response.py +85 -0
  24. huaweicloudsdkmrs/v2/model/modify_default_tags_request_body.py +114 -0
  25. huaweicloudsdkmrs/v2/model/show_tag_quota_request.py +143 -0
  26. huaweicloudsdkmrs/v2/model/show_tag_quota_response.py +145 -0
  27. huaweicloudsdkmrs/v2/model/show_tag_status_request.py +114 -0
  28. huaweicloudsdkmrs/v2/model/show_tag_status_response.py +145 -0
  29. huaweicloudsdkmrs/v2/model/switch_cluster_tags_request.py +139 -0
  30. huaweicloudsdkmrs/v2/model/switch_cluster_tags_response.py +85 -0
  31. huaweicloudsdkmrs/v2/model/update_auto_scaling_policy_request.py +139 -0
  32. huaweicloudsdkmrs/v2/model/update_auto_scaling_policy_response.py +85 -0
  33. huaweicloudsdkmrs/v2/mrs_async_client.py +400 -0
  34. huaweicloudsdkmrs/v2/mrs_client.py +400 -0
  35. huaweicloudsdkmrs/v2/region/mrs_region.py +3 -0
  36. {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/METADATA +2 -2
  37. {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/RECORD +40 -16
  38. {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/LICENSE +0 -0
  39. {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/WHEEL +0 -0
  40. {huaweicloudsdkmrs-3.1.70.dist-info → huaweicloudsdkmrs-3.1.72.dist-info}/top_level.txt +0 -0
@@ -193,10 +193,12 @@ class MrsAsyncClient(Client):
193
193
  :type request: :class:`huaweicloudsdkmrs.v1.CreateAndExecuteJobRequest`
194
194
  :rtype: :class:`huaweicloudsdkmrs.v1.CreateAndExecuteJobResponse`
195
195
  """
196
+ warnings.warn("Method 'create_and_execute_job_async' of MrsAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning)
196
197
  http_info = self._create_and_execute_job_http_info(request)
197
198
  return self._call_api(**http_info)
198
199
 
199
200
  def create_and_execute_job_async_invoker(self, request):
201
+ warnings.warn("Method 'create_and_execute_job_async_invoker' of MrsAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning)
200
202
  http_info = self._create_and_execute_job_http_info(request)
201
203
  return AsyncInvoker(self, http_info)
202
204
 
@@ -607,10 +609,12 @@ class MrsAsyncClient(Client):
607
609
  :type request: :class:`huaweicloudsdkmrs.v1.DeleteJobExecutionRequest`
608
610
  :rtype: :class:`huaweicloudsdkmrs.v1.DeleteJobExecutionResponse`
609
611
  """
612
+ warnings.warn("Method 'delete_job_execution_async' of MrsAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning)
610
613
  http_info = self._delete_job_execution_http_info(request)
611
614
  return self._call_api(**http_info)
612
615
 
613
616
  def delete_job_execution_async_invoker(self, request):
617
+ warnings.warn("Method 'delete_job_execution_async_invoker' of MrsAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning)
614
618
  http_info = self._delete_job_execution_http_info(request)
615
619
  return AsyncInvoker(self, http_info)
616
620
 
@@ -943,10 +947,12 @@ class MrsAsyncClient(Client):
943
947
  :type request: :class:`huaweicloudsdkmrs.v1.ListExecuteJobRequest`
944
948
  :rtype: :class:`huaweicloudsdkmrs.v1.ListExecuteJobResponse`
945
949
  """
950
+ warnings.warn("Method 'list_execute_job_async' of MrsAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning)
946
951
  http_info = self._list_execute_job_http_info(request)
947
952
  return self._call_api(**http_info)
948
953
 
949
954
  def list_execute_job_async_invoker(self, request):
955
+ warnings.warn("Method 'list_execute_job_async_invoker' of MrsAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning)
950
956
  http_info = self._list_execute_job_http_info(request)
951
957
  return AsyncInvoker(self, http_info)
952
958
 
@@ -1153,10 +1159,12 @@ class MrsAsyncClient(Client):
1153
1159
  :type request: :class:`huaweicloudsdkmrs.v1.ShowJobExesRequest`
1154
1160
  :rtype: :class:`huaweicloudsdkmrs.v1.ShowJobExesResponse`
1155
1161
  """
1162
+ warnings.warn("Method 'show_job_exes_async' of MrsAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning)
1156
1163
  http_info = self._show_job_exes_http_info(request)
1157
1164
  return self._call_api(**http_info)
1158
1165
 
1159
1166
  def show_job_exes_async_invoker(self, request):
1167
+ warnings.warn("Method 'show_job_exes_async_invoker' of MrsAsyncClient is deprecated and will be removed in the future versions", DeprecationWarning)
1160
1168
  http_info = self._show_job_exes_http_info(request)
1161
1169
  return AsyncInvoker(self, http_info)
1162
1170
 
@@ -1341,6 +1349,73 @@ class MrsAsyncClient(Client):
1341
1349
 
1342
1350
  return http_info
1343
1351
 
1352
+ def show_mrs_version_metadata_async(self, request):
1353
+ """查询对应版本元数据
1354
+
1355
+ 查询对应版本元数据。如果参数里指定集群id,则可查询集群更新过补丁之后的最新元数据。
1356
+
1357
+ Please refer to HUAWEI cloud API Explorer for details.
1358
+
1359
+
1360
+ :param request: Request instance for ShowMrsVersionMetadata
1361
+ :type request: :class:`huaweicloudsdkmrs.v1.ShowMrsVersionMetadataRequest`
1362
+ :rtype: :class:`huaweicloudsdkmrs.v1.ShowMrsVersionMetadataResponse`
1363
+ """
1364
+ http_info = self._show_mrs_version_metadata_http_info(request)
1365
+ return self._call_api(**http_info)
1366
+
1367
+ def show_mrs_version_metadata_async_invoker(self, request):
1368
+ http_info = self._show_mrs_version_metadata_http_info(request)
1369
+ return AsyncInvoker(self, http_info)
1370
+
1371
+ def _show_mrs_version_metadata_http_info(self, request):
1372
+ http_info = {
1373
+ "method": "GET",
1374
+ "resource_path": "/v1.1/{project_id}/metadata/versions/{version_name}",
1375
+ "request_type": request.__class__.__name__,
1376
+ "response_type": "ShowMrsVersionMetadataResponse"
1377
+ }
1378
+
1379
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1380
+
1381
+ cname = None
1382
+
1383
+ collection_formats = {}
1384
+
1385
+ path_params = {}
1386
+ if 'version_name' in local_var_params:
1387
+ path_params['version_name'] = local_var_params['version_name']
1388
+
1389
+ query_params = []
1390
+ if 'cluster_id' in local_var_params:
1391
+ query_params.append(('cluster_id', local_var_params['cluster_id']))
1392
+
1393
+ header_params = {}
1394
+
1395
+ form_params = {}
1396
+
1397
+ body = None
1398
+ if isinstance(request, SdkStreamRequest):
1399
+ body = request.get_file_stream()
1400
+
1401
+ response_headers = []
1402
+
1403
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1404
+ ['application/json'])
1405
+
1406
+ auth_settings = []
1407
+
1408
+ http_info["cname"] = cname
1409
+ http_info["collection_formats"] = collection_formats
1410
+ http_info["path_params"] = path_params
1411
+ http_info["query_params"] = query_params
1412
+ http_info["header_params"] = header_params
1413
+ http_info["post_params"] = form_params
1414
+ http_info["body"] = body
1415
+ http_info["response_headers"] = response_headers
1416
+
1417
+ return http_info
1418
+
1344
1419
  def _call_api(self, **kwargs):
1345
1420
  try:
1346
1421
  kwargs["async_request"] = True
@@ -192,10 +192,12 @@ class MrsClient(Client):
192
192
  :type request: :class:`huaweicloudsdkmrs.v1.CreateAndExecuteJobRequest`
193
193
  :rtype: :class:`huaweicloudsdkmrs.v1.CreateAndExecuteJobResponse`
194
194
  """
195
+ warnings.warn("Method 'create_and_execute_job' of MrsClient is deprecated and will be removed in the future versions", DeprecationWarning)
195
196
  http_info = self._create_and_execute_job_http_info(request)
196
197
  return self._call_api(**http_info)
197
198
 
198
199
  def create_and_execute_job_invoker(self, request):
200
+ warnings.warn("Method 'create_and_execute_job_invoker' of MrsClient is deprecated and will be removed in the future versions", DeprecationWarning)
199
201
  http_info = self._create_and_execute_job_http_info(request)
200
202
  return SyncInvoker(self, http_info)
201
203
 
@@ -606,10 +608,12 @@ class MrsClient(Client):
606
608
  :type request: :class:`huaweicloudsdkmrs.v1.DeleteJobExecutionRequest`
607
609
  :rtype: :class:`huaweicloudsdkmrs.v1.DeleteJobExecutionResponse`
608
610
  """
611
+ warnings.warn("Method 'delete_job_execution' of MrsClient is deprecated and will be removed in the future versions", DeprecationWarning)
609
612
  http_info = self._delete_job_execution_http_info(request)
610
613
  return self._call_api(**http_info)
611
614
 
612
615
  def delete_job_execution_invoker(self, request):
616
+ warnings.warn("Method 'delete_job_execution_invoker' of MrsClient is deprecated and will be removed in the future versions", DeprecationWarning)
613
617
  http_info = self._delete_job_execution_http_info(request)
614
618
  return SyncInvoker(self, http_info)
615
619
 
@@ -942,10 +946,12 @@ class MrsClient(Client):
942
946
  :type request: :class:`huaweicloudsdkmrs.v1.ListExecuteJobRequest`
943
947
  :rtype: :class:`huaweicloudsdkmrs.v1.ListExecuteJobResponse`
944
948
  """
949
+ warnings.warn("Method 'list_execute_job' of MrsClient is deprecated and will be removed in the future versions", DeprecationWarning)
945
950
  http_info = self._list_execute_job_http_info(request)
946
951
  return self._call_api(**http_info)
947
952
 
948
953
  def list_execute_job_invoker(self, request):
954
+ warnings.warn("Method 'list_execute_job_invoker' of MrsClient is deprecated and will be removed in the future versions", DeprecationWarning)
949
955
  http_info = self._list_execute_job_http_info(request)
950
956
  return SyncInvoker(self, http_info)
951
957
 
@@ -1152,10 +1158,12 @@ class MrsClient(Client):
1152
1158
  :type request: :class:`huaweicloudsdkmrs.v1.ShowJobExesRequest`
1153
1159
  :rtype: :class:`huaweicloudsdkmrs.v1.ShowJobExesResponse`
1154
1160
  """
1161
+ warnings.warn("Method 'show_job_exes' of MrsClient is deprecated and will be removed in the future versions", DeprecationWarning)
1155
1162
  http_info = self._show_job_exes_http_info(request)
1156
1163
  return self._call_api(**http_info)
1157
1164
 
1158
1165
  def show_job_exes_invoker(self, request):
1166
+ warnings.warn("Method 'show_job_exes_invoker' of MrsClient is deprecated and will be removed in the future versions", DeprecationWarning)
1159
1167
  http_info = self._show_job_exes_http_info(request)
1160
1168
  return SyncInvoker(self, http_info)
1161
1169
 
@@ -1341,6 +1349,73 @@ class MrsClient(Client):
1341
1349
 
1342
1350
  return http_info
1343
1351
 
1352
+ def show_mrs_version_metadata(self, request):
1353
+ """查询对应版本元数据
1354
+
1355
+ 查询对应版本元数据。如果参数里指定集群id,则可查询集群更新过补丁之后的最新元数据。
1356
+
1357
+ Please refer to HUAWEI cloud API Explorer for details.
1358
+
1359
+ :param request: Request instance for ShowMrsVersionMetadata
1360
+ :type request: :class:`huaweicloudsdkmrs.v1.ShowMrsVersionMetadataRequest`
1361
+ :rtype: :class:`huaweicloudsdkmrs.v1.ShowMrsVersionMetadataResponse`
1362
+ """
1363
+ http_info = self._show_mrs_version_metadata_http_info(request)
1364
+ return self._call_api(**http_info)
1365
+
1366
+ def show_mrs_version_metadata_invoker(self, request):
1367
+ http_info = self._show_mrs_version_metadata_http_info(request)
1368
+ return SyncInvoker(self, http_info)
1369
+
1370
+ @classmethod
1371
+ def _show_mrs_version_metadata_http_info(cls, request):
1372
+ http_info = {
1373
+ "method": "GET",
1374
+ "resource_path": "/v1.1/{project_id}/metadata/versions/{version_name}",
1375
+ "request_type": request.__class__.__name__,
1376
+ "response_type": "ShowMrsVersionMetadataResponse"
1377
+ }
1378
+
1379
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1380
+
1381
+ cname = None
1382
+
1383
+ collection_formats = {}
1384
+
1385
+ path_params = {}
1386
+ if 'version_name' in local_var_params:
1387
+ path_params['version_name'] = local_var_params['version_name']
1388
+
1389
+ query_params = []
1390
+ if 'cluster_id' in local_var_params:
1391
+ query_params.append(('cluster_id', local_var_params['cluster_id']))
1392
+
1393
+ header_params = {}
1394
+
1395
+ form_params = {}
1396
+
1397
+ body = None
1398
+ if isinstance(request, SdkStreamRequest):
1399
+ body = request.get_file_stream()
1400
+
1401
+ response_headers = []
1402
+
1403
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1404
+ ['application/json'])
1405
+
1406
+ auth_settings = []
1407
+
1408
+ http_info["cname"] = cname
1409
+ http_info["collection_formats"] = collection_formats
1410
+ http_info["path_params"] = path_params
1411
+ http_info["query_params"] = query_params
1412
+ http_info["header_params"] = header_params
1413
+ http_info["post_params"] = form_params
1414
+ http_info["body"] = body
1415
+ http_info["response_headers"] = response_headers
1416
+
1417
+ return http_info
1418
+
1344
1419
  def _call_api(self, **kwargs):
1345
1420
  try:
1346
1421
  return self.do_http_request(**kwargs)
@@ -49,6 +49,8 @@ class MrsRegion:
49
49
  "https://mrs.ap-southeast-4.myhuaweicloud.cn")
50
50
  EU_WEST_101 = Region("eu-west-101",
51
51
  "https://mrs.eu-west-101.myhuaweicloud.eu")
52
+ ME_EAST_1 = Region("me-east-1",
53
+ "https://mrs.me-east-1.myhuaweicloud.com")
52
54
 
53
55
  static_fields = {
54
56
  "cn-north-1": CN_NORTH_1,
@@ -71,6 +73,7 @@ class MrsRegion:
71
73
  "tr-west-1": TR_WEST_1,
72
74
  "ap-southeast-4": AP_SOUTHEAST_4,
73
75
  "eu-west-101": EU_WEST_101,
76
+ "me-east-1": ME_EAST_1,
74
77
  }
75
78
 
76
79
  @classmethod
@@ -13,6 +13,8 @@ from huaweicloudsdkmrs.v2.model.agency_mapping import AgencyMapping
13
13
  from huaweicloudsdkmrs.v2.model.agency_mapping_array import AgencyMappingArray
14
14
  from huaweicloudsdkmrs.v2.model.assigned_node_group import AssignedNodeGroup
15
15
  from huaweicloudsdkmrs.v2.model.auto_scaling_policy import AutoScalingPolicy
16
+ from huaweicloudsdkmrs.v2.model.auto_scaling_policy_delete_req import AutoScalingPolicyDeleteReq
17
+ from huaweicloudsdkmrs.v2.model.auto_scaling_policy_info import AutoScalingPolicyInfo
16
18
  from huaweicloudsdkmrs.v2.model.auto_scaling_policy_v2 import AutoScalingPolicyV2
17
19
  from huaweicloudsdkmrs.v2.model.batch_delete_jobs_request import BatchDeleteJobsRequest
18
20
  from huaweicloudsdkmrs.v2.model.batch_delete_jobs_response import BatchDeleteJobsResponse
@@ -24,6 +26,8 @@ from huaweicloudsdkmrs.v2.model.cluster_data_connector_map import ClusterDataCon
24
26
  from huaweicloudsdkmrs.v2.model.component_config import ComponentConfig
25
27
  from huaweicloudsdkmrs.v2.model.component_install_mode import ComponentInstallMode
26
28
  from huaweicloudsdkmrs.v2.model.config import Config
29
+ from huaweicloudsdkmrs.v2.model.create_auto_scaling_policy_request import CreateAutoScalingPolicyRequest
30
+ from huaweicloudsdkmrs.v2.model.create_auto_scaling_policy_response import CreateAutoScalingPolicyResponse
27
31
  from huaweicloudsdkmrs.v2.model.create_cluster_req_v2 import CreateClusterReqV2
28
32
  from huaweicloudsdkmrs.v2.model.create_cluster_request import CreateClusterRequest
29
33
  from huaweicloudsdkmrs.v2.model.create_cluster_response import CreateClusterResponse
@@ -34,6 +38,8 @@ from huaweicloudsdkmrs.v2.model.create_execute_job_response import CreateExecute
34
38
  from huaweicloudsdkmrs.v2.model.data_connector import DataConnector
35
39
  from huaweicloudsdkmrs.v2.model.data_connector_detail import DataConnectorDetail
36
40
  from huaweicloudsdkmrs.v2.model.data_connector_req import DataConnectorReq
41
+ from huaweicloudsdkmrs.v2.model.delete_auto_scaling_policy_request import DeleteAutoScalingPolicyRequest
42
+ from huaweicloudsdkmrs.v2.model.delete_auto_scaling_policy_response import DeleteAutoScalingPolicyResponse
37
43
  from huaweicloudsdkmrs.v2.model.delete_data_connector_request import DeleteDataConnectorRequest
38
44
  from huaweicloudsdkmrs.v2.model.delete_data_connector_response import DeleteDataConnectorResponse
39
45
  from huaweicloudsdkmrs.v2.model.execute_sql_request import ExecuteSqlRequest
@@ -48,6 +54,7 @@ from huaweicloudsdkmrs.v2.model.job_query_bean import JobQueryBean
48
54
  from huaweicloudsdkmrs.v2.model.job_submit_result import JobSubmitResult
49
55
  from huaweicloudsdkmrs.v2.model.list_data_connector_request import ListDataConnectorRequest
50
56
  from huaweicloudsdkmrs.v2.model.list_data_connector_response import ListDataConnectorResponse
57
+ from huaweicloudsdkmrs.v2.model.modify_default_tags_request_body import ModifyDefaultTagsRequestBody
51
58
  from huaweicloudsdkmrs.v2.model.node_group_v2 import NodeGroupV2
52
59
  from huaweicloudsdkmrs.v2.model.resources_plan import ResourcesPlan
53
60
  from huaweicloudsdkmrs.v2.model.rule import Rule
@@ -71,6 +78,10 @@ from huaweicloudsdkmrs.v2.model.show_sql_result_request import ShowSqlResultRequ
71
78
  from huaweicloudsdkmrs.v2.model.show_sql_result_response import ShowSqlResultResponse
72
79
  from huaweicloudsdkmrs.v2.model.show_sql_result_with_job_request import ShowSqlResultWithJobRequest
73
80
  from huaweicloudsdkmrs.v2.model.show_sql_result_with_job_response import ShowSqlResultWithJobResponse
81
+ from huaweicloudsdkmrs.v2.model.show_tag_quota_request import ShowTagQuotaRequest
82
+ from huaweicloudsdkmrs.v2.model.show_tag_quota_response import ShowTagQuotaResponse
83
+ from huaweicloudsdkmrs.v2.model.show_tag_status_request import ShowTagStatusRequest
84
+ from huaweicloudsdkmrs.v2.model.show_tag_status_response import ShowTagStatusResponse
74
85
  from huaweicloudsdkmrs.v2.model.shrink_cluster_request import ShrinkClusterRequest
75
86
  from huaweicloudsdkmrs.v2.model.shrink_cluster_response import ShrinkClusterResponse
76
87
  from huaweicloudsdkmrs.v2.model.shrink_param import ShrinkParam
@@ -78,10 +89,14 @@ from huaweicloudsdkmrs.v2.model.sql_execution_req import SqlExecutionReq
78
89
  from huaweicloudsdkmrs.v2.model.step_config import StepConfig
79
90
  from huaweicloudsdkmrs.v2.model.stop_job_request import StopJobRequest
80
91
  from huaweicloudsdkmrs.v2.model.stop_job_response import StopJobResponse
92
+ from huaweicloudsdkmrs.v2.model.switch_cluster_tags_request import SwitchClusterTagsRequest
93
+ from huaweicloudsdkmrs.v2.model.switch_cluster_tags_response import SwitchClusterTagsResponse
81
94
  from huaweicloudsdkmrs.v2.model.tag import Tag
82
95
  from huaweicloudsdkmrs.v2.model.trigger import Trigger
83
96
  from huaweicloudsdkmrs.v2.model.update_agency_mapping_request import UpdateAgencyMappingRequest
84
97
  from huaweicloudsdkmrs.v2.model.update_agency_mapping_response import UpdateAgencyMappingResponse
98
+ from huaweicloudsdkmrs.v2.model.update_auto_scaling_policy_request import UpdateAutoScalingPolicyRequest
99
+ from huaweicloudsdkmrs.v2.model.update_auto_scaling_policy_response import UpdateAutoScalingPolicyResponse
85
100
  from huaweicloudsdkmrs.v2.model.update_cluster_name_request import UpdateClusterNameRequest
86
101
  from huaweicloudsdkmrs.v2.model.update_cluster_name_response import UpdateClusterNameResponse
87
102
  from huaweicloudsdkmrs.v2.model.update_cluster_req import UpdateClusterReq
@@ -11,6 +11,8 @@ from huaweicloudsdkmrs.v2.model.agency_mapping import AgencyMapping
11
11
  from huaweicloudsdkmrs.v2.model.agency_mapping_array import AgencyMappingArray
12
12
  from huaweicloudsdkmrs.v2.model.assigned_node_group import AssignedNodeGroup
13
13
  from huaweicloudsdkmrs.v2.model.auto_scaling_policy import AutoScalingPolicy
14
+ from huaweicloudsdkmrs.v2.model.auto_scaling_policy_delete_req import AutoScalingPolicyDeleteReq
15
+ from huaweicloudsdkmrs.v2.model.auto_scaling_policy_info import AutoScalingPolicyInfo
14
16
  from huaweicloudsdkmrs.v2.model.auto_scaling_policy_v2 import AutoScalingPolicyV2
15
17
  from huaweicloudsdkmrs.v2.model.batch_delete_jobs_request import BatchDeleteJobsRequest
16
18
  from huaweicloudsdkmrs.v2.model.batch_delete_jobs_response import BatchDeleteJobsResponse
@@ -22,6 +24,8 @@ from huaweicloudsdkmrs.v2.model.cluster_data_connector_map import ClusterDataCon
22
24
  from huaweicloudsdkmrs.v2.model.component_config import ComponentConfig
23
25
  from huaweicloudsdkmrs.v2.model.component_install_mode import ComponentInstallMode
24
26
  from huaweicloudsdkmrs.v2.model.config import Config
27
+ from huaweicloudsdkmrs.v2.model.create_auto_scaling_policy_request import CreateAutoScalingPolicyRequest
28
+ from huaweicloudsdkmrs.v2.model.create_auto_scaling_policy_response import CreateAutoScalingPolicyResponse
25
29
  from huaweicloudsdkmrs.v2.model.create_cluster_req_v2 import CreateClusterReqV2
26
30
  from huaweicloudsdkmrs.v2.model.create_cluster_request import CreateClusterRequest
27
31
  from huaweicloudsdkmrs.v2.model.create_cluster_response import CreateClusterResponse
@@ -32,6 +36,8 @@ from huaweicloudsdkmrs.v2.model.create_execute_job_response import CreateExecute
32
36
  from huaweicloudsdkmrs.v2.model.data_connector import DataConnector
33
37
  from huaweicloudsdkmrs.v2.model.data_connector_detail import DataConnectorDetail
34
38
  from huaweicloudsdkmrs.v2.model.data_connector_req import DataConnectorReq
39
+ from huaweicloudsdkmrs.v2.model.delete_auto_scaling_policy_request import DeleteAutoScalingPolicyRequest
40
+ from huaweicloudsdkmrs.v2.model.delete_auto_scaling_policy_response import DeleteAutoScalingPolicyResponse
35
41
  from huaweicloudsdkmrs.v2.model.delete_data_connector_request import DeleteDataConnectorRequest
36
42
  from huaweicloudsdkmrs.v2.model.delete_data_connector_response import DeleteDataConnectorResponse
37
43
  from huaweicloudsdkmrs.v2.model.execute_sql_request import ExecuteSqlRequest
@@ -46,6 +52,7 @@ from huaweicloudsdkmrs.v2.model.job_query_bean import JobQueryBean
46
52
  from huaweicloudsdkmrs.v2.model.job_submit_result import JobSubmitResult
47
53
  from huaweicloudsdkmrs.v2.model.list_data_connector_request import ListDataConnectorRequest
48
54
  from huaweicloudsdkmrs.v2.model.list_data_connector_response import ListDataConnectorResponse
55
+ from huaweicloudsdkmrs.v2.model.modify_default_tags_request_body import ModifyDefaultTagsRequestBody
49
56
  from huaweicloudsdkmrs.v2.model.node_group_v2 import NodeGroupV2
50
57
  from huaweicloudsdkmrs.v2.model.resources_plan import ResourcesPlan
51
58
  from huaweicloudsdkmrs.v2.model.rule import Rule
@@ -69,6 +76,10 @@ from huaweicloudsdkmrs.v2.model.show_sql_result_request import ShowSqlResultRequ
69
76
  from huaweicloudsdkmrs.v2.model.show_sql_result_response import ShowSqlResultResponse
70
77
  from huaweicloudsdkmrs.v2.model.show_sql_result_with_job_request import ShowSqlResultWithJobRequest
71
78
  from huaweicloudsdkmrs.v2.model.show_sql_result_with_job_response import ShowSqlResultWithJobResponse
79
+ from huaweicloudsdkmrs.v2.model.show_tag_quota_request import ShowTagQuotaRequest
80
+ from huaweicloudsdkmrs.v2.model.show_tag_quota_response import ShowTagQuotaResponse
81
+ from huaweicloudsdkmrs.v2.model.show_tag_status_request import ShowTagStatusRequest
82
+ from huaweicloudsdkmrs.v2.model.show_tag_status_response import ShowTagStatusResponse
72
83
  from huaweicloudsdkmrs.v2.model.shrink_cluster_request import ShrinkClusterRequest
73
84
  from huaweicloudsdkmrs.v2.model.shrink_cluster_response import ShrinkClusterResponse
74
85
  from huaweicloudsdkmrs.v2.model.shrink_param import ShrinkParam
@@ -76,10 +87,14 @@ from huaweicloudsdkmrs.v2.model.sql_execution_req import SqlExecutionReq
76
87
  from huaweicloudsdkmrs.v2.model.step_config import StepConfig
77
88
  from huaweicloudsdkmrs.v2.model.stop_job_request import StopJobRequest
78
89
  from huaweicloudsdkmrs.v2.model.stop_job_response import StopJobResponse
90
+ from huaweicloudsdkmrs.v2.model.switch_cluster_tags_request import SwitchClusterTagsRequest
91
+ from huaweicloudsdkmrs.v2.model.switch_cluster_tags_response import SwitchClusterTagsResponse
79
92
  from huaweicloudsdkmrs.v2.model.tag import Tag
80
93
  from huaweicloudsdkmrs.v2.model.trigger import Trigger
81
94
  from huaweicloudsdkmrs.v2.model.update_agency_mapping_request import UpdateAgencyMappingRequest
82
95
  from huaweicloudsdkmrs.v2.model.update_agency_mapping_response import UpdateAgencyMappingResponse
96
+ from huaweicloudsdkmrs.v2.model.update_auto_scaling_policy_request import UpdateAutoScalingPolicyRequest
97
+ from huaweicloudsdkmrs.v2.model.update_auto_scaling_policy_response import UpdateAutoScalingPolicyResponse
83
98
  from huaweicloudsdkmrs.v2.model.update_cluster_name_request import UpdateClusterNameRequest
84
99
  from huaweicloudsdkmrs.v2.model.update_cluster_name_response import UpdateClusterNameResponse
85
100
  from huaweicloudsdkmrs.v2.model.update_cluster_req import UpdateClusterReq
@@ -0,0 +1,142 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class AutoScalingPolicyDeleteReq:
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
+ 'resource_pool_name': 'str'
22
+ }
23
+
24
+ attribute_map = {
25
+ 'node_group_name': 'node_group_name',
26
+ 'resource_pool_name': 'resource_pool_name'
27
+ }
28
+
29
+ def __init__(self, node_group_name=None, resource_pool_name=None):
30
+ """AutoScalingPolicyDeleteReq
31
+
32
+ The model defined in huaweicloud sdk
33
+
34
+ :param node_group_name: 节点组名称。如果resource_pool_name为default,则删除节点组维度的弹性伸缩策略。如果resource_pool_name不为default,则在该节点组下删除对应资源池维度的策略。
35
+ :type node_group_name: str
36
+ :param resource_pool_name: 资源池名称。当集群版本不支持按指定资源池进行弹性伸缩时,需要填写为default资源池。不为default时删除指定资源池维度的弹性伸缩策略。
37
+ :type resource_pool_name: str
38
+ """
39
+
40
+
41
+
42
+ self._node_group_name = None
43
+ self._resource_pool_name = None
44
+ self.discriminator = None
45
+
46
+ self.node_group_name = node_group_name
47
+ self.resource_pool_name = resource_pool_name
48
+
49
+ @property
50
+ def node_group_name(self):
51
+ """Gets the node_group_name of this AutoScalingPolicyDeleteReq.
52
+
53
+ 节点组名称。如果resource_pool_name为default,则删除节点组维度的弹性伸缩策略。如果resource_pool_name不为default,则在该节点组下删除对应资源池维度的策略。
54
+
55
+ :return: The node_group_name of this AutoScalingPolicyDeleteReq.
56
+ :rtype: str
57
+ """
58
+ return self._node_group_name
59
+
60
+ @node_group_name.setter
61
+ def node_group_name(self, node_group_name):
62
+ """Sets the node_group_name of this AutoScalingPolicyDeleteReq.
63
+
64
+ 节点组名称。如果resource_pool_name为default,则删除节点组维度的弹性伸缩策略。如果resource_pool_name不为default,则在该节点组下删除对应资源池维度的策略。
65
+
66
+ :param node_group_name: The node_group_name of this AutoScalingPolicyDeleteReq.
67
+ :type node_group_name: str
68
+ """
69
+ self._node_group_name = node_group_name
70
+
71
+ @property
72
+ def resource_pool_name(self):
73
+ """Gets the resource_pool_name of this AutoScalingPolicyDeleteReq.
74
+
75
+ 资源池名称。当集群版本不支持按指定资源池进行弹性伸缩时,需要填写为default资源池。不为default时删除指定资源池维度的弹性伸缩策略。
76
+
77
+ :return: The resource_pool_name of this AutoScalingPolicyDeleteReq.
78
+ :rtype: str
79
+ """
80
+ return self._resource_pool_name
81
+
82
+ @resource_pool_name.setter
83
+ def resource_pool_name(self, resource_pool_name):
84
+ """Sets the resource_pool_name of this AutoScalingPolicyDeleteReq.
85
+
86
+ 资源池名称。当集群版本不支持按指定资源池进行弹性伸缩时,需要填写为default资源池。不为default时删除指定资源池维度的弹性伸缩策略。
87
+
88
+ :param resource_pool_name: The resource_pool_name of this AutoScalingPolicyDeleteReq.
89
+ :type resource_pool_name: str
90
+ """
91
+ self._resource_pool_name = resource_pool_name
92
+
93
+ def to_dict(self):
94
+ """Returns the model properties as a dict"""
95
+ result = {}
96
+
97
+ for attr, _ in six.iteritems(self.openapi_types):
98
+ value = getattr(self, attr)
99
+ if isinstance(value, list):
100
+ result[attr] = list(map(
101
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
102
+ value
103
+ ))
104
+ elif hasattr(value, "to_dict"):
105
+ result[attr] = value.to_dict()
106
+ elif isinstance(value, dict):
107
+ result[attr] = dict(map(
108
+ lambda item: (item[0], item[1].to_dict())
109
+ if hasattr(item[1], "to_dict") else item,
110
+ value.items()
111
+ ))
112
+ else:
113
+ if attr in self.sensitive_list:
114
+ result[attr] = "****"
115
+ else:
116
+ result[attr] = value
117
+
118
+ return result
119
+
120
+ def to_str(self):
121
+ """Returns the string representation of the model"""
122
+ import simplejson as json
123
+ if six.PY2:
124
+ import sys
125
+ reload(sys)
126
+ sys.setdefaultencoding("utf-8")
127
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
128
+
129
+ def __repr__(self):
130
+ """For `print`"""
131
+ return self.to_str()
132
+
133
+ def __eq__(self, other):
134
+ """Returns true if both objects are equal"""
135
+ if not isinstance(other, AutoScalingPolicyDeleteReq):
136
+ return False
137
+
138
+ return self.__dict__ == other.__dict__
139
+
140
+ def __ne__(self, other):
141
+ """Returns true if both objects are not equal"""
142
+ return not self == other