apstravalidator

package
v0.57.2 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AtLeastNAttributes added in v0.36.0

func AtLeastNAttributes(n int, attributes ...string) validator.Object

func AtMostNAttributes added in v0.36.0

func AtMostNAttributes(n int, attributes ...string) validator.Object

func ExactlyNAttributes added in v0.36.0

func ExactlyNAttributes(n int, attributes ...string) validator.Object

func ExactlyOneBindingWhenVnTypeVlan

func ExactlyOneBindingWhenVnTypeVlan() validator.Map

ExactlyOneBindingWhenVnTypeVlan ensures that exactly one leaf node binding exists when the attribute at the neighboring `type` attribute matches apstra.VnTypeVlan

func FallsWithinCidr

func FallsWithinCidr(e path.Expression, allZerosOk bool, allOnesOk bool) validator.String

FallsWithinCidr determines whether this attribute's value falls within the CIDR block specified by the attribute at expression. Arguments allZerosOk and allOnesOk modify the notion of "within" to include (true) or exclude (false) the first (all zeros) and last (all ones) addresses in the block.

func Int64FabricConnectivityDesignMustBe

func Int64FabricConnectivityDesignMustBe(fcd apstra.FabricConnectivityDesign) validator.Int64

func Int64FabricConnectivityDesignMustBeWhenNull

func Int64FabricConnectivityDesignMustBeWhenNull(fcd apstra.FabricConnectivityDesign) validator.Int64

func MustBeEvenOrOdd

func MustBeEvenOrOdd(even bool) validator.Int64

func ParseCidr

func ParseCidr(requireIpv4 bool, requireIpv6 bool) validator.String

func ParseIp

func ParseIp(requireIpv4 bool, requireIpv6 bool) validator.String

func ParseIpOrCidr

func ParseIpOrCidr(requireIpv4 bool, requireIpv6 bool) validator.String

func ParseJson

func ParseJson() validator.String

func ParseRT added in v0.41.0

func ParseRT() validator.String

func ParseSpeed

func ParseSpeed() validator.String

func StringFabricConnectivityDesignMustBe

func StringFabricConnectivityDesignMustBe(fcd apstra.FabricConnectivityDesign) validator.String

func StringFabricConnectivityDesignMustBeWhenNull

func StringFabricConnectivityDesignMustBeWhenNull(fcd apstra.FabricConnectivityDesign) validator.String

func StringFabricConnectivityDesignMustBeWhenValue

func StringFabricConnectivityDesignMustBeWhenValue(fcd apstra.FabricConnectivityDesign, value string) validator.String

func ValidateLeafSwitchRedundancyMode

func ValidateLeafSwitchRedundancyMode() validator.String

func ValueAtMustBeBool

func ValueAtMustBeBool(e path.Expression, v attr.Value, nullOk bool) validator.Bool

ValueAtMustBeBool ensures that the value configured for a different attribute has the specified value.

func ValueAtMustBeFloat64

func ValueAtMustBeFloat64(e path.Expression, v attr.Value, nullOk bool) validator.Float64

ValueAtMustBeFloat64 ensures that the value configured for a different attribute has the specified value.

func ValueAtMustBeInt64

func ValueAtMustBeInt64(e path.Expression, v attr.Value, nullOk bool) validator.Int64

ValueAtMustBeInt64 ensures that the value configured for a different attribute has the specified value.

func ValueAtMustBeList

func ValueAtMustBeList(e path.Expression, v attr.Value, nullOk bool) validator.List

ValueAtMustBeList ensures that the value configured for a different attribute has the specified value.

func ValueAtMustBeMap

func ValueAtMustBeMap(e path.Expression, v attr.Value, nullOk bool) validator.Map

ValueAtMustBeMap ensures that the value configured for a different attribute has the specified value.

func ValueAtMustBeNumber

func ValueAtMustBeNumber(e path.Expression, v attr.Value, nullOk bool) validator.Number

ValueAtMustBeNumber ensures that the value configured for a different attribute has the specified value.

func ValueAtMustBeObject

func ValueAtMustBeObject(e path.Expression, v attr.Value, nullOk bool) validator.Object

ValueAtMustBeObject ensures that the value configured for a different attribute has the specified value.

func ValueAtMustBeSet

func ValueAtMustBeSet(e path.Expression, v attr.Value, nullOk bool) validator.Set

ValueAtMustBeSet ensures that the value configured for a different attribute has the specified value.

func ValueAtMustBeString

func ValueAtMustBeString(e path.Expression, v attr.Value, nullOk bool) validator.String

ValueAtMustBeString ensures that the value configured for a different attribute has the specified value.

func WhenValueAtMustBeBool

func WhenValueAtMustBeBool(e path.Expression, v attr.Value, validators ...validator.Bool) validator.Bool

WhenValueAtMustBeBool ensures that the value configured for a different attribute has the specified value.

func WhenValueAtMustBeFloat64

func WhenValueAtMustBeFloat64(e path.Expression, v attr.Value, validators ...validator.Float64) validator.Float64

WhenValueAtMustBeFloat64 ensures that the value configured for a different attribute has the specified value.

func WhenValueAtMustBeInt64

func WhenValueAtMustBeInt64(e path.Expression, v attr.Value, validators ...validator.Int64) validator.Int64

WhenValueAtMustBeInt64 ensures that the value configured for a different attribute has the specified value.

func WhenValueAtMustBeList

func WhenValueAtMustBeList(e path.Expression, v attr.Value, validators ...validator.List) validator.List

WhenValueAtMustBeList ensures that the value configured for a different attribute has the specified value.

func WhenValueAtMustBeMap

func WhenValueAtMustBeMap(e path.Expression, v attr.Value, validators ...validator.Map) validator.Map

WhenValueAtMustBeMap ensures that the value configured for a different attribute has the specified value.

func WhenValueAtMustBeNumber

func WhenValueAtMustBeNumber(e path.Expression, v attr.Value, validators ...validator.Number) validator.Number

WhenValueAtMustBeNumber ensures that the value configured for a different attribute has the specified value.

func WhenValueAtMustBeObject

func WhenValueAtMustBeObject(e path.Expression, v attr.Value, validators ...validator.Object) validator.Object

WhenValueAtMustBeObject ensures that the value configured for a different attribute has the specified value.

func WhenValueAtMustBeSet

func WhenValueAtMustBeSet(e path.Expression, v attr.Value, validators ...validator.Set) validator.Set

WhenValueAtMustBeSet ensures that the value configured for a different attribute has the specified value.

func WhenValueAtMustBeString

func WhenValueAtMustBeString(e path.Expression, trigger attr.Value, validators ...validator.String) validator.String

WhenValueAtMustBeString ensures that the value configured for a different attribute has the specified value.

func WhenValueIsBool

func WhenValueIsBool(trigger types.Bool, validators ...validator.Bool) validator.Bool

WhenValueIsBool runs the supplied validators only when the configured value is equal to the trigger value.

func WhenValueIsFloat64

func WhenValueIsFloat64(trigger types.Float64, validators ...validator.Float64) validator.Float64

WhenValueIsFloat64 runs the supplied validators only when the configured value is equal to the trigger value.

func WhenValueIsInt64

func WhenValueIsInt64(trigger types.Int64, validators ...validator.Int64) validator.Int64

WhenValueIsInt64 runs the supplied validators only when the configured value is equal to the trigger value.

func WhenValueIsList

func WhenValueIsList(trigger types.List, validators ...validator.List) validator.List

WhenValueIsList runs the supplied validators only when the configured value is equal to the trigger value.

func WhenValueIsMap

func WhenValueIsMap(trigger types.Map, validators ...validator.Map) validator.Map

WhenValueIsMap runs the supplied validators only when the configured value is equal to the trigger value.

func WhenValueIsNumber

func WhenValueIsNumber(trigger types.Number, validators ...validator.Number) validator.Number

WhenValueIsNumber runs the supplied validators only when the configured value is equal to the trigger value.

func WhenValueIsObject

func WhenValueIsObject(trigger types.Object, validators ...validator.Object) validator.Object

WhenValueIsObject runs the supplied validators only when the configured value is equal to the trigger value.

func WhenValueIsSet

func WhenValueIsSet(trigger types.Set, validators ...validator.Set) validator.Set

WhenValueIsSet runs the supplied validators only when the configured value is equal to the trigger value.

func WhenValueIsString

func WhenValueIsString(trigger types.String, validators ...validator.String) validator.String

WhenValueIsString runs the supplied validators only when the configured value is equal to the trigger value.

func WhenValueSetBool

func WhenValueSetBool(validators ...validator.Bool) validator.Bool

WhenValueSetBool runs the supplied validators only when the configured value is set.

func WhenValueSetFloat64

func WhenValueSetFloat64(validators ...validator.Float64) validator.Float64

WhenValueSetFloat64 runs the supplied validators only when the configured value is set.

func WhenValueSetInt64

func WhenValueSetInt64(validators ...validator.Int64) validator.Int64

WhenValueSetInt64 runs the supplied validators only when the configured value is set.

func WhenValueSetList

func WhenValueSetList(validators ...validator.List) validator.List

WhenValueSetList runs the supplied validators only when the configured value is set.

func WhenValueSetMap

func WhenValueSetMap(validators ...validator.Map) validator.Map

WhenValueSetMap runs the supplied validators only when the configured value is set.

func WhenValueSetNumber

func WhenValueSetNumber(validators ...validator.Number) validator.Number

WhenValueSetNumber runs the supplied validators only when the configured value is set.

func WhenValueSetObject

func WhenValueSetObject(validators ...validator.Object) validator.Object

WhenValueSetObject runs the supplied validators only when the configured value is set.

func WhenValueSetSet

func WhenValueSetSet(validators ...validator.Set) validator.Set

WhenValueSetSet runs the supplied validators only when the configured value is set.

func WhenValueSetString

func WhenValueSetString(validators ...validator.String) validator.String

WhenValueSetString runs the supplied validators only when the configured value is set.

Types

type AlsoRequiresNOfValidator

type AlsoRequiresNOfValidator struct {
	N               int
	PathExpressions path.Expressions
}

AlsoRequiresNOfValidator is the underlying struct implementing AlsoRequiresNOf.

func (AlsoRequiresNOfValidator) Description

func (o AlsoRequiresNOfValidator) Description(ctx context.Context) string

func (AlsoRequiresNOfValidator) MarkdownDescription

func (o AlsoRequiresNOfValidator) MarkdownDescription(_ context.Context) string

func (AlsoRequiresNOfValidator) Validate

func (AlsoRequiresNOfValidator) ValidateBool

func (AlsoRequiresNOfValidator) ValidateFloat64

func (AlsoRequiresNOfValidator) ValidateInt64

func (AlsoRequiresNOfValidator) ValidateList

func (AlsoRequiresNOfValidator) ValidateMap

func (AlsoRequiresNOfValidator) ValidateNumber

func (AlsoRequiresNOfValidator) ValidateObject

func (AlsoRequiresNOfValidator) ValidateSet

func (AlsoRequiresNOfValidator) ValidateString

type AlsoRequiresNOfValidatorRequest

type AlsoRequiresNOfValidatorRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	N              int
	Path           path.Path
	PathExpression path.Expression
}

type AlsoRequiresNOfValidatorResponse

type AlsoRequiresNOfValidatorResponse struct {
	Diagnostics diag.Diagnostics
}

type AtLeastProductOfValidator

type AtLeastProductOfValidator struct {
	PathExpression path.Expression
	Multiplier     float64
}

AtLeastProductOfValidator is the underlying struct implementing AtLeastProductOf.

func AtLeastProductOf

func AtLeastProductOf(multiplier float64, expression path.Expression) *AtLeastProductOfValidator

AtLeastProductOf checks that a set of path.Expression have values equal to the current attribute when the current attribute is non-null.

Relative path.Expression will be resolved using the attribute being validated.

func (AtLeastProductOfValidator) Description

func (o AtLeastProductOfValidator) Description(ctx context.Context) string

func (AtLeastProductOfValidator) MarkdownDescription

func (o AtLeastProductOfValidator) MarkdownDescription(_ context.Context) string

func (AtLeastProductOfValidator) Validate

func (AtLeastProductOfValidator) ValidateFloat64

func (AtLeastProductOfValidator) ValidateInt64

func (AtLeastProductOfValidator) ValidateNumber

type AtLeastProductOfValidatorRequest

type AtLeastProductOfValidatorRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	Path           path.Path
	PathExpression path.Expression
}

type AtLeastProductOfValidatorResponse

type AtLeastProductOfValidatorResponse struct {
	Diagnostics diag.Diagnostics
}

type AtMostNOfValidator

type AtMostNOfValidator struct {
	N               int
	PathExpressions path.Expressions
}

AtMostNOfValidator is the underlying struct implementing AtMostNOf.

func (AtMostNOfValidator) Description

func (o AtMostNOfValidator) Description(ctx context.Context) string

func (AtMostNOfValidator) MarkdownDescription

func (o AtMostNOfValidator) MarkdownDescription(_ context.Context) string

func (AtMostNOfValidator) Validate

func (AtMostNOfValidator) ValidateBool

func (AtMostNOfValidator) ValidateFloat64

func (AtMostNOfValidator) ValidateInt64

func (AtMostNOfValidator) ValidateList

func (AtMostNOfValidator) ValidateMap

func (AtMostNOfValidator) ValidateNumber

func (AtMostNOfValidator) ValidateObject

func (AtMostNOfValidator) ValidateSet

func (AtMostNOfValidator) ValidateString

type AtMostNOfValidatorRequest

type AtMostNOfValidatorRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	N              int
	Path           path.Path
	PathExpression path.Expression
}

type AtMostNOfValidatorResponse

type AtMostNOfValidatorResponse struct {
	Diagnostics diag.Diagnostics
}

type CollectionValidator added in v0.36.0

type CollectionValidator interface {
	validator.List
	validator.Map
	validator.Set
}

func UniqueInsensitiveValueCombinationsAt added in v0.36.0

func UniqueInsensitiveValueCombinationsAt(attrNames ...string) CollectionValidator

func UniqueValueCombinationsAt added in v0.36.0

func UniqueValueCombinationsAt(attrNames ...string) CollectionValidator

type DifferentFromValidator

type DifferentFromValidator struct {
	PathExpressions path.Expressions
}

DifferentFromValidator is the underlying struct implementing DifferentFrom.

func DifferentFrom

func DifferentFrom(expressions ...path.Expression) *DifferentFromValidator

DifferentFrom checks that a set of path.Expression have values equal to the current attribute when the current attribute is non-null.

Relative path.Expression will be resolved using the attribute being validated.

func (DifferentFromValidator) Description

func (o DifferentFromValidator) Description(ctx context.Context) string

func (DifferentFromValidator) MarkdownDescription

func (o DifferentFromValidator) MarkdownDescription(_ context.Context) string

func (DifferentFromValidator) Validate

func (DifferentFromValidator) ValidateBool

func (DifferentFromValidator) ValidateFloat64

func (DifferentFromValidator) ValidateInt64

func (DifferentFromValidator) ValidateList

func (DifferentFromValidator) ValidateMap

func (DifferentFromValidator) ValidateNumber

func (DifferentFromValidator) ValidateObject

func (DifferentFromValidator) ValidateSet

func (DifferentFromValidator) ValidateString

type DifferentFromValidatorRequest

type DifferentFromValidatorRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	Path           path.Path
	PathExpression path.Expression
}

type DifferentFromValidatorResponse

type DifferentFromValidatorResponse struct {
	Diagnostics diag.Diagnostics
}

type DifferentFromValuesValidator

type DifferentFromValuesValidator struct {
	PathExpressions path.Expressions
}

DifferentFromValuesValidator is the underlying struct implementing DifferentFromValues.

func DifferentFromValues

func DifferentFromValues(expressions ...path.Expression) *DifferentFromValuesValidator

DifferentFromValues checks that none of the values of the collection (list/map/set) attributes found at the supplied expressions are Equal() to this attribute's value.

func (DifferentFromValuesValidator) Description

func (DifferentFromValuesValidator) MarkdownDescription

func (o DifferentFromValuesValidator) MarkdownDescription(_ context.Context) string

func (DifferentFromValuesValidator) ValidateBool

func (DifferentFromValuesValidator) ValidateFloat64

func (DifferentFromValuesValidator) ValidateInt64

func (DifferentFromValuesValidator) ValidateList

func (DifferentFromValuesValidator) ValidateMap

func (DifferentFromValuesValidator) ValidateNumber

func (DifferentFromValuesValidator) ValidateObject

func (DifferentFromValuesValidator) ValidateSet

func (DifferentFromValuesValidator) ValidateString

type DifferentFromValuesValidatorRequest

type DifferentFromValuesValidatorRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	Path           path.Path
	PathExpression path.Expression
}

type DifferentFromValuesValidatorResponse

type DifferentFromValuesValidatorResponse struct {
	Diagnostics diag.Diagnostics
}

type ExactlyOneBindingWhenVnTypeVlanValidator

type ExactlyOneBindingWhenVnTypeVlanValidator struct{}

func (ExactlyOneBindingWhenVnTypeVlanValidator) Description

func (ExactlyOneBindingWhenVnTypeVlanValidator) MarkdownDescription

func (ExactlyOneBindingWhenVnTypeVlanValidator) ValidateMap

type ForbiddenWhenValueIsRequest

type ForbiddenWhenValueIsRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	Path           path.Path
	PathExpression path.Expression
}

type ForbiddenWhenValueIsResponse

type ForbiddenWhenValueIsResponse struct {
	Diagnostics diag.Diagnostics
}

type ForbiddenWhenValueIsValidator

type ForbiddenWhenValueIsValidator struct {
	Expression path.Expression
	Value      attr.Value
}

func ForbiddenWhenValueIs added in v0.43.0

func ForbiddenWhenValueIs(expression path.Expression, value attr.Value) ForbiddenWhenValueIsValidator

func (ForbiddenWhenValueIsValidator) Description

func (ForbiddenWhenValueIsValidator) MarkdownDescription

func (o ForbiddenWhenValueIsValidator) MarkdownDescription(ctx context.Context) string

func (ForbiddenWhenValueIsValidator) Validate

func (ForbiddenWhenValueIsValidator) ValidateBool

func (ForbiddenWhenValueIsValidator) ValidateFloat64

func (ForbiddenWhenValueIsValidator) ValidateInt64

func (ForbiddenWhenValueIsValidator) ValidateList

func (ForbiddenWhenValueIsValidator) ValidateMap

func (ForbiddenWhenValueIsValidator) ValidateNumber

func (ForbiddenWhenValueIsValidator) ValidateObject

func (ForbiddenWhenValueIsValidator) ValidateSet

func (ForbiddenWhenValueIsValidator) ValidateString

type LeafSwitchMlagInfoValidator

type LeafSwitchMlagInfoValidator struct{}

func (LeafSwitchMlagInfoValidator) Description

func (LeafSwitchMlagInfoValidator) MarkdownDescription

func (o LeafSwitchMlagInfoValidator) MarkdownDescription(ctx context.Context) string

func (LeafSwitchMlagInfoValidator) ValidateString

type MustBeEvenOrOddValidator

type MustBeEvenOrOddValidator struct {
	// contains filtered or unexported fields
}

func (MustBeEvenOrOddValidator) Description

func (MustBeEvenOrOddValidator) MarkdownDescription

func (o MustBeEvenOrOddValidator) MarkdownDescription(ctx context.Context) string

func (MustBeEvenOrOddValidator) ValidateInt64

type MustBeOneOfValidator added in v0.44.0

type MustBeOneOfValidator struct {
	OneOf []attr.Value
}

MustBeOneOfValidator is the underlying struct implementing MustBeOneOf.

func (MustBeOneOfValidator) Description added in v0.44.0

func (o MustBeOneOfValidator) Description(ctx context.Context) string

func (MustBeOneOfValidator) MarkdownDescription added in v0.44.0

func (o MustBeOneOfValidator) MarkdownDescription(_ context.Context) string

func (MustBeOneOfValidator) Validate added in v0.44.0

func (MustBeOneOfValidator) ValidateBool added in v0.44.0

func (MustBeOneOfValidator) ValidateFloat64 added in v0.44.0

func (MustBeOneOfValidator) ValidateInt64 added in v0.44.0

func (MustBeOneOfValidator) ValidateList added in v0.44.0

func (MustBeOneOfValidator) ValidateMap added in v0.44.0

func (MustBeOneOfValidator) ValidateNumber added in v0.44.0

func (MustBeOneOfValidator) ValidateObject added in v0.44.0

func (MustBeOneOfValidator) ValidateSet added in v0.44.0

func (MustBeOneOfValidator) ValidateString added in v0.44.0

type MustBeOneOfValidatorRequest added in v0.44.0

type MustBeOneOfValidatorRequest struct {
	Path        path.Path
	ConfigValue attr.Value
}

type MustBeOneOfValidatorResponse added in v0.44.0

type MustBeOneOfValidatorResponse struct {
	Diagnostics diag.Diagnostics
}

type NineTypesValidator

func AlsoRequiresNOf

func AlsoRequiresNOf(n int, expressions ...path.Expression) NineTypesValidator

AlsoRequiresNOf ensures that of a set of path.Expression, at least 'n' have a non-null value.

Any relative path.Expression will be resolved using the attribute being validated.

func AtMostNOf

func AtMostNOf(n int, expressions ...path.Expression) NineTypesValidator

AtMostNOf checks that of a set of path.Expression, including the attribute this validator is applied to, at most 'n' have a non-null value.

Any relative path.Expression will be resolved using the attribute being validated.

func MustBeOneOf added in v0.44.0

func MustBeOneOf(oneOf []attr.Value) NineTypesValidator

MustBeOneOf checks that of a set of path.Expression, including the attribute this validator is applied to, at most 'n' have a non-null value.

Any relative path.Expression will be resolved using the attribute being validated.

type ParseCidrValidator

type ParseCidrValidator struct {
	// contains filtered or unexported fields
}

func (ParseCidrValidator) Description

func (o ParseCidrValidator) Description(_ context.Context) string

func (ParseCidrValidator) MarkdownDescription

func (o ParseCidrValidator) MarkdownDescription(ctx context.Context) string

func (ParseCidrValidator) ValidateString

type ParseIpOrCidrValidator

type ParseIpOrCidrValidator struct {
	// contains filtered or unexported fields
}

func (ParseIpOrCidrValidator) Description

func (o ParseIpOrCidrValidator) Description(_ context.Context) string

func (ParseIpOrCidrValidator) MarkdownDescription

func (o ParseIpOrCidrValidator) MarkdownDescription(ctx context.Context) string

func (ParseIpOrCidrValidator) ValidateString

type ParseIpValidator

type ParseIpValidator struct {
	// contains filtered or unexported fields
}

func (ParseIpValidator) Description

func (o ParseIpValidator) Description(_ context.Context) string

func (ParseIpValidator) MarkdownDescription

func (o ParseIpValidator) MarkdownDescription(ctx context.Context) string

func (ParseIpValidator) ValidateString

type ParseJsonValidator

type ParseJsonValidator struct{}

func (ParseJsonValidator) Description

func (o ParseJsonValidator) Description(_ context.Context) string

func (ParseJsonValidator) MarkdownDescription

func (o ParseJsonValidator) MarkdownDescription(ctx context.Context) string

func (ParseJsonValidator) ValidateString

type ParseRtValidator added in v0.41.0

type ParseRtValidator struct{}

func (ParseRtValidator) Description added in v0.41.0

func (o ParseRtValidator) Description(_ context.Context) string

func (ParseRtValidator) MarkdownDescription added in v0.41.0

func (o ParseRtValidator) MarkdownDescription(ctx context.Context) string

func (ParseRtValidator) ValidateString added in v0.41.0

type ParseSpeedValidator

type ParseSpeedValidator struct{}

func (ParseSpeedValidator) Description

func (o ParseSpeedValidator) Description(_ context.Context) string

func (ParseSpeedValidator) MarkdownDescription

func (o ParseSpeedValidator) MarkdownDescription(ctx context.Context) string

func (ParseSpeedValidator) ValidateString

type RackFabricConnectivityDesignMustBeValidator

type RackFabricConnectivityDesignMustBeValidator struct {
	// contains filtered or unexported fields
}

func (RackFabricConnectivityDesignMustBeValidator) Description

func (RackFabricConnectivityDesignMustBeValidator) MarkdownDescription

func (RackFabricConnectivityDesignMustBeValidator) ValidateInt64

func (RackFabricConnectivityDesignMustBeValidator) ValidateString

type RackFabricConnectivityDesignMustBeValidatorRequest

type RackFabricConnectivityDesignMustBeValidatorRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	Path           path.Path
	PathExpression path.Expression
}

type RackFabricConnectivityDesignMustBeValidatorResponse

type RackFabricConnectivityDesignMustBeValidatorResponse struct {
	Diagnostics diag.Diagnostics
}

type RackFabricConnectivityDesignMustBeWhenNullValidator

type RackFabricConnectivityDesignMustBeWhenNullValidator struct {
	// contains filtered or unexported fields
}

func (RackFabricConnectivityDesignMustBeWhenNullValidator) Description

func (RackFabricConnectivityDesignMustBeWhenNullValidator) MarkdownDescription

func (RackFabricConnectivityDesignMustBeWhenNullValidator) ValidateInt64

func (RackFabricConnectivityDesignMustBeWhenNullValidator) ValidateString

type RackFabricConnectivityDesignMustBeWhenNullValidatorRequest

type RackFabricConnectivityDesignMustBeWhenNullValidatorRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	Path           path.Path
	PathExpression path.Expression
}

type RackFabricConnectivityDesignMustBeWhenNullValidatorResponse

type RackFabricConnectivityDesignMustBeWhenNullValidatorResponse struct {
	Diagnostics diag.Diagnostics
}

type RackFabricConnectivityDesignMustBeWhenValueValidator

type RackFabricConnectivityDesignMustBeWhenValueValidator struct {
	// contains filtered or unexported fields
}

func (RackFabricConnectivityDesignMustBeWhenValueValidator) Description

func (RackFabricConnectivityDesignMustBeWhenValueValidator) MarkdownDescription

func (RackFabricConnectivityDesignMustBeWhenValueValidator) ValidateString

type RackFabricConnectivityDesignMustBeWhenValueValidatorRequest

type RackFabricConnectivityDesignMustBeWhenValueValidatorRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	Path           path.Path
	PathExpression path.Expression
}

type RackFabricConnectivityDesignMustBeWhenValueValidatorResponse

type RackFabricConnectivityDesignMustBeWhenValueValidatorResponse struct {
	Diagnostics diag.Diagnostics
}

type RequiredWhenValueIsRequest

type RequiredWhenValueIsRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	Path           path.Path
	PathExpression path.Expression
}

type RequiredWhenValueIsResponse

type RequiredWhenValueIsResponse struct {
	Diagnostics diag.Diagnostics
}

type RequiredWhenValueIsValidator

type RequiredWhenValueIsValidator struct {
	// contains filtered or unexported fields
}

func RequiredWhenValueIs added in v0.33.0

func RequiredWhenValueIs(expression path.Expression, value attr.Value) RequiredWhenValueIsValidator

func (RequiredWhenValueIsValidator) Description

func (RequiredWhenValueIsValidator) MarkdownDescription

func (o RequiredWhenValueIsValidator) MarkdownDescription(ctx context.Context) string

func (RequiredWhenValueIsValidator) Validate

func (RequiredWhenValueIsValidator) ValidateBool

func (RequiredWhenValueIsValidator) ValidateFloat64

func (RequiredWhenValueIsValidator) ValidateInt64

func (RequiredWhenValueIsValidator) ValidateList

func (RequiredWhenValueIsValidator) ValidateMap

func (RequiredWhenValueIsValidator) ValidateNumber

func (RequiredWhenValueIsValidator) ValidateObject

func (RequiredWhenValueIsValidator) ValidateSet

func (RequiredWhenValueIsValidator) ValidateString

type RequiredWhenValueNullRequest added in v0.33.0

type RequiredWhenValueNullRequest struct {
	Config         tfsdk.Config
	ConfigValue    attr.Value
	Path           path.Path
	PathExpression path.Expression
}

type RequiredWhenValueNullResponse added in v0.33.0

type RequiredWhenValueNullResponse struct {
	Diagnostics diag.Diagnostics
}

type RequiredWhenValueNullValidator added in v0.33.0

type RequiredWhenValueNullValidator struct {
	// contains filtered or unexported fields
}

func RequiredWhenValueNull added in v0.33.0

func RequiredWhenValueNull(expression path.Expression) RequiredWhenValueNullValidator

func (RequiredWhenValueNullValidator) Description added in v0.33.0

func (RequiredWhenValueNullValidator) MarkdownDescription added in v0.33.0

func (o RequiredWhenValueNullValidator) MarkdownDescription(ctx context.Context) string

func (RequiredWhenValueNullValidator) Validate added in v0.33.0

func (RequiredWhenValueNullValidator) ValidateBool added in v0.33.0

func (RequiredWhenValueNullValidator) ValidateFloat64 added in v0.33.0

func (RequiredWhenValueNullValidator) ValidateInt64 added in v0.33.0

func (RequiredWhenValueNullValidator) ValidateList added in v0.33.0

func (RequiredWhenValueNullValidator) ValidateMap added in v0.33.0

func (RequiredWhenValueNullValidator) ValidateNumber added in v0.33.0

func (RequiredWhenValueNullValidator) ValidateObject added in v0.33.0

func (RequiredWhenValueNullValidator) ValidateSet added in v0.33.0

func (RequiredWhenValueNullValidator) ValidateString added in v0.33.0

Jump to

Keyboard shortcuts

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