tencentcloud-sdk-nodejs-cloudapp 4.1.180 → 4.1.183
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/es/services/cloudapp/v20220530/cloudapp_client.js +3 -0
- package/package.json +1 -1
- package/tencentcloud/services/cloudapp/v20220530/cloudapp_client.d.ts +5 -1
- package/tencentcloud/services/cloudapp/v20220530/cloudapp_client.js +6 -0
- package/tencentcloud/services/cloudapp/v20220530/cloudapp_models.d.ts +60 -13
|
@@ -6,6 +6,9 @@ export class Client extends TencentCloudCommon.AbstractClient {
|
|
|
6
6
|
async VerifyLicense(req, cb) {
|
|
7
7
|
return this.request("VerifyLicense", req, cb);
|
|
8
8
|
}
|
|
9
|
+
async IssueLicense(req, cb) {
|
|
10
|
+
return this.request("IssueLicense", req, cb);
|
|
11
|
+
}
|
|
9
12
|
async DescribeLicense(req, cb) {
|
|
10
13
|
return this.request("DescribeLicense", req, cb);
|
|
11
14
|
}
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { DescribeLicenseResponse, VerifyLicenseRequest, VerifyLicenseResponse, DescribeLicenseRequest } from "./cloudapp_models";
|
|
2
|
+
import { DescribeLicenseResponse, VerifyLicenseRequest, IssueLicenseResponse, VerifyLicenseResponse, DescribeLicenseRequest, IssueLicenseRequest } from "./cloudapp_models";
|
|
3
3
|
/**
|
|
4
4
|
* cloudapp client
|
|
5
5
|
* @class
|
|
@@ -10,6 +10,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
|
|
|
10
10
|
* 从软件进程读取 LICENSE。
|
|
11
11
|
*/
|
|
12
12
|
VerifyLicense(req?: VerifyLicenseRequest, cb?: (error: string, rep: VerifyLicenseResponse) => void): Promise<VerifyLicenseResponse>;
|
|
13
|
+
/**
|
|
14
|
+
* 颁发 License
|
|
15
|
+
*/
|
|
16
|
+
IssueLicense(req: IssueLicenseRequest, cb?: (error: string, rep: IssueLicenseResponse) => void): Promise<IssueLicenseResponse>;
|
|
13
17
|
/**
|
|
14
18
|
* # DescribeLicense
|
|
15
19
|
|
|
@@ -34,6 +34,12 @@ class Client extends TencentCloudCommon.AbstractClient {
|
|
|
34
34
|
async VerifyLicense(req, cb) {
|
|
35
35
|
return this.request("VerifyLicense", req, cb);
|
|
36
36
|
}
|
|
37
|
+
/**
|
|
38
|
+
* 颁发 License
|
|
39
|
+
*/
|
|
40
|
+
async IssueLicense(req, cb) {
|
|
41
|
+
return this.request("IssueLicense", req, cb);
|
|
42
|
+
}
|
|
37
43
|
/**
|
|
38
44
|
* # DescribeLicense
|
|
39
45
|
|
|
@@ -64,19 +64,6 @@ export interface DescribeLicenseResponse {
|
|
|
64
64
|
* VerifyLicense请求参数结构体
|
|
65
65
|
*/
|
|
66
66
|
export type VerifyLicenseRequest = null;
|
|
67
|
-
/**
|
|
68
|
-
* 元数据展示信息
|
|
69
|
-
*/
|
|
70
|
-
export interface DisplayMetadata {
|
|
71
|
-
/**
|
|
72
|
-
* <p>展示的名称</p>
|
|
73
|
-
*/
|
|
74
|
-
Name?: string;
|
|
75
|
-
/**
|
|
76
|
-
* <p>展示的值</p>
|
|
77
|
-
*/
|
|
78
|
-
Value?: string;
|
|
79
|
-
}
|
|
80
67
|
/**
|
|
81
68
|
* 表示应用实例的软件授权,包含颁发信息、激活信息等内容。
|
|
82
69
|
*/
|
|
@@ -172,6 +159,28 @@ export interface License {
|
|
|
172
159
|
*/
|
|
173
160
|
CreateSource?: string;
|
|
174
161
|
}
|
|
162
|
+
/**
|
|
163
|
+
* 元数据展示信息
|
|
164
|
+
*/
|
|
165
|
+
export interface DisplayMetadata {
|
|
166
|
+
/**
|
|
167
|
+
* <p>展示的名称</p>
|
|
168
|
+
*/
|
|
169
|
+
Name?: string;
|
|
170
|
+
/**
|
|
171
|
+
* <p>展示的值</p>
|
|
172
|
+
*/
|
|
173
|
+
Value?: string;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* IssueLicense返回参数结构体
|
|
177
|
+
*/
|
|
178
|
+
export interface IssueLicenseResponse {
|
|
179
|
+
/**
|
|
180
|
+
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
181
|
+
*/
|
|
182
|
+
RequestId?: string;
|
|
183
|
+
}
|
|
175
184
|
/**
|
|
176
185
|
* 描述键值对过滤器,用于条件过滤查询。例如过滤 ID、名称、状态等
|
|
177
186
|
|
|
@@ -235,3 +244,41 @@ export interface DescribeLicenseRequest {
|
|
|
235
244
|
*/
|
|
236
245
|
Filters?: Array<Filter>;
|
|
237
246
|
}
|
|
247
|
+
/**
|
|
248
|
+
* IssueLicense请求参数结构体
|
|
249
|
+
*/
|
|
250
|
+
export interface IssueLicenseRequest {
|
|
251
|
+
/**
|
|
252
|
+
* <p>云应用实例 ID</p>
|
|
253
|
+
*/
|
|
254
|
+
CloudappId: string;
|
|
255
|
+
/**
|
|
256
|
+
* <p>云应用颁发的 License 授权 ID。系统中唯一,伙伴可通过 License 颁发的订阅接口中获取</p>
|
|
257
|
+
*/
|
|
258
|
+
LicenseId: string;
|
|
259
|
+
/**
|
|
260
|
+
* <p>License 的详细数据</p>
|
|
261
|
+
*/
|
|
262
|
+
LicenseData: PartnerLicenseData;
|
|
263
|
+
/**
|
|
264
|
+
* <p>License 的激活模式</p>枚举值:<ul><li> immediate : 立即激活</li><li> scheduled: 指定时间激活</li></ul>
|
|
265
|
+
*/
|
|
266
|
+
ActivateMode?: string;
|
|
267
|
+
/**
|
|
268
|
+
* <p>激活时间,指定时间激活时需要传该字段</p>
|
|
269
|
+
*/
|
|
270
|
+
ActivateAt?: string;
|
|
271
|
+
}
|
|
272
|
+
/**
|
|
273
|
+
* License 内容信息
|
|
274
|
+
*/
|
|
275
|
+
export interface PartnerLicenseData {
|
|
276
|
+
/**
|
|
277
|
+
* <p>License 文本内容。可传入密钥、证书等文本型 License 内容,二进制内容请进行 base64 编码</p>
|
|
278
|
+
*/
|
|
279
|
+
Text: string;
|
|
280
|
+
/**
|
|
281
|
+
* <p>License 的额外信息,JSON 字符串格式</p>
|
|
282
|
+
*/
|
|
283
|
+
ExtraData?: string;
|
|
284
|
+
}
|