tencentcloud-sdk-nodejs 4.0.505 → 4.0.506
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 +128 -0
- package/README.md +17 -29
- package/SERVICE_CHANGELOG.md +151 -70
- package/examples/cvm_role.js +26 -0
- package/package.json +1 -1
- package/products.md +10 -10
- package/src/common/abstract_client.ts +27 -19
- package/src/common/cvm_role_credential.ts +62 -0
- package/src/common/http/fetch.ts +2 -2
- package/src/common/interface.ts +8 -1
- package/src/common/sdk_version.ts +1 -1
- package/src/services/billing/v20180709/billing_models.ts +4 -6
- package/src/services/cfs/v20190719/cfs_models.ts +12 -0
- package/src/services/cvm/v20170312/cvm_models.ts +7 -2
- package/src/services/essbasic/v20210526/essbasic_client.ts +1 -1
- package/src/services/ssl/v20191205/ssl_client.ts +1 -0
- package/src/services/ssl/v20191205/ssl_models.ts +47 -0
- package/src/services/thpc/v20220401/thpc_models.ts +5 -5
- package/src/services/tione/v20211111/tione_models.ts +25 -3
- package/src/services/trtc/v20190722/trtc_models.ts +4 -4
- package/src/services/vpc/v20170312/vpc_client.ts +1 -1
- package/src/services/vpc/v20170312/vpc_models.ts +14 -8
- package/tencentcloud/common/abstract_client.d.ts +3 -2
- package/tencentcloud/common/abstract_client.js +21 -13
- package/tencentcloud/common/cvm_role_credential.d.ts +17 -0
- package/tencentcloud/common/cvm_role_credential.js +47 -0
- package/tencentcloud/common/http/fetch.d.ts +2 -2
- package/tencentcloud/common/interface.d.ts +7 -1
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/billing/v20180709/billing_models.d.ts +4 -6
- package/tencentcloud/services/cfs/v20190719/cfs_models.d.ts +10 -0
- package/tencentcloud/services/cvm/v20170312/cvm_models.d.ts +6 -2
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +1 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +1 -1
- package/tencentcloud/services/ssl/v20191205/ssl_models.d.ts +40 -0
- package/tencentcloud/services/thpc/v20220401/thpc_models.d.ts +5 -5
- package/tencentcloud/services/tione/v20211111/tione_models.d.ts +21 -3
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +4 -4
- package/tencentcloud/services/vpc/v20170312/vpc_client.d.ts +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_client.js +1 -1
- package/tencentcloud/services/vpc/v20170312/vpc_models.d.ts +11 -6
|
@@ -23,11 +23,11 @@ class AbstractClient {
|
|
|
23
23
|
/**
|
|
24
24
|
* 认证信息实例
|
|
25
25
|
*/
|
|
26
|
-
this.credential =
|
|
26
|
+
this.credential = credential || {
|
|
27
27
|
secretId: null,
|
|
28
28
|
secretKey: null,
|
|
29
|
-
token: null
|
|
30
|
-
}
|
|
29
|
+
token: null
|
|
30
|
+
};
|
|
31
31
|
/**
|
|
32
32
|
* 产品地域
|
|
33
33
|
*/
|
|
@@ -53,6 +53,12 @@ class AbstractClient {
|
|
|
53
53
|
throw new tencent_cloud_sdk_exception_1.default(`Language invalid, choices: ${interface_1.SUPPORT_LANGUAGE_LIST.join("|")}`);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
+
async getCredential() {
|
|
57
|
+
if ('getCredential' in this.credential) {
|
|
58
|
+
return await this.credential.getCredential();
|
|
59
|
+
}
|
|
60
|
+
return this.credential;
|
|
61
|
+
}
|
|
56
62
|
/**
|
|
57
63
|
* @inner
|
|
58
64
|
*/
|
|
@@ -79,7 +85,7 @@ class AbstractClient {
|
|
|
79
85
|
return this.doRequestWithSign3(action, req, options);
|
|
80
86
|
}
|
|
81
87
|
let params = this.mergeData(req);
|
|
82
|
-
params = this.formatRequestData(action, params);
|
|
88
|
+
params = await this.formatRequestData(action, params);
|
|
83
89
|
let res;
|
|
84
90
|
try {
|
|
85
91
|
res = await http_connection_1.HttpConnection.doRequest({
|
|
@@ -104,11 +110,12 @@ class AbstractClient {
|
|
|
104
110
|
async doRequestWithSign3(action, params, options = {}) {
|
|
105
111
|
let res;
|
|
106
112
|
try {
|
|
113
|
+
const credential = await this.getCredential();
|
|
107
114
|
res = await http_connection_1.HttpConnection.doRequestWithSign3({
|
|
108
115
|
method: this.profile.httpProfile.reqMethod,
|
|
109
116
|
url: this.profile.httpProfile.protocol + this.endpoint + this.path,
|
|
110
|
-
secretId:
|
|
111
|
-
secretKey:
|
|
117
|
+
secretId: credential.secretId,
|
|
118
|
+
secretKey: credential.secretKey,
|
|
112
119
|
region: this.region,
|
|
113
120
|
data: params || "",
|
|
114
121
|
service: this.endpoint.split(".")[0],
|
|
@@ -116,7 +123,7 @@ class AbstractClient {
|
|
|
116
123
|
version: this.apiVersion,
|
|
117
124
|
multipart: options && options.multipart,
|
|
118
125
|
timeout: this.profile.httpProfile.reqTimeout * 1000,
|
|
119
|
-
token:
|
|
126
|
+
token: credential.token,
|
|
120
127
|
requestClient: this.sdkVersion,
|
|
121
128
|
language: this.profile.language,
|
|
122
129
|
headers: Object.assign({}, this.profile.httpProfile.headers, options.headers),
|
|
@@ -169,20 +176,21 @@ class AbstractClient {
|
|
|
169
176
|
/**
|
|
170
177
|
* @inner
|
|
171
178
|
*/
|
|
172
|
-
formatRequestData(action, params) {
|
|
179
|
+
async formatRequestData(action, params) {
|
|
173
180
|
params.Action = action;
|
|
174
181
|
params.RequestClient = this.sdkVersion;
|
|
175
182
|
params.Nonce = Math.round(Math.random() * 65535);
|
|
176
183
|
params.Timestamp = Math.round(Date.now() / 1000);
|
|
177
184
|
params.Version = this.apiVersion;
|
|
178
|
-
|
|
179
|
-
|
|
185
|
+
const credential = await this.getCredential();
|
|
186
|
+
if (credential.secretId) {
|
|
187
|
+
params.SecretId = credential.secretId;
|
|
180
188
|
}
|
|
181
189
|
if (this.region) {
|
|
182
190
|
params.Region = this.region;
|
|
183
191
|
}
|
|
184
|
-
if (
|
|
185
|
-
params.Token =
|
|
192
|
+
if (credential.token) {
|
|
193
|
+
params.Token = credential.token;
|
|
186
194
|
}
|
|
187
195
|
if (this.profile.language) {
|
|
188
196
|
params.Language = this.profile.language;
|
|
@@ -191,7 +199,7 @@ class AbstractClient {
|
|
|
191
199
|
params.SignatureMethod = this.profile.signMethod;
|
|
192
200
|
}
|
|
193
201
|
const signStr = this.formatSignString(params);
|
|
194
|
-
params.Signature = sign_1.default.sign(
|
|
202
|
+
params.Signature = sign_1.default.sign(credential.secretKey, signStr, this.profile.signMethod);
|
|
195
203
|
return params;
|
|
196
204
|
}
|
|
197
205
|
/**
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { Credential, DynamicCredential } from "./interface";
|
|
2
|
+
interface CvmRoleCredentialResult {
|
|
3
|
+
"TmpSecretId": string;
|
|
4
|
+
"TmpSecretKey": string;
|
|
5
|
+
"ExpiredTime": 1671330188;
|
|
6
|
+
"Expiration": string;
|
|
7
|
+
"Token": string;
|
|
8
|
+
"Code": string;
|
|
9
|
+
}
|
|
10
|
+
export default class CvmRoleCredential implements DynamicCredential {
|
|
11
|
+
protected roleNameTask: Promise<string>;
|
|
12
|
+
protected credentialTask: Promise<CvmRoleCredentialResult>;
|
|
13
|
+
protected getRoleName(): Promise<string>;
|
|
14
|
+
protected getRoleCredential(roleName: string): Promise<CvmRoleCredentialResult>;
|
|
15
|
+
getCredential(): Promise<Credential>;
|
|
16
|
+
}
|
|
17
|
+
export {};
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const fetch_1 = require("./http/fetch");
|
|
4
|
+
const META_URL = "http://metadata.tencentyun.com/latest/meta-data/";
|
|
5
|
+
const ROLE_URL = META_URL + "cam/security-credentials/";
|
|
6
|
+
const EXPIRE_BUFFER = 30 * 1000;
|
|
7
|
+
class CvmRoleCredential {
|
|
8
|
+
async getRoleName() {
|
|
9
|
+
const response = await fetch_1.default(ROLE_URL, {});
|
|
10
|
+
if (!response.ok) {
|
|
11
|
+
throw new Error('Get cvm role name failed, Please confirm whether the role is bound');
|
|
12
|
+
}
|
|
13
|
+
return await response.text();
|
|
14
|
+
}
|
|
15
|
+
async getRoleCredential(roleName) {
|
|
16
|
+
const response = await fetch_1.default(ROLE_URL + roleName, {});
|
|
17
|
+
if (!response.ok) {
|
|
18
|
+
throw new Error(`Get credential from metadata server by role name ${roleName} failed, http code: ${response.status}`);
|
|
19
|
+
}
|
|
20
|
+
const json = await response.json();
|
|
21
|
+
if (json.Code !== 'Success') {
|
|
22
|
+
throw new Error(`Get credential from metadata server by role name ${roleName} failed, Code: ${json.Code}`);
|
|
23
|
+
}
|
|
24
|
+
return json;
|
|
25
|
+
}
|
|
26
|
+
async getCredential() {
|
|
27
|
+
if (!this.roleNameTask) {
|
|
28
|
+
this.roleNameTask = this.getRoleName();
|
|
29
|
+
}
|
|
30
|
+
const roleName = await this.roleNameTask;
|
|
31
|
+
if (!this.credentialTask) {
|
|
32
|
+
this.credentialTask = this.getRoleCredential(roleName);
|
|
33
|
+
}
|
|
34
|
+
const credential = await this.credentialTask;
|
|
35
|
+
// expired
|
|
36
|
+
if (credential.ExpiredTime * 1000 - EXPIRE_BUFFER <= Date.now()) {
|
|
37
|
+
this.credentialTask = null;
|
|
38
|
+
return this.getCredential();
|
|
39
|
+
}
|
|
40
|
+
return {
|
|
41
|
+
secretId: credential.TmpSecretId,
|
|
42
|
+
secretKey: credential.TmpSecretKey,
|
|
43
|
+
token: credential.Token
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
exports.default = CvmRoleCredential;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { RequestInit, Response } from "node-fetch";
|
|
2
2
|
export interface FetchOptions extends Omit<RequestInit, "signal"> {
|
|
3
3
|
proxy?: string;
|
|
4
|
-
headers
|
|
5
|
-
signal
|
|
4
|
+
headers?: Record<string, string>;
|
|
5
|
+
signal?: AbortSignal;
|
|
6
6
|
}
|
|
7
7
|
export default function (url: string, options: FetchOptions): Promise<Response>;
|
|
@@ -8,7 +8,7 @@ export interface ClientConfig {
|
|
|
8
8
|
* @param {Credential} credential 认证信息
|
|
9
9
|
* 必选
|
|
10
10
|
*/
|
|
11
|
-
credential: Credential;
|
|
11
|
+
credential: Credential | DynamicCredential;
|
|
12
12
|
/**
|
|
13
13
|
* @param {string} region 产品地域
|
|
14
14
|
* 对于要求区分地域的产品,此参数必选(如 cvm);对于不区分地域的产品(如 sms),无需传入。
|
|
@@ -109,3 +109,9 @@ export interface Credential {
|
|
|
109
109
|
*/
|
|
110
110
|
token?: string;
|
|
111
111
|
}
|
|
112
|
+
/**
|
|
113
|
+
* 动态认证信息
|
|
114
|
+
*/
|
|
115
|
+
export interface DynamicCredential {
|
|
116
|
+
getCredential(): Promise<Credential>;
|
|
117
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const sdkVersion = "4.0.
|
|
1
|
+
export declare const sdkVersion = "4.0.506";
|
|
@@ -183,12 +183,10 @@ export interface DescribeDosageDetailByDateRequest {
|
|
|
183
183
|
10195 互动直播-边缘机房
|
|
184
184
|
|
|
185
185
|
cdn业务:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
10231:CDN静态加速流量(海外)
|
|
191
|
-
10232:CDN静态加速带宽(海外)
|
|
186
|
+
102383:CDN静态加速流量(国内)
|
|
187
|
+
102384:CDN静态加速带宽(国内)
|
|
188
|
+
102385:CDN静态加速流量(海外)
|
|
189
|
+
102386:CDN静态加速带宽(海外)
|
|
192
190
|
|
|
193
191
|
100967:弹性公网IP-按流量计费
|
|
194
192
|
101065:公网负载均衡-按流量计费
|
|
@@ -777,6 +777,16 @@ export interface UserQuota {
|
|
|
777
777
|
* 文件系统ID
|
|
778
778
|
*/
|
|
779
779
|
FileSystemId: string;
|
|
780
|
+
/**
|
|
781
|
+
* 容量使用,单位GiB
|
|
782
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
783
|
+
*/
|
|
784
|
+
CapacityUsed?: number;
|
|
785
|
+
/**
|
|
786
|
+
* 文件使用个数,单位个
|
|
787
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
788
|
+
*/
|
|
789
|
+
FileUsed?: number;
|
|
780
790
|
}
|
|
781
791
|
/**
|
|
782
792
|
* DeleteMountTarget请求参数结构体
|
|
@@ -3448,7 +3448,7 @@ export interface DescribeInstancesRequest {
|
|
|
3448
3448
|
*/
|
|
3449
3449
|
InstanceIds?: Array<string>;
|
|
3450
3450
|
/**
|
|
3451
|
-
* <li><strong>zone</strong></li> <p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a></p> <li><strong>project-id</strong></li> <p style="padding-left: 30px;">按照【<strong>项目ID</strong>】进行过滤,可通过调用[
|
|
3451
|
+
* <li><strong>zone</strong></li> <p style="padding-left: 30px;">按照【<strong>可用区</strong>】进行过滤。可用区形如:ap-guangzhou-1。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p><p style="padding-left: 30px;">可选项:<a href="https://cloud.tencent.com/document/product/213/6091">可用区列表</a></p> <li><strong>project-id</strong></li> <p style="padding-left: 30px;">按照【<strong>项目ID</strong>】进行过滤,可通过调用[DescribeProjects](https://cloud.tencent.com/document/api/651/78725)查询已创建的项目列表或登录[控制台](https://console.cloud.tencent.com/cvm/index)进行查看;也可以调用[AddProject](https://cloud.tencent.com/document/api/651/81952)创建新的项目。项目ID形如:1002189。</p><p style="padding-left: 30px;">类型:Integer</p><p style="padding-left: 30px;">必选:否</p> <li><strong>host-id</strong></li> <p style="padding-left: 30px;">按照【<strong>[CDH](https://cloud.tencent.com/document/product/416) ID</strong>】进行过滤。[CDH](https://cloud.tencent.com/document/product/416) ID形如:host-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>dedicated-cluster-id</strong></li> <p style="padding-left: 30px;">按照【<strong>[CDC](https://cloud.tencent.com/document/product/1346) ID</strong>】进行过滤。[CDC](https://cloud.tencent.com/document/product/1346) ID形如:cluster-xxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>vpc-id</strong></li> <p style="padding-left: 30px;">按照【<strong>VPC ID</strong>】进行过滤。VPC ID形如:vpc-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>subnet-id</strong></li> <p style="padding-left: 30px;">按照【<strong>子网ID</strong>】进行过滤。子网ID形如:subnet-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>instance-id</strong></li> <p style="padding-left: 30px;">按照【<strong>实例ID</strong>】进行过滤。实例ID形如:ins-xxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>uuid</strong></li> <p style="padding-left: 30px;">按照【<strong>实例UUID</strong>】进行过滤。实例UUID形如:xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>security-group-id</strong></li> <p style="padding-left: 30px;">按照【<strong>安全组ID</strong>】进行过滤。安全组ID形如: sg-8jlk3f3r。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>instance-name</strong></li> <p style="padding-left: 30px;">按照【<strong>实例名称</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>instance-charge-type</strong></li> <p style="padding-left: 30px;">按照【<strong>实例计费模式</strong>】进行过滤。(PREPAID:表示预付费,即包年包月 | POSTPAID_BY_HOUR:表示后付费,即按量计费 | CDHPAID:表示[CDH](https://cloud.tencent.com/document/product/416)付费,即只对[CDH](https://cloud.tencent.com/document/product/416)计费,不对[CDH](https://cloud.tencent.com/document/product/416)上的实例计费。)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>instance-state</strong></li> <p style="padding-left: 30px;">按照【<strong>实例状态</strong>】进行过滤。状态类型详见[实例状态表](https://cloud.tencent.com/document/api/213/15753#InstanceStatus)</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>private-ip-address</strong></li> <p style="padding-left: 30px;">按照【<strong>实例主网卡的内网IP</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>public-ip-address</strong></li> <p style="padding-left: 30px;">按照【<strong>实例主网卡的公网IP</strong>】进行过滤,包含实例创建时自动分配的IP和实例创建后手动绑定的弹性IP。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>ipv6-address</strong></li> <p style="padding-left: 30px;">按照【<strong>实例的IPv6地址</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>tag-key</strong></li> <p style="padding-left: 30px;">按照【<strong>标签键</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>tag-value</strong></li> <p style="padding-left: 30px;">按照【<strong>标签值</strong>】进行过滤。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> <li><strong>tag:tag-key</strong></li> <p style="padding-left: 30px;">按照【<strong>标签键值对</strong>】进行过滤。tag-key使用具体的标签键进行替换。使用请参考示例2。</p><p style="padding-left: 30px;">类型:String</p><p style="padding-left: 30px;">必选:否</p> 每次请求的`Filters`的上限为10,`Filter.Values`的上限为5。参数不支持同时指定`InstanceIds`和`Filters`。
|
|
3452
3452
|
*/
|
|
3453
3453
|
Filters?: Array<Filter>;
|
|
3454
3454
|
/**
|
|
@@ -4112,7 +4112,11 @@ export interface ExportImagesResponse {
|
|
|
4112
4112
|
/**
|
|
4113
4113
|
* 导出镜像任务ID
|
|
4114
4114
|
*/
|
|
4115
|
-
TaskId
|
|
4115
|
+
TaskId?: number;
|
|
4116
|
+
/**
|
|
4117
|
+
* 导出镜像的COS文件名列表
|
|
4118
|
+
*/
|
|
4119
|
+
CosPaths?: Array<string>;
|
|
4116
4120
|
/**
|
|
4117
4121
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
4118
4122
|
*/
|
|
@@ -24,7 +24,7 @@ export declare class Client extends AbstractClient {
|
|
|
24
24
|
*/
|
|
25
25
|
ChannelCreateFlowByFiles(req: ChannelCreateFlowByFilesRequest, cb?: (error: string, rep: ChannelCreateFlowByFilesResponse) => void): Promise<ChannelCreateFlowByFilesResponse>;
|
|
26
26
|
/**
|
|
27
|
-
* 渠道通过图片为子客代创建印章,图片最大
|
|
27
|
+
* 渠道通过图片为子客代创建印章,图片最大5MB
|
|
28
28
|
*/
|
|
29
29
|
CreateSealByImage(req: CreateSealByImageRequest, cb?: (error: string, rep: CreateSealByImageResponse) => void): Promise<CreateSealByImageResponse>;
|
|
30
30
|
/**
|
|
@@ -50,7 +50,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
50
50
|
return this.request("ChannelCreateFlowByFiles", req, cb);
|
|
51
51
|
}
|
|
52
52
|
/**
|
|
53
|
-
* 渠道通过图片为子客代创建印章,图片最大
|
|
53
|
+
* 渠道通过图片为子客代创建印章,图片最大5MB
|
|
54
54
|
*/
|
|
55
55
|
async CreateSealByImage(req, cb) {
|
|
56
56
|
return this.request("CreateSealByImage", req, cb);
|
|
@@ -487,6 +487,26 @@ export interface Certificates {
|
|
|
487
487
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
488
488
|
*/
|
|
489
489
|
EncryptAlgorithm: string;
|
|
490
|
+
/**
|
|
491
|
+
* 上传CA证书的加密算法
|
|
492
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
493
|
+
*/
|
|
494
|
+
CAEncryptAlgorithms: Array<string>;
|
|
495
|
+
/**
|
|
496
|
+
* 上传CA证书的过期时间
|
|
497
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
498
|
+
*/
|
|
499
|
+
CAEndTimes: Array<string>;
|
|
500
|
+
/**
|
|
501
|
+
* 上传CA证书的通用名称
|
|
502
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
503
|
+
*/
|
|
504
|
+
CACommonNames: Array<string>;
|
|
505
|
+
/**
|
|
506
|
+
* 证书预审核信息
|
|
507
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
508
|
+
*/
|
|
509
|
+
PreAuditInfo: PreAuditInfo;
|
|
490
510
|
}
|
|
491
511
|
/**
|
|
492
512
|
* 获取证书列表(DescribeCertificates)返回参数键为 Certificates 数组下,key为CertificateExtra 的内容。
|
|
@@ -2106,6 +2126,26 @@ export interface RevokeCertificateRequest {
|
|
|
2106
2126
|
*/
|
|
2107
2127
|
Reason?: string;
|
|
2108
2128
|
}
|
|
2129
|
+
/**
|
|
2130
|
+
* 预审核信息列表
|
|
2131
|
+
*/
|
|
2132
|
+
export interface PreAuditInfo {
|
|
2133
|
+
/**
|
|
2134
|
+
* 证书总年限
|
|
2135
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2136
|
+
*/
|
|
2137
|
+
TotalPeriod: number;
|
|
2138
|
+
/**
|
|
2139
|
+
* 证书当前年限
|
|
2140
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2141
|
+
*/
|
|
2142
|
+
NowPeriod: number;
|
|
2143
|
+
/**
|
|
2144
|
+
* 证书预审核管理人ID
|
|
2145
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
2146
|
+
*/
|
|
2147
|
+
ManagerId: string;
|
|
2148
|
+
}
|
|
2109
2149
|
/**
|
|
2110
2150
|
* 获取证书列表(DescribeCertificate)返回参数键为 SubmittedData 的内容。
|
|
2111
2151
|
*/
|
|
@@ -290,11 +290,11 @@ export interface LoginNodeOverview {
|
|
|
290
290
|
*/
|
|
291
291
|
export interface CFSOption {
|
|
292
292
|
/**
|
|
293
|
-
*
|
|
293
|
+
* 文件系统本地挂载路径。
|
|
294
294
|
*/
|
|
295
295
|
LocalPath: string;
|
|
296
296
|
/**
|
|
297
|
-
* 文件系统远程挂载ip
|
|
297
|
+
* 文件系统远程挂载ip及路径。
|
|
298
298
|
*/
|
|
299
299
|
RemotePath: string;
|
|
300
300
|
/**
|
|
@@ -850,15 +850,15 @@ export interface DescribeClustersResponse {
|
|
|
850
850
|
*/
|
|
851
851
|
export interface GooseFSOption {
|
|
852
852
|
/**
|
|
853
|
-
*
|
|
853
|
+
* 文件系统本地挂载路径。
|
|
854
854
|
*/
|
|
855
855
|
LocalPath: string;
|
|
856
856
|
/**
|
|
857
|
-
*
|
|
857
|
+
* 文件系统远程挂载路径。
|
|
858
858
|
*/
|
|
859
859
|
RemotePath: string;
|
|
860
860
|
/**
|
|
861
|
-
* 文件系统master的ip
|
|
861
|
+
* 文件系统master的ip和端口。
|
|
862
862
|
*/
|
|
863
863
|
Masters: Array<string>;
|
|
864
864
|
}
|
|
@@ -130,7 +130,7 @@ HYBRID_PAID:
|
|
|
130
130
|
*/
|
|
131
131
|
ServiceLimit?: ServiceLimit;
|
|
132
132
|
/**
|
|
133
|
-
*
|
|
133
|
+
* 回调地址,用于回调创建服务状态信息,回调格式&内容详情见:[TI-ONE 接口回调说明](https://cloud.tencent.com/document/product/851/84292)
|
|
134
134
|
*/
|
|
135
135
|
CallbackUrl?: string;
|
|
136
136
|
}
|
|
@@ -1158,6 +1158,10 @@ export interface CreateBatchTaskRequest {
|
|
|
1158
1158
|
* 备注
|
|
1159
1159
|
*/
|
|
1160
1160
|
Remark?: string;
|
|
1161
|
+
/**
|
|
1162
|
+
* 任务执行结果回调URL,仅支持http和https。回调格式&内容详见: [TI-ONE 接口回调说明](https://cloud.tencent.com/document/product/851/84292)
|
|
1163
|
+
*/
|
|
1164
|
+
CallbackUrl?: string;
|
|
1161
1165
|
}
|
|
1162
1166
|
/**
|
|
1163
1167
|
* DescribeLatestTrainingMetrics返回参数结构体
|
|
@@ -2771,7 +2775,7 @@ export interface CreateTrainingTaskResponse {
|
|
|
2771
2775
|
/**
|
|
2772
2776
|
* 训练任务ID
|
|
2773
2777
|
*/
|
|
2774
|
-
Id
|
|
2778
|
+
Id?: string;
|
|
2775
2779
|
/**
|
|
2776
2780
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
2777
2781
|
*/
|
|
@@ -2883,6 +2887,10 @@ export interface CreateTrainingTaskRequest {
|
|
|
2883
2887
|
* 数据来源,eg:DATASET、COS、CFS、HDFS
|
|
2884
2888
|
*/
|
|
2885
2889
|
DataSource?: string;
|
|
2890
|
+
/**
|
|
2891
|
+
* 回调地址,用于创建/启动/停止训练任务的异步回调。回调格式&内容详见:[[TI-ONE接口回调说明]](https://cloud.tencent.com/document/product/851/84292)
|
|
2892
|
+
*/
|
|
2893
|
+
CallbackUrl?: string;
|
|
2886
2894
|
}
|
|
2887
2895
|
/**
|
|
2888
2896
|
* 实例状况
|
|
@@ -3700,7 +3708,7 @@ export interface CreateModelServiceResponse {
|
|
|
3700
3708
|
* 生成的模型服务
|
|
3701
3709
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
3702
3710
|
*/
|
|
3703
|
-
Service
|
|
3711
|
+
Service?: Service;
|
|
3704
3712
|
/**
|
|
3705
3713
|
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
3706
3714
|
*/
|
|
@@ -4338,6 +4346,11 @@ export interface TrainingTaskDetail {
|
|
|
4338
4346
|
* 任务状态,eg:STARTING启动中、RUNNING运行中、STOPPING停止中、STOPPED已停止、FAILED异常、SUCCEED已完成
|
|
4339
4347
|
*/
|
|
4340
4348
|
Status: string;
|
|
4349
|
+
/**
|
|
4350
|
+
* 回调地址
|
|
4351
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4352
|
+
*/
|
|
4353
|
+
CallbackUrl: string;
|
|
4341
4354
|
}
|
|
4342
4355
|
/**
|
|
4343
4356
|
* DescribeTrainingTasks返回参数结构体
|
|
@@ -4689,6 +4702,11 @@ export interface TrainingTaskSetItem {
|
|
|
4689
4702
|
注意:此字段可能返回 null,表示取不到有效值。
|
|
4690
4703
|
*/
|
|
4691
4704
|
Tags: Array<Tag>;
|
|
4705
|
+
/**
|
|
4706
|
+
* 回调地址
|
|
4707
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
4708
|
+
*/
|
|
4709
|
+
CallbackUrl: string;
|
|
4692
4710
|
}
|
|
4693
4711
|
/**
|
|
4694
4712
|
* DescribeTrainingModelVersions返回参数结构体
|
|
@@ -744,15 +744,15 @@ export interface SdkAppIdNewTrtcTimeUsage {
|
|
|
744
744
|
*/
|
|
745
745
|
export interface EncodeParams {
|
|
746
746
|
/**
|
|
747
|
-
* 混流-输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz
|
|
747
|
+
* 混流-输出流音频采样率。取值为[48000, 44100, 32000, 24000, 16000, 8000],单位是Hz。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
|
|
748
748
|
*/
|
|
749
749
|
AudioSampleRate: number;
|
|
750
750
|
/**
|
|
751
|
-
* 混流-输出流音频码率。取值范围[8,500],单位为kbps
|
|
751
|
+
* 混流-输出流音频码率。取值范围[8,500],单位为kbps。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
|
|
752
752
|
*/
|
|
753
753
|
AudioBitrate: number;
|
|
754
754
|
/**
|
|
755
|
-
* 混流-输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2
|
|
755
|
+
* 混流-输出流音频声道数,取值范围[1,2],1表示混流输出音频为单声道,2表示混流输出音频为双声道。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
|
|
756
756
|
*/
|
|
757
757
|
AudioChannels: number;
|
|
758
758
|
/**
|
|
@@ -791,7 +791,7 @@ export interface EncodeParams {
|
|
|
791
791
|
*/
|
|
792
792
|
BackgroundImageId?: number;
|
|
793
793
|
/**
|
|
794
|
-
* 混流-输出流音频编码类型,取值范围[0,1, 2],0为LC-AAC,1为HE-AAC,2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]
|
|
794
|
+
* 混流-输出流音频编码类型,取值范围[0,1, 2],0为LC-AAC,1为HE-AAC,2为HE-AACv2。默认值为0。当音频编码设置为HE-AACv2时,只支持输出流音频声道数为双声道。HE-AAC和HE-AACv2支持的输出流音频采样率范围为[48000, 44100, 32000, 24000, 16000]。混流任务发起过程中,为了保持CDN链接的稳定,不要修改音频参数(codec、采样率、码率、声道数)。
|
|
795
795
|
*/
|
|
796
796
|
AudioCodec?: number;
|
|
797
797
|
/**
|
|
@@ -941,7 +941,7 @@ export declare class Client extends AbstractClient {
|
|
|
941
941
|
DisassociateAddress(req: DisassociateAddressRequest, cb?: (error: string, rep: DisassociateAddressResponse) => void): Promise<DisassociateAddressResponse>;
|
|
942
942
|
/**
|
|
943
943
|
* 本接口(ReturnNormalAddresses)用于解绑并释放普通公网IP。
|
|
944
|
-
为完善公网IP的访问管理功能,此接口于2022年12月15日升级优化鉴权功能,升级后子用户调用此接口需向主账号申请CAM策略授权,否则可能调用失败。您可以提前为子账号配置操作授权,详情见
|
|
944
|
+
为完善公网IP的访问管理功能,此接口于2022年12月15日升级优化鉴权功能,升级后子用户调用此接口需向主账号申请CAM策略授权,否则可能调用失败。您可以提前为子账号配置操作授权,详情见[授权指南](https://cloud.tencent.com/document/product/598/34545)。
|
|
945
945
|
*/
|
|
946
946
|
ReturnNormalAddresses(req: ReturnNormalAddressesRequest, cb?: (error: string, rep: ReturnNormalAddressesResponse) => void): Promise<ReturnNormalAddressesResponse>;
|
|
947
947
|
/**
|
|
@@ -1347,7 +1347,7 @@ class Client extends abstract_client_1.AbstractClient {
|
|
|
1347
1347
|
}
|
|
1348
1348
|
/**
|
|
1349
1349
|
* 本接口(ReturnNormalAddresses)用于解绑并释放普通公网IP。
|
|
1350
|
-
为完善公网IP的访问管理功能,此接口于2022年12月15日升级优化鉴权功能,升级后子用户调用此接口需向主账号申请CAM策略授权,否则可能调用失败。您可以提前为子账号配置操作授权,详情见
|
|
1350
|
+
为完善公网IP的访问管理功能,此接口于2022年12月15日升级优化鉴权功能,升级后子用户调用此接口需向主账号申请CAM策略授权,否则可能调用失败。您可以提前为子账号配置操作授权,详情见[授权指南](https://cloud.tencent.com/document/product/598/34545)。
|
|
1351
1351
|
*/
|
|
1352
1352
|
async ReturnNormalAddresses(req, cb) {
|
|
1353
1353
|
return this.request("ReturnNormalAddresses", req, cb);
|
|
@@ -1366,13 +1366,10 @@ export interface ModifyBandwidthPackageAttributeRequest {
|
|
|
1366
1366
|
*/
|
|
1367
1367
|
BandwidthPackageName: string;
|
|
1368
1368
|
/**
|
|
1369
|
-
*
|
|
1369
|
+
* 带宽包计费模式,示例 :
|
|
1370
|
+
'TOP5_POSTPAID_BY_MONTH'(后付费-TOP5计费)
|
|
1370
1371
|
*/
|
|
1371
1372
|
ChargeType?: string;
|
|
1372
|
-
/**
|
|
1373
|
-
* 退款时迁移为后付费带宽包。默认值:否
|
|
1374
|
-
*/
|
|
1375
|
-
MigrateOnRefund?: boolean;
|
|
1376
1373
|
}
|
|
1377
1374
|
/**
|
|
1378
1375
|
* TransformAddress返回参数结构体
|
|
@@ -6778,9 +6775,13 @@ export interface CreateVpcEndPointServiceRequest {
|
|
|
6778
6775
|
*/
|
|
6779
6776
|
ServiceInstanceId: string;
|
|
6780
6777
|
/**
|
|
6781
|
-
*
|
|
6778
|
+
* ~~是否是PassService类型。该字段已废弃,请不要使用该字段。~~
|
|
6782
6779
|
*/
|
|
6783
6780
|
IsPassService?: boolean;
|
|
6781
|
+
/**
|
|
6782
|
+
* 挂载的PAAS服务类型,CLB,CDB,CRS,不填默认挂载为CLB。
|
|
6783
|
+
*/
|
|
6784
|
+
ServiceType?: string;
|
|
6784
6785
|
}
|
|
6785
6786
|
/**
|
|
6786
6787
|
* `IPv6`地址信息。
|
|
@@ -7536,6 +7537,10 @@ AnycastEIP是否用于绑定负载均衡。
|
|
|
7536
7537
|
* EIP名称,用于申请EIP时用户自定义该EIP的个性化名称,默认值:未命名
|
|
7537
7538
|
*/
|
|
7538
7539
|
AddressName?: string;
|
|
7540
|
+
/**
|
|
7541
|
+
* 网络出口,默认是:center_egress1
|
|
7542
|
+
*/
|
|
7543
|
+
Egress?: string;
|
|
7539
7544
|
}
|
|
7540
7545
|
/**
|
|
7541
7546
|
* 合规化审批单
|