oci-dblm 2.103.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/client.d.ts +211 -0
- package/lib/client.js +1052 -0
- package/lib/client.js.map +1 -0
- package/lib/dblifecyclemanagement-waiter.d.ts +36 -0
- package/lib/dblifecyclemanagement-waiter.js +76 -0
- package/lib/dblifecyclemanagement-waiter.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/aggregated-vulnerability-collection.d.ts +26 -0
- package/lib/model/aggregated-vulnerability-collection.js +61 -0
- package/lib/model/aggregated-vulnerability-collection.js.map +1 -0
- package/lib/model/aggregated-vulnerability-summary.d.ts +33 -0
- package/lib/model/aggregated-vulnerability-summary.js +29 -0
- package/lib/model/aggregated-vulnerability-summary.js.map +1 -0
- package/lib/model/child-pdb.d.ts +45 -0
- package/lib/model/child-pdb.js +29 -0
- package/lib/model/child-pdb.js.map +1 -0
- package/lib/model/create-vulnerability-scan-details.d.ts +29 -0
- package/lib/model/create-vulnerability-scan-details.js +29 -0
- package/lib/model/create-vulnerability-scan-details.js.map +1 -0
- package/lib/model/dblm-vulnerability.d.ts +90 -0
- package/lib/model/dblm-vulnerability.js +75 -0
- package/lib/model/dblm-vulnerability.js.map +1 -0
- package/lib/model/host-info.d.ts +29 -0
- package/lib/model/host-info.js +29 -0
- package/lib/model/host-info.js.map +1 -0
- package/lib/model/index.d.ts +84 -0
- package/lib/model/index.js +107 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/metric-error.d.ts +45 -0
- package/lib/model/metric-error.js +29 -0
- package/lib/model/metric-error.js.map +1 -0
- package/lib/model/notification-collection.d.ts +26 -0
- package/lib/model/notification-collection.js +61 -0
- package/lib/model/notification-collection.js.map +1 -0
- package/lib/model/notification-summary.d.ts +47 -0
- package/lib/model/notification-summary.js +40 -0
- package/lib/model/notification-summary.js.map +1 -0
- package/lib/model/operation-status.d.ts +34 -0
- package/lib/model/operation-status.js +45 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +35 -0
- package/lib/model/operation-type.js +46 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/patch-recommendation-summary.d.ts +33 -0
- package/lib/model/patch-recommendation-summary.js +29 -0
- package/lib/model/patch-recommendation-summary.js.map +1 -0
- package/lib/model/patch-recommendations-details-summary.d.ts +45 -0
- package/lib/model/patch-recommendations-details-summary.js +29 -0
- package/lib/model/patch-recommendations-details-summary.js.map +1 -0
- package/lib/model/resource-info.d.ts +66 -0
- package/lib/model/resource-info.js +61 -0
- package/lib/model/resource-info.js.map +1 -0
- package/lib/model/resource-summary.d.ts +45 -0
- package/lib/model/resource-summary.js +29 -0
- package/lib/model/resource-summary.js.map +1 -0
- package/lib/model/resources-severities.d.ts +27 -0
- package/lib/model/resources-severities.js +38 -0
- package/lib/model/resources-severities.js.map +1 -0
- package/lib/model/sort-order.d.ts +28 -0
- package/lib/model/sort-order.js +39 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/vulnerabilities-summary.d.ts +45 -0
- package/lib/model/vulnerabilities-summary.js +29 -0
- package/lib/model/vulnerabilities-summary.js.map +1 -0
- package/lib/model/vulnerability-collection.d.ts +26 -0
- package/lib/model/vulnerability-collection.js +61 -0
- package/lib/model/vulnerability-collection.js.map +1 -0
- package/lib/model/vulnerability-resource-collection.d.ts +26 -0
- package/lib/model/vulnerability-resource-collection.js +61 -0
- package/lib/model/vulnerability-resource-collection.js.map +1 -0
- package/lib/model/vulnerability-resource-summary.d.ts +78 -0
- package/lib/model/vulnerability-resource-summary.js +81 -0
- package/lib/model/vulnerability-resource-summary.js.map +1 -0
- package/lib/model/vulnerability-risk-level.d.ts +26 -0
- package/lib/model/vulnerability-risk-level.js +37 -0
- package/lib/model/vulnerability-risk-level.js.map +1 -0
- package/lib/model/vulnerability-scan-collection.d.ts +26 -0
- package/lib/model/vulnerability-scan-collection.js +61 -0
- package/lib/model/vulnerability-scan-collection.js.map +1 -0
- package/lib/model/vulnerability-scan-summary.d.ts +91 -0
- package/lib/model/vulnerability-scan-summary.js +29 -0
- package/lib/model/vulnerability-scan-summary.js.map +1 -0
- package/lib/model/vulnerability-scan.d.ts +130 -0
- package/lib/model/vulnerability-scan.js +66 -0
- package/lib/model/vulnerability-scan.js.map +1 -0
- package/lib/model/vulnerability-summary.d.ts +41 -0
- package/lib/model/vulnerability-summary.js +29 -0
- package/lib/model/vulnerability-summary.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 +67 -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/create-vulnerability-scan-request.d.ts +36 -0
- package/lib/request/create-vulnerability-scan-request.js +15 -0
- package/lib/request/create-vulnerability-scan-request.js.map +1 -0
- package/lib/request/get-vulnerability-request.d.ts +34 -0
- package/lib/request/get-vulnerability-request.js +15 -0
- package/lib/request/get-vulnerability-request.js.map +1 -0
- package/lib/request/get-vulnerability-scan-request.d.ts +26 -0
- package/lib/request/get-vulnerability-scan-request.js +15 -0
- package/lib/request/get-vulnerability-scan-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 +36 -0
- package/lib/request/index.js +47 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-aggregated-vulnerability-data-request.d.ts +50 -0
- package/lib/request/list-aggregated-vulnerability-data-request.js +15 -0
- package/lib/request/list-aggregated-vulnerability-data-request.js.map +1 -0
- package/lib/request/list-notifications-request.d.ts +30 -0
- package/lib/request/list-notifications-request.js +15 -0
- package/lib/request/list-notifications-request.js.map +1 -0
- package/lib/request/list-vulnerabilities-request.d.ts +85 -0
- package/lib/request/list-vulnerabilities-request.js +24 -0
- package/lib/request/list-vulnerabilities-request.js.map +1 -0
- package/lib/request/list-vulnerability-resources-request.d.ts +83 -0
- package/lib/request/list-vulnerability-resources-request.js +30 -0
- package/lib/request/list-vulnerability-resources-request.js.map +1 -0
- package/lib/request/list-vulnerability-scans-request.d.ts +89 -0
- package/lib/request/list-vulnerability-scans-request.js +39 -0
- package/lib/request/list-vulnerability-scans-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/response/create-vulnerability-scan-response.d.ts +43 -0
- package/lib/response/create-vulnerability-scan-response.js +15 -0
- package/lib/response/create-vulnerability-scan-response.js.map +1 -0
- package/lib/response/get-vulnerability-response.d.ts +30 -0
- package/lib/response/get-vulnerability-response.js +15 -0
- package/lib/response/get-vulnerability-response.js.map +1 -0
- package/lib/response/get-vulnerability-scan-response.d.ts +30 -0
- package/lib/response/get-vulnerability-scan-response.js +15 -0
- package/lib/response/get-vulnerability-scan-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 +36 -0
- package/lib/response/index.js +15 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-aggregated-vulnerability-data-response.d.ts +30 -0
- package/lib/response/list-aggregated-vulnerability-data-response.js +15 -0
- package/lib/response/list-aggregated-vulnerability-data-response.js.map +1 -0
- package/lib/response/list-notifications-response.d.ts +32 -0
- package/lib/response/list-notifications-response.js +15 -0
- package/lib/response/list-notifications-response.js.map +1 -0
- package/lib/response/list-vulnerabilities-response.d.ts +32 -0
- package/lib/response/list-vulnerabilities-response.js +15 -0
- package/lib/response/list-vulnerabilities-response.js.map +1 -0
- package/lib/response/list-vulnerability-resources-response.d.ts +32 -0
- package/lib/response/list-vulnerability-resources-response.js +15 -0
- package/lib/response/list-vulnerability-resources-response.js.map +1 -0
- package/lib/response/list-vulnerability-scans-response.d.ts +32 -0
- package/lib/response/list-vulnerability-scans-response.js +15 -0
- package/lib/response/list-vulnerability-scans-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/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,1052 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Dblm API
|
|
4
|
+
* A description of the Dblm API
|
|
5
|
+
* OpenAPI spec version: 20240102
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2025, 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.DbLifeCycleManagementClient = exports.DbLifeCycleManagementApiKeys = void 0;
|
|
44
|
+
const common = require("oci-common");
|
|
45
|
+
const model = __importStar(require("./model"));
|
|
46
|
+
const dblifecyclemanagement_waiter_1 = require("./dblifecyclemanagement-waiter");
|
|
47
|
+
const oci_common_1 = require("oci-common");
|
|
48
|
+
const Breaker = require("opossum");
|
|
49
|
+
// ===============================================
|
|
50
|
+
// This file is autogenerated - Please do not edit
|
|
51
|
+
// ===============================================
|
|
52
|
+
var DbLifeCycleManagementApiKeys;
|
|
53
|
+
(function (DbLifeCycleManagementApiKeys) {
|
|
54
|
+
})(DbLifeCycleManagementApiKeys = exports.DbLifeCycleManagementApiKeys || (exports.DbLifeCycleManagementApiKeys = {}));
|
|
55
|
+
/**
|
|
56
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
57
|
+
*/
|
|
58
|
+
class DbLifeCycleManagementClient {
|
|
59
|
+
constructor(params, clientConfiguration) {
|
|
60
|
+
this["_realmSpecificEndpointTemplateEnabled"] = undefined;
|
|
61
|
+
this["_endpoint"] = "";
|
|
62
|
+
this["_defaultHeaders"] = {};
|
|
63
|
+
this._circuitBreaker = null;
|
|
64
|
+
this._httpOptions = undefined;
|
|
65
|
+
this._bodyDuplexMode = undefined;
|
|
66
|
+
this.targetService = "DbLifeCycleManagement";
|
|
67
|
+
this._regionId = "";
|
|
68
|
+
this._lastSetRegionOrRegionId = "";
|
|
69
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
70
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
71
|
+
: null;
|
|
72
|
+
this._authProvider = params.authenticationDetailsProvider;
|
|
73
|
+
if (clientConfiguration) {
|
|
74
|
+
this._clientConfiguration = clientConfiguration;
|
|
75
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
76
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
77
|
+
: null;
|
|
78
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
79
|
+
? clientConfiguration.httpOptions
|
|
80
|
+
: undefined;
|
|
81
|
+
this._bodyDuplexMode = clientConfiguration.bodyDuplexMode
|
|
82
|
+
? clientConfiguration.bodyDuplexMode
|
|
83
|
+
: undefined;
|
|
84
|
+
}
|
|
85
|
+
if (!oci_common_1.developerToolConfiguration.isServiceEnabled("dblm")) {
|
|
86
|
+
let errmsg = "The developerToolConfiguration configuration disabled this service, this behavior is controlled by developerToolConfiguration.ociEnabledServiceSet variable. Please check if your local developer_tool_configuration file has configured the service you're targeting or contact the cloud provider on the availability of this service : ";
|
|
87
|
+
throw errmsg.concat("dblm");
|
|
88
|
+
}
|
|
89
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
90
|
+
const specCircuitBreakerEnabled = true;
|
|
91
|
+
if (!this._circuitBreaker &&
|
|
92
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
93
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
94
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
95
|
+
}
|
|
96
|
+
this._httpClient =
|
|
97
|
+
params.httpClient ||
|
|
98
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions, this._bodyDuplexMode);
|
|
99
|
+
if (params.authenticationDetailsProvider &&
|
|
100
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
101
|
+
const provider = params.authenticationDetailsProvider;
|
|
102
|
+
if (provider.getRegion()) {
|
|
103
|
+
this.region = provider.getRegion();
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
109
|
+
*/
|
|
110
|
+
get endpoint() {
|
|
111
|
+
return this._endpoint;
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
115
|
+
* @param endpoint The endpoint of the service.
|
|
116
|
+
*/
|
|
117
|
+
set endpoint(endpoint) {
|
|
118
|
+
this._endpoint = endpoint;
|
|
119
|
+
this._endpoint = this._endpoint + "/20240102";
|
|
120
|
+
if (this.logger)
|
|
121
|
+
this.logger.info(`DbLifeCycleManagementClient endpoint set to ${this._endpoint}`);
|
|
122
|
+
}
|
|
123
|
+
get logger() {
|
|
124
|
+
return common.LOG.logger;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* Determines whether realm specific endpoint should be used or not.
|
|
128
|
+
* Set realmSpecificEndpointTemplateEnabled to "true" if the user wants to enable use of realm specific endpoint template, otherwise set it to "false"
|
|
129
|
+
* @param realmSpecificEndpointTemplateEnabled flag to enable the use of realm specific endpoint template
|
|
130
|
+
*/
|
|
131
|
+
set useRealmSpecificEndpointTemplate(realmSpecificEndpointTemplateEnabled) {
|
|
132
|
+
this._realmSpecificEndpointTemplateEnabled = realmSpecificEndpointTemplateEnabled;
|
|
133
|
+
if (this.logger)
|
|
134
|
+
this.logger.info(`realmSpecificEndpointTemplateEnabled set to ${this._realmSpecificEndpointTemplateEnabled}`);
|
|
135
|
+
if (this._lastSetRegionOrRegionId === common.Region.REGION_STRING) {
|
|
136
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DbLifeCycleManagementClient.serviceEndpointTemplate, this._region, DbLifeCycleManagementClient.endpointServiceName);
|
|
137
|
+
}
|
|
138
|
+
else if (this._lastSetRegionOrRegionId === common.Region.REGION_ID_STRING) {
|
|
139
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DbLifeCycleManagementClient.serviceEndpointTemplate, this._regionId, DbLifeCycleManagementClient.endpointServiceName);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
144
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
145
|
+
* @param region The region of the service.
|
|
146
|
+
*/
|
|
147
|
+
set region(region) {
|
|
148
|
+
this._region = region;
|
|
149
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(DbLifeCycleManagementClient.serviceEndpointTemplate, region, DbLifeCycleManagementClient.endpointServiceName);
|
|
150
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_STRING;
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
154
|
+
*
|
|
155
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
156
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
157
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
158
|
+
* @param regionId The public region ID.
|
|
159
|
+
*/
|
|
160
|
+
set regionId(regionId) {
|
|
161
|
+
this._regionId = regionId;
|
|
162
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(DbLifeCycleManagementClient.serviceEndpointTemplate, regionId, DbLifeCycleManagementClient.endpointServiceName);
|
|
163
|
+
this._lastSetRegionOrRegionId = common.Region.REGION_ID_STRING;
|
|
164
|
+
}
|
|
165
|
+
/**
|
|
166
|
+
* Creates a new DbLifeCycleManagementWaiter for resources for this service.
|
|
167
|
+
*
|
|
168
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
169
|
+
* @return The service waiters.
|
|
170
|
+
*/
|
|
171
|
+
createWaiters(config) {
|
|
172
|
+
this._waiters = new dblifecyclemanagement_waiter_1.DbLifeCycleManagementWaiter(this, config);
|
|
173
|
+
return this._waiters;
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Gets the waiters available for resources for this service.
|
|
177
|
+
*
|
|
178
|
+
* @return The service waiters.
|
|
179
|
+
*/
|
|
180
|
+
getWaiters() {
|
|
181
|
+
if (this._waiters) {
|
|
182
|
+
return this._waiters;
|
|
183
|
+
}
|
|
184
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Shutdown the circuit breaker used by the client when it is no longer needed
|
|
188
|
+
*/
|
|
189
|
+
shutdownCircuitBreaker() {
|
|
190
|
+
if (this._circuitBreaker) {
|
|
191
|
+
this._circuitBreaker.shutdown();
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
/**
|
|
195
|
+
* Close the provider if possible which in turn shuts down any associated circuit breaker
|
|
196
|
+
*/
|
|
197
|
+
closeProvider() {
|
|
198
|
+
if (this._authProvider) {
|
|
199
|
+
if (this._authProvider instanceof common.AbstractRequestingAuthenticationDetailsProvider)
|
|
200
|
+
(this._authProvider).closeProvider();
|
|
201
|
+
}
|
|
202
|
+
}
|
|
203
|
+
/**
|
|
204
|
+
* Close the client once it is no longer needed
|
|
205
|
+
*/
|
|
206
|
+
close() {
|
|
207
|
+
this.shutdownCircuitBreaker();
|
|
208
|
+
this.closeProvider();
|
|
209
|
+
}
|
|
210
|
+
/**
|
|
211
|
+
* Creates a VulnerabilityScan.
|
|
212
|
+
*
|
|
213
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
214
|
+
* @param CreateVulnerabilityScanRequest
|
|
215
|
+
* @return CreateVulnerabilityScanResponse
|
|
216
|
+
* @throws OciError when an error occurs
|
|
217
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dblm/CreateVulnerabilityScan.ts.html |here} to see how to use CreateVulnerabilityScan API.
|
|
218
|
+
*/
|
|
219
|
+
createVulnerabilityScan(createVulnerabilityScanRequest) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
if (this.logger)
|
|
222
|
+
this.logger.debug("Calling operation DbLifeCycleManagementClient#createVulnerabilityScan.");
|
|
223
|
+
const operationName = "createVulnerabilityScan";
|
|
224
|
+
const apiReferenceLink = "";
|
|
225
|
+
const pathParams = {};
|
|
226
|
+
const queryParams = {};
|
|
227
|
+
let headerParams = {
|
|
228
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
229
|
+
"opc-retry-token": createVulnerabilityScanRequest.opcRetryToken,
|
|
230
|
+
"opc-request-id": createVulnerabilityScanRequest.opcRequestId
|
|
231
|
+
};
|
|
232
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
233
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createVulnerabilityScanRequest.retryConfiguration, specRetryConfiguration);
|
|
234
|
+
if (this.logger)
|
|
235
|
+
retrier.logger = this.logger;
|
|
236
|
+
const request = yield oci_common_1.composeRequest({
|
|
237
|
+
baseEndpoint: this._endpoint,
|
|
238
|
+
defaultHeaders: this._defaultHeaders,
|
|
239
|
+
path: "/vulnerabilityScans",
|
|
240
|
+
method: "POST",
|
|
241
|
+
bodyContent: common.ObjectSerializer.serialize(createVulnerabilityScanRequest.createVulnerabilityScanDetails, "CreateVulnerabilityScanDetails", model.CreateVulnerabilityScanDetails.getJsonObj),
|
|
242
|
+
pathParams: pathParams,
|
|
243
|
+
headerParams: headerParams,
|
|
244
|
+
queryParams: queryParams
|
|
245
|
+
});
|
|
246
|
+
try {
|
|
247
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
248
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
249
|
+
responseObject: {},
|
|
250
|
+
body: yield response.json(),
|
|
251
|
+
bodyKey: "vulnerabilityScan",
|
|
252
|
+
bodyModel: model.VulnerabilityScan,
|
|
253
|
+
type: "model.VulnerabilityScan",
|
|
254
|
+
responseHeaders: [
|
|
255
|
+
{
|
|
256
|
+
value: response.headers.get("location"),
|
|
257
|
+
key: "location",
|
|
258
|
+
dataType: "string"
|
|
259
|
+
},
|
|
260
|
+
{
|
|
261
|
+
value: response.headers.get("content-location"),
|
|
262
|
+
key: "contentLocation",
|
|
263
|
+
dataType: "string"
|
|
264
|
+
},
|
|
265
|
+
{
|
|
266
|
+
value: response.headers.get("etag"),
|
|
267
|
+
key: "etag",
|
|
268
|
+
dataType: "string"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
value: response.headers.get("opc-work-request-id"),
|
|
272
|
+
key: "opcWorkRequestId",
|
|
273
|
+
dataType: "string"
|
|
274
|
+
},
|
|
275
|
+
{
|
|
276
|
+
value: response.headers.get("opc-request-id"),
|
|
277
|
+
key: "opcRequestId",
|
|
278
|
+
dataType: "string"
|
|
279
|
+
}
|
|
280
|
+
]
|
|
281
|
+
});
|
|
282
|
+
return sdkResponse;
|
|
283
|
+
}
|
|
284
|
+
catch (err) {
|
|
285
|
+
throw err;
|
|
286
|
+
}
|
|
287
|
+
});
|
|
288
|
+
}
|
|
289
|
+
/**
|
|
290
|
+
* Gets a Vulnerability
|
|
291
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
292
|
+
* @param GetVulnerabilityRequest
|
|
293
|
+
* @return GetVulnerabilityResponse
|
|
294
|
+
* @throws OciError when an error occurs
|
|
295
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dblm/GetVulnerability.ts.html |here} to see how to use GetVulnerability API.
|
|
296
|
+
*/
|
|
297
|
+
getVulnerability(getVulnerabilityRequest) {
|
|
298
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
299
|
+
if (this.logger)
|
|
300
|
+
this.logger.debug("Calling operation DbLifeCycleManagementClient#getVulnerability.");
|
|
301
|
+
const operationName = "getVulnerability";
|
|
302
|
+
const apiReferenceLink = "";
|
|
303
|
+
const pathParams = {};
|
|
304
|
+
const queryParams = {
|
|
305
|
+
"compartmentId": getVulnerabilityRequest.compartmentId,
|
|
306
|
+
"databaseRelease": getVulnerabilityRequest.databaseRelease,
|
|
307
|
+
"lifecycleState": getVulnerabilityRequest.lifecycleState
|
|
308
|
+
};
|
|
309
|
+
let headerParams = {
|
|
310
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
311
|
+
"opc-request-id": getVulnerabilityRequest.opcRequestId
|
|
312
|
+
};
|
|
313
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
314
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVulnerabilityRequest.retryConfiguration, specRetryConfiguration);
|
|
315
|
+
if (this.logger)
|
|
316
|
+
retrier.logger = this.logger;
|
|
317
|
+
const request = yield oci_common_1.composeRequest({
|
|
318
|
+
baseEndpoint: this._endpoint,
|
|
319
|
+
defaultHeaders: this._defaultHeaders,
|
|
320
|
+
path: "/vulnerability",
|
|
321
|
+
method: "GET",
|
|
322
|
+
pathParams: pathParams,
|
|
323
|
+
headerParams: headerParams,
|
|
324
|
+
queryParams: queryParams
|
|
325
|
+
});
|
|
326
|
+
try {
|
|
327
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
328
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
329
|
+
responseObject: {},
|
|
330
|
+
body: yield response.json(),
|
|
331
|
+
bodyKey: "dblmVulnerability",
|
|
332
|
+
bodyModel: model.DblmVulnerability,
|
|
333
|
+
type: "model.DblmVulnerability",
|
|
334
|
+
responseHeaders: [
|
|
335
|
+
{
|
|
336
|
+
value: response.headers.get("etag"),
|
|
337
|
+
key: "etag",
|
|
338
|
+
dataType: "string"
|
|
339
|
+
},
|
|
340
|
+
{
|
|
341
|
+
value: response.headers.get("opc-request-id"),
|
|
342
|
+
key: "opcRequestId",
|
|
343
|
+
dataType: "string"
|
|
344
|
+
}
|
|
345
|
+
]
|
|
346
|
+
});
|
|
347
|
+
return sdkResponse;
|
|
348
|
+
}
|
|
349
|
+
catch (err) {
|
|
350
|
+
throw err;
|
|
351
|
+
}
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* Gets information about a VulnerabilityScan.
|
|
356
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
357
|
+
* @param GetVulnerabilityScanRequest
|
|
358
|
+
* @return GetVulnerabilityScanResponse
|
|
359
|
+
* @throws OciError when an error occurs
|
|
360
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dblm/GetVulnerabilityScan.ts.html |here} to see how to use GetVulnerabilityScan API.
|
|
361
|
+
*/
|
|
362
|
+
getVulnerabilityScan(getVulnerabilityScanRequest) {
|
|
363
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
364
|
+
if (this.logger)
|
|
365
|
+
this.logger.debug("Calling operation DbLifeCycleManagementClient#getVulnerabilityScan.");
|
|
366
|
+
const operationName = "getVulnerabilityScan";
|
|
367
|
+
const apiReferenceLink = "";
|
|
368
|
+
const pathParams = {
|
|
369
|
+
"{vulnerabilityScanId}": getVulnerabilityScanRequest.vulnerabilityScanId
|
|
370
|
+
};
|
|
371
|
+
const queryParams = {};
|
|
372
|
+
let headerParams = {
|
|
373
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
374
|
+
"opc-request-id": getVulnerabilityScanRequest.opcRequestId
|
|
375
|
+
};
|
|
376
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
377
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getVulnerabilityScanRequest.retryConfiguration, specRetryConfiguration);
|
|
378
|
+
if (this.logger)
|
|
379
|
+
retrier.logger = this.logger;
|
|
380
|
+
const request = yield oci_common_1.composeRequest({
|
|
381
|
+
baseEndpoint: this._endpoint,
|
|
382
|
+
defaultHeaders: this._defaultHeaders,
|
|
383
|
+
path: "/vulnerabilityScans/{vulnerabilityScanId}",
|
|
384
|
+
method: "GET",
|
|
385
|
+
pathParams: pathParams,
|
|
386
|
+
headerParams: headerParams,
|
|
387
|
+
queryParams: queryParams
|
|
388
|
+
});
|
|
389
|
+
try {
|
|
390
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
391
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
392
|
+
responseObject: {},
|
|
393
|
+
body: yield response.json(),
|
|
394
|
+
bodyKey: "vulnerabilityScan",
|
|
395
|
+
bodyModel: model.VulnerabilityScan,
|
|
396
|
+
type: "model.VulnerabilityScan",
|
|
397
|
+
responseHeaders: [
|
|
398
|
+
{
|
|
399
|
+
value: response.headers.get("etag"),
|
|
400
|
+
key: "etag",
|
|
401
|
+
dataType: "string"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
value: response.headers.get("opc-request-id"),
|
|
405
|
+
key: "opcRequestId",
|
|
406
|
+
dataType: "string"
|
|
407
|
+
}
|
|
408
|
+
]
|
|
409
|
+
});
|
|
410
|
+
return sdkResponse;
|
|
411
|
+
}
|
|
412
|
+
catch (err) {
|
|
413
|
+
throw err;
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* Gets details of the work request with the given ID.
|
|
419
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
420
|
+
* @param GetWorkRequestRequest
|
|
421
|
+
* @return GetWorkRequestResponse
|
|
422
|
+
* @throws OciError when an error occurs
|
|
423
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dblm/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
424
|
+
*/
|
|
425
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
426
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
427
|
+
if (this.logger)
|
|
428
|
+
this.logger.debug("Calling operation DbLifeCycleManagementClient#getWorkRequest.");
|
|
429
|
+
const operationName = "getWorkRequest";
|
|
430
|
+
const apiReferenceLink = "";
|
|
431
|
+
const pathParams = {
|
|
432
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
433
|
+
};
|
|
434
|
+
const queryParams = {};
|
|
435
|
+
let headerParams = {
|
|
436
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
437
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
438
|
+
};
|
|
439
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
440
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
441
|
+
if (this.logger)
|
|
442
|
+
retrier.logger = this.logger;
|
|
443
|
+
const request = yield oci_common_1.composeRequest({
|
|
444
|
+
baseEndpoint: this._endpoint,
|
|
445
|
+
defaultHeaders: this._defaultHeaders,
|
|
446
|
+
path: "/workRequests/{workRequestId}",
|
|
447
|
+
method: "GET",
|
|
448
|
+
pathParams: pathParams,
|
|
449
|
+
headerParams: headerParams,
|
|
450
|
+
queryParams: queryParams
|
|
451
|
+
});
|
|
452
|
+
try {
|
|
453
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
454
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
455
|
+
responseObject: {},
|
|
456
|
+
body: yield response.json(),
|
|
457
|
+
bodyKey: "workRequest",
|
|
458
|
+
bodyModel: model.WorkRequest,
|
|
459
|
+
type: "model.WorkRequest",
|
|
460
|
+
responseHeaders: [
|
|
461
|
+
{
|
|
462
|
+
value: response.headers.get("etag"),
|
|
463
|
+
key: "etag",
|
|
464
|
+
dataType: "string"
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
value: response.headers.get("opc-request-id"),
|
|
468
|
+
key: "opcRequestId",
|
|
469
|
+
dataType: "string"
|
|
470
|
+
},
|
|
471
|
+
{
|
|
472
|
+
value: response.headers.get("retry-after"),
|
|
473
|
+
key: "retryAfter",
|
|
474
|
+
dataType: "number"
|
|
475
|
+
}
|
|
476
|
+
]
|
|
477
|
+
});
|
|
478
|
+
return sdkResponse;
|
|
479
|
+
}
|
|
480
|
+
catch (err) {
|
|
481
|
+
throw err;
|
|
482
|
+
}
|
|
483
|
+
});
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* Gets an AggregatedVulnerabilityData
|
|
487
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
488
|
+
* @param ListAggregatedVulnerabilityDataRequest
|
|
489
|
+
* @return ListAggregatedVulnerabilityDataResponse
|
|
490
|
+
* @throws OciError when an error occurs
|
|
491
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dblm/ListAggregatedVulnerabilityData.ts.html |here} to see how to use ListAggregatedVulnerabilityData API.
|
|
492
|
+
*/
|
|
493
|
+
listAggregatedVulnerabilityData(listAggregatedVulnerabilityDataRequest) {
|
|
494
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
495
|
+
if (this.logger)
|
|
496
|
+
this.logger.debug("Calling operation DbLifeCycleManagementClient#listAggregatedVulnerabilityData.");
|
|
497
|
+
const operationName = "listAggregatedVulnerabilityData";
|
|
498
|
+
const apiReferenceLink = "";
|
|
499
|
+
const pathParams = {};
|
|
500
|
+
const queryParams = {
|
|
501
|
+
"compartmentId": listAggregatedVulnerabilityDataRequest.compartmentId,
|
|
502
|
+
"timeCreatedGreaterThan": listAggregatedVulnerabilityDataRequest.timeCreatedGreaterThan,
|
|
503
|
+
"timeEndedLessThan": listAggregatedVulnerabilityDataRequest.timeEndedLessThan,
|
|
504
|
+
"databaseRelease": listAggregatedVulnerabilityDataRequest.databaseRelease,
|
|
505
|
+
"lifecycleState": listAggregatedVulnerabilityDataRequest.lifecycleState,
|
|
506
|
+
"limit": listAggregatedVulnerabilityDataRequest.limit,
|
|
507
|
+
"page": listAggregatedVulnerabilityDataRequest.page
|
|
508
|
+
};
|
|
509
|
+
let headerParams = {
|
|
510
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
511
|
+
"opc-request-id": listAggregatedVulnerabilityDataRequest.opcRequestId
|
|
512
|
+
};
|
|
513
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
514
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAggregatedVulnerabilityDataRequest.retryConfiguration, specRetryConfiguration);
|
|
515
|
+
if (this.logger)
|
|
516
|
+
retrier.logger = this.logger;
|
|
517
|
+
const request = yield oci_common_1.composeRequest({
|
|
518
|
+
baseEndpoint: this._endpoint,
|
|
519
|
+
defaultHeaders: this._defaultHeaders,
|
|
520
|
+
path: "/vulnerability/aggregatedVulnerabilityData",
|
|
521
|
+
method: "GET",
|
|
522
|
+
pathParams: pathParams,
|
|
523
|
+
headerParams: headerParams,
|
|
524
|
+
queryParams: queryParams
|
|
525
|
+
});
|
|
526
|
+
try {
|
|
527
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
528
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
529
|
+
responseObject: {},
|
|
530
|
+
body: yield response.json(),
|
|
531
|
+
bodyKey: "aggregatedVulnerabilityCollection",
|
|
532
|
+
bodyModel: model.AggregatedVulnerabilityCollection,
|
|
533
|
+
type: "model.AggregatedVulnerabilityCollection",
|
|
534
|
+
responseHeaders: [
|
|
535
|
+
{
|
|
536
|
+
value: response.headers.get("etag"),
|
|
537
|
+
key: "etag",
|
|
538
|
+
dataType: "string"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
value: response.headers.get("opc-request-id"),
|
|
542
|
+
key: "opcRequestId",
|
|
543
|
+
dataType: "string"
|
|
544
|
+
}
|
|
545
|
+
]
|
|
546
|
+
});
|
|
547
|
+
return sdkResponse;
|
|
548
|
+
}
|
|
549
|
+
catch (err) {
|
|
550
|
+
throw err;
|
|
551
|
+
}
|
|
552
|
+
});
|
|
553
|
+
}
|
|
554
|
+
/**
|
|
555
|
+
* List of notifications
|
|
556
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
557
|
+
* @param ListNotificationsRequest
|
|
558
|
+
* @return ListNotificationsResponse
|
|
559
|
+
* @throws OciError when an error occurs
|
|
560
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dblm/ListNotifications.ts.html |here} to see how to use ListNotifications API.
|
|
561
|
+
*/
|
|
562
|
+
listNotifications(listNotificationsRequest) {
|
|
563
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
564
|
+
if (this.logger)
|
|
565
|
+
this.logger.debug("Calling operation DbLifeCycleManagementClient#listNotifications.");
|
|
566
|
+
const operationName = "listNotifications";
|
|
567
|
+
const apiReferenceLink = "";
|
|
568
|
+
const pathParams = {};
|
|
569
|
+
const queryParams = {
|
|
570
|
+
"compartmentId": listNotificationsRequest.compartmentId,
|
|
571
|
+
"limit": listNotificationsRequest.limit
|
|
572
|
+
};
|
|
573
|
+
let headerParams = {
|
|
574
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
575
|
+
"opc-request-id": listNotificationsRequest.opcRequestId
|
|
576
|
+
};
|
|
577
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
578
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listNotificationsRequest.retryConfiguration, specRetryConfiguration);
|
|
579
|
+
if (this.logger)
|
|
580
|
+
retrier.logger = this.logger;
|
|
581
|
+
const request = yield oci_common_1.composeRequest({
|
|
582
|
+
baseEndpoint: this._endpoint,
|
|
583
|
+
defaultHeaders: this._defaultHeaders,
|
|
584
|
+
path: "/vulnerability/notifications",
|
|
585
|
+
method: "GET",
|
|
586
|
+
pathParams: pathParams,
|
|
587
|
+
headerParams: headerParams,
|
|
588
|
+
queryParams: queryParams
|
|
589
|
+
});
|
|
590
|
+
try {
|
|
591
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
592
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
593
|
+
responseObject: {},
|
|
594
|
+
body: yield response.json(),
|
|
595
|
+
bodyKey: "notificationCollection",
|
|
596
|
+
bodyModel: model.NotificationCollection,
|
|
597
|
+
type: "model.NotificationCollection",
|
|
598
|
+
responseHeaders: [
|
|
599
|
+
{
|
|
600
|
+
value: response.headers.get("opc-next-page"),
|
|
601
|
+
key: "opcNextPage",
|
|
602
|
+
dataType: "string"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
value: response.headers.get("opc-request-id"),
|
|
606
|
+
key: "opcRequestId",
|
|
607
|
+
dataType: "string"
|
|
608
|
+
}
|
|
609
|
+
]
|
|
610
|
+
});
|
|
611
|
+
return sdkResponse;
|
|
612
|
+
}
|
|
613
|
+
catch (err) {
|
|
614
|
+
throw err;
|
|
615
|
+
}
|
|
616
|
+
});
|
|
617
|
+
}
|
|
618
|
+
/**
|
|
619
|
+
* Gets the vulnerabilities summary list
|
|
620
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
621
|
+
* @param ListVulnerabilitiesRequest
|
|
622
|
+
* @return ListVulnerabilitiesResponse
|
|
623
|
+
* @throws OciError when an error occurs
|
|
624
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dblm/ListVulnerabilities.ts.html |here} to see how to use ListVulnerabilities API.
|
|
625
|
+
*/
|
|
626
|
+
listVulnerabilities(listVulnerabilitiesRequest) {
|
|
627
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
628
|
+
if (this.logger)
|
|
629
|
+
this.logger.debug("Calling operation DbLifeCycleManagementClient#listVulnerabilities.");
|
|
630
|
+
const operationName = "listVulnerabilities";
|
|
631
|
+
const apiReferenceLink = "";
|
|
632
|
+
const pathParams = {};
|
|
633
|
+
const queryParams = {
|
|
634
|
+
"compartmentId": listVulnerabilitiesRequest.compartmentId,
|
|
635
|
+
"limit": listVulnerabilitiesRequest.limit,
|
|
636
|
+
"page": listVulnerabilitiesRequest.page,
|
|
637
|
+
"displayName": listVulnerabilitiesRequest.displayName,
|
|
638
|
+
"sortOrder": listVulnerabilitiesRequest.sortOrder,
|
|
639
|
+
"sortBy": listVulnerabilitiesRequest.sortBy,
|
|
640
|
+
"lifecycleState": listVulnerabilitiesRequest.lifecycleState,
|
|
641
|
+
"databaseRelease": listVulnerabilitiesRequest.databaseRelease,
|
|
642
|
+
"resourceId": listVulnerabilitiesRequest.resourceId,
|
|
643
|
+
"severityType": listVulnerabilitiesRequest.severityType,
|
|
644
|
+
"searchBy": listVulnerabilitiesRequest.searchBy
|
|
645
|
+
};
|
|
646
|
+
let headerParams = {
|
|
647
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
648
|
+
"opc-retry-token": listVulnerabilitiesRequest.opcRetryToken,
|
|
649
|
+
"opc-request-id": listVulnerabilitiesRequest.opcRequestId
|
|
650
|
+
};
|
|
651
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
652
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVulnerabilitiesRequest.retryConfiguration, specRetryConfiguration);
|
|
653
|
+
if (this.logger)
|
|
654
|
+
retrier.logger = this.logger;
|
|
655
|
+
const request = yield oci_common_1.composeRequest({
|
|
656
|
+
baseEndpoint: this._endpoint,
|
|
657
|
+
defaultHeaders: this._defaultHeaders,
|
|
658
|
+
path: "/vulnerability/vulnerabilities",
|
|
659
|
+
method: "GET",
|
|
660
|
+
pathParams: pathParams,
|
|
661
|
+
headerParams: headerParams,
|
|
662
|
+
queryParams: queryParams
|
|
663
|
+
});
|
|
664
|
+
try {
|
|
665
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
666
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
667
|
+
responseObject: {},
|
|
668
|
+
body: yield response.json(),
|
|
669
|
+
bodyKey: "vulnerabilityCollection",
|
|
670
|
+
bodyModel: model.VulnerabilityCollection,
|
|
671
|
+
type: "model.VulnerabilityCollection",
|
|
672
|
+
responseHeaders: [
|
|
673
|
+
{
|
|
674
|
+
value: response.headers.get("opc-request-id"),
|
|
675
|
+
key: "opcRequestId",
|
|
676
|
+
dataType: "string"
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
value: response.headers.get("opc-next-page"),
|
|
680
|
+
key: "opcNextPage",
|
|
681
|
+
dataType: "string"
|
|
682
|
+
}
|
|
683
|
+
]
|
|
684
|
+
});
|
|
685
|
+
return sdkResponse;
|
|
686
|
+
}
|
|
687
|
+
catch (err) {
|
|
688
|
+
throw err;
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
}
|
|
692
|
+
/**
|
|
693
|
+
* Lists the summary of vulnerable and clean resourcees
|
|
694
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
695
|
+
* @param ListVulnerabilityResourcesRequest
|
|
696
|
+
* @return ListVulnerabilityResourcesResponse
|
|
697
|
+
* @throws OciError when an error occurs
|
|
698
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dblm/ListVulnerabilityResources.ts.html |here} to see how to use ListVulnerabilityResources API.
|
|
699
|
+
*/
|
|
700
|
+
listVulnerabilityResources(listVulnerabilityResourcesRequest) {
|
|
701
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
702
|
+
if (this.logger)
|
|
703
|
+
this.logger.debug("Calling operation DbLifeCycleManagementClient#listVulnerabilityResources.");
|
|
704
|
+
const operationName = "listVulnerabilityResources";
|
|
705
|
+
const apiReferenceLink = "";
|
|
706
|
+
const pathParams = {};
|
|
707
|
+
const queryParams = {
|
|
708
|
+
"compartmentId": listVulnerabilityResourcesRequest.compartmentId,
|
|
709
|
+
"limit": listVulnerabilityResourcesRequest.limit,
|
|
710
|
+
"page": listVulnerabilityResourcesRequest.page,
|
|
711
|
+
"sortOrder": listVulnerabilityResourcesRequest.sortOrder,
|
|
712
|
+
"sortBy": listVulnerabilityResourcesRequest.sortBy,
|
|
713
|
+
"displayName": listVulnerabilityResourcesRequest.displayName,
|
|
714
|
+
"lifecycleState": listVulnerabilityResourcesRequest.lifecycleState,
|
|
715
|
+
"databaseRelease": listVulnerabilityResourcesRequest.databaseRelease,
|
|
716
|
+
"cveId": listVulnerabilityResourcesRequest.cveId,
|
|
717
|
+
"severityType": listVulnerabilityResourcesRequest.severityType,
|
|
718
|
+
"patchRecommendation": listVulnerabilityResourcesRequest.patchRecommendation
|
|
719
|
+
};
|
|
720
|
+
let headerParams = {
|
|
721
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
722
|
+
"opc-request-id": listVulnerabilityResourcesRequest.opcRequestId
|
|
723
|
+
};
|
|
724
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
725
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVulnerabilityResourcesRequest.retryConfiguration, specRetryConfiguration);
|
|
726
|
+
if (this.logger)
|
|
727
|
+
retrier.logger = this.logger;
|
|
728
|
+
const request = yield oci_common_1.composeRequest({
|
|
729
|
+
baseEndpoint: this._endpoint,
|
|
730
|
+
defaultHeaders: this._defaultHeaders,
|
|
731
|
+
path: "/vulnerability/resources",
|
|
732
|
+
method: "GET",
|
|
733
|
+
pathParams: pathParams,
|
|
734
|
+
headerParams: headerParams,
|
|
735
|
+
queryParams: queryParams
|
|
736
|
+
});
|
|
737
|
+
try {
|
|
738
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
739
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
740
|
+
responseObject: {},
|
|
741
|
+
body: yield response.json(),
|
|
742
|
+
bodyKey: "vulnerabilityResourceCollection",
|
|
743
|
+
bodyModel: model.VulnerabilityResourceCollection,
|
|
744
|
+
type: "model.VulnerabilityResourceCollection",
|
|
745
|
+
responseHeaders: [
|
|
746
|
+
{
|
|
747
|
+
value: response.headers.get("opc-request-id"),
|
|
748
|
+
key: "opcRequestId",
|
|
749
|
+
dataType: "string"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
value: response.headers.get("opc-next-page"),
|
|
753
|
+
key: "opcNextPage",
|
|
754
|
+
dataType: "string"
|
|
755
|
+
}
|
|
756
|
+
]
|
|
757
|
+
});
|
|
758
|
+
return sdkResponse;
|
|
759
|
+
}
|
|
760
|
+
catch (err) {
|
|
761
|
+
throw err;
|
|
762
|
+
}
|
|
763
|
+
});
|
|
764
|
+
}
|
|
765
|
+
/**
|
|
766
|
+
* Gets a list of VulnerabilityScans.
|
|
767
|
+
*
|
|
768
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
769
|
+
* @param ListVulnerabilityScansRequest
|
|
770
|
+
* @return ListVulnerabilityScansResponse
|
|
771
|
+
* @throws OciError when an error occurs
|
|
772
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dblm/ListVulnerabilityScans.ts.html |here} to see how to use ListVulnerabilityScans API.
|
|
773
|
+
*/
|
|
774
|
+
listVulnerabilityScans(listVulnerabilityScansRequest) {
|
|
775
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
776
|
+
if (this.logger)
|
|
777
|
+
this.logger.debug("Calling operation DbLifeCycleManagementClient#listVulnerabilityScans.");
|
|
778
|
+
const operationName = "listVulnerabilityScans";
|
|
779
|
+
const apiReferenceLink = "";
|
|
780
|
+
const pathParams = {};
|
|
781
|
+
const queryParams = {
|
|
782
|
+
"vulnerabilityScanId": listVulnerabilityScansRequest.vulnerabilityScanId,
|
|
783
|
+
"compartmentId": listVulnerabilityScansRequest.compartmentId,
|
|
784
|
+
"displayName": listVulnerabilityScansRequest.displayName,
|
|
785
|
+
"limit": listVulnerabilityScansRequest.limit,
|
|
786
|
+
"page": listVulnerabilityScansRequest.page,
|
|
787
|
+
"sortOrder": listVulnerabilityScansRequest.sortOrder,
|
|
788
|
+
"sortBy": listVulnerabilityScansRequest.sortBy,
|
|
789
|
+
"timeCreatedGreaterThan": listVulnerabilityScansRequest.timeCreatedGreaterThan,
|
|
790
|
+
"timeEndedLessThan": listVulnerabilityScansRequest.timeEndedLessThan,
|
|
791
|
+
"vulnerabilityScanStatus": listVulnerabilityScansRequest.vulnerabilityScanStatus,
|
|
792
|
+
"vulnerabilityScanType": listVulnerabilityScansRequest.vulnerabilityScanType
|
|
793
|
+
};
|
|
794
|
+
let headerParams = {
|
|
795
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
796
|
+
"opc-request-id": listVulnerabilityScansRequest.opcRequestId
|
|
797
|
+
};
|
|
798
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
799
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listVulnerabilityScansRequest.retryConfiguration, specRetryConfiguration);
|
|
800
|
+
if (this.logger)
|
|
801
|
+
retrier.logger = this.logger;
|
|
802
|
+
const request = yield oci_common_1.composeRequest({
|
|
803
|
+
baseEndpoint: this._endpoint,
|
|
804
|
+
defaultHeaders: this._defaultHeaders,
|
|
805
|
+
path: "/vulnerabilityScans",
|
|
806
|
+
method: "GET",
|
|
807
|
+
pathParams: pathParams,
|
|
808
|
+
headerParams: headerParams,
|
|
809
|
+
queryParams: queryParams
|
|
810
|
+
});
|
|
811
|
+
try {
|
|
812
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
813
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
814
|
+
responseObject: {},
|
|
815
|
+
body: yield response.json(),
|
|
816
|
+
bodyKey: "vulnerabilityScanCollection",
|
|
817
|
+
bodyModel: model.VulnerabilityScanCollection,
|
|
818
|
+
type: "model.VulnerabilityScanCollection",
|
|
819
|
+
responseHeaders: [
|
|
820
|
+
{
|
|
821
|
+
value: response.headers.get("opc-request-id"),
|
|
822
|
+
key: "opcRequestId",
|
|
823
|
+
dataType: "string"
|
|
824
|
+
},
|
|
825
|
+
{
|
|
826
|
+
value: response.headers.get("opc-next-page"),
|
|
827
|
+
key: "opcNextPage",
|
|
828
|
+
dataType: "string"
|
|
829
|
+
}
|
|
830
|
+
]
|
|
831
|
+
});
|
|
832
|
+
return sdkResponse;
|
|
833
|
+
}
|
|
834
|
+
catch (err) {
|
|
835
|
+
throw err;
|
|
836
|
+
}
|
|
837
|
+
});
|
|
838
|
+
}
|
|
839
|
+
/**
|
|
840
|
+
* Returns a (paginated) list of errors for the work request with the given ID.
|
|
841
|
+
*
|
|
842
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
843
|
+
* @param ListWorkRequestErrorsRequest
|
|
844
|
+
* @return ListWorkRequestErrorsResponse
|
|
845
|
+
* @throws OciError when an error occurs
|
|
846
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dblm/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
847
|
+
*/
|
|
848
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
849
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
850
|
+
if (this.logger)
|
|
851
|
+
this.logger.debug("Calling operation DbLifeCycleManagementClient#listWorkRequestErrors.");
|
|
852
|
+
const operationName = "listWorkRequestErrors";
|
|
853
|
+
const apiReferenceLink = "";
|
|
854
|
+
const pathParams = {
|
|
855
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
856
|
+
};
|
|
857
|
+
const queryParams = {
|
|
858
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
859
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
860
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
861
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
862
|
+
};
|
|
863
|
+
let headerParams = {
|
|
864
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
865
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
866
|
+
};
|
|
867
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
868
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
869
|
+
if (this.logger)
|
|
870
|
+
retrier.logger = this.logger;
|
|
871
|
+
const request = yield oci_common_1.composeRequest({
|
|
872
|
+
baseEndpoint: this._endpoint,
|
|
873
|
+
defaultHeaders: this._defaultHeaders,
|
|
874
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
875
|
+
method: "GET",
|
|
876
|
+
pathParams: pathParams,
|
|
877
|
+
headerParams: headerParams,
|
|
878
|
+
queryParams: queryParams
|
|
879
|
+
});
|
|
880
|
+
try {
|
|
881
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
882
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
883
|
+
responseObject: {},
|
|
884
|
+
body: yield response.json(),
|
|
885
|
+
bodyKey: "workRequestErrorCollection",
|
|
886
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
887
|
+
type: "model.WorkRequestErrorCollection",
|
|
888
|
+
responseHeaders: [
|
|
889
|
+
{
|
|
890
|
+
value: response.headers.get("opc-next-page"),
|
|
891
|
+
key: "opcNextPage",
|
|
892
|
+
dataType: "string"
|
|
893
|
+
},
|
|
894
|
+
{
|
|
895
|
+
value: response.headers.get("opc-request-id"),
|
|
896
|
+
key: "opcRequestId",
|
|
897
|
+
dataType: "string"
|
|
898
|
+
}
|
|
899
|
+
]
|
|
900
|
+
});
|
|
901
|
+
return sdkResponse;
|
|
902
|
+
}
|
|
903
|
+
catch (err) {
|
|
904
|
+
throw err;
|
|
905
|
+
}
|
|
906
|
+
});
|
|
907
|
+
}
|
|
908
|
+
/**
|
|
909
|
+
* Returns a (paginated) list of logs for the work request with the given ID.
|
|
910
|
+
*
|
|
911
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
912
|
+
* @param ListWorkRequestLogsRequest
|
|
913
|
+
* @return ListWorkRequestLogsResponse
|
|
914
|
+
* @throws OciError when an error occurs
|
|
915
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dblm/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
916
|
+
*/
|
|
917
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
918
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
919
|
+
if (this.logger)
|
|
920
|
+
this.logger.debug("Calling operation DbLifeCycleManagementClient#listWorkRequestLogs.");
|
|
921
|
+
const operationName = "listWorkRequestLogs";
|
|
922
|
+
const apiReferenceLink = "";
|
|
923
|
+
const pathParams = {
|
|
924
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
925
|
+
};
|
|
926
|
+
const queryParams = {
|
|
927
|
+
"page": listWorkRequestLogsRequest.page,
|
|
928
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
929
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
930
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
931
|
+
};
|
|
932
|
+
let headerParams = {
|
|
933
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
934
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
935
|
+
};
|
|
936
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
937
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
938
|
+
if (this.logger)
|
|
939
|
+
retrier.logger = this.logger;
|
|
940
|
+
const request = yield oci_common_1.composeRequest({
|
|
941
|
+
baseEndpoint: this._endpoint,
|
|
942
|
+
defaultHeaders: this._defaultHeaders,
|
|
943
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
944
|
+
method: "GET",
|
|
945
|
+
pathParams: pathParams,
|
|
946
|
+
headerParams: headerParams,
|
|
947
|
+
queryParams: queryParams
|
|
948
|
+
});
|
|
949
|
+
try {
|
|
950
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
951
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
952
|
+
responseObject: {},
|
|
953
|
+
body: yield response.json(),
|
|
954
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
955
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
956
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
957
|
+
responseHeaders: [
|
|
958
|
+
{
|
|
959
|
+
value: response.headers.get("opc-next-page"),
|
|
960
|
+
key: "opcNextPage",
|
|
961
|
+
dataType: "string"
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
value: response.headers.get("opc-request-id"),
|
|
965
|
+
key: "opcRequestId",
|
|
966
|
+
dataType: "string"
|
|
967
|
+
}
|
|
968
|
+
]
|
|
969
|
+
});
|
|
970
|
+
return sdkResponse;
|
|
971
|
+
}
|
|
972
|
+
catch (err) {
|
|
973
|
+
throw err;
|
|
974
|
+
}
|
|
975
|
+
});
|
|
976
|
+
}
|
|
977
|
+
/**
|
|
978
|
+
* Lists the work requests in a compartment.
|
|
979
|
+
*
|
|
980
|
+
* This operation uses {@link common.OciSdkDefaultRetryConfiguration} by default if no retry configuration is defined by the user.
|
|
981
|
+
* @param ListWorkRequestsRequest
|
|
982
|
+
* @return ListWorkRequestsResponse
|
|
983
|
+
* @throws OciError when an error occurs
|
|
984
|
+
* @example Click {@link https://docs.oracle.com/en-us/iaas/tools/typescript-sdk-examples/latest/dblm/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
985
|
+
*/
|
|
986
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
987
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
988
|
+
if (this.logger)
|
|
989
|
+
this.logger.debug("Calling operation DbLifeCycleManagementClient#listWorkRequests.");
|
|
990
|
+
const operationName = "listWorkRequests";
|
|
991
|
+
const apiReferenceLink = "";
|
|
992
|
+
const pathParams = {};
|
|
993
|
+
const queryParams = {
|
|
994
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
995
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
996
|
+
"status": listWorkRequestsRequest.status,
|
|
997
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
998
|
+
"page": listWorkRequestsRequest.page,
|
|
999
|
+
"limit": listWorkRequestsRequest.limit,
|
|
1000
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
1001
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
1002
|
+
};
|
|
1003
|
+
let headerParams = {
|
|
1004
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1005
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1006
|
+
};
|
|
1007
|
+
const specRetryConfiguration = common.OciSdkDefaultRetryConfiguration;
|
|
1008
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1009
|
+
if (this.logger)
|
|
1010
|
+
retrier.logger = this.logger;
|
|
1011
|
+
const request = yield oci_common_1.composeRequest({
|
|
1012
|
+
baseEndpoint: this._endpoint,
|
|
1013
|
+
defaultHeaders: this._defaultHeaders,
|
|
1014
|
+
path: "/workRequests",
|
|
1015
|
+
method: "GET",
|
|
1016
|
+
pathParams: pathParams,
|
|
1017
|
+
headerParams: headerParams,
|
|
1018
|
+
queryParams: queryParams
|
|
1019
|
+
});
|
|
1020
|
+
try {
|
|
1021
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1022
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1023
|
+
responseObject: {},
|
|
1024
|
+
body: yield response.json(),
|
|
1025
|
+
bodyKey: "workRequestSummaryCollection",
|
|
1026
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
1027
|
+
type: "model.WorkRequestSummaryCollection",
|
|
1028
|
+
responseHeaders: [
|
|
1029
|
+
{
|
|
1030
|
+
value: response.headers.get("opc-request-id"),
|
|
1031
|
+
key: "opcRequestId",
|
|
1032
|
+
dataType: "string"
|
|
1033
|
+
},
|
|
1034
|
+
{
|
|
1035
|
+
value: response.headers.get("opc-next-page"),
|
|
1036
|
+
key: "opcNextPage",
|
|
1037
|
+
dataType: "string"
|
|
1038
|
+
}
|
|
1039
|
+
]
|
|
1040
|
+
});
|
|
1041
|
+
return sdkResponse;
|
|
1042
|
+
}
|
|
1043
|
+
catch (err) {
|
|
1044
|
+
throw err;
|
|
1045
|
+
}
|
|
1046
|
+
});
|
|
1047
|
+
}
|
|
1048
|
+
}
|
|
1049
|
+
exports.DbLifeCycleManagementClient = DbLifeCycleManagementClient;
|
|
1050
|
+
DbLifeCycleManagementClient.serviceEndpointTemplate = "https://dbmgmt.{region}.oci.{secondLevelDomain}";
|
|
1051
|
+
DbLifeCycleManagementClient.endpointServiceName = "";
|
|
1052
|
+
//# sourceMappingURL=client.js.map
|