Skip to content

Commit 66382b5

Browse files
authored
feat(secret_manager): add new secret types (#1175)
1 parent a5fd4cc commit 66382b5

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,7 @@ export class API extends ParentAPI {
149149
['path', request.path],
150150
['project_id', request.projectId],
151151
['tags', request.tags],
152+
['type', request.type],
152153
),
153154
},
154155
unmarshalListSecretsResponse,

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

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,14 @@ export type Product = 'unknown_product' | 'edge_services'
2424

2525
export type SecretStatus = 'unknown_status' | 'ready' | 'locked'
2626

27-
export type SecretType = 'unknown_type' | 'opaque' | 'certificate' | 'key_value'
27+
export type SecretType =
28+
| 'unknown_type'
29+
| 'opaque'
30+
| 'certificate'
31+
| 'key_value'
32+
| 'basic_credentials'
33+
| 'database_credentials'
34+
| 'ssh_key'
2835

2936
export type SecretVersionStatus =
3037
| 'unknown_status'
@@ -416,6 +423,8 @@ export type ListSecretsRequest = {
416423
path?: string
417424
/** Filter by ephemeral / not ephemeral (optional). */
418425
ephemeral?: boolean
426+
/** Filter by secret type (optional). */
427+
type?: SecretType
419428
}
420429

421430
export interface ListSecretsResponse {

0 commit comments

Comments
 (0)