tencentcloud-sdk-nodejs 4.0.573 → 4.0.575

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.
Files changed (130) hide show
  1. package/CHANGELOG.md +432 -0
  2. package/SERVICE_CHANGELOG.md +607 -49
  3. package/package.json +1 -1
  4. package/products.md +34 -34
  5. package/src/common/sdk_version.ts +1 -1
  6. package/src/services/asr/v20190614/asr_client.ts +1 -1
  7. package/src/services/asr/v20190614/asr_models.ts +13 -12
  8. package/src/services/billing/v20180709/billing_models.ts +4 -4
  9. package/src/services/bma/index.ts +2 -2
  10. package/src/services/captcha/v20190722/captcha_models.ts +17 -6
  11. package/src/services/cbs/v20170312/cbs_client.ts +1 -1
  12. package/src/services/cbs/v20170312/cbs_models.ts +4 -4
  13. package/src/services/cdn/v20180606/cdn_models.ts +5 -5
  14. package/src/services/cfw/v20190904/cfw_client.ts +4 -3
  15. package/src/services/cfw/v20190904/cfw_models.ts +109 -75
  16. package/src/services/cii/index.ts +2 -2
  17. package/src/services/clb/v20180317/clb_models.ts +6 -0
  18. package/src/services/cloudaudit/v20190319/cloudaudit_models.ts +5 -5
  19. package/src/services/cloudstudio/v20210524/cloudstudio_client.ts +116 -104
  20. package/src/services/cloudstudio/v20210524/cloudstudio_models.ts +32 -0
  21. package/src/services/cls/v20201016/cls_models.ts +17 -13
  22. package/src/services/cvm/v20170312/cvm_models.ts +1 -1
  23. package/src/services/cwp/v20180228/cwp_client.ts +119 -29
  24. package/src/services/cwp/v20180228/cwp_models.ts +802 -35
  25. package/src/services/dbbrain/index.ts +2 -2
  26. package/src/services/dc/v20180410/dc_models.ts +16 -5
  27. package/src/services/essbasic/v20210526/essbasic_models.ts +26 -3
  28. package/src/services/iotvideo/index.ts +4 -4
  29. package/src/services/lcic/v20220817/lcic_models.ts +2 -2
  30. package/src/services/mongodb/index.ts +2 -2
  31. package/src/services/mongodb/v20190725/mongodb_client.ts +3 -3
  32. package/src/services/mongodb/v20190725/mongodb_models.ts +24 -18
  33. package/src/services/mps/v20190612/mps_client.ts +12 -2
  34. package/src/services/mps/v20190612/mps_models.ts +341 -54
  35. package/src/services/ocr/v20181119/ocr_models.ts +9 -9
  36. package/src/services/organization/index.ts +2 -2
  37. package/src/services/pts/v20210728/pts_client.ts +27 -14
  38. package/src/services/pts/v20210728/pts_models.ts +276 -176
  39. package/src/services/tbp/index.ts +2 -2
  40. package/src/services/tem/index.ts +2 -2
  41. package/src/services/teo/index.ts +2 -2
  42. package/src/services/teo/v20220901/teo_client.ts +8 -4
  43. package/src/services/teo/v20220901/teo_models.ts +209 -52
  44. package/src/services/thpc/index.ts +4 -4
  45. package/src/services/tione/v20211111/tione_models.ts +52 -7
  46. package/src/services/tke/v20180525/tke_models.ts +25 -7
  47. package/src/services/trro/v20220325/trro_client.ts +158 -83
  48. package/src/services/trro/v20220325/trro_models.ts +380 -12
  49. package/src/services/vm/index.ts +2 -2
  50. package/src/services/vod/v20180717/vod_client.ts +7 -6
  51. package/src/services/vod/v20180717/vod_models.ts +40 -14
  52. package/src/services/waf/v20180125/waf_client.ts +14 -0
  53. package/src/services/waf/v20180125/waf_models.ts +180 -0
  54. package/src/services/yunsou/index.ts +2 -2
  55. package/tencentcloud/common/sdk_version.d.ts +1 -1
  56. package/tencentcloud/common/sdk_version.js +1 -1
  57. package/tencentcloud/services/asr/v20190614/asr_client.d.ts +1 -1
  58. package/tencentcloud/services/asr/v20190614/asr_client.js +1 -1
  59. package/tencentcloud/services/asr/v20190614/asr_models.d.ts +11 -10
  60. package/tencentcloud/services/billing/v20180709/billing_models.d.ts +4 -4
  61. package/tencentcloud/services/bma/index.d.ts +4 -4
  62. package/tencentcloud/services/bma/index.js +2 -2
  63. package/tencentcloud/services/captcha/v20190722/captcha_models.d.ts +15 -6
  64. package/tencentcloud/services/cbs/v20170312/cbs_client.d.ts +1 -1
  65. package/tencentcloud/services/cbs/v20170312/cbs_client.js +1 -1
  66. package/tencentcloud/services/cbs/v20170312/cbs_models.d.ts +4 -4
  67. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +5 -5
  68. package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +1 -1
  69. package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +91 -61
  70. package/tencentcloud/services/cii/index.d.ts +4 -4
  71. package/tencentcloud/services/cii/index.js +2 -2
  72. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +5 -0
  73. package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_models.d.ts +5 -5
  74. package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_client.d.ts +41 -37
  75. package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_client.js +60 -54
  76. package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_models.d.ts +28 -0
  77. package/tencentcloud/services/cls/v20201016/cls_models.d.ts +9 -5
  78. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +1 -1
  79. package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +37 -9
  80. package/tencentcloud/services/cwp/v20180228/cwp_client.js +54 -12
  81. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +674 -32
  82. package/tencentcloud/services/dbbrain/index.d.ts +4 -4
  83. package/tencentcloud/services/dbbrain/index.js +2 -2
  84. package/tencentcloud/services/dc/v20180410/dc_models.d.ts +14 -3
  85. package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +25 -2
  86. package/tencentcloud/services/iotvideo/index.d.ts +6 -6
  87. package/tencentcloud/services/iotvideo/index.js +4 -4
  88. package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +2 -2
  89. package/tencentcloud/services/mongodb/index.d.ts +4 -4
  90. package/tencentcloud/services/mongodb/index.js +2 -2
  91. package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +3 -3
  92. package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +3 -3
  93. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +21 -15
  94. package/tencentcloud/services/mps/v20190612/mps_models.d.ts +291 -44
  95. package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +9 -9
  96. package/tencentcloud/services/organization/index.d.ts +4 -4
  97. package/tencentcloud/services/organization/index.js +2 -2
  98. package/tencentcloud/services/pts/v20210728/pts_client.d.ts +9 -5
  99. package/tencentcloud/services/pts/v20210728/pts_client.js +12 -6
  100. package/tencentcloud/services/pts/v20210728/pts_models.d.ts +235 -148
  101. package/tencentcloud/services/tbp/index.d.ts +4 -4
  102. package/tencentcloud/services/tbp/index.js +2 -2
  103. package/tencentcloud/services/tem/index.d.ts +4 -4
  104. package/tencentcloud/services/tem/index.js +2 -2
  105. package/tencentcloud/services/teo/index.d.ts +4 -4
  106. package/tencentcloud/services/teo/index.js +2 -2
  107. package/tencentcloud/services/teo/v20220901/teo_client.d.ts +1 -1
  108. package/tencentcloud/services/teo/v20220901/teo_models.d.ts +180 -46
  109. package/tencentcloud/services/thpc/index.d.ts +6 -6
  110. package/tencentcloud/services/thpc/index.js +4 -4
  111. package/tencentcloud/services/tione/v20211111/tione_models.d.ts +44 -7
  112. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +22 -7
  113. package/tencentcloud/services/trro/v20220325/trro_client.d.ts +53 -29
  114. package/tencentcloud/services/trro/v20220325/trro_client.js +78 -42
  115. package/tencentcloud/services/trro/v20220325/trro_models.d.ts +321 -10
  116. package/tencentcloud/services/vm/index.d.ts +4 -4
  117. package/tencentcloud/services/vm/index.js +2 -2
  118. package/tencentcloud/services/vod/v20180717/vod_client.d.ts +6 -6
  119. package/tencentcloud/services/vod/v20180717/vod_client.js +6 -6
  120. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +36 -14
  121. package/tencentcloud/services/waf/v20180125/waf_client.d.ts +5 -1
  122. package/tencentcloud/services/waf/v20180125/waf_client.js +6 -0
  123. package/tencentcloud/services/waf/v20180125/waf_models.d.ts +149 -0
  124. package/tencentcloud/services/yunsou/index.d.ts +4 -4
  125. package/tencentcloud/services/yunsou/index.js +2 -2
  126. package/test/cloudstudio.v20210524.test.js +46 -36
  127. package/test/cwp.v20180228.test.js +78 -8
  128. package/test/pts.v20210728.test.js +14 -4
  129. package/test/trro.v20220325.test.js +88 -28
  130. package/test/waf.v20180125.test.js +10 -0
@@ -1,6 +1,6 @@
1
1
  import { AbstractClient } from "../../../common/abstract_client";
2
2
  import { ClientConfig } from "../../../common/interface";
3
- import { CreateAccessExportRequest, DescribeIpHitItemsResponse, DescribeUserCdcClbWafRegionsRequest, DeleteAttackDownloadRecordResponse, DescribeFlowTrendRequest, DescribeWafAutoDenyStatusRequest, DescribeCustomWhiteRuleResponse, DescribeWafAutoDenyRulesResponse, DescribeIpAccessControlResponse, DescribeInstancesResponse, ModifyDomainWhiteRuleRequest, DescribeAccessIndexRequest, DeleteSessionRequest, DescribeWafAutoDenyRulesRequest, SearchAttackLogRequest, AddCustomRuleResponse, DescribeFlowTrendResponse, GetAttackDownloadRecordsRequest, UpsertIpAccessControlRequest, DeleteDownloadRecordRequest, DescribeUserCdcClbWafRegionsResponse, DeleteAccessExportResponse, DescribeAccessExportsRequest, DescribeCustomWhiteRuleRequest, DescribeUserClbWafRegionsResponse, ModifyWafAutoDenyStatusRequest, ModifyAccessPeriodResponse, DescribeVipInfoRequest, DescribeAutoDenyIPResponse, SwitchDomainRulesResponse, SearchAccessLogResponse, SwitchDomainRulesRequest, DescribeAutoDenyIPRequest, DescribeIpAccessControlRequest, ModifyAreaBanStatusRequest, AddSpartaProtectionRequest, PostAttackDownloadTaskRequest, DescribePolicyStatusRequest, DescribeAccessFastAnalysisRequest, DeleteIpAccessControlRequest, DeleteDomainWhiteRulesResponse, DescribeAttackOverviewResponse, ModifyWafAutoDenyStatusResponse, DescribeWafAutoDenyStatusResponse, DeleteDomainWhiteRulesRequest, PostAttackDownloadTaskResponse, DescribeDomainDetailsSaasRequest, ModifyCustomRuleStatusResponse, AddSpartaProtectionResponse, DescribeDomainWhiteRulesRequest, AddDomainWhiteRuleResponse, ModifyCustomRuleStatusRequest, DeleteDownloadRecordResponse, ModifyAccessPeriodRequest, DescribeAttackOverviewRequest, ModifyWafAutoDenyRulesResponse, SearchAttackLogResponse, DescribePolicyStatusResponse, DescribeInstancesRequest, DeleteIpAccessControlResponse, DescribeDomainDetailsSaasResponse, AddCustomRuleRequest, ModifyAreaBanStatusResponse, ModifyDomainWhiteRuleResponse, ModifyWafAutoDenyRulesRequest, DescribeAccessFastAnalysisResponse, DescribeDomainsResponse, ModifyWafThreatenIntelligenceRequest, DescribeIpHitItemsRequest, DescribeVipInfoResponse, DescribeRuleLimitRequest, GetAttackDownloadRecordsResponse, DeleteAccessExportRequest, DescribeUserClbWafRegionsRequest, DescribeDomainWhiteRulesResponse, DeleteAttackDownloadRecordRequest, DescribeWafThreatenIntelligenceResponse, AddDomainWhiteRuleRequest, UpsertIpAccessControlResponse, DeleteSessionResponse, DescribeRuleLimitResponse, DescribeWafThreatenIntelligenceRequest, DescribeAccessIndexResponse, DescribeAccessExportsResponse, CreateAccessExportResponse, SearchAccessLogRequest, DescribeDomainsRequest, ModifyWafThreatenIntelligenceResponse } from "./waf_models";
3
+ import { CreateAccessExportRequest, DescribeIpHitItemsResponse, DescribeUserCdcClbWafRegionsRequest, DeleteAttackDownloadRecordResponse, DescribeFlowTrendRequest, DescribeWafAutoDenyStatusRequest, DescribeCustomWhiteRuleResponse, DescribeWafAutoDenyRulesResponse, DescribeIpAccessControlResponse, DescribeInstancesResponse, ModifyDomainWhiteRuleRequest, DescribeAccessIndexRequest, DeleteSessionRequest, DescribeWafAutoDenyRulesRequest, SearchAttackLogRequest, AddCustomRuleResponse, DescribeFlowTrendResponse, GetAttackDownloadRecordsRequest, UpsertIpAccessControlRequest, DeleteDownloadRecordRequest, DescribeUserCdcClbWafRegionsResponse, DeleteAccessExportResponse, DescribeAccessExportsRequest, DescribeCustomWhiteRuleRequest, DescribeUserClbWafRegionsResponse, ModifyWafAutoDenyStatusRequest, ModifyAccessPeriodResponse, DescribeVipInfoRequest, DescribeAutoDenyIPResponse, SwitchDomainRulesResponse, SearchAccessLogResponse, CreateHostResponse, SwitchDomainRulesRequest, DescribeAutoDenyIPRequest, DescribeIpAccessControlRequest, CreateHostRequest, ModifyAreaBanStatusRequest, AddSpartaProtectionRequest, PostAttackDownloadTaskRequest, DescribePolicyStatusRequest, DescribeAccessFastAnalysisRequest, DeleteIpAccessControlRequest, DeleteDomainWhiteRulesResponse, DescribeAttackOverviewResponse, ModifyWafAutoDenyStatusResponse, DescribeWafAutoDenyStatusResponse, DeleteDomainWhiteRulesRequest, PostAttackDownloadTaskResponse, DescribeDomainDetailsSaasRequest, ModifyCustomRuleStatusResponse, AddSpartaProtectionResponse, DescribeDomainWhiteRulesRequest, AddDomainWhiteRuleResponse, ModifyCustomRuleStatusRequest, DeleteDownloadRecordResponse, ModifyAccessPeriodRequest, DescribeAttackOverviewRequest, ModifyWafAutoDenyRulesResponse, SearchAttackLogResponse, DescribePolicyStatusResponse, DescribeInstancesRequest, DeleteIpAccessControlResponse, DescribeDomainDetailsSaasResponse, AddCustomRuleRequest, ModifyAreaBanStatusResponse, ModifyDomainWhiteRuleResponse, ModifyWafAutoDenyRulesRequest, DescribeAccessFastAnalysisResponse, DescribeDomainsResponse, ModifyWafThreatenIntelligenceRequest, DescribeIpHitItemsRequest, DescribeVipInfoResponse, DescribeRuleLimitRequest, GetAttackDownloadRecordsResponse, DeleteAccessExportRequest, DescribeUserClbWafRegionsRequest, DescribeDomainWhiteRulesResponse, DeleteAttackDownloadRecordRequest, DescribeWafThreatenIntelligenceResponse, AddDomainWhiteRuleRequest, UpsertIpAccessControlResponse, DeleteSessionResponse, DescribeRuleLimitResponse, DescribeWafThreatenIntelligenceRequest, DescribeAccessIndexResponse, DescribeAccessExportsResponse, CreateAccessExportResponse, SearchAccessLogRequest, DescribeDomainsRequest, ModifyWafThreatenIntelligenceResponse } from "./waf_models";
4
4
  /**
5
5
  * waf client
6
6
  * @class
@@ -149,6 +149,10 @@ export declare class Client extends AbstractClient {
149
149
  * 删除访问日志下载记录
150
150
  */
151
151
  DeleteDownloadRecord(req: DeleteDownloadRecordRequest, cb?: (error: string, rep: DeleteDownloadRecordResponse) => void): Promise<DeleteDownloadRecordResponse>;
152
+ /**
153
+ * clb-waf中添加防护的域名
154
+ */
155
+ CreateHost(req: CreateHostRequest, cb?: (error: string, rep: CreateHostResponse) => void): Promise<CreateHostResponse>;
152
156
  /**
153
157
  * 删除CC攻击的session设置
154
158
  */
@@ -239,6 +239,12 @@ class Client extends abstract_client_1.AbstractClient {
239
239
  async DeleteDownloadRecord(req, cb) {
240
240
  return this.request("DeleteDownloadRecord", req, cb);
241
241
  }
242
+ /**
243
+ * clb-waf中添加防护的域名
244
+ */
245
+ async CreateHost(req, cb) {
246
+ return this.request("CreateHost", req, cb);
247
+ }
242
248
  /**
243
249
  * 删除CC攻击的session设置
244
250
  */
@@ -828,6 +828,19 @@ export interface SearchAccessLogResponse {
828
828
  */
829
829
  RequestId?: string;
830
830
  }
831
+ /**
832
+ * CreateHost返回参数结构体
833
+ */
834
+ export interface CreateHostResponse {
835
+ /**
836
+ * 新增防护域名ID
837
+ */
838
+ DomainId: string;
839
+ /**
840
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
841
+ */
842
+ RequestId?: string;
843
+ }
831
844
  /**
832
845
  * ip黑白名单
833
846
  */
@@ -1096,6 +1109,91 @@ export interface DescribeIpAccessControlRequest {
1096
1109
  */
1097
1110
  Ip?: string;
1098
1111
  }
1112
+ /**
1113
+ * clb-waf防护域名
1114
+ */
1115
+ export interface HostRecord {
1116
+ /**
1117
+ * 域名
1118
+ */
1119
+ Domain: string;
1120
+ /**
1121
+ * 域名ID
1122
+ */
1123
+ DomainId: string;
1124
+ /**
1125
+ * 主域名,入参时为空
1126
+ */
1127
+ MainDomain: string;
1128
+ /**
1129
+ * waf模式,同saas waf保持一致
1130
+ */
1131
+ Mode: number;
1132
+ /**
1133
+ * waf和LD的绑定,0:没有绑定,1:绑定
1134
+ */
1135
+ Status: number;
1136
+ /**
1137
+ * 域名状态,0:正常,1:未检测到流量,2:即将过期,3:过期
1138
+ */
1139
+ State: number;
1140
+ /**
1141
+ * 使用的规则,同saas waf保持一致
1142
+ */
1143
+ Engine: number;
1144
+ /**
1145
+ * 是否开启代理,0:不开启,1:开启
1146
+ */
1147
+ IsCdn: number;
1148
+ /**
1149
+ * 绑定的LB列表
1150
+ */
1151
+ LoadBalancerSet: Array<LoadBalancer>;
1152
+ /**
1153
+ * 域名绑定的LB的地域,以,分割多个地域
1154
+ */
1155
+ Region: string;
1156
+ /**
1157
+ * 产品分类,取值为:sparta-waf、clb-waf、cdn-waf
1158
+ */
1159
+ Edition: string;
1160
+ /**
1161
+ * WAF的流量模式,1:清洗模式,0:镜像模式
1162
+ */
1163
+ FlowMode: number;
1164
+ /**
1165
+ * 是否开启访问日志,1:开启,0:关闭
1166
+ */
1167
+ ClsStatus: number;
1168
+ /**
1169
+ * 防护等级,可选值100,200,300
1170
+ 注意:此字段可能返回 null,表示取不到有效值。
1171
+ */
1172
+ Level?: number;
1173
+ /**
1174
+ * 域名需要下发到的cdc集群列表
1175
+ 注意:此字段可能返回 null,表示取不到有效值。
1176
+ */
1177
+ CdcClusters?: Array<string>;
1178
+ /**
1179
+ * 应用型负载均衡类型: clb或者apisix,默认clb
1180
+ 注意:此字段可能返回 null,表示取不到有效值。
1181
+ */
1182
+ AlbType?: string;
1183
+ }
1184
+ /**
1185
+ * CreateHost请求参数结构体
1186
+ */
1187
+ export interface CreateHostRequest {
1188
+ /**
1189
+ * 防护域名配置信息
1190
+ */
1191
+ Host: HostRecord;
1192
+ /**
1193
+ * 实例id
1194
+ */
1195
+ InstanceID?: string;
1196
+ }
1099
1197
  /**
1100
1198
  * ModifyAreaBanStatus请求参数结构体
1101
1199
  */
@@ -2916,3 +3014,54 @@ export interface ModifyWafThreatenIntelligenceResponse {
2916
3014
  */
2917
3015
  RequestId?: string;
2918
3016
  }
3017
+ /**
3018
+ * 负载均衡的监听器
3019
+ */
3020
+ export interface LoadBalancer {
3021
+ /**
3022
+ * 负载均衡LD的ID
3023
+ */
3024
+ LoadBalancerId: string;
3025
+ /**
3026
+ * 负载均衡LD的名称
3027
+ */
3028
+ LoadBalancerName: string;
3029
+ /**
3030
+ * 负载均衡监听器的ID
3031
+ */
3032
+ ListenerId: string;
3033
+ /**
3034
+ * 负载均衡监听器的名称
3035
+ */
3036
+ ListenerName: string;
3037
+ /**
3038
+ * 负载均衡实例的IP
3039
+ */
3040
+ Vip: string;
3041
+ /**
3042
+ * 负载均衡实例的端口
3043
+ */
3044
+ Vport: number;
3045
+ /**
3046
+ * 负载均衡LD的地域
3047
+ */
3048
+ Region: string;
3049
+ /**
3050
+ * 监听器协议,http、https
3051
+ */
3052
+ Protocol: string;
3053
+ /**
3054
+ * 负载均衡监听器所在的zone
3055
+ */
3056
+ Zone: string;
3057
+ /**
3058
+ * 负载均衡的VPCID,公网为-1,内网按实际填写
3059
+ 注意:此字段可能返回 null,表示取不到有效值。
3060
+ */
3061
+ NumericalVpcId?: number;
3062
+ /**
3063
+ * 负载均衡的网络类型
3064
+ 注意:此字段可能返回 null,表示取不到有效值。
3065
+ */
3066
+ LoadBalancerType?: string;
3067
+ }
@@ -1,10 +1,10 @@
1
1
  export declare const yunsou: {
2
- v20180504: {
3
- Client: typeof import("./v20180504/yunsou_client").Client;
4
- Models: typeof import("./v20180504/yunsou_models");
5
- };
6
2
  v20191115: {
7
3
  Client: typeof import("./v20191115/yunsou_client").Client;
8
4
  Models: typeof import("./v20191115/yunsou_models");
9
5
  };
6
+ v20180504: {
7
+ Client: typeof import("./v20180504/yunsou_client").Client;
8
+ Models: typeof import("./v20180504/yunsou_models");
9
+ };
10
10
  };
@@ -1,9 +1,9 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.yunsou = void 0;
4
- const v20180504_1 = require("./v20180504");
5
4
  const v20191115_1 = require("./v20191115");
5
+ const v20180504_1 = require("./v20180504");
6
6
  exports.yunsou = {
7
- v20180504: v20180504_1.v20180504,
8
7
  v20191115: v20191115_1.v20191115,
8
+ v20180504: v20180504_1.v20180504,
9
9
  };
@@ -18,9 +18,9 @@ const client = new tencentcloud.cloudstudio.v20210524.Client({
18
18
  })
19
19
  describe("cloudstudio.v20210524.test.js", function () {
20
20
 
21
- it("cloudstudio.v20210524.DescribeWorkspaceStatus", async function () {
21
+ it("cloudstudio.v20210524.DescribeCustomizeTemplatesById", async function () {
22
22
  try {
23
- const data = await client.DescribeWorkspaceStatus({})
23
+ const data = await client.DescribeCustomizeTemplatesById({})
24
24
  expect(data).to.be.ok
25
25
  } catch(error) {
26
26
  expect(error.requestId).to.be.ok
@@ -28,9 +28,9 @@ it("cloudstudio.v20210524.DescribeWorkspaceStatus", async function () {
28
28
  }
29
29
  })
30
30
 
31
- it("cloudstudio.v20210524.DescribeCustomizeTemplatesById", async function () {
31
+ it("cloudstudio.v20210524.CreateWorkspaceTemporaryToken", async function () {
32
32
  try {
33
- const data = await client.DescribeCustomizeTemplatesById({})
33
+ const data = await client.CreateWorkspaceTemporaryToken({})
34
34
  expect(data).to.be.ok
35
35
  } catch(error) {
36
36
  expect(error.requestId).to.be.ok
@@ -38,9 +38,9 @@ it("cloudstudio.v20210524.DescribeCustomizeTemplatesById", async function () {
38
38
  }
39
39
  })
40
40
 
41
- it("cloudstudio.v20210524.CreateWorkspaceByVersionControl", async function () {
41
+ it("cloudstudio.v20210524.ModifyCustomizeTemplatesPartById", async function () {
42
42
  try {
43
- const data = await client.CreateWorkspaceByVersionControl({})
43
+ const data = await client.ModifyCustomizeTemplatesPartById({})
44
44
  expect(data).to.be.ok
45
45
  } catch(error) {
46
46
  expect(error.requestId).to.be.ok
@@ -48,9 +48,9 @@ it("cloudstudio.v20210524.CreateWorkspaceByVersionControl", async function () {
48
48
  }
49
49
  })
50
50
 
51
- it("cloudstudio.v20210524.CreateWorkspaceByTemplate", async function () {
51
+ it("cloudstudio.v20210524.DescribeWorkspaceIsReady", async function () {
52
52
  try {
53
- const data = await client.CreateWorkspaceByTemplate({})
53
+ const data = await client.DescribeWorkspaceIsReady({})
54
54
  expect(data).to.be.ok
55
55
  } catch(error) {
56
56
  expect(error.requestId).to.be.ok
@@ -58,9 +58,9 @@ it("cloudstudio.v20210524.CreateWorkspaceByTemplate", async function () {
58
58
  }
59
59
  })
60
60
 
61
- it("cloudstudio.v20210524.CreateWorkspaceTemporaryToken", async function () {
61
+ it("cloudstudio.v20210524.RunWorkspace", async function () {
62
62
  try {
63
- const data = await client.CreateWorkspaceTemporaryToken({})
63
+ const data = await client.RunWorkspace({})
64
64
  expect(data).to.be.ok
65
65
  } catch(error) {
66
66
  expect(error.requestId).to.be.ok
@@ -68,9 +68,9 @@ it("cloudstudio.v20210524.CreateWorkspaceTemporaryToken", async function () {
68
68
  }
69
69
  })
70
70
 
71
- it("cloudstudio.v20210524.ModifyCustomizeTemplateVersionControl", async function () {
71
+ it("cloudstudio.v20210524.DescribeCustomizeTemplates", async function () {
72
72
  try {
73
- const data = await client.ModifyCustomizeTemplateVersionControl({})
73
+ const data = await client.DescribeCustomizeTemplates({})
74
74
  expect(data).to.be.ok
75
75
  } catch(error) {
76
76
  expect(error.requestId).to.be.ok
@@ -88,9 +88,9 @@ it("cloudstudio.v20210524.RecoverWorkspace", async function () {
88
88
  }
89
89
  })
90
90
 
91
- it("cloudstudio.v20210524.DescribeWorkspaceStatusList", async function () {
91
+ it("cloudstudio.v20210524.CreateWorkspaceByVersionControl", async function () {
92
92
  try {
93
- const data = await client.DescribeWorkspaceStatusList({})
93
+ const data = await client.CreateWorkspaceByVersionControl({})
94
94
  expect(data).to.be.ok
95
95
  } catch(error) {
96
96
  expect(error.requestId).to.be.ok
@@ -98,9 +98,9 @@ it("cloudstudio.v20210524.DescribeWorkspaceStatusList", async function () {
98
98
  }
99
99
  })
100
100
 
101
- it("cloudstudio.v20210524.RemoveWorkspace", async function () {
101
+ it("cloudstudio.v20210524.ModifyCustomizeTemplateVersionControl", async function () {
102
102
  try {
103
- const data = await client.RemoveWorkspace({})
103
+ const data = await client.ModifyCustomizeTemplateVersionControl({})
104
104
  expect(data).to.be.ok
105
105
  } catch(error) {
106
106
  expect(error.requestId).to.be.ok
@@ -108,9 +108,9 @@ it("cloudstudio.v20210524.RemoveWorkspace", async function () {
108
108
  }
109
109
  })
110
110
 
111
- it("cloudstudio.v20210524.DescribeWorkspaceNameExist", async function () {
111
+ it("cloudstudio.v20210524.CreateWorkspaceByAgent", async function () {
112
112
  try {
113
- const data = await client.DescribeWorkspaceNameExist({})
113
+ const data = await client.CreateWorkspaceByAgent({})
114
114
  expect(data).to.be.ok
115
115
  } catch(error) {
116
116
  expect(error.requestId).to.be.ok
@@ -118,9 +118,9 @@ it("cloudstudio.v20210524.DescribeWorkspaceNameExist", async function () {
118
118
  }
119
119
  })
120
120
 
121
- it("cloudstudio.v20210524.ModifyCustomizeTemplatesFullById", async function () {
121
+ it("cloudstudio.v20210524.RemoveWorkspace", async function () {
122
122
  try {
123
- const data = await client.ModifyCustomizeTemplatesFullById({})
123
+ const data = await client.RemoveWorkspace({})
124
124
  expect(data).to.be.ok
125
125
  } catch(error) {
126
126
  expect(error.requestId).to.be.ok
@@ -128,9 +128,9 @@ it("cloudstudio.v20210524.ModifyCustomizeTemplatesFullById", async function () {
128
128
  }
129
129
  })
130
130
 
131
- it("cloudstudio.v20210524.RunWorkspace", async function () {
131
+ it("cloudstudio.v20210524.DescribeWorkspaceEnvList", async function () {
132
132
  try {
133
- const data = await client.RunWorkspace({})
133
+ const data = await client.DescribeWorkspaceEnvList({})
134
134
  expect(data).to.be.ok
135
135
  } catch(error) {
136
136
  expect(error.requestId).to.be.ok
@@ -148,9 +148,9 @@ it("cloudstudio.v20210524.DeleteCustomizeTemplatesById", async function () {
148
148
  }
149
149
  })
150
150
 
151
- it("cloudstudio.v20210524.ModifyCustomizeTemplatesPartById", async function () {
151
+ it("cloudstudio.v20210524.StopWorkspace", async function () {
152
152
  try {
153
- const data = await client.ModifyCustomizeTemplatesPartById({})
153
+ const data = await client.StopWorkspace({})
154
154
  expect(data).to.be.ok
155
155
  } catch(error) {
156
156
  expect(error.requestId).to.be.ok
@@ -158,9 +158,9 @@ it("cloudstudio.v20210524.ModifyCustomizeTemplatesPartById", async function () {
158
158
  }
159
159
  })
160
160
 
161
- it("cloudstudio.v20210524.StopWorkspace", async function () {
161
+ it("cloudstudio.v20210524.DescribeWorkspaceStatus", async function () {
162
162
  try {
163
- const data = await client.StopWorkspace({})
163
+ const data = await client.DescribeWorkspaceStatus({})
164
164
  expect(data).to.be.ok
165
165
  } catch(error) {
166
166
  expect(error.requestId).to.be.ok
@@ -178,9 +178,9 @@ it("cloudstudio.v20210524.DescribeCustomizeTemplatesPresets", async function ()
178
178
  }
179
179
  })
180
180
 
181
- it("cloudstudio.v20210524.DescribeWorkspaceEnvList", async function () {
181
+ it("cloudstudio.v20210524.CreateCustomizeTemplates", async function () {
182
182
  try {
183
- const data = await client.DescribeWorkspaceEnvList({})
183
+ const data = await client.CreateCustomizeTemplates({})
184
184
  expect(data).to.be.ok
185
185
  } catch(error) {
186
186
  expect(error.requestId).to.be.ok
@@ -188,9 +188,9 @@ it("cloudstudio.v20210524.DescribeWorkspaceEnvList", async function () {
188
188
  }
189
189
  })
190
190
 
191
- it("cloudstudio.v20210524.ModifyWorkspaceAttributes", async function () {
191
+ it("cloudstudio.v20210524.ModifyCustomizeTemplatesFullById", async function () {
192
192
  try {
193
- const data = await client.ModifyWorkspaceAttributes({})
193
+ const data = await client.ModifyCustomizeTemplatesFullById({})
194
194
  expect(data).to.be.ok
195
195
  } catch(error) {
196
196
  expect(error.requestId).to.be.ok
@@ -198,9 +198,9 @@ it("cloudstudio.v20210524.ModifyWorkspaceAttributes", async function () {
198
198
  }
199
199
  })
200
200
 
201
- it("cloudstudio.v20210524.CreateWorkspaceByAgent", async function () {
201
+ it("cloudstudio.v20210524.CreateWorkspaceByTemplate", async function () {
202
202
  try {
203
- const data = await client.CreateWorkspaceByAgent({})
203
+ const data = await client.CreateWorkspaceByTemplate({})
204
204
  expect(data).to.be.ok
205
205
  } catch(error) {
206
206
  expect(error.requestId).to.be.ok
@@ -208,9 +208,9 @@ it("cloudstudio.v20210524.CreateWorkspaceByAgent", async function () {
208
208
  }
209
209
  })
210
210
 
211
- it("cloudstudio.v20210524.CreateCustomizeTemplates", async function () {
211
+ it("cloudstudio.v20210524.DescribeWorkspaceStatusList", async function () {
212
212
  try {
213
- const data = await client.CreateCustomizeTemplates({})
213
+ const data = await client.DescribeWorkspaceStatusList({})
214
214
  expect(data).to.be.ok
215
215
  } catch(error) {
216
216
  expect(error.requestId).to.be.ok
@@ -218,9 +218,19 @@ it("cloudstudio.v20210524.CreateCustomizeTemplates", async function () {
218
218
  }
219
219
  })
220
220
 
221
- it("cloudstudio.v20210524.DescribeCustomizeTemplates", async function () {
221
+ it("cloudstudio.v20210524.DescribeWorkspaceNameExist", async function () {
222
222
  try {
223
- const data = await client.DescribeCustomizeTemplates({})
223
+ const data = await client.DescribeWorkspaceNameExist({})
224
+ expect(data).to.be.ok
225
+ } catch(error) {
226
+ expect(error.requestId).to.be.ok
227
+ expect(error.code).to.be.ok
228
+ }
229
+ })
230
+
231
+ it("cloudstudio.v20210524.ModifyWorkspaceAttributes", async function () {
232
+ try {
233
+ const data = await client.ModifyWorkspaceAttributes({})
224
234
  expect(data).to.be.ok
225
235
  } catch(error) {
226
236
  expect(error.requestId).to.be.ok
@@ -98,6 +98,16 @@ it("cwp.v20180228.DeleteMachineTag", async function () {
98
98
  }
99
99
  })
100
100
 
101
+ it("cwp.v20180228.DescribeVertexDetail", async function () {
102
+ try {
103
+ const data = await client.DescribeVertexDetail({})
104
+ expect(data).to.be.ok
105
+ } catch(error) {
106
+ expect(error.requestId).to.be.ok
107
+ expect(error.code).to.be.ok
108
+ }
109
+ })
110
+
101
111
  it("cwp.v20180228.DescribeAttackLogs", async function () {
102
112
  try {
103
113
  const data = await client.DescribeAttackLogs({})
@@ -218,9 +228,9 @@ it("cwp.v20180228.DescribeScanTaskDetails", async function () {
218
228
  }
219
229
  })
220
230
 
221
- it("cwp.v20180228.DescribeServerRelatedDirInfo", async function () {
231
+ it("cwp.v20180228.DescribeEventByTable", async function () {
222
232
  try {
223
- const data = await client.DescribeServerRelatedDirInfo({})
233
+ const data = await client.DescribeEventByTable({})
224
234
  expect(data).to.be.ok
225
235
  } catch(error) {
226
236
  expect(error.requestId).to.be.ok
@@ -328,9 +338,9 @@ it("cwp.v20180228.DescribeExpertServiceList", async function () {
328
338
  }
329
339
  })
330
340
 
331
- it("cwp.v20180228.DescribeBaselineList", async function () {
341
+ it("cwp.v20180228.DescribeAlarmVertexId", async function () {
332
342
  try {
333
- const data = await client.DescribeBaselineList({})
343
+ const data = await client.DescribeAlarmVertexId({})
334
344
  expect(data).to.be.ok
335
345
  } catch(error) {
336
346
  expect(error.requestId).to.be.ok
@@ -658,6 +668,16 @@ it("cwp.v20180228.CreateSearchLog", async function () {
658
668
  }
659
669
  })
660
670
 
671
+ it("cwp.v20180228.DescribeAlarmIncidentNodes", async function () {
672
+ try {
673
+ const data = await client.DescribeAlarmIncidentNodes({})
674
+ expect(data).to.be.ok
675
+ } catch(error) {
676
+ expect(error.requestId).to.be.ok
677
+ expect(error.code).to.be.ok
678
+ }
679
+ })
680
+
661
681
  it("cwp.v20180228.DescribeEmergencyVulList", async function () {
662
682
  try {
663
683
  const data = await client.DescribeEmergencyVulList({})
@@ -678,6 +698,16 @@ it("cwp.v20180228.StopNoticeBanTips", async function () {
678
698
  }
679
699
  })
680
700
 
701
+ it("cwp.v20180228.DescribeReverseShellEventInfo", async function () {
702
+ try {
703
+ const data = await client.DescribeReverseShellEventInfo({})
704
+ expect(data).to.be.ok
705
+ } catch(error) {
706
+ expect(error.requestId).to.be.ok
707
+ expect(error.code).to.be.ok
708
+ }
709
+ })
710
+
681
711
  it("cwp.v20180228.IgnoreImpactedHosts", async function () {
682
712
  try {
683
713
  const data = await client.IgnoreImpactedHosts({})
@@ -728,6 +758,16 @@ it("cwp.v20180228.ExportIgnoreBaselineRule", async function () {
728
758
  }
729
759
  })
730
760
 
761
+ it("cwp.v20180228.DescribePrivilegeEventInfo", async function () {
762
+ try {
763
+ const data = await client.DescribePrivilegeEventInfo({})
764
+ expect(data).to.be.ok
765
+ } catch(error) {
766
+ expect(error.requestId).to.be.ok
767
+ expect(error.code).to.be.ok
768
+ }
769
+ })
770
+
731
771
  it("cwp.v20180228.DescribeBashEventsInfoNew", async function () {
732
772
  try {
733
773
  const data = await client.DescribeBashEventsInfoNew({})
@@ -1238,9 +1278,9 @@ it("cwp.v20180228.ExportBaselineRuleDetectList", async function () {
1238
1278
  }
1239
1279
  })
1240
1280
 
1241
- it("cwp.v20180228.ExportBruteAttacks", async function () {
1281
+ it("cwp.v20180228.DescribeServerRelatedDirInfo", async function () {
1242
1282
  try {
1243
- const data = await client.ExportBruteAttacks({})
1283
+ const data = await client.DescribeServerRelatedDirInfo({})
1244
1284
  expect(data).to.be.ok
1245
1285
  } catch(error) {
1246
1286
  expect(error.requestId).to.be.ok
@@ -1668,6 +1708,16 @@ it("cwp.v20180228.DescribeAssetWebLocationList", async function () {
1668
1708
  }
1669
1709
  })
1670
1710
 
1711
+ it("cwp.v20180228.DescribeRiskDnsEventInfo", async function () {
1712
+ try {
1713
+ const data = await client.DescribeRiskDnsEventInfo({})
1714
+ expect(data).to.be.ok
1715
+ } catch(error) {
1716
+ expect(error.requestId).to.be.ok
1717
+ expect(error.code).to.be.ok
1718
+ }
1719
+ })
1720
+
1671
1721
  it("cwp.v20180228.DescribeAssetAppProcessList", async function () {
1672
1722
  try {
1673
1723
  const data = await client.DescribeAssetAppProcessList({})
@@ -2048,9 +2098,9 @@ it("cwp.v20180228.CreateProtectServer", async function () {
2048
2098
  }
2049
2099
  })
2050
2100
 
2051
- it("cwp.v20180228.DescribeScanState", async function () {
2101
+ it("cwp.v20180228.DescribeBaselineList", async function () {
2052
2102
  try {
2053
- const data = await client.DescribeScanState({})
2103
+ const data = await client.DescribeBaselineList({})
2054
2104
  expect(data).to.be.ok
2055
2105
  } catch(error) {
2056
2106
  expect(error.requestId).to.be.ok
@@ -2358,6 +2408,16 @@ it("cwp.v20180228.DescribeBaselineFixList", async function () {
2358
2408
  }
2359
2409
  })
2360
2410
 
2411
+ it("cwp.v20180228.DescribeScanState", async function () {
2412
+ try {
2413
+ const data = await client.DescribeScanState({})
2414
+ expect(data).to.be.ok
2415
+ } catch(error) {
2416
+ expect(error.requestId).to.be.ok
2417
+ expect(error.code).to.be.ok
2418
+ }
2419
+ })
2420
+
2361
2421
  it("cwp.v20180228.DescribeStrategyExist", async function () {
2362
2422
  try {
2363
2423
  const data = await client.DescribeStrategyExist({})
@@ -2368,6 +2428,16 @@ it("cwp.v20180228.DescribeStrategyExist", async function () {
2368
2428
  }
2369
2429
  })
2370
2430
 
2431
+ it("cwp.v20180228.ExportBruteAttacks", async function () {
2432
+ try {
2433
+ const data = await client.ExportBruteAttacks({})
2434
+ expect(data).to.be.ok
2435
+ } catch(error) {
2436
+ expect(error.requestId).to.be.ok
2437
+ expect(error.code).to.be.ok
2438
+ }
2439
+ })
2440
+
2371
2441
  it("cwp.v20180228.DescribeWebPageServiceInfo", async function () {
2372
2442
  try {
2373
2443
  const data = await client.DescribeWebPageServiceInfo({})
@@ -128,6 +128,16 @@ it("pts.v20210728.DeleteFiles", async function () {
128
128
  }
129
129
  })
130
130
 
131
+ it("pts.v20210728.DescribeRegions", async function () {
132
+ try {
133
+ const data = await client.DescribeRegions({})
134
+ expect(data).to.be.ok
135
+ } catch(error) {
136
+ expect(error.requestId).to.be.ok
137
+ expect(error.code).to.be.ok
138
+ }
139
+ })
140
+
131
141
  it("pts.v20210728.DescribeCheckSummary", async function () {
132
142
  try {
133
143
  const data = await client.DescribeCheckSummary({})
@@ -288,9 +298,9 @@ it("pts.v20210728.DeleteJobs", async function () {
288
298
  }
289
299
  })
290
300
 
291
- it("pts.v20210728.DescribeNormalLogs", async function () {
301
+ it("pts.v20210728.DescribeErrorSummary", async function () {
292
302
  try {
293
- const data = await client.DescribeNormalLogs({})
303
+ const data = await client.DescribeErrorSummary({})
294
304
  expect(data).to.be.ok
295
305
  } catch(error) {
296
306
  expect(error.requestId).to.be.ok
@@ -298,9 +308,9 @@ it("pts.v20210728.DescribeNormalLogs", async function () {
298
308
  }
299
309
  })
300
310
 
301
- it("pts.v20210728.DescribeRegions", async function () {
311
+ it("pts.v20210728.DescribeNormalLogs", async function () {
302
312
  try {
303
- const data = await client.DescribeRegions({})
313
+ const data = await client.DescribeNormalLogs({})
304
314
  expect(data).to.be.ok
305
315
  } catch(error) {
306
316
  expect(error.requestId).to.be.ok