Skip to content

Commit e8bd249

Browse files
authored
feat(secret): add option to disable previous version when creating a new Secret Version (#561)
1 parent 00188eb commit e8bd249

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

packages/clients/src/api/secret/v1alpha1/marshalling.gen.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ export const marshalCreateSecretVersionRequest = (
112112
): Record<string, unknown> => ({
113113
data: request.data,
114114
description: request.description,
115+
disable_previous: request.disablePrevious,
115116
})
116117

117118
export const marshalUpdateSecretRequest = (

packages/clients/src/api/secret/v1alpha1/types.gen.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -191,6 +191,11 @@ export type CreateSecretVersionRequest = {
191191
data: string
192192
/** Description of the version. */
193193
description?: string
194+
/**
195+
* Disable the previous secret version. If there is no previous version or if
196+
* the previous version was already disabled, does nothing.
197+
*/
198+
disablePrevious: boolean
194199
}
195200

196201
export type GetSecretVersionRequest = {

0 commit comments

Comments
 (0)