Documentation ¶
Overview ¶
Copyright © 2024. Citrix Systems, Inc.
Copyright © 2024. Citrix Systems, Inc.
Index ¶
- func BuildSTFEquivalentFarmSetRequestModelList(ctx context.Context, diagnostics *diag.Diagnostics, ...) []citrixstorefront.STFEquivalentFarmSetRequestModel
- func BuildSTFUserFarmMappingGroupList(ctx context.Context, diagnostics *diag.Diagnostics, ...) []citrixstorefront.STFUserFarmMappingGroup
- func CreateAndGetNewSTFUserFarmMapping(ctx context.Context, diagnostics *diag.Diagnostics, ...) (citrixstorefront.STFUserFarmMappingResponseModel, error)
- func NewSTFUserFarmMappingResource() resource.Resource
- type EquivalentFarmSet
- func (EquivalentFarmSet) GetAttributes() map[string]schema.Attribute
- func (r EquivalentFarmSet) GetKey() string
- func (EquivalentFarmSet) GetSchema() schema.NestedAttributeObject
- func (r EquivalentFarmSet) RefreshListItem(ctx context.Context, diagnostics *diag.Diagnostics, ...) util.ModelWithAttributes
- type STFUserFarmMappingResourceModel
- type UserFarmMappingGroup
- func (UserFarmMappingGroup) GetAttributes() map[string]schema.Attribute
- func (r UserFarmMappingGroup) GetKey() string
- func (UserFarmMappingGroup) GetSchema() schema.NestedAttributeObject
- func (r UserFarmMappingGroup) RefreshListItem(_ context.Context, _ *diag.Diagnostics, ...) util.ModelWithAttributes
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildSTFEquivalentFarmSetRequestModelList ¶
func BuildSTFEquivalentFarmSetRequestModelList(ctx context.Context, diagnostics *diag.Diagnostics, plannedEquivalentFarmSets types.List) []citrixstorefront.STFEquivalentFarmSetRequestModel
func BuildSTFUserFarmMappingGroupList ¶
func BuildSTFUserFarmMappingGroupList(ctx context.Context, diagnostics *diag.Diagnostics, plannedGroupMembers types.List) []citrixstorefront.STFUserFarmMappingGroup
func CreateAndGetNewSTFUserFarmMapping ¶
func CreateAndGetNewSTFUserFarmMapping(ctx context.Context, diagnostics *diag.Diagnostics, client *citrixdaasclient.CitrixDaasClient, virtualPath string, name string, equivalentFarmSets []citrixstorefront.STFEquivalentFarmSetRequestModel, groupMembers []citrixstorefront.STFUserFarmMappingGroup) (citrixstorefront.STFUserFarmMappingResponseModel, error)
func NewSTFUserFarmMappingResource ¶
stfUserFarmMappingResource is a helper function to simplify the provider implementation.
Types ¶
type EquivalentFarmSet ¶
type EquivalentFarmSet struct { Name types.String `tfsdk:"name"` AggregationGroupName types.String `tfsdk:"aggregation_group_name"` PrimaryFarms types.List `tfsdk:"primary_farms"` // List[string] BackupFarms types.List `tfsdk:"backup_farms"` // List[string] LoadBalanceMode types.String `tfsdk:"load_balance_mode"` // Failover or LoadBalanced FarmsAreIdentical types.Bool `tfsdk:"farms_are_identical"` }
func (EquivalentFarmSet) GetAttributes ¶
func (EquivalentFarmSet) GetAttributes() map[string]schema.Attribute
func (EquivalentFarmSet) GetKey ¶
func (r EquivalentFarmSet) GetKey() string
func (EquivalentFarmSet) GetSchema ¶
func (EquivalentFarmSet) GetSchema() schema.NestedAttributeObject
func (EquivalentFarmSet) RefreshListItem ¶
func (r EquivalentFarmSet) RefreshListItem(ctx context.Context, diagnostics *diag.Diagnostics, item citrixstorefront.STFFarmSetResponseModel) util.ModelWithAttributes
type STFUserFarmMappingResourceModel ¶
type STFUserFarmMappingResourceModel struct { VirtualPath types.String `tfsdk:"store_virtual_path"` Name types.String `tfsdk:"name"` GroupMembers types.List `tfsdk:"group_members"` // List of UserFarmMappingGroup EquivalentFarmSets types.List `tfsdk:"equivalent_farm_sets"` // List of EquivalentFarmSets }
func (STFUserFarmMappingResourceModel) GetAttributes ¶ added in v1.0.0
func (STFUserFarmMappingResourceModel) GetAttributes() map[string]schema.Attribute
func (STFUserFarmMappingResourceModel) GetSchema ¶ added in v1.0.0
func (STFUserFarmMappingResourceModel) GetSchema() schema.Schema
func (*STFUserFarmMappingResourceModel) RefreshPropertyValues ¶
func (r *STFUserFarmMappingResourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, result citrixstorefront.STFUserFarmMappingResponseModel)
Map response body to schema and populate Computed attribute values
type UserFarmMappingGroup ¶
type UserFarmMappingGroup struct { GroupName types.String `tfsdk:"group_name"` AccountSid types.String `tfsdk:"account_sid"` }
func (UserFarmMappingGroup) GetAttributes ¶
func (UserFarmMappingGroup) GetAttributes() map[string]schema.Attribute
func (UserFarmMappingGroup) GetKey ¶
func (r UserFarmMappingGroup) GetKey() string
func (UserFarmMappingGroup) GetSchema ¶
func (UserFarmMappingGroup) GetSchema() schema.NestedAttributeObject
func (UserFarmMappingGroup) RefreshListItem ¶
func (r UserFarmMappingGroup) RefreshListItem(_ context.Context, _ *diag.Diagnostics, item citrixstorefront.STFGroupMemberResponseModel) util.ModelWithAttributes
Click to show internal directories.
Click to hide internal directories.