blob: 8ed20a7f2e6ce4898b67331b7081509296337322 [file] [log] [blame]
// Copyright 2018 Google Inc. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Code generated file. DO NOT EDIT.
// Package androidenterprise provides access to the Google Play EMM API.
//
// See https://developers.google.com/android/work/play/emm-api
//
// Usage example:
//
// import "google.golang.org/api/androidenterprise/v1"
// ...
// androidenterpriseService, err := androidenterprise.New(oauthHttpClient)
package androidenterprise // import "google.golang.org/api/androidenterprise/v1"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
gensupport "google.golang.org/api/gensupport"
googleapi "google.golang.org/api/googleapi"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
const apiId = "androidenterprise:v1"
const apiName = "androidenterprise"
const apiVersion = "v1"
const basePath = "https://www.googleapis.com/androidenterprise/v1/"
// OAuth2 scopes used by this API.
const (
// Manage corporate Android devices
AndroidenterpriseScope = "https://www.googleapis.com/auth/androidenterprise"
)
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Devices = NewDevicesService(s)
s.Enterprises = NewEnterprisesService(s)
s.Entitlements = NewEntitlementsService(s)
s.Grouplicenses = NewGrouplicensesService(s)
s.Grouplicenseusers = NewGrouplicenseusersService(s)
s.Installs = NewInstallsService(s)
s.Managedconfigurationsfordevice = NewManagedconfigurationsfordeviceService(s)
s.Managedconfigurationsforuser = NewManagedconfigurationsforuserService(s)
s.Managedconfigurationssettings = NewManagedconfigurationssettingsService(s)
s.Permissions = NewPermissionsService(s)
s.Products = NewProductsService(s)
s.Serviceaccountkeys = NewServiceaccountkeysService(s)
s.Storelayoutclusters = NewStorelayoutclustersService(s)
s.Storelayoutpages = NewStorelayoutpagesService(s)
s.Users = NewUsersService(s)
s.Webapps = NewWebappsService(s)
return s, nil
}
type Service struct {
client *http.Client
BasePath string // API endpoint base URL
UserAgent string // optional additional User-Agent fragment
Devices *DevicesService
Enterprises *EnterprisesService
Entitlements *EntitlementsService
Grouplicenses *GrouplicensesService
Grouplicenseusers *GrouplicenseusersService
Installs *InstallsService
Managedconfigurationsfordevice *ManagedconfigurationsfordeviceService
Managedconfigurationsforuser *ManagedconfigurationsforuserService
Managedconfigurationssettings *ManagedconfigurationssettingsService
Permissions *PermissionsService
Products *ProductsService
Serviceaccountkeys *ServiceaccountkeysService
Storelayoutclusters *StorelayoutclustersService
Storelayoutpages *StorelayoutpagesService
Users *UsersService
Webapps *WebappsService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewDevicesService(s *Service) *DevicesService {
rs := &DevicesService{s: s}
return rs
}
type DevicesService struct {
s *Service
}
func NewEnterprisesService(s *Service) *EnterprisesService {
rs := &EnterprisesService{s: s}
return rs
}
type EnterprisesService struct {
s *Service
}
func NewEntitlementsService(s *Service) *EntitlementsService {
rs := &EntitlementsService{s: s}
return rs
}
type EntitlementsService struct {
s *Service
}
func NewGrouplicensesService(s *Service) *GrouplicensesService {
rs := &GrouplicensesService{s: s}
return rs
}
type GrouplicensesService struct {
s *Service
}
func NewGrouplicenseusersService(s *Service) *GrouplicenseusersService {
rs := &GrouplicenseusersService{s: s}
return rs
}
type GrouplicenseusersService struct {
s *Service
}
func NewInstallsService(s *Service) *InstallsService {
rs := &InstallsService{s: s}
return rs
}
type InstallsService struct {
s *Service
}
func NewManagedconfigurationsfordeviceService(s *Service) *ManagedconfigurationsfordeviceService {
rs := &ManagedconfigurationsfordeviceService{s: s}
return rs
}
type ManagedconfigurationsfordeviceService struct {
s *Service
}
func NewManagedconfigurationsforuserService(s *Service) *ManagedconfigurationsforuserService {
rs := &ManagedconfigurationsforuserService{s: s}
return rs
}
type ManagedconfigurationsforuserService struct {
s *Service
}
func NewManagedconfigurationssettingsService(s *Service) *ManagedconfigurationssettingsService {
rs := &ManagedconfigurationssettingsService{s: s}
return rs
}
type ManagedconfigurationssettingsService struct {
s *Service
}
func NewPermissionsService(s *Service) *PermissionsService {
rs := &PermissionsService{s: s}
return rs
}
type PermissionsService struct {
s *Service
}
func NewProductsService(s *Service) *ProductsService {
rs := &ProductsService{s: s}
return rs
}
type ProductsService struct {
s *Service
}
func NewServiceaccountkeysService(s *Service) *ServiceaccountkeysService {
rs := &ServiceaccountkeysService{s: s}
return rs
}
type ServiceaccountkeysService struct {
s *Service
}
func NewStorelayoutclustersService(s *Service) *StorelayoutclustersService {
rs := &StorelayoutclustersService{s: s}
return rs
}
type StorelayoutclustersService struct {
s *Service
}
func NewStorelayoutpagesService(s *Service) *StorelayoutpagesService {
rs := &StorelayoutpagesService{s: s}
return rs
}
type StorelayoutpagesService struct {
s *Service
}
func NewUsersService(s *Service) *UsersService {
rs := &UsersService{s: s}
return rs
}
type UsersService struct {
s *Service
}
func NewWebappsService(s *Service) *WebappsService {
rs := &WebappsService{s: s}
return rs
}
type WebappsService struct {
s *Service
}
// Administrator: This represents an enterprise admin who can manage the
// enterprise in the managed Google Play store.
type Administrator struct {
// Email: The admin's email address.
Email string `json:"email,omitempty"`
// ForceSendFields is a list of field names (e.g. "Email") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Administrator) MarshalJSON() ([]byte, error) {
type NoMethod Administrator
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AdministratorWebToken: A token authorizing an admin to access an
// iframe.
type AdministratorWebToken struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#administratorWebToken".
Kind string `json:"kind,omitempty"`
// Token: An opaque token to be passed to the Play front-end to generate
// an iframe.
Token string `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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AdministratorWebToken) MarshalJSON() ([]byte, error) {
type NoMethod AdministratorWebToken
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AdministratorWebTokenSpec: Specification for a token used to generate
// iframes. The token specifies what data the admin is allowed to modify
// and the URI the iframe is allowed to communiate with.
type AdministratorWebTokenSpec struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#administratorWebTokenSpec".
Kind string `json:"kind,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.
Parent string `json:"parent,omitempty"`
// Permission: Deprecated. Use PlaySearch.approveApps.
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"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AdministratorWebTokenSpec) MarshalJSON() ([]byte, error) {
type NoMethod AdministratorWebTokenSpec
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AdministratorWebTokenSpecPlaySearch struct {
// ApproveApps: Allow access to the iframe in approve mode. Default is
// false.
ApproveApps bool `json:"approveApps,omitempty"`
// Enabled: Whether the managed Play Search apps page is displayed.
// Default is true.
Enabled bool `json:"enabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApproveApps") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AdministratorWebTokenSpecPlaySearch) MarshalJSON() ([]byte, error) {
type NoMethod AdministratorWebTokenSpecPlaySearch
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AdministratorWebTokenSpecPrivateApps struct {
// Enabled: Whether the Private Apps page is displayed. Default is true.
Enabled bool `json:"enabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "Enabled") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AdministratorWebTokenSpecPrivateApps) MarshalJSON() ([]byte, error) {
type NoMethod AdministratorWebTokenSpecPrivateApps
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AdministratorWebTokenSpecStoreBuilder struct {
// Enabled: Whether the Organize apps page is displayed. Default is
// true.
Enabled bool `json:"enabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "Enabled") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AdministratorWebTokenSpecStoreBuilder) MarshalJSON() ([]byte, error) {
type NoMethod AdministratorWebTokenSpecStoreBuilder
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type AdministratorWebTokenSpecWebApps struct {
// Enabled: Whether the Web Apps page is displayed. Default is true.
Enabled bool `json:"enabled,omitempty"`
// ForceSendFields is a list of field names (e.g. "Enabled") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AdministratorWebTokenSpecWebApps) MarshalJSON() ([]byte, error) {
type NoMethod AdministratorWebTokenSpecWebApps
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AndroidDevicePolicyConfig: Deprecated and unused.
type AndroidDevicePolicyConfig struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#androidDevicePolicyConfig".
Kind string `json:"kind,omitempty"`
// State: Deprecated and unused.
State string `json:"state,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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AndroidDevicePolicyConfig) MarshalJSON() ([]byte, error) {
type NoMethod AndroidDevicePolicyConfig
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AppRestrictionsSchema: Represents the list of app restrictions
// available to be pre-configured for the product.
type AppRestrictionsSchema struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#appRestrictionsSchema".
Kind string `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AppRestrictionsSchema) MarshalJSON() ([]byte, error) {
type NoMethod AppRestrictionsSchema
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AppRestrictionsSchemaChangeEvent: An event generated when a new app
// version is uploaded to Google Play and its app restrictions schema
// changed. To fetch the app restrictions schema for an app, use
// Products.getAppRestrictionsSchema on the EMM API.
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.
ProductId string `json:"productId,omitempty"`
// ForceSendFields is a list of field names (e.g. "ProductId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AppRestrictionsSchemaChangeEvent) MarshalJSON() ([]byte, error) {
type NoMethod AppRestrictionsSchemaChangeEvent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AppRestrictionsSchemaRestriction: A restriction in the App
// Restriction Schema represents a piece of configuration that may be
// pre-applied.
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.
Description string `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".
Key string `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.
RestrictionType string `json:"restrictionType,omitempty"`
// Title: The name of the restriction.
Title string `json:"title,omitempty"`
// ForceSendFields is a list of field names (e.g. "DefaultValue") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AppRestrictionsSchemaRestriction) MarshalJSON() ([]byte, error) {
type NoMethod AppRestrictionsSchemaRestriction
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AppRestrictionsSchemaRestrictionRestrictionValue: A typed value for
// the restriction.
type AppRestrictionsSchemaRestrictionRestrictionValue struct {
// Type: The type of the value being provided.
Type string `json:"type,omitempty"`
// ValueBool: The boolean value - this will only be present if type is
// bool.
ValueBool bool `json:"valueBool,omitempty"`
// ValueInteger: The integer value - this will only be present if type
// is integer.
ValueInteger int64 `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.
ValueString string `json:"valueString,omitempty"`
// ForceSendFields is a list of field names (e.g. "Type") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AppRestrictionsSchemaRestrictionRestrictionValue) MarshalJSON() ([]byte, error) {
type NoMethod AppRestrictionsSchemaRestrictionRestrictionValue
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AppUpdateEvent: An event generated when a new version of an app is
// uploaded to Google Play. Notifications are sent for new public
// versions only: alpha, beta, or canary versions do not generate this
// event. To fetch up-to-date version history for an app, use
// Products.Get on the EMM API.
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.
ProductId string `json:"productId,omitempty"`
// ForceSendFields is a list of field names (e.g. "ProductId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AppUpdateEvent) MarshalJSON() ([]byte, error) {
type NoMethod AppUpdateEvent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AppVersion: This represents a single version of the app.
type AppVersion struct {
// IsProduction: True if this version is a production APK.
IsProduction bool `json:"isProduction,omitempty"`
// Track: Deprecated, use trackId instead.
Track string `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.
VersionCode int64 `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").
VersionString string `json:"versionString,omitempty"`
// ForceSendFields is a list of field names (e.g. "IsProduction") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AppVersion) MarshalJSON() ([]byte, error) {
type NoMethod AppVersion
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ApprovalUrlInfo: Information on an approval URL.
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.
ApprovalUrl string `json:"approvalUrl,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#approvalUrlInfo".
Kind string `json:"kind,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApprovalUrl") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ApprovalUrlInfo) MarshalJSON() ([]byte, error) {
type NoMethod ApprovalUrlInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AuthenticationToken: An AuthenticationToken is used by the EMM's
// device policy client on a device to provision the given EMM-managed
// user on that device.
type AuthenticationToken struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#authenticationToken".
Kind string `json:"kind,omitempty"`
// 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.
Token string `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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *AuthenticationToken) MarshalJSON() ([]byte, error) {
type NoMethod AuthenticationToken
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ConfigurationVariables: A configuration variables resource contains
// the managed configuration settings ID to be applied to a single user,
// as well as the variable set that is attributed to the user. The
// variable set will be used to replace placeholders in the managed
// configuration settings.
type ConfigurationVariables struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#configurationVariables".
Kind string `json:"kind,omitempty"`
// McmId: The ID of the managed configurations settings.
McmId string `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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ConfigurationVariables) MarshalJSON() ([]byte, error) {
type NoMethod ConfigurationVariables
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Device: A Devices resource represents a mobile device managed by the
// EMM and belonging to a specific enterprise user.
type Device struct {
// AndroidId: The Google Play Services Android ID for the device encoded
// as a lowercase hex string. For example, "123456789abcdef0".
AndroidId string `json:"androidId,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#device".
Kind string `json:"kind,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.
ManagementType string `json:"managementType,omitempty"`
// Policy: The policy enforced on the device.
Policy *Policy `json:"policy,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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Device) MarshalJSON() ([]byte, error) {
type NoMethod Device
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DeviceState: The state of a user's device, as accessed by the
// getState and setState methods on device resources.
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.
AccountState string `json:"accountState,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#deviceState".
Kind string `json:"kind,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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DeviceState) MarshalJSON() ([]byte, error) {
type NoMethod DeviceState
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DevicesListResponse: The device resources for the user.
type DevicesListResponse struct {
// Device: A managed device.
Device []*Device `json:"device,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#devicesListResponse".
Kind string `json:"kind,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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DevicesListResponse) MarshalJSON() ([]byte, error) {
type NoMethod DevicesListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Enterprise: An Enterprises resource represents the binding between an
// EMM and a specific organization. That binding can be instantiated in
// one of two different ways using this API as follows:
// - For Google managed domain customers, the process involves using
// Enterprises.enroll and Enterprises.setAccount (in conjunction with
// artifacts obtained from the Admin console and the Google API Console)
// and submitted to the EMM through a more-or-less manual process.
// - For managed Google Play Accounts customers, the process involves
// using Enterprises.generateSignupUrl and Enterprises.completeSignup in
// conjunction with the managed Google Play sign-up UI (Google-provided
// mechanism) to create the binding without manual steps. As an EMM, you
// can support either or both approaches in your EMM console. See Create
// an Enterprise for details.
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"`
// Id: The unique ID for the enterprise.
Id string `json:"id,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#enterprise".
Kind string `json:"kind,omitempty"`
// Name: The name of the enterprise, for example, "Example, Inc".
Name string `json:"name,omitempty"`
// PrimaryDomain: The enterprise's primary domain, such as
// "example.com".
PrimaryDomain string `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Enterprise) MarshalJSON() ([]byte, error) {
type NoMethod Enterprise
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EnterpriseAccount: A service account that can be used to authenticate
// as the enterprise to API calls that require such authentication.
type EnterpriseAccount struct {
// AccountEmail: The email address of the service account.
AccountEmail string `json:"accountEmail,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#enterpriseAccount".
Kind string `json:"kind,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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *EnterpriseAccount) MarshalJSON() ([]byte, error) {
type NoMethod EnterpriseAccount
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EnterprisesListResponse: The matching enterprise resources.
type EnterprisesListResponse struct {
// Enterprise: An enterprise.
Enterprise []*Enterprise `json:"enterprise,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#enterprisesListResponse".
Kind string `json:"kind,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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *EnterprisesListResponse) MarshalJSON() ([]byte, error) {
type NoMethod EnterprisesListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type EnterprisesSendTestPushNotificationResponse struct {
// MessageId: The message ID of the test push notification that was
// sent.
MessageId string `json:"messageId,omitempty"`
// TopicName: The name of the Cloud Pub/Sub topic to which notifications
// for this enterprise's enrolled account will be sent.
TopicName string `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *EnterprisesSendTestPushNotificationResponse) MarshalJSON() ([]byte, error) {
type NoMethod EnterprisesSendTestPushNotificationResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Entitlement: The presence of an Entitlements resource indicates that
// a user has the right to use a particular app. Entitlements are user
// specific, not device specific. This allows a user with an entitlement
// to an app to install the app on all their devices. It's also possible
// for a user to hold an entitlement to an app without installing the
// app on any device.
//
// The API can be used to create an entitlement. As an option, you can
// also use the API to trigger the installation of an app on all a
// user's managed devices at the same time the entitlement is
// created.
//
// If the app is free, creating the entitlement also creates a group
// license for that app. For paid apps, creating the entitlement
// consumes one license, and that license remains consumed until the
// entitlement is removed. If the enterprise hasn't purchased enough
// licenses, then no entitlement is created and the installation fails.
// An entitlement is also not created for an app if the app requires
// permissions that the enterprise hasn't accepted.
//
// If an entitlement is deleted, the app may be uninstalled from a
// user's device. As a best practice, uninstall the app by calling
// Installs.delete() before deleting the entitlement.
//
// Entitlements for apps that a user pays for on an unmanaged profile
// have "userPurchase" as the entitlement reason. These entitlements
// cannot be removed via the API.
type Entitlement struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#entitlement".
Kind string `json:"kind,omitempty"`
// ProductId: The ID of the product that the entitlement is for. For
// example, "app:com.google.android.gm".
ProductId string `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.
Reason string `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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Entitlement) MarshalJSON() ([]byte, error) {
type NoMethod Entitlement
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// EntitlementsListResponse: The entitlement resources for the user.
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"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#entitlementsListResponse".
Kind string `json:"kind,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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *EntitlementsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod EntitlementsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GroupLicense: Group license objects allow you to keep track of
// licenses (called entitlements) for both free and paid apps. For a
// free app, a group license is created when an enterprise admin first
// approves the product in Google Play or when the first entitlement for
// the product is created for a user via the API. For a paid app, a
// group license object is only created when an enterprise admin
// purchases the product in Google Play for the first time.
//
// Use the API to query group licenses. A Grouplicenses resource
// includes the total number of licenses purchased (paid apps only) and
// the total number of licenses currently in use. In other words, the
// total number of Entitlements that exist for the product.
//
// Only one group license object is created per product and group
// license objects are never deleted. If a product is unapproved, its
// group license remains. This allows enterprise admins to keep track of
// any remaining entitlements for the product.
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).
AcquisitionKind string `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.
Approval string `json:"approval,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#groupLicense".
Kind string `json:"kind,omitempty"`
// NumProvisioned: The total number of provisioned licenses for this
// product. Returned by read operations, but ignored in write
// operations.
NumProvisioned int64 `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").
NumPurchased int64 `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.
Permissions string `json:"permissions,omitempty"`
// ProductId: The ID of the product that the license is for. For
// example, "app:com.google.android.gm".
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. "AcquisitionKind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *GroupLicense) MarshalJSON() ([]byte, error) {
type NoMethod GroupLicense
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GroupLicenseUsersListResponse: The user resources for the group
// license.
type GroupLicenseUsersListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#groupLicenseUsersListResponse".
Kind string `json:"kind,omitempty"`
// 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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GroupLicenseUsersListResponse) MarshalJSON() ([]byte, error) {
type NoMethod GroupLicenseUsersListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// GroupLicensesListResponse: The grouplicense resources for the
// enterprise.
type GroupLicensesListResponse struct {
// GroupLicense: A group license for a product approved for use in the
// enterprise.
GroupLicense []*GroupLicense `json:"groupLicense,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#groupLicensesListResponse".
Kind string `json:"kind,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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *GroupLicensesListResponse) MarshalJSON() ([]byte, error) {
type NoMethod GroupLicensesListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Install: The existence of an Installs resource indicates that an app
// is installed on a particular device (or that an install is
// pending).
//
// The API can be used to create an install resource using the update
// method. This triggers the actual install of the app on the device. If
// the user does not already have an entitlement for the app, then an
// attempt is made to create one. If this fails (for example, because
// the app is not free and there is no available license), then the
// creation of the install fails.
//
// The API can also be used to update an installed app. If
// the update method is used on an existing install, then the app will
// be updated to the latest available version.
//
// Note that it is not possible to force the installation of a specific
// version of an app: the version code is read-only.
//
// If a user installs an app themselves (as permitted by the
// enterprise), then again an install resource and possibly an
// entitlement resource are automatically created.
//
// The API can also be used to delete an install resource, which
// triggers the removal of the app from the device. Note that deleting
// an install does not automatically remove the corresponding
// entitlement, even if there are no remaining installs. The install
// resource will also be deleted if the user uninstalls the app
// themselves.
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.
InstallState string `json:"installState,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#install".
Kind string `json:"kind,omitempty"`
// ProductId: The ID of the product that the install is for. For
// example, "app:com.google.android.gm".
ProductId string `json:"productId,omitempty"`
// VersionCode: The version of the installed product. Guaranteed to be
// set only if the install state is "installed".
VersionCode int64 `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Install) MarshalJSON() ([]byte, error) {
type NoMethod Install
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InstallFailureEvent: An event generated when an app installation
// failed on a device
type InstallFailureEvent struct {
// DeviceId: The Android ID of the device. This field will always be
// present.
DeviceId string `json:"deviceId,omitempty"`
// FailureDetails: Additional details on the failure if applicable.
FailureDetails string `json:"failureDetails,omitempty"`
// FailureReason: The reason for the installation failure. This field
// will always be present.
FailureReason string `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.
ProductId string `json:"productId,omitempty"`
// UserId: The ID of the user. This field will always be present.
UserId string `json:"userId,omitempty"`
// ForceSendFields is a list of field names (e.g. "DeviceId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *InstallFailureEvent) MarshalJSON() ([]byte, error) {
type NoMethod InstallFailureEvent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// InstallsListResponse: The install resources for the device.
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"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#installsListResponse".
Kind string `json:"kind,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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *InstallsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod InstallsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// LocalizedText: A localized string with its locale.
type LocalizedText struct {
// Locale: The BCP47 tag for a locale. (e.g. "en-US", "de").
Locale string `json:"locale,omitempty"`
// Text: The text localized in the associated locale.
Text string `json:"text,omitempty"`
// ForceSendFields is a list of field names (e.g. "Locale") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *LocalizedText) MarshalJSON() ([]byte, error) {
type NoMethod LocalizedText
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MaintenanceWindow: Maintenance window for managed Google Play
// Accounts. This allows Play store to update the apps on the foreground
// in the designated window.
type MaintenanceWindow struct {
// DurationMs: Duration of the maintenance window, in milliseconds. The
// duration must be between 30 minutes and 24 hours (inclusive).
DurationMs int64 `json:"durationMs,omitempty,string"`
// StartTimeAfterMidnightMs: Start time of the maintenance window, in
// milliseconds after midnight on the device. Windows can span midnight.
StartTimeAfterMidnightMs int64 `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MaintenanceWindow) MarshalJSON() ([]byte, error) {
type NoMethod MaintenanceWindow
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ManagedConfiguration: A managed configuration resource contains the
// set of managed properties defined by the app developer in the app's
// managed configurations schema, as well as any configuration variables
// defined for the user.
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: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#managedConfiguration".
Kind string `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".
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.
// "ConfigurationVariables") to unconditionally include in API requests.
// By default, fields with empty values are omitted from API requests.
// However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
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. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ManagedConfiguration) MarshalJSON() ([]byte, error) {
type NoMethod ManagedConfiguration
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ManagedConfigurationsForDeviceListResponse: The managed configuration
// resources for the device.
type ManagedConfigurationsForDeviceListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string
// "androidenterprise#managedConfigurationsForDeviceListResponse".
Kind string `json:"kind,omitempty"`
// 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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ManagedConfigurationsForDeviceListResponse) MarshalJSON() ([]byte, error) {
type NoMethod ManagedConfigurationsForDeviceListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ManagedConfigurationsForUserListResponse: The managed configuration
// resources for the user.
type ManagedConfigurationsForUserListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#managedConfigurationsForUserListResponse".
Kind string `json:"kind,omitempty"`
// 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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ManagedConfigurationsForUserListResponse) MarshalJSON() ([]byte, error) {
type NoMethod ManagedConfigurationsForUserListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ManagedConfigurationsSettings: A managed configurations settings
// resource contains the set of managed properties that have been
// configured for an Android app to be applied to a set of users. The
// app's developer would have defined configurable properties in the
// managed configurations schema.
type ManagedConfigurationsSettings struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#managedConfigurationsSettings".
Kind string `json:"kind,omitempty"`
// LastUpdatedTimestampMillis: The last updated time of the managed
// configuration settings in milliseconds since 1970-01-01T00:00:00Z.
LastUpdatedTimestampMillis int64 `json:"lastUpdatedTimestampMillis,omitempty,string"`
// ManagedProperty: The set of managed properties for this
// configuration.
ManagedProperty []*ManagedProperty `json:"managedProperty,omitempty"`
// McmId: The ID of the managed configurations settings.
McmId string `json:"mcmId,omitempty"`
// Name: The name of the managed configurations settings.
Name string `json:"name,omitempty"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ManagedConfigurationsSettings) MarshalJSON() ([]byte, error) {
type NoMethod ManagedConfigurationsSettings
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ManagedConfigurationsSettingsListResponse: The managed configurations
// settings for a product.
type ManagedConfigurationsSettingsListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#managedConfigurationsSettingsListResponse".
Kind string `json:"kind,omitempty"`
// 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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ManagedConfigurationsSettingsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod ManagedConfigurationsSettingsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ManagedProperty: A managed property of a managed configuration. The
// property must match one of the properties in the app restrictions
// schema of the product. Exactly one of the value fields must be
// populated, and it must match the property's type in the app
// restrictions schema.
type ManagedProperty struct {
// Key: The unique key that identifies the property.
Key string `json:"key,omitempty"`
// ValueBool: The boolean value - this will only be present if type of
// the property is bool.
ValueBool bool `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.
ValueInteger int64 `json:"valueInteger,omitempty"`
// ValueString: The string value - this will only be present if type of
// the property is string, choice or hidden.
ValueString string `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ManagedProperty) MarshalJSON() ([]byte, error) {
type NoMethod ManagedProperty
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ManagedPropertyBundle: A bundle of managed properties.
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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ManagedPropertyBundle) MarshalJSON() ([]byte, error) {
type NoMethod ManagedPropertyBundle
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NewDeviceEvent: An event generated when a new device is ready to be
// managed.
type NewDeviceEvent struct {
// DeviceId: The Android ID of the device. This field will always be
// present.
DeviceId string `json:"deviceId,omitempty"`
// DpcPackageName: Policy app on the device.
DpcPackageName string `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.
ManagementType string `json:"managementType,omitempty"`
// UserId: The ID of the user. This field will always be present.
UserId string `json:"userId,omitempty"`
// ForceSendFields is a list of field names (e.g. "DeviceId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *NewDeviceEvent) MarshalJSON() ([]byte, error) {
type NoMethod NewDeviceEvent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NewPermissionsEvent: An event generated when new permissions are
// added to an app.
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.
ProductId string `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *NewPermissionsEvent) MarshalJSON() ([]byte, error) {
type NoMethod NewPermissionsEvent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Notification: A notification of one event relating to an enterprise.
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"`
// EnterpriseId: The ID of the enterprise for which the notification is
// sent. This will always be present.
EnterpriseId string `json:"enterpriseId,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.
NotificationType string `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.
TimestampMillis int64 `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 values are omitted from API
// requests. However, any non-pointer, non-interface field appearing in
// ForceSendFields will be sent to the server regardless of whether the
// field is empty or not. This may be used to include empty fields in
// Patch requests.
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. However, any field with an empty value appearing
// in NullFields will be sent to the server as null. It is an error if a
// field in this list has a non-empty value. This may be used to include
// null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Notification) MarshalJSON() ([]byte, error) {
type NoMethod Notification
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// NotificationSet: A resource returned by the PullNotificationSet API,
// which contains a collection of notifications for enterprises
// associated with the service account authenticated for the request.
type NotificationSet struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#notificationSet".
Kind string `json:"kind,omitempty"`
// 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.
NotificationSetId string `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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *NotificationSet) MarshalJSON() ([]byte, error) {
type NoMethod NotificationSet
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type PageInfo struct {
ResultPerPage int64 `json:"resultPerPage,omitempty"`
StartIndex int64 `json:"startIndex,omitempty"`
TotalResults int64 `json:"totalResults,omitempty"`
// ForceSendFields is a list of field names (e.g. "ResultPerPage") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *PageInfo) MarshalJSON() ([]byte, error) {
type NoMethod PageInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Permission: A Permissions resource represents some extra capability,
// to be granted to an Android app, which requires explicit consent. An
// enterprise admin must consent to these permissions on behalf of their
// users before an entitlement for the app can be created.
//
// The permissions collection is read-only. The information provided for
// each permission (localized name and description) is intended to be
// used in the MDM user interface when obtaining consent from the
// enterprise.
type Permission struct {
// Description: A longer description of the Permissions resource, giving
// more details of what it affects.
Description string `json:"description,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#permission".
Kind string `json:"kind,omitempty"`
// Name: The name of the permission.
Name string `json:"name,omitempty"`
// PermissionId: An opaque string uniquely identifying the permission.
PermissionId string `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Permission) MarshalJSON() ([]byte, error) {
type NoMethod Permission
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Policy: The device policy for a given managed device.
type Policy struct {
// AutoUpdatePolicy: The auto-update policy for apps installed on the
// device. "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.
AutoUpdatePolicy string `json:"autoUpdatePolicy,omitempty"`
// MaintenanceWindow: The maintenance window defining when apps running
// in the foreground should be updated.
MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,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.
ProductAvailabilityPolicy string `json:"productAvailabilityPolicy,omitempty"`
// ProductPolicy: The list of product policies.
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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Policy) MarshalJSON() ([]byte, error) {
type NoMethod Policy
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Product: A Products resource represents an app in the Google Play
// store that is available to at least some users in the enterprise.
// (Some apps are restricted to a single enterprise, and no information
// about them is made available outside that enterprise.)
//
// The information provided for each product (localized name, icon, link
// to the full Google Play details page) is intended to allow a basic
// representation of the product within an EMM user interface.
type Product struct {
// 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).
AuthorName string `json:"authorName,omitempty"`
// AvailableCountries: The countries which this app is available in.
AvailableCountries []string `json:"availableCountries,omitempty"`
// AvailableTracks: Deprecated, use appTracks instead.
AvailableTracks []string `json:"availableTracks,omitempty"`
// Category: The app category (e.g. RACING, SOCIAL, etc.)
Category string `json:"category,omitempty"`
// ContentRating: The content rating for this app.
ContentRating string `json:"contentRating,omitempty"`
// Description: The localized promotional description, if available.
Description string `json:"description,omitempty"`
// DetailsUrl: A link to the (consumer) Google Play details page for the
// product.
DetailsUrl string `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.
DistributionChannel string `json:"distributionChannel,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.
IconUrl string `json:"iconUrl,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#product".
Kind string `json:"kind,omitempty"`
// LastUpdatedTimestampMillis: The approximate time (within 7 days) the
// app was last published, expressed in milliseconds since epoch.
LastUpdatedTimestampMillis int64 `json:"lastUpdatedTimestampMillis,omitempty,string"`
// MinAndroidSdkVersion: The minimum Android SDK necessary to run the
// app.
MinAndroidSdkVersion int64 `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.
ProductId string `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).
ProductPricing string `json:"productPricing,omitempty"`
// RecentChanges: A description of the recent changes made to the app.
RecentChanges string `json:"recentChanges,omitempty"`
// RequiresContainerApp: Deprecated.
RequiresContainerApp bool `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.
SmallIconUrl string `json:"smallIconUrl,omitempty"`
// Title: The name of the product.
Title string `json:"title,omitempty"`
// WorkDetailsUrl: A link to the managed Google Play details page for
// the product, for use by an Enterprise admin.
WorkDetailsUrl string `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. "AppTracks") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
ForceSendFields []string `json:"-"`
// NullFields is a list of field names (e.g. "AppTracks") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Product) MarshalJSON() ([]byte, error) {
type NoMethod Product
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ProductApprovalEvent: An event generated when a product's approval
// status is changed.
type ProductApprovalEvent struct {
// Approved: Whether the product was approved or unapproved. This field
// will always be present.
Approved string `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.
ProductId string `json:"productId,omitempty"`
// ForceSendFields is a list of field names (e.g. "Approved") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ProductApprovalEvent) MarshalJSON() ([]byte, error) {
type NoMethod ProductApprovalEvent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ProductAvailabilityChangeEvent: An event generated whenever a
// product's availability changes.
type ProductAvailabilityChangeEvent struct {
// AvailabilityStatus: The new state of the product. This field will
// always be present.
AvailabilityStatus string `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.
ProductId string `json:"productId,omitempty"`
// ForceSendFields is a list of field names (e.g. "AvailabilityStatus")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ProductAvailabilityChangeEvent) MarshalJSON() ([]byte, error) {
type NoMethod ProductAvailabilityChangeEvent
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ProductPermission: A product permissions resource represents the set
// of permissions required by a specific app and whether or not they
// have been accepted by an enterprise admin.
//
// The API can be used to read the set of permissions, and also to
// update the set to indicate that permissions have been accepted.
type ProductPermission struct {
// PermissionId: An opaque string uniquely identifying the permission.
PermissionId string `json:"permissionId,omitempty"`
// State: Whether the permission has been accepted or not.
State string `json:"state,omitempty"`
// ForceSendFields is a list of field names (e.g. "PermissionId") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ProductPermission) MarshalJSON() ([]byte, error) {
type NoMethod ProductPermission
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ProductPermissions: Information about the permissions required by a
// specific app and whether they have been accepted by the enterprise.
type ProductPermissions struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#productPermissions".
Kind string `json:"kind,omitempty"`
// 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".
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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ProductPermissions) MarshalJSON() ([]byte, error) {
type NoMethod ProductPermissions
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ProductPolicy: The policy for a product.
type ProductPolicy struct {
// ProductId: The ID of the product. For example,
// "app:com.google.android.gm".
ProductId string `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.
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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ProductPolicy) MarshalJSON() ([]byte, error) {
type NoMethod ProductPolicy
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ProductSet: A set of products.
type ProductSet struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#productSet".
Kind string `json:"kind,omitempty"`
// 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.
ProductSetBehavior string `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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ProductSet) MarshalJSON() ([]byte, error) {
type NoMethod ProductSet
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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.)
CertificateHashSha1 string `json:"certificateHashSha1,omitempty"`
// CertificateHashSha256: The base64 urlsafe encoded SHA2-256 hash of
// the certificate.
CertificateHashSha256 string `json:"certificateHashSha256,omitempty"`
// ForceSendFields is a list of field names (e.g. "CertificateHashSha1")
// to unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ProductSigningCertificate) MarshalJSON() ([]byte, error) {
type NoMethod ProductSigningCertificate
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ProductVisibility: A product to be made visible to a user.
type ProductVisibility struct {
// ProductId: The product ID to make visible to the user. Required for
// each item in the productVisibility list.
ProductId string `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.
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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ProductVisibility) MarshalJSON() ([]byte, error) {
type NoMethod ProductVisibility
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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.
ApprovedPermissions string `json:"approvedPermissions,omitempty"`
// ForceSendFields is a list of field names (e.g. "ApprovalUrlInfo") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ProductsApproveRequest) MarshalJSON() ([]byte, error) {
type NoMethod ProductsApproveRequest
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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.
Url string `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ProductsGenerateApprovalUrlResponse) MarshalJSON() ([]byte, error) {
type NoMethod ProductsGenerateApprovalUrlResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ProductsListResponse: The matching products.
type ProductsListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#productsListResponse".
Kind string `json:"kind,omitempty"`
// 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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ProductsListResponse) MarshalJSON() ([]byte, error) {
type NoMethod ProductsListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ServiceAccount: A service account identity, including the name and
// credentials that can be used to authenticate as the service account.
type ServiceAccount struct {
// Key: Credentials that can be used to authenticate as this
// ServiceAccount.
Key *ServiceAccountKey `json:"key,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#serviceAccount".
Kind string `json:"kind,omitempty"`
// Name: The account name of the service account, in the form of an
// email address. Assigned by the server.
Name string `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ServiceAccount) MarshalJSON() ([]byte, error) {
type NoMethod ServiceAccount
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ServiceAccountKey: Credentials that can be used to authenticate as a
// service account.
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.
Data string `json:"data,omitempty"`
// Id: An opaque, unique identifier for this ServiceAccountKey. Assigned
// by the server.
Id string `json:"id,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#serviceAccountKey".
Kind string `json:"kind,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.
PublicData string `json:"publicData,omitempty"`
// Type: The file format of the generated key data.
Type string `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ServiceAccountKey) MarshalJSON() ([]byte, error) {
type NoMethod ServiceAccountKey
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ServiceAccountKeysListResponse) MarshalJSON() ([]byte, error) {
type NoMethod ServiceAccountKeysListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SignupInfo: A resource returned by the GenerateSignupUrl API, which
// contains the Signup URL and Completion Token.
type SignupInfo struct {
// CompletionToken: An opaque token that will be required, along with
// the Enterprise Token, for obtaining the enterprise resource from
// CompleteSignup.
CompletionToken string `json:"completionToken,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#signupInfo".
Kind string `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.
Url string `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *SignupInfo) MarshalJSON() ([]byte, error) {
type NoMethod SignupInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// StoreCluster: Definition of a managed Google Play store cluster, a
// list of products displayed as part of a store page.
type StoreCluster struct {
// Id: Unique ID of this cluster. Assigned by the server. Immutable once
// assigned.
Id string `json:"id,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#storeCluster".
Kind string `json:"kind,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.
OrderInPage string `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *StoreCluster) MarshalJSON() ([]byte, error) {
type NoMethod StoreCluster
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// StoreLayout: General setting for the managed Google Play store
// layout, currently only specifying the page to display the first time
// the store is opened.
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".
HomepageId string `json:"homepageId,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#storeLayout".
Kind string `json:"kind,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.
StoreLayoutType string `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *StoreLayout) MarshalJSON() ([]byte, error) {
type NoMethod StoreLayout
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// StoreLayoutClustersListResponse: The store page resources for the
// enterprise.
type StoreLayoutClustersListResponse struct {
// Cluster: A store cluster of an enterprise.
Cluster []*StoreCluster `json:"cluster,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#storeLayoutClustersListResponse".
Kind string `json:"kind,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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *StoreLayoutClustersListResponse) MarshalJSON() ([]byte, error) {
type NoMethod StoreLayoutClustersListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// StoreLayoutPagesListResponse: The store page resources for the
// enterprise.
type StoreLayoutPagesListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#storeLayoutPagesListResponse".
Kind string `json:"kind,omitempty"`
// 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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *StoreLayoutPagesListResponse) MarshalJSON() ([]byte, error) {
type NoMethod StoreLayoutPagesListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// StorePage: Definition of a managed Google Play store page, made of a
// localized name and links to other pages. A page also contains
// clusters defined as a subcollection.
type StorePage struct {
// Id: Unique ID of this page. Assigned by the server. Immutable once
// assigned.
Id string `json:"id,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#storePage".
Kind string `json:"kind,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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *StorePage) MarshalJSON() ([]byte, error) {
type NoMethod StorePage
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type TokenPagination struct {
NextPageToken string `json:"nextPageToken,omitempty"`
PreviousPageToken string `json:"previousPageToken,omitempty"`
// ForceSendFields is a list of field names (e.g. "NextPageToken") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TokenPagination) MarshalJSON() ([]byte, error) {
type NoMethod TokenPagination
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TrackInfo: Id to name association of a track.
type TrackInfo struct {
// TrackAlias: A modifiable name for a track. This is the visible name
// in the play developer console.
TrackAlias string `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.
TrackId string `json:"trackId,omitempty"`
// ForceSendFields is a list of field names (e.g. "TrackAlias") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TrackInfo) MarshalJSON() ([]byte, error) {
type NoMethod TrackInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// 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 can then use the account across multiple
// devices). The account may provide access to managed Google Play only,
// or to other Google services, depending on the identity model:
// - The Google managed domain identity model requires synchronization
// to Google account sources (via primaryEmail).
// - The managed Google Play Accounts identity model provides a dynamic
// means for enterprises to create user or device accounts as needed.
// These accounts provide access to managed Google Play.
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.
AccountIdentifier string `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.
AccountType string `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.
DisplayName string `json:"displayName,omitempty"`
// Id: The unique ID for the user.
Id string `json:"id,omitempty"`
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#user".
Kind string `json:"kind,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.
ManagementType string `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.
PrimaryEmail string `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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *User) MarshalJSON() ([]byte, error) {
type NoMethod User
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UserToken: A UserToken is used by a user when setting up a managed
// device or profile with their managed Google Play account on a device.
// When the user enters their email address and token (activation code)
// the appropriate EMM app can be automatically downloaded.
type UserToken struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#userToken".
Kind string `json:"kind,omitempty"`
// Token: The token (activation code) to be entered by the user. This
// consists of a sequence of decimal digits. Note that the leading digit
// may be 0.
Token string `json:"token,omitempty"`
// UserId: The unique ID for the user.
UserId string `json:"userId,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 values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UserToken) MarshalJSON() ([]byte, error) {
type NoMethod UserToken
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UsersListResponse: The matching user resources.
type UsersListResponse struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#usersListResponse".
Kind string `json:"kind,omitempty"`
// 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. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UsersListResponse) MarshalJSON() ([]byte, error) {
type NoMethod UsersListResponse
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// VariableSet: A variable set is a key-value pair of EMM-provided
// placeholders and 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.
type VariableSet struct {
// Kind: Identifies what kind of resource this is. Value: the fixed
// string "androidenterprise#variableSet".
Kind string `json:"kind,omitempty"`
// Placeholder: The placeholder string; defined by EMM.
Placeholder string `json:"placeholder,omitempty"`
// UserValue: The value of the placeholder, specific to the user.
UserValue string `json:"userValue,omitempty"`
// ForceSendFields is a list of field names (e.g. "Kind") to
// unconditionally include in API requests. By default, fields with
// empty values are omitted from API requests. However, any non-pointer,
// non-interface field appearing in ForceSendFields will be sent to the
// server regardless of whether the field is empty or not. This may be
// used to include empty fields in Patch requests.
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. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *VariableSet) MarshalJSON() ([]byte, error) {
type NoMethod VariableSet
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// WebApp: WebApp resource info.
type WebApp struct {
// DisplayMode: The display mode of the web app.
DisplayMode string `json:"displayMode,omitempty"`
// Icons: A list of icons representing this website. Must have at least
// one element.
Icons []*WebAppIcon `json:"icons,omitempty"`
// IsPublished: A flag whether the app has been published to the Play
// store yet.
IsPublished bool `json:"isPublished,omitempty"`
// StartUrl: The start URL, i.e. the URL that should load when the user
// opens the application.
StartUrl string `json:"startUrl,omitempty"`
// Title: The title of the web application as displayed to the user
// (e.g., amongst a list of other applications, or as a label for an
// icon).
Title string `json:"title,omitempty"`