From 3f85d052d2f4800d9f3568eed58f0db6d81a048b Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Fri, 12 Apr 2024 08:37:14 +0000 Subject: [PATCH] feat: update generated APIs --- .../src/api/secret/v1beta1/index.gen.ts | 6 +-- .../src/api/secret/v1beta1/types.gen.ts | 46 +++++++++---------- .../secret/v1beta1/validation-rules.gen.ts | 2 +- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/packages/clients/src/api/secret/v1beta1/index.gen.ts b/packages/clients/src/api/secret/v1beta1/index.gen.ts index d9c0c57a0..06210c070 100644 --- a/packages/clients/src/api/secret/v1beta1/index.gen.ts +++ b/packages/clients/src/api/secret/v1beta1/index.gen.ts @@ -6,6 +6,7 @@ export type { AccessSecretVersionRequest, AccessSecretVersionResponse, AddSecretOwnerRequest, + BasicCredentials, BrowseSecretsRequest, BrowseSecretsRequestOrderBy, BrowseSecretsResponse, @@ -14,6 +15,7 @@ export type { BrowseSecretsResponseItemSecretDetails, CreateSecretRequest, CreateSecretVersionRequest, + DatabaseCredentials, DeleteSecretRequest, DeleteSecretVersionRequest, DisableSecretVersionRequest, @@ -32,12 +34,10 @@ export type { ListTagsResponse, Product, ProtectSecretRequest, + SSHKey, Secret, SecretStatus, SecretType, - SecretTypeBasicCredentials, - SecretTypeDatabaseCredentials, - SecretTypeSSHKey, SecretVersion, SecretVersionStatus, UnprotectSecretRequest, diff --git a/packages/clients/src/api/secret/v1beta1/types.gen.ts b/packages/clients/src/api/secret/v1beta1/types.gen.ts index 021587c28..f1f4f106a 100644 --- a/packages/clients/src/api/secret/v1beta1/types.gen.ts +++ b/packages/clients/src/api/secret/v1beta1/types.gen.ts @@ -227,6 +227,13 @@ export type AddSecretOwnerRequest = { product?: Product } +export interface BasicCredentials { + /** The username or identifier associated with the credentials. */ + username: string + /** The password associated with the credentials. */ + password: string +} + export type BrowseSecretsRequest = { /** * Region to target. If none is passed will use default region from the @@ -312,6 +319,21 @@ export type CreateSecretVersionRequest = { dataCrc32?: number } +export interface DatabaseCredentials { + /** Supported database engines are: 'postgres', 'mysql', 'other'. */ + engine: string + /** The username used to authenticate to the database server. */ + username: string + /** The password used to authenticate to the database server. */ + password: string + /** The hostname or resolvable DNS name of the database server. */ + host: string + /** The name of the database to connect to. */ + dbname: string + /** The port must be an integer ranging from 0 to 65535. */ + port: string +} + export type DeleteSecretRequest = { /** * Region to target. If none is passed will use default region from the @@ -490,29 +512,7 @@ export type ProtectSecretRequest = { secretId: string } -export interface SecretTypeBasicCredentials { - /** The username or identifier associated with the credentials. */ - username: string - /** The password associated with the credentials. */ - password: string -} - -export interface SecretTypeDatabaseCredentials { - /** Supported database engines are: 'postgres', 'mysql', 'other'. */ - engine: string - /** The username used to authenticate to the database server. */ - username: string - /** The password used to authenticate to the database server. */ - password: string - /** The hostname or resolvable DNS name of the database server. */ - host: string - /** The name of the database to connect to. */ - dbname: string - /** The port must be an integer ranging from 0 to 65535. */ - port: string -} - -export interface SecretTypeSSHKey { +export interface SSHKey { /** The private SSH key. */ sshPrivateKey: string } diff --git a/packages/clients/src/api/secret/v1beta1/validation-rules.gen.ts b/packages/clients/src/api/secret/v1beta1/validation-rules.gen.ts index 7a77f0113..b3a820c66 100644 --- a/packages/clients/src/api/secret/v1beta1/validation-rules.gen.ts +++ b/packages/clients/src/api/secret/v1beta1/validation-rules.gen.ts @@ -1,7 +1,7 @@ // This file was automatically generated. DO NOT EDIT. // If you have any remark or suggestion do not hesitate to open an issue. -export const SecretTypeDatabaseCredentials = { +export const DatabaseCredentials = { port: { pattern: /^[0-9]+$/, },