Documentation
¶
Index ¶
- func NewFirewallZoneDatasource() datasource.DataSource
- func NewFirewallZonePolicyResource() resource.Resource
- func NewFirewallZoneResource() resource.Resource
- func ResourceFirewallGroup() *schema.Resource
- func ResourceFirewallRule() *schema.Resource
- type FirewallPolicyTargetModel
- type FirewallZonePolicyDestinationModel
- type FirewallZonePolicyModel
- type FirewallZonePolicyScheduleModel
- type FirewallZonePolicySourceModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewFirewallZoneDatasource ¶
func NewFirewallZoneDatasource() datasource.DataSource
func NewFirewallZonePolicyResource ¶
NewFirewallZonePolicyResource creates a new instance of the firewall zone policy resource
func NewFirewallZoneResource ¶
NewFirewallZoneResource creates a new instance of the firewall zone resource
func ResourceFirewallGroup ¶
func ResourceFirewallRule ¶
Types ¶
type FirewallPolicyTargetModel ¶
type FirewallPolicyTargetModel struct { IPGroupID types.String `tfsdk:"ip_group_id"` IPs types.List `tfsdk:"ips"` MatchOppositeIPs types.Bool `tfsdk:"match_opposite_ips"` MatchOppositePorts types.Bool `tfsdk:"match_opposite_ports"` Port types.Int32 `tfsdk:"port"` PortGroupID types.String `tfsdk:"port_group_id"` ZoneID types.String `tfsdk:"zone_id"` }
func (*FirewallPolicyTargetModel) AttributeTypes ¶
func (m *FirewallPolicyTargetModel) AttributeTypes() map[string]attr.Type
type FirewallZonePolicyDestinationModel ¶
type FirewallZonePolicyDestinationModel struct { FirewallPolicyTargetModel AppCategoryIDs types.List `tfsdk:"app_category_ids"` AppIDs types.List `tfsdk:"app_ids"` Regions types.List `tfsdk:"regions"` WebDomains types.List `tfsdk:"web_domains"` }
FirewallZonePolicyDestinationModel represents the destination configuration for a firewall zone policy
func (*FirewallZonePolicyDestinationModel) AttributeTypes ¶
func (m *FirewallZonePolicyDestinationModel) AttributeTypes() map[string]attr.Type
type FirewallZonePolicyModel ¶
type FirewallZonePolicyModel struct { base.Model Action types.String `tfsdk:"action"` AutoAllowReturnTraffic types.Bool `tfsdk:"auto_allow_return_traffic"` ConnectionStateType types.String `tfsdk:"connection_state_type"` ConnectionStates types.List `tfsdk:"connection_states"` Description types.String `tfsdk:"description"` Destination types.Object `tfsdk:"destination"` Enabled types.Bool `tfsdk:"enabled"` IPVersion types.String `tfsdk:"ip_version"` Index types.Int64 `tfsdk:"index"` Logging types.Bool `tfsdk:"logging"` MatchIPSecType types.String `tfsdk:"match_ip_sec_type"` MatchOppositeProtocol types.Bool `tfsdk:"match_opposite_protocol"` Name types.String `tfsdk:"name"` Protocol types.String `tfsdk:"protocol"` Schedule types.Object `tfsdk:"schedule"` Source types.Object `tfsdk:"source"` }
FirewallZonePolicyModel represents the data model for firewall zone policies in the UniFi controller
func (*FirewallZonePolicyModel) AsUnifiModel ¶
func (m *FirewallZonePolicyModel) AsUnifiModel(ctx context.Context) (interface{}, diag.Diagnostics)
func (*FirewallZonePolicyModel) Merge ¶
func (m *FirewallZonePolicyModel) Merge(ctx context.Context, other interface{}) diag.Diagnostics
type FirewallZonePolicyScheduleModel ¶
type FirewallZonePolicyScheduleModel struct { Date types.String `tfsdk:"date"` DateEnd types.String `tfsdk:"date_end"` DateStart types.String `tfsdk:"date_start"` Mode types.String `tfsdk:"mode"` RepeatOnDays types.List `tfsdk:"repeat_on_days"` TimeAllDay types.Bool `tfsdk:"time_all_day"` TimeTo types.String `tfsdk:"time_to"` TimeFrom types.String `tfsdk:"time_from"` }
FirewallZonePolicyScheduleModel represents the schedule configuration for a firewall zone policy
func (*FirewallZonePolicyScheduleModel) AttributeTypes ¶
func (m *FirewallZonePolicyScheduleModel) AttributeTypes() map[string]attr.Type
type FirewallZonePolicySourceModel ¶
type FirewallZonePolicySourceModel struct { FirewallPolicyTargetModel ClientMACs types.List `tfsdk:"client_macs"` MAC types.String `tfsdk:"mac"` MACs types.List `tfsdk:"macs"` MatchOppositeNetworks types.Bool `tfsdk:"match_opposite_networks"` NetworkIDs types.List `tfsdk:"network_ids"` }
FirewallZonePolicySourceModel represents the source configuration for a firewall zone policy
func (*FirewallZonePolicySourceModel) AttributeTypes ¶
func (m *FirewallZonePolicySourceModel) AttributeTypes() map[string]attr.Type
Click to show internal directories.
Click to hide internal directories.