huaweicloudsdkdcs 3.1.148__py2.py3-none-any.whl → 3.1.150__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 +29 -0
  2. huaweicloudsdkdcs/v2/dcs_async_client.py +604 -0
  3. huaweicloudsdkdcs/v2/dcs_client.py +604 -0
  4. huaweicloudsdkdcs/v2/model/__init__.py +29 -0
  5. huaweicloudsdkdcs/v2/model/band_width.py +144 -0
  6. huaweicloudsdkdcs/v2/model/create_instance_body.py +3 -3
  7. huaweicloudsdkdcs/v2/model/create_offline_key_analysis_request.py +139 -0
  8. huaweicloudsdkdcs/v2/model/create_offline_key_analysis_request_body.py +143 -0
  9. huaweicloudsdkdcs/v2/model/create_offline_key_analysis_response.py +116 -0
  10. huaweicloudsdkdcs/v2/model/delete_offline_key_analysis_task_request.py +142 -0
  11. huaweicloudsdkdcs/v2/model/delete_offline_key_analysis_task_response.py +116 -0
  12. huaweicloudsdkdcs/v2/model/dims_info.py +144 -0
  13. huaweicloudsdkdcs/v2/model/download_hot_key_request.py +142 -0
  14. huaweicloudsdkdcs/v2/model/download_hot_key_response.py +85 -0
  15. huaweicloudsdkdcs/v2/model/key_space.py +202 -0
  16. huaweicloudsdkdcs/v2/model/key_type_byte.py +144 -0
  17. huaweicloudsdkdcs/v2/model/key_type_num.py +144 -0
  18. huaweicloudsdkdcs/v2/model/largest_key.py +202 -0
  19. huaweicloudsdkdcs/v2/model/largest_key_prefix.py +202 -0
  20. huaweicloudsdkdcs/v2/model/list_offline_key_analysis_task_request.py +201 -0
  21. huaweicloudsdkdcs/v2/model/list_offline_key_analysis_task_response.py +174 -0
  22. huaweicloudsdkdcs/v2/model/migrate_az_request.py +139 -0
  23. huaweicloudsdkdcs/v2/model/migrate_az_request_body.py +144 -0
  24. huaweicloudsdkdcs/v2/model/migrate_az_response.py +85 -0
  25. huaweicloudsdkdcs/v2/model/offline_key_analysis_record.py +231 -0
  26. huaweicloudsdkdcs/v2/model/rename_command_resp.py +119 -3
  27. huaweicloudsdkdcs/v2/model/rollback_exchange_instance_ip_request.py +114 -0
  28. huaweicloudsdkdcs/v2/model/rollback_exchange_instance_ip_response.py +85 -0
  29. huaweicloudsdkdcs/v2/model/show_instance_topology_request.py +114 -0
  30. huaweicloudsdkdcs/v2/model/show_instance_topology_response.py +290 -0
  31. huaweicloudsdkdcs/v2/model/show_offline_key_analysis_task_request.py +142 -0
  32. huaweicloudsdkdcs/v2/model/show_offline_key_analysis_task_response.py +580 -0
  33. huaweicloudsdkdcs/v2/model/topology_info.py +538 -0
  34. huaweicloudsdkdcs/v2/model/update_ip_whitelist_async_request.py +139 -0
  35. huaweicloudsdkdcs/v2/model/update_ip_whitelist_async_response.py +116 -0
  36. {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.150.dist-info}/METADATA +2 -2
  37. {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.150.dist-info}/RECORD +40 -11
  38. {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.150.dist-info}/LICENSE +0 -0
  39. {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.150.dist-info}/WHEEL +0 -0
  40. {huaweicloudsdkdcs-3.1.148.dist-info → huaweicloudsdkdcs-3.1.150.dist-info}/top_level.txt +0 -0
@@ -2296,6 +2296,73 @@ class DcsAsyncClient(Client):
2296
2296
 
2297
2297
  return http_info
2298
2298
 
2299
+ def download_hot_key_async(self, request):
2300
+ r"""下载热key
2301
+
2302
+ 下载热key。
2303
+
2304
+ Please refer to HUAWEI cloud API Explorer for details.
2305
+
2306
+
2307
+ :param request: Request instance for DownloadHotKey
2308
+ :type request: :class:`huaweicloudsdkdcs.v2.DownloadHotKeyRequest`
2309
+ :rtype: :class:`huaweicloudsdkdcs.v2.DownloadHotKeyResponse`
2310
+ """
2311
+ http_info = self._download_hot_key_http_info(request)
2312
+ return self._call_api(**http_info)
2313
+
2314
+ def download_hot_key_async_invoker(self, request):
2315
+ http_info = self._download_hot_key_http_info(request)
2316
+ return AsyncInvoker(self, http_info)
2317
+
2318
+ def _download_hot_key_http_info(self, request):
2319
+ http_info = {
2320
+ "method": "POST",
2321
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/hotkey/{task_id}/export",
2322
+ "request_type": request.__class__.__name__,
2323
+ "response_type": "DownloadHotKeyResponse"
2324
+ }
2325
+
2326
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2327
+
2328
+ cname = None
2329
+
2330
+ collection_formats = {}
2331
+
2332
+ path_params = {}
2333
+ if 'instance_id' in local_var_params:
2334
+ path_params['instance_id'] = local_var_params['instance_id']
2335
+ if 'task_id' in local_var_params:
2336
+ path_params['task_id'] = local_var_params['task_id']
2337
+
2338
+ query_params = []
2339
+
2340
+ header_params = {}
2341
+
2342
+ form_params = {}
2343
+
2344
+ body = None
2345
+ if isinstance(request, SdkStreamRequest):
2346
+ body = request.get_file_stream()
2347
+
2348
+ response_headers = []
2349
+
2350
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2351
+ ['application/json'])
2352
+
2353
+ auth_settings = []
2354
+
2355
+ http_info["cname"] = cname
2356
+ http_info["collection_formats"] = collection_formats
2357
+ http_info["path_params"] = path_params
2358
+ http_info["query_params"] = query_params
2359
+ http_info["header_params"] = header_params
2360
+ http_info["post_params"] = form_params
2361
+ http_info["body"] = body
2362
+ http_info["response_headers"] = response_headers
2363
+
2364
+ return http_info
2365
+
2299
2366
  def download_ssl_cert_async(self, request):
2300
2367
  r"""下载实例SSL证书
2301
2368
 
@@ -4924,6 +4991,73 @@ class DcsAsyncClient(Client):
4924
4991
 
4925
4992
  return http_info
4926
4993
 
4994
+ def migrate_az_async(self, request):
4995
+ r"""变更可用区
4996
+
4997
+ 迁移缓存实例可用区,完成单可用区实例跨可用区改造。
4998
+
4999
+ Please refer to HUAWEI cloud API Explorer for details.
5000
+
5001
+
5002
+ :param request: Request instance for MigrateAz
5003
+ :type request: :class:`huaweicloudsdkdcs.v2.MigrateAzRequest`
5004
+ :rtype: :class:`huaweicloudsdkdcs.v2.MigrateAzResponse`
5005
+ """
5006
+ http_info = self._migrate_az_http_info(request)
5007
+ return self._call_api(**http_info)
5008
+
5009
+ def migrate_az_async_invoker(self, request):
5010
+ http_info = self._migrate_az_http_info(request)
5011
+ return AsyncInvoker(self, http_info)
5012
+
5013
+ def _migrate_az_http_info(self, request):
5014
+ http_info = {
5015
+ "method": "PUT",
5016
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/available-zones",
5017
+ "request_type": request.__class__.__name__,
5018
+ "response_type": "MigrateAzResponse"
5019
+ }
5020
+
5021
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5022
+
5023
+ cname = None
5024
+
5025
+ collection_formats = {}
5026
+
5027
+ path_params = {}
5028
+ if 'instance_id' in local_var_params:
5029
+ path_params['instance_id'] = local_var_params['instance_id']
5030
+
5031
+ query_params = []
5032
+
5033
+ header_params = {}
5034
+
5035
+ form_params = {}
5036
+
5037
+ body = None
5038
+ if 'body' in local_var_params:
5039
+ body = local_var_params['body']
5040
+ if isinstance(request, SdkStreamRequest):
5041
+ body = request.get_file_stream()
5042
+
5043
+ response_headers = []
5044
+
5045
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5046
+ ['application/json;charset=UTF-8'])
5047
+
5048
+ auth_settings = []
5049
+
5050
+ http_info["cname"] = cname
5051
+ http_info["collection_formats"] = collection_formats
5052
+ http_info["path_params"] = path_params
5053
+ http_info["query_params"] = query_params
5054
+ http_info["header_params"] = header_params
5055
+ http_info["post_params"] = form_params
5056
+ http_info["body"] = body
5057
+ http_info["response_headers"] = response_headers
5058
+
5059
+ return http_info
5060
+
4927
5061
  def reset_acl_account_pass_word_async(self, request):
4928
5062
  r"""重置ACL账号密码
4929
5063
 
@@ -5262,6 +5396,71 @@ class DcsAsyncClient(Client):
5262
5396
 
5263
5397
  return http_info
5264
5398
 
5399
+ def rollback_exchange_instance_ip_async(self, request):
5400
+ r"""IP交换回滚
5401
+
5402
+ IP交换回滚。
5403
+
5404
+ Please refer to HUAWEI cloud API Explorer for details.
5405
+
5406
+
5407
+ :param request: Request instance for RollbackExchangeInstanceIp
5408
+ :type request: :class:`huaweicloudsdkdcs.v2.RollbackExchangeInstanceIpRequest`
5409
+ :rtype: :class:`huaweicloudsdkdcs.v2.RollbackExchangeInstanceIpResponse`
5410
+ """
5411
+ http_info = self._rollback_exchange_instance_ip_http_info(request)
5412
+ return self._call_api(**http_info)
5413
+
5414
+ def rollback_exchange_instance_ip_async_invoker(self, request):
5415
+ http_info = self._rollback_exchange_instance_ip_http_info(request)
5416
+ return AsyncInvoker(self, http_info)
5417
+
5418
+ def _rollback_exchange_instance_ip_http_info(self, request):
5419
+ http_info = {
5420
+ "method": "POST",
5421
+ "resource_path": "/v2/{project_id}/migration-task/{task_id}/rollback-ip",
5422
+ "request_type": request.__class__.__name__,
5423
+ "response_type": "RollbackExchangeInstanceIpResponse"
5424
+ }
5425
+
5426
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
5427
+
5428
+ cname = None
5429
+
5430
+ collection_formats = {}
5431
+
5432
+ path_params = {}
5433
+ if 'task_id' in local_var_params:
5434
+ path_params['task_id'] = local_var_params['task_id']
5435
+
5436
+ query_params = []
5437
+
5438
+ header_params = {}
5439
+
5440
+ form_params = {}
5441
+
5442
+ body = None
5443
+ if isinstance(request, SdkStreamRequest):
5444
+ body = request.get_file_stream()
5445
+
5446
+ response_headers = []
5447
+
5448
+ header_params['Content-Type'] = http_utils.select_header_content_type(
5449
+ ['application/json'])
5450
+
5451
+ auth_settings = []
5452
+
5453
+ http_info["cname"] = cname
5454
+ http_info["collection_formats"] = collection_formats
5455
+ http_info["path_params"] = path_params
5456
+ http_info["query_params"] = query_params
5457
+ http_info["header_params"] = header_params
5458
+ http_info["post_params"] = form_params
5459
+ http_info["body"] = body
5460
+ http_info["response_headers"] = response_headers
5461
+
5462
+ return http_info
5463
+
5265
5464
  def scan_clients_async(self, request):
5266
5465
  r"""下发查询会话列表任务
5267
5466
 
@@ -6387,6 +6586,71 @@ class DcsAsyncClient(Client):
6387
6586
 
6388
6587
  return http_info
6389
6588
 
6589
+ def show_instance_topology_async(self, request):
6590
+ r"""查询集群实例拓扑关系图
6591
+
6592
+ 查询集群实例拓扑关系图。
6593
+
6594
+ Please refer to HUAWEI cloud API Explorer for details.
6595
+
6596
+
6597
+ :param request: Request instance for ShowInstanceTopology
6598
+ :type request: :class:`huaweicloudsdkdcs.v2.ShowInstanceTopologyRequest`
6599
+ :rtype: :class:`huaweicloudsdkdcs.v2.ShowInstanceTopologyResponse`
6600
+ """
6601
+ http_info = self._show_instance_topology_http_info(request)
6602
+ return self._call_api(**http_info)
6603
+
6604
+ def show_instance_topology_async_invoker(self, request):
6605
+ http_info = self._show_instance_topology_http_info(request)
6606
+ return AsyncInvoker(self, http_info)
6607
+
6608
+ def _show_instance_topology_http_info(self, request):
6609
+ http_info = {
6610
+ "method": "GET",
6611
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/nodes",
6612
+ "request_type": request.__class__.__name__,
6613
+ "response_type": "ShowInstanceTopologyResponse"
6614
+ }
6615
+
6616
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
6617
+
6618
+ cname = None
6619
+
6620
+ collection_formats = {}
6621
+
6622
+ path_params = {}
6623
+ if 'instance_id' in local_var_params:
6624
+ path_params['instance_id'] = local_var_params['instance_id']
6625
+
6626
+ query_params = []
6627
+
6628
+ header_params = {}
6629
+
6630
+ form_params = {}
6631
+
6632
+ body = None
6633
+ if isinstance(request, SdkStreamRequest):
6634
+ body = request.get_file_stream()
6635
+
6636
+ response_headers = []
6637
+
6638
+ header_params['Content-Type'] = http_utils.select_header_content_type(
6639
+ ['application/json'])
6640
+
6641
+ auth_settings = []
6642
+
6643
+ http_info["cname"] = cname
6644
+ http_info["collection_formats"] = collection_formats
6645
+ http_info["path_params"] = path_params
6646
+ http_info["query_params"] = query_params
6647
+ http_info["header_params"] = header_params
6648
+ http_info["post_params"] = form_params
6649
+ http_info["body"] = body
6650
+ http_info["response_headers"] = response_headers
6651
+
6652
+ return http_info
6653
+
6390
6654
  def show_instance_version_async(self, request):
6391
6655
  r"""根据实例ID获取实例内核版本信息
6392
6656
 
@@ -8048,6 +8312,74 @@ class DcsAsyncClient(Client):
8048
8312
 
8049
8313
  return http_info
8050
8314
 
8315
+ def update_ip_whitelist_async_async(self, request):
8316
+ r"""设置IP白名单分组异步接口
8317
+
8318
+ 为指定实例设置IP白名单分组,包含创建、停用、编辑、删除白名单四个功能。返回异步任务jobId,设置白名单分组信息会覆盖掉已有的白名单信息,因此在新增IP白名单分组时,需保留已有的白名单信息后再编辑新的白名单分组信息。
8319
+ [仅Redis 4.0及以上版本的实例支持设置IP白名单分组,Redis 3.0实例不支持该功能。](tag:dt)
8320
+
8321
+ Please refer to HUAWEI cloud API Explorer for details.
8322
+
8323
+
8324
+ :param request: Request instance for UpdateIpWhitelistAsync
8325
+ :type request: :class:`huaweicloudsdkdcs.v2.UpdateIpWhitelistAsyncRequest`
8326
+ :rtype: :class:`huaweicloudsdkdcs.v2.UpdateIpWhitelistAsyncResponse`
8327
+ """
8328
+ http_info = self._update_ip_whitelist_async_http_info(request)
8329
+ return self._call_api(**http_info)
8330
+
8331
+ def update_ip_whitelist_async_async_invoker(self, request):
8332
+ http_info = self._update_ip_whitelist_async_http_info(request)
8333
+ return AsyncInvoker(self, http_info)
8334
+
8335
+ def _update_ip_whitelist_async_http_info(self, request):
8336
+ http_info = {
8337
+ "method": "PUT",
8338
+ "resource_path": "/v2/{project_id}/instance/{instance_id}/whitelist-async",
8339
+ "request_type": request.__class__.__name__,
8340
+ "response_type": "UpdateIpWhitelistAsyncResponse"
8341
+ }
8342
+
8343
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
8344
+
8345
+ cname = None
8346
+
8347
+ collection_formats = {}
8348
+
8349
+ path_params = {}
8350
+ if 'instance_id' in local_var_params:
8351
+ path_params['instance_id'] = local_var_params['instance_id']
8352
+
8353
+ query_params = []
8354
+
8355
+ header_params = {}
8356
+
8357
+ form_params = {}
8358
+
8359
+ body = None
8360
+ if 'body' in local_var_params:
8361
+ body = local_var_params['body']
8362
+ if isinstance(request, SdkStreamRequest):
8363
+ body = request.get_file_stream()
8364
+
8365
+ response_headers = []
8366
+
8367
+ header_params['Content-Type'] = http_utils.select_header_content_type(
8368
+ ['application/json;charset=UTF-8'])
8369
+
8370
+ auth_settings = []
8371
+
8372
+ http_info["cname"] = cname
8373
+ http_info["collection_formats"] = collection_formats
8374
+ http_info["path_params"] = path_params
8375
+ http_info["query_params"] = query_params
8376
+ http_info["header_params"] = header_params
8377
+ http_info["post_params"] = form_params
8378
+ http_info["body"] = body
8379
+ http_info["response_headers"] = response_headers
8380
+
8381
+ return http_info
8382
+
8051
8383
  def update_migration_task_async(self, request):
8052
8384
  r"""设置迁移任务自动重连
8053
8385
 
@@ -8651,6 +8983,278 @@ class DcsAsyncClient(Client):
8651
8983
 
8652
8984
  return http_info
8653
8985
 
8986
+ def create_offline_key_analysis_async(self, request):
8987
+ r"""创建离线全量key分析任务
8988
+
8989
+ 创建离线全量key分析任务。离线全量key分析用于分析实例指定节点备份文件中的TOP100大key,每种数据类型前缀数量TOP50的key和每种数据类型key的内存占用和数量的分布情况。仅Redis 4.0、5.0、6.0版本及Redis企业版实例支持。
8990
+
8991
+ Please refer to HUAWEI cloud API Explorer for details.
8992
+
8993
+
8994
+ :param request: Request instance for CreateOfflineKeyAnalysis
8995
+ :type request: :class:`huaweicloudsdkdcs.v2.CreateOfflineKeyAnalysisRequest`
8996
+ :rtype: :class:`huaweicloudsdkdcs.v2.CreateOfflineKeyAnalysisResponse`
8997
+ """
8998
+ http_info = self._create_offline_key_analysis_http_info(request)
8999
+ return self._call_api(**http_info)
9000
+
9001
+ def create_offline_key_analysis_async_invoker(self, request):
9002
+ http_info = self._create_offline_key_analysis_http_info(request)
9003
+ return AsyncInvoker(self, http_info)
9004
+
9005
+ def _create_offline_key_analysis_http_info(self, request):
9006
+ http_info = {
9007
+ "method": "POST",
9008
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/offline/key-analysis",
9009
+ "request_type": request.__class__.__name__,
9010
+ "response_type": "CreateOfflineKeyAnalysisResponse"
9011
+ }
9012
+
9013
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9014
+
9015
+ cname = None
9016
+
9017
+ collection_formats = {}
9018
+
9019
+ path_params = {}
9020
+ if 'instance_id' in local_var_params:
9021
+ path_params['instance_id'] = local_var_params['instance_id']
9022
+
9023
+ query_params = []
9024
+
9025
+ header_params = {}
9026
+
9027
+ form_params = {}
9028
+
9029
+ body = None
9030
+ if 'body' in local_var_params:
9031
+ body = local_var_params['body']
9032
+ if isinstance(request, SdkStreamRequest):
9033
+ body = request.get_file_stream()
9034
+
9035
+ response_headers = []
9036
+
9037
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9038
+ ['application/json;charset=UTF-8'])
9039
+
9040
+ auth_settings = []
9041
+
9042
+ http_info["cname"] = cname
9043
+ http_info["collection_formats"] = collection_formats
9044
+ http_info["path_params"] = path_params
9045
+ http_info["query_params"] = query_params
9046
+ http_info["header_params"] = header_params
9047
+ http_info["post_params"] = form_params
9048
+ http_info["body"] = body
9049
+ http_info["response_headers"] = response_headers
9050
+
9051
+ return http_info
9052
+
9053
+ def delete_offline_key_analysis_task_async(self, request):
9054
+ r"""删除离线全量key分析记录
9055
+
9056
+ 删除离线全量key分析记录。
9057
+
9058
+ Please refer to HUAWEI cloud API Explorer for details.
9059
+
9060
+
9061
+ :param request: Request instance for DeleteOfflineKeyAnalysisTask
9062
+ :type request: :class:`huaweicloudsdkdcs.v2.DeleteOfflineKeyAnalysisTaskRequest`
9063
+ :rtype: :class:`huaweicloudsdkdcs.v2.DeleteOfflineKeyAnalysisTaskResponse`
9064
+ """
9065
+ http_info = self._delete_offline_key_analysis_task_http_info(request)
9066
+ return self._call_api(**http_info)
9067
+
9068
+ def delete_offline_key_analysis_task_async_invoker(self, request):
9069
+ http_info = self._delete_offline_key_analysis_task_http_info(request)
9070
+ return AsyncInvoker(self, http_info)
9071
+
9072
+ def _delete_offline_key_analysis_task_http_info(self, request):
9073
+ http_info = {
9074
+ "method": "DELETE",
9075
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/offline/key-analysis/{task_id}",
9076
+ "request_type": request.__class__.__name__,
9077
+ "response_type": "DeleteOfflineKeyAnalysisTaskResponse"
9078
+ }
9079
+
9080
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9081
+
9082
+ cname = None
9083
+
9084
+ collection_formats = {}
9085
+
9086
+ path_params = {}
9087
+ if 'instance_id' in local_var_params:
9088
+ path_params['instance_id'] = local_var_params['instance_id']
9089
+ if 'task_id' in local_var_params:
9090
+ path_params['task_id'] = local_var_params['task_id']
9091
+
9092
+ query_params = []
9093
+
9094
+ header_params = {}
9095
+
9096
+ form_params = {}
9097
+
9098
+ body = None
9099
+ if isinstance(request, SdkStreamRequest):
9100
+ body = request.get_file_stream()
9101
+
9102
+ response_headers = []
9103
+
9104
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9105
+ ['application/json'])
9106
+
9107
+ auth_settings = []
9108
+
9109
+ http_info["cname"] = cname
9110
+ http_info["collection_formats"] = collection_formats
9111
+ http_info["path_params"] = path_params
9112
+ http_info["query_params"] = query_params
9113
+ http_info["header_params"] = header_params
9114
+ http_info["post_params"] = form_params
9115
+ http_info["body"] = body
9116
+ http_info["response_headers"] = response_headers
9117
+
9118
+ return http_info
9119
+
9120
+ def list_offline_key_analysis_task_async(self, request):
9121
+ r"""查询离线全量key分析任务列表
9122
+
9123
+ 查询离线全量key分析任务列表,支持Redis4.0、5.0、6.0版本及Redis企业版。
9124
+
9125
+ Please refer to HUAWEI cloud API Explorer for details.
9126
+
9127
+
9128
+ :param request: Request instance for ListOfflineKeyAnalysisTask
9129
+ :type request: :class:`huaweicloudsdkdcs.v2.ListOfflineKeyAnalysisTaskRequest`
9130
+ :rtype: :class:`huaweicloudsdkdcs.v2.ListOfflineKeyAnalysisTaskResponse`
9131
+ """
9132
+ http_info = self._list_offline_key_analysis_task_http_info(request)
9133
+ return self._call_api(**http_info)
9134
+
9135
+ def list_offline_key_analysis_task_async_invoker(self, request):
9136
+ http_info = self._list_offline_key_analysis_task_http_info(request)
9137
+ return AsyncInvoker(self, http_info)
9138
+
9139
+ def _list_offline_key_analysis_task_http_info(self, request):
9140
+ http_info = {
9141
+ "method": "GET",
9142
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/offline/key-analysis",
9143
+ "request_type": request.__class__.__name__,
9144
+ "response_type": "ListOfflineKeyAnalysisTaskResponse"
9145
+ }
9146
+
9147
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9148
+
9149
+ cname = None
9150
+
9151
+ collection_formats = {}
9152
+
9153
+ path_params = {}
9154
+ if 'instance_id' in local_var_params:
9155
+ path_params['instance_id'] = local_var_params['instance_id']
9156
+
9157
+ query_params = []
9158
+ if 'offset' in local_var_params:
9159
+ query_params.append(('offset', local_var_params['offset']))
9160
+ if 'limit' in local_var_params:
9161
+ query_params.append(('limit', local_var_params['limit']))
9162
+ if 'status' in local_var_params:
9163
+ query_params.append(('status', local_var_params['status']))
9164
+
9165
+ header_params = {}
9166
+
9167
+ form_params = {}
9168
+
9169
+ body = None
9170
+ if isinstance(request, SdkStreamRequest):
9171
+ body = request.get_file_stream()
9172
+
9173
+ response_headers = []
9174
+
9175
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9176
+ ['application/json'])
9177
+
9178
+ auth_settings = []
9179
+
9180
+ http_info["cname"] = cname
9181
+ http_info["collection_formats"] = collection_formats
9182
+ http_info["path_params"] = path_params
9183
+ http_info["query_params"] = query_params
9184
+ http_info["header_params"] = header_params
9185
+ http_info["post_params"] = form_params
9186
+ http_info["body"] = body
9187
+ http_info["response_headers"] = response_headers
9188
+
9189
+ return http_info
9190
+
9191
+ def show_offline_key_analysis_task_async(self, request):
9192
+ r"""查询离线全量key分析详情
9193
+
9194
+ 查询离线全量key分析详情。
9195
+
9196
+ Please refer to HUAWEI cloud API Explorer for details.
9197
+
9198
+
9199
+ :param request: Request instance for ShowOfflineKeyAnalysisTask
9200
+ :type request: :class:`huaweicloudsdkdcs.v2.ShowOfflineKeyAnalysisTaskRequest`
9201
+ :rtype: :class:`huaweicloudsdkdcs.v2.ShowOfflineKeyAnalysisTaskResponse`
9202
+ """
9203
+ http_info = self._show_offline_key_analysis_task_http_info(request)
9204
+ return self._call_api(**http_info)
9205
+
9206
+ def show_offline_key_analysis_task_async_invoker(self, request):
9207
+ http_info = self._show_offline_key_analysis_task_http_info(request)
9208
+ return AsyncInvoker(self, http_info)
9209
+
9210
+ def _show_offline_key_analysis_task_http_info(self, request):
9211
+ http_info = {
9212
+ "method": "GET",
9213
+ "resource_path": "/v2/{project_id}/instances/{instance_id}/offline/key-analysis/{task_id}",
9214
+ "request_type": request.__class__.__name__,
9215
+ "response_type": "ShowOfflineKeyAnalysisTaskResponse"
9216
+ }
9217
+
9218
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
9219
+
9220
+ cname = None
9221
+
9222
+ collection_formats = {}
9223
+
9224
+ path_params = {}
9225
+ if 'instance_id' in local_var_params:
9226
+ path_params['instance_id'] = local_var_params['instance_id']
9227
+ if 'task_id' in local_var_params:
9228
+ path_params['task_id'] = local_var_params['task_id']
9229
+
9230
+ query_params = []
9231
+
9232
+ header_params = {}
9233
+
9234
+ form_params = {}
9235
+
9236
+ body = None
9237
+ if isinstance(request, SdkStreamRequest):
9238
+ body = request.get_file_stream()
9239
+
9240
+ response_headers = []
9241
+
9242
+ header_params['Content-Type'] = http_utils.select_header_content_type(
9243
+ ['application/json'])
9244
+
9245
+ auth_settings = []
9246
+
9247
+ http_info["cname"] = cname
9248
+ http_info["collection_formats"] = collection_formats
9249
+ http_info["path_params"] = path_params
9250
+ http_info["query_params"] = query_params
9251
+ http_info["header_params"] = header_params
9252
+ http_info["post_params"] = form_params
9253
+ http_info["body"] = body
9254
+ http_info["response_headers"] = response_headers
9255
+
9256
+ return http_info
9257
+
8654
9258
  def _call_api(self, **kwargs):
8655
9259
  try:
8656
9260
  kwargs["async_request"] = True