oci-adm 2.71.0 → 2.72.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/applicationdependencymanagement-waiter.d.ts +16 -0
- package/lib/applicationdependencymanagement-waiter.js +24 -0
- package/lib/applicationdependencymanagement-waiter.js.map +1 -1
- package/lib/client.d.ts +184 -18
- package/lib/client.js +1312 -176
- package/lib/client.js.map +1 -1
- package/lib/model/application-dependency-recommendation-collection.d.ts +26 -0
- package/lib/model/application-dependency-recommendation-collection.js +61 -0
- package/lib/model/application-dependency-recommendation-collection.js.map +1 -0
- package/lib/model/application-dependency-recommendation-summary.d.ts +39 -0
- package/lib/model/application-dependency-recommendation-summary.js +29 -0
- package/lib/model/application-dependency-recommendation-summary.js.map +1 -0
- package/lib/model/application-dependency-vulnerability-collection.d.ts +3 -3
- package/lib/model/application-dependency-vulnerability-summary.d.ts +6 -6
- package/lib/model/application-dependency.d.ts +3 -3
- package/lib/model/apply-stage.d.ts +27 -0
- package/lib/model/apply-stage.js +66 -0
- package/lib/model/apply-stage.js.map +1 -0
- package/lib/model/change-knowledge-base-compartment-details.d.ts +2 -2
- package/lib/model/change-remediation-recipe-compartment-details.d.ts +25 -0
- package/lib/model/change-remediation-recipe-compartment-details.js +29 -0
- package/lib/model/change-remediation-recipe-compartment-details.js.map +1 -0
- package/lib/model/change-remediation-run-compartment-details.d.ts +25 -0
- package/lib/model/change-remediation-run-compartment-details.js +29 -0
- package/lib/model/change-remediation-run-compartment-details.js.map +1 -0
- package/lib/model/change-vulnerability-audit-compartment-details.d.ts +1 -1
- package/lib/model/create-knowledge-base-details.d.ts +3 -3
- package/lib/model/create-remediation-recipe-details.d.ts +60 -0
- package/lib/model/create-remediation-recipe-details.js +75 -0
- package/lib/model/create-remediation-recipe-details.js.map +1 -0
- package/lib/model/create-remediation-run-details.d.ts +47 -0
- package/lib/model/create-remediation-run-details.js +29 -0
- package/lib/model/create-remediation-run-details.js.map +1 -0
- package/lib/model/create-vulnerability-audit-details.d.ts +6 -6
- package/lib/model/detect-configuration.d.ts +50 -0
- package/lib/model/detect-configuration.js +38 -0
- package/lib/model/detect-configuration.js.map +1 -0
- package/lib/model/detect-stage.d.ts +29 -0
- package/lib/model/detect-stage.js +52 -0
- package/lib/model/detect-stage.js.map +1 -0
- package/lib/model/external-resource-vulnerability-audit-source.d.ts +1 -1
- package/lib/model/external-scm-configuration.d.ts +57 -0
- package/lib/model/external-scm-configuration.js +64 -0
- package/lib/model/external-scm-configuration.js.map +1 -0
- package/lib/model/git-hub-actions-configuration.d.ts +51 -0
- package/lib/model/git-hub-actions-configuration.js +54 -0
- package/lib/model/git-hub-actions-configuration.js.map +1 -0
- package/lib/model/git-lab-pipeline-configuration.d.ts +52 -0
- package/lib/model/git-lab-pipeline-configuration.js +54 -0
- package/lib/model/git-lab-pipeline-configuration.js.map +1 -0
- package/lib/model/index.d.ts +72 -0
- package/lib/model/index.js +74 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/jenkins-pipeline-configuration.d.ts +48 -0
- package/lib/model/jenkins-pipeline-configuration.js +54 -0
- package/lib/model/jenkins-pipeline-configuration.js.map +1 -0
- package/lib/model/knowledge-base-collection.d.ts +2 -2
- package/lib/model/knowledge-base-summary.d.ts +7 -7
- package/lib/model/knowledge-base.d.ts +7 -7
- package/lib/model/network-configuration.d.ts +31 -0
- package/lib/model/network-configuration.js +29 -0
- package/lib/model/network-configuration.js.map +1 -0
- package/lib/model/none-verify-configuration.d.ts +24 -0
- package/lib/model/none-verify-configuration.js +54 -0
- package/lib/model/none-verify-configuration.js.map +1 -0
- package/lib/model/oci-code-repository-configuration.d.ts +28 -0
- package/lib/model/oci-code-repository-configuration.js +54 -0
- package/lib/model/oci-code-repository-configuration.js.map +1 -0
- package/lib/model/oci-dev-ops-build-configuration.d.ts +34 -0
- package/lib/model/oci-dev-ops-build-configuration.js +54 -0
- package/lib/model/oci-dev-ops-build-configuration.js.map +1 -0
- package/lib/model/oci-resource-vulnerability-audit-source.d.ts +2 -2
- package/lib/model/operation-type.d.ts +6 -0
- package/lib/model/operation-type.js +6 -0
- package/lib/model/operation-type.js.map +1 -1
- package/lib/model/pipeline-properties.d.ts +29 -0
- package/lib/model/pipeline-properties.js +29 -0
- package/lib/model/pipeline-properties.js.map +1 -0
- package/lib/model/pull-request-properties.d.ts +29 -0
- package/lib/model/pull-request-properties.js +29 -0
- package/lib/model/pull-request-properties.js.map +1 -0
- package/lib/model/recommend-stage.d.ts +30 -0
- package/lib/model/recommend-stage.js +60 -0
- package/lib/model/recommend-stage.js.map +1 -0
- package/lib/model/remediation-recipe-collection.d.ts +26 -0
- package/lib/model/remediation-recipe-collection.js +61 -0
- package/lib/model/remediation-recipe-collection.js.map +1 -0
- package/lib/model/remediation-recipe-summary.d.ts +81 -0
- package/lib/model/remediation-recipe-summary.js +29 -0
- package/lib/model/remediation-recipe-summary.js.map +1 -0
- package/lib/model/remediation-recipe.d.ts +103 -0
- package/lib/model/remediation-recipe.js +91 -0
- package/lib/model/remediation-recipe.js.map +1 -0
- package/lib/model/remediation-run-collection.d.ts +26 -0
- package/lib/model/remediation-run-collection.js +61 -0
- package/lib/model/remediation-run-collection.js.map +1 -0
- package/lib/model/remediation-run-stage-collection.d.ts +26 -0
- package/lib/model/remediation-run-stage-collection.js +61 -0
- package/lib/model/remediation-run-stage-collection.js.map +1 -0
- package/lib/model/remediation-run-stage-summary.d.ts +50 -0
- package/lib/model/remediation-run-stage-summary.js +29 -0
- package/lib/model/remediation-run-stage-summary.js.map +1 -0
- package/lib/model/remediation-run-stage-type.d.ts +30 -0
- package/lib/model/remediation-run-stage-type.js +41 -0
- package/lib/model/remediation-run-stage-type.js.map +1 -0
- package/lib/model/remediation-run-stage.d.ts +70 -0
- package/lib/model/remediation-run-stage.js +94 -0
- package/lib/model/remediation-run-stage.js.map +1 -0
- package/lib/model/remediation-run-summary.d.ts +94 -0
- package/lib/model/remediation-run-summary.js +29 -0
- package/lib/model/remediation-run-summary.js.map +1 -0
- package/lib/model/remediation-run.d.ts +125 -0
- package/lib/model/remediation-run.js +87 -0
- package/lib/model/remediation-run.js.map +1 -0
- package/lib/model/scm-configuration.d.ts +38 -0
- package/lib/model/scm-configuration.js +72 -0
- package/lib/model/scm-configuration.js.map +1 -0
- package/lib/model/stage-summary.d.ts +42 -0
- package/lib/model/stage-summary.js +29 -0
- package/lib/model/stage-summary.js.map +1 -0
- package/lib/model/unknown-source-vulnerability-audit-source.d.ts +1 -1
- package/lib/model/update-knowledge-base-details.d.ts +2 -2
- package/lib/model/update-remediation-recipe-details.d.ts +56 -0
- package/lib/model/update-remediation-recipe-details.js +75 -0
- package/lib/model/update-remediation-recipe-details.js.map +1 -0
- package/lib/model/update-remediation-run-details.d.ts +43 -0
- package/lib/model/update-remediation-run-details.js +29 -0
- package/lib/model/update-remediation-run-details.js.map +1 -0
- package/lib/model/update-vulnerability-audit-details.d.ts +2 -2
- package/lib/model/verify-configuration.d.ts +25 -0
- package/lib/model/verify-configuration.js +84 -0
- package/lib/model/verify-configuration.js.map +1 -0
- package/lib/model/verify-stage.d.ts +27 -0
- package/lib/model/verify-stage.js +66 -0
- package/lib/model/verify-stage.js.map +1 -0
- package/lib/model/vulnerability-audit-collection.d.ts +2 -2
- package/lib/model/vulnerability-audit-configuration.d.ts +7 -5
- package/lib/model/vulnerability-audit-configuration.js.map +1 -1
- package/lib/model/vulnerability-audit-source.d.ts +1 -1
- package/lib/model/vulnerability-audit-summary.d.ts +14 -14
- package/lib/model/vulnerability-audit.d.ts +17 -17
- package/lib/request/activate-remediation-recipe-request.d.ts +35 -0
- package/lib/request/activate-remediation-recipe-request.js +15 -0
- package/lib/request/activate-remediation-recipe-request.js.map +1 -0
- package/lib/request/cancel-remediation-run-request.d.ts +44 -0
- package/lib/request/cancel-remediation-run-request.js +15 -0
- package/lib/request/cancel-remediation-run-request.js.map +1 -0
- package/lib/request/cancel-work-request-request.d.ts +1 -1
- package/lib/request/change-knowledge-base-compartment-request.d.ts +1 -1
- package/lib/request/change-remediation-recipe-compartment-request.d.ts +49 -0
- package/lib/request/change-remediation-recipe-compartment-request.js +15 -0
- package/lib/request/change-remediation-recipe-compartment-request.js.map +1 -0
- package/lib/request/change-remediation-run-compartment-request.d.ts +49 -0
- package/lib/request/change-remediation-run-compartment-request.js +15 -0
- package/lib/request/change-remediation-run-compartment-request.js.map +1 -0
- package/lib/request/change-vulnerability-audit-compartment-request.d.ts +1 -1
- package/lib/request/create-knowledge-base-request.d.ts +1 -1
- package/lib/request/create-remediation-recipe-request.d.ts +36 -0
- package/lib/request/create-remediation-recipe-request.js +15 -0
- package/lib/request/create-remediation-recipe-request.js.map +1 -0
- package/lib/request/create-remediation-run-request.d.ts +36 -0
- package/lib/request/create-remediation-run-request.js +15 -0
- package/lib/request/create-remediation-run-request.js.map +1 -0
- package/lib/request/create-vulnerability-audit-request.d.ts +1 -1
- package/lib/request/deactivate-remediation-recipe-request.d.ts +35 -0
- package/lib/request/deactivate-remediation-recipe-request.js +15 -0
- package/lib/request/deactivate-remediation-recipe-request.js.map +1 -0
- package/lib/request/delete-knowledge-base-request.d.ts +1 -1
- package/lib/request/delete-remediation-recipe-request.d.ts +35 -0
- package/lib/request/delete-remediation-recipe-request.js +15 -0
- package/lib/request/delete-remediation-recipe-request.js.map +1 -0
- package/lib/request/delete-remediation-run-request.d.ts +35 -0
- package/lib/request/delete-remediation-run-request.js +15 -0
- package/lib/request/delete-remediation-run-request.js.map +1 -0
- package/lib/request/delete-vulnerability-audit-request.d.ts +1 -1
- package/lib/request/get-knowledge-base-request.d.ts +1 -1
- package/lib/request/get-remediation-recipe-request.d.ts +26 -0
- package/lib/request/get-remediation-recipe-request.js +15 -0
- package/lib/request/get-remediation-recipe-request.js.map +1 -0
- package/lib/request/get-remediation-run-request.d.ts +26 -0
- package/lib/request/get-remediation-run-request.js +15 -0
- package/lib/request/get-remediation-run-request.js.map +1 -0
- package/lib/request/get-stage-request.d.ts +31 -0
- package/lib/request/get-stage-request.js +15 -0
- package/lib/request/get-stage-request.js.map +1 -0
- package/lib/request/get-vulnerability-audit-request.d.ts +1 -1
- package/lib/request/get-work-request-request.d.ts +1 -1
- package/lib/request/index.d.ts +36 -0
- package/lib/request/index.js +9 -1
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-application-dependency-recommendations-request.d.ts +61 -0
- package/lib/request/list-application-dependency-recommendations-request.js +26 -0
- package/lib/request/list-application-dependency-recommendations-request.js.map +1 -0
- package/lib/request/list-application-dependency-vulnerabilities-request.d.ts +1 -1
- package/lib/request/list-knowledge-bases-request.d.ts +5 -1
- package/lib/request/list-knowledge-bases-request.js.map +1 -1
- package/lib/request/list-remediation-recipes-request.d.ts +74 -0
- package/lib/request/list-remediation-recipes-request.js +27 -0
- package/lib/request/list-remediation-recipes-request.js.map +1 -0
- package/lib/request/list-remediation-runs-request.d.ts +80 -0
- package/lib/request/list-remediation-runs-request.js +28 -0
- package/lib/request/list-remediation-runs-request.js.map +1 -0
- package/lib/request/list-stages-request.d.ts +66 -0
- package/lib/request/list-stages-request.js +27 -0
- package/lib/request/list-stages-request.js.map +1 -0
- package/lib/request/list-vulnerability-audits-request.d.ts +5 -1
- package/lib/request/list-vulnerability-audits-request.js.map +1 -1
- package/lib/request/list-work-request-errors-request.d.ts +1 -1
- package/lib/request/list-work-request-logs-request.d.ts +1 -1
- package/lib/request/list-work-requests-request.d.ts +3 -1
- package/lib/request/list-work-requests-request.js.map +1 -1
- package/lib/request/update-knowledge-base-request.d.ts +1 -1
- package/lib/request/update-remediation-recipe-request.d.ts +40 -0
- package/lib/request/update-remediation-recipe-request.js +15 -0
- package/lib/request/update-remediation-recipe-request.js.map +1 -0
- package/lib/request/update-remediation-run-request.d.ts +40 -0
- package/lib/request/update-remediation-run-request.js +15 -0
- package/lib/request/update-remediation-run-request.js.map +1 -0
- package/lib/request/update-vulnerability-audit-request.d.ts +1 -1
- package/lib/response/activate-remediation-recipe-response.d.ts +25 -0
- package/lib/response/activate-remediation-recipe-response.js +15 -0
- package/lib/response/activate-remediation-recipe-response.js.map +1 -0
- package/lib/response/cancel-remediation-run-response.d.ts +30 -0
- package/lib/response/cancel-remediation-run-response.js +15 -0
- package/lib/response/cancel-remediation-run-response.js.map +1 -0
- package/lib/response/change-remediation-recipe-compartment-response.d.ts +25 -0
- package/lib/response/change-remediation-recipe-compartment-response.js +15 -0
- package/lib/response/change-remediation-recipe-compartment-response.js.map +1 -0
- package/lib/response/change-remediation-run-compartment-response.d.ts +20 -0
- package/lib/response/change-remediation-run-compartment-response.js +15 -0
- package/lib/response/change-remediation-run-compartment-response.js.map +1 -0
- package/lib/response/create-remediation-recipe-response.d.ts +25 -0
- package/lib/response/create-remediation-recipe-response.js +15 -0
- package/lib/response/create-remediation-recipe-response.js.map +1 -0
- package/lib/response/create-remediation-run-response.d.ts +30 -0
- package/lib/response/create-remediation-run-response.js +15 -0
- package/lib/response/create-remediation-run-response.js.map +1 -0
- package/lib/response/deactivate-remediation-recipe-response.d.ts +25 -0
- package/lib/response/deactivate-remediation-recipe-response.js +15 -0
- package/lib/response/deactivate-remediation-recipe-response.js.map +1 -0
- package/lib/response/delete-remediation-recipe-response.d.ts +25 -0
- package/lib/response/delete-remediation-recipe-response.js +15 -0
- package/lib/response/delete-remediation-recipe-response.js.map +1 -0
- package/lib/response/delete-remediation-run-response.d.ts +20 -0
- package/lib/response/delete-remediation-run-response.js +15 -0
- package/lib/response/delete-remediation-run-response.js.map +1 -0
- package/lib/response/get-remediation-recipe-response.d.ts +30 -0
- package/lib/response/get-remediation-recipe-response.js +15 -0
- package/lib/response/get-remediation-recipe-response.js.map +1 -0
- package/lib/response/get-remediation-run-response.d.ts +30 -0
- package/lib/response/get-remediation-run-response.js +15 -0
- package/lib/response/get-remediation-run-response.js.map +1 -0
- package/lib/response/get-stage-response.d.ts +25 -0
- package/lib/response/get-stage-response.js +15 -0
- package/lib/response/get-stage-response.js.map +1 -0
- package/lib/response/index.d.ts +36 -0
- package/lib/response/list-application-dependency-recommendations-response.d.ts +32 -0
- package/lib/response/list-application-dependency-recommendations-response.js +15 -0
- package/lib/response/list-application-dependency-recommendations-response.js.map +1 -0
- package/lib/response/list-remediation-recipes-response.d.ts +32 -0
- package/lib/response/list-remediation-recipes-response.js +15 -0
- package/lib/response/list-remediation-recipes-response.js.map +1 -0
- package/lib/response/list-remediation-runs-response.d.ts +32 -0
- package/lib/response/list-remediation-runs-response.js +15 -0
- package/lib/response/list-remediation-runs-response.js.map +1 -0
- package/lib/response/list-stages-response.d.ts +32 -0
- package/lib/response/list-stages-response.js +15 -0
- package/lib/response/list-stages-response.js.map +1 -0
- package/lib/response/update-remediation-recipe-response.d.ts +25 -0
- package/lib/response/update-remediation-recipe-response.js +15 -0
- package/lib/response/update-remediation-recipe-response.js.map +1 -0
- package/lib/response/update-remediation-run-response.d.ts +30 -0
- package/lib/response/update-remediation-run-response.js +15 -0
- package/lib/response/update-remediation-run-response.js.map +1 -0
- package/package.json +3 -3
package/lib/client.js
CHANGED
|
@@ -177,13 +177,138 @@ class ApplicationDependencyManagementClient {
|
|
|
177
177
|
}
|
|
178
178
|
throw Error("Waiters do not exist. Please create waiters.");
|
|
179
179
|
}
|
|
180
|
+
/**
|
|
181
|
+
* Activates the specified Remediation Recipe.
|
|
182
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
183
|
+
* @param ActivateRemediationRecipeRequest
|
|
184
|
+
* @return ActivateRemediationRecipeResponse
|
|
185
|
+
* @throws OciError when an error occurs
|
|
186
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ActivateRemediationRecipe.ts.html |here} to see how to use ActivateRemediationRecipe API.
|
|
187
|
+
*/
|
|
188
|
+
activateRemediationRecipe(activateRemediationRecipeRequest) {
|
|
189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
190
|
+
if (this.logger)
|
|
191
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#activateRemediationRecipe.");
|
|
192
|
+
const operationName = "activateRemediationRecipe";
|
|
193
|
+
const apiReferenceLink = "";
|
|
194
|
+
const pathParams = {
|
|
195
|
+
"{remediationRecipeId}": activateRemediationRecipeRequest.remediationRecipeId
|
|
196
|
+
};
|
|
197
|
+
const queryParams = {};
|
|
198
|
+
let headerParams = {
|
|
199
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
200
|
+
"if-match": activateRemediationRecipeRequest.ifMatch,
|
|
201
|
+
"opc-request-id": activateRemediationRecipeRequest.opcRequestId
|
|
202
|
+
};
|
|
203
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
204
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, activateRemediationRecipeRequest.retryConfiguration, specRetryConfiguration);
|
|
205
|
+
if (this.logger)
|
|
206
|
+
retrier.logger = this.logger;
|
|
207
|
+
const request = yield oci_common_1.composeRequest({
|
|
208
|
+
baseEndpoint: this._endpoint,
|
|
209
|
+
defaultHeaders: this._defaultHeaders,
|
|
210
|
+
path: "/remediationRecipes/{remediationRecipeId}/actions/activate",
|
|
211
|
+
method: "POST",
|
|
212
|
+
pathParams: pathParams,
|
|
213
|
+
headerParams: headerParams,
|
|
214
|
+
queryParams: queryParams
|
|
215
|
+
});
|
|
216
|
+
try {
|
|
217
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
218
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
219
|
+
responseObject: {},
|
|
220
|
+
responseHeaders: [
|
|
221
|
+
{
|
|
222
|
+
value: response.headers.get("opc-work-request-id"),
|
|
223
|
+
key: "opcWorkRequestId",
|
|
224
|
+
dataType: "string"
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
value: response.headers.get("opc-request-id"),
|
|
228
|
+
key: "opcRequestId",
|
|
229
|
+
dataType: "string"
|
|
230
|
+
}
|
|
231
|
+
]
|
|
232
|
+
});
|
|
233
|
+
return sdkResponse;
|
|
234
|
+
}
|
|
235
|
+
catch (err) {
|
|
236
|
+
throw err;
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
/**
|
|
241
|
+
* Cancels the specified remediation run.
|
|
242
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
243
|
+
* @param CancelRemediationRunRequest
|
|
244
|
+
* @return CancelRemediationRunResponse
|
|
245
|
+
* @throws OciError when an error occurs
|
|
246
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/CancelRemediationRun.ts.html |here} to see how to use CancelRemediationRun API.
|
|
247
|
+
*/
|
|
248
|
+
cancelRemediationRun(cancelRemediationRunRequest) {
|
|
249
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
250
|
+
if (this.logger)
|
|
251
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#cancelRemediationRun.");
|
|
252
|
+
const operationName = "cancelRemediationRun";
|
|
253
|
+
const apiReferenceLink = "";
|
|
254
|
+
const pathParams = {
|
|
255
|
+
"{remediationRunId}": cancelRemediationRunRequest.remediationRunId
|
|
256
|
+
};
|
|
257
|
+
const queryParams = {};
|
|
258
|
+
let headerParams = {
|
|
259
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
260
|
+
"if-match": cancelRemediationRunRequest.ifMatch,
|
|
261
|
+
"opc-request-id": cancelRemediationRunRequest.opcRequestId,
|
|
262
|
+
"opc-retry-token": cancelRemediationRunRequest.opcRetryToken
|
|
263
|
+
};
|
|
264
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
265
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelRemediationRunRequest.retryConfiguration, specRetryConfiguration);
|
|
266
|
+
if (this.logger)
|
|
267
|
+
retrier.logger = this.logger;
|
|
268
|
+
const request = yield oci_common_1.composeRequest({
|
|
269
|
+
baseEndpoint: this._endpoint,
|
|
270
|
+
defaultHeaders: this._defaultHeaders,
|
|
271
|
+
path: "/remediationRuns/{remediationRunId}/actions/cancel",
|
|
272
|
+
method: "POST",
|
|
273
|
+
pathParams: pathParams,
|
|
274
|
+
headerParams: headerParams,
|
|
275
|
+
queryParams: queryParams
|
|
276
|
+
});
|
|
277
|
+
try {
|
|
278
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
279
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
280
|
+
responseObject: {},
|
|
281
|
+
body: yield response.json(),
|
|
282
|
+
bodyKey: "remediationRun",
|
|
283
|
+
bodyModel: model.RemediationRun,
|
|
284
|
+
type: "model.RemediationRun",
|
|
285
|
+
responseHeaders: [
|
|
286
|
+
{
|
|
287
|
+
value: response.headers.get("opc-request-id"),
|
|
288
|
+
key: "opcRequestId",
|
|
289
|
+
dataType: "string"
|
|
290
|
+
},
|
|
291
|
+
{
|
|
292
|
+
value: response.headers.get("etag"),
|
|
293
|
+
key: "etag",
|
|
294
|
+
dataType: "string"
|
|
295
|
+
}
|
|
296
|
+
]
|
|
297
|
+
});
|
|
298
|
+
return sdkResponse;
|
|
299
|
+
}
|
|
300
|
+
catch (err) {
|
|
301
|
+
throw err;
|
|
302
|
+
}
|
|
303
|
+
});
|
|
304
|
+
}
|
|
180
305
|
/**
|
|
181
306
|
* Cancel work request with the given ID.
|
|
182
307
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
183
308
|
* @param CancelWorkRequestRequest
|
|
184
309
|
* @return CancelWorkRequestResponse
|
|
185
310
|
* @throws OciError when an error occurs
|
|
186
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
311
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
187
312
|
*/
|
|
188
313
|
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
189
314
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -238,7 +363,7 @@ class ApplicationDependencyManagementClient {
|
|
|
238
363
|
* @param ChangeKnowledgeBaseCompartmentRequest
|
|
239
364
|
* @return ChangeKnowledgeBaseCompartmentResponse
|
|
240
365
|
* @throws OciError when an error occurs
|
|
241
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
366
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ChangeKnowledgeBaseCompartment.ts.html |here} to see how to use ChangeKnowledgeBaseCompartment API.
|
|
242
367
|
*/
|
|
243
368
|
changeKnowledgeBaseCompartment(changeKnowledgeBaseCompartmentRequest) {
|
|
244
369
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -294,13 +419,132 @@ class ApplicationDependencyManagementClient {
|
|
|
294
419
|
}
|
|
295
420
|
});
|
|
296
421
|
}
|
|
422
|
+
/**
|
|
423
|
+
* Moves a Remediation Recipe from one compartment to another.
|
|
424
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
425
|
+
* @param ChangeRemediationRecipeCompartmentRequest
|
|
426
|
+
* @return ChangeRemediationRecipeCompartmentResponse
|
|
427
|
+
* @throws OciError when an error occurs
|
|
428
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ChangeRemediationRecipeCompartment.ts.html |here} to see how to use ChangeRemediationRecipeCompartment API.
|
|
429
|
+
*/
|
|
430
|
+
changeRemediationRecipeCompartment(changeRemediationRecipeCompartmentRequest) {
|
|
431
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
432
|
+
if (this.logger)
|
|
433
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#changeRemediationRecipeCompartment.");
|
|
434
|
+
const operationName = "changeRemediationRecipeCompartment";
|
|
435
|
+
const apiReferenceLink = "";
|
|
436
|
+
const pathParams = {
|
|
437
|
+
"{remediationRecipeId}": changeRemediationRecipeCompartmentRequest.remediationRecipeId
|
|
438
|
+
};
|
|
439
|
+
const queryParams = {};
|
|
440
|
+
let headerParams = {
|
|
441
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
442
|
+
"if-match": changeRemediationRecipeCompartmentRequest.ifMatch,
|
|
443
|
+
"opc-request-id": changeRemediationRecipeCompartmentRequest.opcRequestId,
|
|
444
|
+
"opc-retry-token": changeRemediationRecipeCompartmentRequest.opcRetryToken
|
|
445
|
+
};
|
|
446
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
447
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeRemediationRecipeCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
448
|
+
if (this.logger)
|
|
449
|
+
retrier.logger = this.logger;
|
|
450
|
+
const request = yield oci_common_1.composeRequest({
|
|
451
|
+
baseEndpoint: this._endpoint,
|
|
452
|
+
defaultHeaders: this._defaultHeaders,
|
|
453
|
+
path: "/remediationRecipes/{remediationRecipeId}/actions/changeCompartment",
|
|
454
|
+
method: "POST",
|
|
455
|
+
bodyContent: common.ObjectSerializer.serialize(changeRemediationRecipeCompartmentRequest.changeRemediationRecipeCompartmentDetails, "ChangeRemediationRecipeCompartmentDetails", model.ChangeRemediationRecipeCompartmentDetails.getJsonObj),
|
|
456
|
+
pathParams: pathParams,
|
|
457
|
+
headerParams: headerParams,
|
|
458
|
+
queryParams: queryParams
|
|
459
|
+
});
|
|
460
|
+
try {
|
|
461
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
462
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
463
|
+
responseObject: {},
|
|
464
|
+
responseHeaders: [
|
|
465
|
+
{
|
|
466
|
+
value: response.headers.get("opc-work-request-id"),
|
|
467
|
+
key: "opcWorkRequestId",
|
|
468
|
+
dataType: "string"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
value: response.headers.get("opc-request-id"),
|
|
472
|
+
key: "opcRequestId",
|
|
473
|
+
dataType: "string"
|
|
474
|
+
}
|
|
475
|
+
]
|
|
476
|
+
});
|
|
477
|
+
return sdkResponse;
|
|
478
|
+
}
|
|
479
|
+
catch (err) {
|
|
480
|
+
throw err;
|
|
481
|
+
}
|
|
482
|
+
});
|
|
483
|
+
}
|
|
484
|
+
/**
|
|
485
|
+
* Moves a remediation run from one compartment to another.
|
|
486
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
487
|
+
* @param ChangeRemediationRunCompartmentRequest
|
|
488
|
+
* @return ChangeRemediationRunCompartmentResponse
|
|
489
|
+
* @throws OciError when an error occurs
|
|
490
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ChangeRemediationRunCompartment.ts.html |here} to see how to use ChangeRemediationRunCompartment API.
|
|
491
|
+
*/
|
|
492
|
+
changeRemediationRunCompartment(changeRemediationRunCompartmentRequest) {
|
|
493
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
494
|
+
if (this.logger)
|
|
495
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#changeRemediationRunCompartment.");
|
|
496
|
+
const operationName = "changeRemediationRunCompartment";
|
|
497
|
+
const apiReferenceLink = "";
|
|
498
|
+
const pathParams = {
|
|
499
|
+
"{remediationRunId}": changeRemediationRunCompartmentRequest.remediationRunId
|
|
500
|
+
};
|
|
501
|
+
const queryParams = {};
|
|
502
|
+
let headerParams = {
|
|
503
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
504
|
+
"if-match": changeRemediationRunCompartmentRequest.ifMatch,
|
|
505
|
+
"opc-request-id": changeRemediationRunCompartmentRequest.opcRequestId,
|
|
506
|
+
"opc-retry-token": changeRemediationRunCompartmentRequest.opcRetryToken
|
|
507
|
+
};
|
|
508
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
509
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeRemediationRunCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
510
|
+
if (this.logger)
|
|
511
|
+
retrier.logger = this.logger;
|
|
512
|
+
const request = yield oci_common_1.composeRequest({
|
|
513
|
+
baseEndpoint: this._endpoint,
|
|
514
|
+
defaultHeaders: this._defaultHeaders,
|
|
515
|
+
path: "/remediationRuns/{remediationRunId}/actions/changeCompartment",
|
|
516
|
+
method: "POST",
|
|
517
|
+
bodyContent: common.ObjectSerializer.serialize(changeRemediationRunCompartmentRequest.changeRemediationRunCompartmentDetails, "ChangeRemediationRunCompartmentDetails", model.ChangeRemediationRunCompartmentDetails.getJsonObj),
|
|
518
|
+
pathParams: pathParams,
|
|
519
|
+
headerParams: headerParams,
|
|
520
|
+
queryParams: queryParams
|
|
521
|
+
});
|
|
522
|
+
try {
|
|
523
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
524
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
525
|
+
responseObject: {},
|
|
526
|
+
responseHeaders: [
|
|
527
|
+
{
|
|
528
|
+
value: response.headers.get("opc-request-id"),
|
|
529
|
+
key: "opcRequestId",
|
|
530
|
+
dataType: "string"
|
|
531
|
+
}
|
|
532
|
+
]
|
|
533
|
+
});
|
|
534
|
+
return sdkResponse;
|
|
535
|
+
}
|
|
536
|
+
catch (err) {
|
|
537
|
+
throw err;
|
|
538
|
+
}
|
|
539
|
+
});
|
|
540
|
+
}
|
|
297
541
|
/**
|
|
298
542
|
* Moves a Vulnerability Audit from one compartment to another.
|
|
299
543
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
300
544
|
* @param ChangeVulnerabilityAuditCompartmentRequest
|
|
301
545
|
* @return ChangeVulnerabilityAuditCompartmentResponse
|
|
302
546
|
* @throws OciError when an error occurs
|
|
303
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
547
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ChangeVulnerabilityAuditCompartment.ts.html |here} to see how to use ChangeVulnerabilityAuditCompartment API.
|
|
304
548
|
*/
|
|
305
549
|
changeVulnerabilityAuditCompartment(changeVulnerabilityAuditCompartmentRequest) {
|
|
306
550
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -357,7 +601,7 @@ class ApplicationDependencyManagementClient {
|
|
|
357
601
|
* @param CreateKnowledgeBaseRequest
|
|
358
602
|
* @return CreateKnowledgeBaseResponse
|
|
359
603
|
* @throws OciError when an error occurs
|
|
360
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
604
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/CreateKnowledgeBase.ts.html |here} to see how to use CreateKnowledgeBase API.
|
|
361
605
|
*/
|
|
362
606
|
createKnowledgeBase(createKnowledgeBaseRequest) {
|
|
363
607
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -411,37 +655,36 @@ class ApplicationDependencyManagementClient {
|
|
|
411
655
|
});
|
|
412
656
|
}
|
|
413
657
|
/**
|
|
414
|
-
* Creates a new
|
|
658
|
+
* Creates a new Remediation Recipe.
|
|
415
659
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
416
|
-
* @param
|
|
417
|
-
* @return
|
|
660
|
+
* @param CreateRemediationRecipeRequest
|
|
661
|
+
* @return CreateRemediationRecipeResponse
|
|
418
662
|
* @throws OciError when an error occurs
|
|
419
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
663
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/CreateRemediationRecipe.ts.html |here} to see how to use CreateRemediationRecipe API.
|
|
420
664
|
*/
|
|
421
|
-
|
|
665
|
+
createRemediationRecipe(createRemediationRecipeRequest) {
|
|
422
666
|
return __awaiter(this, void 0, void 0, function* () {
|
|
423
667
|
if (this.logger)
|
|
424
|
-
this.logger.debug("Calling operation ApplicationDependencyManagementClient#
|
|
425
|
-
const operationName = "
|
|
668
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#createRemediationRecipe.");
|
|
669
|
+
const operationName = "createRemediationRecipe";
|
|
426
670
|
const apiReferenceLink = "";
|
|
427
671
|
const pathParams = {};
|
|
428
672
|
const queryParams = {};
|
|
429
673
|
let headerParams = {
|
|
430
674
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
431
|
-
"opc-request-id":
|
|
432
|
-
"opc-retry-token":
|
|
433
|
-
"if-match": createVulnerabilityAuditRequest.ifMatch
|
|
675
|
+
"opc-request-id": createRemediationRecipeRequest.opcRequestId,
|
|
676
|
+
"opc-retry-token": createRemediationRecipeRequest.opcRetryToken
|
|
434
677
|
};
|
|
435
678
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
436
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
679
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createRemediationRecipeRequest.retryConfiguration, specRetryConfiguration);
|
|
437
680
|
if (this.logger)
|
|
438
681
|
retrier.logger = this.logger;
|
|
439
682
|
const request = yield oci_common_1.composeRequest({
|
|
440
683
|
baseEndpoint: this._endpoint,
|
|
441
684
|
defaultHeaders: this._defaultHeaders,
|
|
442
|
-
path: "/
|
|
685
|
+
path: "/remediationRecipes",
|
|
443
686
|
method: "POST",
|
|
444
|
-
bodyContent: common.ObjectSerializer.serialize(
|
|
687
|
+
bodyContent: common.ObjectSerializer.serialize(createRemediationRecipeRequest.createRemediationRecipeDetails, "CreateRemediationRecipeDetails", model.CreateRemediationRecipeDetails.getJsonObj),
|
|
445
688
|
pathParams: pathParams,
|
|
446
689
|
headerParams: headerParams,
|
|
447
690
|
queryParams: queryParams
|
|
@@ -450,16 +693,7 @@ class ApplicationDependencyManagementClient {
|
|
|
450
693
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
451
694
|
const sdkResponse = oci_common_1.composeResponse({
|
|
452
695
|
responseObject: {},
|
|
453
|
-
body: yield response.json(),
|
|
454
|
-
bodyKey: "vulnerabilityAudit",
|
|
455
|
-
bodyModel: model.VulnerabilityAudit,
|
|
456
|
-
type: "model.VulnerabilityAudit",
|
|
457
696
|
responseHeaders: [
|
|
458
|
-
{
|
|
459
|
-
value: response.headers.get("etag"),
|
|
460
|
-
key: "etag",
|
|
461
|
-
dataType: "string"
|
|
462
|
-
},
|
|
463
697
|
{
|
|
464
698
|
value: response.headers.get("opc-work-request-id"),
|
|
465
699
|
key: "opcWorkRequestId",
|
|
@@ -480,37 +714,36 @@ class ApplicationDependencyManagementClient {
|
|
|
480
714
|
});
|
|
481
715
|
}
|
|
482
716
|
/**
|
|
483
|
-
*
|
|
717
|
+
* Creates a new remediation run.
|
|
484
718
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
485
|
-
* @param
|
|
486
|
-
* @return
|
|
719
|
+
* @param CreateRemediationRunRequest
|
|
720
|
+
* @return CreateRemediationRunResponse
|
|
487
721
|
* @throws OciError when an error occurs
|
|
488
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
722
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/CreateRemediationRun.ts.html |here} to see how to use CreateRemediationRun API.
|
|
489
723
|
*/
|
|
490
|
-
|
|
724
|
+
createRemediationRun(createRemediationRunRequest) {
|
|
491
725
|
return __awaiter(this, void 0, void 0, function* () {
|
|
492
726
|
if (this.logger)
|
|
493
|
-
this.logger.debug("Calling operation ApplicationDependencyManagementClient#
|
|
494
|
-
const operationName = "
|
|
727
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#createRemediationRun.");
|
|
728
|
+
const operationName = "createRemediationRun";
|
|
495
729
|
const apiReferenceLink = "";
|
|
496
|
-
const pathParams = {
|
|
497
|
-
"{knowledgeBaseId}": deleteKnowledgeBaseRequest.knowledgeBaseId
|
|
498
|
-
};
|
|
730
|
+
const pathParams = {};
|
|
499
731
|
const queryParams = {};
|
|
500
732
|
let headerParams = {
|
|
501
733
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
502
|
-
"
|
|
503
|
-
"opc-
|
|
734
|
+
"opc-request-id": createRemediationRunRequest.opcRequestId,
|
|
735
|
+
"opc-retry-token": createRemediationRunRequest.opcRetryToken
|
|
504
736
|
};
|
|
505
737
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
506
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
738
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createRemediationRunRequest.retryConfiguration, specRetryConfiguration);
|
|
507
739
|
if (this.logger)
|
|
508
740
|
retrier.logger = this.logger;
|
|
509
741
|
const request = yield oci_common_1.composeRequest({
|
|
510
742
|
baseEndpoint: this._endpoint,
|
|
511
743
|
defaultHeaders: this._defaultHeaders,
|
|
512
|
-
path: "/
|
|
513
|
-
method: "
|
|
744
|
+
path: "/remediationRuns",
|
|
745
|
+
method: "POST",
|
|
746
|
+
bodyContent: common.ObjectSerializer.serialize(createRemediationRunRequest.createRemediationRunDetails, "CreateRemediationRunDetails", model.CreateRemediationRunDetails.getJsonObj),
|
|
514
747
|
pathParams: pathParams,
|
|
515
748
|
headerParams: headerParams,
|
|
516
749
|
queryParams: queryParams
|
|
@@ -519,10 +752,14 @@ class ApplicationDependencyManagementClient {
|
|
|
519
752
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
520
753
|
const sdkResponse = oci_common_1.composeResponse({
|
|
521
754
|
responseObject: {},
|
|
755
|
+
body: yield response.json(),
|
|
756
|
+
bodyKey: "remediationRun",
|
|
757
|
+
bodyModel: model.RemediationRun,
|
|
758
|
+
type: "model.RemediationRun",
|
|
522
759
|
responseHeaders: [
|
|
523
760
|
{
|
|
524
|
-
value: response.headers.get("
|
|
525
|
-
key: "
|
|
761
|
+
value: response.headers.get("etag"),
|
|
762
|
+
key: "etag",
|
|
526
763
|
dataType: "string"
|
|
527
764
|
},
|
|
528
765
|
{
|
|
@@ -540,38 +777,522 @@ class ApplicationDependencyManagementClient {
|
|
|
540
777
|
});
|
|
541
778
|
}
|
|
542
779
|
/**
|
|
543
|
-
*
|
|
780
|
+
* Creates a new Vulnerability Audit by providing a tree of Application Dependencies.
|
|
544
781
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
545
|
-
* @param
|
|
546
|
-
* @return
|
|
782
|
+
* @param CreateVulnerabilityAuditRequest
|
|
783
|
+
* @return CreateVulnerabilityAuditResponse
|
|
547
784
|
* @throws OciError when an error occurs
|
|
548
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
785
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/CreateVulnerabilityAudit.ts.html |here} to see how to use CreateVulnerabilityAudit API.
|
|
549
786
|
*/
|
|
550
|
-
|
|
787
|
+
createVulnerabilityAudit(createVulnerabilityAuditRequest) {
|
|
551
788
|
return __awaiter(this, void 0, void 0, function* () {
|
|
552
789
|
if (this.logger)
|
|
553
|
-
this.logger.debug("Calling operation ApplicationDependencyManagementClient#
|
|
554
|
-
const operationName = "
|
|
790
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#createVulnerabilityAudit.");
|
|
791
|
+
const operationName = "createVulnerabilityAudit";
|
|
555
792
|
const apiReferenceLink = "";
|
|
556
|
-
const pathParams = {
|
|
557
|
-
"{vulnerabilityAuditId}": deleteVulnerabilityAuditRequest.vulnerabilityAuditId
|
|
558
|
-
};
|
|
793
|
+
const pathParams = {};
|
|
559
794
|
const queryParams = {};
|
|
560
795
|
let headerParams = {
|
|
561
796
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
562
|
-
"
|
|
563
|
-
"opc-
|
|
797
|
+
"opc-request-id": createVulnerabilityAuditRequest.opcRequestId,
|
|
798
|
+
"opc-retry-token": createVulnerabilityAuditRequest.opcRetryToken,
|
|
799
|
+
"if-match": createVulnerabilityAuditRequest.ifMatch
|
|
564
800
|
};
|
|
565
801
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
566
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
802
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createVulnerabilityAuditRequest.retryConfiguration, specRetryConfiguration);
|
|
567
803
|
if (this.logger)
|
|
568
804
|
retrier.logger = this.logger;
|
|
569
805
|
const request = yield oci_common_1.composeRequest({
|
|
570
806
|
baseEndpoint: this._endpoint,
|
|
571
807
|
defaultHeaders: this._defaultHeaders,
|
|
572
|
-
path: "/vulnerabilityAudits
|
|
573
|
-
method: "
|
|
574
|
-
|
|
808
|
+
path: "/vulnerabilityAudits",
|
|
809
|
+
method: "POST",
|
|
810
|
+
bodyContent: common.ObjectSerializer.serialize(createVulnerabilityAuditRequest.createVulnerabilityAuditDetails, "CreateVulnerabilityAuditDetails", model.CreateVulnerabilityAuditDetails.getJsonObj),
|
|
811
|
+
pathParams: pathParams,
|
|
812
|
+
headerParams: headerParams,
|
|
813
|
+
queryParams: queryParams
|
|
814
|
+
});
|
|
815
|
+
try {
|
|
816
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
817
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
818
|
+
responseObject: {},
|
|
819
|
+
body: yield response.json(),
|
|
820
|
+
bodyKey: "vulnerabilityAudit",
|
|
821
|
+
bodyModel: model.VulnerabilityAudit,
|
|
822
|
+
type: "model.VulnerabilityAudit",
|
|
823
|
+
responseHeaders: [
|
|
824
|
+
{
|
|
825
|
+
value: response.headers.get("etag"),
|
|
826
|
+
key: "etag",
|
|
827
|
+
dataType: "string"
|
|
828
|
+
},
|
|
829
|
+
{
|
|
830
|
+
value: response.headers.get("opc-work-request-id"),
|
|
831
|
+
key: "opcWorkRequestId",
|
|
832
|
+
dataType: "string"
|
|
833
|
+
},
|
|
834
|
+
{
|
|
835
|
+
value: response.headers.get("opc-request-id"),
|
|
836
|
+
key: "opcRequestId",
|
|
837
|
+
dataType: "string"
|
|
838
|
+
}
|
|
839
|
+
]
|
|
840
|
+
});
|
|
841
|
+
return sdkResponse;
|
|
842
|
+
}
|
|
843
|
+
catch (err) {
|
|
844
|
+
throw err;
|
|
845
|
+
}
|
|
846
|
+
});
|
|
847
|
+
}
|
|
848
|
+
/**
|
|
849
|
+
* Deactivates the specified Remediation Recipe.
|
|
850
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
851
|
+
* @param DeactivateRemediationRecipeRequest
|
|
852
|
+
* @return DeactivateRemediationRecipeResponse
|
|
853
|
+
* @throws OciError when an error occurs
|
|
854
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/DeactivateRemediationRecipe.ts.html |here} to see how to use DeactivateRemediationRecipe API.
|
|
855
|
+
*/
|
|
856
|
+
deactivateRemediationRecipe(deactivateRemediationRecipeRequest) {
|
|
857
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
858
|
+
if (this.logger)
|
|
859
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#deactivateRemediationRecipe.");
|
|
860
|
+
const operationName = "deactivateRemediationRecipe";
|
|
861
|
+
const apiReferenceLink = "";
|
|
862
|
+
const pathParams = {
|
|
863
|
+
"{remediationRecipeId}": deactivateRemediationRecipeRequest.remediationRecipeId
|
|
864
|
+
};
|
|
865
|
+
const queryParams = {};
|
|
866
|
+
let headerParams = {
|
|
867
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
868
|
+
"if-match": deactivateRemediationRecipeRequest.ifMatch,
|
|
869
|
+
"opc-request-id": deactivateRemediationRecipeRequest.opcRequestId
|
|
870
|
+
};
|
|
871
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
872
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deactivateRemediationRecipeRequest.retryConfiguration, specRetryConfiguration);
|
|
873
|
+
if (this.logger)
|
|
874
|
+
retrier.logger = this.logger;
|
|
875
|
+
const request = yield oci_common_1.composeRequest({
|
|
876
|
+
baseEndpoint: this._endpoint,
|
|
877
|
+
defaultHeaders: this._defaultHeaders,
|
|
878
|
+
path: "/remediationRecipes/{remediationRecipeId}/actions/deactivate",
|
|
879
|
+
method: "POST",
|
|
880
|
+
pathParams: pathParams,
|
|
881
|
+
headerParams: headerParams,
|
|
882
|
+
queryParams: queryParams
|
|
883
|
+
});
|
|
884
|
+
try {
|
|
885
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
886
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
887
|
+
responseObject: {},
|
|
888
|
+
responseHeaders: [
|
|
889
|
+
{
|
|
890
|
+
value: response.headers.get("opc-work-request-id"),
|
|
891
|
+
key: "opcWorkRequestId",
|
|
892
|
+
dataType: "string"
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
value: response.headers.get("opc-request-id"),
|
|
896
|
+
key: "opcRequestId",
|
|
897
|
+
dataType: "string"
|
|
898
|
+
}
|
|
899
|
+
]
|
|
900
|
+
});
|
|
901
|
+
return sdkResponse;
|
|
902
|
+
}
|
|
903
|
+
catch (err) {
|
|
904
|
+
throw err;
|
|
905
|
+
}
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* Deletes the specified Knowledge Base.
|
|
910
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
911
|
+
* @param DeleteKnowledgeBaseRequest
|
|
912
|
+
* @return DeleteKnowledgeBaseResponse
|
|
913
|
+
* @throws OciError when an error occurs
|
|
914
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/DeleteKnowledgeBase.ts.html |here} to see how to use DeleteKnowledgeBase API.
|
|
915
|
+
*/
|
|
916
|
+
deleteKnowledgeBase(deleteKnowledgeBaseRequest) {
|
|
917
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
918
|
+
if (this.logger)
|
|
919
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#deleteKnowledgeBase.");
|
|
920
|
+
const operationName = "deleteKnowledgeBase";
|
|
921
|
+
const apiReferenceLink = "";
|
|
922
|
+
const pathParams = {
|
|
923
|
+
"{knowledgeBaseId}": deleteKnowledgeBaseRequest.knowledgeBaseId
|
|
924
|
+
};
|
|
925
|
+
const queryParams = {};
|
|
926
|
+
let headerParams = {
|
|
927
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
928
|
+
"if-match": deleteKnowledgeBaseRequest.ifMatch,
|
|
929
|
+
"opc-request-id": deleteKnowledgeBaseRequest.opcRequestId
|
|
930
|
+
};
|
|
931
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
932
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteKnowledgeBaseRequest.retryConfiguration, specRetryConfiguration);
|
|
933
|
+
if (this.logger)
|
|
934
|
+
retrier.logger = this.logger;
|
|
935
|
+
const request = yield oci_common_1.composeRequest({
|
|
936
|
+
baseEndpoint: this._endpoint,
|
|
937
|
+
defaultHeaders: this._defaultHeaders,
|
|
938
|
+
path: "/knowledgeBases/{knowledgeBaseId}",
|
|
939
|
+
method: "DELETE",
|
|
940
|
+
pathParams: pathParams,
|
|
941
|
+
headerParams: headerParams,
|
|
942
|
+
queryParams: queryParams
|
|
943
|
+
});
|
|
944
|
+
try {
|
|
945
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
946
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
947
|
+
responseObject: {},
|
|
948
|
+
responseHeaders: [
|
|
949
|
+
{
|
|
950
|
+
value: response.headers.get("opc-work-request-id"),
|
|
951
|
+
key: "opcWorkRequestId",
|
|
952
|
+
dataType: "string"
|
|
953
|
+
},
|
|
954
|
+
{
|
|
955
|
+
value: response.headers.get("opc-request-id"),
|
|
956
|
+
key: "opcRequestId",
|
|
957
|
+
dataType: "string"
|
|
958
|
+
}
|
|
959
|
+
]
|
|
960
|
+
});
|
|
961
|
+
return sdkResponse;
|
|
962
|
+
}
|
|
963
|
+
catch (err) {
|
|
964
|
+
throw err;
|
|
965
|
+
}
|
|
966
|
+
});
|
|
967
|
+
}
|
|
968
|
+
/**
|
|
969
|
+
* Deletes the specified Remediation Recipe.
|
|
970
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
971
|
+
* @param DeleteRemediationRecipeRequest
|
|
972
|
+
* @return DeleteRemediationRecipeResponse
|
|
973
|
+
* @throws OciError when an error occurs
|
|
974
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/DeleteRemediationRecipe.ts.html |here} to see how to use DeleteRemediationRecipe API.
|
|
975
|
+
*/
|
|
976
|
+
deleteRemediationRecipe(deleteRemediationRecipeRequest) {
|
|
977
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
978
|
+
if (this.logger)
|
|
979
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#deleteRemediationRecipe.");
|
|
980
|
+
const operationName = "deleteRemediationRecipe";
|
|
981
|
+
const apiReferenceLink = "";
|
|
982
|
+
const pathParams = {
|
|
983
|
+
"{remediationRecipeId}": deleteRemediationRecipeRequest.remediationRecipeId
|
|
984
|
+
};
|
|
985
|
+
const queryParams = {};
|
|
986
|
+
let headerParams = {
|
|
987
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
988
|
+
"if-match": deleteRemediationRecipeRequest.ifMatch,
|
|
989
|
+
"opc-request-id": deleteRemediationRecipeRequest.opcRequestId
|
|
990
|
+
};
|
|
991
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
992
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteRemediationRecipeRequest.retryConfiguration, specRetryConfiguration);
|
|
993
|
+
if (this.logger)
|
|
994
|
+
retrier.logger = this.logger;
|
|
995
|
+
const request = yield oci_common_1.composeRequest({
|
|
996
|
+
baseEndpoint: this._endpoint,
|
|
997
|
+
defaultHeaders: this._defaultHeaders,
|
|
998
|
+
path: "/remediationRecipes/{remediationRecipeId}",
|
|
999
|
+
method: "DELETE",
|
|
1000
|
+
pathParams: pathParams,
|
|
1001
|
+
headerParams: headerParams,
|
|
1002
|
+
queryParams: queryParams
|
|
1003
|
+
});
|
|
1004
|
+
try {
|
|
1005
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1006
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1007
|
+
responseObject: {},
|
|
1008
|
+
responseHeaders: [
|
|
1009
|
+
{
|
|
1010
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1011
|
+
key: "opcWorkRequestId",
|
|
1012
|
+
dataType: "string"
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
value: response.headers.get("opc-request-id"),
|
|
1016
|
+
key: "opcRequestId",
|
|
1017
|
+
dataType: "string"
|
|
1018
|
+
}
|
|
1019
|
+
]
|
|
1020
|
+
});
|
|
1021
|
+
return sdkResponse;
|
|
1022
|
+
}
|
|
1023
|
+
catch (err) {
|
|
1024
|
+
throw err;
|
|
1025
|
+
}
|
|
1026
|
+
});
|
|
1027
|
+
}
|
|
1028
|
+
/**
|
|
1029
|
+
* Deletes the specified remediation run.
|
|
1030
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1031
|
+
* @param DeleteRemediationRunRequest
|
|
1032
|
+
* @return DeleteRemediationRunResponse
|
|
1033
|
+
* @throws OciError when an error occurs
|
|
1034
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/DeleteRemediationRun.ts.html |here} to see how to use DeleteRemediationRun API.
|
|
1035
|
+
*/
|
|
1036
|
+
deleteRemediationRun(deleteRemediationRunRequest) {
|
|
1037
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1038
|
+
if (this.logger)
|
|
1039
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#deleteRemediationRun.");
|
|
1040
|
+
const operationName = "deleteRemediationRun";
|
|
1041
|
+
const apiReferenceLink = "";
|
|
1042
|
+
const pathParams = {
|
|
1043
|
+
"{remediationRunId}": deleteRemediationRunRequest.remediationRunId
|
|
1044
|
+
};
|
|
1045
|
+
const queryParams = {};
|
|
1046
|
+
let headerParams = {
|
|
1047
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1048
|
+
"if-match": deleteRemediationRunRequest.ifMatch,
|
|
1049
|
+
"opc-request-id": deleteRemediationRunRequest.opcRequestId
|
|
1050
|
+
};
|
|
1051
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1052
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteRemediationRunRequest.retryConfiguration, specRetryConfiguration);
|
|
1053
|
+
if (this.logger)
|
|
1054
|
+
retrier.logger = this.logger;
|
|
1055
|
+
const request = yield oci_common_1.composeRequest({
|
|
1056
|
+
baseEndpoint: this._endpoint,
|
|
1057
|
+
defaultHeaders: this._defaultHeaders,
|
|
1058
|
+
path: "/remediationRuns/{remediationRunId}",
|
|
1059
|
+
method: "DELETE",
|
|
1060
|
+
pathParams: pathParams,
|
|
1061
|
+
headerParams: headerParams,
|
|
1062
|
+
queryParams: queryParams
|
|
1063
|
+
});
|
|
1064
|
+
try {
|
|
1065
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1066
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1067
|
+
responseObject: {},
|
|
1068
|
+
responseHeaders: [
|
|
1069
|
+
{
|
|
1070
|
+
value: response.headers.get("opc-request-id"),
|
|
1071
|
+
key: "opcRequestId",
|
|
1072
|
+
dataType: "string"
|
|
1073
|
+
}
|
|
1074
|
+
]
|
|
1075
|
+
});
|
|
1076
|
+
return sdkResponse;
|
|
1077
|
+
}
|
|
1078
|
+
catch (err) {
|
|
1079
|
+
throw err;
|
|
1080
|
+
}
|
|
1081
|
+
});
|
|
1082
|
+
}
|
|
1083
|
+
/**
|
|
1084
|
+
* Deletes the specified Vulnerability Audit.
|
|
1085
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1086
|
+
* @param DeleteVulnerabilityAuditRequest
|
|
1087
|
+
* @return DeleteVulnerabilityAuditResponse
|
|
1088
|
+
* @throws OciError when an error occurs
|
|
1089
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/DeleteVulnerabilityAudit.ts.html |here} to see how to use DeleteVulnerabilityAudit API.
|
|
1090
|
+
*/
|
|
1091
|
+
deleteVulnerabilityAudit(deleteVulnerabilityAuditRequest) {
|
|
1092
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1093
|
+
if (this.logger)
|
|
1094
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#deleteVulnerabilityAudit.");
|
|
1095
|
+
const operationName = "deleteVulnerabilityAudit";
|
|
1096
|
+
const apiReferenceLink = "";
|
|
1097
|
+
const pathParams = {
|
|
1098
|
+
"{vulnerabilityAuditId}": deleteVulnerabilityAuditRequest.vulnerabilityAuditId
|
|
1099
|
+
};
|
|
1100
|
+
const queryParams = {};
|
|
1101
|
+
let headerParams = {
|
|
1102
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1103
|
+
"if-match": deleteVulnerabilityAuditRequest.ifMatch,
|
|
1104
|
+
"opc-request-id": deleteVulnerabilityAuditRequest.opcRequestId
|
|
1105
|
+
};
|
|
1106
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1107
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteVulnerabilityAuditRequest.retryConfiguration, specRetryConfiguration);
|
|
1108
|
+
if (this.logger)
|
|
1109
|
+
retrier.logger = this.logger;
|
|
1110
|
+
const request = yield oci_common_1.composeRequest({
|
|
1111
|
+
baseEndpoint: this._endpoint,
|
|
1112
|
+
defaultHeaders: this._defaultHeaders,
|
|
1113
|
+
path: "/vulnerabilityAudits/{vulnerabilityAuditId}",
|
|
1114
|
+
method: "DELETE",
|
|
1115
|
+
pathParams: pathParams,
|
|
1116
|
+
headerParams: headerParams,
|
|
1117
|
+
queryParams: queryParams
|
|
1118
|
+
});
|
|
1119
|
+
try {
|
|
1120
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1121
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1122
|
+
responseObject: {},
|
|
1123
|
+
responseHeaders: [
|
|
1124
|
+
{
|
|
1125
|
+
value: response.headers.get("opc-request-id"),
|
|
1126
|
+
key: "opcRequestId",
|
|
1127
|
+
dataType: "string"
|
|
1128
|
+
}
|
|
1129
|
+
]
|
|
1130
|
+
});
|
|
1131
|
+
return sdkResponse;
|
|
1132
|
+
}
|
|
1133
|
+
catch (err) {
|
|
1134
|
+
throw err;
|
|
1135
|
+
}
|
|
1136
|
+
});
|
|
1137
|
+
}
|
|
1138
|
+
/**
|
|
1139
|
+
* Returns the details of the specified Knowledge Base.
|
|
1140
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1141
|
+
* @param GetKnowledgeBaseRequest
|
|
1142
|
+
* @return GetKnowledgeBaseResponse
|
|
1143
|
+
* @throws OciError when an error occurs
|
|
1144
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/GetKnowledgeBase.ts.html |here} to see how to use GetKnowledgeBase API.
|
|
1145
|
+
*/
|
|
1146
|
+
getKnowledgeBase(getKnowledgeBaseRequest) {
|
|
1147
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1148
|
+
if (this.logger)
|
|
1149
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#getKnowledgeBase.");
|
|
1150
|
+
const operationName = "getKnowledgeBase";
|
|
1151
|
+
const apiReferenceLink = "";
|
|
1152
|
+
const pathParams = {
|
|
1153
|
+
"{knowledgeBaseId}": getKnowledgeBaseRequest.knowledgeBaseId
|
|
1154
|
+
};
|
|
1155
|
+
const queryParams = {};
|
|
1156
|
+
let headerParams = {
|
|
1157
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1158
|
+
"opc-request-id": getKnowledgeBaseRequest.opcRequestId
|
|
1159
|
+
};
|
|
1160
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1161
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getKnowledgeBaseRequest.retryConfiguration, specRetryConfiguration);
|
|
1162
|
+
if (this.logger)
|
|
1163
|
+
retrier.logger = this.logger;
|
|
1164
|
+
const request = yield oci_common_1.composeRequest({
|
|
1165
|
+
baseEndpoint: this._endpoint,
|
|
1166
|
+
defaultHeaders: this._defaultHeaders,
|
|
1167
|
+
path: "/knowledgeBases/{knowledgeBaseId}",
|
|
1168
|
+
method: "GET",
|
|
1169
|
+
pathParams: pathParams,
|
|
1170
|
+
headerParams: headerParams,
|
|
1171
|
+
queryParams: queryParams
|
|
1172
|
+
});
|
|
1173
|
+
try {
|
|
1174
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1175
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1176
|
+
responseObject: {},
|
|
1177
|
+
body: yield response.json(),
|
|
1178
|
+
bodyKey: "knowledgeBase",
|
|
1179
|
+
bodyModel: model.KnowledgeBase,
|
|
1180
|
+
type: "model.KnowledgeBase",
|
|
1181
|
+
responseHeaders: [
|
|
1182
|
+
{
|
|
1183
|
+
value: response.headers.get("opc-request-id"),
|
|
1184
|
+
key: "opcRequestId",
|
|
1185
|
+
dataType: "string"
|
|
1186
|
+
},
|
|
1187
|
+
{
|
|
1188
|
+
value: response.headers.get("etag"),
|
|
1189
|
+
key: "etag",
|
|
1190
|
+
dataType: "string"
|
|
1191
|
+
}
|
|
1192
|
+
]
|
|
1193
|
+
});
|
|
1194
|
+
return sdkResponse;
|
|
1195
|
+
}
|
|
1196
|
+
catch (err) {
|
|
1197
|
+
throw err;
|
|
1198
|
+
}
|
|
1199
|
+
});
|
|
1200
|
+
}
|
|
1201
|
+
/**
|
|
1202
|
+
* Returns the details of the specified RemediationRecipe.
|
|
1203
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1204
|
+
* @param GetRemediationRecipeRequest
|
|
1205
|
+
* @return GetRemediationRecipeResponse
|
|
1206
|
+
* @throws OciError when an error occurs
|
|
1207
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/GetRemediationRecipe.ts.html |here} to see how to use GetRemediationRecipe API.
|
|
1208
|
+
*/
|
|
1209
|
+
getRemediationRecipe(getRemediationRecipeRequest) {
|
|
1210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1211
|
+
if (this.logger)
|
|
1212
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#getRemediationRecipe.");
|
|
1213
|
+
const operationName = "getRemediationRecipe";
|
|
1214
|
+
const apiReferenceLink = "";
|
|
1215
|
+
const pathParams = {
|
|
1216
|
+
"{remediationRecipeId}": getRemediationRecipeRequest.remediationRecipeId
|
|
1217
|
+
};
|
|
1218
|
+
const queryParams = {};
|
|
1219
|
+
let headerParams = {
|
|
1220
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1221
|
+
"opc-request-id": getRemediationRecipeRequest.opcRequestId
|
|
1222
|
+
};
|
|
1223
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1224
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRemediationRecipeRequest.retryConfiguration, specRetryConfiguration);
|
|
1225
|
+
if (this.logger)
|
|
1226
|
+
retrier.logger = this.logger;
|
|
1227
|
+
const request = yield oci_common_1.composeRequest({
|
|
1228
|
+
baseEndpoint: this._endpoint,
|
|
1229
|
+
defaultHeaders: this._defaultHeaders,
|
|
1230
|
+
path: "/remediationRecipes/{remediationRecipeId}",
|
|
1231
|
+
method: "GET",
|
|
1232
|
+
pathParams: pathParams,
|
|
1233
|
+
headerParams: headerParams,
|
|
1234
|
+
queryParams: queryParams
|
|
1235
|
+
});
|
|
1236
|
+
try {
|
|
1237
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1238
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1239
|
+
responseObject: {},
|
|
1240
|
+
body: yield response.json(),
|
|
1241
|
+
bodyKey: "remediationRecipe",
|
|
1242
|
+
bodyModel: model.RemediationRecipe,
|
|
1243
|
+
type: "model.RemediationRecipe",
|
|
1244
|
+
responseHeaders: [
|
|
1245
|
+
{
|
|
1246
|
+
value: response.headers.get("opc-request-id"),
|
|
1247
|
+
key: "opcRequestId",
|
|
1248
|
+
dataType: "string"
|
|
1249
|
+
},
|
|
1250
|
+
{
|
|
1251
|
+
value: response.headers.get("etag"),
|
|
1252
|
+
key: "etag",
|
|
1253
|
+
dataType: "string"
|
|
1254
|
+
}
|
|
1255
|
+
]
|
|
1256
|
+
});
|
|
1257
|
+
return sdkResponse;
|
|
1258
|
+
}
|
|
1259
|
+
catch (err) {
|
|
1260
|
+
throw err;
|
|
1261
|
+
}
|
|
1262
|
+
});
|
|
1263
|
+
}
|
|
1264
|
+
/**
|
|
1265
|
+
* Returns the details of the specified remediation run.
|
|
1266
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1267
|
+
* @param GetRemediationRunRequest
|
|
1268
|
+
* @return GetRemediationRunResponse
|
|
1269
|
+
* @throws OciError when an error occurs
|
|
1270
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/GetRemediationRun.ts.html |here} to see how to use GetRemediationRun API.
|
|
1271
|
+
*/
|
|
1272
|
+
getRemediationRun(getRemediationRunRequest) {
|
|
1273
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1274
|
+
if (this.logger)
|
|
1275
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#getRemediationRun.");
|
|
1276
|
+
const operationName = "getRemediationRun";
|
|
1277
|
+
const apiReferenceLink = "";
|
|
1278
|
+
const pathParams = {
|
|
1279
|
+
"{remediationRunId}": getRemediationRunRequest.remediationRunId
|
|
1280
|
+
};
|
|
1281
|
+
const queryParams = {};
|
|
1282
|
+
let headerParams = {
|
|
1283
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1284
|
+
"opc-request-id": getRemediationRunRequest.opcRequestId
|
|
1285
|
+
};
|
|
1286
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1287
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getRemediationRunRequest.retryConfiguration, specRetryConfiguration);
|
|
1288
|
+
if (this.logger)
|
|
1289
|
+
retrier.logger = this.logger;
|
|
1290
|
+
const request = yield oci_common_1.composeRequest({
|
|
1291
|
+
baseEndpoint: this._endpoint,
|
|
1292
|
+
defaultHeaders: this._defaultHeaders,
|
|
1293
|
+
path: "/remediationRuns/{remediationRunId}",
|
|
1294
|
+
method: "GET",
|
|
1295
|
+
pathParams: pathParams,
|
|
575
1296
|
headerParams: headerParams,
|
|
576
1297
|
queryParams: queryParams
|
|
577
1298
|
});
|
|
@@ -579,11 +1300,20 @@ class ApplicationDependencyManagementClient {
|
|
|
579
1300
|
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
580
1301
|
const sdkResponse = oci_common_1.composeResponse({
|
|
581
1302
|
responseObject: {},
|
|
1303
|
+
body: yield response.json(),
|
|
1304
|
+
bodyKey: "remediationRun",
|
|
1305
|
+
bodyModel: model.RemediationRun,
|
|
1306
|
+
type: "model.RemediationRun",
|
|
582
1307
|
responseHeaders: [
|
|
583
1308
|
{
|
|
584
1309
|
value: response.headers.get("opc-request-id"),
|
|
585
1310
|
key: "opcRequestId",
|
|
586
1311
|
dataType: "string"
|
|
1312
|
+
},
|
|
1313
|
+
{
|
|
1314
|
+
value: response.headers.get("etag"),
|
|
1315
|
+
key: "etag",
|
|
1316
|
+
dataType: "string"
|
|
587
1317
|
}
|
|
588
1318
|
]
|
|
589
1319
|
});
|
|
@@ -595,35 +1325,305 @@ class ApplicationDependencyManagementClient {
|
|
|
595
1325
|
});
|
|
596
1326
|
}
|
|
597
1327
|
/**
|
|
598
|
-
* Returns the details of the specified
|
|
1328
|
+
* Returns the details of the specified Remediation Run Stage.
|
|
599
1329
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
600
|
-
* @param
|
|
601
|
-
* @return
|
|
1330
|
+
* @param GetStageRequest
|
|
1331
|
+
* @return GetStageResponse
|
|
602
1332
|
* @throws OciError when an error occurs
|
|
603
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1333
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/GetStage.ts.html |here} to see how to use GetStage API.
|
|
604
1334
|
*/
|
|
605
|
-
|
|
1335
|
+
getStage(getStageRequest) {
|
|
606
1336
|
return __awaiter(this, void 0, void 0, function* () {
|
|
607
1337
|
if (this.logger)
|
|
608
|
-
this.logger.debug("Calling operation ApplicationDependencyManagementClient#
|
|
609
|
-
const operationName = "
|
|
1338
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#getStage.");
|
|
1339
|
+
const operationName = "getStage";
|
|
1340
|
+
const apiReferenceLink = "";
|
|
1341
|
+
const pathParams = {
|
|
1342
|
+
"{remediationRunId}": getStageRequest.remediationRunId,
|
|
1343
|
+
"{stageType}": getStageRequest.stageType
|
|
1344
|
+
};
|
|
1345
|
+
const queryParams = {};
|
|
1346
|
+
let headerParams = {
|
|
1347
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1348
|
+
"opc-request-id": getStageRequest.opcRequestId
|
|
1349
|
+
};
|
|
1350
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1351
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getStageRequest.retryConfiguration, specRetryConfiguration);
|
|
1352
|
+
if (this.logger)
|
|
1353
|
+
retrier.logger = this.logger;
|
|
1354
|
+
const request = yield oci_common_1.composeRequest({
|
|
1355
|
+
baseEndpoint: this._endpoint,
|
|
1356
|
+
defaultHeaders: this._defaultHeaders,
|
|
1357
|
+
path: "/remediationRuns/{remediationRunId}/stages/{stageType}",
|
|
1358
|
+
method: "GET",
|
|
1359
|
+
pathParams: pathParams,
|
|
1360
|
+
headerParams: headerParams,
|
|
1361
|
+
queryParams: queryParams
|
|
1362
|
+
});
|
|
1363
|
+
try {
|
|
1364
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1365
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1366
|
+
responseObject: {},
|
|
1367
|
+
body: yield response.json(),
|
|
1368
|
+
bodyKey: "remediationRunStage",
|
|
1369
|
+
bodyModel: model.RemediationRunStage,
|
|
1370
|
+
type: "model.RemediationRunStage",
|
|
1371
|
+
responseHeaders: [
|
|
1372
|
+
{
|
|
1373
|
+
value: response.headers.get("opc-request-id"),
|
|
1374
|
+
key: "opcRequestId",
|
|
1375
|
+
dataType: "string"
|
|
1376
|
+
}
|
|
1377
|
+
]
|
|
1378
|
+
});
|
|
1379
|
+
return sdkResponse;
|
|
1380
|
+
}
|
|
1381
|
+
catch (err) {
|
|
1382
|
+
throw err;
|
|
1383
|
+
}
|
|
1384
|
+
});
|
|
1385
|
+
}
|
|
1386
|
+
/**
|
|
1387
|
+
* Returns the details of the specified Vulnerability Audit.
|
|
1388
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1389
|
+
* @param GetVulnerabilityAuditRequest
|
|
1390
|
+
* @return GetVulnerabilityAuditResponse
|
|
1391
|
+
* @throws OciError when an error occurs
|
|
1392
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/GetVulnerabilityAudit.ts.html |here} to see how to use GetVulnerabilityAudit API.
|
|
1393
|
+
*/
|
|
1394
|
+
getVulnerabilityAudit(getVulnerabilityAuditRequest) {
|
|
1395
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1396
|
+
if (this.logger)
|
|
1397
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#getVulnerabilityAudit.");
|
|
1398
|
+
const operationName = "getVulnerabilityAudit";
|
|
1399
|
+
const apiReferenceLink = "";
|
|
1400
|
+
const pathParams = {
|
|
1401
|
+
"{vulnerabilityAuditId}": getVulnerabilityAuditRequest.vulnerabilityAuditId
|
|
1402
|
+
};
|
|
1403
|
+
const queryParams = {};
|
|
1404
|
+
let headerParams = {
|
|
1405
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1406
|
+
"opc-request-id": getVulnerabilityAuditRequest.opcRequestId
|
|
1407
|
+
};
|
|
1408
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1409
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVulnerabilityAuditRequest.retryConfiguration, specRetryConfiguration);
|
|
1410
|
+
if (this.logger)
|
|
1411
|
+
retrier.logger = this.logger;
|
|
1412
|
+
const request = yield oci_common_1.composeRequest({
|
|
1413
|
+
baseEndpoint: this._endpoint,
|
|
1414
|
+
defaultHeaders: this._defaultHeaders,
|
|
1415
|
+
path: "/vulnerabilityAudits/{vulnerabilityAuditId}",
|
|
1416
|
+
method: "GET",
|
|
1417
|
+
pathParams: pathParams,
|
|
1418
|
+
headerParams: headerParams,
|
|
1419
|
+
queryParams: queryParams
|
|
1420
|
+
});
|
|
1421
|
+
try {
|
|
1422
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1423
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1424
|
+
responseObject: {},
|
|
1425
|
+
body: yield response.json(),
|
|
1426
|
+
bodyKey: "vulnerabilityAudit",
|
|
1427
|
+
bodyModel: model.VulnerabilityAudit,
|
|
1428
|
+
type: "model.VulnerabilityAudit",
|
|
1429
|
+
responseHeaders: [
|
|
1430
|
+
{
|
|
1431
|
+
value: response.headers.get("etag"),
|
|
1432
|
+
key: "etag",
|
|
1433
|
+
dataType: "string"
|
|
1434
|
+
},
|
|
1435
|
+
{
|
|
1436
|
+
value: response.headers.get("opc-request-id"),
|
|
1437
|
+
key: "opcRequestId",
|
|
1438
|
+
dataType: "string"
|
|
1439
|
+
}
|
|
1440
|
+
]
|
|
1441
|
+
});
|
|
1442
|
+
return sdkResponse;
|
|
1443
|
+
}
|
|
1444
|
+
catch (err) {
|
|
1445
|
+
throw err;
|
|
1446
|
+
}
|
|
1447
|
+
});
|
|
1448
|
+
}
|
|
1449
|
+
/**
|
|
1450
|
+
* Gets the status of the work request with the given ID.
|
|
1451
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1452
|
+
* @param GetWorkRequestRequest
|
|
1453
|
+
* @return GetWorkRequestResponse
|
|
1454
|
+
* @throws OciError when an error occurs
|
|
1455
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
1456
|
+
*/
|
|
1457
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
1458
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1459
|
+
if (this.logger)
|
|
1460
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#getWorkRequest.");
|
|
1461
|
+
const operationName = "getWorkRequest";
|
|
1462
|
+
const apiReferenceLink = "";
|
|
1463
|
+
const pathParams = {
|
|
1464
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
1465
|
+
};
|
|
1466
|
+
const queryParams = {};
|
|
1467
|
+
let headerParams = {
|
|
1468
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1469
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
1470
|
+
};
|
|
1471
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1472
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
1473
|
+
if (this.logger)
|
|
1474
|
+
retrier.logger = this.logger;
|
|
1475
|
+
const request = yield oci_common_1.composeRequest({
|
|
1476
|
+
baseEndpoint: this._endpoint,
|
|
1477
|
+
defaultHeaders: this._defaultHeaders,
|
|
1478
|
+
path: "/workRequests/{workRequestId}",
|
|
1479
|
+
method: "GET",
|
|
1480
|
+
pathParams: pathParams,
|
|
1481
|
+
headerParams: headerParams,
|
|
1482
|
+
queryParams: queryParams
|
|
1483
|
+
});
|
|
1484
|
+
try {
|
|
1485
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1486
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1487
|
+
responseObject: {},
|
|
1488
|
+
body: yield response.json(),
|
|
1489
|
+
bodyKey: "workRequest",
|
|
1490
|
+
bodyModel: model.WorkRequest,
|
|
1491
|
+
type: "model.WorkRequest",
|
|
1492
|
+
responseHeaders: [
|
|
1493
|
+
{
|
|
1494
|
+
value: response.headers.get("etag"),
|
|
1495
|
+
key: "etag",
|
|
1496
|
+
dataType: "string"
|
|
1497
|
+
},
|
|
1498
|
+
{
|
|
1499
|
+
value: response.headers.get("opc-request-id"),
|
|
1500
|
+
key: "opcRequestId",
|
|
1501
|
+
dataType: "string"
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
value: response.headers.get("retry-after"),
|
|
1505
|
+
key: "retryAfter",
|
|
1506
|
+
dataType: "number"
|
|
1507
|
+
}
|
|
1508
|
+
]
|
|
1509
|
+
});
|
|
1510
|
+
return sdkResponse;
|
|
1511
|
+
}
|
|
1512
|
+
catch (err) {
|
|
1513
|
+
throw err;
|
|
1514
|
+
}
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
/**
|
|
1518
|
+
* Returns a list of application dependency with their associated recommendations.
|
|
1519
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1520
|
+
* @param ListApplicationDependencyRecommendationsRequest
|
|
1521
|
+
* @return ListApplicationDependencyRecommendationsResponse
|
|
1522
|
+
* @throws OciError when an error occurs
|
|
1523
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ListApplicationDependencyRecommendations.ts.html |here} to see how to use ListApplicationDependencyRecommendations API.
|
|
1524
|
+
*/
|
|
1525
|
+
listApplicationDependencyRecommendations(listApplicationDependencyRecommendationsRequest) {
|
|
1526
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1527
|
+
if (this.logger)
|
|
1528
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#listApplicationDependencyRecommendations.");
|
|
1529
|
+
const operationName = "listApplicationDependencyRecommendations";
|
|
1530
|
+
const apiReferenceLink = "";
|
|
1531
|
+
const pathParams = {
|
|
1532
|
+
"{remediationRunId}": listApplicationDependencyRecommendationsRequest.remediationRunId
|
|
1533
|
+
};
|
|
1534
|
+
const queryParams = {
|
|
1535
|
+
"limit": listApplicationDependencyRecommendationsRequest.limit,
|
|
1536
|
+
"page": listApplicationDependencyRecommendationsRequest.page,
|
|
1537
|
+
"sortOrder": listApplicationDependencyRecommendationsRequest.sortOrder,
|
|
1538
|
+
"gav": listApplicationDependencyRecommendationsRequest.gav,
|
|
1539
|
+
"sortBy": listApplicationDependencyRecommendationsRequest.sortBy
|
|
1540
|
+
};
|
|
1541
|
+
let headerParams = {
|
|
1542
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1543
|
+
"opc-request-id": listApplicationDependencyRecommendationsRequest.opcRequestId
|
|
1544
|
+
};
|
|
1545
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1546
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listApplicationDependencyRecommendationsRequest.retryConfiguration, specRetryConfiguration);
|
|
1547
|
+
if (this.logger)
|
|
1548
|
+
retrier.logger = this.logger;
|
|
1549
|
+
const request = yield oci_common_1.composeRequest({
|
|
1550
|
+
baseEndpoint: this._endpoint,
|
|
1551
|
+
defaultHeaders: this._defaultHeaders,
|
|
1552
|
+
path: "/remediationRuns/{remediationRunId}/applicationDependencyRecommendations",
|
|
1553
|
+
method: "GET",
|
|
1554
|
+
pathParams: pathParams,
|
|
1555
|
+
headerParams: headerParams,
|
|
1556
|
+
queryParams: queryParams
|
|
1557
|
+
});
|
|
1558
|
+
try {
|
|
1559
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1560
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1561
|
+
responseObject: {},
|
|
1562
|
+
body: yield response.json(),
|
|
1563
|
+
bodyKey: "applicationDependencyRecommendationCollection",
|
|
1564
|
+
bodyModel: model.ApplicationDependencyRecommendationCollection,
|
|
1565
|
+
type: "model.ApplicationDependencyRecommendationCollection",
|
|
1566
|
+
responseHeaders: [
|
|
1567
|
+
{
|
|
1568
|
+
value: response.headers.get("opc-request-id"),
|
|
1569
|
+
key: "opcRequestId",
|
|
1570
|
+
dataType: "string"
|
|
1571
|
+
},
|
|
1572
|
+
{
|
|
1573
|
+
value: response.headers.get("opc-next-page"),
|
|
1574
|
+
key: "opcNextPage",
|
|
1575
|
+
dataType: "string"
|
|
1576
|
+
}
|
|
1577
|
+
]
|
|
1578
|
+
});
|
|
1579
|
+
return sdkResponse;
|
|
1580
|
+
}
|
|
1581
|
+
catch (err) {
|
|
1582
|
+
throw err;
|
|
1583
|
+
}
|
|
1584
|
+
});
|
|
1585
|
+
}
|
|
1586
|
+
/**
|
|
1587
|
+
* Returns a list of Application Dependencies with their associated vulnerabilities.
|
|
1588
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1589
|
+
* @param ListApplicationDependencyVulnerabilitiesRequest
|
|
1590
|
+
* @return ListApplicationDependencyVulnerabilitiesResponse
|
|
1591
|
+
* @throws OciError when an error occurs
|
|
1592
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ListApplicationDependencyVulnerabilities.ts.html |here} to see how to use ListApplicationDependencyVulnerabilities API.
|
|
1593
|
+
*/
|
|
1594
|
+
listApplicationDependencyVulnerabilities(listApplicationDependencyVulnerabilitiesRequest) {
|
|
1595
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1596
|
+
if (this.logger)
|
|
1597
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#listApplicationDependencyVulnerabilities.");
|
|
1598
|
+
const operationName = "listApplicationDependencyVulnerabilities";
|
|
610
1599
|
const apiReferenceLink = "";
|
|
611
1600
|
const pathParams = {
|
|
612
|
-
"{
|
|
1601
|
+
"{vulnerabilityAuditId}": listApplicationDependencyVulnerabilitiesRequest.vulnerabilityAuditId
|
|
1602
|
+
};
|
|
1603
|
+
const queryParams = {
|
|
1604
|
+
"vulnerabilityId": listApplicationDependencyVulnerabilitiesRequest.vulnerabilityId,
|
|
1605
|
+
"cvssV3GreaterThanOrEqual": listApplicationDependencyVulnerabilitiesRequest.cvssV3GreaterThanOrEqual,
|
|
1606
|
+
"cvssV2GreaterThanOrEqual": listApplicationDependencyVulnerabilitiesRequest.cvssV2GreaterThanOrEqual,
|
|
1607
|
+
"limit": listApplicationDependencyVulnerabilitiesRequest.limit,
|
|
1608
|
+
"page": listApplicationDependencyVulnerabilitiesRequest.page,
|
|
1609
|
+
"sortOrder": listApplicationDependencyVulnerabilitiesRequest.sortOrder,
|
|
1610
|
+
"sortBy": listApplicationDependencyVulnerabilitiesRequest.sortBy,
|
|
1611
|
+
"rootNodeId": listApplicationDependencyVulnerabilitiesRequest.rootNodeId,
|
|
1612
|
+
"depth": listApplicationDependencyVulnerabilitiesRequest.depth,
|
|
1613
|
+
"gav": listApplicationDependencyVulnerabilitiesRequest.gav
|
|
613
1614
|
};
|
|
614
|
-
const queryParams = {};
|
|
615
1615
|
let headerParams = {
|
|
616
1616
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
617
|
-
"opc-request-id":
|
|
1617
|
+
"opc-request-id": listApplicationDependencyVulnerabilitiesRequest.opcRequestId
|
|
618
1618
|
};
|
|
619
1619
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
620
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1620
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listApplicationDependencyVulnerabilitiesRequest.retryConfiguration, specRetryConfiguration);
|
|
621
1621
|
if (this.logger)
|
|
622
1622
|
retrier.logger = this.logger;
|
|
623
1623
|
const request = yield oci_common_1.composeRequest({
|
|
624
1624
|
baseEndpoint: this._endpoint,
|
|
625
1625
|
defaultHeaders: this._defaultHeaders,
|
|
626
|
-
path: "/
|
|
1626
|
+
path: "/vulnerabilityAudits/{vulnerabilityAuditId}/applicationDependencyVulnerabilities",
|
|
627
1627
|
method: "GET",
|
|
628
1628
|
pathParams: pathParams,
|
|
629
1629
|
headerParams: headerParams,
|
|
@@ -634,9 +1634,9 @@ class ApplicationDependencyManagementClient {
|
|
|
634
1634
|
const sdkResponse = oci_common_1.composeResponse({
|
|
635
1635
|
responseObject: {},
|
|
636
1636
|
body: yield response.json(),
|
|
637
|
-
bodyKey: "
|
|
638
|
-
bodyModel: model.
|
|
639
|
-
type: "model.
|
|
1637
|
+
bodyKey: "applicationDependencyVulnerabilityCollection",
|
|
1638
|
+
bodyModel: model.ApplicationDependencyVulnerabilityCollection,
|
|
1639
|
+
type: "model.ApplicationDependencyVulnerabilityCollection",
|
|
640
1640
|
responseHeaders: [
|
|
641
1641
|
{
|
|
642
1642
|
value: response.headers.get("opc-request-id"),
|
|
@@ -644,8 +1644,8 @@ class ApplicationDependencyManagementClient {
|
|
|
644
1644
|
dataType: "string"
|
|
645
1645
|
},
|
|
646
1646
|
{
|
|
647
|
-
value: response.headers.get("
|
|
648
|
-
key: "
|
|
1647
|
+
value: response.headers.get("opc-next-page"),
|
|
1648
|
+
key: "opcNextPage",
|
|
649
1649
|
dataType: "string"
|
|
650
1650
|
}
|
|
651
1651
|
]
|
|
@@ -658,35 +1658,44 @@ class ApplicationDependencyManagementClient {
|
|
|
658
1658
|
});
|
|
659
1659
|
}
|
|
660
1660
|
/**
|
|
661
|
-
* Returns
|
|
1661
|
+
* Returns a list of KnowledgeBases based on the specified query parameters.
|
|
1662
|
+
* At least id or compartmentId query parameter must be provided.
|
|
1663
|
+
*
|
|
662
1664
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
663
|
-
* @param
|
|
664
|
-
* @return
|
|
1665
|
+
* @param ListKnowledgeBasesRequest
|
|
1666
|
+
* @return ListKnowledgeBasesResponse
|
|
665
1667
|
* @throws OciError when an error occurs
|
|
666
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1668
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ListKnowledgeBases.ts.html |here} to see how to use ListKnowledgeBases API.
|
|
667
1669
|
*/
|
|
668
|
-
|
|
1670
|
+
listKnowledgeBases(listKnowledgeBasesRequest) {
|
|
669
1671
|
return __awaiter(this, void 0, void 0, function* () {
|
|
670
1672
|
if (this.logger)
|
|
671
|
-
this.logger.debug("Calling operation ApplicationDependencyManagementClient#
|
|
672
|
-
const operationName = "
|
|
1673
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#listKnowledgeBases.");
|
|
1674
|
+
const operationName = "listKnowledgeBases";
|
|
673
1675
|
const apiReferenceLink = "";
|
|
674
|
-
const pathParams = {
|
|
675
|
-
|
|
1676
|
+
const pathParams = {};
|
|
1677
|
+
const queryParams = {
|
|
1678
|
+
"id": listKnowledgeBasesRequest.id,
|
|
1679
|
+
"sortBy": listKnowledgeBasesRequest.sortBy,
|
|
1680
|
+
"lifecycleState": listKnowledgeBasesRequest.lifecycleState,
|
|
1681
|
+
"sortOrder": listKnowledgeBasesRequest.sortOrder,
|
|
1682
|
+
"displayName": listKnowledgeBasesRequest.displayName,
|
|
1683
|
+
"limit": listKnowledgeBasesRequest.limit,
|
|
1684
|
+
"page": listKnowledgeBasesRequest.page,
|
|
1685
|
+
"compartmentId": listKnowledgeBasesRequest.compartmentId
|
|
676
1686
|
};
|
|
677
|
-
const queryParams = {};
|
|
678
1687
|
let headerParams = {
|
|
679
1688
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
680
|
-
"opc-request-id":
|
|
1689
|
+
"opc-request-id": listKnowledgeBasesRequest.opcRequestId
|
|
681
1690
|
};
|
|
682
1691
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
683
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1692
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listKnowledgeBasesRequest.retryConfiguration, specRetryConfiguration);
|
|
684
1693
|
if (this.logger)
|
|
685
1694
|
retrier.logger = this.logger;
|
|
686
1695
|
const request = yield oci_common_1.composeRequest({
|
|
687
1696
|
baseEndpoint: this._endpoint,
|
|
688
1697
|
defaultHeaders: this._defaultHeaders,
|
|
689
|
-
path: "/
|
|
1698
|
+
path: "/knowledgeBases",
|
|
690
1699
|
method: "GET",
|
|
691
1700
|
pathParams: pathParams,
|
|
692
1701
|
headerParams: headerParams,
|
|
@@ -697,18 +1706,18 @@ class ApplicationDependencyManagementClient {
|
|
|
697
1706
|
const sdkResponse = oci_common_1.composeResponse({
|
|
698
1707
|
responseObject: {},
|
|
699
1708
|
body: yield response.json(),
|
|
700
|
-
bodyKey: "
|
|
701
|
-
bodyModel: model.
|
|
702
|
-
type: "model.
|
|
1709
|
+
bodyKey: "knowledgeBaseCollection",
|
|
1710
|
+
bodyModel: model.KnowledgeBaseCollection,
|
|
1711
|
+
type: "model.KnowledgeBaseCollection",
|
|
703
1712
|
responseHeaders: [
|
|
704
1713
|
{
|
|
705
|
-
value: response.headers.get("
|
|
706
|
-
key: "
|
|
1714
|
+
value: response.headers.get("opc-request-id"),
|
|
1715
|
+
key: "opcRequestId",
|
|
707
1716
|
dataType: "string"
|
|
708
1717
|
},
|
|
709
1718
|
{
|
|
710
|
-
value: response.headers.get("opc-
|
|
711
|
-
key: "
|
|
1719
|
+
value: response.headers.get("opc-next-page"),
|
|
1720
|
+
key: "opcNextPage",
|
|
712
1721
|
dataType: "string"
|
|
713
1722
|
}
|
|
714
1723
|
]
|
|
@@ -721,35 +1730,44 @@ class ApplicationDependencyManagementClient {
|
|
|
721
1730
|
});
|
|
722
1731
|
}
|
|
723
1732
|
/**
|
|
724
|
-
*
|
|
1733
|
+
* Returns a list of Remediation Recipes based on the specified query parameters.
|
|
1734
|
+
* The query parameters `compartmentId` or `id` must be provided.
|
|
1735
|
+
*
|
|
725
1736
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
726
|
-
* @param
|
|
727
|
-
* @return
|
|
1737
|
+
* @param ListRemediationRecipesRequest
|
|
1738
|
+
* @return ListRemediationRecipesResponse
|
|
728
1739
|
* @throws OciError when an error occurs
|
|
729
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1740
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ListRemediationRecipes.ts.html |here} to see how to use ListRemediationRecipes API.
|
|
730
1741
|
*/
|
|
731
|
-
|
|
1742
|
+
listRemediationRecipes(listRemediationRecipesRequest) {
|
|
732
1743
|
return __awaiter(this, void 0, void 0, function* () {
|
|
733
1744
|
if (this.logger)
|
|
734
|
-
this.logger.debug("Calling operation ApplicationDependencyManagementClient#
|
|
735
|
-
const operationName = "
|
|
1745
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#listRemediationRecipes.");
|
|
1746
|
+
const operationName = "listRemediationRecipes";
|
|
736
1747
|
const apiReferenceLink = "";
|
|
737
|
-
const pathParams = {
|
|
738
|
-
|
|
1748
|
+
const pathParams = {};
|
|
1749
|
+
const queryParams = {
|
|
1750
|
+
"id": listRemediationRecipesRequest.id,
|
|
1751
|
+
"sortBy": listRemediationRecipesRequest.sortBy,
|
|
1752
|
+
"lifecycleState": listRemediationRecipesRequest.lifecycleState,
|
|
1753
|
+
"sortOrder": listRemediationRecipesRequest.sortOrder,
|
|
1754
|
+
"displayName": listRemediationRecipesRequest.displayName,
|
|
1755
|
+
"limit": listRemediationRecipesRequest.limit,
|
|
1756
|
+
"page": listRemediationRecipesRequest.page,
|
|
1757
|
+
"compartmentId": listRemediationRecipesRequest.compartmentId
|
|
739
1758
|
};
|
|
740
|
-
const queryParams = {};
|
|
741
1759
|
let headerParams = {
|
|
742
1760
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
743
|
-
"opc-request-id":
|
|
1761
|
+
"opc-request-id": listRemediationRecipesRequest.opcRequestId
|
|
744
1762
|
};
|
|
745
1763
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
746
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1764
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRemediationRecipesRequest.retryConfiguration, specRetryConfiguration);
|
|
747
1765
|
if (this.logger)
|
|
748
1766
|
retrier.logger = this.logger;
|
|
749
1767
|
const request = yield oci_common_1.composeRequest({
|
|
750
1768
|
baseEndpoint: this._endpoint,
|
|
751
1769
|
defaultHeaders: this._defaultHeaders,
|
|
752
|
-
path: "/
|
|
1770
|
+
path: "/remediationRecipes",
|
|
753
1771
|
method: "GET",
|
|
754
1772
|
pathParams: pathParams,
|
|
755
1773
|
headerParams: headerParams,
|
|
@@ -760,24 +1778,19 @@ class ApplicationDependencyManagementClient {
|
|
|
760
1778
|
const sdkResponse = oci_common_1.composeResponse({
|
|
761
1779
|
responseObject: {},
|
|
762
1780
|
body: yield response.json(),
|
|
763
|
-
bodyKey: "
|
|
764
|
-
bodyModel: model.
|
|
765
|
-
type: "model.
|
|
1781
|
+
bodyKey: "remediationRecipeCollection",
|
|
1782
|
+
bodyModel: model.RemediationRecipeCollection,
|
|
1783
|
+
type: "model.RemediationRecipeCollection",
|
|
766
1784
|
responseHeaders: [
|
|
767
|
-
{
|
|
768
|
-
value: response.headers.get("etag"),
|
|
769
|
-
key: "etag",
|
|
770
|
-
dataType: "string"
|
|
771
|
-
},
|
|
772
1785
|
{
|
|
773
1786
|
value: response.headers.get("opc-request-id"),
|
|
774
1787
|
key: "opcRequestId",
|
|
775
1788
|
dataType: "string"
|
|
776
1789
|
},
|
|
777
1790
|
{
|
|
778
|
-
value: response.headers.get("
|
|
779
|
-
key: "
|
|
780
|
-
dataType: "
|
|
1791
|
+
value: response.headers.get("opc-next-page"),
|
|
1792
|
+
key: "opcNextPage",
|
|
1793
|
+
dataType: "string"
|
|
781
1794
|
}
|
|
782
1795
|
]
|
|
783
1796
|
});
|
|
@@ -789,46 +1802,45 @@ class ApplicationDependencyManagementClient {
|
|
|
789
1802
|
});
|
|
790
1803
|
}
|
|
791
1804
|
/**
|
|
792
|
-
* Returns a list of
|
|
1805
|
+
* Returns a list of remediation runs contained by a compartment.
|
|
1806
|
+
* The query parameter `compartmentId` is required unless the query parameter `id` is specified.
|
|
1807
|
+
*
|
|
793
1808
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
794
|
-
* @param
|
|
795
|
-
* @return
|
|
1809
|
+
* @param ListRemediationRunsRequest
|
|
1810
|
+
* @return ListRemediationRunsResponse
|
|
796
1811
|
* @throws OciError when an error occurs
|
|
797
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1812
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ListRemediationRuns.ts.html |here} to see how to use ListRemediationRuns API.
|
|
798
1813
|
*/
|
|
799
|
-
|
|
1814
|
+
listRemediationRuns(listRemediationRunsRequest) {
|
|
800
1815
|
return __awaiter(this, void 0, void 0, function* () {
|
|
801
1816
|
if (this.logger)
|
|
802
|
-
this.logger.debug("Calling operation ApplicationDependencyManagementClient#
|
|
803
|
-
const operationName = "
|
|
1817
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#listRemediationRuns.");
|
|
1818
|
+
const operationName = "listRemediationRuns";
|
|
804
1819
|
const apiReferenceLink = "";
|
|
805
|
-
const pathParams = {
|
|
806
|
-
"{vulnerabilityAuditId}": listApplicationDependencyVulnerabilitiesRequest.vulnerabilityAuditId
|
|
807
|
-
};
|
|
1820
|
+
const pathParams = {};
|
|
808
1821
|
const queryParams = {
|
|
809
|
-
"
|
|
810
|
-
"
|
|
811
|
-
"
|
|
812
|
-
"
|
|
813
|
-
"
|
|
814
|
-
"
|
|
815
|
-
"
|
|
816
|
-
"
|
|
817
|
-
"
|
|
818
|
-
"gav": listApplicationDependencyVulnerabilitiesRequest.gav
|
|
1822
|
+
"id": listRemediationRunsRequest.id,
|
|
1823
|
+
"remediationRecipeId": listRemediationRunsRequest.remediationRecipeId,
|
|
1824
|
+
"lifecycleState": listRemediationRunsRequest.lifecycleState,
|
|
1825
|
+
"displayName": listRemediationRunsRequest.displayName,
|
|
1826
|
+
"sortOrder": listRemediationRunsRequest.sortOrder,
|
|
1827
|
+
"sortBy": listRemediationRunsRequest.sortBy,
|
|
1828
|
+
"compartmentId": listRemediationRunsRequest.compartmentId,
|
|
1829
|
+
"limit": listRemediationRunsRequest.limit,
|
|
1830
|
+
"page": listRemediationRunsRequest.page
|
|
819
1831
|
};
|
|
820
1832
|
let headerParams = {
|
|
821
1833
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
822
|
-
"opc-request-id":
|
|
1834
|
+
"opc-request-id": listRemediationRunsRequest.opcRequestId
|
|
823
1835
|
};
|
|
824
1836
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
825
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1837
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listRemediationRunsRequest.retryConfiguration, specRetryConfiguration);
|
|
826
1838
|
if (this.logger)
|
|
827
1839
|
retrier.logger = this.logger;
|
|
828
1840
|
const request = yield oci_common_1.composeRequest({
|
|
829
1841
|
baseEndpoint: this._endpoint,
|
|
830
1842
|
defaultHeaders: this._defaultHeaders,
|
|
831
|
-
path: "/
|
|
1843
|
+
path: "/remediationRuns",
|
|
832
1844
|
method: "GET",
|
|
833
1845
|
pathParams: pathParams,
|
|
834
1846
|
headerParams: headerParams,
|
|
@@ -839,9 +1851,9 @@ class ApplicationDependencyManagementClient {
|
|
|
839
1851
|
const sdkResponse = oci_common_1.composeResponse({
|
|
840
1852
|
responseObject: {},
|
|
841
1853
|
body: yield response.json(),
|
|
842
|
-
bodyKey: "
|
|
843
|
-
bodyModel: model.
|
|
844
|
-
type: "model.
|
|
1854
|
+
bodyKey: "remediationRunCollection",
|
|
1855
|
+
bodyModel: model.RemediationRunCollection,
|
|
1856
|
+
type: "model.RemediationRunCollection",
|
|
845
1857
|
responseHeaders: [
|
|
846
1858
|
{
|
|
847
1859
|
value: response.headers.get("opc-request-id"),
|
|
@@ -863,44 +1875,42 @@ class ApplicationDependencyManagementClient {
|
|
|
863
1875
|
});
|
|
864
1876
|
}
|
|
865
1877
|
/**
|
|
866
|
-
* Returns a list of
|
|
867
|
-
* At least id or compartmentId query parameter must be provided.
|
|
868
|
-
*
|
|
1878
|
+
* Returns a list of Remediation Run Stages based on the specified query parameters and Remediation Run identifier.
|
|
869
1879
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
870
|
-
* @param
|
|
871
|
-
* @return
|
|
1880
|
+
* @param ListStagesRequest
|
|
1881
|
+
* @return ListStagesResponse
|
|
872
1882
|
* @throws OciError when an error occurs
|
|
873
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1883
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ListStages.ts.html |here} to see how to use ListStages API.
|
|
874
1884
|
*/
|
|
875
|
-
|
|
1885
|
+
listStages(listStagesRequest) {
|
|
876
1886
|
return __awaiter(this, void 0, void 0, function* () {
|
|
877
1887
|
if (this.logger)
|
|
878
|
-
this.logger.debug("Calling operation ApplicationDependencyManagementClient#
|
|
879
|
-
const operationName = "
|
|
1888
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#listStages.");
|
|
1889
|
+
const operationName = "listStages";
|
|
880
1890
|
const apiReferenceLink = "";
|
|
881
|
-
const pathParams = {
|
|
1891
|
+
const pathParams = {
|
|
1892
|
+
"{remediationRunId}": listStagesRequest.remediationRunId
|
|
1893
|
+
};
|
|
882
1894
|
const queryParams = {
|
|
883
|
-
"
|
|
884
|
-
"
|
|
885
|
-
"
|
|
886
|
-
"
|
|
887
|
-
"
|
|
888
|
-
"
|
|
889
|
-
"page": listKnowledgeBasesRequest.page,
|
|
890
|
-
"compartmentId": listKnowledgeBasesRequest.compartmentId
|
|
1895
|
+
"type": listStagesRequest.type,
|
|
1896
|
+
"status": listStagesRequest.status,
|
|
1897
|
+
"sortOrder": listStagesRequest.sortOrder,
|
|
1898
|
+
"limit": listStagesRequest.limit,
|
|
1899
|
+
"page": listStagesRequest.page,
|
|
1900
|
+
"sortBy": listStagesRequest.sortBy
|
|
891
1901
|
};
|
|
892
1902
|
let headerParams = {
|
|
893
1903
|
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
894
|
-
"opc-request-id":
|
|
1904
|
+
"opc-request-id": listStagesRequest.opcRequestId
|
|
895
1905
|
};
|
|
896
1906
|
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
897
|
-
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined,
|
|
1907
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listStagesRequest.retryConfiguration, specRetryConfiguration);
|
|
898
1908
|
if (this.logger)
|
|
899
1909
|
retrier.logger = this.logger;
|
|
900
1910
|
const request = yield oci_common_1.composeRequest({
|
|
901
1911
|
baseEndpoint: this._endpoint,
|
|
902
1912
|
defaultHeaders: this._defaultHeaders,
|
|
903
|
-
path: "/
|
|
1913
|
+
path: "/remediationRuns/{remediationRunId}/stages",
|
|
904
1914
|
method: "GET",
|
|
905
1915
|
pathParams: pathParams,
|
|
906
1916
|
headerParams: headerParams,
|
|
@@ -911,9 +1921,9 @@ class ApplicationDependencyManagementClient {
|
|
|
911
1921
|
const sdkResponse = oci_common_1.composeResponse({
|
|
912
1922
|
responseObject: {},
|
|
913
1923
|
body: yield response.json(),
|
|
914
|
-
bodyKey: "
|
|
915
|
-
bodyModel: model.
|
|
916
|
-
type: "model.
|
|
1924
|
+
bodyKey: "remediationRunStageCollection",
|
|
1925
|
+
bodyModel: model.RemediationRunStageCollection,
|
|
1926
|
+
type: "model.RemediationRunStageCollection",
|
|
917
1927
|
responseHeaders: [
|
|
918
1928
|
{
|
|
919
1929
|
value: response.headers.get("opc-request-id"),
|
|
@@ -942,7 +1952,7 @@ class ApplicationDependencyManagementClient {
|
|
|
942
1952
|
* @param ListVulnerabilityAuditsRequest
|
|
943
1953
|
* @return ListVulnerabilityAuditsResponse
|
|
944
1954
|
* @throws OciError when an error occurs
|
|
945
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1955
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ListVulnerabilityAudits.ts.html |here} to see how to use ListVulnerabilityAudits API.
|
|
946
1956
|
*/
|
|
947
1957
|
listVulnerabilityAudits(listVulnerabilityAuditsRequest) {
|
|
948
1958
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1015,7 +2025,7 @@ class ApplicationDependencyManagementClient {
|
|
|
1015
2025
|
* @param ListWorkRequestErrorsRequest
|
|
1016
2026
|
* @return ListWorkRequestErrorsResponse
|
|
1017
2027
|
* @throws OciError when an error occurs
|
|
1018
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2028
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1019
2029
|
*/
|
|
1020
2030
|
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1021
2031
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1084,7 +2094,7 @@ class ApplicationDependencyManagementClient {
|
|
|
1084
2094
|
* @param ListWorkRequestLogsRequest
|
|
1085
2095
|
* @return ListWorkRequestLogsResponse
|
|
1086
2096
|
* @throws OciError when an error occurs
|
|
1087
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2097
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1088
2098
|
*/
|
|
1089
2099
|
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1090
2100
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1153,7 +2163,7 @@ class ApplicationDependencyManagementClient {
|
|
|
1153
2163
|
* @param ListWorkRequestsRequest
|
|
1154
2164
|
* @return ListWorkRequestsResponse
|
|
1155
2165
|
* @throws OciError when an error occurs
|
|
1156
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2166
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1157
2167
|
*/
|
|
1158
2168
|
listWorkRequests(listWorkRequestsRequest) {
|
|
1159
2169
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1223,7 +2233,7 @@ class ApplicationDependencyManagementClient {
|
|
|
1223
2233
|
* @param UpdateKnowledgeBaseRequest
|
|
1224
2234
|
* @return UpdateKnowledgeBaseResponse
|
|
1225
2235
|
* @throws OciError when an error occurs
|
|
1226
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2236
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/UpdateKnowledgeBase.ts.html |here} to see how to use UpdateKnowledgeBase API.
|
|
1227
2237
|
*/
|
|
1228
2238
|
updateKnowledgeBase(updateKnowledgeBaseRequest) {
|
|
1229
2239
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1278,13 +2288,139 @@ class ApplicationDependencyManagementClient {
|
|
|
1278
2288
|
}
|
|
1279
2289
|
});
|
|
1280
2290
|
}
|
|
2291
|
+
/**
|
|
2292
|
+
* Updates one or more attributes of the specified Remediation Recipe.
|
|
2293
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2294
|
+
* @param UpdateRemediationRecipeRequest
|
|
2295
|
+
* @return UpdateRemediationRecipeResponse
|
|
2296
|
+
* @throws OciError when an error occurs
|
|
2297
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/UpdateRemediationRecipe.ts.html |here} to see how to use UpdateRemediationRecipe API.
|
|
2298
|
+
*/
|
|
2299
|
+
updateRemediationRecipe(updateRemediationRecipeRequest) {
|
|
2300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2301
|
+
if (this.logger)
|
|
2302
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#updateRemediationRecipe.");
|
|
2303
|
+
const operationName = "updateRemediationRecipe";
|
|
2304
|
+
const apiReferenceLink = "";
|
|
2305
|
+
const pathParams = {
|
|
2306
|
+
"{remediationRecipeId}": updateRemediationRecipeRequest.remediationRecipeId
|
|
2307
|
+
};
|
|
2308
|
+
const queryParams = {};
|
|
2309
|
+
let headerParams = {
|
|
2310
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2311
|
+
"if-match": updateRemediationRecipeRequest.ifMatch,
|
|
2312
|
+
"opc-request-id": updateRemediationRecipeRequest.opcRequestId
|
|
2313
|
+
};
|
|
2314
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2315
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRemediationRecipeRequest.retryConfiguration, specRetryConfiguration);
|
|
2316
|
+
if (this.logger)
|
|
2317
|
+
retrier.logger = this.logger;
|
|
2318
|
+
const request = yield oci_common_1.composeRequest({
|
|
2319
|
+
baseEndpoint: this._endpoint,
|
|
2320
|
+
defaultHeaders: this._defaultHeaders,
|
|
2321
|
+
path: "/remediationRecipes/{remediationRecipeId}",
|
|
2322
|
+
method: "PUT",
|
|
2323
|
+
bodyContent: common.ObjectSerializer.serialize(updateRemediationRecipeRequest.updateRemediationRecipeDetails, "UpdateRemediationRecipeDetails", model.UpdateRemediationRecipeDetails.getJsonObj),
|
|
2324
|
+
pathParams: pathParams,
|
|
2325
|
+
headerParams: headerParams,
|
|
2326
|
+
queryParams: queryParams
|
|
2327
|
+
});
|
|
2328
|
+
try {
|
|
2329
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2330
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2331
|
+
responseObject: {},
|
|
2332
|
+
responseHeaders: [
|
|
2333
|
+
{
|
|
2334
|
+
value: response.headers.get("opc-work-request-id"),
|
|
2335
|
+
key: "opcWorkRequestId",
|
|
2336
|
+
dataType: "string"
|
|
2337
|
+
},
|
|
2338
|
+
{
|
|
2339
|
+
value: response.headers.get("opc-request-id"),
|
|
2340
|
+
key: "opcRequestId",
|
|
2341
|
+
dataType: "string"
|
|
2342
|
+
}
|
|
2343
|
+
]
|
|
2344
|
+
});
|
|
2345
|
+
return sdkResponse;
|
|
2346
|
+
}
|
|
2347
|
+
catch (err) {
|
|
2348
|
+
throw err;
|
|
2349
|
+
}
|
|
2350
|
+
});
|
|
2351
|
+
}
|
|
2352
|
+
/**
|
|
2353
|
+
* Updates by identifier one or more attributes of the specified remediation run.
|
|
2354
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
2355
|
+
* @param UpdateRemediationRunRequest
|
|
2356
|
+
* @return UpdateRemediationRunResponse
|
|
2357
|
+
* @throws OciError when an error occurs
|
|
2358
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/UpdateRemediationRun.ts.html |here} to see how to use UpdateRemediationRun API.
|
|
2359
|
+
*/
|
|
2360
|
+
updateRemediationRun(updateRemediationRunRequest) {
|
|
2361
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2362
|
+
if (this.logger)
|
|
2363
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#updateRemediationRun.");
|
|
2364
|
+
const operationName = "updateRemediationRun";
|
|
2365
|
+
const apiReferenceLink = "";
|
|
2366
|
+
const pathParams = {
|
|
2367
|
+
"{remediationRunId}": updateRemediationRunRequest.remediationRunId
|
|
2368
|
+
};
|
|
2369
|
+
const queryParams = {};
|
|
2370
|
+
let headerParams = {
|
|
2371
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
2372
|
+
"if-match": updateRemediationRunRequest.ifMatch,
|
|
2373
|
+
"opc-request-id": updateRemediationRunRequest.opcRequestId
|
|
2374
|
+
};
|
|
2375
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
2376
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateRemediationRunRequest.retryConfiguration, specRetryConfiguration);
|
|
2377
|
+
if (this.logger)
|
|
2378
|
+
retrier.logger = this.logger;
|
|
2379
|
+
const request = yield oci_common_1.composeRequest({
|
|
2380
|
+
baseEndpoint: this._endpoint,
|
|
2381
|
+
defaultHeaders: this._defaultHeaders,
|
|
2382
|
+
path: "/remediationRuns/{remediationRunId}",
|
|
2383
|
+
method: "PUT",
|
|
2384
|
+
bodyContent: common.ObjectSerializer.serialize(updateRemediationRunRequest.updateRemediationRunDetails, "UpdateRemediationRunDetails", model.UpdateRemediationRunDetails.getJsonObj),
|
|
2385
|
+
pathParams: pathParams,
|
|
2386
|
+
headerParams: headerParams,
|
|
2387
|
+
queryParams: queryParams
|
|
2388
|
+
});
|
|
2389
|
+
try {
|
|
2390
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
2391
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
2392
|
+
responseObject: {},
|
|
2393
|
+
body: yield response.json(),
|
|
2394
|
+
bodyKey: "remediationRun",
|
|
2395
|
+
bodyModel: model.RemediationRun,
|
|
2396
|
+
type: "model.RemediationRun",
|
|
2397
|
+
responseHeaders: [
|
|
2398
|
+
{
|
|
2399
|
+
value: response.headers.get("etag"),
|
|
2400
|
+
key: "etag",
|
|
2401
|
+
dataType: "string"
|
|
2402
|
+
},
|
|
2403
|
+
{
|
|
2404
|
+
value: response.headers.get("opc-request-id"),
|
|
2405
|
+
key: "opcRequestId",
|
|
2406
|
+
dataType: "string"
|
|
2407
|
+
}
|
|
2408
|
+
]
|
|
2409
|
+
});
|
|
2410
|
+
return sdkResponse;
|
|
2411
|
+
}
|
|
2412
|
+
catch (err) {
|
|
2413
|
+
throw err;
|
|
2414
|
+
}
|
|
2415
|
+
});
|
|
2416
|
+
}
|
|
1281
2417
|
/**
|
|
1282
2418
|
* Updates one or more attributes of the specified Vulnerability Audit.
|
|
1283
2419
|
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
1284
2420
|
* @param UpdateVulnerabilityAuditRequest
|
|
1285
2421
|
* @return UpdateVulnerabilityAuditResponse
|
|
1286
2422
|
* @throws OciError when an error occurs
|
|
1287
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
2423
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.72.0/adm/UpdateVulnerabilityAudit.ts.html |here} to see how to use UpdateVulnerabilityAudit API.
|
|
1288
2424
|
*/
|
|
1289
2425
|
updateVulnerabilityAudit(updateVulnerabilityAuditRequest) {
|
|
1290
2426
|
return __awaiter(this, void 0, void 0, function* () {
|