File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
src/dstack/_internal/core/backends/template Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -22,6 +22,7 @@ class {{ backend_name }}BackendConfig(CoreModel):
2222 It also serves as a base class for other backend config models.
2323 Should not include creds.
2424 """
25+
2526 type: Annotated[
2627 Literal["{{ backend_name|lower }}"],
2728 Field(description="The type of backend"),
@@ -37,6 +38,7 @@ class {{ backend_name }}BackendConfigWithCreds({{ backend_name }}BackendConfig):
3738 """
3839 Same as `{{ backend_name }}BackendConfig` but also includes creds.
3940 """
41+
4042 creds: Annotated[Any{{ backend_name }}Creds, Field(description="The credentials")]
4143
4244
@@ -48,11 +50,13 @@ class {{ backend_name }}StoredConfig({{ backend_name }}BackendConfig):
4850 The backend config used for config parameters in the DB.
4951 Can extend `{{ backend_name }}BackendConfig` with additional parameters.
5052 """
53+
5154 pass
5255
5356
5457class {{ backend_name }}Config({{ backend_name }}StoredConfig):
5558 """
5659 The backend config used by `{{ backend_name }}Backend` and `{{ backend_name }}Compute`.
5760 """
61+
5862 creds: Any{{ backend_name }}Creds
You can’t perform that action at this time.
0 commit comments