@alicloud/adb20211201 4.6.1 → 4.7.1
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 +30 -0
- package/dist/client.js +131 -0
- package/dist/client.js.map +1 -1
- package/dist/models/DescribeAuditLogRecordsResponseBody.d.ts +5 -0
- package/dist/models/DescribeAuditLogRecordsResponseBody.js +2 -0
- package/dist/models/DescribeAuditLogRecordsResponseBody.js.map +1 -1
- package/dist/models/DescribeAutoRenewalAttributeRequest.d.ts +60 -0
- package/dist/models/DescribeAutoRenewalAttributeRequest.js +77 -0
- package/dist/models/DescribeAutoRenewalAttributeRequest.js.map +1 -0
- package/dist/models/DescribeAutoRenewalAttributeResponse.d.ts +19 -0
- package/dist/models/DescribeAutoRenewalAttributeResponse.js +69 -0
- package/dist/models/DescribeAutoRenewalAttributeResponse.js.map +1 -0
- package/dist/models/DescribeAutoRenewalAttributeResponseBody.d.ts +133 -0
- package/dist/models/DescribeAutoRenewalAttributeResponseBody.js +120 -0
- package/dist/models/DescribeAutoRenewalAttributeResponseBody.js.map +1 -0
- package/dist/models/DescribeAutoRenewalAttributeShrinkRequest.d.ts +60 -0
- package/dist/models/DescribeAutoRenewalAttributeShrinkRequest.js +74 -0
- package/dist/models/DescribeAutoRenewalAttributeShrinkRequest.js.map +1 -0
- package/dist/models/DescribeDownloadRecordsRequest.d.ts +2 -0
- package/dist/models/DescribeDownloadRecordsRequest.js.map +1 -1
- package/dist/models/ModifyAutoRenewalAttributeRequest.d.ts +73 -0
- package/dist/models/ModifyAutoRenewalAttributeRequest.js +74 -0
- package/dist/models/ModifyAutoRenewalAttributeRequest.js.map +1 -0
- package/dist/models/ModifyAutoRenewalAttributeResponse.d.ts +19 -0
- package/dist/models/ModifyAutoRenewalAttributeResponse.js +69 -0
- package/dist/models/ModifyAutoRenewalAttributeResponse.js.map +1 -0
- package/dist/models/ModifyAutoRenewalAttributeResponseBody.d.ts +21 -0
- package/dist/models/ModifyAutoRenewalAttributeResponseBody.js +58 -0
- package/dist/models/ModifyAutoRenewalAttributeResponseBody.js.map +1 -0
- package/dist/models/model.d.ts +9 -0
- package/dist/models/model.js +38 -20
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +154 -0
- package/src/models/DescribeAuditLogRecordsResponseBody.ts +7 -0
- package/src/models/DescribeAutoRenewalAttributeRequest.ts +92 -0
- package/src/models/DescribeAutoRenewalAttributeResponse.ts +40 -0
- package/src/models/DescribeAutoRenewalAttributeResponseBody.ts +190 -0
- package/src/models/DescribeAutoRenewalAttributeShrinkRequest.ts +89 -0
- package/src/models/DescribeDownloadRecordsRequest.ts +2 -0
- package/src/models/ModifyAutoRenewalAttributeRequest.ts +102 -0
- package/src/models/ModifyAutoRenewalAttributeResponse.ts +40 -0
- package/src/models/ModifyAutoRenewalAttributeResponseBody.ts +34 -0
- package/src/models/model.ts +9 -0
package/src/client.ts
CHANGED
|
@@ -4673,6 +4673,86 @@ export default class Client extends OpenApi {
|
|
|
4673
4673
|
return await this.describeAuditLogRecordsWithOptions(request, runtime);
|
|
4674
4674
|
}
|
|
4675
4675
|
|
|
4676
|
+
/**
|
|
4677
|
+
* Queries the auto-renewal status of a subscription cluster.
|
|
4678
|
+
*
|
|
4679
|
+
* @param tmpReq - DescribeAutoRenewalAttributeRequest
|
|
4680
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
4681
|
+
* @returns DescribeAutoRenewalAttributeResponse
|
|
4682
|
+
*/
|
|
4683
|
+
async describeAutoRenewalAttributeWithOptions(tmpReq: $_model.DescribeAutoRenewalAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.DescribeAutoRenewalAttributeResponse> {
|
|
4684
|
+
tmpReq.validate();
|
|
4685
|
+
let request = new $_model.DescribeAutoRenewalAttributeShrinkRequest({ });
|
|
4686
|
+
OpenApiUtil.convert(tmpReq, request);
|
|
4687
|
+
if (!$dara.isNull(tmpReq.DBClusterId)) {
|
|
4688
|
+
request.DBClusterIdShrink = OpenApiUtil.arrayToStringWithSpecifiedStyle(tmpReq.DBClusterId, "DBClusterId", "json");
|
|
4689
|
+
}
|
|
4690
|
+
|
|
4691
|
+
let query = { };
|
|
4692
|
+
if (!$dara.isNull(request.DBClusterIdShrink)) {
|
|
4693
|
+
query["DBClusterId"] = request.DBClusterIdShrink;
|
|
4694
|
+
}
|
|
4695
|
+
|
|
4696
|
+
if (!$dara.isNull(request.ownerAccount)) {
|
|
4697
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
4698
|
+
}
|
|
4699
|
+
|
|
4700
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
4701
|
+
query["OwnerId"] = request.ownerId;
|
|
4702
|
+
}
|
|
4703
|
+
|
|
4704
|
+
if (!$dara.isNull(request.pageNumber)) {
|
|
4705
|
+
query["PageNumber"] = request.pageNumber;
|
|
4706
|
+
}
|
|
4707
|
+
|
|
4708
|
+
if (!$dara.isNull(request.pageSize)) {
|
|
4709
|
+
query["PageSize"] = request.pageSize;
|
|
4710
|
+
}
|
|
4711
|
+
|
|
4712
|
+
if (!$dara.isNull(request.regionId)) {
|
|
4713
|
+
query["RegionId"] = request.regionId;
|
|
4714
|
+
}
|
|
4715
|
+
|
|
4716
|
+
if (!$dara.isNull(request.resourceGroupId)) {
|
|
4717
|
+
query["ResourceGroupId"] = request.resourceGroupId;
|
|
4718
|
+
}
|
|
4719
|
+
|
|
4720
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
4721
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
4722
|
+
}
|
|
4723
|
+
|
|
4724
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
4725
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
4726
|
+
}
|
|
4727
|
+
|
|
4728
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
4729
|
+
query: OpenApiUtil.query(query),
|
|
4730
|
+
});
|
|
4731
|
+
let params = new $OpenApiUtil.Params({
|
|
4732
|
+
action: "DescribeAutoRenewalAttribute",
|
|
4733
|
+
version: "2021-12-01",
|
|
4734
|
+
protocol: "HTTPS",
|
|
4735
|
+
pathname: "/",
|
|
4736
|
+
method: "POST",
|
|
4737
|
+
authType: "AK",
|
|
4738
|
+
style: "RPC",
|
|
4739
|
+
reqBodyType: "formData",
|
|
4740
|
+
bodyType: "json",
|
|
4741
|
+
});
|
|
4742
|
+
return $dara.cast<$_model.DescribeAutoRenewalAttributeResponse>(await this.callApi(params, req, runtime), new $_model.DescribeAutoRenewalAttributeResponse({}));
|
|
4743
|
+
}
|
|
4744
|
+
|
|
4745
|
+
/**
|
|
4746
|
+
* Queries the auto-renewal status of a subscription cluster.
|
|
4747
|
+
*
|
|
4748
|
+
* @param request - DescribeAutoRenewalAttributeRequest
|
|
4749
|
+
* @returns DescribeAutoRenewalAttributeResponse
|
|
4750
|
+
*/
|
|
4751
|
+
async describeAutoRenewalAttribute(request: $_model.DescribeAutoRenewalAttributeRequest): Promise<$_model.DescribeAutoRenewalAttributeResponse> {
|
|
4752
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
4753
|
+
return await this.describeAutoRenewalAttributeWithOptions(request, runtime);
|
|
4754
|
+
}
|
|
4755
|
+
|
|
4676
4756
|
/**
|
|
4677
4757
|
* Queries the available optimization suggestions for an AnalyticDB for MySQL cluster.
|
|
4678
4758
|
*
|
|
@@ -13220,6 +13300,80 @@ export default class Client extends OpenApi {
|
|
|
13220
13300
|
return await this.modifyAuditLogConfigWithOptions(request, runtime);
|
|
13221
13301
|
}
|
|
13222
13302
|
|
|
13303
|
+
/**
|
|
13304
|
+
* Configures auto-renewal for a subscription cluster.
|
|
13305
|
+
*
|
|
13306
|
+
* @param request - ModifyAutoRenewalAttributeRequest
|
|
13307
|
+
* @param runtime - runtime options for this request RuntimeOptions
|
|
13308
|
+
* @returns ModifyAutoRenewalAttributeResponse
|
|
13309
|
+
*/
|
|
13310
|
+
async modifyAutoRenewalAttributeWithOptions(request: $_model.ModifyAutoRenewalAttributeRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ModifyAutoRenewalAttributeResponse> {
|
|
13311
|
+
request.validate();
|
|
13312
|
+
let query = { };
|
|
13313
|
+
if (!$dara.isNull(request.autoRenewalPeriod)) {
|
|
13314
|
+
query["AutoRenewalPeriod"] = request.autoRenewalPeriod;
|
|
13315
|
+
}
|
|
13316
|
+
|
|
13317
|
+
if (!$dara.isNull(request.autoRenewalPeriodUnit)) {
|
|
13318
|
+
query["AutoRenewalPeriodUnit"] = request.autoRenewalPeriodUnit;
|
|
13319
|
+
}
|
|
13320
|
+
|
|
13321
|
+
if (!$dara.isNull(request.autoRenewalStatus)) {
|
|
13322
|
+
query["AutoRenewalStatus"] = request.autoRenewalStatus;
|
|
13323
|
+
}
|
|
13324
|
+
|
|
13325
|
+
if (!$dara.isNull(request.DBClusterId)) {
|
|
13326
|
+
query["DBClusterId"] = request.DBClusterId;
|
|
13327
|
+
}
|
|
13328
|
+
|
|
13329
|
+
if (!$dara.isNull(request.ownerAccount)) {
|
|
13330
|
+
query["OwnerAccount"] = request.ownerAccount;
|
|
13331
|
+
}
|
|
13332
|
+
|
|
13333
|
+
if (!$dara.isNull(request.ownerId)) {
|
|
13334
|
+
query["OwnerId"] = request.ownerId;
|
|
13335
|
+
}
|
|
13336
|
+
|
|
13337
|
+
if (!$dara.isNull(request.regionId)) {
|
|
13338
|
+
query["RegionId"] = request.regionId;
|
|
13339
|
+
}
|
|
13340
|
+
|
|
13341
|
+
if (!$dara.isNull(request.resourceOwnerAccount)) {
|
|
13342
|
+
query["ResourceOwnerAccount"] = request.resourceOwnerAccount;
|
|
13343
|
+
}
|
|
13344
|
+
|
|
13345
|
+
if (!$dara.isNull(request.resourceOwnerId)) {
|
|
13346
|
+
query["ResourceOwnerId"] = request.resourceOwnerId;
|
|
13347
|
+
}
|
|
13348
|
+
|
|
13349
|
+
let req = new $OpenApiUtil.OpenApiRequest({
|
|
13350
|
+
query: OpenApiUtil.query(query),
|
|
13351
|
+
});
|
|
13352
|
+
let params = new $OpenApiUtil.Params({
|
|
13353
|
+
action: "ModifyAutoRenewalAttribute",
|
|
13354
|
+
version: "2021-12-01",
|
|
13355
|
+
protocol: "HTTPS",
|
|
13356
|
+
pathname: "/",
|
|
13357
|
+
method: "POST",
|
|
13358
|
+
authType: "AK",
|
|
13359
|
+
style: "RPC",
|
|
13360
|
+
reqBodyType: "formData",
|
|
13361
|
+
bodyType: "json",
|
|
13362
|
+
});
|
|
13363
|
+
return $dara.cast<$_model.ModifyAutoRenewalAttributeResponse>(await this.callApi(params, req, runtime), new $_model.ModifyAutoRenewalAttributeResponse({}));
|
|
13364
|
+
}
|
|
13365
|
+
|
|
13366
|
+
/**
|
|
13367
|
+
* Configures auto-renewal for a subscription cluster.
|
|
13368
|
+
*
|
|
13369
|
+
* @param request - ModifyAutoRenewalAttributeRequest
|
|
13370
|
+
* @returns ModifyAutoRenewalAttributeResponse
|
|
13371
|
+
*/
|
|
13372
|
+
async modifyAutoRenewalAttribute(request: $_model.ModifyAutoRenewalAttributeRequest): Promise<$_model.ModifyAutoRenewalAttributeResponse> {
|
|
13373
|
+
let runtime = new $dara.RuntimeOptions({ });
|
|
13374
|
+
return await this.modifyAutoRenewalAttributeWithOptions(request, runtime);
|
|
13375
|
+
}
|
|
13376
|
+
|
|
13223
13377
|
/**
|
|
13224
13378
|
* Modifies the backup policy of an AnalyticDB for MySQL cluster.
|
|
13225
13379
|
*
|
|
@@ -28,6 +28,11 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
|
|
|
28
28
|
*/
|
|
29
29
|
executeTime?: string;
|
|
30
30
|
executeTimestamp?: number;
|
|
31
|
+
/**
|
|
32
|
+
* **if can be null:**
|
|
33
|
+
* true
|
|
34
|
+
*/
|
|
35
|
+
hasDiagnosticInfo?: boolean;
|
|
31
36
|
/**
|
|
32
37
|
* @remarks
|
|
33
38
|
* The IP address and port number of the client that is used to execute the SQL statement.
|
|
@@ -93,6 +98,7 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
|
|
|
93
98
|
DBName: 'DBName',
|
|
94
99
|
executeTime: 'ExecuteTime',
|
|
95
100
|
executeTimestamp: 'ExecuteTimestamp',
|
|
101
|
+
hasDiagnosticInfo: 'HasDiagnosticInfo',
|
|
96
102
|
hostAddress: 'HostAddress',
|
|
97
103
|
processID: 'ProcessID',
|
|
98
104
|
SQLText: 'SQLText',
|
|
@@ -109,6 +115,7 @@ export class DescribeAuditLogRecordsResponseBodyItems extends $dara.Model {
|
|
|
109
115
|
DBName: 'string',
|
|
110
116
|
executeTime: 'string',
|
|
111
117
|
executeTimestamp: 'number',
|
|
118
|
+
hasDiagnosticInfo: 'boolean',
|
|
112
119
|
hostAddress: 'string',
|
|
113
120
|
processID: 'string',
|
|
114
121
|
SQLText: 'string',
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeAutoRenewalAttributeRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The cluster IDs.
|
|
9
|
+
*/
|
|
10
|
+
DBClusterId?: string[];
|
|
11
|
+
ownerAccount?: string;
|
|
12
|
+
ownerId?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* The page number. A positive integer greater than 0 and not exceeding the maximum value of the Integer data type. Default value: **1**.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* 1
|
|
19
|
+
*/
|
|
20
|
+
pageNumber?: number;
|
|
21
|
+
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* The number of entries returned on each page. Valid values:
|
|
24
|
+
*
|
|
25
|
+
* * **30**(Default)
|
|
26
|
+
* * **50**
|
|
27
|
+
* * **100**
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* 30
|
|
31
|
+
*/
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
/**
|
|
34
|
+
* @remarks
|
|
35
|
+
* The region ID.
|
|
36
|
+
*
|
|
37
|
+
* This parameter is required.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* cn-hangzhou
|
|
41
|
+
*/
|
|
42
|
+
regionId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @remarks
|
|
45
|
+
* The resource group ID.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* rg-4690g37929****
|
|
49
|
+
*/
|
|
50
|
+
resourceGroupId?: string;
|
|
51
|
+
resourceOwnerAccount?: string;
|
|
52
|
+
resourceOwnerId?: number;
|
|
53
|
+
static names(): { [key: string]: string } {
|
|
54
|
+
return {
|
|
55
|
+
DBClusterId: 'DBClusterId',
|
|
56
|
+
ownerAccount: 'OwnerAccount',
|
|
57
|
+
ownerId: 'OwnerId',
|
|
58
|
+
pageNumber: 'PageNumber',
|
|
59
|
+
pageSize: 'PageSize',
|
|
60
|
+
regionId: 'RegionId',
|
|
61
|
+
resourceGroupId: 'ResourceGroupId',
|
|
62
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
63
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static types(): { [key: string]: any } {
|
|
68
|
+
return {
|
|
69
|
+
DBClusterId: { 'type': 'array', 'itemType': 'string' },
|
|
70
|
+
ownerAccount: 'string',
|
|
71
|
+
ownerId: 'number',
|
|
72
|
+
pageNumber: 'number',
|
|
73
|
+
pageSize: 'number',
|
|
74
|
+
regionId: 'string',
|
|
75
|
+
resourceGroupId: 'string',
|
|
76
|
+
resourceOwnerAccount: 'string',
|
|
77
|
+
resourceOwnerId: 'number',
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
validate() {
|
|
82
|
+
if(Array.isArray(this.DBClusterId)) {
|
|
83
|
+
$dara.Model.validateArray(this.DBClusterId);
|
|
84
|
+
}
|
|
85
|
+
super.validate();
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
constructor(map?: { [key: string]: any }) {
|
|
89
|
+
super(map);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { DescribeAutoRenewalAttributeResponseBody } from "./DescribeAutoRenewalAttributeResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class DescribeAutoRenewalAttributeResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: DescribeAutoRenewalAttributeResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: DescribeAutoRenewalAttributeResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeAutoRenewalAttributeResponseBodyItemsAutoRenewalAttribute extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* Indicates whether auto-renewal is enabled for the cluster. Valid values:
|
|
9
|
+
*
|
|
10
|
+
* * **true**: Enables.
|
|
11
|
+
* * **false**: Disables.
|
|
12
|
+
*
|
|
13
|
+
* @example
|
|
14
|
+
* true
|
|
15
|
+
*/
|
|
16
|
+
autoRenewalEnabled?: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* @remarks
|
|
19
|
+
* The auto-renewal duration.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* 1
|
|
23
|
+
*/
|
|
24
|
+
autoRenewalPeriod?: number;
|
|
25
|
+
/**
|
|
26
|
+
* @remarks
|
|
27
|
+
* The unit of auto-renewal duration. Valid values:
|
|
28
|
+
*
|
|
29
|
+
* * **Year**
|
|
30
|
+
* * **Month**
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* Year
|
|
34
|
+
*/
|
|
35
|
+
autoRenewalPeriodUnit?: string;
|
|
36
|
+
/**
|
|
37
|
+
* @remarks
|
|
38
|
+
* The renewal method. Valid values:
|
|
39
|
+
*
|
|
40
|
+
* * **AutoRenewal**: The cluster is automatically renewed.
|
|
41
|
+
* * **Normal**: The cluster is manually renewed. Before the cluster expires, the system sends you a reminder by SMS message.
|
|
42
|
+
* * **NotRenewal**: The cluster is not renewed. Reminders are only sent three days before cluster expiration.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* AutoRenewal
|
|
46
|
+
*/
|
|
47
|
+
autoRenewalStatus?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* The cluster ID.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* amv-uf6485635fz8****
|
|
54
|
+
*/
|
|
55
|
+
DBClusterId?: string;
|
|
56
|
+
/**
|
|
57
|
+
* @remarks
|
|
58
|
+
* The region ID.
|
|
59
|
+
*
|
|
60
|
+
* @example
|
|
61
|
+
* cn-shenzhen
|
|
62
|
+
*/
|
|
63
|
+
regionId?: string;
|
|
64
|
+
static names(): { [key: string]: string } {
|
|
65
|
+
return {
|
|
66
|
+
autoRenewalEnabled: 'AutoRenewalEnabled',
|
|
67
|
+
autoRenewalPeriod: 'AutoRenewalPeriod',
|
|
68
|
+
autoRenewalPeriodUnit: 'AutoRenewalPeriodUnit',
|
|
69
|
+
autoRenewalStatus: 'AutoRenewalStatus',
|
|
70
|
+
DBClusterId: 'DBClusterId',
|
|
71
|
+
regionId: 'RegionId',
|
|
72
|
+
};
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
static types(): { [key: string]: any } {
|
|
76
|
+
return {
|
|
77
|
+
autoRenewalEnabled: 'boolean',
|
|
78
|
+
autoRenewalPeriod: 'number',
|
|
79
|
+
autoRenewalPeriodUnit: 'string',
|
|
80
|
+
autoRenewalStatus: 'string',
|
|
81
|
+
DBClusterId: 'string',
|
|
82
|
+
regionId: 'string',
|
|
83
|
+
};
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
validate() {
|
|
87
|
+
super.validate();
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
constructor(map?: { [key: string]: any }) {
|
|
91
|
+
super(map);
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export class DescribeAutoRenewalAttributeResponseBodyItems extends $dara.Model {
|
|
96
|
+
autoRenewalAttribute?: DescribeAutoRenewalAttributeResponseBodyItemsAutoRenewalAttribute[];
|
|
97
|
+
static names(): { [key: string]: string } {
|
|
98
|
+
return {
|
|
99
|
+
autoRenewalAttribute: 'AutoRenewalAttribute',
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
static types(): { [key: string]: any } {
|
|
104
|
+
return {
|
|
105
|
+
autoRenewalAttribute: { 'type': 'array', 'itemType': DescribeAutoRenewalAttributeResponseBodyItemsAutoRenewalAttribute },
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
validate() {
|
|
110
|
+
if(Array.isArray(this.autoRenewalAttribute)) {
|
|
111
|
+
$dara.Model.validateArray(this.autoRenewalAttribute);
|
|
112
|
+
}
|
|
113
|
+
super.validate();
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
constructor(map?: { [key: string]: any }) {
|
|
117
|
+
super(map);
|
|
118
|
+
}
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export class DescribeAutoRenewalAttributeResponseBody extends $dara.Model {
|
|
122
|
+
/**
|
|
123
|
+
* @remarks
|
|
124
|
+
* The list of auto-renewal details.
|
|
125
|
+
*/
|
|
126
|
+
items?: DescribeAutoRenewalAttributeResponseBodyItems;
|
|
127
|
+
/**
|
|
128
|
+
* @remarks
|
|
129
|
+
* The page number of the returned page.
|
|
130
|
+
*
|
|
131
|
+
* @example
|
|
132
|
+
* 1
|
|
133
|
+
*/
|
|
134
|
+
pageNumber?: number;
|
|
135
|
+
/**
|
|
136
|
+
* @remarks
|
|
137
|
+
* The number of entries returned on each page.
|
|
138
|
+
*
|
|
139
|
+
* @example
|
|
140
|
+
* 30
|
|
141
|
+
*/
|
|
142
|
+
pageRecordCount?: number;
|
|
143
|
+
/**
|
|
144
|
+
* @remarks
|
|
145
|
+
* The request ID.
|
|
146
|
+
*
|
|
147
|
+
* @example
|
|
148
|
+
* BA0F6761-7A8C-59F8-9624-FB56788C0EDF
|
|
149
|
+
*/
|
|
150
|
+
requestId?: string;
|
|
151
|
+
/**
|
|
152
|
+
* @remarks
|
|
153
|
+
* The total number of entries returned.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* 20
|
|
157
|
+
*/
|
|
158
|
+
totalRecordCount?: number;
|
|
159
|
+
static names(): { [key: string]: string } {
|
|
160
|
+
return {
|
|
161
|
+
items: 'Items',
|
|
162
|
+
pageNumber: 'PageNumber',
|
|
163
|
+
pageRecordCount: 'PageRecordCount',
|
|
164
|
+
requestId: 'RequestId',
|
|
165
|
+
totalRecordCount: 'TotalRecordCount',
|
|
166
|
+
};
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
static types(): { [key: string]: any } {
|
|
170
|
+
return {
|
|
171
|
+
items: DescribeAutoRenewalAttributeResponseBodyItems,
|
|
172
|
+
pageNumber: 'number',
|
|
173
|
+
pageRecordCount: 'number',
|
|
174
|
+
requestId: 'string',
|
|
175
|
+
totalRecordCount: 'number',
|
|
176
|
+
};
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
validate() {
|
|
180
|
+
if(this.items && typeof (this.items as any).validate === 'function') {
|
|
181
|
+
(this.items as any).validate();
|
|
182
|
+
}
|
|
183
|
+
super.validate();
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
constructor(map?: { [key: string]: any }) {
|
|
187
|
+
super(map);
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class DescribeAutoRenewalAttributeShrinkRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The cluster IDs.
|
|
9
|
+
*/
|
|
10
|
+
DBClusterIdShrink?: string;
|
|
11
|
+
ownerAccount?: string;
|
|
12
|
+
ownerId?: number;
|
|
13
|
+
/**
|
|
14
|
+
* @remarks
|
|
15
|
+
* The page number. A positive integer greater than 0 and not exceeding the maximum value of the Integer data type. Default value: **1**.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* 1
|
|
19
|
+
*/
|
|
20
|
+
pageNumber?: number;
|
|
21
|
+
/**
|
|
22
|
+
* @remarks
|
|
23
|
+
* The number of entries returned on each page. Valid values:
|
|
24
|
+
*
|
|
25
|
+
* * **30**(Default)
|
|
26
|
+
* * **50**
|
|
27
|
+
* * **100**
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* 30
|
|
31
|
+
*/
|
|
32
|
+
pageSize?: number;
|
|
33
|
+
/**
|
|
34
|
+
* @remarks
|
|
35
|
+
* The region ID.
|
|
36
|
+
*
|
|
37
|
+
* This parameter is required.
|
|
38
|
+
*
|
|
39
|
+
* @example
|
|
40
|
+
* cn-hangzhou
|
|
41
|
+
*/
|
|
42
|
+
regionId?: string;
|
|
43
|
+
/**
|
|
44
|
+
* @remarks
|
|
45
|
+
* The resource group ID.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* rg-4690g37929****
|
|
49
|
+
*/
|
|
50
|
+
resourceGroupId?: string;
|
|
51
|
+
resourceOwnerAccount?: string;
|
|
52
|
+
resourceOwnerId?: number;
|
|
53
|
+
static names(): { [key: string]: string } {
|
|
54
|
+
return {
|
|
55
|
+
DBClusterIdShrink: 'DBClusterId',
|
|
56
|
+
ownerAccount: 'OwnerAccount',
|
|
57
|
+
ownerId: 'OwnerId',
|
|
58
|
+
pageNumber: 'PageNumber',
|
|
59
|
+
pageSize: 'PageSize',
|
|
60
|
+
regionId: 'RegionId',
|
|
61
|
+
resourceGroupId: 'ResourceGroupId',
|
|
62
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
63
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static types(): { [key: string]: any } {
|
|
68
|
+
return {
|
|
69
|
+
DBClusterIdShrink: 'string',
|
|
70
|
+
ownerAccount: 'string',
|
|
71
|
+
ownerId: 'number',
|
|
72
|
+
pageNumber: 'number',
|
|
73
|
+
pageSize: 'number',
|
|
74
|
+
regionId: 'string',
|
|
75
|
+
resourceGroupId: 'string',
|
|
76
|
+
resourceOwnerAccount: 'string',
|
|
77
|
+
resourceOwnerId: 'number',
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
validate() {
|
|
82
|
+
super.validate();
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
constructor(map?: { [key: string]: any }) {
|
|
86
|
+
super(map);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|