tencentcloud-sdk-nodejs-emr 4.1.2 → 4.1.6

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/README.md CHANGED
@@ -44,11 +44,19 @@ npm install tencentcloud-sdk-nodejs-vpc --save
44
44
 
45
45
  ### 安装全产品 SDK
46
46
 
47
+ 如果项目依赖的云产品较多,可以引入全产品 SDK。
48
+
47
49
  ```
48
50
  npm install tencentcloud-sdk-nodejs --save
49
51
  ```
50
52
 
51
- 全产品 SDK 包含了所有云产品的调用代码,体积偏大,对体积敏感的场景,推荐安装指定产品 SDK。
53
+ 全产品 SDK 包含所有云产品调用代码和 TypeScript 类型文件,体积偏大。对于体积敏感的场景,推荐安装指定产品 SDK。
54
+
55
+ 如果既希望全产品调用,又对包体积比较敏感,可以使用 Slim 版本 SDK。Slim SDK 移除类型文件,并进行了代码压缩,适合体积敏感场景使用:
56
+
57
+ ```
58
+ npm install tencentcloud-sdk-slim-nodejs --save
59
+ ```
52
60
 
53
61
  ## 通过源码包安装
54
62
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-emr",
3
- "version": "4.1.2",
3
+ "version": "4.1.6",
4
4
  "description": "腾讯云 API NODEJS SDK",
5
5
  "main": "./tencentcloud/index.js",
6
6
  "module": "./es/index.js",
@@ -10,6 +10,7 @@
10
10
  "build": "concurrently 'npm:build:cjs' 'npm:build:es'",
11
11
  "build:cjs": "tsc -p tsconfig.json",
12
12
  "build:es": "tsc -p tsconfig.es.json",
13
+ "build:slim": "node ./scripts/build_slim.js",
13
14
  "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
14
15
  "clean": "rimraf tencentcloud es"
15
16
  },
@@ -53,6 +54,7 @@
53
54
  "babel-eslint": "^10.0.2",
54
55
  "chai": "^4.2.0",
55
56
  "concurrently": "^6.5.1",
57
+ "esbuild": "^0.25.0",
56
58
  "eslint": "^6.8.0",
57
59
  "eslint-plugin-react": "^7.17.0",
58
60
  "mocha": "^8.4.0",
@@ -629,7 +629,6 @@ export interface ModifyPodNumResponse {
629
629
  export interface CreateInstanceResponse {
630
630
  /**
631
631
  * 实例ID
632
- 注意:此字段可能返回 null,表示取不到有效值。
633
632
  */
634
633
  InstanceId?: string;
635
634
  /**
@@ -944,7 +943,6 @@ export interface KeyValue {
944
943
  export interface DescribeServiceNodeInfosResponse {
945
944
  /**
946
945
  * 总数量
947
- 注意:此字段可能返回 null,表示取不到有效值。
948
946
  */
949
947
  TotalCnt?: number;
950
948
  /**
@@ -954,7 +952,6 @@ export interface DescribeServiceNodeInfosResponse {
954
952
  ServiceNodeList?: Array<ServiceNodeDetailInfo>;
955
953
  /**
956
954
  * 集群所有节点的别名序列化
957
- 注意:此字段可能返回 null,表示取不到有效值。
958
955
  */
959
956
  AliasInfo?: string;
960
957
  /**
@@ -2194,12 +2191,10 @@ export interface DescribeInstancesResponse {
2194
2191
  export interface ModifyYarnDeployResponse {
2195
2192
  /**
2196
2193
  * 为false不点亮部署生效、重置
2197
- 注意:此字段可能返回 null,表示取不到有效值。
2198
2194
  */
2199
2195
  IsDraft?: boolean;
2200
2196
  /**
2201
2197
  * 错误信息,预留
2202
- 注意:此字段可能返回 null,表示取不到有效值。
2203
2198
  */
2204
2199
  ErrorMsg?: string;
2205
2200
  /**
@@ -2434,7 +2429,6 @@ export interface EmrListInstance {
2434
2429
  ClusterId?: string;
2435
2430
  /**
2436
2431
  * 常见状态描述:集群生产中,集群运行中,集群创建中,集群已关闭,集群已删除
2437
- 注意:此字段可能返回 null,表示取不到有效值。
2438
2432
  */
2439
2433
  StatusDesc?: string;
2440
2434
  /**
@@ -2475,37 +2469,30 @@ export interface EmrListInstance {
2475
2469
  Id?: number;
2476
2470
  /**
2477
2471
  * 产品ID
2478
- 注意:此字段可能返回 null,表示取不到有效值。
2479
2472
  */
2480
2473
  ProductId?: number;
2481
2474
  /**
2482
2475
  * 项目ID
2483
- 注意:此字段可能返回 null,表示取不到有效值。
2484
2476
  */
2485
2477
  ProjectId?: number;
2486
2478
  /**
2487
2479
  * 区域
2488
- 注意:此字段可能返回 null,表示取不到有效值。
2489
2480
  */
2490
2481
  RegionId?: number;
2491
2482
  /**
2492
2483
  * 子网ID
2493
- 注意:此字段可能返回 null,表示取不到有效值。
2494
2484
  */
2495
2485
  SubnetId?: number;
2496
2486
  /**
2497
2487
  * 网络ID
2498
- 注意:此字段可能返回 null,表示取不到有效值。
2499
2488
  */
2500
2489
  VpcId?: number;
2501
2490
  /**
2502
2491
  * 地区
2503
- 注意:此字段可能返回 null,表示取不到有效值。
2504
2492
  */
2505
2493
  Zone?: string;
2506
2494
  /**
2507
2495
  * 状态码, 取值为-2(集群已删除), -1(集群已关闭), 0(集群生产中), 2(集群运行中), 3(集群创建中)
2508
- 注意:此字段可能返回 null,表示取不到有效值。
2509
2496
  */
2510
2497
  Status?: number;
2511
2498
  /**
@@ -2515,47 +2502,38 @@ export interface EmrListInstance {
2515
2502
  Tags?: Array<Tag>;
2516
2503
  /**
2517
2504
  * 告警信息
2518
- 注意:此字段可能返回 null,表示取不到有效值。
2519
2505
  */
2520
2506
  AlarmInfo?: string;
2521
2507
  /**
2522
2508
  * 是否是woodpecker集群
2523
- 注意:此字段可能返回 null,表示取不到有效值。
2524
2509
  */
2525
2510
  IsWoodpeckerCluster?: number;
2526
2511
  /**
2527
2512
  * Vpc中文
2528
- 注意:此字段可能返回 null,表示取不到有效值。
2529
2513
  */
2530
2514
  VpcName?: string;
2531
2515
  /**
2532
2516
  * 子网中文
2533
- 注意:此字段可能返回 null,表示取不到有效值。
2534
2517
  */
2535
2518
  SubnetName?: string;
2536
2519
  /**
2537
2520
  * 字符串VpcId
2538
- 注意:此字段可能返回 null,表示取不到有效值。
2539
2521
  */
2540
2522
  UniqVpcId?: string;
2541
2523
  /**
2542
2524
  * 字符串子网
2543
- 注意:此字段可能返回 null,表示取不到有效值。
2544
2525
  */
2545
2526
  UniqSubnetId?: string;
2546
2527
  /**
2547
2528
  * 集群类型
2548
- 注意:此字段可能返回 null,表示取不到有效值。
2549
2529
  */
2550
2530
  ClusterClass?: string;
2551
2531
  /**
2552
2532
  * 是否为跨AZ集群
2553
- 注意:此字段可能返回 null,表示取不到有效值。
2554
2533
  */
2555
2534
  IsMultiZoneCluster?: boolean;
2556
2535
  /**
2557
2536
  * 是否手戳集群
2558
- 注意:此字段可能返回 null,表示取不到有效值。
2559
2537
  */
2560
2538
  IsHandsCluster?: boolean;
2561
2539
  /**
@@ -2565,14 +2543,16 @@ export interface EmrListInstance {
2565
2543
  OutSideSoftInfo?: Array<SoftDependInfo>;
2566
2544
  /**
2567
2545
  * 当前集群的应用场景是否支持体外客户端
2568
- 注意:此字段可能返回 null,表示取不到有效值。
2569
2546
  */
2570
2547
  IsSupportOutsideCluster?: boolean;
2571
2548
  /**
2572
2549
  * 是否专有集群场景集群
2573
- 注意:此字段可能返回 null,表示取不到有效值。
2574
2550
  */
2575
2551
  IsDedicatedCluster?: boolean;
2552
+ /**
2553
+ * 集群支持克隆
2554
+ */
2555
+ IsSupportClone?: boolean;
2576
2556
  }
2577
2557
  /**
2578
2558
  * 磁盘信息
@@ -4476,7 +4456,6 @@ export interface DescribeYarnScheduleHistoryResponse {
4476
4456
  Tasks?: Array<SchedulerTaskInfo>;
4477
4457
  /**
4478
4458
  * 任务详情总数
4479
- 注意:此字段可能返回 null,表示取不到有效值。
4480
4459
  */
4481
4460
  Total?: number;
4482
4461
  /**
@@ -6235,7 +6214,6 @@ export interface DescribeEmrOverviewMetricsResponse {
6235
6214
  export interface ClusterRelationMeta {
6236
6215
  /**
6237
6216
  * 集群类型
6238
- 注意:此字段可能返回 null,表示取不到有效值。
6239
6217
  */
6240
6218
  ClusterType?: string;
6241
6219
  /**
@@ -6569,7 +6547,6 @@ export interface RepeatStrategy {
6569
6547
  NotRepeat?: NotRepeatStrategy;
6570
6548
  /**
6571
6549
  * 规则过期时间,超过该时间后,规则将自动置为暂停状态,形式为"2020-07-23 00:00:00"。必须填写
6572
- 注意:此字段可能返回 null,表示取不到有效值。
6573
6550
  */
6574
6551
  Expire?: string;
6575
6552
  /**