tape

package
v0.0.0-...-683b059 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: BSD-3-Clause Imports: 18 Imported by: 0

README

Using TAPE for Generic Accounts

In order to use TAPE for generic accounts, the following steps must be performed:

  1. Determine a Pool ID that the accounts will be grouped under. This can be based on the game, or application name (i.e. Roblox).
  2. Get a list of accounts (with usernames, and passwords) that should be leased.
  3. Add the accounts to the tast-tests-private/vars folder using the list format, i.e.
test.<pool_id>Creds: |-
  username1:password1
  username2:password2
  ...
  1. Import the accounts into the TAPE Google Cloud project under the generic_account Kind in Datastore. Make sure to use the <pool_id> that was defined in (1).
  2. Register a new Remote fixture in the RemoteFixtures function of this package. The fixture should be named Remote<pool_id>LeasedAccountFixture. Note that the lease time must be enough to account for all tests that require the credentials. I.e. if there are two tests with timeouts of 15 minutes, and 30 minutes, the time provided in the remote fixture should be 45 minutes.
  3. In the tests that require the remote fixtures, update their fixture to define a Parent: which matches the name of the registered fixture from (5).
  4. In the tests which require the credentials, load the defined variables from ( 3) and call tape.LeasedAccount. This will find the leased account in the list of provided credentials. The returned username, and password and guaranteed to be only in use by the current test.

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

View Source
const (
	// RemoteComRobloxClientLeasedAccountFixture is a remote fixture which is used for Roblox testing.
	RemoteComRobloxClientLeasedAccountFixture = "tapeRemoteComRobloxClientLeasedAccountFixture"

	// RobloxTestPoolID is the name of the pool id associated with Roblox accounts.
	RobloxTestPoolID = "com.roblox.client"

	// RobloxLeaseTimeForAllTestsInSeconds is the amount of time needed for all Roblox tests.
	RobloxLeaseTimeForAllTestsInSeconds = 60 * 60 * 1 // 1 hour.

)
View Source
const MaxGenericAccountTimeoutInSeconds = 60 * 60 * 2

MaxGenericAccountTimeoutInSeconds is the maximum timeout which is allowed when requesting a generic account (2 hours).

View Source
const MaxTimeout = 172800 * time.Second

MaxTimeout is the maximum timeout which is allowed when requesting a test account.

View Source
const TokenDir = "/tmp/tokensource"

TokenDir is the location where the access token for tape is stored.

View Source
const TokenFile = "tokensource.json"

TokenFile is the file where the access token for tape is stored.

Variables

This section is empty.

Functions

func CreateTokenSource

func CreateTokenSource(ctx context.Context, serviceAccountFile string) (oauth2.TokenSource, error)

CreateTokenSource an oauth2.TokenSource from a service account key file.

func Deprovision

func Deprovision(ctx context.Context, request DeprovisionRequest, client *http.Client) error

Deprovision calls TAPE to deprovision a device in DPanel.

func LeasedAccount

func LeasedAccount(creds, poolID string) (username, password string, err error)

LeasedAccount returns the username and password of a leased account. When an account is leased, the username is written to a location on the DUT. This function reads that username, matches it with the credentials, which are structured as a list and stored in tast-tests-private, and returns the corresponding username and password. This prevents passwords from being leaked on the DUT.

func LocalDUTAccountFileLocation

func LocalDUTAccountFileLocation(poolID string) string

LocalDUTAccountFileLocation returns the location on the DUT that the account file will be written to. This is unique per poolID i.e. poolID=`roblox` will always return the same path location, which is required since both local, and remote function calls rely on a consistent path.

func NewRemoteLeasedAccountFixture

func NewRemoteLeasedAccountFixture(poolID string, timeoutInSeconds int32) testing.FixtureImpl

NewRemoteLeasedAccountFixture returns the fixture implementation for a remote fixture which is associated with a pool.

func NewTapeClient

func NewTapeClient(ctx context.Context, serviceAccountFile string) (*http.Client, error)

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 NewTapeClientLocal

func NewTapeClientLocal(ctx context.Context) (*http.Client, error)

NewTapeClientLocal creates a http client which provides the necessary token to connect to the TAPE GCP from a token string. This function can be used locally on a DuT and requires an oauth token to be present at TokenDir/TokenFile. All functions in the tape package should be passed this http client.

func ReleaseGenericAccount

func ReleaseGenericAccount(ctx context.Context, account *GenericAccount, client *http.Client) error

ReleaseGenericAccount sends a request for releasing a leased account.

func RemoteFixtures

func RemoteFixtures() []*testing.Fixture

RemoteFixtures is a convenience method which holds all remote fixtures for TAPE. They will all be automatically registered. Note that no two remote fixtures should define the same PoolID. This is a requirement of the current implementation.

func TokenString

func TokenString(ctx context.Context, serviceAccountFile string) (string, error)

TokenString creates a json string from an oauth.Token generated for a serviceAccount which can be used for http connections to the TAPE GCP.

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

func (acc *Account) CleanUp(ctx context.Context, client *http.Client) error

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

func (acc *Account) RegeneratePassword(ctx context.Context, client *http.Client) error

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

func (acc *Account) ReleaseAccount(ctx context.Context, client *http.Client) error

ReleaseAccount calls TAPE to release the Account so it becomes available again.

func (*Account) SetPolicy

func (acc *Account) SetPolicy(ctx context.Context, policySchema PolicySchema, client *http.Client) error

SetPolicy calls TAPE to set policySchema in DPanel.

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"`
}

func (*Avatar) Schema2JSON

func (p *Avatar) Schema2JSON(orgunit string) ([]byte, error)

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

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 Duration

type Duration struct {
	Seconds int64 `json:"seconds"`
	Nanos   int   `json:"nanos"`
}

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 LeasedAccountFileData

type LeasedAccountFileData struct {
	Username string `json:"username"`
}

LeasedAccountFileData holds the data to identify the leased account. This information is stored on the local DUT.

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 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 Rotation

type Rotation int
const (
	ROTATION_ROTATE_0   Rotation = iota // 0
	ROTATION_ROTATE_90                  // 1
	ROTATION_ROTATE_180                 // 2
	ROTATION_ROTATE_270                 // 3
)

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"`
}

func (*Wallpaper) Schema2JSON

func (p *Wallpaper) Schema2JSON(orgunit string) ([]byte, error)

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)

Jump to

Keyboard shortcuts

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