Skip to content

Commit 8a67630

Browse files
authored
chore(secret_manager): change secret type names to avoid name conflicts (#1237)
1 parent 02238c7 commit 8a67630

File tree

3 files changed

+27
-27
lines changed

3 files changed

+27
-27
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export type {
66
AccessSecretVersionRequest,
77
AccessSecretVersionResponse,
88
AddSecretOwnerRequest,
9+
BasicCredentials,
910
BrowseSecretsRequest,
1011
BrowseSecretsRequestOrderBy,
1112
BrowseSecretsResponse,
@@ -14,6 +15,7 @@ export type {
1415
BrowseSecretsResponseItemSecretDetails,
1516
CreateSecretRequest,
1617
CreateSecretVersionRequest,
18+
DatabaseCredentials,
1719
DeleteSecretRequest,
1820
DeleteSecretVersionRequest,
1921
DisableSecretVersionRequest,
@@ -32,12 +34,10 @@ export type {
3234
ListTagsResponse,
3335
Product,
3436
ProtectSecretRequest,
37+
SSHKey,
3538
Secret,
3639
SecretStatus,
3740
SecretType,
38-
SecretTypeBasicCredentials,
39-
SecretTypeDatabaseCredentials,
40-
SecretTypeSSHKey,
4141
SecretVersion,
4242
SecretVersionStatus,
4343
UnprotectSecretRequest,

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

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -227,6 +227,13 @@ export type AddSecretOwnerRequest = {
227227
product?: Product
228228
}
229229

230+
export interface BasicCredentials {
231+
/** The username or identifier associated with the credentials. */
232+
username: string
233+
/** The password associated with the credentials. */
234+
password: string
235+
}
236+
230237
export type BrowseSecretsRequest = {
231238
/**
232239
* Region to target. If none is passed will use default region from the
@@ -312,6 +319,21 @@ export type CreateSecretVersionRequest = {
312319
dataCrc32?: number
313320
}
314321

322+
export interface DatabaseCredentials {
323+
/** Supported database engines are: 'postgres', 'mysql', 'other'. */
324+
engine: string
325+
/** The username used to authenticate to the database server. */
326+
username: string
327+
/** The password used to authenticate to the database server. */
328+
password: string
329+
/** The hostname or resolvable DNS name of the database server. */
330+
host: string
331+
/** The name of the database to connect to. */
332+
dbname: string
333+
/** The port must be an integer ranging from 0 to 65535. */
334+
port: string
335+
}
336+
315337
export type DeleteSecretRequest = {
316338
/**
317339
* Region to target. If none is passed will use default region from the
@@ -490,29 +512,7 @@ export type ProtectSecretRequest = {
490512
secretId: string
491513
}
492514

493-
export interface SecretTypeBasicCredentials {
494-
/** The username or identifier associated with the credentials. */
495-
username: string
496-
/** The password associated with the credentials. */
497-
password: string
498-
}
499-
500-
export interface SecretTypeDatabaseCredentials {
501-
/** Supported database engines are: 'postgres', 'mysql', 'other'. */
502-
engine: string
503-
/** The username used to authenticate to the database server. */
504-
username: string
505-
/** The password used to authenticate to the database server. */
506-
password: string
507-
/** The hostname or resolvable DNS name of the database server. */
508-
host: string
509-
/** The name of the database to connect to. */
510-
dbname: string
511-
/** The port must be an integer ranging from 0 to 65535. */
512-
port: string
513-
}
514-
515-
export interface SecretTypeSSHKey {
515+
export interface SSHKey {
516516
/** The private SSH key. */
517517
sshPrivateKey: string
518518
}

packages/clients/src/api/secret/v1beta1/validation-rules.gen.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// This file was automatically generated. DO NOT EDIT.
22
// If you have any remark or suggestion do not hesitate to open an issue.
33

4-
export const SecretTypeDatabaseCredentials = {
4+
export const DatabaseCredentials = {
55
port: {
66
pattern: /^[0-9]+$/,
77
},

0 commit comments

Comments
 (0)