@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/adb20211201",
3
- "version": "1.1.1",
3
+ "version": "1.2.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -8,6 +8,34 @@ import OpenApiUtil from '@alicloud/openapi-util';
8
8
  import EndpointUtil from '@alicloud/endpoint-util';
9
9
  import * as $tea from '@alicloud/tea-typescript';
10
10
 
11
+ export class Adb4MysqlSparkDiagnosisInfo extends $tea.Model {
12
+ diagnosisCode?: string;
13
+ diagnosisCodeLabel?: string;
14
+ diagnosisMsg?: string;
15
+ diagnosisType?: string;
16
+ static names(): { [key: string]: string } {
17
+ return {
18
+ diagnosisCode: 'DiagnosisCode',
19
+ diagnosisCodeLabel: 'DiagnosisCodeLabel',
20
+ diagnosisMsg: 'DiagnosisMsg',
21
+ diagnosisType: 'DiagnosisType',
22
+ };
23
+ }
24
+
25
+ static types(): { [key: string]: any } {
26
+ return {
27
+ diagnosisCode: 'string',
28
+ diagnosisCodeLabel: 'string',
29
+ diagnosisMsg: 'string',
30
+ diagnosisType: 'string',
31
+ };
32
+ }
33
+
34
+ constructor(map?: { [key: string]: any }) {
35
+ super(map);
36
+ }
37
+ }
38
+
11
39
  export class ColDetailModel extends $tea.Model {
12
40
  columnName?: string;
13
41
  createTime?: string;
@@ -5570,6 +5598,75 @@ export class EnableElasticPlanResponse extends $tea.Model {
5570
5598
  }
5571
5599
  }
5572
5600
 
5601
+ export class ExistRunningSQLEngineRequest extends $tea.Model {
5602
+ DBClusterId?: string;
5603
+ resourceGroupName?: string;
5604
+ static names(): { [key: string]: string } {
5605
+ return {
5606
+ DBClusterId: 'DBClusterId',
5607
+ resourceGroupName: 'ResourceGroupName',
5608
+ };
5609
+ }
5610
+
5611
+ static types(): { [key: string]: any } {
5612
+ return {
5613
+ DBClusterId: 'string',
5614
+ resourceGroupName: 'string',
5615
+ };
5616
+ }
5617
+
5618
+ constructor(map?: { [key: string]: any }) {
5619
+ super(map);
5620
+ }
5621
+ }
5622
+
5623
+ export class ExistRunningSQLEngineResponseBody extends $tea.Model {
5624
+ data?: boolean;
5625
+ requestId?: string;
5626
+ static names(): { [key: string]: string } {
5627
+ return {
5628
+ data: 'Data',
5629
+ requestId: 'RequestId',
5630
+ };
5631
+ }
5632
+
5633
+ static types(): { [key: string]: any } {
5634
+ return {
5635
+ data: 'boolean',
5636
+ requestId: 'string',
5637
+ };
5638
+ }
5639
+
5640
+ constructor(map?: { [key: string]: any }) {
5641
+ super(map);
5642
+ }
5643
+ }
5644
+
5645
+ export class ExistRunningSQLEngineResponse extends $tea.Model {
5646
+ headers: { [key: string]: string };
5647
+ statusCode: number;
5648
+ body: ExistRunningSQLEngineResponseBody;
5649
+ static names(): { [key: string]: string } {
5650
+ return {
5651
+ headers: 'headers',
5652
+ statusCode: 'statusCode',
5653
+ body: 'body',
5654
+ };
5655
+ }
5656
+
5657
+ static types(): { [key: string]: any } {
5658
+ return {
5659
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5660
+ statusCode: 'number',
5661
+ body: ExistRunningSQLEngineResponseBody,
5662
+ };
5663
+ }
5664
+
5665
+ constructor(map?: { [key: string]: any }) {
5666
+ super(map);
5667
+ }
5668
+ }
5669
+
5573
5670
  export class GetDatabaseObjectsRequest extends $tea.Model {
5574
5671
  DBClusterId?: string;
5575
5672
  filterOwner?: string;
@@ -8466,6 +8563,78 @@ export class ReleaseClusterPublicConnectionResponse extends $tea.Model {
8466
8563
  }
8467
8564
  }
8468
8565
 
8566
+ export class RenameSparkTemplateFileRequest extends $tea.Model {
8567
+ DBClusterId?: string;
8568
+ id?: number;
8569
+ name?: string;
8570
+ static names(): { [key: string]: string } {
8571
+ return {
8572
+ DBClusterId: 'DBClusterId',
8573
+ id: 'Id',
8574
+ name: 'Name',
8575
+ };
8576
+ }
8577
+
8578
+ static types(): { [key: string]: any } {
8579
+ return {
8580
+ DBClusterId: 'string',
8581
+ id: 'number',
8582
+ name: 'string',
8583
+ };
8584
+ }
8585
+
8586
+ constructor(map?: { [key: string]: any }) {
8587
+ super(map);
8588
+ }
8589
+ }
8590
+
8591
+ export class RenameSparkTemplateFileResponseBody extends $tea.Model {
8592
+ data?: RenameSparkTemplateFileResponseBodyData;
8593
+ requestId?: string;
8594
+ static names(): { [key: string]: string } {
8595
+ return {
8596
+ data: 'Data',
8597
+ requestId: 'RequestId',
8598
+ };
8599
+ }
8600
+
8601
+ static types(): { [key: string]: any } {
8602
+ return {
8603
+ data: RenameSparkTemplateFileResponseBodyData,
8604
+ requestId: 'string',
8605
+ };
8606
+ }
8607
+
8608
+ constructor(map?: { [key: string]: any }) {
8609
+ super(map);
8610
+ }
8611
+ }
8612
+
8613
+ export class RenameSparkTemplateFileResponse extends $tea.Model {
8614
+ headers: { [key: string]: string };
8615
+ statusCode: number;
8616
+ body: RenameSparkTemplateFileResponseBody;
8617
+ static names(): { [key: string]: string } {
8618
+ return {
8619
+ headers: 'headers',
8620
+ statusCode: 'statusCode',
8621
+ body: 'body',
8622
+ };
8623
+ }
8624
+
8625
+ static types(): { [key: string]: any } {
8626
+ return {
8627
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
8628
+ statusCode: 'number',
8629
+ body: RenameSparkTemplateFileResponseBody,
8630
+ };
8631
+ }
8632
+
8633
+ constructor(map?: { [key: string]: any }) {
8634
+ super(map);
8635
+ }
8636
+ }
8637
+
8469
8638
  export class ResetAccountPasswordRequest extends $tea.Model {
8470
8639
  accountDescription?: string;
8471
8640
  accountName?: string;
@@ -11670,6 +11839,25 @@ export class PreloadSparkAppMetricsResponseBodyData extends $tea.Model {
11670
11839
  }
11671
11840
  }
11672
11841
 
11842
+ export class RenameSparkTemplateFileResponseBodyData extends $tea.Model {
11843
+ succeeded?: boolean;
11844
+ static names(): { [key: string]: string } {
11845
+ return {
11846
+ succeeded: 'Succeeded',
11847
+ };
11848
+ }
11849
+
11850
+ static types(): { [key: string]: any } {
11851
+ return {
11852
+ succeeded: 'boolean',
11853
+ };
11854
+ }
11855
+
11856
+ constructor(map?: { [key: string]: any }) {
11857
+ super(map);
11858
+ }
11859
+ }
11860
+
11673
11861
  export class SetSparkAppLogRootPathResponseBodyData extends $tea.Model {
11674
11862
  defaultLogPath?: string;
11675
11863
  isLogPathExists?: boolean;
@@ -14410,6 +14598,39 @@ export default class Client extends OpenApi {
14410
14598
  return await this.enableElasticPlanWithOptions(request, runtime);
14411
14599
  }
14412
14600
 
14601
+ async existRunningSQLEngineWithOptions(request: ExistRunningSQLEngineRequest, runtime: $Util.RuntimeOptions): Promise<ExistRunningSQLEngineResponse> {
14602
+ Util.validateModel(request);
14603
+ let body : {[key: string ]: any} = { };
14604
+ if (!Util.isUnset(request.DBClusterId)) {
14605
+ body["DBClusterId"] = request.DBClusterId;
14606
+ }
14607
+
14608
+ if (!Util.isUnset(request.resourceGroupName)) {
14609
+ body["ResourceGroupName"] = request.resourceGroupName;
14610
+ }
14611
+
14612
+ let req = new $OpenApi.OpenApiRequest({
14613
+ body: OpenApiUtil.parseToMap(body),
14614
+ });
14615
+ let params = new $OpenApi.Params({
14616
+ action: "ExistRunningSQLEngine",
14617
+ version: "2021-12-01",
14618
+ protocol: "HTTPS",
14619
+ pathname: "/",
14620
+ method: "POST",
14621
+ authType: "AK",
14622
+ style: "RPC",
14623
+ reqBodyType: "formData",
14624
+ bodyType: "json",
14625
+ });
14626
+ return $tea.cast<ExistRunningSQLEngineResponse>(await this.callApi(params, req, runtime), new ExistRunningSQLEngineResponse({}));
14627
+ }
14628
+
14629
+ async existRunningSQLEngine(request: ExistRunningSQLEngineRequest): Promise<ExistRunningSQLEngineResponse> {
14630
+ let runtime = new $Util.RuntimeOptions({ });
14631
+ return await this.existRunningSQLEngineWithOptions(request, runtime);
14632
+ }
14633
+
14413
14634
  async getDatabaseObjectsWithOptions(request: GetDatabaseObjectsRequest, runtime: $Util.RuntimeOptions): Promise<GetDatabaseObjectsResponse> {
14414
14635
  Util.validateModel(request);
14415
14636
  let query = { };
@@ -15921,6 +16142,43 @@ export default class Client extends OpenApi {
15921
16142
  return await this.releaseClusterPublicConnectionWithOptions(request, runtime);
15922
16143
  }
15923
16144
 
16145
+ async renameSparkTemplateFileWithOptions(request: RenameSparkTemplateFileRequest, runtime: $Util.RuntimeOptions): Promise<RenameSparkTemplateFileResponse> {
16146
+ Util.validateModel(request);
16147
+ let query = { };
16148
+ if (!Util.isUnset(request.DBClusterId)) {
16149
+ query["DBClusterId"] = request.DBClusterId;
16150
+ }
16151
+
16152
+ if (!Util.isUnset(request.id)) {
16153
+ query["Id"] = request.id;
16154
+ }
16155
+
16156
+ if (!Util.isUnset(request.name)) {
16157
+ query["Name"] = request.name;
16158
+ }
16159
+
16160
+ let req = new $OpenApi.OpenApiRequest({
16161
+ query: OpenApiUtil.query(query),
16162
+ });
16163
+ let params = new $OpenApi.Params({
16164
+ action: "RenameSparkTemplateFile",
16165
+ version: "2021-12-01",
16166
+ protocol: "HTTPS",
16167
+ pathname: "/",
16168
+ method: "POST",
16169
+ authType: "AK",
16170
+ style: "RPC",
16171
+ reqBodyType: "formData",
16172
+ bodyType: "json",
16173
+ });
16174
+ return $tea.cast<RenameSparkTemplateFileResponse>(await this.callApi(params, req, runtime), new RenameSparkTemplateFileResponse({}));
16175
+ }
16176
+
16177
+ async renameSparkTemplateFile(request: RenameSparkTemplateFileRequest): Promise<RenameSparkTemplateFileResponse> {
16178
+ let runtime = new $Util.RuntimeOptions({ });
16179
+ return await this.renameSparkTemplateFileWithOptions(request, runtime);
16180
+ }
16181
+
15924
16182
  async resetAccountPasswordWithOptions(request: ResetAccountPasswordRequest, runtime: $Util.RuntimeOptions): Promise<ResetAccountPasswordResponse> {
15925
16183
  Util.validateModel(request);
15926
16184
  let query = { };