oci-databasemigration 2.89.3 → 2.90.0-1722272724
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 +99 -36
- package/lib/client.js +432 -36
- package/lib/client.js.map +1 -1
- package/lib/model/create-parameter-file-version-details.d.ts +39 -0
- package/lib/model/create-parameter-file-version-details.js +29 -0
- package/lib/model/create-parameter-file-version-details.js.map +1 -0
- package/lib/model/data-pump-tablespace-block-sizes-in-kb.d.ts +2 -0
- package/lib/model/data-pump-tablespace-block-sizes-in-kb.js +2 -0
- package/lib/model/data-pump-tablespace-block-sizes-in-kb.js.map +1 -1
- package/lib/model/index.d.ts +10 -0
- package/lib/model/index.js +15 -5
- package/lib/model/index.js.map +1 -1
- package/lib/model/job-parameter-file-version-kind.d.ts +28 -0
- package/lib/model/job-parameter-file-version-kind.js +39 -0
- package/lib/model/job-parameter-file-version-kind.js.map +1 -0
- package/lib/model/job.d.ts +5 -0
- package/lib/model/job.js +10 -0
- package/lib/model/job.js.map +1 -1
- package/lib/model/parameter-file-version-collection.d.ts +26 -0
- package/lib/model/parameter-file-version-collection.js +61 -0
- package/lib/model/parameter-file-version-collection.js.map +1 -0
- package/lib/model/parameter-file-version-summary.d.ts +75 -0
- package/lib/model/parameter-file-version-summary.js +29 -0
- package/lib/model/parameter-file-version-summary.js.map +1 -0
- package/lib/model/parameter-file-version.d.ts +51 -0
- package/lib/model/parameter-file-version.js +29 -0
- package/lib/model/parameter-file-version.js.map +1 -0
- package/lib/model/phase-status.d.ts +19 -0
- package/lib/model/phase-status.js +10 -0
- package/lib/model/phase-status.js.map +1 -1
- package/lib/request/abort-job-request.d.ts +1 -1
- package/lib/request/add-migration-objects-request.d.ts +1 -1
- package/lib/request/change-connection-compartment-request.d.ts +1 -1
- package/lib/request/change-migration-compartment-request.d.ts +1 -1
- package/lib/request/clone-migration-request.d.ts +1 -1
- package/lib/request/connection-diagnostics-request.d.ts +1 -1
- package/lib/request/create-connection-request.d.ts +1 -1
- package/lib/request/create-migration-request.d.ts +1 -1
- package/lib/request/create-parameter-file-version-request.d.ts +53 -0
- package/lib/request/create-parameter-file-version-request.js +15 -0
- package/lib/request/create-parameter-file-version-request.js.map +1 -0
- package/lib/request/delete-connection-request.d.ts +1 -1
- package/lib/request/delete-job-request.d.ts +1 -1
- package/lib/request/delete-migration-request.d.ts +1 -1
- package/lib/request/delete-parameter-file-version-request.d.ts +43 -0
- package/lib/request/delete-parameter-file-version-request.js +15 -0
- package/lib/request/delete-parameter-file-version-request.js.map +1 -0
- package/lib/request/evaluate-migration-request.d.ts +1 -1
- package/lib/request/get-advisor-report-request.d.ts +1 -1
- package/lib/request/get-connection-request.d.ts +1 -1
- package/lib/request/get-job-output-content-request.d.ts +1 -1
- package/lib/request/get-job-request.d.ts +1 -1
- package/lib/request/get-migration-request.d.ts +1 -1
- package/lib/request/get-parameter-file-version-request.d.ts +34 -0
- package/lib/request/get-parameter-file-version-request.js +15 -0
- package/lib/request/get-parameter-file-version-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/index.d.ts +12 -0
- package/lib/request/index.js +3 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-connections-request.d.ts +1 -1
- package/lib/request/list-excluded-objects-request.d.ts +1 -1
- package/lib/request/list-job-outputs-request.d.ts +1 -1
- package/lib/request/list-jobs-request.d.ts +1 -1
- package/lib/request/list-migration-object-types-request.d.ts +1 -1
- package/lib/request/list-migration-objects-request.d.ts +1 -1
- package/lib/request/list-migration-parameters-request.d.ts +1 -1
- package/lib/request/list-migrations-request.d.ts +1 -1
- package/lib/request/list-parameter-file-versions-request.d.ts +62 -0
- package/lib/request/list-parameter-file-versions-request.js +24 -0
- package/lib/request/list-parameter-file-versions-request.js.map +1 -0
- 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/make-current-parameter-file-version-request.d.ts +52 -0
- package/lib/request/make-current-parameter-file-version-request.js +15 -0
- package/lib/request/make-current-parameter-file-version-request.js.map +1 -0
- package/lib/request/remove-migration-objects-request.d.ts +1 -1
- package/lib/request/resume-job-request.d.ts +1 -1
- package/lib/request/retrieve-supported-phases-request.d.ts +1 -1
- package/lib/request/start-migration-request.d.ts +1 -1
- package/lib/request/suspend-job-request.d.ts +47 -0
- package/lib/request/suspend-job-request.js +15 -0
- package/lib/request/suspend-job-request.js.map +1 -0
- package/lib/request/update-connection-request.d.ts +1 -1
- package/lib/request/update-job-request.d.ts +1 -1
- package/lib/request/update-migration-request.d.ts +1 -1
- package/lib/response/create-parameter-file-version-response.d.ts +25 -0
- package/lib/response/create-parameter-file-version-response.js +15 -0
- package/lib/response/create-parameter-file-version-response.js.map +1 -0
- package/lib/response/delete-parameter-file-version-response.d.ts +25 -0
- package/lib/response/delete-parameter-file-version-response.js +15 -0
- package/lib/response/delete-parameter-file-version-response.js.map +1 -0
- package/lib/response/get-parameter-file-version-response.d.ts +30 -0
- package/lib/response/get-parameter-file-version-response.js +15 -0
- package/lib/response/get-parameter-file-version-response.js.map +1 -0
- package/lib/response/index.d.ts +12 -0
- package/lib/response/list-parameter-file-versions-response.d.ts +32 -0
- package/lib/response/list-parameter-file-versions-response.js +15 -0
- package/lib/response/list-parameter-file-versions-response.js.map +1 -0
- package/lib/response/make-current-parameter-file-version-response.d.ts +30 -0
- package/lib/response/make-current-parameter-file-version-response.js +15 -0
- package/lib/response/make-current-parameter-file-version-response.js.map +1 -0
- package/lib/response/suspend-job-response.d.ts +30 -0
- package/lib/response/suspend-job-response.js +15 -0
- package/lib/response/suspend-job-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -203,7 +203,7 @@ class DatabaseMigrationClient {
|
|
|
203
203
|
* @param AbortJobRequest
|
|
204
204
|
* @return AbortJobResponse
|
|
205
205
|
* @throws OciError when an error occurs
|
|
206
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
206
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/AbortJob.ts.html |here} to see how to use AbortJob API.
|
|
207
207
|
*/
|
|
208
208
|
abortJob(abortJobRequest) {
|
|
209
209
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -269,7 +269,7 @@ class DatabaseMigrationClient {
|
|
|
269
269
|
* @param AddMigrationObjectsRequest
|
|
270
270
|
* @return AddMigrationObjectsResponse
|
|
271
271
|
* @throws OciError when an error occurs
|
|
272
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
272
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/AddMigrationObjects.ts.html |here} to see how to use AddMigrationObjects API.
|
|
273
273
|
*/
|
|
274
274
|
addMigrationObjects(addMigrationObjectsRequest) {
|
|
275
275
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -326,7 +326,7 @@ class DatabaseMigrationClient {
|
|
|
326
326
|
* @param ChangeConnectionCompartmentRequest
|
|
327
327
|
* @return ChangeConnectionCompartmentResponse
|
|
328
328
|
* @throws OciError when an error occurs
|
|
329
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
329
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ChangeConnectionCompartment.ts.html |here} to see how to use ChangeConnectionCompartment API.
|
|
330
330
|
*/
|
|
331
331
|
changeConnectionCompartment(changeConnectionCompartmentRequest) {
|
|
332
332
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -384,7 +384,7 @@ class DatabaseMigrationClient {
|
|
|
384
384
|
* @param ChangeMigrationCompartmentRequest
|
|
385
385
|
* @return ChangeMigrationCompartmentResponse
|
|
386
386
|
* @throws OciError when an error occurs
|
|
387
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
387
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ChangeMigrationCompartment.ts.html |here} to see how to use ChangeMigrationCompartment API.
|
|
388
388
|
*/
|
|
389
389
|
changeMigrationCompartment(changeMigrationCompartmentRequest) {
|
|
390
390
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -442,7 +442,7 @@ class DatabaseMigrationClient {
|
|
|
442
442
|
* @param CloneMigrationRequest
|
|
443
443
|
* @return CloneMigrationResponse
|
|
444
444
|
* @throws OciError when an error occurs
|
|
445
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
445
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/CloneMigration.ts.html |here} to see how to use CloneMigration API.
|
|
446
446
|
*/
|
|
447
447
|
cloneMigration(cloneMigrationRequest) {
|
|
448
448
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -514,7 +514,7 @@ class DatabaseMigrationClient {
|
|
|
514
514
|
* @param ConnectionDiagnosticsRequest
|
|
515
515
|
* @return ConnectionDiagnosticsResponse
|
|
516
516
|
* @throws OciError when an error occurs
|
|
517
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
517
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ConnectionDiagnostics.ts.html |here} to see how to use ConnectionDiagnostics API.
|
|
518
518
|
*/
|
|
519
519
|
connectionDiagnostics(connectionDiagnosticsRequest) {
|
|
520
520
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -581,7 +581,7 @@ class DatabaseMigrationClient {
|
|
|
581
581
|
* @param CreateConnectionRequest
|
|
582
582
|
* @return CreateConnectionResponse
|
|
583
583
|
* @throws OciError when an error occurs
|
|
584
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
584
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/CreateConnection.ts.html |here} to see how to use CreateConnection API.
|
|
585
585
|
*/
|
|
586
586
|
createConnection(createConnectionRequest) {
|
|
587
587
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -652,7 +652,7 @@ class DatabaseMigrationClient {
|
|
|
652
652
|
* @param CreateMigrationRequest
|
|
653
653
|
* @return CreateMigrationResponse
|
|
654
654
|
* @throws OciError when an error occurs
|
|
655
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
655
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/CreateMigration.ts.html |here} to see how to use CreateMigration API.
|
|
656
656
|
*/
|
|
657
657
|
createMigration(createMigrationRequest) {
|
|
658
658
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -714,6 +714,69 @@ class DatabaseMigrationClient {
|
|
|
714
714
|
}
|
|
715
715
|
});
|
|
716
716
|
}
|
|
717
|
+
/**
|
|
718
|
+
* Creates a new version of the current parameter file contents to the specified value.
|
|
719
|
+
*
|
|
720
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
721
|
+
* @param CreateParameterFileVersionRequest
|
|
722
|
+
* @return CreateParameterFileVersionResponse
|
|
723
|
+
* @throws OciError when an error occurs
|
|
724
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/CreateParameterFileVersion.ts.html |here} to see how to use CreateParameterFileVersion API.
|
|
725
|
+
*/
|
|
726
|
+
createParameterFileVersion(createParameterFileVersionRequest) {
|
|
727
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
728
|
+
if (this.logger)
|
|
729
|
+
this.logger.debug("Calling operation DatabaseMigrationClient#createParameterFileVersion.");
|
|
730
|
+
const operationName = "createParameterFileVersion";
|
|
731
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/CreateParameterFileVersion";
|
|
732
|
+
const pathParams = {
|
|
733
|
+
"{jobId}": createParameterFileVersionRequest.jobId
|
|
734
|
+
};
|
|
735
|
+
const queryParams = {};
|
|
736
|
+
let headerParams = {
|
|
737
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
738
|
+
"if-match": createParameterFileVersionRequest.ifMatch,
|
|
739
|
+
"opc-retry-token": createParameterFileVersionRequest.opcRetryToken,
|
|
740
|
+
"opc-request-id": createParameterFileVersionRequest.opcRequestId
|
|
741
|
+
};
|
|
742
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
743
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createParameterFileVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
744
|
+
if (this.logger)
|
|
745
|
+
retrier.logger = this.logger;
|
|
746
|
+
const request = yield oci_common_1.composeRequest({
|
|
747
|
+
baseEndpoint: this._endpoint,
|
|
748
|
+
defaultHeaders: this._defaultHeaders,
|
|
749
|
+
path: "/jobs/{jobId}/parameterFileVersions",
|
|
750
|
+
method: "POST",
|
|
751
|
+
bodyContent: common.ObjectSerializer.serialize(createParameterFileVersionRequest.createParameterFileVersionDetails, "CreateParameterFileVersionDetails", model.CreateParameterFileVersionDetails.getJsonObj),
|
|
752
|
+
pathParams: pathParams,
|
|
753
|
+
headerParams: headerParams,
|
|
754
|
+
queryParams: queryParams
|
|
755
|
+
});
|
|
756
|
+
try {
|
|
757
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
758
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
759
|
+
responseObject: {},
|
|
760
|
+
responseHeaders: [
|
|
761
|
+
{
|
|
762
|
+
value: response.headers.get("opc-request-id"),
|
|
763
|
+
key: "opcRequestId",
|
|
764
|
+
dataType: "string"
|
|
765
|
+
},
|
|
766
|
+
{
|
|
767
|
+
value: response.headers.get("opc-work-request-id"),
|
|
768
|
+
key: "opcWorkRequestId",
|
|
769
|
+
dataType: "string"
|
|
770
|
+
}
|
|
771
|
+
]
|
|
772
|
+
});
|
|
773
|
+
return sdkResponse;
|
|
774
|
+
}
|
|
775
|
+
catch (err) {
|
|
776
|
+
throw err;
|
|
777
|
+
}
|
|
778
|
+
});
|
|
779
|
+
}
|
|
717
780
|
/**
|
|
718
781
|
* Deletes the Database Connection represented by the specified connection ID.
|
|
719
782
|
*
|
|
@@ -721,7 +784,7 @@ class DatabaseMigrationClient {
|
|
|
721
784
|
* @param DeleteConnectionRequest
|
|
722
785
|
* @return DeleteConnectionResponse
|
|
723
786
|
* @throws OciError when an error occurs
|
|
724
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
787
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/DeleteConnection.ts.html |here} to see how to use DeleteConnection API.
|
|
725
788
|
*/
|
|
726
789
|
deleteConnection(deleteConnectionRequest) {
|
|
727
790
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -782,7 +845,7 @@ class DatabaseMigrationClient {
|
|
|
782
845
|
* @param DeleteJobRequest
|
|
783
846
|
* @return DeleteJobResponse
|
|
784
847
|
* @throws OciError when an error occurs
|
|
785
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
848
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/DeleteJob.ts.html |here} to see how to use DeleteJob API.
|
|
786
849
|
*/
|
|
787
850
|
deleteJob(deleteJobRequest) {
|
|
788
851
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -838,7 +901,7 @@ class DatabaseMigrationClient {
|
|
|
838
901
|
* @param DeleteMigrationRequest
|
|
839
902
|
* @return DeleteMigrationResponse
|
|
840
903
|
* @throws OciError when an error occurs
|
|
841
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
904
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/DeleteMigration.ts.html |here} to see how to use DeleteMigration API.
|
|
842
905
|
*/
|
|
843
906
|
deleteMigration(deleteMigrationRequest) {
|
|
844
907
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -892,6 +955,68 @@ class DatabaseMigrationClient {
|
|
|
892
955
|
}
|
|
893
956
|
});
|
|
894
957
|
}
|
|
958
|
+
/**
|
|
959
|
+
* Deletes the given parameter file version
|
|
960
|
+
*
|
|
961
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
962
|
+
* @param DeleteParameterFileVersionRequest
|
|
963
|
+
* @return DeleteParameterFileVersionResponse
|
|
964
|
+
* @throws OciError when an error occurs
|
|
965
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/DeleteParameterFileVersion.ts.html |here} to see how to use DeleteParameterFileVersion API.
|
|
966
|
+
*/
|
|
967
|
+
deleteParameterFileVersion(deleteParameterFileVersionRequest) {
|
|
968
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
969
|
+
if (this.logger)
|
|
970
|
+
this.logger.debug("Calling operation DatabaseMigrationClient#deleteParameterFileVersion.");
|
|
971
|
+
const operationName = "deleteParameterFileVersion";
|
|
972
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/DeleteParameterFileVersion";
|
|
973
|
+
const pathParams = {
|
|
974
|
+
"{jobId}": deleteParameterFileVersionRequest.jobId,
|
|
975
|
+
"{parameterFileName}": deleteParameterFileVersionRequest.parameterFileName
|
|
976
|
+
};
|
|
977
|
+
const queryParams = {};
|
|
978
|
+
let headerParams = {
|
|
979
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
980
|
+
"opc-request-id": deleteParameterFileVersionRequest.opcRequestId,
|
|
981
|
+
"if-match": deleteParameterFileVersionRequest.ifMatch
|
|
982
|
+
};
|
|
983
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
984
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteParameterFileVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
985
|
+
if (this.logger)
|
|
986
|
+
retrier.logger = this.logger;
|
|
987
|
+
const request = yield oci_common_1.composeRequest({
|
|
988
|
+
baseEndpoint: this._endpoint,
|
|
989
|
+
defaultHeaders: this._defaultHeaders,
|
|
990
|
+
path: "/jobs/{jobId}/parameterFileVersions/{parameterFileName}",
|
|
991
|
+
method: "DELETE",
|
|
992
|
+
pathParams: pathParams,
|
|
993
|
+
headerParams: headerParams,
|
|
994
|
+
queryParams: queryParams
|
|
995
|
+
});
|
|
996
|
+
try {
|
|
997
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
998
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
999
|
+
responseObject: {},
|
|
1000
|
+
responseHeaders: [
|
|
1001
|
+
{
|
|
1002
|
+
value: response.headers.get("opc-request-id"),
|
|
1003
|
+
key: "opcRequestId",
|
|
1004
|
+
dataType: "string"
|
|
1005
|
+
},
|
|
1006
|
+
{
|
|
1007
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1008
|
+
key: "opcWorkRequestId",
|
|
1009
|
+
dataType: "string"
|
|
1010
|
+
}
|
|
1011
|
+
]
|
|
1012
|
+
});
|
|
1013
|
+
return sdkResponse;
|
|
1014
|
+
}
|
|
1015
|
+
catch (err) {
|
|
1016
|
+
throw err;
|
|
1017
|
+
}
|
|
1018
|
+
});
|
|
1019
|
+
}
|
|
895
1020
|
/**
|
|
896
1021
|
* Start Validate Migration job.
|
|
897
1022
|
*
|
|
@@ -899,7 +1024,7 @@ class DatabaseMigrationClient {
|
|
|
899
1024
|
* @param EvaluateMigrationRequest
|
|
900
1025
|
* @return EvaluateMigrationResponse
|
|
901
1026
|
* @throws OciError when an error occurs
|
|
902
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
1027
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/EvaluateMigration.ts.html |here} to see how to use EvaluateMigration API.
|
|
903
1028
|
*/
|
|
904
1029
|
evaluateMigration(evaluateMigrationRequest) {
|
|
905
1030
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -970,7 +1095,7 @@ class DatabaseMigrationClient {
|
|
|
970
1095
|
* @param GetAdvisorReportRequest
|
|
971
1096
|
* @return GetAdvisorReportResponse
|
|
972
1097
|
* @throws OciError when an error occurs
|
|
973
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
1098
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/GetAdvisorReport.ts.html |here} to see how to use GetAdvisorReport API.
|
|
974
1099
|
*/
|
|
975
1100
|
getAdvisorReport(getAdvisorReportRequest) {
|
|
976
1101
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1034,7 +1159,7 @@ class DatabaseMigrationClient {
|
|
|
1034
1159
|
* @param GetConnectionRequest
|
|
1035
1160
|
* @return GetConnectionResponse
|
|
1036
1161
|
* @throws OciError when an error occurs
|
|
1037
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
1162
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/GetConnection.ts.html |here} to see how to use GetConnection API.
|
|
1038
1163
|
*/
|
|
1039
1164
|
getConnection(getConnectionRequest) {
|
|
1040
1165
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1098,7 +1223,7 @@ class DatabaseMigrationClient {
|
|
|
1098
1223
|
* @param GetJobRequest
|
|
1099
1224
|
* @return GetJobResponse
|
|
1100
1225
|
* @throws OciError when an error occurs
|
|
1101
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
1226
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/GetJob.ts.html |here} to see how to use GetJob API.
|
|
1102
1227
|
*/
|
|
1103
1228
|
getJob(getJobRequest) {
|
|
1104
1229
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1162,7 +1287,7 @@ class DatabaseMigrationClient {
|
|
|
1162
1287
|
* @param GetJobOutputContentRequest
|
|
1163
1288
|
* @return GetJobOutputContentResponse
|
|
1164
1289
|
* @throws OciError when an error occurs
|
|
1165
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
1290
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/GetJobOutputContent.ts.html |here} to see how to use GetJobOutputContent API.
|
|
1166
1291
|
*/
|
|
1167
1292
|
getJobOutputContent(getJobOutputContentRequest) {
|
|
1168
1293
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1220,7 +1345,7 @@ class DatabaseMigrationClient {
|
|
|
1220
1345
|
* @param GetMigrationRequest
|
|
1221
1346
|
* @return GetMigrationResponse
|
|
1222
1347
|
* @throws OciError when an error occurs
|
|
1223
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
1348
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/GetMigration.ts.html |here} to see how to use GetMigration API.
|
|
1224
1349
|
*/
|
|
1225
1350
|
getMigration(getMigrationRequest) {
|
|
1226
1351
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1278,6 +1403,72 @@ class DatabaseMigrationClient {
|
|
|
1278
1403
|
}
|
|
1279
1404
|
});
|
|
1280
1405
|
}
|
|
1406
|
+
/**
|
|
1407
|
+
* Obtain the parameter file version contents for the specified parameter file name and the associated job. This operation will
|
|
1408
|
+
* be allowed only if the job is certain acceptable lifecycle states.
|
|
1409
|
+
*
|
|
1410
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1411
|
+
* @param GetParameterFileVersionRequest
|
|
1412
|
+
* @return GetParameterFileVersionResponse
|
|
1413
|
+
* @throws OciError when an error occurs
|
|
1414
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/GetParameterFileVersion.ts.html |here} to see how to use GetParameterFileVersion API.
|
|
1415
|
+
*/
|
|
1416
|
+
getParameterFileVersion(getParameterFileVersionRequest) {
|
|
1417
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1418
|
+
if (this.logger)
|
|
1419
|
+
this.logger.debug("Calling operation DatabaseMigrationClient#getParameterFileVersion.");
|
|
1420
|
+
const operationName = "getParameterFileVersion";
|
|
1421
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/GetParameterFileVersion";
|
|
1422
|
+
const pathParams = {
|
|
1423
|
+
"{parameterFileName}": getParameterFileVersionRequest.parameterFileName,
|
|
1424
|
+
"{jobId}": getParameterFileVersionRequest.jobId
|
|
1425
|
+
};
|
|
1426
|
+
const queryParams = {};
|
|
1427
|
+
let headerParams = {
|
|
1428
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1429
|
+
"opc-request-id": getParameterFileVersionRequest.opcRequestId
|
|
1430
|
+
};
|
|
1431
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1432
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getParameterFileVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
1433
|
+
if (this.logger)
|
|
1434
|
+
retrier.logger = this.logger;
|
|
1435
|
+
const request = yield oci_common_1.composeRequest({
|
|
1436
|
+
baseEndpoint: this._endpoint,
|
|
1437
|
+
defaultHeaders: this._defaultHeaders,
|
|
1438
|
+
path: "/jobs/{jobId}/parameterFileVersions/{parameterFileName}",
|
|
1439
|
+
method: "GET",
|
|
1440
|
+
pathParams: pathParams,
|
|
1441
|
+
headerParams: headerParams,
|
|
1442
|
+
queryParams: queryParams
|
|
1443
|
+
});
|
|
1444
|
+
try {
|
|
1445
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1446
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1447
|
+
responseObject: {},
|
|
1448
|
+
body: yield response.json(),
|
|
1449
|
+
bodyKey: "parameterFileVersion",
|
|
1450
|
+
bodyModel: model.ParameterFileVersion,
|
|
1451
|
+
type: "model.ParameterFileVersion",
|
|
1452
|
+
responseHeaders: [
|
|
1453
|
+
{
|
|
1454
|
+
value: response.headers.get("opc-request-id"),
|
|
1455
|
+
key: "opcRequestId",
|
|
1456
|
+
dataType: "string"
|
|
1457
|
+
},
|
|
1458
|
+
{
|
|
1459
|
+
value: response.headers.get("etag"),
|
|
1460
|
+
key: "etag",
|
|
1461
|
+
dataType: "string"
|
|
1462
|
+
}
|
|
1463
|
+
]
|
|
1464
|
+
});
|
|
1465
|
+
return sdkResponse;
|
|
1466
|
+
}
|
|
1467
|
+
catch (err) {
|
|
1468
|
+
throw err;
|
|
1469
|
+
}
|
|
1470
|
+
});
|
|
1471
|
+
}
|
|
1281
1472
|
/**
|
|
1282
1473
|
* Gets the details of a work request.
|
|
1283
1474
|
*
|
|
@@ -1285,7 +1476,7 @@ class DatabaseMigrationClient {
|
|
|
1285
1476
|
* @param GetWorkRequestRequest
|
|
1286
1477
|
* @return GetWorkRequestResponse
|
|
1287
1478
|
* @throws OciError when an error occurs
|
|
1288
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
1479
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1289
1480
|
*/
|
|
1290
1481
|
getWorkRequest(getWorkRequestRequest) {
|
|
1291
1482
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1344,7 +1535,7 @@ class DatabaseMigrationClient {
|
|
|
1344
1535
|
* @param ListConnectionsRequest
|
|
1345
1536
|
* @return ListConnectionsResponse
|
|
1346
1537
|
* @throws OciError when an error occurs
|
|
1347
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
1538
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ListConnections.ts.html |here} to see how to use ListConnections API.
|
|
1348
1539
|
*/
|
|
1349
1540
|
listConnections(listConnectionsRequest) {
|
|
1350
1541
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1417,7 +1608,7 @@ class DatabaseMigrationClient {
|
|
|
1417
1608
|
* @param ListExcludedObjectsRequest
|
|
1418
1609
|
* @return ListExcludedObjectsResponse
|
|
1419
1610
|
* @throws OciError when an error occurs
|
|
1420
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
1611
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ListExcludedObjects.ts.html |here} to see how to use ListExcludedObjects API.
|
|
1421
1612
|
*/
|
|
1422
1613
|
listExcludedObjects(listExcludedObjectsRequest) {
|
|
1423
1614
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1493,7 +1684,7 @@ class DatabaseMigrationClient {
|
|
|
1493
1684
|
* @param ListJobOutputsRequest
|
|
1494
1685
|
* @return ListJobOutputsResponse
|
|
1495
1686
|
* @throws OciError when an error occurs
|
|
1496
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
1687
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ListJobOutputs.ts.html |here} to see how to use ListJobOutputs API.
|
|
1497
1688
|
*/
|
|
1498
1689
|
listJobOutputs(listJobOutputsRequest) {
|
|
1499
1690
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1561,7 +1752,7 @@ class DatabaseMigrationClient {
|
|
|
1561
1752
|
* @param ListJobsRequest
|
|
1562
1753
|
* @return ListJobsResponse
|
|
1563
1754
|
* @throws OciError when an error occurs
|
|
1564
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
1755
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ListJobs.ts.html |here} to see how to use ListJobs API.
|
|
1565
1756
|
*/
|
|
1566
1757
|
listJobs(listJobsRequest) {
|
|
1567
1758
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1631,7 +1822,7 @@ class DatabaseMigrationClient {
|
|
|
1631
1822
|
* @param ListMigrationObjectTypesRequest
|
|
1632
1823
|
* @return ListMigrationObjectTypesResponse
|
|
1633
1824
|
* @throws OciError when an error occurs
|
|
1634
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
1825
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ListMigrationObjectTypes.ts.html |here} to see how to use ListMigrationObjectTypes API.
|
|
1635
1826
|
*/
|
|
1636
1827
|
listMigrationObjectTypes(listMigrationObjectTypesRequest) {
|
|
1637
1828
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1699,7 +1890,7 @@ class DatabaseMigrationClient {
|
|
|
1699
1890
|
* @param ListMigrationObjectsRequest
|
|
1700
1891
|
* @return ListMigrationObjectsResponse
|
|
1701
1892
|
* @throws OciError when an error occurs
|
|
1702
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
1893
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ListMigrationObjects.ts.html |here} to see how to use ListMigrationObjects API.
|
|
1703
1894
|
*/
|
|
1704
1895
|
listMigrationObjects(listMigrationObjectsRequest) {
|
|
1705
1896
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1766,7 +1957,7 @@ class DatabaseMigrationClient {
|
|
|
1766
1957
|
* @param ListMigrationParametersRequest
|
|
1767
1958
|
* @return ListMigrationParametersResponse
|
|
1768
1959
|
* @throws OciError when an error occurs
|
|
1769
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
1960
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ListMigrationParameters.ts.html |here} to see how to use ListMigrationParameters API.
|
|
1770
1961
|
*/
|
|
1771
1962
|
listMigrationParameters(listMigrationParametersRequest) {
|
|
1772
1963
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1835,7 +2026,7 @@ class DatabaseMigrationClient {
|
|
|
1835
2026
|
* @param ListMigrationsRequest
|
|
1836
2027
|
* @return ListMigrationsResponse
|
|
1837
2028
|
* @throws OciError when an error occurs
|
|
1838
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
2029
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ListMigrations.ts.html |here} to see how to use ListMigrations API.
|
|
1839
2030
|
*/
|
|
1840
2031
|
listMigrations(listMigrationsRequest) {
|
|
1841
2032
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1899,6 +2090,78 @@ class DatabaseMigrationClient {
|
|
|
1899
2090
|
}
|
|
1900
2091
|
});
|
|
1901
2092
|
}
|
|
2093
|
+
/**
|
|
2094
|
+
* Return a list of the parameter file metadata of the migration execution of the specified job. This will
|
|
2095
|
+
* only be acceptable if the job is in particular state. It will be accessible if the job is in
|
|
2096
|
+
* the FAILED, PAUSED or SUSPENDED state.
|
|
2097
|
+
*
|
|
2098
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2099
|
+
* @param ListParameterFileVersionsRequest
|
|
2100
|
+
* @return ListParameterFileVersionsResponse
|
|
2101
|
+
* @throws OciError when an error occurs
|
|
2102
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ListParameterFileVersions.ts.html |here} to see how to use ListParameterFileVersions API.
|
|
2103
|
+
*/
|
|
2104
|
+
listParameterFileVersions(listParameterFileVersionsRequest) {
|
|
2105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2106
|
+
if (this.logger)
|
|
2107
|
+
this.logger.debug("Calling operation DatabaseMigrationClient#listParameterFileVersions.");
|
|
2108
|
+
const operationName = "listParameterFileVersions";
|
|
2109
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/ListParameterFileVersions";
|
|
2110
|
+
const pathParams = {
|
|
2111
|
+
"{jobId}": listParameterFileVersionsRequest.jobId
|
|
2112
|
+
};
|
|
2113
|
+
const queryParams = {
|
|
2114
|
+
"name": listParameterFileVersionsRequest.name,
|
|
2115
|
+
"limit": listParameterFileVersionsRequest.limit,
|
|
2116
|
+
"page": listParameterFileVersionsRequest.page,
|
|
2117
|
+
"sortBy": listParameterFileVersionsRequest.sortBy,
|
|
2118
|
+
"sortOrder": listParameterFileVersionsRequest.sortOrder
|
|
2119
|
+
};
|
|
2120
|
+
let headerParams = {
|
|
2121
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2122
|
+
"opc-request-id": listParameterFileVersionsRequest.opcRequestId
|
|
2123
|
+
};
|
|
2124
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2125
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listParameterFileVersionsRequest.retryConfiguration, specRetryConfiguration);
|
|
2126
|
+
if (this.logger)
|
|
2127
|
+
retrier.logger = this.logger;
|
|
2128
|
+
const request = yield oci_common_1.composeRequest({
|
|
2129
|
+
baseEndpoint: this._endpoint,
|
|
2130
|
+
defaultHeaders: this._defaultHeaders,
|
|
2131
|
+
path: "/jobs/{jobId}/parameterFileVersions",
|
|
2132
|
+
method: "GET",
|
|
2133
|
+
pathParams: pathParams,
|
|
2134
|
+
headerParams: headerParams,
|
|
2135
|
+
queryParams: queryParams
|
|
2136
|
+
});
|
|
2137
|
+
try {
|
|
2138
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2139
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2140
|
+
responseObject: {},
|
|
2141
|
+
body: yield response.json(),
|
|
2142
|
+
bodyKey: "parameterFileVersionCollection",
|
|
2143
|
+
bodyModel: model.ParameterFileVersionCollection,
|
|
2144
|
+
type: "model.ParameterFileVersionCollection",
|
|
2145
|
+
responseHeaders: [
|
|
2146
|
+
{
|
|
2147
|
+
value: response.headers.get("opc-request-id"),
|
|
2148
|
+
key: "opcRequestId",
|
|
2149
|
+
dataType: "string"
|
|
2150
|
+
},
|
|
2151
|
+
{
|
|
2152
|
+
value: response.headers.get("opc-next-page"),
|
|
2153
|
+
key: "opcNextPage",
|
|
2154
|
+
dataType: "string"
|
|
2155
|
+
}
|
|
2156
|
+
]
|
|
2157
|
+
});
|
|
2158
|
+
return sdkResponse;
|
|
2159
|
+
}
|
|
2160
|
+
catch (err) {
|
|
2161
|
+
throw err;
|
|
2162
|
+
}
|
|
2163
|
+
});
|
|
2164
|
+
}
|
|
1902
2165
|
/**
|
|
1903
2166
|
* Gets the errors for a work request.
|
|
1904
2167
|
*
|
|
@@ -1906,7 +2169,7 @@ class DatabaseMigrationClient {
|
|
|
1906
2169
|
* @param ListWorkRequestErrorsRequest
|
|
1907
2170
|
* @return ListWorkRequestErrorsResponse
|
|
1908
2171
|
* @throws OciError when an error occurs
|
|
1909
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
2172
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1910
2173
|
*/
|
|
1911
2174
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1912
2175
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1975,7 +2238,7 @@ class DatabaseMigrationClient {
|
|
|
1975
2238
|
* @param ListWorkRequestLogsRequest
|
|
1976
2239
|
* @return ListWorkRequestLogsResponse
|
|
1977
2240
|
* @throws OciError when an error occurs
|
|
1978
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
2241
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1979
2242
|
*/
|
|
1980
2243
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1981
2244
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2044,7 +2307,7 @@ class DatabaseMigrationClient {
|
|
|
2044
2307
|
* @param ListWorkRequestsRequest
|
|
2045
2308
|
* @return ListWorkRequestsResponse
|
|
2046
2309
|
* @throws OciError when an error occurs
|
|
2047
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
2310
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
2048
2311
|
*/
|
|
2049
2312
|
listWorkRequests(listWorkRequestsRequest) {
|
|
2050
2313
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2107,6 +2370,73 @@ class DatabaseMigrationClient {
|
|
|
2107
2370
|
}
|
|
2108
2371
|
});
|
|
2109
2372
|
}
|
|
2373
|
+
/**
|
|
2374
|
+
* Make current the given parameter file version
|
|
2375
|
+
*
|
|
2376
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2377
|
+
* @param MakeCurrentParameterFileVersionRequest
|
|
2378
|
+
* @return MakeCurrentParameterFileVersionResponse
|
|
2379
|
+
* @throws OciError when an error occurs
|
|
2380
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/MakeCurrentParameterFileVersion.ts.html |here} to see how to use MakeCurrentParameterFileVersion API.
|
|
2381
|
+
*/
|
|
2382
|
+
makeCurrentParameterFileVersion(makeCurrentParameterFileVersionRequest) {
|
|
2383
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2384
|
+
if (this.logger)
|
|
2385
|
+
this.logger.debug("Calling operation DatabaseMigrationClient#makeCurrentParameterFileVersion.");
|
|
2386
|
+
const operationName = "makeCurrentParameterFileVersion";
|
|
2387
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/MakeCurrentParameterFileVersion";
|
|
2388
|
+
const pathParams = {
|
|
2389
|
+
"{jobId}": makeCurrentParameterFileVersionRequest.jobId,
|
|
2390
|
+
"{parameterFileName}": makeCurrentParameterFileVersionRequest.parameterFileName
|
|
2391
|
+
};
|
|
2392
|
+
const queryParams = {};
|
|
2393
|
+
let headerParams = {
|
|
2394
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2395
|
+
"if-match": makeCurrentParameterFileVersionRequest.ifMatch,
|
|
2396
|
+
"opc-retry-token": makeCurrentParameterFileVersionRequest.opcRetryToken,
|
|
2397
|
+
"opc-request-id": makeCurrentParameterFileVersionRequest.opcRequestId
|
|
2398
|
+
};
|
|
2399
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2400
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, makeCurrentParameterFileVersionRequest.retryConfiguration, specRetryConfiguration);
|
|
2401
|
+
if (this.logger)
|
|
2402
|
+
retrier.logger = this.logger;
|
|
2403
|
+
const request = yield oci_common_1.composeRequest({
|
|
2404
|
+
baseEndpoint: this._endpoint,
|
|
2405
|
+
defaultHeaders: this._defaultHeaders,
|
|
2406
|
+
path: "/jobs/{jobId}/parameterFileVersions/{parameterFileName}/actions/makeCurrent",
|
|
2407
|
+
method: "POST",
|
|
2408
|
+
pathParams: pathParams,
|
|
2409
|
+
headerParams: headerParams,
|
|
2410
|
+
queryParams: queryParams
|
|
2411
|
+
});
|
|
2412
|
+
try {
|
|
2413
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2414
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2415
|
+
responseObject: {},
|
|
2416
|
+
body: yield response.json(),
|
|
2417
|
+
bodyKey: "job",
|
|
2418
|
+
bodyModel: model.Job,
|
|
2419
|
+
type: "model.Job",
|
|
2420
|
+
responseHeaders: [
|
|
2421
|
+
{
|
|
2422
|
+
value: response.headers.get("opc-request-id"),
|
|
2423
|
+
key: "opcRequestId",
|
|
2424
|
+
dataType: "string"
|
|
2425
|
+
},
|
|
2426
|
+
{
|
|
2427
|
+
value: response.headers.get("etag"),
|
|
2428
|
+
key: "etag",
|
|
2429
|
+
dataType: "string"
|
|
2430
|
+
}
|
|
2431
|
+
]
|
|
2432
|
+
});
|
|
2433
|
+
return sdkResponse;
|
|
2434
|
+
}
|
|
2435
|
+
catch (err) {
|
|
2436
|
+
throw err;
|
|
2437
|
+
}
|
|
2438
|
+
});
|
|
2439
|
+
}
|
|
2110
2440
|
/**
|
|
2111
2441
|
* Remove excluded/included objects.
|
|
2112
2442
|
*
|
|
@@ -2114,7 +2444,7 @@ class DatabaseMigrationClient {
|
|
|
2114
2444
|
* @param RemoveMigrationObjectsRequest
|
|
2115
2445
|
* @return RemoveMigrationObjectsResponse
|
|
2116
2446
|
* @throws OciError when an error occurs
|
|
2117
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
2447
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/RemoveMigrationObjects.ts.html |here} to see how to use RemoveMigrationObjects API.
|
|
2118
2448
|
*/
|
|
2119
2449
|
removeMigrationObjects(removeMigrationObjectsRequest) {
|
|
2120
2450
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2171,7 +2501,7 @@ class DatabaseMigrationClient {
|
|
|
2171
2501
|
* @param ResumeJobRequest
|
|
2172
2502
|
* @return ResumeJobResponse
|
|
2173
2503
|
* @throws OciError when an error occurs
|
|
2174
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
2504
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/ResumeJob.ts.html |here} to see how to use ResumeJob API.
|
|
2175
2505
|
*/
|
|
2176
2506
|
resumeJob(resumeJobRequest) {
|
|
2177
2507
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2238,7 +2568,7 @@ class DatabaseMigrationClient {
|
|
|
2238
2568
|
* @param RetrieveSupportedPhasesRequest
|
|
2239
2569
|
* @return RetrieveSupportedPhasesResponse
|
|
2240
2570
|
* @throws OciError when an error occurs
|
|
2241
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
2571
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/RetrieveSupportedPhases.ts.html |here} to see how to use RetrieveSupportedPhases API.
|
|
2242
2572
|
*/
|
|
2243
2573
|
retrieveSupportedPhases(retrieveSupportedPhasesRequest) {
|
|
2244
2574
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2297,7 +2627,7 @@ class DatabaseMigrationClient {
|
|
|
2297
2627
|
* @param StartMigrationRequest
|
|
2298
2628
|
* @return StartMigrationResponse
|
|
2299
2629
|
* @throws OciError when an error occurs
|
|
2300
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
2630
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/StartMigration.ts.html |here} to see how to use StartMigration API.
|
|
2301
2631
|
*/
|
|
2302
2632
|
startMigration(startMigrationRequest) {
|
|
2303
2633
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2362,6 +2692,72 @@ class DatabaseMigrationClient {
|
|
|
2362
2692
|
}
|
|
2363
2693
|
});
|
|
2364
2694
|
}
|
|
2695
|
+
/**
|
|
2696
|
+
* Place the currently executing migration Job in a Suspended State.
|
|
2697
|
+
*
|
|
2698
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2699
|
+
* @param SuspendJobRequest
|
|
2700
|
+
* @return SuspendJobResponse
|
|
2701
|
+
* @throws OciError when an error occurs
|
|
2702
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/SuspendJob.ts.html |here} to see how to use SuspendJob API.
|
|
2703
|
+
*/
|
|
2704
|
+
suspendJob(suspendJobRequest) {
|
|
2705
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2706
|
+
if (this.logger)
|
|
2707
|
+
this.logger.debug("Calling operation DatabaseMigrationClient#suspendJob.");
|
|
2708
|
+
const operationName = "suspendJob";
|
|
2709
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/database-migration/20230518/Job/SuspendJob";
|
|
2710
|
+
const pathParams = {
|
|
2711
|
+
"{jobId}": suspendJobRequest.jobId
|
|
2712
|
+
};
|
|
2713
|
+
const queryParams = {};
|
|
2714
|
+
let headerParams = {
|
|
2715
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2716
|
+
"if-match": suspendJobRequest.ifMatch,
|
|
2717
|
+
"opc-retry-token": suspendJobRequest.opcRetryToken,
|
|
2718
|
+
"opc-request-id": suspendJobRequest.opcRequestId
|
|
2719
|
+
};
|
|
2720
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2721
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, suspendJobRequest.retryConfiguration, specRetryConfiguration);
|
|
2722
|
+
if (this.logger)
|
|
2723
|
+
retrier.logger = this.logger;
|
|
2724
|
+
const request = yield oci_common_1.composeRequest({
|
|
2725
|
+
baseEndpoint: this._endpoint,
|
|
2726
|
+
defaultHeaders: this._defaultHeaders,
|
|
2727
|
+
path: "/jobs/{jobId}/actions/suspend",
|
|
2728
|
+
method: "POST",
|
|
2729
|
+
pathParams: pathParams,
|
|
2730
|
+
headerParams: headerParams,
|
|
2731
|
+
queryParams: queryParams
|
|
2732
|
+
});
|
|
2733
|
+
try {
|
|
2734
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2735
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2736
|
+
responseObject: {},
|
|
2737
|
+
body: yield response.json(),
|
|
2738
|
+
bodyKey: "job",
|
|
2739
|
+
bodyModel: model.Job,
|
|
2740
|
+
type: "model.Job",
|
|
2741
|
+
responseHeaders: [
|
|
2742
|
+
{
|
|
2743
|
+
value: response.headers.get("opc-request-id"),
|
|
2744
|
+
key: "opcRequestId",
|
|
2745
|
+
dataType: "string"
|
|
2746
|
+
},
|
|
2747
|
+
{
|
|
2748
|
+
value: response.headers.get("etag"),
|
|
2749
|
+
key: "etag",
|
|
2750
|
+
dataType: "string"
|
|
2751
|
+
}
|
|
2752
|
+
]
|
|
2753
|
+
});
|
|
2754
|
+
return sdkResponse;
|
|
2755
|
+
}
|
|
2756
|
+
catch (err) {
|
|
2757
|
+
throw err;
|
|
2758
|
+
}
|
|
2759
|
+
});
|
|
2760
|
+
}
|
|
2365
2761
|
/**
|
|
2366
2762
|
* Update Database Connection resource details.
|
|
2367
2763
|
*
|
|
@@ -2369,7 +2765,7 @@ class DatabaseMigrationClient {
|
|
|
2369
2765
|
* @param UpdateConnectionRequest
|
|
2370
2766
|
* @return UpdateConnectionResponse
|
|
2371
2767
|
* @throws OciError when an error occurs
|
|
2372
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
2768
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/UpdateConnection.ts.html |here} to see how to use UpdateConnection API.
|
|
2373
2769
|
*/
|
|
2374
2770
|
updateConnection(updateConnectionRequest) {
|
|
2375
2771
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2431,7 +2827,7 @@ class DatabaseMigrationClient {
|
|
|
2431
2827
|
* @param UpdateJobRequest
|
|
2432
2828
|
* @return UpdateJobResponse
|
|
2433
2829
|
* @throws OciError when an error occurs
|
|
2434
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
2830
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/UpdateJob.ts.html |here} to see how to use UpdateJob API.
|
|
2435
2831
|
*/
|
|
2436
2832
|
updateJob(updateJobRequest) {
|
|
2437
2833
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -2497,7 +2893,7 @@ class DatabaseMigrationClient {
|
|
|
2497
2893
|
* @param UpdateMigrationRequest
|
|
2498
2894
|
* @return UpdateMigrationResponse
|
|
2499
2895
|
* @throws OciError when an error occurs
|
|
2500
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/
|
|
2896
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/databasemigration/UpdateMigration.ts.html |here} to see how to use UpdateMigration API.
|
|
2501
2897
|
*/
|
|
2502
2898
|
updateMigration(updateMigrationRequest) {
|
|
2503
2899
|
return __awaiter(this, void 0, void 0, function* () {
|