tencentcloud-sdk-nodejs 4.0.251 → 4.0.255

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 (114) hide show
  1. package/CHANGELOG.md +865 -521
  2. package/package.json +1 -1
  3. package/products.md +33 -33
  4. package/src/common/sdk_version.ts +1 -1
  5. package/src/services/asr/v20190614/asr_client.ts +1 -1
  6. package/src/services/asr/v20190614/asr_models.ts +6 -0
  7. package/src/services/billing/v20180709/billing_models.ts +51 -20
  8. package/src/services/ccc/v20200210/ccc_models.ts +6 -0
  9. package/src/services/cdn/v20180606/cdn_client.ts +5 -4
  10. package/src/services/cdn/v20180606/cdn_models.ts +91 -35
  11. package/src/services/cii/v20210408/cii_client.ts +13 -0
  12. package/src/services/cii/v20210408/cii_models.ts +82 -0
  13. package/src/services/ckafka/v20190819/ckafka_client.ts +20 -7
  14. package/src/services/ckafka/v20190819/ckafka_models.ts +216 -176
  15. package/src/services/clb/v20180317/clb_client.ts +20 -7
  16. package/src/services/clb/v20180317/clb_models.ts +25 -0
  17. package/src/services/cpdp/v20190820/cpdp_models.ts +53 -0
  18. package/src/services/cvm/v20170312/cvm_client.ts +17 -0
  19. package/src/services/cvm/v20170312/cvm_models.ts +30 -0
  20. package/src/services/cwp/v20180228/cwp_models.ts +27 -1
  21. package/src/services/dnspod/v20210323/dnspod_client.ts +82 -69
  22. package/src/services/dnspod/v20210323/dnspod_models.ts +1178 -1133
  23. package/src/services/emr/v20190103/emr_models.ts +62 -8
  24. package/src/services/faceid/v20180301/faceid_client.ts +1 -0
  25. package/src/services/faceid/v20180301/faceid_models.ts +46 -0
  26. package/src/services/ft/v20200304/ft_models.ts +8 -2
  27. package/src/services/iotexplorer/v20190423/iotexplorer_client.ts +26 -1
  28. package/src/services/iotexplorer/v20190423/iotexplorer_models.ts +172 -84
  29. package/src/services/lighthouse/v20200324/lighthouse_models.ts +2 -2
  30. package/src/services/mongodb/v20190725/mongodb_models.ts +5 -0
  31. package/src/services/mrs/v20200910/mrs_models.ts +6 -0
  32. package/src/services/postgres/v20170312/postgres_models.ts +4 -4
  33. package/src/services/redis/v20180412/redis_models.ts +4 -3
  34. package/src/services/rum/v20210622/rum_client.ts +27 -3
  35. package/src/services/rum/v20210622/rum_models.ts +270 -25
  36. package/src/services/scf/v20180416/scf_client.ts +13 -0
  37. package/src/services/scf/v20180416/scf_models.ts +82 -28
  38. package/src/services/ssl/v20191205/ssl_models.ts +1 -1
  39. package/src/services/tat/v20201028/tat_client.ts +16 -1
  40. package/src/services/tat/v20201028/tat_models.ts +31 -4
  41. package/src/services/tcss/v20201101/tcss_models.ts +80 -9
  42. package/src/services/tem/v20210701/tem_client.ts +12 -0
  43. package/src/services/tem/v20210701/tem_models.ts +35 -0
  44. package/src/services/thpc/v20211109/thpc_client.ts +2 -0
  45. package/src/services/thpc/v20211109/thpc_models.ts +40 -0
  46. package/src/services/tke/v20180525/tke_models.ts +6 -0
  47. package/src/services/vod/v20180717/vod_client.ts +5 -3
  48. package/src/services/vod/v20180717/vod_models.ts +244 -30
  49. package/tencentcloud/common/sdk_version.d.ts +1 -1
  50. package/tencentcloud/common/sdk_version.js +1 -1
  51. package/tencentcloud/services/asr/v20190614/asr_client.d.ts +1 -1
  52. package/tencentcloud/services/asr/v20190614/asr_client.js +1 -1
  53. package/tencentcloud/services/asr/v20190614/asr_models.d.ts +5 -0
  54. package/tencentcloud/services/billing/v20180709/billing_models.d.ts +50 -19
  55. package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +5 -0
  56. package/tencentcloud/services/cdn/v20180606/cdn_client.d.ts +1 -1
  57. package/tencentcloud/services/cdn/v20180606/cdn_models.d.ts +79 -31
  58. package/tencentcloud/services/cii/v20210408/cii_client.d.ts +5 -1
  59. package/tencentcloud/services/cii/v20210408/cii_client.js +6 -0
  60. package/tencentcloud/services/cii/v20210408/cii_models.d.ts +70 -0
  61. package/tencentcloud/services/ckafka/v20190819/ckafka_client.d.ts +5 -1
  62. package/tencentcloud/services/ckafka/v20190819/ckafka_client.js +6 -0
  63. package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +186 -151
  64. package/tencentcloud/services/clb/v20180317/clb_client.d.ts +8 -3
  65. package/tencentcloud/services/clb/v20180317/clb_client.js +10 -3
  66. package/tencentcloud/services/clb/v20180317/clb_models.d.ts +22 -0
  67. package/tencentcloud/services/cpdp/v20190820/cpdp_models.d.ts +44 -0
  68. package/tencentcloud/services/cvm/v20170312/cvm_client.d.ts +10 -1
  69. package/tencentcloud/services/cvm/v20170312/cvm_client.js +11 -0
  70. package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +26 -0
  71. package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +22 -1
  72. package/tencentcloud/services/dnspod/v20210323/dnspod_client.d.ts +9 -5
  73. package/tencentcloud/services/dnspod/v20210323/dnspod_client.js +12 -6
  74. package/tencentcloud/services/dnspod/v20210323/dnspod_models.d.ts +1048 -1009
  75. package/tencentcloud/services/emr/v20190103/emr_models.d.ts +54 -8
  76. package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +39 -0
  77. package/tencentcloud/services/ft/v20200304/ft_models.d.ts +7 -2
  78. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.d.ts +9 -1
  79. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_client.js +12 -0
  80. package/tencentcloud/services/iotexplorer/v20190423/iotexplorer_models.d.ts +144 -68
  81. package/tencentcloud/services/lighthouse/v20200324/lighthouse_models.d.ts +2 -2
  82. package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +4 -0
  83. package/tencentcloud/services/mrs/v20200910/mrs_models.d.ts +5 -0
  84. package/tencentcloud/services/postgres/v20170312/postgres_models.d.ts +4 -4
  85. package/tencentcloud/services/redis/v20180412/redis_models.d.ts +3 -2
  86. package/tencentcloud/services/rum/v20210622/rum_client.d.ts +9 -1
  87. package/tencentcloud/services/rum/v20210622/rum_client.js +12 -0
  88. package/tencentcloud/services/rum/v20210622/rum_models.d.ts +225 -25
  89. package/tencentcloud/services/scf/v20180416/scf_client.d.ts +5 -1
  90. package/tencentcloud/services/scf/v20180416/scf_client.js +6 -0
  91. package/tencentcloud/services/scf/v20180416/scf_models.d.ts +74 -27
  92. package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +1 -1
  93. package/tencentcloud/services/tat/v20201028/tat_client.d.ts +8 -1
  94. package/tencentcloud/services/tat/v20201028/tat_client.js +9 -0
  95. package/tencentcloud/services/tat/v20201028/tat_models.d.ts +28 -4
  96. package/tencentcloud/services/tcss/v20201101/tcss_models.d.ts +66 -9
  97. package/tencentcloud/services/tem/v20210701/tem_client.d.ts +5 -1
  98. package/tencentcloud/services/tem/v20210701/tem_client.js +6 -0
  99. package/tencentcloud/services/tem/v20210701/tem_models.d.ts +30 -0
  100. package/tencentcloud/services/thpc/v20211109/thpc_models.d.ts +34 -0
  101. package/tencentcloud/services/tke/v20180525/tke_models.d.ts +5 -0
  102. package/tencentcloud/services/vod/v20180717/vod_client.d.ts +4 -3
  103. package/tencentcloud/services/vod/v20180717/vod_client.js +4 -3
  104. package/tencentcloud/services/vod/v20180717/vod_models.d.ts +176 -0
  105. package/test/cii.v20210408.test.js +10 -0
  106. package/test/ckafka.v20190819.test.js +10 -0
  107. package/test/clb.v20180317.test.js +12 -2
  108. package/test/cvm.v20170312.test.js +10 -0
  109. package/test/dnspod.v20210323.test.js +14 -4
  110. package/test/iotexplorer.v20190423.test.js +20 -0
  111. package/test/rum.v20210622.test.js +20 -0
  112. package/test/scf.v20180416.test.js +10 -0
  113. package/test/tat.v20201028.test.js +10 -0
  114. package/test/tem.v20210701.test.js +10 -0
@@ -157,13 +157,13 @@ export interface ListAliasesResponse {
157
157
  /**
158
158
  * 别名列表
159
159
  */
160
- Aliases?: Array<Alias>
160
+ Aliases: Array<Alias>
161
161
 
162
162
  /**
163
163
  * 别名总数
164
164
  注意:此字段可能返回 null,表示取不到有效值。
165
165
  */
166
- TotalCount?: number
166
+ TotalCount: number
167
167
 
168
168
  /**
169
169
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -423,35 +423,35 @@ export interface GetAliasResponse {
423
423
  /**
424
424
  * 别名指向的主版本
425
425
  */
426
- FunctionVersion?: string
426
+ FunctionVersion: string
427
427
 
428
428
  /**
429
429
  * 别名的名称
430
430
  */
431
- Name?: string
431
+ Name: string
432
432
 
433
433
  /**
434
434
  * 别名的路由信息
435
435
  */
436
- RoutingConfig?: RoutingConfig
436
+ RoutingConfig: RoutingConfig
437
437
 
438
438
  /**
439
439
  * 别名的描述
440
440
  注意:此字段可能返回 null,表示取不到有效值。
441
441
  */
442
- Description?: string
442
+ Description: string
443
443
 
444
444
  /**
445
445
  * 创建时间
446
446
  注意:此字段可能返回 null,表示取不到有效值。
447
447
  */
448
- AddTime?: string
448
+ AddTime: string
449
449
 
450
450
  /**
451
451
  * 更新时间
452
452
  注意:此字段可能返回 null,表示取不到有效值。
453
453
  */
454
- ModTime?: string
454
+ ModTime: string
455
455
 
456
456
  /**
457
457
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -688,7 +688,7 @@ export interface DeleteFunctionRequest {
688
688
  Namespace?: string
689
689
 
690
690
  /**
691
- * 函数版本
691
+ * 函数版本,如果删除版本的话传入版本号,不传入改字段删除函数下的所有版本
692
692
  */
693
693
  Qualifier?: string
694
694
  }
@@ -850,19 +850,19 @@ export interface ListVersionByFunctionResponse {
850
850
  /**
851
851
  * 函数版本。
852
852
  */
853
- FunctionVersion?: Array<string>
853
+ FunctionVersion: Array<string>
854
854
 
855
855
  /**
856
856
  * 函数版本列表。
857
857
  注意:此字段可能返回 null,表示取不到有效值。
858
858
  */
859
- Versions?: Array<FunctionVersion>
859
+ Versions: Array<FunctionVersion>
860
860
 
861
861
  /**
862
862
  * 函数版本总数。
863
863
  注意:此字段可能返回 null,表示取不到有效值。
864
864
  */
865
- TotalCount?: number
865
+ TotalCount: number
866
866
 
867
867
  /**
868
868
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -1166,7 +1166,7 @@ export interface TerminateAsyncEventRequest {
1166
1166
  Namespace?: string
1167
1167
 
1168
1168
  /**
1169
- * 优雅关停
1169
+ * 该参数已下线
1170
1170
  */
1171
1171
  GraceShutdown?: boolean
1172
1172
  }
@@ -1946,6 +1946,16 @@ export interface PutTotalConcurrencyConfigResponse {
1946
1946
  RequestId?: string
1947
1947
  }
1948
1948
 
1949
+ /**
1950
+ * GetAsyncEventStatus请求参数结构体
1951
+ */
1952
+ export interface GetAsyncEventStatusRequest {
1953
+ /**
1954
+ * 异步执行请求 id
1955
+ */
1956
+ InvokeRequestId: string
1957
+ }
1958
+
1949
1959
  /**
1950
1960
  * DeleteAlias返回参数结构体
1951
1961
  */
@@ -1963,42 +1973,42 @@ export interface PublishVersionResponse {
1963
1973
  /**
1964
1974
  * 函数的版本
1965
1975
  */
1966
- FunctionVersion?: string
1976
+ FunctionVersion: string
1967
1977
 
1968
1978
  /**
1969
1979
  * 代码大小
1970
1980
  */
1971
- CodeSize?: number
1981
+ CodeSize: number
1972
1982
 
1973
1983
  /**
1974
1984
  * 最大可用内存
1975
1985
  */
1976
- MemorySize?: number
1986
+ MemorySize: number
1977
1987
 
1978
1988
  /**
1979
1989
  * 函数的描述
1980
1990
  */
1981
- Description?: string
1991
+ Description: string
1982
1992
 
1983
1993
  /**
1984
1994
  * 函数的入口
1985
1995
  */
1986
- Handler?: string
1996
+ Handler: string
1987
1997
 
1988
1998
  /**
1989
1999
  * 函数的超时时间
1990
2000
  */
1991
- Timeout?: number
2001
+ Timeout: number
1992
2002
 
1993
2003
  /**
1994
2004
  * 函数的运行环境
1995
2005
  */
1996
- Runtime?: string
2006
+ Runtime: string
1997
2007
 
1998
2008
  /**
1999
2009
  * 函数的命名空间
2000
2010
  */
2001
- Namespace?: string
2011
+ Namespace: string
2002
2012
 
2003
2013
  /**
2004
2014
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -2350,8 +2360,11 @@ export interface DeleteLayerVersionRequest {
2350
2360
  */
2351
2361
  export interface Filter {
2352
2362
  /**
2353
- * 需要过滤的字段。
2354
- */
2363
+ * 需要过滤的字段。过滤条件数量限制为10。
2364
+ Name可选值:VpcId, SubnetId, ClsTopicId, ClsLogsetId, Role, CfsId, CfsMountInsId, Eip;Values 长度限制为1。
2365
+ Name可选值:Status, Runtime, FunctionType, PublicNetStatus, AsyncRunEnable, TraceEnable;Values 长度限制为20。
2366
+ 当 Name = Runtime 时,CustomImage 表示过滤镜像类型函数。
2367
+ */
2355
2368
  Name: string
2356
2369
 
2357
2370
  /**
@@ -2826,6 +2839,26 @@ export interface GetRequestStatusResponse {
2826
2839
  RequestId?: string
2827
2840
  }
2828
2841
 
2842
+ /**
2843
+ * 异步事件状态
2844
+ */
2845
+ export interface AsyncEventStatus {
2846
+ /**
2847
+ * 异步事件状态,RUNNING 表示运行中, FINISHED 表示调用成功, ABORTED 表示调用终止, FAILED 表示调用失败。
2848
+ */
2849
+ Status: string
2850
+
2851
+ /**
2852
+ * 请求状态码
2853
+ */
2854
+ StatusCode: number
2855
+
2856
+ /**
2857
+ * 异步执行请求 Id
2858
+ */
2859
+ InvokeRequestId: string
2860
+ }
2861
+
2829
2862
  /**
2830
2863
  * PutReservedConcurrencyConfig返回参数结构体
2831
2864
  */
@@ -2958,12 +2991,12 @@ export interface GetFunctionAddressResponse {
2958
2991
  /**
2959
2992
  * 函数的Cos地址
2960
2993
  */
2961
- Url?: string
2994
+ Url: string
2962
2995
 
2963
2996
  /**
2964
2997
  * 函数的SHA256编码
2965
2998
  */
2966
- CodeSha256?: string
2999
+ CodeSha256: string
2967
3000
 
2968
3001
  /**
2969
3002
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -3111,6 +3144,12 @@ export interface FunctionVersion {
3111
3144
  注意:此字段可能返回 null,表示取不到有效值。
3112
3145
  */
3113
3146
  ModTime?: string
3147
+
3148
+ /**
3149
+ * 版本状态
3150
+ 注意:此字段可能返回 null,表示取不到有效值。
3151
+ */
3152
+ Status?: string
3114
3153
  }
3115
3154
 
3116
3155
  /**
@@ -3203,6 +3242,21 @@ export interface ListFunctionsResponse {
3203
3242
  RequestId?: string
3204
3243
  }
3205
3244
 
3245
+ /**
3246
+ * GetAsyncEventStatus返回参数结构体
3247
+ */
3248
+ export interface GetAsyncEventStatusResponse {
3249
+ /**
3250
+ * 异步事件状态
3251
+ */
3252
+ Result: AsyncEventStatus
3253
+
3254
+ /**
3255
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
3256
+ */
3257
+ RequestId?: string
3258
+ }
3259
+
3206
3260
  /**
3207
3261
  * ListTriggers请求参数结构体
3208
3262
  */
@@ -3551,7 +3605,7 @@ export interface ImageConfig {
3551
3605
  RegistryId?: string
3552
3606
 
3553
3607
  /**
3554
- * 应用的ENTRYPOINT
3608
+ * 参数已废弃
3555
3609
  注意:此字段可能返回 null,表示取不到有效值。
3556
3610
  */
3557
3611
  EntryPoint?: string
@@ -3651,12 +3705,12 @@ export interface GetProvisionedConcurrencyConfigResponse {
3651
3705
  /**
3652
3706
  * 该函数剩余可配置的预置并发数。
3653
3707
  */
3654
- UnallocatedConcurrencyNum?: number
3708
+ UnallocatedConcurrencyNum: number
3655
3709
 
3656
3710
  /**
3657
3711
  * 函数已预置的并发配置详情。
3658
3712
  */
3659
- Allocated?: Array<VersionProvisionedConcurrencyInfo>
3713
+ Allocated: Array<VersionProvisionedConcurrencyInfo>
3660
3714
 
3661
3715
  /**
3662
3716
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -22,7 +22,7 @@ export interface ApplyCertificateResponse {
22
22
  /**
23
23
  * 证书 ID。
24
24
  */
25
- CertificateId?: string
25
+ CertificateId: string
26
26
 
27
27
  /**
28
28
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
@@ -38,6 +38,7 @@ import {
38
38
  ModifyCommandResponse,
39
39
  RegionInfo,
40
40
  DescribeInvokersResponse,
41
+ CancelInvocationResponse,
41
42
  DeleteCommandResponse,
42
43
  DisableInvokerResponse,
43
44
  DescribeCommandsResponse,
@@ -55,10 +56,11 @@ import {
55
56
  Command,
56
57
  PreviewReplacedCommandContentRequest,
57
58
  InvocationTask,
59
+ ModifyInvokerResponse,
58
60
  InvokerRecord,
59
61
  DescribeAutomationAgentStatusResponse,
60
62
  CreateInvokerResponse,
61
- ModifyInvokerResponse,
63
+ CancelInvocationRequest,
62
64
  DeleteCommandRequest,
63
65
  DeleteInvokerRequest,
64
66
  InvokeCommandRequest,
@@ -118,6 +120,19 @@ export class Client extends AbstractClient {
118
120
  return this.request("DescribeInvocations", req, cb)
119
121
  }
120
122
 
123
+ /**
124
+ * 取消一台或多台CVM实例执行的命令
125
+
126
+ * 如果命令还未下发到agent,任务状态处于处于PENDING、DELIVERING、DELIVER_DELAYED,取消后任务状态是CANCELLED
127
+ * 如果命令已下发到agent,任务状态处于RUNNING, 取消后任务状态是TERMINATED
128
+ */
129
+ async CancelInvocation(
130
+ req: CancelInvocationRequest,
131
+ cb?: (error: string, rep: CancelInvocationResponse) => void
132
+ ): Promise<CancelInvocationResponse> {
133
+ return this.request("CancelInvocation", req, cb)
134
+ }
135
+
121
136
  /**
122
137
  * 此接口用于查询执行任务详情。
123
138
  */
@@ -655,6 +655,16 @@ export interface DescribeInvokersResponse {
655
655
  RequestId?: string
656
656
  }
657
657
 
658
+ /**
659
+ * CancelInvocation返回参数结构体
660
+ */
661
+ export interface CancelInvocationResponse {
662
+ /**
663
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
664
+ */
665
+ RequestId?: string
666
+ }
667
+
658
668
  /**
659
669
  * DeleteCommand返回参数结构体
660
670
  */
@@ -1211,6 +1221,16 @@ export interface InvocationTask {
1211
1221
  InvocationSource: string
1212
1222
  }
1213
1223
 
1224
+ /**
1225
+ * ModifyInvoker返回参数结构体
1226
+ */
1227
+ export interface ModifyInvokerResponse {
1228
+ /**
1229
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1230
+ */
1231
+ RequestId?: string
1232
+ }
1233
+
1214
1234
  /**
1215
1235
  * 执行器执行记录。
1216
1236
  */
@@ -1277,13 +1297,20 @@ export interface CreateInvokerResponse {
1277
1297
  }
1278
1298
 
1279
1299
  /**
1280
- * ModifyInvoker返回参数结构体
1300
+ * CancelInvocation请求参数结构体
1281
1301
  */
1282
- export interface ModifyInvokerResponse {
1302
+ export interface CancelInvocationRequest {
1283
1303
  /**
1284
- * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1304
+ * 执行活动ID
1285
1305
  */
1286
- RequestId?: string
1306
+ InvocationId: string
1307
+
1308
+ /**
1309
+ * 实例ID列表,上限100。支持实例类型:
1310
+ <li> CVM
1311
+ <li> LIGHTHOUSE
1312
+ */
1313
+ InstanceIds?: Array<string>
1287
1314
  }
1288
1315
 
1289
1316
  /**
@@ -506,7 +506,7 @@ export type DescribeProVersionInfoRequest = null
506
506
  */
507
507
  export interface SetCheckModeResponse {
508
508
  /**
509
- * Succ"表示设置成功,"Failed"表示设置失败
509
+ * "Succ"表示设置成功,"Failed"表示设置失败
510
510
  */
511
511
  SetCheckResult: string
512
512
 
@@ -1608,6 +1608,16 @@ export interface ProcessInfo {
1608
1608
  * 进程名称
1609
1609
  */
1610
1610
  ProcessName: string
1611
+
1612
+ /**
1613
+ * 主机名称
1614
+ */
1615
+ HostName: string
1616
+
1617
+ /**
1618
+ * 外网ip
1619
+ */
1620
+ PublicIp: string
1611
1621
  }
1612
1622
 
1613
1623
  /**
@@ -4132,7 +4142,7 @@ export interface DescribeProVersionInfoResponse {
4132
4142
  EndTime: string
4133
4143
 
4134
4144
  /**
4135
- * 需购买的虚拟机核数
4145
+ * 需购买的机器核数
4136
4146
  */
4137
4147
  CoresCnt: number
4138
4148
 
@@ -4173,7 +4183,7 @@ export type DescribeAssetImageRegistryListRequest = null
4173
4183
  */
4174
4184
  export interface CreateCheckComponentResponse {
4175
4185
  /**
4176
- * InstallSucc"表示安装成功,"InstallFailed"表示安装失败
4186
+ * "InstallSucc"表示安装成功,"InstallFailed"表示安装失败
4177
4187
  */
4178
4188
  InstallResult: string
4179
4189
 
@@ -4819,6 +4829,16 @@ export interface PortInfo {
4819
4829
  * 运行账号
4820
4830
  */
4821
4831
  RunAs: string
4832
+
4833
+ /**
4834
+ * 主机名称
4835
+ */
4836
+ HostName: string
4837
+
4838
+ /**
4839
+ * 外网ip
4840
+ */
4841
+ PublicIp: string
4822
4842
  }
4823
4843
 
4824
4844
  /**
@@ -4866,7 +4886,7 @@ export interface HostInfo {
4866
4886
  HostID: string
4867
4887
 
4868
4888
  /**
4869
- * 主机ip
4889
+ * 主机ip即内网ip
4870
4890
  */
4871
4891
  HostIP: string
4872
4892
 
@@ -4901,9 +4921,29 @@ export interface HostInfo {
4901
4921
  ContainerCnt: number
4902
4922
 
4903
4923
  /**
4904
- * 主机运行状态
4924
+ * agent运行状态
4905
4925
  */
4906
4926
  Status: string
4927
+
4928
+ /**
4929
+ * 是否是Containerd
4930
+ */
4931
+ IsContainerd: boolean
4932
+
4933
+ /**
4934
+ * 主机来源
4935
+ */
4936
+ MachineType: string
4937
+
4938
+ /**
4939
+ * 外网ip
4940
+ */
4941
+ PublicIp: string
4942
+
4943
+ /**
4944
+ * 主机uuid
4945
+ */
4946
+ Uuid: string
4907
4947
  }
4908
4948
 
4909
4949
  /**
@@ -5293,7 +5333,7 @@ export interface DescribeAssetHostDetailResponse {
5293
5333
  ContainerCnt: number
5294
5334
 
5295
5335
  /**
5296
- * k8s ip
5336
+ * k8s IP
5297
5337
  */
5298
5338
  K8sMasterIP: string
5299
5339
 
@@ -5308,10 +5348,25 @@ export interface DescribeAssetHostDetailResponse {
5308
5348
  KubeProxyVersion: string
5309
5349
 
5310
5350
  /**
5311
- * 主机运行状态 offline,online,pause
5351
+ * "UNINSTALL":"未安装","OFFLINE":"离线", "ONLINE":"防护中
5312
5352
  */
5313
5353
  Status: string
5314
5354
 
5355
+ /**
5356
+ * 是否Containerd
5357
+ */
5358
+ IsContainerd: boolean
5359
+
5360
+ /**
5361
+ * 主机来源;"TENCENTCLOUD":"腾讯云服务器","OTHERCLOUD":"非腾讯云服务器"
5362
+ */
5363
+ MachineType: string
5364
+
5365
+ /**
5366
+ * 外网ip
5367
+ */
5368
+ PublicIp: string
5369
+
5315
5370
  /**
5316
5371
  * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
5317
5372
  */
@@ -8914,7 +8969,7 @@ export interface ContainerInfo {
8914
8969
  Cmd: string
8915
8970
 
8916
8971
  /**
8917
- * cpu 使用率 *1000
8972
+ * CPU使用率 *1000
8918
8973
  */
8919
8974
  CPUUsage: number
8920
8975
 
@@ -8957,6 +9012,11 @@ export interface ContainerInfo {
8957
9012
  * 主机名称
8958
9013
  */
8959
9014
  HostName: string
9015
+
9016
+ /**
9017
+ * 外网ip
9018
+ */
9019
+ PublicIp: string
8960
9020
  }
8961
9021
 
8962
9022
  /**
@@ -10725,12 +10785,13 @@ export interface DescribeAssetHostListRequest {
10725
10785
 
10726
10786
  /**
10727
10787
  * 过滤条件。
10728
- <li>Status - String - 是否必填:否 - 主机运行状态筛选,0:"offline",1:"online", 2:"paused"</li>
10788
+ <li>Status - String - 是否必填:否 - agent状态筛选,"ALL":"全部"(或不传该字段),"UNINSTALL":"未安装","OFFLINE":"离线", "ONLINE":"防护中"</li>
10729
10789
  <li>HostName - String - 是否必填:否 - 主机名筛选</li>
10730
10790
  <li>Group- String - 是否必填:否 - 主机群组搜索</li>
10731
10791
  <li>HostIP- string - 是否必填:否 - 主机ip搜索</li>
10732
10792
  <li>HostID- string - 是否必填:否 - 主机id搜索</li>
10733
10793
  <li>DockerVersion- string - 是否必填:否 - docker版本搜索</li>
10794
+ <li>MachineType- string - 是否必填:否 - 主机来源MachineType搜索,"ALL":"全部"(或不传该字段),"TENCENTCLOUD":"腾讯云服务器","OTHERCLOUD":"非腾讯云服务器"</li>
10734
10795
  */
10735
10796
  Filters?: Array<AssetFilters>
10736
10797
 
@@ -11025,6 +11086,16 @@ export interface ServiceInfo {
11025
11086
  * 容器id
11026
11087
  */
11027
11088
  ContainerId: string
11089
+
11090
+ /**
11091
+ * 主机名称
11092
+ */
11093
+ HostName: string
11094
+
11095
+ /**
11096
+ * 外网ip
11097
+ */
11098
+ PublicIp: string
11028
11099
  }
11029
11100
 
11030
11101
  /**
@@ -46,6 +46,8 @@ import {
46
46
  DescribeRunPodPage,
47
47
  IngressTls,
48
48
  DeployServicePodDetail,
49
+ ModifyApplicationReplicasResponse,
50
+ ModifyApplicationReplicasRequest,
49
51
  LogOutputConf,
50
52
  DescribeIngressesResponse,
51
53
  DeleteIngressResponse,
@@ -104,6 +106,16 @@ export class Client extends AbstractClient {
104
106
  return this.request("DeployApplication", req, cb)
105
107
  }
106
108
 
109
+ /**
110
+ * 修改应用实例数量
111
+ */
112
+ async ModifyApplicationReplicas(
113
+ req: ModifyApplicationReplicasRequest,
114
+ cb?: (error: string, rep: ModifyApplicationReplicasResponse) => void
115
+ ): Promise<ModifyApplicationReplicasResponse> {
116
+ return this.request("ModifyApplicationReplicas", req, cb)
117
+ }
118
+
107
119
  /**
108
120
  * 重启应用实例
109
121
  */
@@ -1067,6 +1067,41 @@ export interface DeployServicePodDetail {
1067
1067
  Webshell?: string
1068
1068
  }
1069
1069
 
1070
+ /**
1071
+ * ModifyApplicationReplicas返回参数结构体
1072
+ */
1073
+ export interface ModifyApplicationReplicasResponse {
1074
+ /**
1075
+ * 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
1076
+ */
1077
+ RequestId?: string
1078
+ }
1079
+
1080
+ /**
1081
+ * ModifyApplicationReplicas请求参数结构体
1082
+ */
1083
+ export interface ModifyApplicationReplicasRequest {
1084
+ /**
1085
+ * 服务id
1086
+ */
1087
+ ApplicationId: string
1088
+
1089
+ /**
1090
+ * 环境ID
1091
+ */
1092
+ EnvironmentId: string
1093
+
1094
+ /**
1095
+ * 实例数量
1096
+ */
1097
+ Replicas: number
1098
+
1099
+ /**
1100
+ * 来源渠道
1101
+ */
1102
+ SourceChannel?: number
1103
+ }
1104
+
1070
1105
  /**
1071
1106
  * 日志输出配置
1072
1107
  */
@@ -28,7 +28,9 @@ import {
28
28
  ComputeNode,
29
29
  VirtualPrivateCloud,
30
30
  DeleteClusterResponse,
31
+ StorageOption,
31
32
  InstanceChargePrepaid,
33
+ CFSOption,
32
34
  CreateClusterResponse,
33
35
  DataDisk,
34
36
  } from "./thpc_models"
@@ -179,6 +179,11 @@ false(默认):发送正常请求,通过检查后直接创建实例
179
179
  * 集群显示名称。
180
180
  */
181
181
  ClusterName?: string
182
+
183
+ /**
184
+ * 集群存储选项
185
+ */
186
+ StorageOption?: StorageOption
182
187
  }
183
188
 
184
189
  /**
@@ -281,6 +286,16 @@ export interface DeleteClusterResponse {
281
286
  RequestId?: string
282
287
  }
283
288
 
289
+ /**
290
+ * 描述集群文件系统选项
291
+ */
292
+ export interface StorageOption {
293
+ /**
294
+ * 集群挂载CFS文件系统选项
295
+ */
296
+ CFSOptions: Array<CFSOption>
297
+ }
298
+
284
299
  /**
285
300
  * 描述了实例的计费模式
286
301
  */
@@ -301,6 +316,31 @@ DISABLE_NOTIFY_AND_MANUAL_RENEW:不通知过期不自动续费
301
316
  RenewFlag?: string
302
317
  }
303
318
 
319
+ /**
320
+ * 描述CFS文件系统版本和挂载信息
321
+ */
322
+ export interface CFSOption {
323
+ /**
324
+ * 文件系统本地挂载路径
325
+ */
326
+ LocalPath: string
327
+
328
+ /**
329
+ * 文件系统远程挂载ip及路径
330
+ */
331
+ RemotePath: string
332
+
333
+ /**
334
+ * 文件系统协议类型,默认值NFS 3.0
335
+ */
336
+ Protocol: string
337
+
338
+ /**
339
+ * 文件系统存储类型,默认值SD
340
+ */
341
+ StorageType: string
342
+ }
343
+
304
344
  /**
305
345
  * CreateCluster返回参数结构体
306
346
  */