Skip to content

Commit c0b7c40

Browse files
authored
feat(secret_manager): add used_by field to Secret (#1390)
1 parent 4e26e5b commit c0b7c40

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
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
@@ -100,6 +100,7 @@ export const unmarshalSecret = (data: unknown): Secret => {
100100
tags: data.tags,
101101
type: data.type,
102102
updatedAt: unmarshalDate(data.updated_at),
103+
usedBy: data.used_by,
103104
versionCount: data.version_count,
104105
} as Secret
105106
}

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,8 @@ export interface Secret {
151151
* default, the policy is applied to all the secret's versions.
152152
*/
153153
ephemeralPolicy?: EphemeralPolicy
154+
/** List of Scaleway resources that can access and manage the secret. */
155+
usedBy: Product[]
154156
/** Region of the secret. */
155157
region: Region
156158
}

0 commit comments

Comments
 (0)