alibabacloud-fc20230330 2.0.0__py3-none-any.whl → 3.0.0__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.
@@ -158,19 +158,17 @@ class AsyncConfig(TeaModel):
158
158
  self,
159
159
  created_time: str = None,
160
160
  destination_config: DestinationConfig = None,
161
- function_name: str = None,
161
+ function_arn: str = None,
162
162
  last_modified_time: str = None,
163
163
  max_async_event_age_in_seconds: int = None,
164
164
  max_async_retry_attempts: int = None,
165
- qualifier: str = None,
166
165
  ):
167
166
  self.created_time = created_time
168
167
  self.destination_config = destination_config
169
- self.function_name = function_name
168
+ self.function_arn = function_arn
170
169
  self.last_modified_time = last_modified_time
171
170
  self.max_async_event_age_in_seconds = max_async_event_age_in_seconds
172
171
  self.max_async_retry_attempts = max_async_retry_attempts
173
- self.qualifier = qualifier
174
172
 
175
173
  def validate(self):
176
174
  if self.destination_config:
@@ -186,16 +184,14 @@ class AsyncConfig(TeaModel):
186
184
  result['createdTime'] = self.created_time
187
185
  if self.destination_config is not None:
188
186
  result['destinationConfig'] = self.destination_config.to_map()
189
- if self.function_name is not None:
190
- result['functionName'] = self.function_name
187
+ if self.function_arn is not None:
188
+ result['functionArn'] = self.function_arn
191
189
  if self.last_modified_time is not None:
192
190
  result['lastModifiedTime'] = self.last_modified_time
193
191
  if self.max_async_event_age_in_seconds is not None:
194
192
  result['maxAsyncEventAgeInSeconds'] = self.max_async_event_age_in_seconds
195
193
  if self.max_async_retry_attempts is not None:
196
194
  result['maxAsyncRetryAttempts'] = self.max_async_retry_attempts
197
- if self.qualifier is not None:
198
- result['qualifier'] = self.qualifier
199
195
  return result
200
196
 
201
197
  def from_map(self, m: dict = None):
@@ -205,16 +201,47 @@ class AsyncConfig(TeaModel):
205
201
  if m.get('destinationConfig') is not None:
206
202
  temp_model = DestinationConfig()
207
203
  self.destination_config = temp_model.from_map(m['destinationConfig'])
208
- if m.get('functionName') is not None:
209
- self.function_name = m.get('functionName')
204
+ if m.get('functionArn') is not None:
205
+ self.function_arn = m.get('functionArn')
210
206
  if m.get('lastModifiedTime') is not None:
211
207
  self.last_modified_time = m.get('lastModifiedTime')
212
208
  if m.get('maxAsyncEventAgeInSeconds') is not None:
213
209
  self.max_async_event_age_in_seconds = m.get('maxAsyncEventAgeInSeconds')
214
210
  if m.get('maxAsyncRetryAttempts') is not None:
215
211
  self.max_async_retry_attempts = m.get('maxAsyncRetryAttempts')
216
- if m.get('qualifier') is not None:
217
- self.qualifier = m.get('qualifier')
212
+ return self
213
+
214
+
215
+ class AuthConfig(TeaModel):
216
+ def __init__(
217
+ self,
218
+ auth_info: str = None,
219
+ auth_type: str = None,
220
+ ):
221
+ self.auth_info = auth_info
222
+ self.auth_type = auth_type
223
+
224
+ def validate(self):
225
+ pass
226
+
227
+ def to_map(self):
228
+ _map = super().to_map()
229
+ if _map is not None:
230
+ return _map
231
+
232
+ result = dict()
233
+ if self.auth_info is not None:
234
+ result['authInfo'] = self.auth_info
235
+ if self.auth_type is not None:
236
+ result['authType'] = self.auth_type
237
+ return result
238
+
239
+ def from_map(self, m: dict = None):
240
+ m = m or dict()
241
+ if m.get('authInfo') is not None:
242
+ self.auth_info = m.get('authInfo')
243
+ if m.get('authType') is not None:
244
+ self.auth_type = m.get('authType')
218
245
  return self
219
246
 
220
247
 
@@ -335,74 +362,6 @@ class CreateAliasInput(TeaModel):
335
362
  return self
336
363
 
337
364
 
338
- class RewriteRegexRule(TeaModel):
339
- def __init__(
340
- self,
341
- regex_str: str = None,
342
- replacement: str = None,
343
- ):
344
- self.regex_str = regex_str
345
- self.replacement = replacement
346
-
347
- def validate(self):
348
- pass
349
-
350
- def to_map(self):
351
- _map = super().to_map()
352
- if _map is not None:
353
- return _map
354
-
355
- result = dict()
356
- if self.regex_str is not None:
357
- result['regexStr'] = self.regex_str
358
- if self.replacement is not None:
359
- result['replacement'] = self.replacement
360
- return result
361
-
362
- def from_map(self, m: dict = None):
363
- m = m or dict()
364
- if m.get('regexStr') is not None:
365
- self.regex_str = m.get('regexStr')
366
- if m.get('replacement') is not None:
367
- self.replacement = m.get('replacement')
368
- return self
369
-
370
-
371
- class InnerRewriteConfig(TeaModel):
372
- def __init__(
373
- self,
374
- regex_rules: List[RewriteRegexRule] = None,
375
- ):
376
- self.regex_rules = regex_rules
377
-
378
- def validate(self):
379
- if self.regex_rules:
380
- for k in self.regex_rules:
381
- if k:
382
- k.validate()
383
-
384
- def to_map(self):
385
- _map = super().to_map()
386
- if _map is not None:
387
- return _map
388
-
389
- result = dict()
390
- result['regexRules'] = []
391
- if self.regex_rules is not None:
392
- for k in self.regex_rules:
393
- result['regexRules'].append(k.to_map() if k else None)
394
- return result
395
-
396
- def from_map(self, m: dict = None):
397
- m = m or dict()
398
- self.regex_rules = []
399
- if m.get('regexRules') is not None:
400
- for k in m.get('regexRules'):
401
- temp_model = RewriteRegexRule()
402
- self.regex_rules.append(temp_model.from_map(k))
403
- return self
404
-
405
-
406
365
  class EqualRule(TeaModel):
407
366
  def __init__(
408
367
  self,
@@ -570,27 +529,19 @@ class RewriteConfig(TeaModel):
570
529
  class PathConfig(TeaModel):
571
530
  def __init__(
572
531
  self,
573
- account_id: str = None,
574
532
  function_name: str = None,
575
- inner_rewrite_config: InnerRewriteConfig = None,
576
533
  methods: List[str] = None,
577
534
  path: str = None,
578
535
  qualifier: str = None,
579
536
  rewrite_config: RewriteConfig = None,
580
- service_name: str = None,
581
537
  ):
582
- self.account_id = account_id
583
538
  self.function_name = function_name
584
- self.inner_rewrite_config = inner_rewrite_config
585
539
  self.methods = methods
586
540
  self.path = path
587
541
  self.qualifier = qualifier
588
542
  self.rewrite_config = rewrite_config
589
- self.service_name = service_name
590
543
 
591
544
  def validate(self):
592
- if self.inner_rewrite_config:
593
- self.inner_rewrite_config.validate()
594
545
  if self.rewrite_config:
595
546
  self.rewrite_config.validate()
596
547
 
@@ -600,12 +551,8 @@ class PathConfig(TeaModel):
600
551
  return _map
601
552
 
602
553
  result = dict()
603
- if self.account_id is not None:
604
- result['accountId'] = self.account_id
605
554
  if self.function_name is not None:
606
555
  result['functionName'] = self.function_name
607
- if self.inner_rewrite_config is not None:
608
- result['innerRewriteConfig'] = self.inner_rewrite_config.to_map()
609
556
  if self.methods is not None:
610
557
  result['methods'] = self.methods
611
558
  if self.path is not None:
@@ -614,19 +561,12 @@ class PathConfig(TeaModel):
614
561
  result['qualifier'] = self.qualifier
615
562
  if self.rewrite_config is not None:
616
563
  result['rewriteConfig'] = self.rewrite_config.to_map()
617
- if self.service_name is not None:
618
- result['serviceName'] = self.service_name
619
564
  return result
620
565
 
621
566
  def from_map(self, m: dict = None):
622
567
  m = m or dict()
623
- if m.get('accountId') is not None:
624
- self.account_id = m.get('accountId')
625
568
  if m.get('functionName') is not None:
626
569
  self.function_name = m.get('functionName')
627
- if m.get('innerRewriteConfig') is not None:
628
- temp_model = InnerRewriteConfig()
629
- self.inner_rewrite_config = temp_model.from_map(m['innerRewriteConfig'])
630
570
  if m.get('methods') is not None:
631
571
  self.methods = m.get('methods')
632
572
  if m.get('path') is not None:
@@ -636,8 +576,6 @@ class PathConfig(TeaModel):
636
576
  if m.get('rewriteConfig') is not None:
637
577
  temp_model = RewriteConfig()
638
578
  self.rewrite_config = temp_model.from_map(m['rewriteConfig'])
639
- if m.get('serviceName') is not None:
640
- self.service_name = m.get('serviceName')
641
579
  return self
642
580
 
643
581
 
@@ -745,6 +683,7 @@ class WAFConfig(TeaModel):
745
683
  class CreateCustomDomainInput(TeaModel):
746
684
  def __init__(
747
685
  self,
686
+ auth_config: AuthConfig = None,
748
687
  cert_config: CertConfig = None,
749
688
  domain_name: str = None,
750
689
  protocol: str = None,
@@ -752,6 +691,7 @@ class CreateCustomDomainInput(TeaModel):
752
691
  tls_config: TLSConfig = None,
753
692
  waf_config: WAFConfig = None,
754
693
  ):
694
+ self.auth_config = auth_config
755
695
  self.cert_config = cert_config
756
696
  self.domain_name = domain_name
757
697
  self.protocol = protocol
@@ -760,6 +700,8 @@ class CreateCustomDomainInput(TeaModel):
760
700
  self.waf_config = waf_config
761
701
 
762
702
  def validate(self):
703
+ if self.auth_config:
704
+ self.auth_config.validate()
763
705
  if self.cert_config:
764
706
  self.cert_config.validate()
765
707
  if self.route_config:
@@ -775,6 +717,8 @@ class CreateCustomDomainInput(TeaModel):
775
717
  return _map
776
718
 
777
719
  result = dict()
720
+ if self.auth_config is not None:
721
+ result['authConfig'] = self.auth_config.to_map()
778
722
  if self.cert_config is not None:
779
723
  result['certConfig'] = self.cert_config.to_map()
780
724
  if self.domain_name is not None:
@@ -791,6 +735,9 @@ class CreateCustomDomainInput(TeaModel):
791
735
 
792
736
  def from_map(self, m: dict = None):
793
737
  m = m or dict()
738
+ if m.get('authConfig') is not None:
739
+ temp_model = AuthConfig()
740
+ self.auth_config = temp_model.from_map(m['authConfig'])
794
741
  if m.get('certConfig') is not None:
795
742
  temp_model = CertConfig()
796
743
  self.cert_config = temp_model.from_map(m['certConfig'])
@@ -950,7 +897,7 @@ class CustomContainerConfig(TeaModel):
950
897
  if self.acceleration_type is not None:
951
898
  result['accelerationType'] = self.acceleration_type
952
899
  if self.acr_instance_id is not None:
953
- result['acrInstanceID'] = self.acr_instance_id
900
+ result['acrInstanceId'] = self.acr_instance_id
954
901
  if self.command is not None:
955
902
  result['command'] = self.command
956
903
  if self.entrypoint is not None:
@@ -970,8 +917,8 @@ class CustomContainerConfig(TeaModel):
970
917
  self.acceleration_info = temp_model.from_map(m['accelerationInfo'])
971
918
  if m.get('accelerationType') is not None:
972
919
  self.acceleration_type = m.get('accelerationType')
973
- if m.get('acrInstanceID') is not None:
974
- self.acr_instance_id = m.get('acrInstanceID')
920
+ if m.get('acrInstanceId') is not None:
921
+ self.acr_instance_id = m.get('acrInstanceId')
975
922
  if m.get('command') is not None:
976
923
  self.command = m.get('command')
977
924
  if m.get('entrypoint') is not None:
@@ -1473,33 +1420,6 @@ class TracingConfig(TeaModel):
1473
1420
  return self
1474
1421
 
1475
1422
 
1476
- class VPCBinding(TeaModel):
1477
- def __init__(
1478
- self,
1479
- vpc_ids: List[str] = None,
1480
- ):
1481
- self.vpc_ids = vpc_ids
1482
-
1483
- def validate(self):
1484
- pass
1485
-
1486
- def to_map(self):
1487
- _map = super().to_map()
1488
- if _map is not None:
1489
- return _map
1490
-
1491
- result = dict()
1492
- if self.vpc_ids is not None:
1493
- result['vpcIds'] = self.vpc_ids
1494
- return result
1495
-
1496
- def from_map(self, m: dict = None):
1497
- m = m or dict()
1498
- if m.get('vpcIds') is not None:
1499
- self.vpc_ids = m.get('vpcIds')
1500
- return self
1501
-
1502
-
1503
1423
  class VPCConfig(TeaModel):
1504
1424
  def __init__(
1505
1425
  self,
@@ -1565,7 +1485,6 @@ class CreateFunctionInput(TeaModel):
1565
1485
  runtime: str = None,
1566
1486
  timeout: int = None,
1567
1487
  tracing_config: TracingConfig = None,
1568
- vpc_binding: VPCBinding = None,
1569
1488
  vpc_config: VPCConfig = None,
1570
1489
  ):
1571
1490
  self.code = code
@@ -1591,7 +1510,6 @@ class CreateFunctionInput(TeaModel):
1591
1510
  self.runtime = runtime
1592
1511
  self.timeout = timeout
1593
1512
  self.tracing_config = tracing_config
1594
- self.vpc_binding = vpc_binding
1595
1513
  self.vpc_config = vpc_config
1596
1514
 
1597
1515
  def validate(self):
@@ -1615,8 +1533,6 @@ class CreateFunctionInput(TeaModel):
1615
1533
  self.oss_mount_config.validate()
1616
1534
  if self.tracing_config:
1617
1535
  self.tracing_config.validate()
1618
- if self.vpc_binding:
1619
- self.vpc_binding.validate()
1620
1536
  if self.vpc_config:
1621
1537
  self.vpc_config.validate()
1622
1538
 
@@ -1672,8 +1588,6 @@ class CreateFunctionInput(TeaModel):
1672
1588
  result['timeout'] = self.timeout
1673
1589
  if self.tracing_config is not None:
1674
1590
  result['tracingConfig'] = self.tracing_config.to_map()
1675
- if self.vpc_binding is not None:
1676
- result['vpcBinding'] = self.vpc_binding.to_map()
1677
1591
  if self.vpc_config is not None:
1678
1592
  result['vpcConfig'] = self.vpc_config.to_map()
1679
1593
  return result
@@ -1736,9 +1650,6 @@ class CreateFunctionInput(TeaModel):
1736
1650
  if m.get('tracingConfig') is not None:
1737
1651
  temp_model = TracingConfig()
1738
1652
  self.tracing_config = temp_model.from_map(m['tracingConfig'])
1739
- if m.get('vpcBinding') is not None:
1740
- temp_model = VPCBinding()
1741
- self.vpc_binding = temp_model.from_map(m['vpcBinding'])
1742
1653
  if m.get('vpcConfig') is not None:
1743
1654
  temp_model = VPCConfig()
1744
1655
  self.vpc_config = temp_model.from_map(m['vpcConfig'])
@@ -1855,11 +1766,39 @@ class CreateTriggerInput(TeaModel):
1855
1766
  return self
1856
1767
 
1857
1768
 
1769
+ class CreateVpcBindingInput(TeaModel):
1770
+ def __init__(
1771
+ self,
1772
+ vpc_id: str = None,
1773
+ ):
1774
+ self.vpc_id = vpc_id
1775
+
1776
+ def validate(self):
1777
+ pass
1778
+
1779
+ def to_map(self):
1780
+ _map = super().to_map()
1781
+ if _map is not None:
1782
+ return _map
1783
+
1784
+ result = dict()
1785
+ if self.vpc_id is not None:
1786
+ result['vpcId'] = self.vpc_id
1787
+ return result
1788
+
1789
+ def from_map(self, m: dict = None):
1790
+ m = m or dict()
1791
+ if m.get('vpcId') is not None:
1792
+ self.vpc_id = m.get('vpcId')
1793
+ return self
1794
+
1795
+
1858
1796
  class CustomDomain(TeaModel):
1859
1797
  def __init__(
1860
1798
  self,
1861
1799
  account_id: str = None,
1862
1800
  api_version: str = None,
1801
+ auth_config: AuthConfig = None,
1863
1802
  cert_config: CertConfig = None,
1864
1803
  created_time: str = None,
1865
1804
  domain_name: str = None,
@@ -1872,6 +1811,7 @@ class CustomDomain(TeaModel):
1872
1811
  ):
1873
1812
  self.account_id = account_id
1874
1813
  self.api_version = api_version
1814
+ self.auth_config = auth_config
1875
1815
  self.cert_config = cert_config
1876
1816
  self.created_time = created_time
1877
1817
  self.domain_name = domain_name
@@ -1883,6 +1823,8 @@ class CustomDomain(TeaModel):
1883
1823
  self.waf_config = waf_config
1884
1824
 
1885
1825
  def validate(self):
1826
+ if self.auth_config:
1827
+ self.auth_config.validate()
1886
1828
  if self.cert_config:
1887
1829
  self.cert_config.validate()
1888
1830
  if self.route_config:
@@ -1902,6 +1844,8 @@ class CustomDomain(TeaModel):
1902
1844
  result['accountId'] = self.account_id
1903
1845
  if self.api_version is not None:
1904
1846
  result['apiVersion'] = self.api_version
1847
+ if self.auth_config is not None:
1848
+ result['authConfig'] = self.auth_config.to_map()
1905
1849
  if self.cert_config is not None:
1906
1850
  result['certConfig'] = self.cert_config.to_map()
1907
1851
  if self.created_time is not None:
@@ -1928,6 +1872,9 @@ class CustomDomain(TeaModel):
1928
1872
  self.account_id = m.get('accountId')
1929
1873
  if m.get('apiVersion') is not None:
1930
1874
  self.api_version = m.get('apiVersion')
1875
+ if m.get('authConfig') is not None:
1876
+ temp_model = AuthConfig()
1877
+ self.auth_config = temp_model.from_map(m['authConfig'])
1931
1878
  if m.get('certConfig') is not None:
1932
1879
  temp_model = CertConfig()
1933
1880
  self.cert_config = temp_model.from_map(m['certConfig'])
@@ -1974,21 +1921,21 @@ class Error(TeaModel):
1974
1921
 
1975
1922
  result = dict()
1976
1923
  if self.code is not None:
1977
- result['code'] = self.code
1924
+ result['Code'] = self.code
1978
1925
  if self.message is not None:
1979
- result['message'] = self.message
1926
+ result['Message'] = self.message
1980
1927
  if self.request_id is not None:
1981
- result['requestId'] = self.request_id
1928
+ result['RequestId'] = self.request_id
1982
1929
  return result
1983
1930
 
1984
1931
  def from_map(self, m: dict = None):
1985
1932
  m = m or dict()
1986
- if m.get('code') is not None:
1987
- self.code = m.get('code')
1988
- if m.get('message') is not None:
1989
- self.message = m.get('message')
1990
- if m.get('requestId') is not None:
1991
- self.request_id = m.get('requestId')
1933
+ if m.get('Code') is not None:
1934
+ self.code = m.get('Code')
1935
+ if m.get('Message') is not None:
1936
+ self.message = m.get('Message')
1937
+ if m.get('RequestId') is not None:
1938
+ self.request_id = m.get('RequestId')
1992
1939
  return self
1993
1940
 
1994
1941
 
@@ -2056,7 +2003,6 @@ class Function(TeaModel):
2056
2003
  runtime: str = None,
2057
2004
  timeout: int = None,
2058
2005
  tracing_config: TracingConfig = None,
2059
- vpc_binding: VPCBinding = None,
2060
2006
  vpc_config: VPCConfig = None,
2061
2007
  ):
2062
2008
  self.code_checksum = code_checksum
@@ -2087,7 +2033,6 @@ class Function(TeaModel):
2087
2033
  self.runtime = runtime
2088
2034
  self.timeout = timeout
2089
2035
  self.tracing_config = tracing_config
2090
- self.vpc_binding = vpc_binding
2091
2036
  self.vpc_config = vpc_config
2092
2037
 
2093
2038
  def validate(self):
@@ -2113,8 +2058,6 @@ class Function(TeaModel):
2113
2058
  self.oss_mount_config.validate()
2114
2059
  if self.tracing_config:
2115
2060
  self.tracing_config.validate()
2116
- if self.vpc_binding:
2117
- self.vpc_binding.validate()
2118
2061
  if self.vpc_config:
2119
2062
  self.vpc_config.validate()
2120
2063
 
@@ -2182,8 +2125,6 @@ class Function(TeaModel):
2182
2125
  result['timeout'] = self.timeout
2183
2126
  if self.tracing_config is not None:
2184
2127
  result['tracingConfig'] = self.tracing_config.to_map()
2185
- if self.vpc_binding is not None:
2186
- result['vpcBinding'] = self.vpc_binding.to_map()
2187
2128
  if self.vpc_config is not None:
2188
2129
  result['vpcConfig'] = self.vpc_config.to_map()
2189
2130
  return result
@@ -2258,9 +2199,6 @@ class Function(TeaModel):
2258
2199
  if m.get('tracingConfig') is not None:
2259
2200
  temp_model = TracingConfig()
2260
2201
  self.tracing_config = temp_model.from_map(m['tracingConfig'])
2261
- if m.get('vpcBinding') is not None:
2262
- temp_model = VPCBinding()
2263
- self.vpc_binding = temp_model.from_map(m['vpcBinding'])
2264
2202
  if m.get('vpcConfig') is not None:
2265
2203
  temp_model = VPCConfig()
2266
2204
  self.vpc_config = temp_model.from_map(m['vpcConfig'])
@@ -2333,63 +2271,6 @@ class HTTPTrigger(TeaModel):
2333
2271
  return self
2334
2272
 
2335
2273
 
2336
- class HealthCheckConfig(TeaModel):
2337
- def __init__(
2338
- self,
2339
- failure_threshold: int = None,
2340
- http_get_url: str = None,
2341
- initial_delay_seconds: int = None,
2342
- period_seconds: int = None,
2343
- success_threshold: int = None,
2344
- timeout_seconds: int = None,
2345
- ):
2346
- self.failure_threshold = failure_threshold
2347
- self.http_get_url = http_get_url
2348
- self.initial_delay_seconds = initial_delay_seconds
2349
- self.period_seconds = period_seconds
2350
- self.success_threshold = success_threshold
2351
- self.timeout_seconds = timeout_seconds
2352
-
2353
- def validate(self):
2354
- pass
2355
-
2356
- def to_map(self):
2357
- _map = super().to_map()
2358
- if _map is not None:
2359
- return _map
2360
-
2361
- result = dict()
2362
- if self.failure_threshold is not None:
2363
- result['failureThreshold'] = self.failure_threshold
2364
- if self.http_get_url is not None:
2365
- result['httpGetUrl'] = self.http_get_url
2366
- if self.initial_delay_seconds is not None:
2367
- result['initialDelaySeconds'] = self.initial_delay_seconds
2368
- if self.period_seconds is not None:
2369
- result['periodSeconds'] = self.period_seconds
2370
- if self.success_threshold is not None:
2371
- result['successThreshold'] = self.success_threshold
2372
- if self.timeout_seconds is not None:
2373
- result['timeoutSeconds'] = self.timeout_seconds
2374
- return result
2375
-
2376
- def from_map(self, m: dict = None):
2377
- m = m or dict()
2378
- if m.get('failureThreshold') is not None:
2379
- self.failure_threshold = m.get('failureThreshold')
2380
- if m.get('httpGetUrl') is not None:
2381
- self.http_get_url = m.get('httpGetUrl')
2382
- if m.get('initialDelaySeconds') is not None:
2383
- self.initial_delay_seconds = m.get('initialDelaySeconds')
2384
- if m.get('periodSeconds') is not None:
2385
- self.period_seconds = m.get('periodSeconds')
2386
- if m.get('successThreshold') is not None:
2387
- self.success_threshold = m.get('successThreshold')
2388
- if m.get('timeoutSeconds') is not None:
2389
- self.timeout_seconds = m.get('timeoutSeconds')
2390
- return self
2391
-
2392
-
2393
2274
  class InstanceInfo(TeaModel):
2394
2275
  def __init__(
2395
2276
  self,
@@ -3323,13 +3204,11 @@ class Version(TeaModel):
3323
3204
  self,
3324
3205
  created_time: str = None,
3325
3206
  description: str = None,
3326
- function_version_arn: str = None,
3327
3207
  last_modified_time: str = None,
3328
3208
  version_id: str = None,
3329
3209
  ):
3330
3210
  self.created_time = created_time
3331
3211
  self.description = description
3332
- self.function_version_arn = function_version_arn
3333
3212
  self.last_modified_time = last_modified_time
3334
3213
  self.version_id = version_id
3335
3214
 
@@ -3346,8 +3225,6 @@ class Version(TeaModel):
3346
3225
  result['createdTime'] = self.created_time
3347
3226
  if self.description is not None:
3348
3227
  result['description'] = self.description
3349
- if self.function_version_arn is not None:
3350
- result['functionVersionArn'] = self.function_version_arn
3351
3228
  if self.last_modified_time is not None:
3352
3229
  result['lastModifiedTime'] = self.last_modified_time
3353
3230
  if self.version_id is not None:
@@ -3360,8 +3237,6 @@ class Version(TeaModel):
3360
3237
  self.created_time = m.get('createdTime')
3361
3238
  if m.get('description') is not None:
3362
3239
  self.description = m.get('description')
3363
- if m.get('functionVersionArn') is not None:
3364
- self.function_version_arn = m.get('functionVersionArn')
3365
3240
  if m.get('lastModifiedTime') is not None:
3366
3241
  self.last_modified_time = m.get('lastModifiedTime')
3367
3242
  if m.get('versionId') is not None:
@@ -3416,14 +3291,12 @@ class ListVersionsOutput(TeaModel):
3416
3291
  return self
3417
3292
 
3418
3293
 
3419
- class OutputFuncCode(TeaModel):
3294
+ class ListVpcBindingsOutput(TeaModel):
3420
3295
  def __init__(
3421
3296
  self,
3422
- checksum: str = None,
3423
- url: str = None,
3297
+ vpc_ids: List[str] = None,
3424
3298
  ):
3425
- self.checksum = checksum
3426
- self.url = url
3299
+ self.vpc_ids = vpc_ids
3427
3300
 
3428
3301
  def validate(self):
3429
3302
  pass
@@ -3434,33 +3307,25 @@ class OutputFuncCode(TeaModel):
3434
3307
  return _map
3435
3308
 
3436
3309
  result = dict()
3437
- if self.checksum is not None:
3438
- result['checksum'] = self.checksum
3439
- if self.url is not None:
3440
- result['url'] = self.url
3310
+ if self.vpc_ids is not None:
3311
+ result['vpcIds'] = self.vpc_ids
3441
3312
  return result
3442
3313
 
3443
3314
  def from_map(self, m: dict = None):
3444
3315
  m = m or dict()
3445
- if m.get('checksum') is not None:
3446
- self.checksum = m.get('checksum')
3447
- if m.get('url') is not None:
3448
- self.url = m.get('url')
3316
+ if m.get('vpcIds') is not None:
3317
+ self.vpc_ids = m.get('vpcIds')
3449
3318
  return self
3450
3319
 
3451
3320
 
3452
- class PolicyItem(TeaModel):
3321
+ class OutputFuncCode(TeaModel):
3453
3322
  def __init__(
3454
3323
  self,
3455
- key: str = None,
3456
- operator: str = None,
3457
- type: str = None,
3458
- value: str = None,
3324
+ checksum: str = None,
3325
+ url: str = None,
3459
3326
  ):
3460
- self.key = key
3461
- self.operator = operator
3462
- self.type = type
3463
- self.value = value
3327
+ self.checksum = checksum
3328
+ self.url = url
3464
3329
 
3465
3330
  def validate(self):
3466
3331
  pass
@@ -3471,26 +3336,18 @@ class PolicyItem(TeaModel):
3471
3336
  return _map
3472
3337
 
3473
3338
  result = dict()
3474
- if self.key is not None:
3475
- result['key'] = self.key
3476
- if self.operator is not None:
3477
- result['operator'] = self.operator
3478
- if self.type is not None:
3479
- result['type'] = self.type
3480
- if self.value is not None:
3481
- result['value'] = self.value
3339
+ if self.checksum is not None:
3340
+ result['checksum'] = self.checksum
3341
+ if self.url is not None:
3342
+ result['url'] = self.url
3482
3343
  return result
3483
3344
 
3484
3345
  def from_map(self, m: dict = None):
3485
3346
  m = m or dict()
3486
- if m.get('key') is not None:
3487
- self.key = m.get('key')
3488
- if m.get('operator') is not None:
3489
- self.operator = m.get('operator')
3490
- if m.get('type') is not None:
3491
- self.type = m.get('type')
3492
- if m.get('value') is not None:
3493
- self.value = m.get('value')
3347
+ if m.get('checksum') is not None:
3348
+ self.checksum = m.get('checksum')
3349
+ if m.get('url') is not None:
3350
+ self.url = m.get('url')
3494
3351
  return self
3495
3352
 
3496
3353
 
@@ -3651,89 +3508,13 @@ class PutProvisionConfigInput(TeaModel):
3651
3508
  return self
3652
3509
 
3653
3510
 
3654
- class RoutePolicy(TeaModel):
3655
- def __init__(
3656
- self,
3657
- condition: str = None,
3658
- policy_items: List[PolicyItem] = None,
3659
- ):
3660
- self.condition = condition
3661
- self.policy_items = policy_items
3662
-
3663
- def validate(self):
3664
- if self.policy_items:
3665
- for k in self.policy_items:
3666
- if k:
3667
- k.validate()
3668
-
3669
- def to_map(self):
3670
- _map = super().to_map()
3671
- if _map is not None:
3672
- return _map
3673
-
3674
- result = dict()
3675
- if self.condition is not None:
3676
- result['condition'] = self.condition
3677
- result['policyItems'] = []
3678
- if self.policy_items is not None:
3679
- for k in self.policy_items:
3680
- result['policyItems'].append(k.to_map() if k else None)
3681
- return result
3682
-
3683
- def from_map(self, m: dict = None):
3684
- m = m or dict()
3685
- if m.get('condition') is not None:
3686
- self.condition = m.get('condition')
3687
- self.policy_items = []
3688
- if m.get('policyItems') is not None:
3689
- for k in m.get('policyItems'):
3690
- temp_model = PolicyItem()
3691
- self.policy_items.append(temp_model.from_map(k))
3692
- return self
3693
-
3694
-
3695
- class Tag(TeaModel):
3696
- def __init__(
3697
- self,
3698
- key: str = None,
3699
- value: str = None,
3700
- ):
3701
- self.key = key
3702
- self.value = value
3703
-
3704
- def validate(self):
3705
- pass
3706
-
3707
- def to_map(self):
3708
- _map = super().to_map()
3709
- if _map is not None:
3710
- return _map
3711
-
3712
- result = dict()
3713
- if self.key is not None:
3714
- result['key'] = self.key
3715
- if self.value is not None:
3716
- result['value'] = self.value
3717
- return result
3718
-
3719
- def from_map(self, m: dict = None):
3720
- m = m or dict()
3721
- if m.get('key') is not None:
3722
- self.key = m.get('key')
3723
- if m.get('value') is not None:
3724
- self.value = m.get('value')
3725
- return self
3726
-
3727
-
3728
3511
  class TagResourceInput(TeaModel):
3729
3512
  def __init__(
3730
3513
  self,
3731
3514
  resource_arn: str = None,
3732
- resource_type: str = None,
3733
3515
  tags: Dict[str, str] = None,
3734
3516
  ):
3735
3517
  self.resource_arn = resource_arn
3736
- self.resource_type = resource_type
3737
3518
  self.tags = tags
3738
3519
 
3739
3520
  def validate(self):
@@ -3747,8 +3528,6 @@ class TagResourceInput(TeaModel):
3747
3528
  result = dict()
3748
3529
  if self.resource_arn is not None:
3749
3530
  result['resourceArn'] = self.resource_arn
3750
- if self.resource_type is not None:
3751
- result['resourceType'] = self.resource_type
3752
3531
  if self.tags is not None:
3753
3532
  result['tags'] = self.tags
3754
3533
  return result
@@ -3757,8 +3536,6 @@ class TagResourceInput(TeaModel):
3757
3536
  m = m or dict()
3758
3537
  if m.get('resourceArn') is not None:
3759
3538
  self.resource_arn = m.get('resourceArn')
3760
- if m.get('resourceType') is not None:
3761
- self.resource_type = m.get('resourceType')
3762
3539
  if m.get('tags') is not None:
3763
3540
  self.tags = m.get('tags')
3764
3541
  return self
@@ -3806,12 +3583,14 @@ class UpdateAliasInput(TeaModel):
3806
3583
  class UpdateCustomDomainInput(TeaModel):
3807
3584
  def __init__(
3808
3585
  self,
3586
+ auth_config: AuthConfig = None,
3809
3587
  cert_config: CertConfig = None,
3810
3588
  protocol: str = None,
3811
3589
  route_config: RouteConfig = None,
3812
3590
  tls_config: TLSConfig = None,
3813
3591
  waf_config: WAFConfig = None,
3814
3592
  ):
3593
+ self.auth_config = auth_config
3815
3594
  self.cert_config = cert_config
3816
3595
  self.protocol = protocol
3817
3596
  self.route_config = route_config
@@ -3819,6 +3598,8 @@ class UpdateCustomDomainInput(TeaModel):
3819
3598
  self.waf_config = waf_config
3820
3599
 
3821
3600
  def validate(self):
3601
+ if self.auth_config:
3602
+ self.auth_config.validate()
3822
3603
  if self.cert_config:
3823
3604
  self.cert_config.validate()
3824
3605
  if self.route_config:
@@ -3834,6 +3615,8 @@ class UpdateCustomDomainInput(TeaModel):
3834
3615
  return _map
3835
3616
 
3836
3617
  result = dict()
3618
+ if self.auth_config is not None:
3619
+ result['authConfig'] = self.auth_config.to_map()
3837
3620
  if self.cert_config is not None:
3838
3621
  result['certConfig'] = self.cert_config.to_map()
3839
3622
  if self.protocol is not None:
@@ -3848,6 +3631,9 @@ class UpdateCustomDomainInput(TeaModel):
3848
3631
 
3849
3632
  def from_map(self, m: dict = None):
3850
3633
  m = m or dict()
3634
+ if m.get('authConfig') is not None:
3635
+ temp_model = AuthConfig()
3636
+ self.auth_config = temp_model.from_map(m['authConfig'])
3851
3637
  if m.get('certConfig') is not None:
3852
3638
  temp_model = CertConfig()
3853
3639
  self.cert_config = temp_model.from_map(m['certConfig'])
@@ -3890,7 +3676,6 @@ class UpdateFunctionInput(TeaModel):
3890
3676
  runtime: str = None,
3891
3677
  timeout: int = None,
3892
3678
  tracing_config: TracingConfig = None,
3893
- vpc_binding: VPCBinding = None,
3894
3679
  vpc_config: VPCConfig = None,
3895
3680
  ):
3896
3681
  self.code = code
@@ -3915,7 +3700,6 @@ class UpdateFunctionInput(TeaModel):
3915
3700
  self.runtime = runtime
3916
3701
  self.timeout = timeout
3917
3702
  self.tracing_config = tracing_config
3918
- self.vpc_binding = vpc_binding
3919
3703
  self.vpc_config = vpc_config
3920
3704
 
3921
3705
  def validate(self):
@@ -3939,8 +3723,6 @@ class UpdateFunctionInput(TeaModel):
3939
3723
  self.oss_mount_config.validate()
3940
3724
  if self.tracing_config:
3941
3725
  self.tracing_config.validate()
3942
- if self.vpc_binding:
3943
- self.vpc_binding.validate()
3944
3726
  if self.vpc_config:
3945
3727
  self.vpc_config.validate()
3946
3728
 
@@ -3994,8 +3776,6 @@ class UpdateFunctionInput(TeaModel):
3994
3776
  result['timeout'] = self.timeout
3995
3777
  if self.tracing_config is not None:
3996
3778
  result['tracingConfig'] = self.tracing_config.to_map()
3997
- if self.vpc_binding is not None:
3998
- result['vpcBinding'] = self.vpc_binding.to_map()
3999
3779
  if self.vpc_config is not None:
4000
3780
  result['vpcConfig'] = self.vpc_config.to_map()
4001
3781
  return result
@@ -4056,9 +3836,6 @@ class UpdateFunctionInput(TeaModel):
4056
3836
  if m.get('tracingConfig') is not None:
4057
3837
  temp_model = TracingConfig()
4058
3838
  self.tracing_config = temp_model.from_map(m['tracingConfig'])
4059
- if m.get('vpcBinding') is not None:
4060
- temp_model = VPCBinding()
4061
- self.vpc_binding = temp_model.from_map(m['vpcBinding'])
4062
3839
  if m.get('vpcConfig') is not None:
4063
3840
  temp_model = VPCConfig()
4064
3841
  self.vpc_config = temp_model.from_map(m['vpcConfig'])
@@ -4475,6 +4252,69 @@ class CreateTriggerResponse(TeaModel):
4475
4252
  return self
4476
4253
 
4477
4254
 
4255
+ class CreateVpcBindingRequest(TeaModel):
4256
+ def __init__(
4257
+ self,
4258
+ body: CreateVpcBindingInput = None,
4259
+ ):
4260
+ self.body = body
4261
+
4262
+ def validate(self):
4263
+ if self.body:
4264
+ self.body.validate()
4265
+
4266
+ def to_map(self):
4267
+ _map = super().to_map()
4268
+ if _map is not None:
4269
+ return _map
4270
+
4271
+ result = dict()
4272
+ if self.body is not None:
4273
+ result['body'] = self.body.to_map()
4274
+ return result
4275
+
4276
+ def from_map(self, m: dict = None):
4277
+ m = m or dict()
4278
+ if m.get('body') is not None:
4279
+ temp_model = CreateVpcBindingInput()
4280
+ self.body = temp_model.from_map(m['body'])
4281
+ return self
4282
+
4283
+
4284
+ class CreateVpcBindingResponse(TeaModel):
4285
+ def __init__(
4286
+ self,
4287
+ headers: Dict[str, str] = None,
4288
+ status_code: int = None,
4289
+ ):
4290
+ self.headers = headers
4291
+ self.status_code = status_code
4292
+
4293
+ def validate(self):
4294
+ self.validate_required(self.headers, 'headers')
4295
+ self.validate_required(self.status_code, 'status_code')
4296
+
4297
+ def to_map(self):
4298
+ _map = super().to_map()
4299
+ if _map is not None:
4300
+ return _map
4301
+
4302
+ result = dict()
4303
+ if self.headers is not None:
4304
+ result['headers'] = self.headers
4305
+ if self.status_code is not None:
4306
+ result['statusCode'] = self.status_code
4307
+ return result
4308
+
4309
+ def from_map(self, m: dict = None):
4310
+ m = m or dict()
4311
+ if m.get('headers') is not None:
4312
+ self.headers = m.get('headers')
4313
+ if m.get('statusCode') is not None:
4314
+ self.status_code = m.get('statusCode')
4315
+ return self
4316
+
4317
+
4478
4318
  class DeleteAliasResponse(TeaModel):
4479
4319
  def __init__(
4480
4320
  self,
@@ -4835,6 +4675,40 @@ class DeleteTriggerResponse(TeaModel):
4835
4675
  return self
4836
4676
 
4837
4677
 
4678
+ class DeleteVpcBindingResponse(TeaModel):
4679
+ def __init__(
4680
+ self,
4681
+ headers: Dict[str, str] = None,
4682
+ status_code: int = None,
4683
+ ):
4684
+ self.headers = headers
4685
+ self.status_code = status_code
4686
+
4687
+ def validate(self):
4688
+ self.validate_required(self.headers, 'headers')
4689
+ self.validate_required(self.status_code, 'status_code')
4690
+
4691
+ def to_map(self):
4692
+ _map = super().to_map()
4693
+ if _map is not None:
4694
+ return _map
4695
+
4696
+ result = dict()
4697
+ if self.headers is not None:
4698
+ result['headers'] = self.headers
4699
+ if self.status_code is not None:
4700
+ result['statusCode'] = self.status_code
4701
+ return result
4702
+
4703
+ def from_map(self, m: dict = None):
4704
+ m = m or dict()
4705
+ if m.get('headers') is not None:
4706
+ self.headers = m.get('headers')
4707
+ if m.get('statusCode') is not None:
4708
+ self.status_code = m.get('statusCode')
4709
+ return self
4710
+
4711
+
4838
4712
  class GetAliasResponse(TeaModel):
4839
4713
  def __init__(
4840
4714
  self,
@@ -6557,6 +6431,50 @@ class ListTriggersResponse(TeaModel):
6557
6431
  return self
6558
6432
 
6559
6433
 
6434
+ class ListVpcBindingsResponse(TeaModel):
6435
+ def __init__(
6436
+ self,
6437
+ headers: Dict[str, str] = None,
6438
+ status_code: int = None,
6439
+ body: ListVpcBindingsOutput = None,
6440
+ ):
6441
+ self.headers = headers
6442
+ self.status_code = status_code
6443
+ self.body = body
6444
+
6445
+ def validate(self):
6446
+ self.validate_required(self.headers, 'headers')
6447
+ self.validate_required(self.status_code, 'status_code')
6448
+ self.validate_required(self.body, 'body')
6449
+ if self.body:
6450
+ self.body.validate()
6451
+
6452
+ def to_map(self):
6453
+ _map = super().to_map()
6454
+ if _map is not None:
6455
+ return _map
6456
+
6457
+ result = dict()
6458
+ if self.headers is not None:
6459
+ result['headers'] = self.headers
6460
+ if self.status_code is not None:
6461
+ result['statusCode'] = self.status_code
6462
+ if self.body is not None:
6463
+ result['body'] = self.body.to_map()
6464
+ return result
6465
+
6466
+ def from_map(self, m: dict = None):
6467
+ m = m or dict()
6468
+ if m.get('headers') is not None:
6469
+ self.headers = m.get('headers')
6470
+ if m.get('statusCode') is not None:
6471
+ self.status_code = m.get('statusCode')
6472
+ if m.get('body') is not None:
6473
+ temp_model = ListVpcBindingsOutput()
6474
+ self.body = temp_model.from_map(m['body'])
6475
+ return self
6476
+
6477
+
6560
6478
  class PublishFunctionVersionRequest(TeaModel):
6561
6479
  def __init__(
6562
6480
  self,
@@ -6956,18 +6874,13 @@ class TagResourceResponse(TeaModel):
6956
6874
  self,
6957
6875
  headers: Dict[str, str] = None,
6958
6876
  status_code: int = None,
6959
- body: Tag = None,
6960
6877
  ):
6961
6878
  self.headers = headers
6962
6879
  self.status_code = status_code
6963
- self.body = body
6964
6880
 
6965
6881
  def validate(self):
6966
6882
  self.validate_required(self.headers, 'headers')
6967
6883
  self.validate_required(self.status_code, 'status_code')
6968
- self.validate_required(self.body, 'body')
6969
- if self.body:
6970
- self.body.validate()
6971
6884
 
6972
6885
  def to_map(self):
6973
6886
  _map = super().to_map()
@@ -6979,8 +6892,6 @@ class TagResourceResponse(TeaModel):
6979
6892
  result['headers'] = self.headers
6980
6893
  if self.status_code is not None:
6981
6894
  result['statusCode'] = self.status_code
6982
- if self.body is not None:
6983
- result['body'] = self.body.to_map()
6984
6895
  return result
6985
6896
 
6986
6897
  def from_map(self, m: dict = None):
@@ -6989,9 +6900,6 @@ class TagResourceResponse(TeaModel):
6989
6900
  self.headers = m.get('headers')
6990
6901
  if m.get('statusCode') is not None:
6991
6902
  self.status_code = m.get('statusCode')
6992
- if m.get('body') is not None:
6993
- temp_model = Tag()
6994
- self.body = temp_model.from_map(m['body'])
6995
6903
  return self
6996
6904
 
6997
6905