@alicloud/adb20211201 1.3.4 → 1.3.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/adb20211201",
3
- "version": "1.3.4",
3
+ "version": "1.3.6",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
@@ -21,7 +21,7 @@
21
21
  "dependencies": {
22
22
  "@alicloud/tea-typescript": "^1.7.1",
23
23
  "@alicloud/tea-util": "^1.4.7",
24
- "@alicloud/openapi-client": "^0.4.4",
24
+ "@alicloud/openapi-client": "^0.4.7",
25
25
  "@alicloud/openapi-util": "^0.3.2",
26
26
  "@alicloud/endpoint-util": "^0.0.1"
27
27
  },
package/src/client.ts CHANGED
@@ -373,6 +373,46 @@ export class LogAnalyzeResult extends $tea.Model {
373
373
  }
374
374
  }
375
375
 
376
+ export class OperatorNode extends $tea.Model {
377
+ children?: OperatorNode[];
378
+ id?: number;
379
+ levelWidth?: number;
380
+ nodeDepth?: number;
381
+ nodeName?: string;
382
+ nodeWidth?: number;
383
+ parentId?: number;
384
+ stats?: OperatorNodeStats;
385
+ static names(): { [key: string]: string } {
386
+ return {
387
+ children: 'children',
388
+ id: 'id',
389
+ levelWidth: 'levelWidth',
390
+ nodeDepth: 'nodeDepth',
391
+ nodeName: 'nodeName',
392
+ nodeWidth: 'nodeWidth',
393
+ parentId: 'parentId',
394
+ stats: 'stats',
395
+ };
396
+ }
397
+
398
+ static types(): { [key: string]: any } {
399
+ return {
400
+ children: { 'type': 'array', 'itemType': OperatorNode },
401
+ id: 'number',
402
+ levelWidth: 'number',
403
+ nodeDepth: 'number',
404
+ nodeName: 'string',
405
+ nodeWidth: 'number',
406
+ parentId: 'number',
407
+ stats: OperatorNodeStats,
408
+ };
409
+ }
410
+
411
+ constructor(map?: { [key: string]: any }) {
412
+ super(map);
413
+ }
414
+ }
415
+
376
416
  export class SerDeInfoModel extends $tea.Model {
377
417
  name?: string;
378
418
  parameters?: { [key: string]: string };
@@ -515,6 +555,28 @@ export class SparkAttemptInfo extends $tea.Model {
515
555
  }
516
556
  }
517
557
 
558
+ export class SparkOperatorInfo extends $tea.Model {
559
+ metricValue?: number;
560
+ operatorName?: Buffer;
561
+ static names(): { [key: string]: string } {
562
+ return {
563
+ metricValue: 'MetricValue',
564
+ operatorName: 'OperatorName',
565
+ };
566
+ }
567
+
568
+ static types(): { [key: string]: any } {
569
+ return {
570
+ metricValue: 'number',
571
+ operatorName: 'Buffer',
572
+ };
573
+ }
574
+
575
+ constructor(map?: { [key: string]: any }) {
576
+ super(map);
577
+ }
578
+ }
579
+
518
580
  export class SparkSession extends $tea.Model {
519
581
  active?: string;
520
582
  aliyunUid?: number;
@@ -6248,15 +6310,18 @@ export class GetSparkAppAttemptLogResponse extends $tea.Model {
6248
6310
 
6249
6311
  export class GetSparkAppInfoRequest extends $tea.Model {
6250
6312
  appId?: string;
6313
+ DBClusterId?: string;
6251
6314
  static names(): { [key: string]: string } {
6252
6315
  return {
6253
6316
  appId: 'AppId',
6317
+ DBClusterId: 'DBClusterId',
6254
6318
  };
6255
6319
  }
6256
6320
 
6257
6321
  static types(): { [key: string]: any } {
6258
6322
  return {
6259
6323
  appId: 'string',
6324
+ DBClusterId: 'string',
6260
6325
  };
6261
6326
  }
6262
6327
 
@@ -6314,10 +6379,12 @@ export class GetSparkAppInfoResponse extends $tea.Model {
6314
6379
 
6315
6380
  export class GetSparkAppLogRequest extends $tea.Model {
6316
6381
  appId?: string;
6382
+ DBClusterId?: string;
6317
6383
  logLength?: number;
6318
6384
  static names(): { [key: string]: string } {
6319
6385
  return {
6320
6386
  appId: 'AppId',
6387
+ DBClusterId: 'DBClusterId',
6321
6388
  logLength: 'LogLength',
6322
6389
  };
6323
6390
  }
@@ -6325,6 +6392,7 @@ export class GetSparkAppLogRequest extends $tea.Model {
6325
6392
  static types(): { [key: string]: any } {
6326
6393
  return {
6327
6394
  appId: 'string',
6395
+ DBClusterId: 'string',
6328
6396
  logLength: 'number',
6329
6397
  };
6330
6398
  }
@@ -6383,15 +6451,18 @@ export class GetSparkAppLogResponse extends $tea.Model {
6383
6451
 
6384
6452
  export class GetSparkAppMetricsRequest extends $tea.Model {
6385
6453
  appId?: string;
6454
+ DBClusterId?: string;
6386
6455
  static names(): { [key: string]: string } {
6387
6456
  return {
6388
6457
  appId: 'AppId',
6458
+ DBClusterId: 'DBClusterId',
6389
6459
  };
6390
6460
  }
6391
6461
 
6392
6462
  static types(): { [key: string]: any } {
6393
6463
  return {
6394
6464
  appId: 'string',
6465
+ DBClusterId: 'string',
6395
6466
  };
6396
6467
  }
6397
6468
 
@@ -6449,15 +6520,18 @@ export class GetSparkAppMetricsResponse extends $tea.Model {
6449
6520
 
6450
6521
  export class GetSparkAppStateRequest extends $tea.Model {
6451
6522
  appId?: string;
6523
+ DBClusterId?: string;
6452
6524
  static names(): { [key: string]: string } {
6453
6525
  return {
6454
6526
  appId: 'AppId',
6527
+ DBClusterId: 'DBClusterId',
6455
6528
  };
6456
6529
  }
6457
6530
 
6458
6531
  static types(): { [key: string]: any } {
6459
6532
  return {
6460
6533
  appId: 'string',
6534
+ DBClusterId: 'string',
6461
6535
  };
6462
6536
  }
6463
6537
 
@@ -6515,15 +6589,18 @@ export class GetSparkAppStateResponse extends $tea.Model {
6515
6589
 
6516
6590
  export class GetSparkAppWebUiAddressRequest extends $tea.Model {
6517
6591
  appId?: string;
6592
+ DBClusterId?: string;
6518
6593
  static names(): { [key: string]: string } {
6519
6594
  return {
6520
6595
  appId: 'AppId',
6596
+ DBClusterId: 'DBClusterId',
6521
6597
  };
6522
6598
  }
6523
6599
 
6524
6600
  static types(): { [key: string]: any } {
6525
6601
  return {
6526
6602
  appId: 'string',
6603
+ DBClusterId: 'string',
6527
6604
  };
6528
6605
  }
6529
6606
 
@@ -7577,15 +7654,18 @@ export class GetViewObjectsResponse extends $tea.Model {
7577
7654
 
7578
7655
  export class KillSparkAppRequest extends $tea.Model {
7579
7656
  appId?: string;
7657
+ DBClusterId?: string;
7580
7658
  static names(): { [key: string]: string } {
7581
7659
  return {
7582
7660
  appId: 'AppId',
7661
+ DBClusterId: 'DBClusterId',
7583
7662
  };
7584
7663
  }
7585
7664
 
7586
7665
  static types(): { [key: string]: any } {
7587
7666
  return {
7588
7667
  appId: 'string',
7668
+ DBClusterId: 'string',
7589
7669
  };
7590
7670
  }
7591
7671
 
@@ -7778,11 +7858,13 @@ export class KillSparkSQLEngineResponse extends $tea.Model {
7778
7858
 
7779
7859
  export class ListSparkAppAttemptsRequest extends $tea.Model {
7780
7860
  appId?: string;
7861
+ DBClusterId?: string;
7781
7862
  pageNumber?: number;
7782
7863
  pageSize?: number;
7783
7864
  static names(): { [key: string]: string } {
7784
7865
  return {
7785
7866
  appId: 'AppId',
7867
+ DBClusterId: 'DBClusterId',
7786
7868
  pageNumber: 'PageNumber',
7787
7869
  pageSize: 'PageSize',
7788
7870
  };
@@ -7791,6 +7873,7 @@ export class ListSparkAppAttemptsRequest extends $tea.Model {
7791
7873
  static types(): { [key: string]: any } {
7792
7874
  return {
7793
7875
  appId: 'string',
7876
+ DBClusterId: 'string',
7794
7877
  pageNumber: 'number',
7795
7878
  pageSize: 'number',
7796
7879
  };
@@ -8865,15 +8948,18 @@ export class ModifyElasticPlanResponse extends $tea.Model {
8865
8948
 
8866
8949
  export class PreloadSparkAppMetricsRequest extends $tea.Model {
8867
8950
  appId?: string;
8951
+ DBClusterId?: string;
8868
8952
  static names(): { [key: string]: string } {
8869
8953
  return {
8870
8954
  appId: 'AppId',
8955
+ DBClusterId: 'DBClusterId',
8871
8956
  };
8872
8957
  }
8873
8958
 
8874
8959
  static types(): { [key: string]: any } {
8875
8960
  return {
8876
8961
  appId: 'string',
8962
+ DBClusterId: 'string',
8877
8963
  };
8878
8964
  }
8879
8965
 
@@ -9721,6 +9807,37 @@ export class FiltersTermiatedTimeRange extends $tea.Model {
9721
9807
  }
9722
9808
  }
9723
9809
 
9810
+ export class OperatorNodeStats extends $tea.Model {
9811
+ bytes?: number;
9812
+ outputRows?: number;
9813
+ parameters?: string;
9814
+ peakMemory?: number;
9815
+ timeCost?: number;
9816
+ static names(): { [key: string]: string } {
9817
+ return {
9818
+ bytes: 'bytes',
9819
+ outputRows: 'outputRows',
9820
+ parameters: 'parameters',
9821
+ peakMemory: 'peakMemory',
9822
+ timeCost: 'timeCost',
9823
+ };
9824
+ }
9825
+
9826
+ static types(): { [key: string]: any } {
9827
+ return {
9828
+ bytes: 'number',
9829
+ outputRows: 'number',
9830
+ parameters: 'string',
9831
+ peakMemory: 'number',
9832
+ timeCost: 'number',
9833
+ };
9834
+ }
9835
+
9836
+ constructor(map?: { [key: string]: any }) {
9837
+ super(map);
9838
+ }
9839
+ }
9840
+
9724
9841
  export class CreateDBClusterRequestTag extends $tea.Model {
9725
9842
  key?: string;
9726
9843
  value?: string;
@@ -15432,12 +15549,18 @@ export default class Client extends OpenApi {
15432
15549
 
15433
15550
  async getSparkAppInfoWithOptions(request: GetSparkAppInfoRequest, runtime: $Util.RuntimeOptions): Promise<GetSparkAppInfoResponse> {
15434
15551
  Util.validateModel(request);
15552
+ let query = { };
15553
+ if (!Util.isUnset(request.DBClusterId)) {
15554
+ query["DBClusterId"] = request.DBClusterId;
15555
+ }
15556
+
15435
15557
  let body : {[key: string ]: any} = { };
15436
15558
  if (!Util.isUnset(request.appId)) {
15437
15559
  body["AppId"] = request.appId;
15438
15560
  }
15439
15561
 
15440
15562
  let req = new $OpenApi.OpenApiRequest({
15563
+ query: OpenApiUtil.query(query),
15441
15564
  body: OpenApiUtil.parseToMap(body),
15442
15565
  });
15443
15566
  let params = new $OpenApi.Params({
@@ -15461,6 +15584,11 @@ export default class Client extends OpenApi {
15461
15584
 
15462
15585
  async getSparkAppLogWithOptions(request: GetSparkAppLogRequest, runtime: $Util.RuntimeOptions): Promise<GetSparkAppLogResponse> {
15463
15586
  Util.validateModel(request);
15587
+ let query = { };
15588
+ if (!Util.isUnset(request.DBClusterId)) {
15589
+ query["DBClusterId"] = request.DBClusterId;
15590
+ }
15591
+
15464
15592
  let body : {[key: string ]: any} = { };
15465
15593
  if (!Util.isUnset(request.appId)) {
15466
15594
  body["AppId"] = request.appId;
@@ -15471,6 +15599,7 @@ export default class Client extends OpenApi {
15471
15599
  }
15472
15600
 
15473
15601
  let req = new $OpenApi.OpenApiRequest({
15602
+ query: OpenApiUtil.query(query),
15474
15603
  body: OpenApiUtil.parseToMap(body),
15475
15604
  });
15476
15605
  let params = new $OpenApi.Params({
@@ -15494,12 +15623,18 @@ export default class Client extends OpenApi {
15494
15623
 
15495
15624
  async getSparkAppMetricsWithOptions(request: GetSparkAppMetricsRequest, runtime: $Util.RuntimeOptions): Promise<GetSparkAppMetricsResponse> {
15496
15625
  Util.validateModel(request);
15626
+ let query = { };
15627
+ if (!Util.isUnset(request.DBClusterId)) {
15628
+ query["DBClusterId"] = request.DBClusterId;
15629
+ }
15630
+
15497
15631
  let body : {[key: string ]: any} = { };
15498
15632
  if (!Util.isUnset(request.appId)) {
15499
15633
  body["AppId"] = request.appId;
15500
15634
  }
15501
15635
 
15502
15636
  let req = new $OpenApi.OpenApiRequest({
15637
+ query: OpenApiUtil.query(query),
15503
15638
  body: OpenApiUtil.parseToMap(body),
15504
15639
  });
15505
15640
  let params = new $OpenApi.Params({
@@ -15523,12 +15658,18 @@ export default class Client extends OpenApi {
15523
15658
 
15524
15659
  async getSparkAppStateWithOptions(request: GetSparkAppStateRequest, runtime: $Util.RuntimeOptions): Promise<GetSparkAppStateResponse> {
15525
15660
  Util.validateModel(request);
15661
+ let query = { };
15662
+ if (!Util.isUnset(request.DBClusterId)) {
15663
+ query["DBClusterId"] = request.DBClusterId;
15664
+ }
15665
+
15526
15666
  let body : {[key: string ]: any} = { };
15527
15667
  if (!Util.isUnset(request.appId)) {
15528
15668
  body["AppId"] = request.appId;
15529
15669
  }
15530
15670
 
15531
15671
  let req = new $OpenApi.OpenApiRequest({
15672
+ query: OpenApiUtil.query(query),
15532
15673
  body: OpenApiUtil.parseToMap(body),
15533
15674
  });
15534
15675
  let params = new $OpenApi.Params({
@@ -15552,12 +15693,18 @@ export default class Client extends OpenApi {
15552
15693
 
15553
15694
  async getSparkAppWebUiAddressWithOptions(request: GetSparkAppWebUiAddressRequest, runtime: $Util.RuntimeOptions): Promise<GetSparkAppWebUiAddressResponse> {
15554
15695
  Util.validateModel(request);
15696
+ let query = { };
15697
+ if (!Util.isUnset(request.DBClusterId)) {
15698
+ query["DBClusterId"] = request.DBClusterId;
15699
+ }
15700
+
15555
15701
  let body : {[key: string ]: any} = { };
15556
15702
  if (!Util.isUnset(request.appId)) {
15557
15703
  body["AppId"] = request.appId;
15558
15704
  }
15559
15705
 
15560
15706
  let req = new $OpenApi.OpenApiRequest({
15707
+ query: OpenApiUtil.query(query),
15561
15708
  body: OpenApiUtil.parseToMap(body),
15562
15709
  });
15563
15710
  let params = new $OpenApi.Params({
@@ -16122,12 +16269,18 @@ export default class Client extends OpenApi {
16122
16269
 
16123
16270
  async killSparkAppWithOptions(request: KillSparkAppRequest, runtime: $Util.RuntimeOptions): Promise<KillSparkAppResponse> {
16124
16271
  Util.validateModel(request);
16272
+ let query = { };
16273
+ if (!Util.isUnset(request.DBClusterId)) {
16274
+ query["DBClusterId"] = request.DBClusterId;
16275
+ }
16276
+
16125
16277
  let body : {[key: string ]: any} = { };
16126
16278
  if (!Util.isUnset(request.appId)) {
16127
16279
  body["AppId"] = request.appId;
16128
16280
  }
16129
16281
 
16130
16282
  let req = new $OpenApi.OpenApiRequest({
16283
+ query: OpenApiUtil.query(query),
16131
16284
  body: OpenApiUtil.parseToMap(body),
16132
16285
  });
16133
16286
  let params = new $OpenApi.Params({
@@ -16218,6 +16371,10 @@ export default class Client extends OpenApi {
16218
16371
  query["AppId"] = request.appId;
16219
16372
  }
16220
16373
 
16374
+ if (!Util.isUnset(request.DBClusterId)) {
16375
+ query["DBClusterId"] = request.DBClusterId;
16376
+ }
16377
+
16221
16378
  if (!Util.isUnset(request.pageNumber)) {
16222
16379
  query["PageNumber"] = request.pageNumber;
16223
16380
  }
@@ -16579,9 +16736,12 @@ export default class Client extends OpenApi {
16579
16736
  }
16580
16737
 
16581
16738
  /**
16582
- * * During a scaling event, you are not allowed to execute the `SUBMIT JOB` statement to submit asynchronous tasks. If your business requires asynchronous tasks, perform scaling during appropriate periods.
16583
- * * When cluster specifications are scaled up or down, data in the cluster is migrated for redistribution. The amount of time required for data migration is proportional to the volume of data. During a scale-up or scale-down event, the services provided by the cluster are not interrupted. During a scale-down event, data migration can take up to dozens of hours to complete. Proceed with caution especially when your cluster contains a large amount of data.
16739
+ * ### [](#)
16740
+ * * During a scaling event, you are not allowed to execute the `SUBMIT JOB` statement to submit asynchronous jobs. If your business requires asynchronous jobs, perform scaling during appropriate periods.
16741
+ * * When cluster specifications are scaled up or down, data in the cluster is migrated for redistribution. The amount of time that is required for data migration is proportional to the volume of data. During a scaling event, the services provided by the cluster are not interrupted. During a scale-down event, data migration can take up to dozens of hours to complete. Proceed with caution especially when your cluster contains a large amount of data.
16584
16742
  * * If the cluster has a built-in dataset loaded, make sure that the cluster has reserved storage resources of at least 24 AnalyticDB compute units (ACUs). Otherwise, the built-in dataset cannot be used.
16743
+ * * When the scaling process is about to end, your service may encounter transient connections. We recommend that you scale your cluster during off-peak hours or make sure that your application is configured to automatically reconnect to your cluster.
16744
+ * * You can change an AnalyticDB for MySQL cluster from Data Warehouse Edition (V3.0) to Data Lakehouse Edition (V3.0), but not the other way around. For more information, see Change a cluster from Data Warehouse Edition to Data Lakehouse Edition.
16585
16745
  *
16586
16746
  * @param request ModifyDBClusterRequest
16587
16747
  * @param runtime runtime options for this request RuntimeOptions
@@ -16640,9 +16800,12 @@ export default class Client extends OpenApi {
16640
16800
  }
16641
16801
 
16642
16802
  /**
16643
- * * During a scaling event, you are not allowed to execute the `SUBMIT JOB` statement to submit asynchronous tasks. If your business requires asynchronous tasks, perform scaling during appropriate periods.
16644
- * * When cluster specifications are scaled up or down, data in the cluster is migrated for redistribution. The amount of time required for data migration is proportional to the volume of data. During a scale-up or scale-down event, the services provided by the cluster are not interrupted. During a scale-down event, data migration can take up to dozens of hours to complete. Proceed with caution especially when your cluster contains a large amount of data.
16803
+ * ### [](#)
16804
+ * * During a scaling event, you are not allowed to execute the `SUBMIT JOB` statement to submit asynchronous jobs. If your business requires asynchronous jobs, perform scaling during appropriate periods.
16805
+ * * When cluster specifications are scaled up or down, data in the cluster is migrated for redistribution. The amount of time that is required for data migration is proportional to the volume of data. During a scaling event, the services provided by the cluster are not interrupted. During a scale-down event, data migration can take up to dozens of hours to complete. Proceed with caution especially when your cluster contains a large amount of data.
16645
16806
  * * If the cluster has a built-in dataset loaded, make sure that the cluster has reserved storage resources of at least 24 AnalyticDB compute units (ACUs). Otherwise, the built-in dataset cannot be used.
16807
+ * * When the scaling process is about to end, your service may encounter transient connections. We recommend that you scale your cluster during off-peak hours or make sure that your application is configured to automatically reconnect to your cluster.
16808
+ * * You can change an AnalyticDB for MySQL cluster from Data Warehouse Edition (V3.0) to Data Lakehouse Edition (V3.0), but not the other way around. For more information, see Change a cluster from Data Warehouse Edition to Data Lakehouse Edition.
16646
16809
  *
16647
16810
  * @param request ModifyDBClusterRequest
16648
16811
  * @return ModifyDBClusterResponse
@@ -16830,12 +16993,18 @@ export default class Client extends OpenApi {
16830
16993
 
16831
16994
  async preloadSparkAppMetricsWithOptions(request: PreloadSparkAppMetricsRequest, runtime: $Util.RuntimeOptions): Promise<PreloadSparkAppMetricsResponse> {
16832
16995
  Util.validateModel(request);
16996
+ let query = { };
16997
+ if (!Util.isUnset(request.DBClusterId)) {
16998
+ query["DBClusterId"] = request.DBClusterId;
16999
+ }
17000
+
16833
17001
  let body : {[key: string ]: any} = { };
16834
17002
  if (!Util.isUnset(request.appId)) {
16835
17003
  body["AppId"] = request.appId;
16836
17004
  }
16837
17005
 
16838
17006
  let req = new $OpenApi.OpenApiRequest({
17007
+ query: OpenApiUtil.query(query),
16839
17008
  body: OpenApiUtil.parseToMap(body),
16840
17009
  });
16841
17010
  let params = new $OpenApi.Params({