resource_origin_group

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: MPL-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpandOrigins

func ExpandOrigins(ctx context.Context, origins types.List) ([]origingroups.Origin, diag.Diagnostics)

func OriginGroupResourceSchema

func OriginGroupResourceSchema(ctx context.Context) schema.Schema

Types

type OriginGroupModel

type OriginGroupModel struct {
	Id      types.Int64  `tfsdk:"id"`
	Name    types.String `tfsdk:"name"`
	Origins types.List   `tfsdk:"origins"`
	Region  types.String `tfsdk:"region"`
	UseNext types.Bool   `tfsdk:"use_next"`
}

func (*OriginGroupModel) UpdateFromOriginGroup

func (m *OriginGroupModel) UpdateFromOriginGroup(ctx context.Context, originGroup *origingroups.OriginGroup) diag.Diagnostics

type OriginsType

type OriginsType struct {
	basetypes.ObjectType
}

func (OriginsType) Equal

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

func (OriginsType) String

func (t OriginsType) String() string

func (OriginsType) ValueFromObject

func (OriginsType) ValueFromTerraform

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

func (OriginsType) ValueType

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

type OriginsValue

type OriginsValue struct {
	Backup  basetypes.BoolValue   `tfsdk:"backup"`
	Enabled basetypes.BoolValue   `tfsdk:"enabled"`
	Source  basetypes.StringValue `tfsdk:"source"`
	// contains filtered or unexported fields
}

func NewOriginsValue

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

func NewOriginsValueMust

func NewOriginsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) OriginsValue

func NewOriginsValueNull

func NewOriginsValueNull() OriginsValue

func NewOriginsValueUnknown

func NewOriginsValueUnknown() OriginsValue

func (OriginsValue) AttributeTypes

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

func (OriginsValue) Equal

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

func (OriginsValue) IsNull

func (v OriginsValue) IsNull() bool

func (OriginsValue) IsUnknown

func (v OriginsValue) IsUnknown() bool

func (OriginsValue) String

func (v OriginsValue) String() string

func (OriginsValue) ToObjectValue

func (OriginsValue) ToTerraformValue

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

func (OriginsValue) Type

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

Jump to

Keyboard shortcuts

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