34 lines
1.5 KiB
Go
34 lines
1.5 KiB
Go
// Code generated by "mapstructure-to-hcl2 -type ImageDestination"; DO NOT EDIT.
|
|
package uhost
|
|
|
|
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 {
|
|
ProjectId *string `mapstructure:"project_id" cty:"project_id"`
|
|
Region *string `mapstructure:"region" cty:"region"`
|
|
Name *string `mapstructure:"name" cty:"name"`
|
|
Description *string `mapstructure:"description" cty:"description"`
|
|
}
|
|
|
|
// 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.
|
|
func (*ImageDestination) FlatMapstructure() interface{} { return new(FlatImageDestination) }
|
|
|
|
// HCL2Spec returns the hcldec.Spec of a FlatImageDestination.
|
|
// This spec is used by HCL to read the fields of FlatImageDestination.
|
|
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
|
|
}
|