gac_settings

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConvertStruct added in v1.0.4

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

Generic converter function

func ConvertStructReverse added in v1.0.4

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.List) []globalappconfiguration.CategorySettings

func CreateCategorySettingsForChromeos

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

func CreateCategorySettingsForHtml5

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

func CreateCategorySettingsForIos

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

func CreateCategorySettingsForLinux added in v1.0.5

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

func CreateCategorySettingsForMacos

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

func CreateCategorySettingsForWindows

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

func GACSettingsUpdate added in v1.0.4

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

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

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

func MacosSettingsDefaultValues added in v1.0.4

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

func NewGacSettingsResource added in v1.0.3

func NewGacSettingsResource() resource.Resource

NewGacSettingsResource is a helper function to simplify the provider implementation.

func WindowsSettingsDefaultValues added in v1.0.4

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.List   `tfsdk:"settings"` //[]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"`  //[]Windows
	Ios      types.Set `tfsdk:"ios"`      //[]Ios
	Android  types.Set `tfsdk:"android"`  //[]Android
	Chromeos types.Set `tfsdk:"chromeos"` //[]Chromeos
	Html5    types.Set `tfsdk:"html5"`    //[]Html5
	Macos    types.Set `tfsdk:"macos"`    //[]Macos
	Linux    types.Set `tfsdk:"linux"`    //[]Linux
}

func (AppSettings) GetAttributes

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

func (AppSettings) GetSchema

type AutoLaunchProtocolsFromOriginsModel added in v1.0.4

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

region AutoLaunchProtocolsFromOriginsModel

func (AutoLaunchProtocolsFromOriginsModel) GetAttributes added in v1.0.4

func (AutoLaunchProtocolsFromOriginsModel) GetSchema added in v1.0.4

type AutoLaunchProtocolsFromOriginsModel_Go added in v1.0.4

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

type BookMarkValueModel added in v1.0.4

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

region BookMarkValueModel

func (BookMarkValueModel) GetAttributes added in v1.0.4

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

func (BookMarkValueModel) GetSchema added in v1.0.4

type BookMarkValueModel_Go added in v1.0.4

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.List   `tfsdk:"settings"` //[]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 added in v1.0.4

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

func (CitrixEnterpriseBrowserModel) GetSchema added in v1.0.4

type CitrixEnterpriseBrowserModel_Go added in v1.0.4

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

type ExtensionInstallAllowListModel added in v1.0.4

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

region ExtensionInstallAllowListModel

func (ExtensionInstallAllowListModel) GetAttributes added in v1.0.4

func (ExtensionInstallAllowListModel) GetSchema added in v1.0.4

type ExtensionInstallAllowListModel_Go added in v1.0.4

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

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
}

func (GACSettingsResourceModel) GetAttributes added in v1.0.4

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

func (GACSettingsResourceModel) GetSchema added in v1.0.4

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.List   `tfsdk:"settings"` //[]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.List   `tfsdk:"settings"` //[]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 added in v1.0.5

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

func (Linux) GetAttributes added in v1.0.5

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

func (Linux) GetSchema added in v1.0.5

func (Linux) GetSchema() schema.NestedAttributeObject

type LinuxSettings added in v1.0.5

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

func (LinuxSettings) GetAttributes added in v1.0.5

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

func (LinuxSettings) GetSchema added in v1.0.5

type LocalAppAllowListModel added in v1.0.4

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

region LocalAppAllowListModel

func (LocalAppAllowListModel) GetAttributes added in v1.0.4

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

func (LocalAppAllowListModel) GetSchema added in v1.0.4

type LocalAppAllowListModel_Go added in v1.0.4

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.List   `tfsdk:"settings"` //[]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.List   `tfsdk:"auto_launch_protocols_from_origins"` //[]AutoLaunchProtocolsFromOrigins
	ManagedBookmarks               types.List   `tfsdk:"managed_bookmarks"`                  //[]BookMarkValue
	ExtensionInstallAllowList      types.List   `tfsdk:"extension_install_allow_list"`       //[]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.List   `tfsdk:"settings"` //[]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.List   `tfsdk:"local_app_allow_list"`               //list[LocalAppAllowListModel]
	ExtensionInstallAllowList      types.List   `tfsdk:"extension_install_allow_list"`       //list[ExtensionInstallAllowListModel]
	AutoLaunchProtocolsFromOrigins types.List   `tfsdk:"auto_launch_protocols_from_origins"` //List[AutoLaunchProtocolsFromOriginsModel]
	ManagedBookmarks               types.List   `tfsdk:"managed_bookmarks"`                  //List[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