Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions api/container/v1beta1/container_sdk.go
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ type Container struct {

Port uint32 `json:"port"`

SecretEnvironmentVariables []*Secret `json:"secret_environment_variables"`

Region scw.Region `json:"region"`
}

Expand Down Expand Up @@ -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"`

Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down