Skip to content

Commit 20c95f6

Browse files
committed
feat: update as api
1 parent c1a00e0 commit 20c95f6

28 files changed

+159
-117
lines changed

volcenginesdkautoscaling/api/auto_scaling_api.py

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ def attach_db_instances_with_http_info(self, body, **kwargs): # noqa: E501
115115
auth_settings = ['volcengineSign'] # noqa: E501
116116

117117
return self.api_client.call_api(
118-
'/AttachDBInstances/2020-01-01/auto_scaling/get/', 'GET',
118+
'/AttachDBInstances/2020-01-01/auto_scaling/get/text_plain/', 'GET',
119119
path_params,
120120
query_params,
121121
header_params,
@@ -212,7 +212,7 @@ def attach_instances_with_http_info(self, body, **kwargs): # noqa: E501
212212
auth_settings = ['volcengineSign'] # noqa: E501
213213

214214
return self.api_client.call_api(
215-
'/AttachInstances/2020-01-01/auto_scaling/get/', 'GET',
215+
'/AttachInstances/2020-01-01/auto_scaling/get/text_plain/', 'GET',
216216
path_params,
217217
query_params,
218218
header_params,
@@ -309,7 +309,7 @@ def attach_server_groups_with_http_info(self, body, **kwargs): # noqa: E501
309309
auth_settings = ['volcengineSign'] # noqa: E501
310310

311311
return self.api_client.call_api(
312-
'/AttachServerGroups/2020-01-01/auto_scaling/get/', 'GET',
312+
'/AttachServerGroups/2020-01-01/auto_scaling/get/text_plain/', 'GET',
313313
path_params,
314314
query_params,
315315
header_params,
@@ -406,7 +406,7 @@ def complete_lifecycle_activity_with_http_info(self, body, **kwargs): # noqa: E
406406
auth_settings = ['volcengineSign'] # noqa: E501
407407

408408
return self.api_client.call_api(
409-
'/CompleteLifecycleActivity/2020-01-01/auto_scaling/get/', 'GET',
409+
'/CompleteLifecycleActivity/2020-01-01/auto_scaling/get/text_plain/', 'GET',
410410
path_params,
411411
query_params,
412412
header_params,
@@ -503,7 +503,7 @@ def create_lifecycle_hook_with_http_info(self, body, **kwargs): # noqa: E501
503503
auth_settings = ['volcengineSign'] # noqa: E501
504504

505505
return self.api_client.call_api(
506-
'/CreateLifecycleHook/2020-01-01/auto_scaling/get/', 'GET',
506+
'/CreateLifecycleHook/2020-01-01/auto_scaling/get/text_plain/', 'GET',
507507
path_params,
508508
query_params,
509509
header_params,
@@ -600,7 +600,7 @@ def create_scaling_configuration_with_http_info(self, body, **kwargs): # noqa:
600600
auth_settings = ['volcengineSign'] # noqa: E501
601601

602602
return self.api_client.call_api(
603-
'/CreateScalingConfiguration/2020-01-01/auto_scaling/get/', 'GET',
603+
'/CreateScalingConfiguration/2020-01-01/auto_scaling/get/text_plain/', 'GET',
604604
path_params,
605605
query_params,
606606
header_params,
@@ -697,7 +697,7 @@ def create_scaling_group_with_http_info(self, body, **kwargs): # noqa: E501
697697
auth_settings = ['volcengineSign'] # noqa: E501
698698

699699
return self.api_client.call_api(
700-
'/CreateScalingGroup/2020-01-01/auto_scaling/get/', 'GET',
700+
'/CreateScalingGroup/2020-01-01/auto_scaling/get/text_plain/', 'GET',
701701
path_params,
702702
query_params,
703703
header_params,
@@ -794,7 +794,7 @@ def create_scaling_policy_with_http_info(self, body, **kwargs): # noqa: E501
794794
auth_settings = ['volcengineSign'] # noqa: E501
795795

796796
return self.api_client.call_api(
797-
'/CreateScalingPolicy/2020-01-01/auto_scaling/get/', 'GET',
797+
'/CreateScalingPolicy/2020-01-01/auto_scaling/get/text_plain/', 'GET',
798798
path_params,
799799
query_params,
800800
header_params,
@@ -891,7 +891,7 @@ def delete_lifecycle_hook_with_http_info(self, body, **kwargs): # noqa: E501
891891
auth_settings = ['volcengineSign'] # noqa: E501
892892

893893
return self.api_client.call_api(
894-
'/DeleteLifecycleHook/2020-01-01/auto_scaling/get/', 'GET',
894+
'/DeleteLifecycleHook/2020-01-01/auto_scaling/get/text_plain/', 'GET',
895895
path_params,
896896
query_params,
897897
header_params,
@@ -988,7 +988,7 @@ def delete_scaling_configuration_with_http_info(self, body, **kwargs): # noqa:
988988
auth_settings = ['volcengineSign'] # noqa: E501
989989

990990
return self.api_client.call_api(
991-
'/DeleteScalingConfiguration/2020-01-01/auto_scaling/get/', 'GET',
991+
'/DeleteScalingConfiguration/2020-01-01/auto_scaling/get/text_plain/', 'GET',
992992
path_params,
993993
query_params,
994994
header_params,
@@ -1085,7 +1085,7 @@ def delete_scaling_group_with_http_info(self, body, **kwargs): # noqa: E501
10851085
auth_settings = ['volcengineSign'] # noqa: E501
10861086

10871087
return self.api_client.call_api(
1088-
'/DeleteScalingGroup/2020-01-01/auto_scaling/get/', 'GET',
1088+
'/DeleteScalingGroup/2020-01-01/auto_scaling/get/text_plain/', 'GET',
10891089
path_params,
10901090
query_params,
10911091
header_params,
@@ -1182,7 +1182,7 @@ def delete_scaling_policy_with_http_info(self, body, **kwargs): # noqa: E501
11821182
auth_settings = ['volcengineSign'] # noqa: E501
11831183

11841184
return self.api_client.call_api(
1185-
'/DeleteScalingPolicy/2020-01-01/auto_scaling/get/', 'GET',
1185+
'/DeleteScalingPolicy/2020-01-01/auto_scaling/get/text_plain/', 'GET',
11861186
path_params,
11871187
query_params,
11881188
header_params,
@@ -1279,7 +1279,7 @@ def describe_lifecycle_activities_with_http_info(self, body, **kwargs): # noqa:
12791279
auth_settings = ['volcengineSign'] # noqa: E501
12801280

12811281
return self.api_client.call_api(
1282-
'/DescribeLifecycleActivities/2020-01-01/auto_scaling/get/', 'GET',
1282+
'/DescribeLifecycleActivities/2020-01-01/auto_scaling/get/text_plain/', 'GET',
12831283
path_params,
12841284
query_params,
12851285
header_params,
@@ -1376,7 +1376,7 @@ def describe_lifecycle_hooks_with_http_info(self, body, **kwargs): # noqa: E501
13761376
auth_settings = ['volcengineSign'] # noqa: E501
13771377

13781378
return self.api_client.call_api(
1379-
'/DescribeLifecycleHooks/2020-01-01/auto_scaling/get/', 'GET',
1379+
'/DescribeLifecycleHooks/2020-01-01/auto_scaling/get/text_plain/', 'GET',
13801380
path_params,
13811381
query_params,
13821382
header_params,
@@ -1473,7 +1473,7 @@ def describe_scaling_activities_with_http_info(self, body, **kwargs): # noqa: E
14731473
auth_settings = ['volcengineSign'] # noqa: E501
14741474

14751475
return self.api_client.call_api(
1476-
'/DescribeScalingActivities/2020-01-01/auto_scaling/get/', 'GET',
1476+
'/DescribeScalingActivities/2020-01-01/auto_scaling/get/text_plain/', 'GET',
14771477
path_params,
14781478
query_params,
14791479
header_params,
@@ -1570,7 +1570,7 @@ def describe_scaling_configurations_with_http_info(self, body, **kwargs): # noq
15701570
auth_settings = ['volcengineSign'] # noqa: E501
15711571

15721572
return self.api_client.call_api(
1573-
'/DescribeScalingConfigurations/2020-01-01/auto_scaling/get/', 'GET',
1573+
'/DescribeScalingConfigurations/2020-01-01/auto_scaling/get/text_plain/', 'GET',
15741574
path_params,
15751575
query_params,
15761576
header_params,
@@ -1667,7 +1667,7 @@ def describe_scaling_groups_with_http_info(self, body, **kwargs): # noqa: E501
16671667
auth_settings = ['volcengineSign'] # noqa: E501
16681668

16691669
return self.api_client.call_api(
1670-
'/DescribeScalingGroups/2020-01-01/auto_scaling/get/', 'GET',
1670+
'/DescribeScalingGroups/2020-01-01/auto_scaling/get/text_plain/', 'GET',
16711671
path_params,
16721672
query_params,
16731673
header_params,
@@ -1764,7 +1764,7 @@ def describe_scaling_instances_with_http_info(self, body, **kwargs): # noqa: E5
17641764
auth_settings = ['volcengineSign'] # noqa: E501
17651765

17661766
return self.api_client.call_api(
1767-
'/DescribeScalingInstances/2020-01-01/auto_scaling/get/', 'GET',
1767+
'/DescribeScalingInstances/2020-01-01/auto_scaling/get/text_plain/', 'GET',
17681768
path_params,
17691769
query_params,
17701770
header_params,
@@ -1861,7 +1861,7 @@ def describe_scaling_policies_with_http_info(self, body, **kwargs): # noqa: E50
18611861
auth_settings = ['volcengineSign'] # noqa: E501
18621862

18631863
return self.api_client.call_api(
1864-
'/DescribeScalingPolicies/2020-01-01/auto_scaling/get/', 'GET',
1864+
'/DescribeScalingPolicies/2020-01-01/auto_scaling/get/text_plain/', 'GET',
18651865
path_params,
18661866
query_params,
18671867
header_params,
@@ -1958,7 +1958,7 @@ def detach_db_instances_with_http_info(self, body, **kwargs): # noqa: E501
19581958
auth_settings = ['volcengineSign'] # noqa: E501
19591959

19601960
return self.api_client.call_api(
1961-
'/DetachDBInstances/2020-01-01/auto_scaling/get/', 'GET',
1961+
'/DetachDBInstances/2020-01-01/auto_scaling/get/text_plain/', 'GET',
19621962
path_params,
19631963
query_params,
19641964
header_params,
@@ -2055,7 +2055,7 @@ def detach_instances_with_http_info(self, body, **kwargs): # noqa: E501
20552055
auth_settings = ['volcengineSign'] # noqa: E501
20562056

20572057
return self.api_client.call_api(
2058-
'/DetachInstances/2020-01-01/auto_scaling/get/', 'GET',
2058+
'/DetachInstances/2020-01-01/auto_scaling/get/text_plain/', 'GET',
20592059
path_params,
20602060
query_params,
20612061
header_params,
@@ -2152,7 +2152,7 @@ def detach_server_groups_with_http_info(self, body, **kwargs): # noqa: E501
21522152
auth_settings = ['volcengineSign'] # noqa: E501
21532153

21542154
return self.api_client.call_api(
2155-
'/DetachServerGroups/2020-01-01/auto_scaling/get/', 'GET',
2155+
'/DetachServerGroups/2020-01-01/auto_scaling/get/text_plain/', 'GET',
21562156
path_params,
21572157
query_params,
21582158
header_params,
@@ -2249,7 +2249,7 @@ def disable_scaling_group_with_http_info(self, body, **kwargs): # noqa: E501
22492249
auth_settings = ['volcengineSign'] # noqa: E501
22502250

22512251
return self.api_client.call_api(
2252-
'/DisableScalingGroup/2020-01-01/auto_scaling/get/', 'GET',
2252+
'/DisableScalingGroup/2020-01-01/auto_scaling/get/text_plain/', 'GET',
22532253
path_params,
22542254
query_params,
22552255
header_params,
@@ -2346,7 +2346,7 @@ def disable_scaling_policy_with_http_info(self, body, **kwargs): # noqa: E501
23462346
auth_settings = ['volcengineSign'] # noqa: E501
23472347

23482348
return self.api_client.call_api(
2349-
'/DisableScalingPolicy/2020-01-01/auto_scaling/get/', 'GET',
2349+
'/DisableScalingPolicy/2020-01-01/auto_scaling/get/text_plain/', 'GET',
23502350
path_params,
23512351
query_params,
23522352
header_params,
@@ -2443,7 +2443,7 @@ def enable_scaling_configuration_with_http_info(self, body, **kwargs): # noqa:
24432443
auth_settings = ['volcengineSign'] # noqa: E501
24442444

24452445
return self.api_client.call_api(
2446-
'/EnableScalingConfiguration/2020-01-01/auto_scaling/get/', 'GET',
2446+
'/EnableScalingConfiguration/2020-01-01/auto_scaling/get/text_plain/', 'GET',
24472447
path_params,
24482448
query_params,
24492449
header_params,
@@ -2540,7 +2540,7 @@ def enable_scaling_group_with_http_info(self, body, **kwargs): # noqa: E501
25402540
auth_settings = ['volcengineSign'] # noqa: E501
25412541

25422542
return self.api_client.call_api(
2543-
'/EnableScalingGroup/2020-01-01/auto_scaling/get/', 'GET',
2543+
'/EnableScalingGroup/2020-01-01/auto_scaling/get/text_plain/', 'GET',
25442544
path_params,
25452545
query_params,
25462546
header_params,
@@ -2637,7 +2637,7 @@ def enable_scaling_policy_with_http_info(self, body, **kwargs): # noqa: E501
26372637
auth_settings = ['volcengineSign'] # noqa: E501
26382638

26392639
return self.api_client.call_api(
2640-
'/EnableScalingPolicy/2020-01-01/auto_scaling/get/', 'GET',
2640+
'/EnableScalingPolicy/2020-01-01/auto_scaling/get/text_plain/', 'GET',
26412641
path_params,
26422642
query_params,
26432643
header_params,
@@ -2734,7 +2734,7 @@ def modify_lifecycle_hook_with_http_info(self, body, **kwargs): # noqa: E501
27342734
auth_settings = ['volcengineSign'] # noqa: E501
27352735

27362736
return self.api_client.call_api(
2737-
'/ModifyLifecycleHook/2020-01-01/auto_scaling/get/', 'GET',
2737+
'/ModifyLifecycleHook/2020-01-01/auto_scaling/get/text_plain/', 'GET',
27382738
path_params,
27392739
query_params,
27402740
header_params,
@@ -2831,7 +2831,7 @@ def modify_scaling_configuration_with_http_info(self, body, **kwargs): # noqa:
28312831
auth_settings = ['volcengineSign'] # noqa: E501
28322832

28332833
return self.api_client.call_api(
2834-
'/ModifyScalingConfiguration/2020-01-01/auto_scaling/get/', 'GET',
2834+
'/ModifyScalingConfiguration/2020-01-01/auto_scaling/get/text_plain/', 'GET',
28352835
path_params,
28362836
query_params,
28372837
header_params,
@@ -2928,7 +2928,7 @@ def modify_scaling_group_with_http_info(self, body, **kwargs): # noqa: E501
29282928
auth_settings = ['volcengineSign'] # noqa: E501
29292929

29302930
return self.api_client.call_api(
2931-
'/ModifyScalingGroup/2020-01-01/auto_scaling/get/', 'GET',
2931+
'/ModifyScalingGroup/2020-01-01/auto_scaling/get/text_plain/', 'GET',
29322932
path_params,
29332933
query_params,
29342934
header_params,
@@ -3025,7 +3025,7 @@ def modify_scaling_policy_with_http_info(self, body, **kwargs): # noqa: E501
30253025
auth_settings = ['volcengineSign'] # noqa: E501
30263026

30273027
return self.api_client.call_api(
3028-
'/ModifyScalingPolicy/2020-01-01/auto_scaling/get/', 'GET',
3028+
'/ModifyScalingPolicy/2020-01-01/auto_scaling/get/text_plain/', 'GET',
30293029
path_params,
30303030
query_params,
30313031
header_params,
@@ -3122,7 +3122,7 @@ def remove_instances_with_http_info(self, body, **kwargs): # noqa: E501
31223122
auth_settings = ['volcengineSign'] # noqa: E501
31233123

31243124
return self.api_client.call_api(
3125-
'/RemoveInstances/2020-01-01/auto_scaling/get/', 'GET',
3125+
'/RemoveInstances/2020-01-01/auto_scaling/get/text_plain/', 'GET',
31263126
path_params,
31273127
query_params,
31283128
header_params,
@@ -3219,7 +3219,7 @@ def set_instances_protection_with_http_info(self, body, **kwargs): # noqa: E501
32193219
auth_settings = ['volcengineSign'] # noqa: E501
32203220

32213221
return self.api_client.call_api(
3222-
'/SetInstancesProtection/2020-01-01/auto_scaling/get/', 'GET',
3222+
'/SetInstancesProtection/2020-01-01/auto_scaling/get/text_plain/', 'GET',
32233223
path_params,
32243224
query_params,
32253225
header_params,

volcenginesdkautoscaling/models/attach_instances_request.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,7 @@ def __init__(self, entrusted=None, instance_ids=None, scaling_group_id=None, _co
5959
self.entrusted = entrusted
6060
if instance_ids is not None:
6161
self.instance_ids = instance_ids
62-
if scaling_group_id is not None:
63-
self.scaling_group_id = scaling_group_id
62+
self.scaling_group_id = scaling_group_id
6463

6564
@property
6665
def entrusted(self):
@@ -122,6 +121,8 @@ def scaling_group_id(self, scaling_group_id):
122121
:param scaling_group_id: The scaling_group_id of this AttachInstancesRequest. # noqa: E501
123122
:type: str
124123
"""
124+
if self._configuration.client_side_validation and scaling_group_id is None:
125+
raise ValueError("Invalid value for `scaling_group_id`, must not be `None`") # noqa: E501
125126

126127
self._scaling_group_id = scaling_group_id
127128

volcenginesdkautoscaling/models/attach_server_groups_request.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,7 @@ def __init__(self, scaling_group_id=None, server_group_attributes=None, _configu
5252
self._server_group_attributes = None
5353
self.discriminator = None
5454

55-
if scaling_group_id is not None:
56-
self.scaling_group_id = scaling_group_id
55+
self.scaling_group_id = scaling_group_id
5756
if server_group_attributes is not None:
5857
self.server_group_attributes = server_group_attributes
5958

@@ -75,6 +74,8 @@ def scaling_group_id(self, scaling_group_id):
7574
:param scaling_group_id: The scaling_group_id of this AttachServerGroupsRequest. # noqa: E501
7675
:type: str
7776
"""
77+
if self._configuration.client_side_validation and scaling_group_id is None:
78+
raise ValueError("Invalid value for `scaling_group_id`, must not be `None`") # noqa: E501
7879

7980
self._scaling_group_id = scaling_group_id
8081

0 commit comments

Comments
 (0)