diff --git a/go/models/env_var_value.go b/go/models/env_var_value.go index 12689368..bb9b9668 100644 --- a/go/models/env_var_value.go +++ b/go/models/env_var_value.go @@ -20,7 +20,7 @@ import ( type EnvVarValue struct { // The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`. - // Enum: [all dev branch-deploy deploy-preview production branch] + // Enum: [all dev dev-server branch-deploy deploy-preview production branch] Context string `json:"context,omitempty"` // An additional parameter for custom branches. Currently, this is used for specifying a branch name when `context=branch`. @@ -51,7 +51,7 @@ var envVarValueTypeContextPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["all","dev","branch-deploy","deploy-preview","production","branch"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["all","dev","dev-server","branch-deploy","deploy-preview","production","branch"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -67,6 +67,9 @@ const ( // EnvVarValueContextDev captures enum value "dev" EnvVarValueContextDev string = "dev" + // EnvVarValueContextDevServer captures enum value "dev-server" + EnvVarValueContextDevServer string = "dev-server" + // EnvVarValueContextBranchDeploy captures enum value "branch-deploy" EnvVarValueContextBranchDeploy string = "branch-deploy" diff --git a/go/models/set_env_var_value_params_body.go b/go/models/set_env_var_value_params_body.go index 97a12763..677769e3 100644 --- a/go/models/set_env_var_value_params_body.go +++ b/go/models/set_env_var_value_params_body.go @@ -20,7 +20,7 @@ import ( type SetEnvVarValueParamsBody struct { // The deploy context in which this value will be used. `dev` refers to local development when running `netlify dev`. `branch` must be provided with a value in `context_parameter`. - // Enum: [all dev branch-deploy deploy-preview production branch] + // Enum: [all dev dev-server branch-deploy deploy-preview production branch] Context string `json:"context,omitempty"` // An additional parameter for custom branches. Currently, this is used for providing a branch name when `context=branch`. @@ -48,7 +48,7 @@ var setEnvVarValueParamsBodyTypeContextPropEnum []interface{} func init() { var res []string - if err := json.Unmarshal([]byte(`["all","dev","branch-deploy","deploy-preview","production","branch"]`), &res); err != nil { + if err := json.Unmarshal([]byte(`["all","dev","dev-server","branch-deploy","deploy-preview","production","branch"]`), &res); err != nil { panic(err) } for _, v := range res { @@ -64,6 +64,9 @@ const ( // SetEnvVarValueParamsBodyContextDev captures enum value "dev" SetEnvVarValueParamsBodyContextDev string = "dev" + // SetEnvVarValueParamsBodyContextDevServer captures enum value "dev-server" + SetEnvVarValueParamsBodyContextDevServer string = "dev-server" + // SetEnvVarValueParamsBodyContextBranchDeploy captures enum value "branch-deploy" SetEnvVarValueParamsBodyContextBranchDeploy string = "branch-deploy" diff --git a/swagger.yml b/swagger.yml index c60bceab..df14a092 100644 --- a/swagger.yml +++ b/swagger.yml @@ -257,6 +257,7 @@ paths: enum: - all - dev + - dev-server - branch-deploy - deploy-preview - production @@ -365,6 +366,7 @@ paths: enum: - all - dev + - dev-server - branch-deploy - deploy-preview - production @@ -519,6 +521,7 @@ paths: enum: - all - dev + - dev-server - branch-deploy - deploy-preview - production @@ -3561,6 +3564,7 @@ definitions: enum: - all - dev + - dev-server - branch-deploy - deploy-preview - production