@alicloud/polardb20170801 5.9.0 → 5.9.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 +2 -2
- package/dist/client.js +14 -3
- package/dist/client.js.map +1 -1
- package/dist/models/DescribeBackupPolicyResponseBody.d.ts +43 -0
- package/dist/models/DescribeBackupPolicyResponseBody.js +79 -1
- package/dist/models/DescribeBackupPolicyResponseBody.js.map +1 -1
- package/dist/models/DescribeLogBackupPolicyResponseBody.d.ts +34 -0
- package/dist/models/DescribeLogBackupPolicyResponseBody.js +61 -1
- package/dist/models/DescribeLogBackupPolicyResponseBody.js.map +1 -1
- package/dist/models/ModifyBackupPolicyRequest.d.ts +30 -0
- package/dist/models/ModifyBackupPolicyRequest.js +57 -1
- package/dist/models/ModifyBackupPolicyRequest.js.map +1 -1
- package/dist/models/ModifyBackupPolicyShrinkRequest.d.ts +199 -0
- package/dist/models/ModifyBackupPolicyShrinkRequest.js +94 -0
- package/dist/models/ModifyBackupPolicyShrinkRequest.js.map +1 -0
- package/dist/models/model.d.ts +6 -0
- package/dist/models/model.js +31 -19
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +17 -3
- package/src/models/DescribeBackupPolicyResponseBody.ts +103 -0
- package/src/models/DescribeLogBackupPolicyResponseBody.ts +76 -0
- package/src/models/ModifyBackupPolicyRequest.ts +77 -0
- package/src/models/ModifyBackupPolicyShrinkRequest.ts +248 -0
- package/src/models/model.ts +6 -0
|
@@ -2,7 +2,100 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class DescribeBackupPolicyResponseBodyAdvancedDataPoliciesAdvancedDataPolicy extends $dara.Model {
|
|
6
|
+
autoCreated?: boolean;
|
|
7
|
+
bakType?: string;
|
|
8
|
+
destRegion?: string;
|
|
9
|
+
destType?: string;
|
|
10
|
+
dumpAction?: string;
|
|
11
|
+
filterKey?: string;
|
|
12
|
+
filterType?: string;
|
|
13
|
+
filterValue?: string;
|
|
14
|
+
onlyPreserveOneEachDay?: boolean;
|
|
15
|
+
onlyPreserveOneEachHour?: boolean;
|
|
16
|
+
policyId?: string;
|
|
17
|
+
retentionType?: string;
|
|
18
|
+
retentionValue?: string;
|
|
19
|
+
srcRegion?: string;
|
|
20
|
+
srcType?: string;
|
|
21
|
+
static names(): { [key: string]: string } {
|
|
22
|
+
return {
|
|
23
|
+
autoCreated: 'AutoCreated',
|
|
24
|
+
bakType: 'BakType',
|
|
25
|
+
destRegion: 'DestRegion',
|
|
26
|
+
destType: 'DestType',
|
|
27
|
+
dumpAction: 'DumpAction',
|
|
28
|
+
filterKey: 'FilterKey',
|
|
29
|
+
filterType: 'FilterType',
|
|
30
|
+
filterValue: 'FilterValue',
|
|
31
|
+
onlyPreserveOneEachDay: 'OnlyPreserveOneEachDay',
|
|
32
|
+
onlyPreserveOneEachHour: 'OnlyPreserveOneEachHour',
|
|
33
|
+
policyId: 'PolicyId',
|
|
34
|
+
retentionType: 'RetentionType',
|
|
35
|
+
retentionValue: 'RetentionValue',
|
|
36
|
+
srcRegion: 'SrcRegion',
|
|
37
|
+
srcType: 'SrcType',
|
|
38
|
+
};
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
static types(): { [key: string]: any } {
|
|
42
|
+
return {
|
|
43
|
+
autoCreated: 'boolean',
|
|
44
|
+
bakType: 'string',
|
|
45
|
+
destRegion: 'string',
|
|
46
|
+
destType: 'string',
|
|
47
|
+
dumpAction: 'string',
|
|
48
|
+
filterKey: 'string',
|
|
49
|
+
filterType: 'string',
|
|
50
|
+
filterValue: 'string',
|
|
51
|
+
onlyPreserveOneEachDay: 'boolean',
|
|
52
|
+
onlyPreserveOneEachHour: 'boolean',
|
|
53
|
+
policyId: 'string',
|
|
54
|
+
retentionType: 'string',
|
|
55
|
+
retentionValue: 'string',
|
|
56
|
+
srcRegion: 'string',
|
|
57
|
+
srcType: 'string',
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
validate() {
|
|
62
|
+
super.validate();
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
constructor(map?: { [key: string]: any }) {
|
|
66
|
+
super(map);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export class DescribeBackupPolicyResponseBodyAdvancedDataPolicies extends $dara.Model {
|
|
71
|
+
advancedDataPolicy?: DescribeBackupPolicyResponseBodyAdvancedDataPoliciesAdvancedDataPolicy[];
|
|
72
|
+
static names(): { [key: string]: string } {
|
|
73
|
+
return {
|
|
74
|
+
advancedDataPolicy: 'AdvancedDataPolicy',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
static types(): { [key: string]: any } {
|
|
79
|
+
return {
|
|
80
|
+
advancedDataPolicy: { 'type': 'array', 'itemType': DescribeBackupPolicyResponseBodyAdvancedDataPoliciesAdvancedDataPolicy },
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
validate() {
|
|
85
|
+
if(Array.isArray(this.advancedDataPolicy)) {
|
|
86
|
+
$dara.Model.validateArray(this.advancedDataPolicy);
|
|
87
|
+
}
|
|
88
|
+
super.validate();
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
constructor(map?: { [key: string]: any }) {
|
|
92
|
+
super(map);
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
|
|
5
96
|
export class DescribeBackupPolicyResponseBody extends $dara.Model {
|
|
97
|
+
advancedDataPolicies?: DescribeBackupPolicyResponseBodyAdvancedDataPolicies;
|
|
98
|
+
advancedPolicyOption?: string;
|
|
6
99
|
/**
|
|
7
100
|
* @remarks
|
|
8
101
|
* The backup frequency. Default value: Normal. Valid values:
|
|
@@ -19,6 +112,7 @@ export class DescribeBackupPolicyResponseBody extends $dara.Model {
|
|
|
19
112
|
* Normal
|
|
20
113
|
*/
|
|
21
114
|
backupFrequency?: string;
|
|
115
|
+
backupPolicyLevel?: string;
|
|
22
116
|
/**
|
|
23
117
|
* @remarks
|
|
24
118
|
* Indicates whether backups are retained when you delete a cluster. Valid values:
|
|
@@ -184,7 +278,10 @@ export class DescribeBackupPolicyResponseBody extends $dara.Model {
|
|
|
184
278
|
requestId?: string;
|
|
185
279
|
static names(): { [key: string]: string } {
|
|
186
280
|
return {
|
|
281
|
+
advancedDataPolicies: 'AdvancedDataPolicies',
|
|
282
|
+
advancedPolicyOption: 'AdvancedPolicyOption',
|
|
187
283
|
backupFrequency: 'BackupFrequency',
|
|
284
|
+
backupPolicyLevel: 'BackupPolicyLevel',
|
|
188
285
|
backupRetentionPolicyOnClusterDeletion: 'BackupRetentionPolicyOnClusterDeletion',
|
|
189
286
|
dataLevel1BackupFrequency: 'DataLevel1BackupFrequency',
|
|
190
287
|
dataLevel1BackupPeriod: 'DataLevel1BackupPeriod',
|
|
@@ -203,7 +300,10 @@ export class DescribeBackupPolicyResponseBody extends $dara.Model {
|
|
|
203
300
|
|
|
204
301
|
static types(): { [key: string]: any } {
|
|
205
302
|
return {
|
|
303
|
+
advancedDataPolicies: DescribeBackupPolicyResponseBodyAdvancedDataPolicies,
|
|
304
|
+
advancedPolicyOption: 'string',
|
|
206
305
|
backupFrequency: 'string',
|
|
306
|
+
backupPolicyLevel: 'string',
|
|
207
307
|
backupRetentionPolicyOnClusterDeletion: 'string',
|
|
208
308
|
dataLevel1BackupFrequency: 'string',
|
|
209
309
|
dataLevel1BackupPeriod: 'string',
|
|
@@ -221,6 +321,9 @@ export class DescribeBackupPolicyResponseBody extends $dara.Model {
|
|
|
221
321
|
}
|
|
222
322
|
|
|
223
323
|
validate() {
|
|
324
|
+
if(this.advancedDataPolicies && typeof (this.advancedDataPolicies as any).validate === 'function') {
|
|
325
|
+
(this.advancedDataPolicies as any).validate();
|
|
326
|
+
}
|
|
224
327
|
super.validate();
|
|
225
328
|
}
|
|
226
329
|
|
|
@@ -2,7 +2,78 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class DescribeLogBackupPolicyResponseBodyAdvancedLogPoliciesAdvancedLogPolicy extends $dara.Model {
|
|
6
|
+
destRegion?: string;
|
|
7
|
+
destType?: string;
|
|
8
|
+
enableLogBackup?: number;
|
|
9
|
+
logRetentionType?: string;
|
|
10
|
+
logRetentionValue?: string;
|
|
11
|
+
policyId?: string;
|
|
12
|
+
srcRegion?: string;
|
|
13
|
+
srcType?: string;
|
|
14
|
+
static names(): { [key: string]: string } {
|
|
15
|
+
return {
|
|
16
|
+
destRegion: 'DestRegion',
|
|
17
|
+
destType: 'DestType',
|
|
18
|
+
enableLogBackup: 'EnableLogBackup',
|
|
19
|
+
logRetentionType: 'LogRetentionType',
|
|
20
|
+
logRetentionValue: 'LogRetentionValue',
|
|
21
|
+
policyId: 'PolicyId',
|
|
22
|
+
srcRegion: 'SrcRegion',
|
|
23
|
+
srcType: 'SrcType',
|
|
24
|
+
};
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
static types(): { [key: string]: any } {
|
|
28
|
+
return {
|
|
29
|
+
destRegion: 'string',
|
|
30
|
+
destType: 'string',
|
|
31
|
+
enableLogBackup: 'number',
|
|
32
|
+
logRetentionType: 'string',
|
|
33
|
+
logRetentionValue: 'string',
|
|
34
|
+
policyId: 'string',
|
|
35
|
+
srcRegion: 'string',
|
|
36
|
+
srcType: 'string',
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
validate() {
|
|
41
|
+
super.validate();
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
constructor(map?: { [key: string]: any }) {
|
|
45
|
+
super(map);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export class DescribeLogBackupPolicyResponseBodyAdvancedLogPolicies extends $dara.Model {
|
|
50
|
+
advancedLogPolicy?: DescribeLogBackupPolicyResponseBodyAdvancedLogPoliciesAdvancedLogPolicy[];
|
|
51
|
+
static names(): { [key: string]: string } {
|
|
52
|
+
return {
|
|
53
|
+
advancedLogPolicy: 'AdvancedLogPolicy',
|
|
54
|
+
};
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
static types(): { [key: string]: any } {
|
|
58
|
+
return {
|
|
59
|
+
advancedLogPolicy: { 'type': 'array', 'itemType': DescribeLogBackupPolicyResponseBodyAdvancedLogPoliciesAdvancedLogPolicy },
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
validate() {
|
|
64
|
+
if(Array.isArray(this.advancedLogPolicy)) {
|
|
65
|
+
$dara.Model.validateArray(this.advancedLogPolicy);
|
|
66
|
+
}
|
|
67
|
+
super.validate();
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
constructor(map?: { [key: string]: any }) {
|
|
71
|
+
super(map);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
5
75
|
export class DescribeLogBackupPolicyResponseBody extends $dara.Model {
|
|
76
|
+
advancedLogPolicies?: DescribeLogBackupPolicyResponseBodyAdvancedLogPolicies;
|
|
6
77
|
/**
|
|
7
78
|
* @remarks
|
|
8
79
|
* Indicates whether the log backup feature is enabled. Valid values:
|
|
@@ -57,6 +128,7 @@ export class DescribeLogBackupPolicyResponseBody extends $dara.Model {
|
|
|
57
128
|
requestId?: string;
|
|
58
129
|
static names(): { [key: string]: string } {
|
|
59
130
|
return {
|
|
131
|
+
advancedLogPolicies: 'AdvancedLogPolicies',
|
|
60
132
|
enableBackupLog: 'EnableBackupLog',
|
|
61
133
|
logBackupAnotherRegionRegion: 'LogBackupAnotherRegionRegion',
|
|
62
134
|
logBackupAnotherRegionRetentionPeriod: 'LogBackupAnotherRegionRetentionPeriod',
|
|
@@ -67,6 +139,7 @@ export class DescribeLogBackupPolicyResponseBody extends $dara.Model {
|
|
|
67
139
|
|
|
68
140
|
static types(): { [key: string]: any } {
|
|
69
141
|
return {
|
|
142
|
+
advancedLogPolicies: DescribeLogBackupPolicyResponseBodyAdvancedLogPolicies,
|
|
70
143
|
enableBackupLog: 'number',
|
|
71
144
|
logBackupAnotherRegionRegion: 'string',
|
|
72
145
|
logBackupAnotherRegionRetentionPeriod: 'string',
|
|
@@ -76,6 +149,9 @@ export class DescribeLogBackupPolicyResponseBody extends $dara.Model {
|
|
|
76
149
|
}
|
|
77
150
|
|
|
78
151
|
validate() {
|
|
152
|
+
if(this.advancedLogPolicies && typeof (this.advancedLogPolicies as any).validate === 'function') {
|
|
153
|
+
(this.advancedLogPolicies as any).validate();
|
|
154
|
+
}
|
|
79
155
|
super.validate();
|
|
80
156
|
}
|
|
81
157
|
|
|
@@ -2,7 +2,76 @@
|
|
|
2
2
|
import * as $dara from '@darabonba/typescript';
|
|
3
3
|
|
|
4
4
|
|
|
5
|
+
export class ModifyBackupPolicyRequestAdvancedDataPolicies extends $dara.Model {
|
|
6
|
+
actionType?: string;
|
|
7
|
+
autoCreated?: boolean;
|
|
8
|
+
bakType?: string;
|
|
9
|
+
destRegion?: string;
|
|
10
|
+
destType?: string;
|
|
11
|
+
dumpAction?: string;
|
|
12
|
+
filterKey?: string;
|
|
13
|
+
filterType?: string;
|
|
14
|
+
filterValue?: string;
|
|
15
|
+
onlyPreserveOneEachDay?: boolean;
|
|
16
|
+
onlyPreserveOneEachHour?: boolean;
|
|
17
|
+
policyId?: string;
|
|
18
|
+
retentionType?: string;
|
|
19
|
+
retentionValue?: string;
|
|
20
|
+
srcRegion?: string;
|
|
21
|
+
srcType?: string;
|
|
22
|
+
static names(): { [key: string]: string } {
|
|
23
|
+
return {
|
|
24
|
+
actionType: 'ActionType',
|
|
25
|
+
autoCreated: 'AutoCreated',
|
|
26
|
+
bakType: 'BakType',
|
|
27
|
+
destRegion: 'DestRegion',
|
|
28
|
+
destType: 'DestType',
|
|
29
|
+
dumpAction: 'DumpAction',
|
|
30
|
+
filterKey: 'FilterKey',
|
|
31
|
+
filterType: 'FilterType',
|
|
32
|
+
filterValue: 'FilterValue',
|
|
33
|
+
onlyPreserveOneEachDay: 'OnlyPreserveOneEachDay',
|
|
34
|
+
onlyPreserveOneEachHour: 'OnlyPreserveOneEachHour',
|
|
35
|
+
policyId: 'PolicyId',
|
|
36
|
+
retentionType: 'RetentionType',
|
|
37
|
+
retentionValue: 'RetentionValue',
|
|
38
|
+
srcRegion: 'SrcRegion',
|
|
39
|
+
srcType: 'SrcType',
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
static types(): { [key: string]: any } {
|
|
44
|
+
return {
|
|
45
|
+
actionType: 'string',
|
|
46
|
+
autoCreated: 'boolean',
|
|
47
|
+
bakType: 'string',
|
|
48
|
+
destRegion: 'string',
|
|
49
|
+
destType: 'string',
|
|
50
|
+
dumpAction: 'string',
|
|
51
|
+
filterKey: 'string',
|
|
52
|
+
filterType: 'string',
|
|
53
|
+
filterValue: 'string',
|
|
54
|
+
onlyPreserveOneEachDay: 'boolean',
|
|
55
|
+
onlyPreserveOneEachHour: 'boolean',
|
|
56
|
+
policyId: 'string',
|
|
57
|
+
retentionType: 'string',
|
|
58
|
+
retentionValue: 'string',
|
|
59
|
+
srcRegion: 'string',
|
|
60
|
+
srcType: 'string',
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
validate() {
|
|
65
|
+
super.validate();
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
constructor(map?: { [key: string]: any }) {
|
|
69
|
+
super(map);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
|
|
5
73
|
export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
74
|
+
advancedDataPolicies?: ModifyBackupPolicyRequestAdvancedDataPolicies[];
|
|
6
75
|
/**
|
|
7
76
|
* @remarks
|
|
8
77
|
* The backup frequency. Default value: Normal. Valid values:
|
|
@@ -20,6 +89,7 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
20
89
|
* Normal
|
|
21
90
|
*/
|
|
22
91
|
backupFrequency?: string;
|
|
92
|
+
backupPolicyLevel?: string;
|
|
23
93
|
/**
|
|
24
94
|
* @remarks
|
|
25
95
|
* Specifies whether to retain backups when a cluster is deleted. Valid values:
|
|
@@ -189,7 +259,9 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
189
259
|
resourceOwnerId?: number;
|
|
190
260
|
static names(): { [key: string]: string } {
|
|
191
261
|
return {
|
|
262
|
+
advancedDataPolicies: 'AdvancedDataPolicies',
|
|
192
263
|
backupFrequency: 'BackupFrequency',
|
|
264
|
+
backupPolicyLevel: 'BackupPolicyLevel',
|
|
193
265
|
backupRetentionPolicyOnClusterDeletion: 'BackupRetentionPolicyOnClusterDeletion',
|
|
194
266
|
DBClusterId: 'DBClusterId',
|
|
195
267
|
dataLevel1BackupFrequency: 'DataLevel1BackupFrequency',
|
|
@@ -211,7 +283,9 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
211
283
|
|
|
212
284
|
static types(): { [key: string]: any } {
|
|
213
285
|
return {
|
|
286
|
+
advancedDataPolicies: { 'type': 'array', 'itemType': ModifyBackupPolicyRequestAdvancedDataPolicies },
|
|
214
287
|
backupFrequency: 'string',
|
|
288
|
+
backupPolicyLevel: 'string',
|
|
215
289
|
backupRetentionPolicyOnClusterDeletion: 'string',
|
|
216
290
|
DBClusterId: 'string',
|
|
217
291
|
dataLevel1BackupFrequency: 'string',
|
|
@@ -232,6 +306,9 @@ export class ModifyBackupPolicyRequest extends $dara.Model {
|
|
|
232
306
|
}
|
|
233
307
|
|
|
234
308
|
validate() {
|
|
309
|
+
if(Array.isArray(this.advancedDataPolicies)) {
|
|
310
|
+
$dara.Model.validateArray(this.advancedDataPolicies);
|
|
311
|
+
}
|
|
235
312
|
super.validate();
|
|
236
313
|
}
|
|
237
314
|
|
|
@@ -0,0 +1,248 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
6
|
+
advancedDataPoliciesShrink?: string;
|
|
7
|
+
/**
|
|
8
|
+
* @remarks
|
|
9
|
+
* The backup frequency. Default value: Normal. Valid values:
|
|
10
|
+
*
|
|
11
|
+
* * **Normal**: standard backup. The system backs up data once a day.
|
|
12
|
+
* * **2/24H**: enhanced backup. The system backs up data every 2 hours.
|
|
13
|
+
* * **3/24H**: enhanced backup. The system backs up data every 3 hours.
|
|
14
|
+
* * **4/24H**: enhanced backup. The system backs up data every 4 hours.
|
|
15
|
+
*
|
|
16
|
+
* >- If you enable enhanced backup, all backups are retained for 24 hours. For backup files that are created earlier than the previous 24 hours, the system permanently retains only the first backup that is created after 00:00 every day and deletes the rest.
|
|
17
|
+
* >- If you enable enhanced backup, **PreferredBackupPeriod** is automatically set to all days in a week (from Monday to Sunday).
|
|
18
|
+
* >- This parameter is invalid if the region where your PolarDB for MySQL cluster is deployed supports the cross-region backup feature. For information about the regions that support the cross-region backup feature, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
19
|
+
*
|
|
20
|
+
* @example
|
|
21
|
+
* Normal
|
|
22
|
+
*/
|
|
23
|
+
backupFrequency?: string;
|
|
24
|
+
backupPolicyLevel?: string;
|
|
25
|
+
/**
|
|
26
|
+
* @remarks
|
|
27
|
+
* Specifies whether to retain backups when a cluster is deleted. Valid values:
|
|
28
|
+
*
|
|
29
|
+
* * **ALL**: permanently retains all backups.
|
|
30
|
+
* * **LATEST**: permanently retains the most recent backup.
|
|
31
|
+
* * **NONE**: does not retain backups.
|
|
32
|
+
*
|
|
33
|
+
* > The default value of the parameter is NONE.
|
|
34
|
+
*
|
|
35
|
+
* @example
|
|
36
|
+
* NONE
|
|
37
|
+
*/
|
|
38
|
+
backupRetentionPolicyOnClusterDeletion?: string;
|
|
39
|
+
/**
|
|
40
|
+
* @remarks
|
|
41
|
+
* The ID of the cluster.
|
|
42
|
+
*
|
|
43
|
+
* > You can call the [DescribeDBClusters](https://help.aliyun.com/document_detail/98094.html) operation to query information about all clusters that are deployed in a specified region, such as the cluster ID.
|
|
44
|
+
*
|
|
45
|
+
* This parameter is required.
|
|
46
|
+
*
|
|
47
|
+
* @example
|
|
48
|
+
* pc-bp13wz9586voc****
|
|
49
|
+
*/
|
|
50
|
+
DBClusterId?: string;
|
|
51
|
+
/**
|
|
52
|
+
* @remarks
|
|
53
|
+
* The frequency of level-1 backups. Default value: Normal. Valid values:
|
|
54
|
+
*
|
|
55
|
+
* * **Normal**: standard backup. The system backs up data once a day.
|
|
56
|
+
* * **2/24H**: enhanced backup. The system backs up data every 2 hours.
|
|
57
|
+
* * **3/24H**: enhanced backup. The system backs up data every 3 hours.
|
|
58
|
+
* * **4/24H**: enhanced backup. The system backs up data every 4 hours.
|
|
59
|
+
*
|
|
60
|
+
* >- This parameter is invalid for PolarDB for Oracle clusters or PolarDB for PostgreSQL clusters.
|
|
61
|
+
* >- This parameter is invalid if the region where your PolarDB for MySQL cluster is deployed does not support the cross-region backup feature. For information about the regions that support the cross-region backup feature, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
62
|
+
*
|
|
63
|
+
* @example
|
|
64
|
+
* Normal
|
|
65
|
+
*/
|
|
66
|
+
dataLevel1BackupFrequency?: string;
|
|
67
|
+
/**
|
|
68
|
+
* @remarks
|
|
69
|
+
* The backup cycle of level-1 backups. Valid values:
|
|
70
|
+
*
|
|
71
|
+
* * **Monday**
|
|
72
|
+
* * **Tuesday**
|
|
73
|
+
* * **Wednesday**
|
|
74
|
+
* * **Thursday**
|
|
75
|
+
* * **Friday**
|
|
76
|
+
* * **Saturday**
|
|
77
|
+
* * **Sunday**
|
|
78
|
+
*
|
|
79
|
+
* >- You need to specify at least two values. Separate multiple values with commas (,).
|
|
80
|
+
* >- This parameter is invalid for PolarDB for Oracle clusters or PolarDB for PostgreSQL clusters.
|
|
81
|
+
* >- This parameter is invalid if the region where your PolarDB for MySQL cluster is deployed does not support the cross-region backup feature. For information about the regions that support the cross-region backup feature, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* Monday,Tuesday
|
|
85
|
+
*/
|
|
86
|
+
dataLevel1BackupPeriod?: string;
|
|
87
|
+
/**
|
|
88
|
+
* @remarks
|
|
89
|
+
* The retention period of level-1 backups. Valid values: 3 to 14. Unit: days.
|
|
90
|
+
*
|
|
91
|
+
* @example
|
|
92
|
+
* 3
|
|
93
|
+
*/
|
|
94
|
+
dataLevel1BackupRetentionPeriod?: string;
|
|
95
|
+
/**
|
|
96
|
+
* @remarks
|
|
97
|
+
* The time period during which automatic backup for level-1 backup is performed. The time period is in the `hh:mmZ-hh:mmZ` format and is displayed in UTC. The start time and end time are on the hour and have an interval of 1 hour. Example: `14:00Z-15:00Z`.
|
|
98
|
+
* >- This parameter is invalid for PolarDB for Oracle clusters or PolarDB for PostgreSQL clusters.
|
|
99
|
+
* >- This parameter is invalid if the region where your PolarDB for MySQL cluster is deployed does not support the cross-region backup feature. For information about the regions that support the cross-region backup feature, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* 15:00Z-16:00Z
|
|
103
|
+
*/
|
|
104
|
+
dataLevel1BackupTime?: string;
|
|
105
|
+
/**
|
|
106
|
+
* @remarks
|
|
107
|
+
* The region where the cross-region level-2 backup is stored. For information about regions that support the cross-region backup feature, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* cn-hangzhou
|
|
111
|
+
*/
|
|
112
|
+
dataLevel2BackupAnotherRegionRegion?: string;
|
|
113
|
+
/**
|
|
114
|
+
* @remarks
|
|
115
|
+
* The retention period of cross-region level-2 backups. Valid values:
|
|
116
|
+
*
|
|
117
|
+
* * **0**: The cross-region level-2 backup feature is disabled.
|
|
118
|
+
* * **30 to 7300**: Cross-region level-2 backups are retained for 30 to 7,300 days.
|
|
119
|
+
* * **1**: Cross-region level-2 backups are permanently retained.
|
|
120
|
+
*
|
|
121
|
+
* > The default value of the parameter is **0**.
|
|
122
|
+
*
|
|
123
|
+
* @example
|
|
124
|
+
* 30
|
|
125
|
+
*/
|
|
126
|
+
dataLevel2BackupAnotherRegionRetentionPeriod?: string;
|
|
127
|
+
/**
|
|
128
|
+
* @remarks
|
|
129
|
+
* The backup cycle of level-2 backups. Valid values:
|
|
130
|
+
*
|
|
131
|
+
* * **Monday**
|
|
132
|
+
* * **Tuesday**
|
|
133
|
+
* * **Wednesday**
|
|
134
|
+
* * **Thursday**
|
|
135
|
+
* * **Friday**
|
|
136
|
+
* * **Saturday**
|
|
137
|
+
* * **Sunday**
|
|
138
|
+
*
|
|
139
|
+
* >- You need to specify at least two values. Separate multiple values with commas (,).
|
|
140
|
+
* >- This parameter is invalid for PolarDB for Oracle clusters or PolarDB for PostgreSQL clusters.
|
|
141
|
+
* >- This parameter is invalid if the region where your PolarDB for MySQL cluster is deployed does not support the cross-region backup feature. For information about the regions that support the cross-region backup feature, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
142
|
+
*
|
|
143
|
+
* @example
|
|
144
|
+
* Monday,Tuesday
|
|
145
|
+
*/
|
|
146
|
+
dataLevel2BackupPeriod?: string;
|
|
147
|
+
/**
|
|
148
|
+
* @remarks
|
|
149
|
+
* The retention period of level-2 backups. Valid values:
|
|
150
|
+
*
|
|
151
|
+
* * **0**: The level-2 backup feature is disabled.
|
|
152
|
+
* * **30 to 7300**: Level-2 backups are retained for 30 to 7,300 days.
|
|
153
|
+
* * **1**: Level-2 backups are permanently retained.
|
|
154
|
+
*
|
|
155
|
+
* > The default value of this parameter is **0**.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* 0
|
|
159
|
+
*/
|
|
160
|
+
dataLevel2BackupRetentionPeriod?: string;
|
|
161
|
+
ownerAccount?: string;
|
|
162
|
+
ownerId?: number;
|
|
163
|
+
/**
|
|
164
|
+
* @remarks
|
|
165
|
+
* The backup cycle. Valid values:
|
|
166
|
+
*
|
|
167
|
+
* * **Monday**
|
|
168
|
+
* * **Tuesday**
|
|
169
|
+
* * **Wednesday**
|
|
170
|
+
* * **Thursday**
|
|
171
|
+
* * **Friday**
|
|
172
|
+
* * **Saturday**
|
|
173
|
+
* * **Sunday**
|
|
174
|
+
*
|
|
175
|
+
* >- You need to specify at least two values. Separate multiple values with commas (,).
|
|
176
|
+
* >- This parameter is invalid if the region where your PolarDB for MySQL cluster is deployed supports the cross-region backup feature. For information about the regions that support the cross-region backup feature, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* Monday,Tuesday
|
|
180
|
+
*/
|
|
181
|
+
preferredBackupPeriod?: string;
|
|
182
|
+
/**
|
|
183
|
+
* @remarks
|
|
184
|
+
* The time period during which automatic backup for level-1 backup is performed. The format is `hh:mmZ-hh:mmZ` format. The time is displayed in UTC. The start time and end time are on the hour and with an interval of one hour. Example: `14:00Z-15:00Z`.
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* 15:00Z-16:00Z
|
|
188
|
+
*/
|
|
189
|
+
preferredBackupTime?: string;
|
|
190
|
+
resourceOwnerAccount?: string;
|
|
191
|
+
resourceOwnerId?: number;
|
|
192
|
+
static names(): { [key: string]: string } {
|
|
193
|
+
return {
|
|
194
|
+
advancedDataPoliciesShrink: 'AdvancedDataPolicies',
|
|
195
|
+
backupFrequency: 'BackupFrequency',
|
|
196
|
+
backupPolicyLevel: 'BackupPolicyLevel',
|
|
197
|
+
backupRetentionPolicyOnClusterDeletion: 'BackupRetentionPolicyOnClusterDeletion',
|
|
198
|
+
DBClusterId: 'DBClusterId',
|
|
199
|
+
dataLevel1BackupFrequency: 'DataLevel1BackupFrequency',
|
|
200
|
+
dataLevel1BackupPeriod: 'DataLevel1BackupPeriod',
|
|
201
|
+
dataLevel1BackupRetentionPeriod: 'DataLevel1BackupRetentionPeriod',
|
|
202
|
+
dataLevel1BackupTime: 'DataLevel1BackupTime',
|
|
203
|
+
dataLevel2BackupAnotherRegionRegion: 'DataLevel2BackupAnotherRegionRegion',
|
|
204
|
+
dataLevel2BackupAnotherRegionRetentionPeriod: 'DataLevel2BackupAnotherRegionRetentionPeriod',
|
|
205
|
+
dataLevel2BackupPeriod: 'DataLevel2BackupPeriod',
|
|
206
|
+
dataLevel2BackupRetentionPeriod: 'DataLevel2BackupRetentionPeriod',
|
|
207
|
+
ownerAccount: 'OwnerAccount',
|
|
208
|
+
ownerId: 'OwnerId',
|
|
209
|
+
preferredBackupPeriod: 'PreferredBackupPeriod',
|
|
210
|
+
preferredBackupTime: 'PreferredBackupTime',
|
|
211
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
212
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
213
|
+
};
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
static types(): { [key: string]: any } {
|
|
217
|
+
return {
|
|
218
|
+
advancedDataPoliciesShrink: 'string',
|
|
219
|
+
backupFrequency: 'string',
|
|
220
|
+
backupPolicyLevel: 'string',
|
|
221
|
+
backupRetentionPolicyOnClusterDeletion: 'string',
|
|
222
|
+
DBClusterId: 'string',
|
|
223
|
+
dataLevel1BackupFrequency: 'string',
|
|
224
|
+
dataLevel1BackupPeriod: 'string',
|
|
225
|
+
dataLevel1BackupRetentionPeriod: 'string',
|
|
226
|
+
dataLevel1BackupTime: 'string',
|
|
227
|
+
dataLevel2BackupAnotherRegionRegion: 'string',
|
|
228
|
+
dataLevel2BackupAnotherRegionRetentionPeriod: 'string',
|
|
229
|
+
dataLevel2BackupPeriod: 'string',
|
|
230
|
+
dataLevel2BackupRetentionPeriod: 'string',
|
|
231
|
+
ownerAccount: 'string',
|
|
232
|
+
ownerId: 'number',
|
|
233
|
+
preferredBackupPeriod: 'string',
|
|
234
|
+
preferredBackupTime: 'string',
|
|
235
|
+
resourceOwnerAccount: 'string',
|
|
236
|
+
resourceOwnerId: 'number',
|
|
237
|
+
};
|
|
238
|
+
}
|
|
239
|
+
|
|
240
|
+
validate() {
|
|
241
|
+
super.validate();
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
constructor(map?: { [key: string]: any }) {
|
|
245
|
+
super(map);
|
|
246
|
+
}
|
|
247
|
+
}
|
|
248
|
+
|
package/src/models/model.ts
CHANGED
|
@@ -14,6 +14,8 @@ export { DescribeAutoRenewAttributeResponseBodyItemsAutoRenewAttribute } from '.
|
|
|
14
14
|
export { DescribeAutoRenewAttributeResponseBodyItems } from './DescribeAutoRenewAttributeResponseBody';
|
|
15
15
|
export { DescribeBackupLogsResponseBodyItemsBackupLog } from './DescribeBackupLogsResponseBody';
|
|
16
16
|
export { DescribeBackupLogsResponseBodyItems } from './DescribeBackupLogsResponseBody';
|
|
17
|
+
export { DescribeBackupPolicyResponseBodyAdvancedDataPoliciesAdvancedDataPolicy } from './DescribeBackupPolicyResponseBody';
|
|
18
|
+
export { DescribeBackupPolicyResponseBodyAdvancedDataPolicies } from './DescribeBackupPolicyResponseBody';
|
|
17
19
|
export { DescribeBackupTasksResponseBodyItemsBackupJob } from './DescribeBackupTasksResponseBody';
|
|
18
20
|
export { DescribeBackupTasksResponseBodyItems } from './DescribeBackupTasksResponseBody';
|
|
19
21
|
export { DescribeBackupsResponseBodyItemsBackup } from './DescribeBackupsResponseBody';
|
|
@@ -92,6 +94,8 @@ export { DescribeGlobalSecurityIPGroupRelationResponseBodyGlobalSecurityIPGroupR
|
|
|
92
94
|
export { DescribeHALogsResponseBodyHaLogItems } from './DescribeHalogsResponseBody';
|
|
93
95
|
export { DescribeHistoryTasksResponseBodyItems } from './DescribeHistoryTasksResponseBody';
|
|
94
96
|
export { DescribeLicenseOrdersResponseBodyItems } from './DescribeLicenseOrdersResponseBody';
|
|
97
|
+
export { DescribeLogBackupPolicyResponseBodyAdvancedLogPoliciesAdvancedLogPolicy } from './DescribeLogBackupPolicyResponseBody';
|
|
98
|
+
export { DescribeLogBackupPolicyResponseBodyAdvancedLogPolicies } from './DescribeLogBackupPolicyResponseBody';
|
|
95
99
|
export { DescribeMaskingRulesResponseBodyData } from './DescribeMaskingRulesResponseBody';
|
|
96
100
|
export { DescribeMetaListResponseBodyItems } from './DescribeMetaListResponseBody';
|
|
97
101
|
export { DescribeParameterGroupResponseBodyParameterGroupParameterDetail } from './DescribeParameterGroupResponseBody';
|
|
@@ -117,6 +121,7 @@ export { DescribeVSwitchesResponseBodyVSwitchs } from './DescribeVswitchesRespon
|
|
|
117
121
|
export { ListTagResourcesRequestTag } from './ListTagResourcesRequest';
|
|
118
122
|
export { ListTagResourcesResponseBodyTagResourcesTagResource } from './ListTagResourcesResponseBody';
|
|
119
123
|
export { ListTagResourcesResponseBodyTagResources } from './ListTagResourcesResponseBody';
|
|
124
|
+
export { ModifyBackupPolicyRequestAdvancedDataPolicies } from './ModifyBackupPolicyRequest';
|
|
120
125
|
export { ModifyDBNodesClassRequestDBNode } from './ModifyDbnodesClassRequest';
|
|
121
126
|
export { ModifyGlobalSecurityIPGroupResponseBodyGlobalSecurityIPGroup } from './ModifyGlobalSecurityIpgroupResponseBody';
|
|
122
127
|
export { ModifyGlobalSecurityIPGroupNameResponseBodyGlobalSecurityIPGroup } from './ModifyGlobalSecurityIpgroupNameResponseBody';
|
|
@@ -463,6 +468,7 @@ export { ModifyAutoRenewAttributeRequest } from './ModifyAutoRenewAttributeReque
|
|
|
463
468
|
export { ModifyAutoRenewAttributeResponseBody } from './ModifyAutoRenewAttributeResponseBody';
|
|
464
469
|
export { ModifyAutoRenewAttributeResponse } from './ModifyAutoRenewAttributeResponse';
|
|
465
470
|
export { ModifyBackupPolicyRequest } from './ModifyBackupPolicyRequest';
|
|
471
|
+
export { ModifyBackupPolicyShrinkRequest } from './ModifyBackupPolicyShrinkRequest';
|
|
466
472
|
export { ModifyBackupPolicyResponseBody } from './ModifyBackupPolicyResponseBody';
|
|
467
473
|
export { ModifyBackupPolicyResponse } from './ModifyBackupPolicyResponse';
|
|
468
474
|
export { ModifyDBClusterRequest } from './ModifyDbclusterRequest';
|