global_app_configuration

package
v1.0.27 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2025 License: Apache-2.0 Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStruct

func ConvertStruct(src interface{}, dst interface{}) error

Generic converter function

func ConvertStructReverse

func ConvertStructReverse(src interface{}, dst interface{}) error

Generic converter function to convert from src (with string fields) to dst (with types.String fields)

func CreateCategorySettingsForAndroid

func CreateCategorySettingsForAndroid(ctx context.Context, diagnostics *diag.Diagnostics, androidSettingsList types.Set) []globalappconfiguration.CategorySettings

func CreateCategorySettingsForChromeos

func CreateCategorySettingsForChromeos(ctx context.Context, diagnostics *diag.Diagnostics, chromeosSettingsList types.Set) []globalappconfiguration.CategorySettings

func CreateCategorySettingsForHtml5

func CreateCategorySettingsForHtml5(ctx context.Context, diagnostics *diag.Diagnostics, html5SettingsList types.Set) []globalappconfiguration.CategorySettings

func CreateCategorySettingsForIos

func CreateCategorySettingsForIos(ctx context.Context, diagnostics *diag.Diagnostics, iosSettingsList types.Set) []globalappconfiguration.CategorySettings

func CreateCategorySettingsForLinux

func CreateCategorySettingsForLinux(ctx context.Context, diagnostics *diag.Diagnostics, linuxSettingsList types.Set) []globalappconfiguration.CategorySettings

func CreateCategorySettingsForMacos

func CreateCategorySettingsForMacos(ctx context.Context, diagnostics *diag.Diagnostics, macosSettingsList types.Set) []globalappconfiguration.CategorySettings

func CreateCategorySettingsForWindows

func CreateCategorySettingsForWindows(ctx context.Context, diagnostics *diag.Diagnostics, windowsSettingsList types.Set) []globalappconfiguration.CategorySettings

func GACSettingsUpdate

func GACSettingsUpdate[tfType any, goType any](ctx context.Context, diagnostics *diag.Diagnostics, ls interface{}) []tfType

func GetAppSettingsForAndroid

func GetAppSettingsForAndroid(ctx context.Context, diagnostics *diag.Diagnostics, androidList types.Set) []globalappconfiguration.PlatformSettings

func GetAppSettingsForChromeos

func GetAppSettingsForChromeos(ctx context.Context, diagnostics *diag.Diagnostics, chromeosList types.Set) []globalappconfiguration.PlatformSettings

func GetAppSettingsForHtml5

func GetAppSettingsForHtml5(ctx context.Context, diagnostics *diag.Diagnostics, html5List types.Set) []globalappconfiguration.PlatformSettings

func GetAppSettingsForIos

func GetAppSettingsForIos(ctx context.Context, diagnostics *diag.Diagnostics, iosList types.Set) []globalappconfiguration.PlatformSettings

func GetAppSettingsForLinux

func GetAppSettingsForLinux(ctx context.Context, diagnostics *diag.Diagnostics, linuxList types.Set) []globalappconfiguration.PlatformSettings

func GetAppSettingsForMacos

func GetAppSettingsForMacos(ctx context.Context, diagnostics *diag.Diagnostics, macosList types.Set) []globalappconfiguration.PlatformSettings

func GetAppSettingsForWindows

func GetAppSettingsForWindows(ctx context.Context, diagnostics *diag.Diagnostics, windowsList types.Set) []globalappconfiguration.PlatformSettings

func LinuxSettingsDefaultValues

func LinuxSettingsDefaultValues(ctx context.Context, diagnostics *diag.Diagnostics, linuxSetting *LinuxSettings)

func MacosSettingsDefaultValues

func MacosSettingsDefaultValues(ctx context.Context, diagnostics *diag.Diagnostics, macosSetting *MacosSettings)

func NewGacDiscoveryResource

func NewGacDiscoveryResource() resource.Resource

NewGACDiscoveryResource is a helper function to simplify the provider implementation.

func NewGacSettingsResource

func NewGacSettingsResource() resource.Resource

NewGacSettingsResource is a helper function to simplify the provider implementation.

func WindowsSettingsDefaultValues

func WindowsSettingsDefaultValues(ctx context.Context, diagnostics *diag.Diagnostics, windowsSetting *WindowsSettings)

Types

type Android

type Android struct {
	Category     types.String `tfsdk:"category"`
	UserOverride types.Bool   `tfsdk:"user_override"`
	Settings     types.Set    `tfsdk:"settings"` //Set[AndroidSettings]
}

func (Android) GetAttributes

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

func (Android) GetSchema

func (Android) GetSchema() schema.NestedAttributeObject

type AndroidSettings

type AndroidSettings struct {
	Name        types.String `tfsdk:"name"`
	ValueString types.String `tfsdk:"value_string"`
	ValueList   types.List   `tfsdk:"value_list"`
}

func (AndroidSettings) GetAttributes

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

func (AndroidSettings) GetSchema

type AppSettings

type AppSettings struct {
	Windows  types.Set `tfsdk:"windows"`  //Set[Windows]
	Ios      types.Set `tfsdk:"ios"`      //Set[Ios]
	Android  types.Set `tfsdk:"android"`  //Set[Android]
	Chromeos types.Set `tfsdk:"chromeos"` //Set[Chromeos]
	Html5    types.Set `tfsdk:"html5"`    //Set[Html5]
	Macos    types.Set `tfsdk:"macos"`    //Set[Macos]
	Linux    types.Set `tfsdk:"linux"`    //Set[Linux]
}

func (AppSettings) GetAttributes

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

func (AppSettings) GetSchema

type AutoLaunchProtocolsFromOriginsModel

type AutoLaunchProtocolsFromOriginsModel struct {
	Protocol       types.String `tfsdk:"protocol"`
	AllowedOrigins types.List   `tfsdk:"allowed_origins"`
}

region AutoLaunchProtocolsFromOriginsModel

func (AutoLaunchProtocolsFromOriginsModel) GetAttributes

func (AutoLaunchProtocolsFromOriginsModel) GetSchema

type AutoLaunchProtocolsFromOriginsModel_Go

type AutoLaunchProtocolsFromOriginsModel_Go struct {
	Protocol       string   `json:"protocol"`
	AllowedOrigins []string `json:"allowedOrigins"`
}

type BookMarkValueModel

type BookMarkValueModel struct {
	Name types.String `tfsdk:"name" json:"name"`
	Url  types.String `tfsdk:"url" json:"url"`
}

region BookMarkValueModel

func (BookMarkValueModel) GetAttributes

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

func (BookMarkValueModel) GetSchema

type BookMarkValueModel_Go

type BookMarkValueModel_Go struct {
	Name string `json:"name"`
	Url  string `json:"url"`
}

type Chromeos

type Chromeos struct {
	Category     types.String `tfsdk:"category"`
	UserOverride types.Bool   `tfsdk:"user_override"`
	Settings     types.Set    `tfsdk:"settings"` //Set[ChromeosSettings]
}

func (Chromeos) GetAttributes

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

func (Chromeos) GetSchema

type ChromeosSettings

type ChromeosSettings struct {
	Name        types.String `tfsdk:"name"`
	ValueString types.String `tfsdk:"value_string"`
	ValueList   types.List   `tfsdk:"value_list"`
}

func (ChromeosSettings) GetAttributes

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

func (ChromeosSettings) GetSchema

type CitrixEnterpriseBrowserModel

type CitrixEnterpriseBrowserModel struct {
	CitrixEnterpriseBrowserSSOEnabled types.Bool `tfsdk:"citrix_enterprise_browser_sso_enabled"`
	CitrixEnterpriseBrowserSSODomains types.List `tfsdk:"citrix_enterprise_browser_sso_domains"`
}

region CitrixEnterpriseBrowserModel

func (CitrixEnterpriseBrowserModel) GetAttributes

func (CitrixEnterpriseBrowserModel) GetSchema

type CitrixEnterpriseBrowserModel_Go

type CitrixEnterpriseBrowserModel_Go struct {
	CitrixEnterpriseBrowserSSOEnabled bool     `json:"CitrixEnterpriseBrowserSSOEnabled"`
	CitrixEnterpriseBrowserSSODomains []string `json:"CitrixEnterpriseBrowserSSODomains"`
}

type ExtensionInstallAllowListModel

type ExtensionInstallAllowListModel struct {
	Id          types.String `tfsdk:"id"`
	Name        types.String `tfsdk:"name"`
	InstallLink types.String `tfsdk:"install_link"`
}

region ExtensionInstallAllowListModel

func (ExtensionInstallAllowListModel) GetAttributes

func (ExtensionInstallAllowListModel) GetSchema

type ExtensionInstallAllowListModel_Go

type ExtensionInstallAllowListModel_Go struct {
	Id          string `json:"id"`
	Name        string `json:"name"`
	InstallLink string `json:"install link"`
}

type GACDiscoveryResourceModel

type GACDiscoveryResourceModel struct {
	Domain              types.String `tfsdk:"domain"`
	ServiceURLs         types.Set    `tfsdk:"service_urls"`
	AllowedWebStoreURLs types.Set    `tfsdk:"allowed_web_store_urls"` //
}

func (GACDiscoveryResourceModel) GetAttributes

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

func (GACDiscoveryResourceModel) GetAttributesNamesToMask added in v1.0.20

func (GACDiscoveryResourceModel) GetAttributesNamesToMask() map[string]bool

func (GACDiscoveryResourceModel) GetSchema

func (GACDiscoveryResourceModel) RefreshPropertyValues

func (r GACDiscoveryResourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, discoveryRecordModel globalappconfiguration.DiscoveryRecordModel) GACDiscoveryResourceModel

type GACSettingsResourceModel

type GACSettingsResourceModel struct {
	ServiceUrl      types.String `tfsdk:"service_url"`
	Name            types.String `tfsdk:"name"`
	Description     types.String `tfsdk:"description"`
	UseForAppConfig types.Bool   `tfsdk:"use_for_app_config"`
	AppSettings     types.Object `tfsdk:"app_settings"` // AppSettings
	TestChannel     types.Bool   `tfsdk:"test_channel"`
}

func (GACSettingsResourceModel) GetAttributes

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

func (GACSettingsResourceModel) GetAttributesNamesToMask added in v1.0.20

func (GACSettingsResourceModel) GetAttributesNamesToMask() map[string]bool

func (GACSettingsResourceModel) GetSchema

func (GACSettingsResourceModel) RefreshPropertyValues

func (r GACSettingsResourceModel) RefreshPropertyValues(ctx context.Context, diagnostics *diag.Diagnostics, settingsRecordModel globalappconfiguration.SettingsRecordModel) GACSettingsResourceModel

type Html5

type Html5 struct {
	Category     types.String `tfsdk:"category"`
	UserOverride types.Bool   `tfsdk:"user_override"`
	Settings     types.Set    `tfsdk:"settings"` //Set[Html5Settings]
}

func (Html5) GetAttributes

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

func (Html5) GetSchema

func (Html5) GetSchema() schema.NestedAttributeObject

type Html5Settings

type Html5Settings struct {
	Name        types.String `tfsdk:"name"`
	ValueString types.String `tfsdk:"value_string"`
	ValueList   types.List   `tfsdk:"value_list"`
}

func (Html5Settings) GetAttributes

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

func (Html5Settings) GetSchema

type Ios

type Ios struct {
	Category     types.String `tfsdk:"category"`
	UserOverride types.Bool   `tfsdk:"user_override"`
	Settings     types.Set    `tfsdk:"settings"` //Set[IosSettings]
}

func (Ios) GetAttributes

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

func (Ios) GetSchema

func (Ios) GetSchema() schema.NestedAttributeObject

type IosSettings

type IosSettings struct {
	Name        types.String `tfsdk:"name"`
	ValueString types.String `tfsdk:"value_string"`
}

func (IosSettings) GetAttributes

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

func (IosSettings) GetSchema

type Linux

type Linux struct {
	Category     types.String `tfsdk:"category"`
	UserOverride types.Bool   `tfsdk:"user_override"`
	Settings     types.Set    `tfsdk:"settings"` //Set[LinuxSettings]
}

func (Linux) GetAttributes

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

func (Linux) GetSchema

func (Linux) GetSchema() schema.NestedAttributeObject

type LinuxSettings

type LinuxSettings struct {
	Name                           types.String `tfsdk:"name"`
	ValueString                    types.String `tfsdk:"value_string"`
	ValueList                      types.List   `tfsdk:"value_list"`
	ExtensionInstallAllowList      types.Set    `tfsdk:"extension_install_allow_list"`       //Set[ExtensionInstallAllowListModel]
	AutoLaunchProtocolsFromOrigins types.Set    `tfsdk:"auto_launch_protocols_from_origins"` //Set[AutoLaunchProtocolsFromOriginsModel]
	ManagedBookmarks               types.Set    `tfsdk:"managed_bookmarks"`                  //Set[BookMarkValueModel]
}

func (LinuxSettings) GetAttributes

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

func (LinuxSettings) GetSchema

type LocalAppAllowListModel

type LocalAppAllowListModel struct {
	Name      types.String `tfsdk:"name"`
	Path      types.String `tfsdk:"path"`
	Arguments types.String `tfsdk:"arguments"`
}

region LocalAppAllowListModel

func (LocalAppAllowListModel) GetAttributes

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

func (LocalAppAllowListModel) GetSchema

type LocalAppAllowListModel_Go

type LocalAppAllowListModel_Go struct {
	Name      string `json:"name"`
	Path      string `json:"path"`
	Arguments string `json:"arguments"`
}

type Macos

type Macos struct {
	Category     types.String `tfsdk:"category"`
	UserOverride types.Bool   `tfsdk:"user_override"`
	Settings     types.Set    `tfsdk:"settings"` //Set[MacosSettings]
}

func (Macos) GetAttributes

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

func (Macos) GetSchema

func (Macos) GetSchema() schema.NestedAttributeObject

type MacosSettings

type MacosSettings struct {
	Name                           types.String `tfsdk:"name"`
	ValueString                    types.String `tfsdk:"value_string"`
	ValueList                      types.List   `tfsdk:"value_list"`
	AutoLaunchProtocolsFromOrigins types.Set    `tfsdk:"auto_launch_protocols_from_origins"` //Set[AutoLaunchProtocolsFromOrigins]
	ManagedBookmarks               types.Set    `tfsdk:"managed_bookmarks"`                  //Set[BookMarkValue]
	ExtensionInstallAllowList      types.Set    `tfsdk:"extension_install_allow_list"`       //Set[ExtensionInstallAllowList]
	EnterpriseBroswerSSO           types.Object `tfsdk:"enterprise_browser_sso"`             //CitrixEnterpriseBrowserModel
}

func (MacosSettings) GetAttributes

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

func (MacosSettings) GetSchema

type Windows

type Windows struct {
	Category     types.String `tfsdk:"category"`
	UserOverride types.Bool   `tfsdk:"user_override"`
	Settings     types.Set    `tfsdk:"settings"` //Set[WindowsSettings]
}

func (Windows) GetAttributes

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

func (Windows) GetSchema

func (Windows) GetSchema() schema.NestedAttributeObject

type WindowsSettings

type WindowsSettings struct {
	Name                           types.String `tfsdk:"name"`
	ValueString                    types.String `tfsdk:"value_string"`
	ValueList                      types.List   `tfsdk:"value_list"`
	LocalAppAllowList              types.Set    `tfsdk:"local_app_allow_list"`               //Set[LocalAppAllowSetModel]
	ExtensionInstallAllowList      types.Set    `tfsdk:"extension_install_allow_list"`       //Set[ExtensionInstallAllowSetModel]
	AutoLaunchProtocolsFromOrigins types.Set    `tfsdk:"auto_launch_protocols_from_origins"` //Set[AutoLaunchProtocolsFromOriginsModel]
	ManagedBookmarks               types.Set    `tfsdk:"managed_bookmarks"`                  //Set[BookMarkValueModel]
	EnterpriseBroswerSSO           types.Object `tfsdk:"enterprise_browser_sso"`             //CitrixEnterpriseBrowserModel
}

func (WindowsSettings) GetAttributes

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

func (WindowsSettings) GetSchema

Jump to

Keyboard shortcuts

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