oci-datasafe 2.141.0 → 2.142.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.d.ts +173 -0
- package/lib/client.js +1499 -197
- package/lib/client.js.map +1 -1
- package/lib/datasafe-waiter.d.ts +8 -0
- package/lib/datasafe-waiter.js +12 -0
- package/lib/datasafe-waiter.js.map +1 -1
- package/lib/model/activate-target-database-details.d.ts +1 -1
- package/lib/model/change-audit-profile-compartment-details.d.ts +1 -1
- package/lib/model/change-crypto-assessment-compartment-details.d.ts +26 -0
- package/lib/model/change-crypto-assessment-compartment-details.js +29 -0
- package/lib/model/change-crypto-assessment-compartment-details.js.map +1 -0
- package/lib/model/crypto-assessment-backup-set-collection.d.ts +26 -0
- package/lib/model/crypto-assessment-backup-set-collection.js +61 -0
- package/lib/model/crypto-assessment-backup-set-collection.js.map +1 -0
- package/lib/model/crypto-assessment-backup-set-summary.d.ts +99 -0
- package/lib/model/crypto-assessment-backup-set-summary.js +53 -0
- package/lib/model/crypto-assessment-backup-set-summary.js.map +1 -0
- package/lib/model/crypto-assessment-cbom-item-collection.d.ts +26 -0
- package/lib/model/crypto-assessment-cbom-item-collection.js +61 -0
- package/lib/model/crypto-assessment-cbom-item-collection.js.map +1 -0
- package/lib/model/crypto-assessment-cbom-item-summary.d.ts +53 -0
- package/lib/model/crypto-assessment-cbom-item-summary.js +29 -0
- package/lib/model/crypto-assessment-cbom-item-summary.js.map +1 -0
- package/lib/model/crypto-assessment-certificate-collection.d.ts +26 -0
- package/lib/model/crypto-assessment-certificate-collection.js +61 -0
- package/lib/model/crypto-assessment-certificate-collection.js.map +1 -0
- package/lib/model/crypto-assessment-certificate-summary.d.ts +115 -0
- package/lib/model/crypto-assessment-certificate-summary.js +53 -0
- package/lib/model/crypto-assessment-certificate-summary.js.map +1 -0
- package/lib/model/crypto-assessment-collection.d.ts +26 -0
- package/lib/model/crypto-assessment-collection.js +61 -0
- package/lib/model/crypto-assessment-collection.js.map +1 -0
- package/lib/model/crypto-assessment-finding-analytics-collection.d.ts +26 -0
- package/lib/model/crypto-assessment-finding-analytics-collection.js +61 -0
- package/lib/model/crypto-assessment-finding-analytics-collection.js.map +1 -0
- package/lib/model/crypto-assessment-finding-analytics-summary.d.ts +77 -0
- package/lib/model/crypto-assessment-finding-analytics-summary.js +55 -0
- package/lib/model/crypto-assessment-finding-analytics-summary.js.map +1 -0
- package/lib/model/crypto-assessment-finding-category-summary.d.ts +33 -0
- package/lib/model/crypto-assessment-finding-category-summary.js +29 -0
- package/lib/model/crypto-assessment-finding-category-summary.js.map +1 -0
- package/lib/model/crypto-assessment-finding-collection.d.ts +39 -0
- package/lib/model/crypto-assessment-finding-collection.js +67 -0
- package/lib/model/crypto-assessment-finding-collection.js.map +1 -0
- package/lib/model/crypto-assessment-finding-summary-metrics.d.ts +56 -0
- package/lib/model/crypto-assessment-finding-summary-metrics.js +75 -0
- package/lib/model/crypto-assessment-finding-summary-metrics.js.map +1 -0
- package/lib/model/crypto-assessment-finding-summary.d.ts +97 -0
- package/lib/model/crypto-assessment-finding-summary.js +41 -0
- package/lib/model/crypto-assessment-finding-summary.js.map +1 -0
- package/lib/model/crypto-assessment-finding-target-collection.d.ts +26 -0
- package/lib/model/crypto-assessment-finding-target-collection.js +61 -0
- package/lib/model/crypto-assessment-finding-target-collection.js.map +1 -0
- package/lib/model/crypto-assessment-finding-target-summary.d.ts +64 -0
- package/lib/model/crypto-assessment-finding-target-summary.js +41 -0
- package/lib/model/crypto-assessment-finding-target-summary.js.map +1 -0
- package/lib/model/crypto-assessment-key-collection.d.ts +26 -0
- package/lib/model/crypto-assessment-key-collection.js +61 -0
- package/lib/model/crypto-assessment-key-collection.js.map +1 -0
- package/lib/model/crypto-assessment-key-summary.d.ts +91 -0
- package/lib/model/crypto-assessment-key-summary.js +39 -0
- package/lib/model/crypto-assessment-key-summary.js.map +1 -0
- package/lib/model/crypto-assessment-sqlnet-parameters.d.ts +27 -0
- package/lib/model/crypto-assessment-sqlnet-parameters.js +65 -0
- package/lib/model/crypto-assessment-sqlnet-parameters.js.map +1 -0
- package/lib/model/crypto-assessment-summary.d.ts +140 -0
- package/lib/model/crypto-assessment-summary.js +29 -0
- package/lib/model/crypto-assessment-summary.js.map +1 -0
- package/lib/model/crypto-assessment-tde-object-collection.d.ts +26 -0
- package/lib/model/crypto-assessment-tde-object-collection.js +61 -0
- package/lib/model/crypto-assessment-tde-object-collection.js.map +1 -0
- package/lib/model/crypto-assessment-tde-object-summary.d.ts +66 -0
- package/lib/model/crypto-assessment-tde-object-summary.js +29 -0
- package/lib/model/crypto-assessment-tde-object-summary.js.map +1 -0
- package/lib/model/crypto-assessment-wallet-collection.d.ts +26 -0
- package/lib/model/crypto-assessment-wallet-collection.js +61 -0
- package/lib/model/crypto-assessment-wallet-collection.js.map +1 -0
- package/lib/model/crypto-assessment-wallet-summary.d.ts +75 -0
- package/lib/model/crypto-assessment-wallet-summary.js +53 -0
- package/lib/model/crypto-assessment-wallet-summary.js.map +1 -0
- package/lib/model/crypto-assessment.d.ts +195 -0
- package/lib/model/crypto-assessment.js +101 -0
- package/lib/model/crypto-assessment.js.map +1 -0
- package/lib/model/crypto-feature-status.d.ts +32 -0
- package/lib/model/crypto-feature-status.js +43 -0
- package/lib/model/crypto-feature-status.js.map +1 -0
- package/lib/model/crypto-feature.d.ts +29 -0
- package/lib/model/crypto-feature.js +40 -0
- package/lib/model/crypto-feature.js.map +1 -0
- package/lib/model/crypto-finding-category.d.ts +27 -0
- package/lib/model/crypto-finding-category.js +38 -0
- package/lib/model/crypto-finding-category.js.map +1 -0
- package/lib/model/crypto-finding-status.d.ts +33 -0
- package/lib/model/crypto-finding-status.js +44 -0
- package/lib/model/crypto-finding-status.js.map +1 -0
- package/lib/model/crypto-key-cache-status.d.ts +30 -0
- package/lib/model/crypto-key-cache-status.js +41 -0
- package/lib/model/crypto-key-cache-status.js.map +1 -0
- package/lib/model/crypto-keystore-type.d.ts +34 -0
- package/lib/model/crypto-keystore-type.js +45 -0
- package/lib/model/crypto-keystore-type.js.map +1 -0
- package/lib/model/crypto-nne-posture.d.ts +70 -0
- package/lib/model/crypto-nne-posture.js +42 -0
- package/lib/model/crypto-nne-posture.js.map +1 -0
- package/lib/model/crypto-observed-boolean-value.d.ts +29 -0
- package/lib/model/crypto-observed-boolean-value.js +40 -0
- package/lib/model/crypto-observed-boolean-value.js.map +1 -0
- package/lib/model/crypto-posture-category.d.ts +29 -0
- package/lib/model/crypto-posture-category.js +40 -0
- package/lib/model/crypto-posture-category.js.map +1 -0
- package/lib/model/crypto-posture.d.ts +61 -0
- package/lib/model/crypto-posture.js +70 -0
- package/lib/model/crypto-posture.js.map +1 -0
- package/lib/model/crypto-quantum-readiness.d.ts +31 -0
- package/lib/model/crypto-quantum-readiness.js +42 -0
- package/lib/model/crypto-quantum-readiness.js.map +1 -0
- package/lib/model/crypto-sqlnet-parameter-source.d.ts +33 -0
- package/lib/model/crypto-sqlnet-parameter-source.js +38 -0
- package/lib/model/crypto-sqlnet-parameter-source.js.map +1 -0
- package/lib/model/crypto-sqlnet-parameter-value.d.ts +39 -0
- package/lib/model/crypto-sqlnet-parameter-value.js +40 -0
- package/lib/model/crypto-sqlnet-parameter-value.js.map +1 -0
- package/lib/model/crypto-sqlnet-parameter.d.ts +31 -0
- package/lib/model/crypto-sqlnet-parameter.js +55 -0
- package/lib/model/crypto-sqlnet-parameter.js.map +1 -0
- package/lib/model/crypto-tde-posture.d.ts +82 -0
- package/lib/model/crypto-tde-posture.js +29 -0
- package/lib/model/crypto-tde-posture.js.map +1 -0
- package/lib/model/crypto-tls-posture.d.ts +58 -0
- package/lib/model/crypto-tls-posture.js +29 -0
- package/lib/model/crypto-tls-posture.js.map +1 -0
- package/lib/model/download-crypto-assessment-report-details.d.ts +29 -0
- package/lib/model/download-crypto-assessment-report-details.js +34 -0
- package/lib/model/download-crypto-assessment-report-details.js.map +1 -0
- package/lib/model/generate-crypto-assessment-report-details.d.ts +29 -0
- package/lib/model/generate-crypto-assessment-report-details.js +34 -0
- package/lib/model/generate-crypto-assessment-report-details.js.map +1 -0
- package/lib/model/generate-on-prem-connector-configuration-details.d.ts +1 -1
- package/lib/model/index.d.ts +90 -0
- package/lib/model/index.js +102 -11
- package/lib/model/index.js.map +1 -1
- package/lib/model/report-definition-data-source.d.ts +1 -0
- package/lib/model/report-definition-data-source.js +1 -0
- package/lib/model/report-definition-data-source.js.map +1 -1
- package/lib/model/report-definition-summary.d.ts +1 -0
- package/lib/model/report-definition-summary.js +1 -0
- package/lib/model/report-definition-summary.js.map +1 -1
- package/lib/model/report-definition.d.ts +1 -0
- package/lib/model/report-definition.js +1 -0
- package/lib/model/report-definition.js.map +1 -1
- package/lib/model/run-crypto-assessment-details.d.ts +52 -0
- package/lib/model/run-crypto-assessment-details.js +29 -0
- package/lib/model/run-crypto-assessment-details.js.map +1 -0
- package/lib/model/run-security-assessment-details.d.ts +1 -1
- package/lib/model/run-user-assessment-details.d.ts +1 -1
- package/lib/model/update-crypto-assessment-details.d.ts +65 -0
- package/lib/model/update-crypto-assessment-details.js +29 -0
- package/lib/model/update-crypto-assessment-details.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +5 -3
- package/lib/model/work-request-resource.js +2 -0
- package/lib/model/work-request-resource.js.map +1 -1
- package/lib/model/work-request-summary.d.ts +8 -0
- package/lib/model/work-request-summary.js +8 -0
- package/lib/model/work-request-summary.js.map +1 -1
- package/lib/model/work-request.d.ts +8 -0
- package/lib/model/work-request.js +8 -0
- package/lib/model/work-request.js.map +1 -1
- package/lib/request/activate-target-database-request.d.ts +4 -4
- package/lib/request/change-crypto-assessment-compartment-request.d.ts +48 -0
- package/lib/request/change-crypto-assessment-compartment-request.js +15 -0
- package/lib/request/change-crypto-assessment-compartment-request.js.map +1 -0
- package/lib/request/delete-crypto-assessment-request.d.ts +35 -0
- package/lib/request/delete-crypto-assessment-request.js +15 -0
- package/lib/request/delete-crypto-assessment-request.js.map +1 -0
- package/lib/request/download-crypto-assessment-report-request.d.ts +48 -0
- package/lib/request/download-crypto-assessment-report-request.js +15 -0
- package/lib/request/download-crypto-assessment-report-request.js.map +1 -0
- package/lib/request/generate-crypto-assessment-report-request.d.ts +48 -0
- package/lib/request/generate-crypto-assessment-report-request.js +15 -0
- package/lib/request/generate-crypto-assessment-report-request.js.map +1 -0
- package/lib/request/get-crypto-assessment-request.d.ts +26 -0
- package/lib/request/get-crypto-assessment-request.js +15 -0
- package/lib/request/get-crypto-assessment-request.js.map +1 -0
- package/lib/request/get-crypto-assessment-sqlnet-parameters-request.d.ts +43 -0
- package/lib/request/get-crypto-assessment-sqlnet-parameters-request.js +15 -0
- package/lib/request/get-crypto-assessment-sqlnet-parameters-request.js.map +1 -0
- package/lib/request/index.d.ts +36 -0
- package/lib/request/index.js +19 -2
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-alert-analytics-request.d.ts +2 -2
- package/lib/request/list-alerts-request.d.ts +2 -2
- package/lib/request/list-crypto-assessment-backup-sets-request.d.ts +96 -0
- package/lib/request/list-crypto-assessment-backup-sets-request.js +36 -0
- package/lib/request/list-crypto-assessment-backup-sets-request.js.map +1 -0
- package/lib/request/list-crypto-assessment-cbom-items-request.d.ts +26 -0
- package/lib/request/list-crypto-assessment-cbom-items-request.js +15 -0
- package/lib/request/list-crypto-assessment-cbom-items-request.js.map +1 -0
- package/lib/request/list-crypto-assessment-certificates-request.d.ts +111 -0
- package/lib/request/list-crypto-assessment-certificates-request.js +34 -0
- package/lib/request/list-crypto-assessment-certificates-request.js.map +1 -0
- package/lib/request/list-crypto-assessment-finding-analytics-request.d.ts +83 -0
- package/lib/request/list-crypto-assessment-finding-analytics-request.js +34 -0
- package/lib/request/list-crypto-assessment-finding-analytics-request.js.map +1 -0
- package/lib/request/list-crypto-assessment-finding-targets-request.d.ts +95 -0
- package/lib/request/list-crypto-assessment-finding-targets-request.js +34 -0
- package/lib/request/list-crypto-assessment-finding-targets-request.js.map +1 -0
- package/lib/request/list-crypto-assessment-findings-request.d.ts +55 -0
- package/lib/request/list-crypto-assessment-findings-request.js +15 -0
- package/lib/request/list-crypto-assessment-findings-request.js.map +1 -0
- package/lib/request/list-crypto-assessment-keys-request.d.ts +102 -0
- package/lib/request/list-crypto-assessment-keys-request.js +33 -0
- package/lib/request/list-crypto-assessment-keys-request.js.map +1 -0
- package/lib/request/list-crypto-assessment-tde-objects-request.d.ts +113 -0
- package/lib/request/list-crypto-assessment-tde-objects-request.js +46 -0
- package/lib/request/list-crypto-assessment-tde-objects-request.js.map +1 -0
- package/lib/request/list-crypto-assessment-wallets-request.d.ts +94 -0
- package/lib/request/list-crypto-assessment-wallets-request.js +34 -0
- package/lib/request/list-crypto-assessment-wallets-request.js.map +1 -0
- package/lib/request/list-crypto-assessments-request.d.ts +114 -0
- package/lib/request/list-crypto-assessments-request.js +35 -0
- package/lib/request/list-crypto-assessments-request.js.map +1 -0
- package/lib/request/list-report-definitions-request.d.ts +2 -1
- package/lib/request/list-report-definitions-request.js +1 -0
- package/lib/request/list-report-definitions-request.js.map +1 -1
- package/lib/request/refresh-crypto-assessment-request.d.ts +48 -0
- package/lib/request/refresh-crypto-assessment-request.js +15 -0
- package/lib/request/refresh-crypto-assessment-request.js.map +1 -0
- package/lib/request/update-crypto-assessment-request.d.ts +40 -0
- package/lib/request/update-crypto-assessment-request.js +15 -0
- package/lib/request/update-crypto-assessment-request.js.map +1 -0
- package/lib/response/change-crypto-assessment-compartment-response.d.ts +24 -0
- package/lib/response/change-crypto-assessment-compartment-response.js +15 -0
- package/lib/response/change-crypto-assessment-compartment-response.js.map +1 -0
- package/lib/response/delete-crypto-assessment-response.d.ts +24 -0
- package/lib/response/delete-crypto-assessment-response.js +15 -0
- package/lib/response/delete-crypto-assessment-response.js.map +1 -0
- package/lib/response/download-crypto-assessment-report-response.d.ts +34 -0
- package/lib/response/download-crypto-assessment-report-response.js +15 -0
- package/lib/response/download-crypto-assessment-report-response.js.map +1 -0
- package/lib/response/generate-crypto-assessment-report-response.d.ts +24 -0
- package/lib/response/generate-crypto-assessment-report-response.js +15 -0
- package/lib/response/generate-crypto-assessment-report-response.js.map +1 -0
- package/lib/response/get-crypto-assessment-response.d.ts +29 -0
- package/lib/response/get-crypto-assessment-response.js +15 -0
- package/lib/response/get-crypto-assessment-response.js.map +1 -0
- package/lib/response/get-crypto-assessment-sqlnet-parameters-response.d.ts +36 -0
- package/lib/response/get-crypto-assessment-sqlnet-parameters-response.js +15 -0
- package/lib/response/get-crypto-assessment-sqlnet-parameters-response.js.map +1 -0
- package/lib/response/index.d.ts +36 -0
- package/lib/response/list-crypto-assessment-backup-sets-response.d.ts +36 -0
- package/lib/response/list-crypto-assessment-backup-sets-response.js +15 -0
- package/lib/response/list-crypto-assessment-backup-sets-response.js.map +1 -0
- package/lib/response/list-crypto-assessment-cbom-items-response.d.ts +24 -0
- package/lib/response/list-crypto-assessment-cbom-items-response.js +15 -0
- package/lib/response/list-crypto-assessment-cbom-items-response.js.map +1 -0
- package/lib/response/list-crypto-assessment-certificates-response.d.ts +36 -0
- package/lib/response/list-crypto-assessment-certificates-response.js +15 -0
- package/lib/response/list-crypto-assessment-certificates-response.js.map +1 -0
- package/lib/response/list-crypto-assessment-finding-analytics-response.d.ts +36 -0
- package/lib/response/list-crypto-assessment-finding-analytics-response.js +15 -0
- package/lib/response/list-crypto-assessment-finding-analytics-response.js.map +1 -0
- package/lib/response/list-crypto-assessment-finding-targets-response.d.ts +36 -0
- package/lib/response/list-crypto-assessment-finding-targets-response.js +15 -0
- package/lib/response/list-crypto-assessment-finding-targets-response.js.map +1 -0
- package/lib/response/list-crypto-assessment-findings-response.d.ts +29 -0
- package/lib/response/list-crypto-assessment-findings-response.js +15 -0
- package/lib/response/list-crypto-assessment-findings-response.js.map +1 -0
- package/lib/response/list-crypto-assessment-keys-response.d.ts +36 -0
- package/lib/response/list-crypto-assessment-keys-response.js +15 -0
- package/lib/response/list-crypto-assessment-keys-response.js.map +1 -0
- package/lib/response/list-crypto-assessment-tde-objects-response.d.ts +36 -0
- package/lib/response/list-crypto-assessment-tde-objects-response.js +15 -0
- package/lib/response/list-crypto-assessment-tde-objects-response.js.map +1 -0
- package/lib/response/list-crypto-assessment-wallets-response.d.ts +36 -0
- package/lib/response/list-crypto-assessment-wallets-response.js +15 -0
- package/lib/response/list-crypto-assessment-wallets-response.js.map +1 -0
- package/lib/response/list-crypto-assessments-response.d.ts +36 -0
- package/lib/response/list-crypto-assessments-response.js +15 -0
- package/lib/response/list-crypto-assessments-response.js.map +1 -0
- package/lib/response/refresh-crypto-assessment-response.d.ts +24 -0
- package/lib/response/refresh-crypto-assessment-response.js +15 -0
- package/lib/response/refresh-crypto-assessment-response.js.map +1 -0
- package/lib/response/update-crypto-assessment-response.d.ts +24 -0
- package/lib/response/update-crypto-assessment-response.js +15 -0
- package/lib/response/update-crypto-assessment-response.js.map +1 -0
- package/package.json +2 -2
package/lib/client.js
CHANGED
|
@@ -1383,6 +1383,70 @@ class DataSafeClient {
|
|
|
1383
1383
|
}
|
|
1384
1384
|
});
|
|
1385
1385
|
}
|
|
1386
|
+
/**
|
|
1387
|
+
* Moves the specified saved crypto assessment into a different compartment.
|
|
1388
|
+
* Only `SAVED` crypto assessments are supported.
|
|
1389
|
+
*
|
|
1390
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1391
|
+
* @param ChangeCryptoAssessmentCompartmentRequest
|
|
1392
|
+
* @return ChangeCryptoAssessmentCompartmentResponse
|
|
1393
|
+
* @throws OciError when an error occurs
|
|
1394
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ChangeCryptoAssessmentCompartment.ts.html |here} to see how to use ChangeCryptoAssessmentCompartment API.
|
|
1395
|
+
*/
|
|
1396
|
+
changeCryptoAssessmentCompartment(changeCryptoAssessmentCompartmentRequest) {
|
|
1397
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1398
|
+
if (this.logger)
|
|
1399
|
+
this.logger.debug("Calling operation DataSafeClient#changeCryptoAssessmentCompartment.");
|
|
1400
|
+
const operationName = "changeCryptoAssessmentCompartment";
|
|
1401
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ChangeCryptoAssessmentCompartment";
|
|
1402
|
+
const pathParams = {
|
|
1403
|
+
"{cryptoAssessmentId}": changeCryptoAssessmentCompartmentRequest.cryptoAssessmentId
|
|
1404
|
+
};
|
|
1405
|
+
const queryParams = {};
|
|
1406
|
+
let headerParams = {
|
|
1407
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1408
|
+
"opc-request-id": changeCryptoAssessmentCompartmentRequest.opcRequestId,
|
|
1409
|
+
"if-match": changeCryptoAssessmentCompartmentRequest.ifMatch,
|
|
1410
|
+
"opc-retry-token": changeCryptoAssessmentCompartmentRequest.opcRetryToken
|
|
1411
|
+
};
|
|
1412
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1413
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeCryptoAssessmentCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
1414
|
+
if (this.logger)
|
|
1415
|
+
retrier.logger = this.logger;
|
|
1416
|
+
const request = yield oci_common_2.composeRequest({
|
|
1417
|
+
baseEndpoint: this._endpoint,
|
|
1418
|
+
defaultHeaders: this._defaultHeaders,
|
|
1419
|
+
path: "/cryptoAssessments/{cryptoAssessmentId}/actions/changeCompartment",
|
|
1420
|
+
method: "POST",
|
|
1421
|
+
bodyContent: common.ObjectSerializer.serialize(changeCryptoAssessmentCompartmentRequest.changeCryptoAssessmentCompartmentDetails, "ChangeCryptoAssessmentCompartmentDetails", model.ChangeCryptoAssessmentCompartmentDetails.getJsonObj),
|
|
1422
|
+
pathParams: pathParams,
|
|
1423
|
+
headerParams: headerParams,
|
|
1424
|
+
queryParams: queryParams
|
|
1425
|
+
});
|
|
1426
|
+
try {
|
|
1427
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1428
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
1429
|
+
responseObject: {},
|
|
1430
|
+
responseHeaders: [
|
|
1431
|
+
{
|
|
1432
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1433
|
+
key: "opcWorkRequestId",
|
|
1434
|
+
dataType: "string"
|
|
1435
|
+
},
|
|
1436
|
+
{
|
|
1437
|
+
value: response.headers.get("opc-request-id"),
|
|
1438
|
+
key: "opcRequestId",
|
|
1439
|
+
dataType: "string"
|
|
1440
|
+
}
|
|
1441
|
+
]
|
|
1442
|
+
});
|
|
1443
|
+
return sdkResponse;
|
|
1444
|
+
}
|
|
1445
|
+
catch (err) {
|
|
1446
|
+
throw err;
|
|
1447
|
+
}
|
|
1448
|
+
});
|
|
1449
|
+
}
|
|
1386
1450
|
/**
|
|
1387
1451
|
* Moves the Data Safe private endpoint and its dependent resources to the specified compartment.
|
|
1388
1452
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -5841,6 +5905,68 @@ class DataSafeClient {
|
|
|
5841
5905
|
}
|
|
5842
5906
|
});
|
|
5843
5907
|
}
|
|
5908
|
+
/**
|
|
5909
|
+
* Deletes the specified saved crypto assessment.
|
|
5910
|
+
* Only assessments of type `SAVED` can be deleted. Attempts to delete a `LATEST` assessment return `400 InvalidParameter`.
|
|
5911
|
+
*
|
|
5912
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
5913
|
+
* @param DeleteCryptoAssessmentRequest
|
|
5914
|
+
* @return DeleteCryptoAssessmentResponse
|
|
5915
|
+
* @throws OciError when an error occurs
|
|
5916
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/DeleteCryptoAssessment.ts.html |here} to see how to use DeleteCryptoAssessment API.
|
|
5917
|
+
*/
|
|
5918
|
+
deleteCryptoAssessment(deleteCryptoAssessmentRequest) {
|
|
5919
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5920
|
+
if (this.logger)
|
|
5921
|
+
this.logger.debug("Calling operation DataSafeClient#deleteCryptoAssessment.");
|
|
5922
|
+
const operationName = "deleteCryptoAssessment";
|
|
5923
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/DeleteCryptoAssessment";
|
|
5924
|
+
const pathParams = {
|
|
5925
|
+
"{cryptoAssessmentId}": deleteCryptoAssessmentRequest.cryptoAssessmentId
|
|
5926
|
+
};
|
|
5927
|
+
const queryParams = {};
|
|
5928
|
+
let headerParams = {
|
|
5929
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
5930
|
+
"if-match": deleteCryptoAssessmentRequest.ifMatch,
|
|
5931
|
+
"opc-request-id": deleteCryptoAssessmentRequest.opcRequestId
|
|
5932
|
+
};
|
|
5933
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
5934
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteCryptoAssessmentRequest.retryConfiguration, specRetryConfiguration);
|
|
5935
|
+
if (this.logger)
|
|
5936
|
+
retrier.logger = this.logger;
|
|
5937
|
+
const request = yield oci_common_2.composeRequest({
|
|
5938
|
+
baseEndpoint: this._endpoint,
|
|
5939
|
+
defaultHeaders: this._defaultHeaders,
|
|
5940
|
+
path: "/cryptoAssessments/{cryptoAssessmentId}",
|
|
5941
|
+
method: "DELETE",
|
|
5942
|
+
pathParams: pathParams,
|
|
5943
|
+
headerParams: headerParams,
|
|
5944
|
+
queryParams: queryParams
|
|
5945
|
+
});
|
|
5946
|
+
try {
|
|
5947
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
5948
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
5949
|
+
responseObject: {},
|
|
5950
|
+
responseHeaders: [
|
|
5951
|
+
{
|
|
5952
|
+
value: response.headers.get("opc-work-request-id"),
|
|
5953
|
+
key: "opcWorkRequestId",
|
|
5954
|
+
dataType: "string"
|
|
5955
|
+
},
|
|
5956
|
+
{
|
|
5957
|
+
value: response.headers.get("opc-request-id"),
|
|
5958
|
+
key: "opcRequestId",
|
|
5959
|
+
dataType: "string"
|
|
5960
|
+
}
|
|
5961
|
+
]
|
|
5962
|
+
});
|
|
5963
|
+
return sdkResponse;
|
|
5964
|
+
}
|
|
5965
|
+
catch (err) {
|
|
5966
|
+
throw err;
|
|
5967
|
+
}
|
|
5968
|
+
});
|
|
5969
|
+
}
|
|
5844
5970
|
/**
|
|
5845
5971
|
* Deletes the specified Data Safe private endpoint.
|
|
5846
5972
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -7807,6 +7933,78 @@ class DataSafeClient {
|
|
|
7807
7933
|
}
|
|
7808
7934
|
});
|
|
7809
7935
|
}
|
|
7936
|
+
/**
|
|
7937
|
+
* Downloads the report of the specified crypto assessment. To download the crypto assessment report, it needs to be generated first.
|
|
7938
|
+
* Please use GenerateCryptoAssessmentReport to generate a downloadable report in the preferred format (PDF, XLS).
|
|
7939
|
+
*
|
|
7940
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
7941
|
+
* @param DownloadCryptoAssessmentReportRequest
|
|
7942
|
+
* @return DownloadCryptoAssessmentReportResponse
|
|
7943
|
+
* @throws OciError when an error occurs
|
|
7944
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/DownloadCryptoAssessmentReport.ts.html |here} to see how to use DownloadCryptoAssessmentReport API.
|
|
7945
|
+
*/
|
|
7946
|
+
downloadCryptoAssessmentReport(downloadCryptoAssessmentReportRequest) {
|
|
7947
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
7948
|
+
if (this.logger)
|
|
7949
|
+
this.logger.debug("Calling operation DataSafeClient#downloadCryptoAssessmentReport.");
|
|
7950
|
+
const operationName = "downloadCryptoAssessmentReport";
|
|
7951
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/DownloadCryptoAssessmentReport";
|
|
7952
|
+
const pathParams = {
|
|
7953
|
+
"{cryptoAssessmentId}": downloadCryptoAssessmentReportRequest.cryptoAssessmentId
|
|
7954
|
+
};
|
|
7955
|
+
const queryParams = {};
|
|
7956
|
+
let headerParams = {
|
|
7957
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
7958
|
+
"if-match": downloadCryptoAssessmentReportRequest.ifMatch,
|
|
7959
|
+
"opc-retry-token": downloadCryptoAssessmentReportRequest.opcRetryToken,
|
|
7960
|
+
"opc-request-id": downloadCryptoAssessmentReportRequest.opcRequestId
|
|
7961
|
+
};
|
|
7962
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
7963
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, downloadCryptoAssessmentReportRequest.retryConfiguration, specRetryConfiguration);
|
|
7964
|
+
if (this.logger)
|
|
7965
|
+
retrier.logger = this.logger;
|
|
7966
|
+
const request = yield oci_common_2.composeRequest({
|
|
7967
|
+
baseEndpoint: this._endpoint,
|
|
7968
|
+
defaultHeaders: this._defaultHeaders,
|
|
7969
|
+
path: "/cryptoAssessments/{cryptoAssessmentId}/actions/downloadReport",
|
|
7970
|
+
method: "POST",
|
|
7971
|
+
bodyContent: common.ObjectSerializer.serialize(downloadCryptoAssessmentReportRequest.downloadCryptoAssessmentReportDetails, "DownloadCryptoAssessmentReportDetails", model.DownloadCryptoAssessmentReportDetails.getJsonObj),
|
|
7972
|
+
pathParams: pathParams,
|
|
7973
|
+
headerParams: headerParams,
|
|
7974
|
+
queryParams: queryParams
|
|
7975
|
+
});
|
|
7976
|
+
try {
|
|
7977
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
7978
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
7979
|
+
responseObject: {},
|
|
7980
|
+
body: response.body,
|
|
7981
|
+
bodyKey: "value",
|
|
7982
|
+
bodyModel: "string",
|
|
7983
|
+
responseHeaders: [
|
|
7984
|
+
{
|
|
7985
|
+
value: response.headers.get("opc-request-id"),
|
|
7986
|
+
key: "opcRequestId",
|
|
7987
|
+
dataType: "string"
|
|
7988
|
+
},
|
|
7989
|
+
{
|
|
7990
|
+
value: response.headers.get("etag"),
|
|
7991
|
+
key: "etag",
|
|
7992
|
+
dataType: "string"
|
|
7993
|
+
},
|
|
7994
|
+
{
|
|
7995
|
+
value: response.headers.get("content-length"),
|
|
7996
|
+
key: "contentLength",
|
|
7997
|
+
dataType: "number"
|
|
7998
|
+
}
|
|
7999
|
+
]
|
|
8000
|
+
});
|
|
8001
|
+
return sdkResponse;
|
|
8002
|
+
}
|
|
8003
|
+
catch (err) {
|
|
8004
|
+
throw err;
|
|
8005
|
+
}
|
|
8006
|
+
});
|
|
8007
|
+
}
|
|
7810
8008
|
/**
|
|
7811
8009
|
* Downloads an already-generated discovery report. Note that the GenerateDiscoveryReportForDownload operation is a
|
|
7812
8010
|
* prerequisite for the DownloadDiscoveryReport operation. Use GenerateDiscoveryReportForDownload to generate a discovery
|
|
@@ -8507,6 +8705,70 @@ class DataSafeClient {
|
|
|
8507
8705
|
}
|
|
8508
8706
|
});
|
|
8509
8707
|
}
|
|
8708
|
+
/**
|
|
8709
|
+
* Generates the report of the specified crypto assessment.
|
|
8710
|
+
* Supported output formats are PDF and XLS.
|
|
8711
|
+
*
|
|
8712
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
8713
|
+
* @param GenerateCryptoAssessmentReportRequest
|
|
8714
|
+
* @return GenerateCryptoAssessmentReportResponse
|
|
8715
|
+
* @throws OciError when an error occurs
|
|
8716
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/GenerateCryptoAssessmentReport.ts.html |here} to see how to use GenerateCryptoAssessmentReport API.
|
|
8717
|
+
*/
|
|
8718
|
+
generateCryptoAssessmentReport(generateCryptoAssessmentReportRequest) {
|
|
8719
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
8720
|
+
if (this.logger)
|
|
8721
|
+
this.logger.debug("Calling operation DataSafeClient#generateCryptoAssessmentReport.");
|
|
8722
|
+
const operationName = "generateCryptoAssessmentReport";
|
|
8723
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GenerateCryptoAssessmentReport";
|
|
8724
|
+
const pathParams = {
|
|
8725
|
+
"{cryptoAssessmentId}": generateCryptoAssessmentReportRequest.cryptoAssessmentId
|
|
8726
|
+
};
|
|
8727
|
+
const queryParams = {};
|
|
8728
|
+
let headerParams = {
|
|
8729
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
8730
|
+
"if-match": generateCryptoAssessmentReportRequest.ifMatch,
|
|
8731
|
+
"opc-retry-token": generateCryptoAssessmentReportRequest.opcRetryToken,
|
|
8732
|
+
"opc-request-id": generateCryptoAssessmentReportRequest.opcRequestId
|
|
8733
|
+
};
|
|
8734
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
8735
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, generateCryptoAssessmentReportRequest.retryConfiguration, specRetryConfiguration);
|
|
8736
|
+
if (this.logger)
|
|
8737
|
+
retrier.logger = this.logger;
|
|
8738
|
+
const request = yield oci_common_2.composeRequest({
|
|
8739
|
+
baseEndpoint: this._endpoint,
|
|
8740
|
+
defaultHeaders: this._defaultHeaders,
|
|
8741
|
+
path: "/cryptoAssessments/{cryptoAssessmentId}/actions/generateReport",
|
|
8742
|
+
method: "POST",
|
|
8743
|
+
bodyContent: common.ObjectSerializer.serialize(generateCryptoAssessmentReportRequest.generateCryptoAssessmentReportDetails, "GenerateCryptoAssessmentReportDetails", model.GenerateCryptoAssessmentReportDetails.getJsonObj),
|
|
8744
|
+
pathParams: pathParams,
|
|
8745
|
+
headerParams: headerParams,
|
|
8746
|
+
queryParams: queryParams
|
|
8747
|
+
});
|
|
8748
|
+
try {
|
|
8749
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
8750
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
8751
|
+
responseObject: {},
|
|
8752
|
+
responseHeaders: [
|
|
8753
|
+
{
|
|
8754
|
+
value: response.headers.get("opc-work-request-id"),
|
|
8755
|
+
key: "opcWorkRequestId",
|
|
8756
|
+
dataType: "string"
|
|
8757
|
+
},
|
|
8758
|
+
{
|
|
8759
|
+
value: response.headers.get("opc-request-id"),
|
|
8760
|
+
key: "opcRequestId",
|
|
8761
|
+
dataType: "string"
|
|
8762
|
+
}
|
|
8763
|
+
]
|
|
8764
|
+
});
|
|
8765
|
+
return sdkResponse;
|
|
8766
|
+
}
|
|
8767
|
+
catch (err) {
|
|
8768
|
+
throw err;
|
|
8769
|
+
}
|
|
8770
|
+
});
|
|
8771
|
+
}
|
|
8510
8772
|
/**
|
|
8511
8773
|
* Generates a downloadable discovery report. It's a prerequisite for the DownloadDiscoveryReport operation. Use this
|
|
8512
8774
|
* endpoint to generate a discovery report file and then use DownloadDiscoveryReport to download the generated file.
|
|
@@ -9809,35 +10071,35 @@ class DataSafeClient {
|
|
|
9809
10071
|
});
|
|
9810
10072
|
}
|
|
9811
10073
|
/**
|
|
9812
|
-
* Gets the details of the
|
|
10074
|
+
* Gets the details of the specified crypto assessment.
|
|
9813
10075
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
9814
|
-
* @param
|
|
9815
|
-
* @return
|
|
10076
|
+
* @param GetCryptoAssessmentRequest
|
|
10077
|
+
* @return GetCryptoAssessmentResponse
|
|
9816
10078
|
* @throws OciError when an error occurs
|
|
9817
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/
|
|
10079
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/GetCryptoAssessment.ts.html |here} to see how to use GetCryptoAssessment API.
|
|
9818
10080
|
*/
|
|
9819
|
-
|
|
10081
|
+
getCryptoAssessment(getCryptoAssessmentRequest) {
|
|
9820
10082
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9821
10083
|
if (this.logger)
|
|
9822
|
-
this.logger.debug("Calling operation DataSafeClient#
|
|
9823
|
-
const operationName = "
|
|
9824
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/
|
|
9825
|
-
const pathParams = {
|
|
9826
|
-
|
|
9827
|
-
"compartmentId": getDataSafeConfigurationRequest.compartmentId
|
|
10084
|
+
this.logger.debug("Calling operation DataSafeClient#getCryptoAssessment.");
|
|
10085
|
+
const operationName = "getCryptoAssessment";
|
|
10086
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GetCryptoAssessment";
|
|
10087
|
+
const pathParams = {
|
|
10088
|
+
"{cryptoAssessmentId}": getCryptoAssessmentRequest.cryptoAssessmentId
|
|
9828
10089
|
};
|
|
10090
|
+
const queryParams = {};
|
|
9829
10091
|
let headerParams = {
|
|
9830
10092
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
9831
|
-
"opc-request-id":
|
|
10093
|
+
"opc-request-id": getCryptoAssessmentRequest.opcRequestId
|
|
9832
10094
|
};
|
|
9833
10095
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
9834
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
10096
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getCryptoAssessmentRequest.retryConfiguration, specRetryConfiguration);
|
|
9835
10097
|
if (this.logger)
|
|
9836
10098
|
retrier.logger = this.logger;
|
|
9837
10099
|
const request = yield oci_common_2.composeRequest({
|
|
9838
10100
|
baseEndpoint: this._endpoint,
|
|
9839
10101
|
defaultHeaders: this._defaultHeaders,
|
|
9840
|
-
path: "/
|
|
10102
|
+
path: "/cryptoAssessments/{cryptoAssessmentId}",
|
|
9841
10103
|
method: "GET",
|
|
9842
10104
|
pathParams: pathParams,
|
|
9843
10105
|
headerParams: headerParams,
|
|
@@ -9848,18 +10110,18 @@ class DataSafeClient {
|
|
|
9848
10110
|
const sdkResponse = oci_common_2.composeResponse({
|
|
9849
10111
|
responseObject: {},
|
|
9850
10112
|
body: yield response.json(),
|
|
9851
|
-
bodyKey: "
|
|
9852
|
-
bodyModel: model.
|
|
9853
|
-
type: "model.
|
|
10113
|
+
bodyKey: "cryptoAssessment",
|
|
10114
|
+
bodyModel: model.CryptoAssessment,
|
|
10115
|
+
type: "model.CryptoAssessment",
|
|
9854
10116
|
responseHeaders: [
|
|
9855
10117
|
{
|
|
9856
|
-
value: response.headers.get("
|
|
9857
|
-
key: "
|
|
10118
|
+
value: response.headers.get("opc-request-id"),
|
|
10119
|
+
key: "opcRequestId",
|
|
9858
10120
|
dataType: "string"
|
|
9859
10121
|
},
|
|
9860
10122
|
{
|
|
9861
|
-
value: response.headers.get("
|
|
9862
|
-
key: "
|
|
10123
|
+
value: response.headers.get("etag"),
|
|
10124
|
+
key: "etag",
|
|
9863
10125
|
dataType: "string"
|
|
9864
10126
|
}
|
|
9865
10127
|
]
|
|
@@ -9872,35 +10134,40 @@ class DataSafeClient {
|
|
|
9872
10134
|
});
|
|
9873
10135
|
}
|
|
9874
10136
|
/**
|
|
9875
|
-
* Gets
|
|
10137
|
+
* Gets SQLNET.ORA parameter values and quantum-readiness evaluation for the specified crypto assessment.
|
|
9876
10138
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
9877
|
-
* @param
|
|
9878
|
-
* @return
|
|
10139
|
+
* @param GetCryptoAssessmentSqlnetParametersRequest
|
|
10140
|
+
* @return GetCryptoAssessmentSqlnetParametersResponse
|
|
9879
10141
|
* @throws OciError when an error occurs
|
|
9880
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/
|
|
10142
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/GetCryptoAssessmentSqlnetParameters.ts.html |here} to see how to use GetCryptoAssessmentSqlnetParameters API.
|
|
9881
10143
|
*/
|
|
9882
|
-
|
|
10144
|
+
getCryptoAssessmentSqlnetParameters(getCryptoAssessmentSqlnetParametersRequest) {
|
|
9883
10145
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9884
10146
|
if (this.logger)
|
|
9885
|
-
this.logger.debug("Calling operation DataSafeClient#
|
|
9886
|
-
const operationName = "
|
|
9887
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/
|
|
10147
|
+
this.logger.debug("Calling operation DataSafeClient#getCryptoAssessmentSqlnetParameters.");
|
|
10148
|
+
const operationName = "getCryptoAssessmentSqlnetParameters";
|
|
10149
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/GetCryptoAssessmentSqlnetParameters";
|
|
9888
10150
|
const pathParams = {
|
|
9889
|
-
"{
|
|
10151
|
+
"{cryptoAssessmentId}": getCryptoAssessmentSqlnetParametersRequest.cryptoAssessmentId
|
|
10152
|
+
};
|
|
10153
|
+
const queryParams = {
|
|
10154
|
+
"parameter": getCryptoAssessmentSqlnetParametersRequest.parameter,
|
|
10155
|
+
"quantumReadiness": getCryptoAssessmentSqlnetParametersRequest.quantumReadiness,
|
|
10156
|
+
"limit": getCryptoAssessmentSqlnetParametersRequest.limit,
|
|
10157
|
+
"page": getCryptoAssessmentSqlnetParametersRequest.page
|
|
9890
10158
|
};
|
|
9891
|
-
const queryParams = {};
|
|
9892
10159
|
let headerParams = {
|
|
9893
10160
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
9894
|
-
"opc-request-id":
|
|
10161
|
+
"opc-request-id": getCryptoAssessmentSqlnetParametersRequest.opcRequestId
|
|
9895
10162
|
};
|
|
9896
10163
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
9897
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
10164
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getCryptoAssessmentSqlnetParametersRequest.retryConfiguration, specRetryConfiguration);
|
|
9898
10165
|
if (this.logger)
|
|
9899
10166
|
retrier.logger = this.logger;
|
|
9900
10167
|
const request = yield oci_common_2.composeRequest({
|
|
9901
10168
|
baseEndpoint: this._endpoint,
|
|
9902
10169
|
defaultHeaders: this._defaultHeaders,
|
|
9903
|
-
path: "/
|
|
10170
|
+
path: "/cryptoAssessments/{cryptoAssessmentId}/sqlnetParameters",
|
|
9904
10171
|
method: "GET",
|
|
9905
10172
|
pathParams: pathParams,
|
|
9906
10173
|
headerParams: headerParams,
|
|
@@ -9911,13 +10178,18 @@ class DataSafeClient {
|
|
|
9911
10178
|
const sdkResponse = oci_common_2.composeResponse({
|
|
9912
10179
|
responseObject: {},
|
|
9913
10180
|
body: yield response.json(),
|
|
9914
|
-
bodyKey: "
|
|
9915
|
-
bodyModel: model.
|
|
9916
|
-
type: "model.
|
|
10181
|
+
bodyKey: "cryptoAssessmentSqlnetParameters",
|
|
10182
|
+
bodyModel: model.CryptoAssessmentSqlnetParameters,
|
|
10183
|
+
type: "model.CryptoAssessmentSqlnetParameters",
|
|
9917
10184
|
responseHeaders: [
|
|
9918
10185
|
{
|
|
9919
|
-
value: response.headers.get("
|
|
9920
|
-
key: "
|
|
10186
|
+
value: response.headers.get("opc-next-page"),
|
|
10187
|
+
key: "opcNextPage",
|
|
10188
|
+
dataType: "string"
|
|
10189
|
+
},
|
|
10190
|
+
{
|
|
10191
|
+
value: response.headers.get("opc-prev-page"),
|
|
10192
|
+
key: "opcPrevPage",
|
|
9921
10193
|
dataType: "string"
|
|
9922
10194
|
},
|
|
9923
10195
|
{
|
|
@@ -9935,7 +10207,133 @@ class DataSafeClient {
|
|
|
9935
10207
|
});
|
|
9936
10208
|
}
|
|
9937
10209
|
/**
|
|
9938
|
-
* Gets
|
|
10210
|
+
* Gets the details of the Data Safe configuration.
|
|
10211
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
10212
|
+
* @param GetDataSafeConfigurationRequest
|
|
10213
|
+
* @return GetDataSafeConfigurationResponse
|
|
10214
|
+
* @throws OciError when an error occurs
|
|
10215
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/GetDataSafeConfiguration.ts.html |here} to see how to use GetDataSafeConfiguration API.
|
|
10216
|
+
*/
|
|
10217
|
+
getDataSafeConfiguration(getDataSafeConfigurationRequest) {
|
|
10218
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10219
|
+
if (this.logger)
|
|
10220
|
+
this.logger.debug("Calling operation DataSafeClient#getDataSafeConfiguration.");
|
|
10221
|
+
const operationName = "getDataSafeConfiguration";
|
|
10222
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DataSafeConfiguration/GetDataSafeConfiguration";
|
|
10223
|
+
const pathParams = {};
|
|
10224
|
+
const queryParams = {
|
|
10225
|
+
"compartmentId": getDataSafeConfigurationRequest.compartmentId
|
|
10226
|
+
};
|
|
10227
|
+
let headerParams = {
|
|
10228
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
10229
|
+
"opc-request-id": getDataSafeConfigurationRequest.opcRequestId
|
|
10230
|
+
};
|
|
10231
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
10232
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDataSafeConfigurationRequest.retryConfiguration, specRetryConfiguration);
|
|
10233
|
+
if (this.logger)
|
|
10234
|
+
retrier.logger = this.logger;
|
|
10235
|
+
const request = yield oci_common_2.composeRequest({
|
|
10236
|
+
baseEndpoint: this._endpoint,
|
|
10237
|
+
defaultHeaders: this._defaultHeaders,
|
|
10238
|
+
path: "/configuration",
|
|
10239
|
+
method: "GET",
|
|
10240
|
+
pathParams: pathParams,
|
|
10241
|
+
headerParams: headerParams,
|
|
10242
|
+
queryParams: queryParams
|
|
10243
|
+
});
|
|
10244
|
+
try {
|
|
10245
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
10246
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
10247
|
+
responseObject: {},
|
|
10248
|
+
body: yield response.json(),
|
|
10249
|
+
bodyKey: "dataSafeConfiguration",
|
|
10250
|
+
bodyModel: model.DataSafeConfiguration,
|
|
10251
|
+
type: "model.DataSafeConfiguration",
|
|
10252
|
+
responseHeaders: [
|
|
10253
|
+
{
|
|
10254
|
+
value: response.headers.get("etag"),
|
|
10255
|
+
key: "etag",
|
|
10256
|
+
dataType: "string"
|
|
10257
|
+
},
|
|
10258
|
+
{
|
|
10259
|
+
value: response.headers.get("opc-request-id"),
|
|
10260
|
+
key: "opcRequestId",
|
|
10261
|
+
dataType: "string"
|
|
10262
|
+
}
|
|
10263
|
+
]
|
|
10264
|
+
});
|
|
10265
|
+
return sdkResponse;
|
|
10266
|
+
}
|
|
10267
|
+
catch (err) {
|
|
10268
|
+
throw err;
|
|
10269
|
+
}
|
|
10270
|
+
});
|
|
10271
|
+
}
|
|
10272
|
+
/**
|
|
10273
|
+
* Gets the details of the specified Data Safe private endpoint.
|
|
10274
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
10275
|
+
* @param GetDataSafePrivateEndpointRequest
|
|
10276
|
+
* @return GetDataSafePrivateEndpointResponse
|
|
10277
|
+
* @throws OciError when an error occurs
|
|
10278
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/GetDataSafePrivateEndpoint.ts.html |here} to see how to use GetDataSafePrivateEndpoint API.
|
|
10279
|
+
*/
|
|
10280
|
+
getDataSafePrivateEndpoint(getDataSafePrivateEndpointRequest) {
|
|
10281
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
10282
|
+
if (this.logger)
|
|
10283
|
+
this.logger.debug("Calling operation DataSafeClient#getDataSafePrivateEndpoint.");
|
|
10284
|
+
const operationName = "getDataSafePrivateEndpoint";
|
|
10285
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/DataSafePrivateEndpoint/GetDataSafePrivateEndpoint";
|
|
10286
|
+
const pathParams = {
|
|
10287
|
+
"{dataSafePrivateEndpointId}": getDataSafePrivateEndpointRequest.dataSafePrivateEndpointId
|
|
10288
|
+
};
|
|
10289
|
+
const queryParams = {};
|
|
10290
|
+
let headerParams = {
|
|
10291
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
10292
|
+
"opc-request-id": getDataSafePrivateEndpointRequest.opcRequestId
|
|
10293
|
+
};
|
|
10294
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
10295
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getDataSafePrivateEndpointRequest.retryConfiguration, specRetryConfiguration);
|
|
10296
|
+
if (this.logger)
|
|
10297
|
+
retrier.logger = this.logger;
|
|
10298
|
+
const request = yield oci_common_2.composeRequest({
|
|
10299
|
+
baseEndpoint: this._endpoint,
|
|
10300
|
+
defaultHeaders: this._defaultHeaders,
|
|
10301
|
+
path: "/dataSafePrivateEndpoints/{dataSafePrivateEndpointId}",
|
|
10302
|
+
method: "GET",
|
|
10303
|
+
pathParams: pathParams,
|
|
10304
|
+
headerParams: headerParams,
|
|
10305
|
+
queryParams: queryParams
|
|
10306
|
+
});
|
|
10307
|
+
try {
|
|
10308
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
10309
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
10310
|
+
responseObject: {},
|
|
10311
|
+
body: yield response.json(),
|
|
10312
|
+
bodyKey: "dataSafePrivateEndpoint",
|
|
10313
|
+
bodyModel: model.DataSafePrivateEndpoint,
|
|
10314
|
+
type: "model.DataSafePrivateEndpoint",
|
|
10315
|
+
responseHeaders: [
|
|
10316
|
+
{
|
|
10317
|
+
value: response.headers.get("etag"),
|
|
10318
|
+
key: "etag",
|
|
10319
|
+
dataType: "string"
|
|
10320
|
+
},
|
|
10321
|
+
{
|
|
10322
|
+
value: response.headers.get("opc-request-id"),
|
|
10323
|
+
key: "opcRequestId",
|
|
10324
|
+
dataType: "string"
|
|
10325
|
+
}
|
|
10326
|
+
]
|
|
10327
|
+
});
|
|
10328
|
+
return sdkResponse;
|
|
10329
|
+
}
|
|
10330
|
+
catch (err) {
|
|
10331
|
+
throw err;
|
|
10332
|
+
}
|
|
10333
|
+
});
|
|
10334
|
+
}
|
|
10335
|
+
/**
|
|
10336
|
+
* Gets a database security configuration by identifier.
|
|
9939
10337
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
9940
10338
|
* @param GetDatabaseSecurityConfigRequest
|
|
9941
10339
|
* @return GetDatabaseSecurityConfigResponse
|
|
@@ -14151,41 +14549,892 @@ class DataSafeClient {
|
|
|
14151
14549
|
* @param ListChecksRequest
|
|
14152
14550
|
* @return ListChecksResponse
|
|
14153
14551
|
* @throws OciError when an error occurs
|
|
14154
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ListChecks.ts.html |here} to see how to use ListChecks API.
|
|
14552
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ListChecks.ts.html |here} to see how to use ListChecks API.
|
|
14553
|
+
*/
|
|
14554
|
+
listChecks(listChecksRequest) {
|
|
14555
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14556
|
+
if (this.logger)
|
|
14557
|
+
this.logger.debug("Calling operation DataSafeClient#listChecks.");
|
|
14558
|
+
const operationName = "listChecks";
|
|
14559
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/SecurityAssessment/ListChecks";
|
|
14560
|
+
const pathParams = {
|
|
14561
|
+
"{securityAssessmentId}": listChecksRequest.securityAssessmentId
|
|
14562
|
+
};
|
|
14563
|
+
const queryParams = {
|
|
14564
|
+
"limit": listChecksRequest.limit,
|
|
14565
|
+
"page": listChecksRequest.page,
|
|
14566
|
+
"sortOrder": listChecksRequest.sortOrder,
|
|
14567
|
+
"sortBy": listChecksRequest.sortBy,
|
|
14568
|
+
"suggestedSeverity": listChecksRequest.suggestedSeverity,
|
|
14569
|
+
"containsSeverity": listChecksRequest.containsSeverity,
|
|
14570
|
+
"containsReferences": listChecksRequest.containsReferences,
|
|
14571
|
+
"compartmentIdInSubtree": listChecksRequest.compartmentIdInSubtree,
|
|
14572
|
+
"accessLevel": listChecksRequest.accessLevel,
|
|
14573
|
+
"key": listChecksRequest.key
|
|
14574
|
+
};
|
|
14575
|
+
let headerParams = {
|
|
14576
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
14577
|
+
"opc-request-id": listChecksRequest.opcRequestId
|
|
14578
|
+
};
|
|
14579
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
14580
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listChecksRequest.retryConfiguration, specRetryConfiguration);
|
|
14581
|
+
if (this.logger)
|
|
14582
|
+
retrier.logger = this.logger;
|
|
14583
|
+
const request = yield oci_common_2.composeRequest({
|
|
14584
|
+
baseEndpoint: this._endpoint,
|
|
14585
|
+
defaultHeaders: this._defaultHeaders,
|
|
14586
|
+
path: "/securityAssessments/{securityAssessmentId}/checks",
|
|
14587
|
+
method: "GET",
|
|
14588
|
+
pathParams: pathParams,
|
|
14589
|
+
headerParams: headerParams,
|
|
14590
|
+
queryParams: queryParams
|
|
14591
|
+
});
|
|
14592
|
+
try {
|
|
14593
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
14594
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
14595
|
+
responseObject: {},
|
|
14596
|
+
body: yield response.json(),
|
|
14597
|
+
bodyKey: "items",
|
|
14598
|
+
bodyModel: model.CheckSummary,
|
|
14599
|
+
type: "Array<model.CheckSummary>",
|
|
14600
|
+
responseHeaders: [
|
|
14601
|
+
{
|
|
14602
|
+
value: response.headers.get("opc-request-id"),
|
|
14603
|
+
key: "opcRequestId",
|
|
14604
|
+
dataType: "string"
|
|
14605
|
+
},
|
|
14606
|
+
{
|
|
14607
|
+
value: response.headers.get("opc-next-page"),
|
|
14608
|
+
key: "opcNextPage",
|
|
14609
|
+
dataType: "string"
|
|
14610
|
+
},
|
|
14611
|
+
{
|
|
14612
|
+
value: response.headers.get("opc-prev-page"),
|
|
14613
|
+
key: "opcPrevPage",
|
|
14614
|
+
dataType: "string"
|
|
14615
|
+
}
|
|
14616
|
+
]
|
|
14617
|
+
});
|
|
14618
|
+
return sdkResponse;
|
|
14619
|
+
}
|
|
14620
|
+
catch (err) {
|
|
14621
|
+
throw err;
|
|
14622
|
+
}
|
|
14623
|
+
});
|
|
14624
|
+
}
|
|
14625
|
+
/**
|
|
14626
|
+
* NOTE: This function is deprecated in favor of listChecksRecordIterator function.
|
|
14627
|
+
* Creates a new async iterator which will iterate over the models.CheckSummary objects
|
|
14628
|
+
* contained in responses from the listChecks operation. This iterator will fetch more data from the
|
|
14629
|
+
* server as needed.
|
|
14630
|
+
*
|
|
14631
|
+
* @param request a request which can be sent to the service operation
|
|
14632
|
+
*/
|
|
14633
|
+
listAllChecks(request) {
|
|
14634
|
+
return oci_common_1.paginateRecords(request, req => this.listChecks(req));
|
|
14635
|
+
}
|
|
14636
|
+
/**
|
|
14637
|
+
* NOTE: This function is deprecated in favor of listChecksResponseIterator function.
|
|
14638
|
+
* Creates a new async iterator which will iterate over the responses received from the listChecks operation. This iterator
|
|
14639
|
+
* will fetch more data from the server as needed.
|
|
14640
|
+
*
|
|
14641
|
+
* @param request a request which can be sent to the service operation
|
|
14642
|
+
*/
|
|
14643
|
+
listAllChecksResponses(request) {
|
|
14644
|
+
return oci_common_1.paginateResponses(request, req => this.listChecks(req));
|
|
14645
|
+
}
|
|
14646
|
+
/**
|
|
14647
|
+
* Creates a new async iterator which will iterate over the models.CheckSummary objects
|
|
14648
|
+
* contained in responses from the listChecks operation. This iterator will fetch more data from the
|
|
14649
|
+
* server as needed.
|
|
14650
|
+
*
|
|
14651
|
+
* @param request a request which can be sent to the service operation
|
|
14652
|
+
*/
|
|
14653
|
+
listChecksRecordIterator(request) {
|
|
14654
|
+
return oci_common_1.paginateRecords(request, req => this.listChecks(req));
|
|
14655
|
+
}
|
|
14656
|
+
/**
|
|
14657
|
+
* Creates a new async iterator which will iterate over the responses received from the listChecks operation. This iterator
|
|
14658
|
+
* will fetch more data from the server as needed.
|
|
14659
|
+
*
|
|
14660
|
+
* @param request a request which can be sent to the service operation
|
|
14661
|
+
*/
|
|
14662
|
+
listChecksResponseIterator(request) {
|
|
14663
|
+
return oci_common_1.paginateResponses(request, req => this.listChecks(req));
|
|
14664
|
+
}
|
|
14665
|
+
/**
|
|
14666
|
+
* Gets a list of all collected audit volume data points.
|
|
14667
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
14668
|
+
* @param ListCollectedAuditVolumesRequest
|
|
14669
|
+
* @return ListCollectedAuditVolumesResponse
|
|
14670
|
+
* @throws OciError when an error occurs
|
|
14671
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ListCollectedAuditVolumes.ts.html |here} to see how to use ListCollectedAuditVolumes API.
|
|
14672
|
+
*/
|
|
14673
|
+
listCollectedAuditVolumes(listCollectedAuditVolumesRequest) {
|
|
14674
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14675
|
+
if (this.logger)
|
|
14676
|
+
this.logger.debug("Calling operation DataSafeClient#listCollectedAuditVolumes.");
|
|
14677
|
+
const operationName = "listCollectedAuditVolumes";
|
|
14678
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/AuditProfile/ListCollectedAuditVolumes";
|
|
14679
|
+
const pathParams = {
|
|
14680
|
+
"{auditProfileId}": listCollectedAuditVolumesRequest.auditProfileId
|
|
14681
|
+
};
|
|
14682
|
+
const queryParams = {
|
|
14683
|
+
"workRequestId": listCollectedAuditVolumesRequest.workRequestId,
|
|
14684
|
+
"monthInConsiderationGreaterThan": listCollectedAuditVolumesRequest.monthInConsiderationGreaterThan,
|
|
14685
|
+
"monthInConsiderationLessThan": listCollectedAuditVolumesRequest.monthInConsiderationLessThan,
|
|
14686
|
+
"limit": listCollectedAuditVolumesRequest.limit,
|
|
14687
|
+
"page": listCollectedAuditVolumesRequest.page,
|
|
14688
|
+
"sortOrder": listCollectedAuditVolumesRequest.sortOrder,
|
|
14689
|
+
"sortBy": listCollectedAuditVolumesRequest.sortBy
|
|
14690
|
+
};
|
|
14691
|
+
let headerParams = {
|
|
14692
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
14693
|
+
"opc-request-id": listCollectedAuditVolumesRequest.opcRequestId
|
|
14694
|
+
};
|
|
14695
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
14696
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCollectedAuditVolumesRequest.retryConfiguration, specRetryConfiguration);
|
|
14697
|
+
if (this.logger)
|
|
14698
|
+
retrier.logger = this.logger;
|
|
14699
|
+
const request = yield oci_common_2.composeRequest({
|
|
14700
|
+
baseEndpoint: this._endpoint,
|
|
14701
|
+
defaultHeaders: this._defaultHeaders,
|
|
14702
|
+
path: "/auditProfiles/{auditProfileId}/collectedAuditVolumes",
|
|
14703
|
+
method: "GET",
|
|
14704
|
+
pathParams: pathParams,
|
|
14705
|
+
headerParams: headerParams,
|
|
14706
|
+
queryParams: queryParams
|
|
14707
|
+
});
|
|
14708
|
+
try {
|
|
14709
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
14710
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
14711
|
+
responseObject: {},
|
|
14712
|
+
body: yield response.json(),
|
|
14713
|
+
bodyKey: "collectedAuditVolumeCollection",
|
|
14714
|
+
bodyModel: model.CollectedAuditVolumeCollection,
|
|
14715
|
+
type: "model.CollectedAuditVolumeCollection",
|
|
14716
|
+
responseHeaders: [
|
|
14717
|
+
{
|
|
14718
|
+
value: response.headers.get("opc-request-id"),
|
|
14719
|
+
key: "opcRequestId",
|
|
14720
|
+
dataType: "string"
|
|
14721
|
+
},
|
|
14722
|
+
{
|
|
14723
|
+
value: response.headers.get("opc-next-page"),
|
|
14724
|
+
key: "opcNextPage",
|
|
14725
|
+
dataType: "string"
|
|
14726
|
+
},
|
|
14727
|
+
{
|
|
14728
|
+
value: response.headers.get("opc-prev-page"),
|
|
14729
|
+
key: "opcPrevPage",
|
|
14730
|
+
dataType: "string"
|
|
14731
|
+
}
|
|
14732
|
+
]
|
|
14733
|
+
});
|
|
14734
|
+
return sdkResponse;
|
|
14735
|
+
}
|
|
14736
|
+
catch (err) {
|
|
14737
|
+
throw err;
|
|
14738
|
+
}
|
|
14739
|
+
});
|
|
14740
|
+
}
|
|
14741
|
+
/**
|
|
14742
|
+
* Returns a list of column metadata objects.
|
|
14743
|
+
*
|
|
14744
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
14745
|
+
* @param ListColumnsRequest
|
|
14746
|
+
* @return ListColumnsResponse
|
|
14747
|
+
* @throws OciError when an error occurs
|
|
14748
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ListColumns.ts.html |here} to see how to use ListColumns API.
|
|
14749
|
+
*/
|
|
14750
|
+
listColumns(listColumnsRequest) {
|
|
14751
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14752
|
+
if (this.logger)
|
|
14753
|
+
this.logger.debug("Calling operation DataSafeClient#listColumns.");
|
|
14754
|
+
const operationName = "listColumns";
|
|
14755
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/TargetDatabase/ListColumns";
|
|
14756
|
+
const pathParams = {
|
|
14757
|
+
"{targetDatabaseId}": listColumnsRequest.targetDatabaseId
|
|
14758
|
+
};
|
|
14759
|
+
const queryParams = {
|
|
14760
|
+
"limit": listColumnsRequest.limit,
|
|
14761
|
+
"page": listColumnsRequest.page,
|
|
14762
|
+
"schemaName": listColumnsRequest.schemaName,
|
|
14763
|
+
"tableName": listColumnsRequest.tableName,
|
|
14764
|
+
"columnName": listColumnsRequest.columnName,
|
|
14765
|
+
"datatype": listColumnsRequest.datatype,
|
|
14766
|
+
"sortOrder": listColumnsRequest.sortOrder,
|
|
14767
|
+
"sortBy": listColumnsRequest.sortBy,
|
|
14768
|
+
"schemaNameContains": listColumnsRequest.schemaNameContains,
|
|
14769
|
+
"tableNameContains": listColumnsRequest.tableNameContains,
|
|
14770
|
+
"columnNameContains": listColumnsRequest.columnNameContains
|
|
14771
|
+
};
|
|
14772
|
+
let headerParams = {
|
|
14773
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
14774
|
+
"opc-request-id": listColumnsRequest.opcRequestId
|
|
14775
|
+
};
|
|
14776
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
14777
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listColumnsRequest.retryConfiguration, specRetryConfiguration);
|
|
14778
|
+
if (this.logger)
|
|
14779
|
+
retrier.logger = this.logger;
|
|
14780
|
+
const request = yield oci_common_2.composeRequest({
|
|
14781
|
+
baseEndpoint: this._endpoint,
|
|
14782
|
+
defaultHeaders: this._defaultHeaders,
|
|
14783
|
+
path: "/targetDatabases/{targetDatabaseId}/columns",
|
|
14784
|
+
method: "GET",
|
|
14785
|
+
pathParams: pathParams,
|
|
14786
|
+
headerParams: headerParams,
|
|
14787
|
+
queryParams: queryParams
|
|
14788
|
+
});
|
|
14789
|
+
try {
|
|
14790
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
14791
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
14792
|
+
responseObject: {},
|
|
14793
|
+
body: yield response.json(),
|
|
14794
|
+
bodyKey: "items",
|
|
14795
|
+
bodyModel: model.ColumnSummary,
|
|
14796
|
+
type: "Array<model.ColumnSummary>",
|
|
14797
|
+
responseHeaders: [
|
|
14798
|
+
{
|
|
14799
|
+
value: response.headers.get("opc-request-id"),
|
|
14800
|
+
key: "opcRequestId",
|
|
14801
|
+
dataType: "string"
|
|
14802
|
+
},
|
|
14803
|
+
{
|
|
14804
|
+
value: response.headers.get("opc-next-page"),
|
|
14805
|
+
key: "opcNextPage",
|
|
14806
|
+
dataType: "string"
|
|
14807
|
+
},
|
|
14808
|
+
{
|
|
14809
|
+
value: response.headers.get("opc-prev-page"),
|
|
14810
|
+
key: "opcPrevPage",
|
|
14811
|
+
dataType: "string"
|
|
14812
|
+
}
|
|
14813
|
+
]
|
|
14814
|
+
});
|
|
14815
|
+
return sdkResponse;
|
|
14816
|
+
}
|
|
14817
|
+
catch (err) {
|
|
14818
|
+
throw err;
|
|
14819
|
+
}
|
|
14820
|
+
});
|
|
14821
|
+
}
|
|
14822
|
+
/**
|
|
14823
|
+
* NOTE: This function is deprecated in favor of listColumnsRecordIterator function.
|
|
14824
|
+
* Creates a new async iterator which will iterate over the models.ColumnSummary objects
|
|
14825
|
+
* contained in responses from the listColumns operation. This iterator will fetch more data from the
|
|
14826
|
+
* server as needed.
|
|
14827
|
+
*
|
|
14828
|
+
* @param request a request which can be sent to the service operation
|
|
14829
|
+
*/
|
|
14830
|
+
listAllColumns(request) {
|
|
14831
|
+
return oci_common_1.paginateRecords(request, req => this.listColumns(req));
|
|
14832
|
+
}
|
|
14833
|
+
/**
|
|
14834
|
+
* NOTE: This function is deprecated in favor of listColumnsResponseIterator function.
|
|
14835
|
+
* Creates a new async iterator which will iterate over the responses received from the listColumns operation. This iterator
|
|
14836
|
+
* will fetch more data from the server as needed.
|
|
14837
|
+
*
|
|
14838
|
+
* @param request a request which can be sent to the service operation
|
|
14839
|
+
*/
|
|
14840
|
+
listAllColumnsResponses(request) {
|
|
14841
|
+
return oci_common_1.paginateResponses(request, req => this.listColumns(req));
|
|
14842
|
+
}
|
|
14843
|
+
/**
|
|
14844
|
+
* Creates a new async iterator which will iterate over the models.ColumnSummary objects
|
|
14845
|
+
* contained in responses from the listColumns operation. This iterator will fetch more data from the
|
|
14846
|
+
* server as needed.
|
|
14847
|
+
*
|
|
14848
|
+
* @param request a request which can be sent to the service operation
|
|
14849
|
+
*/
|
|
14850
|
+
listColumnsRecordIterator(request) {
|
|
14851
|
+
return oci_common_1.paginateRecords(request, req => this.listColumns(req));
|
|
14852
|
+
}
|
|
14853
|
+
/**
|
|
14854
|
+
* Creates a new async iterator which will iterate over the responses received from the listColumns operation. This iterator
|
|
14855
|
+
* will fetch more data from the server as needed.
|
|
14856
|
+
*
|
|
14857
|
+
* @param request a request which can be sent to the service operation
|
|
14858
|
+
*/
|
|
14859
|
+
listColumnsResponseIterator(request) {
|
|
14860
|
+
return oci_common_1.paginateResponses(request, req => this.listColumns(req));
|
|
14861
|
+
}
|
|
14862
|
+
/**
|
|
14863
|
+
* Gets backup set summaries across targets in a compartment. Use assessmentId to narrow results to one crypto assessment.
|
|
14864
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
14865
|
+
* @param ListCryptoAssessmentBackupSetsRequest
|
|
14866
|
+
* @return ListCryptoAssessmentBackupSetsResponse
|
|
14867
|
+
* @throws OciError when an error occurs
|
|
14868
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ListCryptoAssessmentBackupSets.ts.html |here} to see how to use ListCryptoAssessmentBackupSets API.
|
|
14869
|
+
*/
|
|
14870
|
+
listCryptoAssessmentBackupSets(listCryptoAssessmentBackupSetsRequest) {
|
|
14871
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14872
|
+
if (this.logger)
|
|
14873
|
+
this.logger.debug("Calling operation DataSafeClient#listCryptoAssessmentBackupSets.");
|
|
14874
|
+
const operationName = "listCryptoAssessmentBackupSets";
|
|
14875
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentBackupSets";
|
|
14876
|
+
const pathParams = {};
|
|
14877
|
+
const queryParams = {
|
|
14878
|
+
"compartmentId": listCryptoAssessmentBackupSetsRequest.compartmentId,
|
|
14879
|
+
"compartmentIdInSubtree": listCryptoAssessmentBackupSetsRequest.compartmentIdInSubtree,
|
|
14880
|
+
"accessLevel": listCryptoAssessmentBackupSetsRequest.accessLevel,
|
|
14881
|
+
"assessmentId": listCryptoAssessmentBackupSetsRequest.assessmentId,
|
|
14882
|
+
"assessmentType": listCryptoAssessmentBackupSetsRequest.assessmentType,
|
|
14883
|
+
"targetId": listCryptoAssessmentBackupSetsRequest.targetId,
|
|
14884
|
+
"targetIds": listCryptoAssessmentBackupSetsRequest.targetIds,
|
|
14885
|
+
"backupSetKey": listCryptoAssessmentBackupSetsRequest.backupSetKey,
|
|
14886
|
+
"isEncrypted": listCryptoAssessmentBackupSetsRequest.isEncrypted,
|
|
14887
|
+
"sortBy": listCryptoAssessmentBackupSetsRequest.sortBy,
|
|
14888
|
+
"sortOrder": listCryptoAssessmentBackupSetsRequest.sortOrder,
|
|
14889
|
+
"limit": listCryptoAssessmentBackupSetsRequest.limit,
|
|
14890
|
+
"page": listCryptoAssessmentBackupSetsRequest.page
|
|
14891
|
+
};
|
|
14892
|
+
let headerParams = {
|
|
14893
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
14894
|
+
"opc-request-id": listCryptoAssessmentBackupSetsRequest.opcRequestId
|
|
14895
|
+
};
|
|
14896
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
14897
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCryptoAssessmentBackupSetsRequest.retryConfiguration, specRetryConfiguration);
|
|
14898
|
+
if (this.logger)
|
|
14899
|
+
retrier.logger = this.logger;
|
|
14900
|
+
const request = yield oci_common_2.composeRequest({
|
|
14901
|
+
baseEndpoint: this._endpoint,
|
|
14902
|
+
defaultHeaders: this._defaultHeaders,
|
|
14903
|
+
path: "/cryptoAssessments/backupSets",
|
|
14904
|
+
method: "GET",
|
|
14905
|
+
pathParams: pathParams,
|
|
14906
|
+
headerParams: headerParams,
|
|
14907
|
+
queryParams: queryParams
|
|
14908
|
+
});
|
|
14909
|
+
try {
|
|
14910
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
14911
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
14912
|
+
responseObject: {},
|
|
14913
|
+
body: yield response.json(),
|
|
14914
|
+
bodyKey: "cryptoAssessmentBackupSetCollection",
|
|
14915
|
+
bodyModel: model.CryptoAssessmentBackupSetCollection,
|
|
14916
|
+
type: "model.CryptoAssessmentBackupSetCollection",
|
|
14917
|
+
responseHeaders: [
|
|
14918
|
+
{
|
|
14919
|
+
value: response.headers.get("opc-request-id"),
|
|
14920
|
+
key: "opcRequestId",
|
|
14921
|
+
dataType: "string"
|
|
14922
|
+
},
|
|
14923
|
+
{
|
|
14924
|
+
value: response.headers.get("opc-next-page"),
|
|
14925
|
+
key: "opcNextPage",
|
|
14926
|
+
dataType: "string"
|
|
14927
|
+
},
|
|
14928
|
+
{
|
|
14929
|
+
value: response.headers.get("opc-prev-page"),
|
|
14930
|
+
key: "opcPrevPage",
|
|
14931
|
+
dataType: "string"
|
|
14932
|
+
}
|
|
14933
|
+
]
|
|
14934
|
+
});
|
|
14935
|
+
return sdkResponse;
|
|
14936
|
+
}
|
|
14937
|
+
catch (err) {
|
|
14938
|
+
throw err;
|
|
14939
|
+
}
|
|
14940
|
+
});
|
|
14941
|
+
}
|
|
14942
|
+
/**
|
|
14943
|
+
* Lists the CBOM items for the specified crypto assessment.
|
|
14944
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
14945
|
+
* @param ListCryptoAssessmentCbomItemsRequest
|
|
14946
|
+
* @return ListCryptoAssessmentCbomItemsResponse
|
|
14947
|
+
* @throws OciError when an error occurs
|
|
14948
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ListCryptoAssessmentCbomItems.ts.html |here} to see how to use ListCryptoAssessmentCbomItems API.
|
|
14949
|
+
*/
|
|
14950
|
+
listCryptoAssessmentCbomItems(listCryptoAssessmentCbomItemsRequest) {
|
|
14951
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14952
|
+
if (this.logger)
|
|
14953
|
+
this.logger.debug("Calling operation DataSafeClient#listCryptoAssessmentCbomItems.");
|
|
14954
|
+
const operationName = "listCryptoAssessmentCbomItems";
|
|
14955
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentCbomItems";
|
|
14956
|
+
const pathParams = {
|
|
14957
|
+
"{cryptoAssessmentId}": listCryptoAssessmentCbomItemsRequest.cryptoAssessmentId
|
|
14958
|
+
};
|
|
14959
|
+
const queryParams = {};
|
|
14960
|
+
let headerParams = {
|
|
14961
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
14962
|
+
"opc-request-id": listCryptoAssessmentCbomItemsRequest.opcRequestId
|
|
14963
|
+
};
|
|
14964
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
14965
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCryptoAssessmentCbomItemsRequest.retryConfiguration, specRetryConfiguration);
|
|
14966
|
+
if (this.logger)
|
|
14967
|
+
retrier.logger = this.logger;
|
|
14968
|
+
const request = yield oci_common_2.composeRequest({
|
|
14969
|
+
baseEndpoint: this._endpoint,
|
|
14970
|
+
defaultHeaders: this._defaultHeaders,
|
|
14971
|
+
path: "/cryptoAssessments/{cryptoAssessmentId}/cbomItems",
|
|
14972
|
+
method: "GET",
|
|
14973
|
+
pathParams: pathParams,
|
|
14974
|
+
headerParams: headerParams,
|
|
14975
|
+
queryParams: queryParams
|
|
14976
|
+
});
|
|
14977
|
+
try {
|
|
14978
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
14979
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
14980
|
+
responseObject: {},
|
|
14981
|
+
body: yield response.json(),
|
|
14982
|
+
bodyKey: "cryptoAssessmentCbomItemCollection",
|
|
14983
|
+
bodyModel: model.CryptoAssessmentCbomItemCollection,
|
|
14984
|
+
type: "model.CryptoAssessmentCbomItemCollection",
|
|
14985
|
+
responseHeaders: [
|
|
14986
|
+
{
|
|
14987
|
+
value: response.headers.get("opc-request-id"),
|
|
14988
|
+
key: "opcRequestId",
|
|
14989
|
+
dataType: "string"
|
|
14990
|
+
}
|
|
14991
|
+
]
|
|
14992
|
+
});
|
|
14993
|
+
return sdkResponse;
|
|
14994
|
+
}
|
|
14995
|
+
catch (err) {
|
|
14996
|
+
throw err;
|
|
14997
|
+
}
|
|
14998
|
+
});
|
|
14999
|
+
}
|
|
15000
|
+
/**
|
|
15001
|
+
* Lists certificates discovered across targets in a compartment, including target, wallet location, issuer, subject, validity window, expiry bucket, public key type, and status so expiring or weak certificates can be identified and prioritized.
|
|
15002
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
15003
|
+
* @param ListCryptoAssessmentCertificatesRequest
|
|
15004
|
+
* @return ListCryptoAssessmentCertificatesResponse
|
|
15005
|
+
* @throws OciError when an error occurs
|
|
15006
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ListCryptoAssessmentCertificates.ts.html |here} to see how to use ListCryptoAssessmentCertificates API.
|
|
15007
|
+
*/
|
|
15008
|
+
listCryptoAssessmentCertificates(listCryptoAssessmentCertificatesRequest) {
|
|
15009
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15010
|
+
if (this.logger)
|
|
15011
|
+
this.logger.debug("Calling operation DataSafeClient#listCryptoAssessmentCertificates.");
|
|
15012
|
+
const operationName = "listCryptoAssessmentCertificates";
|
|
15013
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentCertificates";
|
|
15014
|
+
const pathParams = {};
|
|
15015
|
+
const queryParams = {
|
|
15016
|
+
"compartmentId": listCryptoAssessmentCertificatesRequest.compartmentId,
|
|
15017
|
+
"compartmentIdInSubtree": listCryptoAssessmentCertificatesRequest.compartmentIdInSubtree,
|
|
15018
|
+
"accessLevel": listCryptoAssessmentCertificatesRequest.accessLevel,
|
|
15019
|
+
"assessmentId": listCryptoAssessmentCertificatesRequest.assessmentId,
|
|
15020
|
+
"assessmentType": listCryptoAssessmentCertificatesRequest.assessmentType,
|
|
15021
|
+
"targetId": listCryptoAssessmentCertificatesRequest.targetId,
|
|
15022
|
+
"targetIds": listCryptoAssessmentCertificatesRequest.targetIds,
|
|
15023
|
+
"certificateType": listCryptoAssessmentCertificatesRequest.certificateType,
|
|
15024
|
+
"status": listCryptoAssessmentCertificatesRequest.status,
|
|
15025
|
+
"publicKeyType": listCryptoAssessmentCertificatesRequest.publicKeyType,
|
|
15026
|
+
"signatureAlgorithm": listCryptoAssessmentCertificatesRequest.signatureAlgorithm,
|
|
15027
|
+
"expiryBucket": listCryptoAssessmentCertificatesRequest.expiryBucket,
|
|
15028
|
+
"daysToExpiry": listCryptoAssessmentCertificatesRequest.daysToExpiry,
|
|
15029
|
+
"sortBy": listCryptoAssessmentCertificatesRequest.sortBy,
|
|
15030
|
+
"sortOrder": listCryptoAssessmentCertificatesRequest.sortOrder,
|
|
15031
|
+
"limit": listCryptoAssessmentCertificatesRequest.limit,
|
|
15032
|
+
"page": listCryptoAssessmentCertificatesRequest.page
|
|
15033
|
+
};
|
|
15034
|
+
let headerParams = {
|
|
15035
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
15036
|
+
"opc-request-id": listCryptoAssessmentCertificatesRequest.opcRequestId
|
|
15037
|
+
};
|
|
15038
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
15039
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCryptoAssessmentCertificatesRequest.retryConfiguration, specRetryConfiguration);
|
|
15040
|
+
if (this.logger)
|
|
15041
|
+
retrier.logger = this.logger;
|
|
15042
|
+
const request = yield oci_common_2.composeRequest({
|
|
15043
|
+
baseEndpoint: this._endpoint,
|
|
15044
|
+
defaultHeaders: this._defaultHeaders,
|
|
15045
|
+
path: "/cryptoAssessments/certificates",
|
|
15046
|
+
method: "GET",
|
|
15047
|
+
pathParams: pathParams,
|
|
15048
|
+
headerParams: headerParams,
|
|
15049
|
+
queryParams: queryParams
|
|
15050
|
+
});
|
|
15051
|
+
try {
|
|
15052
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
15053
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
15054
|
+
responseObject: {},
|
|
15055
|
+
body: yield response.json(),
|
|
15056
|
+
bodyKey: "cryptoAssessmentCertificateCollection",
|
|
15057
|
+
bodyModel: model.CryptoAssessmentCertificateCollection,
|
|
15058
|
+
type: "model.CryptoAssessmentCertificateCollection",
|
|
15059
|
+
responseHeaders: [
|
|
15060
|
+
{
|
|
15061
|
+
value: response.headers.get("opc-request-id"),
|
|
15062
|
+
key: "opcRequestId",
|
|
15063
|
+
dataType: "string"
|
|
15064
|
+
},
|
|
15065
|
+
{
|
|
15066
|
+
value: response.headers.get("opc-next-page"),
|
|
15067
|
+
key: "opcNextPage",
|
|
15068
|
+
dataType: "string"
|
|
15069
|
+
},
|
|
15070
|
+
{
|
|
15071
|
+
value: response.headers.get("opc-prev-page"),
|
|
15072
|
+
key: "opcPrevPage",
|
|
15073
|
+
dataType: "string"
|
|
15074
|
+
}
|
|
15075
|
+
]
|
|
15076
|
+
});
|
|
15077
|
+
return sdkResponse;
|
|
15078
|
+
}
|
|
15079
|
+
catch (err) {
|
|
15080
|
+
throw err;
|
|
15081
|
+
}
|
|
15082
|
+
});
|
|
15083
|
+
}
|
|
15084
|
+
/**
|
|
15085
|
+
* Lists findings in a compartment with the number of affected targets.
|
|
15086
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
15087
|
+
* @param ListCryptoAssessmentFindingAnalyticsRequest
|
|
15088
|
+
* @return ListCryptoAssessmentFindingAnalyticsResponse
|
|
15089
|
+
* @throws OciError when an error occurs
|
|
15090
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ListCryptoAssessmentFindingAnalytics.ts.html |here} to see how to use ListCryptoAssessmentFindingAnalytics API.
|
|
15091
|
+
*/
|
|
15092
|
+
listCryptoAssessmentFindingAnalytics(listCryptoAssessmentFindingAnalyticsRequest) {
|
|
15093
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15094
|
+
if (this.logger)
|
|
15095
|
+
this.logger.debug("Calling operation DataSafeClient#listCryptoAssessmentFindingAnalytics.");
|
|
15096
|
+
const operationName = "listCryptoAssessmentFindingAnalytics";
|
|
15097
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindingAnalytics";
|
|
15098
|
+
const pathParams = {};
|
|
15099
|
+
const queryParams = {
|
|
15100
|
+
"compartmentId": listCryptoAssessmentFindingAnalyticsRequest.compartmentId,
|
|
15101
|
+
"compartmentIdInSubtree": listCryptoAssessmentFindingAnalyticsRequest.compartmentIdInSubtree,
|
|
15102
|
+
"accessLevel": listCryptoAssessmentFindingAnalyticsRequest.accessLevel,
|
|
15103
|
+
"category": listCryptoAssessmentFindingAnalyticsRequest.category,
|
|
15104
|
+
"findingKey": listCryptoAssessmentFindingAnalyticsRequest.findingKey,
|
|
15105
|
+
"isQuantumReadinessCheck": listCryptoAssessmentFindingAnalyticsRequest.isQuantumReadinessCheck,
|
|
15106
|
+
"sortBy": listCryptoAssessmentFindingAnalyticsRequest.sortBy,
|
|
15107
|
+
"sortOrder": listCryptoAssessmentFindingAnalyticsRequest.sortOrder,
|
|
15108
|
+
"limit": listCryptoAssessmentFindingAnalyticsRequest.limit,
|
|
15109
|
+
"page": listCryptoAssessmentFindingAnalyticsRequest.page
|
|
15110
|
+
};
|
|
15111
|
+
let headerParams = {
|
|
15112
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
15113
|
+
"opc-request-id": listCryptoAssessmentFindingAnalyticsRequest.opcRequestId
|
|
15114
|
+
};
|
|
15115
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
15116
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCryptoAssessmentFindingAnalyticsRequest.retryConfiguration, specRetryConfiguration);
|
|
15117
|
+
if (this.logger)
|
|
15118
|
+
retrier.logger = this.logger;
|
|
15119
|
+
const request = yield oci_common_2.composeRequest({
|
|
15120
|
+
baseEndpoint: this._endpoint,
|
|
15121
|
+
defaultHeaders: this._defaultHeaders,
|
|
15122
|
+
path: "/cryptoAssessments/findingAnalytics",
|
|
15123
|
+
method: "GET",
|
|
15124
|
+
pathParams: pathParams,
|
|
15125
|
+
headerParams: headerParams,
|
|
15126
|
+
queryParams: queryParams
|
|
15127
|
+
});
|
|
15128
|
+
try {
|
|
15129
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
15130
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
15131
|
+
responseObject: {},
|
|
15132
|
+
body: yield response.json(),
|
|
15133
|
+
bodyKey: "cryptoAssessmentFindingAnalyticsCollection",
|
|
15134
|
+
bodyModel: model.CryptoAssessmentFindingAnalyticsCollection,
|
|
15135
|
+
type: "model.CryptoAssessmentFindingAnalyticsCollection",
|
|
15136
|
+
responseHeaders: [
|
|
15137
|
+
{
|
|
15138
|
+
value: response.headers.get("opc-request-id"),
|
|
15139
|
+
key: "opcRequestId",
|
|
15140
|
+
dataType: "string"
|
|
15141
|
+
},
|
|
15142
|
+
{
|
|
15143
|
+
value: response.headers.get("opc-next-page"),
|
|
15144
|
+
key: "opcNextPage",
|
|
15145
|
+
dataType: "string"
|
|
15146
|
+
},
|
|
15147
|
+
{
|
|
15148
|
+
value: response.headers.get("opc-prev-page"),
|
|
15149
|
+
key: "opcPrevPage",
|
|
15150
|
+
dataType: "string"
|
|
15151
|
+
}
|
|
15152
|
+
]
|
|
15153
|
+
});
|
|
15154
|
+
return sdkResponse;
|
|
15155
|
+
}
|
|
15156
|
+
catch (err) {
|
|
15157
|
+
throw err;
|
|
15158
|
+
}
|
|
15159
|
+
});
|
|
15160
|
+
}
|
|
15161
|
+
/**
|
|
15162
|
+
* For a selected finding, lists targets where it occurs in assessments.
|
|
15163
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
15164
|
+
* @param ListCryptoAssessmentFindingTargetsRequest
|
|
15165
|
+
* @return ListCryptoAssessmentFindingTargetsResponse
|
|
15166
|
+
* @throws OciError when an error occurs
|
|
15167
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ListCryptoAssessmentFindingTargets.ts.html |here} to see how to use ListCryptoAssessmentFindingTargets API.
|
|
15168
|
+
*/
|
|
15169
|
+
listCryptoAssessmentFindingTargets(listCryptoAssessmentFindingTargetsRequest) {
|
|
15170
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15171
|
+
if (this.logger)
|
|
15172
|
+
this.logger.debug("Calling operation DataSafeClient#listCryptoAssessmentFindingTargets.");
|
|
15173
|
+
const operationName = "listCryptoAssessmentFindingTargets";
|
|
15174
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindingTargets";
|
|
15175
|
+
const pathParams = {};
|
|
15176
|
+
const queryParams = {
|
|
15177
|
+
"compartmentId": listCryptoAssessmentFindingTargetsRequest.compartmentId,
|
|
15178
|
+
"findingKey": listCryptoAssessmentFindingTargetsRequest.findingKey,
|
|
15179
|
+
"assessmentType": listCryptoAssessmentFindingTargetsRequest.assessmentType,
|
|
15180
|
+
"targetId": listCryptoAssessmentFindingTargetsRequest.targetId,
|
|
15181
|
+
"targetIds": listCryptoAssessmentFindingTargetsRequest.targetIds,
|
|
15182
|
+
"status": listCryptoAssessmentFindingTargetsRequest.status,
|
|
15183
|
+
"isQuantumReadinessCheck": listCryptoAssessmentFindingTargetsRequest.isQuantumReadinessCheck,
|
|
15184
|
+
"sortBy": listCryptoAssessmentFindingTargetsRequest.sortBy,
|
|
15185
|
+
"sortOrder": listCryptoAssessmentFindingTargetsRequest.sortOrder,
|
|
15186
|
+
"compartmentIdInSubtree": listCryptoAssessmentFindingTargetsRequest.compartmentIdInSubtree,
|
|
15187
|
+
"accessLevel": listCryptoAssessmentFindingTargetsRequest.accessLevel,
|
|
15188
|
+
"limit": listCryptoAssessmentFindingTargetsRequest.limit,
|
|
15189
|
+
"page": listCryptoAssessmentFindingTargetsRequest.page
|
|
15190
|
+
};
|
|
15191
|
+
let headerParams = {
|
|
15192
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
15193
|
+
"opc-request-id": listCryptoAssessmentFindingTargetsRequest.opcRequestId
|
|
15194
|
+
};
|
|
15195
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
15196
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCryptoAssessmentFindingTargetsRequest.retryConfiguration, specRetryConfiguration);
|
|
15197
|
+
if (this.logger)
|
|
15198
|
+
retrier.logger = this.logger;
|
|
15199
|
+
const request = yield oci_common_2.composeRequest({
|
|
15200
|
+
baseEndpoint: this._endpoint,
|
|
15201
|
+
defaultHeaders: this._defaultHeaders,
|
|
15202
|
+
path: "/cryptoAssessments/findingTargets",
|
|
15203
|
+
method: "GET",
|
|
15204
|
+
pathParams: pathParams,
|
|
15205
|
+
headerParams: headerParams,
|
|
15206
|
+
queryParams: queryParams
|
|
15207
|
+
});
|
|
15208
|
+
try {
|
|
15209
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
15210
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
15211
|
+
responseObject: {},
|
|
15212
|
+
body: yield response.json(),
|
|
15213
|
+
bodyKey: "cryptoAssessmentFindingTargetCollection",
|
|
15214
|
+
bodyModel: model.CryptoAssessmentFindingTargetCollection,
|
|
15215
|
+
type: "model.CryptoAssessmentFindingTargetCollection",
|
|
15216
|
+
responseHeaders: [
|
|
15217
|
+
{
|
|
15218
|
+
value: response.headers.get("opc-request-id"),
|
|
15219
|
+
key: "opcRequestId",
|
|
15220
|
+
dataType: "string"
|
|
15221
|
+
},
|
|
15222
|
+
{
|
|
15223
|
+
value: response.headers.get("opc-next-page"),
|
|
15224
|
+
key: "opcNextPage",
|
|
15225
|
+
dataType: "string"
|
|
15226
|
+
},
|
|
15227
|
+
{
|
|
15228
|
+
value: response.headers.get("opc-prev-page"),
|
|
15229
|
+
key: "opcPrevPage",
|
|
15230
|
+
dataType: "string"
|
|
15231
|
+
}
|
|
15232
|
+
]
|
|
15233
|
+
});
|
|
15234
|
+
return sdkResponse;
|
|
15235
|
+
}
|
|
15236
|
+
catch (err) {
|
|
15237
|
+
throw err;
|
|
15238
|
+
}
|
|
15239
|
+
});
|
|
15240
|
+
}
|
|
15241
|
+
/**
|
|
15242
|
+
* Lists crypto deviation findings for the specified crypto assessment.
|
|
15243
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
15244
|
+
* @param ListCryptoAssessmentFindingsRequest
|
|
15245
|
+
* @return ListCryptoAssessmentFindingsResponse
|
|
15246
|
+
* @throws OciError when an error occurs
|
|
15247
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ListCryptoAssessmentFindings.ts.html |here} to see how to use ListCryptoAssessmentFindings API.
|
|
15248
|
+
*/
|
|
15249
|
+
listCryptoAssessmentFindings(listCryptoAssessmentFindingsRequest) {
|
|
15250
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15251
|
+
if (this.logger)
|
|
15252
|
+
this.logger.debug("Calling operation DataSafeClient#listCryptoAssessmentFindings.");
|
|
15253
|
+
const operationName = "listCryptoAssessmentFindings";
|
|
15254
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentFindings";
|
|
15255
|
+
const pathParams = {
|
|
15256
|
+
"{cryptoAssessmentId}": listCryptoAssessmentFindingsRequest.cryptoAssessmentId
|
|
15257
|
+
};
|
|
15258
|
+
const queryParams = {
|
|
15259
|
+
"findingKey": listCryptoAssessmentFindingsRequest.findingKey,
|
|
15260
|
+
"title": listCryptoAssessmentFindingsRequest.title,
|
|
15261
|
+
"category": listCryptoAssessmentFindingsRequest.category,
|
|
15262
|
+
"status": listCryptoAssessmentFindingsRequest.status,
|
|
15263
|
+
"isQuantumReadinessCheck": listCryptoAssessmentFindingsRequest.isQuantumReadinessCheck,
|
|
15264
|
+
"limit": listCryptoAssessmentFindingsRequest.limit,
|
|
15265
|
+
"page": listCryptoAssessmentFindingsRequest.page
|
|
15266
|
+
};
|
|
15267
|
+
let headerParams = {
|
|
15268
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
15269
|
+
"opc-request-id": listCryptoAssessmentFindingsRequest.opcRequestId
|
|
15270
|
+
};
|
|
15271
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
15272
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCryptoAssessmentFindingsRequest.retryConfiguration, specRetryConfiguration);
|
|
15273
|
+
if (this.logger)
|
|
15274
|
+
retrier.logger = this.logger;
|
|
15275
|
+
const request = yield oci_common_2.composeRequest({
|
|
15276
|
+
baseEndpoint: this._endpoint,
|
|
15277
|
+
defaultHeaders: this._defaultHeaders,
|
|
15278
|
+
path: "/cryptoAssessments/{cryptoAssessmentId}/findings",
|
|
15279
|
+
method: "GET",
|
|
15280
|
+
pathParams: pathParams,
|
|
15281
|
+
headerParams: headerParams,
|
|
15282
|
+
queryParams: queryParams
|
|
15283
|
+
});
|
|
15284
|
+
try {
|
|
15285
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
15286
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
15287
|
+
responseObject: {},
|
|
15288
|
+
body: yield response.json(),
|
|
15289
|
+
bodyKey: "cryptoAssessmentFindingCollection",
|
|
15290
|
+
bodyModel: model.CryptoAssessmentFindingCollection,
|
|
15291
|
+
type: "model.CryptoAssessmentFindingCollection",
|
|
15292
|
+
responseHeaders: [
|
|
15293
|
+
{
|
|
15294
|
+
value: response.headers.get("opc-request-id"),
|
|
15295
|
+
key: "opcRequestId",
|
|
15296
|
+
dataType: "string"
|
|
15297
|
+
},
|
|
15298
|
+
{
|
|
15299
|
+
value: response.headers.get("opc-next-page"),
|
|
15300
|
+
key: "opcNextPage",
|
|
15301
|
+
dataType: "string"
|
|
15302
|
+
}
|
|
15303
|
+
]
|
|
15304
|
+
});
|
|
15305
|
+
return sdkResponse;
|
|
15306
|
+
}
|
|
15307
|
+
catch (err) {
|
|
15308
|
+
throw err;
|
|
15309
|
+
}
|
|
15310
|
+
});
|
|
15311
|
+
}
|
|
15312
|
+
/**
|
|
15313
|
+
* Gets a paginated list of cryptographic keys across targets in a compartment. Use assessmentId to narrow results to one crypto assessment.
|
|
15314
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
15315
|
+
* @param ListCryptoAssessmentKeysRequest
|
|
15316
|
+
* @return ListCryptoAssessmentKeysResponse
|
|
15317
|
+
* @throws OciError when an error occurs
|
|
15318
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ListCryptoAssessmentKeys.ts.html |here} to see how to use ListCryptoAssessmentKeys API.
|
|
15319
|
+
*/
|
|
15320
|
+
listCryptoAssessmentKeys(listCryptoAssessmentKeysRequest) {
|
|
15321
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
15322
|
+
if (this.logger)
|
|
15323
|
+
this.logger.debug("Calling operation DataSafeClient#listCryptoAssessmentKeys.");
|
|
15324
|
+
const operationName = "listCryptoAssessmentKeys";
|
|
15325
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentKeys";
|
|
15326
|
+
const pathParams = {};
|
|
15327
|
+
const queryParams = {
|
|
15328
|
+
"compartmentId": listCryptoAssessmentKeysRequest.compartmentId,
|
|
15329
|
+
"compartmentIdInSubtree": listCryptoAssessmentKeysRequest.compartmentIdInSubtree,
|
|
15330
|
+
"accessLevel": listCryptoAssessmentKeysRequest.accessLevel,
|
|
15331
|
+
"assessmentId": listCryptoAssessmentKeysRequest.assessmentId,
|
|
15332
|
+
"assessmentType": listCryptoAssessmentKeysRequest.assessmentType,
|
|
15333
|
+
"targetId": listCryptoAssessmentKeysRequest.targetId,
|
|
15334
|
+
"targetIds": listCryptoAssessmentKeysRequest.targetIds,
|
|
15335
|
+
"feature": listCryptoAssessmentKeysRequest.feature,
|
|
15336
|
+
"keyId": listCryptoAssessmentKeysRequest.keyId,
|
|
15337
|
+
"keyType": listCryptoAssessmentKeysRequest.keyType,
|
|
15338
|
+
"keyManagerType": listCryptoAssessmentKeysRequest.keyManagerType,
|
|
15339
|
+
"sortBy": listCryptoAssessmentKeysRequest.sortBy,
|
|
15340
|
+
"sortOrder": listCryptoAssessmentKeysRequest.sortOrder,
|
|
15341
|
+
"limit": listCryptoAssessmentKeysRequest.limit,
|
|
15342
|
+
"page": listCryptoAssessmentKeysRequest.page
|
|
15343
|
+
};
|
|
15344
|
+
let headerParams = {
|
|
15345
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
15346
|
+
"opc-request-id": listCryptoAssessmentKeysRequest.opcRequestId
|
|
15347
|
+
};
|
|
15348
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
15349
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCryptoAssessmentKeysRequest.retryConfiguration, specRetryConfiguration);
|
|
15350
|
+
if (this.logger)
|
|
15351
|
+
retrier.logger = this.logger;
|
|
15352
|
+
const request = yield oci_common_2.composeRequest({
|
|
15353
|
+
baseEndpoint: this._endpoint,
|
|
15354
|
+
defaultHeaders: this._defaultHeaders,
|
|
15355
|
+
path: "/cryptoAssessments/keys",
|
|
15356
|
+
method: "GET",
|
|
15357
|
+
pathParams: pathParams,
|
|
15358
|
+
headerParams: headerParams,
|
|
15359
|
+
queryParams: queryParams
|
|
15360
|
+
});
|
|
15361
|
+
try {
|
|
15362
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
15363
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
15364
|
+
responseObject: {},
|
|
15365
|
+
body: yield response.json(),
|
|
15366
|
+
bodyKey: "cryptoAssessmentKeyCollection",
|
|
15367
|
+
bodyModel: model.CryptoAssessmentKeyCollection,
|
|
15368
|
+
type: "model.CryptoAssessmentKeyCollection",
|
|
15369
|
+
responseHeaders: [
|
|
15370
|
+
{
|
|
15371
|
+
value: response.headers.get("opc-request-id"),
|
|
15372
|
+
key: "opcRequestId",
|
|
15373
|
+
dataType: "string"
|
|
15374
|
+
},
|
|
15375
|
+
{
|
|
15376
|
+
value: response.headers.get("opc-next-page"),
|
|
15377
|
+
key: "opcNextPage",
|
|
15378
|
+
dataType: "string"
|
|
15379
|
+
},
|
|
15380
|
+
{
|
|
15381
|
+
value: response.headers.get("opc-prev-page"),
|
|
15382
|
+
key: "opcPrevPage",
|
|
15383
|
+
dataType: "string"
|
|
15384
|
+
}
|
|
15385
|
+
]
|
|
15386
|
+
});
|
|
15387
|
+
return sdkResponse;
|
|
15388
|
+
}
|
|
15389
|
+
catch (err) {
|
|
15390
|
+
throw err;
|
|
15391
|
+
}
|
|
15392
|
+
});
|
|
15393
|
+
}
|
|
15394
|
+
/**
|
|
15395
|
+
* Lists TDE object encryption summaries across targets in a compartment. Use assessmentId to narrow results to one crypto assessment, and objectType to return either tablespace-level or column-level TDE observations.
|
|
15396
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
15397
|
+
* @param ListCryptoAssessmentTdeObjectsRequest
|
|
15398
|
+
* @return ListCryptoAssessmentTdeObjectsResponse
|
|
15399
|
+
* @throws OciError when an error occurs
|
|
15400
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ListCryptoAssessmentTdeObjects.ts.html |here} to see how to use ListCryptoAssessmentTdeObjects API.
|
|
14155
15401
|
*/
|
|
14156
|
-
|
|
15402
|
+
listCryptoAssessmentTdeObjects(listCryptoAssessmentTdeObjectsRequest) {
|
|
14157
15403
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14158
15404
|
if (this.logger)
|
|
14159
|
-
this.logger.debug("Calling operation DataSafeClient#
|
|
14160
|
-
const operationName = "
|
|
14161
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/
|
|
14162
|
-
const pathParams = {
|
|
14163
|
-
"{securityAssessmentId}": listChecksRequest.securityAssessmentId
|
|
14164
|
-
};
|
|
15405
|
+
this.logger.debug("Calling operation DataSafeClient#listCryptoAssessmentTdeObjects.");
|
|
15406
|
+
const operationName = "listCryptoAssessmentTdeObjects";
|
|
15407
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentTdeObjects";
|
|
15408
|
+
const pathParams = {};
|
|
14165
15409
|
const queryParams = {
|
|
14166
|
-
"
|
|
14167
|
-
"
|
|
14168
|
-
"
|
|
14169
|
-
"
|
|
14170
|
-
"
|
|
14171
|
-
"
|
|
14172
|
-
"
|
|
14173
|
-
"
|
|
14174
|
-
"
|
|
14175
|
-
"
|
|
15410
|
+
"compartmentId": listCryptoAssessmentTdeObjectsRequest.compartmentId,
|
|
15411
|
+
"compartmentIdInSubtree": listCryptoAssessmentTdeObjectsRequest.compartmentIdInSubtree,
|
|
15412
|
+
"accessLevel": listCryptoAssessmentTdeObjectsRequest.accessLevel,
|
|
15413
|
+
"assessmentId": listCryptoAssessmentTdeObjectsRequest.assessmentId,
|
|
15414
|
+
"assessmentType": listCryptoAssessmentTdeObjectsRequest.assessmentType,
|
|
15415
|
+
"targetId": listCryptoAssessmentTdeObjectsRequest.targetId,
|
|
15416
|
+
"targetIds": listCryptoAssessmentTdeObjectsRequest.targetIds,
|
|
15417
|
+
"objectType": listCryptoAssessmentTdeObjectsRequest.objectType,
|
|
15418
|
+
"quantumReadiness": listCryptoAssessmentTdeObjectsRequest.quantumReadiness,
|
|
15419
|
+
"encryptionObserved": listCryptoAssessmentTdeObjectsRequest.encryptionObserved,
|
|
15420
|
+
"encryptionStatus": listCryptoAssessmentTdeObjectsRequest.encryptionStatus,
|
|
15421
|
+
"sortBy": listCryptoAssessmentTdeObjectsRequest.sortBy,
|
|
15422
|
+
"sortOrder": listCryptoAssessmentTdeObjectsRequest.sortOrder,
|
|
15423
|
+
"limit": listCryptoAssessmentTdeObjectsRequest.limit,
|
|
15424
|
+
"page": listCryptoAssessmentTdeObjectsRequest.page
|
|
14176
15425
|
};
|
|
14177
15426
|
let headerParams = {
|
|
14178
15427
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
14179
|
-
"opc-request-id":
|
|
15428
|
+
"opc-request-id": listCryptoAssessmentTdeObjectsRequest.opcRequestId
|
|
14180
15429
|
};
|
|
14181
15430
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
14182
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
15431
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCryptoAssessmentTdeObjectsRequest.retryConfiguration, specRetryConfiguration);
|
|
14183
15432
|
if (this.logger)
|
|
14184
15433
|
retrier.logger = this.logger;
|
|
14185
15434
|
const request = yield oci_common_2.composeRequest({
|
|
14186
15435
|
baseEndpoint: this._endpoint,
|
|
14187
15436
|
defaultHeaders: this._defaultHeaders,
|
|
14188
|
-
path: "/
|
|
15437
|
+
path: "/cryptoAssessments/tdeObjects",
|
|
14189
15438
|
method: "GET",
|
|
14190
15439
|
pathParams: pathParams,
|
|
14191
15440
|
headerParams: headerParams,
|
|
@@ -14196,9 +15445,9 @@ class DataSafeClient {
|
|
|
14196
15445
|
const sdkResponse = oci_common_2.composeResponse({
|
|
14197
15446
|
responseObject: {},
|
|
14198
15447
|
body: yield response.json(),
|
|
14199
|
-
bodyKey: "
|
|
14200
|
-
bodyModel: model.
|
|
14201
|
-
type: "
|
|
15448
|
+
bodyKey: "cryptoAssessmentTdeObjectCollection",
|
|
15449
|
+
bodyModel: model.CryptoAssessmentTdeObjectCollection,
|
|
15450
|
+
type: "model.CryptoAssessmentTdeObjectCollection",
|
|
14202
15451
|
responseHeaders: [
|
|
14203
15452
|
{
|
|
14204
15453
|
value: response.headers.get("opc-request-id"),
|
|
@@ -14225,83 +15474,47 @@ class DataSafeClient {
|
|
|
14225
15474
|
});
|
|
14226
15475
|
}
|
|
14227
15476
|
/**
|
|
14228
|
-
*
|
|
14229
|
-
* Creates a new async iterator which will iterate over the models.CheckSummary objects
|
|
14230
|
-
* contained in responses from the listChecks operation. This iterator will fetch more data from the
|
|
14231
|
-
* server as needed.
|
|
14232
|
-
*
|
|
14233
|
-
* @param request a request which can be sent to the service operation
|
|
14234
|
-
*/
|
|
14235
|
-
listAllChecks(request) {
|
|
14236
|
-
return oci_common_1.paginateRecords(request, req => this.listChecks(req));
|
|
14237
|
-
}
|
|
14238
|
-
/**
|
|
14239
|
-
* NOTE: This function is deprecated in favor of listChecksResponseIterator function.
|
|
14240
|
-
* Creates a new async iterator which will iterate over the responses received from the listChecks operation. This iterator
|
|
14241
|
-
* will fetch more data from the server as needed.
|
|
14242
|
-
*
|
|
14243
|
-
* @param request a request which can be sent to the service operation
|
|
14244
|
-
*/
|
|
14245
|
-
listAllChecksResponses(request) {
|
|
14246
|
-
return oci_common_1.paginateResponses(request, req => this.listChecks(req));
|
|
14247
|
-
}
|
|
14248
|
-
/**
|
|
14249
|
-
* Creates a new async iterator which will iterate over the models.CheckSummary objects
|
|
14250
|
-
* contained in responses from the listChecks operation. This iterator will fetch more data from the
|
|
14251
|
-
* server as needed.
|
|
14252
|
-
*
|
|
14253
|
-
* @param request a request which can be sent to the service operation
|
|
14254
|
-
*/
|
|
14255
|
-
listChecksRecordIterator(request) {
|
|
14256
|
-
return oci_common_1.paginateRecords(request, req => this.listChecks(req));
|
|
14257
|
-
}
|
|
14258
|
-
/**
|
|
14259
|
-
* Creates a new async iterator which will iterate over the responses received from the listChecks operation. This iterator
|
|
14260
|
-
* will fetch more data from the server as needed.
|
|
14261
|
-
*
|
|
14262
|
-
* @param request a request which can be sent to the service operation
|
|
14263
|
-
*/
|
|
14264
|
-
listChecksResponseIterator(request) {
|
|
14265
|
-
return oci_common_1.paginateResponses(request, req => this.listChecks(req));
|
|
14266
|
-
}
|
|
14267
|
-
/**
|
|
14268
|
-
* Gets a list of all collected audit volume data points.
|
|
15477
|
+
* Gets wallet details across targets in a compartment. Use assessmentId to narrow results to one crypto assessment.
|
|
14269
15478
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
14270
|
-
* @param
|
|
14271
|
-
* @return
|
|
15479
|
+
* @param ListCryptoAssessmentWalletsRequest
|
|
15480
|
+
* @return ListCryptoAssessmentWalletsResponse
|
|
14272
15481
|
* @throws OciError when an error occurs
|
|
14273
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/
|
|
15482
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ListCryptoAssessmentWallets.ts.html |here} to see how to use ListCryptoAssessmentWallets API.
|
|
14274
15483
|
*/
|
|
14275
|
-
|
|
15484
|
+
listCryptoAssessmentWallets(listCryptoAssessmentWalletsRequest) {
|
|
14276
15485
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14277
15486
|
if (this.logger)
|
|
14278
|
-
this.logger.debug("Calling operation DataSafeClient#
|
|
14279
|
-
const operationName = "
|
|
14280
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/
|
|
14281
|
-
const pathParams = {
|
|
14282
|
-
"{auditProfileId}": listCollectedAuditVolumesRequest.auditProfileId
|
|
14283
|
-
};
|
|
15487
|
+
this.logger.debug("Calling operation DataSafeClient#listCryptoAssessmentWallets.");
|
|
15488
|
+
const operationName = "listCryptoAssessmentWallets";
|
|
15489
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessmentWallets";
|
|
15490
|
+
const pathParams = {};
|
|
14284
15491
|
const queryParams = {
|
|
14285
|
-
"
|
|
14286
|
-
"
|
|
14287
|
-
"
|
|
14288
|
-
"
|
|
14289
|
-
"
|
|
14290
|
-
"
|
|
14291
|
-
"
|
|
15492
|
+
"compartmentId": listCryptoAssessmentWalletsRequest.compartmentId,
|
|
15493
|
+
"compartmentIdInSubtree": listCryptoAssessmentWalletsRequest.compartmentIdInSubtree,
|
|
15494
|
+
"accessLevel": listCryptoAssessmentWalletsRequest.accessLevel,
|
|
15495
|
+
"assessmentId": listCryptoAssessmentWalletsRequest.assessmentId,
|
|
15496
|
+
"assessmentType": listCryptoAssessmentWalletsRequest.assessmentType,
|
|
15497
|
+
"targetId": listCryptoAssessmentWalletsRequest.targetId,
|
|
15498
|
+
"targetIds": listCryptoAssessmentWalletsRequest.targetIds,
|
|
15499
|
+
"feature": listCryptoAssessmentWalletsRequest.feature,
|
|
15500
|
+
"walletEncryptionAlgorithm": listCryptoAssessmentWalletsRequest.walletEncryptionAlgorithm,
|
|
15501
|
+
"sortBy": listCryptoAssessmentWalletsRequest.sortBy,
|
|
15502
|
+
"sortOrder": listCryptoAssessmentWalletsRequest.sortOrder,
|
|
15503
|
+
"limit": listCryptoAssessmentWalletsRequest.limit,
|
|
15504
|
+
"page": listCryptoAssessmentWalletsRequest.page
|
|
14292
15505
|
};
|
|
14293
15506
|
let headerParams = {
|
|
14294
15507
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
14295
|
-
"opc-request-id":
|
|
15508
|
+
"opc-request-id": listCryptoAssessmentWalletsRequest.opcRequestId
|
|
14296
15509
|
};
|
|
14297
15510
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
14298
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
15511
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCryptoAssessmentWalletsRequest.retryConfiguration, specRetryConfiguration);
|
|
14299
15512
|
if (this.logger)
|
|
14300
15513
|
retrier.logger = this.logger;
|
|
14301
15514
|
const request = yield oci_common_2.composeRequest({
|
|
14302
15515
|
baseEndpoint: this._endpoint,
|
|
14303
15516
|
defaultHeaders: this._defaultHeaders,
|
|
14304
|
-
path: "/
|
|
15517
|
+
path: "/cryptoAssessments/wallets",
|
|
14305
15518
|
method: "GET",
|
|
14306
15519
|
pathParams: pathParams,
|
|
14307
15520
|
headerParams: headerParams,
|
|
@@ -14312,9 +15525,9 @@ class DataSafeClient {
|
|
|
14312
15525
|
const sdkResponse = oci_common_2.composeResponse({
|
|
14313
15526
|
responseObject: {},
|
|
14314
15527
|
body: yield response.json(),
|
|
14315
|
-
bodyKey: "
|
|
14316
|
-
bodyModel: model.
|
|
14317
|
-
type: "model.
|
|
15528
|
+
bodyKey: "cryptoAssessmentWalletCollection",
|
|
15529
|
+
bodyModel: model.CryptoAssessmentWalletCollection,
|
|
15530
|
+
type: "model.CryptoAssessmentWalletCollection",
|
|
14318
15531
|
responseHeaders: [
|
|
14319
15532
|
{
|
|
14320
15533
|
value: response.headers.get("opc-request-id"),
|
|
@@ -14341,48 +15554,51 @@ class DataSafeClient {
|
|
|
14341
15554
|
});
|
|
14342
15555
|
}
|
|
14343
15556
|
/**
|
|
14344
|
-
*
|
|
14345
|
-
*
|
|
15557
|
+
* Gets a list of crypto assessments with filtering and pagination support.
|
|
14346
15558
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
14347
|
-
* @param
|
|
14348
|
-
* @return
|
|
15559
|
+
* @param ListCryptoAssessmentsRequest
|
|
15560
|
+
* @return ListCryptoAssessmentsResponse
|
|
14349
15561
|
* @throws OciError when an error occurs
|
|
14350
|
-
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/
|
|
15562
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/ListCryptoAssessments.ts.html |here} to see how to use ListCryptoAssessments API.
|
|
14351
15563
|
*/
|
|
14352
|
-
|
|
15564
|
+
listCryptoAssessments(listCryptoAssessmentsRequest) {
|
|
14353
15565
|
return __awaiter(this, void 0, void 0, function* () {
|
|
14354
15566
|
if (this.logger)
|
|
14355
|
-
this.logger.debug("Calling operation DataSafeClient#
|
|
14356
|
-
const operationName = "
|
|
14357
|
-
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/
|
|
14358
|
-
const pathParams = {
|
|
14359
|
-
"{targetDatabaseId}": listColumnsRequest.targetDatabaseId
|
|
14360
|
-
};
|
|
15567
|
+
this.logger.debug("Calling operation DataSafeClient#listCryptoAssessments.");
|
|
15568
|
+
const operationName = "listCryptoAssessments";
|
|
15569
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/ListCryptoAssessments";
|
|
15570
|
+
const pathParams = {};
|
|
14361
15571
|
const queryParams = {
|
|
14362
|
-
"
|
|
14363
|
-
"
|
|
14364
|
-
"
|
|
14365
|
-
"
|
|
14366
|
-
"
|
|
14367
|
-
"
|
|
14368
|
-
"
|
|
14369
|
-
"
|
|
14370
|
-
"
|
|
14371
|
-
"
|
|
14372
|
-
"
|
|
15572
|
+
"compartmentId": listCryptoAssessmentsRequest.compartmentId,
|
|
15573
|
+
"compartmentIdInSubtree": listCryptoAssessmentsRequest.compartmentIdInSubtree,
|
|
15574
|
+
"accessLevel": listCryptoAssessmentsRequest.accessLevel,
|
|
15575
|
+
"displayName": listCryptoAssessmentsRequest.displayName,
|
|
15576
|
+
"type": listCryptoAssessmentsRequest.type,
|
|
15577
|
+
"assessmentId": listCryptoAssessmentsRequest.assessmentId,
|
|
15578
|
+
"targetId": listCryptoAssessmentsRequest.targetId,
|
|
15579
|
+
"targetIds": listCryptoAssessmentsRequest.targetIds,
|
|
15580
|
+
"targetDatabaseGroupId": listCryptoAssessmentsRequest.targetDatabaseGroupId,
|
|
15581
|
+
"targetType": listCryptoAssessmentsRequest.targetType,
|
|
15582
|
+
"postureCategory": listCryptoAssessmentsRequest.postureCategory,
|
|
15583
|
+
"isAssessmentScheduled": listCryptoAssessmentsRequest.isAssessmentScheduled,
|
|
15584
|
+
"lifecycleState": listCryptoAssessmentsRequest.lifecycleState,
|
|
15585
|
+
"sortBy": listCryptoAssessmentsRequest.sortBy,
|
|
15586
|
+
"sortOrder": listCryptoAssessmentsRequest.sortOrder,
|
|
15587
|
+
"limit": listCryptoAssessmentsRequest.limit,
|
|
15588
|
+
"page": listCryptoAssessmentsRequest.page
|
|
14373
15589
|
};
|
|
14374
15590
|
let headerParams = {
|
|
14375
15591
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
14376
|
-
"opc-request-id":
|
|
15592
|
+
"opc-request-id": listCryptoAssessmentsRequest.opcRequestId
|
|
14377
15593
|
};
|
|
14378
15594
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
14379
|
-
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
15595
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listCryptoAssessmentsRequest.retryConfiguration, specRetryConfiguration);
|
|
14380
15596
|
if (this.logger)
|
|
14381
15597
|
retrier.logger = this.logger;
|
|
14382
15598
|
const request = yield oci_common_2.composeRequest({
|
|
14383
15599
|
baseEndpoint: this._endpoint,
|
|
14384
15600
|
defaultHeaders: this._defaultHeaders,
|
|
14385
|
-
path: "/
|
|
15601
|
+
path: "/cryptoAssessments",
|
|
14386
15602
|
method: "GET",
|
|
14387
15603
|
pathParams: pathParams,
|
|
14388
15604
|
headerParams: headerParams,
|
|
@@ -14393,9 +15609,9 @@ class DataSafeClient {
|
|
|
14393
15609
|
const sdkResponse = oci_common_2.composeResponse({
|
|
14394
15610
|
responseObject: {},
|
|
14395
15611
|
body: yield response.json(),
|
|
14396
|
-
bodyKey: "
|
|
14397
|
-
bodyModel: model.
|
|
14398
|
-
type: "
|
|
15612
|
+
bodyKey: "cryptoAssessmentCollection",
|
|
15613
|
+
bodyModel: model.CryptoAssessmentCollection,
|
|
15614
|
+
type: "model.CryptoAssessmentCollection",
|
|
14399
15615
|
responseHeaders: [
|
|
14400
15616
|
{
|
|
14401
15617
|
value: response.headers.get("opc-request-id"),
|
|
@@ -14421,46 +15637,6 @@ class DataSafeClient {
|
|
|
14421
15637
|
}
|
|
14422
15638
|
});
|
|
14423
15639
|
}
|
|
14424
|
-
/**
|
|
14425
|
-
* NOTE: This function is deprecated in favor of listColumnsRecordIterator function.
|
|
14426
|
-
* Creates a new async iterator which will iterate over the models.ColumnSummary objects
|
|
14427
|
-
* contained in responses from the listColumns operation. This iterator will fetch more data from the
|
|
14428
|
-
* server as needed.
|
|
14429
|
-
*
|
|
14430
|
-
* @param request a request which can be sent to the service operation
|
|
14431
|
-
*/
|
|
14432
|
-
listAllColumns(request) {
|
|
14433
|
-
return oci_common_1.paginateRecords(request, req => this.listColumns(req));
|
|
14434
|
-
}
|
|
14435
|
-
/**
|
|
14436
|
-
* NOTE: This function is deprecated in favor of listColumnsResponseIterator function.
|
|
14437
|
-
* Creates a new async iterator which will iterate over the responses received from the listColumns operation. This iterator
|
|
14438
|
-
* will fetch more data from the server as needed.
|
|
14439
|
-
*
|
|
14440
|
-
* @param request a request which can be sent to the service operation
|
|
14441
|
-
*/
|
|
14442
|
-
listAllColumnsResponses(request) {
|
|
14443
|
-
return oci_common_1.paginateResponses(request, req => this.listColumns(req));
|
|
14444
|
-
}
|
|
14445
|
-
/**
|
|
14446
|
-
* Creates a new async iterator which will iterate over the models.ColumnSummary objects
|
|
14447
|
-
* contained in responses from the listColumns operation. This iterator will fetch more data from the
|
|
14448
|
-
* server as needed.
|
|
14449
|
-
*
|
|
14450
|
-
* @param request a request which can be sent to the service operation
|
|
14451
|
-
*/
|
|
14452
|
-
listColumnsRecordIterator(request) {
|
|
14453
|
-
return oci_common_1.paginateRecords(request, req => this.listColumns(req));
|
|
14454
|
-
}
|
|
14455
|
-
/**
|
|
14456
|
-
* Creates a new async iterator which will iterate over the responses received from the listColumns operation. This iterator
|
|
14457
|
-
* will fetch more data from the server as needed.
|
|
14458
|
-
*
|
|
14459
|
-
* @param request a request which can be sent to the service operation
|
|
14460
|
-
*/
|
|
14461
|
-
listColumnsResponseIterator(request) {
|
|
14462
|
-
return oci_common_1.paginateResponses(request, req => this.listColumns(req));
|
|
14463
|
-
}
|
|
14464
15640
|
/**
|
|
14465
15641
|
* Gets a list of Data Safe private endpoints.
|
|
14466
15642
|
*
|
|
@@ -22660,6 +23836,71 @@ class DataSafeClient {
|
|
|
22660
23836
|
}
|
|
22661
23837
|
});
|
|
22662
23838
|
}
|
|
23839
|
+
/**
|
|
23840
|
+
* Runs a crypto assessment, refreshes the latest assessment, and saves it for future reference.
|
|
23841
|
+
* This operation runs with a cryptoAssessmentId of type LATEST.
|
|
23842
|
+
* Before you start, first call the ListCryptoAssessments operation with filter \"type = latest\" to get the crypto assessment ID for the target's latest assessment.
|
|
23843
|
+
*
|
|
23844
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
23845
|
+
* @param RefreshCryptoAssessmentRequest
|
|
23846
|
+
* @return RefreshCryptoAssessmentResponse
|
|
23847
|
+
* @throws OciError when an error occurs
|
|
23848
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/RefreshCryptoAssessment.ts.html |here} to see how to use RefreshCryptoAssessment API.
|
|
23849
|
+
*/
|
|
23850
|
+
refreshCryptoAssessment(refreshCryptoAssessmentRequest) {
|
|
23851
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
23852
|
+
if (this.logger)
|
|
23853
|
+
this.logger.debug("Calling operation DataSafeClient#refreshCryptoAssessment.");
|
|
23854
|
+
const operationName = "refreshCryptoAssessment";
|
|
23855
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/RefreshCryptoAssessment";
|
|
23856
|
+
const pathParams = {
|
|
23857
|
+
"{cryptoAssessmentId}": refreshCryptoAssessmentRequest.cryptoAssessmentId
|
|
23858
|
+
};
|
|
23859
|
+
const queryParams = {};
|
|
23860
|
+
let headerParams = {
|
|
23861
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
23862
|
+
"opc-retry-token": refreshCryptoAssessmentRequest.opcRetryToken,
|
|
23863
|
+
"opc-request-id": refreshCryptoAssessmentRequest.opcRequestId,
|
|
23864
|
+
"if-match": refreshCryptoAssessmentRequest.ifMatch
|
|
23865
|
+
};
|
|
23866
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
23867
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, refreshCryptoAssessmentRequest.retryConfiguration, specRetryConfiguration);
|
|
23868
|
+
if (this.logger)
|
|
23869
|
+
retrier.logger = this.logger;
|
|
23870
|
+
const request = yield oci_common_2.composeRequest({
|
|
23871
|
+
baseEndpoint: this._endpoint,
|
|
23872
|
+
defaultHeaders: this._defaultHeaders,
|
|
23873
|
+
path: "/cryptoAssessments/{cryptoAssessmentId}/actions/refresh",
|
|
23874
|
+
method: "POST",
|
|
23875
|
+
bodyContent: common.ObjectSerializer.serialize(refreshCryptoAssessmentRequest.runCryptoAssessmentDetails, "RunCryptoAssessmentDetails", model.RunCryptoAssessmentDetails.getJsonObj),
|
|
23876
|
+
pathParams: pathParams,
|
|
23877
|
+
headerParams: headerParams,
|
|
23878
|
+
queryParams: queryParams
|
|
23879
|
+
});
|
|
23880
|
+
try {
|
|
23881
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
23882
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
23883
|
+
responseObject: {},
|
|
23884
|
+
responseHeaders: [
|
|
23885
|
+
{
|
|
23886
|
+
value: response.headers.get("opc-work-request-id"),
|
|
23887
|
+
key: "opcWorkRequestId",
|
|
23888
|
+
dataType: "string"
|
|
23889
|
+
},
|
|
23890
|
+
{
|
|
23891
|
+
value: response.headers.get("opc-request-id"),
|
|
23892
|
+
key: "opcRequestId",
|
|
23893
|
+
dataType: "string"
|
|
23894
|
+
}
|
|
23895
|
+
]
|
|
23896
|
+
});
|
|
23897
|
+
return sdkResponse;
|
|
23898
|
+
}
|
|
23899
|
+
catch (err) {
|
|
23900
|
+
throw err;
|
|
23901
|
+
}
|
|
23902
|
+
});
|
|
23903
|
+
}
|
|
22663
23904
|
/**
|
|
22664
23905
|
* Refreshes the specified database security configuration.
|
|
22665
23906
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
@@ -24454,6 +25695,67 @@ class DataSafeClient {
|
|
|
24454
25695
|
}
|
|
24455
25696
|
});
|
|
24456
25697
|
}
|
|
25698
|
+
/**
|
|
25699
|
+
* Updates one or more attributes of the specified crypto assessment.
|
|
25700
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
25701
|
+
* @param UpdateCryptoAssessmentRequest
|
|
25702
|
+
* @return UpdateCryptoAssessmentResponse
|
|
25703
|
+
* @throws OciError when an error occurs
|
|
25704
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/datasafe/UpdateCryptoAssessment.ts.html |here} to see how to use UpdateCryptoAssessment API.
|
|
25705
|
+
*/
|
|
25706
|
+
updateCryptoAssessment(updateCryptoAssessmentRequest) {
|
|
25707
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25708
|
+
if (this.logger)
|
|
25709
|
+
this.logger.debug("Calling operation DataSafeClient#updateCryptoAssessment.");
|
|
25710
|
+
const operationName = "updateCryptoAssessment";
|
|
25711
|
+
const apiReferenceLink = "https://docs.oracle.com/iaas/api/#/en/data-safe/20181201/CryptoAssessment/UpdateCryptoAssessment";
|
|
25712
|
+
const pathParams = {
|
|
25713
|
+
"{cryptoAssessmentId}": updateCryptoAssessmentRequest.cryptoAssessmentId
|
|
25714
|
+
};
|
|
25715
|
+
const queryParams = {};
|
|
25716
|
+
let headerParams = {
|
|
25717
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
25718
|
+
"opc-request-id": updateCryptoAssessmentRequest.opcRequestId,
|
|
25719
|
+
"if-match": updateCryptoAssessmentRequest.ifMatch
|
|
25720
|
+
};
|
|
25721
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
25722
|
+
const retrier = oci_common_2.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateCryptoAssessmentRequest.retryConfiguration, specRetryConfiguration);
|
|
25723
|
+
if (this.logger)
|
|
25724
|
+
retrier.logger = this.logger;
|
|
25725
|
+
const request = yield oci_common_2.composeRequest({
|
|
25726
|
+
baseEndpoint: this._endpoint,
|
|
25727
|
+
defaultHeaders: this._defaultHeaders,
|
|
25728
|
+
path: "/cryptoAssessments/{cryptoAssessmentId}",
|
|
25729
|
+
method: "PUT",
|
|
25730
|
+
bodyContent: common.ObjectSerializer.serialize(updateCryptoAssessmentRequest.updateCryptoAssessmentDetails, "UpdateCryptoAssessmentDetails", model.UpdateCryptoAssessmentDetails.getJsonObj),
|
|
25731
|
+
pathParams: pathParams,
|
|
25732
|
+
headerParams: headerParams,
|
|
25733
|
+
queryParams: queryParams
|
|
25734
|
+
});
|
|
25735
|
+
try {
|
|
25736
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
25737
|
+
const sdkResponse = oci_common_2.composeResponse({
|
|
25738
|
+
responseObject: {},
|
|
25739
|
+
responseHeaders: [
|
|
25740
|
+
{
|
|
25741
|
+
value: response.headers.get("opc-work-request-id"),
|
|
25742
|
+
key: "opcWorkRequestId",
|
|
25743
|
+
dataType: "string"
|
|
25744
|
+
},
|
|
25745
|
+
{
|
|
25746
|
+
value: response.headers.get("opc-request-id"),
|
|
25747
|
+
key: "opcRequestId",
|
|
25748
|
+
dataType: "string"
|
|
25749
|
+
}
|
|
25750
|
+
]
|
|
25751
|
+
});
|
|
25752
|
+
return sdkResponse;
|
|
25753
|
+
}
|
|
25754
|
+
catch (err) {
|
|
25755
|
+
throw err;
|
|
25756
|
+
}
|
|
25757
|
+
});
|
|
25758
|
+
}
|
|
24457
25759
|
/**
|
|
24458
25760
|
* Updates one or more attributes of the specified Data Safe private endpoint.
|
|
24459
25761
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|