oci-lockbox 2.35.1
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 +25 -0
- package/index.js +48 -0
- package/index.js.map +1 -0
- package/lib/client.d.ts +283 -0
- package/lib/client.js +1586 -0
- package/lib/client.js.map +1 -0
- package/lib/lockbox-waiter.d.ts +55 -0
- package/lib/lockbox-waiter.js +103 -0
- package/lib/lockbox-waiter.js.map +1 -0
- package/lib/model/access-context-attribute-collection.d.ts +29 -0
- package/lib/model/access-context-attribute-collection.js +64 -0
- package/lib/model/access-context-attribute-collection.js.map +1 -0
- package/lib/model/access-context-attribute.d.ts +36 -0
- package/lib/model/access-context-attribute.js +32 -0
- package/lib/model/access-context-attribute.js.map +1 -0
- package/lib/model/access-materials.d.ts +30 -0
- package/lib/model/access-materials.js +32 -0
- package/lib/model/access-materials.js.map +1 -0
- package/lib/model/access-request-action-type.d.ts +33 -0
- package/lib/model/access-request-action-type.js +44 -0
- package/lib/model/access-request-action-type.js.map +1 -0
- package/lib/model/access-request-collection.d.ts +29 -0
- package/lib/model/access-request-collection.js +64 -0
- package/lib/model/access-request-collection.js.map +1 -0
- package/lib/model/access-request-summary.d.ts +70 -0
- package/lib/model/access-request-summary.js +32 -0
- package/lib/model/access-request-summary.js.map +1 -0
- package/lib/model/access-request.d.ts +116 -0
- package/lib/model/access-request.js +95 -0
- package/lib/model/access-request.js.map +1 -0
- package/lib/model/action-type.d.ts +35 -0
- package/lib/model/action-type.js +46 -0
- package/lib/model/action-type.js.map +1 -0
- package/lib/model/activity-log.d.ts +47 -0
- package/lib/model/activity-log.js +32 -0
- package/lib/model/activity-log.js.map +1 -0
- package/lib/model/approval-template-collection.d.ts +29 -0
- package/lib/model/approval-template-collection.js +64 -0
- package/lib/model/approval-template-collection.js.map +1 -0
- package/lib/model/approval-template-summary.d.ts +82 -0
- package/lib/model/approval-template-summary.js +60 -0
- package/lib/model/approval-template-summary.js.map +1 -0
- package/lib/model/approval-template.d.ts +95 -0
- package/lib/model/approval-template.js +74 -0
- package/lib/model/approval-template.js.map +1 -0
- package/lib/model/approver-info.d.ts +33 -0
- package/lib/model/approver-info.js +32 -0
- package/lib/model/approver-info.js.map +1 -0
- package/lib/model/approver-levels.d.ts +28 -0
- package/lib/model/approver-levels.js +60 -0
- package/lib/model/approver-levels.js.map +1 -0
- package/lib/model/approver-type.d.ts +31 -0
- package/lib/model/approver-type.js +42 -0
- package/lib/model/approver-type.js.map +1 -0
- package/lib/model/change-approval-template-compartment-details.d.ts +28 -0
- package/lib/model/change-approval-template-compartment-details.js +32 -0
- package/lib/model/change-approval-template-compartment-details.js.map +1 -0
- package/lib/model/change-lockbox-compartment-details.d.ts +28 -0
- package/lib/model/change-lockbox-compartment-details.js +32 -0
- package/lib/model/change-lockbox-compartment-details.js.map +1 -0
- package/lib/model/create-access-request-details.d.ts +49 -0
- package/lib/model/create-access-request-details.js +32 -0
- package/lib/model/create-access-request-details.js.map +1 -0
- package/lib/model/create-approval-template-details.d.ts +56 -0
- package/lib/model/create-approval-template-details.js +60 -0
- package/lib/model/create-approval-template-details.js.map +1 -0
- package/lib/model/create-lockbox-details.d.ts +72 -0
- package/lib/model/create-lockbox-details.js +60 -0
- package/lib/model/create-lockbox-details.js.map +1 -0
- package/lib/model/handle-access-request-details.d.ts +33 -0
- package/lib/model/handle-access-request-details.js +32 -0
- package/lib/model/handle-access-request-details.js.map +1 -0
- package/lib/model/index.d.ts +97 -0
- package/lib/model/index.js +120 -0
- package/lib/model/index.js.map +1 -0
- package/lib/model/lockbox-auto-approval-state.d.ts +31 -0
- package/lib/model/lockbox-auto-approval-state.js +42 -0
- package/lib/model/lockbox-auto-approval-state.js.map +1 -0
- package/lib/model/lockbox-collection.d.ts +29 -0
- package/lib/model/lockbox-collection.js +64 -0
- package/lib/model/lockbox-collection.js.map +1 -0
- package/lib/model/lockbox-partner.d.ts +31 -0
- package/lib/model/lockbox-partner.js +42 -0
- package/lib/model/lockbox-partner.js.map +1 -0
- package/lib/model/lockbox-summary.d.ts +101 -0
- package/lib/model/lockbox-summary.js +32 -0
- package/lib/model/lockbox-summary.js.map +1 -0
- package/lib/model/lockbox.d.ts +115 -0
- package/lib/model/lockbox.js +74 -0
- package/lib/model/lockbox.js.map +1 -0
- package/lib/model/operation-status.d.ts +36 -0
- package/lib/model/operation-status.js +47 -0
- package/lib/model/operation-status.js.map +1 -0
- package/lib/model/operation-type.d.ts +40 -0
- package/lib/model/operation-type.js +51 -0
- package/lib/model/operation-type.js.map +1 -0
- package/lib/model/persona-level.d.ts +34 -0
- package/lib/model/persona-level.js +45 -0
- package/lib/model/persona-level.js.map +1 -0
- package/lib/model/sort-order.d.ts +26 -0
- package/lib/model/sort-order.js +37 -0
- package/lib/model/sort-order.js.map +1 -0
- package/lib/model/update-approval-template-details.d.ts +52 -0
- package/lib/model/update-approval-template-details.js +60 -0
- package/lib/model/update-approval-template-details.js.map +1 -0
- package/lib/model/update-lockbox-details.d.ts +54 -0
- package/lib/model/update-lockbox-details.js +32 -0
- package/lib/model/update-lockbox-details.js.map +1 -0
- package/lib/model/work-request-error-collection.d.ts +29 -0
- package/lib/model/work-request-error-collection.js +64 -0
- package/lib/model/work-request-error-collection.js.map +1 -0
- package/lib/model/work-request-error.d.ts +38 -0
- package/lib/model/work-request-error.js +32 -0
- package/lib/model/work-request-error.js.map +1 -0
- package/lib/model/work-request-log-entry-collection.d.ts +29 -0
- package/lib/model/work-request-log-entry-collection.js +64 -0
- package/lib/model/work-request-log-entry-collection.js.map +1 -0
- package/lib/model/work-request-log-entry.d.ts +32 -0
- package/lib/model/work-request-log-entry.js +32 -0
- package/lib/model/work-request-log-entry.js.map +1 -0
- package/lib/model/work-request-resource-metadata-key.d.ts +30 -0
- package/lib/model/work-request-resource-metadata-key.js +41 -0
- package/lib/model/work-request-resource-metadata-key.js.map +1 -0
- package/lib/model/work-request-resource.d.ts +51 -0
- package/lib/model/work-request-resource.js +32 -0
- package/lib/model/work-request-resource.js.map +1 -0
- package/lib/model/work-request-summary-collection.d.ts +29 -0
- package/lib/model/work-request-summary-collection.js +64 -0
- package/lib/model/work-request-summary-collection.js.map +1 -0
- package/lib/model/work-request-summary.d.ts +70 -0
- package/lib/model/work-request-summary.js +64 -0
- package/lib/model/work-request-summary.js.map +1 -0
- package/lib/model/work-request.d.ts +70 -0
- package/lib/model/work-request.js +64 -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-approval-template-compartment-request.d.ts +49 -0
- package/lib/request/change-approval-template-compartment-request.js +15 -0
- package/lib/request/change-approval-template-compartment-request.js.map +1 -0
- package/lib/request/change-lockbox-compartment-request.d.ts +49 -0
- package/lib/request/change-lockbox-compartment-request.js +15 -0
- package/lib/request/change-lockbox-compartment-request.js.map +1 -0
- package/lib/request/create-access-request-request.d.ts +36 -0
- package/lib/request/create-access-request-request.js +15 -0
- package/lib/request/create-access-request-request.js.map +1 -0
- package/lib/request/create-approval-template-request.d.ts +36 -0
- package/lib/request/create-approval-template-request.js +15 -0
- package/lib/request/create-approval-template-request.js.map +1 -0
- package/lib/request/create-lockbox-request.d.ts +36 -0
- package/lib/request/create-lockbox-request.js +15 -0
- package/lib/request/create-lockbox-request.js.map +1 -0
- package/lib/request/delete-approval-template-request.d.ts +35 -0
- package/lib/request/delete-approval-template-request.js +15 -0
- package/lib/request/delete-approval-template-request.js.map +1 -0
- package/lib/request/delete-lockbox-request.d.ts +44 -0
- package/lib/request/delete-lockbox-request.js +15 -0
- package/lib/request/delete-lockbox-request.js.map +1 -0
- package/lib/request/get-access-materials-request.d.ts +26 -0
- package/lib/request/get-access-materials-request.js +15 -0
- package/lib/request/get-access-materials-request.js.map +1 -0
- package/lib/request/get-access-request-request.d.ts +26 -0
- package/lib/request/get-access-request-request.js +15 -0
- package/lib/request/get-access-request-request.js.map +1 -0
- package/lib/request/get-approval-template-request.d.ts +26 -0
- package/lib/request/get-approval-template-request.js +15 -0
- package/lib/request/get-approval-template-request.js.map +1 -0
- package/lib/request/get-lockbox-request.d.ts +26 -0
- package/lib/request/get-lockbox-request.js +15 -0
- package/lib/request/get-lockbox-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/handle-access-request-request.d.ts +49 -0
- package/lib/request/handle-access-request-request.js +15 -0
- package/lib/request/handle-access-request-request.js.map +1 -0
- package/lib/request/index.d.ts +59 -0
- package/lib/request/index.js +50 -0
- package/lib/request/index.js.map +1 -0
- package/lib/request/list-access-requests-request.d.ts +71 -0
- package/lib/request/list-access-requests-request.js +25 -0
- package/lib/request/list-access-requests-request.js.map +1 -0
- package/lib/request/list-approval-templates-request.d.ts +63 -0
- package/lib/request/list-approval-templates-request.js +25 -0
- package/lib/request/list-approval-templates-request.js.map +1 -0
- package/lib/request/list-lockboxes-request.d.ts +71 -0
- package/lib/request/list-lockboxes-request.js +25 -0
- package/lib/request/list-lockboxes-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-approval-template-request.d.ts +40 -0
- package/lib/request/update-approval-template-request.js +15 -0
- package/lib/request/update-approval-template-request.js.map +1 -0
- package/lib/request/update-lockbox-request.d.ts +40 -0
- package/lib/request/update-lockbox-request.js +15 -0
- package/lib/request/update-lockbox-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-approval-template-compartment-response.d.ts +20 -0
- package/lib/response/change-approval-template-compartment-response.js +15 -0
- package/lib/response/change-approval-template-compartment-response.js.map +1 -0
- package/lib/response/change-lockbox-compartment-response.d.ts +20 -0
- package/lib/response/change-lockbox-compartment-response.js +15 -0
- package/lib/response/change-lockbox-compartment-response.js.map +1 -0
- package/lib/response/create-access-request-response.d.ts +40 -0
- package/lib/response/create-access-request-response.js +15 -0
- package/lib/response/create-access-request-response.js.map +1 -0
- package/lib/response/create-approval-template-response.d.ts +35 -0
- package/lib/response/create-approval-template-response.js +15 -0
- package/lib/response/create-approval-template-response.js.map +1 -0
- package/lib/response/create-lockbox-response.d.ts +35 -0
- package/lib/response/create-lockbox-response.js +15 -0
- package/lib/response/create-lockbox-response.js.map +1 -0
- package/lib/response/delete-approval-template-response.d.ts +20 -0
- package/lib/response/delete-approval-template-response.js +15 -0
- package/lib/response/delete-approval-template-response.js.map +1 -0
- package/lib/response/delete-lockbox-response.d.ts +20 -0
- package/lib/response/delete-lockbox-response.js +15 -0
- package/lib/response/delete-lockbox-response.js.map +1 -0
- package/lib/response/get-access-materials-response.d.ts +25 -0
- package/lib/response/get-access-materials-response.js +15 -0
- package/lib/response/get-access-materials-response.js.map +1 -0
- package/lib/response/get-access-request-response.d.ts +30 -0
- package/lib/response/get-access-request-response.js +15 -0
- package/lib/response/get-access-request-response.js.map +1 -0
- package/lib/response/get-approval-template-response.d.ts +30 -0
- package/lib/response/get-approval-template-response.js +15 -0
- package/lib/response/get-approval-template-response.js.map +1 -0
- package/lib/response/get-lockbox-response.d.ts +30 -0
- package/lib/response/get-lockbox-response.js +15 -0
- package/lib/response/get-lockbox-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/handle-access-request-response.d.ts +25 -0
- package/lib/response/handle-access-request-response.js +15 -0
- package/lib/response/handle-access-request-response.js.map +1 -0
- package/lib/response/index.d.ts +59 -0
- package/lib/response/index.js +18 -0
- package/lib/response/index.js.map +1 -0
- package/lib/response/list-access-requests-response.d.ts +32 -0
- package/lib/response/list-access-requests-response.js +15 -0
- package/lib/response/list-access-requests-response.js.map +1 -0
- package/lib/response/list-approval-templates-response.d.ts +32 -0
- package/lib/response/list-approval-templates-response.js +15 -0
- package/lib/response/list-approval-templates-response.js.map +1 -0
- package/lib/response/list-lockboxes-response.d.ts +32 -0
- package/lib/response/list-lockboxes-response.js +15 -0
- package/lib/response/list-lockboxes-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-approval-template-response.d.ts +30 -0
- package/lib/response/update-approval-template-response.js +15 -0
- package/lib/response/update-approval-template-response.js.map +1 -0
- package/lib/response/update-lockbox-response.d.ts +30 -0
- package/lib/response/update-lockbox-response.js +15 -0
- package/lib/response/update-lockbox-response.js.map +1 -0
- package/package.json +29 -0
package/lib/client.js
ADDED
|
@@ -0,0 +1,1586 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Managed Access API
|
|
4
|
+
* Use the Managed Access API to approve access requests, create and manage templates, and manage resource approval settings. For more information, see [Managed Access Overview](https://docs.oracle.com/en-us/iaas/managed-access/overview.htm).
|
|
5
|
+
|
|
6
|
+
Use the table of contents and search tool to explore the Managed Access API.
|
|
7
|
+
|
|
8
|
+
* OpenAPI spec version: 20220126
|
|
9
|
+
*
|
|
10
|
+
*
|
|
11
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*
|
|
14
|
+
* Copyright (c) 2020, 2022, Oracle and/or its affiliates. All rights reserved.
|
|
15
|
+
* 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.
|
|
16
|
+
*/
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
20
|
+
}) : (function(o, m, k, k2) {
|
|
21
|
+
if (k2 === undefined) k2 = k;
|
|
22
|
+
o[k2] = m[k];
|
|
23
|
+
}));
|
|
24
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
25
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
26
|
+
}) : function(o, v) {
|
|
27
|
+
o["default"] = v;
|
|
28
|
+
});
|
|
29
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
30
|
+
if (mod && mod.__esModule) return mod;
|
|
31
|
+
var result = {};
|
|
32
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
33
|
+
__setModuleDefault(result, mod);
|
|
34
|
+
return result;
|
|
35
|
+
};
|
|
36
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
37
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
38
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
39
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
40
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
41
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
42
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
43
|
+
});
|
|
44
|
+
};
|
|
45
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
46
|
+
exports.LockboxClient = exports.LockboxApiKeys = void 0;
|
|
47
|
+
const common = require("oci-common");
|
|
48
|
+
const model = __importStar(require("./model"));
|
|
49
|
+
const lockbox_waiter_1 = require("./lockbox-waiter");
|
|
50
|
+
const oci_common_1 = require("oci-common");
|
|
51
|
+
// ===============================================
|
|
52
|
+
// This file is autogenerated - Please do not edit
|
|
53
|
+
// ===============================================
|
|
54
|
+
var LockboxApiKeys;
|
|
55
|
+
(function (LockboxApiKeys) {
|
|
56
|
+
})(LockboxApiKeys = exports.LockboxApiKeys || (exports.LockboxApiKeys = {}));
|
|
57
|
+
/**
|
|
58
|
+
* This service client uses {@link common.CircuitBreaker.DefaultConfiguration} for all the operations by default if no circuit breaker configuration is defined by the user.
|
|
59
|
+
*/
|
|
60
|
+
class LockboxClient {
|
|
61
|
+
constructor(params, clientConfiguration) {
|
|
62
|
+
this["_endpoint"] = "";
|
|
63
|
+
this["_defaultHeaders"] = {};
|
|
64
|
+
this._circuitBreaker = null;
|
|
65
|
+
this._httpOptions = undefined;
|
|
66
|
+
this.targetService = "Lockbox";
|
|
67
|
+
const requestSigner = params.authenticationDetailsProvider
|
|
68
|
+
? new common.DefaultRequestSigner(params.authenticationDetailsProvider)
|
|
69
|
+
: null;
|
|
70
|
+
if (clientConfiguration) {
|
|
71
|
+
this._clientConfiguration = clientConfiguration;
|
|
72
|
+
this._circuitBreaker = clientConfiguration.circuitBreaker
|
|
73
|
+
? clientConfiguration.circuitBreaker.circuit
|
|
74
|
+
: null;
|
|
75
|
+
this._httpOptions = clientConfiguration.httpOptions
|
|
76
|
+
? clientConfiguration.httpOptions
|
|
77
|
+
: undefined;
|
|
78
|
+
}
|
|
79
|
+
// if circuit breaker is not created, check if circuit breaker system is enabled to use default circuit breaker
|
|
80
|
+
const specCircuitBreakerEnabled = true;
|
|
81
|
+
if (!this._circuitBreaker &&
|
|
82
|
+
common.utils.isCircuitBreakerSystemEnabled(clientConfiguration) &&
|
|
83
|
+
(specCircuitBreakerEnabled || common.CircuitBreaker.DefaultCircuitBreakerOverriden)) {
|
|
84
|
+
this._circuitBreaker = new common.CircuitBreaker().circuit;
|
|
85
|
+
}
|
|
86
|
+
this._httpClient =
|
|
87
|
+
params.httpClient ||
|
|
88
|
+
new common.FetchHttpClient(requestSigner, this._circuitBreaker, this._httpOptions);
|
|
89
|
+
if (params.authenticationDetailsProvider &&
|
|
90
|
+
common.isRegionProvider(params.authenticationDetailsProvider)) {
|
|
91
|
+
const provider = params.authenticationDetailsProvider;
|
|
92
|
+
if (provider.getRegion()) {
|
|
93
|
+
this.region = provider.getRegion();
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
/**
|
|
98
|
+
* Get the endpoint that is being used to call (ex, https://www.example.com).
|
|
99
|
+
*/
|
|
100
|
+
get endpoint() {
|
|
101
|
+
return this._endpoint;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Sets the endpoint to call (ex, https://www.example.com).
|
|
105
|
+
* @param endpoint The endpoint of the service.
|
|
106
|
+
*/
|
|
107
|
+
set endpoint(endpoint) {
|
|
108
|
+
this._endpoint = endpoint;
|
|
109
|
+
this._endpoint = this._endpoint + "/20220126";
|
|
110
|
+
if (this.logger)
|
|
111
|
+
this.logger.info(`LockboxClient endpoint set to ${this._endpoint}`);
|
|
112
|
+
}
|
|
113
|
+
get logger() {
|
|
114
|
+
return common.LOG.logger;
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Sets the region to call (ex, Region.US_PHOENIX_1).
|
|
118
|
+
* Note, this will call {@link #endpoint(String) endpoint} after resolving the endpoint.
|
|
119
|
+
* @param region The region of the service.
|
|
120
|
+
*/
|
|
121
|
+
set region(region) {
|
|
122
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegion(LockboxClient.serviceEndpointTemplate, region, LockboxClient.endpointServiceName);
|
|
123
|
+
}
|
|
124
|
+
/**
|
|
125
|
+
* Sets the regionId to call (ex, 'us-phoenix-1').
|
|
126
|
+
*
|
|
127
|
+
* Note, this will first try to map the region ID to a known Region and call {@link #region(Region) region}.
|
|
128
|
+
* If no known Region could be determined, it will create an endpoint assuming its in default Realm OC1
|
|
129
|
+
* and then call {@link #endpoint(String) endpoint}.
|
|
130
|
+
* @param regionId The public region ID.
|
|
131
|
+
*/
|
|
132
|
+
set regionId(regionId) {
|
|
133
|
+
this.endpoint = common.EndpointBuilder.createEndpointFromRegionId(LockboxClient.serviceEndpointTemplate, regionId, LockboxClient.endpointServiceName);
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Creates a new LockboxWaiter for resources for this service.
|
|
137
|
+
*
|
|
138
|
+
* @param config The waiter configuration for termination and delay strategy
|
|
139
|
+
* @return The service waiters.
|
|
140
|
+
*/
|
|
141
|
+
createWaiters(config) {
|
|
142
|
+
this._waiters = new lockbox_waiter_1.LockboxWaiter(this, config);
|
|
143
|
+
return this._waiters;
|
|
144
|
+
}
|
|
145
|
+
/**
|
|
146
|
+
* Gets the waiters available for resources for this service.
|
|
147
|
+
*
|
|
148
|
+
* @return The service waiters.
|
|
149
|
+
*/
|
|
150
|
+
getWaiters() {
|
|
151
|
+
if (this._waiters) {
|
|
152
|
+
return this._waiters;
|
|
153
|
+
}
|
|
154
|
+
throw Error("Waiters do not exist. Please create waiters.");
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Cancels the work request with the given ID.
|
|
158
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
159
|
+
* @param CancelWorkRequestRequest
|
|
160
|
+
* @return CancelWorkRequestResponse
|
|
161
|
+
* @throws OciError when an error occurs
|
|
162
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/CancelWorkRequest.ts.html |here} to see how to use CancelWorkRequest API.
|
|
163
|
+
*/
|
|
164
|
+
cancelWorkRequest(cancelWorkRequestRequest) {
|
|
165
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
166
|
+
if (this.logger)
|
|
167
|
+
this.logger.debug("Calling operation LockboxClient#cancelWorkRequest.");
|
|
168
|
+
const operationName = "cancelWorkRequest";
|
|
169
|
+
const apiReferenceLink = "";
|
|
170
|
+
const pathParams = {
|
|
171
|
+
"{workRequestId}": cancelWorkRequestRequest.workRequestId
|
|
172
|
+
};
|
|
173
|
+
const queryParams = {};
|
|
174
|
+
let headerParams = {
|
|
175
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
176
|
+
"if-match": cancelWorkRequestRequest.ifMatch,
|
|
177
|
+
"opc-request-id": cancelWorkRequestRequest.opcRequestId
|
|
178
|
+
};
|
|
179
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
180
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, cancelWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
181
|
+
if (this.logger)
|
|
182
|
+
retrier.logger = this.logger;
|
|
183
|
+
const request = yield oci_common_1.composeRequest({
|
|
184
|
+
baseEndpoint: this._endpoint,
|
|
185
|
+
defaultHeaders: this._defaultHeaders,
|
|
186
|
+
path: "/workRequests/{workRequestId}",
|
|
187
|
+
method: "DELETE",
|
|
188
|
+
pathParams: pathParams,
|
|
189
|
+
headerParams: headerParams,
|
|
190
|
+
queryParams: queryParams
|
|
191
|
+
});
|
|
192
|
+
try {
|
|
193
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
194
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
195
|
+
responseObject: {},
|
|
196
|
+
responseHeaders: [
|
|
197
|
+
{
|
|
198
|
+
value: response.headers.get("opc-request-id"),
|
|
199
|
+
key: "opcRequestId",
|
|
200
|
+
dataType: "string"
|
|
201
|
+
}
|
|
202
|
+
]
|
|
203
|
+
});
|
|
204
|
+
return sdkResponse;
|
|
205
|
+
}
|
|
206
|
+
catch (err) {
|
|
207
|
+
throw err;
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
/**
|
|
212
|
+
* Moves an ApprovalTemplate resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
|
|
213
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
214
|
+
* @param ChangeApprovalTemplateCompartmentRequest
|
|
215
|
+
* @return ChangeApprovalTemplateCompartmentResponse
|
|
216
|
+
* @throws OciError when an error occurs
|
|
217
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/ChangeApprovalTemplateCompartment.ts.html |here} to see how to use ChangeApprovalTemplateCompartment API.
|
|
218
|
+
*/
|
|
219
|
+
changeApprovalTemplateCompartment(changeApprovalTemplateCompartmentRequest) {
|
|
220
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
221
|
+
if (this.logger)
|
|
222
|
+
this.logger.debug("Calling operation LockboxClient#changeApprovalTemplateCompartment.");
|
|
223
|
+
const operationName = "changeApprovalTemplateCompartment";
|
|
224
|
+
const apiReferenceLink = "";
|
|
225
|
+
const pathParams = {
|
|
226
|
+
"{approvalTemplateId}": changeApprovalTemplateCompartmentRequest.approvalTemplateId
|
|
227
|
+
};
|
|
228
|
+
const queryParams = {};
|
|
229
|
+
let headerParams = {
|
|
230
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
231
|
+
"if-match": changeApprovalTemplateCompartmentRequest.ifMatch,
|
|
232
|
+
"opc-request-id": changeApprovalTemplateCompartmentRequest.opcRequestId,
|
|
233
|
+
"opc-retry-token": changeApprovalTemplateCompartmentRequest.opcRetryToken
|
|
234
|
+
};
|
|
235
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
236
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeApprovalTemplateCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
237
|
+
if (this.logger)
|
|
238
|
+
retrier.logger = this.logger;
|
|
239
|
+
const request = yield oci_common_1.composeRequest({
|
|
240
|
+
baseEndpoint: this._endpoint,
|
|
241
|
+
defaultHeaders: this._defaultHeaders,
|
|
242
|
+
path: "/approvalTemplates/{approvalTemplateId}/actions/changeCompartment",
|
|
243
|
+
method: "POST",
|
|
244
|
+
bodyContent: common.ObjectSerializer.serialize(changeApprovalTemplateCompartmentRequest.changeApprovalTemplateCompartmentDetails, "ChangeApprovalTemplateCompartmentDetails", model.ChangeApprovalTemplateCompartmentDetails.getJsonObj),
|
|
245
|
+
pathParams: pathParams,
|
|
246
|
+
headerParams: headerParams,
|
|
247
|
+
queryParams: queryParams
|
|
248
|
+
});
|
|
249
|
+
try {
|
|
250
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
251
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
252
|
+
responseObject: {},
|
|
253
|
+
responseHeaders: [
|
|
254
|
+
{
|
|
255
|
+
value: response.headers.get("opc-request-id"),
|
|
256
|
+
key: "opcRequestId",
|
|
257
|
+
dataType: "string"
|
|
258
|
+
}
|
|
259
|
+
]
|
|
260
|
+
});
|
|
261
|
+
return sdkResponse;
|
|
262
|
+
}
|
|
263
|
+
catch (err) {
|
|
264
|
+
throw err;
|
|
265
|
+
}
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Moves a Lockbox resource from one compartment identifier to another. When provided, If-Match is checked against ETag values of the resource.
|
|
270
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
271
|
+
* @param ChangeLockboxCompartmentRequest
|
|
272
|
+
* @return ChangeLockboxCompartmentResponse
|
|
273
|
+
* @throws OciError when an error occurs
|
|
274
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/ChangeLockboxCompartment.ts.html |here} to see how to use ChangeLockboxCompartment API.
|
|
275
|
+
*/
|
|
276
|
+
changeLockboxCompartment(changeLockboxCompartmentRequest) {
|
|
277
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
278
|
+
if (this.logger)
|
|
279
|
+
this.logger.debug("Calling operation LockboxClient#changeLockboxCompartment.");
|
|
280
|
+
const operationName = "changeLockboxCompartment";
|
|
281
|
+
const apiReferenceLink = "";
|
|
282
|
+
const pathParams = {
|
|
283
|
+
"{lockboxId}": changeLockboxCompartmentRequest.lockboxId
|
|
284
|
+
};
|
|
285
|
+
const queryParams = {};
|
|
286
|
+
let headerParams = {
|
|
287
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
288
|
+
"if-match": changeLockboxCompartmentRequest.ifMatch,
|
|
289
|
+
"opc-request-id": changeLockboxCompartmentRequest.opcRequestId,
|
|
290
|
+
"opc-retry-token": changeLockboxCompartmentRequest.opcRetryToken
|
|
291
|
+
};
|
|
292
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
293
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, changeLockboxCompartmentRequest.retryConfiguration, specRetryConfiguration);
|
|
294
|
+
if (this.logger)
|
|
295
|
+
retrier.logger = this.logger;
|
|
296
|
+
const request = yield oci_common_1.composeRequest({
|
|
297
|
+
baseEndpoint: this._endpoint,
|
|
298
|
+
defaultHeaders: this._defaultHeaders,
|
|
299
|
+
path: "/lockboxes/{lockboxId}/actions/changeCompartment",
|
|
300
|
+
method: "POST",
|
|
301
|
+
bodyContent: common.ObjectSerializer.serialize(changeLockboxCompartmentRequest.changeLockboxCompartmentDetails, "ChangeLockboxCompartmentDetails", model.ChangeLockboxCompartmentDetails.getJsonObj),
|
|
302
|
+
pathParams: pathParams,
|
|
303
|
+
headerParams: headerParams,
|
|
304
|
+
queryParams: queryParams
|
|
305
|
+
});
|
|
306
|
+
try {
|
|
307
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
308
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
309
|
+
responseObject: {},
|
|
310
|
+
responseHeaders: [
|
|
311
|
+
{
|
|
312
|
+
value: response.headers.get("opc-request-id"),
|
|
313
|
+
key: "opcRequestId",
|
|
314
|
+
dataType: "string"
|
|
315
|
+
}
|
|
316
|
+
]
|
|
317
|
+
});
|
|
318
|
+
return sdkResponse;
|
|
319
|
+
}
|
|
320
|
+
catch (err) {
|
|
321
|
+
throw err;
|
|
322
|
+
}
|
|
323
|
+
});
|
|
324
|
+
}
|
|
325
|
+
/**
|
|
326
|
+
* Creates a new access request.
|
|
327
|
+
*
|
|
328
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
329
|
+
* @param CreateAccessRequestRequest
|
|
330
|
+
* @return CreateAccessRequestResponse
|
|
331
|
+
* @throws OciError when an error occurs
|
|
332
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/CreateAccessRequest.ts.html |here} to see how to use CreateAccessRequest API.
|
|
333
|
+
*/
|
|
334
|
+
createAccessRequest(createAccessRequestRequest) {
|
|
335
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
336
|
+
if (this.logger)
|
|
337
|
+
this.logger.debug("Calling operation LockboxClient#createAccessRequest.");
|
|
338
|
+
const operationName = "createAccessRequest";
|
|
339
|
+
const apiReferenceLink = "";
|
|
340
|
+
const pathParams = {};
|
|
341
|
+
const queryParams = {};
|
|
342
|
+
let headerParams = {
|
|
343
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
344
|
+
"opc-retry-token": createAccessRequestRequest.opcRetryToken,
|
|
345
|
+
"opc-request-id": createAccessRequestRequest.opcRequestId
|
|
346
|
+
};
|
|
347
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
348
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createAccessRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
349
|
+
if (this.logger)
|
|
350
|
+
retrier.logger = this.logger;
|
|
351
|
+
const request = yield oci_common_1.composeRequest({
|
|
352
|
+
baseEndpoint: this._endpoint,
|
|
353
|
+
defaultHeaders: this._defaultHeaders,
|
|
354
|
+
path: "/accessRequests",
|
|
355
|
+
method: "POST",
|
|
356
|
+
bodyContent: common.ObjectSerializer.serialize(createAccessRequestRequest.createAccessRequestDetails, "CreateAccessRequestDetails", model.CreateAccessRequestDetails.getJsonObj),
|
|
357
|
+
pathParams: pathParams,
|
|
358
|
+
headerParams: headerParams,
|
|
359
|
+
queryParams: queryParams
|
|
360
|
+
});
|
|
361
|
+
try {
|
|
362
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
363
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
364
|
+
responseObject: {},
|
|
365
|
+
body: yield response.json(),
|
|
366
|
+
bodyKey: "accessRequest",
|
|
367
|
+
bodyModel: model.AccessRequest,
|
|
368
|
+
type: "model.AccessRequest",
|
|
369
|
+
responseHeaders: [
|
|
370
|
+
{
|
|
371
|
+
value: response.headers.get("opc-work-request-id"),
|
|
372
|
+
key: "opcWorkRequestId",
|
|
373
|
+
dataType: "string"
|
|
374
|
+
},
|
|
375
|
+
{
|
|
376
|
+
value: response.headers.get("opc-request-id"),
|
|
377
|
+
key: "opcRequestId",
|
|
378
|
+
dataType: "string"
|
|
379
|
+
},
|
|
380
|
+
{
|
|
381
|
+
value: response.headers.get("location"),
|
|
382
|
+
key: "location",
|
|
383
|
+
dataType: "string"
|
|
384
|
+
},
|
|
385
|
+
{
|
|
386
|
+
value: response.headers.get("etag"),
|
|
387
|
+
key: "etag",
|
|
388
|
+
dataType: "string"
|
|
389
|
+
}
|
|
390
|
+
]
|
|
391
|
+
});
|
|
392
|
+
return sdkResponse;
|
|
393
|
+
}
|
|
394
|
+
catch (err) {
|
|
395
|
+
throw err;
|
|
396
|
+
}
|
|
397
|
+
});
|
|
398
|
+
}
|
|
399
|
+
/**
|
|
400
|
+
* Creates a new approval template.
|
|
401
|
+
*
|
|
402
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
403
|
+
* @param CreateApprovalTemplateRequest
|
|
404
|
+
* @return CreateApprovalTemplateResponse
|
|
405
|
+
* @throws OciError when an error occurs
|
|
406
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/CreateApprovalTemplate.ts.html |here} to see how to use CreateApprovalTemplate API.
|
|
407
|
+
*/
|
|
408
|
+
createApprovalTemplate(createApprovalTemplateRequest) {
|
|
409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
410
|
+
if (this.logger)
|
|
411
|
+
this.logger.debug("Calling operation LockboxClient#createApprovalTemplate.");
|
|
412
|
+
const operationName = "createApprovalTemplate";
|
|
413
|
+
const apiReferenceLink = "";
|
|
414
|
+
const pathParams = {};
|
|
415
|
+
const queryParams = {};
|
|
416
|
+
let headerParams = {
|
|
417
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
418
|
+
"opc-retry-token": createApprovalTemplateRequest.opcRetryToken,
|
|
419
|
+
"opc-request-id": createApprovalTemplateRequest.opcRequestId
|
|
420
|
+
};
|
|
421
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
422
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createApprovalTemplateRequest.retryConfiguration, specRetryConfiguration);
|
|
423
|
+
if (this.logger)
|
|
424
|
+
retrier.logger = this.logger;
|
|
425
|
+
const request = yield oci_common_1.composeRequest({
|
|
426
|
+
baseEndpoint: this._endpoint,
|
|
427
|
+
defaultHeaders: this._defaultHeaders,
|
|
428
|
+
path: "/approvalTemplates",
|
|
429
|
+
method: "POST",
|
|
430
|
+
bodyContent: common.ObjectSerializer.serialize(createApprovalTemplateRequest.createApprovalTemplateDetails, "CreateApprovalTemplateDetails", model.CreateApprovalTemplateDetails.getJsonObj),
|
|
431
|
+
pathParams: pathParams,
|
|
432
|
+
headerParams: headerParams,
|
|
433
|
+
queryParams: queryParams
|
|
434
|
+
});
|
|
435
|
+
try {
|
|
436
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
437
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
438
|
+
responseObject: {},
|
|
439
|
+
body: yield response.json(),
|
|
440
|
+
bodyKey: "approvalTemplate",
|
|
441
|
+
bodyModel: model.ApprovalTemplate,
|
|
442
|
+
type: "model.ApprovalTemplate",
|
|
443
|
+
responseHeaders: [
|
|
444
|
+
{
|
|
445
|
+
value: response.headers.get("opc-request-id"),
|
|
446
|
+
key: "opcRequestId",
|
|
447
|
+
dataType: "string"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
value: response.headers.get("location"),
|
|
451
|
+
key: "location",
|
|
452
|
+
dataType: "string"
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
value: response.headers.get("etag"),
|
|
456
|
+
key: "etag",
|
|
457
|
+
dataType: "string"
|
|
458
|
+
}
|
|
459
|
+
]
|
|
460
|
+
});
|
|
461
|
+
return sdkResponse;
|
|
462
|
+
}
|
|
463
|
+
catch (err) {
|
|
464
|
+
throw err;
|
|
465
|
+
}
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
/**
|
|
469
|
+
* Creates a new Lockbox.
|
|
470
|
+
*
|
|
471
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
472
|
+
* @param CreateLockboxRequest
|
|
473
|
+
* @return CreateLockboxResponse
|
|
474
|
+
* @throws OciError when an error occurs
|
|
475
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/CreateLockbox.ts.html |here} to see how to use CreateLockbox API.
|
|
476
|
+
*/
|
|
477
|
+
createLockbox(createLockboxRequest) {
|
|
478
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
479
|
+
if (this.logger)
|
|
480
|
+
this.logger.debug("Calling operation LockboxClient#createLockbox.");
|
|
481
|
+
const operationName = "createLockbox";
|
|
482
|
+
const apiReferenceLink = "";
|
|
483
|
+
const pathParams = {};
|
|
484
|
+
const queryParams = {};
|
|
485
|
+
let headerParams = {
|
|
486
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
487
|
+
"opc-retry-token": createLockboxRequest.opcRetryToken,
|
|
488
|
+
"opc-request-id": createLockboxRequest.opcRequestId
|
|
489
|
+
};
|
|
490
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
491
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, createLockboxRequest.retryConfiguration, specRetryConfiguration);
|
|
492
|
+
if (this.logger)
|
|
493
|
+
retrier.logger = this.logger;
|
|
494
|
+
const request = yield oci_common_1.composeRequest({
|
|
495
|
+
baseEndpoint: this._endpoint,
|
|
496
|
+
defaultHeaders: this._defaultHeaders,
|
|
497
|
+
path: "/lockboxes",
|
|
498
|
+
method: "POST",
|
|
499
|
+
bodyContent: common.ObjectSerializer.serialize(createLockboxRequest.createLockboxDetails, "CreateLockboxDetails", model.CreateLockboxDetails.getJsonObj),
|
|
500
|
+
pathParams: pathParams,
|
|
501
|
+
headerParams: headerParams,
|
|
502
|
+
queryParams: queryParams
|
|
503
|
+
});
|
|
504
|
+
try {
|
|
505
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
506
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
507
|
+
responseObject: {},
|
|
508
|
+
body: yield response.json(),
|
|
509
|
+
bodyKey: "lockbox",
|
|
510
|
+
bodyModel: model.Lockbox,
|
|
511
|
+
type: "model.Lockbox",
|
|
512
|
+
responseHeaders: [
|
|
513
|
+
{
|
|
514
|
+
value: response.headers.get("opc-request-id"),
|
|
515
|
+
key: "opcRequestId",
|
|
516
|
+
dataType: "string"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
value: response.headers.get("location"),
|
|
520
|
+
key: "location",
|
|
521
|
+
dataType: "string"
|
|
522
|
+
},
|
|
523
|
+
{
|
|
524
|
+
value: response.headers.get("etag"),
|
|
525
|
+
key: "etag",
|
|
526
|
+
dataType: "string"
|
|
527
|
+
}
|
|
528
|
+
]
|
|
529
|
+
});
|
|
530
|
+
return sdkResponse;
|
|
531
|
+
}
|
|
532
|
+
catch (err) {
|
|
533
|
+
throw err;
|
|
534
|
+
}
|
|
535
|
+
});
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Deletes an ApprovalTemplate resource by identifier
|
|
539
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
540
|
+
* @param DeleteApprovalTemplateRequest
|
|
541
|
+
* @return DeleteApprovalTemplateResponse
|
|
542
|
+
* @throws OciError when an error occurs
|
|
543
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/DeleteApprovalTemplate.ts.html |here} to see how to use DeleteApprovalTemplate API.
|
|
544
|
+
*/
|
|
545
|
+
deleteApprovalTemplate(deleteApprovalTemplateRequest) {
|
|
546
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
547
|
+
if (this.logger)
|
|
548
|
+
this.logger.debug("Calling operation LockboxClient#deleteApprovalTemplate.");
|
|
549
|
+
const operationName = "deleteApprovalTemplate";
|
|
550
|
+
const apiReferenceLink = "";
|
|
551
|
+
const pathParams = {
|
|
552
|
+
"{approvalTemplateId}": deleteApprovalTemplateRequest.approvalTemplateId
|
|
553
|
+
};
|
|
554
|
+
const queryParams = {};
|
|
555
|
+
let headerParams = {
|
|
556
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
557
|
+
"if-match": deleteApprovalTemplateRequest.ifMatch,
|
|
558
|
+
"opc-request-id": deleteApprovalTemplateRequest.opcRequestId
|
|
559
|
+
};
|
|
560
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
561
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteApprovalTemplateRequest.retryConfiguration, specRetryConfiguration);
|
|
562
|
+
if (this.logger)
|
|
563
|
+
retrier.logger = this.logger;
|
|
564
|
+
const request = yield oci_common_1.composeRequest({
|
|
565
|
+
baseEndpoint: this._endpoint,
|
|
566
|
+
defaultHeaders: this._defaultHeaders,
|
|
567
|
+
path: "/approvalTemplates/{approvalTemplateId}",
|
|
568
|
+
method: "DELETE",
|
|
569
|
+
pathParams: pathParams,
|
|
570
|
+
headerParams: headerParams,
|
|
571
|
+
queryParams: queryParams
|
|
572
|
+
});
|
|
573
|
+
try {
|
|
574
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
575
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
576
|
+
responseObject: {},
|
|
577
|
+
responseHeaders: [
|
|
578
|
+
{
|
|
579
|
+
value: response.headers.get("opc-request-id"),
|
|
580
|
+
key: "opcRequestId",
|
|
581
|
+
dataType: "string"
|
|
582
|
+
}
|
|
583
|
+
]
|
|
584
|
+
});
|
|
585
|
+
return sdkResponse;
|
|
586
|
+
}
|
|
587
|
+
catch (err) {
|
|
588
|
+
throw err;
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* Deletes a Lockbox resource by identifier
|
|
594
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
595
|
+
* @param DeleteLockboxRequest
|
|
596
|
+
* @return DeleteLockboxResponse
|
|
597
|
+
* @throws OciError when an error occurs
|
|
598
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/DeleteLockbox.ts.html |here} to see how to use DeleteLockbox API.
|
|
599
|
+
*/
|
|
600
|
+
deleteLockbox(deleteLockboxRequest) {
|
|
601
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
602
|
+
if (this.logger)
|
|
603
|
+
this.logger.debug("Calling operation LockboxClient#deleteLockbox.");
|
|
604
|
+
const operationName = "deleteLockbox";
|
|
605
|
+
const apiReferenceLink = "";
|
|
606
|
+
const pathParams = {
|
|
607
|
+
"{lockboxId}": deleteLockboxRequest.lockboxId
|
|
608
|
+
};
|
|
609
|
+
const queryParams = {};
|
|
610
|
+
let headerParams = {
|
|
611
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
612
|
+
"if-match": deleteLockboxRequest.ifMatch,
|
|
613
|
+
"opc-request-id": deleteLockboxRequest.opcRequestId,
|
|
614
|
+
"opc-retry-token": deleteLockboxRequest.opcRetryToken
|
|
615
|
+
};
|
|
616
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
617
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, deleteLockboxRequest.retryConfiguration, specRetryConfiguration);
|
|
618
|
+
if (this.logger)
|
|
619
|
+
retrier.logger = this.logger;
|
|
620
|
+
const request = yield oci_common_1.composeRequest({
|
|
621
|
+
baseEndpoint: this._endpoint,
|
|
622
|
+
defaultHeaders: this._defaultHeaders,
|
|
623
|
+
path: "/lockboxes/{lockboxId}",
|
|
624
|
+
method: "DELETE",
|
|
625
|
+
pathParams: pathParams,
|
|
626
|
+
headerParams: headerParams,
|
|
627
|
+
queryParams: queryParams
|
|
628
|
+
});
|
|
629
|
+
try {
|
|
630
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
631
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
632
|
+
responseObject: {},
|
|
633
|
+
responseHeaders: [
|
|
634
|
+
{
|
|
635
|
+
value: response.headers.get("opc-request-id"),
|
|
636
|
+
key: "opcRequestId",
|
|
637
|
+
dataType: "string"
|
|
638
|
+
}
|
|
639
|
+
]
|
|
640
|
+
});
|
|
641
|
+
return sdkResponse;
|
|
642
|
+
}
|
|
643
|
+
catch (err) {
|
|
644
|
+
throw err;
|
|
645
|
+
}
|
|
646
|
+
});
|
|
647
|
+
}
|
|
648
|
+
/**
|
|
649
|
+
* Retrieves the access credential/material associated with the access request.
|
|
650
|
+
*
|
|
651
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
652
|
+
* @param GetAccessMaterialsRequest
|
|
653
|
+
* @return GetAccessMaterialsResponse
|
|
654
|
+
* @throws OciError when an error occurs
|
|
655
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/GetAccessMaterials.ts.html |here} to see how to use GetAccessMaterials API.
|
|
656
|
+
*/
|
|
657
|
+
getAccessMaterials(getAccessMaterialsRequest) {
|
|
658
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
659
|
+
if (this.logger)
|
|
660
|
+
this.logger.debug("Calling operation LockboxClient#getAccessMaterials.");
|
|
661
|
+
const operationName = "getAccessMaterials";
|
|
662
|
+
const apiReferenceLink = "";
|
|
663
|
+
const pathParams = {
|
|
664
|
+
"{accessRequestId}": getAccessMaterialsRequest.accessRequestId
|
|
665
|
+
};
|
|
666
|
+
const queryParams = {};
|
|
667
|
+
let headerParams = {
|
|
668
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
669
|
+
"opc-request-id": getAccessMaterialsRequest.opcRequestId
|
|
670
|
+
};
|
|
671
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
672
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAccessMaterialsRequest.retryConfiguration, specRetryConfiguration);
|
|
673
|
+
if (this.logger)
|
|
674
|
+
retrier.logger = this.logger;
|
|
675
|
+
const request = yield oci_common_1.composeRequest({
|
|
676
|
+
baseEndpoint: this._endpoint,
|
|
677
|
+
defaultHeaders: this._defaultHeaders,
|
|
678
|
+
path: "/accessRequests/{accessRequestId}/accessMaterials",
|
|
679
|
+
method: "GET",
|
|
680
|
+
pathParams: pathParams,
|
|
681
|
+
headerParams: headerParams,
|
|
682
|
+
queryParams: queryParams
|
|
683
|
+
});
|
|
684
|
+
try {
|
|
685
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
686
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
687
|
+
responseObject: {},
|
|
688
|
+
body: yield response.json(),
|
|
689
|
+
bodyKey: "accessMaterials",
|
|
690
|
+
bodyModel: model.AccessMaterials,
|
|
691
|
+
type: "model.AccessMaterials",
|
|
692
|
+
responseHeaders: [
|
|
693
|
+
{
|
|
694
|
+
value: response.headers.get("opc-request-id"),
|
|
695
|
+
key: "opcRequestId",
|
|
696
|
+
dataType: "string"
|
|
697
|
+
}
|
|
698
|
+
]
|
|
699
|
+
});
|
|
700
|
+
return sdkResponse;
|
|
701
|
+
}
|
|
702
|
+
catch (err) {
|
|
703
|
+
throw err;
|
|
704
|
+
}
|
|
705
|
+
});
|
|
706
|
+
}
|
|
707
|
+
/**
|
|
708
|
+
* Retrieves an access request identified by the access request ID.
|
|
709
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
710
|
+
* @param GetAccessRequestRequest
|
|
711
|
+
* @return GetAccessRequestResponse
|
|
712
|
+
* @throws OciError when an error occurs
|
|
713
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/GetAccessRequest.ts.html |here} to see how to use GetAccessRequest API.
|
|
714
|
+
*/
|
|
715
|
+
getAccessRequest(getAccessRequestRequest) {
|
|
716
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
717
|
+
if (this.logger)
|
|
718
|
+
this.logger.debug("Calling operation LockboxClient#getAccessRequest.");
|
|
719
|
+
const operationName = "getAccessRequest";
|
|
720
|
+
const apiReferenceLink = "";
|
|
721
|
+
const pathParams = {
|
|
722
|
+
"{accessRequestId}": getAccessRequestRequest.accessRequestId
|
|
723
|
+
};
|
|
724
|
+
const queryParams = {};
|
|
725
|
+
let headerParams = {
|
|
726
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
727
|
+
"opc-request-id": getAccessRequestRequest.opcRequestId
|
|
728
|
+
};
|
|
729
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
730
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getAccessRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
731
|
+
if (this.logger)
|
|
732
|
+
retrier.logger = this.logger;
|
|
733
|
+
const request = yield oci_common_1.composeRequest({
|
|
734
|
+
baseEndpoint: this._endpoint,
|
|
735
|
+
defaultHeaders: this._defaultHeaders,
|
|
736
|
+
path: "/accessRequests/{accessRequestId}",
|
|
737
|
+
method: "GET",
|
|
738
|
+
pathParams: pathParams,
|
|
739
|
+
headerParams: headerParams,
|
|
740
|
+
queryParams: queryParams
|
|
741
|
+
});
|
|
742
|
+
try {
|
|
743
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
744
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
745
|
+
responseObject: {},
|
|
746
|
+
body: yield response.json(),
|
|
747
|
+
bodyKey: "accessRequest",
|
|
748
|
+
bodyModel: model.AccessRequest,
|
|
749
|
+
type: "model.AccessRequest",
|
|
750
|
+
responseHeaders: [
|
|
751
|
+
{
|
|
752
|
+
value: response.headers.get("etag"),
|
|
753
|
+
key: "etag",
|
|
754
|
+
dataType: "string"
|
|
755
|
+
},
|
|
756
|
+
{
|
|
757
|
+
value: response.headers.get("opc-request-id"),
|
|
758
|
+
key: "opcRequestId",
|
|
759
|
+
dataType: "string"
|
|
760
|
+
}
|
|
761
|
+
]
|
|
762
|
+
});
|
|
763
|
+
return sdkResponse;
|
|
764
|
+
}
|
|
765
|
+
catch (err) {
|
|
766
|
+
throw err;
|
|
767
|
+
}
|
|
768
|
+
});
|
|
769
|
+
}
|
|
770
|
+
/**
|
|
771
|
+
* Retrieves an approval template identified by the approval template ID.
|
|
772
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
773
|
+
* @param GetApprovalTemplateRequest
|
|
774
|
+
* @return GetApprovalTemplateResponse
|
|
775
|
+
* @throws OciError when an error occurs
|
|
776
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/GetApprovalTemplate.ts.html |here} to see how to use GetApprovalTemplate API.
|
|
777
|
+
*/
|
|
778
|
+
getApprovalTemplate(getApprovalTemplateRequest) {
|
|
779
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
780
|
+
if (this.logger)
|
|
781
|
+
this.logger.debug("Calling operation LockboxClient#getApprovalTemplate.");
|
|
782
|
+
const operationName = "getApprovalTemplate";
|
|
783
|
+
const apiReferenceLink = "";
|
|
784
|
+
const pathParams = {
|
|
785
|
+
"{approvalTemplateId}": getApprovalTemplateRequest.approvalTemplateId
|
|
786
|
+
};
|
|
787
|
+
const queryParams = {};
|
|
788
|
+
let headerParams = {
|
|
789
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
790
|
+
"opc-request-id": getApprovalTemplateRequest.opcRequestId
|
|
791
|
+
};
|
|
792
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
793
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getApprovalTemplateRequest.retryConfiguration, specRetryConfiguration);
|
|
794
|
+
if (this.logger)
|
|
795
|
+
retrier.logger = this.logger;
|
|
796
|
+
const request = yield oci_common_1.composeRequest({
|
|
797
|
+
baseEndpoint: this._endpoint,
|
|
798
|
+
defaultHeaders: this._defaultHeaders,
|
|
799
|
+
path: "/approvalTemplates/{approvalTemplateId}",
|
|
800
|
+
method: "GET",
|
|
801
|
+
pathParams: pathParams,
|
|
802
|
+
headerParams: headerParams,
|
|
803
|
+
queryParams: queryParams
|
|
804
|
+
});
|
|
805
|
+
try {
|
|
806
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
807
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
808
|
+
responseObject: {},
|
|
809
|
+
body: yield response.json(),
|
|
810
|
+
bodyKey: "approvalTemplate",
|
|
811
|
+
bodyModel: model.ApprovalTemplate,
|
|
812
|
+
type: "model.ApprovalTemplate",
|
|
813
|
+
responseHeaders: [
|
|
814
|
+
{
|
|
815
|
+
value: response.headers.get("etag"),
|
|
816
|
+
key: "etag",
|
|
817
|
+
dataType: "string"
|
|
818
|
+
},
|
|
819
|
+
{
|
|
820
|
+
value: response.headers.get("opc-request-id"),
|
|
821
|
+
key: "opcRequestId",
|
|
822
|
+
dataType: "string"
|
|
823
|
+
}
|
|
824
|
+
]
|
|
825
|
+
});
|
|
826
|
+
return sdkResponse;
|
|
827
|
+
}
|
|
828
|
+
catch (err) {
|
|
829
|
+
throw err;
|
|
830
|
+
}
|
|
831
|
+
});
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* Gets a Lockbox by identifier
|
|
835
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
836
|
+
* @param GetLockboxRequest
|
|
837
|
+
* @return GetLockboxResponse
|
|
838
|
+
* @throws OciError when an error occurs
|
|
839
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/GetLockbox.ts.html |here} to see how to use GetLockbox API.
|
|
840
|
+
*/
|
|
841
|
+
getLockbox(getLockboxRequest) {
|
|
842
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
843
|
+
if (this.logger)
|
|
844
|
+
this.logger.debug("Calling operation LockboxClient#getLockbox.");
|
|
845
|
+
const operationName = "getLockbox";
|
|
846
|
+
const apiReferenceLink = "";
|
|
847
|
+
const pathParams = {
|
|
848
|
+
"{lockboxId}": getLockboxRequest.lockboxId
|
|
849
|
+
};
|
|
850
|
+
const queryParams = {};
|
|
851
|
+
let headerParams = {
|
|
852
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
853
|
+
"opc-request-id": getLockboxRequest.opcRequestId
|
|
854
|
+
};
|
|
855
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
856
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getLockboxRequest.retryConfiguration, specRetryConfiguration);
|
|
857
|
+
if (this.logger)
|
|
858
|
+
retrier.logger = this.logger;
|
|
859
|
+
const request = yield oci_common_1.composeRequest({
|
|
860
|
+
baseEndpoint: this._endpoint,
|
|
861
|
+
defaultHeaders: this._defaultHeaders,
|
|
862
|
+
path: "/lockboxes/{lockboxId}",
|
|
863
|
+
method: "GET",
|
|
864
|
+
pathParams: pathParams,
|
|
865
|
+
headerParams: headerParams,
|
|
866
|
+
queryParams: queryParams
|
|
867
|
+
});
|
|
868
|
+
try {
|
|
869
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
870
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
871
|
+
responseObject: {},
|
|
872
|
+
body: yield response.json(),
|
|
873
|
+
bodyKey: "lockbox",
|
|
874
|
+
bodyModel: model.Lockbox,
|
|
875
|
+
type: "model.Lockbox",
|
|
876
|
+
responseHeaders: [
|
|
877
|
+
{
|
|
878
|
+
value: response.headers.get("etag"),
|
|
879
|
+
key: "etag",
|
|
880
|
+
dataType: "string"
|
|
881
|
+
},
|
|
882
|
+
{
|
|
883
|
+
value: response.headers.get("opc-request-id"),
|
|
884
|
+
key: "opcRequestId",
|
|
885
|
+
dataType: "string"
|
|
886
|
+
}
|
|
887
|
+
]
|
|
888
|
+
});
|
|
889
|
+
return sdkResponse;
|
|
890
|
+
}
|
|
891
|
+
catch (err) {
|
|
892
|
+
throw err;
|
|
893
|
+
}
|
|
894
|
+
});
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* Gets details of the work request with the given ID.
|
|
898
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
899
|
+
* @param GetWorkRequestRequest
|
|
900
|
+
* @return GetWorkRequestResponse
|
|
901
|
+
* @throws OciError when an error occurs
|
|
902
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/GetWorkRequest.ts.html |here} to see how to use GetWorkRequest API.
|
|
903
|
+
*/
|
|
904
|
+
getWorkRequest(getWorkRequestRequest) {
|
|
905
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
906
|
+
if (this.logger)
|
|
907
|
+
this.logger.debug("Calling operation LockboxClient#getWorkRequest.");
|
|
908
|
+
const operationName = "getWorkRequest";
|
|
909
|
+
const apiReferenceLink = "";
|
|
910
|
+
const pathParams = {
|
|
911
|
+
"{workRequestId}": getWorkRequestRequest.workRequestId
|
|
912
|
+
};
|
|
913
|
+
const queryParams = {};
|
|
914
|
+
let headerParams = {
|
|
915
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
916
|
+
"opc-request-id": getWorkRequestRequest.opcRequestId
|
|
917
|
+
};
|
|
918
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
919
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, getWorkRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
920
|
+
if (this.logger)
|
|
921
|
+
retrier.logger = this.logger;
|
|
922
|
+
const request = yield oci_common_1.composeRequest({
|
|
923
|
+
baseEndpoint: this._endpoint,
|
|
924
|
+
defaultHeaders: this._defaultHeaders,
|
|
925
|
+
path: "/workRequests/{workRequestId}",
|
|
926
|
+
method: "GET",
|
|
927
|
+
pathParams: pathParams,
|
|
928
|
+
headerParams: headerParams,
|
|
929
|
+
queryParams: queryParams
|
|
930
|
+
});
|
|
931
|
+
try {
|
|
932
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
933
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
934
|
+
responseObject: {},
|
|
935
|
+
body: yield response.json(),
|
|
936
|
+
bodyKey: "workRequest",
|
|
937
|
+
bodyModel: model.WorkRequest,
|
|
938
|
+
type: "model.WorkRequest",
|
|
939
|
+
responseHeaders: [
|
|
940
|
+
{
|
|
941
|
+
value: response.headers.get("etag"),
|
|
942
|
+
key: "etag",
|
|
943
|
+
dataType: "string"
|
|
944
|
+
},
|
|
945
|
+
{
|
|
946
|
+
value: response.headers.get("opc-request-id"),
|
|
947
|
+
key: "opcRequestId",
|
|
948
|
+
dataType: "string"
|
|
949
|
+
},
|
|
950
|
+
{
|
|
951
|
+
value: response.headers.get("retry-after"),
|
|
952
|
+
key: "retryAfter",
|
|
953
|
+
dataType: "number"
|
|
954
|
+
}
|
|
955
|
+
]
|
|
956
|
+
});
|
|
957
|
+
return sdkResponse;
|
|
958
|
+
}
|
|
959
|
+
catch (err) {
|
|
960
|
+
throw err;
|
|
961
|
+
}
|
|
962
|
+
});
|
|
963
|
+
}
|
|
964
|
+
/**
|
|
965
|
+
* Handle the AccessRequest
|
|
966
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
967
|
+
* @param HandleAccessRequestRequest
|
|
968
|
+
* @return HandleAccessRequestResponse
|
|
969
|
+
* @throws OciError when an error occurs
|
|
970
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/HandleAccessRequest.ts.html |here} to see how to use HandleAccessRequest API.
|
|
971
|
+
*/
|
|
972
|
+
handleAccessRequest(handleAccessRequestRequest) {
|
|
973
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
974
|
+
if (this.logger)
|
|
975
|
+
this.logger.debug("Calling operation LockboxClient#handleAccessRequest.");
|
|
976
|
+
const operationName = "handleAccessRequest";
|
|
977
|
+
const apiReferenceLink = "";
|
|
978
|
+
const pathParams = {
|
|
979
|
+
"{accessRequestId}": handleAccessRequestRequest.accessRequestId
|
|
980
|
+
};
|
|
981
|
+
const queryParams = {};
|
|
982
|
+
let headerParams = {
|
|
983
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
984
|
+
"if-match": handleAccessRequestRequest.ifMatch,
|
|
985
|
+
"opc-retry-token": handleAccessRequestRequest.opcRetryToken,
|
|
986
|
+
"opc-request-id": handleAccessRequestRequest.opcRequestId
|
|
987
|
+
};
|
|
988
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
989
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, handleAccessRequestRequest.retryConfiguration, specRetryConfiguration);
|
|
990
|
+
if (this.logger)
|
|
991
|
+
retrier.logger = this.logger;
|
|
992
|
+
const request = yield oci_common_1.composeRequest({
|
|
993
|
+
baseEndpoint: this._endpoint,
|
|
994
|
+
defaultHeaders: this._defaultHeaders,
|
|
995
|
+
path: "/accessRequests/{accessRequestId}/actions/handle",
|
|
996
|
+
method: "POST",
|
|
997
|
+
bodyContent: common.ObjectSerializer.serialize(handleAccessRequestRequest.handleAccessRequestDetails, "HandleAccessRequestDetails", model.HandleAccessRequestDetails.getJsonObj),
|
|
998
|
+
pathParams: pathParams,
|
|
999
|
+
headerParams: headerParams,
|
|
1000
|
+
queryParams: queryParams
|
|
1001
|
+
});
|
|
1002
|
+
try {
|
|
1003
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1004
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1005
|
+
responseObject: {},
|
|
1006
|
+
responseHeaders: [
|
|
1007
|
+
{
|
|
1008
|
+
value: response.headers.get("opc-work-request-id"),
|
|
1009
|
+
key: "opcWorkRequestId",
|
|
1010
|
+
dataType: "string"
|
|
1011
|
+
},
|
|
1012
|
+
{
|
|
1013
|
+
value: response.headers.get("opc-request-id"),
|
|
1014
|
+
key: "opcRequestId",
|
|
1015
|
+
dataType: "string"
|
|
1016
|
+
}
|
|
1017
|
+
]
|
|
1018
|
+
});
|
|
1019
|
+
return sdkResponse;
|
|
1020
|
+
}
|
|
1021
|
+
catch (err) {
|
|
1022
|
+
throw err;
|
|
1023
|
+
}
|
|
1024
|
+
});
|
|
1025
|
+
}
|
|
1026
|
+
/**
|
|
1027
|
+
* Retrieves a list of AccessRequestSummary objects in a compartment.
|
|
1028
|
+
*
|
|
1029
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1030
|
+
* @param ListAccessRequestsRequest
|
|
1031
|
+
* @return ListAccessRequestsResponse
|
|
1032
|
+
* @throws OciError when an error occurs
|
|
1033
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/ListAccessRequests.ts.html |here} to see how to use ListAccessRequests API.
|
|
1034
|
+
*/
|
|
1035
|
+
listAccessRequests(listAccessRequestsRequest) {
|
|
1036
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1037
|
+
if (this.logger)
|
|
1038
|
+
this.logger.debug("Calling operation LockboxClient#listAccessRequests.");
|
|
1039
|
+
const operationName = "listAccessRequests";
|
|
1040
|
+
const apiReferenceLink = "";
|
|
1041
|
+
const pathParams = {};
|
|
1042
|
+
const queryParams = {
|
|
1043
|
+
"lockboxId": listAccessRequestsRequest.lockboxId,
|
|
1044
|
+
"id": listAccessRequestsRequest.id,
|
|
1045
|
+
"displayName": listAccessRequestsRequest.displayName,
|
|
1046
|
+
"lifecycleState": listAccessRequestsRequest.lifecycleState,
|
|
1047
|
+
"lockboxPartner": listAccessRequestsRequest.lockboxPartner,
|
|
1048
|
+
"requestorId": listAccessRequestsRequest.requestorId,
|
|
1049
|
+
"limit": listAccessRequestsRequest.limit,
|
|
1050
|
+
"page": listAccessRequestsRequest.page,
|
|
1051
|
+
"sortOrder": listAccessRequestsRequest.sortOrder,
|
|
1052
|
+
"sortBy": listAccessRequestsRequest.sortBy
|
|
1053
|
+
};
|
|
1054
|
+
let headerParams = {
|
|
1055
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1056
|
+
"opc-request-id": listAccessRequestsRequest.opcRequestId
|
|
1057
|
+
};
|
|
1058
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1059
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listAccessRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1060
|
+
if (this.logger)
|
|
1061
|
+
retrier.logger = this.logger;
|
|
1062
|
+
const request = yield oci_common_1.composeRequest({
|
|
1063
|
+
baseEndpoint: this._endpoint,
|
|
1064
|
+
defaultHeaders: this._defaultHeaders,
|
|
1065
|
+
path: "/accessRequests",
|
|
1066
|
+
method: "GET",
|
|
1067
|
+
pathParams: pathParams,
|
|
1068
|
+
headerParams: headerParams,
|
|
1069
|
+
queryParams: queryParams
|
|
1070
|
+
});
|
|
1071
|
+
try {
|
|
1072
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1073
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1074
|
+
responseObject: {},
|
|
1075
|
+
body: yield response.json(),
|
|
1076
|
+
bodyKey: "accessRequestCollection",
|
|
1077
|
+
bodyModel: model.AccessRequestCollection,
|
|
1078
|
+
type: "model.AccessRequestCollection",
|
|
1079
|
+
responseHeaders: [
|
|
1080
|
+
{
|
|
1081
|
+
value: response.headers.get("opc-request-id"),
|
|
1082
|
+
key: "opcRequestId",
|
|
1083
|
+
dataType: "string"
|
|
1084
|
+
},
|
|
1085
|
+
{
|
|
1086
|
+
value: response.headers.get("opc-next-page"),
|
|
1087
|
+
key: "opcNextPage",
|
|
1088
|
+
dataType: "string"
|
|
1089
|
+
}
|
|
1090
|
+
]
|
|
1091
|
+
});
|
|
1092
|
+
return sdkResponse;
|
|
1093
|
+
}
|
|
1094
|
+
catch (err) {
|
|
1095
|
+
throw err;
|
|
1096
|
+
}
|
|
1097
|
+
});
|
|
1098
|
+
}
|
|
1099
|
+
/**
|
|
1100
|
+
* Retrieves a list of ApprovalTemplateSummary objects in a compartment.
|
|
1101
|
+
*
|
|
1102
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1103
|
+
* @param ListApprovalTemplatesRequest
|
|
1104
|
+
* @return ListApprovalTemplatesResponse
|
|
1105
|
+
* @throws OciError when an error occurs
|
|
1106
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/ListApprovalTemplates.ts.html |here} to see how to use ListApprovalTemplates API.
|
|
1107
|
+
*/
|
|
1108
|
+
listApprovalTemplates(listApprovalTemplatesRequest) {
|
|
1109
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1110
|
+
if (this.logger)
|
|
1111
|
+
this.logger.debug("Calling operation LockboxClient#listApprovalTemplates.");
|
|
1112
|
+
const operationName = "listApprovalTemplates";
|
|
1113
|
+
const apiReferenceLink = "";
|
|
1114
|
+
const pathParams = {};
|
|
1115
|
+
const queryParams = {
|
|
1116
|
+
"compartmentId": listApprovalTemplatesRequest.compartmentId,
|
|
1117
|
+
"id": listApprovalTemplatesRequest.id,
|
|
1118
|
+
"displayName": listApprovalTemplatesRequest.displayName,
|
|
1119
|
+
"lifecycleState": listApprovalTemplatesRequest.lifecycleState,
|
|
1120
|
+
"limit": listApprovalTemplatesRequest.limit,
|
|
1121
|
+
"page": listApprovalTemplatesRequest.page,
|
|
1122
|
+
"sortOrder": listApprovalTemplatesRequest.sortOrder,
|
|
1123
|
+
"sortBy": listApprovalTemplatesRequest.sortBy
|
|
1124
|
+
};
|
|
1125
|
+
let headerParams = {
|
|
1126
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1127
|
+
"opc-request-id": listApprovalTemplatesRequest.opcRequestId
|
|
1128
|
+
};
|
|
1129
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1130
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listApprovalTemplatesRequest.retryConfiguration, specRetryConfiguration);
|
|
1131
|
+
if (this.logger)
|
|
1132
|
+
retrier.logger = this.logger;
|
|
1133
|
+
const request = yield oci_common_1.composeRequest({
|
|
1134
|
+
baseEndpoint: this._endpoint,
|
|
1135
|
+
defaultHeaders: this._defaultHeaders,
|
|
1136
|
+
path: "/approvalTemplates",
|
|
1137
|
+
method: "GET",
|
|
1138
|
+
pathParams: pathParams,
|
|
1139
|
+
headerParams: headerParams,
|
|
1140
|
+
queryParams: queryParams
|
|
1141
|
+
});
|
|
1142
|
+
try {
|
|
1143
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1144
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1145
|
+
responseObject: {},
|
|
1146
|
+
body: yield response.json(),
|
|
1147
|
+
bodyKey: "approvalTemplateCollection",
|
|
1148
|
+
bodyModel: model.ApprovalTemplateCollection,
|
|
1149
|
+
type: "model.ApprovalTemplateCollection",
|
|
1150
|
+
responseHeaders: [
|
|
1151
|
+
{
|
|
1152
|
+
value: response.headers.get("opc-request-id"),
|
|
1153
|
+
key: "opcRequestId",
|
|
1154
|
+
dataType: "string"
|
|
1155
|
+
},
|
|
1156
|
+
{
|
|
1157
|
+
value: response.headers.get("opc-next-page"),
|
|
1158
|
+
key: "opcNextPage",
|
|
1159
|
+
dataType: "string"
|
|
1160
|
+
}
|
|
1161
|
+
]
|
|
1162
|
+
});
|
|
1163
|
+
return sdkResponse;
|
|
1164
|
+
}
|
|
1165
|
+
catch (err) {
|
|
1166
|
+
throw err;
|
|
1167
|
+
}
|
|
1168
|
+
});
|
|
1169
|
+
}
|
|
1170
|
+
/**
|
|
1171
|
+
* Returns a list of Lockboxes.
|
|
1172
|
+
*
|
|
1173
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1174
|
+
* @param ListLockboxesRequest
|
|
1175
|
+
* @return ListLockboxesResponse
|
|
1176
|
+
* @throws OciError when an error occurs
|
|
1177
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/ListLockboxes.ts.html |here} to see how to use ListLockboxes API.
|
|
1178
|
+
*/
|
|
1179
|
+
listLockboxes(listLockboxesRequest) {
|
|
1180
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1181
|
+
if (this.logger)
|
|
1182
|
+
this.logger.debug("Calling operation LockboxClient#listLockboxes.");
|
|
1183
|
+
const operationName = "listLockboxes";
|
|
1184
|
+
const apiReferenceLink = "";
|
|
1185
|
+
const pathParams = {};
|
|
1186
|
+
const queryParams = {
|
|
1187
|
+
"compartmentId": listLockboxesRequest.compartmentId,
|
|
1188
|
+
"lifecycleState": listLockboxesRequest.lifecycleState,
|
|
1189
|
+
"displayName": listLockboxesRequest.displayName,
|
|
1190
|
+
"id": listLockboxesRequest.id,
|
|
1191
|
+
"resourceId": listLockboxesRequest.resourceId,
|
|
1192
|
+
"lockboxPartner": listLockboxesRequest.lockboxPartner,
|
|
1193
|
+
"limit": listLockboxesRequest.limit,
|
|
1194
|
+
"page": listLockboxesRequest.page,
|
|
1195
|
+
"sortOrder": listLockboxesRequest.sortOrder,
|
|
1196
|
+
"sortBy": listLockboxesRequest.sortBy
|
|
1197
|
+
};
|
|
1198
|
+
let headerParams = {
|
|
1199
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1200
|
+
"opc-request-id": listLockboxesRequest.opcRequestId
|
|
1201
|
+
};
|
|
1202
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1203
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listLockboxesRequest.retryConfiguration, specRetryConfiguration);
|
|
1204
|
+
if (this.logger)
|
|
1205
|
+
retrier.logger = this.logger;
|
|
1206
|
+
const request = yield oci_common_1.composeRequest({
|
|
1207
|
+
baseEndpoint: this._endpoint,
|
|
1208
|
+
defaultHeaders: this._defaultHeaders,
|
|
1209
|
+
path: "/lockboxes",
|
|
1210
|
+
method: "GET",
|
|
1211
|
+
pathParams: pathParams,
|
|
1212
|
+
headerParams: headerParams,
|
|
1213
|
+
queryParams: queryParams
|
|
1214
|
+
});
|
|
1215
|
+
try {
|
|
1216
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1217
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1218
|
+
responseObject: {},
|
|
1219
|
+
body: yield response.json(),
|
|
1220
|
+
bodyKey: "lockboxCollection",
|
|
1221
|
+
bodyModel: model.LockboxCollection,
|
|
1222
|
+
type: "model.LockboxCollection",
|
|
1223
|
+
responseHeaders: [
|
|
1224
|
+
{
|
|
1225
|
+
value: response.headers.get("opc-request-id"),
|
|
1226
|
+
key: "opcRequestId",
|
|
1227
|
+
dataType: "string"
|
|
1228
|
+
},
|
|
1229
|
+
{
|
|
1230
|
+
value: response.headers.get("opc-next-page"),
|
|
1231
|
+
key: "opcNextPage",
|
|
1232
|
+
dataType: "string"
|
|
1233
|
+
}
|
|
1234
|
+
]
|
|
1235
|
+
});
|
|
1236
|
+
return sdkResponse;
|
|
1237
|
+
}
|
|
1238
|
+
catch (err) {
|
|
1239
|
+
throw err;
|
|
1240
|
+
}
|
|
1241
|
+
});
|
|
1242
|
+
}
|
|
1243
|
+
/**
|
|
1244
|
+
* Returns a (paginated) list of errors for the work request with the given ID.
|
|
1245
|
+
*
|
|
1246
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1247
|
+
* @param ListWorkRequestErrorsRequest
|
|
1248
|
+
* @return ListWorkRequestErrorsResponse
|
|
1249
|
+
* @throws OciError when an error occurs
|
|
1250
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/ListWorkRequestErrors.ts.html |here} to see how to use ListWorkRequestErrors API.
|
|
1251
|
+
*/
|
|
1252
|
+
listWorkRequestErrors(listWorkRequestErrorsRequest) {
|
|
1253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1254
|
+
if (this.logger)
|
|
1255
|
+
this.logger.debug("Calling operation LockboxClient#listWorkRequestErrors.");
|
|
1256
|
+
const operationName = "listWorkRequestErrors";
|
|
1257
|
+
const apiReferenceLink = "";
|
|
1258
|
+
const pathParams = {
|
|
1259
|
+
"{workRequestId}": listWorkRequestErrorsRequest.workRequestId
|
|
1260
|
+
};
|
|
1261
|
+
const queryParams = {
|
|
1262
|
+
"page": listWorkRequestErrorsRequest.page,
|
|
1263
|
+
"limit": listWorkRequestErrorsRequest.limit,
|
|
1264
|
+
"sortBy": listWorkRequestErrorsRequest.sortBy,
|
|
1265
|
+
"sortOrder": listWorkRequestErrorsRequest.sortOrder
|
|
1266
|
+
};
|
|
1267
|
+
let headerParams = {
|
|
1268
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1269
|
+
"opc-request-id": listWorkRequestErrorsRequest.opcRequestId
|
|
1270
|
+
};
|
|
1271
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1272
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestErrorsRequest.retryConfiguration, specRetryConfiguration);
|
|
1273
|
+
if (this.logger)
|
|
1274
|
+
retrier.logger = this.logger;
|
|
1275
|
+
const request = yield oci_common_1.composeRequest({
|
|
1276
|
+
baseEndpoint: this._endpoint,
|
|
1277
|
+
defaultHeaders: this._defaultHeaders,
|
|
1278
|
+
path: "/workRequests/{workRequestId}/errors",
|
|
1279
|
+
method: "GET",
|
|
1280
|
+
pathParams: pathParams,
|
|
1281
|
+
headerParams: headerParams,
|
|
1282
|
+
queryParams: queryParams
|
|
1283
|
+
});
|
|
1284
|
+
try {
|
|
1285
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1286
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1287
|
+
responseObject: {},
|
|
1288
|
+
body: yield response.json(),
|
|
1289
|
+
bodyKey: "workRequestErrorCollection",
|
|
1290
|
+
bodyModel: model.WorkRequestErrorCollection,
|
|
1291
|
+
type: "model.WorkRequestErrorCollection",
|
|
1292
|
+
responseHeaders: [
|
|
1293
|
+
{
|
|
1294
|
+
value: response.headers.get("opc-next-page"),
|
|
1295
|
+
key: "opcNextPage",
|
|
1296
|
+
dataType: "string"
|
|
1297
|
+
},
|
|
1298
|
+
{
|
|
1299
|
+
value: response.headers.get("opc-request-id"),
|
|
1300
|
+
key: "opcRequestId",
|
|
1301
|
+
dataType: "string"
|
|
1302
|
+
}
|
|
1303
|
+
]
|
|
1304
|
+
});
|
|
1305
|
+
return sdkResponse;
|
|
1306
|
+
}
|
|
1307
|
+
catch (err) {
|
|
1308
|
+
throw err;
|
|
1309
|
+
}
|
|
1310
|
+
});
|
|
1311
|
+
}
|
|
1312
|
+
/**
|
|
1313
|
+
* Returns a (paginated) list of logs for the work request with the given ID.
|
|
1314
|
+
*
|
|
1315
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1316
|
+
* @param ListWorkRequestLogsRequest
|
|
1317
|
+
* @return ListWorkRequestLogsResponse
|
|
1318
|
+
* @throws OciError when an error occurs
|
|
1319
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/ListWorkRequestLogs.ts.html |here} to see how to use ListWorkRequestLogs API.
|
|
1320
|
+
*/
|
|
1321
|
+
listWorkRequestLogs(listWorkRequestLogsRequest) {
|
|
1322
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1323
|
+
if (this.logger)
|
|
1324
|
+
this.logger.debug("Calling operation LockboxClient#listWorkRequestLogs.");
|
|
1325
|
+
const operationName = "listWorkRequestLogs";
|
|
1326
|
+
const apiReferenceLink = "";
|
|
1327
|
+
const pathParams = {
|
|
1328
|
+
"{workRequestId}": listWorkRequestLogsRequest.workRequestId
|
|
1329
|
+
};
|
|
1330
|
+
const queryParams = {
|
|
1331
|
+
"page": listWorkRequestLogsRequest.page,
|
|
1332
|
+
"limit": listWorkRequestLogsRequest.limit,
|
|
1333
|
+
"sortBy": listWorkRequestLogsRequest.sortBy,
|
|
1334
|
+
"sortOrder": listWorkRequestLogsRequest.sortOrder
|
|
1335
|
+
};
|
|
1336
|
+
let headerParams = {
|
|
1337
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1338
|
+
"opc-request-id": listWorkRequestLogsRequest.opcRequestId
|
|
1339
|
+
};
|
|
1340
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1341
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestLogsRequest.retryConfiguration, specRetryConfiguration);
|
|
1342
|
+
if (this.logger)
|
|
1343
|
+
retrier.logger = this.logger;
|
|
1344
|
+
const request = yield oci_common_1.composeRequest({
|
|
1345
|
+
baseEndpoint: this._endpoint,
|
|
1346
|
+
defaultHeaders: this._defaultHeaders,
|
|
1347
|
+
path: "/workRequests/{workRequestId}/logs",
|
|
1348
|
+
method: "GET",
|
|
1349
|
+
pathParams: pathParams,
|
|
1350
|
+
headerParams: headerParams,
|
|
1351
|
+
queryParams: queryParams
|
|
1352
|
+
});
|
|
1353
|
+
try {
|
|
1354
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1355
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1356
|
+
responseObject: {},
|
|
1357
|
+
body: yield response.json(),
|
|
1358
|
+
bodyKey: "workRequestLogEntryCollection",
|
|
1359
|
+
bodyModel: model.WorkRequestLogEntryCollection,
|
|
1360
|
+
type: "model.WorkRequestLogEntryCollection",
|
|
1361
|
+
responseHeaders: [
|
|
1362
|
+
{
|
|
1363
|
+
value: response.headers.get("opc-next-page"),
|
|
1364
|
+
key: "opcNextPage",
|
|
1365
|
+
dataType: "string"
|
|
1366
|
+
},
|
|
1367
|
+
{
|
|
1368
|
+
value: response.headers.get("opc-request-id"),
|
|
1369
|
+
key: "opcRequestId",
|
|
1370
|
+
dataType: "string"
|
|
1371
|
+
}
|
|
1372
|
+
]
|
|
1373
|
+
});
|
|
1374
|
+
return sdkResponse;
|
|
1375
|
+
}
|
|
1376
|
+
catch (err) {
|
|
1377
|
+
throw err;
|
|
1378
|
+
}
|
|
1379
|
+
});
|
|
1380
|
+
}
|
|
1381
|
+
/**
|
|
1382
|
+
* Lists the work requests in a compartment.
|
|
1383
|
+
*
|
|
1384
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1385
|
+
* @param ListWorkRequestsRequest
|
|
1386
|
+
* @return ListWorkRequestsResponse
|
|
1387
|
+
* @throws OciError when an error occurs
|
|
1388
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/ListWorkRequests.ts.html |here} to see how to use ListWorkRequests API.
|
|
1389
|
+
*/
|
|
1390
|
+
listWorkRequests(listWorkRequestsRequest) {
|
|
1391
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1392
|
+
if (this.logger)
|
|
1393
|
+
this.logger.debug("Calling operation LockboxClient#listWorkRequests.");
|
|
1394
|
+
const operationName = "listWorkRequests";
|
|
1395
|
+
const apiReferenceLink = "";
|
|
1396
|
+
const pathParams = {};
|
|
1397
|
+
const queryParams = {
|
|
1398
|
+
"compartmentId": listWorkRequestsRequest.compartmentId,
|
|
1399
|
+
"workRequestId": listWorkRequestsRequest.workRequestId,
|
|
1400
|
+
"status": listWorkRequestsRequest.status,
|
|
1401
|
+
"resourceId": listWorkRequestsRequest.resourceId,
|
|
1402
|
+
"page": listWorkRequestsRequest.page,
|
|
1403
|
+
"limit": listWorkRequestsRequest.limit,
|
|
1404
|
+
"sortOrder": listWorkRequestsRequest.sortOrder,
|
|
1405
|
+
"sortBy": listWorkRequestsRequest.sortBy
|
|
1406
|
+
};
|
|
1407
|
+
let headerParams = {
|
|
1408
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1409
|
+
"opc-request-id": listWorkRequestsRequest.opcRequestId
|
|
1410
|
+
};
|
|
1411
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1412
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, listWorkRequestsRequest.retryConfiguration, specRetryConfiguration);
|
|
1413
|
+
if (this.logger)
|
|
1414
|
+
retrier.logger = this.logger;
|
|
1415
|
+
const request = yield oci_common_1.composeRequest({
|
|
1416
|
+
baseEndpoint: this._endpoint,
|
|
1417
|
+
defaultHeaders: this._defaultHeaders,
|
|
1418
|
+
path: "/workRequests",
|
|
1419
|
+
method: "GET",
|
|
1420
|
+
pathParams: pathParams,
|
|
1421
|
+
headerParams: headerParams,
|
|
1422
|
+
queryParams: queryParams
|
|
1423
|
+
});
|
|
1424
|
+
try {
|
|
1425
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1426
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1427
|
+
responseObject: {},
|
|
1428
|
+
body: yield response.json(),
|
|
1429
|
+
bodyKey: "workRequestSummaryCollection",
|
|
1430
|
+
bodyModel: model.WorkRequestSummaryCollection,
|
|
1431
|
+
type: "model.WorkRequestSummaryCollection",
|
|
1432
|
+
responseHeaders: [
|
|
1433
|
+
{
|
|
1434
|
+
value: response.headers.get("opc-request-id"),
|
|
1435
|
+
key: "opcRequestId",
|
|
1436
|
+
dataType: "string"
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
value: response.headers.get("opc-next-page"),
|
|
1440
|
+
key: "opcNextPage",
|
|
1441
|
+
dataType: "string"
|
|
1442
|
+
}
|
|
1443
|
+
]
|
|
1444
|
+
});
|
|
1445
|
+
return sdkResponse;
|
|
1446
|
+
}
|
|
1447
|
+
catch (err) {
|
|
1448
|
+
throw err;
|
|
1449
|
+
}
|
|
1450
|
+
});
|
|
1451
|
+
}
|
|
1452
|
+
/**
|
|
1453
|
+
* Updates the ApprovalTemplate
|
|
1454
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1455
|
+
* @param UpdateApprovalTemplateRequest
|
|
1456
|
+
* @return UpdateApprovalTemplateResponse
|
|
1457
|
+
* @throws OciError when an error occurs
|
|
1458
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/UpdateApprovalTemplate.ts.html |here} to see how to use UpdateApprovalTemplate API.
|
|
1459
|
+
*/
|
|
1460
|
+
updateApprovalTemplate(updateApprovalTemplateRequest) {
|
|
1461
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1462
|
+
if (this.logger)
|
|
1463
|
+
this.logger.debug("Calling operation LockboxClient#updateApprovalTemplate.");
|
|
1464
|
+
const operationName = "updateApprovalTemplate";
|
|
1465
|
+
const apiReferenceLink = "";
|
|
1466
|
+
const pathParams = {
|
|
1467
|
+
"{approvalTemplateId}": updateApprovalTemplateRequest.approvalTemplateId
|
|
1468
|
+
};
|
|
1469
|
+
const queryParams = {};
|
|
1470
|
+
let headerParams = {
|
|
1471
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1472
|
+
"if-match": updateApprovalTemplateRequest.ifMatch,
|
|
1473
|
+
"opc-request-id": updateApprovalTemplateRequest.opcRequestId
|
|
1474
|
+
};
|
|
1475
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1476
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateApprovalTemplateRequest.retryConfiguration, specRetryConfiguration);
|
|
1477
|
+
if (this.logger)
|
|
1478
|
+
retrier.logger = this.logger;
|
|
1479
|
+
const request = yield oci_common_1.composeRequest({
|
|
1480
|
+
baseEndpoint: this._endpoint,
|
|
1481
|
+
defaultHeaders: this._defaultHeaders,
|
|
1482
|
+
path: "/approvalTemplates/{approvalTemplateId}",
|
|
1483
|
+
method: "PUT",
|
|
1484
|
+
bodyContent: common.ObjectSerializer.serialize(updateApprovalTemplateRequest.updateApprovalTemplateDetails, "UpdateApprovalTemplateDetails", model.UpdateApprovalTemplateDetails.getJsonObj),
|
|
1485
|
+
pathParams: pathParams,
|
|
1486
|
+
headerParams: headerParams,
|
|
1487
|
+
queryParams: queryParams
|
|
1488
|
+
});
|
|
1489
|
+
try {
|
|
1490
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1491
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1492
|
+
responseObject: {},
|
|
1493
|
+
body: yield response.json(),
|
|
1494
|
+
bodyKey: "approvalTemplate",
|
|
1495
|
+
bodyModel: model.ApprovalTemplate,
|
|
1496
|
+
type: "model.ApprovalTemplate",
|
|
1497
|
+
responseHeaders: [
|
|
1498
|
+
{
|
|
1499
|
+
value: response.headers.get("opc-request-id"),
|
|
1500
|
+
key: "opcRequestId",
|
|
1501
|
+
dataType: "string"
|
|
1502
|
+
},
|
|
1503
|
+
{
|
|
1504
|
+
value: response.headers.get("etag"),
|
|
1505
|
+
key: "etag",
|
|
1506
|
+
dataType: "string"
|
|
1507
|
+
}
|
|
1508
|
+
]
|
|
1509
|
+
});
|
|
1510
|
+
return sdkResponse;
|
|
1511
|
+
}
|
|
1512
|
+
catch (err) {
|
|
1513
|
+
throw err;
|
|
1514
|
+
}
|
|
1515
|
+
});
|
|
1516
|
+
}
|
|
1517
|
+
/**
|
|
1518
|
+
* Updates the Lockbox
|
|
1519
|
+
* This operation does not retry by default if the user has not defined a retry configuration.
|
|
1520
|
+
* @param UpdateLockboxRequest
|
|
1521
|
+
* @return UpdateLockboxResponse
|
|
1522
|
+
* @throws OciError when an error occurs
|
|
1523
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.35.1/lockbox/UpdateLockbox.ts.html |here} to see how to use UpdateLockbox API.
|
|
1524
|
+
*/
|
|
1525
|
+
updateLockbox(updateLockboxRequest) {
|
|
1526
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1527
|
+
if (this.logger)
|
|
1528
|
+
this.logger.debug("Calling operation LockboxClient#updateLockbox.");
|
|
1529
|
+
const operationName = "updateLockbox";
|
|
1530
|
+
const apiReferenceLink = "";
|
|
1531
|
+
const pathParams = {
|
|
1532
|
+
"{lockboxId}": updateLockboxRequest.lockboxId
|
|
1533
|
+
};
|
|
1534
|
+
const queryParams = {};
|
|
1535
|
+
let headerParams = {
|
|
1536
|
+
"Content-Type": common.Constants.APPLICATION_JSON,
|
|
1537
|
+
"if-match": updateLockboxRequest.ifMatch,
|
|
1538
|
+
"opc-request-id": updateLockboxRequest.opcRequestId
|
|
1539
|
+
};
|
|
1540
|
+
const specRetryConfiguration = common.NoRetryConfigurationDetails;
|
|
1541
|
+
const retrier = oci_common_1.GenericRetrier.createPreferredRetrier(this._clientConfiguration ? this._clientConfiguration.retryConfiguration : undefined, updateLockboxRequest.retryConfiguration, specRetryConfiguration);
|
|
1542
|
+
if (this.logger)
|
|
1543
|
+
retrier.logger = this.logger;
|
|
1544
|
+
const request = yield oci_common_1.composeRequest({
|
|
1545
|
+
baseEndpoint: this._endpoint,
|
|
1546
|
+
defaultHeaders: this._defaultHeaders,
|
|
1547
|
+
path: "/lockboxes/{lockboxId}",
|
|
1548
|
+
method: "PUT",
|
|
1549
|
+
bodyContent: common.ObjectSerializer.serialize(updateLockboxRequest.updateLockboxDetails, "UpdateLockboxDetails", model.UpdateLockboxDetails.getJsonObj),
|
|
1550
|
+
pathParams: pathParams,
|
|
1551
|
+
headerParams: headerParams,
|
|
1552
|
+
queryParams: queryParams
|
|
1553
|
+
});
|
|
1554
|
+
try {
|
|
1555
|
+
const response = yield retrier.makeServiceCall(this._httpClient, request, this.targetService, operationName, apiReferenceLink);
|
|
1556
|
+
const sdkResponse = oci_common_1.composeResponse({
|
|
1557
|
+
responseObject: {},
|
|
1558
|
+
body: yield response.json(),
|
|
1559
|
+
bodyKey: "lockbox",
|
|
1560
|
+
bodyModel: model.Lockbox,
|
|
1561
|
+
type: "model.Lockbox",
|
|
1562
|
+
responseHeaders: [
|
|
1563
|
+
{
|
|
1564
|
+
value: response.headers.get("opc-request-id"),
|
|
1565
|
+
key: "opcRequestId",
|
|
1566
|
+
dataType: "string"
|
|
1567
|
+
},
|
|
1568
|
+
{
|
|
1569
|
+
value: response.headers.get("etag"),
|
|
1570
|
+
key: "etag",
|
|
1571
|
+
dataType: "string"
|
|
1572
|
+
}
|
|
1573
|
+
]
|
|
1574
|
+
});
|
|
1575
|
+
return sdkResponse;
|
|
1576
|
+
}
|
|
1577
|
+
catch (err) {
|
|
1578
|
+
throw err;
|
|
1579
|
+
}
|
|
1580
|
+
});
|
|
1581
|
+
}
|
|
1582
|
+
}
|
|
1583
|
+
exports.LockboxClient = LockboxClient;
|
|
1584
|
+
LockboxClient.serviceEndpointTemplate = "https://managed-access.{region}.oci.{secondLevelDomain}";
|
|
1585
|
+
LockboxClient.endpointServiceName = "";
|
|
1586
|
+
//# sourceMappingURL=client.js.map
|