@ucloud-sdks/ucloud-sdk-js 0.2.19 → 0.2.21

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.
@@ -0,0 +1,286 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ const client_1 = __importDefault(require("../../core/client"));
7
+ const request_1 = __importDefault(require("../../core/request"));
8
+ /**
9
+ * This client is used to call actions of **ukms** service
10
+ */
11
+ class UKMSClient extends client_1.default {
12
+ constructor({ config, credential, }) {
13
+ super({ config, credential });
14
+ }
15
+ /**
16
+ * CancelKeyDeletion - 取消计划删除中的密钥。
17
+ *
18
+ * See also: https://docs.ucloud.cn/api/ukms-api/cancel_key_deletion
19
+ */
20
+ cancelKeyDeletion(request) {
21
+ const args = Object.assign({ Action: 'CancelKeyDeletion' }, (request || {}));
22
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
23
+ }
24
+ /**
25
+ * CancelScheduleKeyDeletion - 取消计划删除密钥
26
+ *
27
+ * See also: https://docs.ucloud.cn/api/ukms-api/cancel_schedule_key_deletion
28
+ */
29
+ cancelScheduleKeyDeletion(request) {
30
+ const args = Object.assign({ Action: 'CancelScheduleKeyDeletion' }, (request || {}));
31
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
32
+ }
33
+ /**
34
+ * CreateAlias - 为密钥创建别名。
35
+ *
36
+ * See also: https://docs.ucloud.cn/api/ukms-api/create_alias
37
+ */
38
+ createAlias(request) {
39
+ const args = Object.assign({ Action: 'CreateAlias' }, (request || {}));
40
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
41
+ }
42
+ /**
43
+ * CreateKey - 创建密钥。
44
+ *
45
+ * See also: https://docs.ucloud.cn/api/ukms-api/create_key
46
+ */
47
+ createKey(request) {
48
+ const args = Object.assign({ Action: 'CreateKey' }, (request || {}));
49
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
50
+ }
51
+ /**
52
+ * Decrypt - 您可以使用此操作解密使用对称加密 KMS 密钥或非对称加密 KMS 密钥加密的密文。当 KMS 密钥为非对称密钥时,您必须指定用于加密密文的 KMS 密钥和加密算法。
53
+ *
54
+ * See also: https://docs.ucloud.cn/api/ukms-api/decrypt
55
+ */
56
+ decrypt(request) {
57
+ const args = Object.assign({ Action: 'Decrypt' }, (request || {}));
58
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
59
+ }
60
+ /**
61
+ * DeleteAlias - 删除密钥别名。
62
+ *
63
+ * See also: https://docs.ucloud.cn/api/ukms-api/delete_alias
64
+ */
65
+ deleteAlias(request) {
66
+ const args = Object.assign({ Action: 'DeleteAlias' }, (request || {}));
67
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
68
+ }
69
+ /**
70
+ * DescribeKey - 查看指定密钥的元数据。
71
+ *
72
+ * See also: https://docs.ucloud.cn/api/ukms-api/describe_key
73
+ */
74
+ describeKey(request) {
75
+ const args = Object.assign({ Action: 'DescribeKey' }, (request || {}));
76
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
77
+ }
78
+ /**
79
+ * DisableKey - 禁用指定密钥。
80
+ *
81
+ * See also: https://docs.ucloud.cn/api/ukms-api/disable_key
82
+ */
83
+ disableKey(request) {
84
+ const args = Object.assign({ Action: 'DisableKey' }, (request || {}));
85
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
86
+ }
87
+ /**
88
+ * DisableKeyRotation - 关闭密钥自动轮转。
89
+ *
90
+ * See also: https://docs.ucloud.cn/api/ukms-api/disable_key_rotation
91
+ */
92
+ disableKeyRotation(request) {
93
+ const args = Object.assign({ Action: 'DisableKeyRotation' }, (request || {}));
94
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
95
+ }
96
+ /**
97
+ * EnableKey - 启用指定密钥。
98
+ *
99
+ * See also: https://docs.ucloud.cn/api/ukms-api/enable_key
100
+ */
101
+ enableKey(request) {
102
+ const args = Object.assign({ Action: 'EnableKey' }, (request || {}));
103
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
104
+ }
105
+ /**
106
+ * EnableKeyRotation - 开启对称密钥自动轮转。
107
+ *
108
+ * See also: https://docs.ucloud.cn/api/ukms-api/enable_key_rotation
109
+ */
110
+ enableKeyRotation(request) {
111
+ const args = Object.assign({ Action: 'EnableKeyRotation' }, (request || {}));
112
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
113
+ }
114
+ /**
115
+ * Encrypt - 使用指定密钥加密明文数据。
116
+ *
117
+ * See also: https://docs.ucloud.cn/api/ukms-api/encrypt
118
+ */
119
+ encrypt(request) {
120
+ const args = Object.assign({ Action: 'Encrypt' }, (request || {}));
121
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
122
+ }
123
+ /**
124
+ * GenerateDataKey - 生成数据密钥,返回明文和密文。
125
+ *
126
+ * See also: https://docs.ucloud.cn/api/ukms-api/generate_data_key
127
+ */
128
+ generateDataKey(request) {
129
+ const args = Object.assign({ Action: 'GenerateDataKey' }, (request || {}));
130
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
131
+ }
132
+ /**
133
+ * GenerateDataKeyPair - 创建数据密钥对
134
+ *
135
+ * See also: https://docs.ucloud.cn/api/ukms-api/generate_data_key_pair
136
+ */
137
+ generateDataKeyPair(request) {
138
+ const args = Object.assign({ Action: 'GenerateDataKeyPair' }, (request || {}));
139
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
140
+ }
141
+ /**
142
+ * GenerateDataKeyPairWithoutPlaintext - 创建数据密钥对(无明文返回)
143
+ *
144
+ * See also: https://docs.ucloud.cn/api/ukms-api/generate_data_key_pair_without_plaintext
145
+ */
146
+ generateDataKeyPairWithoutPlaintext(request) {
147
+ const args = Object.assign({ Action: 'GenerateDataKeyPairWithoutPlaintext' }, (request || {}));
148
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
149
+ }
150
+ /**
151
+ * GenerateDataKeyWithoutPlaintext - 创建数据密钥(无明文),仅返回加密后的数据密钥。
152
+ *
153
+ * See also: https://docs.ucloud.cn/api/ukms-api/generate_data_key_without_plaintext
154
+ */
155
+ generateDataKeyWithoutPlaintext(request) {
156
+ const args = Object.assign({ Action: 'GenerateDataKeyWithoutPlaintext' }, (request || {}));
157
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
158
+ }
159
+ /**
160
+ * GenerateMac - 使用HMAC密钥管理服务(KMS)密钥和该密钥支持的MAC算法,为消息生成基于哈希的消息认证码(HMAC)。
161
+ *
162
+ * See also: https://docs.ucloud.cn/api/ukms-api/generate_mac
163
+ */
164
+ generateMac(request) {
165
+ const args = Object.assign({ Action: 'GenerateMac' }, (request || {}));
166
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
167
+ }
168
+ /**
169
+ * GenerateRandom - 生成随机数
170
+ *
171
+ * See also: https://docs.ucloud.cn/api/ukms-api/generate_random
172
+ */
173
+ generateRandom(request) {
174
+ const args = Object.assign({ Action: 'GenerateRandom' }, (request || {}));
175
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
176
+ }
177
+ /**
178
+ * GetKeyRotationStatus - 查询密钥自动轮转状态。
179
+ *
180
+ * See also: https://docs.ucloud.cn/api/ukms-api/get_key_rotation_status
181
+ */
182
+ getKeyRotationStatus(request) {
183
+ const args = Object.assign({ Action: 'GetKeyRotationStatus' }, (request || {}));
184
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
185
+ }
186
+ /**
187
+ * GetPublicKey - 获取非对称密钥的公钥。
188
+ *
189
+ * See also: https://docs.ucloud.cn/api/ukms-api/get_public_key
190
+ */
191
+ getPublicKey(request) {
192
+ const args = Object.assign({ Action: 'GetPublicKey' }, (request || {}));
193
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
194
+ }
195
+ /**
196
+ * ListAliases - 获取 UKMS 实例下的别名列表。
197
+ *
198
+ * See also: https://docs.ucloud.cn/api/ukms-api/list_aliases
199
+ */
200
+ listAliases(request) {
201
+ const args = Object.assign({ Action: 'ListAliases' }, (request || {}));
202
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
203
+ }
204
+ /**
205
+ * ListKeys - 查询用户的主密钥信息列表。
206
+ *
207
+ * See also: https://docs.ucloud.cn/api/ukms-api/list_keys
208
+ */
209
+ listKeys(request) {
210
+ const args = Object.assign({ Action: 'ListKeys' }, (request || {}));
211
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
212
+ }
213
+ /**
214
+ * ListScheduleDeletionKeys - 获取计划删除密钥列表,调用ScheduleKeyDeletion命令后进入此列表, 默认30天后正式删除。正式删除前可调用CancelScheduleKeyDeletion恢复
215
+ *
216
+ * See also: https://docs.ucloud.cn/api/ukms-api/list_schedule_deletion_keys
217
+ */
218
+ listScheduleDeletionKeys(request) {
219
+ const args = Object.assign({ Action: 'ListScheduleDeletionKeys' }, (request || {}));
220
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
221
+ }
222
+ /**
223
+ * RotateKeyOnDemand - 立即触发一次密钥轮转。
224
+ *
225
+ * See also: https://docs.ucloud.cn/api/ukms-api/rotate_key_on_demand
226
+ */
227
+ rotateKeyOnDemand(request) {
228
+ const args = Object.assign({ Action: 'RotateKeyOnDemand' }, (request || {}));
229
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
230
+ }
231
+ /**
232
+ * ScheduleKeyDeletion - 计划删除指定密钥。
233
+ *
234
+ * See also: https://docs.ucloud.cn/api/ukms-api/schedule_key_deletion
235
+ */
236
+ scheduleKeyDeletion(request) {
237
+ const args = Object.assign({ Action: 'ScheduleKeyDeletion' }, (request || {}));
238
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
239
+ }
240
+ /**
241
+ * Sign - 使用非对称密钥对消息或消息摘要签名。
242
+ *
243
+ * See also: https://docs.ucloud.cn/api/ukms-api/sign
244
+ */
245
+ sign(request) {
246
+ const args = Object.assign({ Action: 'Sign' }, (request || {}));
247
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
248
+ }
249
+ /**
250
+ * UpdateAlias - 将别名更新到另一个密钥。
251
+ *
252
+ * See also: https://docs.ucloud.cn/api/ukms-api/update_alias
253
+ */
254
+ updateAlias(request) {
255
+ const args = Object.assign({ Action: 'UpdateAlias' }, (request || {}));
256
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
257
+ }
258
+ /**
259
+ * UpdateKeyDescription - 更新指定密钥的描述信息。
260
+ *
261
+ * See also: https://docs.ucloud.cn/api/ukms-api/update_key_description
262
+ */
263
+ updateKeyDescription(request) {
264
+ const args = Object.assign({ Action: 'UpdateKeyDescription' }, (request || {}));
265
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
266
+ }
267
+ /**
268
+ * Verify - 使用非对称密钥验证签名。
269
+ *
270
+ * See also: https://docs.ucloud.cn/api/ukms-api/verify
271
+ */
272
+ verify(request) {
273
+ const args = Object.assign({ Action: 'Verify' }, (request || {}));
274
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
275
+ }
276
+ /**
277
+ * VerifyMac - 验证签名
278
+ *
279
+ * See also: https://docs.ucloud.cn/api/ukms-api/verify_mac
280
+ */
281
+ verifyMac(request) {
282
+ const args = Object.assign({ Action: 'VerifyMac' }, (request || {}));
283
+ return this.invoke(new request_1.default(args)).then((resp) => resp.toObject());
284
+ }
285
+ }
286
+ exports.default = UKMSClient;
@@ -883,6 +883,24 @@ export interface CreateRuleRequest {
883
883
  */
884
884
  Content?: string;
885
885
  };
886
+ /**
887
+ *
888
+ */
889
+ ProxyBufferingConfig?: {
890
+ /**
891
+ * 关闭缓存
892
+ */
893
+ CloseProxyBuffering?: boolean;
894
+ };
895
+ /**
896
+ *
897
+ */
898
+ BackendConnectionConfig?: {
899
+ /**
900
+ * 开启长连接
901
+ */
902
+ EnablePersistentConnection?: boolean;
903
+ };
886
904
  }[];
887
905
  /**
888
906
  * 当转发的服务节点为空时,规则是否忽略。默认值true
@@ -1376,29 +1394,53 @@ export interface DescribeListenersResponse {
1376
1394
  */
1377
1395
  HealthCheckConfig?: {
1378
1396
  /**
1379
- * 是否开启健康检查功能。暂时不支持关闭。 默认值为:true
1397
+ * 是否开启健康检查功能。 默认值为:true
1380
1398
  */
1381
1399
  Enabled?: boolean;
1382
1400
  /**
1383
- * 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查; 默认值:Port
1401
+ * 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查;GRPC -> GRPC检测; 默认值:Port
1384
1402
  */
1385
1403
  Type?: string;
1386
1404
  /**
1387
- * (应用型专用)HTTP检查域名。 当Type为HTTP时,此字段有意义,代表HTTP检查域名
1405
+ * (应用型专用)HTTP检查域名。 当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查域名
1388
1406
  */
1389
1407
  Domain?: string;
1390
1408
  /**
1391
- * (应用型专用)HTTP检查路径。当Type为HTTP时,此字段有意义,代表HTTP检查路径
1409
+ * (应用型专用)HTTP检查路径。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查路径
1392
1410
  */
1393
1411
  Path?: string;
1394
1412
  /**
1395
- * (应用型专用)HTTP检查方法。当Type为HTTP时,此字段有意义,代表HTTP检查方法
1413
+ * (应用型专用)HTTP检查方法。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查方法
1396
1414
  */
1397
1415
  Method?: string;
1398
1416
  /**
1399
- * (应用型专用)GRPC检查响应码。当Type为GRPC时,此字段有意义,代表GRPC检查响应码
1417
+ * (应用型专用)检查预期状态码。HTTP时为2xx,3xx格式(逗号分隔),GRPC时为数字码(逗号分隔)。
1400
1418
  */
1401
1419
  ResponseCode?: string;
1420
+ /**
1421
+ * (应用型专用)检查协议
1422
+ */
1423
+ HTTPVersion?: string;
1424
+ /**
1425
+ * (应用型专用)端口
1426
+ */
1427
+ Port?: number;
1428
+ /**
1429
+ * (应用型专用)超时时间,秒,必须小于Interval
1430
+ */
1431
+ TimeOut?: number;
1432
+ /**
1433
+ * (应用型专用)间隔时间,秒,必须大于TimeOut
1434
+ */
1435
+ Interval?: number;
1436
+ /**
1437
+ * (应用型专用)判定成功的连续次数
1438
+ */
1439
+ UpCounts?: number;
1440
+ /**
1441
+ * (应用型专用)判定失败的连续次数
1442
+ */
1443
+ DownCounts?: number;
1402
1444
  };
1403
1445
  /**
1404
1446
  * (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩
@@ -1606,6 +1648,24 @@ export interface DescribeListenersResponse {
1606
1648
  * 转发规则动作执行的顺序,取值为1~1000,按值从小到大执行动作。值不能为空,不能重复。Forward、FixedResponse 类型的动作不判断 Order,最后一个执行
1607
1649
  */
1608
1650
  Order?: number;
1651
+ /**
1652
+ * 关闭缓存
1653
+ */
1654
+ ProxyBufferingConfig?: {
1655
+ /**
1656
+ * 关闭缓存
1657
+ */
1658
+ CloseProxyBuffering?: boolean;
1659
+ };
1660
+ /**
1661
+ * 开启长连接
1662
+ */
1663
+ BackendConnectionConfig?: {
1664
+ /**
1665
+ * 是否开启长连接
1666
+ */
1667
+ EnablePersistentConnection?: boolean;
1668
+ };
1609
1669
  }[];
1610
1670
  /**
1611
1671
  * 是否为默认转发规则
@@ -1620,6 +1680,10 @@ export interface DescribeListenersResponse {
1620
1680
  * listener健康状态。限定枚举值:Healthy -> 健康,Unhealthy -> 不健康,PartialHealth -> 部分健康,None -> 无节点状态
1621
1681
  */
1622
1682
  State?: string;
1683
+ /**
1684
+ * 后端协议。应用型限定取值:“HTTP,HTTPS,GRPC",默认值“HTTP”
1685
+ */
1686
+ TargetProtocol?: string;
1623
1687
  }[];
1624
1688
  }
1625
1689
  /**
@@ -1849,29 +1913,53 @@ export interface DescribeLoadBalancersResponse {
1849
1913
  */
1850
1914
  HealthCheckConfig?: {
1851
1915
  /**
1852
- * 是否开启健康检查功能。暂时不支持关闭。 默认值为:true
1916
+ * 是否开启健康检查功能。 默认值为:true
1853
1917
  */
1854
1918
  Enabled?: boolean;
1855
1919
  /**
1856
- * 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查; 默认值:Port
1920
+ * 健康检查方式。应用型限定取值: Port -> 端口检查;HTTP -> HTTP检查;GRPC -> GRPC检测; 默认值:Port
1857
1921
  */
1858
1922
  Type?: string;
1859
1923
  /**
1860
- * (应用型专用)HTTP检查域名。 当Type为HTTP时,此字段有意义,代表HTTP检查域名
1924
+ * (应用型专用)HTTP检查域名。 当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查域名
1861
1925
  */
1862
1926
  Domain?: string;
1863
1927
  /**
1864
- * (应用型专用)HTTP检查路径。当Type为HTTP时,此字段有意义,代表HTTP检查路径
1928
+ * (应用型专用)HTTP检查路径。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查路径
1865
1929
  */
1866
1930
  Path?: string;
1867
1931
  /**
1868
- * (应用型专用)HTTP检查方法。当Type为HTTP时,此字段有意义,代表HTTP检查方法
1932
+ * (应用型专用)HTTP检查方法。当Type为HTTP/GRPC时,此字段有意义,代表HTTP检查方法
1869
1933
  */
1870
1934
  Method?: string;
1871
1935
  /**
1872
- * (应用型专用)GRPC检查响应码。当Type为GRPC时,此字段有意义,代表GRPC检查响应码
1936
+ * (应用型专用)检查预期状态码。HTTP时为2xx,3xx格式(逗号分隔),GRPC时为数字码(逗号分隔)。
1873
1937
  */
1874
1938
  ResponseCode?: string;
1939
+ /**
1940
+ * (应用型专用)检查协议
1941
+ */
1942
+ HTTPVersion?: string;
1943
+ /**
1944
+ * (应用型专用)端口
1945
+ */
1946
+ Port?: number;
1947
+ /**
1948
+ * (应用型专用)超时时间,秒,必须小于Interval
1949
+ */
1950
+ TimeOut?: number;
1951
+ /**
1952
+ * (应用型专用)间隔时间,秒,必须大于TimeOut
1953
+ */
1954
+ Interval?: number;
1955
+ /**
1956
+ * (应用型专用)判定成功的连续次数
1957
+ */
1958
+ UpCounts?: number;
1959
+ /**
1960
+ * (应用型专用)判定失败的连续次数
1961
+ */
1962
+ DownCounts?: number;
1875
1963
  };
1876
1964
  /**
1877
1965
  * (应用型专用)是否开启数据压缩功能。目前只支持使用gzip对特定文件类型进行压缩
@@ -2079,6 +2167,24 @@ export interface DescribeLoadBalancersResponse {
2079
2167
  * 转发规则动作执行的顺序,取值为1~1000,按值从小到大执行动作。值不能为空,不能重复。Forward、FixedResponse 类型的动作不判断 Order,最后一个执行
2080
2168
  */
2081
2169
  Order?: number;
2170
+ /**
2171
+ * 关闭缓存
2172
+ */
2173
+ ProxyBufferingConfig?: {
2174
+ /**
2175
+ * 关闭缓存
2176
+ */
2177
+ CloseProxyBuffering?: boolean;
2178
+ };
2179
+ /**
2180
+ * 开启长连接
2181
+ */
2182
+ BackendConnectionConfig?: {
2183
+ /**
2184
+ * 是否开启长连接
2185
+ */
2186
+ EnablePersistentConnection?: boolean;
2187
+ };
2082
2188
  }[];
2083
2189
  /**
2084
2190
  * 是否为默认转发规则
@@ -2093,6 +2199,10 @@ export interface DescribeLoadBalancersResponse {
2093
2199
  * listener健康状态。限定枚举值:Healthy -> 健康,Unhealthy -> 不健康,PartialHealth -> 部分健康,None -> 无节点状态
2094
2200
  */
2095
2201
  State?: string;
2202
+ /**
2203
+ * 后端协议。应用型限定取值:“HTTP,HTTPS,GRPC",默认值“HTTP”
2204
+ */
2205
+ TargetProtocol?: string;
2096
2206
  }[];
2097
2207
  /**
2098
2208
  * lb状态:Normal-正常;Arrears-欠费停服
@@ -2283,6 +2393,24 @@ export interface DescribeRulesResponse {
2283
2393
  * 转发规则动作执行的顺序,取值为1~1000,按值从小到大执行动作。值不能为空,不能重复。Forward、FixedResponse 类型的动作不判断 Order,最后一个执行
2284
2394
  */
2285
2395
  Order?: number;
2396
+ /**
2397
+ * 关闭缓存
2398
+ */
2399
+ ProxyBufferingConfig?: {
2400
+ /**
2401
+ * 关闭缓存
2402
+ */
2403
+ CloseProxyBuffering?: boolean;
2404
+ };
2405
+ /**
2406
+ * 开启长连接
2407
+ */
2408
+ BackendConnectionConfig?: {
2409
+ /**
2410
+ * 是否开启长连接
2411
+ */
2412
+ EnablePersistentConnection?: boolean;
2413
+ };
2286
2414
  }[];
2287
2415
  /**
2288
2416
  * 是否为默认转发规则
@@ -4161,6 +4289,24 @@ export interface UpdateRuleAttributeRequest {
4161
4289
  */
4162
4290
  Content?: string;
4163
4291
  };
4292
+ /**
4293
+ *
4294
+ */
4295
+ ProxyBufferingConfig?: {
4296
+ /**
4297
+ * 关闭缓存
4298
+ */
4299
+ CloseProxyBuffering?: boolean;
4300
+ };
4301
+ /**
4302
+ *
4303
+ */
4304
+ BackendConnectionConfig?: {
4305
+ /**
4306
+ * 开启长连接
4307
+ */
4308
+ EnablePersistentConnection?: boolean;
4309
+ };
4164
4310
  }[];
4165
4311
  /**
4166
4312
  * 当转发的服务节点为空时,规则是否忽略。默认转发规则不可更改
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ucloud-sdks/ucloud-sdk-js",
3
3
  "description": "ucloud-sdk-js",
4
- "version": "0.2.19",
4
+ "version": "0.2.21",
5
5
  "author": "oas@ucloud.cn",
6
6
  "license": "MIT",
7
7
  "private": false,