oci-recovery 2.85.0 → 2.86.2
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/lib/client.d.ts +44 -23
- package/lib/client.js +157 -25
- package/lib/client.js.map +1 -1
- package/lib/model/create-protection-policy-details.d.ts +12 -0
- package/lib/model/create-protection-policy-details.js.map +1 -1
- package/lib/model/create-recovery-service-subnet-details.d.ts +16 -3
- package/lib/model/create-recovery-service-subnet-details.js.map +1 -1
- package/lib/model/deletion-schedule.d.ts +26 -0
- package/lib/model/deletion-schedule.js +37 -0
- package/lib/model/deletion-schedule.js.map +1 -0
- package/lib/model/fetch-protected-database-configuration-details.d.ts +1 -0
- package/lib/model/fetch-protected-database-configuration-details.js +1 -0
- package/lib/model/fetch-protected-database-configuration-details.js.map +1 -1
- package/lib/model/index.d.ts +4 -0
- package/lib/model/index.js +5 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/lifecycle-state.d.ts +1 -0
- package/lib/model/lifecycle-state.js +1 -0
- package/lib/model/lifecycle-state.js.map +1 -1
- package/lib/model/metrics-summary.d.ts +4 -0
- package/lib/model/metrics-summary.js.map +1 -1
- package/lib/model/metrics.d.ts +4 -0
- package/lib/model/metrics.js.map +1 -1
- package/lib/model/operation-status.d.ts +1 -0
- package/lib/model/operation-status.js +1 -0
- package/lib/model/operation-status.js.map +1 -1
- package/lib/model/protected-database-summary.d.ts +8 -0
- package/lib/model/protected-database-summary.js.map +1 -1
- package/lib/model/protected-database.d.ts +10 -5
- package/lib/model/protected-database.js.map +1 -1
- package/lib/model/protection-policy-summary.d.ts +5 -0
- package/lib/model/protection-policy-summary.js.map +1 -1
- package/lib/model/protection-policy.d.ts +6 -7
- package/lib/model/protection-policy.js.map +1 -1
- package/lib/model/recovery-service-subnet-summary.d.ts +14 -8
- package/lib/model/recovery-service-subnet-summary.js.map +1 -1
- package/lib/model/recovery-service-subnet.d.ts +14 -8
- package/lib/model/recovery-service-subnet.js.map +1 -1
- package/lib/model/schedule-protected-database-deletion-details.d.ts +29 -0
- package/lib/model/schedule-protected-database-deletion-details.js +29 -0
- package/lib/model/schedule-protected-database-deletion-details.js.map +1 -0
- package/lib/model/update-protection-policy-details.d.ts +12 -0
- package/lib/model/update-protection-policy-details.js.map +1 -1
- package/lib/model/update-recovery-service-subnet-details.d.ts +12 -0
- package/lib/model/update-recovery-service-subnet-details.js.map +1 -1
- package/lib/request/cancel-protected-database-deletion-request.d.ts +35 -0
- package/lib/request/cancel-protected-database-deletion-request.js +15 -0
- package/lib/request/cancel-protected-database-deletion-request.js.map +1 -0
- package/lib/request/change-protected-database-compartment-request.d.ts +1 -1
- package/lib/request/change-protection-policy-compartment-request.d.ts +1 -1
- package/lib/request/change-recovery-service-subnet-compartment-request.d.ts +1 -1
- package/lib/request/create-protected-database-request.d.ts +22 -1
- package/lib/request/create-protection-policy-request.d.ts +1 -1
- package/lib/request/create-recovery-service-subnet-request.d.ts +1 -1
- package/lib/request/delete-protected-database-request.d.ts +9 -1
- package/lib/request/delete-protection-policy-request.d.ts +1 -1
- package/lib/request/delete-recovery-service-subnet-request.d.ts +1 -1
- package/lib/request/fetch-protected-database-configuration-request.d.ts +1 -1
- package/lib/request/get-protected-database-request.d.ts +1 -1
- package/lib/request/get-protection-policy-request.d.ts +1 -1
- package/lib/request/get-recovery-service-subnet-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/index.d.ts +4 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-protected-databases-request.d.ts +1 -1
- package/lib/request/list-protection-policies-request.d.ts +1 -1
- package/lib/request/list-recovery-service-subnets-request.d.ts +1 -8
- package/lib/request/list-recovery-service-subnets-request.js.map +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +1 -1
- package/lib/request/schedule-protected-database-deletion-request.d.ts +40 -0
- package/lib/request/schedule-protected-database-deletion-request.js +15 -0
- package/lib/request/schedule-protected-database-deletion-request.js.map +1 -0
- package/lib/request/update-protected-database-request.d.ts +1 -1
- package/lib/request/update-protection-policy-request.d.ts +1 -1
- package/lib/request/update-recovery-service-subnet-request.d.ts +1 -1
- package/lib/response/cancel-protected-database-deletion-response.d.ts +20 -0
- package/lib/response/cancel-protected-database-deletion-response.js +15 -0
- package/lib/response/cancel-protected-database-deletion-response.js.map +1 -0
- package/lib/response/fetch-protected-database-configuration-response.d.ts +10 -0
- package/lib/response/index.d.ts +4 -0
- package/lib/response/schedule-protected-database-deletion-response.d.ts +25 -0
- package/lib/response/schedule-protected-database-deletion-response.js +15 -0
- package/lib/response/schedule-protected-database-deletion-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -89,13 +89,22 @@ export declare class DatabaseRecoveryClient {
|
|
|
89
89
|
* Close the client once it is no longer needed
|
|
90
90
|
*/
|
|
91
91
|
close(): void;
|
|
92
|
+
/**
|
|
93
|
+
* Cancels the scheduled deletion of a protected database, and returns the protected database to an ACTIVE state. You can cancel the deletion only if the protected database is in the DELETE SCHEDULED state.
|
|
94
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
95
|
+
* @param CancelProtectedDatabaseDeletionRequest
|
|
96
|
+
* @return CancelProtectedDatabaseDeletionResponse
|
|
97
|
+
* @throws OciError when an error occurs
|
|
98
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/CancelProtectedDatabaseDeletion.ts.html |here} to see how to use CancelProtectedDatabaseDeletion API.
|
|
99
|
+
*/
|
|
100
|
+
cancelProtectedDatabaseDeletion(cancelProtectedDatabaseDeletionRequest: requests.CancelProtectedDatabaseDeletionRequest): Promise<responses.CancelProtectedDatabaseDeletionResponse>;
|
|
92
101
|
/**
|
|
93
102
|
* Moves a protected database resource from the existing compartment to the specified compartment. When provided, If-Match is checked against ETag values of the resource.
|
|
94
103
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
95
104
|
* @param ChangeProtectedDatabaseCompartmentRequest
|
|
96
105
|
* @return ChangeProtectedDatabaseCompartmentResponse
|
|
97
106
|
* @throws OciError when an error occurs
|
|
98
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
107
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ChangeProtectedDatabaseCompartment.ts.html |here} to see how to use ChangeProtectedDatabaseCompartment API.
|
|
99
108
|
*/
|
|
100
109
|
changeProtectedDatabaseCompartment(changeProtectedDatabaseCompartmentRequest: requests.ChangeProtectedDatabaseCompartmentRequest): Promise<responses.ChangeProtectedDatabaseCompartmentResponse>;
|
|
101
110
|
/**
|
|
@@ -104,7 +113,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
104
113
|
* @param ChangeProtectionPolicyCompartmentRequest
|
|
105
114
|
* @return ChangeProtectionPolicyCompartmentResponse
|
|
106
115
|
* @throws OciError when an error occurs
|
|
107
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
116
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ChangeProtectionPolicyCompartment.ts.html |here} to see how to use ChangeProtectionPolicyCompartment API.
|
|
108
117
|
*/
|
|
109
118
|
changeProtectionPolicyCompartment(changeProtectionPolicyCompartmentRequest: requests.ChangeProtectionPolicyCompartmentRequest): Promise<responses.ChangeProtectionPolicyCompartmentResponse>;
|
|
110
119
|
/**
|
|
@@ -113,7 +122,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
113
122
|
* @param ChangeRecoveryServiceSubnetCompartmentRequest
|
|
114
123
|
* @return ChangeRecoveryServiceSubnetCompartmentResponse
|
|
115
124
|
* @throws OciError when an error occurs
|
|
116
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
125
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ChangeRecoveryServiceSubnetCompartment.ts.html |here} to see how to use ChangeRecoveryServiceSubnetCompartment API.
|
|
117
126
|
*/
|
|
118
127
|
changeRecoveryServiceSubnetCompartment(changeRecoveryServiceSubnetCompartmentRequest: requests.ChangeRecoveryServiceSubnetCompartmentRequest): Promise<responses.ChangeRecoveryServiceSubnetCompartmentResponse>;
|
|
119
128
|
/**
|
|
@@ -123,7 +132,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
123
132
|
* @param CreateProtectedDatabaseRequest
|
|
124
133
|
* @return CreateProtectedDatabaseResponse
|
|
125
134
|
* @throws OciError when an error occurs
|
|
126
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
135
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/CreateProtectedDatabase.ts.html |here} to see how to use CreateProtectedDatabase API.
|
|
127
136
|
*/
|
|
128
137
|
createProtectedDatabase(createProtectedDatabaseRequest: requests.CreateProtectedDatabaseRequest): Promise<responses.CreateProtectedDatabaseResponse>;
|
|
129
138
|
/**
|
|
@@ -133,7 +142,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
133
142
|
* @param CreateProtectionPolicyRequest
|
|
134
143
|
* @return CreateProtectionPolicyResponse
|
|
135
144
|
* @throws OciError when an error occurs
|
|
136
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
145
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/CreateProtectionPolicy.ts.html |here} to see how to use CreateProtectionPolicy API.
|
|
137
146
|
*/
|
|
138
147
|
createProtectionPolicy(createProtectionPolicyRequest: requests.CreateProtectionPolicyRequest): Promise<responses.CreateProtectionPolicyResponse>;
|
|
139
148
|
/**
|
|
@@ -143,7 +152,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
143
152
|
* @param CreateRecoveryServiceSubnetRequest
|
|
144
153
|
* @return CreateRecoveryServiceSubnetResponse
|
|
145
154
|
* @throws OciError when an error occurs
|
|
146
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
155
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/CreateRecoveryServiceSubnet.ts.html |here} to see how to use CreateRecoveryServiceSubnet API.
|
|
147
156
|
*/
|
|
148
157
|
createRecoveryServiceSubnet(createRecoveryServiceSubnetRequest: requests.CreateRecoveryServiceSubnetRequest): Promise<responses.CreateRecoveryServiceSubnetResponse>;
|
|
149
158
|
/**
|
|
@@ -152,7 +161,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
152
161
|
* @param DeleteProtectedDatabaseRequest
|
|
153
162
|
* @return DeleteProtectedDatabaseResponse
|
|
154
163
|
* @throws OciError when an error occurs
|
|
155
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
164
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/DeleteProtectedDatabase.ts.html |here} to see how to use DeleteProtectedDatabase API.
|
|
156
165
|
*/
|
|
157
166
|
deleteProtectedDatabase(deleteProtectedDatabaseRequest: requests.DeleteProtectedDatabaseRequest): Promise<responses.DeleteProtectedDatabaseResponse>;
|
|
158
167
|
/**
|
|
@@ -163,7 +172,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
163
172
|
* @param DeleteProtectionPolicyRequest
|
|
164
173
|
* @return DeleteProtectionPolicyResponse
|
|
165
174
|
* @throws OciError when an error occurs
|
|
166
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
175
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/DeleteProtectionPolicy.ts.html |here} to see how to use DeleteProtectionPolicy API.
|
|
167
176
|
*/
|
|
168
177
|
deleteProtectionPolicy(deleteProtectionPolicyRequest: requests.DeleteProtectionPolicyRequest): Promise<responses.DeleteProtectionPolicyResponse>;
|
|
169
178
|
/**
|
|
@@ -172,7 +181,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
172
181
|
* @param DeleteRecoveryServiceSubnetRequest
|
|
173
182
|
* @return DeleteRecoveryServiceSubnetResponse
|
|
174
183
|
* @throws OciError when an error occurs
|
|
175
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
184
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/DeleteRecoveryServiceSubnet.ts.html |here} to see how to use DeleteRecoveryServiceSubnet API.
|
|
176
185
|
*/
|
|
177
186
|
deleteRecoveryServiceSubnet(deleteRecoveryServiceSubnetRequest: requests.DeleteRecoveryServiceSubnetRequest): Promise<responses.DeleteRecoveryServiceSubnetResponse>;
|
|
178
187
|
/**
|
|
@@ -181,7 +190,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
181
190
|
* @param FetchProtectedDatabaseConfigurationRequest
|
|
182
191
|
* @return FetchProtectedDatabaseConfigurationResponse
|
|
183
192
|
* @throws OciError when an error occurs
|
|
184
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
193
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/FetchProtectedDatabaseConfiguration.ts.html |here} to see how to use FetchProtectedDatabaseConfiguration API.
|
|
185
194
|
*/
|
|
186
195
|
fetchProtectedDatabaseConfiguration(fetchProtectedDatabaseConfigurationRequest: requests.FetchProtectedDatabaseConfigurationRequest): Promise<responses.FetchProtectedDatabaseConfigurationResponse>;
|
|
187
196
|
/**
|
|
@@ -190,7 +199,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
190
199
|
* @param GetProtectedDatabaseRequest
|
|
191
200
|
* @return GetProtectedDatabaseResponse
|
|
192
201
|
* @throws OciError when an error occurs
|
|
193
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
202
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/GetProtectedDatabase.ts.html |here} to see how to use GetProtectedDatabase API.
|
|
194
203
|
*/
|
|
195
204
|
getProtectedDatabase(getProtectedDatabaseRequest: requests.GetProtectedDatabaseRequest): Promise<responses.GetProtectedDatabaseResponse>;
|
|
196
205
|
/**
|
|
@@ -199,7 +208,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
199
208
|
* @param GetProtectionPolicyRequest
|
|
200
209
|
* @return GetProtectionPolicyResponse
|
|
201
210
|
* @throws OciError when an error occurs
|
|
202
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
211
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/GetProtectionPolicy.ts.html |here} to see how to use GetProtectionPolicy API.
|
|
203
212
|
*/
|
|
204
213
|
getProtectionPolicy(getProtectionPolicyRequest: requests.GetProtectionPolicyRequest): Promise<responses.GetProtectionPolicyResponse>;
|
|
205
214
|
/**
|
|
@@ -208,7 +217,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
208
217
|
* @param GetRecoveryServiceSubnetRequest
|
|
209
218
|
* @return GetRecoveryServiceSubnetResponse
|
|
210
219
|
* @throws OciError when an error occurs
|
|
211
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
220
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/GetRecoveryServiceSubnet.ts.html |here} to see how to use GetRecoveryServiceSubnet API.
|
|
212
221
|
*/
|
|
213
222
|
getRecoveryServiceSubnet(getRecoveryServiceSubnetRequest: requests.GetRecoveryServiceSubnetRequest): Promise<responses.GetRecoveryServiceSubnetResponse>;
|
|
214
223
|
/**
|
|
@@ -217,7 +226,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
217
226
|
* @param GetWorkRequestRequest
|
|
218
227
|
* @return GetWorkRequestResponse
|
|
219
228
|
* @throws OciError when an error occurs
|
|
220
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
229
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
221
230
|
*/
|
|
222
231
|
getWorkRequest(getWorkRequestRequest: requests.GetWorkRequestRequest): Promise<responses.GetWorkRequestResponse>;
|
|
223
232
|
/**
|
|
@@ -227,7 +236,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
227
236
|
* @param ListProtectedDatabasesRequest
|
|
228
237
|
* @return ListProtectedDatabasesResponse
|
|
229
238
|
* @throws OciError when an error occurs
|
|
230
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
239
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ListProtectedDatabases.ts.html |here} to see how to use ListProtectedDatabases API.
|
|
231
240
|
*/
|
|
232
241
|
listProtectedDatabases(listProtectedDatabasesRequest: requests.ListProtectedDatabasesRequest): Promise<responses.ListProtectedDatabasesResponse>;
|
|
233
242
|
/**
|
|
@@ -237,7 +246,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
237
246
|
* @param ListProtectionPoliciesRequest
|
|
238
247
|
* @return ListProtectionPoliciesResponse
|
|
239
248
|
* @throws OciError when an error occurs
|
|
240
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
249
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ListProtectionPolicies.ts.html |here} to see how to use ListProtectionPolicies API.
|
|
241
250
|
*/
|
|
242
251
|
listProtectionPolicies(listProtectionPoliciesRequest: requests.ListProtectionPoliciesRequest): Promise<responses.ListProtectionPoliciesResponse>;
|
|
243
252
|
/**
|
|
@@ -247,7 +256,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
247
256
|
* @param ListRecoveryServiceSubnetsRequest
|
|
248
257
|
* @return ListRecoveryServiceSubnetsResponse
|
|
249
258
|
* @throws OciError when an error occurs
|
|
250
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
259
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ListRecoveryServiceSubnets.ts.html |here} to see how to use ListRecoveryServiceSubnets API.
|
|
251
260
|
*/
|
|
252
261
|
listRecoveryServiceSubnets(listRecoveryServiceSubnetsRequest: requests.ListRecoveryServiceSubnetsRequest): Promise<responses.ListRecoveryServiceSubnetsResponse>;
|
|
253
262
|
/**
|
|
@@ -257,7 +266,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
257
266
|
* @param ListWorkRequestErrorsRequest
|
|
258
267
|
* @return ListWorkRequestErrorsResponse
|
|
259
268
|
* @throws OciError when an error occurs
|
|
260
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
269
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
261
270
|
*/
|
|
262
271
|
listWorkRequestErrors(listWorkRequestErrorsRequest: requests.ListWorkRequestErrorsRequest): Promise<responses.ListWorkRequestErrorsResponse>;
|
|
263
272
|
/**
|
|
@@ -267,7 +276,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
267
276
|
* @param ListWorkRequestLogsRequest
|
|
268
277
|
* @return ListWorkRequestLogsResponse
|
|
269
278
|
* @throws OciError when an error occurs
|
|
270
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
279
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
271
280
|
*/
|
|
272
281
|
listWorkRequestLogs(listWorkRequestLogsRequest: requests.ListWorkRequestLogsRequest): Promise<responses.ListWorkRequestLogsResponse>;
|
|
273
282
|
/**
|
|
@@ -277,16 +286,28 @@ export declare class DatabaseRecoveryClient {
|
|
|
277
286
|
* @param ListWorkRequestsRequest
|
|
278
287
|
* @return ListWorkRequestsResponse
|
|
279
288
|
* @throws OciError when an error occurs
|
|
280
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
289
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
281
290
|
*/
|
|
282
291
|
listWorkRequests(listWorkRequestsRequest: requests.ListWorkRequestsRequest): Promise<responses.ListWorkRequestsResponse>;
|
|
292
|
+
/**
|
|
293
|
+
* Defines a preferred schedule to delete a protected database after you terminate the source database.
|
|
294
|
+
* The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated.
|
|
295
|
+
* The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
|
|
296
|
+
*
|
|
297
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
298
|
+
* @param ScheduleProtectedDatabaseDeletionRequest
|
|
299
|
+
* @return ScheduleProtectedDatabaseDeletionResponse
|
|
300
|
+
* @throws OciError when an error occurs
|
|
301
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ScheduleProtectedDatabaseDeletion.ts.html |here} to see how to use ScheduleProtectedDatabaseDeletion API.
|
|
302
|
+
*/
|
|
303
|
+
scheduleProtectedDatabaseDeletion(scheduleProtectedDatabaseDeletionRequest: requests.ScheduleProtectedDatabaseDeletionRequest): Promise<responses.ScheduleProtectedDatabaseDeletionResponse>;
|
|
283
304
|
/**
|
|
284
305
|
* Updates the Protected Database
|
|
285
306
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
286
307
|
* @param UpdateProtectedDatabaseRequest
|
|
287
308
|
* @return UpdateProtectedDatabaseResponse
|
|
288
309
|
* @throws OciError when an error occurs
|
|
289
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
310
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/UpdateProtectedDatabase.ts.html |here} to see how to use UpdateProtectedDatabase API.
|
|
290
311
|
*/
|
|
291
312
|
updateProtectedDatabase(updateProtectedDatabaseRequest: requests.UpdateProtectedDatabaseRequest): Promise<responses.UpdateProtectedDatabaseResponse>;
|
|
292
313
|
/**
|
|
@@ -295,7 +316,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
295
316
|
* @param UpdateProtectionPolicyRequest
|
|
296
317
|
* @return UpdateProtectionPolicyResponse
|
|
297
318
|
* @throws OciError when an error occurs
|
|
298
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
319
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/UpdateProtectionPolicy.ts.html |here} to see how to use UpdateProtectionPolicy API.
|
|
299
320
|
*/
|
|
300
321
|
updateProtectionPolicy(updateProtectionPolicyRequest: requests.UpdateProtectionPolicyRequest): Promise<responses.UpdateProtectionPolicyResponse>;
|
|
301
322
|
/**
|
|
@@ -304,7 +325,7 @@ export declare class DatabaseRecoveryClient {
|
|
|
304
325
|
* @param UpdateRecoveryServiceSubnetRequest
|
|
305
326
|
* @return UpdateRecoveryServiceSubnetResponse
|
|
306
327
|
* @throws OciError when an error occurs
|
|
307
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
328
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/UpdateRecoveryServiceSubnet.ts.html |here} to see how to use UpdateRecoveryServiceSubnet API.
|
|
308
329
|
*/
|
|
309
330
|
updateRecoveryServiceSubnet(updateRecoveryServiceSubnetRequest: requests.UpdateRecoveryServiceSubnetRequest): Promise<responses.UpdateRecoveryServiceSubnetResponse>;
|
|
310
331
|
}
|
package/lib/client.js
CHANGED
|
@@ -196,13 +196,68 @@ class DatabaseRecoveryClient {
|
|
|
196
196
|
close() {
|
|
197
197
|
this.shutdownCircuitBreaker();
|
|
198
198
|
}
|
|
199
|
+
/**
|
|
200
|
+
* Cancels the scheduled deletion of a protected database, and returns the protected database to an ACTIVE state. You can cancel the deletion only if the protected database is in the DELETE SCHEDULED state.
|
|
201
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
202
|
+
* @param CancelProtectedDatabaseDeletionRequest
|
|
203
|
+
* @return CancelProtectedDatabaseDeletionResponse
|
|
204
|
+
* @throws OciError when an error occurs
|
|
205
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/CancelProtectedDatabaseDeletion.ts.html |here} to see how to use CancelProtectedDatabaseDeletion API.
|
|
206
|
+
*/
|
|
207
|
+
cancelProtectedDatabaseDeletion(cancelProtectedDatabaseDeletionRequest) {
|
|
208
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
209
|
+
if (this.logger)
|
|
210
|
+
this.logger.debug("Calling operation DatabaseRecoveryClient#cancelProtectedDatabaseDeletion.");
|
|
211
|
+
const operationName = "cancelProtectedDatabaseDeletion";
|
|
212
|
+
const apiReferenceLink = "";
|
|
213
|
+
const pathParams = {
|
|
214
|
+
"{protectedDatabaseId}": cancelProtectedDatabaseDeletionRequest.protectedDatabaseId
|
|
215
|
+
};
|
|
216
|
+
const queryParams = {};
|
|
217
|
+
let headerParams = {
|
|
218
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
219
|
+
"if-match": cancelProtectedDatabaseDeletionRequest.ifMatch,
|
|
220
|
+
"opc-request-id": cancelProtectedDatabaseDeletionRequest.opcRequestId
|
|
221
|
+
};
|
|
222
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
223
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelProtectedDatabaseDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
224
|
+
if (this.logger)
|
|
225
|
+
retrier.logger = this.logger;
|
|
226
|
+
const request = yield oci_common_1.composeRequest({
|
|
227
|
+
baseEndpoint: this._endpoint,
|
|
228
|
+
defaultHeaders: this._defaultHeaders,
|
|
229
|
+
path: "/protectedDatabases/{protectedDatabaseId}/actions/cancelDeletion",
|
|
230
|
+
method: "POST",
|
|
231
|
+
pathParams: pathParams,
|
|
232
|
+
headerParams: headerParams,
|
|
233
|
+
queryParams: queryParams
|
|
234
|
+
});
|
|
235
|
+
try {
|
|
236
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
237
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
238
|
+
responseObject: {},
|
|
239
|
+
responseHeaders: [
|
|
240
|
+
{
|
|
241
|
+
value: response.headers.get("opc-request-id"),
|
|
242
|
+
key: "opcRequestId",
|
|
243
|
+
dataType: "string"
|
|
244
|
+
}
|
|
245
|
+
]
|
|
246
|
+
});
|
|
247
|
+
return sdkResponse;
|
|
248
|
+
}
|
|
249
|
+
catch (err) {
|
|
250
|
+
throw err;
|
|
251
|
+
}
|
|
252
|
+
});
|
|
253
|
+
}
|
|
199
254
|
/**
|
|
200
255
|
* Moves a protected database resource from the existing compartment to the specified compartment. When provided, If-Match is checked against ETag values of the resource.
|
|
201
256
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
202
257
|
* @param ChangeProtectedDatabaseCompartmentRequest
|
|
203
258
|
* @return ChangeProtectedDatabaseCompartmentResponse
|
|
204
259
|
* @throws OciError when an error occurs
|
|
205
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
260
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ChangeProtectedDatabaseCompartment.ts.html |here} to see how to use ChangeProtectedDatabaseCompartment API.
|
|
206
261
|
*/
|
|
207
262
|
changeProtectedDatabaseCompartment(changeProtectedDatabaseCompartmentRequest) {
|
|
208
263
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -263,7 +318,7 @@ class DatabaseRecoveryClient {
|
|
|
263
318
|
* @param ChangeProtectionPolicyCompartmentRequest
|
|
264
319
|
* @return ChangeProtectionPolicyCompartmentResponse
|
|
265
320
|
* @throws OciError when an error occurs
|
|
266
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
321
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ChangeProtectionPolicyCompartment.ts.html |here} to see how to use ChangeProtectionPolicyCompartment API.
|
|
267
322
|
*/
|
|
268
323
|
changeProtectionPolicyCompartment(changeProtectionPolicyCompartmentRequest) {
|
|
269
324
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -324,7 +379,7 @@ class DatabaseRecoveryClient {
|
|
|
324
379
|
* @param ChangeRecoveryServiceSubnetCompartmentRequest
|
|
325
380
|
* @return ChangeRecoveryServiceSubnetCompartmentResponse
|
|
326
381
|
* @throws OciError when an error occurs
|
|
327
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
382
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ChangeRecoveryServiceSubnetCompartment.ts.html |here} to see how to use ChangeRecoveryServiceSubnetCompartment API.
|
|
328
383
|
*/
|
|
329
384
|
changeRecoveryServiceSubnetCompartment(changeRecoveryServiceSubnetCompartmentRequest) {
|
|
330
385
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -386,7 +441,7 @@ class DatabaseRecoveryClient {
|
|
|
386
441
|
* @param CreateProtectedDatabaseRequest
|
|
387
442
|
* @return CreateProtectedDatabaseResponse
|
|
388
443
|
* @throws OciError when an error occurs
|
|
389
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
444
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/CreateProtectedDatabase.ts.html |here} to see how to use CreateProtectedDatabase API.
|
|
390
445
|
*/
|
|
391
446
|
createProtectedDatabase(createProtectedDatabaseRequest) {
|
|
392
447
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -399,7 +454,8 @@ class DatabaseRecoveryClient {
|
|
|
399
454
|
let headerParams = {
|
|
400
455
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
401
456
|
"opc-retry-token": createProtectedDatabaseRequest.opcRetryToken,
|
|
402
|
-
"opc-request-id": createProtectedDatabaseRequest.opcRequestId
|
|
457
|
+
"opc-request-id": createProtectedDatabaseRequest.opcRequestId,
|
|
458
|
+
"opc-dry-run": createProtectedDatabaseRequest.opcDryRun
|
|
403
459
|
};
|
|
404
460
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
405
461
|
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createProtectedDatabaseRequest.retryConfiguration, specRetryConfiguration);
|
|
@@ -460,7 +516,7 @@ class DatabaseRecoveryClient {
|
|
|
460
516
|
* @param CreateProtectionPolicyRequest
|
|
461
517
|
* @return CreateProtectionPolicyResponse
|
|
462
518
|
* @throws OciError when an error occurs
|
|
463
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
519
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/CreateProtectionPolicy.ts.html |here} to see how to use CreateProtectionPolicy API.
|
|
464
520
|
*/
|
|
465
521
|
createProtectionPolicy(createProtectionPolicyRequest) {
|
|
466
522
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -534,7 +590,7 @@ class DatabaseRecoveryClient {
|
|
|
534
590
|
* @param CreateRecoveryServiceSubnetRequest
|
|
535
591
|
* @return CreateRecoveryServiceSubnetResponse
|
|
536
592
|
* @throws OciError when an error occurs
|
|
537
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
593
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/CreateRecoveryServiceSubnet.ts.html |here} to see how to use CreateRecoveryServiceSubnet API.
|
|
538
594
|
*/
|
|
539
595
|
createRecoveryServiceSubnet(createRecoveryServiceSubnetRequest) {
|
|
540
596
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -607,7 +663,7 @@ class DatabaseRecoveryClient {
|
|
|
607
663
|
* @param DeleteProtectedDatabaseRequest
|
|
608
664
|
* @return DeleteProtectedDatabaseResponse
|
|
609
665
|
* @throws OciError when an error occurs
|
|
610
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
666
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/DeleteProtectedDatabase.ts.html |here} to see how to use DeleteProtectedDatabase API.
|
|
611
667
|
*/
|
|
612
668
|
deleteProtectedDatabase(deleteProtectedDatabaseRequest) {
|
|
613
669
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -618,7 +674,9 @@ class DatabaseRecoveryClient {
|
|
|
618
674
|
const pathParams = {
|
|
619
675
|
"{protectedDatabaseId}": deleteProtectedDatabaseRequest.protectedDatabaseId
|
|
620
676
|
};
|
|
621
|
-
const queryParams = {
|
|
677
|
+
const queryParams = {
|
|
678
|
+
"deletionSchedule": deleteProtectedDatabaseRequest.deletionSchedule
|
|
679
|
+
};
|
|
622
680
|
let headerParams = {
|
|
623
681
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
624
682
|
"if-match": deleteProtectedDatabaseRequest.ifMatch,
|
|
@@ -669,7 +727,7 @@ class DatabaseRecoveryClient {
|
|
|
669
727
|
* @param DeleteProtectionPolicyRequest
|
|
670
728
|
* @return DeleteProtectionPolicyResponse
|
|
671
729
|
* @throws OciError when an error occurs
|
|
672
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
730
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/DeleteProtectionPolicy.ts.html |here} to see how to use DeleteProtectionPolicy API.
|
|
673
731
|
*/
|
|
674
732
|
deleteProtectionPolicy(deleteProtectionPolicyRequest) {
|
|
675
733
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -729,7 +787,7 @@ class DatabaseRecoveryClient {
|
|
|
729
787
|
* @param DeleteRecoveryServiceSubnetRequest
|
|
730
788
|
* @return DeleteRecoveryServiceSubnetResponse
|
|
731
789
|
* @throws OciError when an error occurs
|
|
732
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
790
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/DeleteRecoveryServiceSubnet.ts.html |here} to see how to use DeleteRecoveryServiceSubnet API.
|
|
733
791
|
*/
|
|
734
792
|
deleteRecoveryServiceSubnet(deleteRecoveryServiceSubnetRequest) {
|
|
735
793
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -789,7 +847,7 @@ class DatabaseRecoveryClient {
|
|
|
789
847
|
* @param FetchProtectedDatabaseConfigurationRequest
|
|
790
848
|
* @return FetchProtectedDatabaseConfigurationResponse
|
|
791
849
|
* @throws OciError when an error occurs
|
|
792
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
850
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/FetchProtectedDatabaseConfiguration.ts.html |here} to see how to use FetchProtectedDatabaseConfiguration API.
|
|
793
851
|
*/
|
|
794
852
|
fetchProtectedDatabaseConfiguration(fetchProtectedDatabaseConfigurationRequest) {
|
|
795
853
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -837,6 +895,16 @@ class DatabaseRecoveryClient {
|
|
|
837
895
|
value: response.headers.get("opc-request-id"),
|
|
838
896
|
key: "opcRequestId",
|
|
839
897
|
dataType: "string"
|
|
898
|
+
},
|
|
899
|
+
{
|
|
900
|
+
value: response.headers.get("opc-filename"),
|
|
901
|
+
key: "opcFilename",
|
|
902
|
+
dataType: "string"
|
|
903
|
+
},
|
|
904
|
+
{
|
|
905
|
+
value: response.headers.get("opc-checksum"),
|
|
906
|
+
key: "opcChecksum",
|
|
907
|
+
dataType: "string"
|
|
840
908
|
}
|
|
841
909
|
]
|
|
842
910
|
});
|
|
@@ -853,7 +921,7 @@ class DatabaseRecoveryClient {
|
|
|
853
921
|
* @param GetProtectedDatabaseRequest
|
|
854
922
|
* @return GetProtectedDatabaseResponse
|
|
855
923
|
* @throws OciError when an error occurs
|
|
856
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
924
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/GetProtectedDatabase.ts.html |here} to see how to use GetProtectedDatabase API.
|
|
857
925
|
*/
|
|
858
926
|
getProtectedDatabase(getProtectedDatabaseRequest) {
|
|
859
927
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -916,7 +984,7 @@ class DatabaseRecoveryClient {
|
|
|
916
984
|
* @param GetProtectionPolicyRequest
|
|
917
985
|
* @return GetProtectionPolicyResponse
|
|
918
986
|
* @throws OciError when an error occurs
|
|
919
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
987
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/GetProtectionPolicy.ts.html |here} to see how to use GetProtectionPolicy API.
|
|
920
988
|
*/
|
|
921
989
|
getProtectionPolicy(getProtectionPolicyRequest) {
|
|
922
990
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -979,7 +1047,7 @@ class DatabaseRecoveryClient {
|
|
|
979
1047
|
* @param GetRecoveryServiceSubnetRequest
|
|
980
1048
|
* @return GetRecoveryServiceSubnetResponse
|
|
981
1049
|
* @throws OciError when an error occurs
|
|
982
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1050
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/GetRecoveryServiceSubnet.ts.html |here} to see how to use GetRecoveryServiceSubnet API.
|
|
983
1051
|
*/
|
|
984
1052
|
getRecoveryServiceSubnet(getRecoveryServiceSubnetRequest) {
|
|
985
1053
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1042,7 +1110,7 @@ class DatabaseRecoveryClient {
|
|
|
1042
1110
|
* @param GetWorkRequestRequest
|
|
1043
1111
|
* @return GetWorkRequestResponse
|
|
1044
1112
|
* @throws OciError when an error occurs
|
|
1045
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1113
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1046
1114
|
*/
|
|
1047
1115
|
getWorkRequest(getWorkRequestRequest) {
|
|
1048
1116
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1106,7 +1174,7 @@ class DatabaseRecoveryClient {
|
|
|
1106
1174
|
* @param ListProtectedDatabasesRequest
|
|
1107
1175
|
* @return ListProtectedDatabasesResponse
|
|
1108
1176
|
* @throws OciError when an error occurs
|
|
1109
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1177
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ListProtectedDatabases.ts.html |here} to see how to use ListProtectedDatabases API.
|
|
1110
1178
|
*/
|
|
1111
1179
|
listProtectedDatabases(listProtectedDatabasesRequest) {
|
|
1112
1180
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1179,7 +1247,7 @@ class DatabaseRecoveryClient {
|
|
|
1179
1247
|
* @param ListProtectionPoliciesRequest
|
|
1180
1248
|
* @return ListProtectionPoliciesResponse
|
|
1181
1249
|
* @throws OciError when an error occurs
|
|
1182
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1250
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ListProtectionPolicies.ts.html |here} to see how to use ListProtectionPolicies API.
|
|
1183
1251
|
*/
|
|
1184
1252
|
listProtectionPolicies(listProtectionPoliciesRequest) {
|
|
1185
1253
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1251,7 +1319,7 @@ class DatabaseRecoveryClient {
|
|
|
1251
1319
|
* @param ListRecoveryServiceSubnetsRequest
|
|
1252
1320
|
* @return ListRecoveryServiceSubnetsResponse
|
|
1253
1321
|
* @throws OciError when an error occurs
|
|
1254
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1322
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ListRecoveryServiceSubnets.ts.html |here} to see how to use ListRecoveryServiceSubnets API.
|
|
1255
1323
|
*/
|
|
1256
1324
|
listRecoveryServiceSubnets(listRecoveryServiceSubnetsRequest) {
|
|
1257
1325
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1323,7 +1391,7 @@ class DatabaseRecoveryClient {
|
|
|
1323
1391
|
* @param ListWorkRequestErrorsRequest
|
|
1324
1392
|
* @return ListWorkRequestErrorsResponse
|
|
1325
1393
|
* @throws OciError when an error occurs
|
|
1326
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1394
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1327
1395
|
*/
|
|
1328
1396
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1329
1397
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1392,7 +1460,7 @@ class DatabaseRecoveryClient {
|
|
|
1392
1460
|
* @param ListWorkRequestLogsRequest
|
|
1393
1461
|
* @return ListWorkRequestLogsResponse
|
|
1394
1462
|
* @throws OciError when an error occurs
|
|
1395
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1463
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1396
1464
|
*/
|
|
1397
1465
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1398
1466
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1461,7 +1529,7 @@ class DatabaseRecoveryClient {
|
|
|
1461
1529
|
* @param ListWorkRequestsRequest
|
|
1462
1530
|
* @return ListWorkRequestsResponse
|
|
1463
1531
|
* @throws OciError when an error occurs
|
|
1464
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1532
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1465
1533
|
*/
|
|
1466
1534
|
listWorkRequests(listWorkRequestsRequest) {
|
|
1467
1535
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1525,13 +1593,77 @@ class DatabaseRecoveryClient {
|
|
|
1525
1593
|
}
|
|
1526
1594
|
});
|
|
1527
1595
|
}
|
|
1596
|
+
/**
|
|
1597
|
+
* Defines a preferred schedule to delete a protected database after you terminate the source database.
|
|
1598
|
+
* The default schedule is DELETE_AFTER_72_HOURS, so that the delete operation can occur 72 hours (3 days) after the source database is terminated.
|
|
1599
|
+
* The alternate schedule is DELETE_AFTER_RETENTION_PERIOD. Specify this option if you want to delete a protected database only after the policy-defined backup retention period expires.
|
|
1600
|
+
*
|
|
1601
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1602
|
+
* @param ScheduleProtectedDatabaseDeletionRequest
|
|
1603
|
+
* @return ScheduleProtectedDatabaseDeletionResponse
|
|
1604
|
+
* @throws OciError when an error occurs
|
|
1605
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/ScheduleProtectedDatabaseDeletion.ts.html |here} to see how to use ScheduleProtectedDatabaseDeletion API.
|
|
1606
|
+
*/
|
|
1607
|
+
scheduleProtectedDatabaseDeletion(scheduleProtectedDatabaseDeletionRequest) {
|
|
1608
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1609
|
+
if (this.logger)
|
|
1610
|
+
this.logger.debug("Calling operation DatabaseRecoveryClient#scheduleProtectedDatabaseDeletion.");
|
|
1611
|
+
const operationName = "scheduleProtectedDatabaseDeletion";
|
|
1612
|
+
const apiReferenceLink = "";
|
|
1613
|
+
const pathParams = {
|
|
1614
|
+
"{protectedDatabaseId}": scheduleProtectedDatabaseDeletionRequest.protectedDatabaseId
|
|
1615
|
+
};
|
|
1616
|
+
const queryParams = {};
|
|
1617
|
+
let headerParams = {
|
|
1618
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1619
|
+
"if-match": scheduleProtectedDatabaseDeletionRequest.ifMatch,
|
|
1620
|
+
"opc-request-id": scheduleProtectedDatabaseDeletionRequest.opcRequestId
|
|
1621
|
+
};
|
|
1622
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1623
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, scheduleProtectedDatabaseDeletionRequest.retryConfiguration, specRetryConfiguration);
|
|
1624
|
+
if (this.logger)
|
|
1625
|
+
retrier.logger = this.logger;
|
|
1626
|
+
const request = yield oci_common_1.composeRequest({
|
|
1627
|
+
baseEndpoint: this._endpoint,
|
|
1628
|
+
defaultHeaders: this._defaultHeaders,
|
|
1629
|
+
path: "/protectedDatabases/{protectedDatabaseId}/actions/scheduleDeletion",
|
|
1630
|
+
method: "POST",
|
|
1631
|
+
bodyContent: common.ObjectSerializer.serialize(scheduleProtectedDatabaseDeletionRequest.scheduleProtectedDatabaseDeletionDetails, "ScheduleProtectedDatabaseDeletionDetails", model.ScheduleProtectedDatabaseDeletionDetails.getJsonObj),
|
|
1632
|
+
pathParams: pathParams,
|
|
1633
|
+
headerParams: headerParams,
|
|
1634
|
+
queryParams: queryParams
|
|
1635
|
+
});
|
|
1636
|
+
try {
|
|
1637
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1638
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1639
|
+
responseObject: {},
|
|
1640
|
+
responseHeaders: [
|
|
1641
|
+
{
|
|
1642
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1643
|
+
key: "opcWorkRequestId",
|
|
1644
|
+
dataType: "string"
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
value: response.headers.get("opc-request-id"),
|
|
1648
|
+
key: "opcRequestId",
|
|
1649
|
+
dataType: "string"
|
|
1650
|
+
}
|
|
1651
|
+
]
|
|
1652
|
+
});
|
|
1653
|
+
return sdkResponse;
|
|
1654
|
+
}
|
|
1655
|
+
catch (err) {
|
|
1656
|
+
throw err;
|
|
1657
|
+
}
|
|
1658
|
+
});
|
|
1659
|
+
}
|
|
1528
1660
|
/**
|
|
1529
1661
|
* Updates the Protected Database
|
|
1530
1662
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1531
1663
|
* @param UpdateProtectedDatabaseRequest
|
|
1532
1664
|
* @return UpdateProtectedDatabaseResponse
|
|
1533
1665
|
* @throws OciError when an error occurs
|
|
1534
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1666
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/UpdateProtectedDatabase.ts.html |here} to see how to use UpdateProtectedDatabase API.
|
|
1535
1667
|
*/
|
|
1536
1668
|
updateProtectedDatabase(updateProtectedDatabaseRequest) {
|
|
1537
1669
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1592,7 +1724,7 @@ class DatabaseRecoveryClient {
|
|
|
1592
1724
|
* @param UpdateProtectionPolicyRequest
|
|
1593
1725
|
* @return UpdateProtectionPolicyResponse
|
|
1594
1726
|
* @throws OciError when an error occurs
|
|
1595
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1727
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/UpdateProtectionPolicy.ts.html |here} to see how to use UpdateProtectionPolicy API.
|
|
1596
1728
|
*/
|
|
1597
1729
|
updateProtectionPolicy(updateProtectionPolicyRequest) {
|
|
1598
1730
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1653,7 +1785,7 @@ class DatabaseRecoveryClient {
|
|
|
1653
1785
|
* @param UpdateRecoveryServiceSubnetRequest
|
|
1654
1786
|
* @return UpdateRecoveryServiceSubnetResponse
|
|
1655
1787
|
* @throws OciError when an error occurs
|
|
1656
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1788
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.86.2/recovery/UpdateRecoveryServiceSubnet.ts.html |here} to see how to use UpdateRecoveryServiceSubnet API.
|
|
1657
1789
|
*/
|
|
1658
1790
|
updateRecoveryServiceSubnet(updateRecoveryServiceSubnetRequest) {
|
|
1659
1791
|
return __awaiter(this, void 0, void 0, function* () {
|