huaweicloudsdkdcs 3.1.127__py2.py3-none-any.whl → 3.1.129__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.

Potentially problematic release.


This version of huaweicloudsdkdcs might be problematic. Click here for more details.

Files changed (40) hide show
  1. huaweicloudsdkdcs/v2/__init__.py +31 -0
  2. huaweicloudsdkdcs/v2/dcs_async_client.py +688 -28
  3. huaweicloudsdkdcs/v2/dcs_client.py +688 -28
  4. huaweicloudsdkdcs/v2/model/__init__.py +31 -0
  5. huaweicloudsdkdcs/v2/model/bandwidth_auto_scaling_policy.py +258 -0
  6. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_body.py +144 -0
  7. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_request.py +139 -0
  8. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_resp.py +84 -0
  9. huaweicloudsdkdcs/v2/model/change_nodes_start_stop_status_response.py +112 -0
  10. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_request.py +114 -0
  11. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_resp.py +84 -0
  12. huaweicloudsdkdcs/v2/model/delete_instance_bandwidth_auto_scaling_policy_response.py +112 -0
  13. huaweicloudsdkdcs/v2/model/delete_public_ip_request.py +114 -0
  14. huaweicloudsdkdcs/v2/model/delete_public_ip_response.py +116 -0
  15. huaweicloudsdkdcs/v2/model/group_bandwidth_info.py +231 -0
  16. huaweicloudsdkdcs/v2/model/show_bandwidths_request.py +114 -0
  17. huaweicloudsdkdcs/v2/model/show_bandwidths_response.py +203 -0
  18. huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_request.py +114 -0
  19. huaweicloudsdkdcs/v2/model/show_instance_bandwidth_auto_scaling_policy_response.py +259 -0
  20. huaweicloudsdkdcs/v2/model/show_instance_version_request.py +114 -0
  21. huaweicloudsdkdcs/v2/model/show_instance_version_response.py +261 -0
  22. huaweicloudsdkdcs/v2/model/update_bandwidth_info_request.py +115 -0
  23. huaweicloudsdkdcs/v2/model/update_bandwidth_request.py +139 -0
  24. huaweicloudsdkdcs/v2/model/update_bandwidth_resp.py +84 -0
  25. huaweicloudsdkdcs/v2/model/update_bandwidth_response.py +112 -0
  26. huaweicloudsdkdcs/v2/model/update_group_bandwidth_info_request.py +142 -0
  27. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request.py +139 -0
  28. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_request_body.py +258 -0
  29. huaweicloudsdkdcs/v2/model/update_instance_bandwidth_auto_scaling_policy_response.py +259 -0
  30. huaweicloudsdkdcs/v2/model/update_public_ip_request.py +139 -0
  31. huaweicloudsdkdcs/v2/model/update_public_ip_request_body.py +173 -0
  32. huaweicloudsdkdcs/v2/model/update_public_ip_response.py +116 -0
  33. huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_request.py +139 -0
  34. huaweicloudsdkdcs/v2/model/upgrade_instance_minor_version_response.py +116 -0
  35. huaweicloudsdkdcs/v2/model/upgrade_minor_version_request_body.py +144 -0
  36. {huaweicloudsdkdcs-3.1.127.dist-info → huaweicloudsdkdcs-3.1.129.dist-info}/METADATA +2 -2
  37. {huaweicloudsdkdcs-3.1.127.dist-info → huaweicloudsdkdcs-3.1.129.dist-info}/RECORD +40 -9
  38. {huaweicloudsdkdcs-3.1.127.dist-info → huaweicloudsdkdcs-3.1.129.dist-info}/LICENSE +0 -0
  39. {huaweicloudsdkdcs-3.1.127.dist-info → huaweicloudsdkdcs-3.1.129.dist-info}/WHEEL +0 -0
  40. {huaweicloudsdkdcs-3.1.127.dist-info → huaweicloudsdkdcs-3.1.129.dist-info}/top_level.txt +0 -0
@@ -495,6 +495,73 @@ class DcsAsyncClient(Client):
495
495
 
496
496
  return http_info
497
497
 
498
+ def change_nodes_start_stop_status_async(self, request):
499
+ """指定实例节点启停开关
500
+
501
+ 实例节点启停。执行节点关机操作前的24小时内,需要对实例(单机实例除外)进行数据备份。
502
+
503
+ Please refer to HUAWEI cloud API Explorer for details.
504
+
505
+
506
+ :param request: Request instance for ChangeNodesStartStopStatus
507
+ :type request: :class:`huaweicloudsdkdcs.v2.ChangeNodesStartStopStatusRequest`
508
+ :rtype: :class:`huaweicloudsdkdcs.v2.ChangeNodesStartStopStatusResponse`
509
+ """
510
+ http_info = self._change_nodes_start_stop_status_http_info(request)
511
+ return self._call_api(**http_info)
512
+
513
+ def change_nodes_start_stop_status_async_invoker(self, request):
514
+ http_info = self._change_nodes_start_stop_status_http_info(request)
515
+ return AsyncInvoker(self, http_info)
516
+
517
+ def _change_nodes_start_stop_status_http_info(self, request):
518
+ http_info = {
519
+ "method": "PUT",
520
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/nodes/status",
521
+ "request_type": request.__class__.__name__,
522
+ "response_type": "ChangeNodesStartStopStatusResponse"
523
+ }
524
+
525
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
526
+
527
+ cname = None
528
+
529
+ collection_formats = {}
530
+
531
+ path_params = {}
532
+ if 'instance_id' in local_var_params:
533
+ path_params['instance_id'] = local_var_params['instance_id']
534
+
535
+ query_params = []
536
+
537
+ header_params = {}
538
+
539
+ form_params = {}
540
+
541
+ body = None
542
+ if 'body' in local_var_params:
543
+ body = local_var_params['body']
544
+ if isinstance(request, SdkStreamRequest):
545
+ body = request.get_file_stream()
546
+
547
+ response_headers = []
548
+
549
+ header_params['Content-Type'] = http_utils.select_header_content_type(
550
+ ['application/json;charset=UTF-8'])
551
+
552
+ auth_settings = []
553
+
554
+ http_info["cname"] = cname
555
+ http_info["collection_formats"] = collection_formats
556
+ http_info["path_params"] = path_params
557
+ http_info["query_params"] = query_params
558
+ http_info["header_params"] = header_params
559
+ http_info["post_params"] = form_params
560
+ http_info["body"] = body
561
+ http_info["response_headers"] = response_headers
562
+
563
+ return http_info
564
+
498
565
  def copy_instance_async(self, request):
499
566
  """备份指定实例
500
567
 
@@ -1897,6 +1964,71 @@ class DcsAsyncClient(Client):
1897
1964
 
1898
1965
  return http_info
1899
1966
 
1967
+ def delete_instance_bandwidth_auto_scaling_policy_async(self, request):
1968
+ """删除实例带宽弹性伸缩策略
1969
+
1970
+ 删除实例带宽弹性伸缩策略。
1971
+
1972
+ Please refer to HUAWEI cloud API Explorer for details.
1973
+
1974
+
1975
+ :param request: Request instance for DeleteInstanceBandwidthAutoScalingPolicy
1976
+ :type request: :class:`huaweicloudsdkdcs.v2.DeleteInstanceBandwidthAutoScalingPolicyRequest`
1977
+ :rtype: :class:`huaweicloudsdkdcs.v2.DeleteInstanceBandwidthAutoScalingPolicyResponse`
1978
+ """
1979
+ http_info = self._delete_instance_bandwidth_auto_scaling_policy_http_info(request)
1980
+ return self._call_api(**http_info)
1981
+
1982
+ def delete_instance_bandwidth_auto_scaling_policy_async_invoker(self, request):
1983
+ http_info = self._delete_instance_bandwidth_auto_scaling_policy_http_info(request)
1984
+ return AsyncInvoker(self, http_info)
1985
+
1986
+ def _delete_instance_bandwidth_auto_scaling_policy_http_info(self, request):
1987
+ http_info = {
1988
+ "method": "DELETE",
1989
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth",
1990
+ "request_type": request.__class__.__name__,
1991
+ "response_type": "DeleteInstanceBandwidthAutoScalingPolicyResponse"
1992
+ }
1993
+
1994
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
1995
+
1996
+ cname = None
1997
+
1998
+ collection_formats = {}
1999
+
2000
+ path_params = {}
2001
+ if 'instance_id' in local_var_params:
2002
+ path_params['instance_id'] = local_var_params['instance_id']
2003
+
2004
+ query_params = []
2005
+
2006
+ header_params = {}
2007
+
2008
+ form_params = {}
2009
+
2010
+ body = None
2011
+ if isinstance(request, SdkStreamRequest):
2012
+ body = request.get_file_stream()
2013
+
2014
+ response_headers = []
2015
+
2016
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2017
+ ['application/json'])
2018
+
2019
+ auth_settings = []
2020
+
2021
+ http_info["cname"] = cname
2022
+ http_info["collection_formats"] = collection_formats
2023
+ http_info["path_params"] = path_params
2024
+ http_info["query_params"] = query_params
2025
+ http_info["header_params"] = header_params
2026
+ http_info["post_params"] = form_params
2027
+ http_info["body"] = body
2028
+ http_info["response_headers"] = response_headers
2029
+
2030
+ return http_info
2031
+
1900
2032
  def delete_ip_from_domain_name_async(self, request):
1901
2033
  """域名摘除IP
1902
2034
 
@@ -2031,6 +2163,71 @@ class DcsAsyncClient(Client):
2031
2163
 
2032
2164
  return http_info
2033
2165
 
2166
+ def delete_public_ip_async(self, request):
2167
+ """关闭实例公网访问
2168
+
2169
+ 关闭实例公网访问。
2170
+
2171
+ Please refer to HUAWEI cloud API Explorer for details.
2172
+
2173
+
2174
+ :param request: Request instance for DeletePublicIp
2175
+ :type request: :class:`huaweicloudsdkdcs.v2.DeletePublicIpRequest`
2176
+ :rtype: :class:`huaweicloudsdkdcs.v2.DeletePublicIpResponse`
2177
+ """
2178
+ http_info = self._delete_public_ip_http_info(request)
2179
+ return self._call_api(**http_info)
2180
+
2181
+ def delete_public_ip_async_invoker(self, request):
2182
+ http_info = self._delete_public_ip_http_info(request)
2183
+ return AsyncInvoker(self, http_info)
2184
+
2185
+ def _delete_public_ip_http_info(self, request):
2186
+ http_info = {
2187
+ "method": "DELETE",
2188
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/public-ip",
2189
+ "request_type": request.__class__.__name__,
2190
+ "response_type": "DeletePublicIpResponse"
2191
+ }
2192
+
2193
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2194
+
2195
+ cname = None
2196
+
2197
+ collection_formats = {}
2198
+
2199
+ path_params = {}
2200
+ if 'instance_id' in local_var_params:
2201
+ path_params['instance_id'] = local_var_params['instance_id']
2202
+
2203
+ query_params = []
2204
+
2205
+ header_params = {}
2206
+
2207
+ form_params = {}
2208
+
2209
+ body = None
2210
+ if isinstance(request, SdkStreamRequest):
2211
+ body = request.get_file_stream()
2212
+
2213
+ response_headers = []
2214
+
2215
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2216
+ ['application/json'])
2217
+
2218
+ auth_settings = []
2219
+
2220
+ http_info["cname"] = cname
2221
+ http_info["collection_formats"] = collection_formats
2222
+ http_info["path_params"] = path_params
2223
+ http_info["query_params"] = query_params
2224
+ http_info["header_params"] = header_params
2225
+ http_info["post_params"] = form_params
2226
+ http_info["body"] = body
2227
+ http_info["response_headers"] = response_headers
2228
+
2229
+ return http_info
2230
+
2034
2231
  def delete_single_instance_async(self, request):
2035
2232
  """删除实例
2036
2233
 
@@ -5330,6 +5527,71 @@ class DcsAsyncClient(Client):
5330
5527
 
5331
5528
  return http_info
5332
5529
 
5530
+ def show_bandwidths_async(self, request):
5531
+ """获取实例分片带宽
5532
+
5533
+ 获取实例各个分片带宽。
5534
+
5535
+ Please refer to HUAWEI cloud API Explorer for details.
5536
+
5537
+
5538
+ :param request: Request instance for ShowBandwidths
5539
+ :type request: :class:`huaweicloudsdkdcs.v2.ShowBandwidthsRequest`
5540
+ :rtype: :class:`huaweicloudsdkdcs.v2.ShowBandwidthsResponse`
5541
+ """
5542
+ http_info = self._show_bandwidths_http_info(request)
5543
+ return self._call_api(**http_info)
5544
+
5545
+ def show_bandwidths_async_invoker(self, request):
5546
+ http_info = self._show_bandwidths_http_info(request)
5547
+ return AsyncInvoker(self, http_info)
5548
+
5549
+ def _show_bandwidths_http_info(self, request):
5550
+ http_info = {
5551
+ "method": "GET",
5552
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/bandwidths",
5553
+ "request_type": request.__class__.__name__,
5554
+ "response_type": "ShowBandwidthsResponse"
5555
+ }
5556
+
5557
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5558
+
5559
+ cname = None
5560
+
5561
+ collection_formats = {}
5562
+
5563
+ path_params = {}
5564
+ if 'instance_id' in local_var_params:
5565
+ path_params['instance_id'] = local_var_params['instance_id']
5566
+
5567
+ query_params = []
5568
+
5569
+ header_params = {}
5570
+
5571
+ form_params = {}
5572
+
5573
+ body = None
5574
+ if isinstance(request, SdkStreamRequest):
5575
+ body = request.get_file_stream()
5576
+
5577
+ response_headers = []
5578
+
5579
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5580
+ ['application/json'])
5581
+
5582
+ auth_settings = []
5583
+
5584
+ http_info["cname"] = cname
5585
+ http_info["collection_formats"] = collection_formats
5586
+ http_info["path_params"] = path_params
5587
+ http_info["query_params"] = query_params
5588
+ http_info["header_params"] = header_params
5589
+ http_info["post_params"] = form_params
5590
+ http_info["body"] = body
5591
+ http_info["response_headers"] = response_headers
5592
+
5593
+ return http_info
5594
+
5333
5595
  def show_bigkey_autoscan_config_async(self, request):
5334
5596
  """查询大key自动分析配置
5335
5597
 
@@ -5994,31 +6256,31 @@ class DcsAsyncClient(Client):
5994
6256
 
5995
6257
  return http_info
5996
6258
 
5997
- def show_instance_ssl_detail_async(self, request):
5998
- """查询实例SSL信息
6259
+ def show_instance_bandwidth_auto_scaling_policy_async(self, request):
6260
+ """查询实例带宽弹性伸缩策略
5999
6261
 
6000
- 查询实例SSL信息。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。
6262
+ 查询实例带宽弹性伸缩策略。
6001
6263
 
6002
6264
  Please refer to HUAWEI cloud API Explorer for details.
6003
6265
 
6004
6266
 
6005
- :param request: Request instance for ShowInstanceSslDetail
6006
- :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailRequest`
6007
- :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailResponse`
6267
+ :param request: Request instance for ShowInstanceBandwidthAutoScalingPolicy
6268
+ :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceBandwidthAutoScalingPolicyRequest`
6269
+ :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceBandwidthAutoScalingPolicyResponse`
6008
6270
  """
6009
- http_info = self._show_instance_ssl_detail_http_info(request)
6271
+ http_info = self._show_instance_bandwidth_auto_scaling_policy_http_info(request)
6010
6272
  return self._call_api(**http_info)
6011
6273
 
6012
- def show_instance_ssl_detail_async_invoker(self, request):
6013
- http_info = self._show_instance_ssl_detail_http_info(request)
6274
+ def show_instance_bandwidth_auto_scaling_policy_async_invoker(self, request):
6275
+ http_info = self._show_instance_bandwidth_auto_scaling_policy_http_info(request)
6014
6276
  return AsyncInvoker(self, http_info)
6015
6277
 
6016
- def _show_instance_ssl_detail_http_info(self, request):
6278
+ def _show_instance_bandwidth_auto_scaling_policy_http_info(self, request):
6017
6279
  http_info = {
6018
6280
  "method": "GET",
6019
- "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl",
6281
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth",
6020
6282
  "request_type": request.__class__.__name__,
6021
- "response_type": "ShowInstanceSslDetailResponse"
6283
+ "response_type": "ShowInstanceBandwidthAutoScalingPolicyResponse"
6022
6284
  }
6023
6285
 
6024
6286
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -6059,31 +6321,31 @@ class DcsAsyncClient(Client):
6059
6321
 
6060
6322
  return http_info
6061
6323
 
6062
- def show_job_info_async(self, request):
6063
- """查询租户Job执行结果
6324
+ def show_instance_ssl_detail_async(self, request):
6325
+ """查询实例SSL信息
6064
6326
 
6065
- 查询租户Job执行结果
6327
+ 查询实例SSL信息。该接口目前仅针对Redis 6.0[基础版](tag:hws,hws_hk)版本实例。
6066
6328
 
6067
6329
  Please refer to HUAWEI cloud API Explorer for details.
6068
6330
 
6069
6331
 
6070
- :param request: Request instance for ShowJobInfo
6071
- :type request: :class:`huaweicloudsdkdcs.v2.ShowJobInfoRequest`
6072
- :rtype: :class:`huaweicloudsdkdcs.v2.ShowJobInfoResponse`
6332
+ :param request: Request instance for ShowInstanceSslDetail
6333
+ :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailRequest`
6334
+ :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceSslDetailResponse`
6073
6335
  """
6074
- http_info = self._show_job_info_http_info(request)
6336
+ http_info = self._show_instance_ssl_detail_http_info(request)
6075
6337
  return self._call_api(**http_info)
6076
6338
 
6077
- def show_job_info_async_invoker(self, request):
6078
- http_info = self._show_job_info_http_info(request)
6339
+ def show_instance_ssl_detail_async_invoker(self, request):
6340
+ http_info = self._show_instance_ssl_detail_http_info(request)
6079
6341
  return AsyncInvoker(self, http_info)
6080
6342
 
6081
- def _show_job_info_http_info(self, request):
6343
+ def _show_instance_ssl_detail_http_info(self, request):
6082
6344
  http_info = {
6083
6345
  "method": "GET",
6084
- "resource_path": "/v2/{project_id}/jobs/{job_id}",
6346
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/ssl",
6085
6347
  "request_type": request.__class__.__name__,
6086
- "response_type": "ShowJobInfoResponse"
6348
+ "response_type": "ShowInstanceSslDetailResponse"
6087
6349
  }
6088
6350
 
6089
6351
  local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
@@ -6093,8 +6355,8 @@ class DcsAsyncClient(Client):
6093
6355
  collection_formats = {}
6094
6356
 
6095
6357
  path_params = {}
6096
- if 'job_id' in local_var_params:
6097
- path_params['job_id'] = local_var_params['job_id']
6358
+ if 'instance_id' in local_var_params:
6359
+ path_params['instance_id'] = local_var_params['instance_id']
6098
6360
 
6099
6361
  query_params = []
6100
6362
 
@@ -6124,8 +6386,138 @@ class DcsAsyncClient(Client):
6124
6386
 
6125
6387
  return http_info
6126
6388
 
6127
- def show_migration_task_async(self, request):
6128
- """查询迁移任务详情
6389
+ def show_instance_version_async(self, request):
6390
+ """根据实例ID获取实例内核版本信息
6391
+
6392
+ 获取对应实例内核版本号。
6393
+
6394
+ Please refer to HUAWEI cloud API Explorer for details.
6395
+
6396
+
6397
+ :param request: Request instance for ShowInstanceVersion
6398
+ :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceVersionRequest`
6399
+ :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceVersionResponse`
6400
+ """
6401
+ http_info = self._show_instance_version_http_info(request)
6402
+ return self._call_api(**http_info)
6403
+
6404
+ def show_instance_version_async_invoker(self, request):
6405
+ http_info = self._show_instance_version_http_info(request)
6406
+ return AsyncInvoker(self, http_info)
6407
+
6408
+ def _show_instance_version_http_info(self, request):
6409
+ http_info = {
6410
+ "method": "GET",
6411
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/version",
6412
+ "request_type": request.__class__.__name__,
6413
+ "response_type": "ShowInstanceVersionResponse"
6414
+ }
6415
+
6416
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6417
+
6418
+ cname = None
6419
+
6420
+ collection_formats = {}
6421
+
6422
+ path_params = {}
6423
+ if 'instance_id' in local_var_params:
6424
+ path_params['instance_id'] = local_var_params['instance_id']
6425
+
6426
+ query_params = []
6427
+
6428
+ header_params = {}
6429
+
6430
+ form_params = {}
6431
+
6432
+ body = None
6433
+ if isinstance(request, SdkStreamRequest):
6434
+ body = request.get_file_stream()
6435
+
6436
+ response_headers = []
6437
+
6438
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6439
+ ['application/json'])
6440
+
6441
+ auth_settings = []
6442
+
6443
+ http_info["cname"] = cname
6444
+ http_info["collection_formats"] = collection_formats
6445
+ http_info["path_params"] = path_params
6446
+ http_info["query_params"] = query_params
6447
+ http_info["header_params"] = header_params
6448
+ http_info["post_params"] = form_params
6449
+ http_info["body"] = body
6450
+ http_info["response_headers"] = response_headers
6451
+
6452
+ return http_info
6453
+
6454
+ def show_job_info_async(self, request):
6455
+ """查询租户Job执行结果
6456
+
6457
+ 查询租户Job执行结果
6458
+
6459
+ Please refer to HUAWEI cloud API Explorer for details.
6460
+
6461
+
6462
+ :param request: Request instance for ShowJobInfo
6463
+ :type request: :class:`huaweicloudsdkdcs.v2.ShowJobInfoRequest`
6464
+ :rtype: :class:`huaweicloudsdkdcs.v2.ShowJobInfoResponse`
6465
+ """
6466
+ http_info = self._show_job_info_http_info(request)
6467
+ return self._call_api(**http_info)
6468
+
6469
+ def show_job_info_async_invoker(self, request):
6470
+ http_info = self._show_job_info_http_info(request)
6471
+ return AsyncInvoker(self, http_info)
6472
+
6473
+ def _show_job_info_http_info(self, request):
6474
+ http_info = {
6475
+ "method": "GET",
6476
+ "resource_path": "/v2/{project_id}/jobs/{job_id}",
6477
+ "request_type": request.__class__.__name__,
6478
+ "response_type": "ShowJobInfoResponse"
6479
+ }
6480
+
6481
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6482
+
6483
+ cname = None
6484
+
6485
+ collection_formats = {}
6486
+
6487
+ path_params = {}
6488
+ if 'job_id' in local_var_params:
6489
+ path_params['job_id'] = local_var_params['job_id']
6490
+
6491
+ query_params = []
6492
+
6493
+ header_params = {}
6494
+
6495
+ form_params = {}
6496
+
6497
+ body = None
6498
+ if isinstance(request, SdkStreamRequest):
6499
+ body = request.get_file_stream()
6500
+
6501
+ response_headers = []
6502
+
6503
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6504
+ ['application/json'])
6505
+
6506
+ auth_settings = []
6507
+
6508
+ http_info["cname"] = cname
6509
+ http_info["collection_formats"] = collection_formats
6510
+ http_info["path_params"] = path_params
6511
+ http_info["query_params"] = query_params
6512
+ http_info["header_params"] = header_params
6513
+ http_info["post_params"] = form_params
6514
+ http_info["body"] = body
6515
+ http_info["response_headers"] = response_headers
6516
+
6517
+ return http_info
6518
+
6519
+ def show_migration_task_async(self, request):
6520
+ """查询迁移任务详情
6129
6521
 
6130
6522
  查询迁移任务详情。
6131
6523
 
@@ -6920,6 +7312,73 @@ class DcsAsyncClient(Client):
6920
7312
 
6921
7313
  return http_info
6922
7314
 
7315
+ def update_bandwidth_async(self, request):
7316
+ """修改实例分片带宽
7317
+
7318
+ 修改实例分片带宽。
7319
+
7320
+ Please refer to HUAWEI cloud API Explorer for details.
7321
+
7322
+
7323
+ :param request: Request instance for UpdateBandwidth
7324
+ :type request: :class:`huaweicloudsdkdcs.v2.UpdateBandwidthRequest`
7325
+ :rtype: :class:`huaweicloudsdkdcs.v2.UpdateBandwidthResponse`
7326
+ """
7327
+ http_info = self._update_bandwidth_http_info(request)
7328
+ return self._call_api(**http_info)
7329
+
7330
+ def update_bandwidth_async_invoker(self, request):
7331
+ http_info = self._update_bandwidth_http_info(request)
7332
+ return AsyncInvoker(self, http_info)
7333
+
7334
+ def _update_bandwidth_http_info(self, request):
7335
+ http_info = {
7336
+ "method": "PUT",
7337
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/bandwidths",
7338
+ "request_type": request.__class__.__name__,
7339
+ "response_type": "UpdateBandwidthResponse"
7340
+ }
7341
+
7342
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7343
+
7344
+ cname = None
7345
+
7346
+ collection_formats = {}
7347
+
7348
+ path_params = {}
7349
+ if 'instance_id' in local_var_params:
7350
+ path_params['instance_id'] = local_var_params['instance_id']
7351
+
7352
+ query_params = []
7353
+
7354
+ header_params = {}
7355
+
7356
+ form_params = {}
7357
+
7358
+ body = None
7359
+ if 'body' in local_var_params:
7360
+ body = local_var_params['body']
7361
+ if isinstance(request, SdkStreamRequest):
7362
+ body = request.get_file_stream()
7363
+
7364
+ response_headers = []
7365
+
7366
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7367
+ ['application/json'])
7368
+
7369
+ auth_settings = []
7370
+
7371
+ http_info["cname"] = cname
7372
+ http_info["collection_formats"] = collection_formats
7373
+ http_info["path_params"] = path_params
7374
+ http_info["query_params"] = query_params
7375
+ http_info["header_params"] = header_params
7376
+ http_info["post_params"] = form_params
7377
+ http_info["body"] = body
7378
+ http_info["response_headers"] = response_headers
7379
+
7380
+ return http_info
7381
+
6923
7382
  def update_bigkey_autoscan_config_async(self, request):
6924
7383
  """设置大key自动分析配置
6925
7384
 
@@ -7454,6 +7913,73 @@ class DcsAsyncClient(Client):
7454
7913
 
7455
7914
  return http_info
7456
7915
 
7916
+ def update_instance_bandwidth_auto_scaling_policy_async(self, request):
7917
+ """更新实例带宽弹性伸缩策略
7918
+
7919
+ 更新实例带宽弹性伸缩策略。暂不支持实例带宽自动回缩。
7920
+
7921
+ Please refer to HUAWEI cloud API Explorer for details.
7922
+
7923
+
7924
+ :param request: Request instance for UpdateInstanceBandwidthAutoScalingPolicy
7925
+ :type request: :class:`huaweicloudsdkdcs.v2.UpdateInstanceBandwidthAutoScalingPolicyRequest`
7926
+ :rtype: :class:`huaweicloudsdkdcs.v2.UpdateInstanceBandwidthAutoScalingPolicyResponse`
7927
+ """
7928
+ http_info = self._update_instance_bandwidth_auto_scaling_policy_http_info(request)
7929
+ return self._call_api(**http_info)
7930
+
7931
+ def update_instance_bandwidth_auto_scaling_policy_async_invoker(self, request):
7932
+ http_info = self._update_instance_bandwidth_auto_scaling_policy_http_info(request)
7933
+ return AsyncInvoker(self, http_info)
7934
+
7935
+ def _update_instance_bandwidth_auto_scaling_policy_http_info(self, request):
7936
+ http_info = {
7937
+ "method": "PUT",
7938
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/autoscaling-policy/bandwidth",
7939
+ "request_type": request.__class__.__name__,
7940
+ "response_type": "UpdateInstanceBandwidthAutoScalingPolicyResponse"
7941
+ }
7942
+
7943
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7944
+
7945
+ cname = None
7946
+
7947
+ collection_formats = {}
7948
+
7949
+ path_params = {}
7950
+ if 'instance_id' in local_var_params:
7951
+ path_params['instance_id'] = local_var_params['instance_id']
7952
+
7953
+ query_params = []
7954
+
7955
+ header_params = {}
7956
+
7957
+ form_params = {}
7958
+
7959
+ body = None
7960
+ if 'body' in local_var_params:
7961
+ body = local_var_params['body']
7962
+ if isinstance(request, SdkStreamRequest):
7963
+ body = request.get_file_stream()
7964
+
7965
+ response_headers = []
7966
+
7967
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7968
+ ['application/json;charset=UTF-8'])
7969
+
7970
+ auth_settings = []
7971
+
7972
+ http_info["cname"] = cname
7973
+ http_info["collection_formats"] = collection_formats
7974
+ http_info["path_params"] = path_params
7975
+ http_info["query_params"] = query_params
7976
+ http_info["header_params"] = header_params
7977
+ http_info["post_params"] = form_params
7978
+ http_info["body"] = body
7979
+ http_info["response_headers"] = response_headers
7980
+
7981
+ return http_info
7982
+
7457
7983
  def update_instance_config_async(self, request):
7458
7984
  """异步修改实例配置参数
7459
7985
 
@@ -7655,6 +8181,73 @@ class DcsAsyncClient(Client):
7655
8181
 
7656
8182
  return http_info
7657
8183
 
8184
+ def update_public_ip_async(self, request):
8185
+ """开启/修改实例公网访问
8186
+
8187
+ 开启/修改实例公网访问。
8188
+
8189
+ Please refer to HUAWEI cloud API Explorer for details.
8190
+
8191
+
8192
+ :param request: Request instance for UpdatePublicIp
8193
+ :type request: :class:`huaweicloudsdkdcs.v2.UpdatePublicIpRequest`
8194
+ :rtype: :class:`huaweicloudsdkdcs.v2.UpdatePublicIpResponse`
8195
+ """
8196
+ http_info = self._update_public_ip_http_info(request)
8197
+ return self._call_api(**http_info)
8198
+
8199
+ def update_public_ip_async_invoker(self, request):
8200
+ http_info = self._update_public_ip_http_info(request)
8201
+ return AsyncInvoker(self, http_info)
8202
+
8203
+ def _update_public_ip_http_info(self, request):
8204
+ http_info = {
8205
+ "method": "POST",
8206
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/public-ip",
8207
+ "request_type": request.__class__.__name__,
8208
+ "response_type": "UpdatePublicIpResponse"
8209
+ }
8210
+
8211
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8212
+
8213
+ cname = None
8214
+
8215
+ collection_formats = {}
8216
+
8217
+ path_params = {}
8218
+ if 'instance_id' in local_var_params:
8219
+ path_params['instance_id'] = local_var_params['instance_id']
8220
+
8221
+ query_params = []
8222
+
8223
+ header_params = {}
8224
+
8225
+ form_params = {}
8226
+
8227
+ body = None
8228
+ if 'body' in local_var_params:
8229
+ body = local_var_params['body']
8230
+ if isinstance(request, SdkStreamRequest):
8231
+ body = request.get_file_stream()
8232
+
8233
+ response_headers = []
8234
+
8235
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8236
+ ['application/json;charset=UTF-8'])
8237
+
8238
+ auth_settings = []
8239
+
8240
+ http_info["cname"] = cname
8241
+ http_info["collection_formats"] = collection_formats
8242
+ http_info["path_params"] = path_params
8243
+ http_info["query_params"] = query_params
8244
+ http_info["header_params"] = header_params
8245
+ http_info["post_params"] = form_params
8246
+ http_info["body"] = body
8247
+ http_info["response_headers"] = response_headers
8248
+
8249
+ return http_info
8250
+
7658
8251
  def update_slave_priority_async(self, request):
7659
8252
  """设置备节点优先级
7660
8253
 
@@ -7793,6 +8386,73 @@ class DcsAsyncClient(Client):
7793
8386
 
7794
8387
  return http_info
7795
8388
 
8389
+ def upgrade_instance_minor_version_async(self, request):
8390
+ """升级实例小版本
8391
+
8392
+ 升级实例小版本。
8393
+
8394
+ Please refer to HUAWEI cloud API Explorer for details.
8395
+
8396
+
8397
+ :param request: Request instance for UpgradeInstanceMinorVersion
8398
+ :type request: :class:`huaweicloudsdkdcs.v2.UpgradeInstanceMinorVersionRequest`
8399
+ :rtype: :class:`huaweicloudsdkdcs.v2.UpgradeInstanceMinorVersionResponse`
8400
+ """
8401
+ http_info = self._upgrade_instance_minor_version_http_info(request)
8402
+ return self._call_api(**http_info)
8403
+
8404
+ def upgrade_instance_minor_version_async_invoker(self, request):
8405
+ http_info = self._upgrade_instance_minor_version_http_info(request)
8406
+ return AsyncInvoker(self, http_info)
8407
+
8408
+ def _upgrade_instance_minor_version_http_info(self, request):
8409
+ http_info = {
8410
+ "method": "POST",
8411
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/minor-version/upgrade",
8412
+ "request_type": request.__class__.__name__,
8413
+ "response_type": "UpgradeInstanceMinorVersionResponse"
8414
+ }
8415
+
8416
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8417
+
8418
+ cname = None
8419
+
8420
+ collection_formats = {}
8421
+
8422
+ path_params = {}
8423
+ if 'instance_id' in local_var_params:
8424
+ path_params['instance_id'] = local_var_params['instance_id']
8425
+
8426
+ query_params = []
8427
+
8428
+ header_params = {}
8429
+
8430
+ form_params = {}
8431
+
8432
+ body = None
8433
+ if 'body' in local_var_params:
8434
+ body = local_var_params['body']
8435
+ if isinstance(request, SdkStreamRequest):
8436
+ body = request.get_file_stream()
8437
+
8438
+ response_headers = []
8439
+
8440
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8441
+ ['application/json;charset=UTF-8'])
8442
+
8443
+ auth_settings = []
8444
+
8445
+ http_info["cname"] = cname
8446
+ http_info["collection_formats"] = collection_formats
8447
+ http_info["path_params"] = path_params
8448
+ http_info["query_params"] = query_params
8449
+ http_info["header_params"] = header_params
8450
+ http_info["post_params"] = form_params
8451
+ http_info["body"] = body
8452
+ http_info["response_headers"] = response_headers
8453
+
8454
+ return http_info
8455
+
7796
8456
  def validate_deletable_replica_async(self, request):
7797
8457
  """校验集群副本是否支持删除
7798
8458