2020-01-07 19:59:31 -05:00
|
|
|
// Code generated by "mapstructure-to-hcl2 -type ConfigParamsConfig"; DO NOT EDIT.
|
2020-12-11 19:04:43 -05:00
|
|
|
|
2020-01-07 19:59:31 -05:00
|
|
|
package common
|
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/hcl/v2/hcldec"
|
|
|
|
"github.com/zclconf/go-cty/cty"
|
|
|
|
)
|
|
|
|
|
|
|
|
// FlatConfigParamsConfig is an auto-generated flat version of ConfigParamsConfig.
|
|
|
|
// Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
|
|
|
|
type FlatConfigParamsConfig struct {
|
2020-06-05 11:20:44 -04:00
|
|
|
ConfigParams map[string]string `mapstructure:"configuration_parameters" cty:"configuration_parameters" hcl:"configuration_parameters"`
|
|
|
|
ToolsSyncTime *bool `mapstructure:"tools_sync_time" cty:"tools_sync_time" hcl:"tools_sync_time"`
|
|
|
|
ToolsUpgradePolicy *bool `mapstructure:"tools_upgrade_policy" cty:"tools_upgrade_policy" hcl:"tools_upgrade_policy"`
|
2020-01-07 19:59:31 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
// FlatMapstructure returns a new FlatConfigParamsConfig.
|
|
|
|
// FlatConfigParamsConfig is an auto-generated flat version of ConfigParamsConfig.
|
|
|
|
// Where the contents a fields with a `mapstructure:,squash` tag are bubbled up.
|
|
|
|
func (*ConfigParamsConfig) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec } {
|
|
|
|
return new(FlatConfigParamsConfig)
|
|
|
|
}
|
|
|
|
|
|
|
|
// HCL2Spec returns the hcl spec of a ConfigParamsConfig.
|
|
|
|
// This spec is used by HCL to read the fields of ConfigParamsConfig.
|
|
|
|
// The decoded values from this spec will then be applied to a FlatConfigParamsConfig.
|
|
|
|
func (*FlatConfigParamsConfig) HCL2Spec() map[string]hcldec.Spec {
|
|
|
|
s := map[string]hcldec.Spec{
|
2020-04-14 10:05:13 -04:00
|
|
|
"configuration_parameters": &hcldec.AttrSpec{Name: "configuration_parameters", Type: cty.Map(cty.String), Required: false},
|
2020-06-05 11:20:44 -04:00
|
|
|
"tools_sync_time": &hcldec.AttrSpec{Name: "tools_sync_time", Type: cty.Bool, Required: false},
|
|
|
|
"tools_upgrade_policy": &hcldec.AttrSpec{Name: "tools_upgrade_policy", Type: cty.Bool, Required: false},
|
2020-01-07 19:59:31 -05:00
|
|
|
}
|
|
|
|
return s
|
|
|
|
}
|