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):
22
22
It also serves as a base class for other backend config models.
23
23
Should not include creds.
24
24
"""
25
+
25
26
type: Annotated[
26
27
Literal["{{ backend_name|lower }}"],
27
28
Field(description="The type of backend"),
@@ -37,6 +38,7 @@ class {{ backend_name }}BackendConfigWithCreds({{ backend_name }}BackendConfig):
37
38
"""
38
39
Same as `{{ backend_name }}BackendConfig` but also includes creds.
39
40
"""
41
+
40
42
creds: Annotated[Any{{ backend_name }}Creds, Field(description="The credentials")]
41
43
42
44
@@ -48,11 +50,13 @@ class {{ backend_name }}StoredConfig({{ backend_name }}BackendConfig):
48
50
The backend config used for config parameters in the DB.
49
51
Can extend `{{ backend_name }}BackendConfig` with additional parameters.
50
52
"""
53
+
51
54
pass
52
55
53
56
54
57
class {{ backend_name }}Config({{ backend_name }}StoredConfig):
55
58
"""
56
59
The backend config used by `{{ backend_name }}Backend` and `{{ backend_name }}Compute`.
57
60
"""
61
+
58
62
creds: Any{{ backend_name }}Creds
You can’t perform that action at this time.
0 commit comments