@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/dist/client.d.ts +67 -4
- package/dist/client.js +136 -4
- package/dist/client.js.map +1 -1
- package/package.json +2 -2
- package/src/client.ts +173 -4
package/dist/client.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
1
2
|
/**
|
|
2
3
|
*
|
|
3
4
|
*/
|
|
@@ -173,6 +174,25 @@ export declare class LogAnalyzeResult extends $tea.Model {
|
|
|
173
174
|
[key: string]: any;
|
|
174
175
|
});
|
|
175
176
|
}
|
|
177
|
+
export declare class OperatorNode extends $tea.Model {
|
|
178
|
+
children?: OperatorNode[];
|
|
179
|
+
id?: number;
|
|
180
|
+
levelWidth?: number;
|
|
181
|
+
nodeDepth?: number;
|
|
182
|
+
nodeName?: string;
|
|
183
|
+
nodeWidth?: number;
|
|
184
|
+
parentId?: number;
|
|
185
|
+
stats?: OperatorNodeStats;
|
|
186
|
+
static names(): {
|
|
187
|
+
[key: string]: string;
|
|
188
|
+
};
|
|
189
|
+
static types(): {
|
|
190
|
+
[key: string]: any;
|
|
191
|
+
};
|
|
192
|
+
constructor(map?: {
|
|
193
|
+
[key: string]: any;
|
|
194
|
+
});
|
|
195
|
+
}
|
|
176
196
|
export declare class SerDeInfoModel extends $tea.Model {
|
|
177
197
|
name?: string;
|
|
178
198
|
parameters?: {
|
|
@@ -245,6 +265,19 @@ export declare class SparkAttemptInfo extends $tea.Model {
|
|
|
245
265
|
[key: string]: any;
|
|
246
266
|
});
|
|
247
267
|
}
|
|
268
|
+
export declare class SparkOperatorInfo extends $tea.Model {
|
|
269
|
+
metricValue?: number;
|
|
270
|
+
operatorName?: Buffer;
|
|
271
|
+
static names(): {
|
|
272
|
+
[key: string]: string;
|
|
273
|
+
};
|
|
274
|
+
static types(): {
|
|
275
|
+
[key: string]: any;
|
|
276
|
+
};
|
|
277
|
+
constructor(map?: {
|
|
278
|
+
[key: string]: any;
|
|
279
|
+
});
|
|
280
|
+
}
|
|
248
281
|
export declare class SparkSession extends $tea.Model {
|
|
249
282
|
active?: string;
|
|
250
283
|
aliyunUid?: number;
|
|
@@ -3455,6 +3488,7 @@ export declare class GetSparkAppAttemptLogResponse extends $tea.Model {
|
|
|
3455
3488
|
}
|
|
3456
3489
|
export declare class GetSparkAppInfoRequest extends $tea.Model {
|
|
3457
3490
|
appId?: string;
|
|
3491
|
+
DBClusterId?: string;
|
|
3458
3492
|
static names(): {
|
|
3459
3493
|
[key: string]: string;
|
|
3460
3494
|
};
|
|
@@ -3496,6 +3530,7 @@ export declare class GetSparkAppInfoResponse extends $tea.Model {
|
|
|
3496
3530
|
}
|
|
3497
3531
|
export declare class GetSparkAppLogRequest extends $tea.Model {
|
|
3498
3532
|
appId?: string;
|
|
3533
|
+
DBClusterId?: string;
|
|
3499
3534
|
logLength?: number;
|
|
3500
3535
|
static names(): {
|
|
3501
3536
|
[key: string]: string;
|
|
@@ -3538,6 +3573,7 @@ export declare class GetSparkAppLogResponse extends $tea.Model {
|
|
|
3538
3573
|
}
|
|
3539
3574
|
export declare class GetSparkAppMetricsRequest extends $tea.Model {
|
|
3540
3575
|
appId?: string;
|
|
3576
|
+
DBClusterId?: string;
|
|
3541
3577
|
static names(): {
|
|
3542
3578
|
[key: string]: string;
|
|
3543
3579
|
};
|
|
@@ -3579,6 +3615,7 @@ export declare class GetSparkAppMetricsResponse extends $tea.Model {
|
|
|
3579
3615
|
}
|
|
3580
3616
|
export declare class GetSparkAppStateRequest extends $tea.Model {
|
|
3581
3617
|
appId?: string;
|
|
3618
|
+
DBClusterId?: string;
|
|
3582
3619
|
static names(): {
|
|
3583
3620
|
[key: string]: string;
|
|
3584
3621
|
};
|
|
@@ -3620,6 +3657,7 @@ export declare class GetSparkAppStateResponse extends $tea.Model {
|
|
|
3620
3657
|
}
|
|
3621
3658
|
export declare class GetSparkAppWebUiAddressRequest extends $tea.Model {
|
|
3622
3659
|
appId?: string;
|
|
3660
|
+
DBClusterId?: string;
|
|
3623
3661
|
static names(): {
|
|
3624
3662
|
[key: string]: string;
|
|
3625
3663
|
};
|
|
@@ -4240,6 +4278,7 @@ export declare class GetViewObjectsResponse extends $tea.Model {
|
|
|
4240
4278
|
}
|
|
4241
4279
|
export declare class KillSparkAppRequest extends $tea.Model {
|
|
4242
4280
|
appId?: string;
|
|
4281
|
+
DBClusterId?: string;
|
|
4243
4282
|
static names(): {
|
|
4244
4283
|
[key: string]: string;
|
|
4245
4284
|
};
|
|
@@ -4364,6 +4403,7 @@ export declare class KillSparkSQLEngineResponse extends $tea.Model {
|
|
|
4364
4403
|
}
|
|
4365
4404
|
export declare class ListSparkAppAttemptsRequest extends $tea.Model {
|
|
4366
4405
|
appId?: string;
|
|
4406
|
+
DBClusterId?: string;
|
|
4367
4407
|
pageNumber?: number;
|
|
4368
4408
|
pageSize?: number;
|
|
4369
4409
|
static names(): {
|
|
@@ -4998,6 +5038,7 @@ export declare class ModifyElasticPlanResponse extends $tea.Model {
|
|
|
4998
5038
|
}
|
|
4999
5039
|
export declare class PreloadSparkAppMetricsRequest extends $tea.Model {
|
|
5000
5040
|
appId?: string;
|
|
5041
|
+
DBClusterId?: string;
|
|
5001
5042
|
static names(): {
|
|
5002
5043
|
[key: string]: string;
|
|
5003
5044
|
};
|
|
@@ -5508,6 +5549,22 @@ export declare class FiltersTermiatedTimeRange extends $tea.Model {
|
|
|
5508
5549
|
[key: string]: any;
|
|
5509
5550
|
});
|
|
5510
5551
|
}
|
|
5552
|
+
export declare class OperatorNodeStats extends $tea.Model {
|
|
5553
|
+
bytes?: number;
|
|
5554
|
+
outputRows?: number;
|
|
5555
|
+
parameters?: string;
|
|
5556
|
+
peakMemory?: number;
|
|
5557
|
+
timeCost?: number;
|
|
5558
|
+
static names(): {
|
|
5559
|
+
[key: string]: string;
|
|
5560
|
+
};
|
|
5561
|
+
static types(): {
|
|
5562
|
+
[key: string]: any;
|
|
5563
|
+
};
|
|
5564
|
+
constructor(map?: {
|
|
5565
|
+
[key: string]: any;
|
|
5566
|
+
});
|
|
5567
|
+
}
|
|
5511
5568
|
export declare class CreateDBClusterRequestTag extends $tea.Model {
|
|
5512
5569
|
key?: string;
|
|
5513
5570
|
value?: string;
|
|
@@ -7190,9 +7247,12 @@ export default class Client extends OpenApi {
|
|
|
7190
7247
|
modifyClusterConnectionStringWithOptions(request: ModifyClusterConnectionStringRequest, runtime: $Util.RuntimeOptions): Promise<ModifyClusterConnectionStringResponse>;
|
|
7191
7248
|
modifyClusterConnectionString(request: ModifyClusterConnectionStringRequest): Promise<ModifyClusterConnectionStringResponse>;
|
|
7192
7249
|
/**
|
|
7193
|
-
*
|
|
7194
|
-
* *
|
|
7250
|
+
* ### [](#)
|
|
7251
|
+
* * 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.
|
|
7252
|
+
* * 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.
|
|
7195
7253
|
* * 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.
|
|
7254
|
+
* * 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.
|
|
7255
|
+
* * 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.
|
|
7196
7256
|
*
|
|
7197
7257
|
* @param request ModifyDBClusterRequest
|
|
7198
7258
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -7200,9 +7260,12 @@ export default class Client extends OpenApi {
|
|
|
7200
7260
|
*/
|
|
7201
7261
|
modifyDBClusterWithOptions(request: ModifyDBClusterRequest, runtime: $Util.RuntimeOptions): Promise<ModifyDBClusterResponse>;
|
|
7202
7262
|
/**
|
|
7203
|
-
*
|
|
7204
|
-
* *
|
|
7263
|
+
* ### [](#)
|
|
7264
|
+
* * 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.
|
|
7265
|
+
* * 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.
|
|
7205
7266
|
* * 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.
|
|
7267
|
+
* * 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.
|
|
7268
|
+
* * 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.
|
|
7206
7269
|
*
|
|
7207
7270
|
* @param request ModifyDBClusterRequest
|
|
7208
7271
|
* @return ModifyDBClusterResponse
|
package/dist/client.js
CHANGED
|
@@ -289,6 +289,36 @@ class LogAnalyzeResult extends $tea.Model {
|
|
|
289
289
|
}
|
|
290
290
|
}
|
|
291
291
|
exports.LogAnalyzeResult = LogAnalyzeResult;
|
|
292
|
+
class OperatorNode extends $tea.Model {
|
|
293
|
+
constructor(map) {
|
|
294
|
+
super(map);
|
|
295
|
+
}
|
|
296
|
+
static names() {
|
|
297
|
+
return {
|
|
298
|
+
children: 'children',
|
|
299
|
+
id: 'id',
|
|
300
|
+
levelWidth: 'levelWidth',
|
|
301
|
+
nodeDepth: 'nodeDepth',
|
|
302
|
+
nodeName: 'nodeName',
|
|
303
|
+
nodeWidth: 'nodeWidth',
|
|
304
|
+
parentId: 'parentId',
|
|
305
|
+
stats: 'stats',
|
|
306
|
+
};
|
|
307
|
+
}
|
|
308
|
+
static types() {
|
|
309
|
+
return {
|
|
310
|
+
children: { 'type': 'array', 'itemType': OperatorNode },
|
|
311
|
+
id: 'number',
|
|
312
|
+
levelWidth: 'number',
|
|
313
|
+
nodeDepth: 'number',
|
|
314
|
+
nodeName: 'string',
|
|
315
|
+
nodeWidth: 'number',
|
|
316
|
+
parentId: 'number',
|
|
317
|
+
stats: OperatorNodeStats,
|
|
318
|
+
};
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
exports.OperatorNode = OperatorNode;
|
|
292
322
|
class SerDeInfoModel extends $tea.Model {
|
|
293
323
|
constructor(map) {
|
|
294
324
|
super(map);
|
|
@@ -397,6 +427,24 @@ class SparkAttemptInfo extends $tea.Model {
|
|
|
397
427
|
}
|
|
398
428
|
}
|
|
399
429
|
exports.SparkAttemptInfo = SparkAttemptInfo;
|
|
430
|
+
class SparkOperatorInfo extends $tea.Model {
|
|
431
|
+
constructor(map) {
|
|
432
|
+
super(map);
|
|
433
|
+
}
|
|
434
|
+
static names() {
|
|
435
|
+
return {
|
|
436
|
+
metricValue: 'MetricValue',
|
|
437
|
+
operatorName: 'OperatorName',
|
|
438
|
+
};
|
|
439
|
+
}
|
|
440
|
+
static types() {
|
|
441
|
+
return {
|
|
442
|
+
metricValue: 'number',
|
|
443
|
+
operatorName: 'Buffer',
|
|
444
|
+
};
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
exports.SparkOperatorInfo = SparkOperatorInfo;
|
|
400
448
|
class SparkSession extends $tea.Model {
|
|
401
449
|
constructor(map) {
|
|
402
450
|
super(map);
|
|
@@ -4908,11 +4956,13 @@ class GetSparkAppInfoRequest extends $tea.Model {
|
|
|
4908
4956
|
static names() {
|
|
4909
4957
|
return {
|
|
4910
4958
|
appId: 'AppId',
|
|
4959
|
+
DBClusterId: 'DBClusterId',
|
|
4911
4960
|
};
|
|
4912
4961
|
}
|
|
4913
4962
|
static types() {
|
|
4914
4963
|
return {
|
|
4915
4964
|
appId: 'string',
|
|
4965
|
+
DBClusterId: 'string',
|
|
4916
4966
|
};
|
|
4917
4967
|
}
|
|
4918
4968
|
}
|
|
@@ -4962,12 +5012,14 @@ class GetSparkAppLogRequest extends $tea.Model {
|
|
|
4962
5012
|
static names() {
|
|
4963
5013
|
return {
|
|
4964
5014
|
appId: 'AppId',
|
|
5015
|
+
DBClusterId: 'DBClusterId',
|
|
4965
5016
|
logLength: 'LogLength',
|
|
4966
5017
|
};
|
|
4967
5018
|
}
|
|
4968
5019
|
static types() {
|
|
4969
5020
|
return {
|
|
4970
5021
|
appId: 'string',
|
|
5022
|
+
DBClusterId: 'string',
|
|
4971
5023
|
logLength: 'number',
|
|
4972
5024
|
};
|
|
4973
5025
|
}
|
|
@@ -5018,11 +5070,13 @@ class GetSparkAppMetricsRequest extends $tea.Model {
|
|
|
5018
5070
|
static names() {
|
|
5019
5071
|
return {
|
|
5020
5072
|
appId: 'AppId',
|
|
5073
|
+
DBClusterId: 'DBClusterId',
|
|
5021
5074
|
};
|
|
5022
5075
|
}
|
|
5023
5076
|
static types() {
|
|
5024
5077
|
return {
|
|
5025
5078
|
appId: 'string',
|
|
5079
|
+
DBClusterId: 'string',
|
|
5026
5080
|
};
|
|
5027
5081
|
}
|
|
5028
5082
|
}
|
|
@@ -5072,11 +5126,13 @@ class GetSparkAppStateRequest extends $tea.Model {
|
|
|
5072
5126
|
static names() {
|
|
5073
5127
|
return {
|
|
5074
5128
|
appId: 'AppId',
|
|
5129
|
+
DBClusterId: 'DBClusterId',
|
|
5075
5130
|
};
|
|
5076
5131
|
}
|
|
5077
5132
|
static types() {
|
|
5078
5133
|
return {
|
|
5079
5134
|
appId: 'string',
|
|
5135
|
+
DBClusterId: 'string',
|
|
5080
5136
|
};
|
|
5081
5137
|
}
|
|
5082
5138
|
}
|
|
@@ -5126,11 +5182,13 @@ class GetSparkAppWebUiAddressRequest extends $tea.Model {
|
|
|
5126
5182
|
static names() {
|
|
5127
5183
|
return {
|
|
5128
5184
|
appId: 'AppId',
|
|
5185
|
+
DBClusterId: 'DBClusterId',
|
|
5129
5186
|
};
|
|
5130
5187
|
}
|
|
5131
5188
|
static types() {
|
|
5132
5189
|
return {
|
|
5133
5190
|
appId: 'string',
|
|
5191
|
+
DBClusterId: 'string',
|
|
5134
5192
|
};
|
|
5135
5193
|
}
|
|
5136
5194
|
}
|
|
@@ -5974,11 +6032,13 @@ class KillSparkAppRequest extends $tea.Model {
|
|
|
5974
6032
|
static names() {
|
|
5975
6033
|
return {
|
|
5976
6034
|
appId: 'AppId',
|
|
6035
|
+
DBClusterId: 'DBClusterId',
|
|
5977
6036
|
};
|
|
5978
6037
|
}
|
|
5979
6038
|
static types() {
|
|
5980
6039
|
return {
|
|
5981
6040
|
appId: 'string',
|
|
6041
|
+
DBClusterId: 'string',
|
|
5982
6042
|
};
|
|
5983
6043
|
}
|
|
5984
6044
|
}
|
|
@@ -6138,6 +6198,7 @@ class ListSparkAppAttemptsRequest extends $tea.Model {
|
|
|
6138
6198
|
static names() {
|
|
6139
6199
|
return {
|
|
6140
6200
|
appId: 'AppId',
|
|
6201
|
+
DBClusterId: 'DBClusterId',
|
|
6141
6202
|
pageNumber: 'PageNumber',
|
|
6142
6203
|
pageSize: 'PageSize',
|
|
6143
6204
|
};
|
|
@@ -6145,6 +6206,7 @@ class ListSparkAppAttemptsRequest extends $tea.Model {
|
|
|
6145
6206
|
static types() {
|
|
6146
6207
|
return {
|
|
6147
6208
|
appId: 'string',
|
|
6209
|
+
DBClusterId: 'string',
|
|
6148
6210
|
pageNumber: 'number',
|
|
6149
6211
|
pageSize: 'number',
|
|
6150
6212
|
};
|
|
@@ -7006,11 +7068,13 @@ class PreloadSparkAppMetricsRequest extends $tea.Model {
|
|
|
7006
7068
|
static names() {
|
|
7007
7069
|
return {
|
|
7008
7070
|
appId: 'AppId',
|
|
7071
|
+
DBClusterId: 'DBClusterId',
|
|
7009
7072
|
};
|
|
7010
7073
|
}
|
|
7011
7074
|
static types() {
|
|
7012
7075
|
return {
|
|
7013
7076
|
appId: 'string',
|
|
7077
|
+
DBClusterId: 'string',
|
|
7014
7078
|
};
|
|
7015
7079
|
}
|
|
7016
7080
|
}
|
|
@@ -7691,6 +7755,30 @@ class FiltersTermiatedTimeRange extends $tea.Model {
|
|
|
7691
7755
|
}
|
|
7692
7756
|
}
|
|
7693
7757
|
exports.FiltersTermiatedTimeRange = FiltersTermiatedTimeRange;
|
|
7758
|
+
class OperatorNodeStats extends $tea.Model {
|
|
7759
|
+
constructor(map) {
|
|
7760
|
+
super(map);
|
|
7761
|
+
}
|
|
7762
|
+
static names() {
|
|
7763
|
+
return {
|
|
7764
|
+
bytes: 'bytes',
|
|
7765
|
+
outputRows: 'outputRows',
|
|
7766
|
+
parameters: 'parameters',
|
|
7767
|
+
peakMemory: 'peakMemory',
|
|
7768
|
+
timeCost: 'timeCost',
|
|
7769
|
+
};
|
|
7770
|
+
}
|
|
7771
|
+
static types() {
|
|
7772
|
+
return {
|
|
7773
|
+
bytes: 'number',
|
|
7774
|
+
outputRows: 'number',
|
|
7775
|
+
parameters: 'string',
|
|
7776
|
+
peakMemory: 'number',
|
|
7777
|
+
timeCost: 'number',
|
|
7778
|
+
};
|
|
7779
|
+
}
|
|
7780
|
+
}
|
|
7781
|
+
exports.OperatorNodeStats = OperatorNodeStats;
|
|
7694
7782
|
class CreateDBClusterRequestTag extends $tea.Model {
|
|
7695
7783
|
constructor(map) {
|
|
7696
7784
|
super(map);
|
|
@@ -12346,11 +12434,16 @@ class Client extends openapi_client_1.default {
|
|
|
12346
12434
|
}
|
|
12347
12435
|
async getSparkAppInfoWithOptions(request, runtime) {
|
|
12348
12436
|
tea_util_1.default.validateModel(request);
|
|
12437
|
+
let query = {};
|
|
12438
|
+
if (!tea_util_1.default.isUnset(request.DBClusterId)) {
|
|
12439
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
12440
|
+
}
|
|
12349
12441
|
let body = {};
|
|
12350
12442
|
if (!tea_util_1.default.isUnset(request.appId)) {
|
|
12351
12443
|
body["AppId"] = request.appId;
|
|
12352
12444
|
}
|
|
12353
12445
|
let req = new $OpenApi.OpenApiRequest({
|
|
12446
|
+
query: openapi_util_1.default.query(query),
|
|
12354
12447
|
body: openapi_util_1.default.parseToMap(body),
|
|
12355
12448
|
});
|
|
12356
12449
|
let params = new $OpenApi.Params({
|
|
@@ -12372,6 +12465,10 @@ class Client extends openapi_client_1.default {
|
|
|
12372
12465
|
}
|
|
12373
12466
|
async getSparkAppLogWithOptions(request, runtime) {
|
|
12374
12467
|
tea_util_1.default.validateModel(request);
|
|
12468
|
+
let query = {};
|
|
12469
|
+
if (!tea_util_1.default.isUnset(request.DBClusterId)) {
|
|
12470
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
12471
|
+
}
|
|
12375
12472
|
let body = {};
|
|
12376
12473
|
if (!tea_util_1.default.isUnset(request.appId)) {
|
|
12377
12474
|
body["AppId"] = request.appId;
|
|
@@ -12380,6 +12477,7 @@ class Client extends openapi_client_1.default {
|
|
|
12380
12477
|
body["LogLength"] = request.logLength;
|
|
12381
12478
|
}
|
|
12382
12479
|
let req = new $OpenApi.OpenApiRequest({
|
|
12480
|
+
query: openapi_util_1.default.query(query),
|
|
12383
12481
|
body: openapi_util_1.default.parseToMap(body),
|
|
12384
12482
|
});
|
|
12385
12483
|
let params = new $OpenApi.Params({
|
|
@@ -12401,11 +12499,16 @@ class Client extends openapi_client_1.default {
|
|
|
12401
12499
|
}
|
|
12402
12500
|
async getSparkAppMetricsWithOptions(request, runtime) {
|
|
12403
12501
|
tea_util_1.default.validateModel(request);
|
|
12502
|
+
let query = {};
|
|
12503
|
+
if (!tea_util_1.default.isUnset(request.DBClusterId)) {
|
|
12504
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
12505
|
+
}
|
|
12404
12506
|
let body = {};
|
|
12405
12507
|
if (!tea_util_1.default.isUnset(request.appId)) {
|
|
12406
12508
|
body["AppId"] = request.appId;
|
|
12407
12509
|
}
|
|
12408
12510
|
let req = new $OpenApi.OpenApiRequest({
|
|
12511
|
+
query: openapi_util_1.default.query(query),
|
|
12409
12512
|
body: openapi_util_1.default.parseToMap(body),
|
|
12410
12513
|
});
|
|
12411
12514
|
let params = new $OpenApi.Params({
|
|
@@ -12427,11 +12530,16 @@ class Client extends openapi_client_1.default {
|
|
|
12427
12530
|
}
|
|
12428
12531
|
async getSparkAppStateWithOptions(request, runtime) {
|
|
12429
12532
|
tea_util_1.default.validateModel(request);
|
|
12533
|
+
let query = {};
|
|
12534
|
+
if (!tea_util_1.default.isUnset(request.DBClusterId)) {
|
|
12535
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
12536
|
+
}
|
|
12430
12537
|
let body = {};
|
|
12431
12538
|
if (!tea_util_1.default.isUnset(request.appId)) {
|
|
12432
12539
|
body["AppId"] = request.appId;
|
|
12433
12540
|
}
|
|
12434
12541
|
let req = new $OpenApi.OpenApiRequest({
|
|
12542
|
+
query: openapi_util_1.default.query(query),
|
|
12435
12543
|
body: openapi_util_1.default.parseToMap(body),
|
|
12436
12544
|
});
|
|
12437
12545
|
let params = new $OpenApi.Params({
|
|
@@ -12453,11 +12561,16 @@ class Client extends openapi_client_1.default {
|
|
|
12453
12561
|
}
|
|
12454
12562
|
async getSparkAppWebUiAddressWithOptions(request, runtime) {
|
|
12455
12563
|
tea_util_1.default.validateModel(request);
|
|
12564
|
+
let query = {};
|
|
12565
|
+
if (!tea_util_1.default.isUnset(request.DBClusterId)) {
|
|
12566
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
12567
|
+
}
|
|
12456
12568
|
let body = {};
|
|
12457
12569
|
if (!tea_util_1.default.isUnset(request.appId)) {
|
|
12458
12570
|
body["AppId"] = request.appId;
|
|
12459
12571
|
}
|
|
12460
12572
|
let req = new $OpenApi.OpenApiRequest({
|
|
12573
|
+
query: openapi_util_1.default.query(query),
|
|
12461
12574
|
body: openapi_util_1.default.parseToMap(body),
|
|
12462
12575
|
});
|
|
12463
12576
|
let params = new $OpenApi.Params({
|
|
@@ -12947,11 +13060,16 @@ class Client extends openapi_client_1.default {
|
|
|
12947
13060
|
}
|
|
12948
13061
|
async killSparkAppWithOptions(request, runtime) {
|
|
12949
13062
|
tea_util_1.default.validateModel(request);
|
|
13063
|
+
let query = {};
|
|
13064
|
+
if (!tea_util_1.default.isUnset(request.DBClusterId)) {
|
|
13065
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
13066
|
+
}
|
|
12950
13067
|
let body = {};
|
|
12951
13068
|
if (!tea_util_1.default.isUnset(request.appId)) {
|
|
12952
13069
|
body["AppId"] = request.appId;
|
|
12953
13070
|
}
|
|
12954
13071
|
let req = new $OpenApi.OpenApiRequest({
|
|
13072
|
+
query: openapi_util_1.default.query(query),
|
|
12955
13073
|
body: openapi_util_1.default.parseToMap(body),
|
|
12956
13074
|
});
|
|
12957
13075
|
let params = new $OpenApi.Params({
|
|
@@ -13032,6 +13150,9 @@ class Client extends openapi_client_1.default {
|
|
|
13032
13150
|
if (!tea_util_1.default.isUnset(request.appId)) {
|
|
13033
13151
|
query["AppId"] = request.appId;
|
|
13034
13152
|
}
|
|
13153
|
+
if (!tea_util_1.default.isUnset(request.DBClusterId)) {
|
|
13154
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
13155
|
+
}
|
|
13035
13156
|
if (!tea_util_1.default.isUnset(request.pageNumber)) {
|
|
13036
13157
|
query["PageNumber"] = request.pageNumber;
|
|
13037
13158
|
}
|
|
@@ -13341,9 +13462,12 @@ class Client extends openapi_client_1.default {
|
|
|
13341
13462
|
return await this.modifyClusterConnectionStringWithOptions(request, runtime);
|
|
13342
13463
|
}
|
|
13343
13464
|
/**
|
|
13344
|
-
*
|
|
13345
|
-
* *
|
|
13465
|
+
* ### [](#)
|
|
13466
|
+
* * 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.
|
|
13467
|
+
* * 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.
|
|
13346
13468
|
* * 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.
|
|
13469
|
+
* * 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.
|
|
13470
|
+
* * 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.
|
|
13347
13471
|
*
|
|
13348
13472
|
* @param request ModifyDBClusterRequest
|
|
13349
13473
|
* @param runtime runtime options for this request RuntimeOptions
|
|
@@ -13393,9 +13517,12 @@ class Client extends openapi_client_1.default {
|
|
|
13393
13517
|
return $tea.cast(await this.callApi(params, req, runtime), new ModifyDBClusterResponse({}));
|
|
13394
13518
|
}
|
|
13395
13519
|
/**
|
|
13396
|
-
*
|
|
13397
|
-
* *
|
|
13520
|
+
* ### [](#)
|
|
13521
|
+
* * 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.
|
|
13522
|
+
* * 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.
|
|
13398
13523
|
* * 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.
|
|
13524
|
+
* * 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.
|
|
13525
|
+
* * 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.
|
|
13399
13526
|
*
|
|
13400
13527
|
* @param request ModifyDBClusterRequest
|
|
13401
13528
|
* @return ModifyDBClusterResponse
|
|
@@ -13555,11 +13682,16 @@ class Client extends openapi_client_1.default {
|
|
|
13555
13682
|
}
|
|
13556
13683
|
async preloadSparkAppMetricsWithOptions(request, runtime) {
|
|
13557
13684
|
tea_util_1.default.validateModel(request);
|
|
13685
|
+
let query = {};
|
|
13686
|
+
if (!tea_util_1.default.isUnset(request.DBClusterId)) {
|
|
13687
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
13688
|
+
}
|
|
13558
13689
|
let body = {};
|
|
13559
13690
|
if (!tea_util_1.default.isUnset(request.appId)) {
|
|
13560
13691
|
body["AppId"] = request.appId;
|
|
13561
13692
|
}
|
|
13562
13693
|
let req = new $OpenApi.OpenApiRequest({
|
|
13694
|
+
query: openapi_util_1.default.query(query),
|
|
13563
13695
|
body: openapi_util_1.default.parseToMap(body),
|
|
13564
13696
|
});
|
|
13565
13697
|
let params = new $OpenApi.Params({
|