tencentcloud-sdk-nodejs-intl-en 3.0.415 → 3.0.418

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.
@@ -16,41 +16,6 @@
16
16
  */
17
17
  const AbstractModel = require("../../common/abstract_model");
18
18
 
19
- /**
20
- * HTTP domain name-related information
21
- * @class
22
- */
23
- class AccessInfo extends AbstractModel {
24
- constructor(){
25
- super();
26
-
27
- /**
28
- * Domain name
29
- * @type {string || null}
30
- */
31
- this.Host = null;
32
-
33
- /**
34
- * VIP
35
- * @type {string || null}
36
- */
37
- this.Vip = null;
38
-
39
- }
40
-
41
- /**
42
- * @private
43
- */
44
- deserialize(params) {
45
- if (!params) {
46
- return;
47
- }
48
- this.Host = 'Host' in params ? params.Host : null;
49
- this.Vip = 'Vip' in params ? params.Vip : null;
50
-
51
- }
52
- }
53
-
54
19
  /**
55
20
  * UpdateAlias request structure.
56
21
  * @class
@@ -381,40 +346,6 @@ Note: this field may return `null`, indicating that no valid values can be obtai
381
346
  }
382
347
  }
383
348
 
384
- /**
385
- * Parameters of the protocol
386
- * @class
387
- */
388
- class ProtocolParams extends AbstractModel {
389
- constructor(){
390
- super();
391
-
392
- /**
393
- * Parameters of WebSockets protocol
394
- Note: this field may return `null`, indicating that no valid values can be obtained.
395
- * @type {WSParams || null}
396
- */
397
- this.WSParams = null;
398
-
399
- }
400
-
401
- /**
402
- * @private
403
- */
404
- deserialize(params) {
405
- if (!params) {
406
- return;
407
- }
408
-
409
- if (params.WSParams) {
410
- let obj = new WSParams();
411
- obj.deserialize(params.WSParams)
412
- this.WSParams = obj;
413
- }
414
-
415
- }
416
- }
417
-
418
349
  /**
419
350
  * Version routing configuration of alias
420
351
  * @class
@@ -666,10 +597,10 @@ class PutProvisionedConcurrencyConfigResponse extends AbstractModel {
666
597
  }
667
598
 
668
599
  /**
669
- * UpdateFunctionConfiguration response structure.
600
+ * UpdateNamespace response structure.
670
601
  * @class
671
602
  */
672
- class UpdateFunctionConfigurationResponse extends AbstractModel {
603
+ class UpdateNamespaceResponse extends AbstractModel {
673
604
  constructor(){
674
605
  super();
675
606
 
@@ -793,70 +724,48 @@ class UsageInfo extends AbstractModel {
793
724
  }
794
725
 
795
726
  /**
796
- * Public network access configuration
727
+ * Async event
797
728
  * @class
798
729
  */
799
- class PublicNetConfigIn extends AbstractModel {
730
+ class AsyncEvent extends AbstractModel {
800
731
  constructor(){
801
732
  super();
802
733
 
803
734
  /**
804
- * Whether to enable public network access. Valid values: ['DISABLE', 'ENABLE']
735
+ * Invocation request ID
805
736
  * @type {string || null}
806
737
  */
807
- this.PublicNetStatus = null;
738
+ this.InvokeRequestId = null;
808
739
 
809
740
  /**
810
- * EIP configuration
811
- * @type {EipConfigIn || null}
741
+ * Invocation type
742
+ * @type {string || null}
812
743
  */
813
- this.EipConfig = null;
814
-
815
- }
816
-
817
- /**
818
- * @private
819
- */
820
- deserialize(params) {
821
- if (!params) {
822
- return;
823
- }
824
- this.PublicNetStatus = 'PublicNetStatus' in params ? params.PublicNetStatus : null;
825
-
826
- if (params.EipConfig) {
827
- let obj = new EipConfigIn();
828
- obj.deserialize(params.EipConfig)
829
- this.EipConfig = obj;
830
- }
831
-
832
- }
833
- }
744
+ this.InvokeType = null;
834
745
 
835
- /**
836
- * DeleteProvisionedConcurrencyConfig request structure.
837
- * @class
838
- */
839
- class DeleteProvisionedConcurrencyConfigRequest extends AbstractModel {
840
- constructor(){
841
- super();
746
+ /**
747
+ * Function version
748
+ * @type {string || null}
749
+ */
750
+ this.Qualifier = null;
842
751
 
843
752
  /**
844
- * Name of the function for which to delete the provisioned concurrency
753
+ * Event status. Values: `RUNNING`; `FINISHED` (invoked successfully); `ABORTED` (invocation ended); `FAILED` (invocation failed)
845
754
  * @type {string || null}
846
755
  */
847
- this.FunctionName = null;
756
+ this.Status = null;
848
757
 
849
758
  /**
850
- * Function version number
759
+ * Invocation start time in the format of "%Y-%m-%d %H:%M:%S.%f"
851
760
  * @type {string || null}
852
761
  */
853
- this.Qualifier = null;
762
+ this.StartTime = null;
854
763
 
855
764
  /**
856
- * Function namespace. Default value: `default`
765
+ * Invocation end time in the format of "%Y-%m-%d %H:%M:%S.%f"
857
766
  * @type {string || null}
858
767
  */
859
- this.Namespace = null;
768
+ this.EndTime = null;
860
769
 
861
770
  }
862
771
 
@@ -867,9 +776,12 @@ class DeleteProvisionedConcurrencyConfigRequest extends AbstractModel {
867
776
  if (!params) {
868
777
  return;
869
778
  }
870
- this.FunctionName = 'FunctionName' in params ? params.FunctionName : null;
779
+ this.InvokeRequestId = 'InvokeRequestId' in params ? params.InvokeRequestId : null;
780
+ this.InvokeType = 'InvokeType' in params ? params.InvokeType : null;
871
781
  this.Qualifier = 'Qualifier' in params ? params.Qualifier : null;
872
- this.Namespace = 'Namespace' in params ? params.Namespace : null;
782
+ this.Status = 'Status' in params ? params.Status : null;
783
+ this.StartTime = 'StartTime' in params ? params.StartTime : null;
784
+ this.EndTime = 'EndTime' in params ? params.EndTime : null;
873
785
 
874
786
  }
875
787
  }
@@ -1357,34 +1269,6 @@ Blank, indicating that all logs will be returned.
1357
1269
  }
1358
1270
  }
1359
1271
 
1360
- /**
1361
- * Fixed IP configuration for public network access
1362
- * @class
1363
- */
1364
- class EipConfigIn extends AbstractModel {
1365
- constructor(){
1366
- super();
1367
-
1368
- /**
1369
- * Status of the EIP. Values: ['ENABLE','DISABLE']
1370
- * @type {string || null}
1371
- */
1372
- this.EipStatus = null;
1373
-
1374
- }
1375
-
1376
- /**
1377
- * @private
1378
- */
1379
- deserialize(params) {
1380
- if (!params) {
1381
- return;
1382
- }
1383
- this.EipStatus = 'EipStatus' in params ? params.EipStatus : null;
1384
-
1385
- }
1386
- }
1387
-
1388
1272
  /**
1389
1273
  * ListLayerVersions response structure.
1390
1274
  * @class
@@ -1594,55 +1478,6 @@ class Namespace extends AbstractModel {
1594
1478
  }
1595
1479
  }
1596
1480
 
1597
- /**
1598
- * GetFunction request structure.
1599
- * @class
1600
- */
1601
- class GetFunctionRequest extends AbstractModel {
1602
- constructor(){
1603
- super();
1604
-
1605
- /**
1606
- * Name of the function to obtain details
1607
- * @type {string || null}
1608
- */
1609
- this.FunctionName = null;
1610
-
1611
- /**
1612
- * Function version number
1613
- * @type {string || null}
1614
- */
1615
- this.Qualifier = null;
1616
-
1617
- /**
1618
- * Function namespace
1619
- * @type {string || null}
1620
- */
1621
- this.Namespace = null;
1622
-
1623
- /**
1624
- * It indicates whether to display the code. `TRUE` means displaying the code, and `FALSE` means hiding the code. The code will not be displayed for entry files exceeding 1 MB.
1625
- * @type {string || null}
1626
- */
1627
- this.ShowCode = null;
1628
-
1629
- }
1630
-
1631
- /**
1632
- * @private
1633
- */
1634
- deserialize(params) {
1635
- if (!params) {
1636
- return;
1637
- }
1638
- this.FunctionName = 'FunctionName' in params ? params.FunctionName : null;
1639
- this.Qualifier = 'Qualifier' in params ? params.Qualifier : null;
1640
- this.Namespace = 'Namespace' in params ? params.Namespace : null;
1641
- this.ShowCode = 'ShowCode' in params ? params.ShowCode : null;
1642
-
1643
- }
1644
- }
1645
-
1646
1481
  /**
1647
1482
  * ListNamespaces request structure.
1648
1483
  * @class
@@ -1850,35 +1685,6 @@ Note: This field may return null, indicating that no valid value was found.
1850
1685
  }
1851
1686
  }
1852
1687
 
1853
- /**
1854
- * Parameters of the specified protocol
1855
- * @class
1856
- */
1857
- class WSParams extends AbstractModel {
1858
- constructor(){
1859
- super();
1860
-
1861
- /**
1862
- * Idle timeout period in seconds. Default: 15; range: 1 to 1800
1863
- Note: this field may return `null`, indicating that no valid values can be obtained.
1864
- * @type {number || null}
1865
- */
1866
- this.IdleTimeOut = null;
1867
-
1868
- }
1869
-
1870
- /**
1871
- * @private
1872
- */
1873
- deserialize(params) {
1874
- if (!params) {
1875
- return;
1876
- }
1877
- this.IdleTimeOut = 'IdleTimeOut' in params ? params.IdleTimeOut : null;
1878
-
1879
- }
1880
- }
1881
-
1882
1688
  /**
1883
1689
  * GetAlias request structure.
1884
1690
  * @class
@@ -1922,52 +1728,18 @@ class GetAliasRequest extends AbstractModel {
1922
1728
  }
1923
1729
 
1924
1730
  /**
1925
- * CreateNamespace response structure.
1926
- * @class
1927
- */
1928
- class CreateNamespaceResponse extends AbstractModel {
1929
- constructor(){
1930
- super();
1931
-
1932
- /**
1933
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
1934
- * @type {string || null}
1935
- */
1936
- this.RequestId = null;
1937
-
1938
- }
1939
-
1940
- /**
1941
- * @private
1942
- */
1943
- deserialize(params) {
1944
- if (!params) {
1945
- return;
1946
- }
1947
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
1948
-
1949
- }
1950
- }
1951
-
1952
- /**
1953
- * Public network access configuration
1731
+ * DeleteNamespace request structure.
1954
1732
  * @class
1955
1733
  */
1956
- class PublicNetConfigOut extends AbstractModel {
1734
+ class DeleteNamespaceRequest extends AbstractModel {
1957
1735
  constructor(){
1958
1736
  super();
1959
1737
 
1960
1738
  /**
1961
- * Whether to enable public network access. Valid values: ['DISABLE', 'ENABLE']
1739
+ * Namespace name
1962
1740
  * @type {string || null}
1963
1741
  */
1964
- this.PublicNetStatus = null;
1965
-
1966
- /**
1967
- * EIP configuration
1968
- * @type {EipConfigOut || null}
1969
- */
1970
- this.EipConfig = null;
1742
+ this.Namespace = null;
1971
1743
 
1972
1744
  }
1973
1745
 
@@ -1978,13 +1750,7 @@ class PublicNetConfigOut extends AbstractModel {
1978
1750
  if (!params) {
1979
1751
  return;
1980
1752
  }
1981
- this.PublicNetStatus = 'PublicNetStatus' in params ? params.PublicNetStatus : null;
1982
-
1983
- if (params.EipConfig) {
1984
- let obj = new EipConfigOut();
1985
- obj.deserialize(params.EipConfig)
1986
- this.EipConfig = obj;
1987
- }
1753
+ this.Namespace = 'Namespace' in params ? params.Namespace : null;
1988
1754
 
1989
1755
  }
1990
1756
  }
@@ -2100,225 +1866,26 @@ class UpdateFunctionCodeRequest extends AbstractModel {
2100
1866
  }
2101
1867
 
2102
1868
  /**
2103
- * UpdateFunctionConfiguration request structure.
1869
+ * DeleteReservedConcurrencyConfig request structure.
2104
1870
  * @class
2105
1871
  */
2106
- class UpdateFunctionConfigurationRequest extends AbstractModel {
1872
+ class DeleteReservedConcurrencyConfigRequest extends AbstractModel {
2107
1873
  constructor(){
2108
1874
  super();
2109
1875
 
2110
1876
  /**
2111
- * Name of the function to be modified
1877
+ * Specifies the function of which you want to delete the reserved quota
2112
1878
  * @type {string || null}
2113
1879
  */
2114
1880
  this.FunctionName = null;
2115
1881
 
2116
1882
  /**
2117
- * Function description. It can contain up to 1,000 characters, including letters, digits, spaces, commas (,), periods (.), and Chinese characters.
1883
+ * Function namespace. Default value: `default`
2118
1884
  * @type {string || null}
2119
1885
  */
2120
- this.Description = null;
2121
-
2122
- /**
2123
- * Memory size available for function during execution. Default value: 128 MB. Value range: 64 or 128-3,072 MB in increments of 128 MB.
2124
- * @type {number || null}
2125
- */
2126
- this.MemorySize = null;
1886
+ this.Namespace = null;
2127
1887
 
2128
- /**
2129
- * Maximum execution duration of function in seconds. Value range: 1-900 seconds. Default value: 3 seconds
2130
- * @type {number || null}
2131
- */
2132
- this.Timeout = null;
2133
-
2134
- /**
2135
- * Function runtime environment. Valid values: Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, PHP5, PHP7, Go1, Java8, CustomRuntime
2136
- * @type {string || null}
2137
- */
2138
- this.Runtime = null;
2139
-
2140
- /**
2141
- * Function environment variable
2142
- * @type {Environment || null}
2143
- */
2144
- this.Environment = null;
2145
-
2146
- /**
2147
- * Function namespace
2148
- * @type {string || null}
2149
- */
2150
- this.Namespace = null;
2151
-
2152
- /**
2153
- * Function VPC configuration
2154
- * @type {VpcConfig || null}
2155
- */
2156
- this.VpcConfig = null;
2157
-
2158
- /**
2159
- * Role bound to the function
2160
- * @type {string || null}
2161
- */
2162
- this.Role = null;
2163
-
2164
- /**
2165
- * Specifies whether to [install dependency online](https://intl.cloud.tencent.com/document/product/583/37920?from_cn_redirect=1). `TRUE`: yes. Default to `FALSE`. It is only available for Node.js functions.
2166
- * @type {string || null}
2167
- */
2168
- this.InstallDependency = null;
2169
-
2170
- /**
2171
- * CLS logset ID to which logs are shipped
2172
- * @type {string || null}
2173
- */
2174
- this.ClsLogsetId = null;
2175
-
2176
- /**
2177
- * CLS Topic ID to which logs are shipped
2178
- * @type {string || null}
2179
- */
2180
- this.ClsTopicId = null;
2181
-
2182
- /**
2183
- * It specifies whether to synchronously publish a new version during the update. The default value is `FALSE`, indicating not to publish a new version
2184
- * @type {string || null}
2185
- */
2186
- this.Publish = null;
2187
-
2188
- /**
2189
- * Whether to enable L5 access. TRUE: enable; FALSE: not enable
2190
- * @type {string || null}
2191
- */
2192
- this.L5Enable = null;
2193
-
2194
- /**
2195
- * List of layer versions that bound with the function. Files with the same name will be overridden by the bound layer versions according to the ascending order in the list.
2196
- * @type {Array.<LayerVersionSimple> || null}
2197
- */
2198
- this.Layers = null;
2199
-
2200
- /**
2201
- * Information of a dead letter queue associated with a function
2202
- * @type {DeadLetterConfig || null}
2203
- */
2204
- this.DeadLetterConfig = null;
2205
-
2206
- /**
2207
- * Public network access configuration
2208
- * @type {PublicNetConfigIn || null}
2209
- */
2210
- this.PublicNetConfig = null;
2211
-
2212
- /**
2213
- * File system configuration input parameter, which is used for the function to bind the CFS file system
2214
- * @type {CfsConfig || null}
2215
- */
2216
- this.CfsConfig = null;
2217
-
2218
- /**
2219
- * The function initialization timeout period
2220
- * @type {number || null}
2221
- */
2222
- this.InitTimeout = null;
2223
-
2224
- /**
2225
- * Parameters of the specified protocol
2226
- * @type {ProtocolParams || null}
2227
- */
2228
- this.ProtocolParams = null;
2229
-
2230
- }
2231
-
2232
- /**
2233
- * @private
2234
- */
2235
- deserialize(params) {
2236
- if (!params) {
2237
- return;
2238
- }
2239
- this.FunctionName = 'FunctionName' in params ? params.FunctionName : null;
2240
- this.Description = 'Description' in params ? params.Description : null;
2241
- this.MemorySize = 'MemorySize' in params ? params.MemorySize : null;
2242
- this.Timeout = 'Timeout' in params ? params.Timeout : null;
2243
- this.Runtime = 'Runtime' in params ? params.Runtime : null;
2244
-
2245
- if (params.Environment) {
2246
- let obj = new Environment();
2247
- obj.deserialize(params.Environment)
2248
- this.Environment = obj;
2249
- }
2250
- this.Namespace = 'Namespace' in params ? params.Namespace : null;
2251
-
2252
- if (params.VpcConfig) {
2253
- let obj = new VpcConfig();
2254
- obj.deserialize(params.VpcConfig)
2255
- this.VpcConfig = obj;
2256
- }
2257
- this.Role = 'Role' in params ? params.Role : null;
2258
- this.InstallDependency = 'InstallDependency' in params ? params.InstallDependency : null;
2259
- this.ClsLogsetId = 'ClsLogsetId' in params ? params.ClsLogsetId : null;
2260
- this.ClsTopicId = 'ClsTopicId' in params ? params.ClsTopicId : null;
2261
- this.Publish = 'Publish' in params ? params.Publish : null;
2262
- this.L5Enable = 'L5Enable' in params ? params.L5Enable : null;
2263
-
2264
- if (params.Layers) {
2265
- this.Layers = new Array();
2266
- for (let z in params.Layers) {
2267
- let obj = new LayerVersionSimple();
2268
- obj.deserialize(params.Layers[z]);
2269
- this.Layers.push(obj);
2270
- }
2271
- }
2272
-
2273
- if (params.DeadLetterConfig) {
2274
- let obj = new DeadLetterConfig();
2275
- obj.deserialize(params.DeadLetterConfig)
2276
- this.DeadLetterConfig = obj;
2277
- }
2278
-
2279
- if (params.PublicNetConfig) {
2280
- let obj = new PublicNetConfigIn();
2281
- obj.deserialize(params.PublicNetConfig)
2282
- this.PublicNetConfig = obj;
2283
- }
2284
-
2285
- if (params.CfsConfig) {
2286
- let obj = new CfsConfig();
2287
- obj.deserialize(params.CfsConfig)
2288
- this.CfsConfig = obj;
2289
- }
2290
- this.InitTimeout = 'InitTimeout' in params ? params.InitTimeout : null;
2291
-
2292
- if (params.ProtocolParams) {
2293
- let obj = new ProtocolParams();
2294
- obj.deserialize(params.ProtocolParams)
2295
- this.ProtocolParams = obj;
2296
- }
2297
-
2298
- }
2299
- }
2300
-
2301
- /**
2302
- * DeleteReservedConcurrencyConfig request structure.
2303
- * @class
2304
- */
2305
- class DeleteReservedConcurrencyConfigRequest extends AbstractModel {
2306
- constructor(){
2307
- super();
2308
-
2309
- /**
2310
- * Specifies the function of which you want to delete the reserved quota
2311
- * @type {string || null}
2312
- */
2313
- this.FunctionName = null;
2314
-
2315
- /**
2316
- * Function namespace. Default value: `default`
2317
- * @type {string || null}
2318
- */
2319
- this.Namespace = null;
2320
-
2321
- }
1888
+ }
2322
1889
 
2323
1890
  /**
2324
1891
  * @private
@@ -2631,41 +2198,6 @@ class DeleteNamespaceResponse extends AbstractModel {
2631
2198
  }
2632
2199
  }
2633
2200
 
2634
- /**
2635
- * Specifies a layer version
2636
- * @class
2637
- */
2638
- class LayerVersionSimple extends AbstractModel {
2639
- constructor(){
2640
- super();
2641
-
2642
- /**
2643
- * Name of the layer to bind. Leave it blank if you want to unbind layers
2644
- * @type {string || null}
2645
- */
2646
- this.LayerName = null;
2647
-
2648
- /**
2649
- * Version ID f the layer to bind/unbind. If the layer version to unbind is the only layer version of the function version, enter `0`.
2650
- * @type {number || null}
2651
- */
2652
- this.LayerVersion = null;
2653
-
2654
- }
2655
-
2656
- /**
2657
- * @private
2658
- */
2659
- deserialize(params) {
2660
- if (!params) {
2661
- return;
2662
- }
2663
- this.LayerName = 'LayerName' in params ? params.LayerName : null;
2664
- this.LayerVersion = 'LayerVersion' in params ? params.LayerVersion : null;
2665
-
2666
- }
2667
- }
2668
-
2669
2201
  /**
2670
2202
  * `TriggerCount` describes the numbers of triggers in different types
2671
2203
  * @class
@@ -2861,70 +2393,6 @@ Note: this field may return null, indicating that no valid values can be obtaine
2861
2393
  }
2862
2394
  }
2863
2395
 
2864
- /**
2865
- * File system (CFS) configuration description
2866
- * @class
2867
- */
2868
- class CfsConfig extends AbstractModel {
2869
- constructor(){
2870
- super();
2871
-
2872
- /**
2873
- * File system information list
2874
- * @type {Array.<CfsInsInfo> || null}
2875
- */
2876
- this.CfsInsList = null;
2877
-
2878
- }
2879
-
2880
- /**
2881
- * @private
2882
- */
2883
- deserialize(params) {
2884
- if (!params) {
2885
- return;
2886
- }
2887
-
2888
- if (params.CfsInsList) {
2889
- this.CfsInsList = new Array();
2890
- for (let z in params.CfsInsList) {
2891
- let obj = new CfsInsInfo();
2892
- obj.deserialize(params.CfsInsList[z]);
2893
- this.CfsInsList.push(obj);
2894
- }
2895
- }
2896
-
2897
- }
2898
- }
2899
-
2900
- /**
2901
- * DeleteNamespace request structure.
2902
- * @class
2903
- */
2904
- class DeleteNamespaceRequest extends AbstractModel {
2905
- constructor(){
2906
- super();
2907
-
2908
- /**
2909
- * Namespace name
2910
- * @type {string || null}
2911
- */
2912
- this.Namespace = null;
2913
-
2914
- }
2915
-
2916
- /**
2917
- * @private
2918
- */
2919
- deserialize(params) {
2920
- if (!params) {
2921
- return;
2922
- }
2923
- this.Namespace = 'Namespace' in params ? params.Namespace : null;
2924
-
2925
- }
2926
- }
2927
-
2928
2396
  /**
2929
2397
  * ListFunctions request structure.
2930
2398
  * @class
@@ -3052,7 +2520,7 @@ class CreateTriggerRequest extends AbstractModel {
3052
2520
  this.Namespace = null;
3053
2521
 
3054
2522
  /**
3055
- * Function version
2523
+ * Function version. It defaults to `$LATEST`. It’s recommended to use `[$DEFAULT](https://intl.cloud.tencent.com/document/product/583/36149?from_cn_redirect=1#.E9.BB.98.E8.AE.A4.E5.88.AB.E5.90.8D)` for canary release.
3056
2524
  * @type {string || null}
3057
2525
  */
3058
2526
  this.Qualifier = null;
@@ -3091,18 +2559,24 @@ class CreateTriggerRequest extends AbstractModel {
3091
2559
  }
3092
2560
 
3093
2561
  /**
3094
- * UpdateNamespace response structure.
2562
+ * GetLayerVersion request structure.
3095
2563
  * @class
3096
2564
  */
3097
- class UpdateNamespaceResponse extends AbstractModel {
2565
+ class GetLayerVersionRequest extends AbstractModel {
3098
2566
  constructor(){
3099
2567
  super();
3100
2568
 
3101
2569
  /**
3102
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
2570
+ * Layer name
3103
2571
  * @type {string || null}
3104
2572
  */
3105
- this.RequestId = null;
2573
+ this.LayerName = null;
2574
+
2575
+ /**
2576
+ * Version number
2577
+ * @type {number || null}
2578
+ */
2579
+ this.LayerVersion = null;
3106
2580
 
3107
2581
  }
3108
2582
 
@@ -3113,31 +2587,20 @@ class UpdateNamespaceResponse extends AbstractModel {
3113
2587
  if (!params) {
3114
2588
  return;
3115
2589
  }
3116
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
2590
+ this.LayerName = 'LayerName' in params ? params.LayerName : null;
2591
+ this.LayerVersion = 'LayerVersion' in params ? params.LayerVersion : null;
3117
2592
 
3118
2593
  }
3119
2594
  }
3120
2595
 
3121
2596
  /**
3122
- * GetAccount response structure.
2597
+ * DeleteFunction response structure.
3123
2598
  * @class
3124
2599
  */
3125
- class GetAccountResponse extends AbstractModel {
2600
+ class DeleteFunctionResponse extends AbstractModel {
3126
2601
  constructor(){
3127
2602
  super();
3128
2603
 
3129
- /**
3130
- * Namespace usage information
3131
- * @type {UsageInfo || null}
3132
- */
3133
- this.AccountUsage = null;
3134
-
3135
- /**
3136
- * Namespace limit information
3137
- * @type {LimitsInfo || null}
3138
- */
3139
- this.AccountLimit = null;
3140
-
3141
2604
  /**
3142
2605
  * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
3143
2606
  * @type {string || null}
@@ -3153,56 +2616,16 @@ class GetAccountResponse extends AbstractModel {
3153
2616
  if (!params) {
3154
2617
  return;
3155
2618
  }
3156
-
3157
- if (params.AccountUsage) {
3158
- let obj = new UsageInfo();
3159
- obj.deserialize(params.AccountUsage)
3160
- this.AccountUsage = obj;
3161
- }
3162
-
3163
- if (params.AccountLimit) {
3164
- let obj = new LimitsInfo();
3165
- obj.deserialize(params.AccountLimit)
3166
- this.AccountLimit = obj;
3167
- }
3168
2619
  this.RequestId = 'RequestId' in params ? params.RequestId : null;
3169
2620
 
3170
2621
  }
3171
2622
  }
3172
2623
 
3173
2624
  /**
3174
- * DeleteFunction response structure.
2625
+ * ListAsyncEvents request structure.
3175
2626
  * @class
3176
2627
  */
3177
- class DeleteFunctionResponse extends AbstractModel {
3178
- constructor(){
3179
- super();
3180
-
3181
- /**
3182
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
3183
- * @type {string || null}
3184
- */
3185
- this.RequestId = null;
3186
-
3187
- }
3188
-
3189
- /**
3190
- * @private
3191
- */
3192
- deserialize(params) {
3193
- if (!params) {
3194
- return;
3195
- }
3196
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
3197
-
3198
- }
3199
- }
3200
-
3201
- /**
3202
- * ListAsyncEvents request structure.
3203
- * @class
3204
- */
3205
- class ListAsyncEventsRequest extends AbstractModel {
2628
+ class ListAsyncEventsRequest extends AbstractModel {
3206
2629
  constructor(){
3207
2630
  super();
3208
2631
 
@@ -3650,260 +3073,6 @@ class RequestStatus extends AbstractModel {
3650
3073
  }
3651
3074
  }
3652
3075
 
3653
- /**
3654
- * CreateFunction request structure.
3655
- * @class
3656
- */
3657
- class CreateFunctionRequest extends AbstractModel {
3658
- constructor(){
3659
- super();
3660
-
3661
- /**
3662
- * Name of the new function. The name can contain 2 to 60 characters, including English letters, digits, hyphens (-), and underscores (_). The name must start with a letter and cannot end with a hyphen or underscore.
3663
- * @type {string || null}
3664
- */
3665
- this.FunctionName = null;
3666
-
3667
- /**
3668
- * Function code. Note: `COS`, `ZipFile`, and `DemoId` cannot be specified at the same time.
3669
- * @type {Code || null}
3670
- */
3671
- this.Code = null;
3672
-
3673
- /**
3674
- * Function handler name. It supports the format of "file name.handler name" where the file name and handler name are separated with a "." (for Java, it is in the format of "package name.class name::handler name"). File and handler names can contain 2–60 letters, digits, underscores, and dashes and must start and end with letters
3675
- * @type {string || null}
3676
- */
3677
- this.Handler = null;
3678
-
3679
- /**
3680
- * Function description. It can contain up to 1,000 characters including letters, digits, spaces, commas (,), periods (.), and Chinese characters.
3681
- * @type {string || null}
3682
- */
3683
- this.Description = null;
3684
-
3685
- /**
3686
- * Memory size available for function during execution. Default value: 128 MB. Value range: 64 or 128-3072 MB in increments of 128 MB
3687
- * @type {number || null}
3688
- */
3689
- this.MemorySize = null;
3690
-
3691
- /**
3692
- * Maximum execution duration of function in seconds. Value range: 1-900 seconds. Default value: 3 seconds
3693
- * @type {number || null}
3694
- */
3695
- this.Timeout = null;
3696
-
3697
- /**
3698
- * Function environment variable
3699
- * @type {Environment || null}
3700
- */
3701
- this.Environment = null;
3702
-
3703
- /**
3704
- * Function runtime environment. Valid values: Python2.7, Python3.6, Nodejs6.10, Nodejs8.9, Nodejs10.15, Nodejs12.16, Php5, Php7, Go1, Java8, CustomRuntime. Default value: Python2.7
3705
- * @type {string || null}
3706
- */
3707
- this.Runtime = null;
3708
-
3709
- /**
3710
- * Function VPC configuration
3711
- * @type {VpcConfig || null}
3712
- */
3713
- this.VpcConfig = null;
3714
-
3715
- /**
3716
- * Function namespace
3717
- * @type {string || null}
3718
- */
3719
- this.Namespace = null;
3720
-
3721
- /**
3722
- * Role bound to the function
3723
- * @type {string || null}
3724
- */
3725
- this.Role = null;
3726
-
3727
- /**
3728
- * Specifies whether to [install dependency online](https://intl.cloud.tencent.com/document/product/583/37920?from_cn_redirect=1). `TRUE`: yes. Default to `FALSE`. It is only available for Node.js functions.
3729
- * @type {string || null}
3730
- */
3731
- this.InstallDependency = null;
3732
-
3733
- /**
3734
- * CLS Logset ID to which the function logs are shipped
3735
- * @type {string || null}
3736
- */
3737
- this.ClsLogsetId = null;
3738
-
3739
- /**
3740
- * CLS Topic ID to which the function logs are shipped
3741
- * @type {string || null}
3742
- */
3743
- this.ClsTopicId = null;
3744
-
3745
- /**
3746
- * Function type. The default value is `Event`. Enter `Event` if you need to create a trigger function. Enter `HTTP` if you need to create an HTTP function service.
3747
- * @type {string || null}
3748
- */
3749
- this.Type = null;
3750
-
3751
- /**
3752
- * Code source. Valid values: ZipFile, Cos, Demo
3753
- * @type {string || null}
3754
- */
3755
- this.CodeSource = null;
3756
-
3757
- /**
3758
- * List of layer versions to be associate with the function. Layers will be overwritten sequentially in the order in the list.
3759
- * @type {Array.<LayerVersionSimple> || null}
3760
- */
3761
- this.Layers = null;
3762
-
3763
- /**
3764
- * Dead letter queue parameter
3765
- * @type {DeadLetterConfig || null}
3766
- */
3767
- this.DeadLetterConfig = null;
3768
-
3769
- /**
3770
- * Public network access configuration
3771
- * @type {PublicNetConfigIn || null}
3772
- */
3773
- this.PublicNetConfig = null;
3774
-
3775
- /**
3776
- * File system configuration parameter, which is used for the function to mount the file system
3777
- * @type {CfsConfig || null}
3778
- */
3779
- this.CfsConfig = null;
3780
-
3781
- /**
3782
- * The function initialization timeout period. It defaults to 65s for general cases and 90s for image deployment functions.
3783
- * @type {number || null}
3784
- */
3785
- this.InitTimeout = null;
3786
-
3787
- /**
3788
- * Tag parameter of the function. It is an array of key-value pairs.
3789
- * @type {Array.<Tag> || null}
3790
- */
3791
- this.Tags = null;
3792
-
3793
- /**
3794
- * Whether to enable the async attribute. TRUE: yes; FALSE: no
3795
- * @type {string || null}
3796
- */
3797
- this.AsyncRunEnable = null;
3798
-
3799
- /**
3800
- * Whether to enable event tracking. TRUE: yes; FALSE: no
3801
- * @type {string || null}
3802
- */
3803
- this.TraceEnable = null;
3804
-
3805
- /**
3806
- * Protocols supported by HTTP-triggered functions. Valid value: `WS` (WebSockets)
3807
- * @type {string || null}
3808
- */
3809
- this.ProtocolType = null;
3810
-
3811
- /**
3812
- * Parameters of the specified protocol
3813
- * @type {ProtocolParams || null}
3814
- */
3815
- this.ProtocolParams = null;
3816
-
3817
- }
3818
-
3819
- /**
3820
- * @private
3821
- */
3822
- deserialize(params) {
3823
- if (!params) {
3824
- return;
3825
- }
3826
- this.FunctionName = 'FunctionName' in params ? params.FunctionName : null;
3827
-
3828
- if (params.Code) {
3829
- let obj = new Code();
3830
- obj.deserialize(params.Code)
3831
- this.Code = obj;
3832
- }
3833
- this.Handler = 'Handler' in params ? params.Handler : null;
3834
- this.Description = 'Description' in params ? params.Description : null;
3835
- this.MemorySize = 'MemorySize' in params ? params.MemorySize : null;
3836
- this.Timeout = 'Timeout' in params ? params.Timeout : null;
3837
-
3838
- if (params.Environment) {
3839
- let obj = new Environment();
3840
- obj.deserialize(params.Environment)
3841
- this.Environment = obj;
3842
- }
3843
- this.Runtime = 'Runtime' in params ? params.Runtime : null;
3844
-
3845
- if (params.VpcConfig) {
3846
- let obj = new VpcConfig();
3847
- obj.deserialize(params.VpcConfig)
3848
- this.VpcConfig = obj;
3849
- }
3850
- this.Namespace = 'Namespace' in params ? params.Namespace : null;
3851
- this.Role = 'Role' in params ? params.Role : null;
3852
- this.InstallDependency = 'InstallDependency' in params ? params.InstallDependency : null;
3853
- this.ClsLogsetId = 'ClsLogsetId' in params ? params.ClsLogsetId : null;
3854
- this.ClsTopicId = 'ClsTopicId' in params ? params.ClsTopicId : null;
3855
- this.Type = 'Type' in params ? params.Type : null;
3856
- this.CodeSource = 'CodeSource' in params ? params.CodeSource : null;
3857
-
3858
- if (params.Layers) {
3859
- this.Layers = new Array();
3860
- for (let z in params.Layers) {
3861
- let obj = new LayerVersionSimple();
3862
- obj.deserialize(params.Layers[z]);
3863
- this.Layers.push(obj);
3864
- }
3865
- }
3866
-
3867
- if (params.DeadLetterConfig) {
3868
- let obj = new DeadLetterConfig();
3869
- obj.deserialize(params.DeadLetterConfig)
3870
- this.DeadLetterConfig = obj;
3871
- }
3872
-
3873
- if (params.PublicNetConfig) {
3874
- let obj = new PublicNetConfigIn();
3875
- obj.deserialize(params.PublicNetConfig)
3876
- this.PublicNetConfig = obj;
3877
- }
3878
-
3879
- if (params.CfsConfig) {
3880
- let obj = new CfsConfig();
3881
- obj.deserialize(params.CfsConfig)
3882
- this.CfsConfig = obj;
3883
- }
3884
- this.InitTimeout = 'InitTimeout' in params ? params.InitTimeout : null;
3885
-
3886
- if (params.Tags) {
3887
- this.Tags = new Array();
3888
- for (let z in params.Tags) {
3889
- let obj = new Tag();
3890
- obj.deserialize(params.Tags[z]);
3891
- this.Tags.push(obj);
3892
- }
3893
- }
3894
- this.AsyncRunEnable = 'AsyncRunEnable' in params ? params.AsyncRunEnable : null;
3895
- this.TraceEnable = 'TraceEnable' in params ? params.TraceEnable : null;
3896
- this.ProtocolType = 'ProtocolType' in params ? params.ProtocolType : null;
3897
-
3898
- if (params.ProtocolParams) {
3899
- let obj = new ProtocolParams();
3900
- obj.deserialize(params.ProtocolParams)
3901
- this.ProtocolParams = obj;
3902
- }
3903
-
3904
- }
3905
- }
3906
-
3907
3076
  /**
3908
3077
  * GetAccount request structure.
3909
3078
  * @class
@@ -4094,48 +3263,30 @@ class PublishVersionResponse extends AbstractModel {
4094
3263
  }
4095
3264
 
4096
3265
  /**
4097
- * Async event
3266
+ * DeleteProvisionedConcurrencyConfig request structure.
4098
3267
  * @class
4099
3268
  */
4100
- class AsyncEvent extends AbstractModel {
3269
+ class DeleteProvisionedConcurrencyConfigRequest extends AbstractModel {
4101
3270
  constructor(){
4102
3271
  super();
4103
3272
 
4104
3273
  /**
4105
- * Invocation request ID
4106
- * @type {string || null}
4107
- */
4108
- this.InvokeRequestId = null;
4109
-
4110
- /**
4111
- * Invocation type
3274
+ * Name of the function for which to delete the provisioned concurrency
4112
3275
  * @type {string || null}
4113
3276
  */
4114
- this.InvokeType = null;
3277
+ this.FunctionName = null;
4115
3278
 
4116
3279
  /**
4117
- * Function version
3280
+ * Function version number
4118
3281
  * @type {string || null}
4119
3282
  */
4120
3283
  this.Qualifier = null;
4121
3284
 
4122
3285
  /**
4123
- * Event status. Values: `RUNNING`; `FINISHED` (invoked successfully); `ABORTED` (invocation ended); `FAILED` (invocation failed)
4124
- * @type {string || null}
4125
- */
4126
- this.Status = null;
4127
-
4128
- /**
4129
- * Invocation start time in the format of "%Y-%m-%d %H:%M:%S.%f"
4130
- * @type {string || null}
4131
- */
4132
- this.StartTime = null;
4133
-
4134
- /**
4135
- * Invocation end time in the format of "%Y-%m-%d %H:%M:%S.%f"
3286
+ * Function namespace. Default value: `default`
4136
3287
  * @type {string || null}
4137
3288
  */
4138
- this.EndTime = null;
3289
+ this.Namespace = null;
4139
3290
 
4140
3291
  }
4141
3292
 
@@ -4146,29 +3297,26 @@ class AsyncEvent extends AbstractModel {
4146
3297
  if (!params) {
4147
3298
  return;
4148
3299
  }
4149
- this.InvokeRequestId = 'InvokeRequestId' in params ? params.InvokeRequestId : null;
4150
- this.InvokeType = 'InvokeType' in params ? params.InvokeType : null;
3300
+ this.FunctionName = 'FunctionName' in params ? params.FunctionName : null;
4151
3301
  this.Qualifier = 'Qualifier' in params ? params.Qualifier : null;
4152
- this.Status = 'Status' in params ? params.Status : null;
4153
- this.StartTime = 'StartTime' in params ? params.StartTime : null;
4154
- this.EndTime = 'EndTime' in params ? params.EndTime : null;
3302
+ this.Namespace = 'Namespace' in params ? params.Namespace : null;
4155
3303
 
4156
3304
  }
4157
3305
  }
4158
3306
 
4159
3307
  /**
4160
- * Environment variable parameter of the function
3308
+ * TerminateAsyncEvent response structure.
4161
3309
  * @class
4162
3310
  */
4163
- class Environment extends AbstractModel {
3311
+ class TerminateAsyncEventResponse extends AbstractModel {
4164
3312
  constructor(){
4165
3313
  super();
4166
3314
 
4167
3315
  /**
4168
- * Environment variable array
4169
- * @type {Array.<Variable> || null}
3316
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
3317
+ * @type {string || null}
4170
3318
  */
4171
- this.Variables = null;
3319
+ this.RequestId = null;
4172
3320
 
4173
3321
  }
4174
3322
 
@@ -4179,43 +3327,7 @@ class Environment extends AbstractModel {
4179
3327
  if (!params) {
4180
3328
  return;
4181
3329
  }
4182
-
4183
- if (params.Variables) {
4184
- this.Variables = new Array();
4185
- for (let z in params.Variables) {
4186
- let obj = new Variable();
4187
- obj.deserialize(params.Variables[z]);
4188
- this.Variables.push(obj);
4189
- }
4190
- }
4191
-
4192
- }
4193
- }
4194
-
4195
- /**
4196
- * TerminateAsyncEvent response structure.
4197
- * @class
4198
- */
4199
- class TerminateAsyncEventResponse extends AbstractModel {
4200
- constructor(){
4201
- super();
4202
-
4203
- /**
4204
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
4205
- * @type {string || null}
4206
- */
4207
- this.RequestId = null;
4208
-
4209
- }
4210
-
4211
- /**
4212
- * @private
4213
- */
4214
- deserialize(params) {
4215
- if (!params) {
4216
- return;
4217
- }
4218
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
3330
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
4219
3331
 
4220
3332
  }
4221
3333
  }
@@ -4691,496 +3803,77 @@ class PublishLayerVersionRequest extends AbstractModel {
4691
3803
  this.LayerName = 'LayerName' in params ? params.LayerName : null;
4692
3804
  this.CompatibleRuntimes = 'CompatibleRuntimes' in params ? params.CompatibleRuntimes : null;
4693
3805
 
4694
- if (params.Content) {
4695
- let obj = new Code();
4696
- obj.deserialize(params.Content)
4697
- this.Content = obj;
4698
- }
4699
- this.Description = 'Description' in params ? params.Description : null;
4700
- this.LicenseInfo = 'LicenseInfo' in params ? params.LicenseInfo : null;
4701
-
4702
- }
4703
- }
4704
-
4705
- /**
4706
- * CreateNamespace request structure.
4707
- * @class
4708
- */
4709
- class CreateNamespaceRequest extends AbstractModel {
4710
- constructor(){
4711
- super();
4712
-
4713
- /**
4714
- * Namespace name
4715
- * @type {string || null}
4716
- */
4717
- this.Namespace = null;
4718
-
4719
- /**
4720
- * Namespace description
4721
- * @type {string || null}
4722
- */
4723
- this.Description = null;
4724
-
4725
- }
4726
-
4727
- /**
4728
- * @private
4729
- */
4730
- deserialize(params) {
4731
- if (!params) {
4732
- return;
4733
- }
4734
- this.Namespace = 'Namespace' in params ? params.Namespace : null;
4735
- this.Description = 'Description' in params ? params.Description : null;
4736
-
4737
- }
4738
- }
4739
-
4740
- /**
4741
- * UpdateFunctionEventInvokeConfig request structure.
4742
- * @class
4743
- */
4744
- class UpdateFunctionEventInvokeConfigRequest extends AbstractModel {
4745
- constructor(){
4746
- super();
4747
-
4748
- /**
4749
- * Async retry configuration information
4750
- * @type {AsyncTriggerConfig || null}
4751
- */
4752
- this.AsyncTriggerConfig = null;
4753
-
4754
- /**
4755
- * Function name
4756
- * @type {string || null}
4757
- */
4758
- this.FunctionName = null;
4759
-
4760
- /**
4761
- * Function namespace. Default value: default
4762
- * @type {string || null}
4763
- */
4764
- this.Namespace = null;
4765
-
4766
- }
4767
-
4768
- /**
4769
- * @private
4770
- */
4771
- deserialize(params) {
4772
- if (!params) {
4773
- return;
4774
- }
4775
-
4776
- if (params.AsyncTriggerConfig) {
4777
- let obj = new AsyncTriggerConfig();
4778
- obj.deserialize(params.AsyncTriggerConfig)
4779
- this.AsyncTriggerConfig = obj;
4780
- }
4781
- this.FunctionName = 'FunctionName' in params ? params.FunctionName : null;
4782
- this.Namespace = 'Namespace' in params ? params.Namespace : null;
4783
-
4784
- }
4785
- }
4786
-
4787
- /**
4788
- * DeleteLayerVersion request structure.
4789
- * @class
4790
- */
4791
- class DeleteLayerVersionRequest extends AbstractModel {
4792
- constructor(){
4793
- super();
4794
-
4795
- /**
4796
- * Layer name
4797
- * @type {string || null}
4798
- */
4799
- this.LayerName = null;
4800
-
4801
- /**
4802
- * Version number
4803
- * @type {number || null}
4804
- */
4805
- this.LayerVersion = null;
4806
-
4807
- }
4808
-
4809
- /**
4810
- * @private
4811
- */
4812
- deserialize(params) {
4813
- if (!params) {
4814
- return;
4815
- }
4816
- this.LayerName = 'LayerName' in params ? params.LayerName : null;
4817
- this.LayerVersion = 'LayerVersion' in params ? params.LayerVersion : null;
4818
-
4819
- }
4820
- }
4821
-
4822
- /**
4823
- * Key-value pair filters for conditional filtering queries, such as filtering ID, name, and status.
4824
- If more than one filter exists, the logical relationship between these filters is `AND`.
4825
- If multiple values exist in one filter, the logical relationship between these values under the same filter is `OR`.
4826
- * @class
4827
- */
4828
- class Filter extends AbstractModel {
4829
- constructor(){
4830
- super();
4831
-
4832
- /**
4833
- * Fields to be filtered. Up to 10 conditions allowed.
4834
- Values of `Name`: `VpcId`, `SubnetId`, `ClsTopicId`, `ClsLogsetId`, `Role`, `CfsId`, `CfsMountInsId`, `Eip`. Values limit: 1.
4835
- Name options: Status, Runtime, FunctionType, PublicNetStatus, AsyncRunEnable, TraceEnable. Values limit: 20.
4836
- When `Name` is `Runtime`, `CustomImage` refers to the image type function
4837
- * @type {string || null}
4838
- */
4839
- this.Name = null;
4840
-
4841
- /**
4842
- * Filter values of the field
4843
- * @type {Array.<string> || null}
4844
- */
4845
- this.Values = null;
4846
-
4847
- }
4848
-
4849
- /**
4850
- * @private
4851
- */
4852
- deserialize(params) {
4853
- if (!params) {
4854
- return;
4855
- }
4856
- this.Name = 'Name' in params ? params.Name : null;
4857
- this.Values = 'Values' in params ? params.Values : null;
4858
-
4859
- }
4860
- }
4861
-
4862
- /**
4863
- * Variable parameter
4864
- * @class
4865
- */
4866
- class Variable extends AbstractModel {
4867
- constructor(){
4868
- super();
4869
-
4870
- /**
4871
- * Variable name
4872
- * @type {string || null}
4873
- */
4874
- this.Key = null;
4875
-
4876
- /**
4877
- * Variable value
4878
- * @type {string || null}
4879
- */
4880
- this.Value = null;
4881
-
4882
- }
4883
-
4884
- /**
4885
- * @private
4886
- */
4887
- deserialize(params) {
4888
- if (!params) {
4889
- return;
4890
- }
4891
- this.Key = 'Key' in params ? params.Key : null;
4892
- this.Value = 'Value' in params ? params.Value : null;
4893
-
4894
- }
4895
- }
4896
-
4897
- /**
4898
- * GetFunction response structure.
4899
- * @class
4900
- */
4901
- class GetFunctionResponse extends AbstractModel {
4902
- constructor(){
4903
- super();
4904
-
4905
- /**
4906
- * Latest modification time of the function
4907
- * @type {string || null}
4908
- */
4909
- this.ModTime = null;
4910
-
4911
- /**
4912
- * Function code
4913
- * @type {string || null}
4914
- */
4915
- this.CodeInfo = null;
4916
-
4917
- /**
4918
- * Function description
4919
- * @type {string || null}
4920
- */
4921
- this.Description = null;
4922
-
4923
- /**
4924
- * Function trigger list
4925
- * @type {Array.<Trigger> || null}
4926
- */
4927
- this.Triggers = null;
4928
-
4929
- /**
4930
- * Function entry
4931
- * @type {string || null}
4932
- */
4933
- this.Handler = null;
4934
-
4935
- /**
4936
- * Function code size
4937
- * @type {number || null}
4938
- */
4939
- this.CodeSize = null;
4940
-
4941
- /**
4942
- * Function timeout
4943
- * @type {number || null}
4944
- */
4945
- this.Timeout = null;
4946
-
4947
- /**
4948
- * Function version
4949
- * @type {string || null}
4950
- */
4951
- this.FunctionVersion = null;
4952
-
4953
- /**
4954
- * Maximum available memory of the function
4955
- * @type {number || null}
4956
- */
4957
- this.MemorySize = null;
4958
-
4959
- /**
4960
- * Function running environment
4961
- * @type {string || null}
4962
- */
4963
- this.Runtime = null;
4964
-
4965
- /**
4966
- * Function name
4967
- * @type {string || null}
4968
- */
4969
- this.FunctionName = null;
4970
-
4971
- /**
4972
- * Function VPC
4973
- * @type {VpcConfig || null}
4974
- */
4975
- this.VpcConfig = null;
4976
-
4977
- /**
4978
- * Whether to use GPU
4979
- * @type {string || null}
4980
- */
4981
- this.UseGpu = null;
4982
-
4983
- /**
4984
- * Function environment variable
4985
- * @type {Environment || null}
4986
- */
4987
- this.Environment = null;
4988
-
4989
- /**
4990
- * Whether the code is correct
4991
- * @type {string || null}
4992
- */
4993
- this.CodeResult = null;
4994
-
4995
- /**
4996
- * Code error information
4997
- * @type {string || null}
4998
- */
4999
- this.CodeError = null;
5000
-
5001
- /**
5002
- * Error code
5003
- * @type {number || null}
5004
- */
5005
- this.ErrNo = null;
5006
-
5007
- /**
5008
- * Function namespace
5009
- * @type {string || null}
5010
- */
5011
- this.Namespace = null;
5012
-
5013
- /**
5014
- * Role bound to the function
5015
- * @type {string || null}
5016
- */
5017
- this.Role = null;
5018
-
5019
- /**
5020
- * Whether to install dependencies automatically
5021
- * @type {string || null}
5022
- */
5023
- this.InstallDependency = null;
5024
-
5025
- /**
5026
- * Function status. For valid values and status change process, please see [here](https://intl.cloud.tencent.com/document/product/583/47175?from_cn_redirect=1)
5027
- * @type {string || null}
5028
- */
5029
- this.Status = null;
5030
-
5031
- /**
5032
- * Status description
5033
- * @type {string || null}
5034
- */
5035
- this.StatusDesc = null;
5036
-
5037
- /**
5038
- * CLS logset to which logs are shipped
5039
- * @type {string || null}
5040
- */
5041
- this.ClsLogsetId = null;
5042
-
5043
- /**
5044
- * CLS Topic to which logs are shipped
5045
- * @type {string || null}
5046
- */
5047
- this.ClsTopicId = null;
5048
-
5049
- /**
5050
- * Function ID
5051
- * @type {string || null}
5052
- */
5053
- this.FunctionId = null;
5054
-
5055
- /**
5056
- * Function tag list
5057
- * @type {Array.<Tag> || null}
5058
- */
5059
- this.Tags = null;
5060
-
5061
- /**
5062
- * EipConfig configuration
5063
- * @type {EipOutConfig || null}
5064
- */
5065
- this.EipConfig = null;
5066
-
5067
- /**
5068
- * Domain name information
5069
- * @type {AccessInfo || null}
5070
- */
5071
- this.AccessInfo = null;
5072
-
5073
- /**
5074
- * Function type. The value is `HTTP` or `Event`.
5075
- * @type {string || null}
5076
- */
5077
- this.Type = null;
5078
-
5079
- /**
5080
- * Whether to enable L5
5081
- * @type {string || null}
5082
- */
5083
- this.L5Enable = null;
5084
-
5085
- /**
5086
- * Version information of a layer associated with a function
5087
- * @type {Array.<LayerVersionInfo> || null}
5088
- */
5089
- this.Layers = null;
5090
-
5091
- /**
5092
- * Information of a dead letter queue associated with a function
5093
- * @type {DeadLetterConfig || null}
5094
- */
5095
- this.DeadLetterConfig = null;
5096
-
5097
- /**
5098
- * Function creation time
5099
- * @type {string || null}
5100
- */
5101
- this.AddTime = null;
5102
-
5103
- /**
5104
- * Public network access configuration
5105
- Note: This field may return null, indicating that no valid values can be obtained.
5106
- * @type {PublicNetConfigOut || null}
5107
- */
5108
- this.PublicNetConfig = null;
3806
+ if (params.Content) {
3807
+ let obj = new Code();
3808
+ obj.deserialize(params.Content)
3809
+ this.Content = obj;
3810
+ }
3811
+ this.Description = 'Description' in params ? params.Description : null;
3812
+ this.LicenseInfo = 'LicenseInfo' in params ? params.LicenseInfo : null;
5109
3813
 
5110
- /**
5111
- * Whether Ons is enabled
5112
- Note: This field may return null, indicating that no valid value was found.
5113
- * @type {string || null}
5114
- */
5115
- this.OnsEnable = null;
3814
+ }
3815
+ }
5116
3816
 
5117
- /**
5118
- * File system configuration parameter, which is used for the function to mount the file system
5119
- Note: this field may return null, indicating that no valid values can be obtained.
5120
- * @type {CfsConfig || null}
5121
- */
5122
- this.CfsConfig = null;
3817
+ /**
3818
+ * CreateNamespace request structure.
3819
+ * @class
3820
+ */
3821
+ class CreateNamespaceRequest extends AbstractModel {
3822
+ constructor(){
3823
+ super();
5123
3824
 
5124
3825
  /**
5125
- * Function billing status. For valid values, please see [here](https://intl.cloud.tencent.com/document/product/583/47175?from_cn_redirect=1#.E5.87.BD.E6.95.B0.E8.AE.A1.E8.B4.B9.E7.8A.B6.E6.80.81)
5126
- Note: this field may return null, indicating that no valid values can be obtained.
3826
+ * Namespace name
5127
3827
  * @type {string || null}
5128
3828
  */
5129
- this.AvailableStatus = null;
3829
+ this.Namespace = null;
5130
3830
 
5131
3831
  /**
5132
- * Function version
5133
- Note: this field may return null, indicating that no valid values can be obtained.
3832
+ * Namespace description
5134
3833
  * @type {string || null}
5135
3834
  */
5136
- this.Qualifier = null;
3835
+ this.Description = null;
5137
3836
 
5138
- /**
5139
- * Timeout period for function initialization
5140
- * @type {number || null}
5141
- */
5142
- this.InitTimeout = null;
3837
+ }
5143
3838
 
5144
- /**
5145
- * Cause of function failure
5146
- Note: this field may return null, indicating that no valid values can be obtained.
5147
- * @type {Array.<StatusReason> || null}
5148
- */
5149
- this.StatusReasons = null;
3839
+ /**
3840
+ * @private
3841
+ */
3842
+ deserialize(params) {
3843
+ if (!params) {
3844
+ return;
3845
+ }
3846
+ this.Namespace = 'Namespace' in params ? params.Namespace : null;
3847
+ this.Description = 'Description' in params ? params.Description : null;
5150
3848
 
5151
- /**
5152
- * Specifies whether to enable asynchronization
5153
- Note: this field may return `null`, indicating that no valid values can be obtained.
5154
- * @type {string || null}
5155
- */
5156
- this.AsyncRunEnable = null;
3849
+ }
3850
+ }
5157
3851
 
5158
- /**
5159
- * Specifies whether to enable event tracking
5160
- Note: this field may return `null`, indicating that no valid values can be obtained.
5161
- * @type {string || null}
5162
- */
5163
- this.TraceEnable = null;
3852
+ /**
3853
+ * UpdateFunctionEventInvokeConfig request structure.
3854
+ * @class
3855
+ */
3856
+ class UpdateFunctionEventInvokeConfigRequest extends AbstractModel {
3857
+ constructor(){
3858
+ super();
5164
3859
 
5165
3860
  /**
5166
- * Protocols supported by HTTP-triggered functions. It supports WebSockets for now.
5167
- Note: This field may return null, indicating that no valid value was found.
5168
- * @type {string || null}
3861
+ * Async retry configuration information
3862
+ * @type {AsyncTriggerConfig || null}
5169
3863
  */
5170
- this.ProtocolType = null;
3864
+ this.AsyncTriggerConfig = null;
5171
3865
 
5172
3866
  /**
5173
- * Parameters of the specified protocol
5174
- Note: this field may return `null`, indicating that no valid values can be obtained.
5175
- * @type {ProtocolParams || null}
3867
+ * Function name
3868
+ * @type {string || null}
5176
3869
  */
5177
- this.ProtocolParams = null;
3870
+ this.FunctionName = null;
5178
3871
 
5179
3872
  /**
5180
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
3873
+ * Function namespace. Default value: default
5181
3874
  * @type {string || null}
5182
3875
  */
5183
- this.RequestId = null;
3876
+ this.Namespace = null;
5184
3877
 
5185
3878
  }
5186
3879
 
@@ -5191,123 +3884,89 @@ Note: this field may return `null`, indicating that no valid values can be obtai
5191
3884
  if (!params) {
5192
3885
  return;
5193
3886
  }
5194
- this.ModTime = 'ModTime' in params ? params.ModTime : null;
5195
- this.CodeInfo = 'CodeInfo' in params ? params.CodeInfo : null;
5196
- this.Description = 'Description' in params ? params.Description : null;
5197
3887
 
5198
- if (params.Triggers) {
5199
- this.Triggers = new Array();
5200
- for (let z in params.Triggers) {
5201
- let obj = new Trigger();
5202
- obj.deserialize(params.Triggers[z]);
5203
- this.Triggers.push(obj);
5204
- }
3888
+ if (params.AsyncTriggerConfig) {
3889
+ let obj = new AsyncTriggerConfig();
3890
+ obj.deserialize(params.AsyncTriggerConfig)
3891
+ this.AsyncTriggerConfig = obj;
5205
3892
  }
5206
- this.Handler = 'Handler' in params ? params.Handler : null;
5207
- this.CodeSize = 'CodeSize' in params ? params.CodeSize : null;
5208
- this.Timeout = 'Timeout' in params ? params.Timeout : null;
5209
- this.FunctionVersion = 'FunctionVersion' in params ? params.FunctionVersion : null;
5210
- this.MemorySize = 'MemorySize' in params ? params.MemorySize : null;
5211
- this.Runtime = 'Runtime' in params ? params.Runtime : null;
5212
3893
  this.FunctionName = 'FunctionName' in params ? params.FunctionName : null;
3894
+ this.Namespace = 'Namespace' in params ? params.Namespace : null;
5213
3895
 
5214
- if (params.VpcConfig) {
5215
- let obj = new VpcConfig();
5216
- obj.deserialize(params.VpcConfig)
5217
- this.VpcConfig = obj;
5218
- }
5219
- this.UseGpu = 'UseGpu' in params ? params.UseGpu : null;
3896
+ }
3897
+ }
5220
3898
 
5221
- if (params.Environment) {
5222
- let obj = new Environment();
5223
- obj.deserialize(params.Environment)
5224
- this.Environment = obj;
5225
- }
5226
- this.CodeResult = 'CodeResult' in params ? params.CodeResult : null;
5227
- this.CodeError = 'CodeError' in params ? params.CodeError : null;
5228
- this.ErrNo = 'ErrNo' in params ? params.ErrNo : null;
5229
- this.Namespace = 'Namespace' in params ? params.Namespace : null;
5230
- this.Role = 'Role' in params ? params.Role : null;
5231
- this.InstallDependency = 'InstallDependency' in params ? params.InstallDependency : null;
5232
- this.Status = 'Status' in params ? params.Status : null;
5233
- this.StatusDesc = 'StatusDesc' in params ? params.StatusDesc : null;
5234
- this.ClsLogsetId = 'ClsLogsetId' in params ? params.ClsLogsetId : null;
5235
- this.ClsTopicId = 'ClsTopicId' in params ? params.ClsTopicId : null;
5236
- this.FunctionId = 'FunctionId' in params ? params.FunctionId : null;
3899
+ /**
3900
+ * DeleteLayerVersion request structure.
3901
+ * @class
3902
+ */
3903
+ class DeleteLayerVersionRequest extends AbstractModel {
3904
+ constructor(){
3905
+ super();
5237
3906
 
5238
- if (params.Tags) {
5239
- this.Tags = new Array();
5240
- for (let z in params.Tags) {
5241
- let obj = new Tag();
5242
- obj.deserialize(params.Tags[z]);
5243
- this.Tags.push(obj);
5244
- }
5245
- }
3907
+ /**
3908
+ * Layer name
3909
+ * @type {string || null}
3910
+ */
3911
+ this.LayerName = null;
5246
3912
 
5247
- if (params.EipConfig) {
5248
- let obj = new EipOutConfig();
5249
- obj.deserialize(params.EipConfig)
5250
- this.EipConfig = obj;
5251
- }
3913
+ /**
3914
+ * Version number
3915
+ * @type {number || null}
3916
+ */
3917
+ this.LayerVersion = null;
5252
3918
 
5253
- if (params.AccessInfo) {
5254
- let obj = new AccessInfo();
5255
- obj.deserialize(params.AccessInfo)
5256
- this.AccessInfo = obj;
5257
- }
5258
- this.Type = 'Type' in params ? params.Type : null;
5259
- this.L5Enable = 'L5Enable' in params ? params.L5Enable : null;
3919
+ }
5260
3920
 
5261
- if (params.Layers) {
5262
- this.Layers = new Array();
5263
- for (let z in params.Layers) {
5264
- let obj = new LayerVersionInfo();
5265
- obj.deserialize(params.Layers[z]);
5266
- this.Layers.push(obj);
5267
- }
3921
+ /**
3922
+ * @private
3923
+ */
3924
+ deserialize(params) {
3925
+ if (!params) {
3926
+ return;
5268
3927
  }
3928
+ this.LayerName = 'LayerName' in params ? params.LayerName : null;
3929
+ this.LayerVersion = 'LayerVersion' in params ? params.LayerVersion : null;
5269
3930
 
5270
- if (params.DeadLetterConfig) {
5271
- let obj = new DeadLetterConfig();
5272
- obj.deserialize(params.DeadLetterConfig)
5273
- this.DeadLetterConfig = obj;
5274
- }
5275
- this.AddTime = 'AddTime' in params ? params.AddTime : null;
3931
+ }
3932
+ }
5276
3933
 
5277
- if (params.PublicNetConfig) {
5278
- let obj = new PublicNetConfigOut();
5279
- obj.deserialize(params.PublicNetConfig)
5280
- this.PublicNetConfig = obj;
5281
- }
5282
- this.OnsEnable = 'OnsEnable' in params ? params.OnsEnable : null;
3934
+ /**
3935
+ * Key-value pair filters for conditional filtering queries, such as filtering ID, name, and status.
3936
+ If more than one filter exists, the logical relationship between these filters is `AND`.
3937
+ If multiple values exist in one filter, the logical relationship between these values under the same filter is `OR`.
3938
+ * @class
3939
+ */
3940
+ class Filter extends AbstractModel {
3941
+ constructor(){
3942
+ super();
5283
3943
 
5284
- if (params.CfsConfig) {
5285
- let obj = new CfsConfig();
5286
- obj.deserialize(params.CfsConfig)
5287
- this.CfsConfig = obj;
5288
- }
5289
- this.AvailableStatus = 'AvailableStatus' in params ? params.AvailableStatus : null;
5290
- this.Qualifier = 'Qualifier' in params ? params.Qualifier : null;
5291
- this.InitTimeout = 'InitTimeout' in params ? params.InitTimeout : null;
3944
+ /**
3945
+ * Fields to be filtered. Up to 10 conditions allowed.
3946
+ Values of `Name`: `VpcId`, `SubnetId`, `ClsTopicId`, `ClsLogsetId`, `Role`, `CfsId`, `CfsMountInsId`, `Eip`. Values limit: 1.
3947
+ Name options: Status, Runtime, FunctionType, PublicNetStatus, AsyncRunEnable, TraceEnable. Values limit: 20.
3948
+ When `Name` is `Runtime`, `CustomImage` refers to the image type function
3949
+ * @type {string || null}
3950
+ */
3951
+ this.Name = null;
5292
3952
 
5293
- if (params.StatusReasons) {
5294
- this.StatusReasons = new Array();
5295
- for (let z in params.StatusReasons) {
5296
- let obj = new StatusReason();
5297
- obj.deserialize(params.StatusReasons[z]);
5298
- this.StatusReasons.push(obj);
5299
- }
5300
- }
5301
- this.AsyncRunEnable = 'AsyncRunEnable' in params ? params.AsyncRunEnable : null;
5302
- this.TraceEnable = 'TraceEnable' in params ? params.TraceEnable : null;
5303
- this.ProtocolType = 'ProtocolType' in params ? params.ProtocolType : null;
3953
+ /**
3954
+ * Filter values of the field
3955
+ * @type {Array.<string> || null}
3956
+ */
3957
+ this.Values = null;
3958
+
3959
+ }
5304
3960
 
5305
- if (params.ProtocolParams) {
5306
- let obj = new ProtocolParams();
5307
- obj.deserialize(params.ProtocolParams)
5308
- this.ProtocolParams = obj;
3961
+ /**
3962
+ * @private
3963
+ */
3964
+ deserialize(params) {
3965
+ if (!params) {
3966
+ return;
5309
3967
  }
5310
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
3968
+ this.Name = 'Name' in params ? params.Name : null;
3969
+ this.Values = 'Values' in params ? params.Values : null;
5311
3970
 
5312
3971
  }
5313
3972
  }
@@ -5947,59 +4606,19 @@ class InvokeFunctionRequest extends AbstractModel {
5947
4606
  }
5948
4607
  }
5949
4608
 
5950
- /**
5951
- * Async retry configuration
5952
- * @class
5953
- */
5954
- class RetryConfig extends AbstractModel {
5955
- constructor(){
5956
- super();
5957
-
5958
- /**
5959
- * Number of retry attempts
5960
- * @type {number || null}
5961
- */
5962
- this.RetryNum = null;
5963
-
5964
- }
5965
-
5966
- /**
5967
- * @private
5968
- */
5969
- deserialize(params) {
5970
- if (!params) {
5971
- return;
5972
- }
5973
- this.RetryNum = 'RetryNum' in params ? params.RetryNum : null;
5974
-
5975
- }
5976
- }
5977
-
5978
- /**
5979
- * GetFunctionAddress response structure.
5980
- * @class
5981
- */
5982
- class GetFunctionAddressResponse extends AbstractModel {
5983
- constructor(){
5984
- super();
5985
-
5986
- /**
5987
- * Cos address of the function
5988
- * @type {string || null}
5989
- */
5990
- this.Url = null;
5991
-
5992
- /**
5993
- * SHA256 code of the function
5994
- * @type {string || null}
5995
- */
5996
- this.CodeSha256 = null;
4609
+ /**
4610
+ * Async retry configuration
4611
+ * @class
4612
+ */
4613
+ class RetryConfig extends AbstractModel {
4614
+ constructor(){
4615
+ super();
5997
4616
 
5998
4617
  /**
5999
- * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
6000
- * @type {string || null}
4618
+ * Number of retry attempts
4619
+ * @type {number || null}
6001
4620
  */
6002
- this.RequestId = null;
4621
+ this.RetryNum = null;
6003
4622
 
6004
4623
  }
6005
4624
 
@@ -6010,77 +4629,36 @@ class GetFunctionAddressResponse extends AbstractModel {
6010
4629
  if (!params) {
6011
4630
  return;
6012
4631
  }
6013
- this.Url = 'Url' in params ? params.Url : null;
6014
- this.CodeSha256 = 'CodeSha256' in params ? params.CodeSha256 : null;
6015
- this.RequestId = 'RequestId' in params ? params.RequestId : null;
4632
+ this.RetryNum = 'RetryNum' in params ? params.RetryNum : null;
6016
4633
 
6017
4634
  }
6018
4635
  }
6019
4636
 
6020
4637
  /**
6021
- * Configuration information of the CFS instance associated with function
4638
+ * GetFunctionAddress response structure.
6022
4639
  * @class
6023
4640
  */
6024
- class CfsInsInfo extends AbstractModel {
4641
+ class GetFunctionAddressResponse extends AbstractModel {
6025
4642
  constructor(){
6026
4643
  super();
6027
4644
 
6028
4645
  /**
6029
- * User ID
6030
- * @type {string || null}
6031
- */
6032
- this.UserId = null;
6033
-
6034
- /**
6035
- * User group ID
6036
- * @type {string || null}
6037
- */
6038
- this.UserGroupId = null;
6039
-
6040
- /**
6041
- * CFS instance ID
6042
- * @type {string || null}
6043
- */
6044
- this.CfsId = null;
6045
-
6046
- /**
6047
- * File system mount target ID
6048
- * @type {string || null}
6049
- */
6050
- this.MountInsId = null;
6051
-
6052
- /**
6053
- * Local mount target
6054
- * @type {string || null}
6055
- */
6056
- this.LocalMountDir = null;
6057
-
6058
- /**
6059
- * Remote mount target
6060
- * @type {string || null}
6061
- */
6062
- this.RemoteMountDir = null;
6063
-
6064
- /**
6065
- * File system IP, which is not required when you configure CFS.
6066
- Note: this field may return null, indicating that no valid values can be obtained.
4646
+ * Cos address of the function
6067
4647
  * @type {string || null}
6068
4648
  */
6069
- this.IpAddress = null;
4649
+ this.Url = null;
6070
4650
 
6071
4651
  /**
6072
- * VPC ID of file system, which is not required when you configure CFS.
6073
- Note: this field may return null, indicating that no valid values can be obtained.
4652
+ * SHA256 code of the function
6074
4653
  * @type {string || null}
6075
4654
  */
6076
- this.MountVpcId = null;
4655
+ this.CodeSha256 = null;
6077
4656
 
6078
4657
  /**
6079
- * VPC subnet ID of file system, which is not required when you configure CFS.
6080
- Note: this field may return null, indicating that no valid values can be obtained.
4658
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
6081
4659
  * @type {string || null}
6082
4660
  */
6083
- this.MountSubnetId = null;
4661
+ this.RequestId = null;
6084
4662
 
6085
4663
  }
6086
4664
 
@@ -6091,15 +4669,9 @@ Note: this field may return null, indicating that no valid values can be obtaine
6091
4669
  if (!params) {
6092
4670
  return;
6093
4671
  }
6094
- this.UserId = 'UserId' in params ? params.UserId : null;
6095
- this.UserGroupId = 'UserGroupId' in params ? params.UserGroupId : null;
6096
- this.CfsId = 'CfsId' in params ? params.CfsId : null;
6097
- this.MountInsId = 'MountInsId' in params ? params.MountInsId : null;
6098
- this.LocalMountDir = 'LocalMountDir' in params ? params.LocalMountDir : null;
6099
- this.RemoteMountDir = 'RemoteMountDir' in params ? params.RemoteMountDir : null;
6100
- this.IpAddress = 'IpAddress' in params ? params.IpAddress : null;
6101
- this.MountVpcId = 'MountVpcId' in params ? params.MountVpcId : null;
6102
- this.MountSubnetId = 'MountSubnetId' in params ? params.MountSubnetId : null;
4672
+ this.Url = 'Url' in params ? params.Url : null;
4673
+ this.CodeSha256 = 'CodeSha256' in params ? params.CodeSha256 : null;
4674
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
6103
4675
 
6104
4676
  }
6105
4677
  }
@@ -6353,48 +4925,6 @@ class AsyncTriggerConfig extends AbstractModel {
6353
4925
  }
6354
4926
  }
6355
4927
 
6356
- /**
6357
- * Dead letter queue parameter
6358
- * @class
6359
- */
6360
- class DeadLetterConfig extends AbstractModel {
6361
- constructor(){
6362
- super();
6363
-
6364
- /**
6365
- * Dead letter queue mode
6366
- * @type {string || null}
6367
- */
6368
- this.Type = null;
6369
-
6370
- /**
6371
- * Dead letter queue name
6372
- * @type {string || null}
6373
- */
6374
- this.Name = null;
6375
-
6376
- /**
6377
- * Tag form of a dead letter queue topic mode
6378
- * @type {string || null}
6379
- */
6380
- this.FilterType = null;
6381
-
6382
- }
6383
-
6384
- /**
6385
- * @private
6386
- */
6387
- deserialize(params) {
6388
- if (!params) {
6389
- return;
6390
- }
6391
- this.Type = 'Type' in params ? params.Type : null;
6392
- this.Name = 'Name' in params ? params.Name : null;
6393
- this.FilterType = 'FilterType' in params ? params.FilterType : null;
6394
-
6395
- }
6396
- }
6397
-
6398
4928
  /**
6399
4929
  * ListVersionByFunction request structure.
6400
4930
  * @class
@@ -6628,10 +5158,10 @@ Function version, alias
6628
5158
  }
6629
5159
 
6630
5160
  /**
6631
- * CreateFunction response structure.
5161
+ * CreateNamespace response structure.
6632
5162
  * @class
6633
5163
  */
6634
- class CreateFunctionResponse extends AbstractModel {
5164
+ class CreateNamespaceResponse extends AbstractModel {
6635
5165
  constructor(){
6636
5166
  super();
6637
5167
 
@@ -6728,6 +5258,35 @@ class PutProvisionedConcurrencyConfigRequest extends AbstractModel {
6728
5258
  */
6729
5259
  this.TriggerActions = null;
6730
5260
 
5261
+ /**
5262
+ * Specifies the provisioned concurrency type.
5263
+ `Default`: Static provisioned concurrency.
5264
+ `ConcurrencyUtilizationTracking`: Scales the concurrency automatically according to the concurrency utilization.
5265
+ If `ConcurrencyUtilizationTracking` is passed in,
5266
+
5267
+ `TrackingTarget`, `MinCapacity` and `MaxCapacity` are required, and `VersionProvisionedConcurrencyNum` must be `0`.
5268
+ * @type {string || null}
5269
+ */
5270
+ this.ProvisionedType = null;
5271
+
5272
+ /**
5273
+ * The target concurrency utilization. Range: (0,1) (two decimal places)
5274
+ * @type {number || null}
5275
+ */
5276
+ this.TrackingTarget = null;
5277
+
5278
+ /**
5279
+ * The minimum number of instances. It can not be smaller than `1`.
5280
+ * @type {number || null}
5281
+ */
5282
+ this.MinCapacity = null;
5283
+
5284
+ /**
5285
+ * The maximum number of instances
5286
+ * @type {number || null}
5287
+ */
5288
+ this.MaxCapacity = null;
5289
+
6731
5290
  }
6732
5291
 
6733
5292
  /**
@@ -6750,6 +5309,10 @@ class PutProvisionedConcurrencyConfigRequest extends AbstractModel {
6750
5309
  this.TriggerActions.push(obj);
6751
5310
  }
6752
5311
  }
5312
+ this.ProvisionedType = 'ProvisionedType' in params ? params.ProvisionedType : null;
5313
+ this.TrackingTarget = 'TrackingTarget' in params ? params.TrackingTarget : null;
5314
+ this.MinCapacity = 'MinCapacity' in params ? params.MinCapacity : null;
5315
+ this.MaxCapacity = 'MaxCapacity' in params ? params.MaxCapacity : null;
6753
5316
 
6754
5317
  }
6755
5318
  }
@@ -6931,6 +5494,20 @@ class NamespaceUsage extends AbstractModel {
6931
5494
  */
6932
5495
  this.FunctionsCount = null;
6933
5496
 
5497
+ /**
5498
+ * Total memory quota of the namespace
5499
+ Note: This field may return `null`, indicating that no valid values can be obtained.
5500
+ * @type {number || null}
5501
+ */
5502
+ this.TotalConcurrencyMem = null;
5503
+
5504
+ /**
5505
+ * Memory usage of the namespace
5506
+ Note: This field may return `null`, indicating that no valid values can be obtained.
5507
+ * @type {number || null}
5508
+ */
5509
+ this.TotalAllocatedConcurrencyMem = null;
5510
+
6934
5511
  }
6935
5512
 
6936
5513
  /**
@@ -6943,6 +5520,8 @@ class NamespaceUsage extends AbstractModel {
6943
5520
  this.Functions = 'Functions' in params ? params.Functions : null;
6944
5521
  this.Namespace = 'Namespace' in params ? params.Namespace : null;
6945
5522
  this.FunctionsCount = 'FunctionsCount' in params ? params.FunctionsCount : null;
5523
+ this.TotalConcurrencyMem = 'TotalConcurrencyMem' in params ? params.TotalConcurrencyMem : null;
5524
+ this.TotalAllocatedConcurrencyMem = 'TotalAllocatedConcurrencyMem' in params ? params.TotalAllocatedConcurrencyMem : null;
6946
5525
 
6947
5526
  }
6948
5527
  }
@@ -7003,41 +5582,6 @@ class ListAliasesRequest extends AbstractModel {
7003
5582
  }
7004
5583
  }
7005
5584
 
7006
- /**
7007
- * EipOutConfig
7008
- * @class
7009
- */
7010
- class EipOutConfig extends AbstractModel {
7011
- constructor(){
7012
- super();
7013
-
7014
- /**
7015
- * It specifies whether the IP is fixed. The value is `TRUE` or `FALSE`.
7016
- * @type {string || null}
7017
- */
7018
- this.EipFixed = null;
7019
-
7020
- /**
7021
- * IP list
7022
- * @type {Array.<string> || null}
7023
- */
7024
- this.Eips = null;
7025
-
7026
- }
7027
-
7028
- /**
7029
- * @private
7030
- */
7031
- deserialize(params) {
7032
- if (!params) {
7033
- return;
7034
- }
7035
- this.EipFixed = 'EipFixed' in params ? params.EipFixed : null;
7036
- this.Eips = 'Eips' in params ? params.Eips : null;
7037
-
7038
- }
7039
- }
7040
-
7041
5585
  /**
7042
5586
  * Version alias of function
7043
5587
  * @class
@@ -7111,24 +5655,30 @@ Note: this field may return null, indicating that no valid values can be obtaine
7111
5655
  }
7112
5656
 
7113
5657
  /**
7114
- * GetLayerVersion request structure.
5658
+ * GetAccount response structure.
7115
5659
  * @class
7116
5660
  */
7117
- class GetLayerVersionRequest extends AbstractModel {
5661
+ class GetAccountResponse extends AbstractModel {
7118
5662
  constructor(){
7119
5663
  super();
7120
5664
 
7121
5665
  /**
7122
- * Layer name
7123
- * @type {string || null}
5666
+ * Namespace usage information
5667
+ * @type {UsageInfo || null}
7124
5668
  */
7125
- this.LayerName = null;
5669
+ this.AccountUsage = null;
7126
5670
 
7127
5671
  /**
7128
- * Version number
7129
- * @type {number || null}
5672
+ * Namespace limit information
5673
+ * @type {LimitsInfo || null}
7130
5674
  */
7131
- this.LayerVersion = null;
5675
+ this.AccountLimit = null;
5676
+
5677
+ /**
5678
+ * The unique request ID, which is returned for each request. RequestId is required for locating a problem.
5679
+ * @type {string || null}
5680
+ */
5681
+ this.RequestId = null;
7132
5682
 
7133
5683
  }
7134
5684
 
@@ -7139,8 +5689,19 @@ class GetLayerVersionRequest extends AbstractModel {
7139
5689
  if (!params) {
7140
5690
  return;
7141
5691
  }
7142
- this.LayerName = 'LayerName' in params ? params.LayerName : null;
7143
- this.LayerVersion = 'LayerVersion' in params ? params.LayerVersion : null;
5692
+
5693
+ if (params.AccountUsage) {
5694
+ let obj = new UsageInfo();
5695
+ obj.deserialize(params.AccountUsage)
5696
+ this.AccountUsage = obj;
5697
+ }
5698
+
5699
+ if (params.AccountLimit) {
5700
+ let obj = new LimitsInfo();
5701
+ obj.deserialize(params.AccountLimit)
5702
+ this.AccountLimit = obj;
5703
+ }
5704
+ this.RequestId = 'RequestId' in params ? params.RequestId : null;
7144
5705
 
7145
5706
  }
7146
5707
  }
@@ -7400,41 +5961,6 @@ class DeleteTriggerRequest extends AbstractModel {
7400
5961
  }
7401
5962
  }
7402
5963
 
7403
- /**
7404
- * VPC parameter configuration
7405
- * @class
7406
- */
7407
- class VpcConfig extends AbstractModel {
7408
- constructor(){
7409
- super();
7410
-
7411
- /**
7412
- * VPC ID
7413
- * @type {string || null}
7414
- */
7415
- this.VpcId = null;
7416
-
7417
- /**
7418
- * Subnet ID
7419
- * @type {string || null}
7420
- */
7421
- this.SubnetId = null;
7422
-
7423
- }
7424
-
7425
- /**
7426
- * @private
7427
- */
7428
- deserialize(params) {
7429
- if (!params) {
7430
- return;
7431
- }
7432
- this.VpcId = 'VpcId' in params ? params.VpcId : null;
7433
- this.SubnetId = 'SubnetId' in params ? params.SubnetId : null;
7434
-
7435
- }
7436
- }
7437
-
7438
5964
  /**
7439
5965
  * GetProvisionedConcurrencyConfig response structure.
7440
5966
  * @class
@@ -7585,42 +6111,6 @@ class ListNamespacesResponse extends AbstractModel {
7585
6111
  }
7586
6112
  }
7587
6113
 
7588
- /**
7589
- * Fixed IP configuration for public network access
7590
- * @class
7591
- */
7592
- class EipConfigOut extends AbstractModel {
7593
- constructor(){
7594
- super();
7595
-
7596
- /**
7597
- * Whether it is a fixed IP. Valid values: ["ENABLE","DISABLE"]
7598
- * @type {string || null}
7599
- */
7600
- this.EipStatus = null;
7601
-
7602
- /**
7603
- * IP list
7604
- Note: This field may return null, indicating that no valid values can be obtained.
7605
- * @type {Array.<string> || null}
7606
- */
7607
- this.EipAddress = null;
7608
-
7609
- }
7610
-
7611
- /**
7612
- * @private
7613
- */
7614
- deserialize(params) {
7615
- if (!params) {
7616
- return;
7617
- }
7618
- this.EipStatus = 'EipStatus' in params ? params.EipStatus : null;
7619
- this.EipAddress = 'EipAddress' in params ? params.EipAddress : null;
7620
-
7621
- }
7622
- }
7623
-
7624
6114
  /**
7625
6115
  * UpdateFunctionCode response structure.
7626
6116
  * @class
@@ -7650,25 +6140,22 @@ class UpdateFunctionCodeResponse extends AbstractModel {
7650
6140
  }
7651
6141
 
7652
6142
  module.exports = {
7653
- AccessInfo: AccessInfo,
7654
6143
  UpdateAliasRequest: UpdateAliasRequest,
7655
6144
  Trigger: Trigger,
7656
6145
  GetProvisionedConcurrencyConfigRequest: GetProvisionedConcurrencyConfigRequest,
7657
6146
  ListAliasesResponse: ListAliasesResponse,
7658
6147
  DeleteLayerVersionResponse: DeleteLayerVersionResponse,
7659
6148
  GetReservedConcurrencyConfigResponse: GetReservedConcurrencyConfigResponse,
7660
- ProtocolParams: ProtocolParams,
7661
6149
  RoutingConfig: RoutingConfig,
7662
6150
  DeleteProvisionedConcurrencyConfigResponse: DeleteProvisionedConcurrencyConfigResponse,
7663
6151
  VersionWeight: VersionWeight,
7664
6152
  TimeInterval: TimeInterval,
7665
6153
  LayerVersionInfo: LayerVersionInfo,
7666
6154
  PutProvisionedConcurrencyConfigResponse: PutProvisionedConcurrencyConfigResponse,
7667
- UpdateFunctionConfigurationResponse: UpdateFunctionConfigurationResponse,
6155
+ UpdateNamespaceResponse: UpdateNamespaceResponse,
7668
6156
  PublishLayerVersionResponse: PublishLayerVersionResponse,
7669
6157
  UsageInfo: UsageInfo,
7670
- PublicNetConfigIn: PublicNetConfigIn,
7671
- DeleteProvisionedConcurrencyConfigRequest: DeleteProvisionedConcurrencyConfigRequest,
6158
+ AsyncEvent: AsyncEvent,
7672
6159
  DeleteReservedConcurrencyConfigResponse: DeleteReservedConcurrencyConfigResponse,
7673
6160
  GetAliasResponse: GetAliasResponse,
7674
6161
  UpdateAliasResponse: UpdateAliasResponse,
@@ -7678,23 +6165,18 @@ module.exports = {
7678
6165
  Tag: Tag,
7679
6166
  GetRequestStatusRequest: GetRequestStatusRequest,
7680
6167
  LogFilter: LogFilter,
7681
- EipConfigIn: EipConfigIn,
7682
6168
  ListLayerVersionsResponse: ListLayerVersionsResponse,
7683
6169
  DeleteFunctionRequest: DeleteFunctionRequest,
7684
6170
  CopyFunctionResponse: CopyFunctionResponse,
7685
6171
  InvokeFunctionResponse: InvokeFunctionResponse,
7686
6172
  Namespace: Namespace,
7687
- GetFunctionRequest: GetFunctionRequest,
7688
6173
  ListNamespacesRequest: ListNamespacesRequest,
7689
6174
  PublishVersionRequest: PublishVersionRequest,
7690
6175
  DeleteAliasRequest: DeleteAliasRequest,
7691
6176
  ListVersionByFunctionResponse: ListVersionByFunctionResponse,
7692
- WSParams: WSParams,
7693
6177
  GetAliasRequest: GetAliasRequest,
7694
- CreateNamespaceResponse: CreateNamespaceResponse,
7695
- PublicNetConfigOut: PublicNetConfigOut,
6178
+ DeleteNamespaceRequest: DeleteNamespaceRequest,
7696
6179
  UpdateFunctionCodeRequest: UpdateFunctionCodeRequest,
7697
- UpdateFunctionConfigurationRequest: UpdateFunctionConfigurationRequest,
7698
6180
  DeleteReservedConcurrencyConfigRequest: DeleteReservedConcurrencyConfigRequest,
7699
6181
  GetFunctionEventInvokeConfigResponse: GetFunctionEventInvokeConfigResponse,
7700
6182
  ListTriggersResponse: ListTriggersResponse,
@@ -7702,15 +6184,11 @@ module.exports = {
7702
6184
  ListLayersRequest: ListLayersRequest,
7703
6185
  CopyFunctionRequest: CopyFunctionRequest,
7704
6186
  DeleteNamespaceResponse: DeleteNamespaceResponse,
7705
- LayerVersionSimple: LayerVersionSimple,
7706
6187
  TriggerCount: TriggerCount,
7707
6188
  NamespaceLimit: NamespaceLimit,
7708
- CfsConfig: CfsConfig,
7709
- DeleteNamespaceRequest: DeleteNamespaceRequest,
7710
6189
  ListFunctionsRequest: ListFunctionsRequest,
7711
6190
  CreateTriggerRequest: CreateTriggerRequest,
7712
- UpdateNamespaceResponse: UpdateNamespaceResponse,
7713
- GetAccountResponse: GetAccountResponse,
6191
+ GetLayerVersionRequest: GetLayerVersionRequest,
7714
6192
  DeleteFunctionResponse: DeleteFunctionResponse,
7715
6193
  ListAsyncEventsRequest: ListAsyncEventsRequest,
7716
6194
  Result: Result,
@@ -7718,14 +6196,12 @@ module.exports = {
7718
6196
  LogSearchContext: LogSearchContext,
7719
6197
  TriggerInfo: TriggerInfo,
7720
6198
  RequestStatus: RequestStatus,
7721
- CreateFunctionRequest: CreateFunctionRequest,
7722
6199
  GetAccountRequest: GetAccountRequest,
7723
6200
  PutTotalConcurrencyConfigResponse: PutTotalConcurrencyConfigResponse,
7724
6201
  GetAsyncEventStatusRequest: GetAsyncEventStatusRequest,
7725
6202
  DeleteAliasResponse: DeleteAliasResponse,
7726
6203
  PublishVersionResponse: PublishVersionResponse,
7727
- AsyncEvent: AsyncEvent,
7728
- Environment: Environment,
6204
+ DeleteProvisionedConcurrencyConfigRequest: DeleteProvisionedConcurrencyConfigRequest,
7729
6205
  TerminateAsyncEventResponse: TerminateAsyncEventResponse,
7730
6206
  GetFunctionAddressRequest: GetFunctionAddressRequest,
7731
6207
  InvokeResponse: InvokeResponse,
@@ -7741,8 +6217,6 @@ module.exports = {
7741
6217
  UpdateFunctionEventInvokeConfigRequest: UpdateFunctionEventInvokeConfigRequest,
7742
6218
  DeleteLayerVersionRequest: DeleteLayerVersionRequest,
7743
6219
  Filter: Filter,
7744
- Variable: Variable,
7745
- GetFunctionResponse: GetFunctionResponse,
7746
6220
  GetFunctionEventInvokeConfigRequest: GetFunctionEventInvokeConfigRequest,
7747
6221
  Code: Code,
7748
6222
  PutTotalConcurrencyConfigRequest: PutTotalConcurrencyConfigRequest,
@@ -7755,36 +6229,31 @@ module.exports = {
7755
6229
  InvokeFunctionRequest: InvokeFunctionRequest,
7756
6230
  RetryConfig: RetryConfig,
7757
6231
  GetFunctionAddressResponse: GetFunctionAddressResponse,
7758
- CfsInsInfo: CfsInsInfo,
7759
6232
  TriggerAction: TriggerAction,
7760
6233
  LimitsInfo: LimitsInfo,
7761
6234
  ListLayersResponse: ListLayersResponse,
7762
6235
  FunctionVersion: FunctionVersion,
7763
6236
  AsyncTriggerConfig: AsyncTriggerConfig,
7764
- DeadLetterConfig: DeadLetterConfig,
7765
6237
  ListVersionByFunctionRequest: ListVersionByFunctionRequest,
7766
6238
  ListFunctionsResponse: ListFunctionsResponse,
7767
6239
  GetAsyncEventStatusResponse: GetAsyncEventStatusResponse,
7768
6240
  ListTriggersRequest: ListTriggersRequest,
7769
- CreateFunctionResponse: CreateFunctionResponse,
6241
+ CreateNamespaceResponse: CreateNamespaceResponse,
7770
6242
  GetReservedConcurrencyConfigRequest: GetReservedConcurrencyConfigRequest,
7771
6243
  PutProvisionedConcurrencyConfigRequest: PutProvisionedConcurrencyConfigRequest,
7772
6244
  Function: Function,
7773
6245
  NamespaceUsage: NamespaceUsage,
7774
6246
  ListAliasesRequest: ListAliasesRequest,
7775
- EipOutConfig: EipOutConfig,
7776
6247
  Alias: Alias,
7777
- GetLayerVersionRequest: GetLayerVersionRequest,
6248
+ GetAccountResponse: GetAccountResponse,
7778
6249
  GetFunctionLogsResponse: GetFunctionLogsResponse,
7779
6250
  ImageConfig: ImageConfig,
7780
6251
  DeleteTriggerResponse: DeleteTriggerResponse,
7781
6252
  SearchKey: SearchKey,
7782
6253
  DeleteTriggerRequest: DeleteTriggerRequest,
7783
- VpcConfig: VpcConfig,
7784
6254
  GetProvisionedConcurrencyConfigResponse: GetProvisionedConcurrencyConfigResponse,
7785
6255
  ListAsyncEventsResponse: ListAsyncEventsResponse,
7786
6256
  ListNamespacesResponse: ListNamespacesResponse,
7787
- EipConfigOut: EipConfigOut,
7788
6257
  UpdateFunctionCodeResponse: UpdateFunctionCodeResponse,
7789
6258
 
7790
6259
  }