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.
- package/CHANGELOG.md +432 -0
- package/SERVICE_CHANGELOG.md +607 -49
- package/package.json +1 -1
- package/products.md +34 -34
- package/src/common/sdk_version.ts +1 -1
- package/src/services/asr/v20190614/asr_client.ts +1 -1
- package/src/services/asr/v20190614/asr_models.ts +13 -12
- package/src/services/billing/v20180709/billing_models.ts +4 -4
- package/src/services/bma/index.ts +2 -2
- package/src/services/captcha/v20190722/captcha_models.ts +17 -6
- package/src/services/cbs/v20170312/cbs_client.ts +1 -1
- package/src/services/cbs/v20170312/cbs_models.ts +4 -4
- package/src/services/cdn/v20180606/cdn_models.ts +5 -5
- package/src/services/cfw/v20190904/cfw_client.ts +4 -3
- package/src/services/cfw/v20190904/cfw_models.ts +109 -75
- package/src/services/cii/index.ts +2 -2
- package/src/services/clb/v20180317/clb_models.ts +6 -0
- package/src/services/cloudaudit/v20190319/cloudaudit_models.ts +5 -5
- package/src/services/cloudstudio/v20210524/cloudstudio_client.ts +116 -104
- package/src/services/cloudstudio/v20210524/cloudstudio_models.ts +32 -0
- package/src/services/cls/v20201016/cls_models.ts +17 -13
- package/src/services/cvm/v20170312/cvm_models.ts +1 -1
- package/src/services/cwp/v20180228/cwp_client.ts +119 -29
- package/src/services/cwp/v20180228/cwp_models.ts +802 -35
- package/src/services/dbbrain/index.ts +2 -2
- package/src/services/dc/v20180410/dc_models.ts +16 -5
- package/src/services/essbasic/v20210526/essbasic_models.ts +26 -3
- package/src/services/iotvideo/index.ts +4 -4
- package/src/services/lcic/v20220817/lcic_models.ts +2 -2
- package/src/services/mongodb/index.ts +2 -2
- package/src/services/mongodb/v20190725/mongodb_client.ts +3 -3
- package/src/services/mongodb/v20190725/mongodb_models.ts +24 -18
- package/src/services/mps/v20190612/mps_client.ts +12 -2
- package/src/services/mps/v20190612/mps_models.ts +341 -54
- package/src/services/ocr/v20181119/ocr_models.ts +9 -9
- package/src/services/organization/index.ts +2 -2
- package/src/services/pts/v20210728/pts_client.ts +27 -14
- package/src/services/pts/v20210728/pts_models.ts +276 -176
- package/src/services/tbp/index.ts +2 -2
- package/src/services/tem/index.ts +2 -2
- package/src/services/teo/index.ts +2 -2
- package/src/services/teo/v20220901/teo_client.ts +8 -4
- package/src/services/teo/v20220901/teo_models.ts +209 -52
- package/src/services/thpc/index.ts +4 -4
- package/src/services/tione/v20211111/tione_models.ts +52 -7
- package/src/services/tke/v20180525/tke_models.ts +25 -7
- package/src/services/trro/v20220325/trro_client.ts +158 -83
- package/src/services/trro/v20220325/trro_models.ts +380 -12
- package/src/services/vm/index.ts +2 -2
- package/src/services/vod/v20180717/vod_client.ts +7 -6
- package/src/services/vod/v20180717/vod_models.ts +40 -14
- package/src/services/waf/v20180125/waf_client.ts +14 -0
- package/src/services/waf/v20180125/waf_models.ts +180 -0
- package/src/services/yunsou/index.ts +2 -2
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/asr/v20190614/asr_client.d.ts +1 -1
- package/tencentcloud/services/asr/v20190614/asr_client.js +1 -1
- package/tencentcloud/services/asr/v20190614/asr_models.d.ts +11 -10
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +4 -4
- package/tencentcloud/services/bma/index.d.ts +4 -4
- package/tencentcloud/services/bma/index.js +2 -2
- package/tencentcloud/services/captcha/v20190722/captcha_models.d.ts +15 -6
- package/tencentcloud/services/cbs/v20170312/cbs_client.d.ts +1 -1
- package/tencentcloud/services/cbs/v20170312/cbs_client.js +1 -1
- package/tencentcloud/services/cbs/v20170312/cbs_models.d.ts +4 -4
- package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +5 -5
- package/tencentcloud/services/cfw/v20190904/cfw_client.d.ts +1 -1
- package/tencentcloud/services/cfw/v20190904/cfw_models.d.ts +91 -61
- package/tencentcloud/services/cii/index.d.ts +4 -4
- package/tencentcloud/services/cii/index.js +2 -2
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +5 -0
- package/tencentcloud/services/cloudaudit/v20190319/cloudaudit_models.d.ts +5 -5
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_client.d.ts +41 -37
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_client.js +60 -54
- package/tencentcloud/services/cloudstudio/v20210524/cloudstudio_models.d.ts +28 -0
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +9 -5
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +1 -1
- package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +37 -9
- package/tencentcloud/services/cwp/v20180228/cwp_client.js +54 -12
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +674 -32
- package/tencentcloud/services/dbbrain/index.d.ts +4 -4
- package/tencentcloud/services/dbbrain/index.js +2 -2
- package/tencentcloud/services/dc/v20180410/dc_models.d.ts +14 -3
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +25 -2
- package/tencentcloud/services/iotvideo/index.d.ts +6 -6
- package/tencentcloud/services/iotvideo/index.js +4 -4
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +2 -2
- package/tencentcloud/services/mongodb/index.d.ts +4 -4
- package/tencentcloud/services/mongodb/index.js +2 -2
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +3 -3
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +3 -3
- package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +21 -15
- package/tencentcloud/services/mps/v20190612/mps_models.d.ts +291 -44
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +9 -9
- package/tencentcloud/services/organization/index.d.ts +4 -4
- package/tencentcloud/services/organization/index.js +2 -2
- package/tencentcloud/services/pts/v20210728/pts_client.d.ts +9 -5
- package/tencentcloud/services/pts/v20210728/pts_client.js +12 -6
- package/tencentcloud/services/pts/v20210728/pts_models.d.ts +235 -148
- package/tencentcloud/services/tbp/index.d.ts +4 -4
- package/tencentcloud/services/tbp/index.js +2 -2
- package/tencentcloud/services/tem/index.d.ts +4 -4
- package/tencentcloud/services/tem/index.js +2 -2
- package/tencentcloud/services/teo/index.d.ts +4 -4
- package/tencentcloud/services/teo/index.js +2 -2
- package/tencentcloud/services/teo/v20220901/teo_client.d.ts +1 -1
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +180 -46
- package/tencentcloud/services/thpc/index.d.ts +6 -6
- package/tencentcloud/services/thpc/index.js +4 -4
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +44 -7
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +22 -7
- package/tencentcloud/services/trro/v20220325/trro_client.d.ts +53 -29
- package/tencentcloud/services/trro/v20220325/trro_client.js +78 -42
- package/tencentcloud/services/trro/v20220325/trro_models.d.ts +321 -10
- package/tencentcloud/services/vm/index.d.ts +4 -4
- package/tencentcloud/services/vm/index.js +2 -2
- package/tencentcloud/services/vod/v20180717/vod_client.d.ts +6 -6
- package/tencentcloud/services/vod/v20180717/vod_client.js +6 -6
- package/tencentcloud/services/vod/v20180717/vod_models.d.ts +36 -14
- package/tencentcloud/services/waf/v20180125/waf_client.d.ts +5 -1
- package/tencentcloud/services/waf/v20180125/waf_client.js +6 -0
- package/tencentcloud/services/waf/v20180125/waf_models.d.ts +149 -0
- package/tencentcloud/services/yunsou/index.d.ts +4 -4
- package/tencentcloud/services/yunsou/index.js +2 -2
- package/test/cloudstudio.v20210524.test.js +46 -36
- package/test/cwp.v20180228.test.js +78 -8
- package/test/pts.v20210728.test.js +14 -4
- package/test/trro.v20220325.test.js +88 -28
- package/test/waf.v20180125.test.js +10 -0
|
@@ -617,18 +617,73 @@ export interface VpcZoneData {
|
|
|
617
617
|
}
|
|
618
618
|
|
|
619
619
|
/**
|
|
620
|
-
*
|
|
620
|
+
* 数据库白名单规则数据
|
|
621
621
|
*/
|
|
622
|
-
export interface
|
|
622
|
+
export interface DatabaseWhiteListRuleData {
|
|
623
623
|
/**
|
|
624
|
-
*
|
|
624
|
+
* 访问源
|
|
625
625
|
*/
|
|
626
|
-
|
|
626
|
+
SourceIp: string
|
|
627
627
|
|
|
628
628
|
/**
|
|
629
|
-
*
|
|
629
|
+
* 访问源类型,1 ip;6 实例;100 资源分组
|
|
630
630
|
*/
|
|
631
|
-
|
|
631
|
+
SourceType: number
|
|
632
|
+
|
|
633
|
+
/**
|
|
634
|
+
* 访问目的
|
|
635
|
+
*/
|
|
636
|
+
TargetIp: string
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* 访问目的类型,1 ip;6 实例;100 资源分组
|
|
640
|
+
*/
|
|
641
|
+
TargetType: number
|
|
642
|
+
|
|
643
|
+
/**
|
|
644
|
+
* 规则描述
|
|
645
|
+
*/
|
|
646
|
+
Detail: string
|
|
647
|
+
|
|
648
|
+
/**
|
|
649
|
+
* 是否地域规则,0不是 1是
|
|
650
|
+
*/
|
|
651
|
+
IsRegionRule: number
|
|
652
|
+
|
|
653
|
+
/**
|
|
654
|
+
* 是否云厂商规则,0不是 1 时
|
|
655
|
+
*/
|
|
656
|
+
IsCloudRule: number
|
|
657
|
+
|
|
658
|
+
/**
|
|
659
|
+
* 是否启用,0 不启用,1启用
|
|
660
|
+
*/
|
|
661
|
+
Enable: number
|
|
662
|
+
|
|
663
|
+
/**
|
|
664
|
+
* 地域码1
|
|
665
|
+
*/
|
|
666
|
+
FirstLevelRegionCode?: number
|
|
667
|
+
|
|
668
|
+
/**
|
|
669
|
+
* 地域码2
|
|
670
|
+
*/
|
|
671
|
+
SecondLevelRegionCode?: number
|
|
672
|
+
|
|
673
|
+
/**
|
|
674
|
+
* 地域名称1
|
|
675
|
+
*/
|
|
676
|
+
FirstLevelRegionName?: string
|
|
677
|
+
|
|
678
|
+
/**
|
|
679
|
+
* 地域名称2
|
|
680
|
+
*/
|
|
681
|
+
SecondLevelRegionName?: string
|
|
682
|
+
|
|
683
|
+
/**
|
|
684
|
+
* 云厂商码
|
|
685
|
+
*/
|
|
686
|
+
CloudCode?: string
|
|
632
687
|
}
|
|
633
688
|
|
|
634
689
|
/**
|
|
@@ -681,8 +736,13 @@ export interface DescribeCfwEipsRequest {
|
|
|
681
736
|
*/
|
|
682
737
|
export interface DescribeTLogInfoResponse {
|
|
683
738
|
/**
|
|
684
|
-
|
|
685
|
-
|
|
739
|
+
* "NetworkNum":网络扫描探测
|
|
740
|
+
"HandleNum": 待处理事件
|
|
741
|
+
"BanNum":
|
|
742
|
+
"VulNum": 漏洞利用
|
|
743
|
+
"OutNum": 失陷主机
|
|
744
|
+
"BruteForceNum": 0
|
|
745
|
+
*/
|
|
686
746
|
Data: TLogInfo
|
|
687
747
|
|
|
688
748
|
/**
|
|
@@ -862,6 +922,21 @@ export interface NatFwInstance {
|
|
|
862
922
|
NatIp: string
|
|
863
923
|
}
|
|
864
924
|
|
|
925
|
+
/**
|
|
926
|
+
* CreateSecurityGroupRules返回参数结构体
|
|
927
|
+
*/
|
|
928
|
+
export interface CreateSecurityGroupRulesResponse {
|
|
929
|
+
/**
|
|
930
|
+
* 状态值,0:添加成功,非0:添加失败
|
|
931
|
+
*/
|
|
932
|
+
Status: number
|
|
933
|
+
|
|
934
|
+
/**
|
|
935
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
936
|
+
*/
|
|
937
|
+
RequestId?: string
|
|
938
|
+
}
|
|
939
|
+
|
|
865
940
|
/**
|
|
866
941
|
* ExpandCfwVertical请求参数结构体
|
|
867
942
|
*/
|
|
@@ -2215,73 +2290,26 @@ export interface RemoveAcRuleRequest {
|
|
|
2215
2290
|
}
|
|
2216
2291
|
|
|
2217
2292
|
/**
|
|
2218
|
-
*
|
|
2293
|
+
* 规则关联的beta任务
|
|
2219
2294
|
*/
|
|
2220
|
-
export interface
|
|
2221
|
-
/**
|
|
2222
|
-
* 访问源
|
|
2223
|
-
*/
|
|
2224
|
-
SourceIp: string
|
|
2225
|
-
|
|
2226
|
-
/**
|
|
2227
|
-
* 访问源类型,1 ip;6 实例;100 资源分组
|
|
2228
|
-
*/
|
|
2229
|
-
SourceType: number
|
|
2230
|
-
|
|
2231
|
-
/**
|
|
2232
|
-
* 访问目的
|
|
2233
|
-
*/
|
|
2234
|
-
TargetIp: string
|
|
2235
|
-
|
|
2236
|
-
/**
|
|
2237
|
-
* 访问目的类型,1 ip;6 实例;100 资源分组
|
|
2238
|
-
*/
|
|
2239
|
-
TargetType: number
|
|
2240
|
-
|
|
2241
|
-
/**
|
|
2242
|
-
* 规则描述
|
|
2243
|
-
*/
|
|
2244
|
-
Detail: string
|
|
2245
|
-
|
|
2246
|
-
/**
|
|
2247
|
-
* 是否地域规则,0不是 1是
|
|
2248
|
-
*/
|
|
2249
|
-
IsRegionRule: number
|
|
2250
|
-
|
|
2251
|
-
/**
|
|
2252
|
-
* 是否云厂商规则,0不是 1 时
|
|
2253
|
-
*/
|
|
2254
|
-
IsCloudRule: number
|
|
2255
|
-
|
|
2256
|
-
/**
|
|
2257
|
-
* 是否启用,0 不启用,1启用
|
|
2258
|
-
*/
|
|
2259
|
-
Enable: number
|
|
2260
|
-
|
|
2261
|
-
/**
|
|
2262
|
-
* 地域码1
|
|
2263
|
-
*/
|
|
2264
|
-
FirstLevelRegionCode?: number
|
|
2265
|
-
|
|
2266
|
-
/**
|
|
2267
|
-
* 地域码2
|
|
2268
|
-
*/
|
|
2269
|
-
SecondLevelRegionCode?: number
|
|
2270
|
-
|
|
2295
|
+
export interface BetaInfoByACL {
|
|
2271
2296
|
/**
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2297
|
+
* 任务id
|
|
2298
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2299
|
+
*/
|
|
2300
|
+
TaskId?: number
|
|
2275
2301
|
|
|
2276
2302
|
/**
|
|
2277
|
-
|
|
2278
|
-
|
|
2279
|
-
|
|
2303
|
+
* 任务名称
|
|
2304
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2305
|
+
*/
|
|
2306
|
+
TaskName?: string
|
|
2280
2307
|
|
|
2281
2308
|
/**
|
|
2282
|
-
|
|
2283
|
-
|
|
2284
|
-
|
|
2309
|
+
* 上次执行时间
|
|
2310
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2311
|
+
*/
|
|
2312
|
+
LastTime?: string
|
|
2285
2313
|
}
|
|
2286
2314
|
|
|
2287
2315
|
/**
|
|
@@ -4104,21 +4132,27 @@ export interface DescAcItem {
|
|
|
4104
4132
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4105
4133
|
*/
|
|
4106
4134
|
Status?: number
|
|
4135
|
+
|
|
4136
|
+
/**
|
|
4137
|
+
* 关联任务详情
|
|
4138
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4139
|
+
*/
|
|
4140
|
+
BetaList?: Array<BetaInfoByACL>
|
|
4107
4141
|
}
|
|
4108
4142
|
|
|
4109
4143
|
/**
|
|
4110
|
-
*
|
|
4144
|
+
* CreateChooseVpcs请求参数结构体
|
|
4111
4145
|
*/
|
|
4112
|
-
export interface
|
|
4146
|
+
export interface CreateChooseVpcsRequest {
|
|
4113
4147
|
/**
|
|
4114
|
-
*
|
|
4148
|
+
* vpc列表
|
|
4115
4149
|
*/
|
|
4116
|
-
|
|
4150
|
+
VpcList: Array<string>
|
|
4117
4151
|
|
|
4118
4152
|
/**
|
|
4119
|
-
*
|
|
4153
|
+
* zone列表
|
|
4120
4154
|
*/
|
|
4121
|
-
|
|
4155
|
+
AllZoneList: Array<VpcZoneData>
|
|
4122
4156
|
}
|
|
4123
4157
|
|
|
4124
4158
|
/**
|
|
@@ -157,24 +157,24 @@ export interface DescribeEventsResponse {
|
|
|
157
157
|
/**
|
|
158
158
|
* 日志集合是否结束。true表示结束,无需进行翻页。
|
|
159
159
|
*/
|
|
160
|
-
ListOver
|
|
160
|
+
ListOver?: boolean
|
|
161
161
|
|
|
162
162
|
/**
|
|
163
163
|
* 查看更多日志的凭证
|
|
164
164
|
*/
|
|
165
|
-
NextToken
|
|
165
|
+
NextToken?: number
|
|
166
166
|
|
|
167
167
|
/**
|
|
168
168
|
* 日志集合
|
|
169
169
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
170
170
|
*/
|
|
171
|
-
Events
|
|
171
|
+
Events?: Array<Event>
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
174
|
* 此字段已经废弃。翻页请使用ListOver配合NextToken,在ListOver为false进行下一页数据读取。
|
|
175
175
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
176
176
|
*/
|
|
177
|
-
TotalCount
|
|
177
|
+
TotalCount?: number
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
180
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
@@ -678,7 +678,7 @@ export interface DescribeEventsRequest {
|
|
|
678
678
|
MaxResults?: number
|
|
679
679
|
|
|
680
680
|
/**
|
|
681
|
-
* 检索条件(目前支持 RequestId:请求 ID、EventName:事件名称、ActionType:操作类型(Write:写;Read:读)、PrincipalId:子账号、ResourceType:资源类型、ResourceName:资源名称、AccessKeyId:密钥 ID、SensitiveAction:是否敏感操作、ApiErrorCode:API 错误码、CamErrorCode:CAM 错误码、Tags:标签(AttributeValue格式:[{"key":"*","value":"*"}]
|
|
681
|
+
* 检索条件(目前支持 RequestId:请求 ID、EventName:事件名称、ActionType:操作类型(Write:写;Read:读)、PrincipalId:子账号、ResourceType:资源类型、ResourceName:资源名称、AccessKeyId:密钥 ID、SensitiveAction:是否敏感操作、ApiErrorCode:API 错误码、CamErrorCode:CAM 错误码、Tags:标签(AttributeValue格式:[{"key":"*","value":"*"}])备注:检索的各个条件间是与的关系,EventName传多个值内部是或的关系)
|
|
682
682
|
*/
|
|
683
683
|
LookupAttributes?: Array<LookupAttribute>
|
|
684
684
|
|
|
@@ -21,6 +21,7 @@ import {
|
|
|
21
21
|
UserDefinedTemplatePatchedParams,
|
|
22
22
|
WorkspaceInfoDTO,
|
|
23
23
|
RecoverWorkspaceResponse,
|
|
24
|
+
DescribeWorkspaceIsReadyRequest,
|
|
24
25
|
DescribeWorkspaceStatusRequest,
|
|
25
26
|
CreateCustomizeTemplatesRequest,
|
|
26
27
|
RecoverWorkspaceRequest,
|
|
@@ -66,6 +67,7 @@ import {
|
|
|
66
67
|
DescribeCustomizeTemplatesResponse,
|
|
67
68
|
CreateWorkspaceByVersionControlResponse,
|
|
68
69
|
ModifyCustomizeTemplatesPartByIdRequest,
|
|
70
|
+
DescribeWorkspaceIsReadyResponse,
|
|
69
71
|
WorkspaceTokenDTO,
|
|
70
72
|
UserDefinedTemplateParams,
|
|
71
73
|
DeleteCustomizeTemplatesByIdResponse,
|
|
@@ -87,16 +89,6 @@ export class Client extends AbstractClient {
|
|
|
87
89
|
super("cloudstudio.tencentcloudapi.com", "2021-05-24", clientConfig)
|
|
88
90
|
}
|
|
89
91
|
|
|
90
|
-
/**
|
|
91
|
-
* 获取工作空间元信息
|
|
92
|
-
*/
|
|
93
|
-
async DescribeWorkspaceStatus(
|
|
94
|
-
req: DescribeWorkspaceStatusRequest,
|
|
95
|
-
cb?: (error: string, rep: DescribeWorkspaceStatusResponse) => void
|
|
96
|
-
): Promise<DescribeWorkspaceStatusResponse> {
|
|
97
|
-
return this.request("DescribeWorkspaceStatus", req, cb)
|
|
98
|
-
}
|
|
99
|
-
|
|
100
92
|
/**
|
|
101
93
|
* 获取特定模板信息
|
|
102
94
|
*/
|
|
@@ -108,43 +100,53 @@ export class Client extends AbstractClient {
|
|
|
108
100
|
}
|
|
109
101
|
|
|
110
102
|
/**
|
|
111
|
-
*
|
|
103
|
+
* 为工作空间创建临时访问凭证,重复调用会创建新的 Token,旧的 Token 将会自动失效
|
|
112
104
|
*/
|
|
113
|
-
async
|
|
114
|
-
req:
|
|
115
|
-
cb?: (error: string, rep:
|
|
116
|
-
): Promise<
|
|
117
|
-
return this.request("
|
|
105
|
+
async CreateWorkspaceTemporaryToken(
|
|
106
|
+
req: CreateWorkspaceTemporaryTokenRequest,
|
|
107
|
+
cb?: (error: string, rep: CreateWorkspaceTemporaryTokenResponse) => void
|
|
108
|
+
): Promise<CreateWorkspaceTemporaryTokenResponse> {
|
|
109
|
+
return this.request("CreateWorkspaceTemporaryToken", req, cb)
|
|
118
110
|
}
|
|
119
111
|
|
|
120
112
|
/**
|
|
121
|
-
*
|
|
113
|
+
* 全量修改自定义模板,忽略空
|
|
122
114
|
*/
|
|
123
|
-
async
|
|
124
|
-
req:
|
|
125
|
-
cb?: (error: string, rep:
|
|
126
|
-
): Promise<
|
|
127
|
-
return this.request("
|
|
115
|
+
async ModifyCustomizeTemplatesPartById(
|
|
116
|
+
req: ModifyCustomizeTemplatesPartByIdRequest,
|
|
117
|
+
cb?: (error: string, rep: ModifyCustomizeTemplatesPartByIdResponse) => void
|
|
118
|
+
): Promise<ModifyCustomizeTemplatesPartByIdResponse> {
|
|
119
|
+
return this.request("ModifyCustomizeTemplatesPartById", req, cb)
|
|
128
120
|
}
|
|
129
121
|
|
|
130
122
|
/**
|
|
131
|
-
*
|
|
123
|
+
* 获取工作空间是否已经启动就绪
|
|
132
124
|
*/
|
|
133
|
-
async
|
|
134
|
-
req:
|
|
135
|
-
cb?: (error: string, rep:
|
|
136
|
-
): Promise<
|
|
137
|
-
return this.request("
|
|
125
|
+
async DescribeWorkspaceIsReady(
|
|
126
|
+
req: DescribeWorkspaceIsReadyRequest,
|
|
127
|
+
cb?: (error: string, rep: DescribeWorkspaceIsReadyResponse) => void
|
|
128
|
+
): Promise<DescribeWorkspaceIsReadyResponse> {
|
|
129
|
+
return this.request("DescribeWorkspaceIsReady", req, cb)
|
|
138
130
|
}
|
|
139
131
|
|
|
140
132
|
/**
|
|
141
|
-
*
|
|
133
|
+
* 运行空间
|
|
142
134
|
*/
|
|
143
|
-
async
|
|
144
|
-
req:
|
|
145
|
-
cb?: (error: string, rep:
|
|
146
|
-
): Promise<
|
|
147
|
-
return this.request("
|
|
135
|
+
async RunWorkspace(
|
|
136
|
+
req: RunWorkspaceRequest,
|
|
137
|
+
cb?: (error: string, rep: RunWorkspaceResponse) => void
|
|
138
|
+
): Promise<RunWorkspaceResponse> {
|
|
139
|
+
return this.request("RunWorkspace", req, cb)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* 获取所有模板列表
|
|
144
|
+
*/
|
|
145
|
+
async DescribeCustomizeTemplates(
|
|
146
|
+
req: DescribeCustomizeTemplatesRequest,
|
|
147
|
+
cb?: (error: string, rep: DescribeCustomizeTemplatesResponse) => void
|
|
148
|
+
): Promise<DescribeCustomizeTemplatesResponse> {
|
|
149
|
+
return this.request("DescribeCustomizeTemplates", req, cb)
|
|
148
150
|
}
|
|
149
151
|
|
|
150
152
|
/**
|
|
@@ -159,53 +161,53 @@ export class Client extends AbstractClient {
|
|
|
159
161
|
}
|
|
160
162
|
|
|
161
163
|
/**
|
|
162
|
-
*
|
|
164
|
+
* 根据模板创建工作空间
|
|
163
165
|
*/
|
|
164
|
-
async
|
|
165
|
-
req:
|
|
166
|
-
cb?: (error: string, rep:
|
|
167
|
-
): Promise<
|
|
168
|
-
return this.request("
|
|
166
|
+
async CreateWorkspaceByVersionControl(
|
|
167
|
+
req: CreateWorkspaceByVersionControlRequest,
|
|
168
|
+
cb?: (error: string, rep: CreateWorkspaceByVersionControlResponse) => void
|
|
169
|
+
): Promise<CreateWorkspaceByVersionControlResponse> {
|
|
170
|
+
return this.request("CreateWorkspaceByVersionControl", req, cb)
|
|
169
171
|
}
|
|
170
172
|
|
|
171
173
|
/**
|
|
172
|
-
*
|
|
174
|
+
* 修改模板默认代码仓库
|
|
173
175
|
*/
|
|
174
|
-
async
|
|
175
|
-
req:
|
|
176
|
-
cb?: (error: string, rep:
|
|
177
|
-
): Promise<
|
|
178
|
-
return this.request("
|
|
176
|
+
async ModifyCustomizeTemplateVersionControl(
|
|
177
|
+
req: ModifyCustomizeTemplateVersionControlRequest,
|
|
178
|
+
cb?: (error: string, rep: ModifyCustomizeTemplateVersionControlResponse) => void
|
|
179
|
+
): Promise<ModifyCustomizeTemplateVersionControlResponse> {
|
|
180
|
+
return this.request("ModifyCustomizeTemplateVersionControl", req, cb)
|
|
179
181
|
}
|
|
180
182
|
|
|
181
183
|
/**
|
|
182
|
-
*
|
|
184
|
+
* 云服务器方式创建工作空间
|
|
183
185
|
*/
|
|
184
|
-
async
|
|
185
|
-
req:
|
|
186
|
-
cb?: (error: string, rep:
|
|
187
|
-
): Promise<
|
|
188
|
-
return this.request("
|
|
186
|
+
async CreateWorkspaceByAgent(
|
|
187
|
+
req: CreateWorkspaceByAgentRequest,
|
|
188
|
+
cb?: (error: string, rep: CreateWorkspaceByAgentResponse) => void
|
|
189
|
+
): Promise<CreateWorkspaceByAgentResponse> {
|
|
190
|
+
return this.request("CreateWorkspaceByAgent", req, cb)
|
|
189
191
|
}
|
|
190
192
|
|
|
191
193
|
/**
|
|
192
|
-
*
|
|
194
|
+
* 删除工作空间
|
|
193
195
|
*/
|
|
194
|
-
async
|
|
195
|
-
req:
|
|
196
|
-
cb?: (error: string, rep:
|
|
197
|
-
): Promise<
|
|
198
|
-
return this.request("
|
|
196
|
+
async RemoveWorkspace(
|
|
197
|
+
req: RemoveWorkspaceRequest,
|
|
198
|
+
cb?: (error: string, rep: RemoveWorkspaceResponse) => void
|
|
199
|
+
): Promise<RemoveWorkspaceResponse> {
|
|
200
|
+
return this.request("RemoveWorkspace", req, cb)
|
|
199
201
|
}
|
|
200
202
|
|
|
201
203
|
/**
|
|
202
|
-
*
|
|
204
|
+
* 环境列表接口返回信息
|
|
203
205
|
*/
|
|
204
|
-
async
|
|
205
|
-
req:
|
|
206
|
-
cb?: (error: string, rep:
|
|
207
|
-
): Promise<
|
|
208
|
-
return this.request("
|
|
206
|
+
async DescribeWorkspaceEnvList(
|
|
207
|
+
req: DescribeWorkspaceEnvListRequest,
|
|
208
|
+
cb?: (error: string, rep: DescribeWorkspaceEnvListResponse) => void
|
|
209
|
+
): Promise<DescribeWorkspaceEnvListResponse> {
|
|
210
|
+
return this.request("DescribeWorkspaceEnvList", req, cb)
|
|
209
211
|
}
|
|
210
212
|
|
|
211
213
|
/**
|
|
@@ -218,16 +220,6 @@ export class Client extends AbstractClient {
|
|
|
218
220
|
return this.request("DeleteCustomizeTemplatesById", req, cb)
|
|
219
221
|
}
|
|
220
222
|
|
|
221
|
-
/**
|
|
222
|
-
* 全量修改自定义模板,忽略空
|
|
223
|
-
*/
|
|
224
|
-
async ModifyCustomizeTemplatesPartById(
|
|
225
|
-
req: ModifyCustomizeTemplatesPartByIdRequest,
|
|
226
|
-
cb?: (error: string, rep: ModifyCustomizeTemplatesPartByIdResponse) => void
|
|
227
|
-
): Promise<ModifyCustomizeTemplatesPartByIdResponse> {
|
|
228
|
-
return this.request("ModifyCustomizeTemplatesPartById", req, cb)
|
|
229
|
-
}
|
|
230
|
-
|
|
231
223
|
/**
|
|
232
224
|
* 停止运行空间
|
|
233
225
|
*/
|
|
@@ -238,6 +230,16 @@ export class Client extends AbstractClient {
|
|
|
238
230
|
return this.request("StopWorkspace", req, cb)
|
|
239
231
|
}
|
|
240
232
|
|
|
233
|
+
/**
|
|
234
|
+
* 获取工作空间元信息
|
|
235
|
+
*/
|
|
236
|
+
async DescribeWorkspaceStatus(
|
|
237
|
+
req: DescribeWorkspaceStatusRequest,
|
|
238
|
+
cb?: (error: string, rep: DescribeWorkspaceStatusResponse) => void
|
|
239
|
+
): Promise<DescribeWorkspaceStatusResponse> {
|
|
240
|
+
return this.request("DescribeWorkspaceStatus", req, cb)
|
|
241
|
+
}
|
|
242
|
+
|
|
241
243
|
/**
|
|
242
244
|
* 获取创建模板的预置参数
|
|
243
245
|
*/
|
|
@@ -249,52 +251,62 @@ export class Client extends AbstractClient {
|
|
|
249
251
|
}
|
|
250
252
|
|
|
251
253
|
/**
|
|
252
|
-
*
|
|
254
|
+
* 添加自定义模板
|
|
253
255
|
*/
|
|
254
|
-
async
|
|
255
|
-
req:
|
|
256
|
-
cb?: (error: string, rep:
|
|
257
|
-
): Promise<
|
|
258
|
-
return this.request("
|
|
256
|
+
async CreateCustomizeTemplates(
|
|
257
|
+
req: CreateCustomizeTemplatesRequest,
|
|
258
|
+
cb?: (error: string, rep: CreateCustomizeTemplatesResponse) => void
|
|
259
|
+
): Promise<CreateCustomizeTemplatesResponse> {
|
|
260
|
+
return this.request("CreateCustomizeTemplates", req, cb)
|
|
259
261
|
}
|
|
260
262
|
|
|
261
263
|
/**
|
|
262
|
-
*
|
|
264
|
+
* 全量修改自定义模板,不忽略空
|
|
263
265
|
*/
|
|
264
|
-
async
|
|
265
|
-
req:
|
|
266
|
-
cb?: (error: string, rep:
|
|
267
|
-
): Promise<
|
|
268
|
-
return this.request("
|
|
266
|
+
async ModifyCustomizeTemplatesFullById(
|
|
267
|
+
req: ModifyCustomizeTemplatesFullByIdRequest,
|
|
268
|
+
cb?: (error: string, rep: ModifyCustomizeTemplatesFullByIdResponse) => void
|
|
269
|
+
): Promise<ModifyCustomizeTemplatesFullByIdResponse> {
|
|
270
|
+
return this.request("ModifyCustomizeTemplatesFullById", req, cb)
|
|
269
271
|
}
|
|
270
272
|
|
|
271
273
|
/**
|
|
272
|
-
*
|
|
274
|
+
* 快速开始, 基于模板创建工作空间
|
|
273
275
|
*/
|
|
274
|
-
async
|
|
275
|
-
req:
|
|
276
|
-
cb?: (error: string, rep:
|
|
277
|
-
): Promise<
|
|
278
|
-
return this.request("
|
|
276
|
+
async CreateWorkspaceByTemplate(
|
|
277
|
+
req: CreateWorkspaceByTemplateRequest,
|
|
278
|
+
cb?: (error: string, rep: CreateWorkspaceByTemplateResponse) => void
|
|
279
|
+
): Promise<CreateWorkspaceByTemplateResponse> {
|
|
280
|
+
return this.request("CreateWorkspaceByTemplate", req, cb)
|
|
279
281
|
}
|
|
280
282
|
|
|
281
283
|
/**
|
|
282
|
-
*
|
|
284
|
+
* 获取用户工作空间列表
|
|
283
285
|
*/
|
|
284
|
-
async
|
|
285
|
-
req:
|
|
286
|
-
cb?: (error: string, rep:
|
|
287
|
-
): Promise<
|
|
288
|
-
return this.request("
|
|
286
|
+
async DescribeWorkspaceStatusList(
|
|
287
|
+
req: DescribeWorkspaceStatusListRequest,
|
|
288
|
+
cb?: (error: string, rep: DescribeWorkspaceStatusListResponse) => void
|
|
289
|
+
): Promise<DescribeWorkspaceStatusListResponse> {
|
|
290
|
+
return this.request("DescribeWorkspaceStatusList", req, cb)
|
|
289
291
|
}
|
|
290
292
|
|
|
291
293
|
/**
|
|
292
|
-
*
|
|
294
|
+
* 检查工作空间是否存在
|
|
293
295
|
*/
|
|
294
|
-
async
|
|
295
|
-
req:
|
|
296
|
-
cb?: (error: string, rep:
|
|
297
|
-
): Promise<
|
|
298
|
-
return this.request("
|
|
296
|
+
async DescribeWorkspaceNameExist(
|
|
297
|
+
req: DescribeWorkspaceNameExistRequest,
|
|
298
|
+
cb?: (error: string, rep: DescribeWorkspaceNameExistResponse) => void
|
|
299
|
+
): Promise<DescribeWorkspaceNameExistResponse> {
|
|
300
|
+
return this.request("DescribeWorkspaceNameExist", req, cb)
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/**
|
|
304
|
+
* 修改工作空间的名称和描述
|
|
305
|
+
*/
|
|
306
|
+
async ModifyWorkspaceAttributes(
|
|
307
|
+
req: ModifyWorkspaceAttributesRequest,
|
|
308
|
+
cb?: (error: string, rep: ModifyWorkspaceAttributesResponse) => void
|
|
309
|
+
): Promise<ModifyWorkspaceAttributesResponse> {
|
|
310
|
+
return this.request("ModifyWorkspaceAttributes", req, cb)
|
|
299
311
|
}
|
|
300
312
|
}
|
|
@@ -80,6 +80,16 @@ export interface RecoverWorkspaceResponse {
|
|
|
80
80
|
RequestId?: string
|
|
81
81
|
}
|
|
82
82
|
|
|
83
|
+
/**
|
|
84
|
+
* DescribeWorkspaceIsReady请求参数结构体
|
|
85
|
+
*/
|
|
86
|
+
export interface DescribeWorkspaceIsReadyRequest {
|
|
87
|
+
/**
|
|
88
|
+
* 工作空间 spaceKey
|
|
89
|
+
*/
|
|
90
|
+
SpaceKey: string
|
|
91
|
+
}
|
|
92
|
+
|
|
83
93
|
/**
|
|
84
94
|
* DescribeWorkspaceStatus请求参数结构体
|
|
85
95
|
*/
|
|
@@ -1020,6 +1030,12 @@ export interface DescribeCustomizeTemplatesByIdResponse {
|
|
|
1020
1030
|
* DescribeWorkspaceNameExist返回参数结构体
|
|
1021
1031
|
*/
|
|
1022
1032
|
export interface DescribeWorkspaceNameExistResponse {
|
|
1033
|
+
/**
|
|
1034
|
+
* 工作空间信息
|
|
1035
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1036
|
+
*/
|
|
1037
|
+
Data?: WorkspaceInfoDTO
|
|
1038
|
+
|
|
1023
1039
|
/**
|
|
1024
1040
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1025
1041
|
*/
|
|
@@ -1224,6 +1240,22 @@ export interface ModifyCustomizeTemplatesPartByIdRequest {
|
|
|
1224
1240
|
UserDefinedTemplatePatchedParams: UserDefinedTemplatePatchedParams
|
|
1225
1241
|
}
|
|
1226
1242
|
|
|
1243
|
+
/**
|
|
1244
|
+
* DescribeWorkspaceIsReady返回参数结构体
|
|
1245
|
+
*/
|
|
1246
|
+
export interface DescribeWorkspaceIsReadyResponse {
|
|
1247
|
+
/**
|
|
1248
|
+
* 工作空间是否就绪
|
|
1249
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
1250
|
+
*/
|
|
1251
|
+
Data?: boolean
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
1255
|
+
*/
|
|
1256
|
+
RequestId?: string
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1227
1259
|
/**
|
|
1228
1260
|
* 创建临时工作空间凭证 DTO
|
|
1229
1261
|
*/
|