resource_site

package
v0.1.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SiteResourceSchema

func SiteResourceSchema(ctx context.Context) schema.Schema

func TerraformToSdk

func TerraformToSdk(ctx context.Context, plan *SiteModel) (*models.Site, diag.Diagnostics)

Types

type LatlngType

type LatlngType struct {
	basetypes.ObjectType
}

func (LatlngType) Equal

func (t LatlngType) Equal(o attr.Type) bool

func (LatlngType) String

func (t LatlngType) String() string

func (LatlngType) ValueFromObject

func (LatlngType) ValueFromTerraform

func (t LatlngType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)

func (LatlngType) ValueType

func (t LatlngType) ValueType(ctx context.Context) attr.Value

type LatlngValue

type LatlngValue struct {
	Lat basetypes.Float64Value `tfsdk:"lat"`
	Lng basetypes.Float64Value `tfsdk:"lng"`
	// contains filtered or unexported fields
}

func NewLatlngValue

func NewLatlngValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (LatlngValue, diag.Diagnostics)

func NewLatlngValueMust

func NewLatlngValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) LatlngValue

func NewLatlngValueNull

func NewLatlngValueNull() LatlngValue

func NewLatlngValueUnknown

func NewLatlngValueUnknown() LatlngValue

func (LatlngValue) AttributeTypes

func (v LatlngValue) AttributeTypes(ctx context.Context) map[string]attr.Type

func (LatlngValue) Equal

func (v LatlngValue) Equal(o attr.Value) bool

func (LatlngValue) IsNull

func (v LatlngValue) IsNull() bool

func (LatlngValue) IsUnknown

func (v LatlngValue) IsUnknown() bool

func (LatlngValue) String

func (v LatlngValue) String() string

func (LatlngValue) ToObjectValue

func (LatlngValue) ToTerraformValue

func (v LatlngValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)

func (LatlngValue) Type

func (v LatlngValue) Type(ctx context.Context) attr.Type

type SiteModel

type SiteModel struct {
	Address           types.String `tfsdk:"address"`
	AlarmtemplateId   types.String `tfsdk:"alarmtemplate_id"`
	AptemplateId      types.String `tfsdk:"aptemplate_id"`
	CountryCode       types.String `tfsdk:"country_code"`
	GatewaytemplateId types.String `tfsdk:"gatewaytemplate_id"`
	Id                types.String `tfsdk:"id"`
	Latlng            LatlngValue  `tfsdk:"latlng"`
	Name              types.String `tfsdk:"name"`
	NetworktemplateId types.String `tfsdk:"networktemplate_id"`
	Notes             types.String `tfsdk:"notes"`
	OrgId             types.String `tfsdk:"org_id"`
	RftemplateId      types.String `tfsdk:"rftemplate_id"`
	SecpolicyId       types.String `tfsdk:"secpolicy_id"`
	SitegroupIds      types.List   `tfsdk:"sitegroup_ids"`
	SitetemplateId    types.String `tfsdk:"sitetemplate_id"`
	Timezone          types.String `tfsdk:"timezone"`
}

func SdkToTerraform

func SdkToTerraform(ctx context.Context, data *models.Site) (SiteModel, diag.Diagnostics)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL