policies

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2025 License: Apache-2.0 Imports: 29 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewPolicySetDataSource added in v1.0.7

func NewPolicySetDataSource() datasource.DataSource

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 {
	Id         types.String `tfsdk:"id"`
	Allowed    types.Bool   `tfsdk:"allowed"`
	Enabled    types.Bool   `tfsdk:"enabled"`
	Connection types.String `tfsdk:"connection"`
	Condition  types.String `tfsdk:"condition"`
	Gateway    types.String `tfsdk:"gateway"`
}

func (AccessControlFilterModel) GetAttributes added in v0.6.1

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

func (AccessControlFilterModel) GetDataSourceAttributes added in v1.0.7

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

func (AccessControlFilterModel) GetDataSourceSchema added in v1.0.7

func (AccessControlFilterModel) GetFilterRequest added in v1.0.6

func (filter AccessControlFilterModel) GetFilterRequest(diagnostics *diag.Diagnostics, serverValue string) (citrixorchestration.FilterRequest, error)

func (AccessControlFilterModel) GetId added in v1.0.6

func (filter AccessControlFilterModel) GetId() string

func (AccessControlFilterModel) GetSchema added in v0.6.1

type BranchRepeaterFilterModel added in v0.6.1

type BranchRepeaterFilterModel struct {
	Id      types.String `tfsdk:"id"`
	Allowed types.Bool   `tfsdk:"allowed"`
}

func (BranchRepeaterFilterModel) GetAttributes added in v0.6.1

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

func (BranchRepeaterFilterModel) GetDataSourceAttributes added in v1.0.7

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

func (BranchRepeaterFilterModel) GetDataSourceSchema added in v1.0.7

func (BranchRepeaterFilterModel) GetFilterRequest added in v1.0.6

func (filter BranchRepeaterFilterModel) GetFilterRequest(diagnostics *diag.Diagnostics, serverValue string) (citrixorchestration.FilterRequest, error)

func (BranchRepeaterFilterModel) GetId added in v1.0.6

func (filter BranchRepeaterFilterModel) GetId() string

func (BranchRepeaterFilterModel) GetSchema added in v0.6.1

type ClientIPFilterModel added in v0.6.1

type ClientIPFilterModel struct {
	Id        types.String `tfsdk:"id"`
	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) GetDataSourceAttributes added in v1.0.7

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

func (ClientIPFilterModel) GetDataSourceSchema added in v1.0.7

func (ClientIPFilterModel) GetDataSourceSchema() schema.NestedAttributeObject

func (ClientIPFilterModel) GetFilterRequest added in v1.0.6

func (filter ClientIPFilterModel) GetFilterRequest(diagnostics *diag.Diagnostics, serverValue string) (citrixorchestration.FilterRequest, error)

func (ClientIPFilterModel) GetId added in v1.0.6

func (filter ClientIPFilterModel) GetId() string

func (ClientIPFilterModel) GetSchema added in v0.6.1

type ClientNameFilterModel added in v0.6.1

type ClientNameFilterModel struct {
	Id         types.String `tfsdk:"id"`
	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) GetDataSourceAttributes added in v1.0.7

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

func (ClientNameFilterModel) GetDataSourceSchema added in v1.0.7

func (ClientNameFilterModel) GetDataSourceSchema() schema.NestedAttributeObject

func (ClientNameFilterModel) GetFilterRequest added in v1.0.6

func (filter ClientNameFilterModel) GetFilterRequest(diagnostics *diag.Diagnostics, serverValue string) (citrixorchestration.FilterRequest, error)

func (ClientNameFilterModel) GetId added in v1.0.6

func (filter ClientNameFilterModel) GetId() string

func (ClientNameFilterModel) GetSchema added in v0.6.1

type DeliveryGroupFilterModel added in v0.6.1

type DeliveryGroupFilterModel struct {
	Id              types.String `tfsdk:"id"`
	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) GetDataSourceAttributes added in v1.0.7

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

func (DeliveryGroupFilterModel) GetDataSourceSchema added in v1.0.7

func (DeliveryGroupFilterModel) GetFilterRequest added in v1.0.6

func (filter DeliveryGroupFilterModel) GetFilterRequest(diagnostics *diag.Diagnostics, serverValue string) (citrixorchestration.FilterRequest, error)

func (DeliveryGroupFilterModel) GetId added in v1.0.6

func (filter DeliveryGroupFilterModel) GetId() string

func (DeliveryGroupFilterModel) GetSchema added in v0.6.1

type DeliveryGroupTypeFilterModel added in v0.6.1

type DeliveryGroupTypeFilterModel struct {
	Id                types.String `tfsdk:"id"`
	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) GetDataSourceAttributes added in v1.0.7

func (DeliveryGroupTypeFilterModel) GetDataSourceAttributes() map[string]schema.Attribute

func (DeliveryGroupTypeFilterModel) GetDataSourceSchema added in v1.0.7

func (DeliveryGroupTypeFilterModel) GetFilterRequest added in v1.0.6

func (filter DeliveryGroupTypeFilterModel) GetFilterRequest(diagnostics *diag.Diagnostics, serverValue string) (citrixorchestration.FilterRequest, error)

func (DeliveryGroupTypeFilterModel) GetId added in v1.0.6

func (filter DeliveryGroupTypeFilterModel) GetId() string

func (DeliveryGroupTypeFilterModel) GetSchema added in v0.6.1

type OuFilterModel added in v0.6.1

type OuFilterModel struct {
	Id      types.String `tfsdk:"id"`
	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) GetDataSourceAttributes added in v1.0.7

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

func (OuFilterModel) GetDataSourceSchema added in v1.0.7

func (OuFilterModel) GetDataSourceSchema() schema.NestedAttributeObject

func (OuFilterModel) GetFilterRequest added in v1.0.6

func (filter OuFilterModel) GetFilterRequest(diagnostics *diag.Diagnostics, serverValue string) (citrixorchestration.FilterRequest, error)

func (OuFilterModel) GetId added in v1.0.6

func (filter OuFilterModel) GetId() string

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 PolicyFilterInterface added in v1.0.6

type PolicyFilterInterface interface {
	GetId() string
	GetFilterRequest(diagnostics *diag.Diagnostics, serverValue string) (citrixorchestration.FilterRequest, error)
}

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 {
	Id                       types.String `tfsdk:"id"`
	Name                     types.String `tfsdk:"name"`
	Description              types.String `tfsdk:"description"`
	Enabled                  types.Bool   `tfsdk:"enabled"`
	PolicySettings           types.Set    `tfsdk:"policy_settings"`             // Set[PolicySettingModel]
	AccessControlFilters     types.Set    `tfsdk:"access_control_filters"`      // Set[AccessControlFilterModel]
	BranchRepeaterFilter     types.Object `tfsdk:"branch_repeater_filter"`      // BranchRepeaterFilterModel
	ClientIPFilters          types.Set    `tfsdk:"client_ip_filters"`           // Set[ClientIPFilterModel]
	ClientNameFilters        types.Set    `tfsdk:"client_name_filters"`         // Set[ClientNameFilterModel]
	DeliveryGroupFilters     types.Set    `tfsdk:"delivery_group_filters"`      // Set[DeliveryGroupFilterModel]
	DeliveryGroupTypeFilters types.Set    `tfsdk:"delivery_group_type_filters"` // Set[DeliveryGroupTypeFilterModel]
	OuFilters                types.Set    `tfsdk:"ou_filters"`                  // Set[OuFilterModel]
	UserFilters              types.Set    `tfsdk:"user_filters"`                // Set[UserFilterModel]
	TagFilters               types.Set    `tfsdk:"tag_filters"`                 // Set[TagFilterModel]
}

func (PolicyModel) GetAttributes added in v0.6.1

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

func (PolicyModel) GetDataSourceAttributes added in v1.0.7

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

func (PolicyModel) GetDataSourceSchema added in v1.0.7

func (PolicyModel) GetDataSourceSchema() schema.NestedAttributeObject

func (PolicyModel) GetSchema added in v0.6.1

type PolicySetDataSource added in v1.0.7

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

PolicySetDataSource defines the data source implementation.

func (*PolicySetDataSource) Configure added in v1.0.7

func (*PolicySetDataSource) Metadata added in v1.0.7

func (*PolicySetDataSource) Read added in v1.0.7

func (*PolicySetDataSource) Schema added in v1.0.7

type PolicySetModel added in v1.0.7

type PolicySetModel 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"` // Set[String]
	IsAssigned     types.Bool   `tfsdk:"assigned"`
	Policies       types.List   `tfsdk:"policies"`        // List[PolicyModel]
	DeliveryGroups types.Set    `tfsdk:"delivery_groups"` // Set[String]
}

func (PolicySetModel) GetAttributes added in v1.0.7

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

func (PolicySetModel) GetDataSourceAttributes added in v1.0.7

func (PolicySetModel) GetDataSourceAttributes() map[string]schema.Attribute

func (PolicySetModel) GetDataSourceSchema added in v1.0.7

func (PolicySetModel) GetDataSourceSchema() schema.Schema

func (PolicySetModel) GetSchema added in v1.0.7

func (PolicySetModel) GetSchema() schema.Schema

func (PolicySetModel) RefreshPropertyValues added in v1.0.7

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) GetDataSourceAttributes added in v1.0.7

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

func (PolicySettingModel) GetDataSourceSchema added in v1.0.7

func (PolicySettingModel) GetDataSourceSchema() schema.NestedAttributeObject

func (PolicySettingModel) GetSchema added in v0.6.1

type TagFilterModel added in v0.6.1

type TagFilterModel struct {
	Id      types.String `tfsdk:"id"`
	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) GetDataSourceAttributes added in v1.0.7

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

func (TagFilterModel) GetDataSourceSchema added in v1.0.7

func (TagFilterModel) GetDataSourceSchema() schema.NestedAttributeObject

func (TagFilterModel) GetFilterRequest added in v1.0.6

func (filter TagFilterModel) GetFilterRequest(diagnostics *diag.Diagnostics, serverValue string) (citrixorchestration.FilterRequest, error)

func (TagFilterModel) GetId added in v1.0.6

func (filter TagFilterModel) GetId() string

func (TagFilterModel) GetSchema added in v0.6.1

type UserFilterModel added in v0.6.1

type UserFilterModel struct {
	Id      types.String `tfsdk:"id"`
	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) GetDataSourceAttributes added in v1.0.7

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

func (UserFilterModel) GetDataSourceSchema added in v1.0.7

func (UserFilterModel) GetDataSourceSchema() schema.NestedAttributeObject

func (UserFilterModel) GetFilterRequest added in v1.0.6

func (filter UserFilterModel) GetFilterRequest(diagnostics *diag.Diagnostics, serverValue string) (citrixorchestration.FilterRequest, error)

func (UserFilterModel) GetId added in v1.0.6

func (filter UserFilterModel) GetId() string

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