alibabacloud-privatelink20200415 4.0.2__py3-none-any.whl → 4.0.3__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,
@@ -2390,16 +2202,10 @@ class Client(OpenApiClient):
2390
2202
  req_body_type='formData',
2391
2203
  body_type='json'
2392
2204
  )
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
- )
2205
+ return TeaCore.from_map(
2206
+ privatelink_20200415_models.EnableVpcEndpointConnectionResponse(),
2207
+ self.call_api(params, req, runtime)
2208
+ )
2403
2209
 
2404
2210
  async def enable_vpc_endpoint_connection_with_options_async(
2405
2211
  self,
@@ -2448,16 +2254,10 @@ class Client(OpenApiClient):
2448
2254
  req_body_type='formData',
2449
2255
  body_type='json'
2450
2256
  )
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
- )
2257
+ return TeaCore.from_map(
2258
+ privatelink_20200415_models.EnableVpcEndpointConnectionResponse(),
2259
+ await self.call_api_async(params, req, runtime)
2260
+ )
2461
2261
 
2462
2262
  def enable_vpc_endpoint_connection(
2463
2263
  self,
@@ -2543,16 +2343,10 @@ class Client(OpenApiClient):
2543
2343
  req_body_type='formData',
2544
2344
  body_type='json'
2545
2345
  )
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
- )
2346
+ return TeaCore.from_map(
2347
+ privatelink_20200415_models.EnableVpcEndpointZoneConnectionResponse(),
2348
+ self.call_api(params, req, runtime)
2349
+ )
2556
2350
 
2557
2351
  async def enable_vpc_endpoint_zone_connection_with_options_async(
2558
2352
  self,
@@ -2602,16 +2396,10 @@ class Client(OpenApiClient):
2602
2396
  req_body_type='formData',
2603
2397
  body_type='json'
2604
2398
  )
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
- )
2399
+ return TeaCore.from_map(
2400
+ privatelink_20200415_models.EnableVpcEndpointZoneConnectionResponse(),
2401
+ await self.call_api_async(params, req, runtime)
2402
+ )
2615
2403
 
2616
2404
  def enable_vpc_endpoint_zone_connection(
2617
2405
  self,
@@ -2685,16 +2473,10 @@ class Client(OpenApiClient):
2685
2473
  req_body_type='formData',
2686
2474
  body_type='json'
2687
2475
  )
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
- )
2476
+ return TeaCore.from_map(
2477
+ privatelink_20200415_models.GetVpcEndpointAttributeResponse(),
2478
+ self.call_api(params, req, runtime)
2479
+ )
2698
2480
 
2699
2481
  async def get_vpc_endpoint_attribute_with_options_async(
2700
2482
  self,
@@ -2730,16 +2512,10 @@ class Client(OpenApiClient):
2730
2512
  req_body_type='formData',
2731
2513
  body_type='json'
2732
2514
  )
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
- )
2515
+ return TeaCore.from_map(
2516
+ privatelink_20200415_models.GetVpcEndpointAttributeResponse(),
2517
+ await self.call_api_async(params, req, runtime)
2518
+ )
2743
2519
 
2744
2520
  def get_vpc_endpoint_attribute(
2745
2521
  self,
@@ -2801,16 +2577,10 @@ class Client(OpenApiClient):
2801
2577
  req_body_type='formData',
2802
2578
  body_type='json'
2803
2579
  )
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
- )
2580
+ return TeaCore.from_map(
2581
+ privatelink_20200415_models.GetVpcEndpointServiceAttributeResponse(),
2582
+ self.call_api(params, req, runtime)
2583
+ )
2814
2584
 
2815
2585
  async def get_vpc_endpoint_service_attribute_with_options_async(
2816
2586
  self,
@@ -2846,16 +2616,10 @@ class Client(OpenApiClient):
2846
2616
  req_body_type='formData',
2847
2617
  body_type='json'
2848
2618
  )
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
- )
2619
+ return TeaCore.from_map(
2620
+ privatelink_20200415_models.GetVpcEndpointServiceAttributeResponse(),
2621
+ await self.call_api_async(params, req, runtime)
2622
+ )
2859
2623
 
2860
2624
  def get_vpc_endpoint_service_attribute(
2861
2625
  self,
@@ -2928,16 +2692,10 @@ class Client(OpenApiClient):
2928
2692
  req_body_type='formData',
2929
2693
  body_type='json'
2930
2694
  )
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
- )
2695
+ return TeaCore.from_map(
2696
+ privatelink_20200415_models.ListTagResourcesResponse(),
2697
+ self.call_api(params, req, runtime)
2698
+ )
2941
2699
 
2942
2700
  async def list_tag_resources_with_options_async(
2943
2701
  self,
@@ -2984,16 +2742,10 @@ class Client(OpenApiClient):
2984
2742
  req_body_type='formData',
2985
2743
  body_type='json'
2986
2744
  )
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
- )
2745
+ return TeaCore.from_map(
2746
+ privatelink_20200415_models.ListTagResourcesResponse(),
2747
+ await self.call_api_async(params, req, runtime)
2748
+ )
2997
2749
 
2998
2750
  def list_tag_resources(
2999
2751
  self,
@@ -3083,16 +2835,10 @@ class Client(OpenApiClient):
3083
2835
  req_body_type='formData',
3084
2836
  body_type='json'
3085
2837
  )
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
- )
2838
+ return TeaCore.from_map(
2839
+ privatelink_20200415_models.ListVpcEndpointConnectionsResponse(),
2840
+ self.call_api(params, req, runtime)
2841
+ )
3096
2842
 
3097
2843
  async def list_vpc_endpoint_connections_with_options_async(
3098
2844
  self,
@@ -3146,16 +2892,10 @@ class Client(OpenApiClient):
3146
2892
  req_body_type='formData',
3147
2893
  body_type='json'
3148
2894
  )
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
- )
2895
+ return TeaCore.from_map(
2896
+ privatelink_20200415_models.ListVpcEndpointConnectionsResponse(),
2897
+ await self.call_api_async(params, req, runtime)
2898
+ )
3159
2899
 
3160
2900
  def list_vpc_endpoint_connections(
3161
2901
  self,
@@ -3221,16 +2961,10 @@ class Client(OpenApiClient):
3221
2961
  req_body_type='formData',
3222
2962
  body_type='json'
3223
2963
  )
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
- )
2964
+ return TeaCore.from_map(
2965
+ privatelink_20200415_models.ListVpcEndpointSecurityGroupsResponse(),
2966
+ self.call_api(params, req, runtime)
2967
+ )
3234
2968
 
3235
2969
  async def list_vpc_endpoint_security_groups_with_options_async(
3236
2970
  self,
@@ -3270,16 +3004,10 @@ class Client(OpenApiClient):
3270
3004
  req_body_type='formData',
3271
3005
  body_type='json'
3272
3006
  )
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
- )
3007
+ return TeaCore.from_map(
3008
+ privatelink_20200415_models.ListVpcEndpointSecurityGroupsResponse(),
3009
+ await self.call_api_async(params, req, runtime)
3010
+ )
3283
3011
 
3284
3012
  def list_vpc_endpoint_security_groups(
3285
3013
  self,
@@ -3345,16 +3073,10 @@ class Client(OpenApiClient):
3345
3073
  req_body_type='formData',
3346
3074
  body_type='json'
3347
3075
  )
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
- )
3076
+ return TeaCore.from_map(
3077
+ privatelink_20200415_models.ListVpcEndpointServiceResourcesResponse(),
3078
+ self.call_api(params, req, runtime)
3079
+ )
3358
3080
 
3359
3081
  async def list_vpc_endpoint_service_resources_with_options_async(
3360
3082
  self,
@@ -3394,16 +3116,10 @@ class Client(OpenApiClient):
3394
3116
  req_body_type='formData',
3395
3117
  body_type='json'
3396
3118
  )
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
- )
3119
+ return TeaCore.from_map(
3120
+ privatelink_20200415_models.ListVpcEndpointServiceResourcesResponse(),
3121
+ await self.call_api_async(params, req, runtime)
3122
+ )
3407
3123
 
3408
3124
  def list_vpc_endpoint_service_resources(
3409
3125
  self,
@@ -3473,16 +3189,10 @@ class Client(OpenApiClient):
3473
3189
  req_body_type='formData',
3474
3190
  body_type='json'
3475
3191
  )
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
- )
3192
+ return TeaCore.from_map(
3193
+ privatelink_20200415_models.ListVpcEndpointServiceUsersResponse(),
3194
+ self.call_api(params, req, runtime)
3195
+ )
3486
3196
 
3487
3197
  async def list_vpc_endpoint_service_users_with_options_async(
3488
3198
  self,
@@ -3526,16 +3236,10 @@ class Client(OpenApiClient):
3526
3236
  req_body_type='formData',
3527
3237
  body_type='json'
3528
3238
  )
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
- )
3239
+ return TeaCore.from_map(
3240
+ privatelink_20200415_models.ListVpcEndpointServiceUsersResponse(),
3241
+ await self.call_api_async(params, req, runtime)
3242
+ )
3539
3243
 
3540
3244
  def list_vpc_endpoint_service_users(
3541
3245
  self,
@@ -3621,16 +3325,10 @@ class Client(OpenApiClient):
3621
3325
  req_body_type='formData',
3622
3326
  body_type='json'
3623
3327
  )
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
- )
3328
+ return TeaCore.from_map(
3329
+ privatelink_20200415_models.ListVpcEndpointServicesResponse(),
3330
+ self.call_api(params, req, runtime)
3331
+ )
3634
3332
 
3635
3333
  async def list_vpc_endpoint_services_with_options_async(
3636
3334
  self,
@@ -3690,16 +3388,10 @@ class Client(OpenApiClient):
3690
3388
  req_body_type='formData',
3691
3389
  body_type='json'
3692
3390
  )
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
- )
3391
+ return TeaCore.from_map(
3392
+ privatelink_20200415_models.ListVpcEndpointServicesResponse(),
3393
+ await self.call_api_async(params, req, runtime)
3394
+ )
3703
3395
 
3704
3396
  def list_vpc_endpoint_services(
3705
3397
  self,
@@ -3773,16 +3465,10 @@ class Client(OpenApiClient):
3773
3465
  req_body_type='formData',
3774
3466
  body_type='json'
3775
3467
  )
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
- )
3468
+ return TeaCore.from_map(
3469
+ privatelink_20200415_models.ListVpcEndpointServicesByEndUserResponse(),
3470
+ self.call_api(params, req, runtime)
3471
+ )
3786
3472
 
3787
3473
  async def list_vpc_endpoint_services_by_end_user_with_options_async(
3788
3474
  self,
@@ -3830,16 +3516,10 @@ class Client(OpenApiClient):
3830
3516
  req_body_type='formData',
3831
3517
  body_type='json'
3832
3518
  )
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
- )
3519
+ return TeaCore.from_map(
3520
+ privatelink_20200415_models.ListVpcEndpointServicesByEndUserResponse(),
3521
+ await self.call_api_async(params, req, runtime)
3522
+ )
3843
3523
 
3844
3524
  def list_vpc_endpoint_services_by_end_user(
3845
3525
  self,
@@ -3905,16 +3585,10 @@ class Client(OpenApiClient):
3905
3585
  req_body_type='formData',
3906
3586
  body_type='json'
3907
3587
  )
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
- )
3588
+ return TeaCore.from_map(
3589
+ privatelink_20200415_models.ListVpcEndpointZonesResponse(),
3590
+ self.call_api(params, req, runtime)
3591
+ )
3918
3592
 
3919
3593
  async def list_vpc_endpoint_zones_with_options_async(
3920
3594
  self,
@@ -3954,16 +3628,10 @@ class Client(OpenApiClient):
3954
3628
  req_body_type='formData',
3955
3629
  body_type='json'
3956
3630
  )
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
- )
3631
+ return TeaCore.from_map(
3632
+ privatelink_20200415_models.ListVpcEndpointZonesResponse(),
3633
+ await self.call_api_async(params, req, runtime)
3634
+ )
3967
3635
 
3968
3636
  def list_vpc_endpoint_zones(
3969
3637
  self,
@@ -4047,16 +3715,10 @@ class Client(OpenApiClient):
4047
3715
  req_body_type='formData',
4048
3716
  body_type='json'
4049
3717
  )
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
- )
3718
+ return TeaCore.from_map(
3719
+ privatelink_20200415_models.ListVpcEndpointsResponse(),
3720
+ self.call_api(params, req, runtime)
3721
+ )
4060
3722
 
4061
3723
  async def list_vpc_endpoints_with_options_async(
4062
3724
  self,
@@ -4114,16 +3776,10 @@ class Client(OpenApiClient):
4114
3776
  req_body_type='formData',
4115
3777
  body_type='json'
4116
3778
  )
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
- )
3779
+ return TeaCore.from_map(
3780
+ privatelink_20200415_models.ListVpcEndpointsResponse(),
3781
+ await self.call_api_async(params, req, runtime)
3782
+ )
4127
3783
 
4128
3784
  def list_vpc_endpoints(
4129
3785
  self,
@@ -4181,16 +3837,10 @@ class Client(OpenApiClient):
4181
3837
  req_body_type='formData',
4182
3838
  body_type='json'
4183
3839
  )
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
- )
3840
+ return TeaCore.from_map(
3841
+ privatelink_20200415_models.OpenPrivateLinkServiceResponse(),
3842
+ self.call_api(params, req, runtime)
3843
+ )
4194
3844
 
4195
3845
  async def open_private_link_service_with_options_async(
4196
3846
  self,
@@ -4222,16 +3872,10 @@ class Client(OpenApiClient):
4222
3872
  req_body_type='formData',
4223
3873
  body_type='json'
4224
3874
  )
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
- )
3875
+ return TeaCore.from_map(
3876
+ privatelink_20200415_models.OpenPrivateLinkServiceResponse(),
3877
+ await self.call_api_async(params, req, runtime)
3878
+ )
4235
3879
 
4236
3880
  def open_private_link_service(
4237
3881
  self,
@@ -4304,16 +3948,10 @@ class Client(OpenApiClient):
4304
3948
  req_body_type='formData',
4305
3949
  body_type='json'
4306
3950
  )
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
- )
3951
+ return TeaCore.from_map(
3952
+ privatelink_20200415_models.RemoveUserFromVpcEndpointServiceResponse(),
3953
+ self.call_api(params, req, runtime)
3954
+ )
4317
3955
 
4318
3956
  async def remove_user_from_vpc_endpoint_service_with_options_async(
4319
3957
  self,
@@ -4360,16 +3998,10 @@ class Client(OpenApiClient):
4360
3998
  req_body_type='formData',
4361
3999
  body_type='json'
4362
4000
  )
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
- )
4001
+ return TeaCore.from_map(
4002
+ privatelink_20200415_models.RemoveUserFromVpcEndpointServiceResponse(),
4003
+ await self.call_api_async(params, req, runtime)
4004
+ )
4373
4005
 
4374
4006
  def remove_user_from_vpc_endpoint_service(
4375
4007
  self,
@@ -4448,16 +4080,10 @@ class Client(OpenApiClient):
4448
4080
  req_body_type='formData',
4449
4081
  body_type='json'
4450
4082
  )
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
- )
4083
+ return TeaCore.from_map(
4084
+ privatelink_20200415_models.RemoveZoneFromVpcEndpointResponse(),
4085
+ self.call_api(params, req, runtime)
4086
+ )
4461
4087
 
4462
4088
  async def remove_zone_from_vpc_endpoint_with_options_async(
4463
4089
  self,
@@ -4504,16 +4130,10 @@ class Client(OpenApiClient):
4504
4130
  req_body_type='formData',
4505
4131
  body_type='json'
4506
4132
  )
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
- )
4133
+ return TeaCore.from_map(
4134
+ privatelink_20200415_models.RemoveZoneFromVpcEndpointResponse(),
4135
+ await self.call_api_async(params, req, runtime)
4136
+ )
4517
4137
 
4518
4138
  def remove_zone_from_vpc_endpoint(
4519
4139
  self,
@@ -4596,16 +4216,10 @@ class Client(OpenApiClient):
4596
4216
  req_body_type='formData',
4597
4217
  body_type='json'
4598
4218
  )
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
- )
4219
+ return TeaCore.from_map(
4220
+ privatelink_20200415_models.TagResourcesResponse(),
4221
+ self.call_api(params, req, runtime)
4222
+ )
4609
4223
 
4610
4224
  async def tag_resources_with_options_async(
4611
4225
  self,
@@ -4652,16 +4266,10 @@ class Client(OpenApiClient):
4652
4266
  req_body_type='formData',
4653
4267
  body_type='json'
4654
4268
  )
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
- )
4269
+ return TeaCore.from_map(
4270
+ privatelink_20200415_models.TagResourcesResponse(),
4271
+ await self.call_api_async(params, req, runtime)
4272
+ )
4665
4273
 
4666
4274
  def tag_resources(
4667
4275
  self,
@@ -4740,16 +4348,10 @@ class Client(OpenApiClient):
4740
4348
  req_body_type='formData',
4741
4349
  body_type='json'
4742
4350
  )
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
- )
4351
+ return TeaCore.from_map(
4352
+ privatelink_20200415_models.UntagResourcesResponse(),
4353
+ self.call_api(params, req, runtime)
4354
+ )
4753
4355
 
4754
4356
  async def untag_resources_with_options_async(
4755
4357
  self,
@@ -4798,16 +4400,10 @@ class Client(OpenApiClient):
4798
4400
  req_body_type='formData',
4799
4401
  body_type='json'
4800
4402
  )
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
- )
4403
+ return TeaCore.from_map(
4404
+ privatelink_20200415_models.UntagResourcesResponse(),
4405
+ await self.call_api_async(params, req, runtime)
4406
+ )
4811
4407
 
4812
4408
  def untag_resources(
4813
4409
  self,
@@ -4869,6 +4465,8 @@ class Client(OpenApiClient):
4869
4465
  query['RegionId'] = request.region_id
4870
4466
  if not UtilClient.is_unset(request.region_id):
4871
4467
  query['RegionId'] = request.region_id
4468
+ if not UtilClient.is_unset(request.zone_affinity_enabled):
4469
+ query['ZoneAffinityEnabled'] = request.zone_affinity_enabled
4872
4470
  req = open_api_models.OpenApiRequest(
4873
4471
  query=OpenApiUtilClient.query(query)
4874
4472
  )
@@ -4883,16 +4481,10 @@ class Client(OpenApiClient):
4883
4481
  req_body_type='formData',
4884
4482
  body_type='json'
4885
4483
  )
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
- )
4484
+ return TeaCore.from_map(
4485
+ privatelink_20200415_models.UpdateVpcEndpointAttributeResponse(),
4486
+ self.call_api(params, req, runtime)
4487
+ )
4896
4488
 
4897
4489
  async def update_vpc_endpoint_attribute_with_options_async(
4898
4490
  self,
@@ -4928,6 +4520,8 @@ class Client(OpenApiClient):
4928
4520
  query['RegionId'] = request.region_id
4929
4521
  if not UtilClient.is_unset(request.region_id):
4930
4522
  query['RegionId'] = request.region_id
4523
+ if not UtilClient.is_unset(request.zone_affinity_enabled):
4524
+ query['ZoneAffinityEnabled'] = request.zone_affinity_enabled
4931
4525
  req = open_api_models.OpenApiRequest(
4932
4526
  query=OpenApiUtilClient.query(query)
4933
4527
  )
@@ -4942,16 +4536,10 @@ class Client(OpenApiClient):
4942
4536
  req_body_type='formData',
4943
4537
  body_type='json'
4944
4538
  )
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
- )
4539
+ return TeaCore.from_map(
4540
+ privatelink_20200415_models.UpdateVpcEndpointAttributeResponse(),
4541
+ await self.call_api_async(params, req, runtime)
4542
+ )
4955
4543
 
4956
4544
  def update_vpc_endpoint_attribute(
4957
4545
  self,
@@ -5027,16 +4615,10 @@ class Client(OpenApiClient):
5027
4615
  req_body_type='formData',
5028
4616
  body_type='json'
5029
4617
  )
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
- )
4618
+ return TeaCore.from_map(
4619
+ privatelink_20200415_models.UpdateVpcEndpointConnectionAttributeResponse(),
4620
+ self.call_api(params, req, runtime)
4621
+ )
5040
4622
 
5041
4623
  async def update_vpc_endpoint_connection_attribute_with_options_async(
5042
4624
  self,
@@ -5082,16 +4664,10 @@ class Client(OpenApiClient):
5082
4664
  req_body_type='formData',
5083
4665
  body_type='json'
5084
4666
  )
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
- )
4667
+ return TeaCore.from_map(
4668
+ privatelink_20200415_models.UpdateVpcEndpointConnectionAttributeResponse(),
4669
+ await self.call_api_async(params, req, runtime)
4670
+ )
5095
4671
 
5096
4672
  def update_vpc_endpoint_connection_attribute(
5097
4673
  self,
@@ -5175,16 +4751,10 @@ class Client(OpenApiClient):
5175
4751
  req_body_type='formData',
5176
4752
  body_type='json'
5177
4753
  )
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
- )
4754
+ return TeaCore.from_map(
4755
+ privatelink_20200415_models.UpdateVpcEndpointServiceAttributeResponse(),
4756
+ self.call_api(params, req, runtime)
4757
+ )
5188
4758
 
5189
4759
  async def update_vpc_endpoint_service_attribute_with_options_async(
5190
4760
  self,
@@ -5238,16 +4808,10 @@ class Client(OpenApiClient):
5238
4808
  req_body_type='formData',
5239
4809
  body_type='json'
5240
4810
  )
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
- )
4811
+ return TeaCore.from_map(
4812
+ privatelink_20200415_models.UpdateVpcEndpointServiceAttributeResponse(),
4813
+ await self.call_api_async(params, req, runtime)
4814
+ )
5251
4815
 
5252
4816
  def update_vpc_endpoint_service_attribute(
5253
4817
  self,
@@ -5325,16 +4889,10 @@ class Client(OpenApiClient):
5325
4889
  req_body_type='formData',
5326
4890
  body_type='json'
5327
4891
  )
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
- )
4892
+ return TeaCore.from_map(
4893
+ privatelink_20200415_models.UpdateVpcEndpointServiceResourceAttributeResponse(),
4894
+ self.call_api(params, req, runtime)
4895
+ )
5338
4896
 
5339
4897
  async def update_vpc_endpoint_service_resource_attribute_with_options_async(
5340
4898
  self,
@@ -5382,16 +4940,10 @@ class Client(OpenApiClient):
5382
4940
  req_body_type='formData',
5383
4941
  body_type='json'
5384
4942
  )
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
- )
4943
+ return TeaCore.from_map(
4944
+ privatelink_20200415_models.UpdateVpcEndpointServiceResourceAttributeResponse(),
4945
+ await self.call_api_async(params, req, runtime)
4946
+ )
5395
4947
 
5396
4948
  def update_vpc_endpoint_service_resource_attribute(
5397
4949
  self,
@@ -5483,16 +5035,10 @@ class Client(OpenApiClient):
5483
5035
  req_body_type='formData',
5484
5036
  body_type='json'
5485
5037
  )
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
- )
5038
+ return TeaCore.from_map(
5039
+ privatelink_20200415_models.UpdateVpcEndpointZoneConnectionResourceAttributeResponse(),
5040
+ self.call_api(params, req, runtime)
5041
+ )
5496
5042
 
5497
5043
  async def update_vpc_endpoint_zone_connection_resource_attribute_with_options_async(
5498
5044
  self,
@@ -5554,16 +5100,10 @@ class Client(OpenApiClient):
5554
5100
  req_body_type='formData',
5555
5101
  body_type='json'
5556
5102
  )
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
- )
5103
+ return TeaCore.from_map(
5104
+ privatelink_20200415_models.UpdateVpcEndpointZoneConnectionResourceAttributeResponse(),
5105
+ await self.call_api_async(params, req, runtime)
5106
+ )
5567
5107
 
5568
5108
  def update_vpc_endpoint_zone_connection_resource_attribute(
5569
5109
  self,