oci-vault 2.78.0 → 2.79.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.d.ts +33 -11
- package/lib/client.js +131 -11
- package/lib/client.js.map +1 -1
- package/lib/model/adb-target-system-details.d.ts +30 -0
- package/lib/model/adb-target-system-details.js +54 -0
- package/lib/model/adb-target-system-details.js.map +1 -0
- package/lib/model/create-secret-details.d.ts +2 -1
- package/lib/model/create-secret-details.js +6 -0
- package/lib/model/create-secret-details.js.map +1 -1
- package/lib/model/function-target-system-details.d.ts +30 -0
- package/lib/model/function-target-system-details.js +54 -0
- package/lib/model/function-target-system-details.js.map +1 -0
- package/lib/model/index.d.ts +8 -0
- package/lib/model/index.js +9 -1
- package/lib/model/index.js.map +1 -1
- package/lib/model/rotation-config.d.ts +35 -0
- package/lib/model/rotation-config.js +57 -0
- package/lib/model/rotation-config.js.map +1 -0
- package/lib/model/secret-summary.d.ts +29 -0
- package/lib/model/secret-summary.js +30 -2
- package/lib/model/secret-summary.js.map +1 -1
- package/lib/model/secret-version-summary.d.ts +11 -0
- package/lib/model/secret-version-summary.js.map +1 -1
- package/lib/model/secret.d.ts +28 -0
- package/lib/model/secret.js +18 -0
- package/lib/model/secret.js.map +1 -1
- package/lib/model/target-system-details.d.ts +23 -0
- package/lib/model/target-system-details.js +72 -0
- package/lib/model/target-system-details.js.map +1 -0
- package/lib/model/update-secret-details.d.ts +1 -0
- package/lib/model/update-secret-details.js +6 -0
- package/lib/model/update-secret-details.js.map +1 -1
- package/lib/request/cancel-secret-deletion-request.d.ts +1 -1
- package/lib/request/cancel-secret-rotation-request.d.ts +38 -0
- package/lib/request/cancel-secret-rotation-request.js +15 -0
- package/lib/request/cancel-secret-rotation-request.js.map +1 -0
- package/lib/request/cancel-secret-version-deletion-request.d.ts +1 -1
- package/lib/request/change-secret-compartment-request.d.ts +1 -1
- package/lib/request/create-secret-request.d.ts +1 -1
- package/lib/request/get-secret-request.d.ts +1 -1
- package/lib/request/get-secret-version-request.d.ts +1 -1
- package/lib/request/index.d.ts +4 -0
- package/lib/request/index.js.map +1 -1
- package/lib/request/list-secret-versions-request.d.ts +1 -1
- package/lib/request/list-secrets-request.d.ts +1 -1
- package/lib/request/rotate-secret-request.d.ts +48 -0
- package/lib/request/rotate-secret-request.js +15 -0
- package/lib/request/rotate-secret-request.js.map +1 -0
- package/lib/request/schedule-secret-deletion-request.d.ts +1 -1
- package/lib/request/schedule-secret-version-deletion-request.d.ts +1 -1
- package/lib/request/update-secret-request.d.ts +1 -1
- package/lib/response/cancel-secret-deletion-response.d.ts +1 -2
- package/lib/response/cancel-secret-rotation-response.d.ts +19 -0
- package/lib/response/cancel-secret-rotation-response.js +15 -0
- package/lib/response/cancel-secret-rotation-response.js.map +1 -0
- package/lib/response/cancel-secret-version-deletion-response.d.ts +1 -2
- package/lib/response/change-secret-compartment-response.d.ts +1 -2
- package/lib/response/create-secret-response.d.ts +1 -2
- package/lib/response/get-secret-response.d.ts +1 -2
- package/lib/response/get-secret-version-response.d.ts +1 -2
- package/lib/response/index.d.ts +4 -0
- package/lib/response/list-secret-versions-response.d.ts +1 -2
- package/lib/response/list-secrets-response.d.ts +1 -2
- package/lib/response/rotate-secret-response.d.ts +24 -0
- package/lib/response/rotate-secret-response.js +15 -0
- package/lib/response/rotate-secret-response.js.map +1 -0
- package/lib/response/schedule-secret-deletion-response.d.ts +1 -2
- package/lib/response/schedule-secret-version-deletion-response.d.ts +1 -2
- package/lib/response/update-secret-response.d.ts +1 -2
- package/lib/vaults-waiter.d.ts +11 -1
- package/lib/vaults-waiter.js +16 -0
- package/lib/vaults-waiter.js.map +1 -1
- package/package.json +3 -3
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vault Secret Management API
|
|
3
|
+
* Use the Secret Management API to manage secrets and secret versions. For more information, see [Managing Secrets](/Content/KeyManagement/Tasks/managingsecrets.htm).
|
|
4
|
+
* OpenAPI spec version: 20180608
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Details of the OCI function that vault secret connects to.
|
|
16
|
+
*
|
|
17
|
+
*/
|
|
18
|
+
export interface FunctionTargetSystemDetails extends model.TargetSystemDetails {
|
|
19
|
+
/**
|
|
20
|
+
* The unique identifier (OCID) of the OCI Functions that vault secret connects to.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
"functionId": string;
|
|
24
|
+
"targetSystemType": string;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace FunctionTargetSystemDetails {
|
|
27
|
+
function getJsonObj(obj: FunctionTargetSystemDetails, isParentJsonObj?: boolean): object;
|
|
28
|
+
const targetSystemType = "FUNCTION";
|
|
29
|
+
function getDeserializedJsonObj(obj: FunctionTargetSystemDetails, isParentJsonObj?: boolean): object;
|
|
30
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Vault Secret Management API
|
|
4
|
+
* Use the Secret Management API to manage secrets and secret versions. For more information, see [Managing Secrets](/Content/KeyManagement/Tasks/managingsecrets.htm).
|
|
5
|
+
* OpenAPI spec version: 20180608
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.FunctionTargetSystemDetails = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var FunctionTargetSystemDetails;
|
|
37
|
+
(function (FunctionTargetSystemDetails) {
|
|
38
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
40
|
+
? obj
|
|
41
|
+
: model.TargetSystemDetails.getJsonObj(obj))), {});
|
|
42
|
+
return jsonObj;
|
|
43
|
+
}
|
|
44
|
+
FunctionTargetSystemDetails.getJsonObj = getJsonObj;
|
|
45
|
+
FunctionTargetSystemDetails.targetSystemType = "FUNCTION";
|
|
46
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
47
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
48
|
+
? obj
|
|
49
|
+
: model.TargetSystemDetails.getDeserializedJsonObj(obj))), {});
|
|
50
|
+
return jsonObj;
|
|
51
|
+
}
|
|
52
|
+
FunctionTargetSystemDetails.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
53
|
+
})(FunctionTargetSystemDetails = exports.FunctionTargetSystemDetails || (exports.FunctionTargetSystemDetails = {}));
|
|
54
|
+
//# sourceMappingURL=function-target-system-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"function-target-system-details.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/function-target-system-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAiBlC,IAAiB,2BAA2B,CAyB3C;AAzBD,WAAiB,2BAA2B;IAC1C,SAAgB,UAAU,CAAC,GAAgC,EAAE,eAAyB;QACpF,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,GAAG,CAAiC,CAAC,GAC5E,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,sCAAU,aASzB,CAAA;IACY,4CAAgB,GAAG,UAAU,CAAC;IAC3C,SAAgB,sBAAsB,CACpC,GAAgC,EAChC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,GAAG,CAAiC,CAAC,GACxF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,kDAAsB,yBAYrC,CAAA;AACH,CAAC,EAzBgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAyB3C"}
|
package/lib/model/index.d.ts
CHANGED
|
@@ -14,6 +14,8 @@ import * as ChangeSecretCompartmentDetails from "./change-secret-compartment-det
|
|
|
14
14
|
export import ChangeSecretCompartmentDetails = ChangeSecretCompartmentDetails.ChangeSecretCompartmentDetails;
|
|
15
15
|
import * as CreateSecretDetails from "./create-secret-details";
|
|
16
16
|
export import CreateSecretDetails = CreateSecretDetails.CreateSecretDetails;
|
|
17
|
+
import * as RotationConfig from "./rotation-config";
|
|
18
|
+
export import RotationConfig = RotationConfig.RotationConfig;
|
|
17
19
|
import * as ScheduleSecretDeletionDetails from "./schedule-secret-deletion-details";
|
|
18
20
|
export import ScheduleSecretDeletionDetails = ScheduleSecretDeletionDetails.ScheduleSecretDeletionDetails;
|
|
19
21
|
import * as ScheduleSecretVersionDeletionDetails from "./schedule-secret-version-deletion-details";
|
|
@@ -30,10 +32,16 @@ import * as SecretVersion from "./secret-version";
|
|
|
30
32
|
export import SecretVersion = SecretVersion.SecretVersion;
|
|
31
33
|
import * as SecretVersionSummary from "./secret-version-summary";
|
|
32
34
|
export import SecretVersionSummary = SecretVersionSummary.SecretVersionSummary;
|
|
35
|
+
import * as TargetSystemDetails from "./target-system-details";
|
|
36
|
+
export import TargetSystemDetails = TargetSystemDetails.TargetSystemDetails;
|
|
33
37
|
import * as UpdateSecretDetails from "./update-secret-details";
|
|
34
38
|
export import UpdateSecretDetails = UpdateSecretDetails.UpdateSecretDetails;
|
|
39
|
+
import * as AdbTargetSystemDetails from "./adb-target-system-details";
|
|
40
|
+
export import AdbTargetSystemDetails = AdbTargetSystemDetails.AdbTargetSystemDetails;
|
|
35
41
|
import * as Base64SecretContentDetails from "./base64-secret-content-details";
|
|
36
42
|
export import Base64SecretContentDetails = Base64SecretContentDetails.Base64SecretContentDetails;
|
|
43
|
+
import * as FunctionTargetSystemDetails from "./function-target-system-details";
|
|
44
|
+
export import FunctionTargetSystemDetails = FunctionTargetSystemDetails.FunctionTargetSystemDetails;
|
|
37
45
|
import * as SecretExpiryRule from "./secret-expiry-rule";
|
|
38
46
|
export import SecretExpiryRule = SecretExpiryRule.SecretExpiryRule;
|
|
39
47
|
import * as SecretReuseRule from "./secret-reuse-rule";
|
package/lib/model/index.js
CHANGED
|
@@ -31,11 +31,13 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
31
31
|
return result;
|
|
32
32
|
};
|
|
33
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
-
exports.SecretReuseRule = exports.SecretExpiryRule = exports.Base64SecretContentDetails = exports.UpdateSecretDetails = exports.SecretVersionSummary = exports.SecretVersion = exports.SecretSummary = exports.SecretRule = exports.SecretContentDetails = exports.Secret = exports.ScheduleSecretVersionDeletionDetails = exports.ScheduleSecretDeletionDetails = exports.CreateSecretDetails = exports.ChangeSecretCompartmentDetails = void 0;
|
|
34
|
+
exports.SecretReuseRule = exports.SecretExpiryRule = exports.FunctionTargetSystemDetails = exports.Base64SecretContentDetails = exports.AdbTargetSystemDetails = exports.UpdateSecretDetails = exports.TargetSystemDetails = exports.SecretVersionSummary = exports.SecretVersion = exports.SecretSummary = exports.SecretRule = exports.SecretContentDetails = exports.Secret = exports.ScheduleSecretVersionDeletionDetails = exports.ScheduleSecretDeletionDetails = exports.RotationConfig = exports.CreateSecretDetails = exports.ChangeSecretCompartmentDetails = void 0;
|
|
35
35
|
const ChangeSecretCompartmentDetails = __importStar(require("./change-secret-compartment-details"));
|
|
36
36
|
exports.ChangeSecretCompartmentDetails = ChangeSecretCompartmentDetails.ChangeSecretCompartmentDetails;
|
|
37
37
|
const CreateSecretDetails = __importStar(require("./create-secret-details"));
|
|
38
38
|
exports.CreateSecretDetails = CreateSecretDetails.CreateSecretDetails;
|
|
39
|
+
const RotationConfig = __importStar(require("./rotation-config"));
|
|
40
|
+
exports.RotationConfig = RotationConfig.RotationConfig;
|
|
39
41
|
const ScheduleSecretDeletionDetails = __importStar(require("./schedule-secret-deletion-details"));
|
|
40
42
|
exports.ScheduleSecretDeletionDetails = ScheduleSecretDeletionDetails.ScheduleSecretDeletionDetails;
|
|
41
43
|
const ScheduleSecretVersionDeletionDetails = __importStar(require("./schedule-secret-version-deletion-details"));
|
|
@@ -52,10 +54,16 @@ const SecretVersion = __importStar(require("./secret-version"));
|
|
|
52
54
|
exports.SecretVersion = SecretVersion.SecretVersion;
|
|
53
55
|
const SecretVersionSummary = __importStar(require("./secret-version-summary"));
|
|
54
56
|
exports.SecretVersionSummary = SecretVersionSummary.SecretVersionSummary;
|
|
57
|
+
const TargetSystemDetails = __importStar(require("./target-system-details"));
|
|
58
|
+
exports.TargetSystemDetails = TargetSystemDetails.TargetSystemDetails;
|
|
55
59
|
const UpdateSecretDetails = __importStar(require("./update-secret-details"));
|
|
56
60
|
exports.UpdateSecretDetails = UpdateSecretDetails.UpdateSecretDetails;
|
|
61
|
+
const AdbTargetSystemDetails = __importStar(require("./adb-target-system-details"));
|
|
62
|
+
exports.AdbTargetSystemDetails = AdbTargetSystemDetails.AdbTargetSystemDetails;
|
|
57
63
|
const Base64SecretContentDetails = __importStar(require("./base64-secret-content-details"));
|
|
58
64
|
exports.Base64SecretContentDetails = Base64SecretContentDetails.Base64SecretContentDetails;
|
|
65
|
+
const FunctionTargetSystemDetails = __importStar(require("./function-target-system-details"));
|
|
66
|
+
exports.FunctionTargetSystemDetails = FunctionTargetSystemDetails.FunctionTargetSystemDetails;
|
|
59
67
|
const SecretExpiryRule = __importStar(require("./secret-expiry-rule"));
|
|
60
68
|
exports.SecretExpiryRule = SecretExpiryRule.SecretExpiryRule;
|
|
61
69
|
const SecretReuseRule = __importStar(require("./secret-reuse-rule"));
|
package/lib/model/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,oGAAsF;AACxE,QAAA,8BAA8B,GAAG,8BAA8B,CAAC,8BAA8B,CAAC;AAC7G,6EAA+D;AACjD,QAAA,mBAAmB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC;AAC5E,kGAAoF;AACtE,QAAA,6BAA6B,GAAG,6BAA6B,CAAC,6BAA6B,CAAC;AAC1G,iHAAmG;AACrF,QAAA,oCAAoC,GAAG,oCAAoC,CAAC,oCAAoC,CAAC;AAC/H,iDAAmC;AACrB,QAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACrC,+EAAiE;AACnD,QAAA,oBAAoB,GAAG,oBAAoB,CAAC,oBAAoB,CAAC;AAC/E,0DAA4C;AAC9B,QAAA,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;AACjD,gEAAkD;AACpC,QAAA,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC;AAC1D,gEAAkD;AACpC,QAAA,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC;AAC1D,+EAAiE;AACnD,QAAA,oBAAoB,GAAG,oBAAoB,CAAC,oBAAoB,CAAC;AAC/E,6EAA+D;AACjD,QAAA,mBAAmB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC;AAE5E,4FAA8E;AAChE,QAAA,0BAA0B,GAAG,0BAA0B,CAAC,0BAA0B,CAAC;AACjG,uEAAyD;AAC3C,QAAA,gBAAgB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC;AACnE,qEAAuD;AACzC,QAAA,eAAe,GAAG,eAAe,CAAC,eAAe,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,oGAAsF;AACxE,QAAA,8BAA8B,GAAG,8BAA8B,CAAC,8BAA8B,CAAC;AAC7G,6EAA+D;AACjD,QAAA,mBAAmB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC;AAC5E,kEAAoD;AACtC,QAAA,cAAc,GAAG,cAAc,CAAC,cAAc,CAAC;AAC7D,kGAAoF;AACtE,QAAA,6BAA6B,GAAG,6BAA6B,CAAC,6BAA6B,CAAC;AAC1G,iHAAmG;AACrF,QAAA,oCAAoC,GAAG,oCAAoC,CAAC,oCAAoC,CAAC;AAC/H,iDAAmC;AACrB,QAAA,MAAM,GAAG,MAAM,CAAC,MAAM,CAAC;AACrC,+EAAiE;AACnD,QAAA,oBAAoB,GAAG,oBAAoB,CAAC,oBAAoB,CAAC;AAC/E,0DAA4C;AAC9B,QAAA,UAAU,GAAG,UAAU,CAAC,UAAU,CAAC;AACjD,gEAAkD;AACpC,QAAA,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC;AAC1D,gEAAkD;AACpC,QAAA,aAAa,GAAG,aAAa,CAAC,aAAa,CAAC;AAC1D,+EAAiE;AACnD,QAAA,oBAAoB,GAAG,oBAAoB,CAAC,oBAAoB,CAAC;AAC/E,6EAA+D;AACjD,QAAA,mBAAmB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC;AAC5E,6EAA+D;AACjD,QAAA,mBAAmB,GAAG,mBAAmB,CAAC,mBAAmB,CAAC;AAE5E,oFAAsE;AACxD,QAAA,sBAAsB,GAAG,sBAAsB,CAAC,sBAAsB,CAAC;AACrF,4FAA8E;AAChE,QAAA,0BAA0B,GAAG,0BAA0B,CAAC,0BAA0B,CAAC;AACjG,8FAAgF;AAClE,QAAA,2BAA2B,GAAG,2BAA2B,CAAC,2BAA2B,CAAC;AACpG,uEAAyD;AAC3C,QAAA,gBAAgB,GAAG,gBAAgB,CAAC,gBAAgB,CAAC;AACnE,qEAAuD;AACzC,QAAA,eAAe,GAAG,eAAe,CAAC,eAAe,CAAC"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vault Secret Management API
|
|
3
|
+
* Use the Secret Management API to manage secrets and secret versions. For more information, see [Managing Secrets](/Content/KeyManagement/Tasks/managingsecrets.htm).
|
|
4
|
+
* OpenAPI spec version: 20180608
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
import * as model from "../model";
|
|
14
|
+
/**
|
|
15
|
+
* Defines the frequency of the rotation and the information about the target system
|
|
16
|
+
*/
|
|
17
|
+
export interface RotationConfig {
|
|
18
|
+
/**
|
|
19
|
+
* The time interval that indicates the frequency for rotating secret data, as described in ISO 8601 format.
|
|
20
|
+
* The minimum value is 1 day and maximum value is 360 days.
|
|
21
|
+
* For example, if you want to set the time interval for rotating a secret data as 30 days, the duration is expressed as \"P30D.\"
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
"rotationInterval"?: string;
|
|
25
|
+
"targetSystemDetails": model.AdbTargetSystemDetails | model.FunctionTargetSystemDetails;
|
|
26
|
+
/**
|
|
27
|
+
* Enables auto rotation, when set to true rotationInterval must be set.
|
|
28
|
+
*
|
|
29
|
+
*/
|
|
30
|
+
"isScheduledRotationEnabled"?: boolean;
|
|
31
|
+
}
|
|
32
|
+
export declare namespace RotationConfig {
|
|
33
|
+
function getJsonObj(obj: RotationConfig): object;
|
|
34
|
+
function getDeserializedJsonObj(obj: RotationConfig): object;
|
|
35
|
+
}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Vault Secret Management API
|
|
4
|
+
* Use the Secret Management API to manage secrets and secret versions. For more information, see [Managing Secrets](/Content/KeyManagement/Tasks/managingsecrets.htm).
|
|
5
|
+
* OpenAPI spec version: 20180608
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.RotationConfig = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var RotationConfig;
|
|
37
|
+
(function (RotationConfig) {
|
|
38
|
+
function getJsonObj(obj) {
|
|
39
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
40
|
+
"targetSystemDetails": obj.targetSystemDetails
|
|
41
|
+
? model.TargetSystemDetails.getJsonObj(obj.targetSystemDetails)
|
|
42
|
+
: undefined
|
|
43
|
+
});
|
|
44
|
+
return jsonObj;
|
|
45
|
+
}
|
|
46
|
+
RotationConfig.getJsonObj = getJsonObj;
|
|
47
|
+
function getDeserializedJsonObj(obj) {
|
|
48
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
49
|
+
"targetSystemDetails": obj.targetSystemDetails
|
|
50
|
+
? model.TargetSystemDetails.getDeserializedJsonObj(obj.targetSystemDetails)
|
|
51
|
+
: undefined
|
|
52
|
+
});
|
|
53
|
+
return jsonObj;
|
|
54
|
+
}
|
|
55
|
+
RotationConfig.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
56
|
+
})(RotationConfig = exports.RotationConfig || (exports.RotationConfig = {}));
|
|
57
|
+
//# sourceMappingURL=rotation-config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rotation-config.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/rotation-config.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAsBlC,IAAiB,cAAc,CAyB9B;AAzBD,WAAiB,cAAc;IAC7B,SAAgB,UAAU,CAAC,GAAmB;QAC5C,MAAM,OAAO,mCACR,GAAG,GACH;YACD,qBAAqB,EAAE,GAAG,CAAC,mBAAmB;gBAC5C,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,UAAU,CAAC,GAAG,CAAC,mBAAmB,CAAC;gBAC/D,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,yBAAU,aAWzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAmB;QACxD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,qBAAqB,EAAE,GAAG,CAAC,mBAAmB;gBAC5C,CAAC,CAAC,KAAK,CAAC,mBAAmB,CAAC,sBAAsB,CAAC,GAAG,CAAC,mBAAmB,CAAC;gBAC3E,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,qCAAsB,yBAWrC,CAAA;AACH,CAAC,EAzBgB,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAyB9B"}
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
11
11
|
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
12
|
*/
|
|
13
|
+
import * as model from "../model";
|
|
13
14
|
/**
|
|
14
15
|
* The details of the secret, excluding the contents of the secret.
|
|
15
16
|
*/
|
|
@@ -42,6 +43,17 @@ export interface SecretSummary {
|
|
|
42
43
|
"freeformTags"?: {
|
|
43
44
|
[key: string]: string;
|
|
44
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* System tags for this resource. Each key is predefined and scoped to a namespace.
|
|
48
|
+
* <p>
|
|
49
|
+
Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}}
|
|
50
|
+
*
|
|
51
|
+
*/
|
|
52
|
+
"systemTags"?: {
|
|
53
|
+
[key: string]: {
|
|
54
|
+
[key: string]: any;
|
|
55
|
+
};
|
|
56
|
+
};
|
|
45
57
|
/**
|
|
46
58
|
* The OCID of the master encryption key that is used to encrypt the secret. You must specify a symmetric key to encrypt the secret during import to the vault. You cannot encrypt secrets with asymmetric keys. Furthermore, the key must exist in the vault that you specify.
|
|
47
59
|
*
|
|
@@ -59,6 +71,23 @@ export interface SecretSummary {
|
|
|
59
71
|
* The current lifecycle state of the secret.
|
|
60
72
|
*/
|
|
61
73
|
"lifecycleState": SecretSummary.LifecycleState;
|
|
74
|
+
"rotationConfig"?: model.RotationConfig;
|
|
75
|
+
/**
|
|
76
|
+
* Additional information about the status of the secret rotation
|
|
77
|
+
*/
|
|
78
|
+
"rotationStatus"?: string;
|
|
79
|
+
/**
|
|
80
|
+
* A property indicating when the secret was last rotated successfully, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
|
81
|
+
* Example: {@code 2019-04-03T21:10:29.600Z}
|
|
82
|
+
*
|
|
83
|
+
*/
|
|
84
|
+
"lastRotationTime"?: Date;
|
|
85
|
+
/**
|
|
86
|
+
* A property indicating when the secret is scheduled to be rotated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
|
87
|
+
* Example: {@code 2019-04-03T21:10:29.600Z}
|
|
88
|
+
*
|
|
89
|
+
*/
|
|
90
|
+
"nextRotationTime"?: Date;
|
|
62
91
|
/**
|
|
63
92
|
* The name of the secret.
|
|
64
93
|
*/
|
|
@@ -11,8 +11,28 @@
|
|
|
11
11
|
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
12
12
|
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
13
|
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
14
33
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
34
|
exports.SecretSummary = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
16
36
|
var SecretSummary;
|
|
17
37
|
(function (SecretSummary) {
|
|
18
38
|
let LifecycleState;
|
|
@@ -33,12 +53,20 @@ var SecretSummary;
|
|
|
33
53
|
LifecycleState["UnknownValue"] = "UNKNOWN_VALUE";
|
|
34
54
|
})(LifecycleState = SecretSummary.LifecycleState || (SecretSummary.LifecycleState = {}));
|
|
35
55
|
function getJsonObj(obj) {
|
|
36
|
-
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
56
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
57
|
+
"rotationConfig": obj.rotationConfig
|
|
58
|
+
? model.RotationConfig.getJsonObj(obj.rotationConfig)
|
|
59
|
+
: undefined
|
|
60
|
+
});
|
|
37
61
|
return jsonObj;
|
|
38
62
|
}
|
|
39
63
|
SecretSummary.getJsonObj = getJsonObj;
|
|
40
64
|
function getDeserializedJsonObj(obj) {
|
|
41
|
-
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
65
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
66
|
+
"rotationConfig": obj.rotationConfig
|
|
67
|
+
? model.RotationConfig.getDeserializedJsonObj(obj.rotationConfig)
|
|
68
|
+
: undefined
|
|
69
|
+
});
|
|
42
70
|
return jsonObj;
|
|
43
71
|
}
|
|
44
72
|
SecretSummary.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret-summary.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/secret-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG
|
|
1
|
+
{"version":3,"file":"secret-summary.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/secret-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAkGlC,IAAiB,aAAa,CA0C7B;AA1CD,WAAiB,aAAa;IAC5B,IAAY,cAeX;IAfD,WAAY,cAAc;QACxB,uCAAqB,CAAA;QACrB,mCAAiB,CAAA;QACjB,uCAAqB,CAAA;QACrB,uCAAqB,CAAA;QACrB,qCAAmB,CAAA;QACnB,4DAA0C,CAAA;QAC1C,sDAAoC,CAAA;QACpC,4DAA0C,CAAA;QAC1C,mCAAiB,CAAA;QACjB;;;WAGG;QACH,gDAA8B,CAAA;IAChC,CAAC,EAfW,cAAc,GAAd,4BAAc,KAAd,4BAAc,QAezB;IAED,SAAgB,UAAU,CAAC,GAAkB;QAC3C,MAAM,OAAO,mCACR,GAAG,GACH;YACD,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC;gBACrD,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,wBAAU,aAWzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAkB;QACvD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,sBAAsB,CAAC,GAAG,CAAC,cAAc,CAAC;gBACjE,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAXe,oCAAsB,yBAWrC,CAAA;AACH,CAAC,EA1CgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QA0C7B"}
|
|
@@ -59,6 +59,17 @@ export interface SecretVersionSummary {
|
|
|
59
59
|
* The version number of the secret. Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
60
60
|
*/
|
|
61
61
|
"versionNumber": number;
|
|
62
|
+
/**
|
|
63
|
+
* System tags for this resource. Each key is predefined and scoped to a namespace.
|
|
64
|
+
* <p>
|
|
65
|
+
Example: {@code {\"orcl-cloud\": {\"free-tier-retained\": \"true\"}}}
|
|
66
|
+
*
|
|
67
|
+
*/
|
|
68
|
+
"systemTags"?: {
|
|
69
|
+
[key: string]: {
|
|
70
|
+
[key: string]: any;
|
|
71
|
+
};
|
|
72
|
+
};
|
|
62
73
|
}
|
|
63
74
|
export declare namespace SecretVersionSummary {
|
|
64
75
|
enum ContentType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret-version-summary.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/secret-version-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;
|
|
1
|
+
{"version":3,"file":"secret-version-summary.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/secret-version-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AA+DH,IAAiB,oBAAoB,CAiCpC;AAjCD,WAAiB,oBAAoB;IACnC,IAAY,WAOX;IAPD,WAAY,WAAW;QACrB,gCAAiB,CAAA;QACjB;;;WAGG;QACH,6CAA8B,CAAA;IAChC,CAAC,EAPW,WAAW,GAAX,gCAAW,KAAX,gCAAW,QAOtB;IAED,IAAY,MAWX;IAXD,WAAY,MAAM;QAChB,6BAAmB,CAAA;QACnB,6BAAmB,CAAA;QACnB,2BAAiB,CAAA;QACjB,+BAAqB,CAAA;QACrB,mCAAyB,CAAA;QACzB;;;WAGG;QACH,wCAA8B,CAAA;IAChC,CAAC,EAXW,MAAM,GAAN,2BAAM,KAAN,2BAAM,QAWjB;IAED,SAAgB,UAAU,CAAC,GAAyB;QAClD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,+BAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAyB;QAC9D,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,2CAAsB,yBAIrC,CAAA;AACH,CAAC,EAjCgB,oBAAoB,GAApB,4BAAoB,KAApB,4BAAoB,QAiCpC"}
|
package/lib/model/secret.d.ts
CHANGED
|
@@ -73,6 +73,23 @@ export interface Secret {
|
|
|
73
73
|
"metadata"?: {
|
|
74
74
|
[key: string]: any;
|
|
75
75
|
};
|
|
76
|
+
"rotationConfig"?: model.RotationConfig;
|
|
77
|
+
/**
|
|
78
|
+
* Additional information about the status of the secret rotation
|
|
79
|
+
*/
|
|
80
|
+
"rotationStatus"?: Secret.RotationStatus;
|
|
81
|
+
/**
|
|
82
|
+
* A property indicating when the secret was last rotated successfully, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
|
83
|
+
* Example: {@code 2019-04-03T21:10:29.600Z}
|
|
84
|
+
*
|
|
85
|
+
*/
|
|
86
|
+
"lastRotationTime"?: Date;
|
|
87
|
+
/**
|
|
88
|
+
* A property indicating when the secret is scheduled to be rotated, expressed in [RFC 3339](https://tools.ietf.org/html/rfc3339) timestamp format.
|
|
89
|
+
* Example: {@code 2019-04-03T21:10:29.600Z}
|
|
90
|
+
*
|
|
91
|
+
*/
|
|
92
|
+
"nextRotationTime"?: Date;
|
|
76
93
|
/**
|
|
77
94
|
* The user-friendly name of the secret. Avoid entering confidential information.
|
|
78
95
|
*/
|
|
@@ -121,6 +138,17 @@ export declare namespace Secret {
|
|
|
121
138
|
*/
|
|
122
139
|
UnknownValue = "UNKNOWN_VALUE"
|
|
123
140
|
}
|
|
141
|
+
enum RotationStatus {
|
|
142
|
+
InProgress = "IN_PROGRESS",
|
|
143
|
+
Scheduled = "SCHEDULED",
|
|
144
|
+
NotEnabled = "NOT_ENABLED",
|
|
145
|
+
Cancelling = "CANCELLING",
|
|
146
|
+
/**
|
|
147
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
148
|
+
* version of the SDK.
|
|
149
|
+
*/
|
|
150
|
+
UnknownValue = "UNKNOWN_VALUE"
|
|
151
|
+
}
|
|
124
152
|
function getJsonObj(obj: Secret): object;
|
|
125
153
|
function getDeserializedJsonObj(obj: Secret): object;
|
|
126
154
|
}
|
package/lib/model/secret.js
CHANGED
|
@@ -52,8 +52,23 @@ var Secret;
|
|
|
52
52
|
*/
|
|
53
53
|
LifecycleState["UnknownValue"] = "UNKNOWN_VALUE";
|
|
54
54
|
})(LifecycleState = Secret.LifecycleState || (Secret.LifecycleState = {}));
|
|
55
|
+
let RotationStatus;
|
|
56
|
+
(function (RotationStatus) {
|
|
57
|
+
RotationStatus["InProgress"] = "IN_PROGRESS";
|
|
58
|
+
RotationStatus["Scheduled"] = "SCHEDULED";
|
|
59
|
+
RotationStatus["NotEnabled"] = "NOT_ENABLED";
|
|
60
|
+
RotationStatus["Cancelling"] = "CANCELLING";
|
|
61
|
+
/**
|
|
62
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
63
|
+
* version of the SDK.
|
|
64
|
+
*/
|
|
65
|
+
RotationStatus["UnknownValue"] = "UNKNOWN_VALUE";
|
|
66
|
+
})(RotationStatus = Secret.RotationStatus || (Secret.RotationStatus = {}));
|
|
55
67
|
function getJsonObj(obj) {
|
|
56
68
|
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
69
|
+
"rotationConfig": obj.rotationConfig
|
|
70
|
+
? model.RotationConfig.getJsonObj(obj.rotationConfig)
|
|
71
|
+
: undefined,
|
|
57
72
|
"secretRules": obj.secretRules
|
|
58
73
|
? obj.secretRules.map(item => {
|
|
59
74
|
return model.SecretRule.getJsonObj(item);
|
|
@@ -65,6 +80,9 @@ var Secret;
|
|
|
65
80
|
Secret.getJsonObj = getJsonObj;
|
|
66
81
|
function getDeserializedJsonObj(obj) {
|
|
67
82
|
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
83
|
+
"rotationConfig": obj.rotationConfig
|
|
84
|
+
? model.RotationConfig.getDeserializedJsonObj(obj.rotationConfig)
|
|
85
|
+
: undefined,
|
|
68
86
|
"secretRules": obj.secretRules
|
|
69
87
|
? obj.secretRules.map(item => {
|
|
70
88
|
return model.SecretRule.getDeserializedJsonObj(item);
|
package/lib/model/secret.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/secret.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;
|
|
1
|
+
{"version":3,"file":"secret.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/secret.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AA0GlC,IAAiB,MAAM,CAkEtB;AAlED,WAAiB,MAAM;IACrB,IAAY,cAeX;IAfD,WAAY,cAAc;QACxB,uCAAqB,CAAA;QACrB,mCAAiB,CAAA;QACjB,uCAAqB,CAAA;QACrB,uCAAqB,CAAA;QACrB,qCAAmB,CAAA;QACnB,4DAA0C,CAAA;QAC1C,sDAAoC,CAAA;QACpC,4DAA0C,CAAA;QAC1C,mCAAiB,CAAA;QACjB;;;WAGG;QACH,gDAA8B,CAAA;IAChC,CAAC,EAfW,cAAc,GAAd,qBAAc,KAAd,qBAAc,QAezB;IAED,IAAY,cAUX;IAVD,WAAY,cAAc;QACxB,4CAA0B,CAAA;QAC1B,yCAAuB,CAAA;QACvB,4CAA0B,CAAA;QAC1B,2CAAyB,CAAA;QACzB;;;WAGG;QACH,gDAA8B,CAAA;IAChC,CAAC,EAVW,cAAc,GAAd,qBAAc,KAAd,qBAAc,QAUzB;IAED,SAAgB,UAAU,CAAC,GAAW;QACpC,MAAM,OAAO,mCACR,GAAG,GACH;YACD,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC;gBACrD,CAAC,CAAC,SAAS;YAEb,aAAa,EAAE,GAAG,CAAC,WAAW;gBAC5B,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACzB,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC3C,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAjBe,iBAAU,aAiBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAW;QAChD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,sBAAsB,CAAC,GAAG,CAAC,cAAc,CAAC;gBACjE,CAAC,CAAC,SAAS;YAEb,aAAa,EAAE,GAAG,CAAC,WAAW;gBAC5B,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACzB,OAAO,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACvD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAjBe,6BAAsB,yBAiBrC,CAAA;AACH,CAAC,EAlEgB,MAAM,GAAN,cAAM,KAAN,cAAM,QAkEtB"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Vault Secret Management API
|
|
3
|
+
* Use the Secret Management API to manage secrets and secret versions. For more information, see [Managing Secrets](/Content/KeyManagement/Tasks/managingsecrets.htm).
|
|
4
|
+
* OpenAPI spec version: 20180608
|
|
5
|
+
*
|
|
6
|
+
*
|
|
7
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
8
|
+
* Do not edit the class manually.
|
|
9
|
+
*
|
|
10
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
11
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
12
|
+
*/
|
|
13
|
+
/**
|
|
14
|
+
* The TargetSystemDetails provides the targetSystem type and type-specific connection metadata
|
|
15
|
+
*
|
|
16
|
+
*/
|
|
17
|
+
export interface TargetSystemDetails {
|
|
18
|
+
"targetSystemType": string;
|
|
19
|
+
}
|
|
20
|
+
export declare namespace TargetSystemDetails {
|
|
21
|
+
function getJsonObj(obj: TargetSystemDetails): object;
|
|
22
|
+
function getDeserializedJsonObj(obj: TargetSystemDetails): object;
|
|
23
|
+
}
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Vault Secret Management API
|
|
4
|
+
* Use the Secret Management API to manage secrets and secret versions. For more information, see [Managing Secrets](/Content/KeyManagement/Tasks/managingsecrets.htm).
|
|
5
|
+
* OpenAPI spec version: 20180608
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OracleSDKGenerator.
|
|
9
|
+
* Do not edit the class manually.
|
|
10
|
+
*
|
|
11
|
+
* Copyright (c) 2020, 2024, Oracle and/or its affiliates. All rights reserved.
|
|
12
|
+
* This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license.
|
|
13
|
+
*/
|
|
14
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
15
|
+
if (k2 === undefined) k2 = k;
|
|
16
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
27
|
+
if (mod && mod.__esModule) return mod;
|
|
28
|
+
var result = {};
|
|
29
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
30
|
+
__setModuleDefault(result, mod);
|
|
31
|
+
return result;
|
|
32
|
+
};
|
|
33
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
34
|
+
exports.TargetSystemDetails = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
const common = require("oci-common");
|
|
37
|
+
var TargetSystemDetails;
|
|
38
|
+
(function (TargetSystemDetails) {
|
|
39
|
+
function getJsonObj(obj) {
|
|
40
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
41
|
+
if (obj && "targetSystemType" in obj && obj.targetSystemType) {
|
|
42
|
+
switch (obj.targetSystemType) {
|
|
43
|
+
case "ADB":
|
|
44
|
+
return model.AdbTargetSystemDetails.getJsonObj(jsonObj, true);
|
|
45
|
+
case "FUNCTION":
|
|
46
|
+
return model.FunctionTargetSystemDetails.getJsonObj(jsonObj, true);
|
|
47
|
+
default:
|
|
48
|
+
if (common.LOG.logger)
|
|
49
|
+
common.LOG.logger.info(`Unknown value for: ${obj.targetSystemType}`);
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
return jsonObj;
|
|
53
|
+
}
|
|
54
|
+
TargetSystemDetails.getJsonObj = getJsonObj;
|
|
55
|
+
function getDeserializedJsonObj(obj) {
|
|
56
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
57
|
+
if (obj && "targetSystemType" in obj && obj.targetSystemType) {
|
|
58
|
+
switch (obj.targetSystemType) {
|
|
59
|
+
case "ADB":
|
|
60
|
+
return model.AdbTargetSystemDetails.getDeserializedJsonObj(jsonObj, true);
|
|
61
|
+
case "FUNCTION":
|
|
62
|
+
return model.FunctionTargetSystemDetails.getDeserializedJsonObj(jsonObj, true);
|
|
63
|
+
default:
|
|
64
|
+
if (common.LOG.logger)
|
|
65
|
+
common.LOG.logger.info(`Unknown value for: ${obj.targetSystemType}`);
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
return jsonObj;
|
|
69
|
+
}
|
|
70
|
+
TargetSystemDetails.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
71
|
+
})(TargetSystemDetails = exports.TargetSystemDetails || (exports.TargetSystemDetails = {}));
|
|
72
|
+
//# sourceMappingURL=target-system-details.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"target-system-details.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/target-system-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAUtC,IAAiB,mBAAmB,CA6CnC;AA7CD,WAAiB,mBAAmB;IAClC,SAAgB,UAAU,CAAC,GAAwB;QACjD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,kBAAkB,IAAI,GAAG,IAAI,GAAG,CAAC,gBAAgB,EAAE;YAC5D,QAAQ,GAAG,CAAC,gBAAgB,EAAE;gBAC5B,KAAK,KAAK;oBACR,OAAO,KAAK,CAAC,sBAAsB,CAAC,UAAU,CACL,OAAQ,EAC/C,IAAI,CACL,CAAC;gBACJ,KAAK,UAAU;oBACb,OAAO,KAAK,CAAC,2BAA2B,CAAC,UAAU,CACL,OAAQ,EACpD,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBACnB,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,gBAAgB,EAAE,CAAC,CAAC;aAC1E;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IArBe,8BAAU,aAqBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAwB;QAC7D,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,kBAAkB,IAAI,GAAG,IAAI,GAAG,CAAC,gBAAgB,EAAE;YAC5D,QAAQ,GAAG,CAAC,gBAAgB,EAAE;gBAC5B,KAAK,KAAK;oBACR,OAAO,KAAK,CAAC,sBAAsB,CAAC,sBAAsB,CACjB,OAAQ,EAC/C,IAAI,CACL,CAAC;gBACJ,KAAK,UAAU;oBACb,OAAO,KAAK,CAAC,2BAA2B,CAAC,sBAAsB,CACjB,OAAQ,EACpD,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBACnB,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,gBAAgB,EAAE,CAAC,CAAC;aAC1E;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IArBe,0CAAsB,yBAqBrC,CAAA;AACH,CAAC,EA7CgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QA6CnC"}
|
|
@@ -40,6 +40,9 @@ var UpdateSecretDetails;
|
|
|
40
40
|
"secretContent": obj.secretContent
|
|
41
41
|
? model.SecretContentDetails.getJsonObj(obj.secretContent)
|
|
42
42
|
: undefined,
|
|
43
|
+
"rotationConfig": obj.rotationConfig
|
|
44
|
+
? model.RotationConfig.getJsonObj(obj.rotationConfig)
|
|
45
|
+
: undefined,
|
|
43
46
|
"secretRules": obj.secretRules
|
|
44
47
|
? obj.secretRules.map(item => {
|
|
45
48
|
return model.SecretRule.getJsonObj(item);
|
|
@@ -54,6 +57,9 @@ var UpdateSecretDetails;
|
|
|
54
57
|
"secretContent": obj.secretContent
|
|
55
58
|
? model.SecretContentDetails.getDeserializedJsonObj(obj.secretContent)
|
|
56
59
|
: undefined,
|
|
60
|
+
"rotationConfig": obj.rotationConfig
|
|
61
|
+
? model.RotationConfig.getDeserializedJsonObj(obj.rotationConfig)
|
|
62
|
+
: undefined,
|
|
57
63
|
"secretRules": obj.secretRules
|
|
58
64
|
? obj.secretRules.map(item => {
|
|
59
65
|
return model.SecretRule.getDeserializedJsonObj(item);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update-secret-details.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/update-secret-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;
|
|
1
|
+
{"version":3,"file":"update-secret-details.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/update-secret-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AA+ClC,IAAiB,mBAAmB,CAyCnC;AAzCD,WAAiB,mBAAmB;IAClC,SAAgB,UAAU,CAAC,GAAwB;QACjD,MAAM,OAAO,mCACR,GAAG,GACH;YACD,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,UAAU,CAAC,GAAG,CAAC,aAAa,CAAC;gBAC1D,CAAC,CAAC,SAAS;YACb,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,GAAG,CAAC,cAAc,CAAC;gBACrD,CAAC,CAAC,SAAS;YACb,aAAa,EAAE,GAAG,CAAC,WAAW;gBAC5B,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACzB,OAAO,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;gBAC3C,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAnBe,8BAAU,aAmBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAwB;QAC7D,MAAM,OAAO,mCACR,GAAG,GACH;YACD,eAAe,EAAE,GAAG,CAAC,aAAa;gBAChC,CAAC,CAAC,KAAK,CAAC,oBAAoB,CAAC,sBAAsB,CAAC,GAAG,CAAC,aAAa,CAAC;gBACtE,CAAC,CAAC,SAAS;YACb,gBAAgB,EAAE,GAAG,CAAC,cAAc;gBAClC,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC,sBAAsB,CAAC,GAAG,CAAC,cAAc,CAAC;gBACjE,CAAC,CAAC,SAAS;YACb,aAAa,EAAE,GAAG,CAAC,WAAW;gBAC5B,CAAC,CAAC,GAAG,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,EAAE;oBACzB,OAAO,KAAK,CAAC,UAAU,CAAC,sBAAsB,CAAC,IAAI,CAAC,CAAC;gBACvD,CAAC,CAAC;gBACJ,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAnBe,0CAAsB,yBAmBrC,CAAA;AACH,CAAC,EAzCgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAyCnC"}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import common = require("oci-common");
|
|
14
14
|
/**
|
|
15
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/vault/CancelSecretDeletion.ts.html |here} to see how to use CancelSecretDeletionRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface CancelSecretDeletionRequest extends common.BaseRequest {
|
|
18
18
|
/**
|