huaweicloudsdkas 3.1.165__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 +4 -0
- huaweicloudsdkas/v1/as_async_client.py +67 -0
- huaweicloudsdkas/v1/as_client.py +67 -0
- huaweicloudsdkas/v1/model/__init__.py +4 -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-3.1.165.dist-info → huaweicloudsdkas-3.1.166.dist-info}/METADATA +9 -10
- {huaweicloudsdkas-3.1.165.dist-info → huaweicloudsdkas-3.1.166.dist-info}/RECORD +12 -9
- {huaweicloudsdkas-3.1.165.dist-info → huaweicloudsdkas-3.1.166.dist-info}/WHEEL +1 -2
- huaweicloudsdkas-3.1.165.dist-info/top_level.txt +0 -1
- {huaweicloudsdkas-3.1.165.dist-info → huaweicloudsdkas-3.1.166.dist-info/licenses}/LICENSE +0 -0
huaweicloudsdkas/v1/__init__.py
CHANGED
|
@@ -215,9 +215,13 @@ from huaweicloudsdkas.v1.model.tags_single_value import TagsSingleValue
|
|
|
215
215
|
from huaweicloudsdkas.v1.model.topics import Topics
|
|
216
216
|
from huaweicloudsdkas.v1.model.update_group_scheduled_task_request import UpdateGroupScheduledTaskRequest
|
|
217
217
|
from huaweicloudsdkas.v1.model.update_group_scheduled_task_response import UpdateGroupScheduledTaskResponse
|
|
218
|
+
from huaweicloudsdkas.v1.model.update_instance_config import UpdateInstanceConfig
|
|
218
219
|
from huaweicloudsdkas.v1.model.update_life_cycle_hook_option import UpdateLifeCycleHookOption
|
|
219
220
|
from huaweicloudsdkas.v1.model.update_life_cycle_hook_request import UpdateLifeCycleHookRequest
|
|
220
221
|
from huaweicloudsdkas.v1.model.update_life_cycle_hook_response import UpdateLifeCycleHookResponse
|
|
222
|
+
from huaweicloudsdkas.v1.model.update_scaling_config_option import UpdateScalingConfigOption
|
|
223
|
+
from huaweicloudsdkas.v1.model.update_scaling_config_request import UpdateScalingConfigRequest
|
|
224
|
+
from huaweicloudsdkas.v1.model.update_scaling_config_response import UpdateScalingConfigResponse
|
|
221
225
|
from huaweicloudsdkas.v1.model.update_scaling_group_option import UpdateScalingGroupOption
|
|
222
226
|
from huaweicloudsdkas.v1.model.update_scaling_group_request import UpdateScalingGroupRequest
|
|
223
227
|
from huaweicloudsdkas.v1.model.update_scaling_group_response import UpdateScalingGroupResponse
|
|
@@ -3884,6 +3884,73 @@ class AsAsyncClient(Client):
|
|
|
3884
3884
|
|
|
3885
3885
|
return http_info
|
|
3886
3886
|
|
|
3887
|
+
def update_scaling_config_async(self, request):
|
|
3888
|
+
r"""修改伸缩配置
|
|
3889
|
+
|
|
3890
|
+
修改伸缩配置
|
|
3891
|
+
|
|
3892
|
+
Please refer to HUAWEI cloud API Explorer for details.
|
|
3893
|
+
|
|
3894
|
+
|
|
3895
|
+
:param request: Request instance for UpdateScalingConfig
|
|
3896
|
+
:type request: :class:`huaweicloudsdkas.v1.UpdateScalingConfigRequest`
|
|
3897
|
+
:rtype: :class:`huaweicloudsdkas.v1.UpdateScalingConfigResponse`
|
|
3898
|
+
"""
|
|
3899
|
+
http_info = self._update_scaling_config_http_info(request)
|
|
3900
|
+
return self._call_api(**http_info)
|
|
3901
|
+
|
|
3902
|
+
def update_scaling_config_async_invoker(self, request):
|
|
3903
|
+
http_info = self._update_scaling_config_http_info(request)
|
|
3904
|
+
return AsyncInvoker(self, http_info)
|
|
3905
|
+
|
|
3906
|
+
def _update_scaling_config_http_info(self, 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
|
+
|
|
3887
3954
|
def update_scaling_group_async(self, request):
|
|
3888
3955
|
r"""修改弹性伸缩组
|
|
3889
3956
|
|
huaweicloudsdkas/v1/as_client.py
CHANGED
|
@@ -3884,6 +3884,73 @@ class AsClient(Client):
|
|
|
3884
3884
|
|
|
3885
3885
|
return http_info
|
|
3886
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
|
+
|
|
3887
3954
|
def update_scaling_group(self, request):
|
|
3888
3955
|
r"""修改弹性伸缩组
|
|
3889
3956
|
|
|
@@ -213,9 +213,13 @@ from huaweicloudsdkas.v1.model.tags_single_value import TagsSingleValue
|
|
|
213
213
|
from huaweicloudsdkas.v1.model.topics import Topics
|
|
214
214
|
from huaweicloudsdkas.v1.model.update_group_scheduled_task_request import UpdateGroupScheduledTaskRequest
|
|
215
215
|
from huaweicloudsdkas.v1.model.update_group_scheduled_task_response import UpdateGroupScheduledTaskResponse
|
|
216
|
+
from huaweicloudsdkas.v1.model.update_instance_config import UpdateInstanceConfig
|
|
216
217
|
from huaweicloudsdkas.v1.model.update_life_cycle_hook_option import UpdateLifeCycleHookOption
|
|
217
218
|
from huaweicloudsdkas.v1.model.update_life_cycle_hook_request import UpdateLifeCycleHookRequest
|
|
218
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
|
|
219
223
|
from huaweicloudsdkas.v1.model.update_scaling_group_option import UpdateScalingGroupOption
|
|
220
224
|
from huaweicloudsdkas.v1.model.update_scaling_group_request import UpdateScalingGroupRequest
|
|
221
225
|
from huaweicloudsdkas.v1.model.update_scaling_group_response import UpdateScalingGroupResponse
|
|
@@ -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 UpdateInstanceConfig:
|
|
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
|
+
'image_ref': 'str'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'image_ref': 'imageRef'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, image_ref=None):
|
|
28
|
+
r"""UpdateInstanceConfig
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param image_ref: 镜像ID
|
|
33
|
+
:type image_ref: str
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._image_ref = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
self.image_ref = image_ref
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def image_ref(self):
|
|
45
|
+
r"""Gets the image_ref of this UpdateInstanceConfig.
|
|
46
|
+
|
|
47
|
+
镜像ID
|
|
48
|
+
|
|
49
|
+
:return: The image_ref of this UpdateInstanceConfig.
|
|
50
|
+
:rtype: str
|
|
51
|
+
"""
|
|
52
|
+
return self._image_ref
|
|
53
|
+
|
|
54
|
+
@image_ref.setter
|
|
55
|
+
def image_ref(self, image_ref):
|
|
56
|
+
r"""Sets the image_ref of this UpdateInstanceConfig.
|
|
57
|
+
|
|
58
|
+
镜像ID
|
|
59
|
+
|
|
60
|
+
:param image_ref: The image_ref of this UpdateInstanceConfig.
|
|
61
|
+
:type image_ref: str
|
|
62
|
+
"""
|
|
63
|
+
self._image_ref = image_ref
|
|
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, UpdateInstanceConfig):
|
|
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,110 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateScalingConfigOption:
|
|
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
|
+
'instance_config': 'UpdateInstanceConfig'
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
attribute_map = {
|
|
24
|
+
'instance_config': 'instance_config'
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
def __init__(self, instance_config=None):
|
|
28
|
+
r"""UpdateScalingConfigOption
|
|
29
|
+
|
|
30
|
+
The model defined in huaweicloud sdk
|
|
31
|
+
|
|
32
|
+
:param instance_config:
|
|
33
|
+
:type instance_config: :class:`huaweicloudsdkas.v1.UpdateInstanceConfig`
|
|
34
|
+
"""
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
self._instance_config = None
|
|
39
|
+
self.discriminator = None
|
|
40
|
+
|
|
41
|
+
self.instance_config = instance_config
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def instance_config(self):
|
|
45
|
+
r"""Gets the instance_config of this UpdateScalingConfigOption.
|
|
46
|
+
|
|
47
|
+
:return: The instance_config of this UpdateScalingConfigOption.
|
|
48
|
+
:rtype: :class:`huaweicloudsdkas.v1.UpdateInstanceConfig`
|
|
49
|
+
"""
|
|
50
|
+
return self._instance_config
|
|
51
|
+
|
|
52
|
+
@instance_config.setter
|
|
53
|
+
def instance_config(self, instance_config):
|
|
54
|
+
r"""Sets the instance_config of this UpdateScalingConfigOption.
|
|
55
|
+
|
|
56
|
+
:param instance_config: The instance_config of this UpdateScalingConfigOption.
|
|
57
|
+
:type instance_config: :class:`huaweicloudsdkas.v1.UpdateInstanceConfig`
|
|
58
|
+
"""
|
|
59
|
+
self._instance_config = instance_config
|
|
60
|
+
|
|
61
|
+
def to_dict(self):
|
|
62
|
+
"""Returns the model properties as a dict"""
|
|
63
|
+
result = {}
|
|
64
|
+
|
|
65
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
66
|
+
value = getattr(self, attr)
|
|
67
|
+
if isinstance(value, list):
|
|
68
|
+
result[attr] = list(map(
|
|
69
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
70
|
+
value
|
|
71
|
+
))
|
|
72
|
+
elif hasattr(value, "to_dict"):
|
|
73
|
+
result[attr] = value.to_dict()
|
|
74
|
+
elif isinstance(value, dict):
|
|
75
|
+
result[attr] = dict(map(
|
|
76
|
+
lambda item: (item[0], item[1].to_dict())
|
|
77
|
+
if hasattr(item[1], "to_dict") else item,
|
|
78
|
+
value.items()
|
|
79
|
+
))
|
|
80
|
+
else:
|
|
81
|
+
if attr in self.sensitive_list:
|
|
82
|
+
result[attr] = "****"
|
|
83
|
+
else:
|
|
84
|
+
result[attr] = value
|
|
85
|
+
|
|
86
|
+
return result
|
|
87
|
+
|
|
88
|
+
def to_str(self):
|
|
89
|
+
"""Returns the string representation of the model"""
|
|
90
|
+
import simplejson as json
|
|
91
|
+
if six.PY2:
|
|
92
|
+
import sys
|
|
93
|
+
reload(sys)
|
|
94
|
+
sys.setdefaultencoding("utf-8")
|
|
95
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
96
|
+
|
|
97
|
+
def __repr__(self):
|
|
98
|
+
"""For `print`"""
|
|
99
|
+
return self.to_str()
|
|
100
|
+
|
|
101
|
+
def __eq__(self, other):
|
|
102
|
+
"""Returns true if both objects are equal"""
|
|
103
|
+
if not isinstance(other, UpdateScalingConfigOption):
|
|
104
|
+
return False
|
|
105
|
+
|
|
106
|
+
return self.__dict__ == other.__dict__
|
|
107
|
+
|
|
108
|
+
def __ne__(self, other):
|
|
109
|
+
"""Returns true if both objects are not equal"""
|
|
110
|
+
return not self == other
|
|
@@ -0,0 +1,135 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
import six
|
|
4
|
+
|
|
5
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class UpdateScalingConfigRequest:
|
|
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_configuration_id': 'str',
|
|
21
|
+
'body': 'UpdateScalingConfigOption'
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
attribute_map = {
|
|
25
|
+
'scaling_configuration_id': 'scaling_configuration_id',
|
|
26
|
+
'body': 'body'
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
def __init__(self, scaling_configuration_id=None, body=None):
|
|
30
|
+
r"""UpdateScalingConfigRequest
|
|
31
|
+
|
|
32
|
+
The model defined in huaweicloud sdk
|
|
33
|
+
|
|
34
|
+
:param scaling_configuration_id:
|
|
35
|
+
:type scaling_configuration_id: str
|
|
36
|
+
:param body: Body of the UpdateScalingConfigRequest
|
|
37
|
+
:type body: :class:`huaweicloudsdkas.v1.UpdateScalingConfigOption`
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
self._scaling_configuration_id = None
|
|
43
|
+
self._body = None
|
|
44
|
+
self.discriminator = None
|
|
45
|
+
|
|
46
|
+
self.scaling_configuration_id = scaling_configuration_id
|
|
47
|
+
if body is not None:
|
|
48
|
+
self.body = body
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def scaling_configuration_id(self):
|
|
52
|
+
r"""Gets the scaling_configuration_id of this UpdateScalingConfigRequest.
|
|
53
|
+
|
|
54
|
+
:return: The scaling_configuration_id of this UpdateScalingConfigRequest.
|
|
55
|
+
:rtype: str
|
|
56
|
+
"""
|
|
57
|
+
return self._scaling_configuration_id
|
|
58
|
+
|
|
59
|
+
@scaling_configuration_id.setter
|
|
60
|
+
def scaling_configuration_id(self, scaling_configuration_id):
|
|
61
|
+
r"""Sets the scaling_configuration_id of this UpdateScalingConfigRequest.
|
|
62
|
+
|
|
63
|
+
:param scaling_configuration_id: The scaling_configuration_id of this UpdateScalingConfigRequest.
|
|
64
|
+
:type scaling_configuration_id: str
|
|
65
|
+
"""
|
|
66
|
+
self._scaling_configuration_id = scaling_configuration_id
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def body(self):
|
|
70
|
+
r"""Gets the body of this UpdateScalingConfigRequest.
|
|
71
|
+
|
|
72
|
+
:return: The body of this UpdateScalingConfigRequest.
|
|
73
|
+
:rtype: :class:`huaweicloudsdkas.v1.UpdateScalingConfigOption`
|
|
74
|
+
"""
|
|
75
|
+
return self._body
|
|
76
|
+
|
|
77
|
+
@body.setter
|
|
78
|
+
def body(self, body):
|
|
79
|
+
r"""Sets the body of this UpdateScalingConfigRequest.
|
|
80
|
+
|
|
81
|
+
:param body: The body of this UpdateScalingConfigRequest.
|
|
82
|
+
:type body: :class:`huaweicloudsdkas.v1.UpdateScalingConfigOption`
|
|
83
|
+
"""
|
|
84
|
+
self._body = body
|
|
85
|
+
|
|
86
|
+
def to_dict(self):
|
|
87
|
+
"""Returns the model properties as a dict"""
|
|
88
|
+
result = {}
|
|
89
|
+
|
|
90
|
+
for attr, _ in six.iteritems(self.openapi_types):
|
|
91
|
+
value = getattr(self, attr)
|
|
92
|
+
if isinstance(value, list):
|
|
93
|
+
result[attr] = list(map(
|
|
94
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
95
|
+
value
|
|
96
|
+
))
|
|
97
|
+
elif hasattr(value, "to_dict"):
|
|
98
|
+
result[attr] = value.to_dict()
|
|
99
|
+
elif isinstance(value, dict):
|
|
100
|
+
result[attr] = dict(map(
|
|
101
|
+
lambda item: (item[0], item[1].to_dict())
|
|
102
|
+
if hasattr(item[1], "to_dict") else item,
|
|
103
|
+
value.items()
|
|
104
|
+
))
|
|
105
|
+
else:
|
|
106
|
+
if attr in self.sensitive_list:
|
|
107
|
+
result[attr] = "****"
|
|
108
|
+
else:
|
|
109
|
+
result[attr] = value
|
|
110
|
+
|
|
111
|
+
return result
|
|
112
|
+
|
|
113
|
+
def to_str(self):
|
|
114
|
+
"""Returns the string representation of the model"""
|
|
115
|
+
import simplejson as json
|
|
116
|
+
if six.PY2:
|
|
117
|
+
import sys
|
|
118
|
+
reload(sys)
|
|
119
|
+
sys.setdefaultencoding("utf-8")
|
|
120
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
121
|
+
|
|
122
|
+
def __repr__(self):
|
|
123
|
+
"""For `print`"""
|
|
124
|
+
return self.to_str()
|
|
125
|
+
|
|
126
|
+
def __eq__(self, other):
|
|
127
|
+
"""Returns true if both objects are equal"""
|
|
128
|
+
if not isinstance(other, UpdateScalingConfigRequest):
|
|
129
|
+
return False
|
|
130
|
+
|
|
131
|
+
return self.__dict__ == other.__dict__
|
|
132
|
+
|
|
133
|
+
def __ne__(self, other):
|
|
134
|
+
"""Returns true if both objects are not equal"""
|
|
135
|
+
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 UpdateScalingConfigResponse(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"""UpdateScalingConfigResponse
|
|
28
|
+
|
|
29
|
+
The model defined in huaweicloud sdk
|
|
30
|
+
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
super(UpdateScalingConfigResponse, 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, UpdateScalingConfigResponse):
|
|
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
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
Metadata-Version: 2.
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
2
|
Name: huaweicloudsdkas
|
|
3
|
-
Version: 3.1.
|
|
3
|
+
Version: 3.1.166
|
|
4
4
|
Summary: AS
|
|
5
|
-
|
|
6
|
-
Author: HuaweiCloud SDK
|
|
7
|
-
|
|
8
|
-
License:
|
|
9
|
-
Keywords: huaweicloud,sdk
|
|
5
|
+
Project-URL: Homepage, https://github.com/huaweicloud/huaweicloud-sdk-python-v3
|
|
6
|
+
Author-email: HuaweiCloud SDK <hwcloudsdk@huawei.com>
|
|
7
|
+
License-Expression: Apache-2.0
|
|
8
|
+
License-File: LICENSE
|
|
9
|
+
Keywords: AS,huaweicloud,sdk
|
|
10
10
|
Classifier: Development Status :: 5 - Production/Stable
|
|
11
11
|
Classifier: Intended Audience :: Developers
|
|
12
12
|
Classifier: License :: OSI Approved :: Apache Software License
|
|
@@ -19,8 +19,7 @@ Classifier: Programming Language :: Python :: 3.11
|
|
|
19
19
|
Classifier: Programming Language :: Python :: 3.12
|
|
20
20
|
Classifier: Topic :: Software Development
|
|
21
21
|
Requires-Python: >=3.6
|
|
22
|
+
Requires-Dist: huaweicloudsdkcore>=3.1.166
|
|
22
23
|
Description-Content-Type: text/markdown
|
|
23
|
-
License-File: LICENSE
|
|
24
|
-
Requires-Dist: huaweicloudsdkcore>=3.1.165
|
|
25
24
|
|
|
26
|
-
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
|
25
|
+
See detailed information in [huaweicloud-sdk-python-v3](https://github.com/huaweicloud/huaweicloud-sdk-python-v3).
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
huaweicloudsdkas/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
2
|
-
huaweicloudsdkas/v1/__init__.py,sha256=
|
|
3
|
-
huaweicloudsdkas/v1/as_async_client.py,sha256=
|
|
4
|
-
huaweicloudsdkas/v1/as_client.py,sha256=
|
|
5
|
-
huaweicloudsdkas/v1/model/__init__.py,sha256=
|
|
2
|
+
huaweicloudsdkas/v1/__init__.py,sha256=vRWBeR_NdJfCsIvVkDVCSjrEkYpOqeJA43TbnD8eSuw,21389
|
|
3
|
+
huaweicloudsdkas/v1/as_async_client.py,sha256=xKxuPNBKXg0q-lxui3E8Y4ctD8Uzz7jJpGmlKVV3mGs,172209
|
|
4
|
+
huaweicloudsdkas/v1/as_client.py,sha256=ENGHNjkQTL8-DE8euSXNP7FNugaiu62yeYJNeamNQJg,172238
|
|
5
|
+
huaweicloudsdkas/v1/model/__init__.py,sha256=Ae5SvQqnhKqsDoO18dGazEUEe7rrBsyyzpuXzUAYtuE,21309
|
|
6
6
|
huaweicloudsdkas/v1/model/all_quotas.py,sha256=rcEo7qmUJpsnC8vSGdHLpo3z4BBPIqQJofdlibiJfPQ,3222
|
|
7
7
|
huaweicloudsdkas/v1/model/all_resources.py,sha256=tkU7DBhHeYX0RK4BZjcKBNo4lI0EnQMgu39tiI7WY0I,6908
|
|
8
8
|
huaweicloudsdkas/v1/model/allowed_address_pair.py,sha256=C9FwC7rFkgIrUaKmtSmbkckQSK0n1Dmq2wDph0UspUI,3557
|
|
@@ -213,9 +213,13 @@ huaweicloudsdkas/v1/model/tags_single_value.py,sha256=3j5_ceKcmNAh54F01lUjYtc7_L
|
|
|
213
213
|
huaweicloudsdkas/v1/model/topics.py,sha256=eDvHrKT-G4XjJ4Am8bBkNiZnlJALgR1YIxmFJokecbE,5328
|
|
214
214
|
huaweicloudsdkas/v1/model/update_group_scheduled_task_request.py,sha256=9l9LPxq6vpJ7ky1X4EsTVAYCy9D3_BHuS-CvU-U3BPI,5152
|
|
215
215
|
huaweicloudsdkas/v1/model/update_group_scheduled_task_response.py,sha256=KMpQrZuC8NPZCV74HnK34m-4UCl3WYuIY1QiaEJAg8c,2480
|
|
216
|
+
huaweicloudsdkas/v1/model/update_instance_config.py,sha256=DA2grc88jgGYASe4bBwYa2PH2vEHg_nZoxv3vem_dhM,3056
|
|
216
217
|
huaweicloudsdkas/v1/model/update_life_cycle_hook_option.py,sha256=UAQdPbmgGm1rHRoH4RrFBZJIGGy6Ew-YSOezpXmZFrE,11709
|
|
217
218
|
huaweicloudsdkas/v1/model/update_life_cycle_hook_request.py,sha256=FI64Ee-k3BXyWcS-91DIy176PPxYnBQ-tw4hzNuoucI,5176
|
|
218
219
|
huaweicloudsdkas/v1/model/update_life_cycle_hook_response.py,sha256=iCqpUxh8_1XNAyHthS-B7XfLAC3Zq5rXNo1OQTBrXHs,11397
|
|
220
|
+
huaweicloudsdkas/v1/model/update_scaling_config_option.py,sha256=whT8cVmZoMkKVuHR4yhKPvZbHTcqZKMwn7idZ6BIfmc,3335
|
|
221
|
+
huaweicloudsdkas/v1/model/update_scaling_config_request.py,sha256=OE9-MXK7KI29miWSO_PzL54fyiXWTLYnOboTB26cfmE,4239
|
|
222
|
+
huaweicloudsdkas/v1/model/update_scaling_config_response.py,sha256=SXzFkw3FDtK_hOzYo9z542FZecGwGPSc1twTVblBESY,2460
|
|
219
223
|
huaweicloudsdkas/v1/model/update_scaling_group_option.py,sha256=nYTBJK8DeIM6Sm76yRHNmXbA5E5e5KMO0B8JsN-w-pM,41498
|
|
220
224
|
huaweicloudsdkas/v1/model/update_scaling_group_request.py,sha256=eW3MB7JjU6pfYTv6x4993BkfwrM5anqMRfAW7jNvq5Q,4100
|
|
221
225
|
huaweicloudsdkas/v1/model/update_scaling_group_response.py,sha256=jXkvTsNQVDGjWwaxjNINEZWj39Z-KyggLtDaQbJOHMw,3426
|
|
@@ -232,8 +236,7 @@ huaweicloudsdkas/v1/model/warm_pool_info.py,sha256=W487MxwUOcUfUGG2Ga6Wc4p-OqIh5
|
|
|
232
236
|
huaweicloudsdkas/v1/model/warm_pool_instance.py,sha256=uLxh8sp68BGM7n7uvfXk9LS7P_ozuryaDh6KNU3yzLk,5180
|
|
233
237
|
huaweicloudsdkas/v1/region/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
234
238
|
huaweicloudsdkas/v1/region/as_region.py,sha256=xaupdos-OUWx2CqeuigjqtL6bNd9V3iGQ31KwkbTg6c,5587
|
|
235
|
-
huaweicloudsdkas-3.1.
|
|
236
|
-
huaweicloudsdkas-3.1.
|
|
237
|
-
huaweicloudsdkas-3.1.
|
|
238
|
-
huaweicloudsdkas-3.1.
|
|
239
|
-
huaweicloudsdkas-3.1.165.dist-info/RECORD,,
|
|
239
|
+
huaweicloudsdkas-3.1.166.dist-info/METADATA,sha256=7zOAasiTsl_af6S4CKGEwFTVGW-Ifk1n-P5h19EUpcA,1069
|
|
240
|
+
huaweicloudsdkas-3.1.166.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
|
|
241
|
+
huaweicloudsdkas-3.1.166.dist-info/licenses/LICENSE,sha256=4_VSTLuxcsybRG9N4Isktlj1rAIBBsfl0Tjc0gBTijo,604
|
|
242
|
+
huaweicloudsdkas-3.1.166.dist-info/RECORD,,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
huaweicloudsdkas
|
|
File without changes
|