policies

package
v1.0.1-bugfix-1 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2024 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPolicySetResource

func NewPolicySetResource() resource.Resource

NewPolicySetResource is a helper function to simplify the provider implementation.

Types

type AccessControlFilterModel added in v0.6.1

type AccessControlFilterModel struct {
	Allowed    types.Bool `tfsdk:"allowed"`
	Enabled    types.Bool `tfsdk:"enabled"`
	Connection string     `json:"Connection"`
	Condition  string     `json:"Condition"`
	Gateway    string     `json:"Gateway"`
}

func (AccessControlFilterModel) GetAttributes added in v0.6.1

func (AccessControlFilterModel) GetAttributes() map[string]schema.Attribute

func (AccessControlFilterModel) GetSchema added in v0.6.1

type BranchRepeaterFilterModel added in v0.6.1

type BranchRepeaterFilterModel struct {
	Allowed types.Bool `tfsdk:"allowed"`
	Enabled types.Bool `tfsdk:"enabled"`
}

func (BranchRepeaterFilterModel) GetAttributes added in v0.6.1

func (BranchRepeaterFilterModel) GetAttributes() map[string]schema.Attribute

func (BranchRepeaterFilterModel) GetSchema added in v0.6.1

type ClientIPFilterModel added in v0.6.1

type ClientIPFilterModel struct {
	Allowed   types.Bool   `tfsdk:"allowed"`
	Enabled   types.Bool   `tfsdk:"enabled"`
	IpAddress types.String `tfsdk:"ip_address"`
}

func (ClientIPFilterModel) GetAttributes added in v0.6.1

func (ClientIPFilterModel) GetAttributes() map[string]schema.Attribute

func (ClientIPFilterModel) GetSchema added in v0.6.1

type ClientNameFilterModel added in v0.6.1

type ClientNameFilterModel struct {
	Allowed    types.Bool   `tfsdk:"allowed"`
	Enabled    types.Bool   `tfsdk:"enabled"`
	ClientName types.String `tfsdk:"client_name"`
}

func (ClientNameFilterModel) GetAttributes added in v0.6.1

func (ClientNameFilterModel) GetAttributes() map[string]schema.Attribute

func (ClientNameFilterModel) GetSchema added in v0.6.1

type DeliveryGroupFilterModel added in v0.6.1

type DeliveryGroupFilterModel struct {
	Allowed         types.Bool   `tfsdk:"allowed"`
	Enabled         types.Bool   `tfsdk:"enabled"`
	DeliveryGroupId types.String `tfsdk:"delivery_group_id"`
}

func (DeliveryGroupFilterModel) GetAttributes added in v0.6.1

func (DeliveryGroupFilterModel) GetAttributes() map[string]schema.Attribute

func (DeliveryGroupFilterModel) GetSchema added in v0.6.1

type DeliveryGroupTypeFilterModel added in v0.6.1

type DeliveryGroupTypeFilterModel struct {
	Allowed           types.Bool   `tfsdk:"allowed"`
	Enabled           types.Bool   `tfsdk:"enabled"`
	DeliveryGroupType types.String `tfsdk:"delivery_group_type"`
}

func (DeliveryGroupTypeFilterModel) GetAttributes added in v0.6.1

func (DeliveryGroupTypeFilterModel) GetSchema added in v0.6.1

type OuFilterModel added in v0.6.1

type OuFilterModel struct {
	Allowed types.Bool   `tfsdk:"allowed"`
	Enabled types.Bool   `tfsdk:"enabled"`
	Ou      types.String `tfsdk:"ou"`
}

func (OuFilterModel) GetAttributes added in v0.6.1

func (OuFilterModel) GetAttributes() map[string]schema.Attribute

func (OuFilterModel) GetSchema added in v0.6.1

type PolicyFilterGatewayDataClientModel added in v0.6.1

type PolicyFilterGatewayDataClientModel struct {
	Connection string `json:"connection,omitempty"`
	Condition  string `json:"condition,omitempty"`
	Gateway    string `json:"gateway,omitempty"`
}

type PolicyFilterUuidDataClientModel added in v0.6.1

type PolicyFilterUuidDataClientModel struct {
	Server string `json:"server,omitempty"`
	Uuid   string `json:"uuid,omitempty"`
}

type PolicyModel

type PolicyModel struct {
	Name                     types.String `tfsdk:"name"`
	Description              types.String `tfsdk:"description"`
	Enabled                  types.Bool   `tfsdk:"enabled"`
	PolicySettings           types.List   `tfsdk:"policy_settings"`             // []PolicySettingModel
	AccessControlFilters     types.List   `tfsdk:"access_control_filters"`      // []AccessControlFilterModel
	BranchRepeaterFilter     types.Object `tfsdk:"branch_repeater_filter"`      // BranchRepeaterFilterModel
	ClientIPFilters          types.List   `tfsdk:"client_ip_filters"`           // []ClientIPFilterModel
	ClientNameFilters        types.List   `tfsdk:"client_name_filters"`         // []ClientNameFilterModel
	DeliveryGroupFilters     types.List   `tfsdk:"delivery_group_filters"`      // []DeliveryGroupFilterModel
	DeliveryGroupTypeFilters types.List   `tfsdk:"delivery_group_type_filters"` // []DeliveryGroupTypeFilterModel
	OuFilters                types.List   `tfsdk:"ou_filters"`                  // []OuFilterModel
	UserFilters              types.List   `tfsdk:"user_filters"`                // []UserFilterModel
	TagFilters               types.List   `tfsdk:"tag_filters"`                 // []TagFilterModel
}

func (PolicyModel) GetAttributes added in v0.6.1

func (PolicyModel) GetAttributes() map[string]schema.Attribute

func (PolicyModel) GetSchema added in v0.6.1

type PolicySetResourceModel

type PolicySetResourceModel struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	Type        types.String `tfsdk:"type"`
	Description types.String `tfsdk:"description"`
	Scopes      types.Set    `tfsdk:"scopes"` // []types.Set
	IsAssigned  types.Bool   `tfsdk:"assigned"`
	Policies    types.List   `tfsdk:"policies"` // []PolicyModel
}

func (PolicySetResourceModel) GetAttributes added in v0.6.2

func (PolicySetResourceModel) GetAttributes() map[string]schema.Attribute

func (PolicySetResourceModel) GetSchema added in v0.6.2

func (PolicySetResourceModel) GetSchema() schema.Schema

func (PolicySetResourceModel) RefreshPropertyValues

type PolicySettingModel

type PolicySettingModel struct {
	Name       types.String `tfsdk:"name"`
	UseDefault types.Bool   `tfsdk:"use_default"`
	Value      types.String `tfsdk:"value"`
	Enabled    types.Bool   `tfsdk:"enabled"`
}

func (PolicySettingModel) GetAttributes added in v0.6.1

func (PolicySettingModel) GetAttributes() map[string]schema.Attribute

func (PolicySettingModel) GetSchema added in v0.6.1

type TagFilterModel added in v0.6.1

type TagFilterModel struct {
	Allowed types.Bool   `tfsdk:"allowed"`
	Enabled types.Bool   `tfsdk:"enabled"`
	Tag     types.String `tfsdk:"tag"`
}

func (TagFilterModel) GetAttributes added in v0.6.1

func (TagFilterModel) GetAttributes() map[string]schema.Attribute

func (TagFilterModel) GetSchema added in v0.6.1

type UserFilterModel added in v0.6.1

type UserFilterModel struct {
	Allowed types.Bool   `tfsdk:"allowed"`
	Enabled types.Bool   `tfsdk:"enabled"`
	UserSid types.String `tfsdk:"sid"`
}

func (UserFilterModel) GetAttributes added in v0.6.1

func (UserFilterModel) GetAttributes() map[string]schema.Attribute

func (UserFilterModel) GetSchema added in v0.6.1

Jump to

Keyboard shortcuts

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