chore: Reuse ComputedParmeter, remove duplicated codersdk type (#2477)

* chore: Reuse ComputedParmeter instead of custom type
This commit is contained in:
Steven Masley
2022-06-17 15:20:13 -05:00
committed by GitHub
parent 0b6efce466
commit 4616499030
4 changed files with 21 additions and 37 deletions

View File

@ -41,6 +41,13 @@ const (
ParameterTypeSystemHCL ParameterTypeSystem = "hcl"
)
type ComputedParameter struct {
Parameter
SourceValue string `json:"source_value"`
SchemaID uuid.UUID `json:"schema_id"`
DefaultSourceValue bool `json:"default_source_value"`
}
// Parameter represents a set value for the scope.
type Parameter struct {
ID uuid.UUID `json:"id"`