@alicloud/polardb20170801 8.2.4 → 8.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/client.d.ts +29 -14
- package/dist/client.js +65 -14
- package/dist/client.js.map +1 -1
- package/dist/models/DescribeBackupPolicyRequest.d.ts +1 -1
- package/dist/models/DescribeBackupPolicyResponseBody.d.ts +85 -125
- package/dist/models/DescribeBackupPolicyResponseBody.js +4 -0
- package/dist/models/DescribeBackupPolicyResponseBody.js.map +1 -1
- package/dist/models/DescribeDetachedBackupsRequest.d.ts +15 -18
- package/dist/models/DescribeDetachedBackupsRequest.js.map +1 -1
- package/dist/models/DescribeDetachedBackupsResponseBody.d.ts +3 -3
- package/dist/models/DescribeKbsyncLinksRequest.d.ts +16 -0
- package/dist/models/DescribeKbsyncLinksRequest.js +4 -0
- package/dist/models/DescribeKbsyncLinksRequest.js.map +1 -1
- package/dist/models/DescribeKbsyncLinksResponseBody.d.ts +25 -1
- package/dist/models/DescribeKbsyncLinksResponseBody.js +6 -0
- package/dist/models/DescribeKbsyncLinksResponseBody.js.map +1 -1
- package/dist/models/ModifyBackupPolicyRequest.d.ts +117 -185
- package/dist/models/ModifyBackupPolicyRequest.js.map +1 -1
- package/dist/models/ModifyBackupPolicyResponseBody.d.ts +1 -1
- package/dist/models/ModifyBackupPolicyShrinkRequest.d.ts +83 -134
- package/dist/models/ModifyBackupPolicyShrinkRequest.js.map +1 -1
- package/dist/models/RegisterKnowledgeBaseFileRequest.d.ts +43 -0
- package/dist/models/RegisterKnowledgeBaseFileRequest.js +62 -0
- package/dist/models/RegisterKnowledgeBaseFileRequest.js.map +1 -0
- package/dist/models/RegisterKnowledgeBaseFileResponse.d.ts +19 -0
- package/dist/models/RegisterKnowledgeBaseFileResponse.js +69 -0
- package/dist/models/RegisterKnowledgeBaseFileResponse.js.map +1 -0
- package/dist/models/RegisterKnowledgeBaseFileResponseBody.d.ts +63 -0
- package/dist/models/RegisterKnowledgeBaseFileResponseBody.js +68 -0
- package/dist/models/RegisterKnowledgeBaseFileResponseBody.js.map +1 -0
- package/dist/models/RetrievalKnowledgeBaseResponseBody.d.ts +72 -5
- package/dist/models/RetrievalKnowledgeBaseResponseBody.js +43 -1
- package/dist/models/RetrievalKnowledgeBaseResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +4 -0
- package/dist/models/model.js +41 -33
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +72 -14
- package/src/models/DescribeBackupPolicyRequest.ts +1 -1
- package/src/models/DescribeBackupPolicyResponseBody.ts +89 -125
- package/src/models/DescribeDetachedBackupsRequest.ts +17 -20
- package/src/models/DescribeDetachedBackupsResponseBody.ts +3 -3
- package/src/models/DescribeKbsyncLinksRequest.ts +20 -0
- package/src/models/DescribeKbsyncLinksResponseBody.ts +31 -1
- package/src/models/ModifyBackupPolicyRequest.ts +120 -188
- package/src/models/ModifyBackupPolicyResponseBody.ts +1 -1
- package/src/models/ModifyBackupPolicyShrinkRequest.ts +86 -137
- package/src/models/RegisterKnowledgeBaseFileRequest.ts +60 -0
- package/src/models/RegisterKnowledgeBaseFileResponse.ts +40 -0
- package/src/models/RegisterKnowledgeBaseFileResponseBody.ts +86 -0
- package/src/models/RetrievalKnowledgeBaseResponseBody.ts +105 -5
- package/src/models/model.ts +4 -0
|
@@ -5,32 +5,24 @@ import * as $dara from '@darabonba/typescript';
|
|
|
5
5
|
export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
6
6
|
/**
|
|
7
7
|
* @remarks
|
|
8
|
-
* The advanced backup
|
|
9
|
-
*
|
|
10
|
-
* >
|
|
11
|
-
* >
|
|
12
|
-
* > - - This parameter is supported only for clusters for which `BackupPolicyLevel` is set to `Advanced`.
|
|
8
|
+
* The advanced backup policy.
|
|
9
|
+
* > * * PolarDB for PostgreSQL (Compatible with Oracle) and PolarDB for PostgreSQL do not support this parameter.
|
|
10
|
+
* > * * Only clusters with BackupPolicyLevel set to Advanced support this parameter.
|
|
13
11
|
*/
|
|
14
12
|
advancedDataPoliciesShrink?: string;
|
|
15
13
|
/**
|
|
16
14
|
* @remarks
|
|
17
15
|
* The backup frequency. Valid values:
|
|
18
16
|
*
|
|
19
|
-
* - **Normal** (default):
|
|
20
|
-
*
|
|
21
|
-
* - **
|
|
22
|
-
*
|
|
23
|
-
* - **3/24H**: high-frequency backup. The cluster is backed up every 3 hours.
|
|
17
|
+
* - **Normal** (default): regular backup. Automatic backup is performed once a day at a scheduled time.
|
|
18
|
+
* - **2/24H**: high-frequency backup. Backup is performed every 2 hours.
|
|
19
|
+
* - **3/24H**: high-frequency backup. Backup is performed every 3 hours.
|
|
20
|
+
* - **4/24H**: high-frequency backup. Backup is performed every 4 hours.
|
|
24
21
|
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
* > * * If
|
|
28
|
-
* >
|
|
29
|
-
* > * - If you enable high-frequency backup, the **PreferredBackupPeriod** parameter is automatically set to all days of the week (from Monday to Sunday).
|
|
30
|
-
* >
|
|
31
|
-
* > * - This parameter is not supported if your PolarDB for MySQL cluster is in a region that supports the cross-region backup feature. For more information about the regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
32
|
-
* >
|
|
33
|
-
* > * - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
22
|
+
* > * * After high-frequency backup is enabled, all backups completed within 24 hours are retained. For backups older than 24 hours, only the first backup completed after 00:00 each day is retained, and all others are deleted.
|
|
23
|
+
* > * * After high-frequency backup is enabled, the backup cycle parameter PreferredBackupPeriod defaults to all days of the week (Monday through Sunday).
|
|
24
|
+
* > * * If the region of your PolarDB for MySQL cluster supports the cross-region backup feature, this parameter is not supported. For regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
25
|
+
* > * * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
34
26
|
*
|
|
35
27
|
* @example
|
|
36
28
|
* Normal
|
|
@@ -38,17 +30,12 @@ export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
|
38
30
|
backupFrequency?: string;
|
|
39
31
|
/**
|
|
40
32
|
* @remarks
|
|
41
|
-
* The
|
|
42
|
-
*
|
|
43
|
-
*
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* > * * This parameter is not supported for PolarDB for PostgreSQL (compatible with Oracle) and PolarDB for PostgreSQL.
|
|
48
|
-
* >
|
|
49
|
-
* > * - Check the `AdvancedPolicyOption` parameter in the response of the [DescribeBackupPolicy](https://help.aliyun.com/document_detail/2319231.html) operation to determine whether the cluster supports advanced backup. If the cluster supports advanced backup, you can request this feature in [Advanced backup settings](~611727~~).
|
|
50
|
-
* >
|
|
51
|
-
* > * - After you enable advanced backup, you **cannot** switch back to standard backup.
|
|
33
|
+
* The backup policy level. Valid values:
|
|
34
|
+
* * **Normal**: regular backup.
|
|
35
|
+
* * **Advanced**: advanced backup.
|
|
36
|
+
* > * * PolarDB for PostgreSQL (Compatible with Oracle) and PolarDB for PostgreSQL do not support this parameter.
|
|
37
|
+
* > * * You can check the AdvancedPolicyOption response parameter of the [DescribeBackupPolicy](https://help.aliyun.com/document_detail/2319231.html) operation to determine whether the cluster supports advanced backup. If the cluster supports advanced backup, you can apply to use this feature through [Advanced backup settings](~611727~~).
|
|
38
|
+
* > * * After advanced backup is enabled, rollback to regular backup is **not supported**.
|
|
52
39
|
*
|
|
53
40
|
* @example
|
|
54
41
|
* Normal
|
|
@@ -56,15 +43,15 @@ export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
|
56
43
|
backupPolicyLevel?: string;
|
|
57
44
|
/**
|
|
58
45
|
* @remarks
|
|
59
|
-
* Specifies whether to retain backups when
|
|
46
|
+
* Specifies whether to retain backups when the cluster is deleted. Valid values:
|
|
60
47
|
*
|
|
61
|
-
* - **ALL**:
|
|
48
|
+
* - **ALL**: Long-term retention (LTR) of all backups.
|
|
62
49
|
*
|
|
63
|
-
* - **LATEST**:
|
|
50
|
+
* - **LATEST**: Long-term retention (LTR) of only the last backup.
|
|
64
51
|
*
|
|
65
|
-
* - **NONE**: Does not retain
|
|
52
|
+
* - **NONE**: Does not retain any backups.
|
|
66
53
|
*
|
|
67
|
-
* >
|
|
54
|
+
* > Default value: NONE.
|
|
68
55
|
*
|
|
69
56
|
* @example
|
|
70
57
|
* NONE
|
|
@@ -74,7 +61,7 @@ export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
|
74
61
|
* @remarks
|
|
75
62
|
* The cluster ID.
|
|
76
63
|
*
|
|
77
|
-
* > You can call the [DescribeDBClusters](https://help.aliyun.com/document_detail/98094.html) operation to query
|
|
64
|
+
* > You can call the [DescribeDBClusters](https://help.aliyun.com/document_detail/98094.html) operation to query information about all clusters in a specific region, including cluster IDs.
|
|
78
65
|
*
|
|
79
66
|
* This parameter is required.
|
|
80
67
|
*
|
|
@@ -86,19 +73,14 @@ export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
|
86
73
|
* @remarks
|
|
87
74
|
* The backup frequency. Valid values:
|
|
88
75
|
*
|
|
89
|
-
* - **Normal** (default):
|
|
90
|
-
*
|
|
91
|
-
* - **
|
|
92
|
-
*
|
|
93
|
-
* - **3/24H**: high-frequency backup. The cluster is backed up every 3 hours.
|
|
76
|
+
* - **Normal** (default): regular backup. Automatic backup is performed once a day at a scheduled time.
|
|
77
|
+
* - **2/24H**: high-frequency backup. Backup is performed every 2 hours.
|
|
78
|
+
* - **3/24H**: high-frequency backup. Backup is performed every 3 hours.
|
|
79
|
+
* - **4/24H**: high-frequency backup. Backup is performed every 4 hours.
|
|
94
80
|
*
|
|
95
|
-
*
|
|
96
|
-
*
|
|
97
|
-
* > * *
|
|
98
|
-
* >
|
|
99
|
-
* > * - This parameter is not supported if your PolarDB for MySQL cluster is in a region that supports the cross-region backup feature. For more information about the regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
100
|
-
* >
|
|
101
|
-
* > * - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
81
|
+
* > * * PolarDB for PostgreSQL (Compatible with Oracle) and PolarDB for PostgreSQL do not support this parameter.
|
|
82
|
+
* > * * If the region of your PolarDB for MySQL cluster does not support the cross-region backup feature, this parameter is not supported. For regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
83
|
+
* > * * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
102
84
|
*
|
|
103
85
|
* @example
|
|
104
86
|
* Normal
|
|
@@ -106,29 +88,19 @@ export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
|
106
88
|
dataLevel1BackupFrequency?: string;
|
|
107
89
|
/**
|
|
108
90
|
* @remarks
|
|
109
|
-
* The level-1 backup cycle. Valid values:
|
|
110
|
-
*
|
|
111
|
-
*
|
|
112
|
-
*
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
*
|
|
117
|
-
*
|
|
118
|
-
*
|
|
119
|
-
*
|
|
120
|
-
*
|
|
121
|
-
*
|
|
122
|
-
*
|
|
123
|
-
* - **Sunday**
|
|
124
|
-
*
|
|
125
|
-
* > * * You must select at least two days. Separate multiple values with commas.
|
|
126
|
-
* >
|
|
127
|
-
* > * - This parameter is not supported for PolarDB for PostgreSQL (compatible with Oracle) and PolarDB for PostgreSQL.
|
|
128
|
-
* >
|
|
129
|
-
* > * - This parameter is not supported if your PolarDB for MySQL cluster is in a region that supports the cross-region backup feature. For more information about the regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
130
|
-
* >
|
|
131
|
-
* > * - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
91
|
+
* The level-1 backup cycle. Valid values:
|
|
92
|
+
* * **Monday**
|
|
93
|
+
* * **Tuesday**
|
|
94
|
+
* * **Wednesday**
|
|
95
|
+
* * **Thursday**
|
|
96
|
+
* * **Friday**
|
|
97
|
+
* * **Saturday**
|
|
98
|
+
* * **Sunday**
|
|
99
|
+
*
|
|
100
|
+
* > * * Select at least 2 days. Separate multiple values with commas (,).
|
|
101
|
+
* > * * PolarDB for PostgreSQL (Compatible with Oracle) and PolarDB for PostgreSQL do not support this parameter.
|
|
102
|
+
* > * * If the region of your PolarDB for MySQL cluster does not support the cross-region backup feature, this parameter is not supported. For regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
103
|
+
* > * * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
132
104
|
*
|
|
133
105
|
* @example
|
|
134
106
|
* Monday,Tuesday
|
|
@@ -136,9 +108,9 @@ export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
|
136
108
|
dataLevel1BackupPeriod?: string;
|
|
137
109
|
/**
|
|
138
110
|
* @remarks
|
|
139
|
-
* The retention period
|
|
111
|
+
* The retention period of level-1 backups. Valid values: 3 to 14. Unit: days.
|
|
140
112
|
*
|
|
141
|
-
* >
|
|
113
|
+
* > * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
142
114
|
*
|
|
143
115
|
* @example
|
|
144
116
|
* 3
|
|
@@ -146,11 +118,10 @@ export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
|
146
118
|
dataLevel1BackupRetentionPeriod?: string;
|
|
147
119
|
/**
|
|
148
120
|
* @remarks
|
|
149
|
-
* The time
|
|
121
|
+
* The time period during which automatic backup is performed. Specify the time period in the `hh:mmZ-hh:mmZ` format in UTC. The values must be on the hour with an interval of 1 hour, such as `14:00Z-15:00Z`.
|
|
150
122
|
*
|
|
151
|
-
* >
|
|
152
|
-
* >
|
|
153
|
-
* > - This parameter is not supported if your PolarDB for MySQL cluster is in a region that supports the cross-region backup feature. For more information about the regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
123
|
+
* > * PolarDB for PostgreSQL (Compatible with Oracle) and PolarDB for PostgreSQL do not support this parameter.
|
|
124
|
+
* > * If the region of your PolarDB for MySQL cluster does not support the cross-region backup feature, this parameter is not supported. For regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
154
125
|
*
|
|
155
126
|
* @example
|
|
156
127
|
* 15:00Z-16:00Z
|
|
@@ -158,9 +129,8 @@ export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
|
158
129
|
dataLevel1BackupTime?: string;
|
|
159
130
|
/**
|
|
160
131
|
* @remarks
|
|
161
|
-
* The destination region for
|
|
162
|
-
*
|
|
163
|
-
* > - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
132
|
+
* The destination region for cross-region level-2 backups. For regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
133
|
+
* > * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
164
134
|
*
|
|
165
135
|
* @example
|
|
166
136
|
* cn-hangzhou
|
|
@@ -168,17 +138,16 @@ export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
|
168
138
|
dataLevel2BackupAnotherRegionRegion?: string;
|
|
169
139
|
/**
|
|
170
140
|
* @remarks
|
|
171
|
-
* The retention period of cross-region level-2 backups. Valid values:
|
|
141
|
+
* The retention period of cross-region backups for level-2 backups. Valid values:
|
|
172
142
|
*
|
|
173
|
-
* - **0**: Disables the cross-region
|
|
143
|
+
* - **0**: Disables the level-2 cross-region backup feature.
|
|
174
144
|
*
|
|
175
|
-
* - **30 to 7300**: The retention period of
|
|
145
|
+
* - **30 to 7300**: The retention period of level-2 backups. Unit: days.
|
|
176
146
|
*
|
|
177
|
-
* - **-1**:
|
|
147
|
+
* - **-1**: Long-term retention (LTR) of level-2 backups.
|
|
178
148
|
*
|
|
179
|
-
*
|
|
180
|
-
* >
|
|
181
|
-
* > * - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
149
|
+
* > * * When a cluster is created, the default value is **0**, which means the level-2 cross-region backup feature is disabled.
|
|
150
|
+
* > * * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
182
151
|
*
|
|
183
152
|
* @example
|
|
184
153
|
* 30
|
|
@@ -186,29 +155,19 @@ export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
|
186
155
|
dataLevel2BackupAnotherRegionRetentionPeriod?: string;
|
|
187
156
|
/**
|
|
188
157
|
* @remarks
|
|
189
|
-
* The level-2 backup cycle. Valid values:
|
|
190
|
-
*
|
|
191
|
-
*
|
|
192
|
-
*
|
|
193
|
-
*
|
|
194
|
-
*
|
|
195
|
-
*
|
|
196
|
-
*
|
|
197
|
-
*
|
|
198
|
-
*
|
|
199
|
-
*
|
|
200
|
-
*
|
|
201
|
-
*
|
|
202
|
-
*
|
|
203
|
-
* - **Sunday**
|
|
204
|
-
*
|
|
205
|
-
* > * * You must select at least two days. Separate multiple values with commas.
|
|
206
|
-
* >
|
|
207
|
-
* > * - This parameter is not supported for PolarDB for PostgreSQL (compatible with Oracle) and PolarDB for PostgreSQL.
|
|
208
|
-
* >
|
|
209
|
-
* > * - This parameter is not supported if your PolarDB for MySQL cluster is in a region that supports the cross-region backup feature. For more information about the regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
210
|
-
* >
|
|
211
|
-
* > * - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
158
|
+
* The level-2 backup cycle. Valid values:
|
|
159
|
+
* * **Monday**
|
|
160
|
+
* * **Tuesday**
|
|
161
|
+
* * **Wednesday**
|
|
162
|
+
* * **Thursday**
|
|
163
|
+
* * **Friday**
|
|
164
|
+
* * **Saturday**
|
|
165
|
+
* * **Sunday**
|
|
166
|
+
*
|
|
167
|
+
* > * * Select at least 2 days. Separate multiple values with commas (,).
|
|
168
|
+
* > * * PolarDB for PostgreSQL (Compatible with Oracle) and PolarDB for PostgreSQL do not support this parameter.
|
|
169
|
+
* > * * If the region of your PolarDB for MySQL cluster does not support the cross-region backup feature, this parameter is not supported. For regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
170
|
+
* > * * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
212
171
|
*
|
|
213
172
|
* @example
|
|
214
173
|
* Monday,Tuesday
|
|
@@ -220,13 +179,12 @@ export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
|
220
179
|
*
|
|
221
180
|
* - **0**: Disables the level-2 backup feature.
|
|
222
181
|
*
|
|
223
|
-
* - **30 to 7300**: The retention period of level-2 backups
|
|
182
|
+
* - **30 to 7300**: The retention period of level-2 backups. Unit: days.
|
|
224
183
|
*
|
|
225
|
-
* - **-1**:
|
|
184
|
+
* - **-1**: Long-term retention (LTR) of level-2 backups.
|
|
226
185
|
*
|
|
227
|
-
*
|
|
228
|
-
* >
|
|
229
|
-
* > * - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
186
|
+
* > * * When a cluster is created, the default value is **0**, which means the level-2 backup feature is disabled.
|
|
187
|
+
* > * * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
230
188
|
*
|
|
231
189
|
* @example
|
|
232
190
|
* 0
|
|
@@ -236,27 +194,18 @@ export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
|
236
194
|
ownerId?: number;
|
|
237
195
|
/**
|
|
238
196
|
* @remarks
|
|
239
|
-
* The backup cycle. Valid values:
|
|
240
|
-
*
|
|
241
|
-
*
|
|
242
|
-
*
|
|
243
|
-
*
|
|
244
|
-
*
|
|
245
|
-
*
|
|
246
|
-
*
|
|
247
|
-
*
|
|
248
|
-
*
|
|
249
|
-
* -
|
|
250
|
-
*
|
|
251
|
-
* - **Saturday**
|
|
252
|
-
*
|
|
253
|
-
* - **Sunday**
|
|
254
|
-
*
|
|
255
|
-
* > * * You must select at least two days. Separate multiple values with commas.
|
|
256
|
-
* >
|
|
257
|
-
* > * - This parameter is not supported if your PolarDB for MySQL cluster is in a region that supports the cross-region backup feature. For more information about the regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
258
|
-
* >
|
|
259
|
-
* > * - After you enable advanced backup, this parameter is no longer effective. Use the `AdvancedDataPolicies` parameter instead.
|
|
197
|
+
* The backup cycle. Valid values:
|
|
198
|
+
* * **Monday**
|
|
199
|
+
* * **Tuesday**
|
|
200
|
+
* * **Wednesday**
|
|
201
|
+
* * **Thursday**
|
|
202
|
+
* * **Friday**
|
|
203
|
+
* * **Saturday**
|
|
204
|
+
* * **Sunday**
|
|
205
|
+
*
|
|
206
|
+
* > * * Select at least 2 days. Separate multiple values with commas (,).
|
|
207
|
+
* > * * If the region of your PolarDB for MySQL cluster supports the cross-region backup feature, this parameter is not supported. For regions that support cross-region backup, see [Overview](https://help.aliyun.com/document_detail/72672.html).
|
|
208
|
+
* > * * After advanced backup is enabled, this parameter no longer takes effect. Use the AdvancedDataPolicies parameter instead.
|
|
260
209
|
*
|
|
261
210
|
* @example
|
|
262
211
|
* Monday,Tuesday
|
|
@@ -264,7 +213,7 @@ export class ModifyBackupPolicyShrinkRequest extends $dara.Model {
|
|
|
264
213
|
preferredBackupPeriod?: string;
|
|
265
214
|
/**
|
|
266
215
|
* @remarks
|
|
267
|
-
* The time
|
|
216
|
+
* The time period during which automatic backup is performed. Specify the time period in the `hh:mmZ-hh:mmZ` format in UTC. The values must be on the hour with an interval of 1 hour, such as `14:00Z-15:00Z`.
|
|
268
217
|
*
|
|
269
218
|
* @example
|
|
270
219
|
* 15:00Z-16:00Z
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class RegisterKnowledgeBaseFileRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The OSS object key of the uploaded file, excluding the oss://BucketName/ prefix.
|
|
9
|
+
*
|
|
10
|
+
* This parameter is required.
|
|
11
|
+
*
|
|
12
|
+
* @example
|
|
13
|
+
* pks-2ze123456789abcd/pkb-2ze123456789abcd/example.pdf
|
|
14
|
+
*/
|
|
15
|
+
filePath?: string;
|
|
16
|
+
/**
|
|
17
|
+
* @remarks
|
|
18
|
+
* The knowledge base ID.
|
|
19
|
+
*
|
|
20
|
+
* This parameter is required.
|
|
21
|
+
*
|
|
22
|
+
* @example
|
|
23
|
+
* pkb-2ze123456789abcd
|
|
24
|
+
*/
|
|
25
|
+
knowledgeBaseId?: string;
|
|
26
|
+
/**
|
|
27
|
+
* @remarks
|
|
28
|
+
* The ID of the region where the knowledge base resides.
|
|
29
|
+
*
|
|
30
|
+
* This parameter is required.
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* cn-beijing
|
|
34
|
+
*/
|
|
35
|
+
regionId?: string;
|
|
36
|
+
static names(): { [key: string]: string } {
|
|
37
|
+
return {
|
|
38
|
+
filePath: 'FilePath',
|
|
39
|
+
knowledgeBaseId: 'KnowledgeBaseId',
|
|
40
|
+
regionId: 'RegionId',
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
static types(): { [key: string]: any } {
|
|
45
|
+
return {
|
|
46
|
+
filePath: 'string',
|
|
47
|
+
knowledgeBaseId: 'string',
|
|
48
|
+
regionId: 'string',
|
|
49
|
+
};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
validate() {
|
|
53
|
+
super.validate();
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
constructor(map?: { [key: string]: any }) {
|
|
57
|
+
super(map);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { RegisterKnowledgeBaseFileResponseBody } from "./RegisterKnowledgeBaseFileResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class RegisterKnowledgeBaseFileResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: RegisterKnowledgeBaseFileResponseBody;
|
|
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: RegisterKnowledgeBaseFileResponseBody,
|
|
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,86 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class RegisterKnowledgeBaseFileResponseBody extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* The file ID, which is generated by the server based on the ETL rules for native OSS files.
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 3566626f-3cc5-57a3-904c-e777b39baa3d
|
|
12
|
+
*/
|
|
13
|
+
fileId?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* The file name.
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* example.pdf
|
|
20
|
+
*/
|
|
21
|
+
fileName?: string;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* The OSS object key of the registered file.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* pks-2ze123456789abcd/pkb-2ze123456789abcd/example.pdf
|
|
28
|
+
*/
|
|
29
|
+
filePath?: string;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* Indicates whether an existing idempotent record is matched. Valid values:
|
|
33
|
+
* - true: An existing idempotent record is matched.
|
|
34
|
+
* - false: No existing idempotent record is matched.
|
|
35
|
+
*
|
|
36
|
+
* @example
|
|
37
|
+
* false
|
|
38
|
+
*/
|
|
39
|
+
idempotent?: boolean;
|
|
40
|
+
/**
|
|
41
|
+
* @remarks
|
|
42
|
+
* The request ID.
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* 9C3E5A7B-12D4-4F68-9A01-2B3C4D5E6F70
|
|
46
|
+
*/
|
|
47
|
+
requestId?: string;
|
|
48
|
+
/**
|
|
49
|
+
* @remarks
|
|
50
|
+
* The file processing status.
|
|
51
|
+
*
|
|
52
|
+
* @example
|
|
53
|
+
* DISPATCHED
|
|
54
|
+
*/
|
|
55
|
+
status?: string;
|
|
56
|
+
static names(): { [key: string]: string } {
|
|
57
|
+
return {
|
|
58
|
+
fileId: 'FileId',
|
|
59
|
+
fileName: 'FileName',
|
|
60
|
+
filePath: 'FilePath',
|
|
61
|
+
idempotent: 'Idempotent',
|
|
62
|
+
requestId: 'RequestId',
|
|
63
|
+
status: 'Status',
|
|
64
|
+
};
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
static types(): { [key: string]: any } {
|
|
68
|
+
return {
|
|
69
|
+
fileId: 'string',
|
|
70
|
+
fileName: 'string',
|
|
71
|
+
filePath: 'string',
|
|
72
|
+
idempotent: 'boolean',
|
|
73
|
+
requestId: 'string',
|
|
74
|
+
status: 'string',
|
|
75
|
+
};
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
validate() {
|
|
79
|
+
super.validate();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
constructor(map?: { [key: string]: any }) {
|
|
83
|
+
super(map);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
|