oci-vault 2.77.1 → 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.
Files changed (73) hide show
  1. package/lib/client.d.ts +36 -12
  2. package/lib/client.js +134 -13
  3. package/lib/client.js.map +1 -1
  4. package/lib/model/adb-target-system-details.d.ts +30 -0
  5. package/lib/model/adb-target-system-details.js +54 -0
  6. package/lib/model/adb-target-system-details.js.map +1 -0
  7. package/lib/model/create-secret-details.d.ts +2 -1
  8. package/lib/model/create-secret-details.js +6 -0
  9. package/lib/model/create-secret-details.js.map +1 -1
  10. package/lib/model/function-target-system-details.d.ts +30 -0
  11. package/lib/model/function-target-system-details.js +54 -0
  12. package/lib/model/function-target-system-details.js.map +1 -0
  13. package/lib/model/index.d.ts +8 -0
  14. package/lib/model/index.js +9 -1
  15. package/lib/model/index.js.map +1 -1
  16. package/lib/model/rotation-config.d.ts +35 -0
  17. package/lib/model/rotation-config.js +57 -0
  18. package/lib/model/rotation-config.js.map +1 -0
  19. package/lib/model/secret-summary.d.ts +29 -0
  20. package/lib/model/secret-summary.js +30 -2
  21. package/lib/model/secret-summary.js.map +1 -1
  22. package/lib/model/secret-version-summary.d.ts +11 -0
  23. package/lib/model/secret-version-summary.js.map +1 -1
  24. package/lib/model/secret.d.ts +28 -0
  25. package/lib/model/secret.js +18 -0
  26. package/lib/model/secret.js.map +1 -1
  27. package/lib/model/target-system-details.d.ts +23 -0
  28. package/lib/model/target-system-details.js +72 -0
  29. package/lib/model/target-system-details.js.map +1 -0
  30. package/lib/model/update-secret-details.d.ts +1 -0
  31. package/lib/model/update-secret-details.js +6 -0
  32. package/lib/model/update-secret-details.js.map +1 -1
  33. package/lib/request/cancel-secret-deletion-request.d.ts +1 -1
  34. package/lib/request/cancel-secret-rotation-request.d.ts +38 -0
  35. package/lib/request/cancel-secret-rotation-request.js +15 -0
  36. package/lib/request/cancel-secret-rotation-request.js.map +1 -0
  37. package/lib/request/cancel-secret-version-deletion-request.d.ts +1 -1
  38. package/lib/request/change-secret-compartment-request.d.ts +1 -1
  39. package/lib/request/create-secret-request.d.ts +1 -1
  40. package/lib/request/get-secret-request.d.ts +1 -1
  41. package/lib/request/get-secret-version-request.d.ts +1 -1
  42. package/lib/request/index.d.ts +4 -0
  43. package/lib/request/index.js.map +1 -1
  44. package/lib/request/list-secret-versions-request.d.ts +1 -1
  45. package/lib/request/list-secrets-request.d.ts +1 -1
  46. package/lib/request/rotate-secret-request.d.ts +48 -0
  47. package/lib/request/rotate-secret-request.js +15 -0
  48. package/lib/request/rotate-secret-request.js.map +1 -0
  49. package/lib/request/schedule-secret-deletion-request.d.ts +1 -1
  50. package/lib/request/schedule-secret-version-deletion-request.d.ts +1 -1
  51. package/lib/request/update-secret-request.d.ts +1 -1
  52. package/lib/response/cancel-secret-deletion-response.d.ts +1 -2
  53. package/lib/response/cancel-secret-rotation-response.d.ts +19 -0
  54. package/lib/response/cancel-secret-rotation-response.js +15 -0
  55. package/lib/response/cancel-secret-rotation-response.js.map +1 -0
  56. package/lib/response/cancel-secret-version-deletion-response.d.ts +1 -2
  57. package/lib/response/change-secret-compartment-response.d.ts +1 -2
  58. package/lib/response/create-secret-response.d.ts +1 -2
  59. package/lib/response/get-secret-response.d.ts +1 -2
  60. package/lib/response/get-secret-version-response.d.ts +1 -2
  61. package/lib/response/index.d.ts +4 -0
  62. package/lib/response/list-secret-versions-response.d.ts +1 -2
  63. package/lib/response/list-secrets-response.d.ts +1 -2
  64. package/lib/response/rotate-secret-response.d.ts +24 -0
  65. package/lib/response/rotate-secret-response.js +15 -0
  66. package/lib/response/rotate-secret-response.js.map +1 -0
  67. package/lib/response/schedule-secret-deletion-response.d.ts +1 -2
  68. package/lib/response/schedule-secret-version-deletion-response.d.ts +1 -2
  69. package/lib/response/update-secret-response.d.ts +1 -2
  70. package/lib/vaults-waiter.d.ts +13 -1
  71. package/lib/vaults-waiter.js +18 -1
  72. package/lib/vaults-waiter.js.map +1 -1
  73. package/package.json +3 -3
@@ -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.77.1/vault/CancelSecretDeletion.ts.html |here} to see how to use CancelSecretDeletionRequest.
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
  /**
@@ -0,0 +1,38 @@
1
+ /**
2
+ *
3
+ *
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 common = require("oci-common");
14
+ /**
15
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/vault/CancelSecretRotation.ts.html |here} to see how to use CancelSecretRotationRequest.
16
+ */
17
+ export interface CancelSecretRotationRequest extends common.BaseRequest {
18
+ /**
19
+ * The OCID of the secret.
20
+ */
21
+ "secretId": string;
22
+ /**
23
+ * For optimistic concurrency control. In the PUT or DELETE call for a
24
+ * resource, set the {@code if-match} parameter to the value of the etag from a
25
+ * previous GET or POST response for that resource. The resource will be
26
+ * updated or deleted only if the etag you provide matches the resource's
27
+ * current etag value.
28
+ *
29
+ */
30
+ "ifMatch"?: string;
31
+ /**
32
+ * Unique identifier for the request. If provided, the returned request ID
33
+ * will include this value. Otherwise, a random request ID will be
34
+ * generated by the service.
35
+ *
36
+ */
37
+ "opcRequestId"?: string;
38
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=cancel-secret-rotation-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-secret-rotation-request.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/request/cancel-secret-rotation-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
@@ -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.77.1/vault/CancelSecretVersionDeletion.ts.html |here} to see how to use CancelSecretVersionDeletionRequest.
15
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/vault/CancelSecretVersionDeletion.ts.html |here} to see how to use CancelSecretVersionDeletionRequest.
16
16
  */
17
17
  export interface CancelSecretVersionDeletionRequest extends common.BaseRequest {
18
18
  /**
@@ -13,7 +13,7 @@
13
13
  import * as model from "../model";
14
14
  import common = require("oci-common");
15
15
  /**
16
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/vault/ChangeSecretCompartment.ts.html |here} to see how to use ChangeSecretCompartmentRequest.
16
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/vault/ChangeSecretCompartment.ts.html |here} to see how to use ChangeSecretCompartmentRequest.
17
17
  */
18
18
  export interface ChangeSecretCompartmentRequest extends common.BaseRequest {
19
19
  /**
@@ -13,7 +13,7 @@
13
13
  import * as model from "../model";
14
14
  import common = require("oci-common");
15
15
  /**
16
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/vault/CreateSecret.ts.html |here} to see how to use CreateSecretRequest.
16
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/vault/CreateSecret.ts.html |here} to see how to use CreateSecretRequest.
17
17
  */
18
18
  export interface CreateSecretRequest extends common.BaseRequest {
19
19
  /**
@@ -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.77.1/vault/GetSecret.ts.html |here} to see how to use GetSecretRequest.
15
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/vault/GetSecret.ts.html |here} to see how to use GetSecretRequest.
16
16
  */
17
17
  export interface GetSecretRequest extends common.BaseRequest {
18
18
  /**
@@ -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.77.1/vault/GetSecretVersion.ts.html |here} to see how to use GetSecretVersionRequest.
15
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/vault/GetSecretVersion.ts.html |here} to see how to use GetSecretVersionRequest.
16
16
  */
17
17
  export interface GetSecretVersionRequest extends common.BaseRequest {
18
18
  /**
@@ -12,6 +12,8 @@
12
12
  */
13
13
  import * as CancelSecretDeletionRequest from "./cancel-secret-deletion-request";
14
14
  export import CancelSecretDeletionRequest = CancelSecretDeletionRequest.CancelSecretDeletionRequest;
15
+ import * as CancelSecretRotationRequest from "./cancel-secret-rotation-request";
16
+ export import CancelSecretRotationRequest = CancelSecretRotationRequest.CancelSecretRotationRequest;
15
17
  import * as CancelSecretVersionDeletionRequest from "./cancel-secret-version-deletion-request";
16
18
  export import CancelSecretVersionDeletionRequest = CancelSecretVersionDeletionRequest.CancelSecretVersionDeletionRequest;
17
19
  import * as ChangeSecretCompartmentRequest from "./change-secret-compartment-request";
@@ -26,6 +28,8 @@ import * as ListSecretVersionsRequest from "./list-secret-versions-request";
26
28
  export import ListSecretVersionsRequest = ListSecretVersionsRequest.ListSecretVersionsRequest;
27
29
  import * as ListSecretsRequest from "./list-secrets-request";
28
30
  export import ListSecretsRequest = ListSecretsRequest.ListSecretsRequest;
31
+ import * as RotateSecretRequest from "./rotate-secret-request";
32
+ export import RotateSecretRequest = RotateSecretRequest.RotateSecretRequest;
29
33
  import * as ScheduleSecretDeletionRequest from "./schedule-secret-deletion-request";
30
34
  export import ScheduleSecretDeletionRequest = ScheduleSecretDeletionRequest.ScheduleSecretDeletionRequest;
31
35
  import * as ScheduleSecretVersionDeletionRequest from "./schedule-secret-version-deletion-request";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/request/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAcH,0FAA4E;AAC9D,QAAA,yBAAyB,GAAG,yBAAyB,CAAC,yBAAyB,CAAC;AAC9F,2EAA6D;AAC/C,QAAA,kBAAkB,GAAG,kBAAkB,CAAC,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/request/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAgBH,0FAA4E;AAC9D,QAAA,yBAAyB,GAAG,yBAAyB,CAAC,yBAAyB,CAAC;AAC9F,2EAA6D;AAC/C,QAAA,kBAAkB,GAAG,kBAAkB,CAAC,kBAAkB,CAAC"}
@@ -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.77.1/vault/ListSecretVersions.ts.html |here} to see how to use ListSecretVersionsRequest.
15
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/vault/ListSecretVersions.ts.html |here} to see how to use ListSecretVersionsRequest.
16
16
  */
17
17
  export interface ListSecretVersionsRequest extends common.BaseRequest {
18
18
  /**
@@ -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.77.1/vault/ListSecrets.ts.html |here} to see how to use ListSecretsRequest.
15
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/vault/ListSecrets.ts.html |here} to see how to use ListSecretsRequest.
16
16
  */
17
17
  export interface ListSecretsRequest extends common.BaseRequest {
18
18
  /**
@@ -0,0 +1,48 @@
1
+ /**
2
+ *
3
+ *
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 common = require("oci-common");
14
+ /**
15
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/vault/RotateSecret.ts.html |here} to see how to use RotateSecretRequest.
16
+ */
17
+ export interface RotateSecretRequest extends common.BaseRequest {
18
+ /**
19
+ * The OCID of the secret.
20
+ */
21
+ "secretId": string;
22
+ /**
23
+ * For optimistic concurrency control. In the PUT or DELETE call for a
24
+ * resource, set the {@code if-match} parameter to the value of the etag from a
25
+ * previous GET or POST response for that resource. The resource will be
26
+ * updated or deleted only if the etag you provide matches the resource's
27
+ * current etag value.
28
+ *
29
+ */
30
+ "ifMatch"?: string;
31
+ /**
32
+ * Unique identifier for the request. If provided, the returned request ID
33
+ * will include this value. Otherwise, a random request ID will be
34
+ * generated by the service.
35
+ *
36
+ */
37
+ "opcRequestId"?: string;
38
+ /**
39
+ * A token that uniquely identifies a request so it can be retried in case
40
+ * of a timeout or server error without risk of executing that same action
41
+ * again. Retry tokens expire after 24 hours, but can be invalidated
42
+ * before then due to conflicting operations (e.g., if a resource has been
43
+ * deleted and purged from the system, then a retry of the original
44
+ * creation request may be rejected).
45
+ *
46
+ */
47
+ "opcRetryToken"?: string;
48
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=rotate-secret-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rotate-secret-request.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/request/rotate-secret-request.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
@@ -13,7 +13,7 @@
13
13
  import * as model from "../model";
14
14
  import common = require("oci-common");
15
15
  /**
16
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/vault/ScheduleSecretDeletion.ts.html |here} to see how to use ScheduleSecretDeletionRequest.
16
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/vault/ScheduleSecretDeletion.ts.html |here} to see how to use ScheduleSecretDeletionRequest.
17
17
  */
18
18
  export interface ScheduleSecretDeletionRequest extends common.BaseRequest {
19
19
  /**
@@ -13,7 +13,7 @@
13
13
  import * as model from "../model";
14
14
  import common = require("oci-common");
15
15
  /**
16
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/vault/ScheduleSecretVersionDeletion.ts.html |here} to see how to use ScheduleSecretVersionDeletionRequest.
16
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/vault/ScheduleSecretVersionDeletion.ts.html |here} to see how to use ScheduleSecretVersionDeletionRequest.
17
17
  */
18
18
  export interface ScheduleSecretVersionDeletionRequest extends common.BaseRequest {
19
19
  /**
@@ -13,7 +13,7 @@
13
13
  import * as model from "../model";
14
14
  import common = require("oci-common");
15
15
  /**
16
- * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.77.1/vault/UpdateSecret.ts.html |here} to see how to use UpdateSecretRequest.
16
+ * @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.79.0/vault/UpdateSecret.ts.html |here} to see how to use UpdateSecretRequest.
17
17
  */
18
18
  export interface UpdateSecretRequest extends common.BaseRequest {
19
19
  /**
@@ -16,8 +16,7 @@ export interface CancelSecretDeletionResponse {
16
16
  */
17
17
  "etag": string;
18
18
  /**
19
- * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
20
- * a particular request, please provide the request ID.
19
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
21
20
  *
22
21
  */
23
22
  "opcRequestId": string;
@@ -0,0 +1,19 @@
1
+ /**
2
+ *
3
+ *
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
+ export interface CancelSecretRotationResponse {
14
+ /**
15
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
16
+ *
17
+ */
18
+ "opcRequestId": string;
19
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=cancel-secret-rotation-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"cancel-secret-rotation-response.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/response/cancel-secret-rotation-response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
@@ -16,8 +16,7 @@ export interface CancelSecretVersionDeletionResponse {
16
16
  */
17
17
  "etag": string;
18
18
  /**
19
- * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
20
- * a particular request, please provide the request ID.
19
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
21
20
  *
22
21
  */
23
22
  "opcRequestId": string;
@@ -16,8 +16,7 @@ export interface ChangeSecretCompartmentResponse {
16
16
  */
17
17
  "etag": string;
18
18
  /**
19
- * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
20
- * a particular request, please provide the request ID.
19
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
21
20
  *
22
21
  */
23
22
  "opcRequestId": string;
@@ -17,8 +17,7 @@ export interface CreateSecretResponse {
17
17
  */
18
18
  "etag": string;
19
19
  /**
20
- * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
21
- * a particular request, please provide the request ID.
20
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
22
21
  *
23
22
  */
24
23
  "opcRequestId": string;
@@ -17,8 +17,7 @@ export interface GetSecretResponse {
17
17
  */
18
18
  "etag": string;
19
19
  /**
20
- * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
21
- * a particular request, please provide the request ID.
20
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
22
21
  *
23
22
  */
24
23
  "opcRequestId": string;
@@ -17,8 +17,7 @@ export interface GetSecretVersionResponse {
17
17
  */
18
18
  "etag": string;
19
19
  /**
20
- * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
21
- * a particular request, please provide the request ID.
20
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
22
21
  *
23
22
  */
24
23
  "opcRequestId": string;
@@ -12,6 +12,8 @@
12
12
  */
13
13
  import * as CancelSecretDeletionResponse from "./cancel-secret-deletion-response";
14
14
  export import CancelSecretDeletionResponse = CancelSecretDeletionResponse.CancelSecretDeletionResponse;
15
+ import * as CancelSecretRotationResponse from "./cancel-secret-rotation-response";
16
+ export import CancelSecretRotationResponse = CancelSecretRotationResponse.CancelSecretRotationResponse;
15
17
  import * as CancelSecretVersionDeletionResponse from "./cancel-secret-version-deletion-response";
16
18
  export import CancelSecretVersionDeletionResponse = CancelSecretVersionDeletionResponse.CancelSecretVersionDeletionResponse;
17
19
  import * as ChangeSecretCompartmentResponse from "./change-secret-compartment-response";
@@ -26,6 +28,8 @@ import * as ListSecretVersionsResponse from "./list-secret-versions-response";
26
28
  export import ListSecretVersionsResponse = ListSecretVersionsResponse.ListSecretVersionsResponse;
27
29
  import * as ListSecretsResponse from "./list-secrets-response";
28
30
  export import ListSecretsResponse = ListSecretsResponse.ListSecretsResponse;
31
+ import * as RotateSecretResponse from "./rotate-secret-response";
32
+ export import RotateSecretResponse = RotateSecretResponse.RotateSecretResponse;
29
33
  import * as ScheduleSecretDeletionResponse from "./schedule-secret-deletion-response";
30
34
  export import ScheduleSecretDeletionResponse = ScheduleSecretDeletionResponse.ScheduleSecretDeletionResponse;
31
35
  import * as ScheduleSecretVersionDeletionResponse from "./schedule-secret-version-deletion-response";
@@ -21,8 +21,7 @@ export interface ListSecretVersionsResponse {
21
21
  */
22
22
  "opcNextPage": string;
23
23
  /**
24
- * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
25
- * a particular request, please provide the request ID.
24
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
26
25
  *
27
26
  */
28
27
  "opcRequestId": string;
@@ -21,8 +21,7 @@ export interface ListSecretsResponse {
21
21
  */
22
22
  "opcNextPage": string;
23
23
  /**
24
- * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
25
- * a particular request, please provide the request ID.
24
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
26
25
  *
27
26
  */
28
27
  "opcRequestId": string;
@@ -0,0 +1,24 @@
1
+ /**
2
+ *
3
+ *
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
+ export interface RotateSecretResponse {
14
+ /**
15
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
16
+ *
17
+ */
18
+ "opcRequestId": string;
19
+ /**
20
+ * The OCID of the work request. Use GetWorkRequest with this OCID to track the status of the request.
21
+ *
22
+ */
23
+ "opcWorkRequestId": string;
24
+ }
@@ -0,0 +1,15 @@
1
+ "use strict";
2
+ /**
3
+ *
4
+ *
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
+ Object.defineProperty(exports, "__esModule", { value: true });
15
+ //# sourceMappingURL=rotate-secret-response.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"rotate-secret-response.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/response/rotate-secret-response.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG"}
@@ -16,8 +16,7 @@ export interface ScheduleSecretDeletionResponse {
16
16
  */
17
17
  "etag": string;
18
18
  /**
19
- * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
20
- * a particular request, please provide the request ID.
19
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
21
20
  *
22
21
  */
23
22
  "opcRequestId": string;
@@ -16,8 +16,7 @@ export interface ScheduleSecretVersionDeletionResponse {
16
16
  */
17
17
  "etag": string;
18
18
  /**
19
- * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
20
- * a particular request, please provide the request ID.
19
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
21
20
  *
22
21
  */
23
22
  "opcRequestId": string;
@@ -17,8 +17,7 @@ export interface UpdateSecretResponse {
17
17
  */
18
18
  "etag": string;
19
19
  /**
20
- * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about
21
- * a particular request, please provide the request ID.
20
+ * Unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
22
21
  *
23
22
  */
24
23
  "opcRequestId": string;
@@ -14,10 +14,12 @@ import * as serviceRequests from "./request";
14
14
  import * as serviceResponses from "./response";
15
15
  import * as models from "./model";
16
16
  import { VaultsClient } from "./client";
17
+ import { WorkRequestClient, responses } from "oci-workrequests";
17
18
  export declare class VaultsWaiter {
18
19
  private client;
20
+ private workRequestClient;
19
21
  private readonly config?;
20
- constructor(client: VaultsClient, config?: Partial<import("oci-common/lib/waiter").WaiterConfigurationDetails> | undefined);
22
+ constructor(client: VaultsClient, workRequestClient: WorkRequestClient, config?: Partial<import("oci-common/lib/waiter").WaiterConfigurationDetails> | undefined);
21
23
  /**
22
24
  * Waits forSecret till it reaches any of the provided states
23
25
  *
@@ -26,4 +28,14 @@ export declare class VaultsWaiter {
26
28
  * @return response returns GetSecretResponse | null (null in case of 404 response)
27
29
  */
28
30
  forSecret(request: serviceRequests.GetSecretRequest, ...targetStates: models.Secret.LifecycleState[]): Promise<serviceResponses.GetSecretResponse | null>;
31
+ /**
32
+ * Waits forRotateSecret
33
+ *
34
+ * @param request the request to send
35
+ * @return response returns RotateSecretResponse, GetWorkRequestResponse tuple
36
+ */
37
+ forRotateSecret(request: serviceRequests.RotateSecretRequest): Promise<{
38
+ response: serviceResponses.RotateSecretResponse;
39
+ workRequestResponse: responses.GetWorkRequestResponse;
40
+ }>;
29
41
  }
@@ -43,9 +43,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
43
43
  exports.VaultsWaiter = void 0;
44
44
  const models = __importStar(require("./model"));
45
45
  const oci_common_1 = require("oci-common");
46
+ const oci_workrequests_1 = require("oci-workrequests");
46
47
  class VaultsWaiter {
47
- constructor(client, config) {
48
+ constructor(client, workRequestClient, config) {
48
49
  this.client = client;
50
+ this.workRequestClient = workRequestClient;
49
51
  this.config = config;
50
52
  }
51
53
  /**
@@ -60,6 +62,21 @@ class VaultsWaiter {
60
62
  return oci_common_1.genericTerminalConditionWaiter(this.config, () => this.client.getSecret(request), response => targetStates.includes(response.secret.lifecycleState), targetStates.includes(models.Secret.LifecycleState.Deleted));
61
63
  });
62
64
  }
65
+ /**
66
+ * Waits forRotateSecret
67
+ *
68
+ * @param request the request to send
69
+ * @return response returns RotateSecretResponse, GetWorkRequestResponse tuple
70
+ */
71
+ forRotateSecret(request) {
72
+ return __awaiter(this, void 0, void 0, function* () {
73
+ const rotateSecretResponse = yield this.client.rotateSecret(request);
74
+ if (rotateSecretResponse.opcWorkRequestId === undefined)
75
+ return { response: rotateSecretResponse, workRequestResponse: undefined };
76
+ const getWorkRequestResponse = yield oci_workrequests_1.waitForWorkRequest(this.config, this.workRequestClient, rotateSecretResponse.opcWorkRequestId);
77
+ return { response: rotateSecretResponse, workRequestResponse: getWorkRequestResponse };
78
+ });
79
+ }
63
80
  }
64
81
  exports.VaultsWaiter = VaultsWaiter;
65
82
  //# sourceMappingURL=vaults-waiter.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"vaults-waiter.js","sourceRoot":"","sources":["../../../../lib/vault/lib/vaults-waiter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,gDAAkC;AAElC,2CAAgG;AAEhG,MAAa,YAAY;IACvB,YAA2B,MAAoB,EAAmB,MAA4B;QAAnE,WAAM,GAAN,MAAM,CAAc;QAAmB,WAAM,GAAN,MAAM,CAAsB;IAAG,CAAC;IAElG;;;;;;OAMG;IACU,SAAS,CACpB,OAAyC,EACzC,GAAG,YAA4C;;YAE/C,OAAO,2CAA8B,CACnC,IAAI,CAAC,MAAM,EACX,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,EACpC,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAe,CAAC,EAClE,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,CAC5D,CAAC;QACJ,CAAC;KAAA;CACF;AArBD,oCAqBC"}
1
+ {"version":3,"file":"vaults-waiter.js","sourceRoot":"","sources":["../../../../lib/vault/lib/vaults-waiter.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAIH,gDAAkC;AAElC,2CAAgG;AAChG,uDAAoF;AAEpF,MAAa,YAAY;IACvB,YACU,MAAoB,EACpB,iBAAoC,EAC3B,MAA4B;QAFrC,WAAM,GAAN,MAAM,CAAc;QACpB,sBAAiB,GAAjB,iBAAiB,CAAmB;QAC3B,WAAM,GAAN,MAAM,CAAsB;IAC5C,CAAC;IAEJ;;;;;;OAMG;IACU,SAAS,CACpB,OAAyC,EACzC,GAAG,YAA4C;;YAE/C,OAAO,2CAA8B,CACnC,IAAI,CAAC,MAAM,EACX,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,OAAO,CAAC,EACpC,QAAQ,CAAC,EAAE,CAAC,YAAY,CAAC,QAAQ,CAAC,QAAQ,CAAC,MAAM,CAAC,cAAe,CAAC,EAClE,YAAY,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,cAAc,CAAC,OAAO,CAAC,CAC5D,CAAC;QACJ,CAAC;KAAA;IAED;;;;;OAKG;IACU,eAAe,CAC1B,OAA4C;;YAK5C,MAAM,oBAAoB,GAAG,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;YACrE,IAAI,oBAAoB,CAAC,gBAAgB,KAAK,SAAS;gBACrD,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,SAAgB,EAAE,CAAC;YACnF,MAAM,sBAAsB,GAAG,MAAM,qCAAkB,CACrD,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,iBAAiB,EACtB,oBAAoB,CAAC,gBAAgB,CACtC,CAAC;YACF,OAAO,EAAE,QAAQ,EAAE,oBAAoB,EAAE,mBAAmB,EAAE,sBAAsB,EAAE,CAAC;QACzF,CAAC;KAAA;CACF;AAhDD,oCAgDC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "oci-vault",
3
- "version": "2.77.1",
3
+ "version": "2.79.0",
4
4
  "description": "OCI NodeJS client for Vault Service",
5
5
  "repository": {
6
6
  "type": "git",
@@ -15,8 +15,8 @@
15
15
  },
16
16
  "license": "(UPL-1.0 OR Apache-2.0)",
17
17
  "dependencies": {
18
- "oci-common": "2.77.1",
19
- "oci-workrequests": "2.77.1"
18
+ "oci-common": "2.79.0",
19
+ "oci-workrequests": "2.79.0"
20
20
  },
21
21
  "publishConfig": {
22
22
  "registry": "https://registry.npmjs.org"