tencentcloud-sdk-nodejs 4.0.956 → 4.0.957
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 +199 -0
- package/SERVICE_CHANGELOG.md +309 -37
- package/package.json +1 -1
- package/products.md +18 -17
- package/src/common/sdk_version.ts +1 -1
- package/src/services/batch/v20170312/batch_models.ts +8 -1
- package/src/services/ccc/v20200210/ccc_models.ts +94 -1
- package/src/services/cls/v20201016/cls_client.ts +66 -15
- package/src/services/cls/v20201016/cls_models.ts +605 -359
- package/src/services/cynosdb/v20190107/cynosdb_models.ts +5 -0
- package/src/services/dc/v20180410/dc_client.ts +121 -107
- package/src/services/dc/v20180410/dc_models.ts +181 -35
- package/src/services/emr/v20190103/emr_models.ts +1 -93
- package/src/services/ess/v20201111/ess_models.ts +4 -5
- package/src/services/essbasic/v20210526/essbasic_models.ts +2 -3
- package/src/services/faceid/v20180301/faceid_models.ts +19 -0
- package/src/services/gwlb/index.ts +5 -0
- package/src/services/gwlb/v20240906/gwlb_client.ts +267 -0
- package/src/services/gwlb/v20240906/gwlb_models.ts +954 -0
- package/src/services/gwlb/v20240906/index.ts +6 -0
- package/src/services/index.ts +1 -0
- package/src/services/oceanus/v20190422/oceanus_models.ts +4 -4
- package/src/services/privatedns/v20201028/privatedns_client.ts +18 -6
- package/src/services/privatedns/v20201028/privatedns_models.ts +48 -0
- package/src/services/teo/v20220901/teo_models.ts +8 -5
- package/src/services/tke/v20180525/tke_models.ts +2 -2
- package/src/services/vclm/v20240523/vclm_models.ts +4 -0
- package/src/services/vtc/v20240223/vtc_models.ts +4 -0
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/batch/v20170312/batch_models.d.ts +8 -1
- package/tencentcloud/services/ccc/v20200210/ccc_models.d.ts +94 -1
- package/tencentcloud/services/cls/v20201016/cls_client.d.ts +19 -3
- package/tencentcloud/services/cls/v20201016/cls_client.js +27 -3
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +591 -356
- package/tencentcloud/services/cynosdb/v20190107/cynosdb_models.d.ts +5 -0
- package/tencentcloud/services/dc/v20180410/dc_client.d.ts +44 -40
- package/tencentcloud/services/dc/v20180410/dc_client.js +63 -57
- package/tencentcloud/services/dc/v20180410/dc_models.d.ts +177 -35
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +1 -93
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +4 -5
- package/tencentcloud/services/essbasic/v20210526/essbasic_models.d.ts +2 -3
- package/tencentcloud/services/faceid/v20180301/faceid_models.d.ts +19 -0
- package/tencentcloud/services/gwlb/index.d.ts +6 -0
- package/tencentcloud/services/gwlb/index.js +7 -0
- package/tencentcloud/services/gwlb/v20240906/gwlb_client.d.ts +90 -0
- package/tencentcloud/services/gwlb/v20240906/gwlb_client.js +147 -0
- package/tencentcloud/services/gwlb/v20240906/gwlb_models.d.ts +890 -0
- package/tencentcloud/services/gwlb/v20240906/gwlb_models.js +18 -0
- package/tencentcloud/services/gwlb/v20240906/index.d.ts +6 -0
- package/tencentcloud/services/gwlb/v20240906/index.js +9 -0
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/oceanus/v20190422/oceanus_models.d.ts +4 -4
- package/tencentcloud/services/privatedns/v20201028/privatedns_client.d.ts +7 -3
- package/tencentcloud/services/privatedns/v20201028/privatedns_client.js +9 -3
- package/tencentcloud/services/privatedns/v20201028/privatedns_models.d.ts +46 -0
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +8 -5
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +2 -2
- package/tencentcloud/services/vclm/v20240523/vclm_models.d.ts +4 -0
- package/tencentcloud/services/vtc/v20240223/vtc_models.d.ts +4 -0
- package/test/cls.v20201016.test.js +42 -2
- package/test/dc.v20180410.test.js +48 -38
- package/test/gwlb.v20240906.test.js +201 -0
- package/test/privatedns.v20201028.test.js +12 -2
|
@@ -2475,99 +2475,7 @@ export interface DescribeResourceScheduleDiffDetailResponse {
|
|
|
2475
2475
|
*/
|
|
2476
2476
|
export interface DescribeYarnQueueResponse {
|
|
2477
2477
|
/**
|
|
2478
|
-
* 队列信息。是一个对象转成的json字符串,对应的golang
|
|
2479
|
-
|
|
2480
|
-
```
|
|
2481
|
-
Name string `json:"name"` //队列名称
|
|
2482
|
-
```
|
|
2483
|
-
- `Name`:字段名
|
|
2484
|
-
- `string`:字段类型
|
|
2485
|
-
- `json:"name"`:表示在序列化和反序列化`json`时,对应的`json key`,下面以`json key`来指代
|
|
2486
|
-
- `//`:后面的注释内容对应页面上看到的名称
|
|
2487
|
-
|
|
2488
|
-
字段类型以`*`开头的表示取值可能为json规范下的null,不同的语言需要使用能表达null的类型来接收,比如java的包装类型;字段类型以`[]`开头的表示是数组类型;`json key`在调用`ModifyYarnQueueV2 `接口也会使用。
|
|
2489
|
-
|
|
2490
|
-
- 公平调度器
|
|
2491
|
-
|
|
2492
|
-
```
|
|
2493
|
-
type QueueWithConfigSetForFairScheduler struct {
|
|
2494
|
-
Name string `json:"name"` //队列名称
|
|
2495
|
-
MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
|
|
2496
|
-
ParentId string `json:"parentId"` // 父队列Id
|
|
2497
|
-
Type *string `json:"type"` // 队列归属。parent或空,当确定某个队列是父队列,且没有子队列时,才可以设置,通常用来支持放置策略nestedUserQueue
|
|
2498
|
-
AclSubmitApps *AclForYarnQueue `json:"aclSubmitApps"` // 提交访问控制
|
|
2499
|
-
AclAdministerApps *AclForYarnQueue `json:"aclAdministerApps"` // 管理访问控制
|
|
2500
|
-
MinSharePreemptionTimeout *int `json:"minSharePreemptionTimeout"` // 最小共享优先权超时时间
|
|
2501
|
-
FairSharePreemptionTimeout *int `json:"fairSharePreemptionTimeout"` // 公平份额抢占超时时间
|
|
2502
|
-
FairSharePreemptionThreshold *float32 `json:"fairSharePreemptionThreshold"` // 公平份额抢占阈值。取值 (0,1]
|
|
2503
|
-
AllowPreemptionFrom *bool `json:"allowPreemptionFrom"` // 抢占模式
|
|
2504
|
-
SchedulingPolicy *string `json:"schedulingPolicy"` // 调度策略,取值有drf、fair、fifo
|
|
2505
|
-
IsDefault *bool `json:"isDefault"` // 是否是root.default队列
|
|
2506
|
-
IsRoot *bool `json:"isRoot"` // 是否是root队列
|
|
2507
|
-
ConfigSets []ConfigSetForFairScheduler `json:"configSets"` // 配置集设置
|
|
2508
|
-
Children []QueueWithConfigSetForFairScheduler `json:"queues"` // 子队列信息。递归
|
|
2509
|
-
}
|
|
2510
|
-
|
|
2511
|
-
type AclForYarnQueue struct {
|
|
2512
|
-
User *string `json:"user"` //用户名
|
|
2513
|
-
Group *string `json:"group"`//组名
|
|
2514
|
-
}
|
|
2515
|
-
|
|
2516
|
-
type ConfigSetForFairScheduler struct {
|
|
2517
|
-
Name string `json:"name"` // 配置集名称
|
|
2518
|
-
MinResources *YarnResource `json:"minResources"` // 最小资源量
|
|
2519
|
-
MaxResources *YarnResource `json:"maxResources"` // 最大资源量
|
|
2520
|
-
MaxChildResources *YarnResource `json:"maxChildResources"` // 能够分配给为未声明子队列的最大资源量
|
|
2521
|
-
MaxRunningApps *int `json:"maxRunningApps"` // 最高可同时处于运行的App数量
|
|
2522
|
-
Weight *float32 `json:"weight"` // 权重
|
|
2523
|
-
MaxAMShare *float32 `json:"maxAMShare"` // App Master最大份额
|
|
2524
|
-
}
|
|
2525
|
-
|
|
2526
|
-
type YarnResource struct {
|
|
2527
|
-
Vcores *int `json:"vcores"`
|
|
2528
|
-
Memory *int `json:"memory"`
|
|
2529
|
-
Type *string `json:"type"` // 当值为`percent`时,表示使用的百分比,否则就是使用的绝对数值
|
|
2530
|
-
}
|
|
2531
|
-
```
|
|
2532
|
-
|
|
2533
|
-
- 容量调度器
|
|
2534
|
-
|
|
2535
|
-
```
|
|
2536
|
-
type QueueForCapacitySchedulerV3 struct {
|
|
2537
|
-
Name string `json:"name"` // 队列名称
|
|
2538
|
-
MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用
|
|
2539
|
-
ParentId string `json:"parentId"` // 父队列Id
|
|
2540
|
-
Configs []ConfigForCapacityV3 `json:"configs"` //配置集设置
|
|
2541
|
-
State *string `json:"state"` // 资源池状态
|
|
2542
|
-
DefaultNodeLabelExpression *string `json:"default-node-label-expression"` // 默认标签表达式
|
|
2543
|
-
AclSubmitApps *AclForYarnQueue `json:"acl_submit_applications"` // 提交访问控制
|
|
2544
|
-
AclAdminQueue *AclForYarnQueue `json:"acl_administer_queue"` //管理访问控制
|
|
2545
|
-
MaxAllocationMB *int32 `json:"maximum-allocation-mb"` // 分配Container最大内存数量
|
|
2546
|
-
MaxAllocationVcores *int32 `json:"maximum-allocation-vcores"` // Container最大vCore数量
|
|
2547
|
-
IsDefault *bool `json:"isDefault"`// 是否是root.default队列
|
|
2548
|
-
IsRoot *bool `json:"isRoot"` // 是否是root队列
|
|
2549
|
-
Queues []*QueueForCapacitySchedulerV3 `json:"queues"`//子队列信息。递归
|
|
2550
|
-
}
|
|
2551
|
-
type ConfigForCapacityV3 struct {
|
|
2552
|
-
Name string `json:"configName"` // 配置集名称
|
|
2553
|
-
Labels []CapacityLabel `json:"labels"` // 标签信息
|
|
2554
|
-
MinUserLimitPercent *int32 `json:"minimum-user-limit-percent"` // 用户最小容量
|
|
2555
|
-
UserLimitFactor *float32 `json:"user-limit-factor" valid:"rangeExcludeLeft(0|)"` // 用户资源因子
|
|
2556
|
-
MaxApps *int32 `json:"maximum-applications" valid:"rangeExcludeLeft(0|)"` // 最大应用数Max-Applications
|
|
2557
|
-
MaxAmPercent *float32 `json:"maximum-am-resource-percent"` // 最大AM比例
|
|
2558
|
-
DefaultApplicationPriority *int32 `json:"default-application-priority"` // 资源池优先级
|
|
2559
|
-
}
|
|
2560
|
-
type CapacityLabel struct {
|
|
2561
|
-
Name string `json:"labelName"`
|
|
2562
|
-
Capacity *float32 `json:"capacity"` // 容量
|
|
2563
|
-
MaxCapacity *float32 `json:"maximum-capacity"` //最大容量
|
|
2564
|
-
}
|
|
2565
|
-
|
|
2566
|
-
type AclForYarnQueue struct {
|
|
2567
|
-
User *string `json:"user"` //用户名
|
|
2568
|
-
Group *string `json:"group"`//组名
|
|
2569
|
-
}
|
|
2570
|
-
```
|
|
2478
|
+
* 队列信息。是一个对象转成的json字符串,对应的golang结构体如下所示,例如`QueueWithConfigSetForFairScheduler`的第一个字段`Name`:```Name string `json:"name"` //队列名称```- `Name`:字段名- `string`:字段类型- `json:"name"`:表示在序列化和反序列化`json`时,对应的`json key`,下面以`json key`来指代- `//`:后面的注释内容对应页面上看到的名称字段类型以`*`开头的表示取值可能为json规范下的null,不同的语言需要使用能表达null的类型来接收,例如java的包装类型;字段类型以`[]`开头的表示是数组类型;`json key`在调用`ModifyYarnQueueV2 `接口也会使用。- 公平调度器```type QueueWithConfigSetForFairScheduler struct { Name string `json:"name"` //队列名称 MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用 ParentId string `json:"parentId"` // 父队列Id Type *string `json:"type"` // 队列归属。parent或空,当确定某个队列是父队列,且没有子队列时,才可以设置,通常用来支持放置策略nestedUserQueue AclSubmitApps *AclForYarnQueue `json:"aclSubmitApps"` // 提交访问控制 AclAdministerApps *AclForYarnQueue `json:"aclAdministerApps"` // 管理访问控制 MinSharePreemptionTimeout *int `json:"minSharePreemptionTimeout"` // 最小共享优先权超时时间 FairSharePreemptionTimeout *int `json:"fairSharePreemptionTimeout"` // 公平份额抢占超时时间 FairSharePreemptionThreshold *float32 `json:"fairSharePreemptionThreshold"` // 公平份额抢占阈值。取值 (0,1] AllowPreemptionFrom *bool `json:"allowPreemptionFrom"` // 抢占模式 SchedulingPolicy *string `json:"schedulingPolicy"` // 调度策略,取值有drf、fair、fifo IsDefault *bool `json:"isDefault"` // 是否是root.default队列 IsRoot *bool `json:"isRoot"` // 是否是root队列 ConfigSets []ConfigSetForFairScheduler `json:"configSets"` // 配置集设置 Children []QueueWithConfigSetForFairScheduler `json:"queues"` // 子队列信息。递归}type AclForYarnQueue struct { User *string `json:"user"` //用户名 Group *string `json:"group"`//组名}type ConfigSetForFairScheduler struct { Name string `json:"name"` // 配置集名称 MinResources *YarnResource `json:"minResources"` // 最小资源量 MaxResources *YarnResource `json:"maxResources"` // 最大资源量 MaxChildResources *YarnResource `json:"maxChildResources"` // 能够分配给为未声明子队列的最大资源量 MaxRunningApps *int `json:"maxRunningApps"` // 最高可同时处于运行的App数量 Weight *float32 `json:"weight"` // 权重 MaxAMShare *float32 `json:"maxAMShare"` // App Master最大份额}type YarnResource struct { Vcores *int `json:"vcores"` Memory *int `json:"memory"` Type *string `json:"type"` // 当值为`percent`时,表示使用的百分比,否则就是使用的绝对数值}```- 容量调度器```type QueueForCapacitySchedulerV3 struct { Name string `json:"name"` // 队列名称 MyId string `json:"myId"` // 队列id,用于编辑、删除、克隆时使用 ParentId string `json:"parentId"` // 父队列Id Configs []ConfigForCapacityV3 `json:"configs"` //配置集设置 State *string `json:"state"` // 资源池状态 DefaultNodeLabelExpression *string `json:"default-node-label-expression"` // 默认标签表达式 AclSubmitApps *AclForYarnQueue `json:"acl_submit_applications"` // 提交访问控制 AclAdminQueue *AclForYarnQueue `json:"acl_administer_queue"` //管理访问控制 MaxAllocationMB *int32 `json:"maximum-allocation-mb"` // 分配Container最大内存数量 MaxAllocationVcores *int32 `json:"maximum-allocation-vcores"` // Container最大vCore数量 IsDefault *bool `json:"isDefault"`// 是否是root.default队列 IsRoot *bool `json:"isRoot"` // 是否是root队列 Queues []*QueueForCapacitySchedulerV3 `json:"queues"`//子队列信息。递归}type ConfigForCapacityV3 struct { Name string `json:"configName"` // 配置集名称 Labels []CapacityLabel `json:"labels"` // 标签信息 MinUserLimitPercent *int32 `json:"minimum-user-limit-percent"` // 用户最小容量 UserLimitFactor *float32 `json:"user-limit-factor" valid:"rangeExcludeLeft(0|)"` // 用户资源因子 MaxApps *int32 `json:"maximum-applications" valid:"rangeExcludeLeft(0|)"` // 最大应用数Max-Applications MaxAmPercent *float32 `json:"maximum-am-resource-percent"` // 最大AM比例 DefaultApplicationPriority *int32 `json:"default-application-priority"` // 资源池优先级}type CapacityLabel struct { Name string `json:"labelName"` Capacity *float32 `json:"capacity"` // 容量 MaxCapacity *float32 `json:"maximum-capacity"` //最大容量}type AclForYarnQueue struct { User *string `json:"user"` //用户名 Group *string `json:"group"`//组名}```
|
|
2571
2479
|
*/
|
|
2572
2480
|
Queue?: string
|
|
2573
2481
|
/**
|
|
@@ -2802,10 +2802,9 @@ export interface AutoSignConfig {
|
|
|
2802
2802
|
*/
|
|
2803
2803
|
VerifyChannels?: Array<string>
|
|
2804
2804
|
/**
|
|
2805
|
-
*
|
|
2805
|
+
* 设置用户自动签合同的扣费方式。
|
|
2806
2806
|
|
|
2807
|
-
<ul><li
|
|
2808
|
-
<li>**1**: 不绑定自动签账号许可开通,后续使用合同份额进行合同发起</li></ul>
|
|
2807
|
+
<ul><li><b>1</b>: (默认)使用合同份额进行扣减</li></ul>
|
|
2809
2808
|
*/
|
|
2810
2809
|
LicenseType?: number
|
|
2811
2810
|
/**
|
|
@@ -7828,8 +7827,8 @@ export interface ModifyExtendedServiceResponse {
|
|
|
7828
7827
|
<li><strong>有跳转链接返回的情况:</strong> 当操作类型为“OPEN”(开通服务),并且扩展服务类型为以下之一时, 系统将返回一个操作链接。当前操作人(超级管理员或法人)需要点击此链接,以完成服务的开通操作。
|
|
7829
7828
|
|
|
7830
7829
|
<ul>
|
|
7831
|
-
<li><strong>OPEN_SERVER_SIGN</strong
|
|
7832
|
-
<li><strong>OVERSEA_SIGN</strong
|
|
7830
|
+
<li><strong>OPEN_SERVER_SIGN</strong>(企业自动签署)</li>
|
|
7831
|
+
<li><strong>OVERSEA_SIGN</strong>(企业与港澳台居民签署合同)</li>
|
|
7833
7832
|
</ul></li></li>
|
|
7834
7833
|
</ul>
|
|
7835
7834
|
*/
|
|
@@ -2787,8 +2787,7 @@ export interface AutoSignConfig {
|
|
|
2787
2787
|
/**
|
|
2788
2788
|
* 设置用户开通自动签时是否绑定个人自动签账号许可。
|
|
2789
2789
|
|
|
2790
|
-
<ul><li
|
|
2791
|
-
<li>**1**: 不绑定自动签账号许可开通,后续使用合同份额进行合同发起</li></ul>
|
|
2790
|
+
<ul><li><b>1</b>: (默认)不绑定自动签账号许可开通,开通后一直有效, 后续使用合同份额进行合同发起</li></ul>
|
|
2792
2791
|
*/
|
|
2793
2792
|
LicenseType?: number
|
|
2794
2793
|
/**
|
|
@@ -6907,7 +6906,7 @@ export interface ModifyExtendedServiceResponse {
|
|
|
6907
6906
|
* 操作跳转链接
|
|
6908
6907
|
<ul><li><strong>链接有效期:</strong> 跳转链接的有效期为24小时。</li>
|
|
6909
6908
|
<li><strong>没有返回链接的情形:</strong> 如果在操作时没有返回跳转链接,说明此次操作无需进行跳转,服务将会直接被开通或关闭。</li>
|
|
6910
|
-
<li><strong>返回链接的情形:</strong>
|
|
6909
|
+
<li><strong>返回链接的情形:</strong> 当操作类型为<b>OPEN(开通服务)</b>,并且扩展服务类型为<b>AUTO_SIGN( 企业自动签署)</b>、<b>DOWNLOAD_FLOW(授权渠道下载合同)</b>或<b>OVERSEA_SIGN(企业与港澳台居民签署合同)</b>时,系统将返回一个操作链接。收到操作链接后,贵方需主动联系超级管理员(超管)或法人。<font color="red"><b>由超管或法人点击链接</b></font>,以完成服务的开通操作。</li>
|
|
6911
6910
|
</ul>
|
|
6912
6911
|
|
|
6913
6912
|
|
|
@@ -2155,6 +2155,25 @@ export interface DetectInfoText {
|
|
|
2155
2155
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
2156
2156
|
*/
|
|
2157
2157
|
LivenessDetail?: Array<DetectDetail>
|
|
2158
|
+
/**
|
|
2159
|
+
* 描述当前请求活体阶段被拒绝的详细原因,详情如下:
|
|
2160
|
+
01-用户全程闭眼
|
|
2161
|
+
02-用户未完成指定动作
|
|
2162
|
+
03-疑似翻拍攻击
|
|
2163
|
+
04-疑似合成攻击
|
|
2164
|
+
05-疑似黑产模版
|
|
2165
|
+
06-疑似存在水印
|
|
2166
|
+
07-反光校验未通过
|
|
2167
|
+
08-疑似中途换人
|
|
2168
|
+
09-人脸质量过差
|
|
2169
|
+
10-距离校验不通过
|
|
2170
|
+
11-疑似对抗样本攻击
|
|
2171
|
+
12-嘴巴区域疑似存在攻击痕迹
|
|
2172
|
+
13-眼睛区域疑似存在攻击痕迹
|
|
2173
|
+
14-眼睛或嘴巴被遮挡
|
|
2174
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2175
|
+
*/
|
|
2176
|
+
LivenessInfoTag?: Array<string>
|
|
2158
2177
|
/**
|
|
2159
2178
|
* 手机号码。
|
|
2160
2179
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
@@ -0,0 +1,267 @@
|
|
|
1
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
import { AbstractClient } from "../../../common/abstract_client"
|
|
19
|
+
import { ClientConfig } from "../../../common/interface"
|
|
20
|
+
import {
|
|
21
|
+
DescribeTargetGroupInstanceStatusRequest,
|
|
22
|
+
DescribeTargetGroupListResponse,
|
|
23
|
+
DisassociateTargetGroupsResponse,
|
|
24
|
+
DescribeTargetGroupListRequest,
|
|
25
|
+
ModifyGatewayLoadBalancerAttributeRequest,
|
|
26
|
+
ModifyTargetGroupInstancesWeightResponse,
|
|
27
|
+
DescribeTargetGroupsRequest,
|
|
28
|
+
DescribeTaskStatusResponse,
|
|
29
|
+
InquirePriceCreateGatewayLoadBalancerResponse,
|
|
30
|
+
CreateTargetGroupResponse,
|
|
31
|
+
TargetGroupBackend,
|
|
32
|
+
TargetGroupHealthCheck,
|
|
33
|
+
ModifyTargetGroupInstancesWeightRequest,
|
|
34
|
+
DeleteTargetGroupsResponse,
|
|
35
|
+
Price,
|
|
36
|
+
ModifyGatewayLoadBalancerAttributeResponse,
|
|
37
|
+
DeleteGatewayLoadBalancerRequest,
|
|
38
|
+
TagInfo,
|
|
39
|
+
AssociateTargetGroupsRequest,
|
|
40
|
+
DeregisterTargetGroupInstancesRequest,
|
|
41
|
+
GatewayLoadBalancer,
|
|
42
|
+
DescribeGatewayLoadBalancersRequest,
|
|
43
|
+
DeregisterTargetGroupInstancesResponse,
|
|
44
|
+
DescribeTargetGroupInstancesResponse,
|
|
45
|
+
CreateTargetGroupRequest,
|
|
46
|
+
CreateGatewayLoadBalancerRequest,
|
|
47
|
+
AssociateTargetGroupsResponse,
|
|
48
|
+
InquirePriceCreateGatewayLoadBalancerRequest,
|
|
49
|
+
DisassociateTargetGroupsRequest,
|
|
50
|
+
Filter,
|
|
51
|
+
TargetGroupInstanceStatus,
|
|
52
|
+
DescribeTargetGroupInstanceStatusResponse,
|
|
53
|
+
DescribeTargetGroupInstancesRequest,
|
|
54
|
+
DescribeTaskStatusRequest,
|
|
55
|
+
RegisterTargetGroupInstancesResponse,
|
|
56
|
+
CreateGatewayLoadBalancerResponse,
|
|
57
|
+
DescribeTargetGroupsResponse,
|
|
58
|
+
RegisterTargetGroupInstancesRequest,
|
|
59
|
+
DeleteTargetGroupsRequest,
|
|
60
|
+
ItemPrice,
|
|
61
|
+
TargetGroupAssociation,
|
|
62
|
+
TargetGroupInstance,
|
|
63
|
+
ModifyTargetGroupAttributeResponse,
|
|
64
|
+
AssociationItem,
|
|
65
|
+
ModifyTargetGroupAttributeRequest,
|
|
66
|
+
TargetGroupInfo,
|
|
67
|
+
DescribeGatewayLoadBalancersResponse,
|
|
68
|
+
DeleteGatewayLoadBalancerResponse,
|
|
69
|
+
} from "./gwlb_models"
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* gwlb client
|
|
73
|
+
* @class
|
|
74
|
+
*/
|
|
75
|
+
export class Client extends AbstractClient {
|
|
76
|
+
constructor(clientConfig: ClientConfig) {
|
|
77
|
+
super("gwlb.tencentcloudapi.com", "2024-09-06", clientConfig)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* 删除目标组
|
|
82
|
+
*/
|
|
83
|
+
async DeleteTargetGroups(
|
|
84
|
+
req: DeleteTargetGroupsRequest,
|
|
85
|
+
cb?: (error: string, rep: DeleteTargetGroupsResponse) => void
|
|
86
|
+
): Promise<DeleteTargetGroupsResponse> {
|
|
87
|
+
return this.request("DeleteTargetGroups", req, cb)
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* DeleteGatewayLoadBalancer 接口用以删除指定的一个或多个网关负载均衡实例。成功删除后,会把网关负载均衡实例与后端服务解绑。
|
|
92
|
+
本接口为异步接口,接口返回成功后,需以返回的 RequestId 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
|
93
|
+
*/
|
|
94
|
+
async DeleteGatewayLoadBalancer(
|
|
95
|
+
req: DeleteGatewayLoadBalancerRequest,
|
|
96
|
+
cb?: (error: string, rep: DeleteGatewayLoadBalancerResponse) => void
|
|
97
|
+
): Promise<DeleteGatewayLoadBalancerResponse> {
|
|
98
|
+
return this.request("DeleteGatewayLoadBalancer", req, cb)
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* 注册服务器到目标组。
|
|
103
|
+
本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
|
104
|
+
*/
|
|
105
|
+
async RegisterTargetGroupInstances(
|
|
106
|
+
req: RegisterTargetGroupInstancesRequest,
|
|
107
|
+
cb?: (error: string, rep: RegisterTargetGroupInstancesResponse) => void
|
|
108
|
+
): Promise<RegisterTargetGroupInstancesResponse> {
|
|
109
|
+
return this.request("RegisterTargetGroupInstances", req, cb)
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
/**
|
|
113
|
+
* 查询目标组信息
|
|
114
|
+
*/
|
|
115
|
+
async DescribeTargetGroups(
|
|
116
|
+
req: DescribeTargetGroupsRequest,
|
|
117
|
+
cb?: (error: string, rep: DescribeTargetGroupsResponse) => void
|
|
118
|
+
): Promise<DescribeTargetGroupsResponse> {
|
|
119
|
+
return this.request("DescribeTargetGroups", req, cb)
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* 修改目标组的名称、健康探测等属性。
|
|
124
|
+
*/
|
|
125
|
+
async ModifyTargetGroupAttribute(
|
|
126
|
+
req: ModifyTargetGroupAttributeRequest,
|
|
127
|
+
cb?: (error: string, rep: ModifyTargetGroupAttributeResponse) => void
|
|
128
|
+
): Promise<ModifyTargetGroupAttributeResponse> {
|
|
129
|
+
return this.request("ModifyTargetGroupAttribute", req, cb)
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* 本接口用于查询异步任务的执行状态,对于非查询类的接口(创建/删除负载均衡实例等),在接口调用成功后,都需要使用本接口查询任务最终是否执行成功。
|
|
134
|
+
*/
|
|
135
|
+
async DescribeTaskStatus(
|
|
136
|
+
req: DescribeTaskStatusRequest,
|
|
137
|
+
cb?: (error: string, rep: DescribeTaskStatusResponse) => void
|
|
138
|
+
): Promise<DescribeTaskStatusResponse> {
|
|
139
|
+
return this.request("DescribeTaskStatus", req, cb)
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
/**
|
|
143
|
+
* 本接口(CreateGatewayLoadBalancer)用来创建网关负载均衡实例。为了使用网关负载均衡服务,您必须购买一个或多个网关负载均衡实例。成功调用该接口后,会返回网关负载均衡实例的唯一 ID。
|
|
144
|
+
注意:单个账号在每个地域的默认购买配额为:10个。
|
|
145
|
+
本接口为异步接口,接口成功返回后,可使用 DescribeGatewayLoadBalancers 接口查询负载均衡实例的状态(如创建中、正常),以确定是否创建成功。
|
|
146
|
+
*/
|
|
147
|
+
async CreateGatewayLoadBalancer(
|
|
148
|
+
req: CreateGatewayLoadBalancerRequest,
|
|
149
|
+
cb?: (error: string, rep: CreateGatewayLoadBalancerResponse) => void
|
|
150
|
+
): Promise<CreateGatewayLoadBalancerResponse> {
|
|
151
|
+
return this.request("CreateGatewayLoadBalancer", req, cb)
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* 解除负载均衡和目标组的关联关系。
|
|
156
|
+
本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
|
157
|
+
*/
|
|
158
|
+
async DisassociateTargetGroups(
|
|
159
|
+
req: DisassociateTargetGroupsRequest,
|
|
160
|
+
cb?: (error: string, rep: DisassociateTargetGroupsResponse) => void
|
|
161
|
+
): Promise<DisassociateTargetGroupsResponse> {
|
|
162
|
+
return this.request("DisassociateTargetGroups", req, cb)
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
/**
|
|
166
|
+
* 修改目标组的服务器权重。
|
|
167
|
+
本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
|
168
|
+
*/
|
|
169
|
+
async ModifyTargetGroupInstancesWeight(
|
|
170
|
+
req: ModifyTargetGroupInstancesWeightRequest,
|
|
171
|
+
cb?: (error: string, rep: ModifyTargetGroupInstancesWeightResponse) => void
|
|
172
|
+
): Promise<ModifyTargetGroupInstancesWeightResponse> {
|
|
173
|
+
return this.request("ModifyTargetGroupInstancesWeight", req, cb)
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
/**
|
|
177
|
+
* 查询目标组后端服务状态。目前仅支持网关负载均衡类型的目标组支持查询后端服务状态。
|
|
178
|
+
*/
|
|
179
|
+
async DescribeTargetGroupInstanceStatus(
|
|
180
|
+
req: DescribeTargetGroupInstanceStatusRequest,
|
|
181
|
+
cb?: (error: string, rep: DescribeTargetGroupInstanceStatusResponse) => void
|
|
182
|
+
): Promise<DescribeTargetGroupInstanceStatusResponse> {
|
|
183
|
+
return this.request("DescribeTargetGroupInstanceStatus", req, cb)
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* 本接口(AssociateTargetGroups)用来将目标组绑定到负载均衡。
|
|
188
|
+
本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
|
189
|
+
*/
|
|
190
|
+
async AssociateTargetGroups(
|
|
191
|
+
req: AssociateTargetGroupsRequest,
|
|
192
|
+
cb?: (error: string, rep: AssociateTargetGroupsResponse) => void
|
|
193
|
+
): Promise<AssociateTargetGroupsResponse> {
|
|
194
|
+
return this.request("AssociateTargetGroups", req, cb)
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* 查询一个地域的网关负载均衡实例列表。
|
|
199
|
+
*/
|
|
200
|
+
async DescribeGatewayLoadBalancers(
|
|
201
|
+
req: DescribeGatewayLoadBalancersRequest,
|
|
202
|
+
cb?: (error: string, rep: DescribeGatewayLoadBalancersResponse) => void
|
|
203
|
+
): Promise<DescribeGatewayLoadBalancersResponse> {
|
|
204
|
+
return this.request("DescribeGatewayLoadBalancers", req, cb)
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
/**
|
|
208
|
+
* ModifyGatewayLoadBalancerAttribute 接口用于修改负载均衡实例的属性。支持修改负载均衡实例的名称、带宽上限。
|
|
209
|
+
*/
|
|
210
|
+
async ModifyGatewayLoadBalancerAttribute(
|
|
211
|
+
req: ModifyGatewayLoadBalancerAttributeRequest,
|
|
212
|
+
cb?: (error: string, rep: ModifyGatewayLoadBalancerAttributeResponse) => void
|
|
213
|
+
): Promise<ModifyGatewayLoadBalancerAttributeResponse> {
|
|
214
|
+
return this.request("ModifyGatewayLoadBalancerAttribute", req, cb)
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* 获取目标组列表
|
|
219
|
+
*/
|
|
220
|
+
async DescribeTargetGroupList(
|
|
221
|
+
req: DescribeTargetGroupListRequest,
|
|
222
|
+
cb?: (error: string, rep: DescribeTargetGroupListResponse) => void
|
|
223
|
+
): Promise<DescribeTargetGroupListResponse> {
|
|
224
|
+
return this.request("DescribeTargetGroupList", req, cb)
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
/**
|
|
228
|
+
* InquirePriceCreateGatewayLoadBalancer接口查询创建网关负载均衡的价格。
|
|
229
|
+
*/
|
|
230
|
+
async InquirePriceCreateGatewayLoadBalancer(
|
|
231
|
+
req: InquirePriceCreateGatewayLoadBalancerRequest,
|
|
232
|
+
cb?: (error: string, rep: InquirePriceCreateGatewayLoadBalancerResponse) => void
|
|
233
|
+
): Promise<InquirePriceCreateGatewayLoadBalancerResponse> {
|
|
234
|
+
return this.request("InquirePriceCreateGatewayLoadBalancer", req, cb)
|
|
235
|
+
}
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* 从目标组中解绑服务器。
|
|
239
|
+
本接口为异步接口,本接口返回成功后需以返回的 RequestID 为入参,调用 DescribeTaskStatus 接口查询本次任务是否成功。
|
|
240
|
+
*/
|
|
241
|
+
async DeregisterTargetGroupInstances(
|
|
242
|
+
req: DeregisterTargetGroupInstancesRequest,
|
|
243
|
+
cb?: (error: string, rep: DeregisterTargetGroupInstancesResponse) => void
|
|
244
|
+
): Promise<DeregisterTargetGroupInstancesResponse> {
|
|
245
|
+
return this.request("DeregisterTargetGroupInstances", req, cb)
|
|
246
|
+
}
|
|
247
|
+
|
|
248
|
+
/**
|
|
249
|
+
* 创建目标组。该功能正在内测中,如需使用,请通过[工单申请](https://console.cloud.tencent.com/workorder/category?level1_id=6&level2_id=163&source=0&data_title=%E8%B4%9F%E8%BD%BD%E5%9D%87%E8%A1%A1%20LB&step=1)。
|
|
250
|
+
*/
|
|
251
|
+
async CreateTargetGroup(
|
|
252
|
+
req: CreateTargetGroupRequest,
|
|
253
|
+
cb?: (error: string, rep: CreateTargetGroupResponse) => void
|
|
254
|
+
): Promise<CreateTargetGroupResponse> {
|
|
255
|
+
return this.request("CreateTargetGroup", req, cb)
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
/**
|
|
259
|
+
* 获取目标组绑定的服务器信息。
|
|
260
|
+
*/
|
|
261
|
+
async DescribeTargetGroupInstances(
|
|
262
|
+
req: DescribeTargetGroupInstancesRequest,
|
|
263
|
+
cb?: (error: string, rep: DescribeTargetGroupInstancesResponse) => void
|
|
264
|
+
): Promise<DescribeTargetGroupInstancesResponse> {
|
|
265
|
+
return this.request("DescribeTargetGroupInstances", req, cb)
|
|
266
|
+
}
|
|
267
|
+
}
|