tencentcloud-sdk-nodejs 4.0.888 → 4.0.889

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.
@@ -492,11 +492,11 @@ export interface CommandTake {
492
492
  /**
493
493
  * 命令名。
494
494
  */
495
- Cmd: string;
495
+ Cmd?: string;
496
496
  /**
497
- * 耗时时长。
497
+ * 耗时时长。单位:ms。
498
498
  */
499
- Took: number;
499
+ Took?: number;
500
500
  }
501
501
  /**
502
502
  * DescribeInstanceMonitorBigKey返回参数结构体
@@ -3111,11 +3111,15 @@ export interface RedisNodes {
3111
3111
  */
3112
3112
  export interface DescribeInstanceMonitorTopNCmdRequest {
3113
3113
  /**
3114
- * 实例Id
3114
+ * 实例 ID。
3115
3115
  */
3116
3116
  InstanceId: string;
3117
3117
  /**
3118
- * 时间范围:1——实时,2——近30分钟,3——近6小时,4——近24小时
3118
+ * 时间范围。
3119
+ - 1:实时。
3120
+ - 2:近30分钟。
3121
+ - 3:近6小时。
3122
+ - 4:近24小时。
3119
3123
  */
3120
3124
  SpanType: number;
3121
3125
  }
@@ -4175,11 +4179,11 @@ export interface SourceCommand {
4175
4179
  /**
4176
4180
  * 命令名称。
4177
4181
  */
4178
- Cmd: string;
4182
+ Cmd?: string;
4179
4183
  /**
4180
4184
  * 执行次数。
4181
4185
  */
4182
- Count: number;
4186
+ Count?: number;
4183
4187
  }
4184
4188
  /**
4185
4189
  * ModfiyInstancePassword请求参数结构体
@@ -5087,7 +5091,7 @@ export interface AddReplicationInstanceRequest {
5087
5091
  */
5088
5092
  export interface InstanceClusterNode {
5089
5093
  /**
5090
- * 节点名称。
5094
+ * 节点组名称。
5091
5095
  */
5092
5096
  Name?: string;
5093
5097
  /**
@@ -5683,7 +5687,7 @@ export interface OpenSSLResponse {
5683
5687
  /**
5684
5688
  * 任务ID。
5685
5689
  */
5686
- TaskId: number;
5690
+ TaskId?: number;
5687
5691
  /**
5688
5692
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5689
5693
  */
@@ -5749,19 +5753,21 @@ export interface ZoneCapacityConf {
5749
5753
  */
5750
5754
  ZoneId?: string;
5751
5755
  /**
5752
- * 可用区名称
5756
+ * 可用区名称。
5753
5757
  */
5754
5758
  ZoneName?: string;
5755
5759
  /**
5756
- * 可用区是否售罄
5760
+ * 可用区是否售罄。
5757
5761
  */
5758
5762
  IsSaleout?: boolean;
5759
5763
  /**
5760
- * 是否为默认可用区
5764
+ * 是否为默认可用区。
5761
5765
  */
5762
5766
  IsDefault?: boolean;
5763
5767
  /**
5764
- * 网络类型:basenet -- 基础网络;vpcnet -- VPC网络
5768
+ * 网络类型。
5769
+ - basenet:基础网络。
5770
+ - vpcnet -- VPC网络。
5765
5771
  */
5766
5772
  NetWorkType?: Array<string>;
5767
5773
  /**
@@ -7962,7 +7962,7 @@ export interface AliasDomain {
7962
7962
  ModifiedOn: string;
7963
7963
  }
7964
7964
  /**
7965
- * IP黑白名单详细规则
7965
+ * 自定义规则-基础访问管控配置。
7966
7966
  */
7967
7967
  export interface IpTableRule {
7968
7968
  /**
@@ -7974,20 +7974,28 @@ export interface IpTableRule {
7974
7974
  Action: string;
7975
7975
  /**
7976
7976
  * 根据类型匹配,取值有:
7977
- <li>ip:对ip进行匹配;</li>
7978
- <li>area:对ip所属地区匹配。</li>
7977
+ <li>ip:客户端 IP 进行匹配;</li>
7978
+ <li>area:客户端 IP 所属地区匹配;</li>
7979
+ <li>asn:客户端所属的自治系统进行匹配;</li>
7980
+ <li>referer:请求头 Referer 进行匹配;</li>
7981
+ <li>ua:请求头 User-Agent 进行匹配;</li>
7982
+ <li>url:请求 URL 进行匹配。</li>
7979
7983
  */
7980
7984
  MatchFrom: string;
7981
7985
  /**
7982
- * 规则的匹配方式,默认为空代表等于。
7983
- 取值有:
7984
- <li> is_emty:配置为空;</li>
7985
- <li> not_exists:配置为不存在;</li>
7986
- <li> include:包含;</li>
7987
- <li> not_include:不包含;</li>
7988
- <li> equal:等于;</li>
7989
- <li> not_equal:不等于。</li>
7990
- 注意:此字段可能返回 null,表示取不到有效值。
7986
+ * 规则的匹配方式。取值有:
7987
+ <li> match:匹配,适用于 MatchFrom 为 ip;</li>
7988
+ <li> not_match:不匹配,适用于 MatchFrom 为 ip;</li>
7989
+ <li> include_area:地域包含,适用于 MatchFrom 为 area;</li>
7990
+ <li> not_include_area:地域不包含,适用于 MatchFrom 为 area;</li>
7991
+ <li> asn_match:ASN 包含,适用于 MatchFrom 为 asn;</li>
7992
+ <li> asn_not_match:ASN 不包含,适用于 MatchFrom 为 asn;</li>
7993
+ <li> equal:等于,适用于 MatchFrom 为 ua , referer;</li>
7994
+ <li> not_equal:不等于,适用于 MatchFrom 为 ua , referer;</li>
7995
+ <li> include:通配符匹配,适用于 MatchFrom 为 ua , referer , url;</li>
7996
+ <li> not_include:通配符不匹配,适用于 MatchFrom 为 ua , referer;</li>
7997
+ <li> is_emty:配置内容为空,适用于 MatchFrom 为 ua , referer;</li>
7998
+ <li> not_exists:配置内容不存在,适用于 MatchFrom 为 ua , referer。</li>
7991
7999
  */
7992
8000
  Operator?: string;
7993
8001
  /**
@@ -7999,10 +8007,10 @@ export interface IpTableRule {
7999
8007
  */
8000
8008
  UpdateTime?: string;
8001
8009
  /**
8002
- * 规则启用状态,当返回为null时,为启用。取值有:
8010
+ * 规则启用状态。取值有:
8003
8011
  <li> on:启用;</li>
8004
8012
  <li> off:未启用。</li>
8005
- 注意:此字段可能返回 null,表示取不到有效值。
8013
+ 当入参缺省时,按 on 取值。
8006
8014
  */
8007
8015
  Status?: string;
8008
8016
  /**
@@ -8011,7 +8019,10 @@ export interface IpTableRule {
8011
8019
  */
8012
8020
  RuleName?: string;
8013
8021
  /**
8014
- * 匹配内容。当 Operator为is_emty 或not_exists时,此值允许为空。
8022
+ * 匹配内容。支持多值输入。
8023
+ <li>当输入多个匹配值时,请使用英文逗号分隔;</li>
8024
+ <li>当 MatchFrom 为 ua 时,不支持多值输入;</li>
8025
+ <li>当 Operator 为 is_empty 或 not_exists 时,本字段入参值无效。</li>
8015
8026
  */
8016
8027
  MatchContent?: string;
8017
8028
  }
@@ -256,6 +256,14 @@ export interface TextTranslateBatchRequest {
256
256
  * 待翻译的文本列表,批量接口可以以数组方式在一次请求中填写多个待翻译文本。文本统一使用utf-8格式编码,非utf-8格式编码字符会翻译失败,请传入有效文本,html标记等非常规翻译文本可能会翻译失败。单次请求的文本长度总和需要低于6000字符。
257
257
  */
258
258
  SourceTextList: Array<string>;
259
+ /**
260
+ * 需要使用的术语库列表
261
+ */
262
+ TermRepoIDList?: Array<string>;
263
+ /**
264
+ * 需要使用的例句库列表
265
+ */
266
+ SentRepoIDList?: Array<string>;
259
267
  }
260
268
  /**
261
269
  * 文件翻译请求的返回数据
@@ -484,6 +492,14 @@ export interface TextTranslateRequest {
484
492
  * 用来标记不希望被翻译的文本内容,如句子中的特殊符号、人名、地名等;每次请求只支持配置一个不被翻译的单词;仅支持配置人名、地名等名词,不要配置动词或短语,否则会影响翻译结果。
485
493
  */
486
494
  UntranslatedText?: string;
495
+ /**
496
+ * 需要使用的术语库列表
497
+ */
498
+ TermRepoIDList?: Array<string>;
499
+ /**
500
+ * 需要使用的例句库列表
501
+ */
502
+ SentRepoIDList?: Array<string>;
487
503
  }
488
504
  /**
489
505
  * GetFileTranslate请求参数结构体
@@ -425,7 +425,7 @@ export interface ModifyHostModeResponse {
425
425
  * 操作的状态码,如果所有的资源操作成功则返回的是成功的状态码,如果有资源操作失败则需要解析Message的内容来查看哪个资源失败
426
426
  注意:此字段可能返回 null,表示取不到有效值。
427
427
  */
428
- Success: ResponseCode;
428
+ Success?: ResponseCode;
429
429
  /**
430
430
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
431
431
  */
@@ -615,7 +615,7 @@ export interface DeleteAttackWhiteRuleResponse {
615
615
  * 删除失败的规则序号组
616
616
  注意:此字段可能返回 null,表示取不到有效值。
617
617
  */
618
- FailIds: Array<number | bigint>;
618
+ FailIds?: Array<number | bigint>;
619
619
  /**
620
620
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
621
621
  */
@@ -1415,7 +1415,7 @@ export interface DescribeHostResponse {
1415
1415
  /**
1416
1416
  * 域名详情
1417
1417
  */
1418
- Host: HostRecord;
1418
+ Host?: HostRecord;
1419
1419
  /**
1420
1420
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
1421
1421
  */
@@ -2568,12 +2568,12 @@ export interface DescribeHostsResponse {
2568
2568
  /**
2569
2569
  * 防护域名列表的长度
2570
2570
  */
2571
- TotalCount: number;
2571
+ TotalCount?: number;
2572
2572
  /**
2573
2573
  * 防护域名的列表
2574
2574
  注意:此字段可能返回 null,表示取不到有效值。
2575
2575
  */
2576
- HostList: Array<HostRecord>;
2576
+ HostList?: Array<HostRecord>;
2577
2577
  /**
2578
2578
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
2579
2579
  */
@@ -4670,6 +4670,31 @@ export interface ClbObject {
4670
4670
  注意:此字段可能返回 null,表示取不到有效值。
4671
4671
  */
4672
4672
  Region?: string;
4673
+ /**
4674
+ * 代理状态: 0:不开启,1:以XFF的第一个IP地址作为客户端IP,2:以remote_addr作为客户端IP,3:从指定的头部字段获取客户端IP,字段通过IpHeaders字段给出
4675
+ 注意:此字段可能返回 null,表示取不到有效值。
4676
+ */
4677
+ Proxy?: number;
4678
+ /**
4679
+ * 指定获取客户端IP的头部字段列表。IsCdn为3时有效
4680
+ 注意:此字段可能返回 null,表示取不到有效值。
4681
+ */
4682
+ IpHeaders?: Array<string>;
4683
+ /**
4684
+ * bot防护开关
4685
+ 注意:此字段可能返回 null,表示取不到有效值。
4686
+ */
4687
+ BotStatus?: number;
4688
+ /**
4689
+ * api防护开关
4690
+ 注意:此字段可能返回 null,表示取不到有效值。
4691
+ */
4692
+ ApiStatus?: number;
4693
+ /**
4694
+ * 对象接入模式,0表示镜像模式,1表示清洗模式,2表示体检模式,默认为清洗模式
4695
+ 注意:此字段可能返回 null,表示取不到有效值。
4696
+ */
4697
+ ObjectFlowMode?: number;
4673
4698
  }
4674
4699
  /**
4675
4700
  * ModifyUserLevel返回参数结构体
@@ -5092,16 +5117,16 @@ export interface ModifyGenerateDealsResponse {
5092
5117
  * 计费下单响应结构体
5093
5118
  注意:此字段可能返回 null,表示取不到有效值。
5094
5119
  */
5095
- Data: DealData;
5120
+ Data?: DealData;
5096
5121
  /**
5097
5122
  * 1:成功,0:失败
5098
5123
  */
5099
- Status: number;
5124
+ Status?: number;
5100
5125
  /**
5101
5126
  * 返回message
5102
5127
  注意:此字段可能返回 null,表示取不到有效值。
5103
5128
  */
5104
- ReturnMessage: string;
5129
+ ReturnMessage?: string;
5105
5130
  /**
5106
5131
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5107
5132
  */
@@ -5432,7 +5457,7 @@ export interface DescribeUserLevelResponse {
5432
5457
  /**
5433
5458
  * 300:正常 400:严格
5434
5459
  */
5435
- Level: number;
5460
+ Level?: number;
5436
5461
  /**
5437
5462
  * 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
5438
5463
  */
@@ -8547,19 +8572,19 @@ export interface AttackLogInfo {
8547
8572
  /**
8548
8573
  * 攻击日志的详情内容
8549
8574
  */
8550
- Content: string;
8575
+ Content?: string;
8551
8576
  /**
8552
8577
  * CLS返回内容
8553
8578
  */
8554
- FileName: string;
8579
+ FileName?: string;
8555
8580
  /**
8556
8581
  * CLS返回内容
8557
8582
  */
8558
- Source: string;
8583
+ Source?: string;
8559
8584
  /**
8560
8585
  * CLS返回内容
8561
8586
  */
8562
- TimeStamp: string;
8587
+ TimeStamp?: string;
8563
8588
  }
8564
8589
  /**
8565
8590
  * ModifyHostStatus返回参数结构体
@@ -28,6 +28,16 @@ it("aiart.v20221229.SubmitTextToImageProJob", async function () {
28
28
  }
29
29
  })
30
30
 
31
+ it("aiart.v20221229.ReplaceBackground", async function () {
32
+ try {
33
+ const data = await client.ReplaceBackground({})
34
+ expect(data).to.be.ok
35
+ } catch(error) {
36
+ expect(error.requestId).to.be.ok
37
+ expect(error.code).to.be.ok
38
+ }
39
+ })
40
+
31
41
  it("aiart.v20221229.SubmitTrainPortraitModelJob", async function () {
32
42
  try {
33
43
  const data = await client.SubmitTrainPortraitModelJob({})