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
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ADM API
|
|
3
|
+
* Use the ADM API to create ADM knowledge base and vulnerability audits. For more information, see [ADM](/Content/adm/using/home.htm).
|
|
4
|
+
* OpenAPI spec version: 20220421
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* 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.
|
|
12
|
+
*/
|
|
13
|
+
import * as serviceRequests from "./request";
|
|
14
|
+
import * as serviceResponses from "./response";
|
|
15
|
+
import * as models from "./model";
|
|
16
|
+
import { ApplicationDependencyManagementClient } from "./client";
|
|
17
|
+
export declare class ApplicationDependencyManagementWaiter {
|
|
18
|
+
private client;
|
|
19
|
+
private readonly config?;
|
|
20
|
+
constructor(client: ApplicationDependencyManagementClient, config?: Partial<import("oci-common/lib/waiter").WaiterConfigurationDetails> | undefined);
|
|
21
|
+
/**
|
|
22
|
+
* Waits forKnowledgeBase till it reaches any of the provided states
|
|
23
|
+
*
|
|
24
|
+
* @param request the request to send
|
|
25
|
+
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
|
|
26
|
+
* @return response returns GetKnowledgeBaseResponse | null (null in case of 404 response)
|
|
27
|
+
*/
|
|
28
|
+
forKnowledgeBase(request: serviceRequests.GetKnowledgeBaseRequest, ...targetStates: models.KnowledgeBase.LifecycleState[]): Promise<serviceResponses.GetKnowledgeBaseResponse | null>;
|
|
29
|
+
/**
|
|
30
|
+
* Waits forVulnerabilityAudit till it reaches any of the provided states
|
|
31
|
+
*
|
|
32
|
+
* @param request the request to send
|
|
33
|
+
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
|
|
34
|
+
* @return response returns GetVulnerabilityAuditResponse | null (null in case of 404 response)
|
|
35
|
+
*/
|
|
36
|
+
forVulnerabilityAudit(request: serviceRequests.GetVulnerabilityAuditRequest, ...targetStates: models.VulnerabilityAudit.LifecycleState[]): Promise<serviceResponses.GetVulnerabilityAuditResponse | null>;
|
|
37
|
+
/**
|
|
38
|
+
* Waits forWorkRequest
|
|
39
|
+
*
|
|
40
|
+
* @param request the request to send
|
|
41
|
+
* @return response returns GetWorkRequestResponse
|
|
42
|
+
*/
|
|
43
|
+
forWorkRequest(request: serviceRequests.GetWorkRequestRequest): Promise<serviceResponses.GetWorkRequestResponse>;
|
|
44
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.ApplicationDependencyManagementWaiter = void 0;
|
|
44
|
+
const models = __importStar(require("./model"));
|
|
45
|
+
const oci_common_1 = require("oci-common");
|
|
46
|
+
class ApplicationDependencyManagementWaiter {
|
|
47
|
+
constructor(client, config) {
|
|
48
|
+
this.client = client;
|
|
49
|
+
this.config = config;
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Waits forKnowledgeBase till it reaches any of the provided states
|
|
53
|
+
*
|
|
54
|
+
* @param request the request to send
|
|
55
|
+
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
|
|
56
|
+
* @return response returns GetKnowledgeBaseResponse | null (null in case of 404 response)
|
|
57
|
+
*/
|
|
58
|
+
forKnowledgeBase(request, ...targetStates) {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
return oci_common_1.genericTerminalConditionWaiter(this.config, () => this.client.getKnowledgeBase(request), response => targetStates.includes(response.knowledgeBase.lifecycleState), targetStates.includes(models.KnowledgeBase.LifecycleState.Deleted));
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* Waits forVulnerabilityAudit till it reaches any of the provided states
|
|
65
|
+
*
|
|
66
|
+
* @param request the request to send
|
|
67
|
+
* @param targetStates the desired states to wait for. The waiter will return once the resource reaches any of the provided states
|
|
68
|
+
* @return response returns GetVulnerabilityAuditResponse | null (null in case of 404 response)
|
|
69
|
+
*/
|
|
70
|
+
forVulnerabilityAudit(request, ...targetStates) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
return oci_common_1.genericTerminalConditionWaiter(this.config, () => this.client.getVulnerabilityAudit(request), response => targetStates.includes(response.vulnerabilityAudit.lifecycleState), targetStates.includes(models.VulnerabilityAudit.LifecycleState.Deleted));
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
/**
|
|
76
|
+
* Waits forWorkRequest
|
|
77
|
+
*
|
|
78
|
+
* @param request the request to send
|
|
79
|
+
* @return response returns GetWorkRequestResponse
|
|
80
|
+
*/
|
|
81
|
+
forWorkRequest(request) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
return oci_common_1.genericWaiter(this.config, () => this.client.getWorkRequest(request), response => (response.workRequest.timeFinished ? true : false));
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
}
|
|
87
|
+
exports.ApplicationDependencyManagementWaiter = ApplicationDependencyManagementWaiter;
|
|
88
|
+
//# sourceMappingURL=applicationdependencymanagement-waiter.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"applicationdependencymanagement-waiter.js","sourceRoot":"","sources":["../../../../lib/adm/lib/applicationdependencymanagement-waiter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,gDAAkC;AAElC,2CAAgG;AAEhG,MAAa,qCAAqC;IAChD,YACU,MAA6C,EACpC,MAA4B;QADrC,WAAM,GAAN,MAAM,CAAuC;QACpC,WAAM,GAAN,MAAM,CAAsB;IAC5C,CAAC;IAEJ;;;;;;OAMG;IACU,gBAAgB,CAC3B,OAAgD,EAChD,GAAG,YAAmD;;YAEtD,OAAO,2CAA8B,CACnC,IAAI,CAAC,MAAM,EACX,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,EAC3C,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,aAAa,CAAC,cAAe,CAAC,EACzE,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,aAAa,CAAC,cAAc,CAAC,OAAO,CAAC,CACnE,CAAC;QACJ,CAAC;KAAA;IAED;;;;;;OAMG;IACU,qBAAqB,CAChC,OAAqD,EACrD,GAAG,YAAwD;;YAE3D,OAAO,2CAA8B,CACnC,IAAI,CAAC,MAAM,EACX,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,qBAAqB,CAAC,OAAO,CAAC,EAChD,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,kBAAkB,CAAC,cAAe,CAAC,EAC9E,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,kBAAkB,CAAC,cAAc,CAAC,OAAO,CAAC,CACxE,CAAC;QACJ,CAAC;KAAA;IAED;;;;;OAKG;IACU,cAAc,CACzB,OAA8C;;YAE9C,OAAO,0BAAa,CAClB,IAAI,CAAC,MAAM,EACX,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,EACzC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CAC/D,CAAC;QACJ,CAAC;KAAA;CACF;AA3DD,sFA2DC"}
|
package/lib/client.d.ts
ADDED
|
@@ -0,0 +1,240 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* ADM API
|
|
3
|
+
* Use the ADM API to create ADM knowledge base and vulnerability audits. For more information, see [ADM](/Content/adm/using/home.htm).
|
|
4
|
+
* OpenAPI spec version: 20220421
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* 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.
|
|
12
|
+
*/
|
|
13
|
+
import common = require("oci-common");
|
|
14
|
+
import * as requests from "./request";
|
|
15
|
+
import * as responses from "./response";
|
|
16
|
+
import { ApplicationDependencyManagementWaiter } from "./applicationdependencymanagement-waiter";
|
|
17
|
+
export declare enum ApplicationDependencyManagementApiKeys {
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
21
|
+
*/
|
|
22
|
+
export declare class ApplicationDependencyManagementClient {
|
|
23
|
+
protected static serviceEndpointTemplate: string;
|
|
24
|
+
protected static endpointServiceName: string;
|
|
25
|
+
protected "_endpoint": string;
|
|
26
|
+
protected "_defaultHeaders": any;
|
|
27
|
+
protected "_waiters": ApplicationDependencyManagementWaiter;
|
|
28
|
+
protected "_clientConfiguration": common.ClientConfiguration;
|
|
29
|
+
protected _circuitBreaker: null;
|
|
30
|
+
protected _httpOptions: any;
|
|
31
|
+
protected _httpClient: common.HttpClient;
|
|
32
|
+
constructor(params: common.AuthParams, clientConfiguration?: common.ClientConfiguration);
|
|
33
|
+
/**
|
|
34
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
35
|
+
*/
|
|
36
|
+
get endpoint(): string;
|
|
37
|
+
/**
|
|
38
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
39
|
+
* @param endpoint The endpoint of the service.
|
|
40
|
+
*/
|
|
41
|
+
set endpoint(endpoint: string);
|
|
42
|
+
get logger(): import("oci-common/lib/log").Logger;
|
|
43
|
+
/**
|
|
44
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
45
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
46
|
+
* @param region The region of the service.
|
|
47
|
+
*/
|
|
48
|
+
set region(region: common.Region);
|
|
49
|
+
/**
|
|
50
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
51
|
+
*
|
|
52
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
53
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
54
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
55
|
+
* @param regionId The public region ID.
|
|
56
|
+
*/
|
|
57
|
+
set regionId(regionId: string);
|
|
58
|
+
/**
|
|
59
|
+
* Creates a new ApplicationDependencyManagementWaiter for resources for this service.
|
|
60
|
+
*
|
|
61
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
62
|
+
* @return The service waiters.
|
|
63
|
+
*/
|
|
64
|
+
createWaiters(config?: common.WaiterConfiguration): ApplicationDependencyManagementWaiter;
|
|
65
|
+
/**
|
|
66
|
+
* Gets the waiters available for resources for this service.
|
|
67
|
+
*
|
|
68
|
+
* @return The service waiters.
|
|
69
|
+
*/
|
|
70
|
+
getWaiters(): ApplicationDependencyManagementWaiter;
|
|
71
|
+
/**
|
|
72
|
+
* Cancel work request with the given ID.
|
|
73
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
74
|
+
* @param CancelWorkRequestRequest
|
|
75
|
+
* @return CancelWorkRequestResponse
|
|
76
|
+
* @throws OciError when an error occurs
|
|
77
|
+
* @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.
|
|
78
|
+
*/
|
|
79
|
+
cancelWorkRequest(cancelWorkRequestRequest: requests.CancelWorkRequestRequest): Promise<responses.CancelWorkRequestResponse>;
|
|
80
|
+
/**
|
|
81
|
+
* Moves a Knowledge Base from one compartment to another.
|
|
82
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
83
|
+
* @param ChangeKnowledgeBaseCompartmentRequest
|
|
84
|
+
* @return ChangeKnowledgeBaseCompartmentResponse
|
|
85
|
+
* @throws OciError when an error occurs
|
|
86
|
+
* @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.
|
|
87
|
+
*/
|
|
88
|
+
changeKnowledgeBaseCompartment(changeKnowledgeBaseCompartmentRequest: requests.ChangeKnowledgeBaseCompartmentRequest): Promise<responses.ChangeKnowledgeBaseCompartmentResponse>;
|
|
89
|
+
/**
|
|
90
|
+
* Moves a Vulnerability Audit from one compartment to another.
|
|
91
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
92
|
+
* @param ChangeVulnerabilityAuditCompartmentRequest
|
|
93
|
+
* @return ChangeVulnerabilityAuditCompartmentResponse
|
|
94
|
+
* @throws OciError when an error occurs
|
|
95
|
+
* @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.
|
|
96
|
+
*/
|
|
97
|
+
changeVulnerabilityAuditCompartment(changeVulnerabilityAuditCompartmentRequest: requests.ChangeVulnerabilityAuditCompartmentRequest): Promise<responses.ChangeVulnerabilityAuditCompartmentResponse>;
|
|
98
|
+
/**
|
|
99
|
+
* Creates a new Knowledge Base.
|
|
100
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
101
|
+
* @param CreateKnowledgeBaseRequest
|
|
102
|
+
* @return CreateKnowledgeBaseResponse
|
|
103
|
+
* @throws OciError when an error occurs
|
|
104
|
+
* @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.
|
|
105
|
+
*/
|
|
106
|
+
createKnowledgeBase(createKnowledgeBaseRequest: requests.CreateKnowledgeBaseRequest): Promise<responses.CreateKnowledgeBaseResponse>;
|
|
107
|
+
/**
|
|
108
|
+
* Creates a new Vulnerability Audit by providing a tree of Application Dependencies.
|
|
109
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
110
|
+
* @param CreateVulnerabilityAuditRequest
|
|
111
|
+
* @return CreateVulnerabilityAuditResponse
|
|
112
|
+
* @throws OciError when an error occurs
|
|
113
|
+
* @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.
|
|
114
|
+
*/
|
|
115
|
+
createVulnerabilityAudit(createVulnerabilityAuditRequest: requests.CreateVulnerabilityAuditRequest): Promise<responses.CreateVulnerabilityAuditResponse>;
|
|
116
|
+
/**
|
|
117
|
+
* Deletes the specified Knowledge Base.
|
|
118
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
119
|
+
* @param DeleteKnowledgeBaseRequest
|
|
120
|
+
* @return DeleteKnowledgeBaseResponse
|
|
121
|
+
* @throws OciError when an error occurs
|
|
122
|
+
* @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.
|
|
123
|
+
*/
|
|
124
|
+
deleteKnowledgeBase(deleteKnowledgeBaseRequest: requests.DeleteKnowledgeBaseRequest): Promise<responses.DeleteKnowledgeBaseResponse>;
|
|
125
|
+
/**
|
|
126
|
+
* Deletes the specified Vulnerability Audit.
|
|
127
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
128
|
+
* @param DeleteVulnerabilityAuditRequest
|
|
129
|
+
* @return DeleteVulnerabilityAuditResponse
|
|
130
|
+
* @throws OciError when an error occurs
|
|
131
|
+
* @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.
|
|
132
|
+
*/
|
|
133
|
+
deleteVulnerabilityAudit(deleteVulnerabilityAuditRequest: requests.DeleteVulnerabilityAuditRequest): Promise<responses.DeleteVulnerabilityAuditResponse>;
|
|
134
|
+
/**
|
|
135
|
+
* Returns the details of the specified Knowledge Base.
|
|
136
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
137
|
+
* @param GetKnowledgeBaseRequest
|
|
138
|
+
* @return GetKnowledgeBaseResponse
|
|
139
|
+
* @throws OciError when an error occurs
|
|
140
|
+
* @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.
|
|
141
|
+
*/
|
|
142
|
+
getKnowledgeBase(getKnowledgeBaseRequest: requests.GetKnowledgeBaseRequest): Promise<responses.GetKnowledgeBaseResponse>;
|
|
143
|
+
/**
|
|
144
|
+
* Returns the details of the specified Vulnerability Audit.
|
|
145
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
146
|
+
* @param GetVulnerabilityAuditRequest
|
|
147
|
+
* @return GetVulnerabilityAuditResponse
|
|
148
|
+
* @throws OciError when an error occurs
|
|
149
|
+
* @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.
|
|
150
|
+
*/
|
|
151
|
+
getVulnerabilityAudit(getVulnerabilityAuditRequest: requests.GetVulnerabilityAuditRequest): Promise<responses.GetVulnerabilityAuditResponse>;
|
|
152
|
+
/**
|
|
153
|
+
* Gets the status of the 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 GetWorkRequestRequest
|
|
156
|
+
* @return GetWorkRequestResponse
|
|
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/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
159
|
+
*/
|
|
160
|
+
getWorkRequest(getWorkRequestRequest: requests.GetWorkRequestRequest): Promise<responses.GetWorkRequestResponse>;
|
|
161
|
+
/**
|
|
162
|
+
* Returns a list of Application Dependencies with their associated vulnerabilities.
|
|
163
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
164
|
+
* @param ListApplicationDependencyVulnerabilitiesRequest
|
|
165
|
+
* @return ListApplicationDependencyVulnerabilitiesResponse
|
|
166
|
+
* @throws OciError when an error occurs
|
|
167
|
+
* @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.
|
|
168
|
+
*/
|
|
169
|
+
listApplicationDependencyVulnerabilities(listApplicationDependencyVulnerabilitiesRequest: requests.ListApplicationDependencyVulnerabilitiesRequest): Promise<responses.ListApplicationDependencyVulnerabilitiesResponse>;
|
|
170
|
+
/**
|
|
171
|
+
* Returns a list of KnowledgeBases based on the specified query parameters.
|
|
172
|
+
* At least id or compartmentId query parameter must be provided.
|
|
173
|
+
*
|
|
174
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
175
|
+
* @param ListKnowledgeBasesRequest
|
|
176
|
+
* @return ListKnowledgeBasesResponse
|
|
177
|
+
* @throws OciError when an error occurs
|
|
178
|
+
* @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.
|
|
179
|
+
*/
|
|
180
|
+
listKnowledgeBases(listKnowledgeBasesRequest: requests.ListKnowledgeBasesRequest): Promise<responses.ListKnowledgeBasesResponse>;
|
|
181
|
+
/**
|
|
182
|
+
* Returns a list of Vulnerability Audits based on the specified query parameters.
|
|
183
|
+
* At least one of id, compartmentId or knowledgeBaseId query parameter must be provided.
|
|
184
|
+
*
|
|
185
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
186
|
+
* @param ListVulnerabilityAuditsRequest
|
|
187
|
+
* @return ListVulnerabilityAuditsResponse
|
|
188
|
+
* @throws OciError when an error occurs
|
|
189
|
+
* @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.
|
|
190
|
+
*/
|
|
191
|
+
listVulnerabilityAudits(listVulnerabilityAuditsRequest: requests.ListVulnerabilityAuditsRequest): Promise<responses.ListVulnerabilityAuditsResponse>;
|
|
192
|
+
/**
|
|
193
|
+
* Return a (paginated) list of errors for a given work request.
|
|
194
|
+
*
|
|
195
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
196
|
+
* @param ListWorkRequestErrorsRequest
|
|
197
|
+
* @return ListWorkRequestErrorsResponse
|
|
198
|
+
* @throws OciError when an error occurs
|
|
199
|
+
* @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.
|
|
200
|
+
*/
|
|
201
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest: requests.ListWorkRequestErrorsRequest): Promise<responses.ListWorkRequestErrorsResponse>;
|
|
202
|
+
/**
|
|
203
|
+
* Return a (paginated) list of logs for a given work request.
|
|
204
|
+
*
|
|
205
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
206
|
+
* @param ListWorkRequestLogsRequest
|
|
207
|
+
* @return ListWorkRequestLogsResponse
|
|
208
|
+
* @throws OciError when an error occurs
|
|
209
|
+
* @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.
|
|
210
|
+
*/
|
|
211
|
+
listWorkRequestLogs(listWorkRequestLogsRequest: requests.ListWorkRequestLogsRequest): Promise<responses.ListWorkRequestLogsResponse>;
|
|
212
|
+
/**
|
|
213
|
+
* Lists the work requests in a compartment.
|
|
214
|
+
*
|
|
215
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
216
|
+
* @param ListWorkRequestsRequest
|
|
217
|
+
* @return ListWorkRequestsResponse
|
|
218
|
+
* @throws OciError when an error occurs
|
|
219
|
+
* @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.
|
|
220
|
+
*/
|
|
221
|
+
listWorkRequests(listWorkRequestsRequest: requests.ListWorkRequestsRequest): Promise<responses.ListWorkRequestsResponse>;
|
|
222
|
+
/**
|
|
223
|
+
* Updates one or more attributes of the specified Knowledge Base.
|
|
224
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
225
|
+
* @param UpdateKnowledgeBaseRequest
|
|
226
|
+
* @return UpdateKnowledgeBaseResponse
|
|
227
|
+
* @throws OciError when an error occurs
|
|
228
|
+
* @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.
|
|
229
|
+
*/
|
|
230
|
+
updateKnowledgeBase(updateKnowledgeBaseRequest: requests.UpdateKnowledgeBaseRequest): Promise<responses.UpdateKnowledgeBaseResponse>;
|
|
231
|
+
/**
|
|
232
|
+
* Updates one or more attributes of the specified Vulnerability Audit.
|
|
233
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
234
|
+
* @param UpdateVulnerabilityAuditRequest
|
|
235
|
+
* @return UpdateVulnerabilityAuditResponse
|
|
236
|
+
* @throws OciError when an error occurs
|
|
237
|
+
* @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.
|
|
238
|
+
*/
|
|
239
|
+
updateVulnerabilityAudit(updateVulnerabilityAuditRequest: requests.UpdateVulnerabilityAuditRequest): Promise<responses.UpdateVulnerabilityAuditResponse>;
|
|
240
|
+
}
|