alibabacloud-privatelink20200415 4.0.2__py3-none-any.whl → 4.0.4__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.
@@ -86,16 +86,10 @@ class Client(OpenApiClient):
86
86
  req_body_type='formData',
87
87
  body_type='json'
88
88
  )
89
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
90
- return TeaCore.from_map(
91
- privatelink_20200415_models.AddUserToVpcEndpointServiceResponse(),
92
- self.call_api(params, req, runtime)
93
- )
94
- else:
95
- return TeaCore.from_map(
96
- privatelink_20200415_models.AddUserToVpcEndpointServiceResponse(),
97
- self.execute(params, req, runtime)
98
- )
89
+ return TeaCore.from_map(
90
+ privatelink_20200415_models.AddUserToVpcEndpointServiceResponse(),
91
+ self.call_api(params, req, runtime)
92
+ )
99
93
 
100
94
  async def add_user_to_vpc_endpoint_service_with_options_async(
101
95
  self,
@@ -142,16 +136,10 @@ class Client(OpenApiClient):
142
136
  req_body_type='formData',
143
137
  body_type='json'
144
138
  )
145
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
146
- return TeaCore.from_map(
147
- privatelink_20200415_models.AddUserToVpcEndpointServiceResponse(),
148
- await self.call_api_async(params, req, runtime)
149
- )
150
- else:
151
- return TeaCore.from_map(
152
- privatelink_20200415_models.AddUserToVpcEndpointServiceResponse(),
153
- await self.execute_async(params, req, runtime)
154
- )
139
+ return TeaCore.from_map(
140
+ privatelink_20200415_models.AddUserToVpcEndpointServiceResponse(),
141
+ await self.call_api_async(params, req, runtime)
142
+ )
155
143
 
156
144
  def add_user_to_vpc_endpoint_service(
157
145
  self,
@@ -236,16 +224,10 @@ class Client(OpenApiClient):
236
224
  req_body_type='formData',
237
225
  body_type='json'
238
226
  )
239
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
240
- return TeaCore.from_map(
241
- privatelink_20200415_models.AddZoneToVpcEndpointResponse(),
242
- self.call_api(params, req, runtime)
243
- )
244
- else:
245
- return TeaCore.from_map(
246
- privatelink_20200415_models.AddZoneToVpcEndpointResponse(),
247
- self.execute(params, req, runtime)
248
- )
227
+ return TeaCore.from_map(
228
+ privatelink_20200415_models.AddZoneToVpcEndpointResponse(),
229
+ self.call_api(params, req, runtime)
230
+ )
249
231
 
250
232
  async def add_zone_to_vpc_endpoint_with_options_async(
251
233
  self,
@@ -298,16 +280,10 @@ class Client(OpenApiClient):
298
280
  req_body_type='formData',
299
281
  body_type='json'
300
282
  )
301
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
302
- return TeaCore.from_map(
303
- privatelink_20200415_models.AddZoneToVpcEndpointResponse(),
304
- await self.call_api_async(params, req, runtime)
305
- )
306
- else:
307
- return TeaCore.from_map(
308
- privatelink_20200415_models.AddZoneToVpcEndpointResponse(),
309
- await self.execute_async(params, req, runtime)
310
- )
283
+ return TeaCore.from_map(
284
+ privatelink_20200415_models.AddZoneToVpcEndpointResponse(),
285
+ await self.call_api_async(params, req, runtime)
286
+ )
311
287
 
312
288
  def add_zone_to_vpc_endpoint(
313
289
  self,
@@ -392,16 +368,10 @@ class Client(OpenApiClient):
392
368
  req_body_type='formData',
393
369
  body_type='json'
394
370
  )
395
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
396
- return TeaCore.from_map(
397
- privatelink_20200415_models.AttachResourceToVpcEndpointServiceResponse(),
398
- self.call_api(params, req, runtime)
399
- )
400
- else:
401
- return TeaCore.from_map(
402
- privatelink_20200415_models.AttachResourceToVpcEndpointServiceResponse(),
403
- self.execute(params, req, runtime)
404
- )
371
+ return TeaCore.from_map(
372
+ privatelink_20200415_models.AttachResourceToVpcEndpointServiceResponse(),
373
+ self.call_api(params, req, runtime)
374
+ )
405
375
 
406
376
  async def attach_resource_to_vpc_endpoint_service_with_options_async(
407
377
  self,
@@ -450,16 +420,10 @@ class Client(OpenApiClient):
450
420
  req_body_type='formData',
451
421
  body_type='json'
452
422
  )
453
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
454
- return TeaCore.from_map(
455
- privatelink_20200415_models.AttachResourceToVpcEndpointServiceResponse(),
456
- await self.call_api_async(params, req, runtime)
457
- )
458
- else:
459
- return TeaCore.from_map(
460
- privatelink_20200415_models.AttachResourceToVpcEndpointServiceResponse(),
461
- await self.execute_async(params, req, runtime)
462
- )
423
+ return TeaCore.from_map(
424
+ privatelink_20200415_models.AttachResourceToVpcEndpointServiceResponse(),
425
+ await self.call_api_async(params, req, runtime)
426
+ )
463
427
 
464
428
  def attach_resource_to_vpc_endpoint_service(
465
429
  self,
@@ -538,16 +502,10 @@ class Client(OpenApiClient):
538
502
  req_body_type='formData',
539
503
  body_type='json'
540
504
  )
541
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
542
- return TeaCore.from_map(
543
- privatelink_20200415_models.AttachSecurityGroupToVpcEndpointResponse(),
544
- self.call_api(params, req, runtime)
545
- )
546
- else:
547
- return TeaCore.from_map(
548
- privatelink_20200415_models.AttachSecurityGroupToVpcEndpointResponse(),
549
- self.execute(params, req, runtime)
550
- )
505
+ return TeaCore.from_map(
506
+ privatelink_20200415_models.AttachSecurityGroupToVpcEndpointResponse(),
507
+ self.call_api(params, req, runtime)
508
+ )
551
509
 
552
510
  async def attach_security_group_to_vpc_endpoint_with_options_async(
553
511
  self,
@@ -594,16 +552,10 @@ class Client(OpenApiClient):
594
552
  req_body_type='formData',
595
553
  body_type='json'
596
554
  )
597
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
598
- return TeaCore.from_map(
599
- privatelink_20200415_models.AttachSecurityGroupToVpcEndpointResponse(),
600
- await self.call_api_async(params, req, runtime)
601
- )
602
- else:
603
- return TeaCore.from_map(
604
- privatelink_20200415_models.AttachSecurityGroupToVpcEndpointResponse(),
605
- await self.execute_async(params, req, runtime)
606
- )
555
+ return TeaCore.from_map(
556
+ privatelink_20200415_models.AttachSecurityGroupToVpcEndpointResponse(),
557
+ await self.call_api_async(params, req, runtime)
558
+ )
607
559
 
608
560
  def attach_security_group_to_vpc_endpoint(
609
561
  self,
@@ -675,16 +627,10 @@ class Client(OpenApiClient):
675
627
  req_body_type='formData',
676
628
  body_type='json'
677
629
  )
678
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
679
- return TeaCore.from_map(
680
- privatelink_20200415_models.ChangeResourceGroupResponse(),
681
- self.call_api(params, req, runtime)
682
- )
683
- else:
684
- return TeaCore.from_map(
685
- privatelink_20200415_models.ChangeResourceGroupResponse(),
686
- self.execute(params, req, runtime)
687
- )
630
+ return TeaCore.from_map(
631
+ privatelink_20200415_models.ChangeResourceGroupResponse(),
632
+ self.call_api(params, req, runtime)
633
+ )
688
634
 
689
635
  async def change_resource_group_with_options_async(
690
636
  self,
@@ -720,16 +666,10 @@ class Client(OpenApiClient):
720
666
  req_body_type='formData',
721
667
  body_type='json'
722
668
  )
723
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
724
- return TeaCore.from_map(
725
- privatelink_20200415_models.ChangeResourceGroupResponse(),
726
- await self.call_api_async(params, req, runtime)
727
- )
728
- else:
729
- return TeaCore.from_map(
730
- privatelink_20200415_models.ChangeResourceGroupResponse(),
731
- await self.execute_async(params, req, runtime)
732
- )
669
+ return TeaCore.from_map(
670
+ privatelink_20200415_models.ChangeResourceGroupResponse(),
671
+ await self.call_api_async(params, req, runtime)
672
+ )
733
673
 
734
674
  def change_resource_group(
735
675
  self,
@@ -780,16 +720,10 @@ class Client(OpenApiClient):
780
720
  req_body_type='formData',
781
721
  body_type='json'
782
722
  )
783
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
784
- return TeaCore.from_map(
785
- privatelink_20200415_models.CheckProductOpenResponse(),
786
- self.call_api(params, req, runtime)
787
- )
788
- else:
789
- return TeaCore.from_map(
790
- privatelink_20200415_models.CheckProductOpenResponse(),
791
- self.execute(params, req, runtime)
792
- )
723
+ return TeaCore.from_map(
724
+ privatelink_20200415_models.CheckProductOpenResponse(),
725
+ self.call_api(params, req, runtime)
726
+ )
793
727
 
794
728
  async def check_product_open_with_options_async(
795
729
  self,
@@ -814,16 +748,10 @@ class Client(OpenApiClient):
814
748
  req_body_type='formData',
815
749
  body_type='json'
816
750
  )
817
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
818
- return TeaCore.from_map(
819
- privatelink_20200415_models.CheckProductOpenResponse(),
820
- await self.call_api_async(params, req, runtime)
821
- )
822
- else:
823
- return TeaCore.from_map(
824
- privatelink_20200415_models.CheckProductOpenResponse(),
825
- await self.execute_async(params, req, runtime)
826
- )
751
+ return TeaCore.from_map(
752
+ privatelink_20200415_models.CheckProductOpenResponse(),
753
+ await self.call_api_async(params, req, runtime)
754
+ )
827
755
 
828
756
  def check_product_open(self) -> privatelink_20200415_models.CheckProductOpenResponse:
829
757
  """
@@ -895,6 +823,8 @@ class Client(OpenApiClient):
895
823
  query['VpcId'] = request.vpc_id
896
824
  if not UtilClient.is_unset(request.zone):
897
825
  query['Zone'] = request.zone
826
+ if not UtilClient.is_unset(request.zone_affinity_enabled):
827
+ query['ZoneAffinityEnabled'] = request.zone_affinity_enabled
898
828
  if not UtilClient.is_unset(request.zone_private_ip_address_count):
899
829
  query['ZonePrivateIpAddressCount'] = request.zone_private_ip_address_count
900
830
  req = open_api_models.OpenApiRequest(
@@ -911,16 +841,10 @@ class Client(OpenApiClient):
911
841
  req_body_type='formData',
912
842
  body_type='json'
913
843
  )
914
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
915
- return TeaCore.from_map(
916
- privatelink_20200415_models.CreateVpcEndpointResponse(),
917
- self.call_api(params, req, runtime)
918
- )
919
- else:
920
- return TeaCore.from_map(
921
- privatelink_20200415_models.CreateVpcEndpointResponse(),
922
- self.execute(params, req, runtime)
923
- )
844
+ return TeaCore.from_map(
845
+ privatelink_20200415_models.CreateVpcEndpointResponse(),
846
+ self.call_api(params, req, runtime)
847
+ )
924
848
 
925
849
  async def create_vpc_endpoint_with_options_async(
926
850
  self,
@@ -974,6 +898,8 @@ class Client(OpenApiClient):
974
898
  query['VpcId'] = request.vpc_id
975
899
  if not UtilClient.is_unset(request.zone):
976
900
  query['Zone'] = request.zone
901
+ if not UtilClient.is_unset(request.zone_affinity_enabled):
902
+ query['ZoneAffinityEnabled'] = request.zone_affinity_enabled
977
903
  if not UtilClient.is_unset(request.zone_private_ip_address_count):
978
904
  query['ZonePrivateIpAddressCount'] = request.zone_private_ip_address_count
979
905
  req = open_api_models.OpenApiRequest(
@@ -990,16 +916,10 @@ class Client(OpenApiClient):
990
916
  req_body_type='formData',
991
917
  body_type='json'
992
918
  )
993
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
994
- return TeaCore.from_map(
995
- privatelink_20200415_models.CreateVpcEndpointResponse(),
996
- await self.call_api_async(params, req, runtime)
997
- )
998
- else:
999
- return TeaCore.from_map(
1000
- privatelink_20200415_models.CreateVpcEndpointResponse(),
1001
- await self.execute_async(params, req, runtime)
1002
- )
919
+ return TeaCore.from_map(
920
+ privatelink_20200415_models.CreateVpcEndpointResponse(),
921
+ await self.call_api_async(params, req, runtime)
922
+ )
1003
923
 
1004
924
  def create_vpc_endpoint(
1005
925
  self,
@@ -1096,16 +1016,10 @@ class Client(OpenApiClient):
1096
1016
  req_body_type='formData',
1097
1017
  body_type='json'
1098
1018
  )
1099
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1100
- return TeaCore.from_map(
1101
- privatelink_20200415_models.CreateVpcEndpointServiceResponse(),
1102
- self.call_api(params, req, runtime)
1103
- )
1104
- else:
1105
- return TeaCore.from_map(
1106
- privatelink_20200415_models.CreateVpcEndpointServiceResponse(),
1107
- self.execute(params, req, runtime)
1108
- )
1019
+ return TeaCore.from_map(
1020
+ privatelink_20200415_models.CreateVpcEndpointServiceResponse(),
1021
+ self.call_api(params, req, runtime)
1022
+ )
1109
1023
 
1110
1024
  async def create_vpc_endpoint_service_with_options_async(
1111
1025
  self,
@@ -1168,16 +1082,10 @@ class Client(OpenApiClient):
1168
1082
  req_body_type='formData',
1169
1083
  body_type='json'
1170
1084
  )
1171
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1172
- return TeaCore.from_map(
1173
- privatelink_20200415_models.CreateVpcEndpointServiceResponse(),
1174
- await self.call_api_async(params, req, runtime)
1175
- )
1176
- else:
1177
- return TeaCore.from_map(
1178
- privatelink_20200415_models.CreateVpcEndpointServiceResponse(),
1179
- await self.execute_async(params, req, runtime)
1180
- )
1085
+ return TeaCore.from_map(
1086
+ privatelink_20200415_models.CreateVpcEndpointServiceResponse(),
1087
+ await self.call_api_async(params, req, runtime)
1088
+ )
1181
1089
 
1182
1090
  def create_vpc_endpoint_service(
1183
1091
  self,
@@ -1258,16 +1166,10 @@ class Client(OpenApiClient):
1258
1166
  req_body_type='formData',
1259
1167
  body_type='json'
1260
1168
  )
1261
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1262
- return TeaCore.from_map(
1263
- privatelink_20200415_models.DeleteVpcEndpointResponse(),
1264
- self.call_api(params, req, runtime)
1265
- )
1266
- else:
1267
- return TeaCore.from_map(
1268
- privatelink_20200415_models.DeleteVpcEndpointResponse(),
1269
- self.execute(params, req, runtime)
1270
- )
1169
+ return TeaCore.from_map(
1170
+ privatelink_20200415_models.DeleteVpcEndpointResponse(),
1171
+ self.call_api(params, req, runtime)
1172
+ )
1271
1173
 
1272
1174
  async def delete_vpc_endpoint_with_options_async(
1273
1175
  self,
@@ -1312,16 +1214,10 @@ class Client(OpenApiClient):
1312
1214
  req_body_type='formData',
1313
1215
  body_type='json'
1314
1216
  )
1315
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1316
- return TeaCore.from_map(
1317
- privatelink_20200415_models.DeleteVpcEndpointResponse(),
1318
- await self.call_api_async(params, req, runtime)
1319
- )
1320
- else:
1321
- return TeaCore.from_map(
1322
- privatelink_20200415_models.DeleteVpcEndpointResponse(),
1323
- await self.execute_async(params, req, runtime)
1324
- )
1217
+ return TeaCore.from_map(
1218
+ privatelink_20200415_models.DeleteVpcEndpointResponse(),
1219
+ await self.call_api_async(params, req, runtime)
1220
+ )
1325
1221
 
1326
1222
  def delete_vpc_endpoint(
1327
1223
  self,
@@ -1403,16 +1299,10 @@ class Client(OpenApiClient):
1403
1299
  req_body_type='formData',
1404
1300
  body_type='json'
1405
1301
  )
1406
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1407
- return TeaCore.from_map(
1408
- privatelink_20200415_models.DeleteVpcEndpointServiceResponse(),
1409
- self.call_api(params, req, runtime)
1410
- )
1411
- else:
1412
- return TeaCore.from_map(
1413
- privatelink_20200415_models.DeleteVpcEndpointServiceResponse(),
1414
- self.execute(params, req, runtime)
1415
- )
1302
+ return TeaCore.from_map(
1303
+ privatelink_20200415_models.DeleteVpcEndpointServiceResponse(),
1304
+ self.call_api(params, req, runtime)
1305
+ )
1416
1306
 
1417
1307
  async def delete_vpc_endpoint_service_with_options_async(
1418
1308
  self,
@@ -1458,16 +1348,10 @@ class Client(OpenApiClient):
1458
1348
  req_body_type='formData',
1459
1349
  body_type='json'
1460
1350
  )
1461
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1462
- return TeaCore.from_map(
1463
- privatelink_20200415_models.DeleteVpcEndpointServiceResponse(),
1464
- await self.call_api_async(params, req, runtime)
1465
- )
1466
- else:
1467
- return TeaCore.from_map(
1468
- privatelink_20200415_models.DeleteVpcEndpointServiceResponse(),
1469
- await self.execute_async(params, req, runtime)
1470
- )
1351
+ return TeaCore.from_map(
1352
+ privatelink_20200415_models.DeleteVpcEndpointServiceResponse(),
1353
+ await self.call_api_async(params, req, runtime)
1354
+ )
1471
1355
 
1472
1356
  def delete_vpc_endpoint_service(
1473
1357
  self,
@@ -1541,16 +1425,10 @@ class Client(OpenApiClient):
1541
1425
  req_body_type='formData',
1542
1426
  body_type='json'
1543
1427
  )
1544
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1545
- return TeaCore.from_map(
1546
- privatelink_20200415_models.DescribeRegionsResponse(),
1547
- self.call_api(params, req, runtime)
1548
- )
1549
- else:
1550
- return TeaCore.from_map(
1551
- privatelink_20200415_models.DescribeRegionsResponse(),
1552
- self.execute(params, req, runtime)
1553
- )
1428
+ return TeaCore.from_map(
1429
+ privatelink_20200415_models.DescribeRegionsResponse(),
1430
+ self.call_api(params, req, runtime)
1431
+ )
1554
1432
 
1555
1433
  async def describe_regions_with_options_async(
1556
1434
  self,
@@ -1586,16 +1464,10 @@ class Client(OpenApiClient):
1586
1464
  req_body_type='formData',
1587
1465
  body_type='json'
1588
1466
  )
1589
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1590
- return TeaCore.from_map(
1591
- privatelink_20200415_models.DescribeRegionsResponse(),
1592
- await self.call_api_async(params, req, runtime)
1593
- )
1594
- else:
1595
- return TeaCore.from_map(
1596
- privatelink_20200415_models.DescribeRegionsResponse(),
1597
- await self.execute_async(params, req, runtime)
1598
- )
1467
+ return TeaCore.from_map(
1468
+ privatelink_20200415_models.DescribeRegionsResponse(),
1469
+ await self.call_api_async(params, req, runtime)
1470
+ )
1599
1471
 
1600
1472
  def describe_regions(
1601
1473
  self,
@@ -1657,16 +1529,10 @@ class Client(OpenApiClient):
1657
1529
  req_body_type='formData',
1658
1530
  body_type='json'
1659
1531
  )
1660
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1661
- return TeaCore.from_map(
1662
- privatelink_20200415_models.DescribeZonesResponse(),
1663
- self.call_api(params, req, runtime)
1664
- )
1665
- else:
1666
- return TeaCore.from_map(
1667
- privatelink_20200415_models.DescribeZonesResponse(),
1668
- self.execute(params, req, runtime)
1669
- )
1532
+ return TeaCore.from_map(
1533
+ privatelink_20200415_models.DescribeZonesResponse(),
1534
+ self.call_api(params, req, runtime)
1535
+ )
1670
1536
 
1671
1537
  async def describe_zones_with_options_async(
1672
1538
  self,
@@ -1702,16 +1568,10 @@ class Client(OpenApiClient):
1702
1568
  req_body_type='formData',
1703
1569
  body_type='json'
1704
1570
  )
1705
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1706
- return TeaCore.from_map(
1707
- privatelink_20200415_models.DescribeZonesResponse(),
1708
- await self.call_api_async(params, req, runtime)
1709
- )
1710
- else:
1711
- return TeaCore.from_map(
1712
- privatelink_20200415_models.DescribeZonesResponse(),
1713
- await self.execute_async(params, req, runtime)
1714
- )
1571
+ return TeaCore.from_map(
1572
+ privatelink_20200415_models.DescribeZonesResponse(),
1573
+ await self.call_api_async(params, req, runtime)
1574
+ )
1715
1575
 
1716
1576
  def describe_zones(
1717
1577
  self,
@@ -1786,16 +1646,10 @@ class Client(OpenApiClient):
1786
1646
  req_body_type='formData',
1787
1647
  body_type='json'
1788
1648
  )
1789
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1790
- return TeaCore.from_map(
1791
- privatelink_20200415_models.DetachResourceFromVpcEndpointServiceResponse(),
1792
- self.call_api(params, req, runtime)
1793
- )
1794
- else:
1795
- return TeaCore.from_map(
1796
- privatelink_20200415_models.DetachResourceFromVpcEndpointServiceResponse(),
1797
- self.execute(params, req, runtime)
1798
- )
1649
+ return TeaCore.from_map(
1650
+ privatelink_20200415_models.DetachResourceFromVpcEndpointServiceResponse(),
1651
+ self.call_api(params, req, runtime)
1652
+ )
1799
1653
 
1800
1654
  async def detach_resource_from_vpc_endpoint_service_with_options_async(
1801
1655
  self,
@@ -1844,16 +1698,10 @@ class Client(OpenApiClient):
1844
1698
  req_body_type='formData',
1845
1699
  body_type='json'
1846
1700
  )
1847
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1848
- return TeaCore.from_map(
1849
- privatelink_20200415_models.DetachResourceFromVpcEndpointServiceResponse(),
1850
- await self.call_api_async(params, req, runtime)
1851
- )
1852
- else:
1853
- return TeaCore.from_map(
1854
- privatelink_20200415_models.DetachResourceFromVpcEndpointServiceResponse(),
1855
- await self.execute_async(params, req, runtime)
1856
- )
1701
+ return TeaCore.from_map(
1702
+ privatelink_20200415_models.DetachResourceFromVpcEndpointServiceResponse(),
1703
+ await self.call_api_async(params, req, runtime)
1704
+ )
1857
1705
 
1858
1706
  def detach_resource_from_vpc_endpoint_service(
1859
1707
  self,
@@ -1932,16 +1780,10 @@ class Client(OpenApiClient):
1932
1780
  req_body_type='formData',
1933
1781
  body_type='json'
1934
1782
  )
1935
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1936
- return TeaCore.from_map(
1937
- privatelink_20200415_models.DetachSecurityGroupFromVpcEndpointResponse(),
1938
- self.call_api(params, req, runtime)
1939
- )
1940
- else:
1941
- return TeaCore.from_map(
1942
- privatelink_20200415_models.DetachSecurityGroupFromVpcEndpointResponse(),
1943
- self.execute(params, req, runtime)
1944
- )
1783
+ return TeaCore.from_map(
1784
+ privatelink_20200415_models.DetachSecurityGroupFromVpcEndpointResponse(),
1785
+ self.call_api(params, req, runtime)
1786
+ )
1945
1787
 
1946
1788
  async def detach_security_group_from_vpc_endpoint_with_options_async(
1947
1789
  self,
@@ -1988,16 +1830,10 @@ class Client(OpenApiClient):
1988
1830
  req_body_type='formData',
1989
1831
  body_type='json'
1990
1832
  )
1991
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
1992
- return TeaCore.from_map(
1993
- privatelink_20200415_models.DetachSecurityGroupFromVpcEndpointResponse(),
1994
- await self.call_api_async(params, req, runtime)
1995
- )
1996
- else:
1997
- return TeaCore.from_map(
1998
- privatelink_20200415_models.DetachSecurityGroupFromVpcEndpointResponse(),
1999
- await self.execute_async(params, req, runtime)
2000
- )
1833
+ return TeaCore.from_map(
1834
+ privatelink_20200415_models.DetachSecurityGroupFromVpcEndpointResponse(),
1835
+ await self.call_api_async(params, req, runtime)
1836
+ )
2001
1837
 
2002
1838
  def detach_security_group_from_vpc_endpoint(
2003
1839
  self,
@@ -2080,16 +1916,10 @@ class Client(OpenApiClient):
2080
1916
  req_body_type='formData',
2081
1917
  body_type='json'
2082
1918
  )
2083
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2084
- return TeaCore.from_map(
2085
- privatelink_20200415_models.DisableVpcEndpointConnectionResponse(),
2086
- self.call_api(params, req, runtime)
2087
- )
2088
- else:
2089
- return TeaCore.from_map(
2090
- privatelink_20200415_models.DisableVpcEndpointConnectionResponse(),
2091
- self.execute(params, req, runtime)
2092
- )
1919
+ return TeaCore.from_map(
1920
+ privatelink_20200415_models.DisableVpcEndpointConnectionResponse(),
1921
+ self.call_api(params, req, runtime)
1922
+ )
2093
1923
 
2094
1924
  async def disable_vpc_endpoint_connection_with_options_async(
2095
1925
  self,
@@ -2136,16 +1966,10 @@ class Client(OpenApiClient):
2136
1966
  req_body_type='formData',
2137
1967
  body_type='json'
2138
1968
  )
2139
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2140
- return TeaCore.from_map(
2141
- privatelink_20200415_models.DisableVpcEndpointConnectionResponse(),
2142
- await self.call_api_async(params, req, runtime)
2143
- )
2144
- else:
2145
- return TeaCore.from_map(
2146
- privatelink_20200415_models.DisableVpcEndpointConnectionResponse(),
2147
- await self.execute_async(params, req, runtime)
2148
- )
1969
+ return TeaCore.from_map(
1970
+ privatelink_20200415_models.DisableVpcEndpointConnectionResponse(),
1971
+ await self.call_api_async(params, req, runtime)
1972
+ )
2149
1973
 
2150
1974
  def disable_vpc_endpoint_connection(
2151
1975
  self,
@@ -2233,16 +2057,10 @@ class Client(OpenApiClient):
2233
2057
  req_body_type='formData',
2234
2058
  body_type='json'
2235
2059
  )
2236
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2237
- return TeaCore.from_map(
2238
- privatelink_20200415_models.DisableVpcEndpointZoneConnectionResponse(),
2239
- self.call_api(params, req, runtime)
2240
- )
2241
- else:
2242
- return TeaCore.from_map(
2243
- privatelink_20200415_models.DisableVpcEndpointZoneConnectionResponse(),
2244
- self.execute(params, req, runtime)
2245
- )
2060
+ return TeaCore.from_map(
2061
+ privatelink_20200415_models.DisableVpcEndpointZoneConnectionResponse(),
2062
+ self.call_api(params, req, runtime)
2063
+ )
2246
2064
 
2247
2065
  async def disable_vpc_endpoint_zone_connection_with_options_async(
2248
2066
  self,
@@ -2294,16 +2112,10 @@ class Client(OpenApiClient):
2294
2112
  req_body_type='formData',
2295
2113
  body_type='json'
2296
2114
  )
2297
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2298
- return TeaCore.from_map(
2299
- privatelink_20200415_models.DisableVpcEndpointZoneConnectionResponse(),
2300
- await self.call_api_async(params, req, runtime)
2301
- )
2302
- else:
2303
- return TeaCore.from_map(
2304
- privatelink_20200415_models.DisableVpcEndpointZoneConnectionResponse(),
2305
- await self.execute_async(params, req, runtime)
2306
- )
2115
+ return TeaCore.from_map(
2116
+ privatelink_20200415_models.DisableVpcEndpointZoneConnectionResponse(),
2117
+ await self.call_api_async(params, req, runtime)
2118
+ )
2307
2119
 
2308
2120
  def disable_vpc_endpoint_zone_connection(
2309
2121
  self,
@@ -2376,6 +2188,8 @@ class Client(OpenApiClient):
2376
2188
  query['RegionId'] = request.region_id
2377
2189
  if not UtilClient.is_unset(request.service_id):
2378
2190
  query['ServiceId'] = request.service_id
2191
+ if not UtilClient.is_unset(request.traffic_control_mode):
2192
+ query['TrafficControlMode'] = request.traffic_control_mode
2379
2193
  req = open_api_models.OpenApiRequest(
2380
2194
  query=OpenApiUtilClient.query(query)
2381
2195
  )
@@ -2390,16 +2204,10 @@ class Client(OpenApiClient):
2390
2204
  req_body_type='formData',
2391
2205
  body_type='json'
2392
2206
  )
2393
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2394
- return TeaCore.from_map(
2395
- privatelink_20200415_models.EnableVpcEndpointConnectionResponse(),
2396
- self.call_api(params, req, runtime)
2397
- )
2398
- else:
2399
- return TeaCore.from_map(
2400
- privatelink_20200415_models.EnableVpcEndpointConnectionResponse(),
2401
- self.execute(params, req, runtime)
2402
- )
2207
+ return TeaCore.from_map(
2208
+ privatelink_20200415_models.EnableVpcEndpointConnectionResponse(),
2209
+ self.call_api(params, req, runtime)
2210
+ )
2403
2211
 
2404
2212
  async def enable_vpc_endpoint_connection_with_options_async(
2405
2213
  self,
@@ -2434,6 +2242,8 @@ class Client(OpenApiClient):
2434
2242
  query['RegionId'] = request.region_id
2435
2243
  if not UtilClient.is_unset(request.service_id):
2436
2244
  query['ServiceId'] = request.service_id
2245
+ if not UtilClient.is_unset(request.traffic_control_mode):
2246
+ query['TrafficControlMode'] = request.traffic_control_mode
2437
2247
  req = open_api_models.OpenApiRequest(
2438
2248
  query=OpenApiUtilClient.query(query)
2439
2249
  )
@@ -2448,16 +2258,10 @@ class Client(OpenApiClient):
2448
2258
  req_body_type='formData',
2449
2259
  body_type='json'
2450
2260
  )
2451
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2452
- return TeaCore.from_map(
2453
- privatelink_20200415_models.EnableVpcEndpointConnectionResponse(),
2454
- await self.call_api_async(params, req, runtime)
2455
- )
2456
- else:
2457
- return TeaCore.from_map(
2458
- privatelink_20200415_models.EnableVpcEndpointConnectionResponse(),
2459
- await self.execute_async(params, req, runtime)
2460
- )
2261
+ return TeaCore.from_map(
2262
+ privatelink_20200415_models.EnableVpcEndpointConnectionResponse(),
2263
+ await self.call_api_async(params, req, runtime)
2264
+ )
2461
2265
 
2462
2266
  def enable_vpc_endpoint_connection(
2463
2267
  self,
@@ -2543,16 +2347,10 @@ class Client(OpenApiClient):
2543
2347
  req_body_type='formData',
2544
2348
  body_type='json'
2545
2349
  )
2546
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2547
- return TeaCore.from_map(
2548
- privatelink_20200415_models.EnableVpcEndpointZoneConnectionResponse(),
2549
- self.call_api(params, req, runtime)
2550
- )
2551
- else:
2552
- return TeaCore.from_map(
2553
- privatelink_20200415_models.EnableVpcEndpointZoneConnectionResponse(),
2554
- self.execute(params, req, runtime)
2555
- )
2350
+ return TeaCore.from_map(
2351
+ privatelink_20200415_models.EnableVpcEndpointZoneConnectionResponse(),
2352
+ self.call_api(params, req, runtime)
2353
+ )
2556
2354
 
2557
2355
  async def enable_vpc_endpoint_zone_connection_with_options_async(
2558
2356
  self,
@@ -2602,16 +2400,10 @@ class Client(OpenApiClient):
2602
2400
  req_body_type='formData',
2603
2401
  body_type='json'
2604
2402
  )
2605
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2606
- return TeaCore.from_map(
2607
- privatelink_20200415_models.EnableVpcEndpointZoneConnectionResponse(),
2608
- await self.call_api_async(params, req, runtime)
2609
- )
2610
- else:
2611
- return TeaCore.from_map(
2612
- privatelink_20200415_models.EnableVpcEndpointZoneConnectionResponse(),
2613
- await self.execute_async(params, req, runtime)
2614
- )
2403
+ return TeaCore.from_map(
2404
+ privatelink_20200415_models.EnableVpcEndpointZoneConnectionResponse(),
2405
+ await self.call_api_async(params, req, runtime)
2406
+ )
2615
2407
 
2616
2408
  def enable_vpc_endpoint_zone_connection(
2617
2409
  self,
@@ -2685,16 +2477,10 @@ class Client(OpenApiClient):
2685
2477
  req_body_type='formData',
2686
2478
  body_type='json'
2687
2479
  )
2688
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2689
- return TeaCore.from_map(
2690
- privatelink_20200415_models.GetVpcEndpointAttributeResponse(),
2691
- self.call_api(params, req, runtime)
2692
- )
2693
- else:
2694
- return TeaCore.from_map(
2695
- privatelink_20200415_models.GetVpcEndpointAttributeResponse(),
2696
- self.execute(params, req, runtime)
2697
- )
2480
+ return TeaCore.from_map(
2481
+ privatelink_20200415_models.GetVpcEndpointAttributeResponse(),
2482
+ self.call_api(params, req, runtime)
2483
+ )
2698
2484
 
2699
2485
  async def get_vpc_endpoint_attribute_with_options_async(
2700
2486
  self,
@@ -2730,16 +2516,10 @@ class Client(OpenApiClient):
2730
2516
  req_body_type='formData',
2731
2517
  body_type='json'
2732
2518
  )
2733
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2734
- return TeaCore.from_map(
2735
- privatelink_20200415_models.GetVpcEndpointAttributeResponse(),
2736
- await self.call_api_async(params, req, runtime)
2737
- )
2738
- else:
2739
- return TeaCore.from_map(
2740
- privatelink_20200415_models.GetVpcEndpointAttributeResponse(),
2741
- await self.execute_async(params, req, runtime)
2742
- )
2519
+ return TeaCore.from_map(
2520
+ privatelink_20200415_models.GetVpcEndpointAttributeResponse(),
2521
+ await self.call_api_async(params, req, runtime)
2522
+ )
2743
2523
 
2744
2524
  def get_vpc_endpoint_attribute(
2745
2525
  self,
@@ -2801,16 +2581,10 @@ class Client(OpenApiClient):
2801
2581
  req_body_type='formData',
2802
2582
  body_type='json'
2803
2583
  )
2804
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2805
- return TeaCore.from_map(
2806
- privatelink_20200415_models.GetVpcEndpointServiceAttributeResponse(),
2807
- self.call_api(params, req, runtime)
2808
- )
2809
- else:
2810
- return TeaCore.from_map(
2811
- privatelink_20200415_models.GetVpcEndpointServiceAttributeResponse(),
2812
- self.execute(params, req, runtime)
2813
- )
2584
+ return TeaCore.from_map(
2585
+ privatelink_20200415_models.GetVpcEndpointServiceAttributeResponse(),
2586
+ self.call_api(params, req, runtime)
2587
+ )
2814
2588
 
2815
2589
  async def get_vpc_endpoint_service_attribute_with_options_async(
2816
2590
  self,
@@ -2846,16 +2620,10 @@ class Client(OpenApiClient):
2846
2620
  req_body_type='formData',
2847
2621
  body_type='json'
2848
2622
  )
2849
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2850
- return TeaCore.from_map(
2851
- privatelink_20200415_models.GetVpcEndpointServiceAttributeResponse(),
2852
- await self.call_api_async(params, req, runtime)
2853
- )
2854
- else:
2855
- return TeaCore.from_map(
2856
- privatelink_20200415_models.GetVpcEndpointServiceAttributeResponse(),
2857
- await self.execute_async(params, req, runtime)
2858
- )
2623
+ return TeaCore.from_map(
2624
+ privatelink_20200415_models.GetVpcEndpointServiceAttributeResponse(),
2625
+ await self.call_api_async(params, req, runtime)
2626
+ )
2859
2627
 
2860
2628
  def get_vpc_endpoint_service_attribute(
2861
2629
  self,
@@ -2928,16 +2696,10 @@ class Client(OpenApiClient):
2928
2696
  req_body_type='formData',
2929
2697
  body_type='json'
2930
2698
  )
2931
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2932
- return TeaCore.from_map(
2933
- privatelink_20200415_models.ListTagResourcesResponse(),
2934
- self.call_api(params, req, runtime)
2935
- )
2936
- else:
2937
- return TeaCore.from_map(
2938
- privatelink_20200415_models.ListTagResourcesResponse(),
2939
- self.execute(params, req, runtime)
2940
- )
2699
+ return TeaCore.from_map(
2700
+ privatelink_20200415_models.ListTagResourcesResponse(),
2701
+ self.call_api(params, req, runtime)
2702
+ )
2941
2703
 
2942
2704
  async def list_tag_resources_with_options_async(
2943
2705
  self,
@@ -2984,16 +2746,10 @@ class Client(OpenApiClient):
2984
2746
  req_body_type='formData',
2985
2747
  body_type='json'
2986
2748
  )
2987
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
2988
- return TeaCore.from_map(
2989
- privatelink_20200415_models.ListTagResourcesResponse(),
2990
- await self.call_api_async(params, req, runtime)
2991
- )
2992
- else:
2993
- return TeaCore.from_map(
2994
- privatelink_20200415_models.ListTagResourcesResponse(),
2995
- await self.execute_async(params, req, runtime)
2996
- )
2749
+ return TeaCore.from_map(
2750
+ privatelink_20200415_models.ListTagResourcesResponse(),
2751
+ await self.call_api_async(params, req, runtime)
2752
+ )
2997
2753
 
2998
2754
  def list_tag_resources(
2999
2755
  self,
@@ -3083,16 +2839,10 @@ class Client(OpenApiClient):
3083
2839
  req_body_type='formData',
3084
2840
  body_type='json'
3085
2841
  )
3086
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
3087
- return TeaCore.from_map(
3088
- privatelink_20200415_models.ListVpcEndpointConnectionsResponse(),
3089
- self.call_api(params, req, runtime)
3090
- )
3091
- else:
3092
- return TeaCore.from_map(
3093
- privatelink_20200415_models.ListVpcEndpointConnectionsResponse(),
3094
- self.execute(params, req, runtime)
3095
- )
2842
+ return TeaCore.from_map(
2843
+ privatelink_20200415_models.ListVpcEndpointConnectionsResponse(),
2844
+ self.call_api(params, req, runtime)
2845
+ )
3096
2846
 
3097
2847
  async def list_vpc_endpoint_connections_with_options_async(
3098
2848
  self,
@@ -3146,16 +2896,10 @@ class Client(OpenApiClient):
3146
2896
  req_body_type='formData',
3147
2897
  body_type='json'
3148
2898
  )
3149
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
3150
- return TeaCore.from_map(
3151
- privatelink_20200415_models.ListVpcEndpointConnectionsResponse(),
3152
- await self.call_api_async(params, req, runtime)
3153
- )
3154
- else:
3155
- return TeaCore.from_map(
3156
- privatelink_20200415_models.ListVpcEndpointConnectionsResponse(),
3157
- await self.execute_async(params, req, runtime)
3158
- )
2899
+ return TeaCore.from_map(
2900
+ privatelink_20200415_models.ListVpcEndpointConnectionsResponse(),
2901
+ await self.call_api_async(params, req, runtime)
2902
+ )
3159
2903
 
3160
2904
  def list_vpc_endpoint_connections(
3161
2905
  self,
@@ -3221,16 +2965,10 @@ class Client(OpenApiClient):
3221
2965
  req_body_type='formData',
3222
2966
  body_type='json'
3223
2967
  )
3224
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
3225
- return TeaCore.from_map(
3226
- privatelink_20200415_models.ListVpcEndpointSecurityGroupsResponse(),
3227
- self.call_api(params, req, runtime)
3228
- )
3229
- else:
3230
- return TeaCore.from_map(
3231
- privatelink_20200415_models.ListVpcEndpointSecurityGroupsResponse(),
3232
- self.execute(params, req, runtime)
3233
- )
2968
+ return TeaCore.from_map(
2969
+ privatelink_20200415_models.ListVpcEndpointSecurityGroupsResponse(),
2970
+ self.call_api(params, req, runtime)
2971
+ )
3234
2972
 
3235
2973
  async def list_vpc_endpoint_security_groups_with_options_async(
3236
2974
  self,
@@ -3270,16 +3008,10 @@ class Client(OpenApiClient):
3270
3008
  req_body_type='formData',
3271
3009
  body_type='json'
3272
3010
  )
3273
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
3274
- return TeaCore.from_map(
3275
- privatelink_20200415_models.ListVpcEndpointSecurityGroupsResponse(),
3276
- await self.call_api_async(params, req, runtime)
3277
- )
3278
- else:
3279
- return TeaCore.from_map(
3280
- privatelink_20200415_models.ListVpcEndpointSecurityGroupsResponse(),
3281
- await self.execute_async(params, req, runtime)
3282
- )
3011
+ return TeaCore.from_map(
3012
+ privatelink_20200415_models.ListVpcEndpointSecurityGroupsResponse(),
3013
+ await self.call_api_async(params, req, runtime)
3014
+ )
3283
3015
 
3284
3016
  def list_vpc_endpoint_security_groups(
3285
3017
  self,
@@ -3345,16 +3077,10 @@ class Client(OpenApiClient):
3345
3077
  req_body_type='formData',
3346
3078
  body_type='json'
3347
3079
  )
3348
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
3349
- return TeaCore.from_map(
3350
- privatelink_20200415_models.ListVpcEndpointServiceResourcesResponse(),
3351
- self.call_api(params, req, runtime)
3352
- )
3353
- else:
3354
- return TeaCore.from_map(
3355
- privatelink_20200415_models.ListVpcEndpointServiceResourcesResponse(),
3356
- self.execute(params, req, runtime)
3357
- )
3080
+ return TeaCore.from_map(
3081
+ privatelink_20200415_models.ListVpcEndpointServiceResourcesResponse(),
3082
+ self.call_api(params, req, runtime)
3083
+ )
3358
3084
 
3359
3085
  async def list_vpc_endpoint_service_resources_with_options_async(
3360
3086
  self,
@@ -3394,16 +3120,10 @@ class Client(OpenApiClient):
3394
3120
  req_body_type='formData',
3395
3121
  body_type='json'
3396
3122
  )
3397
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
3398
- return TeaCore.from_map(
3399
- privatelink_20200415_models.ListVpcEndpointServiceResourcesResponse(),
3400
- await self.call_api_async(params, req, runtime)
3401
- )
3402
- else:
3403
- return TeaCore.from_map(
3404
- privatelink_20200415_models.ListVpcEndpointServiceResourcesResponse(),
3405
- await self.execute_async(params, req, runtime)
3406
- )
3123
+ return TeaCore.from_map(
3124
+ privatelink_20200415_models.ListVpcEndpointServiceResourcesResponse(),
3125
+ await self.call_api_async(params, req, runtime)
3126
+ )
3407
3127
 
3408
3128
  def list_vpc_endpoint_service_resources(
3409
3129
  self,
@@ -3473,16 +3193,10 @@ class Client(OpenApiClient):
3473
3193
  req_body_type='formData',
3474
3194
  body_type='json'
3475
3195
  )
3476
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
3477
- return TeaCore.from_map(
3478
- privatelink_20200415_models.ListVpcEndpointServiceUsersResponse(),
3479
- self.call_api(params, req, runtime)
3480
- )
3481
- else:
3482
- return TeaCore.from_map(
3483
- privatelink_20200415_models.ListVpcEndpointServiceUsersResponse(),
3484
- self.execute(params, req, runtime)
3485
- )
3196
+ return TeaCore.from_map(
3197
+ privatelink_20200415_models.ListVpcEndpointServiceUsersResponse(),
3198
+ self.call_api(params, req, runtime)
3199
+ )
3486
3200
 
3487
3201
  async def list_vpc_endpoint_service_users_with_options_async(
3488
3202
  self,
@@ -3526,16 +3240,10 @@ class Client(OpenApiClient):
3526
3240
  req_body_type='formData',
3527
3241
  body_type='json'
3528
3242
  )
3529
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
3530
- return TeaCore.from_map(
3531
- privatelink_20200415_models.ListVpcEndpointServiceUsersResponse(),
3532
- await self.call_api_async(params, req, runtime)
3533
- )
3534
- else:
3535
- return TeaCore.from_map(
3536
- privatelink_20200415_models.ListVpcEndpointServiceUsersResponse(),
3537
- await self.execute_async(params, req, runtime)
3538
- )
3243
+ return TeaCore.from_map(
3244
+ privatelink_20200415_models.ListVpcEndpointServiceUsersResponse(),
3245
+ await self.call_api_async(params, req, runtime)
3246
+ )
3539
3247
 
3540
3248
  def list_vpc_endpoint_service_users(
3541
3249
  self,
@@ -3621,16 +3329,10 @@ class Client(OpenApiClient):
3621
3329
  req_body_type='formData',
3622
3330
  body_type='json'
3623
3331
  )
3624
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
3625
- return TeaCore.from_map(
3626
- privatelink_20200415_models.ListVpcEndpointServicesResponse(),
3627
- self.call_api(params, req, runtime)
3628
- )
3629
- else:
3630
- return TeaCore.from_map(
3631
- privatelink_20200415_models.ListVpcEndpointServicesResponse(),
3632
- self.execute(params, req, runtime)
3633
- )
3332
+ return TeaCore.from_map(
3333
+ privatelink_20200415_models.ListVpcEndpointServicesResponse(),
3334
+ self.call_api(params, req, runtime)
3335
+ )
3634
3336
 
3635
3337
  async def list_vpc_endpoint_services_with_options_async(
3636
3338
  self,
@@ -3690,16 +3392,10 @@ class Client(OpenApiClient):
3690
3392
  req_body_type='formData',
3691
3393
  body_type='json'
3692
3394
  )
3693
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
3694
- return TeaCore.from_map(
3695
- privatelink_20200415_models.ListVpcEndpointServicesResponse(),
3696
- await self.call_api_async(params, req, runtime)
3697
- )
3698
- else:
3699
- return TeaCore.from_map(
3700
- privatelink_20200415_models.ListVpcEndpointServicesResponse(),
3701
- await self.execute_async(params, req, runtime)
3702
- )
3395
+ return TeaCore.from_map(
3396
+ privatelink_20200415_models.ListVpcEndpointServicesResponse(),
3397
+ await self.call_api_async(params, req, runtime)
3398
+ )
3703
3399
 
3704
3400
  def list_vpc_endpoint_services(
3705
3401
  self,
@@ -3773,16 +3469,10 @@ class Client(OpenApiClient):
3773
3469
  req_body_type='formData',
3774
3470
  body_type='json'
3775
3471
  )
3776
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
3777
- return TeaCore.from_map(
3778
- privatelink_20200415_models.ListVpcEndpointServicesByEndUserResponse(),
3779
- self.call_api(params, req, runtime)
3780
- )
3781
- else:
3782
- return TeaCore.from_map(
3783
- privatelink_20200415_models.ListVpcEndpointServicesByEndUserResponse(),
3784
- self.execute(params, req, runtime)
3785
- )
3472
+ return TeaCore.from_map(
3473
+ privatelink_20200415_models.ListVpcEndpointServicesByEndUserResponse(),
3474
+ self.call_api(params, req, runtime)
3475
+ )
3786
3476
 
3787
3477
  async def list_vpc_endpoint_services_by_end_user_with_options_async(
3788
3478
  self,
@@ -3830,16 +3520,10 @@ class Client(OpenApiClient):
3830
3520
  req_body_type='formData',
3831
3521
  body_type='json'
3832
3522
  )
3833
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
3834
- return TeaCore.from_map(
3835
- privatelink_20200415_models.ListVpcEndpointServicesByEndUserResponse(),
3836
- await self.call_api_async(params, req, runtime)
3837
- )
3838
- else:
3839
- return TeaCore.from_map(
3840
- privatelink_20200415_models.ListVpcEndpointServicesByEndUserResponse(),
3841
- await self.execute_async(params, req, runtime)
3842
- )
3523
+ return TeaCore.from_map(
3524
+ privatelink_20200415_models.ListVpcEndpointServicesByEndUserResponse(),
3525
+ await self.call_api_async(params, req, runtime)
3526
+ )
3843
3527
 
3844
3528
  def list_vpc_endpoint_services_by_end_user(
3845
3529
  self,
@@ -3905,16 +3589,10 @@ class Client(OpenApiClient):
3905
3589
  req_body_type='formData',
3906
3590
  body_type='json'
3907
3591
  )
3908
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
3909
- return TeaCore.from_map(
3910
- privatelink_20200415_models.ListVpcEndpointZonesResponse(),
3911
- self.call_api(params, req, runtime)
3912
- )
3913
- else:
3914
- return TeaCore.from_map(
3915
- privatelink_20200415_models.ListVpcEndpointZonesResponse(),
3916
- self.execute(params, req, runtime)
3917
- )
3592
+ return TeaCore.from_map(
3593
+ privatelink_20200415_models.ListVpcEndpointZonesResponse(),
3594
+ self.call_api(params, req, runtime)
3595
+ )
3918
3596
 
3919
3597
  async def list_vpc_endpoint_zones_with_options_async(
3920
3598
  self,
@@ -3954,16 +3632,10 @@ class Client(OpenApiClient):
3954
3632
  req_body_type='formData',
3955
3633
  body_type='json'
3956
3634
  )
3957
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
3958
- return TeaCore.from_map(
3959
- privatelink_20200415_models.ListVpcEndpointZonesResponse(),
3960
- await self.call_api_async(params, req, runtime)
3961
- )
3962
- else:
3963
- return TeaCore.from_map(
3964
- privatelink_20200415_models.ListVpcEndpointZonesResponse(),
3965
- await self.execute_async(params, req, runtime)
3966
- )
3635
+ return TeaCore.from_map(
3636
+ privatelink_20200415_models.ListVpcEndpointZonesResponse(),
3637
+ await self.call_api_async(params, req, runtime)
3638
+ )
3967
3639
 
3968
3640
  def list_vpc_endpoint_zones(
3969
3641
  self,
@@ -4047,16 +3719,10 @@ class Client(OpenApiClient):
4047
3719
  req_body_type='formData',
4048
3720
  body_type='json'
4049
3721
  )
4050
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
4051
- return TeaCore.from_map(
4052
- privatelink_20200415_models.ListVpcEndpointsResponse(),
4053
- self.call_api(params, req, runtime)
4054
- )
4055
- else:
4056
- return TeaCore.from_map(
4057
- privatelink_20200415_models.ListVpcEndpointsResponse(),
4058
- self.execute(params, req, runtime)
4059
- )
3722
+ return TeaCore.from_map(
3723
+ privatelink_20200415_models.ListVpcEndpointsResponse(),
3724
+ self.call_api(params, req, runtime)
3725
+ )
4060
3726
 
4061
3727
  async def list_vpc_endpoints_with_options_async(
4062
3728
  self,
@@ -4114,16 +3780,10 @@ class Client(OpenApiClient):
4114
3780
  req_body_type='formData',
4115
3781
  body_type='json'
4116
3782
  )
4117
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
4118
- return TeaCore.from_map(
4119
- privatelink_20200415_models.ListVpcEndpointsResponse(),
4120
- await self.call_api_async(params, req, runtime)
4121
- )
4122
- else:
4123
- return TeaCore.from_map(
4124
- privatelink_20200415_models.ListVpcEndpointsResponse(),
4125
- await self.execute_async(params, req, runtime)
4126
- )
3783
+ return TeaCore.from_map(
3784
+ privatelink_20200415_models.ListVpcEndpointsResponse(),
3785
+ await self.call_api_async(params, req, runtime)
3786
+ )
4127
3787
 
4128
3788
  def list_vpc_endpoints(
4129
3789
  self,
@@ -4181,16 +3841,10 @@ class Client(OpenApiClient):
4181
3841
  req_body_type='formData',
4182
3842
  body_type='json'
4183
3843
  )
4184
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
4185
- return TeaCore.from_map(
4186
- privatelink_20200415_models.OpenPrivateLinkServiceResponse(),
4187
- self.call_api(params, req, runtime)
4188
- )
4189
- else:
4190
- return TeaCore.from_map(
4191
- privatelink_20200415_models.OpenPrivateLinkServiceResponse(),
4192
- self.execute(params, req, runtime)
4193
- )
3844
+ return TeaCore.from_map(
3845
+ privatelink_20200415_models.OpenPrivateLinkServiceResponse(),
3846
+ self.call_api(params, req, runtime)
3847
+ )
4194
3848
 
4195
3849
  async def open_private_link_service_with_options_async(
4196
3850
  self,
@@ -4222,16 +3876,10 @@ class Client(OpenApiClient):
4222
3876
  req_body_type='formData',
4223
3877
  body_type='json'
4224
3878
  )
4225
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
4226
- return TeaCore.from_map(
4227
- privatelink_20200415_models.OpenPrivateLinkServiceResponse(),
4228
- await self.call_api_async(params, req, runtime)
4229
- )
4230
- else:
4231
- return TeaCore.from_map(
4232
- privatelink_20200415_models.OpenPrivateLinkServiceResponse(),
4233
- await self.execute_async(params, req, runtime)
4234
- )
3879
+ return TeaCore.from_map(
3880
+ privatelink_20200415_models.OpenPrivateLinkServiceResponse(),
3881
+ await self.call_api_async(params, req, runtime)
3882
+ )
4235
3883
 
4236
3884
  def open_private_link_service(
4237
3885
  self,
@@ -4304,16 +3952,10 @@ class Client(OpenApiClient):
4304
3952
  req_body_type='formData',
4305
3953
  body_type='json'
4306
3954
  )
4307
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
4308
- return TeaCore.from_map(
4309
- privatelink_20200415_models.RemoveUserFromVpcEndpointServiceResponse(),
4310
- self.call_api(params, req, runtime)
4311
- )
4312
- else:
4313
- return TeaCore.from_map(
4314
- privatelink_20200415_models.RemoveUserFromVpcEndpointServiceResponse(),
4315
- self.execute(params, req, runtime)
4316
- )
3955
+ return TeaCore.from_map(
3956
+ privatelink_20200415_models.RemoveUserFromVpcEndpointServiceResponse(),
3957
+ self.call_api(params, req, runtime)
3958
+ )
4317
3959
 
4318
3960
  async def remove_user_from_vpc_endpoint_service_with_options_async(
4319
3961
  self,
@@ -4360,16 +4002,10 @@ class Client(OpenApiClient):
4360
4002
  req_body_type='formData',
4361
4003
  body_type='json'
4362
4004
  )
4363
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
4364
- return TeaCore.from_map(
4365
- privatelink_20200415_models.RemoveUserFromVpcEndpointServiceResponse(),
4366
- await self.call_api_async(params, req, runtime)
4367
- )
4368
- else:
4369
- return TeaCore.from_map(
4370
- privatelink_20200415_models.RemoveUserFromVpcEndpointServiceResponse(),
4371
- await self.execute_async(params, req, runtime)
4372
- )
4005
+ return TeaCore.from_map(
4006
+ privatelink_20200415_models.RemoveUserFromVpcEndpointServiceResponse(),
4007
+ await self.call_api_async(params, req, runtime)
4008
+ )
4373
4009
 
4374
4010
  def remove_user_from_vpc_endpoint_service(
4375
4011
  self,
@@ -4448,16 +4084,10 @@ class Client(OpenApiClient):
4448
4084
  req_body_type='formData',
4449
4085
  body_type='json'
4450
4086
  )
4451
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
4452
- return TeaCore.from_map(
4453
- privatelink_20200415_models.RemoveZoneFromVpcEndpointResponse(),
4454
- self.call_api(params, req, runtime)
4455
- )
4456
- else:
4457
- return TeaCore.from_map(
4458
- privatelink_20200415_models.RemoveZoneFromVpcEndpointResponse(),
4459
- self.execute(params, req, runtime)
4460
- )
4087
+ return TeaCore.from_map(
4088
+ privatelink_20200415_models.RemoveZoneFromVpcEndpointResponse(),
4089
+ self.call_api(params, req, runtime)
4090
+ )
4461
4091
 
4462
4092
  async def remove_zone_from_vpc_endpoint_with_options_async(
4463
4093
  self,
@@ -4504,16 +4134,10 @@ class Client(OpenApiClient):
4504
4134
  req_body_type='formData',
4505
4135
  body_type='json'
4506
4136
  )
4507
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
4508
- return TeaCore.from_map(
4509
- privatelink_20200415_models.RemoveZoneFromVpcEndpointResponse(),
4510
- await self.call_api_async(params, req, runtime)
4511
- )
4512
- else:
4513
- return TeaCore.from_map(
4514
- privatelink_20200415_models.RemoveZoneFromVpcEndpointResponse(),
4515
- await self.execute_async(params, req, runtime)
4516
- )
4137
+ return TeaCore.from_map(
4138
+ privatelink_20200415_models.RemoveZoneFromVpcEndpointResponse(),
4139
+ await self.call_api_async(params, req, runtime)
4140
+ )
4517
4141
 
4518
4142
  def remove_zone_from_vpc_endpoint(
4519
4143
  self,
@@ -4596,16 +4220,10 @@ class Client(OpenApiClient):
4596
4220
  req_body_type='formData',
4597
4221
  body_type='json'
4598
4222
  )
4599
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
4600
- return TeaCore.from_map(
4601
- privatelink_20200415_models.TagResourcesResponse(),
4602
- self.call_api(params, req, runtime)
4603
- )
4604
- else:
4605
- return TeaCore.from_map(
4606
- privatelink_20200415_models.TagResourcesResponse(),
4607
- self.execute(params, req, runtime)
4608
- )
4223
+ return TeaCore.from_map(
4224
+ privatelink_20200415_models.TagResourcesResponse(),
4225
+ self.call_api(params, req, runtime)
4226
+ )
4609
4227
 
4610
4228
  async def tag_resources_with_options_async(
4611
4229
  self,
@@ -4652,16 +4270,10 @@ class Client(OpenApiClient):
4652
4270
  req_body_type='formData',
4653
4271
  body_type='json'
4654
4272
  )
4655
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
4656
- return TeaCore.from_map(
4657
- privatelink_20200415_models.TagResourcesResponse(),
4658
- await self.call_api_async(params, req, runtime)
4659
- )
4660
- else:
4661
- return TeaCore.from_map(
4662
- privatelink_20200415_models.TagResourcesResponse(),
4663
- await self.execute_async(params, req, runtime)
4664
- )
4273
+ return TeaCore.from_map(
4274
+ privatelink_20200415_models.TagResourcesResponse(),
4275
+ await self.call_api_async(params, req, runtime)
4276
+ )
4665
4277
 
4666
4278
  def tag_resources(
4667
4279
  self,
@@ -4740,16 +4352,10 @@ class Client(OpenApiClient):
4740
4352
  req_body_type='formData',
4741
4353
  body_type='json'
4742
4354
  )
4743
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
4744
- return TeaCore.from_map(
4745
- privatelink_20200415_models.UntagResourcesResponse(),
4746
- self.call_api(params, req, runtime)
4747
- )
4748
- else:
4749
- return TeaCore.from_map(
4750
- privatelink_20200415_models.UntagResourcesResponse(),
4751
- self.execute(params, req, runtime)
4752
- )
4355
+ return TeaCore.from_map(
4356
+ privatelink_20200415_models.UntagResourcesResponse(),
4357
+ self.call_api(params, req, runtime)
4358
+ )
4753
4359
 
4754
4360
  async def untag_resources_with_options_async(
4755
4361
  self,
@@ -4798,16 +4404,10 @@ class Client(OpenApiClient):
4798
4404
  req_body_type='formData',
4799
4405
  body_type='json'
4800
4406
  )
4801
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
4802
- return TeaCore.from_map(
4803
- privatelink_20200415_models.UntagResourcesResponse(),
4804
- await self.call_api_async(params, req, runtime)
4805
- )
4806
- else:
4807
- return TeaCore.from_map(
4808
- privatelink_20200415_models.UntagResourcesResponse(),
4809
- await self.execute_async(params, req, runtime)
4810
- )
4407
+ return TeaCore.from_map(
4408
+ privatelink_20200415_models.UntagResourcesResponse(),
4409
+ await self.call_api_async(params, req, runtime)
4410
+ )
4811
4411
 
4812
4412
  def untag_resources(
4813
4413
  self,
@@ -4869,6 +4469,8 @@ class Client(OpenApiClient):
4869
4469
  query['RegionId'] = request.region_id
4870
4470
  if not UtilClient.is_unset(request.region_id):
4871
4471
  query['RegionId'] = request.region_id
4472
+ if not UtilClient.is_unset(request.zone_affinity_enabled):
4473
+ query['ZoneAffinityEnabled'] = request.zone_affinity_enabled
4872
4474
  req = open_api_models.OpenApiRequest(
4873
4475
  query=OpenApiUtilClient.query(query)
4874
4476
  )
@@ -4883,16 +4485,10 @@ class Client(OpenApiClient):
4883
4485
  req_body_type='formData',
4884
4486
  body_type='json'
4885
4487
  )
4886
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
4887
- return TeaCore.from_map(
4888
- privatelink_20200415_models.UpdateVpcEndpointAttributeResponse(),
4889
- self.call_api(params, req, runtime)
4890
- )
4891
- else:
4892
- return TeaCore.from_map(
4893
- privatelink_20200415_models.UpdateVpcEndpointAttributeResponse(),
4894
- self.execute(params, req, runtime)
4895
- )
4488
+ return TeaCore.from_map(
4489
+ privatelink_20200415_models.UpdateVpcEndpointAttributeResponse(),
4490
+ self.call_api(params, req, runtime)
4491
+ )
4896
4492
 
4897
4493
  async def update_vpc_endpoint_attribute_with_options_async(
4898
4494
  self,
@@ -4928,6 +4524,8 @@ class Client(OpenApiClient):
4928
4524
  query['RegionId'] = request.region_id
4929
4525
  if not UtilClient.is_unset(request.region_id):
4930
4526
  query['RegionId'] = request.region_id
4527
+ if not UtilClient.is_unset(request.zone_affinity_enabled):
4528
+ query['ZoneAffinityEnabled'] = request.zone_affinity_enabled
4931
4529
  req = open_api_models.OpenApiRequest(
4932
4530
  query=OpenApiUtilClient.query(query)
4933
4531
  )
@@ -4942,16 +4540,10 @@ class Client(OpenApiClient):
4942
4540
  req_body_type='formData',
4943
4541
  body_type='json'
4944
4542
  )
4945
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
4946
- return TeaCore.from_map(
4947
- privatelink_20200415_models.UpdateVpcEndpointAttributeResponse(),
4948
- await self.call_api_async(params, req, runtime)
4949
- )
4950
- else:
4951
- return TeaCore.from_map(
4952
- privatelink_20200415_models.UpdateVpcEndpointAttributeResponse(),
4953
- await self.execute_async(params, req, runtime)
4954
- )
4543
+ return TeaCore.from_map(
4544
+ privatelink_20200415_models.UpdateVpcEndpointAttributeResponse(),
4545
+ await self.call_api_async(params, req, runtime)
4546
+ )
4955
4547
 
4956
4548
  def update_vpc_endpoint_attribute(
4957
4549
  self,
@@ -5013,6 +4605,8 @@ class Client(OpenApiClient):
5013
4605
  query['RegionId'] = request.region_id
5014
4606
  if not UtilClient.is_unset(request.service_id):
5015
4607
  query['ServiceId'] = request.service_id
4608
+ if not UtilClient.is_unset(request.traffic_control_mode):
4609
+ query['TrafficControlMode'] = request.traffic_control_mode
5016
4610
  req = open_api_models.OpenApiRequest(
5017
4611
  query=OpenApiUtilClient.query(query)
5018
4612
  )
@@ -5027,16 +4621,10 @@ class Client(OpenApiClient):
5027
4621
  req_body_type='formData',
5028
4622
  body_type='json'
5029
4623
  )
5030
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
5031
- return TeaCore.from_map(
5032
- privatelink_20200415_models.UpdateVpcEndpointConnectionAttributeResponse(),
5033
- self.call_api(params, req, runtime)
5034
- )
5035
- else:
5036
- return TeaCore.from_map(
5037
- privatelink_20200415_models.UpdateVpcEndpointConnectionAttributeResponse(),
5038
- self.execute(params, req, runtime)
5039
- )
4624
+ return TeaCore.from_map(
4625
+ privatelink_20200415_models.UpdateVpcEndpointConnectionAttributeResponse(),
4626
+ self.call_api(params, req, runtime)
4627
+ )
5040
4628
 
5041
4629
  async def update_vpc_endpoint_connection_attribute_with_options_async(
5042
4630
  self,
@@ -5068,6 +4656,8 @@ class Client(OpenApiClient):
5068
4656
  query['RegionId'] = request.region_id
5069
4657
  if not UtilClient.is_unset(request.service_id):
5070
4658
  query['ServiceId'] = request.service_id
4659
+ if not UtilClient.is_unset(request.traffic_control_mode):
4660
+ query['TrafficControlMode'] = request.traffic_control_mode
5071
4661
  req = open_api_models.OpenApiRequest(
5072
4662
  query=OpenApiUtilClient.query(query)
5073
4663
  )
@@ -5082,16 +4672,10 @@ class Client(OpenApiClient):
5082
4672
  req_body_type='formData',
5083
4673
  body_type='json'
5084
4674
  )
5085
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
5086
- return TeaCore.from_map(
5087
- privatelink_20200415_models.UpdateVpcEndpointConnectionAttributeResponse(),
5088
- await self.call_api_async(params, req, runtime)
5089
- )
5090
- else:
5091
- return TeaCore.from_map(
5092
- privatelink_20200415_models.UpdateVpcEndpointConnectionAttributeResponse(),
5093
- await self.execute_async(params, req, runtime)
5094
- )
4675
+ return TeaCore.from_map(
4676
+ privatelink_20200415_models.UpdateVpcEndpointConnectionAttributeResponse(),
4677
+ await self.call_api_async(params, req, runtime)
4678
+ )
5095
4679
 
5096
4680
  def update_vpc_endpoint_connection_attribute(
5097
4681
  self,
@@ -5175,16 +4759,10 @@ class Client(OpenApiClient):
5175
4759
  req_body_type='formData',
5176
4760
  body_type='json'
5177
4761
  )
5178
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
5179
- return TeaCore.from_map(
5180
- privatelink_20200415_models.UpdateVpcEndpointServiceAttributeResponse(),
5181
- self.call_api(params, req, runtime)
5182
- )
5183
- else:
5184
- return TeaCore.from_map(
5185
- privatelink_20200415_models.UpdateVpcEndpointServiceAttributeResponse(),
5186
- self.execute(params, req, runtime)
5187
- )
4762
+ return TeaCore.from_map(
4763
+ privatelink_20200415_models.UpdateVpcEndpointServiceAttributeResponse(),
4764
+ self.call_api(params, req, runtime)
4765
+ )
5188
4766
 
5189
4767
  async def update_vpc_endpoint_service_attribute_with_options_async(
5190
4768
  self,
@@ -5238,16 +4816,10 @@ class Client(OpenApiClient):
5238
4816
  req_body_type='formData',
5239
4817
  body_type='json'
5240
4818
  )
5241
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
5242
- return TeaCore.from_map(
5243
- privatelink_20200415_models.UpdateVpcEndpointServiceAttributeResponse(),
5244
- await self.call_api_async(params, req, runtime)
5245
- )
5246
- else:
5247
- return TeaCore.from_map(
5248
- privatelink_20200415_models.UpdateVpcEndpointServiceAttributeResponse(),
5249
- await self.execute_async(params, req, runtime)
5250
- )
4819
+ return TeaCore.from_map(
4820
+ privatelink_20200415_models.UpdateVpcEndpointServiceAttributeResponse(),
4821
+ await self.call_api_async(params, req, runtime)
4822
+ )
5251
4823
 
5252
4824
  def update_vpc_endpoint_service_attribute(
5253
4825
  self,
@@ -5325,16 +4897,10 @@ class Client(OpenApiClient):
5325
4897
  req_body_type='formData',
5326
4898
  body_type='json'
5327
4899
  )
5328
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
5329
- return TeaCore.from_map(
5330
- privatelink_20200415_models.UpdateVpcEndpointServiceResourceAttributeResponse(),
5331
- self.call_api(params, req, runtime)
5332
- )
5333
- else:
5334
- return TeaCore.from_map(
5335
- privatelink_20200415_models.UpdateVpcEndpointServiceResourceAttributeResponse(),
5336
- self.execute(params, req, runtime)
5337
- )
4900
+ return TeaCore.from_map(
4901
+ privatelink_20200415_models.UpdateVpcEndpointServiceResourceAttributeResponse(),
4902
+ self.call_api(params, req, runtime)
4903
+ )
5338
4904
 
5339
4905
  async def update_vpc_endpoint_service_resource_attribute_with_options_async(
5340
4906
  self,
@@ -5382,16 +4948,10 @@ class Client(OpenApiClient):
5382
4948
  req_body_type='formData',
5383
4949
  body_type='json'
5384
4950
  )
5385
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
5386
- return TeaCore.from_map(
5387
- privatelink_20200415_models.UpdateVpcEndpointServiceResourceAttributeResponse(),
5388
- await self.call_api_async(params, req, runtime)
5389
- )
5390
- else:
5391
- return TeaCore.from_map(
5392
- privatelink_20200415_models.UpdateVpcEndpointServiceResourceAttributeResponse(),
5393
- await self.execute_async(params, req, runtime)
5394
- )
4951
+ return TeaCore.from_map(
4952
+ privatelink_20200415_models.UpdateVpcEndpointServiceResourceAttributeResponse(),
4953
+ await self.call_api_async(params, req, runtime)
4954
+ )
5395
4955
 
5396
4956
  def update_vpc_endpoint_service_resource_attribute(
5397
4957
  self,
@@ -5483,16 +5043,10 @@ class Client(OpenApiClient):
5483
5043
  req_body_type='formData',
5484
5044
  body_type='json'
5485
5045
  )
5486
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
5487
- return TeaCore.from_map(
5488
- privatelink_20200415_models.UpdateVpcEndpointZoneConnectionResourceAttributeResponse(),
5489
- self.call_api(params, req, runtime)
5490
- )
5491
- else:
5492
- return TeaCore.from_map(
5493
- privatelink_20200415_models.UpdateVpcEndpointZoneConnectionResourceAttributeResponse(),
5494
- self.execute(params, req, runtime)
5495
- )
5046
+ return TeaCore.from_map(
5047
+ privatelink_20200415_models.UpdateVpcEndpointZoneConnectionResourceAttributeResponse(),
5048
+ self.call_api(params, req, runtime)
5049
+ )
5496
5050
 
5497
5051
  async def update_vpc_endpoint_zone_connection_resource_attribute_with_options_async(
5498
5052
  self,
@@ -5554,16 +5108,10 @@ class Client(OpenApiClient):
5554
5108
  req_body_type='formData',
5555
5109
  body_type='json'
5556
5110
  )
5557
- if UtilClient.is_unset(self._signature_version) or not UtilClient.equal_string(self._signature_version, 'v4'):
5558
- return TeaCore.from_map(
5559
- privatelink_20200415_models.UpdateVpcEndpointZoneConnectionResourceAttributeResponse(),
5560
- await self.call_api_async(params, req, runtime)
5561
- )
5562
- else:
5563
- return TeaCore.from_map(
5564
- privatelink_20200415_models.UpdateVpcEndpointZoneConnectionResourceAttributeResponse(),
5565
- await self.execute_async(params, req, runtime)
5566
- )
5111
+ return TeaCore.from_map(
5112
+ privatelink_20200415_models.UpdateVpcEndpointZoneConnectionResourceAttributeResponse(),
5113
+ await self.call_api_async(params, req, runtime)
5114
+ )
5567
5115
 
5568
5116
  def update_vpc_endpoint_zone_connection_resource_attribute(
5569
5117
  self,