oci-vault 2.80.0 → 2.81.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 +13 -13
- package/lib/client.js +13 -13
- package/lib/model/bytes-generation-context.d.ts +39 -0
- package/lib/model/bytes-generation-context.js +64 -0
- package/lib/model/bytes-generation-context.js.map +1 -0
- package/lib/model/create-secret-details.d.ts +7 -1
- package/lib/model/create-secret-details.js +6 -0
- package/lib/model/create-secret-details.js.map +1 -1
- 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/passphrase-generation-context.d.ts +43 -0
- package/lib/model/passphrase-generation-context.js +64 -0
- package/lib/model/passphrase-generation-context.js.map +1 -0
- package/lib/model/secret-generation-context.d.ts +29 -0
- package/lib/model/secret-generation-context.js +76 -0
- package/lib/model/secret-generation-context.js.map +1 -0
- package/lib/model/secret-summary.d.ts +6 -0
- package/lib/model/secret-summary.js +6 -0
- package/lib/model/secret-summary.js.map +1 -1
- package/lib/model/secret-version-summary.d.ts +5 -0
- package/lib/model/secret-version-summary.js.map +1 -1
- package/lib/model/secret-version.d.ts +5 -0
- package/lib/model/secret-version.js.map +1 -1
- package/lib/model/secret.d.ts +6 -0
- package/lib/model/secret.js +6 -0
- package/lib/model/secret.js.map +1 -1
- package/lib/model/ssh-key-generation-context.d.ts +40 -0
- package/lib/model/ssh-key-generation-context.js +65 -0
- package/lib/model/ssh-key-generation-context.js.map +1 -0
- package/lib/model/update-secret-details.d.ts +6 -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 +1 -1
- 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/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 +1 -1
- 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/package.json +3 -3
package/lib/client.d.ts
CHANGED
|
@@ -97,7 +97,7 @@ export declare class VaultsClient {
|
|
|
97
97
|
* @param CancelSecretDeletionRequest
|
|
98
98
|
* @return CancelSecretDeletionResponse
|
|
99
99
|
* @throws OciError when an error occurs
|
|
100
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
100
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/CancelSecretDeletion.ts.html |here} to see how to use CancelSecretDeletion API.
|
|
101
101
|
*/
|
|
102
102
|
cancelSecretDeletion(cancelSecretDeletionRequest: requests.CancelSecretDeletionRequest): Promise<responses.CancelSecretDeletionResponse>;
|
|
103
103
|
/**
|
|
@@ -109,7 +109,7 @@ export declare class VaultsClient {
|
|
|
109
109
|
* @param CancelSecretRotationRequest
|
|
110
110
|
* @return CancelSecretRotationResponse
|
|
111
111
|
* @throws OciError when an error occurs
|
|
112
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
112
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/CancelSecretRotation.ts.html |here} to see how to use CancelSecretRotation API.
|
|
113
113
|
*/
|
|
114
114
|
cancelSecretRotation(cancelSecretRotationRequest: requests.CancelSecretRotationRequest): Promise<responses.CancelSecretRotationResponse>;
|
|
115
115
|
/**
|
|
@@ -118,7 +118,7 @@ export declare class VaultsClient {
|
|
|
118
118
|
* @param CancelSecretVersionDeletionRequest
|
|
119
119
|
* @return CancelSecretVersionDeletionResponse
|
|
120
120
|
* @throws OciError when an error occurs
|
|
121
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
121
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/CancelSecretVersionDeletion.ts.html |here} to see how to use CancelSecretVersionDeletion API.
|
|
122
122
|
*/
|
|
123
123
|
cancelSecretVersionDeletion(cancelSecretVersionDeletionRequest: requests.CancelSecretVersionDeletionRequest): Promise<responses.CancelSecretVersionDeletionResponse>;
|
|
124
124
|
/**
|
|
@@ -131,7 +131,7 @@ export declare class VaultsClient {
|
|
|
131
131
|
* @param ChangeSecretCompartmentRequest
|
|
132
132
|
* @return ChangeSecretCompartmentResponse
|
|
133
133
|
* @throws OciError when an error occurs
|
|
134
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
134
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/ChangeSecretCompartment.ts.html |here} to see how to use ChangeSecretCompartment API.
|
|
135
135
|
*/
|
|
136
136
|
changeSecretCompartment(changeSecretCompartmentRequest: requests.ChangeSecretCompartmentRequest): Promise<responses.ChangeSecretCompartmentResponse>;
|
|
137
137
|
/**
|
|
@@ -143,7 +143,7 @@ export declare class VaultsClient {
|
|
|
143
143
|
* @param CreateSecretRequest
|
|
144
144
|
* @return CreateSecretResponse
|
|
145
145
|
* @throws OciError when an error occurs
|
|
146
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
146
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/CreateSecret.ts.html |here} to see how to use CreateSecret API.
|
|
147
147
|
*/
|
|
148
148
|
createSecret(createSecretRequest: requests.CreateSecretRequest): Promise<responses.CreateSecretResponse>;
|
|
149
149
|
/**
|
|
@@ -152,7 +152,7 @@ export declare class VaultsClient {
|
|
|
152
152
|
* @param GetSecretRequest
|
|
153
153
|
* @return GetSecretResponse
|
|
154
154
|
* @throws OciError when an error occurs
|
|
155
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
155
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/GetSecret.ts.html |here} to see how to use GetSecret API.
|
|
156
156
|
*/
|
|
157
157
|
getSecret(getSecretRequest: requests.GetSecretRequest): Promise<responses.GetSecretResponse>;
|
|
158
158
|
/**
|
|
@@ -162,7 +162,7 @@ export declare class VaultsClient {
|
|
|
162
162
|
* @param GetSecretVersionRequest
|
|
163
163
|
* @return GetSecretVersionResponse
|
|
164
164
|
* @throws OciError when an error occurs
|
|
165
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
165
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/GetSecretVersion.ts.html |here} to see how to use GetSecretVersion API.
|
|
166
166
|
*/
|
|
167
167
|
getSecretVersion(getSecretVersionRequest: requests.GetSecretVersionRequest): Promise<responses.GetSecretVersionResponse>;
|
|
168
168
|
/**
|
|
@@ -171,7 +171,7 @@ export declare class VaultsClient {
|
|
|
171
171
|
* @param ListSecretVersionsRequest
|
|
172
172
|
* @return ListSecretVersionsResponse
|
|
173
173
|
* @throws OciError when an error occurs
|
|
174
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
174
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/ListSecretVersions.ts.html |here} to see how to use ListSecretVersions API.
|
|
175
175
|
*/
|
|
176
176
|
listSecretVersions(listSecretVersionsRequest: requests.ListSecretVersionsRequest): Promise<responses.ListSecretVersionsResponse>;
|
|
177
177
|
/**
|
|
@@ -212,7 +212,7 @@ export declare class VaultsClient {
|
|
|
212
212
|
* @param ListSecretsRequest
|
|
213
213
|
* @return ListSecretsResponse
|
|
214
214
|
* @throws OciError when an error occurs
|
|
215
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
215
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/ListSecrets.ts.html |here} to see how to use ListSecrets API.
|
|
216
216
|
*/
|
|
217
217
|
listSecrets(listSecretsRequest: requests.ListSecretsRequest): Promise<responses.ListSecretsResponse>;
|
|
218
218
|
/**
|
|
@@ -254,7 +254,7 @@ export declare class VaultsClient {
|
|
|
254
254
|
* @param RotateSecretRequest
|
|
255
255
|
* @return RotateSecretResponse
|
|
256
256
|
* @throws OciError when an error occurs
|
|
257
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
257
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/RotateSecret.ts.html |here} to see how to use RotateSecret API.
|
|
258
258
|
*/
|
|
259
259
|
rotateSecret(rotateSecretRequest: requests.RotateSecretRequest): Promise<responses.RotateSecretResponse>;
|
|
260
260
|
/**
|
|
@@ -265,7 +265,7 @@ export declare class VaultsClient {
|
|
|
265
265
|
* @param ScheduleSecretDeletionRequest
|
|
266
266
|
* @return ScheduleSecretDeletionResponse
|
|
267
267
|
* @throws OciError when an error occurs
|
|
268
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
268
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/ScheduleSecretDeletion.ts.html |here} to see how to use ScheduleSecretDeletion API.
|
|
269
269
|
*/
|
|
270
270
|
scheduleSecretDeletion(scheduleSecretDeletionRequest: requests.ScheduleSecretDeletionRequest): Promise<responses.ScheduleSecretDeletionResponse>;
|
|
271
271
|
/**
|
|
@@ -276,7 +276,7 @@ export declare class VaultsClient {
|
|
|
276
276
|
* @param ScheduleSecretVersionDeletionRequest
|
|
277
277
|
* @return ScheduleSecretVersionDeletionResponse
|
|
278
278
|
* @throws OciError when an error occurs
|
|
279
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
279
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/ScheduleSecretVersionDeletion.ts.html |here} to see how to use ScheduleSecretVersionDeletion API.
|
|
280
280
|
*/
|
|
281
281
|
scheduleSecretVersionDeletion(scheduleSecretVersionDeletionRequest: requests.ScheduleSecretVersionDeletionRequest): Promise<responses.ScheduleSecretVersionDeletionResponse>;
|
|
282
282
|
/**
|
|
@@ -291,7 +291,7 @@ export declare class VaultsClient {
|
|
|
291
291
|
* @param UpdateSecretRequest
|
|
292
292
|
* @return UpdateSecretResponse
|
|
293
293
|
* @throws OciError when an error occurs
|
|
294
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
294
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/UpdateSecret.ts.html |here} to see how to use UpdateSecret API.
|
|
295
295
|
*/
|
|
296
296
|
updateSecret(updateSecretRequest: requests.UpdateSecretRequest): Promise<responses.UpdateSecretResponse>;
|
|
297
297
|
}
|
package/lib/client.js
CHANGED
|
@@ -201,7 +201,7 @@ class VaultsClient {
|
|
|
201
201
|
* @param CancelSecretDeletionRequest
|
|
202
202
|
* @return CancelSecretDeletionResponse
|
|
203
203
|
* @throws OciError when an error occurs
|
|
204
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
204
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/CancelSecretDeletion.ts.html |here} to see how to use CancelSecretDeletion API.
|
|
205
205
|
*/
|
|
206
206
|
cancelSecretDeletion(cancelSecretDeletionRequest) {
|
|
207
207
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -264,7 +264,7 @@ class VaultsClient {
|
|
|
264
264
|
* @param CancelSecretRotationRequest
|
|
265
265
|
* @return CancelSecretRotationResponse
|
|
266
266
|
* @throws OciError when an error occurs
|
|
267
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
267
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/CancelSecretRotation.ts.html |here} to see how to use CancelSecretRotation API.
|
|
268
268
|
*/
|
|
269
269
|
cancelSecretRotation(cancelSecretRotationRequest) {
|
|
270
270
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -319,7 +319,7 @@ class VaultsClient {
|
|
|
319
319
|
* @param CancelSecretVersionDeletionRequest
|
|
320
320
|
* @return CancelSecretVersionDeletionResponse
|
|
321
321
|
* @throws OciError when an error occurs
|
|
322
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
322
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/CancelSecretVersionDeletion.ts.html |here} to see how to use CancelSecretVersionDeletion API.
|
|
323
323
|
*/
|
|
324
324
|
cancelSecretVersionDeletion(cancelSecretVersionDeletionRequest) {
|
|
325
325
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -384,7 +384,7 @@ class VaultsClient {
|
|
|
384
384
|
* @param ChangeSecretCompartmentRequest
|
|
385
385
|
* @return ChangeSecretCompartmentResponse
|
|
386
386
|
* @throws OciError when an error occurs
|
|
387
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
387
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/ChangeSecretCompartment.ts.html |here} to see how to use ChangeSecretCompartment API.
|
|
388
388
|
*/
|
|
389
389
|
changeSecretCompartment(changeSecretCompartmentRequest) {
|
|
390
390
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -449,7 +449,7 @@ class VaultsClient {
|
|
|
449
449
|
* @param CreateSecretRequest
|
|
450
450
|
* @return CreateSecretResponse
|
|
451
451
|
* @throws OciError when an error occurs
|
|
452
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
452
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/CreateSecret.ts.html |here} to see how to use CreateSecret API.
|
|
453
453
|
*/
|
|
454
454
|
createSecret(createSecretRequest) {
|
|
455
455
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -512,7 +512,7 @@ class VaultsClient {
|
|
|
512
512
|
* @param GetSecretRequest
|
|
513
513
|
* @return GetSecretResponse
|
|
514
514
|
* @throws OciError when an error occurs
|
|
515
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
515
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/GetSecret.ts.html |here} to see how to use GetSecret API.
|
|
516
516
|
*/
|
|
517
517
|
getSecret(getSecretRequest) {
|
|
518
518
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -576,7 +576,7 @@ class VaultsClient {
|
|
|
576
576
|
* @param GetSecretVersionRequest
|
|
577
577
|
* @return GetSecretVersionResponse
|
|
578
578
|
* @throws OciError when an error occurs
|
|
579
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
579
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/GetSecretVersion.ts.html |here} to see how to use GetSecretVersion API.
|
|
580
580
|
*/
|
|
581
581
|
getSecretVersion(getSecretVersionRequest) {
|
|
582
582
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -640,7 +640,7 @@ class VaultsClient {
|
|
|
640
640
|
* @param ListSecretVersionsRequest
|
|
641
641
|
* @return ListSecretVersionsResponse
|
|
642
642
|
* @throws OciError when an error occurs
|
|
643
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
643
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/ListSecretVersions.ts.html |here} to see how to use ListSecretVersions API.
|
|
644
644
|
*/
|
|
645
645
|
listSecretVersions(listSecretVersionsRequest) {
|
|
646
646
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -748,7 +748,7 @@ class VaultsClient {
|
|
|
748
748
|
* @param ListSecretsRequest
|
|
749
749
|
* @return ListSecretsResponse
|
|
750
750
|
* @throws OciError when an error occurs
|
|
751
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
751
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/ListSecrets.ts.html |here} to see how to use ListSecrets API.
|
|
752
752
|
*/
|
|
753
753
|
listSecrets(listSecretsRequest) {
|
|
754
754
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -859,7 +859,7 @@ class VaultsClient {
|
|
|
859
859
|
* @param RotateSecretRequest
|
|
860
860
|
* @return RotateSecretResponse
|
|
861
861
|
* @throws OciError when an error occurs
|
|
862
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
862
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/RotateSecret.ts.html |here} to see how to use RotateSecret API.
|
|
863
863
|
*/
|
|
864
864
|
rotateSecret(rotateSecretRequest) {
|
|
865
865
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -922,7 +922,7 @@ class VaultsClient {
|
|
|
922
922
|
* @param ScheduleSecretDeletionRequest
|
|
923
923
|
* @return ScheduleSecretDeletionResponse
|
|
924
924
|
* @throws OciError when an error occurs
|
|
925
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
925
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/ScheduleSecretDeletion.ts.html |here} to see how to use ScheduleSecretDeletion API.
|
|
926
926
|
*/
|
|
927
927
|
scheduleSecretDeletion(scheduleSecretDeletionRequest) {
|
|
928
928
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -985,7 +985,7 @@ class VaultsClient {
|
|
|
985
985
|
* @param ScheduleSecretVersionDeletionRequest
|
|
986
986
|
* @return ScheduleSecretVersionDeletionResponse
|
|
987
987
|
* @throws OciError when an error occurs
|
|
988
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
988
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/ScheduleSecretVersionDeletion.ts.html |here} to see how to use ScheduleSecretVersionDeletion API.
|
|
989
989
|
*/
|
|
990
990
|
scheduleSecretVersionDeletion(scheduleSecretVersionDeletionRequest) {
|
|
991
991
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -1053,7 +1053,7 @@ class VaultsClient {
|
|
|
1053
1053
|
* @param UpdateSecretRequest
|
|
1054
1054
|
* @return UpdateSecretResponse
|
|
1055
1055
|
* @throws OciError when an error occurs
|
|
1056
|
-
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.
|
|
1056
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/UpdateSecret.ts.html |here} to see how to use UpdateSecret API.
|
|
1057
1057
|
*/
|
|
1058
1058
|
updateSecret(updateSecretRequest) {
|
|
1059
1059
|
return __awaiter(this, void 0, void 0, function* () {
|
|
@@ -0,0 +1,39 @@
|
|
|
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
|
+
* Generates random bytes. By default, secrets of type Bytes has no structure. The generated bytes are stored as a Base64 encoded string.
|
|
16
|
+
* The SecretTemplate must have the %GENERATED_BYTES% keyword which is replaced with the generated bytes, if provided
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export interface BytesGenerationContext extends model.SecretGenerationContext {
|
|
20
|
+
/**
|
|
21
|
+
* Name of random bytes generation template for generating random byte type secret.
|
|
22
|
+
*/
|
|
23
|
+
"generationTemplate": BytesGenerationContext.GenerationTemplate;
|
|
24
|
+
"generationType": string;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace BytesGenerationContext {
|
|
27
|
+
enum GenerationTemplate {
|
|
28
|
+
Bytes512 = "BYTES_512",
|
|
29
|
+
Bytes1024 = "BYTES_1024",
|
|
30
|
+
/**
|
|
31
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
32
|
+
* version of the SDK.
|
|
33
|
+
*/
|
|
34
|
+
UnknownValue = "UNKNOWN_VALUE"
|
|
35
|
+
}
|
|
36
|
+
function getJsonObj(obj: BytesGenerationContext, isParentJsonObj?: boolean): object;
|
|
37
|
+
const generationType = "BYTES";
|
|
38
|
+
function getDeserializedJsonObj(obj: BytesGenerationContext, isParentJsonObj?: boolean): object;
|
|
39
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.BytesGenerationContext = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var BytesGenerationContext;
|
|
37
|
+
(function (BytesGenerationContext) {
|
|
38
|
+
let GenerationTemplate;
|
|
39
|
+
(function (GenerationTemplate) {
|
|
40
|
+
GenerationTemplate["Bytes512"] = "BYTES_512";
|
|
41
|
+
GenerationTemplate["Bytes1024"] = "BYTES_1024";
|
|
42
|
+
/**
|
|
43
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
44
|
+
* version of the SDK.
|
|
45
|
+
*/
|
|
46
|
+
GenerationTemplate["UnknownValue"] = "UNKNOWN_VALUE";
|
|
47
|
+
})(GenerationTemplate = BytesGenerationContext.GenerationTemplate || (BytesGenerationContext.GenerationTemplate = {}));
|
|
48
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
49
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
50
|
+
? obj
|
|
51
|
+
: model.SecretGenerationContext.getJsonObj(obj))), {});
|
|
52
|
+
return jsonObj;
|
|
53
|
+
}
|
|
54
|
+
BytesGenerationContext.getJsonObj = getJsonObj;
|
|
55
|
+
BytesGenerationContext.generationType = "BYTES";
|
|
56
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
57
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
58
|
+
? obj
|
|
59
|
+
: model.SecretGenerationContext.getDeserializedJsonObj(obj))), {});
|
|
60
|
+
return jsonObj;
|
|
61
|
+
}
|
|
62
|
+
BytesGenerationContext.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
63
|
+
})(BytesGenerationContext = exports.BytesGenerationContext || (exports.BytesGenerationContext = {}));
|
|
64
|
+
//# sourceMappingURL=bytes-generation-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bytes-generation-context.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/bytes-generation-context.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAiBlC,IAAiB,sBAAsB,CAmCtC;AAnCD,WAAiB,sBAAsB;IACrC,IAAY,kBAQX;IARD,WAAY,kBAAkB;QAC5B,4CAAsB,CAAA;QACtB,8CAAwB,CAAA;QACxB;;;WAGG;QACH,oDAA8B,CAAA;IAChC,CAAC,EARW,kBAAkB,GAAlB,yCAAkB,KAAlB,yCAAkB,QAQ7B;IAED,SAAgB,UAAU,CAAC,GAA2B,EAAE,eAAyB;QAC/E,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,GAAG,CAA4B,CAAC,GAC3E,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,iCAAU,aASzB,CAAA;IACY,qCAAc,GAAG,OAAO,CAAC;IACtC,SAAgB,sBAAsB,CACpC,GAA2B,EAC3B,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,uBAAuB,CAAC,sBAAsB,CAAC,GAAG,CAA4B,CAAC,GACvF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,6CAAsB,yBAYrC,CAAA;AACH,CAAC,EAnCgB,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAmCtC"}
|
|
@@ -47,7 +47,7 @@ export interface CreateSecretDetails {
|
|
|
47
47
|
* 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.
|
|
48
48
|
*
|
|
49
49
|
*/
|
|
50
|
-
"keyId"
|
|
50
|
+
"keyId": string;
|
|
51
51
|
/**
|
|
52
52
|
* Additional metadata that you can use to provide context about how to use the secret during rotation or
|
|
53
53
|
* other administrative tasks. For example, for a secret that you use to connect to a database, the additional
|
|
@@ -72,6 +72,12 @@ export interface CreateSecretDetails {
|
|
|
72
72
|
* The OCID of the vault where you want to create the secret.
|
|
73
73
|
*/
|
|
74
74
|
"vaultId": string;
|
|
75
|
+
"secretGenerationContext"?: model.PassphraseGenerationContext | model.SshKeyGenerationContext | model.BytesGenerationContext;
|
|
76
|
+
/**
|
|
77
|
+
* The value of this flag determines whether or not secret content will be generated automatically. If not set, it defaults to false.
|
|
78
|
+
*
|
|
79
|
+
*/
|
|
80
|
+
"enableAutoGeneration"?: boolean;
|
|
75
81
|
}
|
|
76
82
|
export declare namespace CreateSecretDetails {
|
|
77
83
|
function getJsonObj(obj: CreateSecretDetails): object;
|
|
@@ -47,6 +47,9 @@ var CreateSecretDetails;
|
|
|
47
47
|
? obj.secretRules.map(item => {
|
|
48
48
|
return model.SecretRule.getJsonObj(item);
|
|
49
49
|
})
|
|
50
|
+
: undefined,
|
|
51
|
+
"secretGenerationContext": obj.secretGenerationContext
|
|
52
|
+
? model.SecretGenerationContext.getJsonObj(obj.secretGenerationContext)
|
|
50
53
|
: undefined
|
|
51
54
|
});
|
|
52
55
|
return jsonObj;
|
|
@@ -64,6 +67,9 @@ var CreateSecretDetails;
|
|
|
64
67
|
? obj.secretRules.map(item => {
|
|
65
68
|
return model.SecretRule.getDeserializedJsonObj(item);
|
|
66
69
|
})
|
|
70
|
+
: undefined,
|
|
71
|
+
"secretGenerationContext": obj.secretGenerationContext
|
|
72
|
+
? model.SecretGenerationContext.getDeserializedJsonObj(obj.secretGenerationContext)
|
|
67
73
|
: undefined
|
|
68
74
|
});
|
|
69
75
|
return jsonObj;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-secret-details.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/create-secret-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;
|
|
1
|
+
{"version":3,"file":"create-secret-details.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/create-secret-details.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAmElC,IAAiB,mBAAmB,CAmDnC;AAnDD,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;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;YAEb,yBAAyB,EAAE,GAAG,CAAC,uBAAuB;gBACpD,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,GAAG,CAAC,uBAAuB,CAAC;gBACvE,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAxBe,8BAAU,aAwBzB,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;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;YAEb,yBAAyB,EAAE,GAAG,CAAC,uBAAuB;gBACpD,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,sBAAsB,CAAC,GAAG,CAAC,uBAAuB,CAAC;gBACnF,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAxBe,0CAAsB,yBAwBrC,CAAA;AACH,CAAC,EAnDgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QAmDnC"}
|
package/lib/model/index.d.ts
CHANGED
|
@@ -24,6 +24,8 @@ import * as Secret from "./secret";
|
|
|
24
24
|
export import Secret = Secret.Secret;
|
|
25
25
|
import * as SecretContentDetails from "./secret-content-details";
|
|
26
26
|
export import SecretContentDetails = SecretContentDetails.SecretContentDetails;
|
|
27
|
+
import * as SecretGenerationContext from "./secret-generation-context";
|
|
28
|
+
export import SecretGenerationContext = SecretGenerationContext.SecretGenerationContext;
|
|
27
29
|
import * as SecretRule from "./secret-rule";
|
|
28
30
|
export import SecretRule = SecretRule.SecretRule;
|
|
29
31
|
import * as SecretSummary from "./secret-summary";
|
|
@@ -40,9 +42,15 @@ import * as AdbTargetSystemDetails from "./adb-target-system-details";
|
|
|
40
42
|
export import AdbTargetSystemDetails = AdbTargetSystemDetails.AdbTargetSystemDetails;
|
|
41
43
|
import * as Base64SecretContentDetails from "./base64-secret-content-details";
|
|
42
44
|
export import Base64SecretContentDetails = Base64SecretContentDetails.Base64SecretContentDetails;
|
|
45
|
+
import * as BytesGenerationContext from "./bytes-generation-context";
|
|
46
|
+
export import BytesGenerationContext = BytesGenerationContext.BytesGenerationContext;
|
|
43
47
|
import * as FunctionTargetSystemDetails from "./function-target-system-details";
|
|
44
48
|
export import FunctionTargetSystemDetails = FunctionTargetSystemDetails.FunctionTargetSystemDetails;
|
|
49
|
+
import * as PassphraseGenerationContext from "./passphrase-generation-context";
|
|
50
|
+
export import PassphraseGenerationContext = PassphraseGenerationContext.PassphraseGenerationContext;
|
|
45
51
|
import * as SecretExpiryRule from "./secret-expiry-rule";
|
|
46
52
|
export import SecretExpiryRule = SecretExpiryRule.SecretExpiryRule;
|
|
47
53
|
import * as SecretReuseRule from "./secret-reuse-rule";
|
|
48
54
|
export import SecretReuseRule = SecretReuseRule.SecretReuseRule;
|
|
55
|
+
import * as SshKeyGenerationContext from "./ssh-key-generation-context";
|
|
56
|
+
export import SshKeyGenerationContext = SshKeyGenerationContext.SshKeyGenerationContext;
|
package/lib/model/index.js
CHANGED
|
@@ -31,7 +31,7 @@ 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.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;
|
|
34
|
+
exports.SshKeyGenerationContext = exports.SecretReuseRule = exports.SecretExpiryRule = exports.PassphraseGenerationContext = exports.FunctionTargetSystemDetails = exports.BytesGenerationContext = exports.Base64SecretContentDetails = exports.AdbTargetSystemDetails = exports.UpdateSecretDetails = exports.TargetSystemDetails = exports.SecretVersionSummary = exports.SecretVersion = exports.SecretSummary = exports.SecretRule = exports.SecretGenerationContext = 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"));
|
|
@@ -46,6 +46,8 @@ const Secret = __importStar(require("./secret"));
|
|
|
46
46
|
exports.Secret = Secret.Secret;
|
|
47
47
|
const SecretContentDetails = __importStar(require("./secret-content-details"));
|
|
48
48
|
exports.SecretContentDetails = SecretContentDetails.SecretContentDetails;
|
|
49
|
+
const SecretGenerationContext = __importStar(require("./secret-generation-context"));
|
|
50
|
+
exports.SecretGenerationContext = SecretGenerationContext.SecretGenerationContext;
|
|
49
51
|
const SecretRule = __importStar(require("./secret-rule"));
|
|
50
52
|
exports.SecretRule = SecretRule.SecretRule;
|
|
51
53
|
const SecretSummary = __importStar(require("./secret-summary"));
|
|
@@ -62,10 +64,16 @@ const AdbTargetSystemDetails = __importStar(require("./adb-target-system-details
|
|
|
62
64
|
exports.AdbTargetSystemDetails = AdbTargetSystemDetails.AdbTargetSystemDetails;
|
|
63
65
|
const Base64SecretContentDetails = __importStar(require("./base64-secret-content-details"));
|
|
64
66
|
exports.Base64SecretContentDetails = Base64SecretContentDetails.Base64SecretContentDetails;
|
|
67
|
+
const BytesGenerationContext = __importStar(require("./bytes-generation-context"));
|
|
68
|
+
exports.BytesGenerationContext = BytesGenerationContext.BytesGenerationContext;
|
|
65
69
|
const FunctionTargetSystemDetails = __importStar(require("./function-target-system-details"));
|
|
66
70
|
exports.FunctionTargetSystemDetails = FunctionTargetSystemDetails.FunctionTargetSystemDetails;
|
|
71
|
+
const PassphraseGenerationContext = __importStar(require("./passphrase-generation-context"));
|
|
72
|
+
exports.PassphraseGenerationContext = PassphraseGenerationContext.PassphraseGenerationContext;
|
|
67
73
|
const SecretExpiryRule = __importStar(require("./secret-expiry-rule"));
|
|
68
74
|
exports.SecretExpiryRule = SecretExpiryRule.SecretExpiryRule;
|
|
69
75
|
const SecretReuseRule = __importStar(require("./secret-reuse-rule"));
|
|
70
76
|
exports.SecretReuseRule = SecretReuseRule.SecretReuseRule;
|
|
77
|
+
const SshKeyGenerationContext = __importStar(require("./ssh-key-generation-context"));
|
|
78
|
+
exports.SshKeyGenerationContext = SshKeyGenerationContext.SshKeyGenerationContext;
|
|
71
79
|
//# sourceMappingURL=index.js.map
|
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,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"}
|
|
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,qFAAuE;AACzD,QAAA,uBAAuB,GAAG,uBAAuB,CAAC,uBAAuB,CAAC;AACxF,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,mFAAqE;AACvD,QAAA,sBAAsB,GAAG,sBAAsB,CAAC,sBAAsB,CAAC;AACrF,8FAAgF;AAClE,QAAA,2BAA2B,GAAG,2BAA2B,CAAC,2BAA2B,CAAC;AACpG,6FAA+E;AACjE,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;AAChE,sFAAwE;AAC1D,QAAA,uBAAuB,GAAG,uBAAuB,CAAC,uBAAuB,CAAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
* Generates Passphrase type secrets. By default, passphrase type secrets have no structure. The generated content is stored in Base64 format.
|
|
16
|
+
* The SecretTemplate must have the %GENERATED_PASSPHRASE% keyword, which is later replaced with the generated content, if provided.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export interface PassphraseGenerationContext extends model.SecretGenerationContext {
|
|
20
|
+
/**
|
|
21
|
+
* Name of passphrase generation template to generate passphrase type secret.
|
|
22
|
+
*/
|
|
23
|
+
"generationTemplate": PassphraseGenerationContext.GenerationTemplate;
|
|
24
|
+
/**
|
|
25
|
+
* Length of the passphrase to be generated Note: Numbers greater than Number.MAX_SAFE_INTEGER will result in rounding issues.
|
|
26
|
+
*/
|
|
27
|
+
"passphraseLength"?: number;
|
|
28
|
+
"generationType": string;
|
|
29
|
+
}
|
|
30
|
+
export declare namespace PassphraseGenerationContext {
|
|
31
|
+
enum GenerationTemplate {
|
|
32
|
+
SecretsDefaultPassword = "SECRETS_DEFAULT_PASSWORD",
|
|
33
|
+
DbaasDefaultPassword = "DBAAS_DEFAULT_PASSWORD",
|
|
34
|
+
/**
|
|
35
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
36
|
+
* version of the SDK.
|
|
37
|
+
*/
|
|
38
|
+
UnknownValue = "UNKNOWN_VALUE"
|
|
39
|
+
}
|
|
40
|
+
function getJsonObj(obj: PassphraseGenerationContext, isParentJsonObj?: boolean): object;
|
|
41
|
+
const generationType = "PASSPHRASE";
|
|
42
|
+
function getDeserializedJsonObj(obj: PassphraseGenerationContext, isParentJsonObj?: boolean): object;
|
|
43
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
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.PassphraseGenerationContext = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var PassphraseGenerationContext;
|
|
37
|
+
(function (PassphraseGenerationContext) {
|
|
38
|
+
let GenerationTemplate;
|
|
39
|
+
(function (GenerationTemplate) {
|
|
40
|
+
GenerationTemplate["SecretsDefaultPassword"] = "SECRETS_DEFAULT_PASSWORD";
|
|
41
|
+
GenerationTemplate["DbaasDefaultPassword"] = "DBAAS_DEFAULT_PASSWORD";
|
|
42
|
+
/**
|
|
43
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
44
|
+
* version of the SDK.
|
|
45
|
+
*/
|
|
46
|
+
GenerationTemplate["UnknownValue"] = "UNKNOWN_VALUE";
|
|
47
|
+
})(GenerationTemplate = PassphraseGenerationContext.GenerationTemplate || (PassphraseGenerationContext.GenerationTemplate = {}));
|
|
48
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
49
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
50
|
+
? obj
|
|
51
|
+
: model.SecretGenerationContext.getJsonObj(obj))), {});
|
|
52
|
+
return jsonObj;
|
|
53
|
+
}
|
|
54
|
+
PassphraseGenerationContext.getJsonObj = getJsonObj;
|
|
55
|
+
PassphraseGenerationContext.generationType = "PASSPHRASE";
|
|
56
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
57
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
58
|
+
? obj
|
|
59
|
+
: model.SecretGenerationContext.getDeserializedJsonObj(obj))), {});
|
|
60
|
+
return jsonObj;
|
|
61
|
+
}
|
|
62
|
+
PassphraseGenerationContext.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
63
|
+
})(PassphraseGenerationContext = exports.PassphraseGenerationContext || (exports.PassphraseGenerationContext = {}));
|
|
64
|
+
//# sourceMappingURL=passphrase-generation-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"passphrase-generation-context.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/passphrase-generation-context.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAqBlC,IAAiB,2BAA2B,CAqC3C;AArCD,WAAiB,2BAA2B;IAC1C,IAAY,kBAQX;IARD,WAAY,kBAAkB;QAC5B,yEAAmD,CAAA;QACnD,qEAA+C,CAAA;QAC/C;;;WAGG;QACH,oDAA8B,CAAA;IAChC,CAAC,EARW,kBAAkB,GAAlB,8CAAkB,KAAlB,8CAAkB,QAQ7B;IAED,SAAgB,UAAU,CAAC,GAAgC,EAAE,eAAyB;QACpF,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,GAAG,CAAiC,CAAC,GAChF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,sCAAU,aASzB,CAAA;IACY,0CAAc,GAAG,YAAY,CAAC;IAC3C,SAAgB,sBAAsB,CACpC,GAAgC,EAChC,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,uBAAuB,CAAC,sBAAsB,CACnD,GAAG,CAC4B,CAAC,GACnC,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAde,kDAAsB,yBAcrC,CAAA;AACH,CAAC,EArCgB,2BAA2B,GAA3B,mCAA2B,KAA3B,mCAA2B,QAqC3C"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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
|
+
* Captures a configurable set of secret generation rules such as length, base characters, additional characters, and so on.
|
|
15
|
+
*/
|
|
16
|
+
export interface SecretGenerationContext {
|
|
17
|
+
/**
|
|
18
|
+
* SecretTemplate captures structure in which customer wants to store secrets. This is optional and a default structure is available for each secret type.
|
|
19
|
+
* The template can have any structure with static values that are not generated. Within the template, you can insert predefined placeholders to store secrets.
|
|
20
|
+
* These placeholders are later replaced with the generated content and saved as a Base64 encoded content.
|
|
21
|
+
*
|
|
22
|
+
*/
|
|
23
|
+
"secretTemplate"?: string;
|
|
24
|
+
"generationType": string;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace SecretGenerationContext {
|
|
27
|
+
function getJsonObj(obj: SecretGenerationContext): object;
|
|
28
|
+
function getDeserializedJsonObj(obj: SecretGenerationContext): object;
|
|
29
|
+
}
|
|
@@ -0,0 +1,76 @@
|
|
|
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.SecretGenerationContext = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
const common = require("oci-common");
|
|
37
|
+
var SecretGenerationContext;
|
|
38
|
+
(function (SecretGenerationContext) {
|
|
39
|
+
function getJsonObj(obj) {
|
|
40
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
41
|
+
if (obj && "generationType" in obj && obj.generationType) {
|
|
42
|
+
switch (obj.generationType) {
|
|
43
|
+
case "PASSPHRASE":
|
|
44
|
+
return model.PassphraseGenerationContext.getJsonObj(jsonObj, true);
|
|
45
|
+
case "SSH_KEY":
|
|
46
|
+
return model.SshKeyGenerationContext.getJsonObj(jsonObj, true);
|
|
47
|
+
case "BYTES":
|
|
48
|
+
return model.BytesGenerationContext.getJsonObj(jsonObj, true);
|
|
49
|
+
default:
|
|
50
|
+
if (common.LOG.logger)
|
|
51
|
+
common.LOG.logger.info(`Unknown value for: ${obj.generationType}`);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
return jsonObj;
|
|
55
|
+
}
|
|
56
|
+
SecretGenerationContext.getJsonObj = getJsonObj;
|
|
57
|
+
function getDeserializedJsonObj(obj) {
|
|
58
|
+
const jsonObj = Object.assign(Object.assign({}, obj), {});
|
|
59
|
+
if (obj && "generationType" in obj && obj.generationType) {
|
|
60
|
+
switch (obj.generationType) {
|
|
61
|
+
case "PASSPHRASE":
|
|
62
|
+
return model.PassphraseGenerationContext.getDeserializedJsonObj(jsonObj, true);
|
|
63
|
+
case "SSH_KEY":
|
|
64
|
+
return model.SshKeyGenerationContext.getDeserializedJsonObj(jsonObj, true);
|
|
65
|
+
case "BYTES":
|
|
66
|
+
return model.BytesGenerationContext.getDeserializedJsonObj(jsonObj, true);
|
|
67
|
+
default:
|
|
68
|
+
if (common.LOG.logger)
|
|
69
|
+
common.LOG.logger.info(`Unknown value for: ${obj.generationType}`);
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return jsonObj;
|
|
73
|
+
}
|
|
74
|
+
SecretGenerationContext.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
75
|
+
})(SecretGenerationContext = exports.SecretGenerationContext || (exports.SecretGenerationContext = {}));
|
|
76
|
+
//# sourceMappingURL=secret-generation-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"secret-generation-context.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/secret-generation-context.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAClC,qCAAsC;AAiBtC,IAAiB,uBAAuB,CAqDvC;AArDD,WAAiB,uBAAuB;IACtC,SAAgB,UAAU,CAAC,GAA4B;QACrD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,gBAAgB,IAAI,GAAG,IAAI,GAAG,CAAC,cAAc,EAAE;YACxD,QAAQ,GAAG,CAAC,cAAc,EAAE;gBAC1B,KAAK,YAAY;oBACf,OAAO,KAAK,CAAC,2BAA2B,CAAC,UAAU,CACL,OAAQ,EACpD,IAAI,CACL,CAAC;gBACJ,KAAK,SAAS;oBACZ,OAAO,KAAK,CAAC,uBAAuB,CAAC,UAAU,CACL,OAAQ,EAChD,IAAI,CACL,CAAC;gBACJ,KAAK,OAAO;oBACV,OAAO,KAAK,CAAC,sBAAsB,CAAC,UAAU,CACL,OAAQ,EAC/C,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,cAAc,EAAE,CAAC,CAAC;aAC7F;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAzBe,kCAAU,aAyBzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAA4B;QACjE,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,IAAI,GAAG,IAAI,gBAAgB,IAAI,GAAG,IAAI,GAAG,CAAC,cAAc,EAAE;YACxD,QAAQ,GAAG,CAAC,cAAc,EAAE;gBAC1B,KAAK,YAAY;oBACf,OAAO,KAAK,CAAC,2BAA2B,CAAC,sBAAsB,CACjB,OAAQ,EACpD,IAAI,CACL,CAAC;gBACJ,KAAK,SAAS;oBACZ,OAAO,KAAK,CAAC,uBAAuB,CAAC,sBAAsB,CACjB,OAAQ,EAChD,IAAI,CACL,CAAC;gBACJ,KAAK,OAAO;oBACV,OAAO,KAAK,CAAC,sBAAsB,CAAC,sBAAsB,CACjB,OAAQ,EAC/C,IAAI,CACL,CAAC;gBACJ;oBACE,IAAI,MAAM,CAAC,GAAG,CAAC,MAAM;wBAAE,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,IAAI,CAAC,sBAAsB,GAAG,CAAC,cAAc,EAAE,CAAC,CAAC;aAC7F;SACF;QACD,OAAO,OAAO,CAAC;IACjB,CAAC;IAzBe,8CAAsB,yBAyBrC,CAAA;AACH,CAAC,EArDgB,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAqDvC"}
|
|
@@ -114,6 +114,12 @@ export interface SecretSummary {
|
|
|
114
114
|
* The OCID of the Vault in which the secret exists
|
|
115
115
|
*/
|
|
116
116
|
"vaultId": string;
|
|
117
|
+
"secretGenerationContext"?: model.PassphraseGenerationContext | model.SshKeyGenerationContext | model.BytesGenerationContext;
|
|
118
|
+
/**
|
|
119
|
+
* The value of this flag determines whether or not secret content will be generated automatically.
|
|
120
|
+
*
|
|
121
|
+
*/
|
|
122
|
+
"isAutoGenerationEnabled"?: boolean;
|
|
117
123
|
}
|
|
118
124
|
export declare namespace SecretSummary {
|
|
119
125
|
enum LifecycleState {
|
|
@@ -56,6 +56,9 @@ var SecretSummary;
|
|
|
56
56
|
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
57
57
|
"rotationConfig": obj.rotationConfig
|
|
58
58
|
? model.RotationConfig.getJsonObj(obj.rotationConfig)
|
|
59
|
+
: undefined,
|
|
60
|
+
"secretGenerationContext": obj.secretGenerationContext
|
|
61
|
+
? model.SecretGenerationContext.getJsonObj(obj.secretGenerationContext)
|
|
59
62
|
: undefined
|
|
60
63
|
});
|
|
61
64
|
return jsonObj;
|
|
@@ -65,6 +68,9 @@ var SecretSummary;
|
|
|
65
68
|
const jsonObj = Object.assign(Object.assign({}, obj), {
|
|
66
69
|
"rotationConfig": obj.rotationConfig
|
|
67
70
|
? model.RotationConfig.getDeserializedJsonObj(obj.rotationConfig)
|
|
71
|
+
: undefined,
|
|
72
|
+
"secretGenerationContext": obj.secretGenerationContext
|
|
73
|
+
? model.SecretGenerationContext.getDeserializedJsonObj(obj.secretGenerationContext)
|
|
68
74
|
: undefined
|
|
69
75
|
});
|
|
70
76
|
return jsonObj;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret-summary.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/secret-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;
|
|
1
|
+
{"version":3,"file":"secret-summary.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/secret-summary.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AA2GlC,IAAiB,aAAa,CAkD7B;AAlDD,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;YAEb,yBAAyB,EAAE,GAAG,CAAC,uBAAuB;gBACpD,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,GAAG,CAAC,uBAAuB,CAAC;gBACvE,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,wBAAU,aAezB,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;YAEb,yBAAyB,EAAE,GAAG,CAAC,uBAAuB;gBACpD,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,sBAAsB,CAAC,GAAG,CAAC,uBAAuB,CAAC;gBACnF,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAfe,oCAAsB,yBAerC,CAAA;AACH,CAAC,EAlDgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAkD7B"}
|
|
@@ -70,6 +70,11 @@ export interface SecretVersionSummary {
|
|
|
70
70
|
[key: string]: any;
|
|
71
71
|
};
|
|
72
72
|
};
|
|
73
|
+
/**
|
|
74
|
+
* Boolean flag indicating whether secret content for this secret version was auto-generated or not.
|
|
75
|
+
*
|
|
76
|
+
*/
|
|
77
|
+
"isContentAutoGenerated"?: boolean;
|
|
73
78
|
}
|
|
74
79
|
export declare namespace SecretVersionSummary {
|
|
75
80
|
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;;;AAoEH,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"}
|
|
@@ -59,6 +59,11 @@ export interface SecretVersion {
|
|
|
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
|
+
* Boolean flag indicating whether secret content for this secret version was auto-generated or not.
|
|
64
|
+
*
|
|
65
|
+
*/
|
|
66
|
+
"isContentAutoGenerated"?: boolean;
|
|
62
67
|
}
|
|
63
68
|
export declare namespace SecretVersion {
|
|
64
69
|
enum ContentType {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secret-version.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/secret-version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;
|
|
1
|
+
{"version":3,"file":"secret-version.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/secret-version.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;AA6DH,IAAiB,aAAa,CAiC7B;AAjCD,WAAiB,aAAa;IAC5B,IAAY,WAOX;IAPD,WAAY,WAAW;QACrB,gCAAiB,CAAA;QACjB;;;WAGG;QACH,6CAA8B,CAAA;IAChC,CAAC,EAPW,WAAW,GAAX,yBAAW,KAAX,yBAAW,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,oBAAM,KAAN,oBAAM,QAWjB;IAED,SAAgB,UAAU,CAAC,GAAkB;QAC3C,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,wBAAU,aAIzB,CAAA;IACD,SAAgB,sBAAsB,CAAC,GAAkB;QACvD,MAAM,OAAO,mCAAQ,GAAG,GAAK,EAAE,CAAE,CAAC;QAElC,OAAO,OAAO,CAAC;IACjB,CAAC;IAJe,oCAAsB,yBAIrC,CAAA;AACH,CAAC,EAjCgB,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAiC7B"}
|
package/lib/model/secret.d.ts
CHANGED
|
@@ -120,6 +120,12 @@ export interface Secret {
|
|
|
120
120
|
* The OCID of the vault where the secret exists.
|
|
121
121
|
*/
|
|
122
122
|
"vaultId": string;
|
|
123
|
+
"secretGenerationContext"?: model.PassphraseGenerationContext | model.SshKeyGenerationContext | model.BytesGenerationContext;
|
|
124
|
+
/**
|
|
125
|
+
* The value of this flag determines whether or not secret content will be generated automatically.
|
|
126
|
+
*
|
|
127
|
+
*/
|
|
128
|
+
"isAutoGenerationEnabled"?: boolean;
|
|
123
129
|
}
|
|
124
130
|
export declare namespace Secret {
|
|
125
131
|
enum LifecycleState {
|
package/lib/model/secret.js
CHANGED
|
@@ -73,6 +73,9 @@ var Secret;
|
|
|
73
73
|
? obj.secretRules.map(item => {
|
|
74
74
|
return model.SecretRule.getJsonObj(item);
|
|
75
75
|
})
|
|
76
|
+
: undefined,
|
|
77
|
+
"secretGenerationContext": obj.secretGenerationContext
|
|
78
|
+
? model.SecretGenerationContext.getJsonObj(obj.secretGenerationContext)
|
|
76
79
|
: undefined
|
|
77
80
|
});
|
|
78
81
|
return jsonObj;
|
|
@@ -87,6 +90,9 @@ var Secret;
|
|
|
87
90
|
? obj.secretRules.map(item => {
|
|
88
91
|
return model.SecretRule.getDeserializedJsonObj(item);
|
|
89
92
|
})
|
|
93
|
+
: undefined,
|
|
94
|
+
"secretGenerationContext": obj.secretGenerationContext
|
|
95
|
+
? model.SecretGenerationContext.getDeserializedJsonObj(obj.secretGenerationContext)
|
|
90
96
|
: undefined
|
|
91
97
|
});
|
|
92
98
|
return jsonObj;
|
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;AAmHlC,IAAiB,MAAM,CA0EtB;AA1ED,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;YAEb,yBAAyB,EAAE,GAAG,CAAC,uBAAuB;gBACpD,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,GAAG,CAAC,uBAAuB,CAAC;gBACvE,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IArBe,iBAAU,aAqBzB,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;YAEb,yBAAyB,EAAE,GAAG,CAAC,uBAAuB;gBACpD,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,sBAAsB,CAAC,GAAG,CAAC,uBAAuB,CAAC;gBACnF,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IArBe,6BAAsB,yBAqBrC,CAAA;AACH,CAAC,EA1EgB,MAAM,GAAN,cAAM,KAAN,cAAM,QA0EtB"}
|
|
@@ -0,0 +1,40 @@
|
|
|
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
|
+
* Generates ssh keys. By default, the keys are stored as - {\"publicKey\": \"%GENERATED_PUBLIC_KEY%\", \"privateKey\": \"%GENERATED_PRIVATE_KEY%\"} in PEM format.
|
|
16
|
+
* The SecretTemplate must have both %GENERATED_PUBLIC_KEY% and %GENERATED_PRIVATE_KEY% keywords which is later replaced with the respective keys, if provided.
|
|
17
|
+
*
|
|
18
|
+
*/
|
|
19
|
+
export interface SshKeyGenerationContext extends model.SecretGenerationContext {
|
|
20
|
+
/**
|
|
21
|
+
* Name of SSH key generation template to generate SSH key type secret.
|
|
22
|
+
*/
|
|
23
|
+
"generationTemplate": SshKeyGenerationContext.GenerationTemplate;
|
|
24
|
+
"generationType": string;
|
|
25
|
+
}
|
|
26
|
+
export declare namespace SshKeyGenerationContext {
|
|
27
|
+
enum GenerationTemplate {
|
|
28
|
+
Rsa2048 = "RSA_2048",
|
|
29
|
+
Rsa3072 = "RSA_3072",
|
|
30
|
+
Rsa4096 = "RSA_4096",
|
|
31
|
+
/**
|
|
32
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
33
|
+
* version of the SDK.
|
|
34
|
+
*/
|
|
35
|
+
UnknownValue = "UNKNOWN_VALUE"
|
|
36
|
+
}
|
|
37
|
+
function getJsonObj(obj: SshKeyGenerationContext, isParentJsonObj?: boolean): object;
|
|
38
|
+
const generationType = "SSH_KEY";
|
|
39
|
+
function getDeserializedJsonObj(obj: SshKeyGenerationContext, isParentJsonObj?: boolean): object;
|
|
40
|
+
}
|
|
@@ -0,0 +1,65 @@
|
|
|
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.SshKeyGenerationContext = void 0;
|
|
35
|
+
const model = __importStar(require("../model"));
|
|
36
|
+
var SshKeyGenerationContext;
|
|
37
|
+
(function (SshKeyGenerationContext) {
|
|
38
|
+
let GenerationTemplate;
|
|
39
|
+
(function (GenerationTemplate) {
|
|
40
|
+
GenerationTemplate["Rsa2048"] = "RSA_2048";
|
|
41
|
+
GenerationTemplate["Rsa3072"] = "RSA_3072";
|
|
42
|
+
GenerationTemplate["Rsa4096"] = "RSA_4096";
|
|
43
|
+
/**
|
|
44
|
+
* This value is used if a service returns a value for this enum that is not recognized by this
|
|
45
|
+
* version of the SDK.
|
|
46
|
+
*/
|
|
47
|
+
GenerationTemplate["UnknownValue"] = "UNKNOWN_VALUE";
|
|
48
|
+
})(GenerationTemplate = SshKeyGenerationContext.GenerationTemplate || (SshKeyGenerationContext.GenerationTemplate = {}));
|
|
49
|
+
function getJsonObj(obj, isParentJsonObj) {
|
|
50
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
51
|
+
? obj
|
|
52
|
+
: model.SecretGenerationContext.getJsonObj(obj))), {});
|
|
53
|
+
return jsonObj;
|
|
54
|
+
}
|
|
55
|
+
SshKeyGenerationContext.getJsonObj = getJsonObj;
|
|
56
|
+
SshKeyGenerationContext.generationType = "SSH_KEY";
|
|
57
|
+
function getDeserializedJsonObj(obj, isParentJsonObj) {
|
|
58
|
+
const jsonObj = Object.assign(Object.assign({}, (isParentJsonObj
|
|
59
|
+
? obj
|
|
60
|
+
: model.SecretGenerationContext.getDeserializedJsonObj(obj))), {});
|
|
61
|
+
return jsonObj;
|
|
62
|
+
}
|
|
63
|
+
SshKeyGenerationContext.getDeserializedJsonObj = getDeserializedJsonObj;
|
|
64
|
+
})(SshKeyGenerationContext = exports.SshKeyGenerationContext || (exports.SshKeyGenerationContext = {}));
|
|
65
|
+
//# sourceMappingURL=ssh-key-generation-context.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ssh-key-generation-context.js","sourceRoot":"","sources":["../../../../../lib/vault/lib/model/ssh-key-generation-context.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;;;;;;;;;;;;;;;;;;;;;AAEH,gDAAkC;AAiBlC,IAAiB,uBAAuB,CAoCvC;AApCD,WAAiB,uBAAuB;IACtC,IAAY,kBASX;IATD,WAAY,kBAAkB;QAC5B,0CAAoB,CAAA;QACpB,0CAAoB,CAAA;QACpB,0CAAoB,CAAA;QACpB;;;WAGG;QACH,oDAA8B,CAAA;IAChC,CAAC,EATW,kBAAkB,GAAlB,0CAAkB,KAAlB,0CAAkB,QAS7B;IAED,SAAgB,UAAU,CAAC,GAA4B,EAAE,eAAyB;QAChF,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,GAAG,CAA6B,CAAC,GAC5E,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IATe,kCAAU,aASzB,CAAA;IACY,sCAAc,GAAG,SAAS,CAAC;IACxC,SAAgB,sBAAsB,CACpC,GAA4B,EAC5B,eAAyB;QAEzB,MAAM,OAAO,mCACR,CAAC,eAAe;YACjB,CAAC,CAAC,GAAG;YACL,CAAC,CAAE,KAAK,CAAC,uBAAuB,CAAC,sBAAsB,CAAC,GAAG,CAA6B,CAAC,GACxF,EAAE,CACN,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAZe,8CAAsB,yBAYrC,CAAA;AACH,CAAC,EApCgB,uBAAuB,GAAvB,+BAAuB,KAAvB,+BAAuB,QAoCvC"}
|
|
@@ -61,6 +61,12 @@ export interface UpdateSecretDetails {
|
|
|
61
61
|
* A list of rules to control how the secret is used and managed.
|
|
62
62
|
*/
|
|
63
63
|
"secretRules"?: Array<model.SecretRule>;
|
|
64
|
+
"secretGenerationContext"?: model.PassphraseGenerationContext | model.SshKeyGenerationContext | model.BytesGenerationContext;
|
|
65
|
+
/**
|
|
66
|
+
* The value of this flag determines whether or not secret content will be generated automatically.
|
|
67
|
+
*
|
|
68
|
+
*/
|
|
69
|
+
"enableAutoGeneration"?: boolean;
|
|
64
70
|
}
|
|
65
71
|
export declare namespace UpdateSecretDetails {
|
|
66
72
|
function getJsonObj(obj: UpdateSecretDetails): object;
|
|
@@ -47,6 +47,9 @@ var UpdateSecretDetails;
|
|
|
47
47
|
? obj.secretRules.map(item => {
|
|
48
48
|
return model.SecretRule.getJsonObj(item);
|
|
49
49
|
})
|
|
50
|
+
: undefined,
|
|
51
|
+
"secretGenerationContext": obj.secretGenerationContext
|
|
52
|
+
? model.SecretGenerationContext.getJsonObj(obj.secretGenerationContext)
|
|
50
53
|
: undefined
|
|
51
54
|
});
|
|
52
55
|
return jsonObj;
|
|
@@ -64,6 +67,9 @@ var UpdateSecretDetails;
|
|
|
64
67
|
? obj.secretRules.map(item => {
|
|
65
68
|
return model.SecretRule.getDeserializedJsonObj(item);
|
|
66
69
|
})
|
|
70
|
+
: undefined,
|
|
71
|
+
"secretGenerationContext": obj.secretGenerationContext
|
|
72
|
+
? model.SecretGenerationContext.getDeserializedJsonObj(obj.secretGenerationContext)
|
|
67
73
|
: undefined
|
|
68
74
|
});
|
|
69
75
|
return jsonObj;
|
|
@@ -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;AAwDlC,IAAiB,mBAAmB,CA+CnC;AA/CD,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;YACb,yBAAyB,EAAE,GAAG,CAAC,uBAAuB;gBACpD,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,UAAU,CAAC,GAAG,CAAC,uBAAuB,CAAC;gBACvE,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAtBe,8BAAU,aAsBzB,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;YACb,yBAAyB,EAAE,GAAG,CAAC,uBAAuB;gBACpD,CAAC,CAAC,KAAK,CAAC,uBAAuB,CAAC,sBAAsB,CAAC,GAAG,CAAC,uBAAuB,CAAC;gBACnF,CAAC,CAAC,SAAS;SACd,CACF,CAAC;QAEF,OAAO,OAAO,CAAC;IACjB,CAAC;IAtBe,0CAAsB,yBAsBrC,CAAA;AACH,CAAC,EA/CgB,mBAAmB,GAAnB,2BAAmB,KAAnB,2BAAmB,QA+CnC"}
|
|
@@ -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.81.0/vault/CancelSecretDeletion.ts.html |here} to see how to use CancelSecretDeletionRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface CancelSecretDeletionRequest 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.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/CancelSecretRotation.ts.html |here} to see how to use CancelSecretRotationRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface CancelSecretRotationRequest 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.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.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.
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.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.
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.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.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.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.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.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,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.81.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.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/ListSecrets.ts.html |here} to see how to use ListSecretsRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface ListSecretsRequest 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.
|
|
15
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/RotateSecret.ts.html |here} to see how to use RotateSecretRequest.
|
|
16
16
|
*/
|
|
17
17
|
export interface RotateSecretRequest 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.
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.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.
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.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.
|
|
16
|
+
* @example Click {@link https://docs.cloud.oracle.com/en-us/iaas/tools/typescript-sdk-examples/2.81.0/vault/UpdateSecret.ts.html |here} to see how to use UpdateSecretRequest.
|
|
17
17
|
*/
|
|
18
18
|
export interface UpdateSecretRequest extends common.BaseRequest {
|
|
19
19
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oci-vault",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.81.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.
|
|
19
|
-
"oci-workrequests": "2.
|
|
18
|
+
"oci-common": "2.81.0",
|
|
19
|
+
"oci-workrequests": "2.81.0"
|
|
20
20
|
},
|
|
21
21
|
"publishConfig": {
|
|
22
22
|
"registry": "https://registry.npmjs.org"
|