Documentation
¶
Index ¶
- func NetworkFirewallRuleResourceSchema(ctx context.Context) schema.Schema
- func NewResource() resource.Resource
- func RenderNetworkFirewallRuleConfig(t *testing.T, overrides map[string]string) (string, error)
- type DestinationsType
- func (t DestinationsType) Equal(o attr.Type) bool
- func (t DestinationsType) String() string
- func (t DestinationsType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t DestinationsType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t DestinationsType) ValueType(ctx context.Context) attr.Value
- type DestinationsValue
- func NewDestinationsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DestinationsValue, diag.Diagnostics)
- func NewDestinationsValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) DestinationsValue
- func NewDestinationsValueNull() DestinationsValue
- func NewDestinationsValueUnknown() DestinationsValue
- func (v DestinationsValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v DestinationsValue) Equal(o attr.Value) bool
- func (v DestinationsValue) IsNull() bool
- func (v DestinationsValue) IsUnknown() bool
- func (v DestinationsValue) String() string
- func (v DestinationsValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v DestinationsValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v DestinationsValue) Type(ctx context.Context) attr.Type
- type NetworkFirewallRuleModel
- type Resource
- func (r *Resource) Create(ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse)
- func (r *Resource) Delete(ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse)
- func (r *Resource) ImportState(ctx context.Context, req resource.ImportStateRequest, ...)
- func (r *Resource) Metadata(_ context.Context, req resource.MetadataRequest, ...)
- func (r *Resource) Read(ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse)
- func (r *Resource) Schema(ctx context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse)
- func (r *Resource) Update(ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse)
- type RuleGroupIdType
- func (t RuleGroupIdType) Equal(o attr.Type) bool
- func (t RuleGroupIdType) String() string
- func (t RuleGroupIdType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t RuleGroupIdType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t RuleGroupIdType) ValueType(ctx context.Context) attr.Value
- type RuleGroupIdValue
- func NewRuleGroupIdValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (RuleGroupIdValue, diag.Diagnostics)
- func NewRuleGroupIdValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) RuleGroupIdValue
- func NewRuleGroupIdValueNull() RuleGroupIdValue
- func NewRuleGroupIdValueUnknown() RuleGroupIdValue
- func (v RuleGroupIdValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v RuleGroupIdValue) Equal(o attr.Value) bool
- func (v RuleGroupIdValue) IsNull() bool
- func (v RuleGroupIdValue) IsUnknown() bool
- func (v RuleGroupIdValue) String() string
- func (v RuleGroupIdValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v RuleGroupIdValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v RuleGroupIdValue) Type(ctx context.Context) attr.Type
- type ScopesType
- func (t ScopesType) Equal(o attr.Type) bool
- func (t ScopesType) String() string
- func (t ScopesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t ScopesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t ScopesType) ValueType(ctx context.Context) attr.Value
- type ScopesValue
- func NewScopesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ScopesValue, diag.Diagnostics)
- func NewScopesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) ScopesValue
- func NewScopesValueNull() ScopesValue
- func NewScopesValueUnknown() ScopesValue
- func (v ScopesValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v ScopesValue) Equal(o attr.Value) bool
- func (v ScopesValue) IsNull() bool
- func (v ScopesValue) IsUnknown() bool
- func (v ScopesValue) String() string
- func (v ScopesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v ScopesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v ScopesValue) Type(ctx context.Context) attr.Type
- type SourcesType
- func (t SourcesType) Equal(o attr.Type) bool
- func (t SourcesType) String() string
- func (t SourcesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
- func (t SourcesType) ValueFromTerraform(ctx context.Context, in tftypes.Value) (attr.Value, error)
- func (t SourcesType) ValueType(ctx context.Context) attr.Value
- type SourcesValue
- func NewSourcesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (SourcesValue, diag.Diagnostics)
- func NewSourcesValueMust(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) SourcesValue
- func NewSourcesValueNull() SourcesValue
- func NewSourcesValueUnknown() SourcesValue
- func (v SourcesValue) AttributeTypes(ctx context.Context) map[string]attr.Type
- func (v SourcesValue) Equal(o attr.Value) bool
- func (v SourcesValue) IsNull() bool
- func (v SourcesValue) IsUnknown() bool
- func (v SourcesValue) String() string
- func (v SourcesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
- func (v SourcesValue) ToTerraformValue(ctx context.Context) (tftypes.Value, error)
- func (v SourcesValue) Type(ctx context.Context) attr.Type
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewResource ¶
Types ¶
type DestinationsType ¶
type DestinationsType struct {
basetypes.ObjectType
}
func (DestinationsType) String ¶
func (t DestinationsType) String() string
func (DestinationsType) ValueFromObject ¶
func (t DestinationsType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (DestinationsType) ValueFromTerraform ¶
type DestinationsValue ¶
type DestinationsValue struct {
Id basetypes.SetValue `tfsdk:"id"`
// contains filtered or unexported fields
}
func NewDestinationsValue ¶
func NewDestinationsValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (DestinationsValue, diag.Diagnostics)
func NewDestinationsValueNull ¶
func NewDestinationsValueNull() DestinationsValue
func NewDestinationsValueUnknown ¶
func NewDestinationsValueUnknown() DestinationsValue
func (DestinationsValue) AttributeTypes ¶
func (DestinationsValue) IsNull ¶
func (v DestinationsValue) IsNull() bool
func (DestinationsValue) IsUnknown ¶
func (v DestinationsValue) IsUnknown() bool
func (DestinationsValue) String ¶
func (v DestinationsValue) String() string
func (DestinationsValue) ToObjectValue ¶
func (v DestinationsValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (DestinationsValue) ToTerraformValue ¶
type NetworkFirewallRuleModel ¶
type NetworkFirewallRuleModel struct {
Application types.Set `tfsdk:"application"`
Description types.String `tfsdk:"description"`
Destinations DestinationsValue `tfsdk:"destinations"`
Direction types.String `tfsdk:"direction"`
Enabled types.Bool `tfsdk:"enabled"`
Id types.Int64 `tfsdk:"id"`
Name types.String `tfsdk:"name"`
NetworkIntegrationId types.Int64 `tfsdk:"network_integration_id"`
Policy types.String `tfsdk:"policy"`
Priority types.Int64 `tfsdk:"priority"`
Profile types.Set `tfsdk:"profile"`
RuleGroupId RuleGroupIdValue `tfsdk:"rule_group_id"`
Scopes ScopesValue `tfsdk:"scopes"`
Sources SourcesValue `tfsdk:"sources"`
}
type Resource ¶
type Resource struct {
configure.ResourceWithMorpheusConfigure
resource.Resource
}
Resource defines the resource implementation.
func (*Resource) Create ¶
func (r *Resource) Create( ctx context.Context, req resource.CreateRequest, resp *resource.CreateResponse, )
func (*Resource) Delete ¶
func (r *Resource) Delete( ctx context.Context, req resource.DeleteRequest, resp *resource.DeleteResponse, )
func (*Resource) ImportState ¶
func (r *Resource) ImportState( ctx context.Context, req resource.ImportStateRequest, resp *resource.ImportStateResponse, )
func (*Resource) Metadata ¶
func (r *Resource) Metadata( _ context.Context, req resource.MetadataRequest, resp *resource.MetadataResponse, )
func (*Resource) Read ¶
func (r *Resource) Read( ctx context.Context, req resource.ReadRequest, resp *resource.ReadResponse, )
func (*Resource) Schema ¶
func (r *Resource) Schema( ctx context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse, )
func (*Resource) Update ¶
func (r *Resource) Update( ctx context.Context, req resource.UpdateRequest, resp *resource.UpdateResponse, )
type RuleGroupIdType ¶
type RuleGroupIdType struct {
basetypes.ObjectType
}
func (RuleGroupIdType) String ¶
func (t RuleGroupIdType) String() string
func (RuleGroupIdType) ValueFromObject ¶
func (t RuleGroupIdType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (RuleGroupIdType) ValueFromTerraform ¶
type RuleGroupIdValue ¶
type RuleGroupIdValue struct {
Id basetypes.Int64Value `tfsdk:"id"`
Name basetypes.StringValue `tfsdk:"name"`
// contains filtered or unexported fields
}
func NewRuleGroupIdValue ¶
func NewRuleGroupIdValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (RuleGroupIdValue, diag.Diagnostics)
func NewRuleGroupIdValueMust ¶
func NewRuleGroupIdValueNull ¶
func NewRuleGroupIdValueNull() RuleGroupIdValue
func NewRuleGroupIdValueUnknown ¶
func NewRuleGroupIdValueUnknown() RuleGroupIdValue
func (RuleGroupIdValue) AttributeTypes ¶
func (RuleGroupIdValue) IsNull ¶
func (v RuleGroupIdValue) IsNull() bool
func (RuleGroupIdValue) IsUnknown ¶
func (v RuleGroupIdValue) IsUnknown() bool
func (RuleGroupIdValue) String ¶
func (v RuleGroupIdValue) String() string
func (RuleGroupIdValue) ToObjectValue ¶
func (v RuleGroupIdValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (RuleGroupIdValue) ToTerraformValue ¶
type ScopesType ¶
type ScopesType struct {
basetypes.ObjectType
}
func (ScopesType) String ¶
func (t ScopesType) String() string
func (ScopesType) ValueFromObject ¶
func (t ScopesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (ScopesType) ValueFromTerraform ¶
type ScopesValue ¶
type ScopesValue struct {
Id basetypes.SetValue `tfsdk:"id"`
// contains filtered or unexported fields
}
func NewScopesValue ¶
func NewScopesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (ScopesValue, diag.Diagnostics)
func NewScopesValueMust ¶
func NewScopesValueNull ¶
func NewScopesValueNull() ScopesValue
func NewScopesValueUnknown ¶
func NewScopesValueUnknown() ScopesValue
func (ScopesValue) AttributeTypes ¶
func (ScopesValue) IsNull ¶
func (v ScopesValue) IsNull() bool
func (ScopesValue) IsUnknown ¶
func (v ScopesValue) IsUnknown() bool
func (ScopesValue) String ¶
func (v ScopesValue) String() string
func (ScopesValue) ToObjectValue ¶
func (v ScopesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (ScopesValue) ToTerraformValue ¶
type SourcesType ¶
type SourcesType struct {
basetypes.ObjectType
}
func (SourcesType) String ¶
func (t SourcesType) String() string
func (SourcesType) ValueFromObject ¶
func (t SourcesType) ValueFromObject(ctx context.Context, in basetypes.ObjectValue) (basetypes.ObjectValuable, diag.Diagnostics)
func (SourcesType) ValueFromTerraform ¶
type SourcesValue ¶
type SourcesValue struct {
Id basetypes.SetValue `tfsdk:"id"`
// contains filtered or unexported fields
}
func NewSourcesValue ¶
func NewSourcesValue(attributeTypes map[string]attr.Type, attributes map[string]attr.Value) (SourcesValue, diag.Diagnostics)
func NewSourcesValueMust ¶
func NewSourcesValueNull ¶
func NewSourcesValueNull() SourcesValue
func NewSourcesValueUnknown ¶
func NewSourcesValueUnknown() SourcesValue
func (SourcesValue) AttributeTypes ¶
func (SourcesValue) IsNull ¶
func (v SourcesValue) IsNull() bool
func (SourcesValue) IsUnknown ¶
func (v SourcesValue) IsUnknown() bool
func (SourcesValue) String ¶
func (v SourcesValue) String() string
func (SourcesValue) ToObjectValue ¶
func (v SourcesValue) ToObjectValue(ctx context.Context) (basetypes.ObjectValue, diag.Diagnostics)
func (SourcesValue) ToTerraformValue ¶
Click to show internal directories.
Click to hide internal directories.