From 49501900c98b4cc0041b7d7ca1b9a2e568699935 Mon Sep 17 00:00:00 2001 From: scaleway-bot Date: Tue, 8 Feb 2022 15:27:10 +0000 Subject: [PATCH 1/2] feat: update generated apis --- api/container/v1beta1/container_sdk.go | 18 ++++++++++++++++++ api/function/v1beta1/function_sdk.go | 18 ++++++++++++++++++ 2 files changed, 36 insertions(+) diff --git a/api/container/v1beta1/container_sdk.go b/api/container/v1beta1/container_sdk.go index 55cff5329..76a598520 100644 --- a/api/container/v1beta1/container_sdk.go +++ b/api/container/v1beta1/container_sdk.go @@ -533,6 +533,8 @@ type Container struct { Port uint32 `json:"port"` + SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` + Region scw.Region `json:"region"` } @@ -636,9 +638,17 @@ type Namespace struct { Description *string `json:"description"` + SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` + Region scw.Region `json:"region"` } +type Secret struct { + Key string `json:"key"` + + Value *string `json:"value"` +} + type Token struct { Token string `json:"token"` @@ -757,6 +767,8 @@ type CreateNamespaceRequest struct { ProjectID string `json:"project_id"` Description *string `json:"description"` + + SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` } // CreateNamespace: create a new namespace @@ -809,6 +821,8 @@ type UpdateNamespaceRequest struct { EnvironmentVariables *map[string]string `json:"environment_variables"` Description *string `json:"description"` + + SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` } // UpdateNamespace: update an existing namespace @@ -1027,6 +1041,8 @@ type CreateContainerRequest struct { Protocol ContainerProtocol `json:"protocol"` Port *uint32 `json:"port"` + + SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` } // CreateContainer: create a new container @@ -1100,6 +1116,8 @@ type UpdateContainerRequest struct { Protocol ContainerProtocol `json:"protocol"` Port *uint32 `json:"port"` + + SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` } // UpdateContainer: update an existing container diff --git a/api/function/v1beta1/function_sdk.go b/api/function/v1beta1/function_sdk.go index 674179253..84bff1e1d 100644 --- a/api/function/v1beta1/function_sdk.go +++ b/api/function/v1beta1/function_sdk.go @@ -573,6 +573,8 @@ type Function struct { Description *string `json:"description"` + SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` + Region scw.Region `json:"region"` } @@ -649,9 +651,17 @@ type Namespace struct { Description *string `json:"description"` + SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` + Region scw.Region `json:"region"` } +type Secret struct { + Key string `json:"key"` + + Value *string `json:"value"` +} + type Token struct { Token string `json:"token"` @@ -777,6 +787,8 @@ type CreateNamespaceRequest struct { ProjectID string `json:"project_id"` Description *string `json:"description"` + + SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` } // CreateNamespace: create a new namespace @@ -829,6 +841,8 @@ type UpdateNamespaceRequest struct { EnvironmentVariables *map[string]string `json:"environment_variables"` Description *string `json:"description"` + + SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` } // UpdateNamespace: update an existing namespace @@ -1041,6 +1055,8 @@ type CreateFunctionRequest struct { Privacy FunctionPrivacy `json:"privacy"` Description *string `json:"description"` + + SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` } // CreateFunction: create a new function @@ -1104,6 +1120,8 @@ type UpdateFunctionRequest struct { Privacy FunctionPrivacy `json:"privacy"` Description *string `json:"description"` + + SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` } // UpdateFunction: update an existing function From 1054a7cde9048778515d720083236be98fc94f72 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9my=20L=C3=A9one?= Date: Tue, 8 Feb 2022 17:37:55 +0100 Subject: [PATCH 2/2] Fix --- api/function/v1beta1/function_sdk.go | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/api/function/v1beta1/function_sdk.go b/api/function/v1beta1/function_sdk.go index 84bff1e1d..674179253 100644 --- a/api/function/v1beta1/function_sdk.go +++ b/api/function/v1beta1/function_sdk.go @@ -573,8 +573,6 @@ type Function struct { Description *string `json:"description"` - SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` - Region scw.Region `json:"region"` } @@ -651,17 +649,9 @@ type Namespace struct { Description *string `json:"description"` - SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` - Region scw.Region `json:"region"` } -type Secret struct { - Key string `json:"key"` - - Value *string `json:"value"` -} - type Token struct { Token string `json:"token"` @@ -787,8 +777,6 @@ type CreateNamespaceRequest struct { ProjectID string `json:"project_id"` Description *string `json:"description"` - - SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` } // CreateNamespace: create a new namespace @@ -841,8 +829,6 @@ type UpdateNamespaceRequest struct { EnvironmentVariables *map[string]string `json:"environment_variables"` Description *string `json:"description"` - - SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` } // UpdateNamespace: update an existing namespace @@ -1055,8 +1041,6 @@ type CreateFunctionRequest struct { Privacy FunctionPrivacy `json:"privacy"` Description *string `json:"description"` - - SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` } // CreateFunction: create a new function @@ -1120,8 +1104,6 @@ type UpdateFunctionRequest struct { Privacy FunctionPrivacy `json:"privacy"` Description *string `json:"description"` - - SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"` } // UpdateFunction: update an existing function