2019-10-14 10:43:59 -04:00
|
|
|
// Code generated by "mapstructure-to-hcl2 -type ImageDestination"; DO NOT EDIT.
|
2019-10-23 18:17:46 -04:00
|
|
|
package common
|
2019-10-14 10:43:59 -04:00
|
|
|
|
|
|
|
import (
|
|
|
|
"github.com/hashicorp/hcl/v2/hcldec"
|
|
|
|
"github.com/zclconf/go-cty/cty"
|
|
|
|
)
|
|
|
|
|
|
|
|
// FlatImageDestination is an auto-generated flat version of ImageDestination.
|
|
|
|
// Where the contents of a field with a `mapstructure:,squash` tag are bubbled up.
|
|
|
|
type FlatImageDestination struct {
|
2020-06-24 08:31:05 -04:00
|
|
|
ProjectId *string `mapstructure:"project_id" required:"false" cty:"project_id" hcl:"project_id"`
|
|
|
|
Region *string `mapstructure:"region" required:"false" cty:"region" hcl:"region"`
|
|
|
|
Name *string `mapstructure:"name" required:"false" cty:"name" hcl:"name"`
|
|
|
|
Description *string `mapstructure:"description" required:"false" cty:"description" hcl:"description"`
|
2019-10-14 10:43:59 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
// FlatMapstructure returns a new FlatImageDestination.
|
|
|
|
// FlatImageDestination is an auto-generated flat version of ImageDestination.
|
|
|
|
// Where the contents a fields with a `mapstructure:,squash` tag are bubbled up.
|
2019-12-17 05:25:56 -05:00
|
|
|
func (*ImageDestination) FlatMapstructure() interface{ HCL2Spec() map[string]hcldec.Spec } {
|
|
|
|
return new(FlatImageDestination)
|
|
|
|
}
|
2019-10-14 10:43:59 -04:00
|
|
|
|
2019-12-17 05:25:56 -05:00
|
|
|
// HCL2Spec returns the hcl spec of a ImageDestination.
|
|
|
|
// This spec is used by HCL to read the fields of ImageDestination.
|
|
|
|
// The decoded values from this spec will then be applied to a FlatImageDestination.
|
2019-10-14 10:43:59 -04:00
|
|
|
func (*FlatImageDestination) HCL2Spec() map[string]hcldec.Spec {
|
|
|
|
s := map[string]hcldec.Spec{
|
|
|
|
"project_id": &hcldec.AttrSpec{Name: "project_id", Type: cty.String, Required: false},
|
|
|
|
"region": &hcldec.AttrSpec{Name: "region", Type: cty.String, Required: false},
|
|
|
|
"name": &hcldec.AttrSpec{Name: "name", Type: cty.String, Required: false},
|
|
|
|
"description": &hcldec.AttrSpec{Name: "description", Type: cty.String, Required: false},
|
|
|
|
}
|
|
|
|
return s
|
|
|
|
}
|