Documentation ¶
Index ¶
- func OrgNacruleResourceSchema(ctx context.Context) schema.Schema
- func TerraformToSdk(ctx context.Context, plan *OrgNacruleModel) (models.NacRule, diag.Diagnostics)
- type MatchingType
- func (t MatchingType) Equal(o attr.Type) bool
- func (t MatchingType) String() string
- func (t MatchingType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t MatchingType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t MatchingType) ValueType(ctx context.Context) attr.Value
- type MatchingValue
- func NewMatchingValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (MatchingValue, diag.Diagnostics)
- func NewMatchingValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) MatchingValue
- func NewMatchingValueNull() MatchingValue
- func NewMatchingValueUnknown() MatchingValue
- func (v MatchingValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v MatchingValue) Equal(o attr.Value) bool
- func (v MatchingValue) IsNull() bool
- func (v MatchingValue) IsUnknown() bool
- func (v MatchingValue) String() string
- func (v MatchingValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v MatchingValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v MatchingValue) Type(ctx context.Context) attr.Type
- type NotMatchingType
- func (t NotMatchingType) Equal(o attr.Type) bool
- func (t NotMatchingType) String() string
- func (t NotMatchingType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t NotMatchingType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t NotMatchingType) ValueType(ctx context.Context) attr.Value
- type NotMatchingValue
- func NewNotMatchingValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (NotMatchingValue, diag.Diagnostics)
- func NewNotMatchingValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) NotMatchingValue
- func NewNotMatchingValueNull() NotMatchingValue
- func NewNotMatchingValueUnknown() NotMatchingValue
- func (v NotMatchingValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v NotMatchingValue) Equal(o attr.Value) bool
- func (v NotMatchingValue) IsNull() bool
- func (v NotMatchingValue) IsUnknown() bool
- func (v NotMatchingValue) String() string
- func (v NotMatchingValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v NotMatchingValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v NotMatchingValue) Type(ctx context.Context) attr.Type
- type OrgNacruleModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TerraformToSdk ¶
func TerraformToSdk(ctx context.Context, plan *OrgNacruleModel) (models.NacRule, diag.Diagnostics)
Types ¶
type MatchingType ¶
type MatchingType struct {
basetypes.ObjectType
}
func (MatchingType) String ¶
func (t MatchingType) String() string
func (MatchingType) ValueFromObject ¶
func (t MatchingType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (MatchingType) ValueFromTerraform ¶
type MatchingValue ¶
type MatchingValue struct { AuthType basetypes.StringValue `tfsdk:"auth_type"` PortTypes basetypes.ListValue `tfsdk:"port_types"` SiteIds basetypes.ListValue `tfsdk:"site_ids"` SitegroupIds basetypes.ListValue `tfsdk:"sitegroup_ids"` Vendor basetypes.ListValue `tfsdk:"vendor"` // contains filtered or unexported fields }
func NewMatchingValue ¶
func NewMatchingValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (MatchingValue, diag.Diagnostics)
func NewMatchingValueMust ¶
func NewMatchingValueNull ¶
func NewMatchingValueNull() MatchingValue
func NewMatchingValueUnknown ¶
func NewMatchingValueUnknown() MatchingValue
func (MatchingValue) AttributeTypes ¶
func (MatchingValue) IsNull ¶
func (v MatchingValue) IsNull() bool
func (MatchingValue) IsUnknown ¶
func (v MatchingValue) IsUnknown() bool
func (MatchingValue) String ¶
func (v MatchingValue) String() string
func (MatchingValue) ToObjectValue ¶
func (v MatchingValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (MatchingValue) ToTerraformValue ¶
type NotMatchingType ¶
type NotMatchingType struct {
basetypes.ObjectType
}
func (NotMatchingType) String ¶
func (t NotMatchingType) String() string
func (NotMatchingType) ValueFromObject ¶
func (t NotMatchingType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (NotMatchingType) ValueFromTerraform ¶
type NotMatchingValue ¶
type NotMatchingValue struct { AuthType basetypes.StringValue `tfsdk:"auth_type"` PortTypes basetypes.ListValue `tfsdk:"port_types"` SiteIds basetypes.ListValue `tfsdk:"site_ids"` SitegroupIds basetypes.ListValue `tfsdk:"sitegroup_ids"` Vendor basetypes.ListValue `tfsdk:"vendor"` // contains filtered or unexported fields }
func NewNotMatchingValue ¶
func NewNotMatchingValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (NotMatchingValue, diag.Diagnostics)
func NewNotMatchingValueMust ¶
func NewNotMatchingValueNull ¶
func NewNotMatchingValueNull() NotMatchingValue
func NewNotMatchingValueUnknown ¶
func NewNotMatchingValueUnknown() NotMatchingValue
func (NotMatchingValue) AttributeTypes ¶
func (NotMatchingValue) IsNull ¶
func (v NotMatchingValue) IsNull() bool
func (NotMatchingValue) IsUnknown ¶
func (v NotMatchingValue) IsUnknown() bool
func (NotMatchingValue) String ¶
func (v NotMatchingValue) String() string
func (NotMatchingValue) ToObjectValue ¶
func (v NotMatchingValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (NotMatchingValue) ToTerraformValue ¶
type OrgNacruleModel ¶
type OrgNacruleModel struct { Action types.String `tfsdk:"action"` ApplyTags types.List `tfsdk:"apply_tags"` Enabled types.Bool `tfsdk:"enabled"` Id types.String `tfsdk:"id"` Matching MatchingValue `tfsdk:"matching"` Name types.String `tfsdk:"name"` NotMatching NotMatchingValue `tfsdk:"not_matching"` Order types.Int64 `tfsdk:"order"` OrgId types.String `tfsdk:"org_id"` }
func SdkToTerraform ¶
func SdkToTerraform(ctx context.Context, data models.NacRule) (OrgNacruleModel, diag.Diagnostics)
Click to show internal directories.
Click to hide internal directories.