oci-adm 2.25.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/LICENSE.txt +89 -0
- package/NOTICE.txt +1 -0
- package/README.md +22 -0
- package/THIRD_PARTY_LICENSES.txt +576 -0
- package/index.d.ts +22 -0
- package/index.js +45 -0
- package/index.js.map +1 -0
- package/lib/applicationdependencymanagement-waiter.d.ts +44 -0
- package/lib/applicationdependencymanagement-waiter.js +88 -0
- package/lib/applicationdependencymanagement-waiter.js.map +1 -0
- package/lib/client.d.ts +240 -0
- package/lib/client.js +1284 -0
- package/lib/client.js.map +1 -0
- package/lib/model/action-type.d.ts +32 -0
- package/lib/model/action-type.js +43 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/application-dependency-vulnerability-collection.d.ts +28 -0
- package/lib/model/application-dependency-vulnerability-collection.js +61 -0
- package/lib/model/application-dependency-vulnerability-collection.js.map +1 -0
- package/lib/model/application-dependency-vulnerability-summary.d.ts +45 -0
- package/lib/model/application-dependency-vulnerability-summary.js +61 -0
- package/lib/model/application-dependency-vulnerability-summary.js.map +1 -0
- package/lib/model/application-dependency.d.ts +33 -0
- package/lib/model/application-dependency.js +29 -0
- package/lib/model/application-dependency.js.map +1 -0
- package/lib/model/change-knowledge-base-compartment-details.d.ts +25 -0
- package/lib/model/change-knowledge-base-compartment-details.js +29 -0
- package/lib/model/change-knowledge-base-compartment-details.js.map +1 -0
- package/lib/model/change-vulnerability-audit-compartment-details.d.ts +25 -0
- package/lib/model/change-vulnerability-audit-compartment-details.js +29 -0
- package/lib/model/change-vulnerability-audit-compartment-details.js.map +1 -0
- package/lib/model/create-knowledge-base-details.d.ts +47 -0
- package/lib/model/create-knowledge-base-details.js +29 -0
- package/lib/model/create-knowledge-base-details.js.map +1 -0
- package/lib/model/create-vulnerability-audit-details.d.ts +61 -0
- package/lib/model/create-vulnerability-audit-details.js +67 -0
- package/lib/model/create-vulnerability-audit-details.js.map +1 -0
- package/lib/model/index.d.ts +72 -0
- package/lib/model/index.js +95 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/knowledge-base-collection.d.ts +26 -0
- package/lib/model/knowledge-base-collection.js +61 -0
- package/lib/model/knowledge-base-collection.js.map +1 -0
- package/lib/model/knowledge-base-summary.d.ts +73 -0
- package/lib/model/knowledge-base-summary.js +29 -0
- package/lib/model/knowledge-base-summary.js.map +1 -0
- package/lib/model/knowledge-base.d.ts +87 -0
- package/lib/model/knowledge-base.js +43 -0
- package/lib/model/knowledge-base.js.map +1 -0
- package/lib/model/operation-status.d.ts +33 -0
- package/lib/model/operation-status.js +44 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +30 -0
- package/lib/model/operation-type.js +41 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/sort-order.d.ts +23 -0
- package/lib/model/sort-order.js +34 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-knowledge-base-details.d.ts +43 -0
- package/lib/model/update-knowledge-base-details.js +29 -0
- package/lib/model/update-knowledge-base-details.js.map +1 -0
- package/lib/model/update-vulnerability-audit-details.d.ts +43 -0
- package/lib/model/update-vulnerability-audit-details.js +29 -0
- package/lib/model/update-vulnerability-audit-details.js.map +1 -0
- package/lib/model/vulnerability-audit-collection.d.ts +26 -0
- package/lib/model/vulnerability-audit-collection.js +61 -0
- package/lib/model/vulnerability-audit-collection.js.map +1 -0
- package/lib/model/vulnerability-audit-configuration.d.ts +35 -0
- package/lib/model/vulnerability-audit-configuration.js +29 -0
- package/lib/model/vulnerability-audit-configuration.js.map +1 -0
- package/lib/model/vulnerability-audit-summary.d.ts +97 -0
- package/lib/model/vulnerability-audit-summary.js +29 -0
- package/lib/model/vulnerability-audit-summary.js.map +1 -0
- package/lib/model/vulnerability-audit.d.ts +125 -0
- package/lib/model/vulnerability-audit.js +89 -0
- package/lib/model/vulnerability-audit.js.map +1 -0
- package/lib/model/vulnerability.d.ts +39 -0
- package/lib/model/vulnerability.js +29 -0
- package/lib/model/vulnerability.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +26 -0
- package/lib/model/work-request-error-collection.js +61 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +35 -0
- package/lib/model/work-request-error.js +29 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +26 -0
- package/lib/model/work-request-log-entry-collection.js +61 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +29 -0
- package/lib/model/work-request-log-entry.js +29 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +27 -0
- package/lib/model/work-request-resource-metadata-key.js +38 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +48 -0
- package/lib/model/work-request-resource.js +29 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +26 -0
- package/lib/model/work-request-summary-collection.js +61 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +85 -0
- package/lib/model/work-request-summary.js +61 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +67 -0
- package/lib/model/work-request.js +61 -0
- package/lib/model/work-request.js.map +1 -0
- package/lib/request/cancel-work-request-request.d.ts +35 -0
- package/lib/request/cancel-work-request-request.js +15 -0
- package/lib/request/cancel-work-request-request.js.map +1 -0
- package/lib/request/change-knowledge-base-compartment-request.d.ts +49 -0
- package/lib/request/change-knowledge-base-compartment-request.js +15 -0
- package/lib/request/change-knowledge-base-compartment-request.js.map +1 -0
- package/lib/request/change-vulnerability-audit-compartment-request.d.ts +49 -0
- package/lib/request/change-vulnerability-audit-compartment-request.js +15 -0
- package/lib/request/change-vulnerability-audit-compartment-request.js.map +1 -0
- package/lib/request/create-knowledge-base-request.d.ts +36 -0
- package/lib/request/create-knowledge-base-request.js +15 -0
- package/lib/request/create-knowledge-base-request.js.map +1 -0
- package/lib/request/create-vulnerability-audit-request.d.ts +45 -0
- package/lib/request/create-vulnerability-audit-request.js +15 -0
- package/lib/request/create-vulnerability-audit-request.js.map +1 -0
- package/lib/request/delete-knowledge-base-request.d.ts +35 -0
- package/lib/request/delete-knowledge-base-request.js +15 -0
- package/lib/request/delete-knowledge-base-request.js.map +1 -0
- package/lib/request/delete-vulnerability-audit-request.d.ts +35 -0
- package/lib/request/delete-vulnerability-audit-request.js +15 -0
- package/lib/request/delete-vulnerability-audit-request.js.map +1 -0
- package/lib/request/get-knowledge-base-request.d.ts +26 -0
- package/lib/request/get-knowledge-base-request.js +15 -0
- package/lib/request/get-knowledge-base-request.js.map +1 -0
- package/lib/request/get-vulnerability-audit-request.d.ts +26 -0
- package/lib/request/get-vulnerability-audit-request.js +15 -0
- package/lib/request/get-vulnerability-audit-request.js.map +1 -0
- package/lib/request/get-work-request-request.d.ts +26 -0
- package/lib/request/get-work-request-request.js +15 -0
- package/lib/request/get-work-request-request.js.map +1 -0
- package/lib/request/index.d.ts +48 -0
- package/lib/request/index.js +47 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-application-dependency-vulnerabilities-request.d.ts +70 -0
- package/lib/request/list-application-dependency-vulnerabilities-request.js +24 -0
- package/lib/request/list-application-dependency-vulnerabilities-request.js.map +1 -0
- package/lib/request/list-knowledge-bases-request.d.ts +67 -0
- package/lib/request/list-knowledge-bases-request.js +26 -0
- package/lib/request/list-knowledge-bases-request.js.map +1 -0
- package/lib/request/list-vulnerability-audits-request.d.ts +76 -0
- package/lib/request/list-vulnerability-audits-request.js +26 -0
- package/lib/request/list-vulnerability-audits-request.js.map +1 -0
- package/lib/request/list-work-request-errors-request.d.ts +49 -0
- package/lib/request/list-work-request-errors-request.js +23 -0
- package/lib/request/list-work-request-errors-request.js.map +1 -0
- package/lib/request/list-work-request-logs-request.d.ts +49 -0
- package/lib/request/list-work-request-logs-request.js +23 -0
- package/lib/request/list-work-request-logs-request.js.map +1 -0
- package/lib/request/list-work-requests-request.d.ts +61 -0
- package/lib/request/list-work-requests-request.js +23 -0
- package/lib/request/list-work-requests-request.js.map +1 -0
- package/lib/request/update-knowledge-base-request.d.ts +40 -0
- package/lib/request/update-knowledge-base-request.js +15 -0
- package/lib/request/update-knowledge-base-request.js.map +1 -0
- package/lib/request/update-vulnerability-audit-request.d.ts +40 -0
- package/lib/request/update-vulnerability-audit-request.js +15 -0
- package/lib/request/update-vulnerability-audit-request.js.map +1 -0
- package/lib/response/cancel-work-request-response.d.ts +20 -0
- package/lib/response/cancel-work-request-response.js +15 -0
- package/lib/response/cancel-work-request-response.js.map +1 -0
- package/lib/response/change-knowledge-base-compartment-response.d.ts +25 -0
- package/lib/response/change-knowledge-base-compartment-response.js +15 -0
- package/lib/response/change-knowledge-base-compartment-response.js.map +1 -0
- package/lib/response/change-vulnerability-audit-compartment-response.d.ts +20 -0
- package/lib/response/change-vulnerability-audit-compartment-response.js +15 -0
- package/lib/response/change-vulnerability-audit-compartment-response.js.map +1 -0
- package/lib/response/create-knowledge-base-response.d.ts +25 -0
- package/lib/response/create-knowledge-base-response.js +15 -0
- package/lib/response/create-knowledge-base-response.js.map +1 -0
- package/lib/response/create-vulnerability-audit-response.d.ts +35 -0
- package/lib/response/create-vulnerability-audit-response.js +15 -0
- package/lib/response/create-vulnerability-audit-response.js.map +1 -0
- package/lib/response/delete-knowledge-base-response.d.ts +25 -0
- package/lib/response/delete-knowledge-base-response.js +15 -0
- package/lib/response/delete-knowledge-base-response.js.map +1 -0
- package/lib/response/delete-vulnerability-audit-response.d.ts +20 -0
- package/lib/response/delete-vulnerability-audit-response.js +15 -0
- package/lib/response/delete-vulnerability-audit-response.js.map +1 -0
- package/lib/response/get-knowledge-base-response.d.ts +30 -0
- package/lib/response/get-knowledge-base-response.js +15 -0
- package/lib/response/get-knowledge-base-response.js.map +1 -0
- package/lib/response/get-vulnerability-audit-response.d.ts +30 -0
- package/lib/response/get-vulnerability-audit-response.js +15 -0
- package/lib/response/get-vulnerability-audit-response.js.map +1 -0
- package/lib/response/get-work-request-response.d.ts +34 -0
- package/lib/response/get-work-request-response.js +15 -0
- package/lib/response/get-work-request-response.js.map +1 -0
- package/lib/response/index.d.ts +48 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-application-dependency-vulnerabilities-response.d.ts +32 -0
- package/lib/response/list-application-dependency-vulnerabilities-response.js +15 -0
- package/lib/response/list-application-dependency-vulnerabilities-response.js.map +1 -0
- package/lib/response/list-knowledge-bases-response.d.ts +32 -0
- package/lib/response/list-knowledge-bases-response.js +15 -0
- package/lib/response/list-knowledge-bases-response.js.map +1 -0
- package/lib/response/list-vulnerability-audits-response.d.ts +32 -0
- package/lib/response/list-vulnerability-audits-response.js +15 -0
- package/lib/response/list-vulnerability-audits-response.js.map +1 -0
- package/lib/response/list-work-request-errors-response.d.ts +32 -0
- package/lib/response/list-work-request-errors-response.js +15 -0
- package/lib/response/list-work-request-errors-response.js.map +1 -0
- package/lib/response/list-work-request-logs-response.d.ts +32 -0
- package/lib/response/list-work-request-logs-response.js +15 -0
- package/lib/response/list-work-request-logs-response.js.map +1 -0
- package/lib/response/list-work-requests-response.d.ts +32 -0
- package/lib/response/list-work-requests-response.js +15 -0
- package/lib/response/list-work-requests-response.js.map +1 -0
- package/lib/response/update-knowledge-base-response.d.ts +25 -0
- package/lib/response/update-knowledge-base-response.js +15 -0
- package/lib/response/update-knowledge-base-response.js.map +1 -0
- package/lib/response/update-vulnerability-audit-response.d.ts +30 -0
- package/lib/response/update-vulnerability-audit-response.js +15 -0
- package/lib/response/update-vulnerability-audit-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,1284 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* ADM API
|
|
4
|
+
* Use the ADM API to create ADM knowledge base and vulnerability audits. For more information, see [ADM](/Content/adm/using/home.htm).
|
|
5
|
+
* OpenAPI spec version: 20220421
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
34
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
35
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
36
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
37
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
38
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
39
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
43
|
+
exports.ApplicationDependencyManagementClient = exports.ApplicationDependencyManagementApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const applicationdependencymanagement_waiter_1 = require("./applicationdependencymanagement-waiter");
|
|
47
|
+
const oci_common_1 = require("oci-common");
|
|
48
|
+
// ===============================================
|
|
49
|
+
// This file is autogenerated - Please do not edit
|
|
50
|
+
// ===============================================
|
|
51
|
+
var ApplicationDependencyManagementApiKeys;
|
|
52
|
+
(function (ApplicationDependencyManagementApiKeys) {
|
|
53
|
+
})(ApplicationDependencyManagementApiKeys = exports.ApplicationDependencyManagementApiKeys || (exports.ApplicationDependencyManagementApiKeys = {}));
|
|
54
|
+
/**
|
|
55
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
56
|
+
*/
|
|
57
|
+
class ApplicationDependencyManagementClient {
|
|
58
|
+
constructor(params, clientConfiguration) {
|
|
59
|
+
this["_endpoint"] = "";
|
|
60
|
+
this["_defaultHeaders"] = {};
|
|
61
|
+
this._circuitBreaker = null;
|
|
62
|
+
this._httpOptions = undefined;
|
|
63
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
64
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
65
|
+
: null;
|
|
66
|
+
if (clientConfiguration) {
|
|
67
|
+
this._clientConfiguration = clientConfiguration;
|
|
68
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
69
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
70
|
+
: null;
|
|
71
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
72
|
+
? clientConfiguration.httpOptions
|
|
73
|
+
: undefined;
|
|
74
|
+
}
|
|
75
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
76
|
+
const specCircuitBreakerEnabled = true;
|
|
77
|
+
if (!this._circuitBreaker &&
|
|
78
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
79
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
80
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
81
|
+
}
|
|
82
|
+
this._httpClient =
|
|
83
|
+
params.httpClient ||
|
|
84
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
85
|
+
if (params.authenticationDetailsProvider &&
|
|
86
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
87
|
+
const provider = params.authenticationDetailsProvider;
|
|
88
|
+
if (provider.getRegion()) {
|
|
89
|
+
this.region = provider.getRegion();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
95
|
+
*/
|
|
96
|
+
get endpoint() {
|
|
97
|
+
return this._endpoint;
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
101
|
+
* @param endpoint The endpoint of the service.
|
|
102
|
+
*/
|
|
103
|
+
set endpoint(endpoint) {
|
|
104
|
+
this._endpoint = endpoint;
|
|
105
|
+
this._endpoint = this._endpoint + "/20220421";
|
|
106
|
+
if (this.logger)
|
|
107
|
+
this.logger.info(`ApplicationDependencyManagementClient endpoint set to ${this._endpoint}`);
|
|
108
|
+
}
|
|
109
|
+
get logger() {
|
|
110
|
+
return common.LOG.logger;
|
|
111
|
+
}
|
|
112
|
+
/**
|
|
113
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
114
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
115
|
+
* @param region The region of the service.
|
|
116
|
+
*/
|
|
117
|
+
set region(region) {
|
|
118
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(ApplicationDependencyManagementClient.serviceEndpointTemplate, region, ApplicationDependencyManagementClient.endpointServiceName);
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
122
|
+
*
|
|
123
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
124
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
125
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
126
|
+
* @param regionId The public region ID.
|
|
127
|
+
*/
|
|
128
|
+
set regionId(regionId) {
|
|
129
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(ApplicationDependencyManagementClient.serviceEndpointTemplate, regionId, ApplicationDependencyManagementClient.endpointServiceName);
|
|
130
|
+
}
|
|
131
|
+
/**
|
|
132
|
+
* Creates a new ApplicationDependencyManagementWaiter for resources for this service.
|
|
133
|
+
*
|
|
134
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
135
|
+
* @return The service waiters.
|
|
136
|
+
*/
|
|
137
|
+
createWaiters(config) {
|
|
138
|
+
this._waiters = new applicationdependencymanagement_waiter_1.ApplicationDependencyManagementWaiter(this, config);
|
|
139
|
+
return this._waiters;
|
|
140
|
+
}
|
|
141
|
+
/**
|
|
142
|
+
* Gets the waiters available for resources for this service.
|
|
143
|
+
*
|
|
144
|
+
* @return The service waiters.
|
|
145
|
+
*/
|
|
146
|
+
getWaiters() {
|
|
147
|
+
if (this._waiters) {
|
|
148
|
+
return this._waiters;
|
|
149
|
+
}
|
|
150
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Cancel work request with the given ID.
|
|
154
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
155
|
+
* @param CancelWorkRequestRequest
|
|
156
|
+
* @return CancelWorkRequestResponse
|
|
157
|
+
* @throws OciError when an error occurs
|
|
158
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
159
|
+
*/
|
|
160
|
+
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
161
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
162
|
+
if (this.logger)
|
|
163
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#cancelWorkRequest.");
|
|
164
|
+
const pathParams = {
|
|
165
|
+
"{workRequestId}": cancelWorkRequestRequest.workRequestId
|
|
166
|
+
};
|
|
167
|
+
const queryParams = {};
|
|
168
|
+
let headerParams = {
|
|
169
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
170
|
+
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
171
|
+
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
172
|
+
};
|
|
173
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
174
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
175
|
+
if (this.logger)
|
|
176
|
+
retrier.logger = this.logger;
|
|
177
|
+
const request = yield oci_common_1.composeRequest({
|
|
178
|
+
baseEndpoint: this._endpoint,
|
|
179
|
+
defaultHeaders: this._defaultHeaders,
|
|
180
|
+
path: "/workRequests/{workRequestId}",
|
|
181
|
+
method: "DELETE",
|
|
182
|
+
pathParams: pathParams,
|
|
183
|
+
headerParams: headerParams,
|
|
184
|
+
queryParams: queryParams
|
|
185
|
+
});
|
|
186
|
+
try {
|
|
187
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
188
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
189
|
+
responseObject: {},
|
|
190
|
+
responseHeaders: [
|
|
191
|
+
{
|
|
192
|
+
value: response.headers.get("opc-request-id"),
|
|
193
|
+
key: "opcRequestId",
|
|
194
|
+
dataType: "string"
|
|
195
|
+
}
|
|
196
|
+
]
|
|
197
|
+
});
|
|
198
|
+
return sdkResponse;
|
|
199
|
+
}
|
|
200
|
+
catch (err) {
|
|
201
|
+
throw err;
|
|
202
|
+
}
|
|
203
|
+
});
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Moves a Knowledge Base from one compartment to another.
|
|
207
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
208
|
+
* @param ChangeKnowledgeBaseCompartmentRequest
|
|
209
|
+
* @return ChangeKnowledgeBaseCompartmentResponse
|
|
210
|
+
* @throws OciError when an error occurs
|
|
211
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/ChangeKnowledgeBaseCompartment.ts.html |here} to see how to use ChangeKnowledgeBaseCompartment API.
|
|
212
|
+
*/
|
|
213
|
+
changeKnowledgeBaseCompartment(changeKnowledgeBaseCompartmentRequest) {
|
|
214
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
215
|
+
if (this.logger)
|
|
216
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#changeKnowledgeBaseCompartment.");
|
|
217
|
+
const pathParams = {
|
|
218
|
+
"{knowledgeBaseId}": changeKnowledgeBaseCompartmentRequest.knowledgeBaseId
|
|
219
|
+
};
|
|
220
|
+
const queryParams = {};
|
|
221
|
+
let headerParams = {
|
|
222
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
223
|
+
"if-match": changeKnowledgeBaseCompartmentRequest.ifMatch,
|
|
224
|
+
"opc-request-id": changeKnowledgeBaseCompartmentRequest.opcRequestId,
|
|
225
|
+
"opc-retry-token": changeKnowledgeBaseCompartmentRequest.opcRetryToken
|
|
226
|
+
};
|
|
227
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
228
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeKnowledgeBaseCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
229
|
+
if (this.logger)
|
|
230
|
+
retrier.logger = this.logger;
|
|
231
|
+
const request = yield oci_common_1.composeRequest({
|
|
232
|
+
baseEndpoint: this._endpoint,
|
|
233
|
+
defaultHeaders: this._defaultHeaders,
|
|
234
|
+
path: "/knowledgeBases/{knowledgeBaseId}/actions/changeCompartment",
|
|
235
|
+
method: "POST",
|
|
236
|
+
bodyContent: common.ObjectSerializer.serialize(changeKnowledgeBaseCompartmentRequest.changeKnowledgeBaseCompartmentDetails, "ChangeKnowledgeBaseCompartmentDetails", model.ChangeKnowledgeBaseCompartmentDetails.getJsonObj),
|
|
237
|
+
pathParams: pathParams,
|
|
238
|
+
headerParams: headerParams,
|
|
239
|
+
queryParams: queryParams
|
|
240
|
+
});
|
|
241
|
+
try {
|
|
242
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
243
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
244
|
+
responseObject: {},
|
|
245
|
+
responseHeaders: [
|
|
246
|
+
{
|
|
247
|
+
value: response.headers.get("opc-work-request-id"),
|
|
248
|
+
key: "opcWorkRequestId",
|
|
249
|
+
dataType: "string"
|
|
250
|
+
},
|
|
251
|
+
{
|
|
252
|
+
value: response.headers.get("opc-request-id"),
|
|
253
|
+
key: "opcRequestId",
|
|
254
|
+
dataType: "string"
|
|
255
|
+
}
|
|
256
|
+
]
|
|
257
|
+
});
|
|
258
|
+
return sdkResponse;
|
|
259
|
+
}
|
|
260
|
+
catch (err) {
|
|
261
|
+
throw err;
|
|
262
|
+
}
|
|
263
|
+
});
|
|
264
|
+
}
|
|
265
|
+
/**
|
|
266
|
+
* Moves a Vulnerability Audit from one compartment to another.
|
|
267
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
268
|
+
* @param ChangeVulnerabilityAuditCompartmentRequest
|
|
269
|
+
* @return ChangeVulnerabilityAuditCompartmentResponse
|
|
270
|
+
* @throws OciError when an error occurs
|
|
271
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/ChangeVulnerabilityAuditCompartment.ts.html |here} to see how to use ChangeVulnerabilityAuditCompartment API.
|
|
272
|
+
*/
|
|
273
|
+
changeVulnerabilityAuditCompartment(changeVulnerabilityAuditCompartmentRequest) {
|
|
274
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
275
|
+
if (this.logger)
|
|
276
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#changeVulnerabilityAuditCompartment.");
|
|
277
|
+
const pathParams = {
|
|
278
|
+
"{vulnerabilityAuditId}": changeVulnerabilityAuditCompartmentRequest.vulnerabilityAuditId
|
|
279
|
+
};
|
|
280
|
+
const queryParams = {};
|
|
281
|
+
let headerParams = {
|
|
282
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
283
|
+
"if-match": changeVulnerabilityAuditCompartmentRequest.ifMatch,
|
|
284
|
+
"opc-request-id": changeVulnerabilityAuditCompartmentRequest.opcRequestId,
|
|
285
|
+
"opc-retry-token": changeVulnerabilityAuditCompartmentRequest.opcRetryToken
|
|
286
|
+
};
|
|
287
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
288
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeVulnerabilityAuditCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
289
|
+
if (this.logger)
|
|
290
|
+
retrier.logger = this.logger;
|
|
291
|
+
const request = yield oci_common_1.composeRequest({
|
|
292
|
+
baseEndpoint: this._endpoint,
|
|
293
|
+
defaultHeaders: this._defaultHeaders,
|
|
294
|
+
path: "/vulnerabilityAudits/{vulnerabilityAuditId}/actions/changeCompartment",
|
|
295
|
+
method: "POST",
|
|
296
|
+
bodyContent: common.ObjectSerializer.serialize(changeVulnerabilityAuditCompartmentRequest.changeVulnerabilityAuditCompartmentDetails, "ChangeVulnerabilityAuditCompartmentDetails", model.ChangeVulnerabilityAuditCompartmentDetails.getJsonObj),
|
|
297
|
+
pathParams: pathParams,
|
|
298
|
+
headerParams: headerParams,
|
|
299
|
+
queryParams: queryParams
|
|
300
|
+
});
|
|
301
|
+
try {
|
|
302
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
303
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
304
|
+
responseObject: {},
|
|
305
|
+
responseHeaders: [
|
|
306
|
+
{
|
|
307
|
+
value: response.headers.get("opc-request-id"),
|
|
308
|
+
key: "opcRequestId",
|
|
309
|
+
dataType: "string"
|
|
310
|
+
}
|
|
311
|
+
]
|
|
312
|
+
});
|
|
313
|
+
return sdkResponse;
|
|
314
|
+
}
|
|
315
|
+
catch (err) {
|
|
316
|
+
throw err;
|
|
317
|
+
}
|
|
318
|
+
});
|
|
319
|
+
}
|
|
320
|
+
/**
|
|
321
|
+
* Creates a new Knowledge Base.
|
|
322
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
323
|
+
* @param CreateKnowledgeBaseRequest
|
|
324
|
+
* @return CreateKnowledgeBaseResponse
|
|
325
|
+
* @throws OciError when an error occurs
|
|
326
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/CreateKnowledgeBase.ts.html |here} to see how to use CreateKnowledgeBase API.
|
|
327
|
+
*/
|
|
328
|
+
createKnowledgeBase(createKnowledgeBaseRequest) {
|
|
329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
330
|
+
if (this.logger)
|
|
331
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#createKnowledgeBase.");
|
|
332
|
+
const pathParams = {};
|
|
333
|
+
const queryParams = {};
|
|
334
|
+
let headerParams = {
|
|
335
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
336
|
+
"opc-request-id": createKnowledgeBaseRequest.opcRequestId,
|
|
337
|
+
"opc-retry-token": createKnowledgeBaseRequest.opcRetryToken
|
|
338
|
+
};
|
|
339
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
340
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createKnowledgeBaseRequest.retryConfiguration, specRetryConfiguration);
|
|
341
|
+
if (this.logger)
|
|
342
|
+
retrier.logger = this.logger;
|
|
343
|
+
const request = yield oci_common_1.composeRequest({
|
|
344
|
+
baseEndpoint: this._endpoint,
|
|
345
|
+
defaultHeaders: this._defaultHeaders,
|
|
346
|
+
path: "/knowledgeBases",
|
|
347
|
+
method: "POST",
|
|
348
|
+
bodyContent: common.ObjectSerializer.serialize(createKnowledgeBaseRequest.createKnowledgeBaseDetails, "CreateKnowledgeBaseDetails", model.CreateKnowledgeBaseDetails.getJsonObj),
|
|
349
|
+
pathParams: pathParams,
|
|
350
|
+
headerParams: headerParams,
|
|
351
|
+
queryParams: queryParams
|
|
352
|
+
});
|
|
353
|
+
try {
|
|
354
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
355
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
356
|
+
responseObject: {},
|
|
357
|
+
responseHeaders: [
|
|
358
|
+
{
|
|
359
|
+
value: response.headers.get("opc-work-request-id"),
|
|
360
|
+
key: "opcWorkRequestId",
|
|
361
|
+
dataType: "string"
|
|
362
|
+
},
|
|
363
|
+
{
|
|
364
|
+
value: response.headers.get("opc-request-id"),
|
|
365
|
+
key: "opcRequestId",
|
|
366
|
+
dataType: "string"
|
|
367
|
+
}
|
|
368
|
+
]
|
|
369
|
+
});
|
|
370
|
+
return sdkResponse;
|
|
371
|
+
}
|
|
372
|
+
catch (err) {
|
|
373
|
+
throw err;
|
|
374
|
+
}
|
|
375
|
+
});
|
|
376
|
+
}
|
|
377
|
+
/**
|
|
378
|
+
* Creates a new Vulnerability Audit by providing a tree of Application Dependencies.
|
|
379
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
380
|
+
* @param CreateVulnerabilityAuditRequest
|
|
381
|
+
* @return CreateVulnerabilityAuditResponse
|
|
382
|
+
* @throws OciError when an error occurs
|
|
383
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/CreateVulnerabilityAudit.ts.html |here} to see how to use CreateVulnerabilityAudit API.
|
|
384
|
+
*/
|
|
385
|
+
createVulnerabilityAudit(createVulnerabilityAuditRequest) {
|
|
386
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
387
|
+
if (this.logger)
|
|
388
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#createVulnerabilityAudit.");
|
|
389
|
+
const pathParams = {};
|
|
390
|
+
const queryParams = {};
|
|
391
|
+
let headerParams = {
|
|
392
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
393
|
+
"opc-request-id": createVulnerabilityAuditRequest.opcRequestId,
|
|
394
|
+
"opc-retry-token": createVulnerabilityAuditRequest.opcRetryToken,
|
|
395
|
+
"if-match": createVulnerabilityAuditRequest.ifMatch
|
|
396
|
+
};
|
|
397
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
398
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createVulnerabilityAuditRequest.retryConfiguration, specRetryConfiguration);
|
|
399
|
+
if (this.logger)
|
|
400
|
+
retrier.logger = this.logger;
|
|
401
|
+
const request = yield oci_common_1.composeRequest({
|
|
402
|
+
baseEndpoint: this._endpoint,
|
|
403
|
+
defaultHeaders: this._defaultHeaders,
|
|
404
|
+
path: "/vulnerabilityAudits",
|
|
405
|
+
method: "POST",
|
|
406
|
+
bodyContent: common.ObjectSerializer.serialize(createVulnerabilityAuditRequest.createVulnerabilityAuditDetails, "CreateVulnerabilityAuditDetails", model.CreateVulnerabilityAuditDetails.getJsonObj),
|
|
407
|
+
pathParams: pathParams,
|
|
408
|
+
headerParams: headerParams,
|
|
409
|
+
queryParams: queryParams
|
|
410
|
+
});
|
|
411
|
+
try {
|
|
412
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
413
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
414
|
+
responseObject: {},
|
|
415
|
+
body: yield response.json(),
|
|
416
|
+
bodyKey: "vulnerabilityAudit",
|
|
417
|
+
bodyModel: model.VulnerabilityAudit,
|
|
418
|
+
type: "model.VulnerabilityAudit",
|
|
419
|
+
responseHeaders: [
|
|
420
|
+
{
|
|
421
|
+
value: response.headers.get("etag"),
|
|
422
|
+
key: "etag",
|
|
423
|
+
dataType: "string"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
value: response.headers.get("opc-work-request-id"),
|
|
427
|
+
key: "opcWorkRequestId",
|
|
428
|
+
dataType: "string"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
value: response.headers.get("opc-request-id"),
|
|
432
|
+
key: "opcRequestId",
|
|
433
|
+
dataType: "string"
|
|
434
|
+
}
|
|
435
|
+
]
|
|
436
|
+
});
|
|
437
|
+
return sdkResponse;
|
|
438
|
+
}
|
|
439
|
+
catch (err) {
|
|
440
|
+
throw err;
|
|
441
|
+
}
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Deletes the specified Knowledge Base.
|
|
446
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
447
|
+
* @param DeleteKnowledgeBaseRequest
|
|
448
|
+
* @return DeleteKnowledgeBaseResponse
|
|
449
|
+
* @throws OciError when an error occurs
|
|
450
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/DeleteKnowledgeBase.ts.html |here} to see how to use DeleteKnowledgeBase API.
|
|
451
|
+
*/
|
|
452
|
+
deleteKnowledgeBase(deleteKnowledgeBaseRequest) {
|
|
453
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
454
|
+
if (this.logger)
|
|
455
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#deleteKnowledgeBase.");
|
|
456
|
+
const pathParams = {
|
|
457
|
+
"{knowledgeBaseId}": deleteKnowledgeBaseRequest.knowledgeBaseId
|
|
458
|
+
};
|
|
459
|
+
const queryParams = {};
|
|
460
|
+
let headerParams = {
|
|
461
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
462
|
+
"if-match": deleteKnowledgeBaseRequest.ifMatch,
|
|
463
|
+
"opc-request-id": deleteKnowledgeBaseRequest.opcRequestId
|
|
464
|
+
};
|
|
465
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
466
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteKnowledgeBaseRequest.retryConfiguration, specRetryConfiguration);
|
|
467
|
+
if (this.logger)
|
|
468
|
+
retrier.logger = this.logger;
|
|
469
|
+
const request = yield oci_common_1.composeRequest({
|
|
470
|
+
baseEndpoint: this._endpoint,
|
|
471
|
+
defaultHeaders: this._defaultHeaders,
|
|
472
|
+
path: "/knowledgeBases/{knowledgeBaseId}",
|
|
473
|
+
method: "DELETE",
|
|
474
|
+
pathParams: pathParams,
|
|
475
|
+
headerParams: headerParams,
|
|
476
|
+
queryParams: queryParams
|
|
477
|
+
});
|
|
478
|
+
try {
|
|
479
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
480
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
481
|
+
responseObject: {},
|
|
482
|
+
responseHeaders: [
|
|
483
|
+
{
|
|
484
|
+
value: response.headers.get("opc-work-request-id"),
|
|
485
|
+
key: "opcWorkRequestId",
|
|
486
|
+
dataType: "string"
|
|
487
|
+
},
|
|
488
|
+
{
|
|
489
|
+
value: response.headers.get("opc-request-id"),
|
|
490
|
+
key: "opcRequestId",
|
|
491
|
+
dataType: "string"
|
|
492
|
+
}
|
|
493
|
+
]
|
|
494
|
+
});
|
|
495
|
+
return sdkResponse;
|
|
496
|
+
}
|
|
497
|
+
catch (err) {
|
|
498
|
+
throw err;
|
|
499
|
+
}
|
|
500
|
+
});
|
|
501
|
+
}
|
|
502
|
+
/**
|
|
503
|
+
* Deletes the specified Vulnerability Audit.
|
|
504
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
505
|
+
* @param DeleteVulnerabilityAuditRequest
|
|
506
|
+
* @return DeleteVulnerabilityAuditResponse
|
|
507
|
+
* @throws OciError when an error occurs
|
|
508
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/DeleteVulnerabilityAudit.ts.html |here} to see how to use DeleteVulnerabilityAudit API.
|
|
509
|
+
*/
|
|
510
|
+
deleteVulnerabilityAudit(deleteVulnerabilityAuditRequest) {
|
|
511
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
512
|
+
if (this.logger)
|
|
513
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#deleteVulnerabilityAudit.");
|
|
514
|
+
const pathParams = {
|
|
515
|
+
"{vulnerabilityAuditId}": deleteVulnerabilityAuditRequest.vulnerabilityAuditId
|
|
516
|
+
};
|
|
517
|
+
const queryParams = {};
|
|
518
|
+
let headerParams = {
|
|
519
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
520
|
+
"if-match": deleteVulnerabilityAuditRequest.ifMatch,
|
|
521
|
+
"opc-request-id": deleteVulnerabilityAuditRequest.opcRequestId
|
|
522
|
+
};
|
|
523
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
524
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteVulnerabilityAuditRequest.retryConfiguration, specRetryConfiguration);
|
|
525
|
+
if (this.logger)
|
|
526
|
+
retrier.logger = this.logger;
|
|
527
|
+
const request = yield oci_common_1.composeRequest({
|
|
528
|
+
baseEndpoint: this._endpoint,
|
|
529
|
+
defaultHeaders: this._defaultHeaders,
|
|
530
|
+
path: "/vulnerabilityAudits/{vulnerabilityAuditId}",
|
|
531
|
+
method: "DELETE",
|
|
532
|
+
pathParams: pathParams,
|
|
533
|
+
headerParams: headerParams,
|
|
534
|
+
queryParams: queryParams
|
|
535
|
+
});
|
|
536
|
+
try {
|
|
537
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
538
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
539
|
+
responseObject: {},
|
|
540
|
+
responseHeaders: [
|
|
541
|
+
{
|
|
542
|
+
value: response.headers.get("opc-request-id"),
|
|
543
|
+
key: "opcRequestId",
|
|
544
|
+
dataType: "string"
|
|
545
|
+
}
|
|
546
|
+
]
|
|
547
|
+
});
|
|
548
|
+
return sdkResponse;
|
|
549
|
+
}
|
|
550
|
+
catch (err) {
|
|
551
|
+
throw err;
|
|
552
|
+
}
|
|
553
|
+
});
|
|
554
|
+
}
|
|
555
|
+
/**
|
|
556
|
+
* Returns the details of the specified Knowledge Base.
|
|
557
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
558
|
+
* @param GetKnowledgeBaseRequest
|
|
559
|
+
* @return GetKnowledgeBaseResponse
|
|
560
|
+
* @throws OciError when an error occurs
|
|
561
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/GetKnowledgeBase.ts.html |here} to see how to use GetKnowledgeBase API.
|
|
562
|
+
*/
|
|
563
|
+
getKnowledgeBase(getKnowledgeBaseRequest) {
|
|
564
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
565
|
+
if (this.logger)
|
|
566
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#getKnowledgeBase.");
|
|
567
|
+
const pathParams = {
|
|
568
|
+
"{knowledgeBaseId}": getKnowledgeBaseRequest.knowledgeBaseId
|
|
569
|
+
};
|
|
570
|
+
const queryParams = {};
|
|
571
|
+
let headerParams = {
|
|
572
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
573
|
+
"opc-request-id": getKnowledgeBaseRequest.opcRequestId
|
|
574
|
+
};
|
|
575
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
576
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getKnowledgeBaseRequest.retryConfiguration, specRetryConfiguration);
|
|
577
|
+
if (this.logger)
|
|
578
|
+
retrier.logger = this.logger;
|
|
579
|
+
const request = yield oci_common_1.composeRequest({
|
|
580
|
+
baseEndpoint: this._endpoint,
|
|
581
|
+
defaultHeaders: this._defaultHeaders,
|
|
582
|
+
path: "/knowledgeBases/{knowledgeBaseId}",
|
|
583
|
+
method: "GET",
|
|
584
|
+
pathParams: pathParams,
|
|
585
|
+
headerParams: headerParams,
|
|
586
|
+
queryParams: queryParams
|
|
587
|
+
});
|
|
588
|
+
try {
|
|
589
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
590
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
591
|
+
responseObject: {},
|
|
592
|
+
body: yield response.json(),
|
|
593
|
+
bodyKey: "knowledgeBase",
|
|
594
|
+
bodyModel: model.KnowledgeBase,
|
|
595
|
+
type: "model.KnowledgeBase",
|
|
596
|
+
responseHeaders: [
|
|
597
|
+
{
|
|
598
|
+
value: response.headers.get("opc-request-id"),
|
|
599
|
+
key: "opcRequestId",
|
|
600
|
+
dataType: "string"
|
|
601
|
+
},
|
|
602
|
+
{
|
|
603
|
+
value: response.headers.get("etag"),
|
|
604
|
+
key: "etag",
|
|
605
|
+
dataType: "string"
|
|
606
|
+
}
|
|
607
|
+
]
|
|
608
|
+
});
|
|
609
|
+
return sdkResponse;
|
|
610
|
+
}
|
|
611
|
+
catch (err) {
|
|
612
|
+
throw err;
|
|
613
|
+
}
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* Returns the details of the specified Vulnerability Audit.
|
|
618
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
619
|
+
* @param GetVulnerabilityAuditRequest
|
|
620
|
+
* @return GetVulnerabilityAuditResponse
|
|
621
|
+
* @throws OciError when an error occurs
|
|
622
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/GetVulnerabilityAudit.ts.html |here} to see how to use GetVulnerabilityAudit API.
|
|
623
|
+
*/
|
|
624
|
+
getVulnerabilityAudit(getVulnerabilityAuditRequest) {
|
|
625
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
626
|
+
if (this.logger)
|
|
627
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#getVulnerabilityAudit.");
|
|
628
|
+
const pathParams = {
|
|
629
|
+
"{vulnerabilityAuditId}": getVulnerabilityAuditRequest.vulnerabilityAuditId
|
|
630
|
+
};
|
|
631
|
+
const queryParams = {};
|
|
632
|
+
let headerParams = {
|
|
633
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
634
|
+
"opc-request-id": getVulnerabilityAuditRequest.opcRequestId
|
|
635
|
+
};
|
|
636
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
637
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVulnerabilityAuditRequest.retryConfiguration, specRetryConfiguration);
|
|
638
|
+
if (this.logger)
|
|
639
|
+
retrier.logger = this.logger;
|
|
640
|
+
const request = yield oci_common_1.composeRequest({
|
|
641
|
+
baseEndpoint: this._endpoint,
|
|
642
|
+
defaultHeaders: this._defaultHeaders,
|
|
643
|
+
path: "/vulnerabilityAudits/{vulnerabilityAuditId}",
|
|
644
|
+
method: "GET",
|
|
645
|
+
pathParams: pathParams,
|
|
646
|
+
headerParams: headerParams,
|
|
647
|
+
queryParams: queryParams
|
|
648
|
+
});
|
|
649
|
+
try {
|
|
650
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
651
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
652
|
+
responseObject: {},
|
|
653
|
+
body: yield response.json(),
|
|
654
|
+
bodyKey: "vulnerabilityAudit",
|
|
655
|
+
bodyModel: model.VulnerabilityAudit,
|
|
656
|
+
type: "model.VulnerabilityAudit",
|
|
657
|
+
responseHeaders: [
|
|
658
|
+
{
|
|
659
|
+
value: response.headers.get("etag"),
|
|
660
|
+
key: "etag",
|
|
661
|
+
dataType: "string"
|
|
662
|
+
},
|
|
663
|
+
{
|
|
664
|
+
value: response.headers.get("opc-request-id"),
|
|
665
|
+
key: "opcRequestId",
|
|
666
|
+
dataType: "string"
|
|
667
|
+
}
|
|
668
|
+
]
|
|
669
|
+
});
|
|
670
|
+
return sdkResponse;
|
|
671
|
+
}
|
|
672
|
+
catch (err) {
|
|
673
|
+
throw err;
|
|
674
|
+
}
|
|
675
|
+
});
|
|
676
|
+
}
|
|
677
|
+
/**
|
|
678
|
+
* Gets the status of the work request with the given ID.
|
|
679
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
680
|
+
* @param GetWorkRequestRequest
|
|
681
|
+
* @return GetWorkRequestResponse
|
|
682
|
+
* @throws OciError when an error occurs
|
|
683
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
684
|
+
*/
|
|
685
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
686
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
687
|
+
if (this.logger)
|
|
688
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#getWorkRequest.");
|
|
689
|
+
const pathParams = {
|
|
690
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
691
|
+
};
|
|
692
|
+
const queryParams = {};
|
|
693
|
+
let headerParams = {
|
|
694
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
695
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
696
|
+
};
|
|
697
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
698
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
699
|
+
if (this.logger)
|
|
700
|
+
retrier.logger = this.logger;
|
|
701
|
+
const request = yield oci_common_1.composeRequest({
|
|
702
|
+
baseEndpoint: this._endpoint,
|
|
703
|
+
defaultHeaders: this._defaultHeaders,
|
|
704
|
+
path: "/workRequests/{workRequestId}",
|
|
705
|
+
method: "GET",
|
|
706
|
+
pathParams: pathParams,
|
|
707
|
+
headerParams: headerParams,
|
|
708
|
+
queryParams: queryParams
|
|
709
|
+
});
|
|
710
|
+
try {
|
|
711
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
712
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
713
|
+
responseObject: {},
|
|
714
|
+
body: yield response.json(),
|
|
715
|
+
bodyKey: "workRequest",
|
|
716
|
+
bodyModel: model.WorkRequest,
|
|
717
|
+
type: "model.WorkRequest",
|
|
718
|
+
responseHeaders: [
|
|
719
|
+
{
|
|
720
|
+
value: response.headers.get("etag"),
|
|
721
|
+
key: "etag",
|
|
722
|
+
dataType: "string"
|
|
723
|
+
},
|
|
724
|
+
{
|
|
725
|
+
value: response.headers.get("opc-request-id"),
|
|
726
|
+
key: "opcRequestId",
|
|
727
|
+
dataType: "string"
|
|
728
|
+
},
|
|
729
|
+
{
|
|
730
|
+
value: response.headers.get("retry-after"),
|
|
731
|
+
key: "retryAfter",
|
|
732
|
+
dataType: "number"
|
|
733
|
+
}
|
|
734
|
+
]
|
|
735
|
+
});
|
|
736
|
+
return sdkResponse;
|
|
737
|
+
}
|
|
738
|
+
catch (err) {
|
|
739
|
+
throw err;
|
|
740
|
+
}
|
|
741
|
+
});
|
|
742
|
+
}
|
|
743
|
+
/**
|
|
744
|
+
* Returns a list of Application Dependencies with their associated vulnerabilities.
|
|
745
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
746
|
+
* @param ListApplicationDependencyVulnerabilitiesRequest
|
|
747
|
+
* @return ListApplicationDependencyVulnerabilitiesResponse
|
|
748
|
+
* @throws OciError when an error occurs
|
|
749
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/ListApplicationDependencyVulnerabilities.ts.html |here} to see how to use ListApplicationDependencyVulnerabilities API.
|
|
750
|
+
*/
|
|
751
|
+
listApplicationDependencyVulnerabilities(listApplicationDependencyVulnerabilitiesRequest) {
|
|
752
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
753
|
+
if (this.logger)
|
|
754
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#listApplicationDependencyVulnerabilities.");
|
|
755
|
+
const pathParams = {
|
|
756
|
+
"{vulnerabilityAuditId}": listApplicationDependencyVulnerabilitiesRequest.vulnerabilityAuditId
|
|
757
|
+
};
|
|
758
|
+
const queryParams = {
|
|
759
|
+
"vulnerabilityId": listApplicationDependencyVulnerabilitiesRequest.vulnerabilityId,
|
|
760
|
+
"cvssV3GreaterThanOrEqual": listApplicationDependencyVulnerabilitiesRequest.cvssV3GreaterThanOrEqual,
|
|
761
|
+
"cvssV2GreaterThanOrEqual": listApplicationDependencyVulnerabilitiesRequest.cvssV2GreaterThanOrEqual,
|
|
762
|
+
"limit": listApplicationDependencyVulnerabilitiesRequest.limit,
|
|
763
|
+
"page": listApplicationDependencyVulnerabilitiesRequest.page,
|
|
764
|
+
"sortOrder": listApplicationDependencyVulnerabilitiesRequest.sortOrder,
|
|
765
|
+
"sortBy": listApplicationDependencyVulnerabilitiesRequest.sortBy,
|
|
766
|
+
"gav": listApplicationDependencyVulnerabilitiesRequest.gav
|
|
767
|
+
};
|
|
768
|
+
let headerParams = {
|
|
769
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
770
|
+
"opc-request-id": listApplicationDependencyVulnerabilitiesRequest.opcRequestId
|
|
771
|
+
};
|
|
772
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
773
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listApplicationDependencyVulnerabilitiesRequest.retryConfiguration, specRetryConfiguration);
|
|
774
|
+
if (this.logger)
|
|
775
|
+
retrier.logger = this.logger;
|
|
776
|
+
const request = yield oci_common_1.composeRequest({
|
|
777
|
+
baseEndpoint: this._endpoint,
|
|
778
|
+
defaultHeaders: this._defaultHeaders,
|
|
779
|
+
path: "/vulnerabilityAudits/{vulnerabilityAuditId}/applicationDependencyVulnerabilities",
|
|
780
|
+
method: "GET",
|
|
781
|
+
pathParams: pathParams,
|
|
782
|
+
headerParams: headerParams,
|
|
783
|
+
queryParams: queryParams
|
|
784
|
+
});
|
|
785
|
+
try {
|
|
786
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
787
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
788
|
+
responseObject: {},
|
|
789
|
+
body: yield response.json(),
|
|
790
|
+
bodyKey: "applicationDependencyVulnerabilityCollection",
|
|
791
|
+
bodyModel: model.ApplicationDependencyVulnerabilityCollection,
|
|
792
|
+
type: "model.ApplicationDependencyVulnerabilityCollection",
|
|
793
|
+
responseHeaders: [
|
|
794
|
+
{
|
|
795
|
+
value: response.headers.get("opc-request-id"),
|
|
796
|
+
key: "opcRequestId",
|
|
797
|
+
dataType: "string"
|
|
798
|
+
},
|
|
799
|
+
{
|
|
800
|
+
value: response.headers.get("opc-next-page"),
|
|
801
|
+
key: "opcNextPage",
|
|
802
|
+
dataType: "string"
|
|
803
|
+
}
|
|
804
|
+
]
|
|
805
|
+
});
|
|
806
|
+
return sdkResponse;
|
|
807
|
+
}
|
|
808
|
+
catch (err) {
|
|
809
|
+
throw err;
|
|
810
|
+
}
|
|
811
|
+
});
|
|
812
|
+
}
|
|
813
|
+
/**
|
|
814
|
+
* Returns a list of KnowledgeBases based on the specified query parameters.
|
|
815
|
+
* At least id or compartmentId query parameter must be provided.
|
|
816
|
+
*
|
|
817
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
818
|
+
* @param ListKnowledgeBasesRequest
|
|
819
|
+
* @return ListKnowledgeBasesResponse
|
|
820
|
+
* @throws OciError when an error occurs
|
|
821
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/ListKnowledgeBases.ts.html |here} to see how to use ListKnowledgeBases API.
|
|
822
|
+
*/
|
|
823
|
+
listKnowledgeBases(listKnowledgeBasesRequest) {
|
|
824
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
825
|
+
if (this.logger)
|
|
826
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#listKnowledgeBases.");
|
|
827
|
+
const pathParams = {};
|
|
828
|
+
const queryParams = {
|
|
829
|
+
"id": listKnowledgeBasesRequest.id,
|
|
830
|
+
"sortBy": listKnowledgeBasesRequest.sortBy,
|
|
831
|
+
"lifecycleState": listKnowledgeBasesRequest.lifecycleState,
|
|
832
|
+
"sortOrder": listKnowledgeBasesRequest.sortOrder,
|
|
833
|
+
"displayName": listKnowledgeBasesRequest.displayName,
|
|
834
|
+
"limit": listKnowledgeBasesRequest.limit,
|
|
835
|
+
"page": listKnowledgeBasesRequest.page,
|
|
836
|
+
"compartmentId": listKnowledgeBasesRequest.compartmentId
|
|
837
|
+
};
|
|
838
|
+
let headerParams = {
|
|
839
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
840
|
+
"opc-request-id": listKnowledgeBasesRequest.opcRequestId
|
|
841
|
+
};
|
|
842
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
843
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listKnowledgeBasesRequest.retryConfiguration, specRetryConfiguration);
|
|
844
|
+
if (this.logger)
|
|
845
|
+
retrier.logger = this.logger;
|
|
846
|
+
const request = yield oci_common_1.composeRequest({
|
|
847
|
+
baseEndpoint: this._endpoint,
|
|
848
|
+
defaultHeaders: this._defaultHeaders,
|
|
849
|
+
path: "/knowledgeBases",
|
|
850
|
+
method: "GET",
|
|
851
|
+
pathParams: pathParams,
|
|
852
|
+
headerParams: headerParams,
|
|
853
|
+
queryParams: queryParams
|
|
854
|
+
});
|
|
855
|
+
try {
|
|
856
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
857
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
858
|
+
responseObject: {},
|
|
859
|
+
body: yield response.json(),
|
|
860
|
+
bodyKey: "knowledgeBaseCollection",
|
|
861
|
+
bodyModel: model.KnowledgeBaseCollection,
|
|
862
|
+
type: "model.KnowledgeBaseCollection",
|
|
863
|
+
responseHeaders: [
|
|
864
|
+
{
|
|
865
|
+
value: response.headers.get("opc-request-id"),
|
|
866
|
+
key: "opcRequestId",
|
|
867
|
+
dataType: "string"
|
|
868
|
+
},
|
|
869
|
+
{
|
|
870
|
+
value: response.headers.get("opc-next-page"),
|
|
871
|
+
key: "opcNextPage",
|
|
872
|
+
dataType: "string"
|
|
873
|
+
}
|
|
874
|
+
]
|
|
875
|
+
});
|
|
876
|
+
return sdkResponse;
|
|
877
|
+
}
|
|
878
|
+
catch (err) {
|
|
879
|
+
throw err;
|
|
880
|
+
}
|
|
881
|
+
});
|
|
882
|
+
}
|
|
883
|
+
/**
|
|
884
|
+
* Returns a list of Vulnerability Audits based on the specified query parameters.
|
|
885
|
+
* At least one of id, compartmentId or knowledgeBaseId query parameter must be provided.
|
|
886
|
+
*
|
|
887
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
888
|
+
* @param ListVulnerabilityAuditsRequest
|
|
889
|
+
* @return ListVulnerabilityAuditsResponse
|
|
890
|
+
* @throws OciError when an error occurs
|
|
891
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/ListVulnerabilityAudits.ts.html |here} to see how to use ListVulnerabilityAudits API.
|
|
892
|
+
*/
|
|
893
|
+
listVulnerabilityAudits(listVulnerabilityAuditsRequest) {
|
|
894
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
895
|
+
if (this.logger)
|
|
896
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#listVulnerabilityAudits.");
|
|
897
|
+
const pathParams = {};
|
|
898
|
+
const queryParams = {
|
|
899
|
+
"id": listVulnerabilityAuditsRequest.id,
|
|
900
|
+
"compartmentId": listVulnerabilityAuditsRequest.compartmentId,
|
|
901
|
+
"knowledgeBaseId": listVulnerabilityAuditsRequest.knowledgeBaseId,
|
|
902
|
+
"isSuccess": listVulnerabilityAuditsRequest.isSuccess,
|
|
903
|
+
"lifecycleState": listVulnerabilityAuditsRequest.lifecycleState,
|
|
904
|
+
"sortOrder": listVulnerabilityAuditsRequest.sortOrder,
|
|
905
|
+
"limit": listVulnerabilityAuditsRequest.limit,
|
|
906
|
+
"page": listVulnerabilityAuditsRequest.page,
|
|
907
|
+
"sortBy": listVulnerabilityAuditsRequest.sortBy,
|
|
908
|
+
"displayName": listVulnerabilityAuditsRequest.displayName
|
|
909
|
+
};
|
|
910
|
+
let headerParams = {
|
|
911
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
912
|
+
"opc-request-id": listVulnerabilityAuditsRequest.opcRequestId
|
|
913
|
+
};
|
|
914
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
915
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVulnerabilityAuditsRequest.retryConfiguration, specRetryConfiguration);
|
|
916
|
+
if (this.logger)
|
|
917
|
+
retrier.logger = this.logger;
|
|
918
|
+
const request = yield oci_common_1.composeRequest({
|
|
919
|
+
baseEndpoint: this._endpoint,
|
|
920
|
+
defaultHeaders: this._defaultHeaders,
|
|
921
|
+
path: "/vulnerabilityAudits",
|
|
922
|
+
method: "GET",
|
|
923
|
+
pathParams: pathParams,
|
|
924
|
+
headerParams: headerParams,
|
|
925
|
+
queryParams: queryParams
|
|
926
|
+
});
|
|
927
|
+
try {
|
|
928
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
929
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
930
|
+
responseObject: {},
|
|
931
|
+
body: yield response.json(),
|
|
932
|
+
bodyKey: "vulnerabilityAuditCollection",
|
|
933
|
+
bodyModel: model.VulnerabilityAuditCollection,
|
|
934
|
+
type: "model.VulnerabilityAuditCollection",
|
|
935
|
+
responseHeaders: [
|
|
936
|
+
{
|
|
937
|
+
value: response.headers.get("opc-request-id"),
|
|
938
|
+
key: "opcRequestId",
|
|
939
|
+
dataType: "string"
|
|
940
|
+
},
|
|
941
|
+
{
|
|
942
|
+
value: response.headers.get("opc-next-page"),
|
|
943
|
+
key: "opcNextPage",
|
|
944
|
+
dataType: "string"
|
|
945
|
+
}
|
|
946
|
+
]
|
|
947
|
+
});
|
|
948
|
+
return sdkResponse;
|
|
949
|
+
}
|
|
950
|
+
catch (err) {
|
|
951
|
+
throw err;
|
|
952
|
+
}
|
|
953
|
+
});
|
|
954
|
+
}
|
|
955
|
+
/**
|
|
956
|
+
* Return a (paginated) list of errors for a given work request.
|
|
957
|
+
*
|
|
958
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
959
|
+
* @param ListWorkRequestErrorsRequest
|
|
960
|
+
* @return ListWorkRequestErrorsResponse
|
|
961
|
+
* @throws OciError when an error occurs
|
|
962
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
963
|
+
*/
|
|
964
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
965
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
966
|
+
if (this.logger)
|
|
967
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#listWorkRequestErrors.");
|
|
968
|
+
const pathParams = {
|
|
969
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
970
|
+
};
|
|
971
|
+
const queryParams = {
|
|
972
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
973
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
974
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
975
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
976
|
+
};
|
|
977
|
+
let headerParams = {
|
|
978
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
979
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
980
|
+
};
|
|
981
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
982
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
983
|
+
if (this.logger)
|
|
984
|
+
retrier.logger = this.logger;
|
|
985
|
+
const request = yield oci_common_1.composeRequest({
|
|
986
|
+
baseEndpoint: this._endpoint,
|
|
987
|
+
defaultHeaders: this._defaultHeaders,
|
|
988
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
989
|
+
method: "GET",
|
|
990
|
+
pathParams: pathParams,
|
|
991
|
+
headerParams: headerParams,
|
|
992
|
+
queryParams: queryParams
|
|
993
|
+
});
|
|
994
|
+
try {
|
|
995
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
996
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
997
|
+
responseObject: {},
|
|
998
|
+
body: yield response.json(),
|
|
999
|
+
bodyKey: "workRequestErrorCollection",
|
|
1000
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
1001
|
+
type: "model.WorkRequestErrorCollection",
|
|
1002
|
+
responseHeaders: [
|
|
1003
|
+
{
|
|
1004
|
+
value: response.headers.get("opc-next-page"),
|
|
1005
|
+
key: "opcNextPage",
|
|
1006
|
+
dataType: "string"
|
|
1007
|
+
},
|
|
1008
|
+
{
|
|
1009
|
+
value: response.headers.get("opc-request-id"),
|
|
1010
|
+
key: "opcRequestId",
|
|
1011
|
+
dataType: "string"
|
|
1012
|
+
}
|
|
1013
|
+
]
|
|
1014
|
+
});
|
|
1015
|
+
return sdkResponse;
|
|
1016
|
+
}
|
|
1017
|
+
catch (err) {
|
|
1018
|
+
throw err;
|
|
1019
|
+
}
|
|
1020
|
+
});
|
|
1021
|
+
}
|
|
1022
|
+
/**
|
|
1023
|
+
* Return a (paginated) list of logs for a given work request.
|
|
1024
|
+
*
|
|
1025
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1026
|
+
* @param ListWorkRequestLogsRequest
|
|
1027
|
+
* @return ListWorkRequestLogsResponse
|
|
1028
|
+
* @throws OciError when an error occurs
|
|
1029
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1030
|
+
*/
|
|
1031
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1032
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1033
|
+
if (this.logger)
|
|
1034
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#listWorkRequestLogs.");
|
|
1035
|
+
const pathParams = {
|
|
1036
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
1037
|
+
};
|
|
1038
|
+
const queryParams = {
|
|
1039
|
+
"page": listWorkRequestLogsRequest.page,
|
|
1040
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
1041
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
1042
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
1043
|
+
};
|
|
1044
|
+
let headerParams = {
|
|
1045
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1046
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1047
|
+
};
|
|
1048
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1049
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1050
|
+
if (this.logger)
|
|
1051
|
+
retrier.logger = this.logger;
|
|
1052
|
+
const request = yield oci_common_1.composeRequest({
|
|
1053
|
+
baseEndpoint: this._endpoint,
|
|
1054
|
+
defaultHeaders: this._defaultHeaders,
|
|
1055
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
1056
|
+
method: "GET",
|
|
1057
|
+
pathParams: pathParams,
|
|
1058
|
+
headerParams: headerParams,
|
|
1059
|
+
queryParams: queryParams
|
|
1060
|
+
});
|
|
1061
|
+
try {
|
|
1062
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1063
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1064
|
+
responseObject: {},
|
|
1065
|
+
body: yield response.json(),
|
|
1066
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
1067
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
1068
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
1069
|
+
responseHeaders: [
|
|
1070
|
+
{
|
|
1071
|
+
value: response.headers.get("opc-next-page"),
|
|
1072
|
+
key: "opcNextPage",
|
|
1073
|
+
dataType: "string"
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
value: response.headers.get("opc-request-id"),
|
|
1077
|
+
key: "opcRequestId",
|
|
1078
|
+
dataType: "string"
|
|
1079
|
+
}
|
|
1080
|
+
]
|
|
1081
|
+
});
|
|
1082
|
+
return sdkResponse;
|
|
1083
|
+
}
|
|
1084
|
+
catch (err) {
|
|
1085
|
+
throw err;
|
|
1086
|
+
}
|
|
1087
|
+
});
|
|
1088
|
+
}
|
|
1089
|
+
/**
|
|
1090
|
+
* Lists the work requests in a compartment.
|
|
1091
|
+
*
|
|
1092
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1093
|
+
* @param ListWorkRequestsRequest
|
|
1094
|
+
* @return ListWorkRequestsResponse
|
|
1095
|
+
* @throws OciError when an error occurs
|
|
1096
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1097
|
+
*/
|
|
1098
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
1099
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1100
|
+
if (this.logger)
|
|
1101
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#listWorkRequests.");
|
|
1102
|
+
const pathParams = {};
|
|
1103
|
+
const queryParams = {
|
|
1104
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
1105
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
1106
|
+
"status": listWorkRequestsRequest.status,
|
|
1107
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
1108
|
+
"page": listWorkRequestsRequest.page,
|
|
1109
|
+
"limit": listWorkRequestsRequest.limit,
|
|
1110
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
1111
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
1112
|
+
};
|
|
1113
|
+
let headerParams = {
|
|
1114
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1115
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1116
|
+
};
|
|
1117
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1118
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1119
|
+
if (this.logger)
|
|
1120
|
+
retrier.logger = this.logger;
|
|
1121
|
+
const request = yield oci_common_1.composeRequest({
|
|
1122
|
+
baseEndpoint: this._endpoint,
|
|
1123
|
+
defaultHeaders: this._defaultHeaders,
|
|
1124
|
+
path: "/workRequests",
|
|
1125
|
+
method: "GET",
|
|
1126
|
+
pathParams: pathParams,
|
|
1127
|
+
headerParams: headerParams,
|
|
1128
|
+
queryParams: queryParams
|
|
1129
|
+
});
|
|
1130
|
+
try {
|
|
1131
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1132
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1133
|
+
responseObject: {},
|
|
1134
|
+
body: yield response.json(),
|
|
1135
|
+
bodyKey: "workRequestSummaryCollection",
|
|
1136
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
1137
|
+
type: "model.WorkRequestSummaryCollection",
|
|
1138
|
+
responseHeaders: [
|
|
1139
|
+
{
|
|
1140
|
+
value: response.headers.get("opc-request-id"),
|
|
1141
|
+
key: "opcRequestId",
|
|
1142
|
+
dataType: "string"
|
|
1143
|
+
},
|
|
1144
|
+
{
|
|
1145
|
+
value: response.headers.get("opc-next-page"),
|
|
1146
|
+
key: "opcNextPage",
|
|
1147
|
+
dataType: "string"
|
|
1148
|
+
}
|
|
1149
|
+
]
|
|
1150
|
+
});
|
|
1151
|
+
return sdkResponse;
|
|
1152
|
+
}
|
|
1153
|
+
catch (err) {
|
|
1154
|
+
throw err;
|
|
1155
|
+
}
|
|
1156
|
+
});
|
|
1157
|
+
}
|
|
1158
|
+
/**
|
|
1159
|
+
* Updates one or more attributes of the specified Knowledge Base.
|
|
1160
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1161
|
+
* @param UpdateKnowledgeBaseRequest
|
|
1162
|
+
* @return UpdateKnowledgeBaseResponse
|
|
1163
|
+
* @throws OciError when an error occurs
|
|
1164
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/UpdateKnowledgeBase.ts.html |here} to see how to use UpdateKnowledgeBase API.
|
|
1165
|
+
*/
|
|
1166
|
+
updateKnowledgeBase(updateKnowledgeBaseRequest) {
|
|
1167
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1168
|
+
if (this.logger)
|
|
1169
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#updateKnowledgeBase.");
|
|
1170
|
+
const pathParams = {
|
|
1171
|
+
"{knowledgeBaseId}": updateKnowledgeBaseRequest.knowledgeBaseId
|
|
1172
|
+
};
|
|
1173
|
+
const queryParams = {};
|
|
1174
|
+
let headerParams = {
|
|
1175
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1176
|
+
"if-match": updateKnowledgeBaseRequest.ifMatch,
|
|
1177
|
+
"opc-request-id": updateKnowledgeBaseRequest.opcRequestId
|
|
1178
|
+
};
|
|
1179
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1180
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateKnowledgeBaseRequest.retryConfiguration, specRetryConfiguration);
|
|
1181
|
+
if (this.logger)
|
|
1182
|
+
retrier.logger = this.logger;
|
|
1183
|
+
const request = yield oci_common_1.composeRequest({
|
|
1184
|
+
baseEndpoint: this._endpoint,
|
|
1185
|
+
defaultHeaders: this._defaultHeaders,
|
|
1186
|
+
path: "/knowledgeBases/{knowledgeBaseId}",
|
|
1187
|
+
method: "PUT",
|
|
1188
|
+
bodyContent: common.ObjectSerializer.serialize(updateKnowledgeBaseRequest.updateKnowledgeBaseDetails, "UpdateKnowledgeBaseDetails", model.UpdateKnowledgeBaseDetails.getJsonObj),
|
|
1189
|
+
pathParams: pathParams,
|
|
1190
|
+
headerParams: headerParams,
|
|
1191
|
+
queryParams: queryParams
|
|
1192
|
+
});
|
|
1193
|
+
try {
|
|
1194
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1195
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1196
|
+
responseObject: {},
|
|
1197
|
+
responseHeaders: [
|
|
1198
|
+
{
|
|
1199
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1200
|
+
key: "opcWorkRequestId",
|
|
1201
|
+
dataType: "string"
|
|
1202
|
+
},
|
|
1203
|
+
{
|
|
1204
|
+
value: response.headers.get("opc-request-id"),
|
|
1205
|
+
key: "opcRequestId",
|
|
1206
|
+
dataType: "string"
|
|
1207
|
+
}
|
|
1208
|
+
]
|
|
1209
|
+
});
|
|
1210
|
+
return sdkResponse;
|
|
1211
|
+
}
|
|
1212
|
+
catch (err) {
|
|
1213
|
+
throw err;
|
|
1214
|
+
}
|
|
1215
|
+
});
|
|
1216
|
+
}
|
|
1217
|
+
/**
|
|
1218
|
+
* Updates one or more attributes of the specified Vulnerability Audit.
|
|
1219
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1220
|
+
* @param UpdateVulnerabilityAuditRequest
|
|
1221
|
+
* @return UpdateVulnerabilityAuditResponse
|
|
1222
|
+
* @throws OciError when an error occurs
|
|
1223
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.25.0/adm/UpdateVulnerabilityAudit.ts.html |here} to see how to use UpdateVulnerabilityAudit API.
|
|
1224
|
+
*/
|
|
1225
|
+
updateVulnerabilityAudit(updateVulnerabilityAuditRequest) {
|
|
1226
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1227
|
+
if (this.logger)
|
|
1228
|
+
this.logger.debug("Calling operation ApplicationDependencyManagementClient#updateVulnerabilityAudit.");
|
|
1229
|
+
const pathParams = {
|
|
1230
|
+
"{vulnerabilityAuditId}": updateVulnerabilityAuditRequest.vulnerabilityAuditId
|
|
1231
|
+
};
|
|
1232
|
+
const queryParams = {};
|
|
1233
|
+
let headerParams = {
|
|
1234
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1235
|
+
"if-match": updateVulnerabilityAuditRequest.ifMatch,
|
|
1236
|
+
"opc-request-id": updateVulnerabilityAuditRequest.opcRequestId
|
|
1237
|
+
};
|
|
1238
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1239
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateVulnerabilityAuditRequest.retryConfiguration, specRetryConfiguration);
|
|
1240
|
+
if (this.logger)
|
|
1241
|
+
retrier.logger = this.logger;
|
|
1242
|
+
const request = yield oci_common_1.composeRequest({
|
|
1243
|
+
baseEndpoint: this._endpoint,
|
|
1244
|
+
defaultHeaders: this._defaultHeaders,
|
|
1245
|
+
path: "/vulnerabilityAudits/{vulnerabilityAuditId}",
|
|
1246
|
+
method: "PUT",
|
|
1247
|
+
bodyContent: common.ObjectSerializer.serialize(updateVulnerabilityAuditRequest.updateVulnerabilityAuditDetails, "UpdateVulnerabilityAuditDetails", model.UpdateVulnerabilityAuditDetails.getJsonObj),
|
|
1248
|
+
pathParams: pathParams,
|
|
1249
|
+
headerParams: headerParams,
|
|
1250
|
+
queryParams: queryParams
|
|
1251
|
+
});
|
|
1252
|
+
try {
|
|
1253
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request);
|
|
1254
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1255
|
+
responseObject: {},
|
|
1256
|
+
body: yield response.json(),
|
|
1257
|
+
bodyKey: "vulnerabilityAudit",
|
|
1258
|
+
bodyModel: model.VulnerabilityAudit,
|
|
1259
|
+
type: "model.VulnerabilityAudit",
|
|
1260
|
+
responseHeaders: [
|
|
1261
|
+
{
|
|
1262
|
+
value: response.headers.get("etag"),
|
|
1263
|
+
key: "etag",
|
|
1264
|
+
dataType: "string"
|
|
1265
|
+
},
|
|
1266
|
+
{
|
|
1267
|
+
value: response.headers.get("opc-request-id"),
|
|
1268
|
+
key: "opcRequestId",
|
|
1269
|
+
dataType: "string"
|
|
1270
|
+
}
|
|
1271
|
+
]
|
|
1272
|
+
});
|
|
1273
|
+
return sdkResponse;
|
|
1274
|
+
}
|
|
1275
|
+
catch (err) {
|
|
1276
|
+
throw err;
|
|
1277
|
+
}
|
|
1278
|
+
});
|
|
1279
|
+
}
|
|
1280
|
+
}
|
|
1281
|
+
exports.ApplicationDependencyManagementClient = ApplicationDependencyManagementClient;
|
|
1282
|
+
ApplicationDependencyManagementClient.serviceEndpointTemplate = "https://adm.{region}.oci.{secondLevelDomain}";
|
|
1283
|
+
ApplicationDependencyManagementClient.endpointServiceName = "";
|
|
1284
|
+
//# sourceMappingURL=client.js.map
|