huaweicloudsdkmrs 3.1.70__py2.py3-none-any.whl → 3.1.72__py2.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 (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
@@ -99,6 +99,73 @@ class MrsAsyncClient(Client):
99
99
 
100
100
  return http_info
101
101
 
102
+ def create_auto_scaling_policy_async(self, request):
103
+ """创建弹性伸缩策略
104
+
105
+ 创建弹性伸缩策略。
106
+
107
+ Please refer to HUAWEI cloud API Explorer for details.
108
+
109
+
110
+ :param request: Request instance for CreateAutoScalingPolicy
111
+ :type request: :class:`huaweicloudsdkmrs.v2.CreateAutoScalingPolicyRequest`
112
+ :rtype: :class:`huaweicloudsdkmrs.v2.CreateAutoScalingPolicyResponse`
113
+ """
114
+ http_info = self._create_auto_scaling_policy_http_info(request)
115
+ return self._call_api(**http_info)
116
+
117
+ def create_auto_scaling_policy_async_invoker(self, request):
118
+ http_info = self._create_auto_scaling_policy_http_info(request)
119
+ return AsyncInvoker(self, http_info)
120
+
121
+ def _create_auto_scaling_policy_http_info(self, request):
122
+ http_info = {
123
+ "method": "POST",
124
+ "resource_path": "/v2/{project_id}/autoscaling-policy/{cluster_id}",
125
+ "request_type": request.__class__.__name__,
126
+ "response_type": "CreateAutoScalingPolicyResponse"
127
+ }
128
+
129
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
130
+
131
+ cname = None
132
+
133
+ collection_formats = {}
134
+
135
+ path_params = {}
136
+ if 'cluster_id' in local_var_params:
137
+ path_params['cluster_id'] = local_var_params['cluster_id']
138
+
139
+ query_params = []
140
+
141
+ header_params = {}
142
+
143
+ form_params = {}
144
+
145
+ body = None
146
+ if 'body' in local_var_params:
147
+ body = local_var_params['body']
148
+ if isinstance(request, SdkStreamRequest):
149
+ body = request.get_file_stream()
150
+
151
+ response_headers = []
152
+
153
+ header_params['Content-Type'] = http_utils.select_header_content_type(
154
+ ['application/json;charset=UTF-8'])
155
+
156
+ auth_settings = []
157
+
158
+ http_info["cname"] = cname
159
+ http_info["collection_formats"] = collection_formats
160
+ http_info["path_params"] = path_params
161
+ http_info["query_params"] = query_params
162
+ http_info["header_params"] = header_params
163
+ http_info["post_params"] = form_params
164
+ http_info["body"] = body
165
+ http_info["response_headers"] = response_headers
166
+
167
+ return http_info
168
+
102
169
  def create_cluster_async(self, request):
103
170
  """创建集群
104
171
 
@@ -241,6 +308,73 @@ class MrsAsyncClient(Client):
241
308
 
242
309
  return http_info
243
310
 
311
+ def delete_auto_scaling_policy_async(self, request):
312
+ """删除弹性伸缩策略
313
+
314
+ 删除弹性伸缩策略。
315
+
316
+ Please refer to HUAWEI cloud API Explorer for details.
317
+
318
+
319
+ :param request: Request instance for DeleteAutoScalingPolicy
320
+ :type request: :class:`huaweicloudsdkmrs.v2.DeleteAutoScalingPolicyRequest`
321
+ :rtype: :class:`huaweicloudsdkmrs.v2.DeleteAutoScalingPolicyResponse`
322
+ """
323
+ http_info = self._delete_auto_scaling_policy_http_info(request)
324
+ return self._call_api(**http_info)
325
+
326
+ def delete_auto_scaling_policy_async_invoker(self, request):
327
+ http_info = self._delete_auto_scaling_policy_http_info(request)
328
+ return AsyncInvoker(self, http_info)
329
+
330
+ def _delete_auto_scaling_policy_http_info(self, request):
331
+ http_info = {
332
+ "method": "DELETE",
333
+ "resource_path": "/v2/{project_id}/autoscaling-policy/{cluster_id}",
334
+ "request_type": request.__class__.__name__,
335
+ "response_type": "DeleteAutoScalingPolicyResponse"
336
+ }
337
+
338
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
339
+
340
+ cname = None
341
+
342
+ collection_formats = {}
343
+
344
+ path_params = {}
345
+ if 'cluster_id' in local_var_params:
346
+ path_params['cluster_id'] = local_var_params['cluster_id']
347
+
348
+ query_params = []
349
+
350
+ header_params = {}
351
+
352
+ form_params = {}
353
+
354
+ body = None
355
+ if 'body' in local_var_params:
356
+ body = local_var_params['body']
357
+ if isinstance(request, SdkStreamRequest):
358
+ body = request.get_file_stream()
359
+
360
+ response_headers = []
361
+
362
+ header_params['Content-Type'] = http_utils.select_header_content_type(
363
+ ['application/json;charset=UTF-8'])
364
+
365
+ auth_settings = []
366
+
367
+ http_info["cname"] = cname
368
+ http_info["collection_formats"] = collection_formats
369
+ http_info["path_params"] = path_params
370
+ http_info["query_params"] = query_params
371
+ http_info["header_params"] = header_params
372
+ http_info["post_params"] = form_params
373
+ http_info["body"] = body
374
+ http_info["response_headers"] = response_headers
375
+
376
+ return http_info
377
+
244
378
  def run_job_flow_async(self, request):
245
379
  """创建集群并提交作业
246
380
 
@@ -797,6 +931,73 @@ class MrsAsyncClient(Client):
797
931
 
798
932
  return http_info
799
933
 
934
+ def update_auto_scaling_policy_async(self, request):
935
+ """更新弹性伸缩策略
936
+
937
+ 更新弹性伸缩策略。
938
+
939
+ Please refer to HUAWEI cloud API Explorer for details.
940
+
941
+
942
+ :param request: Request instance for UpdateAutoScalingPolicy
943
+ :type request: :class:`huaweicloudsdkmrs.v2.UpdateAutoScalingPolicyRequest`
944
+ :rtype: :class:`huaweicloudsdkmrs.v2.UpdateAutoScalingPolicyResponse`
945
+ """
946
+ http_info = self._update_auto_scaling_policy_http_info(request)
947
+ return self._call_api(**http_info)
948
+
949
+ def update_auto_scaling_policy_async_invoker(self, request):
950
+ http_info = self._update_auto_scaling_policy_http_info(request)
951
+ return AsyncInvoker(self, http_info)
952
+
953
+ def _update_auto_scaling_policy_http_info(self, request):
954
+ http_info = {
955
+ "method": "PUT",
956
+ "resource_path": "/v2/{project_id}/autoscaling-policy/{cluster_id}",
957
+ "request_type": request.__class__.__name__,
958
+ "response_type": "UpdateAutoScalingPolicyResponse"
959
+ }
960
+
961
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
962
+
963
+ cname = None
964
+
965
+ collection_formats = {}
966
+
967
+ path_params = {}
968
+ if 'cluster_id' in local_var_params:
969
+ path_params['cluster_id'] = local_var_params['cluster_id']
970
+
971
+ query_params = []
972
+
973
+ header_params = {}
974
+
975
+ form_params = {}
976
+
977
+ body = None
978
+ if 'body' in local_var_params:
979
+ body = local_var_params['body']
980
+ if isinstance(request, SdkStreamRequest):
981
+ body = request.get_file_stream()
982
+
983
+ response_headers = []
984
+
985
+ header_params['Content-Type'] = http_utils.select_header_content_type(
986
+ ['application/json;charset=UTF-8'])
987
+
988
+ auth_settings = []
989
+
990
+ http_info["cname"] = cname
991
+ http_info["collection_formats"] = collection_formats
992
+ http_info["path_params"] = path_params
993
+ http_info["query_params"] = query_params
994
+ http_info["header_params"] = header_params
995
+ http_info["post_params"] = form_params
996
+ http_info["body"] = body
997
+ http_info["response_headers"] = response_headers
998
+
999
+ return http_info
1000
+
800
1001
  def update_cluster_name_async(self, request):
801
1002
  """修改集群名称
802
1003
 
@@ -1613,6 +1814,205 @@ class MrsAsyncClient(Client):
1613
1814
 
1614
1815
  return http_info
1615
1816
 
1817
+ def show_tag_quota_async(self, request):
1818
+ """查询标签配额
1819
+
1820
+ 查询标签配额信息
1821
+
1822
+ Please refer to HUAWEI cloud API Explorer for details.
1823
+
1824
+
1825
+ :param request: Request instance for ShowTagQuota
1826
+ :type request: :class:`huaweicloudsdkmrs.v2.ShowTagQuotaRequest`
1827
+ :rtype: :class:`huaweicloudsdkmrs.v2.ShowTagQuotaResponse`
1828
+ """
1829
+ http_info = self._show_tag_quota_http_info(request)
1830
+ return self._call_api(**http_info)
1831
+
1832
+ def show_tag_quota_async_invoker(self, request):
1833
+ http_info = self._show_tag_quota_http_info(request)
1834
+ return AsyncInvoker(self, http_info)
1835
+
1836
+ def _show_tag_quota_http_info(self, request):
1837
+ http_info = {
1838
+ "method": "GET",
1839
+ "resource_path": "/v2/{project_id}/clusters/{cluster_id}/tags/quota",
1840
+ "request_type": request.__class__.__name__,
1841
+ "response_type": "ShowTagQuotaResponse"
1842
+ }
1843
+
1844
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1845
+
1846
+ cname = None
1847
+
1848
+ collection_formats = {}
1849
+
1850
+ path_params = {}
1851
+ if 'cluster_id' in local_var_params:
1852
+ path_params['cluster_id'] = local_var_params['cluster_id']
1853
+
1854
+ query_params = []
1855
+ if 'auto_scaling_policy_tags' in local_var_params:
1856
+ query_params.append(('auto_scaling_policy_tags', local_var_params['auto_scaling_policy_tags']))
1857
+
1858
+ header_params = {}
1859
+
1860
+ form_params = {}
1861
+
1862
+ body = None
1863
+ if isinstance(request, SdkStreamRequest):
1864
+ body = request.get_file_stream()
1865
+
1866
+ response_headers = []
1867
+
1868
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1869
+ ['application/json'])
1870
+
1871
+ auth_settings = []
1872
+
1873
+ http_info["cname"] = cname
1874
+ http_info["collection_formats"] = collection_formats
1875
+ http_info["path_params"] = path_params
1876
+ http_info["query_params"] = query_params
1877
+ http_info["header_params"] = header_params
1878
+ http_info["post_params"] = form_params
1879
+ http_info["body"] = body
1880
+ http_info["response_headers"] = response_headers
1881
+
1882
+ return http_info
1883
+
1884
+ def show_tag_status_async(self, request):
1885
+ """查询默认标签状态
1886
+
1887
+ 查询集群默认标签状态
1888
+
1889
+ Please refer to HUAWEI cloud API Explorer for details.
1890
+
1891
+
1892
+ :param request: Request instance for ShowTagStatus
1893
+ :type request: :class:`huaweicloudsdkmrs.v2.ShowTagStatusRequest`
1894
+ :rtype: :class:`huaweicloudsdkmrs.v2.ShowTagStatusResponse`
1895
+ """
1896
+ http_info = self._show_tag_status_http_info(request)
1897
+ return self._call_api(**http_info)
1898
+
1899
+ def show_tag_status_async_invoker(self, request):
1900
+ http_info = self._show_tag_status_http_info(request)
1901
+ return AsyncInvoker(self, http_info)
1902
+
1903
+ def _show_tag_status_http_info(self, request):
1904
+ http_info = {
1905
+ "method": "GET",
1906
+ "resource_path": "/v2/{project_id}/clusters/{cluster_id}/tags/status",
1907
+ "request_type": request.__class__.__name__,
1908
+ "response_type": "ShowTagStatusResponse"
1909
+ }
1910
+
1911
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1912
+
1913
+ cname = None
1914
+
1915
+ collection_formats = {}
1916
+
1917
+ path_params = {}
1918
+ if 'cluster_id' in local_var_params:
1919
+ path_params['cluster_id'] = local_var_params['cluster_id']
1920
+
1921
+ query_params = []
1922
+
1923
+ header_params = {}
1924
+
1925
+ form_params = {}
1926
+
1927
+ body = None
1928
+ if isinstance(request, SdkStreamRequest):
1929
+ body = request.get_file_stream()
1930
+
1931
+ response_headers = []
1932
+
1933
+ header_params['Content-Type'] = http_utils.select_header_content_type(
1934
+ ['application/json'])
1935
+
1936
+ auth_settings = []
1937
+
1938
+ http_info["cname"] = cname
1939
+ http_info["collection_formats"] = collection_formats
1940
+ http_info["path_params"] = path_params
1941
+ http_info["query_params"] = query_params
1942
+ http_info["header_params"] = header_params
1943
+ http_info["post_params"] = form_params
1944
+ http_info["body"] = body
1945
+ http_info["response_headers"] = response_headers
1946
+
1947
+ return http_info
1948
+
1949
+ def switch_cluster_tags_async(self, request):
1950
+ """集群操作默认标签
1951
+
1952
+ 对已有集群启用或关闭集群默认标签。开启后,集群内节点会打上集群默认标签。
1953
+
1954
+ Please refer to HUAWEI cloud API Explorer for details.
1955
+
1956
+
1957
+ :param request: Request instance for SwitchClusterTags
1958
+ :type request: :class:`huaweicloudsdkmrs.v2.SwitchClusterTagsRequest`
1959
+ :rtype: :class:`huaweicloudsdkmrs.v2.SwitchClusterTagsResponse`
1960
+ """
1961
+ http_info = self._switch_cluster_tags_http_info(request)
1962
+ return self._call_api(**http_info)
1963
+
1964
+ def switch_cluster_tags_async_invoker(self, request):
1965
+ http_info = self._switch_cluster_tags_http_info(request)
1966
+ return AsyncInvoker(self, http_info)
1967
+
1968
+ def _switch_cluster_tags_http_info(self, request):
1969
+ http_info = {
1970
+ "method": "POST",
1971
+ "resource_path": "/v2/{project_id}/clusters/{cluster_id}/tags/switch",
1972
+ "request_type": request.__class__.__name__,
1973
+ "response_type": "SwitchClusterTagsResponse"
1974
+ }
1975
+
1976
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1977
+
1978
+ cname = None
1979
+
1980
+ collection_formats = {}
1981
+
1982
+ path_params = {}
1983
+ if 'cluster_id' in local_var_params:
1984
+ path_params['cluster_id'] = local_var_params['cluster_id']
1985
+
1986
+ query_params = []
1987
+
1988
+ header_params = {}
1989
+
1990
+ form_params = {}
1991
+
1992
+ body = None
1993
+ if 'body' in local_var_params:
1994
+ body = local_var_params['body']
1995
+ if isinstance(request, SdkStreamRequest):
1996
+ body = request.get_file_stream()
1997
+
1998
+ response_headers = []
1999
+
2000
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2001
+ ['application/json;charset=UTF-8'])
2002
+
2003
+ auth_settings = []
2004
+
2005
+ http_info["cname"] = cname
2006
+ http_info["collection_formats"] = collection_formats
2007
+ http_info["path_params"] = path_params
2008
+ http_info["query_params"] = query_params
2009
+ http_info["header_params"] = header_params
2010
+ http_info["post_params"] = form_params
2011
+ http_info["body"] = body
2012
+ http_info["response_headers"] = response_headers
2013
+
2014
+ return http_info
2015
+
1616
2016
  def show_mrs_version_list_async(self, request):
1617
2017
  """展示MRS版本列表
1618
2018