Movatterモバイル変換


[0]ホーム

URL:


androidenterprise

package
v0.257.0Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2025 License:BSD-3-ClauseImports:18Imported by:0

Details

Repository

github.com/googleapis/google-api-go-client

Links

Documentation

Overview

Package androidenterprise provides access to the Google Play EMM API.

For product documentation, see:https://developers.google.com/android/work/play/emm-api

Library status

These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.

When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.

Creating a client

Usage example:

import "google.golang.org/api/androidenterprise/v1"...ctx := context.Background()androidenterpriseService, err := androidenterprise.NewService(ctx)

In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.

Other authentication options

To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:

androidenterpriseService, err := androidenterprise.NewService(ctx, option.WithAPIKey("AIza..."))

To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:

config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)androidenterpriseService, err := androidenterprise.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))

Seegoogle.golang.org/api/option.ClientOption for details on options.

Index

Constants

View Source
const (// Manage corporate Android devicesAndroidenterpriseScope = "https://www.googleapis.com/auth/androidenterprise")

OAuth2 scopes used by this API.

Variables

This section is empty.

Functions

This section is empty.

Types

typeAdministrator

type Administrator struct {// Email: The admin's email address.Emailstring `json:"email,omitempty"`// ForceSendFields is a list of field names (e.g. "Email") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Email") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Administrator: This represents an enterprise admin who can manage theenterprise in the managed Google Play store.

func (Administrator)MarshalJSON

func (sAdministrator) MarshalJSON() ([]byte,error)

typeAdministratorWebToken

type AdministratorWebToken struct {// Token: An opaque token to be passed to the Play front-end to generate an// iframe.Tokenstring `json:"token,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Token") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Token") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AdministratorWebToken: A token authorizing an admin to access an iframe.

func (AdministratorWebToken)MarshalJSON

func (sAdministratorWebToken) MarshalJSON() ([]byte,error)

typeAdministratorWebTokenSpec

type AdministratorWebTokenSpec struct {// ManagedConfigurations: Options for displaying the Managed Configuration// page.ManagedConfigurations *AdministratorWebTokenSpecManagedConfigurations `json:"managedConfigurations,omitempty"`// Parent: The URI of the parent frame hosting the iframe. To prevent XSS, the// iframe may not be hosted at other URIs. This URI must be https. Use// whitespaces to separate multiple parent URIs.Parentstring `json:"parent,omitempty"`// Permission: Deprecated. Use PlaySearch.approveApps.//// Possible values://   "unknown" - Unknown permission.//   "approveApps" - Permission to approve and unapprove apps.//   "manageMcm" - Permission to manage app restrictions.Permission []string `json:"permission,omitempty"`// PlaySearch: Options for displaying the managed Play Search apps page.PlaySearch *AdministratorWebTokenSpecPlaySearch `json:"playSearch,omitempty"`// PrivateApps: Options for displaying the Private Apps page.PrivateApps *AdministratorWebTokenSpecPrivateApps `json:"privateApps,omitempty"`// StoreBuilder: Options for displaying the Organize apps page.StoreBuilder *AdministratorWebTokenSpecStoreBuilder `json:"storeBuilder,omitempty"`// WebApps: Options for displaying the Web Apps page.WebApps *AdministratorWebTokenSpecWebApps `json:"webApps,omitempty"`// ZeroTouch: Options for displaying the Zero Touch page.ZeroTouch *AdministratorWebTokenSpecZeroTouch `json:"zeroTouch,omitempty"`// ForceSendFields is a list of field names (e.g. "ManagedConfigurations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ManagedConfigurations") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AdministratorWebTokenSpec: Specification for a token used to generateiframes. The token specifies what data the admin is allowed to modify andthe URI the iframe is allowed to communiate with.

func (AdministratorWebTokenSpec)MarshalJSON

func (sAdministratorWebTokenSpec) MarshalJSON() ([]byte,error)

typeAdministratorWebTokenSpecManagedConfigurationsadded inv0.2.0

type AdministratorWebTokenSpecManagedConfigurations struct {// Enabled: Whether the Managed Configuration page is displayed. Default is// true.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (AdministratorWebTokenSpecManagedConfigurations)MarshalJSONadded inv0.2.0

typeAdministratorWebTokenSpecPlaySearch

type AdministratorWebTokenSpecPlaySearch struct {// ApproveApps: Allow access to the iframe in approve mode. Default is false.ApproveAppsbool `json:"approveApps,omitempty"`// Enabled: Whether the managed Play Search apps page is displayed. Default is// true.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "ApproveApps") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApproveApps") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (AdministratorWebTokenSpecPlaySearch)MarshalJSON

typeAdministratorWebTokenSpecPrivateApps

type AdministratorWebTokenSpecPrivateApps struct {// Enabled: Whether the Private Apps page is displayed. Default is true.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (AdministratorWebTokenSpecPrivateApps)MarshalJSON

typeAdministratorWebTokenSpecStoreBuilder

type AdministratorWebTokenSpecStoreBuilder struct {// Enabled: Whether the Organize apps page is displayed. Default is true.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (AdministratorWebTokenSpecStoreBuilder)MarshalJSON

typeAdministratorWebTokenSpecWebApps

type AdministratorWebTokenSpecWebApps struct {// Enabled: Whether the Web Apps page is displayed. Default is true.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (AdministratorWebTokenSpecWebApps)MarshalJSON

func (sAdministratorWebTokenSpecWebApps) MarshalJSON() ([]byte,error)

typeAdministratorWebTokenSpecZeroTouchadded inv0.46.0

type AdministratorWebTokenSpecZeroTouch struct {// Enabled: Whether zero-touch embedded UI is usable with this token. If// enabled, the admin can link zero-touch customers to this enterprise.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (AdministratorWebTokenSpecZeroTouch)MarshalJSONadded inv0.46.0

typeAppRestrictionsSchema

type AppRestrictionsSchema struct {// Kind: Deprecated.Kindstring `json:"kind,omitempty"`// Restrictions: The set of restrictions that make up this schema.Restrictions []*AppRestrictionsSchemaRestriction `json:"restrictions,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AppRestrictionsSchema: Represents the list of app restrictions available tobe pre-configured for the product.

func (AppRestrictionsSchema)MarshalJSON

func (sAppRestrictionsSchema) MarshalJSON() ([]byte,error)

typeAppRestrictionsSchemaChangeEvent

type AppRestrictionsSchemaChangeEvent struct {// ProductId: The id of the product (e.g. "app:com.google.android.gm") for// which the app restriction schema changed. This field will always be present.ProductIdstring `json:"productId,omitempty"`// ForceSendFields is a list of field names (e.g. "ProductId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ProductId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AppRestrictionsSchemaChangeEvent: An event generated when a new app versionis uploaded to Google Play and its app restrictions schema changed. To fetchthe app restrictions schema for an app, useProducts.getAppRestrictionsSchema on the EMM API.

func (AppRestrictionsSchemaChangeEvent)MarshalJSON

func (sAppRestrictionsSchemaChangeEvent) MarshalJSON() ([]byte,error)

typeAppRestrictionsSchemaRestriction

type AppRestrictionsSchemaRestriction struct {// DefaultValue: The default value of the restriction. bundle and bundleArray// restrictions never have a default value.DefaultValue *AppRestrictionsSchemaRestrictionRestrictionValue `json:"defaultValue,omitempty"`// Description: A longer description of the restriction, giving more detail of// what it affects.Descriptionstring `json:"description,omitempty"`// Entry: For choice or multiselect restrictions, the list of possible entries'// human-readable names.Entry []string `json:"entry,omitempty"`// EntryValue: For choice or multiselect restrictions, the list of possible// entries' machine-readable values. These values should be used in the// configuration, either as a single string value for a choice restriction or// in a stringArray for a multiselect restriction.EntryValue []string `json:"entryValue,omitempty"`// Key: The unique key that the product uses to identify the restriction, e.g.// "com.google.android.gm.fieldname".Keystring `json:"key,omitempty"`// NestedRestriction: For bundle or bundleArray restrictions, the list of// nested restrictions. A bundle restriction is always nested within a// bundleArray restriction, and a bundleArray restriction is at most two levels// deep.NestedRestriction []*AppRestrictionsSchemaRestriction `json:"nestedRestriction,omitempty"`// RestrictionType: The type of the restriction.//// Possible values://   "bool" - A restriction of boolean type.//   "string" - A restriction of string type.//   "integer" - A restriction of integer type.//   "choice" - A choice of one item from a set.//   "multiselect" - A choice of multiple items from a set.//   "hidden" - A hidden restriction of string type (the default value can be// used to pass along information that cannot be modified, such as a version// code).//   "bundle" - [M+ devices only] A bundle of restrictions//   "bundleArray" - [M+ devices only] An array of restriction bundlesRestrictionTypestring `json:"restrictionType,omitempty"`// Title: The name of the restriction.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "DefaultValue") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DefaultValue") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AppRestrictionsSchemaRestriction: A restriction in the App RestrictionSchema represents a piece of configuration that may be pre-applied.

func (AppRestrictionsSchemaRestriction)MarshalJSON

func (sAppRestrictionsSchemaRestriction) MarshalJSON() ([]byte,error)

typeAppRestrictionsSchemaRestrictionRestrictionValue

type AppRestrictionsSchemaRestrictionRestrictionValue struct {// Type: The type of the value being provided.//// Possible values://   "bool" - A restriction of boolean type.//   "string" - A restriction of string type.//   "integer" - A restriction of integer type.//   "choice" - A choice of one item from a set.//   "multiselect" - A choice of multiple items from a set.//   "hidden" - A hidden restriction of string type (the default value can be// used to pass along information that cannot be modified, such as a version// code).//   "bundle" - [M+ devices only] A bundle of restrictions//   "bundleArray" - [M+ devices only] An array of restriction bundlesTypestring `json:"type,omitempty"`// ValueBool: The boolean value - this will only be present if type is bool.ValueBoolbool `json:"valueBool,omitempty"`// ValueInteger: The integer value - this will only be present if type is// integer.ValueIntegerint64 `json:"valueInteger,omitempty"`// ValueMultiselect: The list of string values - this will only be present if// type is multiselect.ValueMultiselect []string `json:"valueMultiselect,omitempty"`// ValueString: The string value - this will be present for types string,// choice and hidden.ValueStringstring `json:"valueString,omitempty"`// ForceSendFields is a list of field names (e.g. "Type") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Type") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AppRestrictionsSchemaRestrictionRestrictionValue: A typed value for therestriction.

func (AppRestrictionsSchemaRestrictionRestrictionValue)MarshalJSON

typeAppStateadded inv0.7.0

type AppState struct {// KeyedAppState: List of keyed app states. This field will always be present.KeyedAppState []*KeyedAppState `json:"keyedAppState,omitempty"`// PackageName: The package name of the app. This field will always be present.PackageNamestring `json:"packageName,omitempty"`// ForceSendFields is a list of field names (e.g. "KeyedAppState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "KeyedAppState") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AppState: List of states set by the app.

func (AppState)MarshalJSONadded inv0.7.0

func (sAppState) MarshalJSON() ([]byte,error)

typeAppUpdateEvent

type AppUpdateEvent struct {// ProductId: The id of the product (e.g. "app:com.google.android.gm") that was// updated. This field will always be present.ProductIdstring `json:"productId,omitempty"`// ForceSendFields is a list of field names (e.g. "ProductId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ProductId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AppUpdateEvent: An event generated when a new version of an app is uploadedto Google Play. Notifications are sent for new public versions only: alpha,beta, or canary versions do not generate this event. To fetch up-to-dateversion history for an app, use Products.Get on the EMM API.

func (AppUpdateEvent)MarshalJSON

func (sAppUpdateEvent) MarshalJSON() ([]byte,error)

typeAppVersion

type AppVersion struct {// IsProduction: True if this version is a production APK.IsProductionbool `json:"isProduction,omitempty"`// TargetSdkVersion: The SDK version this app targets, as specified in the// manifest of the APK. See//http://developer.android.com/guide/topics/manifest/uses-sdk-element.htmlTargetSdkVersionint64 `json:"targetSdkVersion,omitempty"`// Track: Deprecated, use trackId instead.//// Possible values://   "appTrackUnspecified"//   "production"//   "beta"//   "alpha"Trackstring `json:"track,omitempty"`// TrackId: Track ids that the app version is published in. Replaces the track// field (deprecated), but doesn't include the production track (see// isProduction instead).TrackId []string `json:"trackId,omitempty"`// VersionCode: Unique increasing identifier for the app version.VersionCodeint64 `json:"versionCode,omitempty"`// VersionString: The string used in the Play store by the app developer to// identify the version. The string is not necessarily unique or localized (for// example, the string could be "1.4").VersionStringstring `json:"versionString,omitempty"`// ForceSendFields is a list of field names (e.g. "IsProduction") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IsProduction") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AppVersion: This represents a single version of the app.

func (AppVersion)MarshalJSON

func (sAppVersion) MarshalJSON() ([]byte,error)

typeApprovalUrlInfo

type ApprovalUrlInfo struct {// ApprovalUrl: A URL that displays a product's permissions and that can also// be used to approve the product with the Products.approve call.ApprovalUrlstring `json:"approvalUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "ApprovalUrl") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApprovalUrl") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ApprovalUrlInfo: Information on an approval URL.

func (ApprovalUrlInfo)MarshalJSON

func (sApprovalUrlInfo) MarshalJSON() ([]byte,error)

typeAuthenticationToken

type AuthenticationToken struct {// Token: The authentication token to be passed to the device policy client on// the device where it can be used to provision the account for which this// token was generated.Tokenstring `json:"token,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Token") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Token") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AuthenticationToken: An AuthenticationToken is used by the EMM's devicepolicy client on a device to provision the given EMM-managed user on thatdevice.

func (AuthenticationToken)MarshalJSON

func (sAuthenticationToken) MarshalJSON() ([]byte,error)

typeAutoInstallConstraint

type AutoInstallConstraint struct {// ChargingStateConstraint: Charging state constraint.//// Possible values://   "chargingStateConstraintUnspecified"//   "chargingNotRequired" - Device doesn't have to be charging.//   "chargingRequired" - Device has to be charging.ChargingStateConstraintstring `json:"chargingStateConstraint,omitempty"`// DeviceIdleStateConstraint: Device idle state constraint.//// Possible values://   "deviceIdleStateConstraintUnspecified"//   "deviceIdleNotRequired" - Device doesn't have to be idle, app can be// installed while the user is interacting with the device.//   "deviceIdleRequired" - Device has to be idle.DeviceIdleStateConstraintstring `json:"deviceIdleStateConstraint,omitempty"`// NetworkTypeConstraint: Network type constraint.//// Possible values://   "networkTypeConstraintUnspecified"//   "anyNetwork" - Any active networks (Wi-Fi, cellular, etc.).//   "unmeteredNetwork" - Any unmetered network (e.g. Wi-FI).NetworkTypeConstraintstring `json:"networkTypeConstraint,omitempty"`// ForceSendFields is a list of field names (e.g. "ChargingStateConstraint") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChargingStateConstraint") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

AutoInstallConstraint: The auto-install constraint. Defines a set ofrestrictions for installation. At least one of the fields must be set.

func (AutoInstallConstraint)MarshalJSON

func (sAutoInstallConstraint) MarshalJSON() ([]byte,error)

typeAutoInstallPolicy

type AutoInstallPolicy struct {// AutoInstallConstraint: The constraints for auto-installing the app. You can// specify a maximum of one constraint.AutoInstallConstraint []*AutoInstallConstraint `json:"autoInstallConstraint,omitempty"`// AutoInstallMode: The auto-install mode. If unset, defaults to// "doNotAutoInstall". An app is automatically installed regardless of a set// maintenance window.//// Possible values://   "autoInstallModeUnspecified"//   "doNotAutoInstall" - The product is not installed automatically, the user// needs to install it from the Play Store.//   "autoInstallOnce" - The product is automatically installed once, if the// user uninstalls the product it will not be installed again.//   "forceAutoInstall" - The product is automatically installed, if the user// uninstalls the product it will be installed again. On managed devices the// DPC should block uninstall.AutoInstallModestring `json:"autoInstallMode,omitempty"`// AutoInstallPriority: The priority of the install, as an unsigned integer. A// lower number means higher priority.AutoInstallPriorityint64 `json:"autoInstallPriority,omitempty"`// MinimumVersionCode: The minimum version of the app. If a lower version of// the app is installed, then the app will be auto-updated according to the// auto-install constraints, instead of waiting for the regular auto-update.// You can set a minimum version code for at most 20 apps per device.MinimumVersionCodeint64 `json:"minimumVersionCode,omitempty"`// ForceSendFields is a list of field names (e.g. "AutoInstallConstraint") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AutoInstallConstraint") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (AutoInstallPolicy)MarshalJSON

func (sAutoInstallPolicy) MarshalJSON() ([]byte,error)

typeConfigurationVariables

type ConfigurationVariables struct {// McmId: The ID of the managed configurations settings.McmIdstring `json:"mcmId,omitempty"`// VariableSet: The variable set that is attributed to the user.VariableSet []*VariableSet `json:"variableSet,omitempty"`// ForceSendFields is a list of field names (e.g. "McmId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "McmId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ConfigurationVariables: A configuration variables resource contains themanaged configuration settings ID to be applied to a single user, as well asthe variable set that is attributed to the user. The variable set will beused to replace placeholders in the managed configuration settings.

func (ConfigurationVariables)MarshalJSON

func (sConfigurationVariables) MarshalJSON() ([]byte,error)

typeDevice

type Device struct {// AndroidId: The Google Play Services Android ID for the device encoded as a// lowercase hex string. For example, "123456789abcdef0".AndroidIdstring `json:"androidId,omitempty"`// Device: The internal hardware codename of the device. This comes from// android.os.Build.DEVICE. (field named "device" per// logs/wireless/android/android_checkin.proto)Devicestring `json:"device,omitempty"`// LatestBuildFingerprint: The build fingerprint of the device if known.LatestBuildFingerprintstring `json:"latestBuildFingerprint,omitempty"`// Maker: The manufacturer of the device. This comes from// android.os.Build.MANUFACTURER.Makerstring `json:"maker,omitempty"`// ManagementType: Identifies the extent to which the device is controlled by a// managed Google Play EMM in various deployment configurations. Possible// values include: - "managedDevice", a device that has the EMM's device policy// controller (DPC) as the device owner. - "managedProfile", a device that has// a profile managed by the DPC (DPC is profile owner) in addition to a// separate, personal profile that is unavailable to the DPC. - "containerApp",// no longer used (deprecated). - "unmanagedProfile", a device that has been// allowed (by the domain's admin, using the Admin Console to enable the// privilege) to use managed Google Play, but the profile is itself not owned// by a DPC.//// Possible values://   "managedDevice"//   "managedProfile"//   "containerApp"//   "unmanagedProfile"ManagementTypestring `json:"managementType,omitempty"`// Model: The model name of the device. This comes from android.os.Build.MODEL.Modelstring `json:"model,omitempty"`// Policy: The policy enforced on the device.Policy *Policy `json:"policy,omitempty"`// Product: The product name of the device. This comes from// android.os.Build.PRODUCT.Productstring `json:"product,omitempty"`// Report: The device report updated with the latest app states.Report *DeviceReport `json:"report,omitempty"`// RetailBrand: Retail brand for the device, if set. See android.os.Build.BRANDRetailBrandstring `json:"retailBrand,omitempty"`// SdkVersion: API compatibility version.SdkVersionint64 `json:"sdkVersion,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AndroidId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AndroidId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Device: A Devices resource represents a mobile device managed by the EMM andbelonging to a specific enterprise user.

func (Device)MarshalJSON

func (sDevice) MarshalJSON() ([]byte,error)

typeDeviceReportadded inv0.7.0

type DeviceReport struct {// AppState: List of app states set by managed apps on the device. App states// are defined by the app's developers. This field will always be present.AppState []*AppState `json:"appState,omitempty"`// LastUpdatedTimestampMillis: The timestamp of the last report update in// milliseconds since epoch. This field will always be present.LastUpdatedTimestampMillisint64 `json:"lastUpdatedTimestampMillis,omitempty,string"`// ForceSendFields is a list of field names (e.g. "AppState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AppState") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DeviceReport: Device report updated with the latest app states for managedapps on the device.

func (DeviceReport)MarshalJSONadded inv0.7.0

func (sDeviceReport) MarshalJSON() ([]byte,error)

typeDeviceReportUpdateEventadded inv0.7.0

type DeviceReportUpdateEvent struct {// DeviceId: The Android ID of the device. This field will always be present.DeviceIdstring `json:"deviceId,omitempty"`// Report: The device report updated with the latest app states. This field// will always be present.Report *DeviceReport `json:"report,omitempty"`// UserId: The ID of the user. This field will always be present.UserIdstring `json:"userId,omitempty"`// ForceSendFields is a list of field names (e.g. "DeviceId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeviceId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DeviceReportUpdateEvent: An event generated when an updated device report isavailable.

func (DeviceReportUpdateEvent)MarshalJSONadded inv0.7.0

func (sDeviceReportUpdateEvent) MarshalJSON() ([]byte,error)

typeDeviceState

type DeviceState struct {// AccountState: The state of the Google account on the device. "enabled"// indicates that the Google account on the device can be used to access Google// services (including Google Play), while "disabled" means that it cannot. A// new device is initially in the "disabled" state.//// Possible values://   "enabled"//   "disabled"AccountStatestring `json:"accountState,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountState") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

DeviceState: The state of a user's device, as accessed by the getState andsetState methods on device resources.

func (DeviceState)MarshalJSON

func (sDeviceState) MarshalJSON() ([]byte,error)

typeDevicesForceReportUploadCalladded inv0.7.0

type DevicesForceReportUploadCall struct {// contains filtered or unexported fields}

func (*DevicesForceReportUploadCall)Contextadded inv0.7.0

Context sets the context to be used in this call's Do method.

func (*DevicesForceReportUploadCall)Doadded inv0.7.0

Do executes the "androidenterprise.devices.forceReportUpload" call.

func (*DevicesForceReportUploadCall)Fieldsadded inv0.7.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DevicesForceReportUploadCall)Headeradded inv0.7.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeDevicesGetCall

type DevicesGetCall struct {// contains filtered or unexported fields}

func (*DevicesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*DevicesGetCall)Do

Do executes the "androidenterprise.devices.get" call.Any non-2xx status code is an error. Response headers are in either*Device.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*DevicesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DevicesGetCall)Header

func (c *DevicesGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*DevicesGetCall)IfNoneMatch

func (c *DevicesGetCall) IfNoneMatch(entityTagstring) *DevicesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeDevicesGetStateCall

type DevicesGetStateCall struct {// contains filtered or unexported fields}

func (*DevicesGetStateCall)Context

Context sets the context to be used in this call's Do method.

func (*DevicesGetStateCall)Do

Do executes the "androidenterprise.devices.getState" call.Any non-2xx status code is an error. Response headers are in either*DeviceState.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*DevicesGetStateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DevicesGetStateCall)Header

func (c *DevicesGetStateCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*DevicesGetStateCall)IfNoneMatch

func (c *DevicesGetStateCall) IfNoneMatch(entityTagstring) *DevicesGetStateCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeDevicesListCall

type DevicesListCall struct {// contains filtered or unexported fields}

func (*DevicesListCall)Context

Context sets the context to be used in this call's Do method.

func (*DevicesListCall)Do

Do executes the "androidenterprise.devices.list" call.Any non-2xx status code is an error. Response headers are in either*DevicesListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*DevicesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DevicesListCall)Header

func (c *DevicesListCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*DevicesListCall)IfNoneMatch

func (c *DevicesListCall) IfNoneMatch(entityTagstring) *DevicesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeDevicesListResponse

type DevicesListResponse struct {// Device: A managed device.Device []*Device `json:"device,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Device") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Device") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (DevicesListResponse)MarshalJSON

func (sDevicesListResponse) MarshalJSON() ([]byte,error)

typeDevicesService

type DevicesService struct {// contains filtered or unexported fields}

funcNewDevicesService

func NewDevicesService(s *Service) *DevicesService

func (*DevicesService)ForceReportUploadadded inv0.7.0

func (r *DevicesService) ForceReportUpload(enterpriseIdstring, userIdstring, deviceIdstring) *DevicesForceReportUploadCall

ForceReportUpload: Uploads a report containing any changes in app states onthe device since the last report was generated. You can call this method upto 3 times every 24 hours for a given device. If you exceed the quota, thenthe Google Play EMM API returns HTTP 429 Too Many Requests.

- deviceId: The ID of the device.- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*DevicesService)Get

func (r *DevicesService) Get(enterpriseIdstring, userIdstring, deviceIdstring) *DevicesGetCall

Get: Retrieves the details of a device.

- deviceId: The ID of the device.- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*DevicesService)GetState

func (r *DevicesService) GetState(enterpriseIdstring, userIdstring, deviceIdstring) *DevicesGetStateCall

GetState: Retrieves whether a device's access to Google services is enabledor disabled. The device state takes effect only if enforcing EMM policies onAndroid devices is enabled in the Google Admin Console. Otherwise, thedevice state is ignored and all devices are allowed access to Googleservices. This is only supported for Google-managed users.

- deviceId: The ID of the device.- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*DevicesService)List

func (r *DevicesService) List(enterpriseIdstring, userIdstring) *DevicesListCall

List: Retrieves the IDs of all of a user's devices.

- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*DevicesService)SetState

func (r *DevicesService) SetState(enterpriseIdstring, userIdstring, deviceIdstring, devicestate *DeviceState) *DevicesSetStateCall

SetState: Sets whether a device's access to Google services is enabled ordisabled. The device state takes effect only if enforcing EMM policies onAndroid devices is enabled in the Google Admin Console. Otherwise, thedevice state is ignored and all devices are allowed access to Googleservices. This is only supported for Google-managed users.

- deviceId: The ID of the device.- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*DevicesService)Update

func (r *DevicesService) Update(enterpriseIdstring, userIdstring, deviceIdstring, device *Device) *DevicesUpdateCall

Update: Updates the device policy. To ensure the policy is properlyenforced, you need to prevent unmanaged accounts from accessing Google Playby setting the allowed_accounts in the managed configuration for the GooglePlay package. See restrict accounts in Google Play. When provisioning a newdevice, you should set the device policy using this method before adding themanaged Google Play Account to the device, otherwise the policy will not beapplied for a short period of time after adding the account to the device.

- deviceId: The ID of the device.- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

typeDevicesSetStateCall

type DevicesSetStateCall struct {// contains filtered or unexported fields}

func (*DevicesSetStateCall)Context

Context sets the context to be used in this call's Do method.

func (*DevicesSetStateCall)Do

Do executes the "androidenterprise.devices.setState" call.Any non-2xx status code is an error. Response headers are in either*DeviceState.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*DevicesSetStateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DevicesSetStateCall)Header

func (c *DevicesSetStateCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeDevicesUpdateCall

type DevicesUpdateCall struct {// contains filtered or unexported fields}

func (*DevicesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*DevicesUpdateCall)Do

Do executes the "androidenterprise.devices.update" call.Any non-2xx status code is an error. Response headers are in either*Device.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*DevicesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*DevicesUpdateCall)Header

func (c *DevicesUpdateCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*DevicesUpdateCall)UpdateMask

func (c *DevicesUpdateCall) UpdateMask(updateMaskstring) *DevicesUpdateCall

UpdateMask sets the optional parameter "updateMask": Mask that identifieswhich fields to update. If not set, all modifiable fields will be modified.When set in a query parameter, this field should be specified asupdateMask=<field1>,<field2>,...

typeEnrollmentTokenadded inv0.207.0

type EnrollmentToken struct {// Duration: [Optional] The length of time the enrollment token is valid,// ranging from 1 minute to `Durations.MAX_VALUE`// (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE),// approximately 10,000 years. If not specified, the default duration is 1// hour.Durationstring `json:"duration,omitempty"`// EnrollmentTokenType: [Required] The type of the enrollment token.//// Possible values://   "enrollmentTokenTypeUnspecified" - The value is unused.//   "userlessDevice" - The enrollment token is for a userless device.//   "userDevice" - The enrollment token is for a user device.EnrollmentTokenTypestring `json:"enrollmentTokenType,omitempty"`// GoogleAuthenticationOptions: [Optional] Provides options related to Google// authentication during the enrollment.GoogleAuthenticationOptions *EnrollmentTokenGoogleAuthenticationOptions `json:"googleAuthenticationOptions,omitempty"`// Token: The token value that's passed to the device and authorizes the device// to enroll. This is a read-only field generated by the server.Tokenstring `json:"token,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Duration") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Duration") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

EnrollmentToken: A token used to enroll a device.

func (EnrollmentToken)MarshalJSONadded inv0.207.0

func (sEnrollmentToken) MarshalJSON() ([]byte,error)

typeEnrollmentTokenGoogleAuthenticationOptionsadded inv0.244.0

type EnrollmentTokenGoogleAuthenticationOptions struct {// AuthenticationRequirement: [Optional] Specifies whether user should// authenticate with Google during enrollment. This setting, if// specified,`GoogleAuthenticationSettings` specified for the enterprise// resource is ignored for devices enrolled with this token.//// Possible values://   "authenticationRequirementUnspecified" - The value is unused.//   "optional" - Google authentication is optional for the user. This means// the user can choose to skip Google authentication during enrollment.//   "required" - Google authentication is required for the user. This means// the user must authenticate with a Google account to proceed.AuthenticationRequirementstring `json:"authenticationRequirement,omitempty"`// RequiredAccountEmail: [Optional] Specifies the managed Google account that// the user must use during enrollment.`AuthenticationRequirement` must be set// to`REQUIRED` if this field is set.RequiredAccountEmailstring `json:"requiredAccountEmail,omitempty"`// ForceSendFields is a list of field names (e.g. "AuthenticationRequirement")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuthenticationRequirement") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

EnrollmentTokenGoogleAuthenticationOptions: Options for Googleauthentication during the enrollment.

func (EnrollmentTokenGoogleAuthenticationOptions)MarshalJSONadded inv0.244.0

typeEnrollmentTokensCreateCalladded inv0.218.0

type EnrollmentTokensCreateCall struct {// contains filtered or unexported fields}

func (*EnrollmentTokensCreateCall)Contextadded inv0.218.0

Context sets the context to be used in this call's Do method.

func (*EnrollmentTokensCreateCall)Doadded inv0.218.0

Do executes the "androidenterprise.enrollmentTokens.create" call.Any non-2xx status code is an error. Response headers are in either*EnrollmentToken.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*EnrollmentTokensCreateCall)Fieldsadded inv0.218.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnrollmentTokensCreateCall)Headeradded inv0.218.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEnrollmentTokensServiceadded inv0.218.0

type EnrollmentTokensService struct {// contains filtered or unexported fields}

funcNewEnrollmentTokensServiceadded inv0.218.0

func NewEnrollmentTokensService(s *Service) *EnrollmentTokensService

func (*EnrollmentTokensService)Createadded inv0.218.0

func (r *EnrollmentTokensService) Create(enterpriseIdstring, enrollmenttoken *EnrollmentToken) *EnrollmentTokensCreateCall

Create: Returns a token for device enrollment. The DPC can encode this tokenwithin the QR/NFC/zero-touch enrollment payload or fetch it before callingthe on-device API to authenticate the user. The token can be generated foreach device or reused across multiple devices.

- enterpriseId: The ID of the enterprise.

typeEnterprise

type Enterprise struct {// Administrator: Admins of the enterprise. This is only supported for// enterprises created via the EMM-initiated flow.Administrator []*Administrator `json:"administrator,omitempty"`// EnterpriseType: The type of the enterprise.//// Possible values://   "enterpriseTypeUnspecified" - This value is not used.//   "managedGoogleDomain" - The enterprise belongs to a managed Google domain.//   "managedGooglePlayAccountsEnterprise" - The enterprise is a managed Google// Play Accounts enterprise.EnterpriseTypestring `json:"enterpriseType,omitempty"`// GoogleAuthenticationSettings: Output only. Settings for Google-provided user// authentication.GoogleAuthenticationSettings *GoogleAuthenticationSettings `json:"googleAuthenticationSettings,omitempty"`// Id: The unique ID for the enterprise.Idstring `json:"id,omitempty"`// ManagedGoogleDomainType: The type of managed Google domain//// Possible values://   "managedGoogleDomainTypeUnspecified" - The managed Google domain type is// not specified.//   "typeTeam" - The managed Google domain is an email-verified team.//   "typeDomain" - The managed Google domain is domain-verified.ManagedGoogleDomainTypestring `json:"managedGoogleDomainType,omitempty"`// Name: The name of the enterprise, for example, "Example, Inc".Namestring `json:"name,omitempty"`// PrimaryDomain: The enterprise's primary domain, such as "example.com".PrimaryDomainstring `json:"primaryDomain,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Administrator") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Administrator") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Enterprise: An Enterprises resource represents the binding between an EMMand a specific organization. That binding can be instantiated in one of twodifferent ways using this API as follows: - For Google managed domaincustomers, the process involves using Enterprises.enroll andEnterprises.setAccount (in conjunction with artifacts obtained from theAdmin console and the Google API Console) and submitted to the EMM through amore-or-less manual process. - For managed Google Play Accounts customers,the process involves using Enterprises.generateSignupUrl andEnterprises.completeSignup in conjunction with the managed Google Playsign-up UI (Google-provided mechanism) to create the binding without manualsteps. As an EMM, you can support either or both approaches in your EMMconsole. See Create an Enterprise for details.

func (Enterprise)MarshalJSON

func (sEnterprise) MarshalJSON() ([]byte,error)

typeEnterpriseAccount

type EnterpriseAccount struct {// AccountEmail: The email address of the service account.AccountEmailstring `json:"accountEmail,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountEmail") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountEmail") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

EnterpriseAccount: A service account that can be used to authenticate as theenterprise to API calls that require such authentication.

func (EnterpriseAccount)MarshalJSON

func (sEnterpriseAccount) MarshalJSON() ([]byte,error)

typeEnterpriseAuthenticationAppLinkConfigadded inv0.75.0

type EnterpriseAuthenticationAppLinkConfig struct {// Uri: An authentication url.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Uri") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

EnterpriseAuthenticationAppLinkConfig: An authentication URL configurationfor the authenticator app of an identity provider.

func (EnterpriseAuthenticationAppLinkConfig)MarshalJSONadded inv0.75.0

typeEnterpriseUpgradeEventadded inv0.224.0

type EnterpriseUpgradeEvent struct {// UpgradeState: The upgrade state.//// Possible values://   "upgradeStateUnspecified" - Unspecified. This value is not used.//   "upgradeStateSucceeded" - The upgrade has succeeded.UpgradeStatestring `json:"upgradeState,omitempty"`// ForceSendFields is a list of field names (e.g. "UpgradeState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "UpgradeState") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

EnterpriseUpgradeEvent: An event generated when an enterprise is upgraded.

func (EnterpriseUpgradeEvent)MarshalJSONadded inv0.224.0

func (sEnterpriseUpgradeEvent) MarshalJSON() ([]byte,error)

typeEnterprisesAcknowledgeNotificationSetCall

type EnterprisesAcknowledgeNotificationSetCall struct {// contains filtered or unexported fields}

func (*EnterprisesAcknowledgeNotificationSetCall)Context

Context sets the context to be used in this call's Do method.

func (*EnterprisesAcknowledgeNotificationSetCall)Do

Do executes the "androidenterprise.enterprises.acknowledgeNotificationSet" call.

func (*EnterprisesAcknowledgeNotificationSetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesAcknowledgeNotificationSetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*EnterprisesAcknowledgeNotificationSetCall)NotificationSetId

NotificationSetId sets the optional parameter "notificationSetId": Thenotification set ID as returned by Enterprises.PullNotificationSet. Thismust be provided.

typeEnterprisesCompleteSignupCall

type EnterprisesCompleteSignupCall struct {// contains filtered or unexported fields}

func (*EnterprisesCompleteSignupCall)CompletionToken

func (c *EnterprisesCompleteSignupCall) CompletionToken(completionTokenstring) *EnterprisesCompleteSignupCall

CompletionToken sets the optional parameter "completionToken": TheCompletion token initially returned by GenerateSignupUrl.

func (*EnterprisesCompleteSignupCall)Context

Context sets the context to be used in this call's Do method.

func (*EnterprisesCompleteSignupCall)Do

Do executes the "androidenterprise.enterprises.completeSignup" call.Any non-2xx status code is an error. Response headers are in either*Enterprise.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*EnterprisesCompleteSignupCall)EnterpriseToken

func (c *EnterprisesCompleteSignupCall) EnterpriseToken(enterpriseTokenstring) *EnterprisesCompleteSignupCall

EnterpriseToken sets the optional parameter "enterpriseToken": TheEnterprise token appended to the Callback URL.

func (*EnterprisesCompleteSignupCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesCompleteSignupCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEnterprisesCreateWebTokenCall

type EnterprisesCreateWebTokenCall struct {// contains filtered or unexported fields}

func (*EnterprisesCreateWebTokenCall)Context

Context sets the context to be used in this call's Do method.

func (*EnterprisesCreateWebTokenCall)Do

Do executes the "androidenterprise.enterprises.createWebToken" call.Any non-2xx status code is an error. Response headers are in either*AdministratorWebToken.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*EnterprisesCreateWebTokenCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesCreateWebTokenCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEnterprisesEnrollCall

type EnterprisesEnrollCall struct {// contains filtered or unexported fields}

func (*EnterprisesEnrollCall)Context

Context sets the context to be used in this call's Do method.

func (*EnterprisesEnrollCall)Do

Do executes the "androidenterprise.enterprises.enroll" call.Any non-2xx status code is an error. Response headers are in either*Enterprise.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*EnterprisesEnrollCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesEnrollCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEnterprisesGenerateEnterpriseUpgradeUrlCalladded inv0.224.0

type EnterprisesGenerateEnterpriseUpgradeUrlCall struct {// contains filtered or unexported fields}

func (*EnterprisesGenerateEnterpriseUpgradeUrlCall)AdminEmailadded inv0.224.0

AdminEmail sets the optional parameter "adminEmail": Email address used toprefill the admin field of the enterprise signup form as part of the upgradeprocess. This value is a hint only and can be altered by the user. Personalemail addresses are not allowed. If `allowedDomains` is non-empty then thismust belong to one of the `allowedDomains`.

func (*EnterprisesGenerateEnterpriseUpgradeUrlCall)AllowedDomainsadded inv0.224.0

AllowedDomains sets the optional parameter "allowedDomains": A list ofdomains that are permitted for the admin email. The IT admin cannot enter anemail address with a domain name that is not in this list. Subdomains ofdomains in this list are not allowed but can be allowed by adding a secondentry which has `*.` prefixed to the domain name (e.g. *.example.com). Ifthe field is not present or is an empty list then the IT admin is free touse any valid domain name. Personal email domains are not allowed.

func (*EnterprisesGenerateEnterpriseUpgradeUrlCall)Contextadded inv0.224.0

Context sets the context to be used in this call's Do method.

func (*EnterprisesGenerateEnterpriseUpgradeUrlCall)Doadded inv0.224.0

Do executes the "androidenterprise.enterprises.generateEnterpriseUpgradeUrl" call.Any non-2xx status code is an error. Response headers are in either*GenerateEnterpriseUpgradeUrlResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*EnterprisesGenerateEnterpriseUpgradeUrlCall)Fieldsadded inv0.224.0

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesGenerateEnterpriseUpgradeUrlCall)Headeradded inv0.224.0

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEnterprisesGenerateSignupUrlCall

type EnterprisesGenerateSignupUrlCall struct {// contains filtered or unexported fields}

func (*EnterprisesGenerateSignupUrlCall)AdminEmailadded inv0.188.0

AdminEmail sets the optional parameter "adminEmail": Email address used toprefill the admin field of the enterprise signup form. This value is a hintonly and can be altered by the user. If `allowedDomains` is non-empty thenthis must belong to one of the `allowedDomains`.

func (*EnterprisesGenerateSignupUrlCall)AllowedDomainsadded inv0.217.0

func (c *EnterprisesGenerateSignupUrlCall) AllowedDomains(allowedDomains ...string) *EnterprisesGenerateSignupUrlCall

AllowedDomains sets the optional parameter "allowedDomains": A list ofdomains that are permitted for the admin email. The IT admin cannot enter anemail address with a domain name that is not in this list. Subdomains ofdomains in this list are not allowed but can be allowed by adding a secondentry which has `*.` prefixed to the domain name (e.g. *.example.com). Ifthe field is not present or is an empty list then the IT admin is free touse any valid domain name. Personal email domains are always allowed, butwill result in the creation of a managed Google Play Accounts enterprise.

func (*EnterprisesGenerateSignupUrlCall)CallbackUrl

CallbackUrl sets the optional parameter "callbackUrl": The callback URL towhich the Admin will be redirected after successfully creating anenterprise. Before redirecting there the system will add a single queryparameter to this URL named "enterpriseToken" which will contain an opaquetoken to be used for the CompleteSignup request. Beware that this means thatthe URL will be parsed, the parameter added and then a new URL formatted,i.e. there may be some minor formatting changes and, more importantly, theURL must be well-formed so that it can be parsed.

func (*EnterprisesGenerateSignupUrlCall)Context

Context sets the context to be used in this call's Do method.

func (*EnterprisesGenerateSignupUrlCall)Do

Do executes the "androidenterprise.enterprises.generateSignupUrl" call.Any non-2xx status code is an error. Response headers are in either*SignupInfo.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*EnterprisesGenerateSignupUrlCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesGenerateSignupUrlCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEnterprisesGetCall

type EnterprisesGetCall struct {// contains filtered or unexported fields}

func (*EnterprisesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*EnterprisesGetCall)Do

Do executes the "androidenterprise.enterprises.get" call.Any non-2xx status code is an error. Response headers are in either*Enterprise.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*EnterprisesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesGetCall)Header

func (c *EnterprisesGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*EnterprisesGetCall)IfNoneMatch

func (c *EnterprisesGetCall) IfNoneMatch(entityTagstring) *EnterprisesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeEnterprisesGetServiceAccountCall

type EnterprisesGetServiceAccountCall struct {// contains filtered or unexported fields}

func (*EnterprisesGetServiceAccountCall)Context

Context sets the context to be used in this call's Do method.

func (*EnterprisesGetServiceAccountCall)Do

Do executes the "androidenterprise.enterprises.getServiceAccount" call.Any non-2xx status code is an error. Response headers are in either*ServiceAccount.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*EnterprisesGetServiceAccountCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesGetServiceAccountCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*EnterprisesGetServiceAccountCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*EnterprisesGetServiceAccountCall)KeyType

KeyType sets the optional parameter "keyType": The type of credential toreturn with the service account. Required.

Possible values:

"googleCredentials" - Google Credentials File format."pkcs12" - PKCS12 format. The password for the PKCS12 file is

'notasecret'. For more information, seehttps://tools.ietf.org/html/rfc7292.The data for keys of this type are base64 encoded according toRFC 4648Section 4. Seehttp://tools.ietf.org/html/rfc4648#section-4.

typeEnterprisesGetStoreLayoutCall

type EnterprisesGetStoreLayoutCall struct {// contains filtered or unexported fields}

func (*EnterprisesGetStoreLayoutCall)Context

Context sets the context to be used in this call's Do method.

func (*EnterprisesGetStoreLayoutCall)Do

Do executes the "androidenterprise.enterprises.getStoreLayout" call.Any non-2xx status code is an error. Response headers are in either*StoreLayout.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*EnterprisesGetStoreLayoutCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesGetStoreLayoutCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*EnterprisesGetStoreLayoutCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeEnterprisesListCall

type EnterprisesListCall struct {// contains filtered or unexported fields}

func (*EnterprisesListCall)Context

Context sets the context to be used in this call's Do method.

func (*EnterprisesListCall)Do

Do executes the "androidenterprise.enterprises.list" call.Any non-2xx status code is an error. Response headers are in either*EnterprisesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*EnterprisesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesListCall)Header

func (c *EnterprisesListCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*EnterprisesListCall)IfNoneMatch

func (c *EnterprisesListCall) IfNoneMatch(entityTagstring) *EnterprisesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeEnterprisesListResponse

type EnterprisesListResponse struct {// Enterprise: An enterprise.Enterprise []*Enterprise `json:"enterprise,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Enterprise") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enterprise") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (EnterprisesListResponse)MarshalJSON

func (sEnterprisesListResponse) MarshalJSON() ([]byte,error)

typeEnterprisesPullNotificationSetCall

type EnterprisesPullNotificationSetCall struct {// contains filtered or unexported fields}

func (*EnterprisesPullNotificationSetCall)Context

Context sets the context to be used in this call's Do method.

func (*EnterprisesPullNotificationSetCall)Do

Do executes the "androidenterprise.enterprises.pullNotificationSet" call.Any non-2xx status code is an error. Response headers are in either*NotificationSet.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*EnterprisesPullNotificationSetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesPullNotificationSetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*EnterprisesPullNotificationSetCall)RequestMode

RequestMode sets the optional parameter "requestMode": The request mode forpulling notifications. Specifying waitForNotifications will cause therequest to block and wait until one or more notifications are present, orreturn an empty notification list if no notifications are present after sometime. Specifying returnImmediately will cause the request to immediatelyreturn the pending notifications, or an empty list if no notifications arepresent. If omitted, defaults to waitForNotifications.

Possible values:

"waitForNotifications" - Wait until one or more notifications are present."returnImmediately" - Returns immediately whether notifications are

present or not.

typeEnterprisesSendTestPushNotificationCall

type EnterprisesSendTestPushNotificationCall struct {// contains filtered or unexported fields}

func (*EnterprisesSendTestPushNotificationCall)Context

Context sets the context to be used in this call's Do method.

func (*EnterprisesSendTestPushNotificationCall)Do

Do executes the "androidenterprise.enterprises.sendTestPushNotification" call.Any non-2xx status code is an error. Response headers are in either*EnterprisesSendTestPushNotificationResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*EnterprisesSendTestPushNotificationCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesSendTestPushNotificationCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEnterprisesSendTestPushNotificationResponse

type EnterprisesSendTestPushNotificationResponse struct {// MessageId: The message ID of the test push notification that was sent.MessageIdstring `json:"messageId,omitempty"`// TopicName: The name of the Cloud Pub/Sub topic to which notifications for// this enterprise's enrolled account will be sent.TopicNamestring `json:"topicName,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "MessageId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MessageId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (EnterprisesSendTestPushNotificationResponse)MarshalJSON

typeEnterprisesService

type EnterprisesService struct {// contains filtered or unexported fields}

funcNewEnterprisesService

func NewEnterprisesService(s *Service) *EnterprisesService

func (*EnterprisesService)AcknowledgeNotificationSet

func (r *EnterprisesService) AcknowledgeNotificationSet() *EnterprisesAcknowledgeNotificationSetCall

AcknowledgeNotificationSet: Acknowledges notifications that were receivedfrom Enterprises.PullNotificationSet to prevent subsequent calls fromreturning the same notifications.

func (*EnterprisesService)CompleteSignup

CompleteSignup: Completes the signup flow, by specifying the Completiontoken and Enterprise token. This request must not be called multiple timesfor a given Enterprise Token.

func (*EnterprisesService)CreateWebToken

func (r *EnterprisesService) CreateWebToken(enterpriseIdstring, administratorwebtokenspec *AdministratorWebTokenSpec) *EnterprisesCreateWebTokenCall

CreateWebToken: Returns a unique token to access an embeddable UI. Togenerate a web UI, pass the generated token into the managed Google Playjavascript API. Each token may only be used to start one UI session. See theJavaScript API documentation for further information.

- enterpriseId: The ID of the enterprise.

func (*EnterprisesService)Enroll

func (r *EnterprisesService) Enroll(tokenstring, enterprise *Enterprise) *EnterprisesEnrollCall

Enroll: Enrolls an enterprise with the calling EMM.

- token: The token provided by the enterprise to register the EMM.

func (*EnterprisesService)GenerateEnterpriseUpgradeUrladded inv0.224.0

func (r *EnterprisesService) GenerateEnterpriseUpgradeUrl(enterpriseIdstring) *EnterprisesGenerateEnterpriseUpgradeUrlCall

GenerateEnterpriseUpgradeUrl: Generates an enterprise upgrade URL to upgradean existing managed Google Play Accounts enterprise to a managed Googledomain. See the guide to upgrading an enterprise for more details.

- enterpriseId: The ID of the enterprise.

func (*EnterprisesService)GenerateSignupUrl

GenerateSignupUrl: Generates a sign-up URL.

func (*EnterprisesService)Get

func (r *EnterprisesService) Get(enterpriseIdstring) *EnterprisesGetCall

Get: Retrieves the name and domain of an enterprise.

- enterpriseId: The ID of the enterprise.

func (*EnterprisesService)GetServiceAccount

func (r *EnterprisesService) GetServiceAccount(enterpriseIdstring) *EnterprisesGetServiceAccountCall

GetServiceAccount: Returns a service account and credentials. The serviceaccount can be bound to the enterprise by calling setAccount. The serviceaccount is unique to this enterprise and EMM, and will be deleted if theenterprise is unbound. The credentials contain private key data and are notstored server-side. This method can only be called after callingEnterprises.Enroll or Enterprises.CompleteSignup, and beforeEnterprises.SetAccount; at other times it will return an error. Subsequentcalls after the first will generate a new, unique set of credentials, andinvalidate the previously generated credentials. Once the service account isbound to the enterprise, it can be managed using the serviceAccountKeysresource. *Note:* After you create a key, you might need to wait for 60seconds or more before you perform another operation with the key. If youtry to perform an operation with the key immediately after you create thekey, and you receive an error, you can retry the request with exponentialbackoff .

- enterpriseId: The ID of the enterprise.

func (*EnterprisesService)GetStoreLayout

func (r *EnterprisesService) GetStoreLayout(enterpriseIdstring) *EnterprisesGetStoreLayoutCall

GetStoreLayout: Returns the store layout for the enterprise. If the storelayout has not been set, returns "basic" as the store layout type and nohomepage.

- enterpriseId: The ID of the enterprise.

func (*EnterprisesService)List

List: Looks up an enterprise by domain name. This is only supported forenterprises created via the Google-initiated creation flow. Lookup of the idis not needed for enterprises created via the EMM-initiated flow since theEMM learns the enterprise ID in the callback specified in theEnterprises.generateSignupUrl call.

- domain: The exact primary domain name of the enterprise to look up.

func (*EnterprisesService)PullNotificationSet

PullNotificationSet: Pulls and returns a notification set for theenterprises associated with the service account authenticated for therequest. The notification set may be empty if no notification are pending. Anotification set returned needs to be acknowledged within 20 seconds bycalling Enterprises.AcknowledgeNotificationSet, unless the notification setis empty. Notifications that are not acknowledged within the 20 seconds willeventually be included again in the response to another PullNotificationSetrequest, and those that are never acknowledged will ultimately be deletedaccording to the Google Cloud Platform Pub/Sub system policy. Multiplerequests might be performed concurrently to retrieve notifications, in whichcase the pending notifications (if any) will be split among each caller, ifany are pending. If no notifications are present, an empty notification listis returned. Subsequent requests may return more notifications once theybecome available.

func (*EnterprisesService)SendTestPushNotification

func (r *EnterprisesService) SendTestPushNotification(enterpriseIdstring) *EnterprisesSendTestPushNotificationCall

SendTestPushNotification: Sends a test notification to validate the EMMintegration with the Google Cloud Pub/Sub service for this enterprise.

- enterpriseId: The ID of the enterprise.

func (*EnterprisesService)SetAccount

func (r *EnterprisesService) SetAccount(enterpriseIdstring, enterpriseaccount *EnterpriseAccount) *EnterprisesSetAccountCall

SetAccount: Sets the account that will be used to authenticate to the API asthe enterprise.

- enterpriseId: The ID of the enterprise.

func (*EnterprisesService)SetStoreLayout

func (r *EnterprisesService) SetStoreLayout(enterpriseIdstring, storelayout *StoreLayout) *EnterprisesSetStoreLayoutCall

SetStoreLayout: Sets the store layout for the enterprise. By default,storeLayoutType is set to "basic" and the basic store layout is enabled. Thebasic layout only contains apps approved by the admin, and that have beenadded to the available product set for a user (using thesetAvailableProductSet call). Apps on the page are sorted in order of theirproduct ID value. If you create a custom store layout (by settingstoreLayoutType = "custom" and setting a homepage), the basic store layoutis disabled.

- enterpriseId: The ID of the enterprise.

func (*EnterprisesService)Unenroll

func (r *EnterprisesService) Unenroll(enterpriseIdstring) *EnterprisesUnenrollCall

Unenroll: Unenrolls an enterprise from the calling EMM.

- enterpriseId: The ID of the enterprise.

typeEnterprisesSetAccountCall

type EnterprisesSetAccountCall struct {// contains filtered or unexported fields}

func (*EnterprisesSetAccountCall)Context

Context sets the context to be used in this call's Do method.

func (*EnterprisesSetAccountCall)Do

Do executes the "androidenterprise.enterprises.setAccount" call.Any non-2xx status code is an error. Response headers are in either*EnterpriseAccount.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*EnterprisesSetAccountCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesSetAccountCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEnterprisesSetStoreLayoutCall

type EnterprisesSetStoreLayoutCall struct {// contains filtered or unexported fields}

func (*EnterprisesSetStoreLayoutCall)Context

Context sets the context to be used in this call's Do method.

func (*EnterprisesSetStoreLayoutCall)Do

Do executes the "androidenterprise.enterprises.setStoreLayout" call.Any non-2xx status code is an error. Response headers are in either*StoreLayout.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*EnterprisesSetStoreLayoutCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesSetStoreLayoutCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEnterprisesUnenrollCall

type EnterprisesUnenrollCall struct {// contains filtered or unexported fields}

func (*EnterprisesUnenrollCall)Context

Context sets the context to be used in this call's Do method.

func (*EnterprisesUnenrollCall)Do

Do executes the "androidenterprise.enterprises.unenroll" call.

func (*EnterprisesUnenrollCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EnterprisesUnenrollCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEntitlement

type Entitlement struct {// ProductId: The ID of the product that the entitlement is for. For example,// "app:com.google.android.gm".ProductIdstring `json:"productId,omitempty"`// Reason: The reason for the entitlement. For example, "free" for free apps.// This property is temporary: it will be replaced by the acquisition kind// field of group licenses.//// Possible values://   "free"//   "groupLicense"//   "userPurchase"Reasonstring `json:"reason,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ProductId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ProductId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Entitlement: *Deprecated:* New integrations cannot use this method and canrefer to our new recommendations.

func (Entitlement)MarshalJSON

func (sEntitlement) MarshalJSON() ([]byte,error)

typeEntitlementsDeleteCall

type EntitlementsDeleteCall struct {// contains filtered or unexported fields}

func (*EntitlementsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*EntitlementsDeleteCall)Do

Do executes the "androidenterprise.entitlements.delete" call.

func (*EntitlementsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EntitlementsDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeEntitlementsGetCall

type EntitlementsGetCall struct {// contains filtered or unexported fields}

func (*EntitlementsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*EntitlementsGetCall)Do

Do executes the "androidenterprise.entitlements.get" call.Any non-2xx status code is an error. Response headers are in either*Entitlement.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*EntitlementsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EntitlementsGetCall)Header

func (c *EntitlementsGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*EntitlementsGetCall)IfNoneMatch

func (c *EntitlementsGetCall) IfNoneMatch(entityTagstring) *EntitlementsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeEntitlementsListCall

type EntitlementsListCall struct {// contains filtered or unexported fields}

func (*EntitlementsListCall)Context

Context sets the context to be used in this call's Do method.

func (*EntitlementsListCall)Do

Do executes the "androidenterprise.entitlements.list" call.Any non-2xx status code is an error. Response headers are in either*EntitlementsListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*EntitlementsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EntitlementsListCall)Header

func (c *EntitlementsListCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*EntitlementsListCall)IfNoneMatch

func (c *EntitlementsListCall) IfNoneMatch(entityTagstring) *EntitlementsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeEntitlementsListResponse

type EntitlementsListResponse struct {// Entitlement: An entitlement of a user to a product (e.g. an app). For// example, a free app that they have installed, or a paid app that they have// been allocated a license to.Entitlement []*Entitlement `json:"entitlement,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Entitlement") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Entitlement") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (EntitlementsListResponse)MarshalJSON

func (sEntitlementsListResponse) MarshalJSON() ([]byte,error)

typeEntitlementsService

type EntitlementsService struct {// contains filtered or unexported fields}

funcNewEntitlementsService

func NewEntitlementsService(s *Service) *EntitlementsService

func (*EntitlementsService)Delete

func (r *EntitlementsService) Delete(enterpriseIdstring, userIdstring, entitlementIdstring) *EntitlementsDeleteCall

Delete: Removes an entitlement to an app for a user. **Note:** This item hasbeen deprecated. New integrations cannot use this method and can refer toour new recommendations.

  • enterpriseId: The ID of the enterprise.
  • entitlementId: The ID of the entitlement (a product ID), e.g."app:com.google.android.gm".
  • userId: The ID of the user.

func (*EntitlementsService)Get

func (r *EntitlementsService) Get(enterpriseIdstring, userIdstring, entitlementIdstring) *EntitlementsGetCall

Get: Retrieves details of an entitlement. **Note:** This item has beendeprecated. New integrations cannot use this method and can refer to our newrecommendations.

  • enterpriseId: The ID of the enterprise.
  • entitlementId: The ID of the entitlement (a product ID), e.g."app:com.google.android.gm".
  • userId: The ID of the user.

func (*EntitlementsService)List

func (r *EntitlementsService) List(enterpriseIdstring, userIdstring) *EntitlementsListCall

List: Lists all entitlements for the specified user. Only the ID is set.**Note:** This item has been deprecated. New integrations cannot use thismethod and can refer to our new recommendations.

- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*EntitlementsService)Update

func (r *EntitlementsService) Update(enterpriseIdstring, userIdstring, entitlementIdstring, entitlement *Entitlement) *EntitlementsUpdateCall

Update: Adds or updates an entitlement to an app for a user. **Note:** Thisitem has been deprecated. New integrations cannot use this method and canrefer to our new recommendations.

  • enterpriseId: The ID of the enterprise.
  • entitlementId: The ID of the entitlement (a product ID), e.g."app:com.google.android.gm".
  • userId: The ID of the user.

typeEntitlementsUpdateCall

type EntitlementsUpdateCall struct {// contains filtered or unexported fields}

func (*EntitlementsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*EntitlementsUpdateCall)Do

Do executes the "androidenterprise.entitlements.update" call.Any non-2xx status code is an error. Response headers are in either*Entitlement.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*EntitlementsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*EntitlementsUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*EntitlementsUpdateCall)Install

Install sets the optional parameter "install": Set to true to also installthe product on all the user's devices where possible. Failure to install onone or more devices will not prevent this operation from returningsuccessfully, as long as the entitlement was successfully assigned to theuser.

typeGenerateEnterpriseUpgradeUrlResponseadded inv0.224.0

type GenerateEnterpriseUpgradeUrlResponse struct {// Url: A URL for an enterprise admin to upgrade their enterprise. The page// can't be rendered in an iframe.Urlstring `json:"url,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Url") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Url") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GenerateEnterpriseUpgradeUrlResponse: Response message for generating a URLto upgrade an existing managed Google Play Accounts enterprise to a managedGoogle domain.

func (GenerateEnterpriseUpgradeUrlResponse)MarshalJSONadded inv0.224.0

typeGoogleAuthenticationSettingsadded inv0.108.0

type GoogleAuthenticationSettings struct {// DedicatedDevicesAllowed: Whether dedicated devices are allowed.//// Possible values://   "dedicatedDevicesAllowedUnspecified" - This value is unused.//   "disallowed" - Dedicated devices are not allowed.//   "allowed" - Dedicated devices are allowed.DedicatedDevicesAllowedstring `json:"dedicatedDevicesAllowed,omitempty"`// GoogleAuthenticationRequired: Whether Google authentication is required.//// Possible values://   "googleAuthenticationRequiredUnspecified" - This value is unused.//   "notRequired" - Google authentication is not required.//   "required" - User is required to be successfully authenticated by Google.GoogleAuthenticationRequiredstring `json:"googleAuthenticationRequired,omitempty"`// ForceSendFields is a list of field names (e.g. "DedicatedDevicesAllowed") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DedicatedDevicesAllowed") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GoogleAuthenticationSettings: Contains settings for Google-provided userauthentication.

func (GoogleAuthenticationSettings)MarshalJSONadded inv0.108.0

func (sGoogleAuthenticationSettings) MarshalJSON() ([]byte,error)

typeGroupLicense

type GroupLicense struct {// AcquisitionKind: How this group license was acquired. "bulkPurchase" means// that this Grouplicenses resource was created because the enterprise// purchased licenses for this product; otherwise, the value is "free" (for// free products).//// Possible values://   "free"//   "bulkPurchase"AcquisitionKindstring `json:"acquisitionKind,omitempty"`// Approval: Whether the product to which this group license relates is// currently approved by the enterprise. Products are approved when a group// license is first created, but this approval may be revoked by an enterprise// admin via Google Play. Unapproved products will not be visible to end users// in collections, and new entitlements to them should not normally be created.//// Possible values://   "approved"//   "unapproved"Approvalstring `json:"approval,omitempty"`// NumProvisioned: The total number of provisioned licenses for this product.// Returned by read operations, but ignored in write operations.NumProvisionedint64 `json:"numProvisioned,omitempty"`// NumPurchased: The number of purchased licenses (possibly in multiple// purchases). If this field is omitted, then there is no limit on the number// of licenses that can be provisioned (for example, if the acquisition kind is// "free").NumPurchasedint64 `json:"numPurchased,omitempty"`// Permissions: The permission approval status of the product. This field is// only set if the product is approved. Possible states are: -// "currentApproved", the current set of permissions is approved, but// additional permissions will require the administrator to reapprove the// product (If the product was approved without specifying the approved// permissions setting, then this is the default behavior.), -// "needsReapproval", the product has unapproved permissions. No additional// product licenses can be assigned until the product is reapproved, -// "allCurrentAndFutureApproved", the current permissions are approved and any// future permission updates will be automatically approved without// administrator review.//// Possible values://   "currentApproved"//   "needsReapproval"//   "allCurrentAndFutureApproved"Permissionsstring `json:"permissions,omitempty"`// ProductId: The ID of the product that the license is for. For example,// "app:com.google.android.gm".ProductIdstring `json:"productId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AcquisitionKind") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AcquisitionKind") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

GroupLicense: *Deprecated:* New integrations cannot use this method and canrefer to our new recommendations

func (GroupLicense)MarshalJSON

func (sGroupLicense) MarshalJSON() ([]byte,error)

typeGroupLicenseUsersListResponse

type GroupLicenseUsersListResponse struct {// User: A user of an enterprise.User []*User `json:"user,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "User") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "User") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (GroupLicenseUsersListResponse)MarshalJSON

func (sGroupLicenseUsersListResponse) MarshalJSON() ([]byte,error)

typeGroupLicensesListResponse

type GroupLicensesListResponse struct {// GroupLicense: A group license for a product approved for use in the// enterprise.GroupLicense []*GroupLicense `json:"groupLicense,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "GroupLicense") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GroupLicense") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (GroupLicensesListResponse)MarshalJSON

func (sGroupLicensesListResponse) MarshalJSON() ([]byte,error)

typeGrouplicensesGetCall

type GrouplicensesGetCall struct {// contains filtered or unexported fields}

func (*GrouplicensesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*GrouplicensesGetCall)Do

Do executes the "androidenterprise.grouplicenses.get" call.Any non-2xx status code is an error. Response headers are in either*GroupLicense.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*GrouplicensesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*GrouplicensesGetCall)Header

func (c *GrouplicensesGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*GrouplicensesGetCall)IfNoneMatch

func (c *GrouplicensesGetCall) IfNoneMatch(entityTagstring) *GrouplicensesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeGrouplicensesListCall

type GrouplicensesListCall struct {// contains filtered or unexported fields}

func (*GrouplicensesListCall)Context

Context sets the context to be used in this call's Do method.

func (*GrouplicensesListCall)Do

Do executes the "androidenterprise.grouplicenses.list" call.Any non-2xx status code is an error. Response headers are in either*GroupLicensesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*GrouplicensesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*GrouplicensesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*GrouplicensesListCall)IfNoneMatch

func (c *GrouplicensesListCall) IfNoneMatch(entityTagstring) *GrouplicensesListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeGrouplicensesService

type GrouplicensesService struct {// contains filtered or unexported fields}

funcNewGrouplicensesService

func NewGrouplicensesService(s *Service) *GrouplicensesService

func (*GrouplicensesService)Get

func (r *GrouplicensesService) Get(enterpriseIdstring, groupLicenseIdstring) *GrouplicensesGetCall

Get: Retrieves details of an enterprise's group license for a product.**Note:** This item has been deprecated. New integrations cannot use thismethod and can refer to our new recommendations.

  • enterpriseId: The ID of the enterprise.
  • groupLicenseId: The ID of the product the group license is for, e.g."app:com.google.android.gm".

func (*GrouplicensesService)List

List: Retrieves IDs of all products for which the enterprise has a grouplicense. **Note:** This item has been deprecated. New integrations cannotuse this method and can refer to our new recommendations.

- enterpriseId: The ID of the enterprise.

typeGrouplicenseusersListCall

type GrouplicenseusersListCall struct {// contains filtered or unexported fields}

func (*GrouplicenseusersListCall)Context

Context sets the context to be used in this call's Do method.

func (*GrouplicenseusersListCall)Do

Do executes the "androidenterprise.grouplicenseusers.list" call.Any non-2xx status code is an error. Response headers are in either*GroupLicenseUsersListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*GrouplicenseusersListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*GrouplicenseusersListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*GrouplicenseusersListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeGrouplicenseusersService

type GrouplicenseusersService struct {// contains filtered or unexported fields}

funcNewGrouplicenseusersService

func NewGrouplicenseusersService(s *Service) *GrouplicenseusersService

func (*GrouplicenseusersService)List

func (r *GrouplicenseusersService) List(enterpriseIdstring, groupLicenseIdstring) *GrouplicenseusersListCall

List: Retrieves the IDs of the users who have been granted entitlementsunder the license. **Note:** This item has been deprecated. New integrationscannot use this method and can refer to our new recommendations.

  • enterpriseId: The ID of the enterprise.
  • groupLicenseId: The ID of the product the group license is for, e.g."app:com.google.android.gm".

typeInstall

type Install struct {// InstallState: Install state. The state "installPending" means that an// install request has recently been made and download to the device is in// progress. The state "installed" means that the app has been installed. This// field is read-only.//// Possible values://   "installed"//   "installPending"InstallStatestring `json:"installState,omitempty"`// ProductId: The ID of the product that the install is for. For example,// "app:com.google.android.gm".ProductIdstring `json:"productId,omitempty"`// VersionCode: The version of the installed product. Guaranteed to be set only// if the install state is "installed".VersionCodeint64 `json:"versionCode,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "InstallState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InstallState") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Install: The existence of an Installs resource indicates that an app isinstalled on a particular device (or that an install is pending). The APIcan be used to create an install resource using the update method. Thistriggers the actual install of the app on the device. If the user does notalready have an entitlement for the app, then an attempt is made to createone. If this fails (for example, because the app is not free and there is noavailable license), then the creation of the install fails. The API can alsobe used to update an installed app. If the update method is used on anexisting install, then the app will be updated to the latest availableversion. Note that it is not possible to force the installation of aspecific version of an app: the version code is read-only. If a userinstalls an app themselves (as permitted by the enterprise), then again aninstall resource and possibly an entitlement resource are automaticallycreated. The API can also be used to delete an install resource, whichtriggers the removal of the app from the device. Note that deleting aninstall does not automatically remove the corresponding entitlement, even ifthere are no remaining installs. The install resource will also be deletedif the user uninstalls the app themselves.

func (Install)MarshalJSON

func (sInstall) MarshalJSON() ([]byte,error)

typeInstallFailureEvent

type InstallFailureEvent struct {// DeviceId: The Android ID of the device. This field will always be present.DeviceIdstring `json:"deviceId,omitempty"`// FailureDetails: Additional details on the failure if applicable.FailureDetailsstring `json:"failureDetails,omitempty"`// FailureReason: The reason for the installation failure. This field will// always be present.//// Possible values://   "unknown" - Used whenever no better reason for failure can be provided.//   "timeout" - Used when the installation timed out. This can cover a number// of situations, for example when the device did not have connectivity at any// point during the retry period, or if the device is OOM.FailureReasonstring `json:"failureReason,omitempty"`// ProductId: The id of the product (e.g. "app:com.google.android.gm") for// which the install failure event occured. This field will always be present.ProductIdstring `json:"productId,omitempty"`// UserId: The ID of the user. This field will always be present.UserIdstring `json:"userId,omitempty"`// ForceSendFields is a list of field names (e.g. "DeviceId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeviceId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

InstallFailureEvent: An event generated when an app installation failed on adevice

func (InstallFailureEvent)MarshalJSON

func (sInstallFailureEvent) MarshalJSON() ([]byte,error)

typeInstallsDeleteCall

type InstallsDeleteCall struct {// contains filtered or unexported fields}

func (*InstallsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*InstallsDeleteCall)Do

Do executes the "androidenterprise.installs.delete" call.

func (*InstallsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*InstallsDeleteCall)Header

func (c *InstallsDeleteCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeInstallsGetCall

type InstallsGetCall struct {// contains filtered or unexported fields}

func (*InstallsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*InstallsGetCall)Do

Do executes the "androidenterprise.installs.get" call.Any non-2xx status code is an error. Response headers are in either*Install.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*InstallsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*InstallsGetCall)Header

func (c *InstallsGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*InstallsGetCall)IfNoneMatch

func (c *InstallsGetCall) IfNoneMatch(entityTagstring) *InstallsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeInstallsListCall

type InstallsListCall struct {// contains filtered or unexported fields}

func (*InstallsListCall)Context

Context sets the context to be used in this call's Do method.

func (*InstallsListCall)Do

Do executes the "androidenterprise.installs.list" call.Any non-2xx status code is an error. Response headers are in either*InstallsListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*InstallsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*InstallsListCall)Header

func (c *InstallsListCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*InstallsListCall)IfNoneMatch

func (c *InstallsListCall) IfNoneMatch(entityTagstring) *InstallsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeInstallsListResponse

type InstallsListResponse struct {// Install: An installation of an app for a user on a specific device. The// existence of an install implies that the user must have an entitlement to// the app.Install []*Install `json:"install,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Install") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Install") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (InstallsListResponse)MarshalJSON

func (sInstallsListResponse) MarshalJSON() ([]byte,error)

typeInstallsService

type InstallsService struct {// contains filtered or unexported fields}

funcNewInstallsService

func NewInstallsService(s *Service) *InstallsService

func (*InstallsService)Delete

func (r *InstallsService) Delete(enterpriseIdstring, userIdstring, deviceIdstring, installIdstring) *InstallsDeleteCall

Delete: Requests to remove an app from a device. A call to get or list willstill show the app as installed on the device until it is actually removed.A successful response indicates that a removal request has been sent to thedevice. The call will be considered successful even if the app is notpresent on the device (e.g. it was never installed, or was removed by theuser).

  • deviceId: The Android ID of the device.
  • enterpriseId: The ID of the enterprise.
  • installId: The ID of the product represented by the install, e.g."app:com.google.android.gm".
  • userId: The ID of the user.

func (*InstallsService)Get

func (r *InstallsService) Get(enterpriseIdstring, userIdstring, deviceIdstring, installIdstring) *InstallsGetCall

Get: Retrieves details of an installation of an app on a device.

  • deviceId: The Android ID of the device.
  • enterpriseId: The ID of the enterprise.
  • installId: The ID of the product represented by the install, e.g."app:com.google.android.gm".
  • userId: The ID of the user.

func (*InstallsService)List

func (r *InstallsService) List(enterpriseIdstring, userIdstring, deviceIdstring) *InstallsListCall

List: Retrieves the details of all apps installed on the specified device.

- deviceId: The Android ID of the device.- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*InstallsService)Update

func (r *InstallsService) Update(enterpriseIdstring, userIdstring, deviceIdstring, installIdstring, install *Install) *InstallsUpdateCall

Update: Requests to install the latest version of an app to a device. If theapp is already installed, then it is updated to the latest version ifnecessary.

  • deviceId: The Android ID of the device.
  • enterpriseId: The ID of the enterprise.
  • installId: The ID of the product represented by the install, e.g."app:com.google.android.gm".
  • userId: The ID of the user.

typeInstallsUpdateCall

type InstallsUpdateCall struct {// contains filtered or unexported fields}

func (*InstallsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*InstallsUpdateCall)Do

Do executes the "androidenterprise.installs.update" call.Any non-2xx status code is an error. Response headers are in either*Install.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*InstallsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*InstallsUpdateCall)Header

func (c *InstallsUpdateCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeKeyedAppStateadded inv0.7.0

type KeyedAppState struct {// Data: Additional field intended for machine-readable data. For example, a// number or JSON object. To prevent XSS, we recommend removing any HTML from// the data before displaying it.Datastring `json:"data,omitempty"`// Key: Key indicating what the app is providing a state for. The content of// the key is set by the app's developer. To prevent XSS, we recommend removing// any HTML from the key before displaying it. This field will always be// present.Keystring `json:"key,omitempty"`// Message: Free-form, human-readable message describing the app state. For// example, an error message. To prevent XSS, we recommend removing any HTML// from the message before displaying it.Messagestring `json:"message,omitempty"`// Severity: Severity of the app state. This field will always be present.//// Possible values://   "severityUnknown"//   "severityInfo"//   "severityError"Severitystring `json:"severity,omitempty"`// StateTimestampMillis: Timestamp of when the app set the state in// milliseconds since epoch. This field will always be present.StateTimestampMillisint64 `json:"stateTimestampMillis,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Data") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Data") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

KeyedAppState: Represents a keyed app state containing a key, timestamp,severity level, optional description, and optional data.

func (KeyedAppState)MarshalJSONadded inv0.7.0

func (sKeyedAppState) MarshalJSON() ([]byte,error)

typeLocalizedText

type LocalizedText struct {// Locale: The BCP47 tag for a locale. (e.g. "en-US", "de").Localestring `json:"locale,omitempty"`// Text: The text localized in the associated locale.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "Locale") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Locale") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

LocalizedText: A localized string with its locale.

func (LocalizedText)MarshalJSON

func (sLocalizedText) MarshalJSON() ([]byte,error)

typeMaintenanceWindow

type MaintenanceWindow struct {// DurationMs: Duration of the maintenance window, in milliseconds. The// duration must be between 30 minutes and 24 hours (inclusive).DurationMsint64 `json:"durationMs,omitempty,string"`// StartTimeAfterMidnightMs: Start time of the maintenance window, in// milliseconds after midnight on the device. Windows can span midnight.StartTimeAfterMidnightMsint64 `json:"startTimeAfterMidnightMs,omitempty,string"`// ForceSendFields is a list of field names (e.g. "DurationMs") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DurationMs") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

MaintenanceWindow: Maintenance window for managed Google Play Accounts. Thisallows Play store to update the apps on the foreground in the designatedwindow.

func (MaintenanceWindow)MarshalJSON

func (sMaintenanceWindow) MarshalJSON() ([]byte,error)

typeManagedConfiguration

type ManagedConfiguration struct {// ConfigurationVariables: Contains the ID of the managed configuration profile// and the set of configuration variables (if any) defined for the user.ConfigurationVariables *ConfigurationVariables `json:"configurationVariables,omitempty"`// Kind: Deprecated.Kindstring `json:"kind,omitempty"`// ManagedProperty: The set of managed properties for this configuration.ManagedProperty []*ManagedProperty `json:"managedProperty,omitempty"`// ProductId: The ID of the product that the managed configuration is for, e.g.// "app:com.google.android.gm".ProductIdstring `json:"productId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ConfigurationVariables") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConfigurationVariables") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ManagedConfiguration: *Deprecated:* New integrations cannot use this methodand can refer to our new recommendations

func (ManagedConfiguration)MarshalJSON

func (sManagedConfiguration) MarshalJSON() ([]byte,error)

typeManagedConfigurationsForDeviceListResponse

type ManagedConfigurationsForDeviceListResponse struct {// ManagedConfigurationForDevice: A managed configuration for an app on a// specific device.ManagedConfigurationForDevice []*ManagedConfiguration `json:"managedConfigurationForDevice,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g.// "ManagedConfigurationForDevice") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ManagedConfigurationForDevice")// to include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (ManagedConfigurationsForDeviceListResponse)MarshalJSON

typeManagedConfigurationsForUserListResponse

type ManagedConfigurationsForUserListResponse struct {// ManagedConfigurationForUser: A managed configuration for an app for a// specific user.ManagedConfigurationForUser []*ManagedConfiguration `json:"managedConfigurationForUser,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g.// "ManagedConfigurationForUser") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ManagedConfigurationForUser") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (ManagedConfigurationsForUserListResponse)MarshalJSON

typeManagedConfigurationsSettings

type ManagedConfigurationsSettings struct {// LastUpdatedTimestampMillis: The last updated time of the managed// configuration settings in milliseconds since 1970-01-01T00:00:00Z.LastUpdatedTimestampMillisint64 `json:"lastUpdatedTimestampMillis,omitempty,string"`// McmId: The ID of the managed configurations settings.McmIdstring `json:"mcmId,omitempty"`// Name: The name of the managed configurations settings.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "LastUpdatedTimestampMillis")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LastUpdatedTimestampMillis") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ManagedConfigurationsSettings: A managed configurations settings resourcecontains the set of managed properties that have been configured for anAndroid app to be applied to a set of users. The app's developer would havedefined configurable properties in the managed configurations schema.

func (ManagedConfigurationsSettings)MarshalJSON

func (sManagedConfigurationsSettings) MarshalJSON() ([]byte,error)

typeManagedConfigurationsSettingsListResponse

type ManagedConfigurationsSettingsListResponse struct {// ManagedConfigurationsSettings: A managed configurations settings for an app// that may be assigned to a group of users in an enterprise.ManagedConfigurationsSettings []*ManagedConfigurationsSettings `json:"managedConfigurationsSettings,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g.// "ManagedConfigurationsSettings") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ManagedConfigurationsSettings")// to include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (ManagedConfigurationsSettingsListResponse)MarshalJSON

typeManagedProperty

type ManagedProperty struct {// Key: The unique key that identifies the property.Keystring `json:"key,omitempty"`// ValueBool: The boolean value - this will only be present if type of the// property is bool.ValueBoolbool `json:"valueBool,omitempty"`// ValueBundle: The bundle of managed properties - this will only be present if// type of the property is bundle.ValueBundle *ManagedPropertyBundle `json:"valueBundle,omitempty"`// ValueBundleArray: The list of bundles of properties - this will only be// present if type of the property is bundle_array.ValueBundleArray []*ManagedPropertyBundle `json:"valueBundleArray,omitempty"`// ValueInteger: The integer value - this will only be present if type of the// property is integer.ValueIntegerint64 `json:"valueInteger,omitempty"`// ValueString: The string value - this will only be present if type of the// property is string, choice or hidden.ValueStringstring `json:"valueString,omitempty"`// ValueStringArray: The list of string values - this will only be present if// type of the property is multiselect.ValueStringArray []string `json:"valueStringArray,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Key") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ManagedProperty: A managed property of a managed configuration. The propertymust match one of the properties in the app restrictions schema of theproduct. Exactly one of the value fields must be populated, and it mustmatch the property's type in the app restrictions schema.

func (ManagedProperty)MarshalJSON

func (sManagedProperty) MarshalJSON() ([]byte,error)

typeManagedPropertyBundle

type ManagedPropertyBundle struct {// ManagedProperty: The list of managed properties.ManagedProperty []*ManagedProperty `json:"managedProperty,omitempty"`// ForceSendFields is a list of field names (e.g. "ManagedProperty") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ManagedProperty") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ManagedPropertyBundle: A bundle of managed properties.

func (ManagedPropertyBundle)MarshalJSON

func (sManagedPropertyBundle) MarshalJSON() ([]byte,error)

typeManagedconfigurationsfordeviceDeleteCall

type ManagedconfigurationsfordeviceDeleteCall struct {// contains filtered or unexported fields}

func (*ManagedconfigurationsfordeviceDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ManagedconfigurationsfordeviceDeleteCall)Do

Do executes the "androidenterprise.managedconfigurationsfordevice.delete" call.

func (*ManagedconfigurationsfordeviceDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ManagedconfigurationsfordeviceDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeManagedconfigurationsfordeviceGetCall

type ManagedconfigurationsfordeviceGetCall struct {// contains filtered or unexported fields}

func (*ManagedconfigurationsfordeviceGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ManagedconfigurationsfordeviceGetCall)Do

Do executes the "androidenterprise.managedconfigurationsfordevice.get" call.Any non-2xx status code is an error. Response headers are in either*ManagedConfiguration.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ManagedconfigurationsfordeviceGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ManagedconfigurationsfordeviceGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ManagedconfigurationsfordeviceGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeManagedconfigurationsfordeviceListCall

type ManagedconfigurationsfordeviceListCall struct {// contains filtered or unexported fields}

func (*ManagedconfigurationsfordeviceListCall)Context

Context sets the context to be used in this call's Do method.

func (*ManagedconfigurationsfordeviceListCall)Do

Do executes the "androidenterprise.managedconfigurationsfordevice.list" call.Any non-2xx status code is an error. Response headers are in either*ManagedConfigurationsForDeviceListResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ManagedconfigurationsfordeviceListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ManagedconfigurationsfordeviceListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ManagedconfigurationsfordeviceListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeManagedconfigurationsfordeviceService

type ManagedconfigurationsfordeviceService struct {// contains filtered or unexported fields}

func (*ManagedconfigurationsfordeviceService)Delete

func (r *ManagedconfigurationsfordeviceService) Delete(enterpriseIdstring, userIdstring, deviceIdstring, managedConfigurationForDeviceIdstring) *ManagedconfigurationsfordeviceDeleteCall

Delete: Removes a per-device managed configuration for an app for thespecified device.

  • deviceId: The Android ID of the device.
  • enterpriseId: The ID of the enterprise.
  • managedConfigurationForDeviceId: The ID of the managed configuration (aproduct ID), e.g. "app:com.google.android.gm".
  • userId: The ID of the user.

func (*ManagedconfigurationsfordeviceService)Get

func (r *ManagedconfigurationsfordeviceService) Get(enterpriseIdstring, userIdstring, deviceIdstring, managedConfigurationForDeviceIdstring) *ManagedconfigurationsfordeviceGetCall

Get: Retrieves details of a per-device managed configuration.

  • deviceId: The Android ID of the device.
  • enterpriseId: The ID of the enterprise.
  • managedConfigurationForDeviceId: The ID of the managed configuration (aproduct ID), e.g. "app:com.google.android.gm".
  • userId: The ID of the user.

func (*ManagedconfigurationsfordeviceService)List

List: Lists all the per-device managed configurations for the specifieddevice. Only the ID is set.

- deviceId: The Android ID of the device.- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*ManagedconfigurationsfordeviceService)Update

func (r *ManagedconfigurationsfordeviceService) Update(enterpriseIdstring, userIdstring, deviceIdstring, managedConfigurationForDeviceIdstring, managedconfiguration *ManagedConfiguration) *ManagedconfigurationsfordeviceUpdateCall

Update: Adds or updates a per-device managed configuration for an app forthe specified device.

  • deviceId: The Android ID of the device.
  • enterpriseId: The ID of the enterprise.
  • managedConfigurationForDeviceId: The ID of the managed configuration (aproduct ID), e.g. "app:com.google.android.gm".
  • userId: The ID of the user.

typeManagedconfigurationsfordeviceUpdateCall

type ManagedconfigurationsfordeviceUpdateCall struct {// contains filtered or unexported fields}

func (*ManagedconfigurationsfordeviceUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*ManagedconfigurationsfordeviceUpdateCall)Do

Do executes the "androidenterprise.managedconfigurationsfordevice.update" call.Any non-2xx status code is an error. Response headers are in either*ManagedConfiguration.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ManagedconfigurationsfordeviceUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ManagedconfigurationsfordeviceUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeManagedconfigurationsforuserDeleteCall

type ManagedconfigurationsforuserDeleteCall struct {// contains filtered or unexported fields}

func (*ManagedconfigurationsforuserDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ManagedconfigurationsforuserDeleteCall)Do

Do executes the "androidenterprise.managedconfigurationsforuser.delete" call.

func (*ManagedconfigurationsforuserDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ManagedconfigurationsforuserDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeManagedconfigurationsforuserGetCall

type ManagedconfigurationsforuserGetCall struct {// contains filtered or unexported fields}

func (*ManagedconfigurationsforuserGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ManagedconfigurationsforuserGetCall)Do

Do executes the "androidenterprise.managedconfigurationsforuser.get" call.Any non-2xx status code is an error. Response headers are in either*ManagedConfiguration.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ManagedconfigurationsforuserGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ManagedconfigurationsforuserGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ManagedconfigurationsforuserGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeManagedconfigurationsforuserListCall

type ManagedconfigurationsforuserListCall struct {// contains filtered or unexported fields}

func (*ManagedconfigurationsforuserListCall)Context

Context sets the context to be used in this call's Do method.

func (*ManagedconfigurationsforuserListCall)Do

Do executes the "androidenterprise.managedconfigurationsforuser.list" call.Any non-2xx status code is an error. Response headers are in either*ManagedConfigurationsForUserListResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ManagedconfigurationsforuserListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ManagedconfigurationsforuserListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ManagedconfigurationsforuserListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeManagedconfigurationsforuserService

type ManagedconfigurationsforuserService struct {// contains filtered or unexported fields}

func (*ManagedconfigurationsforuserService)Delete

func (r *ManagedconfigurationsforuserService) Delete(enterpriseIdstring, userIdstring, managedConfigurationForUserIdstring) *ManagedconfigurationsforuserDeleteCall

Delete: Removes a per-user managed configuration for an app for thespecified user.

  • enterpriseId: The ID of the enterprise.
  • managedConfigurationForUserId: The ID of the managed configuration (aproduct ID), e.g. "app:com.google.android.gm".
  • userId: The ID of the user.

func (*ManagedconfigurationsforuserService)Get

func (r *ManagedconfigurationsforuserService) Get(enterpriseIdstring, userIdstring, managedConfigurationForUserIdstring) *ManagedconfigurationsforuserGetCall

Get: Retrieves details of a per-user managed configuration for an app forthe specified user.

  • enterpriseId: The ID of the enterprise.
  • managedConfigurationForUserId: The ID of the managed configuration (aproduct ID), e.g. "app:com.google.android.gm".
  • userId: The ID of the user.

func (*ManagedconfigurationsforuserService)List

List: Lists all the per-user managed configurations for the specified user.Only the ID is set.

- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*ManagedconfigurationsforuserService)Update

func (r *ManagedconfigurationsforuserService) Update(enterpriseIdstring, userIdstring, managedConfigurationForUserIdstring, managedconfiguration *ManagedConfiguration) *ManagedconfigurationsforuserUpdateCall

Update: Adds or updates the managed configuration settings for an app forthe specified user. If you support the Managed configurations iframe, youcan apply managed configurations to a user by specifying an mcmId and itsassociated configuration variables (if any) in the request. Alternatively,all EMMs can apply managed configurations by passing a list of managedproperties.

  • enterpriseId: The ID of the enterprise.
  • managedConfigurationForUserId: The ID of the managed configuration (aproduct ID), e.g. "app:com.google.android.gm".
  • userId: The ID of the user.

typeManagedconfigurationsforuserUpdateCall

type ManagedconfigurationsforuserUpdateCall struct {// contains filtered or unexported fields}

func (*ManagedconfigurationsforuserUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*ManagedconfigurationsforuserUpdateCall)Do

Do executes the "androidenterprise.managedconfigurationsforuser.update" call.Any non-2xx status code is an error. Response headers are in either*ManagedConfiguration.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ManagedconfigurationsforuserUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ManagedconfigurationsforuserUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeManagedconfigurationssettingsListCall

type ManagedconfigurationssettingsListCall struct {// contains filtered or unexported fields}

func (*ManagedconfigurationssettingsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ManagedconfigurationssettingsListCall)Do

Do executes the "androidenterprise.managedconfigurationssettings.list" call.Any non-2xx status code is an error. Response headers are in either*ManagedConfigurationsSettingsListResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ManagedconfigurationssettingsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ManagedconfigurationssettingsListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ManagedconfigurationssettingsListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeManagedconfigurationssettingsService

type ManagedconfigurationssettingsService struct {// contains filtered or unexported fields}

func (*ManagedconfigurationssettingsService)List

List: Lists all the managed configurations settings for the specified app.

  • enterpriseId: The ID of the enterprise.
  • productId: The ID of the product for which the managed configurationssettings applies to.

typeNewDeviceEvent

type NewDeviceEvent struct {// DeviceId: The Android ID of the device. This field will always be present.DeviceIdstring `json:"deviceId,omitempty"`// DpcPackageName: Policy app on the device.DpcPackageNamestring `json:"dpcPackageName,omitempty"`// ManagementType: Identifies the extent to which the device is controlled by// an Android EMM in various deployment configurations. Possible values// include: - "managedDevice", a device where the DPC is set as device owner, -// "managedProfile", a device where the DPC is set as profile owner.//// Possible values://   "managedDevice"//   "managedProfile"ManagementTypestring `json:"managementType,omitempty"`// UserId: The ID of the user. This field will always be present.UserIdstring `json:"userId,omitempty"`// ForceSendFields is a list of field names (e.g. "DeviceId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeviceId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

NewDeviceEvent: An event generated when a new device is ready to be managed.

func (NewDeviceEvent)MarshalJSON

func (sNewDeviceEvent) MarshalJSON() ([]byte,error)

typeNewPermissionsEvent

type NewPermissionsEvent struct {// ApprovedPermissions: The set of permissions that the enterprise admin has// already approved for this application. Use Permissions.Get on the EMM API to// retrieve details about these permissions.ApprovedPermissions []string `json:"approvedPermissions,omitempty"`// ProductId: The id of the product (e.g. "app:com.google.android.gm") for// which new permissions were added. This field will always be present.ProductIdstring `json:"productId,omitempty"`// RequestedPermissions: The set of permissions that the app is currently// requesting. Use Permissions.Get on the EMM API to retrieve details about// these permissions.RequestedPermissions []string `json:"requestedPermissions,omitempty"`// ForceSendFields is a list of field names (e.g. "ApprovedPermissions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApprovedPermissions") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

NewPermissionsEvent: An event generated when new permissions are added to anapp.

func (NewPermissionsEvent)MarshalJSON

func (sNewPermissionsEvent) MarshalJSON() ([]byte,error)

typeNotification

type Notification struct {// AppRestrictionsSchemaChangeEvent: Notifications about new app restrictions// schema changes.AppRestrictionsSchemaChangeEvent *AppRestrictionsSchemaChangeEvent `json:"appRestrictionsSchemaChangeEvent,omitempty"`// AppUpdateEvent: Notifications about app updates.AppUpdateEvent *AppUpdateEvent `json:"appUpdateEvent,omitempty"`// DeviceReportUpdateEvent: Notifications about device report updates.DeviceReportUpdateEvent *DeviceReportUpdateEvent `json:"deviceReportUpdateEvent,omitempty"`// EnterpriseId: The ID of the enterprise for which the notification is sent.// This will always be present.EnterpriseIdstring `json:"enterpriseId,omitempty"`// EnterpriseUpgradeEvent: Notifications about enterprise upgrade.EnterpriseUpgradeEvent *EnterpriseUpgradeEvent `json:"enterpriseUpgradeEvent,omitempty"`// InstallFailureEvent: Notifications about an app installation failure.InstallFailureEvent *InstallFailureEvent `json:"installFailureEvent,omitempty"`// NewDeviceEvent: Notifications about new devices.NewDeviceEvent *NewDeviceEvent `json:"newDeviceEvent,omitempty"`// NewPermissionsEvent: Notifications about new app permissions.NewPermissionsEvent *NewPermissionsEvent `json:"newPermissionsEvent,omitempty"`// NotificationType: Type of the notification.//// Possible values://   "unknown"//   "testNotification" - A test push notification.//   "productApproval" - Notification about change to a product's approval// status.//   "installFailure" - Notification about an app installation failure.//   "appUpdate" - Notification about app update.//   "newPermissions" - Notification about new app permissions.//   "appRestricionsSchemaChange" - Notification about new app restrictions// schema change.//   "productAvailabilityChange" - Notification about product availability// change.//   "newDevice" - Notification about a new device.//   "deviceReportUpdate" - Notification about an updated device report.//   "enterpriseUpgrade" - Notification about an enterprise upgrade.NotificationTypestring `json:"notificationType,omitempty"`// ProductApprovalEvent: Notifications about changes to a product's approval// status.ProductApprovalEvent *ProductApprovalEvent `json:"productApprovalEvent,omitempty"`// ProductAvailabilityChangeEvent: Notifications about product availability// changes.ProductAvailabilityChangeEvent *ProductAvailabilityChangeEvent `json:"productAvailabilityChangeEvent,omitempty"`// TimestampMillis: The time when the notification was published in// milliseconds since 1970-01-01T00:00:00Z. This will always be present.TimestampMillisint64 `json:"timestampMillis,omitempty,string"`// ForceSendFields is a list of field names (e.g.// "AppRestrictionsSchemaChangeEvent") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g.// "AppRestrictionsSchemaChangeEvent") to include in API requests with the JSON// null value. By default, fields with empty values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-NullFields for// more details.NullFields []string `json:"-"`}

Notification: A notification of one event relating to an enterprise.

func (Notification)MarshalJSON

func (sNotification) MarshalJSON() ([]byte,error)

typeNotificationSet

type NotificationSet struct {// Notification: The notifications received, or empty if no notifications are// present.Notification []*Notification `json:"notification,omitempty"`// NotificationSetId: The notification set ID, required to mark the// notification as received with the Enterprises.AcknowledgeNotification API.// This will be omitted if no notifications are present.NotificationSetIdstring `json:"notificationSetId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Notification") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Notification") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

NotificationSet: A resource returned by the PullNotificationSet API, whichcontains a collection of notifications for enterprises associated with theservice account authenticated for the request.

func (NotificationSet)MarshalJSON

func (sNotificationSet) MarshalJSON() ([]byte,error)

typePageInfo

type PageInfo struct {// ResultPerPage: Maximum number of results returned in one page. ! The number// of results included in the API response.ResultPerPageint64 `json:"resultPerPage,omitempty"`// StartIndex: Index of the first result returned in the current page.StartIndexint64 `json:"startIndex,omitempty"`// TotalResults: Total number of results available on the backend ! The total// number of results in the result set.TotalResultsint64 `json:"totalResults,omitempty"`// ForceSendFields is a list of field names (e.g. "ResultPerPage") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResultPerPage") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

PageInfo: Information about the current page. List operations that supportspaging return only one "page" of results. This protocol buffer messagedescribes the page that has been returned.

func (PageInfo)MarshalJSON

func (sPageInfo) MarshalJSON() ([]byte,error)

typePermission

type Permission struct {// Description: A longer description of the Permissions resource, giving more// details of what it affects.Descriptionstring `json:"description,omitempty"`// Name: The name of the permission.Namestring `json:"name,omitempty"`// PermissionId: An opaque string uniquely identifying the permission.PermissionIdstring `json:"permissionId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Permission: A Permissions resource represents some extra capability, to begranted to an Android app, which requires explicit consent. An enterpriseadmin must consent to these permissions on behalf of their users before anentitlement for the app can be created. The permissions collection isread-only. The information provided for each permission (localized name anddescription) is intended to be used in the MDM user interface when obtainingconsent from the enterprise.

func (Permission)MarshalJSON

func (sPermission) MarshalJSON() ([]byte,error)

typePermissionsGetCall

type PermissionsGetCall struct {// contains filtered or unexported fields}

func (*PermissionsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*PermissionsGetCall)Do

Do executes the "androidenterprise.permissions.get" call.Any non-2xx status code is an error. Response headers are in either*Permission.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*PermissionsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*PermissionsGetCall)Header

func (c *PermissionsGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*PermissionsGetCall)IfNoneMatch

func (c *PermissionsGetCall) IfNoneMatch(entityTagstring) *PermissionsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*PermissionsGetCall)Language

func (c *PermissionsGetCall) Language(languagestring) *PermissionsGetCall

Language sets the optional parameter "language": The BCP47 tag for theuser's preferred language (e.g. "en-US", "de")

typePermissionsService

type PermissionsService struct {// contains filtered or unexported fields}

funcNewPermissionsService

func NewPermissionsService(s *Service) *PermissionsService

func (*PermissionsService)Get

func (r *PermissionsService) Get(permissionIdstring) *PermissionsGetCall

Get: Retrieves details of an Android app permission for display to anenterprise admin.

- permissionId: The ID of the permission.

typePolicy

type Policy struct {// AutoUpdatePolicy: Controls when automatic app updates on the device can be// applied. Recommended alternative: autoUpdateMode which is set per app,// provides greater flexibility around update frequency. When autoUpdateMode is// set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, autoUpdatePolicy// has no effect. - choiceToTheUser allows the device's user to configure the// app update policy. - always enables auto updates. - never disables auto// updates. - wifiOnly enables auto updates only when the device is connected// to wifi. *Important:* Changes to app update policies don't affect updates// that are in progress. Any policy changes will apply to subsequent app// updates.//// Possible values://   "autoUpdatePolicyUnspecified" - The auto update policy is not set.//   "choiceToTheUser" - The user can control auto-updates.//   "never" - Apps are never auto-updated.//   "wifiOnly" - Apps are auto-updated over WiFi only.//   "always" - Apps are auto-updated at any time. Data charges may apply.AutoUpdatePolicystring `json:"autoUpdatePolicy,omitempty"`// DeviceReportPolicy: Whether the device reports app states to the EMM. The// default value is "deviceReportDisabled".//// Possible values://   "deviceReportPolicyUnspecified" - The device report policy is not set.//   "deviceReportDisabled" - Device reports are disabled.//   "deviceReportEnabled" - Device reports are enabled.DeviceReportPolicystring `json:"deviceReportPolicy,omitempty"`// MaintenanceWindow: The maintenance window defining when apps running in the// foreground should be updated.MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`// PolicyId: An identifier for the policy that will be passed with the app// install feedback sent from the Play Store.PolicyIdstring `json:"policyId,omitempty"`// ProductAvailabilityPolicy: The availability granted to the device for the// specified products. "all" gives the device access to all products,// regardless of approval status. "all" does not enable automatic visibility of// "alpha" or "beta" tracks. "whitelist" grants the device access the products// specified in productPolicy[]. Only products that are approved or products// that were previously approved (products with revoked approval) by the// enterprise can be whitelisted. If no value is provided, the availability set// at the user level is applied by default.//// Possible values://   "productAvailabilityPolicyUnspecified" - Unspecified, applies the user// available product set by default.//   "whitelist" - The approved products with product availability set to// AVAILABLE in the product policy are available.//   "all" - All products are available except those explicitly marked as// unavailable in the product availability policy.ProductAvailabilityPolicystring `json:"productAvailabilityPolicy,omitempty"`// ProductPolicy: The list of product policies. The productAvailabilityPolicy// needs to be set to WHITELIST or ALL for the product policies to be applied.ProductPolicy []*ProductPolicy `json:"productPolicy,omitempty"`// ForceSendFields is a list of field names (e.g. "AutoUpdatePolicy") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AutoUpdatePolicy") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Policy: The device policy for a given managed device.

func (Policy)MarshalJSON

func (sPolicy) MarshalJSON() ([]byte,error)

typeProduct

type Product struct {// AppRestrictionsSchema: The app restriction schemaAppRestrictionsSchema *AppRestrictionsSchema `json:"appRestrictionsSchema,omitempty"`// AppTracks: The tracks visible to the enterprise.AppTracks []*TrackInfo `json:"appTracks,omitempty"`// AppVersion: App versions currently available for this product.AppVersion []*AppVersion `json:"appVersion,omitempty"`// AuthorName: The name of the author of the product (for example, the app// developer).AuthorNamestring `json:"authorName,omitempty"`// AvailableCountries: The countries which this app is available in.AvailableCountries []string `json:"availableCountries,omitempty"`// AvailableTracks: Deprecated, use appTracks instead.//// Possible values://   "appTrackUnspecified"//   "production"//   "beta"//   "alpha"AvailableTracks []string `json:"availableTracks,omitempty"`// Category: The app category (e.g. RACING, SOCIAL, etc.)Categorystring `json:"category,omitempty"`// ContentRating: The content rating for this app.//// Possible values://   "ratingUnknown"//   "all"//   "preTeen"//   "teen"//   "mature"ContentRatingstring `json:"contentRating,omitempty"`// Description: The localized promotional description, if available.Descriptionstring `json:"description,omitempty"`// DetailsUrl: A link to the (consumer) Google Play details page for the// product.DetailsUrlstring `json:"detailsUrl,omitempty"`// DistributionChannel: How and to whom the package is made available. The// value publicGoogleHosted means that the package is available through the// Play store and not restricted to a specific enterprise. The value// privateGoogleHosted means that the package is a private app (restricted to// an enterprise) but hosted by Google. The value privateSelfHosted means that// the package is a private app (restricted to an enterprise) and is privately// hosted.//// Possible values://   "publicGoogleHosted"//   "privateGoogleHosted"//   "privateSelfHosted"DistributionChannelstring `json:"distributionChannel,omitempty"`// Features: Noteworthy features (if any) of this product.//// Possible values://   "featureUnknown"//   "vpnApp" - The app is a VPN.Features []string `json:"features,omitempty"`// FullDescription: The localized full app store description, if available.FullDescriptionstring `json:"fullDescription,omitempty"`// IconUrl: A link to an image that can be used as an icon for the product.// This image is suitable for use at up to 512px x 512px.IconUrlstring `json:"iconUrl,omitempty"`// LastUpdatedTimestampMillis: The approximate time (within 7 days) the app was// last published, expressed in milliseconds since epoch.LastUpdatedTimestampMillisint64 `json:"lastUpdatedTimestampMillis,omitempty,string"`// MinAndroidSdkVersion: The minimum Android SDK necessary to run the app.MinAndroidSdkVersionint64 `json:"minAndroidSdkVersion,omitempty"`// Permissions: A list of permissions required by the app.Permissions []*ProductPermission `json:"permissions,omitempty"`// ProductId: A string of the form *app:<package name>*. For example,// app:com.google.android.gm represents the Gmail app.ProductIdstring `json:"productId,omitempty"`// ProductPricing: Whether this product is free, free with in-app purchases, or// paid. If the pricing is unknown, this means the product is not generally// available anymore (even though it might still be available to people who own// it).//// Possible values://   "unknown" - Unknown pricing, used to denote an approved product that is// not generally available.//   "free" - The product is free.//   "freeWithInAppPurchase" - The product is free, but offers in-app// purchases.//   "paid" - The product is paid.ProductPricingstring `json:"productPricing,omitempty"`// RecentChanges: A description of the recent changes made to the app.RecentChangesstring `json:"recentChanges,omitempty"`// RequiresContainerApp: Deprecated.RequiresContainerAppbool `json:"requiresContainerApp,omitempty"`// ScreenshotUrls: A list of screenshot links representing the app.ScreenshotUrls []string `json:"screenshotUrls,omitempty"`// SigningCertificate: The certificate used to sign this product.SigningCertificate *ProductSigningCertificate `json:"signingCertificate,omitempty"`// SmallIconUrl: A link to a smaller image that can be used as an icon for the// product. This image is suitable for use at up to 128px x 128px.SmallIconUrlstring `json:"smallIconUrl,omitempty"`// Title: The name of the product.Titlestring `json:"title,omitempty"`// WorkDetailsUrl: A link to the managed Google Play details page for the// product, for use by an Enterprise admin.WorkDetailsUrlstring `json:"workDetailsUrl,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AppRestrictionsSchema") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AppRestrictionsSchema") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

Product: A Products resource represents an app in the Google Play store thatis available to at least some users in the enterprise. (Some apps arerestricted to a single enterprise, and no information about them is madeavailable outside that enterprise.) The information provided for eachproduct (localized name, icon, link to the full Google Play details page) isintended to allow a basic representation of the product within an EMM userinterface.

func (Product)MarshalJSON

func (sProduct) MarshalJSON() ([]byte,error)

typeProductApprovalEvent

type ProductApprovalEvent struct {// Approved: Whether the product was approved or unapproved. This field will// always be present.//// Possible values://   "unknown" - Conveys no information.//   "approved" - The product was approved.//   "unapproved" - The product was unapproved.Approvedstring `json:"approved,omitempty"`// ProductId: The id of the product (e.g. "app:com.google.android.gm") for// which the approval status has changed. This field will always be present.ProductIdstring `json:"productId,omitempty"`// ForceSendFields is a list of field names (e.g. "Approved") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Approved") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ProductApprovalEvent: An event generated when a product's approval status ischanged.

func (ProductApprovalEvent)MarshalJSON

func (sProductApprovalEvent) MarshalJSON() ([]byte,error)

typeProductAvailabilityChangeEvent

type ProductAvailabilityChangeEvent struct {// AvailabilityStatus: The new state of the product. This field will always be// present.//// Possible values://   "unknown" - Conveys no information.//   "available" - The previously unavailable product is again available on// Google Play.//   "removed" - The product was removed from Google Play.//   "unpublished" - The product was unpublished by the developer.AvailabilityStatusstring `json:"availabilityStatus,omitempty"`// ProductId: The id of the product (e.g. "app:com.google.android.gm") for// which the product availability changed. This field will always be present.ProductIdstring `json:"productId,omitempty"`// ForceSendFields is a list of field names (e.g. "AvailabilityStatus") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AvailabilityStatus") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ProductAvailabilityChangeEvent: An event generated whenever a product'savailability changes.

func (ProductAvailabilityChangeEvent)MarshalJSON

func (sProductAvailabilityChangeEvent) MarshalJSON() ([]byte,error)

typeProductPermission

type ProductPermission struct {// PermissionId: An opaque string uniquely identifying the permission.PermissionIdstring `json:"permissionId,omitempty"`// State: Whether the permission has been accepted or not.//// Possible values://   "required" - The permission is required by the app but has not yet been// accepted by the enterprise.//   "accepted" - The permission has been accepted by the enterprise.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "PermissionId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PermissionId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ProductPermission: A product permissions resource represents the set ofpermissions required by a specific app and whether or not they have beenaccepted by an enterprise admin. The API can be used to read the set ofpermissions, and also to update the set to indicate that permissions havebeen accepted.

func (ProductPermission)MarshalJSON

func (sProductPermission) MarshalJSON() ([]byte,error)

typeProductPermissions

type ProductPermissions struct {// Permission: The permissions required by the app.Permission []*ProductPermission `json:"permission,omitempty"`// ProductId: The ID of the app that the permissions relate to, e.g.// "app:com.google.android.gm".ProductIdstring `json:"productId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Permission") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Permission") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ProductPermissions: Information about the permissions required by a specificapp and whether they have been accepted by the enterprise.

func (ProductPermissions)MarshalJSON

func (sProductPermissions) MarshalJSON() ([]byte,error)

typeProductPolicy

type ProductPolicy struct {// AutoInstallPolicy: The auto-install policy for the product.AutoInstallPolicy *AutoInstallPolicy `json:"autoInstallPolicy,omitempty"`// AutoUpdateMode: The auto-update mode for the product. When autoUpdateMode is// used, it always takes precedence over the user's choice. So when a user// makes changes to the device settings manually, these changes are ignored.//// Possible values://   "autoUpdateModeUnspecified" - Unspecified. Defaults to// AUTO_UPDATE_DEFAULT.//   "autoUpdateDefault" - The app is automatically updated with low priority// to minimize the impact on the user. The app is updated when the following// constraints are met: * The device is not actively used * The device is// connected to an unmetered network * The device is charging The device is// notified about a new update within 24 hours after it is published by the// developer, after which the app is updated the next time the constraints// above are met.//   "autoUpdatePostponed" - The app is not automatically updated for a maximum// of 90 days after the app becomes out of date. 90 days after the app becomes// out of date, the latest available version is installed automatically with// low priority (see AUTO_UPDATE_DEFAULT). After the app is updated it is not// automatically updated again until 90 days after it becomes out of date// again. The user can still manually update the app from the Play Store at any// time.//   "autoUpdateHighPriority" - The app is updated as soon as possible. No// constraints are applied. The device is notified as soon as possible about a// new app update after it is published by the developer.AutoUpdateModestring `json:"autoUpdateMode,omitempty"`// EnterpriseAuthenticationAppLinkConfigs: An authentication URL configuration// for the authenticator app of an identity provider. This helps to launch the// identity provider's authenticator app during the authentication happening in// a private app using Android WebView. Authenticator app should already be the// default handler for the authentication url on the device.EnterpriseAuthenticationAppLinkConfigs []*EnterpriseAuthenticationAppLinkConfig `json:"enterpriseAuthenticationAppLinkConfigs,omitempty"`// ManagedConfiguration: The managed configuration for the product.ManagedConfiguration *ManagedConfiguration `json:"managedConfiguration,omitempty"`// ProductId: The ID of the product. For example, "app:com.google.android.gm".ProductIdstring `json:"productId,omitempty"`// TrackIds: Grants the device visibility to the specified product release// track(s), identified by trackIds. The list of release tracks of a product// can be obtained by calling Products.Get.TrackIds []string `json:"trackIds,omitempty"`// Tracks: Deprecated. Use trackIds instead.//// Possible values://   "appTrackUnspecified"//   "production"//   "beta"//   "alpha"Tracks []string `json:"tracks,omitempty"`// ForceSendFields is a list of field names (e.g. "AutoInstallPolicy") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AutoInstallPolicy") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ProductPolicy: The policy for a product.

func (ProductPolicy)MarshalJSON

func (sProductPolicy) MarshalJSON() ([]byte,error)

typeProductSet

type ProductSet struct {// ProductId: The list of product IDs making up the set of products.ProductId []string `json:"productId,omitempty"`// ProductSetBehavior: The interpretation of this product set. "unknown" should// never be sent and is ignored if received. "whitelist" means that the user is// entitled to access the product set. "includeAll" means that all products are// accessible, including products that are approved, products with revoked// approval, and products that have never been approved. "allApproved" means// that the user is entitled to access all products that are approved for the// enterprise. If the value is "allApproved" or "includeAll", the productId// field is ignored. If no value is provided, it is interpreted as "whitelist"// for backwards compatibility. Further "allApproved" or "includeAll" does not// enable automatic visibility of "alpha" or "beta" tracks for Android app. Use// ProductVisibility to enable "alpha" or "beta" tracks per user.//// Possible values://   "unknown" - This value should never be sent and ignored if received.//   "whitelist" - This product set constitutes a whitelist.//   "includeAll" - This product set represents all products. For Android app// it represents only "production" track. (The value of the productId field is// therefore ignored).//   "allApproved" - This product set represents all approved products. For// Android app it represents only "production" track. (The value of the// product_id field is therefore ignored).ProductSetBehaviorstring `json:"productSetBehavior,omitempty"`// ProductVisibility: Additional list of product IDs making up the product set.// Unlike the productID array, in this list It's possible to specify which// tracks (alpha, beta, production) of a product are visible to the user. See// ProductVisibility and its fields for more information. Specifying the same// product ID both here and in the productId array is not allowed and it will// result in an error.ProductVisibility []*ProductVisibility `json:"productVisibility,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ProductId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ProductId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ProductSet: A set of products.

func (ProductSet)MarshalJSON

func (sProductSet) MarshalJSON() ([]byte,error)

typeProductSigningCertificate

type ProductSigningCertificate struct {// CertificateHashSha1: The base64 urlsafe encoded SHA1 hash of the// certificate. (This field is deprecated in favor of SHA2-256. It should not// be used and may be removed at any time.)CertificateHashSha1string `json:"certificateHashSha1,omitempty"`// CertificateHashSha256: The base64 urlsafe encoded SHA2-256 hash of the// certificate.CertificateHashSha256string `json:"certificateHashSha256,omitempty"`// ForceSendFields is a list of field names (e.g. "CertificateHashSha1") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CertificateHashSha1") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (ProductSigningCertificate)MarshalJSON

func (sProductSigningCertificate) MarshalJSON() ([]byte,error)

typeProductVisibility

type ProductVisibility struct {// ProductId: The product ID to make visible to the user. Required for each// item in the productVisibility list.ProductIdstring `json:"productId,omitempty"`// TrackIds: Grants the user visibility to the specified product track(s),// identified by trackIds.TrackIds []string `json:"trackIds,omitempty"`// Tracks: Deprecated. Use trackIds instead.//// Possible values://   "appTrackUnspecified"//   "production"//   "beta"//   "alpha"Tracks []string `json:"tracks,omitempty"`// ForceSendFields is a list of field names (e.g. "ProductId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ProductId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ProductVisibility: A product to be made visible to a user.

func (ProductVisibility)MarshalJSON

func (sProductVisibility) MarshalJSON() ([]byte,error)

typeProductsApproveCall

type ProductsApproveCall struct {// contains filtered or unexported fields}

func (*ProductsApproveCall)Context

Context sets the context to be used in this call's Do method.

func (*ProductsApproveCall)Do

Do executes the "androidenterprise.products.approve" call.

func (*ProductsApproveCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProductsApproveCall)Header

func (c *ProductsApproveCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeProductsApproveRequest

type ProductsApproveRequest struct {// ApprovalUrlInfo: The approval URL that was shown to the user. Only the// permissions shown to the user with that URL will be accepted, which may not// be the product's entire set of permissions. For example, the URL may only// display new permissions from an update after the product was approved, or// not include new permissions if the product was updated since the URL was// generated.ApprovalUrlInfo *ApprovalUrlInfo `json:"approvalUrlInfo,omitempty"`// ApprovedPermissions: Sets how new permission requests for the product are// handled. "allPermissions" automatically approves all current and future// permissions for the product. "currentPermissionsOnly" approves the current// set of permissions for the product, but any future permissions added through// updates will require manual reapproval. If not specified, only the current// set of permissions will be approved.//// Possible values://   "currentPermissionsOnly" - Approve only the permissions the product// requires at approval time. If an update requires additional permissions, the// app will not be updated on devices associated with enterprise users until// the additional permissions are approved.//   "allPermissions" - All current and future permissions the app requires are// automatically approved.ApprovedPermissionsstring `json:"approvedPermissions,omitempty"`// ForceSendFields is a list of field names (e.g. "ApprovalUrlInfo") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApprovalUrlInfo") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (ProductsApproveRequest)MarshalJSON

func (sProductsApproveRequest) MarshalJSON() ([]byte,error)

typeProductsGenerateApprovalUrlCall

type ProductsGenerateApprovalUrlCall struct {// contains filtered or unexported fields}

func (*ProductsGenerateApprovalUrlCall)Context

Context sets the context to be used in this call's Do method.

func (*ProductsGenerateApprovalUrlCall)Do

Do executes the "androidenterprise.products.generateApprovalUrl" call.Any non-2xx status code is an error. Response headers are in either*ProductsGenerateApprovalUrlResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ProductsGenerateApprovalUrlCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProductsGenerateApprovalUrlCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProductsGenerateApprovalUrlCall)LanguageCode

LanguageCode sets the optional parameter "languageCode": The BCP 47 languagecode used for permission names and descriptions in the returned iframe, forinstance "en-US".

typeProductsGenerateApprovalUrlResponse

type ProductsGenerateApprovalUrlResponse struct {// Url: A URL that can be rendered in an iframe to display the permissions (if// any) of a product. This URL can be used to approve the product only once and// only within 24 hours of being generated, using the Products.approve call. If// the product is currently unapproved and has no permissions, this URL will// point to an empty page. If the product is currently approved, a URL will// only be generated if that product has added permissions since it was last// approved, and the URL will only display those new permissions that have not// yet been accepted.Urlstring `json:"url,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Url") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Url") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (ProductsGenerateApprovalUrlResponse)MarshalJSON

typeProductsGetAppRestrictionsSchemaCall

type ProductsGetAppRestrictionsSchemaCall struct {// contains filtered or unexported fields}

func (*ProductsGetAppRestrictionsSchemaCall)Context

Context sets the context to be used in this call's Do method.

func (*ProductsGetAppRestrictionsSchemaCall)Do

Do executes the "androidenterprise.products.getAppRestrictionsSchema" call.Any non-2xx status code is an error. Response headers are in either*AppRestrictionsSchema.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProductsGetAppRestrictionsSchemaCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProductsGetAppRestrictionsSchemaCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProductsGetAppRestrictionsSchemaCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProductsGetAppRestrictionsSchemaCall)Language

Language sets the optional parameter "language": The BCP47 tag for theuser's preferred language (e.g. "en-US", "de").

typeProductsGetCall

type ProductsGetCall struct {// contains filtered or unexported fields}

func (*ProductsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*ProductsGetCall)Do

Do executes the "androidenterprise.products.get" call.Any non-2xx status code is an error. Response headers are in either*Product.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*ProductsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProductsGetCall)Header

func (c *ProductsGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProductsGetCall)IfNoneMatch

func (c *ProductsGetCall) IfNoneMatch(entityTagstring) *ProductsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProductsGetCall)Language

func (c *ProductsGetCall) Language(languagestring) *ProductsGetCall

Language sets the optional parameter "language": The BCP47 tag for theuser's preferred language (e.g. "en-US", "de").

typeProductsGetPermissionsCall

type ProductsGetPermissionsCall struct {// contains filtered or unexported fields}

func (*ProductsGetPermissionsCall)Context

Context sets the context to be used in this call's Do method.

func (*ProductsGetPermissionsCall)Do

Do executes the "androidenterprise.products.getPermissions" call.Any non-2xx status code is an error. Response headers are in either*ProductPermissions.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProductsGetPermissionsCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProductsGetPermissionsCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProductsGetPermissionsCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeProductsListCall

type ProductsListCall struct {// contains filtered or unexported fields}

func (*ProductsListCall)Approved

func (c *ProductsListCall) Approved(approvedbool) *ProductsListCall

Approved sets the optional parameter "approved": Specifies whether to searchamong all products (false) or among only products that have been approved(true). Only "true" is supported, and should be specified.

func (*ProductsListCall)Context

Context sets the context to be used in this call's Do method.

func (*ProductsListCall)Do

Do executes the "androidenterprise.products.list" call.Any non-2xx status code is an error. Response headers are in either*ProductsListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ProductsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProductsListCall)Header

func (c *ProductsListCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ProductsListCall)IfNoneMatch

func (c *ProductsListCall) IfNoneMatch(entityTagstring) *ProductsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

func (*ProductsListCall)Language

func (c *ProductsListCall) Language(languagestring) *ProductsListCall

Language sets the optional parameter "language": The BCP47 tag for theuser's preferred language (e.g. "en-US", "de"). Results are returned in thelanguage best matching the preferred language.

func (*ProductsListCall)MaxResults

func (c *ProductsListCall) MaxResults(maxResultsint64) *ProductsListCall

MaxResults sets the optional parameter "maxResults": Defines how manyresults the list operation should return. The default number depends on theresource collection.

func (*ProductsListCall)Query

Query sets the optional parameter "query": The search query as typed in theGoogle Play store search box. If omitted, all approved apps will be returned(using the pagination parameters), including apps that are not available inthe store (e.g. unpublished apps).

func (*ProductsListCall)Token

Token sets the optional parameter "token": Defines the token of the page toreturn, usually taken from TokenPagination. This can only be used if tokenpaging is enabled.

typeProductsListResponse

type ProductsListResponse struct {// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`// Product: Information about a product (e.g. an app) in the Google Play store,// for display to an enterprise admin.Product []*Product `json:"product,omitempty"`// TokenPagination: Pagination information for token pagination.TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "PageInfo") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PageInfo") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (ProductsListResponse)MarshalJSON

func (sProductsListResponse) MarshalJSON() ([]byte,error)

typeProductsService

type ProductsService struct {// contains filtered or unexported fields}

funcNewProductsService

func NewProductsService(s *Service) *ProductsService

func (*ProductsService)Approve

func (r *ProductsService) Approve(enterpriseIdstring, productIdstring, productsapproverequest *ProductsApproveRequest) *ProductsApproveCall

Approve: Approves the specified product and the relevant app permissions,if any. The maximum number of products that you can approve per enterprisecustomer is 1,000. To learn how to use managed Google Play to design andcreate a store layout to display approved products to your users, see StoreLayout Design. **Note:** This item has been deprecated. New integrationscannot use this method and can refer to our new recommendations.

- enterpriseId: The ID of the enterprise.- productId: The ID of the product.

func (*ProductsService)GenerateApprovalUrl

func (r *ProductsService) GenerateApprovalUrl(enterpriseIdstring, productIdstring) *ProductsGenerateApprovalUrlCall

GenerateApprovalUrl: Generates a URL that can be rendered in an iframe todisplay the permissions (if any) of a product. An enterprise admin must viewthese permissions and accept them on behalf of their organization in orderto approve that product. Admins should accept the displayed permissions byinteracting with a separate UI element in the EMM console, which in turnshould trigger the use of this URL as the approvalUrlInfo.approvalUrlproperty in a Products.approve call to approve the product. This URL canonly be used to display permissions for up to 1 day. **Note:** This item hasbeen deprecated. New integrations cannot use this method and can refer toour new recommendations.

- enterpriseId: The ID of the enterprise.- productId: The ID of the product.

func (*ProductsService)Get

func (r *ProductsService) Get(enterpriseIdstring, productIdstring) *ProductsGetCall

Get: Retrieves details of a product for display to an enterprise admin.

- enterpriseId: The ID of the enterprise.- productId: The ID of the product, e.g. "app:com.google.android.gm".

func (*ProductsService)GetAppRestrictionsSchema

func (r *ProductsService) GetAppRestrictionsSchema(enterpriseIdstring, productIdstring) *ProductsGetAppRestrictionsSchemaCall

GetAppRestrictionsSchema: Retrieves the schema that defines the configurableproperties for this product. All products have a schema, but this schema maybe empty if no managed configurations have been defined. This schema can beused to populate a UI that allows an admin to configure the product. Toapply a managed configuration based on the schema obtained using this API,see Managed Configurations through Play.

- enterpriseId: The ID of the enterprise.- productId: The ID of the product.

func (*ProductsService)GetPermissions

func (r *ProductsService) GetPermissions(enterpriseIdstring, productIdstring) *ProductsGetPermissionsCall

GetPermissions: Retrieves the Android app permissions required by this app.

- enterpriseId: The ID of the enterprise.- productId: The ID of the product.

func (*ProductsService)List

func (r *ProductsService) List(enterpriseIdstring) *ProductsListCall

List: Finds approved products that match a query, or all approved productsif there is no query. **Note:** This item has been deprecated. Newintegrations cannot use this method and can refer to our newrecommendations.

- enterpriseId: The ID of the enterprise.

func (*ProductsService)Unapprove

func (r *ProductsService) Unapprove(enterpriseIdstring, productIdstring) *ProductsUnapproveCall

Unapprove: Unapproves the specified product (and the relevant apppermissions, if any) **Note:** This item has been deprecated. Newintegrations cannot use this method and can refer to our newrecommendations.

- enterpriseId: The ID of the enterprise.- productId: The ID of the product.

typeProductsUnapproveCall

type ProductsUnapproveCall struct {// contains filtered or unexported fields}

func (*ProductsUnapproveCall)Context

Context sets the context to be used in this call's Do method.

func (*ProductsUnapproveCall)Do

Do executes the "androidenterprise.products.unapprove" call.

func (*ProductsUnapproveCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ProductsUnapproveCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeService

type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentDevices *DevicesServiceEnrollmentTokens *EnrollmentTokensServiceEnterprises *EnterprisesServiceEntitlements *EntitlementsServiceGrouplicenses *GrouplicensesServiceGrouplicenseusers *GrouplicenseusersServiceInstalls *InstallsServiceManagedconfigurationsfordevice *ManagedconfigurationsfordeviceServiceManagedconfigurationsforuser *ManagedconfigurationsforuserServiceManagedconfigurationssettings *ManagedconfigurationssettingsServicePermissions *PermissionsServiceProducts *ProductsServiceServiceaccountkeys *ServiceaccountkeysServiceStorelayoutclusters *StorelayoutclustersServiceStorelayoutpages *StorelayoutpagesServiceUsers *UsersServiceWebapps *WebappsService// contains filtered or unexported fields}

funcNewdeprecated

func New(client *http.Client) (*Service,error)

New creates a new Service. It uses the provided http.Client for requests.

Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.

funcNewServiceadded inv0.3.0

func NewService(ctxcontext.Context, opts ...option.ClientOption) (*Service,error)

NewService creates a new Service.

typeServiceAccount

type ServiceAccount struct {// Key: Credentials that can be used to authenticate as this ServiceAccount.Key *ServiceAccountKey `json:"key,omitempty"`// Name: The account name of the service account, in the form of an email// address. Assigned by the server.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Key") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Key") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ServiceAccount: A service account identity, including the name andcredentials that can be used to authenticate as the service account.

func (ServiceAccount)MarshalJSON

func (sServiceAccount) MarshalJSON() ([]byte,error)

typeServiceAccountKey

type ServiceAccountKey struct {// Data: The body of the private key credentials file, in string format. This// is only populated when the ServiceAccountKey is created, and is not stored// by Google.Datastring `json:"data,omitempty"`// Id: An opaque, unique identifier for this ServiceAccountKey. Assigned by the// server.Idstring `json:"id,omitempty"`// PublicData: Public key data for the credentials file. This is an X.509 cert.// If you are using the googleCredentials key type, this is identical to the// cert that can be retrieved by using the X.509 cert url inside of the// credentials file.PublicDatastring `json:"publicData,omitempty"`// Type: The file format of the generated key data.//// Possible values://   "googleCredentials" - Google Credentials File format.//   "pkcs12" - PKCS12 format. The password for the PKCS12 file is// 'notasecret'. For more information, seehttps://tools.ietf.org/html/rfc7292.// The data for keys of this type are base64 encoded according toRFC 4648// Section 4. Seehttp://tools.ietf.org/html/rfc4648#section-4.Typestring `json:"type,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Data") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Data") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

ServiceAccountKey: *Deprecated:* New integrations cannot use this methodand can refer to our new recommendations

func (ServiceAccountKey)MarshalJSON

func (sServiceAccountKey) MarshalJSON() ([]byte,error)

typeServiceAccountKeysListResponse

type ServiceAccountKeysListResponse struct {// ServiceAccountKey: The service account credentials.ServiceAccountKey []*ServiceAccountKey `json:"serviceAccountKey,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ServiceAccountKey") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ServiceAccountKey") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (ServiceAccountKeysListResponse)MarshalJSON

func (sServiceAccountKeysListResponse) MarshalJSON() ([]byte,error)

typeServiceaccountkeysDeleteCall

type ServiceaccountkeysDeleteCall struct {// contains filtered or unexported fields}

func (*ServiceaccountkeysDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*ServiceaccountkeysDeleteCall)Do

Do executes the "androidenterprise.serviceaccountkeys.delete" call.

func (*ServiceaccountkeysDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ServiceaccountkeysDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeServiceaccountkeysInsertCall

type ServiceaccountkeysInsertCall struct {// contains filtered or unexported fields}

func (*ServiceaccountkeysInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*ServiceaccountkeysInsertCall)Do

Do executes the "androidenterprise.serviceaccountkeys.insert" call.Any non-2xx status code is an error. Response headers are in either*ServiceAccountKey.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*ServiceaccountkeysInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ServiceaccountkeysInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeServiceaccountkeysListCall

type ServiceaccountkeysListCall struct {// contains filtered or unexported fields}

func (*ServiceaccountkeysListCall)Context

Context sets the context to be used in this call's Do method.

func (*ServiceaccountkeysListCall)Do

Do executes the "androidenterprise.serviceaccountkeys.list" call.Any non-2xx status code is an error. Response headers are in either*ServiceAccountKeysListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*ServiceaccountkeysListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*ServiceaccountkeysListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*ServiceaccountkeysListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeServiceaccountkeysService

type ServiceaccountkeysService struct {// contains filtered or unexported fields}

funcNewServiceaccountkeysService

func NewServiceaccountkeysService(s *Service) *ServiceaccountkeysService

func (*ServiceaccountkeysService)Delete

Delete: Removes and invalidates the specified credentials for the serviceaccount associated with this enterprise. The calling service account musthave been retrieved by calling Enterprises.GetServiceAccount and must havebeen set as the enterprise service account by callingEnterprises.SetAccount.

- enterpriseId: The ID of the enterprise.- keyId: The ID of the key.

func (*ServiceaccountkeysService)Insert

func (r *ServiceaccountkeysService) Insert(enterpriseIdstring, serviceaccountkey *ServiceAccountKey) *ServiceaccountkeysInsertCall

Insert: Generates new credentials for the service account associated withthis enterprise. The calling service account must have been retrieved bycalling Enterprises.GetServiceAccount and must have been set as theenterprise service account by calling Enterprises.SetAccount. Only the typeof the key should be populated in the resource to be inserted.

- enterpriseId: The ID of the enterprise.

func (*ServiceaccountkeysService)List

List: Lists all active credentials for the service account associated withthis enterprise. Only the ID and key type are returned. The calling serviceaccount must have been retrieved by calling Enterprises.GetServiceAccountand must have been set as the enterprise service account by callingEnterprises.SetAccount.

- enterpriseId: The ID of the enterprise.

typeSignupInfo

type SignupInfo struct {// CompletionToken: An opaque token that will be required, along with the// Enterprise Token, for obtaining the enterprise resource from CompleteSignup.CompletionTokenstring `json:"completionToken,omitempty"`// Kind: Deprecated.Kindstring `json:"kind,omitempty"`// Url: A URL under which the Admin can sign up for an enterprise. The page// pointed to cannot be rendered in an iframe.Urlstring `json:"url,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CompletionToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CompletionToken") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

SignupInfo: A resource returned by the GenerateSignupUrl API, which containsthe Signup URL and Completion Token.

func (SignupInfo)MarshalJSON

func (sSignupInfo) MarshalJSON() ([]byte,error)

typeStoreCluster

type StoreCluster struct {// Id: Unique ID of this cluster. Assigned by the server. Immutable once// assigned.Idstring `json:"id,omitempty"`// Name: Ordered list of localized strings giving the name of this page. The// text displayed is the one that best matches the user locale, or the first// entry if there is no good match. There needs to be at least one entry.Name []*LocalizedText `json:"name,omitempty"`// OrderInPage: String (US-ASCII only) used to determine order of this cluster// within the parent page's elements. Page elements are sorted in lexicographic// order of this field. Duplicated values are allowed, but ordering between// elements with duplicate order is undefined. The value of this field is never// visible to a user, it is used solely for the purpose of defining an// ordering. Maximum length is 256 characters.OrderInPagestring `json:"orderInPage,omitempty"`// ProductId: List of products in the order they are displayed in the cluster.// There should not be duplicates within a cluster.ProductId []string `json:"productId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

StoreCluster: Definition of a managed Google Play store cluster, a list ofproducts displayed as part of a store page.

func (StoreCluster)MarshalJSON

func (sStoreCluster) MarshalJSON() ([]byte,error)

typeStoreLayout

type StoreLayout struct {// HomepageId: The ID of the store page to be used as the homepage. The// homepage is the first page shown in the managed Google Play Store. Not// specifying a homepage is equivalent to setting the store layout type to// "basic".HomepageIdstring `json:"homepageId,omitempty"`// StoreLayoutType: The store layout type. By default, this value is set to// "basic" if the homepageId field is not set, and to "custom" otherwise. If// set to "basic", the layout will consist of all approved apps that have been// whitelisted for the user.//// Possible values://   "unknown"//   "basic"//   "custom"StoreLayoutTypestring `json:"storeLayoutType,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "HomepageId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "HomepageId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

StoreLayout: General setting for the managed Google Play store layout,currently only specifying the page to display the first time the store isopened.

func (StoreLayout)MarshalJSON

func (sStoreLayout) MarshalJSON() ([]byte,error)

typeStoreLayoutClustersListResponse

type StoreLayoutClustersListResponse struct {// Cluster: A store cluster of an enterprise.Cluster []*StoreCluster `json:"cluster,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Cluster") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Cluster") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (StoreLayoutClustersListResponse)MarshalJSON

func (sStoreLayoutClustersListResponse) MarshalJSON() ([]byte,error)

typeStoreLayoutPagesListResponse

type StoreLayoutPagesListResponse struct {// Page: A store page of an enterprise.Page []*StorePage `json:"page,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Page") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Page") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (StoreLayoutPagesListResponse)MarshalJSON

func (sStoreLayoutPagesListResponse) MarshalJSON() ([]byte,error)

typeStorePage

type StorePage struct {// Id: Unique ID of this page. Assigned by the server. Immutable once assigned.Idstring `json:"id,omitempty"`// Link: Ordered list of pages a user should be able to reach from this page.// The list can't include this page. It is recommended that the basic pages are// created first, before adding the links between pages. The API doesn't verify// that the pages exist or the pages are reachable.Link []string `json:"link,omitempty"`// Name: Ordered list of localized strings giving the name of this page. The// text displayed is the one that best matches the user locale, or the first// entry if there is no good match. There needs to be at least one entry.Name []*LocalizedText `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

StorePage: Definition of a managed Google Play store page, made of alocalized name and links to other pages. A page also contains clustersdefined as a subcollection.

func (StorePage)MarshalJSON

func (sStorePage) MarshalJSON() ([]byte,error)

typeStorelayoutclustersDeleteCall

type StorelayoutclustersDeleteCall struct {// contains filtered or unexported fields}

func (*StorelayoutclustersDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*StorelayoutclustersDeleteCall)Do

Do executes the "androidenterprise.storelayoutclusters.delete" call.

func (*StorelayoutclustersDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*StorelayoutclustersDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeStorelayoutclustersGetCall

type StorelayoutclustersGetCall struct {// contains filtered or unexported fields}

func (*StorelayoutclustersGetCall)Context

Context sets the context to be used in this call's Do method.

func (*StorelayoutclustersGetCall)Do

Do executes the "androidenterprise.storelayoutclusters.get" call.Any non-2xx status code is an error. Response headers are in either*StoreCluster.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*StorelayoutclustersGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*StorelayoutclustersGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*StorelayoutclustersGetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeStorelayoutclustersInsertCall

type StorelayoutclustersInsertCall struct {// contains filtered or unexported fields}

func (*StorelayoutclustersInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*StorelayoutclustersInsertCall)Do

Do executes the "androidenterprise.storelayoutclusters.insert" call.Any non-2xx status code is an error. Response headers are in either*StoreCluster.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*StorelayoutclustersInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*StorelayoutclustersInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeStorelayoutclustersListCall

type StorelayoutclustersListCall struct {// contains filtered or unexported fields}

func (*StorelayoutclustersListCall)Context

Context sets the context to be used in this call's Do method.

func (*StorelayoutclustersListCall)Do

Do executes the "androidenterprise.storelayoutclusters.list" call.Any non-2xx status code is an error. Response headers are in either*StoreLayoutClustersListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*StorelayoutclustersListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*StorelayoutclustersListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*StorelayoutclustersListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeStorelayoutclustersService

type StorelayoutclustersService struct {// contains filtered or unexported fields}

funcNewStorelayoutclustersService

func NewStorelayoutclustersService(s *Service) *StorelayoutclustersService

func (*StorelayoutclustersService)Delete

func (r *StorelayoutclustersService) Delete(enterpriseIdstring, pageIdstring, clusterIdstring) *StorelayoutclustersDeleteCall

Delete: Deletes a cluster.

- clusterId: The ID of the cluster.- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.

func (*StorelayoutclustersService)Get

func (r *StorelayoutclustersService) Get(enterpriseIdstring, pageIdstring, clusterIdstring) *StorelayoutclustersGetCall

Get: Retrieves details of a cluster.

- clusterId: The ID of the cluster.- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.

func (*StorelayoutclustersService)Insert

func (r *StorelayoutclustersService) Insert(enterpriseIdstring, pageIdstring, storecluster *StoreCluster) *StorelayoutclustersInsertCall

Insert: Inserts a new cluster in a page.

- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.

func (*StorelayoutclustersService)List

List: Retrieves the details of all clusters on the specified page.

- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.

func (*StorelayoutclustersService)Update

func (r *StorelayoutclustersService) Update(enterpriseIdstring, pageIdstring, clusterIdstring, storecluster *StoreCluster) *StorelayoutclustersUpdateCall

Update: Updates a cluster.

- clusterId: The ID of the cluster.- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.

typeStorelayoutclustersUpdateCall

type StorelayoutclustersUpdateCall struct {// contains filtered or unexported fields}

func (*StorelayoutclustersUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*StorelayoutclustersUpdateCall)Do

Do executes the "androidenterprise.storelayoutclusters.update" call.Any non-2xx status code is an error. Response headers are in either*StoreCluster.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*StorelayoutclustersUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*StorelayoutclustersUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeStorelayoutpagesDeleteCall

type StorelayoutpagesDeleteCall struct {// contains filtered or unexported fields}

func (*StorelayoutpagesDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*StorelayoutpagesDeleteCall)Do

Do executes the "androidenterprise.storelayoutpages.delete" call.

func (*StorelayoutpagesDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*StorelayoutpagesDeleteCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeStorelayoutpagesGetCall

type StorelayoutpagesGetCall struct {// contains filtered or unexported fields}

func (*StorelayoutpagesGetCall)Context

Context sets the context to be used in this call's Do method.

func (*StorelayoutpagesGetCall)Do

Do executes the "androidenterprise.storelayoutpages.get" call.Any non-2xx status code is an error. Response headers are in either*StorePage.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*StorelayoutpagesGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*StorelayoutpagesGetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*StorelayoutpagesGetCall)IfNoneMatch

func (c *StorelayoutpagesGetCall) IfNoneMatch(entityTagstring) *StorelayoutpagesGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeStorelayoutpagesInsertCall

type StorelayoutpagesInsertCall struct {// contains filtered or unexported fields}

func (*StorelayoutpagesInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*StorelayoutpagesInsertCall)Do

Do executes the "androidenterprise.storelayoutpages.insert" call.Any non-2xx status code is an error. Response headers are in either*StorePage.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*StorelayoutpagesInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*StorelayoutpagesInsertCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeStorelayoutpagesListCall

type StorelayoutpagesListCall struct {// contains filtered or unexported fields}

func (*StorelayoutpagesListCall)Context

Context sets the context to be used in this call's Do method.

func (*StorelayoutpagesListCall)Do

Do executes the "androidenterprise.storelayoutpages.list" call.Any non-2xx status code is an error. Response headers are in either*StoreLayoutPagesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.

func (*StorelayoutpagesListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*StorelayoutpagesListCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*StorelayoutpagesListCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeStorelayoutpagesService

type StorelayoutpagesService struct {// contains filtered or unexported fields}

funcNewStorelayoutpagesService

func NewStorelayoutpagesService(s *Service) *StorelayoutpagesService

func (*StorelayoutpagesService)Delete

func (r *StorelayoutpagesService) Delete(enterpriseIdstring, pageIdstring) *StorelayoutpagesDeleteCall

Delete: Deletes a store page.

- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.

func (*StorelayoutpagesService)Get

Get: Retrieves details of a store page.

- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.

func (*StorelayoutpagesService)Insert

func (r *StorelayoutpagesService) Insert(enterpriseIdstring, storepage *StorePage) *StorelayoutpagesInsertCall

Insert: Inserts a new store page.

- enterpriseId: The ID of the enterprise.

func (*StorelayoutpagesService)List

List: Retrieves the details of all pages in the store.

- enterpriseId: The ID of the enterprise.

func (*StorelayoutpagesService)Update

func (r *StorelayoutpagesService) Update(enterpriseIdstring, pageIdstring, storepage *StorePage) *StorelayoutpagesUpdateCall

Update: Updates the content of a store page.

- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.

typeStorelayoutpagesUpdateCall

type StorelayoutpagesUpdateCall struct {// contains filtered or unexported fields}

func (*StorelayoutpagesUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*StorelayoutpagesUpdateCall)Do

Do executes the "androidenterprise.storelayoutpages.update" call.Any non-2xx status code is an error. Response headers are in either*StorePage.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*StorelayoutpagesUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*StorelayoutpagesUpdateCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeTokenPagination

type TokenPagination struct {// NextPageToken: Tokens to pass to the standard list field 'page_token'.// Whenever available, tokens are preferred over manipulating start_index.NextPageTokenstring `json:"nextPageToken,omitempty"`PreviousPageTokenstring `json:"previousPageToken,omitempty"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TokenPagination: Pagination information returned by a List operation whentoken pagination is enabled. List operations that supports paging returnonly one "page" of results. This protocol buffer message describes the pagethat has been returned. When using token pagination, clients should use thenext/previous token to get another page of the result. The presence orabsence of next/previous token indicates whether a next/previous page isavailable and provides a mean of accessing this page. ListRequest.page_tokenshould be set to either next_page_token or previous_page_token to accessanother page.

func (TokenPagination)MarshalJSON

func (sTokenPagination) MarshalJSON() ([]byte,error)

typeTrackInfo

type TrackInfo struct {// TrackAlias: A modifiable name for a track. This is the visible name in the// play developer console.TrackAliasstring `json:"trackAlias,omitempty"`// TrackId: Unmodifiable, unique track identifier. This identifier is the// releaseTrackId in the url of the play developer console page that displays// the track information.TrackIdstring `json:"trackId,omitempty"`// ForceSendFields is a list of field names (e.g. "TrackAlias") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "TrackAlias") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

TrackInfo: Id to name association of a track.

func (TrackInfo)MarshalJSON

func (sTrackInfo) MarshalJSON() ([]byte,error)

typeUser

type User struct {// AccountIdentifier: A unique identifier you create for this user, such as// "user342" or "asset#44418". Do not use personally identifiable information// (PII) for this property. Must always be set for EMM-managed users. Not set// for Google-managed users.AccountIdentifierstring `json:"accountIdentifier,omitempty"`// AccountType: The type of account that this user represents. A userAccount// can be installed on multiple devices, but a deviceAccount is specific to a// single device. An EMM-managed user (emmManaged) can be either type// (userAccount, deviceAccount), but a Google-managed user (googleManaged) is// always a userAccount.//// Possible values://   "deviceAccount"//   "userAccount"AccountTypestring `json:"accountType,omitempty"`// DisplayName: The name that will appear in user interfaces. Setting this// property is optional when creating EMM-managed users. If you do set this// property, use something generic about the organization (such as "Example,// Inc.") or your name (as EMM). Not used for Google-managed user accounts.// @mutable androidenterprise.users.updateDisplayNamestring `json:"displayName,omitempty"`// Id: The unique ID for the user.Idstring `json:"id,omitempty"`// ManagementType: The entity that manages the user. With googleManaged users,// the source of truth is Google so EMMs have to make sure a Google Account// exists for the user. With emmManaged users, the EMM is in charge.//// Possible values://   "googleManaged"//   "emmManaged"ManagementTypestring `json:"managementType,omitempty"`// PrimaryEmail: The user's primary email address, for example,// "jsmith@example.com". Will always be set for Google managed users and not// set for EMM managed users.PrimaryEmailstring `json:"primaryEmail,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountIdentifier") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountIdentifier") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

User: A Users resource represents an account associated with an enterprise.The account may be specific to a device or to an individual user (who canthen use the account across multiple devices). The account may provideaccess to managed Google Play only, or to other Google services, dependingon the identity model: - The Google managed domain identity model requiressynchronization to Google account sources (via primaryEmail). - The managedGoogle Play Accounts identity model provides a dynamic means for enterprisesto create user or device accounts as needed. These accounts provide accessto managed Google Play.

func (User)MarshalJSON

func (sUser) MarshalJSON() ([]byte,error)

typeUsersDeleteCall

type UsersDeleteCall struct {// contains filtered or unexported fields}

func (*UsersDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*UsersDeleteCall)Do

Do executes the "androidenterprise.users.delete" call.

func (*UsersDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UsersDeleteCall)Header

func (c *UsersDeleteCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeUsersGenerateAuthenticationTokenCall

type UsersGenerateAuthenticationTokenCall struct {// contains filtered or unexported fields}

func (*UsersGenerateAuthenticationTokenCall)Context

Context sets the context to be used in this call's Do method.

func (*UsersGenerateAuthenticationTokenCall)Do

Do executes the "androidenterprise.users.generateAuthenticationToken" call.Any non-2xx status code is an error. Response headers are in either*AuthenticationToken.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*UsersGenerateAuthenticationTokenCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UsersGenerateAuthenticationTokenCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeUsersGetAvailableProductSetCall

type UsersGetAvailableProductSetCall struct {// contains filtered or unexported fields}

func (*UsersGetAvailableProductSetCall)Context

Context sets the context to be used in this call's Do method.

func (*UsersGetAvailableProductSetCall)Do

Do executes the "androidenterprise.users.getAvailableProductSet" call.Any non-2xx status code is an error. Response headers are in either*ProductSet.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*UsersGetAvailableProductSetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UsersGetAvailableProductSetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*UsersGetAvailableProductSetCall)IfNoneMatch

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeUsersGetCall

type UsersGetCall struct {// contains filtered or unexported fields}

func (*UsersGetCall)Context

func (c *UsersGetCall) Context(ctxcontext.Context) *UsersGetCall

Context sets the context to be used in this call's Do method.

func (*UsersGetCall)Do

func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User,error)

Do executes the "androidenterprise.users.get" call.Any non-2xx status code is an error. Response headers are in either*User.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*UsersGetCall)Fields

func (c *UsersGetCall) Fields(s ...googleapi.Field) *UsersGetCall

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UsersGetCall)Header

func (c *UsersGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*UsersGetCall)IfNoneMatch

func (c *UsersGetCall) IfNoneMatch(entityTagstring) *UsersGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeUsersInsertCall

type UsersInsertCall struct {// contains filtered or unexported fields}

func (*UsersInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*UsersInsertCall)Do

func (c *UsersInsertCall) Do(opts ...googleapi.CallOption) (*User,error)

Do executes the "androidenterprise.users.insert" call.Any non-2xx status code is an error. Response headers are in either*User.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*UsersInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UsersInsertCall)Header

func (c *UsersInsertCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeUsersListCall

type UsersListCall struct {// contains filtered or unexported fields}

func (*UsersListCall)Context

Context sets the context to be used in this call's Do method.

func (*UsersListCall)Do

Do executes the "androidenterprise.users.list" call.Any non-2xx status code is an error. Response headers are in either*UsersListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*UsersListCall)Fields

func (c *UsersListCall) Fields(s ...googleapi.Field) *UsersListCall

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UsersListCall)Header

func (c *UsersListCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*UsersListCall)IfNoneMatch

func (c *UsersListCall) IfNoneMatch(entityTagstring) *UsersListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeUsersListResponse

type UsersListResponse struct {// User: A user of an enterprise.User []*User `json:"user,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "User") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "User") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (UsersListResponse)MarshalJSON

func (sUsersListResponse) MarshalJSON() ([]byte,error)

typeUsersRevokeDeviceAccessCall

type UsersRevokeDeviceAccessCall struct {// contains filtered or unexported fields}

func (*UsersRevokeDeviceAccessCall)Context

Context sets the context to be used in this call's Do method.

func (*UsersRevokeDeviceAccessCall)Do

Do executes the "androidenterprise.users.revokeDeviceAccess" call.

func (*UsersRevokeDeviceAccessCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UsersRevokeDeviceAccessCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeUsersService

type UsersService struct {// contains filtered or unexported fields}

funcNewUsersService

func NewUsersService(s *Service) *UsersService

func (*UsersService)Delete

func (r *UsersService) Delete(enterpriseIdstring, userIdstring) *UsersDeleteCall

Delete: Deleted an EMM-managed user.

- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*UsersService)GenerateAuthenticationToken

func (r *UsersService) GenerateAuthenticationToken(enterpriseIdstring, userIdstring) *UsersGenerateAuthenticationTokenCall

GenerateAuthenticationToken: Generates an authentication token which thedevice policy client can use to provision the given EMM-managed user accounton a device. The generated token is single-use and expires after a fewminutes. You can provision a maximum of 10 devices per user. This call onlyworks with EMM-managed accounts.

- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*UsersService)Get

func (r *UsersService) Get(enterpriseIdstring, userIdstring) *UsersGetCall

Get: Retrieves a user's details.

- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*UsersService)GetAvailableProductSet

func (r *UsersService) GetAvailableProductSet(enterpriseIdstring, userIdstring) *UsersGetAvailableProductSetCall

GetAvailableProductSet: Retrieves the set of products a user is entitled toaccess. **Note:** This item has been deprecated. New integrations cannot usethis method and can refer to our new recommendations.

- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*UsersService)Insert

func (r *UsersService) Insert(enterpriseIdstring, user *User) *UsersInsertCall

Insert: Creates a new EMM-managed user. The Users resource passed in thebody of the request should include an accountIdentifier and an accountType.If a corresponding user already exists with the same account identifier, theuser will be updated with the resource. In this case only the displayNamefield can be changed.

- enterpriseId: The ID of the enterprise.

func (*UsersService)List

func (r *UsersService) List(enterpriseIdstring, emailstring) *UsersListCall

List: Looks up a user by primary email address. This is only supported forGoogle-managed users. Lookup of the id is not needed for EMM-managed usersbecause the id is already returned in the result of the Users.insert call.

- email: The exact primary email address of the user to look up.- enterpriseId: The ID of the enterprise.

func (*UsersService)RevokeDeviceAccess

func (r *UsersService) RevokeDeviceAccess(enterpriseIdstring, userIdstring) *UsersRevokeDeviceAccessCall

RevokeDeviceAccess: Revokes access to all devices currently provisioned tothe user. The user will no longer be able to use the managed Play store onany of their managed devices. This call only works with EMM-managedaccounts.

- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*UsersService)SetAvailableProductSet

func (r *UsersService) SetAvailableProductSet(enterpriseIdstring, userIdstring, productset *ProductSet) *UsersSetAvailableProductSetCall

SetAvailableProductSet: Modifies the set of products that a user is entitledto access (referred to as *whitelisted* products). Only products that areapproved or products that were previously approved (products with revokedapproval) can be whitelisted. **Note:** This item has been deprecated. Newintegrations cannot use this method and can refer to our newrecommendations.

- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

func (*UsersService)Update

func (r *UsersService) Update(enterpriseIdstring, userIdstring, user *User) *UsersUpdateCall

Update: Updates the details of an EMM-managed user. Can be used withEMM-managed users only (not Google managed users). Pass the new details inthe Users resource in the request body. Only the displayName field can bechanged. Other fields must either be unset or have the currently activevalue.

- enterpriseId: The ID of the enterprise.- userId: The ID of the user.

typeUsersSetAvailableProductSetCall

type UsersSetAvailableProductSetCall struct {// contains filtered or unexported fields}

func (*UsersSetAvailableProductSetCall)Context

Context sets the context to be used in this call's Do method.

func (*UsersSetAvailableProductSetCall)Do

Do executes the "androidenterprise.users.setAvailableProductSet" call.Any non-2xx status code is an error. Response headers are in either*ProductSet.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*UsersSetAvailableProductSetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UsersSetAvailableProductSetCall)Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeUsersUpdateCall

type UsersUpdateCall struct {// contains filtered or unexported fields}

func (*UsersUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*UsersUpdateCall)Do

func (c *UsersUpdateCall) Do(opts ...googleapi.CallOption) (*User,error)

Do executes the "androidenterprise.users.update" call.Any non-2xx status code is an error. Response headers are in either*User.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*UsersUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*UsersUpdateCall)Header

func (c *UsersUpdateCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeVariableSet

type VariableSet struct {// Placeholder: The placeholder string; defined by EMM.Placeholderstring `json:"placeholder,omitempty"`// UserValue: The value of the placeholder, specific to the user.UserValuestring `json:"userValue,omitempty"`// ForceSendFields is a list of field names (e.g. "Placeholder") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Placeholder") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

VariableSet: A variable set is a key-value pair of EMM-provided placeholdersand its corresponding value, which is attributed to a user. For example,$FIRSTNAME could be a placeholder, and its value could be Alice.Placeholders should start with a '$' sign and should be alphanumeric only.

func (VariableSet)MarshalJSON

func (sVariableSet) MarshalJSON() ([]byte,error)

typeWebApp

type WebApp struct {// DisplayMode: The display mode of the web app. Possible values include: -// "minimalUi", the device's status bar, navigation bar, the app's URL, and a// refresh button are visible when the app is open. For HTTP URLs, you can only// select this option. - "standalone", the device's status bar and navigation// bar are visible when the app is open. - "fullScreen", the app opens in full// screen mode, hiding the device's status and navigation bars. All browser UI// elements, page URL, system status bar and back button are not visible, and// the web app takes up the entirety of the available display area.//// Possible values://   "displayModeUnspecified"//   "minimalUi" - Opens the web app with a minimal set of browser UI elements// for controlling navigation and viewing the page URL.//   "standalone" - Opens the web app to look and feel like a standalone native// application. The browser UI elements and page URL are not visible, however// the system status bar and back button are visible.//   "fullScreen" - Opens the web app in full screen without any visible// controls. The browser UI elements, page URL, system status bar and back// button are not visible, and the web app takes up the entirety of the// available display area.DisplayModestring `json:"displayMode,omitempty"`// Icons: A list of icons representing this website. If absent, a default icon// (for create) or the current icon (for update) will be used.Icons []*WebAppIcon `json:"icons,omitempty"`// IsPublished: A flag whether the app has been published to the Play store// yet.IsPublishedbool `json:"isPublished,omitempty"`// StartUrl: The start URL, i.e. the URL that should load when the user opens// the application.StartUrlstring `json:"startUrl,omitempty"`// Title: The title of the web app as displayed to the user (e.g., amongst a// list of other applications, or as a label for an icon).Titlestring `json:"title,omitempty"`// VersionCode: The current version of the app. Note that the version can// automatically increase during the lifetime of the web app, while Google does// internal housekeeping to keep the web app up-to-date.VersionCodeint64 `json:"versionCode,omitempty,string"`// WebAppId: The ID of the application. A string of the form "app:<package// name>" where the package name always starts with the prefix// "com.google.enterprise.webapp." followed by a random id.WebAppIdstring `json:"webAppId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "DisplayMode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisplayMode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

WebApp: A WebApps resource represents a web app created for an enterprise.Web apps are published to managed Google Play and can be distributed likeother Android apps. On a user's device, a web app opens its specified URL.

func (WebApp)MarshalJSON

func (sWebApp) MarshalJSON() ([]byte,error)

typeWebAppIcon

type WebAppIcon struct {// ImageData: The actual bytes of the image in a base64url encoded string (c.f.// RFC4648, section 5 "Base 64 Encoding with URL and Filename Safe Alphabet").// - The image type can be png or jpg. - The image should ideally be square. -// The image should ideally have a size of 512x512.ImageDatastring `json:"imageData,omitempty"`// ForceSendFields is a list of field names (e.g. "ImageData") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ImageData") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

WebAppIcon: Icon for a web app.

func (WebAppIcon)MarshalJSON

func (sWebAppIcon) MarshalJSON() ([]byte,error)

typeWebAppsListResponse

type WebAppsListResponse struct {// WebApp: The manifest describing a web app.WebApp []*WebApp `json:"webApp,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "WebApp") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "WebApp") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}

func (WebAppsListResponse)MarshalJSON

func (sWebAppsListResponse) MarshalJSON() ([]byte,error)

typeWebappsDeleteCall

type WebappsDeleteCall struct {// contains filtered or unexported fields}

func (*WebappsDeleteCall)Context

Context sets the context to be used in this call's Do method.

func (*WebappsDeleteCall)Do

Do executes the "androidenterprise.webapps.delete" call.

func (*WebappsDeleteCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*WebappsDeleteCall)Header

func (c *WebappsDeleteCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeWebappsGetCall

type WebappsGetCall struct {// contains filtered or unexported fields}

func (*WebappsGetCall)Context

Context sets the context to be used in this call's Do method.

func (*WebappsGetCall)Do

Do executes the "androidenterprise.webapps.get" call.Any non-2xx status code is an error. Response headers are in either*WebApp.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*WebappsGetCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*WebappsGetCall)Header

func (c *WebappsGetCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*WebappsGetCall)IfNoneMatch

func (c *WebappsGetCall) IfNoneMatch(entityTagstring) *WebappsGetCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeWebappsInsertCall

type WebappsInsertCall struct {// contains filtered or unexported fields}

func (*WebappsInsertCall)Context

Context sets the context to be used in this call's Do method.

func (*WebappsInsertCall)Do

Do executes the "androidenterprise.webapps.insert" call.Any non-2xx status code is an error. Response headers are in either*WebApp.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*WebappsInsertCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*WebappsInsertCall)Header

func (c *WebappsInsertCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

typeWebappsListCall

type WebappsListCall struct {// contains filtered or unexported fields}

func (*WebappsListCall)Context

Context sets the context to be used in this call's Do method.

func (*WebappsListCall)Do

Do executes the "androidenterprise.webapps.list" call.Any non-2xx status code is an error. Response headers are in either*WebAppsListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.

func (*WebappsListCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*WebappsListCall)Header

func (c *WebappsListCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

func (*WebappsListCall)IfNoneMatch

func (c *WebappsListCall) IfNoneMatch(entityTagstring) *WebappsListCall

IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.

typeWebappsService

type WebappsService struct {// contains filtered or unexported fields}

funcNewWebappsService

func NewWebappsService(s *Service) *WebappsService

func (*WebappsService)Delete

func (r *WebappsService) Delete(enterpriseIdstring, webAppIdstring) *WebappsDeleteCall

Delete: Deletes an existing web app.

- enterpriseId: The ID of the enterprise.- webAppId: The ID of the web app.

func (*WebappsService)Get

func (r *WebappsService) Get(enterpriseIdstring, webAppIdstring) *WebappsGetCall

Get: Gets an existing web app.

- enterpriseId: The ID of the enterprise.- webAppId: The ID of the web app.

func (*WebappsService)Insert

func (r *WebappsService) Insert(enterpriseIdstring, webapp *WebApp) *WebappsInsertCall

Insert: Creates a new web app for the enterprise.

- enterpriseId: The ID of the enterprise.

func (*WebappsService)List

func (r *WebappsService) List(enterpriseIdstring) *WebappsListCall

List: Retrieves the details of all web apps for a given enterprise.

- enterpriseId: The ID of the enterprise.

func (*WebappsService)Update

func (r *WebappsService) Update(enterpriseIdstring, webAppIdstring, webapp *WebApp) *WebappsUpdateCall

Update: Updates an existing web app.

- enterpriseId: The ID of the enterprise.- webAppId: The ID of the web app.

typeWebappsUpdateCall

type WebappsUpdateCall struct {// contains filtered or unexported fields}

func (*WebappsUpdateCall)Context

Context sets the context to be used in this call's Do method.

func (*WebappsUpdateCall)Do

Do executes the "androidenterprise.webapps.update" call.Any non-2xx status code is an error. Response headers are in either*WebApp.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.

func (*WebappsUpdateCall)Fields

Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.

func (*WebappsUpdateCall)Header

func (c *WebappsUpdateCall) Header()http.Header

Header returns a http.Header that can be modified by the caller to addheaders to the request.

Source Files

View all Source files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f orF : Jump to
y orY : Canonical URL
go.dev uses cookies from Google to deliver and enhance the quality of its services and to analyze traffic.Learn more.

[8]ページ先頭

©2009-2025 Movatter.jp