@alicloud/adb20211201 1.1.1 → 1.2.0

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/dist/client.d.ts CHANGED
@@ -4,6 +4,21 @@
4
4
  import * as $Util from '@alicloud/tea-util';
5
5
  import OpenApi, * as $OpenApi from '@alicloud/openapi-client';
6
6
  import * as $tea from '@alicloud/tea-typescript';
7
+ export declare class Adb4MysqlSparkDiagnosisInfo extends $tea.Model {
8
+ diagnosisCode?: string;
9
+ diagnosisCodeLabel?: string;
10
+ diagnosisMsg?: string;
11
+ diagnosisType?: string;
12
+ static names(): {
13
+ [key: string]: string;
14
+ };
15
+ static types(): {
16
+ [key: string]: any;
17
+ };
18
+ constructor(map?: {
19
+ [key: string]: any;
20
+ });
21
+ }
7
22
  export declare class ColDetailModel extends $tea.Model {
8
23
  columnName?: string;
9
24
  createTime?: string;
@@ -3051,6 +3066,48 @@ export declare class EnableElasticPlanResponse extends $tea.Model {
3051
3066
  [key: string]: any;
3052
3067
  });
3053
3068
  }
3069
+ export declare class ExistRunningSQLEngineRequest extends $tea.Model {
3070
+ DBClusterId?: string;
3071
+ resourceGroupName?: string;
3072
+ static names(): {
3073
+ [key: string]: string;
3074
+ };
3075
+ static types(): {
3076
+ [key: string]: any;
3077
+ };
3078
+ constructor(map?: {
3079
+ [key: string]: any;
3080
+ });
3081
+ }
3082
+ export declare class ExistRunningSQLEngineResponseBody extends $tea.Model {
3083
+ data?: boolean;
3084
+ requestId?: string;
3085
+ static names(): {
3086
+ [key: string]: string;
3087
+ };
3088
+ static types(): {
3089
+ [key: string]: any;
3090
+ };
3091
+ constructor(map?: {
3092
+ [key: string]: any;
3093
+ });
3094
+ }
3095
+ export declare class ExistRunningSQLEngineResponse extends $tea.Model {
3096
+ headers: {
3097
+ [key: string]: string;
3098
+ };
3099
+ statusCode: number;
3100
+ body: ExistRunningSQLEngineResponseBody;
3101
+ static names(): {
3102
+ [key: string]: string;
3103
+ };
3104
+ static types(): {
3105
+ [key: string]: any;
3106
+ };
3107
+ constructor(map?: {
3108
+ [key: string]: any;
3109
+ });
3110
+ }
3054
3111
  export declare class GetDatabaseObjectsRequest extends $tea.Model {
3055
3112
  DBClusterId?: string;
3056
3113
  filterOwner?: string;
@@ -4763,6 +4820,49 @@ export declare class ReleaseClusterPublicConnectionResponse extends $tea.Model {
4763
4820
  [key: string]: any;
4764
4821
  });
4765
4822
  }
4823
+ export declare class RenameSparkTemplateFileRequest extends $tea.Model {
4824
+ DBClusterId?: string;
4825
+ id?: number;
4826
+ name?: string;
4827
+ static names(): {
4828
+ [key: string]: string;
4829
+ };
4830
+ static types(): {
4831
+ [key: string]: any;
4832
+ };
4833
+ constructor(map?: {
4834
+ [key: string]: any;
4835
+ });
4836
+ }
4837
+ export declare class RenameSparkTemplateFileResponseBody extends $tea.Model {
4838
+ data?: RenameSparkTemplateFileResponseBodyData;
4839
+ requestId?: string;
4840
+ static names(): {
4841
+ [key: string]: string;
4842
+ };
4843
+ static types(): {
4844
+ [key: string]: any;
4845
+ };
4846
+ constructor(map?: {
4847
+ [key: string]: any;
4848
+ });
4849
+ }
4850
+ export declare class RenameSparkTemplateFileResponse extends $tea.Model {
4851
+ headers: {
4852
+ [key: string]: string;
4853
+ };
4854
+ statusCode: number;
4855
+ body: RenameSparkTemplateFileResponseBody;
4856
+ static names(): {
4857
+ [key: string]: string;
4858
+ };
4859
+ static types(): {
4860
+ [key: string]: any;
4861
+ };
4862
+ constructor(map?: {
4863
+ [key: string]: any;
4864
+ });
4865
+ }
4766
4866
  export declare class ResetAccountPasswordRequest extends $tea.Model {
4767
4867
  accountDescription?: string;
4768
4868
  accountName?: string;
@@ -6474,6 +6574,18 @@ export declare class PreloadSparkAppMetricsResponseBodyData extends $tea.Model {
6474
6574
  [key: string]: any;
6475
6575
  });
6476
6576
  }
6577
+ export declare class RenameSparkTemplateFileResponseBodyData extends $tea.Model {
6578
+ succeeded?: boolean;
6579
+ static names(): {
6580
+ [key: string]: string;
6581
+ };
6582
+ static types(): {
6583
+ [key: string]: any;
6584
+ };
6585
+ constructor(map?: {
6586
+ [key: string]: any;
6587
+ });
6588
+ }
6477
6589
  export declare class SetSparkAppLogRootPathResponseBodyData extends $tea.Model {
6478
6590
  defaultLogPath?: string;
6479
6591
  isLogPathExists?: boolean;
@@ -6665,6 +6777,8 @@ export default class Client extends OpenApi {
6665
6777
  downloadDiagnosisRecords(request: DownloadDiagnosisRecordsRequest): Promise<DownloadDiagnosisRecordsResponse>;
6666
6778
  enableElasticPlanWithOptions(request: EnableElasticPlanRequest, runtime: $Util.RuntimeOptions): Promise<EnableElasticPlanResponse>;
6667
6779
  enableElasticPlan(request: EnableElasticPlanRequest): Promise<EnableElasticPlanResponse>;
6780
+ existRunningSQLEngineWithOptions(request: ExistRunningSQLEngineRequest, runtime: $Util.RuntimeOptions): Promise<ExistRunningSQLEngineResponse>;
6781
+ existRunningSQLEngine(request: ExistRunningSQLEngineRequest): Promise<ExistRunningSQLEngineResponse>;
6668
6782
  getDatabaseObjectsWithOptions(request: GetDatabaseObjectsRequest, runtime: $Util.RuntimeOptions): Promise<GetDatabaseObjectsResponse>;
6669
6783
  getDatabaseObjects(request: GetDatabaseObjectsRequest): Promise<GetDatabaseObjectsResponse>;
6670
6784
  getSparkAppAttemptLogWithOptions(request: GetSparkAppAttemptLogRequest, runtime: $Util.RuntimeOptions): Promise<GetSparkAppAttemptLogResponse>;
@@ -6773,6 +6887,8 @@ export default class Client extends OpenApi {
6773
6887
  preloadSparkAppMetrics(request: PreloadSparkAppMetricsRequest): Promise<PreloadSparkAppMetricsResponse>;
6774
6888
  releaseClusterPublicConnectionWithOptions(request: ReleaseClusterPublicConnectionRequest, runtime: $Util.RuntimeOptions): Promise<ReleaseClusterPublicConnectionResponse>;
6775
6889
  releaseClusterPublicConnection(request: ReleaseClusterPublicConnectionRequest): Promise<ReleaseClusterPublicConnectionResponse>;
6890
+ renameSparkTemplateFileWithOptions(request: RenameSparkTemplateFileRequest, runtime: $Util.RuntimeOptions): Promise<RenameSparkTemplateFileResponse>;
6891
+ renameSparkTemplateFile(request: RenameSparkTemplateFileRequest): Promise<RenameSparkTemplateFileResponse>;
6776
6892
  resetAccountPasswordWithOptions(request: ResetAccountPasswordRequest, runtime: $Util.RuntimeOptions): Promise<ResetAccountPasswordResponse>;
6777
6893
  resetAccountPassword(request: ResetAccountPasswordRequest): Promise<ResetAccountPasswordResponse>;
6778
6894
  setSparkAppLogRootPathWithOptions(request: SetSparkAppLogRootPathRequest, runtime: $Util.RuntimeOptions): Promise<SetSparkAppLogRootPathResponse>;
package/dist/client.js CHANGED
@@ -19,6 +19,28 @@ const openapi_client_1 = __importStar(require("@alicloud/openapi-client")), $Ope
19
19
  const openapi_util_1 = __importDefault(require("@alicloud/openapi-util"));
20
20
  const endpoint_util_1 = __importDefault(require("@alicloud/endpoint-util"));
21
21
  const $tea = __importStar(require("@alicloud/tea-typescript"));
22
+ class Adb4MysqlSparkDiagnosisInfo extends $tea.Model {
23
+ constructor(map) {
24
+ super(map);
25
+ }
26
+ static names() {
27
+ return {
28
+ diagnosisCode: 'DiagnosisCode',
29
+ diagnosisCodeLabel: 'DiagnosisCodeLabel',
30
+ diagnosisMsg: 'DiagnosisMsg',
31
+ diagnosisType: 'DiagnosisType',
32
+ };
33
+ }
34
+ static types() {
35
+ return {
36
+ diagnosisCode: 'string',
37
+ diagnosisCodeLabel: 'string',
38
+ diagnosisMsg: 'string',
39
+ diagnosisType: 'string',
40
+ };
41
+ }
42
+ }
43
+ exports.Adb4MysqlSparkDiagnosisInfo = Adb4MysqlSparkDiagnosisInfo;
22
44
  class ColDetailModel extends $tea.Model {
23
45
  constructor(map) {
24
46
  super(map);
@@ -4357,6 +4379,62 @@ class EnableElasticPlanResponse extends $tea.Model {
4357
4379
  }
4358
4380
  }
4359
4381
  exports.EnableElasticPlanResponse = EnableElasticPlanResponse;
4382
+ class ExistRunningSQLEngineRequest extends $tea.Model {
4383
+ constructor(map) {
4384
+ super(map);
4385
+ }
4386
+ static names() {
4387
+ return {
4388
+ DBClusterId: 'DBClusterId',
4389
+ resourceGroupName: 'ResourceGroupName',
4390
+ };
4391
+ }
4392
+ static types() {
4393
+ return {
4394
+ DBClusterId: 'string',
4395
+ resourceGroupName: 'string',
4396
+ };
4397
+ }
4398
+ }
4399
+ exports.ExistRunningSQLEngineRequest = ExistRunningSQLEngineRequest;
4400
+ class ExistRunningSQLEngineResponseBody extends $tea.Model {
4401
+ constructor(map) {
4402
+ super(map);
4403
+ }
4404
+ static names() {
4405
+ return {
4406
+ data: 'Data',
4407
+ requestId: 'RequestId',
4408
+ };
4409
+ }
4410
+ static types() {
4411
+ return {
4412
+ data: 'boolean',
4413
+ requestId: 'string',
4414
+ };
4415
+ }
4416
+ }
4417
+ exports.ExistRunningSQLEngineResponseBody = ExistRunningSQLEngineResponseBody;
4418
+ class ExistRunningSQLEngineResponse extends $tea.Model {
4419
+ constructor(map) {
4420
+ super(map);
4421
+ }
4422
+ static names() {
4423
+ return {
4424
+ headers: 'headers',
4425
+ statusCode: 'statusCode',
4426
+ body: 'body',
4427
+ };
4428
+ }
4429
+ static types() {
4430
+ return {
4431
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
4432
+ statusCode: 'number',
4433
+ body: ExistRunningSQLEngineResponseBody,
4434
+ };
4435
+ }
4436
+ }
4437
+ exports.ExistRunningSQLEngineResponse = ExistRunningSQLEngineResponse;
4360
4438
  class GetDatabaseObjectsRequest extends $tea.Model {
4361
4439
  constructor(map) {
4362
4440
  super(map);
@@ -6681,6 +6759,64 @@ class ReleaseClusterPublicConnectionResponse extends $tea.Model {
6681
6759
  }
6682
6760
  }
6683
6761
  exports.ReleaseClusterPublicConnectionResponse = ReleaseClusterPublicConnectionResponse;
6762
+ class RenameSparkTemplateFileRequest extends $tea.Model {
6763
+ constructor(map) {
6764
+ super(map);
6765
+ }
6766
+ static names() {
6767
+ return {
6768
+ DBClusterId: 'DBClusterId',
6769
+ id: 'Id',
6770
+ name: 'Name',
6771
+ };
6772
+ }
6773
+ static types() {
6774
+ return {
6775
+ DBClusterId: 'string',
6776
+ id: 'number',
6777
+ name: 'string',
6778
+ };
6779
+ }
6780
+ }
6781
+ exports.RenameSparkTemplateFileRequest = RenameSparkTemplateFileRequest;
6782
+ class RenameSparkTemplateFileResponseBody extends $tea.Model {
6783
+ constructor(map) {
6784
+ super(map);
6785
+ }
6786
+ static names() {
6787
+ return {
6788
+ data: 'Data',
6789
+ requestId: 'RequestId',
6790
+ };
6791
+ }
6792
+ static types() {
6793
+ return {
6794
+ data: RenameSparkTemplateFileResponseBodyData,
6795
+ requestId: 'string',
6796
+ };
6797
+ }
6798
+ }
6799
+ exports.RenameSparkTemplateFileResponseBody = RenameSparkTemplateFileResponseBody;
6800
+ class RenameSparkTemplateFileResponse extends $tea.Model {
6801
+ constructor(map) {
6802
+ super(map);
6803
+ }
6804
+ static names() {
6805
+ return {
6806
+ headers: 'headers',
6807
+ statusCode: 'statusCode',
6808
+ body: 'body',
6809
+ };
6810
+ }
6811
+ static types() {
6812
+ return {
6813
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
6814
+ statusCode: 'number',
6815
+ body: RenameSparkTemplateFileResponseBody,
6816
+ };
6817
+ }
6818
+ }
6819
+ exports.RenameSparkTemplateFileResponse = RenameSparkTemplateFileResponse;
6684
6820
  class ResetAccountPasswordRequest extends $tea.Model {
6685
6821
  constructor(map) {
6686
6822
  super(map);
@@ -9187,6 +9323,22 @@ class PreloadSparkAppMetricsResponseBodyData extends $tea.Model {
9187
9323
  }
9188
9324
  }
9189
9325
  exports.PreloadSparkAppMetricsResponseBodyData = PreloadSparkAppMetricsResponseBodyData;
9326
+ class RenameSparkTemplateFileResponseBodyData extends $tea.Model {
9327
+ constructor(map) {
9328
+ super(map);
9329
+ }
9330
+ static names() {
9331
+ return {
9332
+ succeeded: 'Succeeded',
9333
+ };
9334
+ }
9335
+ static types() {
9336
+ return {
9337
+ succeeded: 'boolean',
9338
+ };
9339
+ }
9340
+ }
9341
+ exports.RenameSparkTemplateFileResponseBodyData = RenameSparkTemplateFileResponseBodyData;
9190
9342
  class SetSparkAppLogRootPathResponseBodyData extends $tea.Model {
9191
9343
  constructor(map) {
9192
9344
  super(map);
@@ -11503,6 +11655,35 @@ class Client extends openapi_client_1.default {
11503
11655
  let runtime = new $Util.RuntimeOptions({});
11504
11656
  return await this.enableElasticPlanWithOptions(request, runtime);
11505
11657
  }
11658
+ async existRunningSQLEngineWithOptions(request, runtime) {
11659
+ tea_util_1.default.validateModel(request);
11660
+ let body = {};
11661
+ if (!tea_util_1.default.isUnset(request.DBClusterId)) {
11662
+ body["DBClusterId"] = request.DBClusterId;
11663
+ }
11664
+ if (!tea_util_1.default.isUnset(request.resourceGroupName)) {
11665
+ body["ResourceGroupName"] = request.resourceGroupName;
11666
+ }
11667
+ let req = new $OpenApi.OpenApiRequest({
11668
+ body: openapi_util_1.default.parseToMap(body),
11669
+ });
11670
+ let params = new $OpenApi.Params({
11671
+ action: "ExistRunningSQLEngine",
11672
+ version: "2021-12-01",
11673
+ protocol: "HTTPS",
11674
+ pathname: "/",
11675
+ method: "POST",
11676
+ authType: "AK",
11677
+ style: "RPC",
11678
+ reqBodyType: "formData",
11679
+ bodyType: "json",
11680
+ });
11681
+ return $tea.cast(await this.callApi(params, req, runtime), new ExistRunningSQLEngineResponse({}));
11682
+ }
11683
+ async existRunningSQLEngine(request) {
11684
+ let runtime = new $Util.RuntimeOptions({});
11685
+ return await this.existRunningSQLEngineWithOptions(request, runtime);
11686
+ }
11506
11687
  async getDatabaseObjectsWithOptions(request, runtime) {
11507
11688
  tea_util_1.default.validateModel(request);
11508
11689
  let query = {};
@@ -12810,6 +12991,38 @@ class Client extends openapi_client_1.default {
12810
12991
  let runtime = new $Util.RuntimeOptions({});
12811
12992
  return await this.releaseClusterPublicConnectionWithOptions(request, runtime);
12812
12993
  }
12994
+ async renameSparkTemplateFileWithOptions(request, runtime) {
12995
+ tea_util_1.default.validateModel(request);
12996
+ let query = {};
12997
+ if (!tea_util_1.default.isUnset(request.DBClusterId)) {
12998
+ query["DBClusterId"] = request.DBClusterId;
12999
+ }
13000
+ if (!tea_util_1.default.isUnset(request.id)) {
13001
+ query["Id"] = request.id;
13002
+ }
13003
+ if (!tea_util_1.default.isUnset(request.name)) {
13004
+ query["Name"] = request.name;
13005
+ }
13006
+ let req = new $OpenApi.OpenApiRequest({
13007
+ query: openapi_util_1.default.query(query),
13008
+ });
13009
+ let params = new $OpenApi.Params({
13010
+ action: "RenameSparkTemplateFile",
13011
+ version: "2021-12-01",
13012
+ protocol: "HTTPS",
13013
+ pathname: "/",
13014
+ method: "POST",
13015
+ authType: "AK",
13016
+ style: "RPC",
13017
+ reqBodyType: "formData",
13018
+ bodyType: "json",
13019
+ });
13020
+ return $tea.cast(await this.callApi(params, req, runtime), new RenameSparkTemplateFileResponse({}));
13021
+ }
13022
+ async renameSparkTemplateFile(request) {
13023
+ let runtime = new $Util.RuntimeOptions({});
13024
+ return await this.renameSparkTemplateFileWithOptions(request, runtime);
13025
+ }
12813
13026
  async resetAccountPasswordWithOptions(request, runtime) {
12814
13027
  tea_util_1.default.validateModel(request);
12815
13028
  let query = {};