Skip to content

Commit f29c488

Browse files
authored
feat(secret_manager): return type on AccessSecretVersion (#1214)
1 parent 2dacdf2 commit f29c488

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ export const unmarshalAccessSecretVersionResponse = (
117117
dataCrc32: data.data_crc32,
118118
revision: data.revision,
119119
secretId: data.secret_id,
120+
type: data.type,
120121
} as AccessSecretVersionResponse
121122
}
122123

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ export interface Secret {
141141
managed: boolean
142142
/** Returns `true` for protected secrets that cannot be deleted. */
143143
protected: boolean
144-
/** See `Secret.Type` enum for description of values. */
144+
/** See the `Secret.Type` enum for a description of values. */
145145
type: SecretType
146146
/** Location of the secret in the directory structure. */
147147
path: string
@@ -188,6 +188,8 @@ export interface AccessSecretVersionResponse {
188188
* the version.
189189
*/
190190
dataCrc32?: number
191+
/** See the `Secret.Type` enum for a description of values. */
192+
type: SecretType
191193
}
192194

193195
export type AddSecretOwnerRequest = {
@@ -243,7 +245,7 @@ export type CreateSecretRequest = {
243245
/** Description of the secret. */
244246
description?: string
245247
/**
246-
* (Optional.) See `Secret.Type` enum for description of values. If not
248+
* (Optional.) See the `Secret.Type` enum for a description of values. If not
247249
* specified, the type is `Opaque`.
248250
*/
249251
type?: SecretType

0 commit comments

Comments
 (0)