Documentation ¶
Overview ¶
Package tape enables access to the TAPE service which offers access to owned test accounts and configuration of policies on DPanel for those accounts. The TAPE project is documented here: TODO(alexanderhartl): add link once its finished
Package tape enables access to the TAPE service which offers access to owned test accounts and configuration of policies on DPanel for those accounts. The TAPE project is documented here: TODO(alexanderhartl): add link once its finished
Index ¶
- Constants
- func Deprovision(ctx context.Context, request DeprovisionRequest, client *http.Client) error
- func NewTapeClient(ctx context.Context, opts ...NewTapeClientOption) (*http.Client, error)
- func ReleaseGenericAccount(ctx context.Context, account *GenericAccount, client *http.Client) error
- type Account
- func (acc *Account) CleanUp(ctx context.Context, client *http.Client) error
- func (acc *Account) RegeneratePassword(ctx context.Context, client *http.Client) error
- func (acc *Account) ReleaseAccount(ctx context.Context, client *http.Client) error
- func (acc *Account) SetPolicy(ctx context.Context, policySchema PolicySchema, client *http.Client) error
- type ActionOnDeviceIdleEnum
- type ActionOnLidCloseEnum
- type AdvancedProtectionAllowed
- type AllowForDevices
- type AllowForManagedGuest
- type AllowForUsers
- type AllowPopulateAssetIdentifier
- type AllowSystemNotifications
- type AllowToEnrollDevicesEnum
- type AlwaysOnVpn
- type AmbientAuthenticationInPrivateModesEnabled
- type AmbientAuthenticationInPrivateModesEnabledEnum
- type AudioSandboxEnabled
- type AuthSchemes
- type AuthenticationServerAllowlist
- type AuthenticationServerDelegationAllowlist
- type AutoLaunchAppKiosk
- type Avatar
- type BasicAuthOverHttpEnabled
- type BrowserHistory
- type BrowserSignin
- type BrowserSigninModeEnum
- type BrowserThemeColor
- type BuiltInDnsClientEnabled
- type CACertificateManagementAllowedEnum
- type CaCertificateManagementAllowed
- type CaptivePortalAuthenticationIgnoresProxy
- type CertTransparencyCas
- type CertTransparencyLegacyCas
- type CertificateManagementMGS
- type CertificateTransparencyEnforcementDisabledForUrls
- type ChromeCleanupEnabled
- type ClearBrowserHistory
- type ClientCertificateManagementAllowed
- type ClientCertificateManagementAllowedEnum
- type CommandLineFlagSecurityWarningsEnabled
- type CpuTaskScheduler
- type DataCompressionProxy
- type DeprovisionRequest
- type DeviceEnrollment
- type DisplayCapturePermissionsPolicyEnabled
- type DnsOverHttps
- type DnsOverHttpsModeEnum
- type Duration
- type EnrollPermission
- type ForceEphemeralMode
- type ForceInstallKiosk
- type FunctionKeysKiosk
- type GaiaLockScreenOfflineSigninTimeLimitDays
- type GaiaOfflineSigninTimeLimitDays
- type GenericAccount
- type Geolocation
- type GeolocationSettingEnum
- type IdleSettings
- type IncludeInChromeWebStoreCollectionMGS
- type IncognitoMode
- type IncognitoModeAvailabilityEnum
- type InstallTypeMGS
- type InstallationUrlKiosk
- type InstallationUrlMGS
- type KerberosAddAccountsAllowed
- type KerberosRememberPasswordEnabled
- type KerberosServicePrincipalName
- type KerberosTicketDelegation
- type KerberosTickets
- type LockScreen
- type LockScreenMediaPlaybackEnabled
- type LoginDisplayPasswordButtonEnabled
- type ManagedConfigurationKiosk
- type ManagedConfigurationMGS
- type ManagedGuestSessionAppInstallType
- type MobileManagement
- type NewTapeClientOption
- type NtlmV2Enabled
- type NullableBoolean
- type NullableDuration
- type NullableLong
- type OnlineRevocationChecks
- type OverrideSecurityRestrictionsOnInsecureOrigin
- type PasswordLeakDetection
- type PasswordManager
- type PermissionsAndUrlAccessMGS
- type PinUnlockAutosubmitEnabled
- type PluginsKiosk
- type PolicySchema
- type PowerManagementKiosk
- type ProxyModeEnum
- type QuicProtocol
- type QuickUnlockModeAllowlist
- type RemoteAccessHostClientDomainList
- type RemoteAccessHostDomainList
- type RemoteAccessHostFirewallTraversal
- type RemoteDebuggingAllowed
- type RendererCodeIntegrityEnabled
- type RequestGenericAccountParams
- type RestrictSigninToPattern
- type Rotation
- type SSLVersionMinEnum
- type SamlLockScreenOfflineSigninTimeLimitDays
- type SamlSigninTimeLimitEnum
- type SchedulerConfigurationEnum
- type SecurityTokenSessionBehaviorEnum
- type SecurityTokenSessionSettings
- type SessionLength
- type ShowLogoutButton
- type SigninInterceptionEnabled
- type SimpleProxySettings
- type SingleSignOn
- type SingleSignOnLoginFrequency
- type SiteIsolationAndroid
- type SiteIsolationBrowser
- type SkipPrintConfirmationMGS
- type SslErrorOverrideAllowed
- type SslErrorOverrideAllowedForOrigins
- type SslVersionMin
- type SuppressUnsupportedOsWarning
- type TargetBlankImpliesNoOpener
- type TaskManager
- type ThirdPartyBlockingEnabled
- type TripleDesEnabled
- type UnifiedDesktopKiosk
- type UploadedFile
- type VirtualKeyboardKiosk
- type Wallpaper
- type WebRtcIPHandlingEnum
- type WebRtcIpHandling
- type WebRtcLocalIpsAllowedUrls
- type WebRtcUdpPortRange
Constants ¶
const MaxGenericAccountTimeoutInSeconds = 60 * 60 * 2
MaxGenericAccountTimeoutInSeconds is the maximum timeout which is allowed when requesting a generic account (2 hours).
const MaxTimeout = 172800 * time.Second
MaxTimeout is the maximum timeout which is allowed when requesting a test account.
const TokenDir = "/tmp/tokensource"
TokenDir is the location where the access token for tape is stored.
const TokenFile = "tokensource.json"
TokenFile is the file where the access token for tape is stored.
Variables ¶
This section is empty.
Functions ¶
func Deprovision ¶
Deprovision calls TAPE to deprovision a device in DPanel.
func NewTapeClient ¶
NewTapeClient creates a http client which provides the necessary token to connect to the TAPE GCP from a service account key file. This function can only be called remotely as the DuT does not have service account key files. All functions in the tape package should be passed this http client.
func ReleaseGenericAccount ¶
ReleaseGenericAccount sends a request for releasing a leased account.
Types ¶
type Account ¶
type Account struct { Email string `json:"email"` GaiaID int64 `json:"gaiaid"` Orgunit string `json:"orgunit"` Password string `json:"password"` Timeout int64 `json:"timeout"` }
Account is a struct representing an owned test account with its credentials.
func RequestAccount ¶
func RequestAccount(ctx context.Context, timeout time.Duration, client *http.Client) (*Account, error)
RequestAccount calls TAPE to obtain credentials for an available owned test account and returns it. The returned Account can not be obtained by other calls to RequestAccount until it is released or it times out after the given timeout is reached. A timeout of 0 will use the DEFAULT_ACCOUNT_TIMEOUT of the TAPE server which is 2 hours, timeouts larger than 2 days = 172800 seconds are not allowed. The returned password is temporary and will be valid for roughly one day.
func (*Account) CleanUp ¶
CleanUp calls TAPE to clean up the Account. All policies will be set to their default values and all other state changes will also be reverted. However the account will not be released with this call. Accounts will always be cleaned up when they are requested with RequestAccount, tests are not expected to call this function to clean up when a test is finished.
func (*Account) RegeneratePassword ¶
RegeneratePassword calls TAPE to obtain a new temporary Password for the given Account and returns the Account. A temporary password will be valid for roughly a day. Tests are not expected to use this as RequestAccount will already provide a temporary password.
func (*Account) ReleaseAccount ¶
ReleaseAccount calls TAPE to release the Account so it becomes available again.
type ActionOnDeviceIdleEnum ¶
type ActionOnDeviceIdleEnum int
const ( ACTIONONDEVICEIDLEENUM_ACTION_ON_DEVICE_IDLE_ENUM_SLEEP ActionOnDeviceIdleEnum = iota // 0 ACTIONONDEVICEIDLEENUM_ACTION_ON_DEVICE_IDLE_ENUM_LOGOUT // 1 ACTIONONDEVICEIDLEENUM_ACTION_ON_DEVICE_IDLE_ENUM_LOCK // 2 )
type ActionOnLidCloseEnum ¶
type ActionOnLidCloseEnum int
const ( ACTIONONLIDCLOSEENUM_ACTION_ON_LID_CLOSE_ENUM_SLEEP ActionOnLidCloseEnum = iota // 0 ACTIONONLIDCLOSEENUM_ACTION_ON_LID_CLOSE_ENUM_LOGOUT // 1 )
type AdvancedProtectionAllowed ¶
type AdvancedProtectionAllowed struct {
AdvancedProtectionAllowed bool `json:"advancedProtectionAllowed"`
}
func (*AdvancedProtectionAllowed) Schema2JSON ¶
func (p *AdvancedProtectionAllowed) Schema2JSON(orgunit string) ([]byte, error)
type AllowForDevices ¶
type AllowForDevices struct {
AllowForDevices bool `json:"allowForDevices"`
}
func (*AllowForDevices) Schema2JSON ¶
func (p *AllowForDevices) Schema2JSON(orgunit string) ([]byte, error)
type AllowForManagedGuest ¶
type AllowForManagedGuest struct {
AllowForManagedGuest bool `json:"allowForManagedGuest"`
}
func (*AllowForManagedGuest) Schema2JSON ¶
func (p *AllowForManagedGuest) Schema2JSON(orgunit string) ([]byte, error)
type AllowForUsers ¶
type AllowForUsers struct {
AllowForUsers bool `json:"allowForUsers"`
}
func (*AllowForUsers) Schema2JSON ¶
func (p *AllowForUsers) Schema2JSON(orgunit string) ([]byte, error)
type AllowPopulateAssetIdentifier ¶
type AllowPopulateAssetIdentifier struct {
AllowToUpdateDeviceAttribute bool `json:"allowToUpdateDeviceAttribute"`
}
func (*AllowPopulateAssetIdentifier) Schema2JSON ¶
func (p *AllowPopulateAssetIdentifier) Schema2JSON(orgunit string) ([]byte, error)
type AllowSystemNotifications ¶
type AllowSystemNotifications struct {
AllowSystemNotifications bool `json:"allowSystemNotifications"`
}
func (*AllowSystemNotifications) Schema2JSON ¶
func (p *AllowSystemNotifications) Schema2JSON(orgunit string) ([]byte, error)
type AllowToEnrollDevicesEnum ¶
type AllowToEnrollDevicesEnum int
const ( ALLOWTOENROLLDEVICESENUM_ALLOW_TO_ENROLL_DEVICES_ENUM_ALLOW_ENROLL_RE_ENROLL AllowToEnrollDevicesEnum = iota // 0 ALLOWTOENROLLDEVICESENUM_ALLOW_TO_ENROLL_DEVICES_ENUM_ALLOW_RE_ENROLL // 1 ALLOWTOENROLLDEVICESENUM_ALLOW_TO_ENROLL_DEVICES_ENUM_DISALLOW_ENROLL_RE_ENROLL // 2 )
type AlwaysOnVpn ¶
type AlwaysOnVpn struct { AlwaysOnVpnApp string `json:"alwaysOnVpnApp"` VpnConfigAllowed bool `json:"vpnConfigAllowed"` }
func (*AlwaysOnVpn) Schema2JSON ¶
func (p *AlwaysOnVpn) Schema2JSON(orgunit string) ([]byte, error)
type AmbientAuthenticationInPrivateModesEnabled ¶
type AmbientAuthenticationInPrivateModesEnabled struct {
AmbientAuthenticationInPrivateModesEnabled AmbientAuthenticationInPrivateModesEnabledEnum `json:"ambientAuthenticationInPrivateModesEnabled"`
}
func (*AmbientAuthenticationInPrivateModesEnabled) Schema2JSON ¶
func (p *AmbientAuthenticationInPrivateModesEnabled) Schema2JSON(orgunit string) ([]byte, error)
type AmbientAuthenticationInPrivateModesEnabledEnum ¶
type AmbientAuthenticationInPrivateModesEnabledEnum int
const ( AMBIENTAUTHENTICATIONINPRIVATEMODESENABLEDENUM_AMBIENT_AUTHENTICATION_IN_PRIVATE_MODES_ENABLED_ENUM_UNSET AmbientAuthenticationInPrivateModesEnabledEnum = iota // 0 AMBIENTAUTHENTICATIONINPRIVATEMODESENABLEDENUM_AMBIENT_AUTHENTICATION_IN_PRIVATE_MODES_ENABLED_ENUM_REGULAR_ONLY // 1 AMBIENTAUTHENTICATIONINPRIVATEMODESENABLEDENUM_AMBIENT_AUTHENTICATION_IN_PRIVATE_MODES_ENABLED_ENUM_INCOGNITO_AND_REGULAR // 2 AMBIENTAUTHENTICATIONINPRIVATEMODESENABLEDENUM_AMBIENT_AUTHENTICATION_IN_PRIVATE_MODES_ENABLED_ENUM_GUEST_AND_REGULAR // 3 AMBIENTAUTHENTICATIONINPRIVATEMODESENABLEDENUM_AMBIENT_AUTHENTICATION_IN_PRIVATE_MODES_ENABLED_ENUM_ALL // 4 )
type AudioSandboxEnabled ¶
type AudioSandboxEnabled struct {
AudioSandboxEnabled NullableBoolean `json:"audioSandboxEnabled"`
}
func (*AudioSandboxEnabled) Schema2JSON ¶
func (p *AudioSandboxEnabled) Schema2JSON(orgunit string) ([]byte, error)
type AuthSchemes ¶
type AuthSchemes struct {
AuthSchemes []string `json:"authSchemes"`
}
func (*AuthSchemes) Schema2JSON ¶
func (p *AuthSchemes) Schema2JSON(orgunit string) ([]byte, error)
type AuthenticationServerAllowlist ¶
type AuthenticationServerAllowlist struct {
AuthServerAllowlist []string `json:"authServerAllowlist"`
}
func (*AuthenticationServerAllowlist) Schema2JSON ¶
func (p *AuthenticationServerAllowlist) Schema2JSON(orgunit string) ([]byte, error)
type AuthenticationServerDelegationAllowlist ¶
type AuthenticationServerDelegationAllowlist struct {
AuthNegotiateDelegateAllowlist []string `json:"authNegotiateDelegateAllowlist"`
}
func (*AuthenticationServerDelegationAllowlist) Schema2JSON ¶
func (p *AuthenticationServerDelegationAllowlist) Schema2JSON(orgunit string) ([]byte, error)
type AutoLaunchAppKiosk ¶
type AutoLaunchAppKiosk struct { AppId string `json:"appId"` EnableHealthMonitoring bool `json:"enableHealthMonitoring"` ScreenRotation Rotation `json:"screenRotation"` }
func (*AutoLaunchAppKiosk) Schema2JSON ¶
func (p *AutoLaunchAppKiosk) Schema2JSON(orgunit string) ([]byte, error)
type Avatar ¶
type Avatar struct {
UserAvatarImage UploadedFile `json:"userAvatarImage"`
}
type BasicAuthOverHttpEnabled ¶
type BasicAuthOverHttpEnabled struct {
BasicAuthOverHttpEnabled bool `json:"basicAuthOverHttpEnabled"`
}
func (*BasicAuthOverHttpEnabled) Schema2JSON ¶
func (p *BasicAuthOverHttpEnabled) Schema2JSON(orgunit string) ([]byte, error)
type BrowserHistory ¶
type BrowserHistory struct {
SavingBrowserHistoryDisabled bool `json:"savingBrowserHistoryDisabled"`
}
func (*BrowserHistory) Schema2JSON ¶
func (p *BrowserHistory) Schema2JSON(orgunit string) ([]byte, error)
type BrowserSignin ¶
type BrowserSignin struct {
BrowserSignin BrowserSigninModeEnum `json:"browserSignin"`
}
func (*BrowserSignin) Schema2JSON ¶
func (p *BrowserSignin) Schema2JSON(orgunit string) ([]byte, error)
type BrowserSigninModeEnum ¶
type BrowserSigninModeEnum int
const ( BROWSERSIGNINMODEENUM_BROWSER_SIGNIN_MODE_ENUM_DISABLE BrowserSigninModeEnum = iota // 0 BROWSERSIGNINMODEENUM_BROWSER_SIGNIN_MODE_ENUM_ENABLE // 1 BROWSERSIGNINMODEENUM_BROWSER_SIGNIN_MODE_ENUM_FORCE // 2 )
type BrowserThemeColor ¶
type BrowserThemeColor struct {
BrowserThemeColor string `json:"browserThemeColor"`
}
func (*BrowserThemeColor) Schema2JSON ¶
func (p *BrowserThemeColor) Schema2JSON(orgunit string) ([]byte, error)
type BuiltInDnsClientEnabled ¶
type BuiltInDnsClientEnabled struct {
BuiltInDnsClientEnabled NullableBoolean `json:"builtInDnsClientEnabled"`
}
func (*BuiltInDnsClientEnabled) Schema2JSON ¶
func (p *BuiltInDnsClientEnabled) Schema2JSON(orgunit string) ([]byte, error)
type CACertificateManagementAllowedEnum ¶
type CACertificateManagementAllowedEnum int
const ( CACERTIFICATEMANAGEMENTALLOWEDENUM_CA_CERTIFICATE_MANAGEMENT_ALLOWED_ENUM_ALL CACertificateManagementAllowedEnum = iota // 0 CACERTIFICATEMANAGEMENTALLOWEDENUM_CA_CERTIFICATE_MANAGEMENT_ALLOWED_ENUM_USER_ONLY // 1 CACERTIFICATEMANAGEMENTALLOWEDENUM_CA_CERTIFICATE_MANAGEMENT_ALLOWED_ENUM_NONE // 2 )
type CaCertificateManagementAllowed ¶
type CaCertificateManagementAllowed struct {
CaCertificateManagementAllowed CACertificateManagementAllowedEnum `json:"caCertificateManagementAllowed"`
}
func (*CaCertificateManagementAllowed) Schema2JSON ¶
func (p *CaCertificateManagementAllowed) Schema2JSON(orgunit string) ([]byte, error)
type CaptivePortalAuthenticationIgnoresProxy ¶
type CaptivePortalAuthenticationIgnoresProxy struct {
CaptivePortalAuthenticationIgnoresProxy bool `json:"captivePortalAuthenticationIgnoresProxy"`
}
func (*CaptivePortalAuthenticationIgnoresProxy) Schema2JSON ¶
func (p *CaptivePortalAuthenticationIgnoresProxy) Schema2JSON(orgunit string) ([]byte, error)
type CertTransparencyCas ¶
type CertTransparencyCas struct {
CertificateTransparencyEnforcementDisabledForCas []string `json:"certificateTransparencyEnforcementDisabledForCas"`
}
func (*CertTransparencyCas) Schema2JSON ¶
func (p *CertTransparencyCas) Schema2JSON(orgunit string) ([]byte, error)
type CertTransparencyLegacyCas ¶
type CertTransparencyLegacyCas struct {
CertificateTransparencyEnforcementDisabledForLegacyCas []string `json:"certificateTransparencyEnforcementDisabledForLegacyCas"`
}
func (*CertTransparencyLegacyCas) Schema2JSON ¶
func (p *CertTransparencyLegacyCas) Schema2JSON(orgunit string) ([]byte, error)
type CertificateManagementMGS ¶
type CertificateManagementMGS struct { AllowAccessToKeys bool `json:"allowAccessToKeys"` AllowEnterpriseChallenge bool `json:"allowEnterpriseChallenge"` }
func (*CertificateManagementMGS) Schema2JSON ¶
func (p *CertificateManagementMGS) Schema2JSON(orgunit string) ([]byte, error)
type CertificateTransparencyEnforcementDisabledForUrls ¶
type CertificateTransparencyEnforcementDisabledForUrls struct {
CertificateTransparencyEnforcementDisabledForUrls []string `json:"certificateTransparencyEnforcementDisabledForUrls"`
}
func (*CertificateTransparencyEnforcementDisabledForUrls) Schema2JSON ¶
func (p *CertificateTransparencyEnforcementDisabledForUrls) Schema2JSON(orgunit string) ([]byte, error)
type ChromeCleanupEnabled ¶
type ChromeCleanupEnabled struct { ChromeCleanupEnabled bool `json:"chromeCleanupEnabled"` ChromeCleanupReportingEnabled NullableBoolean `json:"chromeCleanupReportingEnabled"` }
func (*ChromeCleanupEnabled) Schema2JSON ¶
func (p *ChromeCleanupEnabled) Schema2JSON(orgunit string) ([]byte, error)
type ClearBrowserHistory ¶
type ClearBrowserHistory struct {
AllowDeletingBrowserHistory bool `json:"allowDeletingBrowserHistory"`
}
func (*ClearBrowserHistory) Schema2JSON ¶
func (p *ClearBrowserHistory) Schema2JSON(orgunit string) ([]byte, error)
type ClientCertificateManagementAllowed ¶
type ClientCertificateManagementAllowed struct {
ClientCertificateManagementAllowed ClientCertificateManagementAllowedEnum `json:"clientCertificateManagementAllowed"`
}
func (*ClientCertificateManagementAllowed) Schema2JSON ¶
func (p *ClientCertificateManagementAllowed) Schema2JSON(orgunit string) ([]byte, error)
type ClientCertificateManagementAllowedEnum ¶
type ClientCertificateManagementAllowedEnum int
const ( CLIENTCERTIFICATEMANAGEMENTALLOWEDENUM_CLIENT_CERTIFICATE_MANAGEMENT_ALLOWED_ENUM_ALL ClientCertificateManagementAllowedEnum = iota // 0 CLIENTCERTIFICATEMANAGEMENTALLOWEDENUM_CLIENT_CERTIFICATE_MANAGEMENT_ALLOWED_ENUM_USER_ONLY // 1 CLIENTCERTIFICATEMANAGEMENTALLOWEDENUM_CLIENT_CERTIFICATE_MANAGEMENT_ALLOWED_ENUM_NONE // 2 )
type CommandLineFlagSecurityWarningsEnabled ¶
type CommandLineFlagSecurityWarningsEnabled struct {
CommandLineFlagSecurityWarningsEnabled bool `json:"commandLineFlagSecurityWarningsEnabled"`
}
func (*CommandLineFlagSecurityWarningsEnabled) Schema2JSON ¶
func (p *CommandLineFlagSecurityWarningsEnabled) Schema2JSON(orgunit string) ([]byte, error)
type CpuTaskScheduler ¶
type CpuTaskScheduler struct {
SchedulerConfiguration SchedulerConfigurationEnum `json:"schedulerConfiguration"`
}
func (*CpuTaskScheduler) Schema2JSON ¶
func (p *CpuTaskScheduler) Schema2JSON(orgunit string) ([]byte, error)
type DataCompressionProxy ¶
type DataCompressionProxy struct {
DataCompressionProxyEnabled NullableBoolean `json:"dataCompressionProxyEnabled"`
}
func (*DataCompressionProxy) Schema2JSON ¶
func (p *DataCompressionProxy) Schema2JSON(orgunit string) ([]byte, error)
type DeprovisionRequest ¶
type DeprovisionRequest struct { DeviceID string `json:"deviceid"` CustomerID string `json:"customerid"` }
DeprovisionRequest is a struct containing the necessary data to deprovision a device.
type DeviceEnrollment ¶
type DeviceEnrollment struct {
AutoDevicePlacementEnabled bool `json:"autoDevicePlacementEnabled"`
}
func (*DeviceEnrollment) Schema2JSON ¶
func (p *DeviceEnrollment) Schema2JSON(orgunit string) ([]byte, error)
type DisplayCapturePermissionsPolicyEnabled ¶
type DisplayCapturePermissionsPolicyEnabled struct {
DisplayCapturePermissionsPolicyEnabled bool `json:"displayCapturePermissionsPolicyEnabled"`
}
func (*DisplayCapturePermissionsPolicyEnabled) Schema2JSON ¶
func (p *DisplayCapturePermissionsPolicyEnabled) Schema2JSON(orgunit string) ([]byte, error)
type DnsOverHttps ¶
type DnsOverHttps struct { DnsOverHttpsMode DnsOverHttpsModeEnum `json:"dnsOverHttpsMode"` DnsOverHttpsTemplates []string `json:"dnsOverHttpsTemplates"` }
func (*DnsOverHttps) Schema2JSON ¶
func (p *DnsOverHttps) Schema2JSON(orgunit string) ([]byte, error)
type DnsOverHttpsModeEnum ¶
type DnsOverHttpsModeEnum int
const ( DNSOVERHTTPSMODEENUM_DNS_OVER_HTTPS_MODE_ENUM_OFF DnsOverHttpsModeEnum = iota // 0 DNSOVERHTTPSMODEENUM_DNS_OVER_HTTPS_MODE_ENUM_AUTOMATIC // 1 DNSOVERHTTPSMODEENUM_DNS_OVER_HTTPS_MODE_ENUM_SECURE // 2 DNSOVERHTTPSMODEENUM_DNS_OVER_HTTPS_MODE_ENUM_UNSET // 3 )
type EnrollPermission ¶
type EnrollPermission struct {
DeviceEnrollPermission AllowToEnrollDevicesEnum `json:"deviceEnrollPermission"`
}
func (*EnrollPermission) Schema2JSON ¶
func (p *EnrollPermission) Schema2JSON(orgunit string) ([]byte, error)
type ForceEphemeralMode ¶
type ForceEphemeralMode struct {
ForceEphemeralProfiles bool `json:"forceEphemeralProfiles"`
}
func (*ForceEphemeralMode) Schema2JSON ¶
func (p *ForceEphemeralMode) Schema2JSON(orgunit string) ([]byte, error)
type ForceInstallKiosk ¶
type ForceInstallKiosk struct {
ForceInstall bool `json:"forceInstall"`
}
func (*ForceInstallKiosk) Schema2JSON ¶
func (p *ForceInstallKiosk) Schema2JSON(orgunit string) ([]byte, error)
type FunctionKeysKiosk ¶
type FunctionKeysKiosk struct {
AllowFunctionKeys bool `json:"allowFunctionKeys"`
}
func (*FunctionKeysKiosk) Schema2JSON ¶
func (p *FunctionKeysKiosk) Schema2JSON(orgunit string) ([]byte, error)
type GaiaLockScreenOfflineSigninTimeLimitDays ¶
type GaiaLockScreenOfflineSigninTimeLimitDays struct {
GaiaLockScreenOfflineSigninTimeLimitDays NullableLong `json:"gaiaLockScreenOfflineSigninTimeLimitDays"`
}
func (*GaiaLockScreenOfflineSigninTimeLimitDays) Schema2JSON ¶
func (p *GaiaLockScreenOfflineSigninTimeLimitDays) Schema2JSON(orgunit string) ([]byte, error)
type GaiaOfflineSigninTimeLimitDays ¶
type GaiaOfflineSigninTimeLimitDays struct {
GaiaOfflineSigninTimeLimitDays NullableLong `json:"gaiaOfflineSigninTimeLimitDays"`
}
func (*GaiaOfflineSigninTimeLimitDays) Schema2JSON ¶
func (p *GaiaOfflineSigninTimeLimitDays) Schema2JSON(orgunit string) ([]byte, error)
type GenericAccount ¶
type GenericAccount struct { ID int64 `json:"id"` Username string `json:"username"` Password string `json:"password"` PoolID string `json:"pool_id"` ReleaseTime float64 `json:"release_time"` RequestID string `json:"request_id"` }
GenericAccount stores information about a generic account in TAPE.
func RequestGenericAccount ¶
func RequestGenericAccount(ctx context.Context, params RequestGenericAccountParams, client *http.Client) (*GenericAccount, error)
RequestGenericAccount sends a request for leasing a generic account.
type Geolocation ¶
type Geolocation struct {
DefaultGeolocationSetting GeolocationSettingEnum `json:"defaultGeolocationSetting"`
}
func (*Geolocation) Schema2JSON ¶
func (p *Geolocation) Schema2JSON(orgunit string) ([]byte, error)
type GeolocationSettingEnum ¶
type GeolocationSettingEnum int
const ( GEOLOCATIONSETTINGENUM_GEOLOCATION_SETTING_ENUM_ALLOW_GEOLOCATION GeolocationSettingEnum = iota // 0 GEOLOCATIONSETTINGENUM_GEOLOCATION_SETTING_ENUM_BLOCK_GEOLOCATION // 1 GEOLOCATIONSETTINGENUM_GEOLOCATION_SETTING_ENUM_ASK_GEOLOCATION // 2 GEOLOCATIONSETTINGENUM_GEOLOCATION_SETTING_ENUM_USER_CHOICE // 3 )
type IdleSettings ¶
type IdleSettings struct { IdleTimeoutMinutes string `json:"idleTimeoutMinutes"` ActionOnDeviceIdle ActionOnDeviceIdleEnum `json:"actionOnDeviceIdle"` ActionOnLidClose ActionOnLidCloseEnum `json:"actionOnLidClose"` LockOnSleep NullableBoolean `json:"lockOnSleep"` }
func (*IdleSettings) Schema2JSON ¶
func (p *IdleSettings) Schema2JSON(orgunit string) ([]byte, error)
type IncludeInChromeWebStoreCollectionMGS ¶
type IncludeInChromeWebStoreCollectionMGS struct {
IncludeInCollection bool `json:"includeInCollection"`
}
func (*IncludeInChromeWebStoreCollectionMGS) Schema2JSON ¶
func (p *IncludeInChromeWebStoreCollectionMGS) Schema2JSON(orgunit string) ([]byte, error)
type IncognitoMode ¶
type IncognitoMode struct {
IncognitoModeAvailability IncognitoModeAvailabilityEnum `json:"incognitoModeAvailability"`
}
func (*IncognitoMode) Schema2JSON ¶
func (p *IncognitoMode) Schema2JSON(orgunit string) ([]byte, error)
type IncognitoModeAvailabilityEnum ¶
type IncognitoModeAvailabilityEnum int
const ( INCOGNITOMODEAVAILABILITYENUM_INCOGNITO_MODE_AVAILABILITY_ENUM_AVAILABLE IncognitoModeAvailabilityEnum = iota // 0 INCOGNITOMODEAVAILABILITYENUM_INCOGNITO_MODE_AVAILABILITY_ENUM_UNAVAILABLE // 1 )
type InstallTypeMGS ¶
type InstallTypeMGS struct {
AppInstallType ManagedGuestSessionAppInstallType `json:"appInstallType"`
}
func (*InstallTypeMGS) Schema2JSON ¶
func (p *InstallTypeMGS) Schema2JSON(orgunit string) ([]byte, error)
type InstallationUrlKiosk ¶
type InstallationUrlKiosk struct {
InstallationUrl string `json:"installationUrl"`
}
func (*InstallationUrlKiosk) Schema2JSON ¶
func (p *InstallationUrlKiosk) Schema2JSON(orgunit string) ([]byte, error)
type InstallationUrlMGS ¶
type InstallationUrlMGS struct {
InstallationUrl string `json:"installationUrl"`
}
func (*InstallationUrlMGS) Schema2JSON ¶
func (p *InstallationUrlMGS) Schema2JSON(orgunit string) ([]byte, error)
type KerberosAddAccountsAllowed ¶
type KerberosAddAccountsAllowed struct {
KerberosAddAccountsAllowed bool `json:"kerberosAddAccountsAllowed"`
}
func (*KerberosAddAccountsAllowed) Schema2JSON ¶
func (p *KerberosAddAccountsAllowed) Schema2JSON(orgunit string) ([]byte, error)
type KerberosRememberPasswordEnabled ¶
type KerberosRememberPasswordEnabled struct {
KerberosRememberPasswordEnabled bool `json:"kerberosRememberPasswordEnabled"`
}
func (*KerberosRememberPasswordEnabled) Schema2JSON ¶
func (p *KerberosRememberPasswordEnabled) Schema2JSON(orgunit string) ([]byte, error)
type KerberosServicePrincipalName ¶
type KerberosServicePrincipalName struct {
DisableAuthNegotiateCnameLookup bool `json:"disableAuthNegotiateCnameLookup"`
}
func (*KerberosServicePrincipalName) Schema2JSON ¶
func (p *KerberosServicePrincipalName) Schema2JSON(orgunit string) ([]byte, error)
type KerberosTicketDelegation ¶
type KerberosTicketDelegation struct {
AuthNegotiateDelegateByKdcPolicy bool `json:"authNegotiateDelegateByKdcPolicy"`
}
func (*KerberosTicketDelegation) Schema2JSON ¶
func (p *KerberosTicketDelegation) Schema2JSON(orgunit string) ([]byte, error)
type KerberosTickets ¶
type KerberosTickets struct { KerberosEnabled bool `json:"kerberosEnabled"` KerberosPrincipal string `json:"kerberosPrincipal"` KerberosConfiguration []string `json:"kerberosConfiguration"` KerberosAutoAccountEnabled bool `json:"kerberosAutoAccountEnabled"` KerberosCustomConfigurationEnabled bool `json:"kerberosCustomConfigurationEnabled"` }
func (*KerberosTickets) Schema2JSON ¶
func (p *KerberosTickets) Schema2JSON(orgunit string) ([]byte, error)
type LockScreen ¶
type LockScreen struct {
AllowScreenLock bool `json:"allowScreenLock"`
}
func (*LockScreen) Schema2JSON ¶
func (p *LockScreen) Schema2JSON(orgunit string) ([]byte, error)
type LockScreenMediaPlaybackEnabled ¶
type LockScreenMediaPlaybackEnabled struct {
LockScreenMediaPlaybackEnabled bool `json:"lockScreenMediaPlaybackEnabled"`
}
func (*LockScreenMediaPlaybackEnabled) Schema2JSON ¶
func (p *LockScreenMediaPlaybackEnabled) Schema2JSON(orgunit string) ([]byte, error)
type LoginDisplayPasswordButtonEnabled ¶
type LoginDisplayPasswordButtonEnabled struct {
LoginDisplayPasswordButtonEnabled bool `json:"loginDisplayPasswordButtonEnabled"`
}
func (*LoginDisplayPasswordButtonEnabled) Schema2JSON ¶
func (p *LoginDisplayPasswordButtonEnabled) Schema2JSON(orgunit string) ([]byte, error)
type ManagedConfigurationKiosk ¶
type ManagedConfigurationKiosk struct {
ManagedConfiguration string `json:"managedConfiguration"`
}
func (*ManagedConfigurationKiosk) Schema2JSON ¶
func (p *ManagedConfigurationKiosk) Schema2JSON(orgunit string) ([]byte, error)
type ManagedConfigurationMGS ¶
type ManagedConfigurationMGS struct {
ManagedConfiguration string `json:"managedConfiguration"`
}
func (*ManagedConfigurationMGS) Schema2JSON ¶
func (p *ManagedConfigurationMGS) Schema2JSON(orgunit string) ([]byte, error)
type ManagedGuestSessionAppInstallType ¶
type ManagedGuestSessionAppInstallType int
const ( MANAGEDGUESTSESSIONAPPINSTALLTYPE_NOT_INSTALLED ManagedGuestSessionAppInstallType = iota // 0 MANAGEDGUESTSESSIONAPPINSTALLTYPE_FORCED // 1 MANAGEDGUESTSESSIONAPPINSTALLTYPE_FORCED_AND_PIN_TO_TOOLBAR // 2 )
type MobileManagement ¶
type MobileManagement struct {
EnableMobileChromePolicies bool `json:"enableMobileChromePolicies"`
}
func (*MobileManagement) Schema2JSON ¶
func (p *MobileManagement) Schema2JSON(orgunit string) ([]byte, error)
type NewTapeClientOption ¶
type NewTapeClientOption func(*newTapeClientOption)
NewTapeClientOption is used to configure the TAPE client.
func WithCredsJSON ¶
func WithCredsJSON(jsonData []byte) NewTapeClientOption
WithCredsJSON specifies the json service account data to use.
func WithPathToCredsJSON ¶
func WithPathToCredsJSON(pathToCredsJSON string) NewTapeClientOption
WithPathToCredsJSON specifies the path to a service account file to use.
type NtlmV2Enabled ¶
type NtlmV2Enabled struct {
NtlmV2Enabled bool `json:"ntlmV2Enabled"`
}
func (*NtlmV2Enabled) Schema2JSON ¶
func (p *NtlmV2Enabled) Schema2JSON(orgunit string) ([]byte, error)
type NullableBoolean ¶
type NullableBoolean int
const ( NULLABLEBOOLEAN_UNSET NullableBoolean = iota // 0 NULLABLEBOOLEAN_FALSE // 1 NULLABLEBOOLEAN_TRUE // 2 )
type NullableDuration ¶
type NullableDuration struct {
Duration Duration `json:"duration"`
}
type NullableLong ¶
type NullableLong struct {
Value int64 `json:"value"`
}
type OnlineRevocationChecks ¶
type OnlineRevocationChecks struct {
EnableOnlineRevocationChecks bool `json:"enableOnlineRevocationChecks"`
}
func (*OnlineRevocationChecks) Schema2JSON ¶
func (p *OnlineRevocationChecks) Schema2JSON(orgunit string) ([]byte, error)
type OverrideSecurityRestrictionsOnInsecureOrigin ¶
type OverrideSecurityRestrictionsOnInsecureOrigin struct {
OverrideSecurityRestrictionsOnInsecureOrigin []string `json:"overrideSecurityRestrictionsOnInsecureOrigin"`
}
func (*OverrideSecurityRestrictionsOnInsecureOrigin) Schema2JSON ¶
func (p *OverrideSecurityRestrictionsOnInsecureOrigin) Schema2JSON(orgunit string) ([]byte, error)
type PasswordLeakDetection ¶
type PasswordLeakDetection struct {
PasswordLeakDetection NullableBoolean `json:"passwordLeakDetection"`
}
func (*PasswordLeakDetection) Schema2JSON ¶
func (p *PasswordLeakDetection) Schema2JSON(orgunit string) ([]byte, error)
type PasswordManager ¶
type PasswordManager struct {
PasswordManagerEnabled NullableBoolean `json:"passwordManagerEnabled"`
}
func (*PasswordManager) Schema2JSON ¶
func (p *PasswordManager) Schema2JSON(orgunit string) ([]byte, error)
type PermissionsAndUrlAccessMGS ¶
type PermissionsAndUrlAccessMGS struct { BlockedPermissions []string `json:"blockedPermissions"` AllowedPermissions []string `json:"allowedPermissions"` BlockedHosts []string `json:"blockedHosts"` AllowedHosts []string `json:"allowedHosts"` }
func (*PermissionsAndUrlAccessMGS) Schema2JSON ¶
func (p *PermissionsAndUrlAccessMGS) Schema2JSON(orgunit string) ([]byte, error)
type PinUnlockAutosubmitEnabled ¶
type PinUnlockAutosubmitEnabled struct {
PinUnlockAutosubmitEnabled bool `json:"pinUnlockAutosubmitEnabled"`
}
func (*PinUnlockAutosubmitEnabled) Schema2JSON ¶
func (p *PinUnlockAutosubmitEnabled) Schema2JSON(orgunit string) ([]byte, error)
type PluginsKiosk ¶
type PluginsKiosk struct {
AllowPlugins bool `json:"allowPlugins"`
}
func (*PluginsKiosk) Schema2JSON ¶
func (p *PluginsKiosk) Schema2JSON(orgunit string) ([]byte, error)
type PolicySchema ¶
type PolicySchema interface { // Schema2JSON creates the JSON representation of the PolicySchema used in a setPolicy call on the TAPE server. Schema2JSON(string) ([]byte, error) }
PolicySchema is an interface for a more specific policy schema. All the concrete policy schemas in this package must implement this interface.
type PowerManagementKiosk ¶
type PowerManagementKiosk struct {
AllowPowerManagement bool `json:"allowPowerManagement"`
}
func (*PowerManagementKiosk) Schema2JSON ¶
func (p *PowerManagementKiosk) Schema2JSON(orgunit string) ([]byte, error)
type ProxyModeEnum ¶
type ProxyModeEnum int
const ( PROXYMODEENUM_PROXY_MODE_ENUM_USER_CONFIGURED ProxyModeEnum = iota // 0 PROXYMODEENUM_PROXY_MODE_ENUM_DIRECT // 1 PROXYMODEENUM_PROXY_MODE_ENUM_AUTO_DETECT // 2 PROXYMODEENUM_PROXY_MODE_ENUM_FIXED_SERVERS // 3 PROXYMODEENUM_PROXY_MODE_ENUM_PAC_SCRIPT // 4 )
type QuicProtocol ¶
type QuicProtocol struct {
QuicAllowed bool `json:"quicAllowed"`
}
func (*QuicProtocol) Schema2JSON ¶
func (p *QuicProtocol) Schema2JSON(orgunit string) ([]byte, error)
type QuickUnlockModeAllowlist ¶
type QuickUnlockModeAllowlist struct {
QuickUnlockModeAllowlist []string `json:"quickUnlockModeAllowlist"`
}
func (*QuickUnlockModeAllowlist) Schema2JSON ¶
func (p *QuickUnlockModeAllowlist) Schema2JSON(orgunit string) ([]byte, error)
type RemoteAccessHostClientDomainList ¶
type RemoteAccessHostClientDomainList struct {
RemoteAccessHostClientDomainList []string `json:"remoteAccessHostClientDomainList"`
}
func (*RemoteAccessHostClientDomainList) Schema2JSON ¶
func (p *RemoteAccessHostClientDomainList) Schema2JSON(orgunit string) ([]byte, error)
type RemoteAccessHostDomainList ¶
type RemoteAccessHostDomainList struct {
RemoteAccessHostDomainList []string `json:"remoteAccessHostDomainList"`
}
func (*RemoteAccessHostDomainList) Schema2JSON ¶
func (p *RemoteAccessHostDomainList) Schema2JSON(orgunit string) ([]byte, error)
type RemoteAccessHostFirewallTraversal ¶
type RemoteAccessHostFirewallTraversal struct { RemoteAccessHostFirewallTraversal bool `json:"remoteAccessHostFirewallTraversal"` RemoteAccessHostAllowRelayedConnection bool `json:"remoteAccessHostAllowRelayedConnection"` RemoteAccessHostUdpPortRange string `json:"remoteAccessHostUdpPortRange"` }
func (*RemoteAccessHostFirewallTraversal) Schema2JSON ¶
func (p *RemoteAccessHostFirewallTraversal) Schema2JSON(orgunit string) ([]byte, error)
type RemoteDebuggingAllowed ¶
type RemoteDebuggingAllowed struct {
RemoteDebuggingAllowed bool `json:"remoteDebuggingAllowed"`
}
func (*RemoteDebuggingAllowed) Schema2JSON ¶
func (p *RemoteDebuggingAllowed) Schema2JSON(orgunit string) ([]byte, error)
type RendererCodeIntegrityEnabled ¶
type RendererCodeIntegrityEnabled struct {
RendererCodeIntegrityEnabled bool `json:"rendererCodeIntegrityEnabled"`
}
func (*RendererCodeIntegrityEnabled) Schema2JSON ¶
func (p *RendererCodeIntegrityEnabled) Schema2JSON(orgunit string) ([]byte, error)
type RequestGenericAccountParams ¶
type RequestGenericAccountParams struct { TimeoutInSeconds int32 `json:"timeout"` PoolID *string `json:"pool_id"` }
RequestGenericAccountParams holds the parameters for the request generic account endpoint.
type RestrictSigninToPattern ¶
type RestrictSigninToPattern struct {
RestrictSigninToPattern string `json:"restrictSigninToPattern"`
}
func (*RestrictSigninToPattern) Schema2JSON ¶
func (p *RestrictSigninToPattern) Schema2JSON(orgunit string) ([]byte, error)
type SSLVersionMinEnum ¶
type SSLVersionMinEnum int
const ( SSLVERSIONMINENUM_SSL_VERSION_MIN_ENUM_TL_SV_1 SSLVersionMinEnum = iota // 0 SSLVERSIONMINENUM_SSL_VERSION_MIN_ENUM_TL_SV_1_1 // 1 SSLVERSIONMINENUM_SSL_VERSION_MIN_ENUM_TL_SV_1_2 // 2 SSLVERSIONMINENUM_SSL_VERSION_MIN_ENUM_SSL_V_3 // 3 )
type SamlLockScreenOfflineSigninTimeLimitDays ¶
type SamlLockScreenOfflineSigninTimeLimitDays struct {
SamlLockScreenOfflineSigninTimeLimitDays NullableLong `json:"samlLockScreenOfflineSigninTimeLimitDays"`
}
func (*SamlLockScreenOfflineSigninTimeLimitDays) Schema2JSON ¶
func (p *SamlLockScreenOfflineSigninTimeLimitDays) Schema2JSON(orgunit string) ([]byte, error)
type SamlSigninTimeLimitEnum ¶
type SamlSigninTimeLimitEnum int
const ( SAMLSIGNINTIMELIMITENUM_SAML_SIGNIN_TIME_LIMIT_ENUM_SAML_ONE_DAY SamlSigninTimeLimitEnum = iota // 0 SAMLSIGNINTIMELIMITENUM_SAML_SIGNIN_TIME_LIMIT_ENUM_SAML_THREE_DAYS // 1 SAMLSIGNINTIMELIMITENUM_SAML_SIGNIN_TIME_LIMIT_ENUM_SAML_ONE_WEEK // 2 SAMLSIGNINTIMELIMITENUM_SAML_SIGNIN_TIME_LIMIT_ENUM_SAML_TWO_WEEKS // 3 SAMLSIGNINTIMELIMITENUM_SAML_SIGNIN_TIME_LIMIT_ENUM_SAML_THREE_WEEKS // 4 SAMLSIGNINTIMELIMITENUM_SAML_SIGNIN_TIME_LIMIT_ENUM_SAML_FOUR_WEEKS // 5 SAMLSIGNINTIMELIMITENUM_SAML_SIGNIN_TIME_LIMIT_ENUM_EVERY_TIME // 6 SAMLSIGNINTIMELIMITENUM_SAML_SIGNIN_TIME_LIMIT_ENUM_SAML_NEVER // 7 )
type SchedulerConfigurationEnum ¶
type SchedulerConfigurationEnum int
const ( SCHEDULERCONFIGURATIONENUM_SCHEDULER_CONFIGURATION_ENUM_USER_CHOICE SchedulerConfigurationEnum = iota // 0 SCHEDULERCONFIGURATIONENUM_SCHEDULER_CONFIGURATION_ENUM_CONSERVATIVE // 1 SCHEDULERCONFIGURATIONENUM_SCHEDULER_CONFIGURATION_ENUM_PERFORMANCE // 2 )
type SecurityTokenSessionBehaviorEnum ¶
type SecurityTokenSessionBehaviorEnum int
const ( SECURITYTOKENSESSIONBEHAVIORENUM_SECURITY_TOKEN_SESSION_BEHAVIOR_ENUM_IGNORE SecurityTokenSessionBehaviorEnum = iota // 0 SECURITYTOKENSESSIONBEHAVIORENUM_SECURITY_TOKEN_SESSION_BEHAVIOR_ENUM_LOGOUT // 1 SECURITYTOKENSESSIONBEHAVIORENUM_SECURITY_TOKEN_SESSION_BEHAVIOR_ENUM_LOCK // 2 )
type SecurityTokenSessionSettings ¶
type SecurityTokenSessionSettings struct { SecurityTokenSessionBehavior SecurityTokenSessionBehaviorEnum `json:"securityTokenSessionBehavior"` SecurityTokenSessionNotificationSeconds NullableDuration `json:"securityTokenSessionNotificationSeconds"` }
func (*SecurityTokenSessionSettings) Schema2JSON ¶
func (p *SecurityTokenSessionSettings) Schema2JSON(orgunit string) ([]byte, error)
type SessionLength ¶
type SessionLength struct {
SessionDurationLimit NullableDuration `json:"sessionDurationLimit"`
}
func (*SessionLength) Schema2JSON ¶
func (p *SessionLength) Schema2JSON(orgunit string) ([]byte, error)
type ShowLogoutButton ¶
type ShowLogoutButton struct {
ShowLogoutButtonInTray bool `json:"showLogoutButtonInTray"`
}
func (*ShowLogoutButton) Schema2JSON ¶
func (p *ShowLogoutButton) Schema2JSON(orgunit string) ([]byte, error)
type SigninInterceptionEnabled ¶
type SigninInterceptionEnabled struct {
SigninInterceptionEnabled bool `json:"signinInterceptionEnabled"`
}
func (*SigninInterceptionEnabled) Schema2JSON ¶
func (p *SigninInterceptionEnabled) Schema2JSON(orgunit string) ([]byte, error)
type SimpleProxySettings ¶
type SimpleProxySettings struct { SimpleProxyMode ProxyModeEnum `json:"simpleProxyMode"` SimpleProxyServerUrl string `json:"simpleProxyServerUrl"` SimpleProxyPacUrl string `json:"simpleProxyPacUrl"` ProxyBypassList []string `json:"proxyBypassList"` }
func (*SimpleProxySettings) Schema2JSON ¶
func (p *SimpleProxySettings) Schema2JSON(orgunit string) ([]byte, error)
type SingleSignOn ¶
type SingleSignOn struct {
IdpRedirectEnabled bool `json:"idpRedirectEnabled"`
}
func (*SingleSignOn) Schema2JSON ¶
func (p *SingleSignOn) Schema2JSON(orgunit string) ([]byte, error)
type SingleSignOnLoginFrequency ¶
type SingleSignOnLoginFrequency struct {
SamlOfflineSigninTimeLimit SamlSigninTimeLimitEnum `json:"samlOfflineSigninTimeLimit"`
}
func (*SingleSignOnLoginFrequency) Schema2JSON ¶
func (p *SingleSignOnLoginFrequency) Schema2JSON(orgunit string) ([]byte, error)
type SiteIsolationAndroid ¶
type SiteIsolationAndroid struct { SitePerProcessAndroid NullableBoolean `json:"sitePerProcessAndroid"` IsolateOriginsAndroid []string `json:"isolateOriginsAndroid"` }
func (*SiteIsolationAndroid) Schema2JSON ¶
func (p *SiteIsolationAndroid) Schema2JSON(orgunit string) ([]byte, error)
type SiteIsolationBrowser ¶
type SiteIsolationBrowser struct { IsolateOrigins []string `json:"isolateOrigins"` SitePerProcess bool `json:"sitePerProcess"` }
func (*SiteIsolationBrowser) Schema2JSON ¶
func (p *SiteIsolationBrowser) Schema2JSON(orgunit string) ([]byte, error)
type SkipPrintConfirmationMGS ¶
type SkipPrintConfirmationMGS struct {
SkipPrintConfirmation bool `json:"skipPrintConfirmation"`
}
func (*SkipPrintConfirmationMGS) Schema2JSON ¶
func (p *SkipPrintConfirmationMGS) Schema2JSON(orgunit string) ([]byte, error)
type SslErrorOverrideAllowed ¶
type SslErrorOverrideAllowed struct {
SslErrorOverrideAllowed bool `json:"sslErrorOverrideAllowed"`
}
func (*SslErrorOverrideAllowed) Schema2JSON ¶
func (p *SslErrorOverrideAllowed) Schema2JSON(orgunit string) ([]byte, error)
type SslErrorOverrideAllowedForOrigins ¶
type SslErrorOverrideAllowedForOrigins struct {
SslErrorOverrideAllowedForOrigins []string `json:"sslErrorOverrideAllowedForOrigins"`
}
func (*SslErrorOverrideAllowedForOrigins) Schema2JSON ¶
func (p *SslErrorOverrideAllowedForOrigins) Schema2JSON(orgunit string) ([]byte, error)
type SslVersionMin ¶
type SslVersionMin struct {
SslVersionMin SSLVersionMinEnum `json:"sslVersionMin"`
}
func (*SslVersionMin) Schema2JSON ¶
func (p *SslVersionMin) Schema2JSON(orgunit string) ([]byte, error)
type SuppressUnsupportedOsWarning ¶
type SuppressUnsupportedOsWarning struct {
SuppressUnsupportedOsWarning bool `json:"suppressUnsupportedOsWarning"`
}
func (*SuppressUnsupportedOsWarning) Schema2JSON ¶
func (p *SuppressUnsupportedOsWarning) Schema2JSON(orgunit string) ([]byte, error)
type TargetBlankImpliesNoOpener ¶
type TargetBlankImpliesNoOpener struct {
TargetBlankImpliesNoOpener bool `json:"targetBlankImpliesNoOpener"`
}
func (*TargetBlankImpliesNoOpener) Schema2JSON ¶
func (p *TargetBlankImpliesNoOpener) Schema2JSON(orgunit string) ([]byte, error)
type TaskManager ¶
type TaskManager struct {
TaskManagerEndProcessEnabled bool `json:"taskManagerEndProcessEnabled"`
}
func (*TaskManager) Schema2JSON ¶
func (p *TaskManager) Schema2JSON(orgunit string) ([]byte, error)
type ThirdPartyBlockingEnabled ¶
type ThirdPartyBlockingEnabled struct {
ThirdPartyBlockingEnabled bool `json:"thirdPartyBlockingEnabled"`
}
func (*ThirdPartyBlockingEnabled) Schema2JSON ¶
func (p *ThirdPartyBlockingEnabled) Schema2JSON(orgunit string) ([]byte, error)
type TripleDesEnabled ¶
type TripleDesEnabled struct {
TripleDesEnabled NullableBoolean `json:"tripleDesEnabled"`
}
func (*TripleDesEnabled) Schema2JSON ¶
func (p *TripleDesEnabled) Schema2JSON(orgunit string) ([]byte, error)
type UnifiedDesktopKiosk ¶
type UnifiedDesktopKiosk struct {
EnableUnifiedDesktop bool `json:"enableUnifiedDesktop"`
}
func (*UnifiedDesktopKiosk) Schema2JSON ¶
func (p *UnifiedDesktopKiosk) Schema2JSON(orgunit string) ([]byte, error)
type UploadedFile ¶
type UploadedFile struct {
DownloadUri string `json:"downloadUri"`
}
type VirtualKeyboardKiosk ¶
type VirtualKeyboardKiosk struct {
AllowVirtualKeyboard bool `json:"allowVirtualKeyboard"`
}
func (*VirtualKeyboardKiosk) Schema2JSON ¶
func (p *VirtualKeyboardKiosk) Schema2JSON(orgunit string) ([]byte, error)
type Wallpaper ¶
type Wallpaper struct {
WallpaperImage UploadedFile `json:"wallpaperImage"`
}
type WebRtcIPHandlingEnum ¶
type WebRtcIPHandlingEnum int
const ( WEBRTCIPHANDLINGENUM_WEB_RTC_IP_HANDLING_ENUM_DEFAULT WebRtcIPHandlingEnum = iota // 0 WEBRTCIPHANDLINGENUM_WEB_RTC_IP_HANDLING_ENUM_DEFAULT_PUBLIC_AND_PRIVATE_INTERFACES // 1 WEBRTCIPHANDLINGENUM_WEB_RTC_IP_HANDLING_ENUM_DEFAULT_PUBLIC_INTERFACE_ONLY // 2 WEBRTCIPHANDLINGENUM_WEB_RTC_IP_HANDLING_ENUM_DISABLE_NON_PROXIED_UDP // 3 )
type WebRtcIpHandling ¶
type WebRtcIpHandling struct {
WebRtcIpHandling WebRtcIPHandlingEnum `json:"webRtcIpHandling"`
}
func (*WebRtcIpHandling) Schema2JSON ¶
func (p *WebRtcIpHandling) Schema2JSON(orgunit string) ([]byte, error)
type WebRtcLocalIpsAllowedUrls ¶
type WebRtcLocalIpsAllowedUrls struct {
WebRtcLocalIpsAllowedUrls []string `json:"webRtcLocalIpsAllowedUrls"`
}
func (*WebRtcLocalIpsAllowedUrls) Schema2JSON ¶
func (p *WebRtcLocalIpsAllowedUrls) Schema2JSON(orgunit string) ([]byte, error)
type WebRtcUdpPortRange ¶
type WebRtcUdpPortRange struct { WebRtcUdpPortsEnabled bool `json:"webRtcUdpPortsEnabled"` WebRtcUdpPortsMin int64 `json:"webRtcUdpPortsMin"` WebRtcUdpPortsMax int64 `json:"webRtcUdpPortsMax"` }
func (*WebRtcUdpPortRange) Schema2JSON ¶
func (p *WebRtcUdpPortRange) Schema2JSON(orgunit string) ([]byte, error)