huaweicloudsdkas 3.1.164__py3-none-any.whl → 3.1.166__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 huaweicloudsdkas might be problematic. Click here for more details.
- huaweicloudsdkas/v1/__init__.py +15 -0
- huaweicloudsdkas/v1/as_async_client.py +333 -0
- huaweicloudsdkas/v1/as_client.py +333 -0
- huaweicloudsdkas/v1/model/__init__.py +15 -0
- huaweicloudsdkas/v1/model/close_warm_pool_request.py +114 -0
- huaweicloudsdkas/v1/model/close_warm_pool_response.py +85 -0
- huaweicloudsdkas/v1/model/list_warm_pool_instances_request.py +172 -0
- huaweicloudsdkas/v1/model/list_warm_pool_instances_response.py +141 -0
- huaweicloudsdkas/v1/model/put_warm_pool_option.py +173 -0
- huaweicloudsdkas/v1/model/put_warm_pool_request.py +139 -0
- huaweicloudsdkas/v1/model/put_warm_pool_response.py +85 -0
- huaweicloudsdkas/v1/model/show_warm_pool_request.py +114 -0
- huaweicloudsdkas/v1/model/show_warm_pool_response.py +112 -0
- huaweicloudsdkas/v1/model/update_instance_config.py +114 -0
- huaweicloudsdkas/v1/model/update_scaling_config_option.py +110 -0
- huaweicloudsdkas/v1/model/update_scaling_config_request.py +135 -0
- huaweicloudsdkas/v1/model/update_scaling_config_response.py +85 -0
- huaweicloudsdkas/v1/model/warm_pool_info.py +202 -0
- huaweicloudsdkas/v1/model/warm_pool_instance.py +202 -0
- {huaweicloudsdkas-3.1.164.dist-info → huaweicloudsdkas-3.1.166.dist-info}/METADATA +9 -10
- {huaweicloudsdkas-3.1.164.dist-info → huaweicloudsdkas-3.1.166.dist-info}/RECORD +23 -9
- {huaweicloudsdkas-3.1.164.dist-info → huaweicloudsdkas-3.1.166.dist-info}/WHEEL +1 -2
- huaweicloudsdkas-3.1.164.dist-info/top_level.txt +0 -1
- {huaweicloudsdkas-3.1.164.dist-info → huaweicloudsdkas-3.1.166.dist-info/licenses}/LICENSE +0 -0
huaweicloudsdkas/v1/as_client.py
CHANGED
|
@@ -762,6 +762,71 @@ class AsClient(Client):
|
|
|
762
762
|
|
|
763
763
|
return http_info
|
|
764
764
|
|
|
765
|
+
def close_warm_pool(self, request):
|
|
766
|
+
r"""关闭暖池
|
|
767
|
+
|
|
768
|
+
关闭伸缩组的暖池
|
|
769
|
+
|
|
770
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
771
|
+
|
|
772
|
+
:param request: Request instance for CloseWarmPool
|
|
773
|
+
:type request: :class:`huaweicloudsdkas.v1.CloseWarmPoolRequest`
|
|
774
|
+
:rtype: :class:`huaweicloudsdkas.v1.CloseWarmPoolResponse`
|
|
775
|
+
"""
|
|
776
|
+
http_info = self._close_warm_pool_http_info(request)
|
|
777
|
+
return self._call_api(**http_info)
|
|
778
|
+
|
|
779
|
+
def close_warm_pool_invoker(self, request):
|
|
780
|
+
http_info = self._close_warm_pool_http_info(request)
|
|
781
|
+
return SyncInvoker(self, http_info)
|
|
782
|
+
|
|
783
|
+
@classmethod
|
|
784
|
+
def _close_warm_pool_http_info(cls, request):
|
|
785
|
+
http_info = {
|
|
786
|
+
"method": "DELETE",
|
|
787
|
+
"resource_path": "/autoscaling-api/{project_id}/scaling-groups/{scaling_group_id}/warm-pool",
|
|
788
|
+
"request_type": request.__class__.__name__,
|
|
789
|
+
"response_type": "CloseWarmPoolResponse"
|
|
790
|
+
}
|
|
791
|
+
|
|
792
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
793
|
+
|
|
794
|
+
cname = None
|
|
795
|
+
|
|
796
|
+
collection_formats = {}
|
|
797
|
+
|
|
798
|
+
path_params = {}
|
|
799
|
+
if 'scaling_group_id' in local_var_params:
|
|
800
|
+
path_params['scaling_group_id'] = local_var_params['scaling_group_id']
|
|
801
|
+
|
|
802
|
+
query_params = []
|
|
803
|
+
|
|
804
|
+
header_params = {}
|
|
805
|
+
|
|
806
|
+
form_params = {}
|
|
807
|
+
|
|
808
|
+
body = None
|
|
809
|
+
if isinstance(request, SdkStreamRequest):
|
|
810
|
+
body = request.get_file_stream()
|
|
811
|
+
|
|
812
|
+
response_headers = []
|
|
813
|
+
|
|
814
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
815
|
+
['application/json'])
|
|
816
|
+
|
|
817
|
+
auth_settings = []
|
|
818
|
+
|
|
819
|
+
http_info["cname"] = cname
|
|
820
|
+
http_info["collection_formats"] = collection_formats
|
|
821
|
+
http_info["path_params"] = path_params
|
|
822
|
+
http_info["query_params"] = query_params
|
|
823
|
+
http_info["header_params"] = header_params
|
|
824
|
+
http_info["post_params"] = form_params
|
|
825
|
+
http_info["body"] = body
|
|
826
|
+
http_info["response_headers"] = response_headers
|
|
827
|
+
|
|
828
|
+
return http_info
|
|
829
|
+
|
|
765
830
|
def create_group_scheduled_task(self, request):
|
|
766
831
|
r"""创建计划任务
|
|
767
832
|
|
|
@@ -2822,6 +2887,75 @@ class AsClient(Client):
|
|
|
2822
2887
|
|
|
2823
2888
|
return http_info
|
|
2824
2889
|
|
|
2890
|
+
def list_warm_pool_instances(self, request):
|
|
2891
|
+
r"""查询暖池内实例信息
|
|
2892
|
+
|
|
2893
|
+
查询暖池内实例信息
|
|
2894
|
+
|
|
2895
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
2896
|
+
|
|
2897
|
+
:param request: Request instance for ListWarmPoolInstances
|
|
2898
|
+
:type request: :class:`huaweicloudsdkas.v1.ListWarmPoolInstancesRequest`
|
|
2899
|
+
:rtype: :class:`huaweicloudsdkas.v1.ListWarmPoolInstancesResponse`
|
|
2900
|
+
"""
|
|
2901
|
+
http_info = self._list_warm_pool_instances_http_info(request)
|
|
2902
|
+
return self._call_api(**http_info)
|
|
2903
|
+
|
|
2904
|
+
def list_warm_pool_instances_invoker(self, request):
|
|
2905
|
+
http_info = self._list_warm_pool_instances_http_info(request)
|
|
2906
|
+
return SyncInvoker(self, http_info)
|
|
2907
|
+
|
|
2908
|
+
@classmethod
|
|
2909
|
+
def _list_warm_pool_instances_http_info(cls, request):
|
|
2910
|
+
http_info = {
|
|
2911
|
+
"method": "GET",
|
|
2912
|
+
"resource_path": "/autoscaling-api/{project_id}/scaling-groups/{scaling_group_id}/warm-pool-instances",
|
|
2913
|
+
"request_type": request.__class__.__name__,
|
|
2914
|
+
"response_type": "ListWarmPoolInstancesResponse"
|
|
2915
|
+
}
|
|
2916
|
+
|
|
2917
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
2918
|
+
|
|
2919
|
+
cname = None
|
|
2920
|
+
|
|
2921
|
+
collection_formats = {}
|
|
2922
|
+
|
|
2923
|
+
path_params = {}
|
|
2924
|
+
if 'scaling_group_id' in local_var_params:
|
|
2925
|
+
path_params['scaling_group_id'] = local_var_params['scaling_group_id']
|
|
2926
|
+
|
|
2927
|
+
query_params = []
|
|
2928
|
+
if 'limit' in local_var_params:
|
|
2929
|
+
query_params.append(('limit', local_var_params['limit']))
|
|
2930
|
+
if 'marker' in local_var_params:
|
|
2931
|
+
query_params.append(('marker', local_var_params['marker']))
|
|
2932
|
+
|
|
2933
|
+
header_params = {}
|
|
2934
|
+
|
|
2935
|
+
form_params = {}
|
|
2936
|
+
|
|
2937
|
+
body = None
|
|
2938
|
+
if isinstance(request, SdkStreamRequest):
|
|
2939
|
+
body = request.get_file_stream()
|
|
2940
|
+
|
|
2941
|
+
response_headers = []
|
|
2942
|
+
|
|
2943
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
2944
|
+
['application/json'])
|
|
2945
|
+
|
|
2946
|
+
auth_settings = []
|
|
2947
|
+
|
|
2948
|
+
http_info["cname"] = cname
|
|
2949
|
+
http_info["collection_formats"] = collection_formats
|
|
2950
|
+
http_info["path_params"] = path_params
|
|
2951
|
+
http_info["query_params"] = query_params
|
|
2952
|
+
http_info["header_params"] = header_params
|
|
2953
|
+
http_info["post_params"] = form_params
|
|
2954
|
+
http_info["body"] = body
|
|
2955
|
+
http_info["response_headers"] = response_headers
|
|
2956
|
+
|
|
2957
|
+
return http_info
|
|
2958
|
+
|
|
2825
2959
|
def pause_scaling_group(self, request):
|
|
2826
2960
|
r"""停止弹性伸缩组
|
|
2827
2961
|
|
|
@@ -2956,6 +3090,73 @@ class AsClient(Client):
|
|
|
2956
3090
|
|
|
2957
3091
|
return http_info
|
|
2958
3092
|
|
|
3093
|
+
def put_warm_pool(self, request):
|
|
3094
|
+
r"""开启暖池
|
|
3095
|
+
|
|
3096
|
+
开启并修改暖池参数
|
|
3097
|
+
|
|
3098
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
3099
|
+
|
|
3100
|
+
:param request: Request instance for PutWarmPool
|
|
3101
|
+
:type request: :class:`huaweicloudsdkas.v1.PutWarmPoolRequest`
|
|
3102
|
+
:rtype: :class:`huaweicloudsdkas.v1.PutWarmPoolResponse`
|
|
3103
|
+
"""
|
|
3104
|
+
http_info = self._put_warm_pool_http_info(request)
|
|
3105
|
+
return self._call_api(**http_info)
|
|
3106
|
+
|
|
3107
|
+
def put_warm_pool_invoker(self, request):
|
|
3108
|
+
http_info = self._put_warm_pool_http_info(request)
|
|
3109
|
+
return SyncInvoker(self, http_info)
|
|
3110
|
+
|
|
3111
|
+
@classmethod
|
|
3112
|
+
def _put_warm_pool_http_info(cls, request):
|
|
3113
|
+
http_info = {
|
|
3114
|
+
"method": "PUT",
|
|
3115
|
+
"resource_path": "/autoscaling-api/{project_id}/scaling-groups/{scaling_group_id}/warm-pool",
|
|
3116
|
+
"request_type": request.__class__.__name__,
|
|
3117
|
+
"response_type": "PutWarmPoolResponse"
|
|
3118
|
+
}
|
|
3119
|
+
|
|
3120
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
3121
|
+
|
|
3122
|
+
cname = None
|
|
3123
|
+
|
|
3124
|
+
collection_formats = {}
|
|
3125
|
+
|
|
3126
|
+
path_params = {}
|
|
3127
|
+
if 'scaling_group_id' in local_var_params:
|
|
3128
|
+
path_params['scaling_group_id'] = local_var_params['scaling_group_id']
|
|
3129
|
+
|
|
3130
|
+
query_params = []
|
|
3131
|
+
|
|
3132
|
+
header_params = {}
|
|
3133
|
+
|
|
3134
|
+
form_params = {}
|
|
3135
|
+
|
|
3136
|
+
body = None
|
|
3137
|
+
if 'body' in local_var_params:
|
|
3138
|
+
body = local_var_params['body']
|
|
3139
|
+
if isinstance(request, SdkStreamRequest):
|
|
3140
|
+
body = request.get_file_stream()
|
|
3141
|
+
|
|
3142
|
+
response_headers = []
|
|
3143
|
+
|
|
3144
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
3145
|
+
['application/json;charset=UTF-8'])
|
|
3146
|
+
|
|
3147
|
+
auth_settings = []
|
|
3148
|
+
|
|
3149
|
+
http_info["cname"] = cname
|
|
3150
|
+
http_info["collection_formats"] = collection_formats
|
|
3151
|
+
http_info["path_params"] = path_params
|
|
3152
|
+
http_info["query_params"] = query_params
|
|
3153
|
+
http_info["header_params"] = header_params
|
|
3154
|
+
http_info["post_params"] = form_params
|
|
3155
|
+
http_info["body"] = body
|
|
3156
|
+
http_info["response_headers"] = response_headers
|
|
3157
|
+
|
|
3158
|
+
return http_info
|
|
3159
|
+
|
|
2959
3160
|
def resume_scaling_group(self, request):
|
|
2960
3161
|
r"""启用弹性伸缩组
|
|
2961
3162
|
|
|
@@ -3480,6 +3681,71 @@ class AsClient(Client):
|
|
|
3480
3681
|
|
|
3481
3682
|
return http_info
|
|
3482
3683
|
|
|
3684
|
+
def show_warm_pool(self, request):
|
|
3685
|
+
r"""查询暖池信息
|
|
3686
|
+
|
|
3687
|
+
查询暖池信息
|
|
3688
|
+
|
|
3689
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
3690
|
+
|
|
3691
|
+
:param request: Request instance for ShowWarmPool
|
|
3692
|
+
:type request: :class:`huaweicloudsdkas.v1.ShowWarmPoolRequest`
|
|
3693
|
+
:rtype: :class:`huaweicloudsdkas.v1.ShowWarmPoolResponse`
|
|
3694
|
+
"""
|
|
3695
|
+
http_info = self._show_warm_pool_http_info(request)
|
|
3696
|
+
return self._call_api(**http_info)
|
|
3697
|
+
|
|
3698
|
+
def show_warm_pool_invoker(self, request):
|
|
3699
|
+
http_info = self._show_warm_pool_http_info(request)
|
|
3700
|
+
return SyncInvoker(self, http_info)
|
|
3701
|
+
|
|
3702
|
+
@classmethod
|
|
3703
|
+
def _show_warm_pool_http_info(cls, request):
|
|
3704
|
+
http_info = {
|
|
3705
|
+
"method": "GET",
|
|
3706
|
+
"resource_path": "/autoscaling-api/{project_id}/scaling-groups/{scaling_group_id}/warm-pool",
|
|
3707
|
+
"request_type": request.__class__.__name__,
|
|
3708
|
+
"response_type": "ShowWarmPoolResponse"
|
|
3709
|
+
}
|
|
3710
|
+
|
|
3711
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
3712
|
+
|
|
3713
|
+
cname = None
|
|
3714
|
+
|
|
3715
|
+
collection_formats = {}
|
|
3716
|
+
|
|
3717
|
+
path_params = {}
|
|
3718
|
+
if 'scaling_group_id' in local_var_params:
|
|
3719
|
+
path_params['scaling_group_id'] = local_var_params['scaling_group_id']
|
|
3720
|
+
|
|
3721
|
+
query_params = []
|
|
3722
|
+
|
|
3723
|
+
header_params = {}
|
|
3724
|
+
|
|
3725
|
+
form_params = {}
|
|
3726
|
+
|
|
3727
|
+
body = None
|
|
3728
|
+
if isinstance(request, SdkStreamRequest):
|
|
3729
|
+
body = request.get_file_stream()
|
|
3730
|
+
|
|
3731
|
+
response_headers = []
|
|
3732
|
+
|
|
3733
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
3734
|
+
['application/json'])
|
|
3735
|
+
|
|
3736
|
+
auth_settings = []
|
|
3737
|
+
|
|
3738
|
+
http_info["cname"] = cname
|
|
3739
|
+
http_info["collection_formats"] = collection_formats
|
|
3740
|
+
http_info["path_params"] = path_params
|
|
3741
|
+
http_info["query_params"] = query_params
|
|
3742
|
+
http_info["header_params"] = header_params
|
|
3743
|
+
http_info["post_params"] = form_params
|
|
3744
|
+
http_info["body"] = body
|
|
3745
|
+
http_info["response_headers"] = response_headers
|
|
3746
|
+
|
|
3747
|
+
return http_info
|
|
3748
|
+
|
|
3483
3749
|
def update_group_scheduled_task(self, request):
|
|
3484
3750
|
r"""更新计划任务
|
|
3485
3751
|
|
|
@@ -3618,6 +3884,73 @@ class AsClient(Client):
|
|
|
3618
3884
|
|
|
3619
3885
|
return http_info
|
|
3620
3886
|
|
|
3887
|
+
def update_scaling_config(self, request):
|
|
3888
|
+
r"""修改伸缩配置
|
|
3889
|
+
|
|
3890
|
+
修改伸缩配置
|
|
3891
|
+
|
|
3892
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
3893
|
+
|
|
3894
|
+
:param request: Request instance for UpdateScalingConfig
|
|
3895
|
+
:type request: :class:`huaweicloudsdkas.v1.UpdateScalingConfigRequest`
|
|
3896
|
+
:rtype: :class:`huaweicloudsdkas.v1.UpdateScalingConfigResponse`
|
|
3897
|
+
"""
|
|
3898
|
+
http_info = self._update_scaling_config_http_info(request)
|
|
3899
|
+
return self._call_api(**http_info)
|
|
3900
|
+
|
|
3901
|
+
def update_scaling_config_invoker(self, request):
|
|
3902
|
+
http_info = self._update_scaling_config_http_info(request)
|
|
3903
|
+
return SyncInvoker(self, http_info)
|
|
3904
|
+
|
|
3905
|
+
@classmethod
|
|
3906
|
+
def _update_scaling_config_http_info(cls, request):
|
|
3907
|
+
http_info = {
|
|
3908
|
+
"method": "PUT",
|
|
3909
|
+
"resource_path": "/autoscaling-api/v1/{project_id}/scaling_configuration/{scaling_configuration_id}",
|
|
3910
|
+
"request_type": request.__class__.__name__,
|
|
3911
|
+
"response_type": "UpdateScalingConfigResponse"
|
|
3912
|
+
}
|
|
3913
|
+
|
|
3914
|
+
local_var_params = {attr: getattr(request, attr) for attr in request.attribute_map if hasattr(request, attr)}
|
|
3915
|
+
|
|
3916
|
+
cname = None
|
|
3917
|
+
|
|
3918
|
+
collection_formats = {}
|
|
3919
|
+
|
|
3920
|
+
path_params = {}
|
|
3921
|
+
if 'scaling_configuration_id' in local_var_params:
|
|
3922
|
+
path_params['scaling_configuration_id'] = local_var_params['scaling_configuration_id']
|
|
3923
|
+
|
|
3924
|
+
query_params = []
|
|
3925
|
+
|
|
3926
|
+
header_params = {}
|
|
3927
|
+
|
|
3928
|
+
form_params = {}
|
|
3929
|
+
|
|
3930
|
+
body = None
|
|
3931
|
+
if 'body' in local_var_params:
|
|
3932
|
+
body = local_var_params['body']
|
|
3933
|
+
if isinstance(request, SdkStreamRequest):
|
|
3934
|
+
body = request.get_file_stream()
|
|
3935
|
+
|
|
3936
|
+
response_headers = []
|
|
3937
|
+
|
|
3938
|
+
header_params['Content-Type'] = http_utils.select_header_content_type(
|
|
3939
|
+
['application/json;charset=UTF-8'])
|
|
3940
|
+
|
|
3941
|
+
auth_settings = []
|
|
3942
|
+
|
|
3943
|
+
http_info["cname"] = cname
|
|
3944
|
+
http_info["collection_formats"] = collection_formats
|
|
3945
|
+
http_info["path_params"] = path_params
|
|
3946
|
+
http_info["query_params"] = query_params
|
|
3947
|
+
http_info["header_params"] = header_params
|
|
3948
|
+
http_info["post_params"] = form_params
|
|
3949
|
+
http_info["body"] = body
|
|
3950
|
+
http_info["response_headers"] = response_headers
|
|
3951
|
+
|
|
3952
|
+
return http_info
|
|
3953
|
+
|
|
3621
3954
|
def update_scaling_group(self, request):
|
|
3622
3955
|
r"""修改弹性伸缩组
|
|
3623
3956
|
|
|
@@ -41,6 +41,8 @@ from huaweicloudsdkas.v1.model.batch_unprotect_scaling_instances_response import
|
|
|
41
41
|
from huaweicloudsdkas.v1.model.batch_unset_scaling_instances_stantby_request import BatchUnsetScalingInstancesStantbyRequest
|
|
42
42
|
from huaweicloudsdkas.v1.model.batch_unset_scaling_instances_stantby_response import BatchUnsetScalingInstancesStantbyResponse
|
|
43
43
|
from huaweicloudsdkas.v1.model.callback_life_cycle_hook_option import CallbackLifeCycleHookOption
|
|
44
|
+
from huaweicloudsdkas.v1.model.close_warm_pool_request import CloseWarmPoolRequest
|
|
45
|
+
from huaweicloudsdkas.v1.model.close_warm_pool_response import CloseWarmPoolResponse
|
|
44
46
|
from huaweicloudsdkas.v1.model.create_group_scheduled_task_request import CreateGroupScheduledTaskRequest
|
|
45
47
|
from huaweicloudsdkas.v1.model.create_group_scheduled_task_response import CreateGroupScheduledTaskResponse
|
|
46
48
|
from huaweicloudsdkas.v1.model.create_life_cycle_hook_option import CreateLifeCycleHookOption
|
|
@@ -136,6 +138,8 @@ from huaweicloudsdkas.v1.model.list_scaling_tag_infos_by_tenant_id_request impor
|
|
|
136
138
|
from huaweicloudsdkas.v1.model.list_scaling_tag_infos_by_tenant_id_response import ListScalingTagInfosByTenantIdResponse
|
|
137
139
|
from huaweicloudsdkas.v1.model.list_scaling_v2_policies_request import ListScalingV2PoliciesRequest
|
|
138
140
|
from huaweicloudsdkas.v1.model.list_scaling_v2_policies_response import ListScalingV2PoliciesResponse
|
|
141
|
+
from huaweicloudsdkas.v1.model.list_warm_pool_instances_request import ListWarmPoolInstancesRequest
|
|
142
|
+
from huaweicloudsdkas.v1.model.list_warm_pool_instances_response import ListWarmPoolInstancesResponse
|
|
139
143
|
from huaweicloudsdkas.v1.model.matches import Matches
|
|
140
144
|
from huaweicloudsdkas.v1.model.meta_data import MetaData
|
|
141
145
|
from huaweicloudsdkas.v1.model.modify_lb import ModifyLb
|
|
@@ -154,6 +158,9 @@ from huaweicloudsdkas.v1.model.policy_instance_quotas import PolicyInstanceQuota
|
|
|
154
158
|
from huaweicloudsdkas.v1.model.policy_instance_resources import PolicyInstanceResources
|
|
155
159
|
from huaweicloudsdkas.v1.model.public_ip import PublicIp
|
|
156
160
|
from huaweicloudsdkas.v1.model.publicip_result import PublicipResult
|
|
161
|
+
from huaweicloudsdkas.v1.model.put_warm_pool_option import PutWarmPoolOption
|
|
162
|
+
from huaweicloudsdkas.v1.model.put_warm_pool_request import PutWarmPoolRequest
|
|
163
|
+
from huaweicloudsdkas.v1.model.put_warm_pool_response import PutWarmPoolResponse
|
|
157
164
|
from huaweicloudsdkas.v1.model.query_tags_option import QueryTagsOption
|
|
158
165
|
from huaweicloudsdkas.v1.model.resource_tags import ResourceTags
|
|
159
166
|
from huaweicloudsdkas.v1.model.resources import Resources
|
|
@@ -199,14 +206,20 @@ from huaweicloudsdkas.v1.model.show_scaling_policy_request import ShowScalingPol
|
|
|
199
206
|
from huaweicloudsdkas.v1.model.show_scaling_policy_response import ShowScalingPolicyResponse
|
|
200
207
|
from huaweicloudsdkas.v1.model.show_scaling_v2_policy_request import ShowScalingV2PolicyRequest
|
|
201
208
|
from huaweicloudsdkas.v1.model.show_scaling_v2_policy_response import ShowScalingV2PolicyResponse
|
|
209
|
+
from huaweicloudsdkas.v1.model.show_warm_pool_request import ShowWarmPoolRequest
|
|
210
|
+
from huaweicloudsdkas.v1.model.show_warm_pool_response import ShowWarmPoolResponse
|
|
202
211
|
from huaweicloudsdkas.v1.model.tags_multi_value import TagsMultiValue
|
|
203
212
|
from huaweicloudsdkas.v1.model.tags_single_value import TagsSingleValue
|
|
204
213
|
from huaweicloudsdkas.v1.model.topics import Topics
|
|
205
214
|
from huaweicloudsdkas.v1.model.update_group_scheduled_task_request import UpdateGroupScheduledTaskRequest
|
|
206
215
|
from huaweicloudsdkas.v1.model.update_group_scheduled_task_response import UpdateGroupScheduledTaskResponse
|
|
216
|
+
from huaweicloudsdkas.v1.model.update_instance_config import UpdateInstanceConfig
|
|
207
217
|
from huaweicloudsdkas.v1.model.update_life_cycle_hook_option import UpdateLifeCycleHookOption
|
|
208
218
|
from huaweicloudsdkas.v1.model.update_life_cycle_hook_request import UpdateLifeCycleHookRequest
|
|
209
219
|
from huaweicloudsdkas.v1.model.update_life_cycle_hook_response import UpdateLifeCycleHookResponse
|
|
220
|
+
from huaweicloudsdkas.v1.model.update_scaling_config_option import UpdateScalingConfigOption
|
|
221
|
+
from huaweicloudsdkas.v1.model.update_scaling_config_request import UpdateScalingConfigRequest
|
|
222
|
+
from huaweicloudsdkas.v1.model.update_scaling_config_response import UpdateScalingConfigResponse
|
|
210
223
|
from huaweicloudsdkas.v1.model.update_scaling_group_option import UpdateScalingGroupOption
|
|
211
224
|
from huaweicloudsdkas.v1.model.update_scaling_group_request import UpdateScalingGroupRequest
|
|
212
225
|
from huaweicloudsdkas.v1.model.update_scaling_group_response import UpdateScalingGroupResponse
|
|
@@ -219,3 +232,5 @@ from huaweicloudsdkas.v1.model.update_scaling_v2_policy_response import UpdateSc
|
|
|
219
232
|
from huaweicloudsdkas.v1.model.update_scheduled_task_option import UpdateScheduledTaskOption
|
|
220
233
|
from huaweicloudsdkas.v1.model.version_info import VersionInfo
|
|
221
234
|
from huaweicloudsdkas.v1.model.vm_meta_data import VmMetaData
|
|
235
|
+
from huaweicloudsdkas.v1.model.warm_pool_info import WarmPoolInfo
|
|
236
|
+
from huaweicloudsdkas.v1.model.warm_pool_instance import WarmPoolInstance
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class CloseWarmPoolRequest:
|
|
9
|
+
|
|
10
|
+
"""
|
|
11
|
+
Attributes:
|
|
12
|
+
openapi_types (dict): The key is attribute name
|
|
13
|
+
and the value is attribute type.
|
|
14
|
+
attribute_map (dict): The key is attribute name
|
|
15
|
+
and the value is json key in definition.
|
|
16
|
+
"""
|
|
17
|
+
sensitive_list = []
|
|
18
|
+
|
|
19
|
+
openapi_types = {
|
|
20
|
+
'scaling_group_id': 'str'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'scaling_group_id': 'scaling_group_id'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, scaling_group_id=None):
|
|
28
|
+
r"""CloseWarmPoolRequest
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param scaling_group_id: 伸缩组ID
|
|
33
|
+
:type scaling_group_id: str
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._scaling_group_id = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
self.scaling_group_id = scaling_group_id
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def scaling_group_id(self):
|
|
45
|
+
r"""Gets the scaling_group_id of this CloseWarmPoolRequest.
|
|
46
|
+
|
|
47
|
+
伸缩组ID
|
|
48
|
+
|
|
49
|
+
:return: The scaling_group_id of this CloseWarmPoolRequest.
|
|
50
|
+
:rtype: str
|
|
51
|
+
"""
|
|
52
|
+
return self._scaling_group_id
|
|
53
|
+
|
|
54
|
+
@scaling_group_id.setter
|
|
55
|
+
def scaling_group_id(self, scaling_group_id):
|
|
56
|
+
r"""Sets the scaling_group_id of this CloseWarmPoolRequest.
|
|
57
|
+
|
|
58
|
+
伸缩组ID
|
|
59
|
+
|
|
60
|
+
:param scaling_group_id: The scaling_group_id of this CloseWarmPoolRequest.
|
|
61
|
+
:type scaling_group_id: str
|
|
62
|
+
"""
|
|
63
|
+
self._scaling_group_id = scaling_group_id
|
|
64
|
+
|
|
65
|
+
def to_dict(self):
|
|
66
|
+
"""Returns the model properties as a dict"""
|
|
67
|
+
result = {}
|
|
68
|
+
|
|
69
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
70
|
+
value = getattr(self, attr)
|
|
71
|
+
if isinstance(value, list):
|
|
72
|
+
result[attr] = list(map(
|
|
73
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
74
|
+
value
|
|
75
|
+
))
|
|
76
|
+
elif hasattr(value, "to_dict"):
|
|
77
|
+
result[attr] = value.to_dict()
|
|
78
|
+
elif isinstance(value, dict):
|
|
79
|
+
result[attr] = dict(map(
|
|
80
|
+
lambda item: (item[0], item[1].to_dict())
|
|
81
|
+
if hasattr(item[1], "to_dict") else item,
|
|
82
|
+
value.items()
|
|
83
|
+
))
|
|
84
|
+
else:
|
|
85
|
+
if attr in self.sensitive_list:
|
|
86
|
+
result[attr] = "****"
|
|
87
|
+
else:
|
|
88
|
+
result[attr] = value
|
|
89
|
+
|
|
90
|
+
return result
|
|
91
|
+
|
|
92
|
+
def to_str(self):
|
|
93
|
+
"""Returns the string representation of the model"""
|
|
94
|
+
import simplejson as json
|
|
95
|
+
if six.PY2:
|
|
96
|
+
import sys
|
|
97
|
+
reload(sys)
|
|
98
|
+
sys.setdefaultencoding("utf-8")
|
|
99
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
100
|
+
|
|
101
|
+
def __repr__(self):
|
|
102
|
+
"""For `print`"""
|
|
103
|
+
return self.to_str()
|
|
104
|
+
|
|
105
|
+
def __eq__(self, other):
|
|
106
|
+
"""Returns true if both objects are equal"""
|
|
107
|
+
if not isinstance(other, CloseWarmPoolRequest):
|
|
108
|
+
return False
|
|
109
|
+
|
|
110
|
+
return self.__dict__ == other.__dict__
|
|
111
|
+
|
|
112
|
+
def __ne__(self, other):
|
|
113
|
+
"""Returns true if both objects are not equal"""
|
|
114
|
+
return not self == other
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.sdk_response import SdkResponse
|
|
6
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class CloseWarmPoolResponse(SdkResponse):
|
|
10
|
+
|
|
11
|
+
"""
|
|
12
|
+
Attributes:
|
|
13
|
+
openapi_types (dict): The key is attribute name
|
|
14
|
+
and the value is attribute type.
|
|
15
|
+
attribute_map (dict): The key is attribute name
|
|
16
|
+
and the value is json key in definition.
|
|
17
|
+
"""
|
|
18
|
+
sensitive_list = []
|
|
19
|
+
|
|
20
|
+
openapi_types = {
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
def __init__(self):
|
|
27
|
+
r"""CloseWarmPoolResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
super(CloseWarmPoolResponse, self).__init__()
|
|
34
|
+
self.discriminator = None
|
|
35
|
+
|
|
36
|
+
def to_dict(self):
|
|
37
|
+
"""Returns the model properties as a dict"""
|
|
38
|
+
result = {}
|
|
39
|
+
|
|
40
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
41
|
+
value = getattr(self, attr)
|
|
42
|
+
if isinstance(value, list):
|
|
43
|
+
result[attr] = list(map(
|
|
44
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
45
|
+
value
|
|
46
|
+
))
|
|
47
|
+
elif hasattr(value, "to_dict"):
|
|
48
|
+
result[attr] = value.to_dict()
|
|
49
|
+
elif isinstance(value, dict):
|
|
50
|
+
result[attr] = dict(map(
|
|
51
|
+
lambda item: (item[0], item[1].to_dict())
|
|
52
|
+
if hasattr(item[1], "to_dict") else item,
|
|
53
|
+
value.items()
|
|
54
|
+
))
|
|
55
|
+
else:
|
|
56
|
+
if attr in self.sensitive_list:
|
|
57
|
+
result[attr] = "****"
|
|
58
|
+
else:
|
|
59
|
+
result[attr] = value
|
|
60
|
+
|
|
61
|
+
return result
|
|
62
|
+
|
|
63
|
+
def to_str(self):
|
|
64
|
+
"""Returns the string representation of the model"""
|
|
65
|
+
import simplejson as json
|
|
66
|
+
if six.PY2:
|
|
67
|
+
import sys
|
|
68
|
+
reload(sys)
|
|
69
|
+
sys.setdefaultencoding("utf-8")
|
|
70
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
71
|
+
|
|
72
|
+
def __repr__(self):
|
|
73
|
+
"""For `print`"""
|
|
74
|
+
return self.to_str()
|
|
75
|
+
|
|
76
|
+
def __eq__(self, other):
|
|
77
|
+
"""Returns true if both objects are equal"""
|
|
78
|
+
if not isinstance(other, CloseWarmPoolResponse):
|
|
79
|
+
return False
|
|
80
|
+
|
|
81
|
+
return self.__dict__ == other.__dict__
|
|
82
|
+
|
|
83
|
+
def __ne__(self, other):
|
|
84
|
+
"""Returns true if both objects are not equal"""
|
|
85
|
+
return not self == other
|