datasource_sites

package
v0.1.17 Latest Latest
Warning

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

Go to latest
Published: Aug 10, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SdkToTerraform

func SdkToTerraform(ctx context.Context, l []models.Site) (basetypes.SetValue, diag.Diagnostics)

func SitesDataSourceSchema

func SitesDataSourceSchema(ctx context.Context) schema.Schema

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 SitesModel

type SitesModel struct {
	OrgId types.String `tfsdk:"org_id"`
	Sites types.Set    `tfsdk:"sites"`
}

type SitesType

type SitesType struct {
	basetypes.ObjectType
}

func (SitesType) Equal

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

func (SitesType) String

func (t SitesType) String() string

func (SitesType) ValueFromObject

func (SitesType) ValueFromTerraform

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

func (SitesType) ValueType

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

type SitesValue

type SitesValue struct {
	Address           basetypes.StringValue `tfsdk:"address"`
	AlarmtemplateId   basetypes.StringValue `tfsdk:"alarmtemplate_id"`
	AptemplateId      basetypes.StringValue `tfsdk:"aptemplate_id"`
	CountryCode       basetypes.StringValue `tfsdk:"country_code"`
	CreatedTime       basetypes.NumberValue `tfsdk:"created_time"`
	GatewaytemplateId basetypes.StringValue `tfsdk:"gatewaytemplate_id"`
	Id                basetypes.StringValue `tfsdk:"id"`
	Latlng            basetypes.ObjectValue `tfsdk:"latlng"`
	ModifiedTime      basetypes.NumberValue `tfsdk:"modified_time"`
	Name              basetypes.StringValue `tfsdk:"name"`
	NetworktemplateId basetypes.StringValue `tfsdk:"networktemplate_id"`
	Notes             basetypes.StringValue `tfsdk:"notes"`
	OrgId             basetypes.StringValue `tfsdk:"org_id"`
	RftemplateId      basetypes.StringValue `tfsdk:"rftemplate_id"`
	SecpolicyId       basetypes.StringValue `tfsdk:"secpolicy_id"`
	SitegroupIds      basetypes.ListValue   `tfsdk:"sitegroup_ids"`
	SitetemplateId    basetypes.StringValue `tfsdk:"sitetemplate_id"`
	Timezone          basetypes.StringValue `tfsdk:"timezone"`
	// contains filtered or unexported fields
}

func NewSitesValue

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

func NewSitesValueMust

func NewSitesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) SitesValue

func NewSitesValueNull

func NewSitesValueNull() SitesValue

func NewSitesValueUnknown

func NewSitesValueUnknown() SitesValue

func (SitesValue) AttributeTypes

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

func (SitesValue) Equal

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

func (SitesValue) IsNull

func (v SitesValue) IsNull() bool

func (SitesValue) IsUnknown

func (v SitesValue) IsUnknown() bool

func (SitesValue) String

func (v SitesValue) String() string

func (SitesValue) ToObjectValue

func (SitesValue) ToTerraformValue

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

func (SitesValue) Type

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

Jump to

Keyboard shortcuts

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