From 4bc00bb29b7241609fa8267c0b1b56f6036a1514 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Thu, 7 Mar 2024 13:54:40 +0000 Subject: [PATCH] feat: update generated APIs --- api/secret/v1beta1/secret_sdk.go | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/api/secret/v1beta1/secret_sdk.go b/api/secret/v1beta1/secret_sdk.go index 9c99febe..5956d693 100644 --- a/api/secret/v1beta1/secret_sdk.go +++ b/api/secret/v1beta1/secret_sdk.go @@ -209,8 +209,14 @@ const ( SecretTypeOpaque = SecretType("opaque") // List of concatenated PEM blocks. They can contain certificates, private keys or any other PEM block types. SecretTypeCertificate = SecretType("certificate") - // Flat JSON that allows you to set any number of first level key and a scalar type as a value (string, numeric, boolean). + // Flat JSON that allows you to set as many first level keys and scalar types as values (string, numeric, boolean) as you need. SecretTypeKeyValue = SecretType("key_value") + // Flat JSON that allows you to set a username and a password. + SecretTypeBasicCredentials = SecretType("basic_credentials") + // Flat JSON that allows you to set an engine, username, password, host, database name, and port. + SecretTypeDatabaseCredentials = SecretType("database_credentials") + // Flat JSON that allows you to set an SSH key. + SecretTypeSSHKey = SecretType("ssh_key") ) func (enum SecretType) String() string { @@ -704,6 +710,10 @@ type ListSecretsRequest struct { // Ephemeral: filter by ephemeral / not ephemeral (optional). Ephemeral *bool `json:"-"` + + // Type: filter by secret type (optional). + // Default value: unknown_type + Type SecretType `json:"-"` } // ListSecretsResponse: list secrets response. @@ -1010,6 +1020,7 @@ func (s *API) ListSecrets(req *ListSecretsRequest, opts ...scw.RequestOption) (* parameter.AddToQuery(query, "name", req.Name) parameter.AddToQuery(query, "path", req.Path) parameter.AddToQuery(query, "ephemeral", req.Ephemeral) + parameter.AddToQuery(query, "type", req.Type) if fmt.Sprint(req.Region) == "" { return nil, errors.New("field Region cannot be empty in request")