huaweicloudsdkworkspace 3.1.122__py2.py3-none-any.whl → 3.1.124__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 huaweicloudsdkworkspace might be problematic. Click here for more details.

Files changed (63) hide show
  1. huaweicloudsdkworkspace/v2/__init__.py +54 -0
  2. huaweicloudsdkworkspace/v2/model/__init__.py +54 -0
  3. huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_req.py +144 -0
  4. huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_request.py +168 -0
  5. huaweicloudsdkworkspace/v2/model/add_desktop_pool_volumes_response.py +319 -0
  6. huaweicloudsdkworkspace/v2/model/authorized_objects.py +227 -0
  7. huaweicloudsdkworkspace/v2/model/autoscale_policy.py +202 -0
  8. huaweicloudsdkworkspace/v2/model/base_error.py +144 -0
  9. huaweicloudsdkworkspace/v2/model/batch_delete_user_req.py +114 -0
  10. huaweicloudsdkworkspace/v2/model/batch_delete_user_request.py +111 -0
  11. huaweicloudsdkworkspace/v2/model/batch_delete_user_response.py +85 -0
  12. huaweicloudsdkworkspace/v2/model/cbc_callback_rsp.py +289 -0
  13. huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_request.py +139 -0
  14. huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_request_body.py +143 -0
  15. huaweicloudsdkworkspace/v2/model/create_desktop_pool_authorized_objects_response.py +85 -0
  16. huaweicloudsdkworkspace/v2/model/create_desktop_pool_req.py +708 -0
  17. huaweicloudsdkworkspace/v2/model/create_desktop_pool_request.py +140 -0
  18. huaweicloudsdkworkspace/v2/model/create_desktop_pool_response.py +116 -0
  19. huaweicloudsdkworkspace/v2/model/create_desktop_rsp.py +115 -0
  20. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_request.py +114 -0
  21. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_response.py +85 -0
  22. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_req.py +115 -0
  23. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_request.py +139 -0
  24. huaweicloudsdkworkspace/v2/model/delete_desktop_pool_volumes_response.py +116 -0
  25. huaweicloudsdkworkspace/v2/model/desktop_pool_action_req.py +143 -0
  26. huaweicloudsdkworkspace/v2/model/execute_desktop_pool_action_request.py +139 -0
  27. huaweicloudsdkworkspace/v2/model/execute_desktop_pool_action_response.py +116 -0
  28. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_req.py +143 -0
  29. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_request.py +168 -0
  30. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_response.py +116 -0
  31. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_req.py +144 -0
  32. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_request.py +168 -0
  33. huaweicloudsdkworkspace/v2/model/expand_desktop_pool_volumes_response.py +319 -0
  34. huaweicloudsdkworkspace/v2/model/list_desktop_pool_authorized_objects_request.py +172 -0
  35. huaweicloudsdkworkspace/v2/model/list_desktop_pool_authorized_objects_response.py +145 -0
  36. huaweicloudsdkworkspace/v2/model/list_desktop_pools_request.py +260 -0
  37. huaweicloudsdkworkspace/v2/model/list_desktop_pools_response.py +145 -0
  38. huaweicloudsdkworkspace/v2/model/list_pool_desktops_detail_request.py +201 -0
  39. huaweicloudsdkworkspace/v2/model/list_pool_desktops_detail_response.py +203 -0
  40. huaweicloudsdkworkspace/v2/model/pool_desktops_detail_info.py +1147 -0
  41. huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_req.py +288 -0
  42. huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_request.py +168 -0
  43. huaweicloudsdkworkspace/v2/model/rebuild_desktop_pool_response.py +232 -0
  44. huaweicloudsdkworkspace/v2/model/resize_desktop_extend_param.py +115 -0
  45. huaweicloudsdkworkspace/v2/model/resize_desktop_pool_job_response.py +144 -0
  46. huaweicloudsdkworkspace/v2/model/resize_desktop_pool_req.py +197 -0
  47. huaweicloudsdkworkspace/v2/model/resize_desktop_pool_request.py +168 -0
  48. huaweicloudsdkworkspace/v2/model/resize_desktop_pool_response.py +174 -0
  49. huaweicloudsdkworkspace/v2/model/show_desktop_pool_detail_request.py +114 -0
  50. huaweicloudsdkworkspace/v2/model/show_desktop_pool_detail_response.py +887 -0
  51. huaweicloudsdkworkspace/v2/model/simple_desktop_pool_info.py +886 -0
  52. huaweicloudsdkworkspace/v2/model/update_desktop_pool_attributes_req.py +372 -0
  53. huaweicloudsdkworkspace/v2/model/update_desktop_pool_request.py +139 -0
  54. huaweicloudsdkworkspace/v2/model/update_desktop_pool_response.py +85 -0
  55. huaweicloudsdkworkspace/v2/model/volume_add_info.py +200 -0
  56. huaweicloudsdkworkspace/v2/model/volume_info.py +229 -0
  57. huaweicloudsdkworkspace/v2/workspace_async_client.py +1091 -0
  58. huaweicloudsdkworkspace/v2/workspace_client.py +1091 -0
  59. {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/METADATA +2 -2
  60. {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/RECORD +63 -9
  61. {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/WHEEL +1 -1
  62. {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/LICENSE +0 -0
  63. {huaweicloudsdkworkspace-3.1.122.dist-info → huaweicloudsdkworkspace-3.1.124.dist-info}/top_level.txt +0 -0
@@ -2479,6 +2479,1032 @@ class WorkspaceAsyncClient(Client):
2479
2479
 
2480
2480
  return http_info
2481
2481
 
2482
+ def add_desktop_pool_volumes_async(self, request):
2483
+ """桌面池批量添加磁盘
2484
+
2485
+ 桌面池批量添加磁盘。
2486
+
2487
+ Please refer to HUAWEI cloud API Explorer for details.
2488
+
2489
+
2490
+ :param request: Request instance for AddDesktopPoolVolumes
2491
+ :type request: :class:`huaweicloudsdkworkspace.v2.AddDesktopPoolVolumesRequest`
2492
+ :rtype: :class:`huaweicloudsdkworkspace.v2.AddDesktopPoolVolumesResponse`
2493
+ """
2494
+ http_info = self._add_desktop_pool_volumes_http_info(request)
2495
+ return self._call_api(**http_info)
2496
+
2497
+ def add_desktop_pool_volumes_async_invoker(self, request):
2498
+ http_info = self._add_desktop_pool_volumes_http_info(request)
2499
+ return AsyncInvoker(self, http_info)
2500
+
2501
+ def _add_desktop_pool_volumes_http_info(self, request):
2502
+ http_info = {
2503
+ "method": "POST",
2504
+ "resource_path": "/v2/{project_id}/desktop-pools/{pool_id}/volumes/batch-add",
2505
+ "request_type": request.__class__.__name__,
2506
+ "response_type": "AddDesktopPoolVolumesResponse"
2507
+ }
2508
+
2509
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2510
+
2511
+ cname = None
2512
+
2513
+ collection_formats = {}
2514
+
2515
+ path_params = {}
2516
+ if 'pool_id' in local_var_params:
2517
+ path_params['pool_id'] = local_var_params['pool_id']
2518
+
2519
+ query_params = []
2520
+
2521
+ header_params = {}
2522
+ if 'service_transaction_id' in local_var_params:
2523
+ header_params['Service-Transaction-Id'] = local_var_params['service_transaction_id']
2524
+
2525
+ form_params = {}
2526
+
2527
+ body = None
2528
+ if 'body' in local_var_params:
2529
+ body = local_var_params['body']
2530
+ if isinstance(request, SdkStreamRequest):
2531
+ body = request.get_file_stream()
2532
+
2533
+ response_headers = []
2534
+
2535
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2536
+ ['application/json'])
2537
+
2538
+ auth_settings = []
2539
+
2540
+ http_info["cname"] = cname
2541
+ http_info["collection_formats"] = collection_formats
2542
+ http_info["path_params"] = path_params
2543
+ http_info["query_params"] = query_params
2544
+ http_info["header_params"] = header_params
2545
+ http_info["post_params"] = form_params
2546
+ http_info["body"] = body
2547
+ http_info["response_headers"] = response_headers
2548
+
2549
+ return http_info
2550
+
2551
+ def create_desktop_pool_async(self, request):
2552
+ """创建桌面池
2553
+
2554
+ 创建桌面池,可将此桌面池分配给用户、用户组,用户登录时会绑定其中一个桌面。
2555
+ 注:需通过开通委托功能接口先对云服务进行授权才可以使用该功能
2556
+
2557
+ Please refer to HUAWEI cloud API Explorer for details.
2558
+
2559
+
2560
+ :param request: Request instance for CreateDesktopPool
2561
+ :type request: :class:`huaweicloudsdkworkspace.v2.CreateDesktopPoolRequest`
2562
+ :rtype: :class:`huaweicloudsdkworkspace.v2.CreateDesktopPoolResponse`
2563
+ """
2564
+ http_info = self._create_desktop_pool_http_info(request)
2565
+ return self._call_api(**http_info)
2566
+
2567
+ def create_desktop_pool_async_invoker(self, request):
2568
+ http_info = self._create_desktop_pool_http_info(request)
2569
+ return AsyncInvoker(self, http_info)
2570
+
2571
+ def _create_desktop_pool_http_info(self, request):
2572
+ http_info = {
2573
+ "method": "POST",
2574
+ "resource_path": "/v2/{project_id}/desktop-pools",
2575
+ "request_type": request.__class__.__name__,
2576
+ "response_type": "CreateDesktopPoolResponse"
2577
+ }
2578
+
2579
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2580
+
2581
+ cname = None
2582
+
2583
+ collection_formats = {}
2584
+
2585
+ path_params = {}
2586
+
2587
+ query_params = []
2588
+
2589
+ header_params = {}
2590
+ if 'service_transaction_id' in local_var_params:
2591
+ header_params['Service-Transaction-Id'] = local_var_params['service_transaction_id']
2592
+
2593
+ form_params = {}
2594
+
2595
+ body = None
2596
+ if 'body' in local_var_params:
2597
+ body = local_var_params['body']
2598
+ if isinstance(request, SdkStreamRequest):
2599
+ body = request.get_file_stream()
2600
+
2601
+ response_headers = []
2602
+
2603
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2604
+ ['application/json'])
2605
+
2606
+ auth_settings = []
2607
+
2608
+ http_info["cname"] = cname
2609
+ http_info["collection_formats"] = collection_formats
2610
+ http_info["path_params"] = path_params
2611
+ http_info["query_params"] = query_params
2612
+ http_info["header_params"] = header_params
2613
+ http_info["post_params"] = form_params
2614
+ http_info["body"] = body
2615
+ http_info["response_headers"] = response_headers
2616
+
2617
+ return http_info
2618
+
2619
+ def create_desktop_pool_authorized_objects_async(self, request):
2620
+ """桌面池授权用户、用户组
2621
+
2622
+ 该接口用于桌面池授权用户、用户组。
2623
+
2624
+ Please refer to HUAWEI cloud API Explorer for details.
2625
+
2626
+
2627
+ :param request: Request instance for CreateDesktopPoolAuthorizedObjects
2628
+ :type request: :class:`huaweicloudsdkworkspace.v2.CreateDesktopPoolAuthorizedObjectsRequest`
2629
+ :rtype: :class:`huaweicloudsdkworkspace.v2.CreateDesktopPoolAuthorizedObjectsResponse`
2630
+ """
2631
+ http_info = self._create_desktop_pool_authorized_objects_http_info(request)
2632
+ return self._call_api(**http_info)
2633
+
2634
+ def create_desktop_pool_authorized_objects_async_invoker(self, request):
2635
+ http_info = self._create_desktop_pool_authorized_objects_http_info(request)
2636
+ return AsyncInvoker(self, http_info)
2637
+
2638
+ def _create_desktop_pool_authorized_objects_http_info(self, request):
2639
+ http_info = {
2640
+ "method": "POST",
2641
+ "resource_path": "/v2/{project_id}/desktop-pools/{pool_id}/users",
2642
+ "request_type": request.__class__.__name__,
2643
+ "response_type": "CreateDesktopPoolAuthorizedObjectsResponse"
2644
+ }
2645
+
2646
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2647
+
2648
+ cname = None
2649
+
2650
+ collection_formats = {}
2651
+
2652
+ path_params = {}
2653
+ if 'pool_id' in local_var_params:
2654
+ path_params['pool_id'] = local_var_params['pool_id']
2655
+
2656
+ query_params = []
2657
+
2658
+ header_params = {}
2659
+
2660
+ form_params = {}
2661
+
2662
+ body = None
2663
+ if 'body' in local_var_params:
2664
+ body = local_var_params['body']
2665
+ if isinstance(request, SdkStreamRequest):
2666
+ body = request.get_file_stream()
2667
+
2668
+ response_headers = []
2669
+
2670
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2671
+ ['application/json'])
2672
+
2673
+ auth_settings = []
2674
+
2675
+ http_info["cname"] = cname
2676
+ http_info["collection_formats"] = collection_formats
2677
+ http_info["path_params"] = path_params
2678
+ http_info["query_params"] = query_params
2679
+ http_info["header_params"] = header_params
2680
+ http_info["post_params"] = form_params
2681
+ http_info["body"] = body
2682
+ http_info["response_headers"] = response_headers
2683
+
2684
+ return http_info
2685
+
2686
+ def delete_desktop_pool_async(self, request):
2687
+ """删除桌面池
2688
+
2689
+ 当桌面池内无桌面时可删除桌面池,桌面池删除后无法恢复。
2690
+
2691
+ Please refer to HUAWEI cloud API Explorer for details.
2692
+
2693
+
2694
+ :param request: Request instance for DeleteDesktopPool
2695
+ :type request: :class:`huaweicloudsdkworkspace.v2.DeleteDesktopPoolRequest`
2696
+ :rtype: :class:`huaweicloudsdkworkspace.v2.DeleteDesktopPoolResponse`
2697
+ """
2698
+ http_info = self._delete_desktop_pool_http_info(request)
2699
+ return self._call_api(**http_info)
2700
+
2701
+ def delete_desktop_pool_async_invoker(self, request):
2702
+ http_info = self._delete_desktop_pool_http_info(request)
2703
+ return AsyncInvoker(self, http_info)
2704
+
2705
+ def _delete_desktop_pool_http_info(self, request):
2706
+ http_info = {
2707
+ "method": "DELETE",
2708
+ "resource_path": "/v2/{project_id}/desktop-pools/{pool_id}",
2709
+ "request_type": request.__class__.__name__,
2710
+ "response_type": "DeleteDesktopPoolResponse"
2711
+ }
2712
+
2713
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2714
+
2715
+ cname = None
2716
+
2717
+ collection_formats = {}
2718
+
2719
+ path_params = {}
2720
+ if 'pool_id' in local_var_params:
2721
+ path_params['pool_id'] = local_var_params['pool_id']
2722
+
2723
+ query_params = []
2724
+
2725
+ header_params = {}
2726
+
2727
+ form_params = {}
2728
+
2729
+ body = None
2730
+ if isinstance(request, SdkStreamRequest):
2731
+ body = request.get_file_stream()
2732
+
2733
+ response_headers = []
2734
+
2735
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2736
+ ['application/json'])
2737
+
2738
+ auth_settings = []
2739
+
2740
+ http_info["cname"] = cname
2741
+ http_info["collection_formats"] = collection_formats
2742
+ http_info["path_params"] = path_params
2743
+ http_info["query_params"] = query_params
2744
+ http_info["header_params"] = header_params
2745
+ http_info["post_params"] = form_params
2746
+ http_info["body"] = body
2747
+ http_info["response_headers"] = response_headers
2748
+
2749
+ return http_info
2750
+
2751
+ def delete_desktop_pool_volumes_async(self, request):
2752
+ """桌面池批量删除磁盘
2753
+
2754
+ 桌面池批量删除磁盘。
2755
+
2756
+ Please refer to HUAWEI cloud API Explorer for details.
2757
+
2758
+
2759
+ :param request: Request instance for DeleteDesktopPoolVolumes
2760
+ :type request: :class:`huaweicloudsdkworkspace.v2.DeleteDesktopPoolVolumesRequest`
2761
+ :rtype: :class:`huaweicloudsdkworkspace.v2.DeleteDesktopPoolVolumesResponse`
2762
+ """
2763
+ http_info = self._delete_desktop_pool_volumes_http_info(request)
2764
+ return self._call_api(**http_info)
2765
+
2766
+ def delete_desktop_pool_volumes_async_invoker(self, request):
2767
+ http_info = self._delete_desktop_pool_volumes_http_info(request)
2768
+ return AsyncInvoker(self, http_info)
2769
+
2770
+ def _delete_desktop_pool_volumes_http_info(self, request):
2771
+ http_info = {
2772
+ "method": "POST",
2773
+ "resource_path": "/v2/{project_id}/desktop-pools/{pool_id}/volumes/batch-delete",
2774
+ "request_type": request.__class__.__name__,
2775
+ "response_type": "DeleteDesktopPoolVolumesResponse"
2776
+ }
2777
+
2778
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2779
+
2780
+ cname = None
2781
+
2782
+ collection_formats = {}
2783
+
2784
+ path_params = {}
2785
+ if 'pool_id' in local_var_params:
2786
+ path_params['pool_id'] = local_var_params['pool_id']
2787
+
2788
+ query_params = []
2789
+
2790
+ header_params = {}
2791
+
2792
+ form_params = {}
2793
+
2794
+ body = None
2795
+ if 'body' in local_var_params:
2796
+ body = local_var_params['body']
2797
+ if isinstance(request, SdkStreamRequest):
2798
+ body = request.get_file_stream()
2799
+
2800
+ response_headers = []
2801
+
2802
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2803
+ ['application/json'])
2804
+
2805
+ auth_settings = []
2806
+
2807
+ http_info["cname"] = cname
2808
+ http_info["collection_formats"] = collection_formats
2809
+ http_info["path_params"] = path_params
2810
+ http_info["query_params"] = query_params
2811
+ http_info["header_params"] = header_params
2812
+ http_info["post_params"] = form_params
2813
+ http_info["body"] = body
2814
+ http_info["response_headers"] = response_headers
2815
+
2816
+ return http_info
2817
+
2818
+ def execute_desktop_pool_action_async(self, request):
2819
+ """操作桌面池
2820
+
2821
+ 操作桌面池,用于桌面池里面的桌面批量开机、关机、重启和休眠。
2822
+
2823
+ Please refer to HUAWEI cloud API Explorer for details.
2824
+
2825
+
2826
+ :param request: Request instance for ExecuteDesktopPoolAction
2827
+ :type request: :class:`huaweicloudsdkworkspace.v2.ExecuteDesktopPoolActionRequest`
2828
+ :rtype: :class:`huaweicloudsdkworkspace.v2.ExecuteDesktopPoolActionResponse`
2829
+ """
2830
+ http_info = self._execute_desktop_pool_action_http_info(request)
2831
+ return self._call_api(**http_info)
2832
+
2833
+ def execute_desktop_pool_action_async_invoker(self, request):
2834
+ http_info = self._execute_desktop_pool_action_http_info(request)
2835
+ return AsyncInvoker(self, http_info)
2836
+
2837
+ def _execute_desktop_pool_action_http_info(self, request):
2838
+ http_info = {
2839
+ "method": "POST",
2840
+ "resource_path": "/v2/{project_id}/desktop-pools/{pool_id}/action",
2841
+ "request_type": request.__class__.__name__,
2842
+ "response_type": "ExecuteDesktopPoolActionResponse"
2843
+ }
2844
+
2845
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2846
+
2847
+ cname = None
2848
+
2849
+ collection_formats = {}
2850
+
2851
+ path_params = {}
2852
+ if 'pool_id' in local_var_params:
2853
+ path_params['pool_id'] = local_var_params['pool_id']
2854
+
2855
+ query_params = []
2856
+
2857
+ header_params = {}
2858
+
2859
+ form_params = {}
2860
+
2861
+ body = None
2862
+ if 'body' in local_var_params:
2863
+ body = local_var_params['body']
2864
+ if isinstance(request, SdkStreamRequest):
2865
+ body = request.get_file_stream()
2866
+
2867
+ response_headers = []
2868
+
2869
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2870
+ ['application/json'])
2871
+
2872
+ auth_settings = []
2873
+
2874
+ http_info["cname"] = cname
2875
+ http_info["collection_formats"] = collection_formats
2876
+ http_info["path_params"] = path_params
2877
+ http_info["query_params"] = query_params
2878
+ http_info["header_params"] = header_params
2879
+ http_info["post_params"] = form_params
2880
+ http_info["body"] = body
2881
+ http_info["response_headers"] = response_headers
2882
+
2883
+ return http_info
2884
+
2885
+ def expand_desktop_pool_async(self, request):
2886
+ """扩容桌面池
2887
+
2888
+ 扩容桌面池。
2889
+
2890
+ Please refer to HUAWEI cloud API Explorer for details.
2891
+
2892
+
2893
+ :param request: Request instance for ExpandDesktopPool
2894
+ :type request: :class:`huaweicloudsdkworkspace.v2.ExpandDesktopPoolRequest`
2895
+ :rtype: :class:`huaweicloudsdkworkspace.v2.ExpandDesktopPoolResponse`
2896
+ """
2897
+ http_info = self._expand_desktop_pool_http_info(request)
2898
+ return self._call_api(**http_info)
2899
+
2900
+ def expand_desktop_pool_async_invoker(self, request):
2901
+ http_info = self._expand_desktop_pool_http_info(request)
2902
+ return AsyncInvoker(self, http_info)
2903
+
2904
+ def _expand_desktop_pool_http_info(self, request):
2905
+ http_info = {
2906
+ "method": "POST",
2907
+ "resource_path": "/v2/{project_id}/desktop-pools/{pool_id}/expand",
2908
+ "request_type": request.__class__.__name__,
2909
+ "response_type": "ExpandDesktopPoolResponse"
2910
+ }
2911
+
2912
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2913
+
2914
+ cname = None
2915
+
2916
+ collection_formats = {}
2917
+
2918
+ path_params = {}
2919
+ if 'pool_id' in local_var_params:
2920
+ path_params['pool_id'] = local_var_params['pool_id']
2921
+
2922
+ query_params = []
2923
+
2924
+ header_params = {}
2925
+ if 'service_transaction_id' in local_var_params:
2926
+ header_params['Service-Transaction-Id'] = local_var_params['service_transaction_id']
2927
+
2928
+ form_params = {}
2929
+
2930
+ body = None
2931
+ if 'body' in local_var_params:
2932
+ body = local_var_params['body']
2933
+ if isinstance(request, SdkStreamRequest):
2934
+ body = request.get_file_stream()
2935
+
2936
+ response_headers = []
2937
+
2938
+ header_params['Content-Type'] = http_utils.select_header_content_type(
2939
+ ['application/json'])
2940
+
2941
+ auth_settings = []
2942
+
2943
+ http_info["cname"] = cname
2944
+ http_info["collection_formats"] = collection_formats
2945
+ http_info["path_params"] = path_params
2946
+ http_info["query_params"] = query_params
2947
+ http_info["header_params"] = header_params
2948
+ http_info["post_params"] = form_params
2949
+ http_info["body"] = body
2950
+ http_info["response_headers"] = response_headers
2951
+
2952
+ return http_info
2953
+
2954
+ def expand_desktop_pool_volumes_async(self, request):
2955
+ """桌面池批量扩容磁盘
2956
+
2957
+ 桌面池批量扩容磁盘。
2958
+
2959
+ Please refer to HUAWEI cloud API Explorer for details.
2960
+
2961
+
2962
+ :param request: Request instance for ExpandDesktopPoolVolumes
2963
+ :type request: :class:`huaweicloudsdkworkspace.v2.ExpandDesktopPoolVolumesRequest`
2964
+ :rtype: :class:`huaweicloudsdkworkspace.v2.ExpandDesktopPoolVolumesResponse`
2965
+ """
2966
+ http_info = self._expand_desktop_pool_volumes_http_info(request)
2967
+ return self._call_api(**http_info)
2968
+
2969
+ def expand_desktop_pool_volumes_async_invoker(self, request):
2970
+ http_info = self._expand_desktop_pool_volumes_http_info(request)
2971
+ return AsyncInvoker(self, http_info)
2972
+
2973
+ def _expand_desktop_pool_volumes_http_info(self, request):
2974
+ http_info = {
2975
+ "method": "POST",
2976
+ "resource_path": "/v2/{project_id}/desktop-pools/{pool_id}/volumes/batch-expand",
2977
+ "request_type": request.__class__.__name__,
2978
+ "response_type": "ExpandDesktopPoolVolumesResponse"
2979
+ }
2980
+
2981
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
2982
+
2983
+ cname = None
2984
+
2985
+ collection_formats = {}
2986
+
2987
+ path_params = {}
2988
+ if 'pool_id' in local_var_params:
2989
+ path_params['pool_id'] = local_var_params['pool_id']
2990
+
2991
+ query_params = []
2992
+
2993
+ header_params = {}
2994
+ if 'service_transaction_id' in local_var_params:
2995
+ header_params['Service-Transaction-Id'] = local_var_params['service_transaction_id']
2996
+
2997
+ form_params = {}
2998
+
2999
+ body = None
3000
+ if 'body' in local_var_params:
3001
+ body = local_var_params['body']
3002
+ if isinstance(request, SdkStreamRequest):
3003
+ body = request.get_file_stream()
3004
+
3005
+ response_headers = []
3006
+
3007
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3008
+ ['application/json'])
3009
+
3010
+ auth_settings = []
3011
+
3012
+ http_info["cname"] = cname
3013
+ http_info["collection_formats"] = collection_formats
3014
+ http_info["path_params"] = path_params
3015
+ http_info["query_params"] = query_params
3016
+ http_info["header_params"] = header_params
3017
+ http_info["post_params"] = form_params
3018
+ http_info["body"] = body
3019
+ http_info["response_headers"] = response_headers
3020
+
3021
+ return http_info
3022
+
3023
+ def list_desktop_pool_authorized_objects_async(self, request):
3024
+ """查询桌面池授权的用户、用户组
3025
+
3026
+ 该接口用于查询指定桌面池授权的用户、用户组。
3027
+
3028
+ Please refer to HUAWEI cloud API Explorer for details.
3029
+
3030
+
3031
+ :param request: Request instance for ListDesktopPoolAuthorizedObjects
3032
+ :type request: :class:`huaweicloudsdkworkspace.v2.ListDesktopPoolAuthorizedObjectsRequest`
3033
+ :rtype: :class:`huaweicloudsdkworkspace.v2.ListDesktopPoolAuthorizedObjectsResponse`
3034
+ """
3035
+ http_info = self._list_desktop_pool_authorized_objects_http_info(request)
3036
+ return self._call_api(**http_info)
3037
+
3038
+ def list_desktop_pool_authorized_objects_async_invoker(self, request):
3039
+ http_info = self._list_desktop_pool_authorized_objects_http_info(request)
3040
+ return AsyncInvoker(self, http_info)
3041
+
3042
+ def _list_desktop_pool_authorized_objects_http_info(self, request):
3043
+ http_info = {
3044
+ "method": "GET",
3045
+ "resource_path": "/v2/{project_id}/desktop-pools/{pool_id}/users",
3046
+ "request_type": request.__class__.__name__,
3047
+ "response_type": "ListDesktopPoolAuthorizedObjectsResponse"
3048
+ }
3049
+
3050
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3051
+
3052
+ cname = None
3053
+
3054
+ collection_formats = {}
3055
+
3056
+ path_params = {}
3057
+ if 'pool_id' in local_var_params:
3058
+ path_params['pool_id'] = local_var_params['pool_id']
3059
+
3060
+ query_params = []
3061
+ if 'offset' in local_var_params:
3062
+ query_params.append(('offset', local_var_params['offset']))
3063
+ if 'limit' in local_var_params:
3064
+ query_params.append(('limit', local_var_params['limit']))
3065
+
3066
+ header_params = {}
3067
+
3068
+ form_params = {}
3069
+
3070
+ body = None
3071
+ if isinstance(request, SdkStreamRequest):
3072
+ body = request.get_file_stream()
3073
+
3074
+ response_headers = []
3075
+
3076
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3077
+ ['application/json'])
3078
+
3079
+ auth_settings = []
3080
+
3081
+ http_info["cname"] = cname
3082
+ http_info["collection_formats"] = collection_formats
3083
+ http_info["path_params"] = path_params
3084
+ http_info["query_params"] = query_params
3085
+ http_info["header_params"] = header_params
3086
+ http_info["post_params"] = form_params
3087
+ http_info["body"] = body
3088
+ http_info["response_headers"] = response_headers
3089
+
3090
+ return http_info
3091
+
3092
+ def list_desktop_pools_async(self, request):
3093
+ """查询桌面池列表
3094
+
3095
+ 该接口用于查询桌面池列表。
3096
+
3097
+ Please refer to HUAWEI cloud API Explorer for details.
3098
+
3099
+
3100
+ :param request: Request instance for ListDesktopPools
3101
+ :type request: :class:`huaweicloudsdkworkspace.v2.ListDesktopPoolsRequest`
3102
+ :rtype: :class:`huaweicloudsdkworkspace.v2.ListDesktopPoolsResponse`
3103
+ """
3104
+ http_info = self._list_desktop_pools_http_info(request)
3105
+ return self._call_api(**http_info)
3106
+
3107
+ def list_desktop_pools_async_invoker(self, request):
3108
+ http_info = self._list_desktop_pools_http_info(request)
3109
+ return AsyncInvoker(self, http_info)
3110
+
3111
+ def _list_desktop_pools_http_info(self, request):
3112
+ http_info = {
3113
+ "method": "GET",
3114
+ "resource_path": "/v2/{project_id}/desktop-pools",
3115
+ "request_type": request.__class__.__name__,
3116
+ "response_type": "ListDesktopPoolsResponse"
3117
+ }
3118
+
3119
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3120
+
3121
+ cname = None
3122
+
3123
+ collection_formats = {}
3124
+
3125
+ path_params = {}
3126
+
3127
+ query_params = []
3128
+ if 'name' in local_var_params:
3129
+ query_params.append(('name', local_var_params['name']))
3130
+ if 'type' in local_var_params:
3131
+ query_params.append(('type', local_var_params['type']))
3132
+ if 'enterprise_project_id' in local_var_params:
3133
+ query_params.append(('enterprise_project_id', local_var_params['enterprise_project_id']))
3134
+ if 'offset' in local_var_params:
3135
+ query_params.append(('offset', local_var_params['offset']))
3136
+ if 'limit' in local_var_params:
3137
+ query_params.append(('limit', local_var_params['limit']))
3138
+ if 'in_maintenance_mode' in local_var_params:
3139
+ query_params.append(('in_maintenance_mode', local_var_params['in_maintenance_mode']))
3140
+
3141
+ header_params = {}
3142
+
3143
+ form_params = {}
3144
+
3145
+ body = None
3146
+ if isinstance(request, SdkStreamRequest):
3147
+ body = request.get_file_stream()
3148
+
3149
+ response_headers = []
3150
+
3151
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3152
+ ['application/json'])
3153
+
3154
+ auth_settings = []
3155
+
3156
+ http_info["cname"] = cname
3157
+ http_info["collection_formats"] = collection_formats
3158
+ http_info["path_params"] = path_params
3159
+ http_info["query_params"] = query_params
3160
+ http_info["header_params"] = header_params
3161
+ http_info["post_params"] = form_params
3162
+ http_info["body"] = body
3163
+ http_info["response_headers"] = response_headers
3164
+
3165
+ return http_info
3166
+
3167
+ def list_pool_desktops_detail_async(self, request):
3168
+ """查询桌面池下的桌面信息
3169
+
3170
+ 该接口用于查询桌面池下的桌面信息。
3171
+
3172
+ Please refer to HUAWEI cloud API Explorer for details.
3173
+
3174
+
3175
+ :param request: Request instance for ListPoolDesktopsDetail
3176
+ :type request: :class:`huaweicloudsdkworkspace.v2.ListPoolDesktopsDetailRequest`
3177
+ :rtype: :class:`huaweicloudsdkworkspace.v2.ListPoolDesktopsDetailResponse`
3178
+ """
3179
+ http_info = self._list_pool_desktops_detail_http_info(request)
3180
+ return self._call_api(**http_info)
3181
+
3182
+ def list_pool_desktops_detail_async_invoker(self, request):
3183
+ http_info = self._list_pool_desktops_detail_http_info(request)
3184
+ return AsyncInvoker(self, http_info)
3185
+
3186
+ def _list_pool_desktops_detail_http_info(self, request):
3187
+ http_info = {
3188
+ "method": "GET",
3189
+ "resource_path": "/v2/{project_id}/desktop-pools/{pool_id}/desktops",
3190
+ "request_type": request.__class__.__name__,
3191
+ "response_type": "ListPoolDesktopsDetailResponse"
3192
+ }
3193
+
3194
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3195
+
3196
+ cname = None
3197
+
3198
+ collection_formats = {}
3199
+
3200
+ path_params = {}
3201
+ if 'pool_id' in local_var_params:
3202
+ path_params['pool_id'] = local_var_params['pool_id']
3203
+
3204
+ query_params = []
3205
+ if 'inconsistent_type' in local_var_params:
3206
+ query_params.append(('inconsistent_type', local_var_params['inconsistent_type']))
3207
+ if 'offset' in local_var_params:
3208
+ query_params.append(('offset', local_var_params['offset']))
3209
+ if 'limit' in local_var_params:
3210
+ query_params.append(('limit', local_var_params['limit']))
3211
+
3212
+ header_params = {}
3213
+
3214
+ form_params = {}
3215
+
3216
+ body = None
3217
+ if isinstance(request, SdkStreamRequest):
3218
+ body = request.get_file_stream()
3219
+
3220
+ response_headers = []
3221
+
3222
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3223
+ ['application/json'])
3224
+
3225
+ auth_settings = []
3226
+
3227
+ http_info["cname"] = cname
3228
+ http_info["collection_formats"] = collection_formats
3229
+ http_info["path_params"] = path_params
3230
+ http_info["query_params"] = query_params
3231
+ http_info["header_params"] = header_params
3232
+ http_info["post_params"] = form_params
3233
+ http_info["body"] = body
3234
+ http_info["response_headers"] = response_headers
3235
+
3236
+ return http_info
3237
+
3238
+ def rebuild_desktop_pool_async(self, request):
3239
+ """桌面池重建系统盘
3240
+
3241
+ 桌面池重建系统盘。
3242
+
3243
+ Please refer to HUAWEI cloud API Explorer for details.
3244
+
3245
+
3246
+ :param request: Request instance for RebuildDesktopPool
3247
+ :type request: :class:`huaweicloudsdkworkspace.v2.RebuildDesktopPoolRequest`
3248
+ :rtype: :class:`huaweicloudsdkworkspace.v2.RebuildDesktopPoolResponse`
3249
+ """
3250
+ http_info = self._rebuild_desktop_pool_http_info(request)
3251
+ return self._call_api(**http_info)
3252
+
3253
+ def rebuild_desktop_pool_async_invoker(self, request):
3254
+ http_info = self._rebuild_desktop_pool_http_info(request)
3255
+ return AsyncInvoker(self, http_info)
3256
+
3257
+ def _rebuild_desktop_pool_http_info(self, request):
3258
+ http_info = {
3259
+ "method": "POST",
3260
+ "resource_path": "/v2/{project_id}/desktop-pools/{pool_id}/rebuild",
3261
+ "request_type": request.__class__.__name__,
3262
+ "response_type": "RebuildDesktopPoolResponse"
3263
+ }
3264
+
3265
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3266
+
3267
+ cname = None
3268
+
3269
+ collection_formats = {}
3270
+
3271
+ path_params = {}
3272
+ if 'pool_id' in local_var_params:
3273
+ path_params['pool_id'] = local_var_params['pool_id']
3274
+
3275
+ query_params = []
3276
+
3277
+ header_params = {}
3278
+ if 'service_transaction_id' in local_var_params:
3279
+ header_params['Service-Transaction-Id'] = local_var_params['service_transaction_id']
3280
+
3281
+ form_params = {}
3282
+
3283
+ body = None
3284
+ if 'body' in local_var_params:
3285
+ body = local_var_params['body']
3286
+ if isinstance(request, SdkStreamRequest):
3287
+ body = request.get_file_stream()
3288
+
3289
+ response_headers = []
3290
+
3291
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3292
+ ['application/json'])
3293
+
3294
+ auth_settings = []
3295
+
3296
+ http_info["cname"] = cname
3297
+ http_info["collection_formats"] = collection_formats
3298
+ http_info["path_params"] = path_params
3299
+ http_info["query_params"] = query_params
3300
+ http_info["header_params"] = header_params
3301
+ http_info["post_params"] = form_params
3302
+ http_info["body"] = body
3303
+ http_info["response_headers"] = response_headers
3304
+
3305
+ return http_info
3306
+
3307
+ def resize_desktop_pool_async(self, request):
3308
+ """桌面池变更规格
3309
+
3310
+ 桌面池变更规格
3311
+
3312
+ Please refer to HUAWEI cloud API Explorer for details.
3313
+
3314
+
3315
+ :param request: Request instance for ResizeDesktopPool
3316
+ :type request: :class:`huaweicloudsdkworkspace.v2.ResizeDesktopPoolRequest`
3317
+ :rtype: :class:`huaweicloudsdkworkspace.v2.ResizeDesktopPoolResponse`
3318
+ """
3319
+ http_info = self._resize_desktop_pool_http_info(request)
3320
+ return self._call_api(**http_info)
3321
+
3322
+ def resize_desktop_pool_async_invoker(self, request):
3323
+ http_info = self._resize_desktop_pool_http_info(request)
3324
+ return AsyncInvoker(self, http_info)
3325
+
3326
+ def _resize_desktop_pool_http_info(self, request):
3327
+ http_info = {
3328
+ "method": "POST",
3329
+ "resource_path": "/v2/{project_id}/desktop-pools/{pool_id}/resize",
3330
+ "request_type": request.__class__.__name__,
3331
+ "response_type": "ResizeDesktopPoolResponse"
3332
+ }
3333
+
3334
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3335
+
3336
+ cname = None
3337
+
3338
+ collection_formats = {}
3339
+
3340
+ path_params = {}
3341
+ if 'pool_id' in local_var_params:
3342
+ path_params['pool_id'] = local_var_params['pool_id']
3343
+
3344
+ query_params = []
3345
+
3346
+ header_params = {}
3347
+ if 'service_transaction_id' in local_var_params:
3348
+ header_params['Service-Transaction-Id'] = local_var_params['service_transaction_id']
3349
+
3350
+ form_params = {}
3351
+
3352
+ body = None
3353
+ if 'body' in local_var_params:
3354
+ body = local_var_params['body']
3355
+ if isinstance(request, SdkStreamRequest):
3356
+ body = request.get_file_stream()
3357
+
3358
+ response_headers = []
3359
+
3360
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3361
+ ['application/json'])
3362
+
3363
+ auth_settings = []
3364
+
3365
+ http_info["cname"] = cname
3366
+ http_info["collection_formats"] = collection_formats
3367
+ http_info["path_params"] = path_params
3368
+ http_info["query_params"] = query_params
3369
+ http_info["header_params"] = header_params
3370
+ http_info["post_params"] = form_params
3371
+ http_info["body"] = body
3372
+ http_info["response_headers"] = response_headers
3373
+
3374
+ return http_info
3375
+
3376
+ def show_desktop_pool_detail_async(self, request):
3377
+ """查询桌面池详情
3378
+
3379
+ 指定桌面池Id查询详细信息。
3380
+
3381
+ Please refer to HUAWEI cloud API Explorer for details.
3382
+
3383
+
3384
+ :param request: Request instance for ShowDesktopPoolDetail
3385
+ :type request: :class:`huaweicloudsdkworkspace.v2.ShowDesktopPoolDetailRequest`
3386
+ :rtype: :class:`huaweicloudsdkworkspace.v2.ShowDesktopPoolDetailResponse`
3387
+ """
3388
+ http_info = self._show_desktop_pool_detail_http_info(request)
3389
+ return self._call_api(**http_info)
3390
+
3391
+ def show_desktop_pool_detail_async_invoker(self, request):
3392
+ http_info = self._show_desktop_pool_detail_http_info(request)
3393
+ return AsyncInvoker(self, http_info)
3394
+
3395
+ def _show_desktop_pool_detail_http_info(self, request):
3396
+ http_info = {
3397
+ "method": "GET",
3398
+ "resource_path": "/v2/{project_id}/desktop-pools/{pool_id}",
3399
+ "request_type": request.__class__.__name__,
3400
+ "response_type": "ShowDesktopPoolDetailResponse"
3401
+ }
3402
+
3403
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3404
+
3405
+ cname = None
3406
+
3407
+ collection_formats = {}
3408
+
3409
+ path_params = {}
3410
+ if 'pool_id' in local_var_params:
3411
+ path_params['pool_id'] = local_var_params['pool_id']
3412
+
3413
+ query_params = []
3414
+
3415
+ header_params = {}
3416
+
3417
+ form_params = {}
3418
+
3419
+ body = None
3420
+ if isinstance(request, SdkStreamRequest):
3421
+ body = request.get_file_stream()
3422
+
3423
+ response_headers = []
3424
+
3425
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3426
+ ['application/json'])
3427
+
3428
+ auth_settings = []
3429
+
3430
+ http_info["cname"] = cname
3431
+ http_info["collection_formats"] = collection_formats
3432
+ http_info["path_params"] = path_params
3433
+ http_info["query_params"] = query_params
3434
+ http_info["header_params"] = header_params
3435
+ http_info["post_params"] = form_params
3436
+ http_info["body"] = body
3437
+ http_info["response_headers"] = response_headers
3438
+
3439
+ return http_info
3440
+
3441
+ def update_desktop_pool_async(self, request):
3442
+ """修改桌面池属性
3443
+
3444
+ 修改桌面池属性。
3445
+
3446
+ Please refer to HUAWEI cloud API Explorer for details.
3447
+
3448
+
3449
+ :param request: Request instance for UpdateDesktopPool
3450
+ :type request: :class:`huaweicloudsdkworkspace.v2.UpdateDesktopPoolRequest`
3451
+ :rtype: :class:`huaweicloudsdkworkspace.v2.UpdateDesktopPoolResponse`
3452
+ """
3453
+ http_info = self._update_desktop_pool_http_info(request)
3454
+ return self._call_api(**http_info)
3455
+
3456
+ def update_desktop_pool_async_invoker(self, request):
3457
+ http_info = self._update_desktop_pool_http_info(request)
3458
+ return AsyncInvoker(self, http_info)
3459
+
3460
+ def _update_desktop_pool_http_info(self, request):
3461
+ http_info = {
3462
+ "method": "PUT",
3463
+ "resource_path": "/v2/{project_id}/desktop-pools/{pool_id}",
3464
+ "request_type": request.__class__.__name__,
3465
+ "response_type": "UpdateDesktopPoolResponse"
3466
+ }
3467
+
3468
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
3469
+
3470
+ cname = None
3471
+
3472
+ collection_formats = {}
3473
+
3474
+ path_params = {}
3475
+ if 'pool_id' in local_var_params:
3476
+ path_params['pool_id'] = local_var_params['pool_id']
3477
+
3478
+ query_params = []
3479
+
3480
+ header_params = {}
3481
+
3482
+ form_params = {}
3483
+
3484
+ body = None
3485
+ if 'body' in local_var_params:
3486
+ body = local_var_params['body']
3487
+ if isinstance(request, SdkStreamRequest):
3488
+ body = request.get_file_stream()
3489
+
3490
+ response_headers = []
3491
+
3492
+ header_params['Content-Type'] = http_utils.select_header_content_type(
3493
+ ['application/json'])
3494
+
3495
+ auth_settings = []
3496
+
3497
+ http_info["cname"] = cname
3498
+ http_info["collection_formats"] = collection_formats
3499
+ http_info["path_params"] = path_params
3500
+ http_info["query_params"] = query_params
3501
+ http_info["header_params"] = header_params
3502
+ http_info["post_params"] = form_params
3503
+ http_info["body"] = body
3504
+ http_info["response_headers"] = response_headers
3505
+
3506
+ return http_info
3507
+
2482
3508
  def list_unused_desktops_async(self, request):
2483
3509
  """查询在指定时间段未使用的桌面
2484
3510
 
@@ -6044,6 +7070,71 @@ class WorkspaceAsyncClient(Client):
6044
7070
 
6045
7071
  return http_info
6046
7072
 
7073
+ def batch_delete_user_async(self, request):
7074
+ """批量删除用户
7075
+
7076
+ 该接口用于批量删除桌面用户。
7077
+
7078
+ Please refer to HUAWEI cloud API Explorer for details.
7079
+
7080
+
7081
+ :param request: Request instance for BatchDeleteUser
7082
+ :type request: :class:`huaweicloudsdkworkspace.v2.BatchDeleteUserRequest`
7083
+ :rtype: :class:`huaweicloudsdkworkspace.v2.BatchDeleteUserResponse`
7084
+ """
7085
+ http_info = self._batch_delete_user_http_info(request)
7086
+ return self._call_api(**http_info)
7087
+
7088
+ def batch_delete_user_async_invoker(self, request):
7089
+ http_info = self._batch_delete_user_http_info(request)
7090
+ return AsyncInvoker(self, http_info)
7091
+
7092
+ def _batch_delete_user_http_info(self, request):
7093
+ http_info = {
7094
+ "method": "POST",
7095
+ "resource_path": "/v2/{project_id}/users/batch-delete",
7096
+ "request_type": request.__class__.__name__,
7097
+ "response_type": "BatchDeleteUserResponse"
7098
+ }
7099
+
7100
+ local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
7101
+
7102
+ cname = None
7103
+
7104
+ collection_formats = {}
7105
+
7106
+ path_params = {}
7107
+
7108
+ query_params = []
7109
+
7110
+ header_params = {}
7111
+
7112
+ form_params = {}
7113
+
7114
+ body = None
7115
+ if 'body' in local_var_params:
7116
+ body = local_var_params['body']
7117
+ if isinstance(request, SdkStreamRequest):
7118
+ body = request.get_file_stream()
7119
+
7120
+ response_headers = []
7121
+
7122
+ header_params['Content-Type'] = http_utils.select_header_content_type(
7123
+ ['application/json'])
7124
+
7125
+ auth_settings = []
7126
+
7127
+ http_info["cname"] = cname
7128
+ http_info["collection_formats"] = collection_formats
7129
+ http_info["path_params"] = path_params
7130
+ http_info["query_params"] = query_params
7131
+ http_info["header_params"] = header_params
7132
+ http_info["post_params"] = form_params
7133
+ http_info["body"] = body
7134
+ http_info["response_headers"] = response_headers
7135
+
7136
+ return http_info
7137
+
6047
7138
  def change_user_status_async(self, request):
6048
7139
  """操作用户
6049
7140