fux gebeaj
This commit is contained in:
parent
fb9c624281
commit
a4f95c8e7d
@ -1,5 +1,5 @@
|
|||||||
// Code generated by "mapstructure-to-hcl2 -type ImageDestination"; DO NOT EDIT.
|
// Code generated by "mapstructure-to-hcl2 -type ImageDestination"; DO NOT EDIT.
|
||||||
package uhost
|
package common
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/hashicorp/hcl/v2/hcldec"
|
"github.com/hashicorp/hcl/v2/hcldec"
|
@ -3,6 +3,7 @@ package uhost
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/hashicorp/hcl/v2/hcldec"
|
"github.com/hashicorp/hcl/v2/hcldec"
|
||||||
|
"github.com/hashicorp/packer/builder/ucloud/common"
|
||||||
"github.com/zclconf/go-cty/cty"
|
"github.com/zclconf/go-cty/cty"
|
||||||
)
|
)
|
||||||
|
|
||||||
@ -23,7 +24,8 @@ type FlatConfig struct {
|
|||||||
BaseUrl *string `mapstructure:"base_url" cty:"base_url"`
|
BaseUrl *string `mapstructure:"base_url" cty:"base_url"`
|
||||||
ImageName *string `mapstructure:"image_name" cty:"image_name"`
|
ImageName *string `mapstructure:"image_name" cty:"image_name"`
|
||||||
ImageDescription *string `mapstructure:"image_description" cty:"image_description"`
|
ImageDescription *string `mapstructure:"image_description" cty:"image_description"`
|
||||||
ImageDestinations []FlatImageDestination `mapstructure:"image_copy_to_mappings" cty:"image_copy_to_mappings"`
|
ImageDestinations []common.FlatImageDestination `mapstructure:"image_copy_to_mappings" cty:"image_copy_to_mappings"`
|
||||||
|
WaitImageReadyTimeout *int `mapstructure:"wait_image_ready_timeout" cty:"wait_image_ready_timeout"`
|
||||||
Zone *string `mapstructure:"availability_zone" cty:"availability_zone"`
|
Zone *string `mapstructure:"availability_zone" cty:"availability_zone"`
|
||||||
SourceImageId *string `mapstructure:"source_image_id" cty:"source_image_id"`
|
SourceImageId *string `mapstructure:"source_image_id" cty:"source_image_id"`
|
||||||
InstanceType *string `mapstructure:"instance_type" cty:"instance_type"`
|
InstanceType *string `mapstructure:"instance_type" cty:"instance_type"`
|
||||||
@ -98,7 +100,8 @@ func (*FlatConfig) HCL2Spec() map[string]hcldec.Spec {
|
|||||||
"base_url": &hcldec.AttrSpec{Name: "base_url", Type: cty.String, Required: false},
|
"base_url": &hcldec.AttrSpec{Name: "base_url", Type: cty.String, Required: false},
|
||||||
"image_name": &hcldec.AttrSpec{Name: "image_name", Type: cty.String, Required: false},
|
"image_name": &hcldec.AttrSpec{Name: "image_name", Type: cty.String, Required: false},
|
||||||
"image_description": &hcldec.AttrSpec{Name: "image_description", Type: cty.String, Required: false},
|
"image_description": &hcldec.AttrSpec{Name: "image_description", Type: cty.String, Required: false},
|
||||||
"image_copy_to_mappings": &hcldec.BlockListSpec{TypeName: "image_copy_to_mappings", Nested: &hcldec.BlockSpec{TypeName: "image_copy_to_mappings", Nested: hcldec.ObjectSpec((*FlatImageDestination)(nil).HCL2Spec())}},
|
"image_copy_to_mappings": &hcldec.BlockListSpec{TypeName: "image_copy_to_mappings", Nested: &hcldec.BlockSpec{TypeName: "image_copy_to_mappings", Nested: hcldec.ObjectSpec((*common.FlatImageDestination)(nil).HCL2Spec())}},
|
||||||
|
"wait_image_ready_timeout": &hcldec.AttrSpec{Name: "wait_image_ready_timeout", Type: cty.Number, Required: false},
|
||||||
"availability_zone": &hcldec.AttrSpec{Name: "availability_zone", Type: cty.String, Required: false},
|
"availability_zone": &hcldec.AttrSpec{Name: "availability_zone", Type: cty.String, Required: false},
|
||||||
"source_image_id": &hcldec.AttrSpec{Name: "source_image_id", Type: cty.String, Required: false},
|
"source_image_id": &hcldec.AttrSpec{Name: "source_image_id", Type: cty.String, Required: false},
|
||||||
"instance_type": &hcldec.AttrSpec{Name: "instance_type", Type: cty.String, Required: false},
|
"instance_type": &hcldec.AttrSpec{Name: "instance_type", Type: cty.String, Required: false},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user