androidenterprise
packageThis package is not in the latest version of its module.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
Documentation¶
Overview¶
Package androidenterprise provides access to the Google Play EMM API.
For product documentation, see:https://developers.google.com/android/work/play/emm-api
Library status¶
These client libraries are officially supported by Google. However, thislibrary is considered complete and is in maintenance mode. This meansthat we will address critical bugs and security issues but will not addany new features.
When possible, we recommend using our newer[Cloud Client Libraries for Go](https://pkg.go.dev/cloud.google.com/go)that are still actively being worked and iterated on.
Creating a client¶
Usage example:
import "google.golang.org/api/androidenterprise/v1"...ctx := context.Background()androidenterpriseService, err := androidenterprise.NewService(ctx)
In this example, Google Application Default Credentials are used forauthentication. For information on how to create and obtain ApplicationDefault Credentials, seehttps://developers.google.com/identity/protocols/application-default-credentials.
Other authentication options¶
To use an API key for authentication (note: some APIs do not support APIkeys), usegoogle.golang.org/api/option.WithAPIKey:
androidenterpriseService, err := androidenterprise.NewService(ctx, option.WithAPIKey("AIza..."))To use an OAuth token (e.g., a user token obtained via a three-legged OAuthflow, usegoogle.golang.org/api/option.WithTokenSource:
config := &oauth2.Config{...}// ...token, err := config.Exchange(ctx, ...)androidenterpriseService, err := androidenterprise.NewService(ctx, option.WithTokenSource(config.TokenSource(ctx, token)))Seegoogle.golang.org/api/option.ClientOption for details on options.
Index¶
- Constants
- type Administrator
- type AdministratorWebToken
- type AdministratorWebTokenSpec
- type AdministratorWebTokenSpecManagedConfigurations
- type AdministratorWebTokenSpecPlaySearch
- type AdministratorWebTokenSpecPrivateApps
- type AdministratorWebTokenSpecStoreBuilder
- type AdministratorWebTokenSpecWebApps
- type AdministratorWebTokenSpecZeroTouch
- type AppRestrictionsSchema
- type AppRestrictionsSchemaChangeEvent
- type AppRestrictionsSchemaRestriction
- type AppRestrictionsSchemaRestrictionRestrictionValue
- type AppState
- type AppUpdateEvent
- type AppVersion
- type ApprovalUrlInfo
- type AuthenticationToken
- type AutoInstallConstraint
- type AutoInstallPolicy
- type ConfigurationVariables
- type Device
- type DeviceReport
- type DeviceReportUpdateEvent
- type DeviceState
- type DevicesForceReportUploadCall
- func (c *DevicesForceReportUploadCall) Context(ctx context.Context) *DevicesForceReportUploadCall
- func (c *DevicesForceReportUploadCall) Do(opts ...googleapi.CallOption) error
- func (c *DevicesForceReportUploadCall) Fields(s ...googleapi.Field) *DevicesForceReportUploadCall
- func (c *DevicesForceReportUploadCall) Header() http.Header
- type DevicesGetCall
- func (c *DevicesGetCall) Context(ctx context.Context) *DevicesGetCall
- func (c *DevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, error)
- func (c *DevicesGetCall) Fields(s ...googleapi.Field) *DevicesGetCall
- func (c *DevicesGetCall) Header() http.Header
- func (c *DevicesGetCall) IfNoneMatch(entityTag string) *DevicesGetCall
- type DevicesGetStateCall
- func (c *DevicesGetStateCall) Context(ctx context.Context) *DevicesGetStateCall
- func (c *DevicesGetStateCall) Do(opts ...googleapi.CallOption) (*DeviceState, error)
- func (c *DevicesGetStateCall) Fields(s ...googleapi.Field) *DevicesGetStateCall
- func (c *DevicesGetStateCall) Header() http.Header
- func (c *DevicesGetStateCall) IfNoneMatch(entityTag string) *DevicesGetStateCall
- type DevicesListCall
- func (c *DevicesListCall) Context(ctx context.Context) *DevicesListCall
- func (c *DevicesListCall) Do(opts ...googleapi.CallOption) (*DevicesListResponse, error)
- func (c *DevicesListCall) Fields(s ...googleapi.Field) *DevicesListCall
- func (c *DevicesListCall) Header() http.Header
- func (c *DevicesListCall) IfNoneMatch(entityTag string) *DevicesListCall
- type DevicesListResponse
- type DevicesService
- func (r *DevicesService) ForceReportUpload(enterpriseId string, userId string, deviceId string) *DevicesForceReportUploadCall
- func (r *DevicesService) Get(enterpriseId string, userId string, deviceId string) *DevicesGetCall
- func (r *DevicesService) GetState(enterpriseId string, userId string, deviceId string) *DevicesGetStateCall
- func (r *DevicesService) List(enterpriseId string, userId string) *DevicesListCall
- func (r *DevicesService) SetState(enterpriseId string, userId string, deviceId string, devicestate *DeviceState) *DevicesSetStateCall
- func (r *DevicesService) Update(enterpriseId string, userId string, deviceId string, device *Device) *DevicesUpdateCall
- type DevicesSetStateCall
- type DevicesUpdateCall
- func (c *DevicesUpdateCall) Context(ctx context.Context) *DevicesUpdateCall
- func (c *DevicesUpdateCall) Do(opts ...googleapi.CallOption) (*Device, error)
- func (c *DevicesUpdateCall) Fields(s ...googleapi.Field) *DevicesUpdateCall
- func (c *DevicesUpdateCall) Header() http.Header
- func (c *DevicesUpdateCall) UpdateMask(updateMask string) *DevicesUpdateCall
- type EnrollmentToken
- type EnrollmentTokenGoogleAuthenticationOptions
- type EnrollmentTokensCreateCall
- func (c *EnrollmentTokensCreateCall) Context(ctx context.Context) *EnrollmentTokensCreateCall
- func (c *EnrollmentTokensCreateCall) Do(opts ...googleapi.CallOption) (*EnrollmentToken, error)
- func (c *EnrollmentTokensCreateCall) Fields(s ...googleapi.Field) *EnrollmentTokensCreateCall
- func (c *EnrollmentTokensCreateCall) Header() http.Header
- type EnrollmentTokensService
- type Enterprise
- type EnterpriseAccount
- type EnterpriseAuthenticationAppLinkConfig
- type EnterpriseUpgradeEvent
- type EnterprisesAcknowledgeNotificationSetCall
- func (c *EnterprisesAcknowledgeNotificationSetCall) Context(ctx context.Context) *EnterprisesAcknowledgeNotificationSetCall
- func (c *EnterprisesAcknowledgeNotificationSetCall) Do(opts ...googleapi.CallOption) error
- func (c *EnterprisesAcknowledgeNotificationSetCall) Fields(s ...googleapi.Field) *EnterprisesAcknowledgeNotificationSetCall
- func (c *EnterprisesAcknowledgeNotificationSetCall) Header() http.Header
- func (c *EnterprisesAcknowledgeNotificationSetCall) NotificationSetId(notificationSetId string) *EnterprisesAcknowledgeNotificationSetCall
- type EnterprisesCompleteSignupCall
- func (c *EnterprisesCompleteSignupCall) CompletionToken(completionToken string) *EnterprisesCompleteSignupCall
- func (c *EnterprisesCompleteSignupCall) Context(ctx context.Context) *EnterprisesCompleteSignupCall
- func (c *EnterprisesCompleteSignupCall) Do(opts ...googleapi.CallOption) (*Enterprise, error)
- func (c *EnterprisesCompleteSignupCall) EnterpriseToken(enterpriseToken string) *EnterprisesCompleteSignupCall
- func (c *EnterprisesCompleteSignupCall) Fields(s ...googleapi.Field) *EnterprisesCompleteSignupCall
- func (c *EnterprisesCompleteSignupCall) Header() http.Header
- type EnterprisesCreateWebTokenCall
- func (c *EnterprisesCreateWebTokenCall) Context(ctx context.Context) *EnterprisesCreateWebTokenCall
- func (c *EnterprisesCreateWebTokenCall) Do(opts ...googleapi.CallOption) (*AdministratorWebToken, error)
- func (c *EnterprisesCreateWebTokenCall) Fields(s ...googleapi.Field) *EnterprisesCreateWebTokenCall
- func (c *EnterprisesCreateWebTokenCall) Header() http.Header
- type EnterprisesEnrollCall
- func (c *EnterprisesEnrollCall) Context(ctx context.Context) *EnterprisesEnrollCall
- func (c *EnterprisesEnrollCall) Do(opts ...googleapi.CallOption) (*Enterprise, error)
- func (c *EnterprisesEnrollCall) Fields(s ...googleapi.Field) *EnterprisesEnrollCall
- func (c *EnterprisesEnrollCall) Header() http.Header
- type EnterprisesGenerateEnterpriseUpgradeUrlCall
- func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) AdminEmail(adminEmail string) *EnterprisesGenerateEnterpriseUpgradeUrlCall
- func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) AllowedDomains(allowedDomains ...string) *EnterprisesGenerateEnterpriseUpgradeUrlCall
- func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) Context(ctx context.Context) *EnterprisesGenerateEnterpriseUpgradeUrlCall
- func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) Do(opts ...googleapi.CallOption) (*GenerateEnterpriseUpgradeUrlResponse, error)
- func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) Fields(s ...googleapi.Field) *EnterprisesGenerateEnterpriseUpgradeUrlCall
- func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) Header() http.Header
- type EnterprisesGenerateSignupUrlCall
- func (c *EnterprisesGenerateSignupUrlCall) AdminEmail(adminEmail string) *EnterprisesGenerateSignupUrlCall
- func (c *EnterprisesGenerateSignupUrlCall) AllowedDomains(allowedDomains ...string) *EnterprisesGenerateSignupUrlCall
- func (c *EnterprisesGenerateSignupUrlCall) CallbackUrl(callbackUrl string) *EnterprisesGenerateSignupUrlCall
- func (c *EnterprisesGenerateSignupUrlCall) Context(ctx context.Context) *EnterprisesGenerateSignupUrlCall
- func (c *EnterprisesGenerateSignupUrlCall) Do(opts ...googleapi.CallOption) (*SignupInfo, error)
- func (c *EnterprisesGenerateSignupUrlCall) Fields(s ...googleapi.Field) *EnterprisesGenerateSignupUrlCall
- func (c *EnterprisesGenerateSignupUrlCall) Header() http.Header
- type EnterprisesGetCall
- func (c *EnterprisesGetCall) Context(ctx context.Context) *EnterprisesGetCall
- func (c *EnterprisesGetCall) Do(opts ...googleapi.CallOption) (*Enterprise, error)
- func (c *EnterprisesGetCall) Fields(s ...googleapi.Field) *EnterprisesGetCall
- func (c *EnterprisesGetCall) Header() http.Header
- func (c *EnterprisesGetCall) IfNoneMatch(entityTag string) *EnterprisesGetCall
- type EnterprisesGetServiceAccountCall
- func (c *EnterprisesGetServiceAccountCall) Context(ctx context.Context) *EnterprisesGetServiceAccountCall
- func (c *EnterprisesGetServiceAccountCall) Do(opts ...googleapi.CallOption) (*ServiceAccount, error)
- func (c *EnterprisesGetServiceAccountCall) Fields(s ...googleapi.Field) *EnterprisesGetServiceAccountCall
- func (c *EnterprisesGetServiceAccountCall) Header() http.Header
- func (c *EnterprisesGetServiceAccountCall) IfNoneMatch(entityTag string) *EnterprisesGetServiceAccountCall
- func (c *EnterprisesGetServiceAccountCall) KeyType(keyType string) *EnterprisesGetServiceAccountCall
- type EnterprisesGetStoreLayoutCall
- func (c *EnterprisesGetStoreLayoutCall) Context(ctx context.Context) *EnterprisesGetStoreLayoutCall
- func (c *EnterprisesGetStoreLayoutCall) Do(opts ...googleapi.CallOption) (*StoreLayout, error)
- func (c *EnterprisesGetStoreLayoutCall) Fields(s ...googleapi.Field) *EnterprisesGetStoreLayoutCall
- func (c *EnterprisesGetStoreLayoutCall) Header() http.Header
- func (c *EnterprisesGetStoreLayoutCall) IfNoneMatch(entityTag string) *EnterprisesGetStoreLayoutCall
- type EnterprisesListCall
- func (c *EnterprisesListCall) Context(ctx context.Context) *EnterprisesListCall
- func (c *EnterprisesListCall) Do(opts ...googleapi.CallOption) (*EnterprisesListResponse, error)
- func (c *EnterprisesListCall) Fields(s ...googleapi.Field) *EnterprisesListCall
- func (c *EnterprisesListCall) Header() http.Header
- func (c *EnterprisesListCall) IfNoneMatch(entityTag string) *EnterprisesListCall
- type EnterprisesListResponse
- type EnterprisesPullNotificationSetCall
- func (c *EnterprisesPullNotificationSetCall) Context(ctx context.Context) *EnterprisesPullNotificationSetCall
- func (c *EnterprisesPullNotificationSetCall) Do(opts ...googleapi.CallOption) (*NotificationSet, error)
- func (c *EnterprisesPullNotificationSetCall) Fields(s ...googleapi.Field) *EnterprisesPullNotificationSetCall
- func (c *EnterprisesPullNotificationSetCall) Header() http.Header
- func (c *EnterprisesPullNotificationSetCall) RequestMode(requestMode string) *EnterprisesPullNotificationSetCall
- type EnterprisesSendTestPushNotificationCall
- func (c *EnterprisesSendTestPushNotificationCall) Context(ctx context.Context) *EnterprisesSendTestPushNotificationCall
- func (c *EnterprisesSendTestPushNotificationCall) Do(opts ...googleapi.CallOption) (*EnterprisesSendTestPushNotificationResponse, error)
- func (c *EnterprisesSendTestPushNotificationCall) Fields(s ...googleapi.Field) *EnterprisesSendTestPushNotificationCall
- func (c *EnterprisesSendTestPushNotificationCall) Header() http.Header
- type EnterprisesSendTestPushNotificationResponse
- type EnterprisesService
- func (r *EnterprisesService) AcknowledgeNotificationSet() *EnterprisesAcknowledgeNotificationSetCall
- func (r *EnterprisesService) CompleteSignup() *EnterprisesCompleteSignupCall
- func (r *EnterprisesService) CreateWebToken(enterpriseId string, administratorwebtokenspec *AdministratorWebTokenSpec) *EnterprisesCreateWebTokenCall
- func (r *EnterprisesService) Enroll(token string, enterprise *Enterprise) *EnterprisesEnrollCall
- func (r *EnterprisesService) GenerateEnterpriseUpgradeUrl(enterpriseId string) *EnterprisesGenerateEnterpriseUpgradeUrlCall
- func (r *EnterprisesService) GenerateSignupUrl() *EnterprisesGenerateSignupUrlCall
- func (r *EnterprisesService) Get(enterpriseId string) *EnterprisesGetCall
- func (r *EnterprisesService) GetServiceAccount(enterpriseId string) *EnterprisesGetServiceAccountCall
- func (r *EnterprisesService) GetStoreLayout(enterpriseId string) *EnterprisesGetStoreLayoutCall
- func (r *EnterprisesService) List(domain string) *EnterprisesListCall
- func (r *EnterprisesService) PullNotificationSet() *EnterprisesPullNotificationSetCall
- func (r *EnterprisesService) SendTestPushNotification(enterpriseId string) *EnterprisesSendTestPushNotificationCall
- func (r *EnterprisesService) SetAccount(enterpriseId string, enterpriseaccount *EnterpriseAccount) *EnterprisesSetAccountCall
- func (r *EnterprisesService) SetStoreLayout(enterpriseId string, storelayout *StoreLayout) *EnterprisesSetStoreLayoutCall
- func (r *EnterprisesService) Unenroll(enterpriseId string) *EnterprisesUnenrollCall
- type EnterprisesSetAccountCall
- func (c *EnterprisesSetAccountCall) Context(ctx context.Context) *EnterprisesSetAccountCall
- func (c *EnterprisesSetAccountCall) Do(opts ...googleapi.CallOption) (*EnterpriseAccount, error)
- func (c *EnterprisesSetAccountCall) Fields(s ...googleapi.Field) *EnterprisesSetAccountCall
- func (c *EnterprisesSetAccountCall) Header() http.Header
- type EnterprisesSetStoreLayoutCall
- func (c *EnterprisesSetStoreLayoutCall) Context(ctx context.Context) *EnterprisesSetStoreLayoutCall
- func (c *EnterprisesSetStoreLayoutCall) Do(opts ...googleapi.CallOption) (*StoreLayout, error)
- func (c *EnterprisesSetStoreLayoutCall) Fields(s ...googleapi.Field) *EnterprisesSetStoreLayoutCall
- func (c *EnterprisesSetStoreLayoutCall) Header() http.Header
- type EnterprisesUnenrollCall
- func (c *EnterprisesUnenrollCall) Context(ctx context.Context) *EnterprisesUnenrollCall
- func (c *EnterprisesUnenrollCall) Do(opts ...googleapi.CallOption) error
- func (c *EnterprisesUnenrollCall) Fields(s ...googleapi.Field) *EnterprisesUnenrollCall
- func (c *EnterprisesUnenrollCall) Header() http.Header
- type Entitlement
- type EntitlementsDeleteCall
- type EntitlementsGetCall
- func (c *EntitlementsGetCall) Context(ctx context.Context) *EntitlementsGetCall
- func (c *EntitlementsGetCall) Do(opts ...googleapi.CallOption) (*Entitlement, error)
- func (c *EntitlementsGetCall) Fields(s ...googleapi.Field) *EntitlementsGetCall
- func (c *EntitlementsGetCall) Header() http.Header
- func (c *EntitlementsGetCall) IfNoneMatch(entityTag string) *EntitlementsGetCall
- type EntitlementsListCall
- func (c *EntitlementsListCall) Context(ctx context.Context) *EntitlementsListCall
- func (c *EntitlementsListCall) Do(opts ...googleapi.CallOption) (*EntitlementsListResponse, error)
- func (c *EntitlementsListCall) Fields(s ...googleapi.Field) *EntitlementsListCall
- func (c *EntitlementsListCall) Header() http.Header
- func (c *EntitlementsListCall) IfNoneMatch(entityTag string) *EntitlementsListCall
- type EntitlementsListResponse
- type EntitlementsService
- func (r *EntitlementsService) Delete(enterpriseId string, userId string, entitlementId string) *EntitlementsDeleteCall
- func (r *EntitlementsService) Get(enterpriseId string, userId string, entitlementId string) *EntitlementsGetCall
- func (r *EntitlementsService) List(enterpriseId string, userId string) *EntitlementsListCall
- func (r *EntitlementsService) Update(enterpriseId string, userId string, entitlementId string, ...) *EntitlementsUpdateCall
- type EntitlementsUpdateCall
- func (c *EntitlementsUpdateCall) Context(ctx context.Context) *EntitlementsUpdateCall
- func (c *EntitlementsUpdateCall) Do(opts ...googleapi.CallOption) (*Entitlement, error)
- func (c *EntitlementsUpdateCall) Fields(s ...googleapi.Field) *EntitlementsUpdateCall
- func (c *EntitlementsUpdateCall) Header() http.Header
- func (c *EntitlementsUpdateCall) Install(install bool) *EntitlementsUpdateCall
- type GenerateEnterpriseUpgradeUrlResponse
- type GoogleAuthenticationSettings
- type GroupLicense
- type GroupLicenseUsersListResponse
- type GroupLicensesListResponse
- type GrouplicensesGetCall
- func (c *GrouplicensesGetCall) Context(ctx context.Context) *GrouplicensesGetCall
- func (c *GrouplicensesGetCall) Do(opts ...googleapi.CallOption) (*GroupLicense, error)
- func (c *GrouplicensesGetCall) Fields(s ...googleapi.Field) *GrouplicensesGetCall
- func (c *GrouplicensesGetCall) Header() http.Header
- func (c *GrouplicensesGetCall) IfNoneMatch(entityTag string) *GrouplicensesGetCall
- type GrouplicensesListCall
- func (c *GrouplicensesListCall) Context(ctx context.Context) *GrouplicensesListCall
- func (c *GrouplicensesListCall) Do(opts ...googleapi.CallOption) (*GroupLicensesListResponse, error)
- func (c *GrouplicensesListCall) Fields(s ...googleapi.Field) *GrouplicensesListCall
- func (c *GrouplicensesListCall) Header() http.Header
- func (c *GrouplicensesListCall) IfNoneMatch(entityTag string) *GrouplicensesListCall
- type GrouplicensesService
- type GrouplicenseusersListCall
- func (c *GrouplicenseusersListCall) Context(ctx context.Context) *GrouplicenseusersListCall
- func (c *GrouplicenseusersListCall) Do(opts ...googleapi.CallOption) (*GroupLicenseUsersListResponse, error)
- func (c *GrouplicenseusersListCall) Fields(s ...googleapi.Field) *GrouplicenseusersListCall
- func (c *GrouplicenseusersListCall) Header() http.Header
- func (c *GrouplicenseusersListCall) IfNoneMatch(entityTag string) *GrouplicenseusersListCall
- type GrouplicenseusersService
- type Install
- type InstallFailureEvent
- type InstallsDeleteCall
- type InstallsGetCall
- func (c *InstallsGetCall) Context(ctx context.Context) *InstallsGetCall
- func (c *InstallsGetCall) Do(opts ...googleapi.CallOption) (*Install, error)
- func (c *InstallsGetCall) Fields(s ...googleapi.Field) *InstallsGetCall
- func (c *InstallsGetCall) Header() http.Header
- func (c *InstallsGetCall) IfNoneMatch(entityTag string) *InstallsGetCall
- type InstallsListCall
- func (c *InstallsListCall) Context(ctx context.Context) *InstallsListCall
- func (c *InstallsListCall) Do(opts ...googleapi.CallOption) (*InstallsListResponse, error)
- func (c *InstallsListCall) Fields(s ...googleapi.Field) *InstallsListCall
- func (c *InstallsListCall) Header() http.Header
- func (c *InstallsListCall) IfNoneMatch(entityTag string) *InstallsListCall
- type InstallsListResponse
- type InstallsService
- func (r *InstallsService) Delete(enterpriseId string, userId string, deviceId string, installId string) *InstallsDeleteCall
- func (r *InstallsService) Get(enterpriseId string, userId string, deviceId string, installId string) *InstallsGetCall
- func (r *InstallsService) List(enterpriseId string, userId string, deviceId string) *InstallsListCall
- func (r *InstallsService) Update(enterpriseId string, userId string, deviceId string, installId string, ...) *InstallsUpdateCall
- type InstallsUpdateCall
- type KeyedAppState
- type LocalizedText
- type MaintenanceWindow
- type ManagedConfiguration
- type ManagedConfigurationsForDeviceListResponse
- type ManagedConfigurationsForUserListResponse
- type ManagedConfigurationsSettings
- type ManagedConfigurationsSettingsListResponse
- type ManagedProperty
- type ManagedPropertyBundle
- type ManagedconfigurationsfordeviceDeleteCall
- func (c *ManagedconfigurationsfordeviceDeleteCall) Context(ctx context.Context) *ManagedconfigurationsfordeviceDeleteCall
- func (c *ManagedconfigurationsfordeviceDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *ManagedconfigurationsfordeviceDeleteCall) Fields(s ...googleapi.Field) *ManagedconfigurationsfordeviceDeleteCall
- func (c *ManagedconfigurationsfordeviceDeleteCall) Header() http.Header
- type ManagedconfigurationsfordeviceGetCall
- func (c *ManagedconfigurationsfordeviceGetCall) Context(ctx context.Context) *ManagedconfigurationsfordeviceGetCall
- func (c *ManagedconfigurationsfordeviceGetCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration, error)
- func (c *ManagedconfigurationsfordeviceGetCall) Fields(s ...googleapi.Field) *ManagedconfigurationsfordeviceGetCall
- func (c *ManagedconfigurationsfordeviceGetCall) Header() http.Header
- func (c *ManagedconfigurationsfordeviceGetCall) IfNoneMatch(entityTag string) *ManagedconfigurationsfordeviceGetCall
- type ManagedconfigurationsfordeviceListCall
- func (c *ManagedconfigurationsfordeviceListCall) Context(ctx context.Context) *ManagedconfigurationsfordeviceListCall
- func (c *ManagedconfigurationsfordeviceListCall) Do(opts ...googleapi.CallOption) (*ManagedConfigurationsForDeviceListResponse, error)
- func (c *ManagedconfigurationsfordeviceListCall) Fields(s ...googleapi.Field) *ManagedconfigurationsfordeviceListCall
- func (c *ManagedconfigurationsfordeviceListCall) Header() http.Header
- func (c *ManagedconfigurationsfordeviceListCall) IfNoneMatch(entityTag string) *ManagedconfigurationsfordeviceListCall
- type ManagedconfigurationsfordeviceService
- func (r *ManagedconfigurationsfordeviceService) Delete(enterpriseId string, userId string, deviceId string, ...) *ManagedconfigurationsfordeviceDeleteCall
- func (r *ManagedconfigurationsfordeviceService) Get(enterpriseId string, userId string, deviceId string, ...) *ManagedconfigurationsfordeviceGetCall
- func (r *ManagedconfigurationsfordeviceService) List(enterpriseId string, userId string, deviceId string) *ManagedconfigurationsfordeviceListCall
- func (r *ManagedconfigurationsfordeviceService) Update(enterpriseId string, userId string, deviceId string, ...) *ManagedconfigurationsfordeviceUpdateCall
- type ManagedconfigurationsfordeviceUpdateCall
- func (c *ManagedconfigurationsfordeviceUpdateCall) Context(ctx context.Context) *ManagedconfigurationsfordeviceUpdateCall
- func (c *ManagedconfigurationsfordeviceUpdateCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration, error)
- func (c *ManagedconfigurationsfordeviceUpdateCall) Fields(s ...googleapi.Field) *ManagedconfigurationsfordeviceUpdateCall
- func (c *ManagedconfigurationsfordeviceUpdateCall) Header() http.Header
- type ManagedconfigurationsforuserDeleteCall
- func (c *ManagedconfigurationsforuserDeleteCall) Context(ctx context.Context) *ManagedconfigurationsforuserDeleteCall
- func (c *ManagedconfigurationsforuserDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *ManagedconfigurationsforuserDeleteCall) Fields(s ...googleapi.Field) *ManagedconfigurationsforuserDeleteCall
- func (c *ManagedconfigurationsforuserDeleteCall) Header() http.Header
- type ManagedconfigurationsforuserGetCall
- func (c *ManagedconfigurationsforuserGetCall) Context(ctx context.Context) *ManagedconfigurationsforuserGetCall
- func (c *ManagedconfigurationsforuserGetCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration, error)
- func (c *ManagedconfigurationsforuserGetCall) Fields(s ...googleapi.Field) *ManagedconfigurationsforuserGetCall
- func (c *ManagedconfigurationsforuserGetCall) Header() http.Header
- func (c *ManagedconfigurationsforuserGetCall) IfNoneMatch(entityTag string) *ManagedconfigurationsforuserGetCall
- type ManagedconfigurationsforuserListCall
- func (c *ManagedconfigurationsforuserListCall) Context(ctx context.Context) *ManagedconfigurationsforuserListCall
- func (c *ManagedconfigurationsforuserListCall) Do(opts ...googleapi.CallOption) (*ManagedConfigurationsForUserListResponse, error)
- func (c *ManagedconfigurationsforuserListCall) Fields(s ...googleapi.Field) *ManagedconfigurationsforuserListCall
- func (c *ManagedconfigurationsforuserListCall) Header() http.Header
- func (c *ManagedconfigurationsforuserListCall) IfNoneMatch(entityTag string) *ManagedconfigurationsforuserListCall
- type ManagedconfigurationsforuserService
- func (r *ManagedconfigurationsforuserService) Delete(enterpriseId string, userId string, managedConfigurationForUserId string) *ManagedconfigurationsforuserDeleteCall
- func (r *ManagedconfigurationsforuserService) Get(enterpriseId string, userId string, managedConfigurationForUserId string) *ManagedconfigurationsforuserGetCall
- func (r *ManagedconfigurationsforuserService) List(enterpriseId string, userId string) *ManagedconfigurationsforuserListCall
- func (r *ManagedconfigurationsforuserService) Update(enterpriseId string, userId string, managedConfigurationForUserId string, ...) *ManagedconfigurationsforuserUpdateCall
- type ManagedconfigurationsforuserUpdateCall
- func (c *ManagedconfigurationsforuserUpdateCall) Context(ctx context.Context) *ManagedconfigurationsforuserUpdateCall
- func (c *ManagedconfigurationsforuserUpdateCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration, error)
- func (c *ManagedconfigurationsforuserUpdateCall) Fields(s ...googleapi.Field) *ManagedconfigurationsforuserUpdateCall
- func (c *ManagedconfigurationsforuserUpdateCall) Header() http.Header
- type ManagedconfigurationssettingsListCall
- func (c *ManagedconfigurationssettingsListCall) Context(ctx context.Context) *ManagedconfigurationssettingsListCall
- func (c *ManagedconfigurationssettingsListCall) Do(opts ...googleapi.CallOption) (*ManagedConfigurationsSettingsListResponse, error)
- func (c *ManagedconfigurationssettingsListCall) Fields(s ...googleapi.Field) *ManagedconfigurationssettingsListCall
- func (c *ManagedconfigurationssettingsListCall) Header() http.Header
- func (c *ManagedconfigurationssettingsListCall) IfNoneMatch(entityTag string) *ManagedconfigurationssettingsListCall
- type ManagedconfigurationssettingsService
- type NewDeviceEvent
- type NewPermissionsEvent
- type Notification
- type NotificationSet
- type PageInfo
- type Permission
- type PermissionsGetCall
- func (c *PermissionsGetCall) Context(ctx context.Context) *PermissionsGetCall
- func (c *PermissionsGetCall) Do(opts ...googleapi.CallOption) (*Permission, error)
- func (c *PermissionsGetCall) Fields(s ...googleapi.Field) *PermissionsGetCall
- func (c *PermissionsGetCall) Header() http.Header
- func (c *PermissionsGetCall) IfNoneMatch(entityTag string) *PermissionsGetCall
- func (c *PermissionsGetCall) Language(language string) *PermissionsGetCall
- type PermissionsService
- type Policy
- type Product
- type ProductApprovalEvent
- type ProductAvailabilityChangeEvent
- type ProductPermission
- type ProductPermissions
- type ProductPolicy
- type ProductSet
- type ProductSigningCertificate
- type ProductVisibility
- type ProductsApproveCall
- type ProductsApproveRequest
- type ProductsGenerateApprovalUrlCall
- func (c *ProductsGenerateApprovalUrlCall) Context(ctx context.Context) *ProductsGenerateApprovalUrlCall
- func (c *ProductsGenerateApprovalUrlCall) Do(opts ...googleapi.CallOption) (*ProductsGenerateApprovalUrlResponse, error)
- func (c *ProductsGenerateApprovalUrlCall) Fields(s ...googleapi.Field) *ProductsGenerateApprovalUrlCall
- func (c *ProductsGenerateApprovalUrlCall) Header() http.Header
- func (c *ProductsGenerateApprovalUrlCall) LanguageCode(languageCode string) *ProductsGenerateApprovalUrlCall
- type ProductsGenerateApprovalUrlResponse
- type ProductsGetAppRestrictionsSchemaCall
- func (c *ProductsGetAppRestrictionsSchemaCall) Context(ctx context.Context) *ProductsGetAppRestrictionsSchemaCall
- func (c *ProductsGetAppRestrictionsSchemaCall) Do(opts ...googleapi.CallOption) (*AppRestrictionsSchema, error)
- func (c *ProductsGetAppRestrictionsSchemaCall) Fields(s ...googleapi.Field) *ProductsGetAppRestrictionsSchemaCall
- func (c *ProductsGetAppRestrictionsSchemaCall) Header() http.Header
- func (c *ProductsGetAppRestrictionsSchemaCall) IfNoneMatch(entityTag string) *ProductsGetAppRestrictionsSchemaCall
- func (c *ProductsGetAppRestrictionsSchemaCall) Language(language string) *ProductsGetAppRestrictionsSchemaCall
- type ProductsGetCall
- func (c *ProductsGetCall) Context(ctx context.Context) *ProductsGetCall
- func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error)
- func (c *ProductsGetCall) Fields(s ...googleapi.Field) *ProductsGetCall
- func (c *ProductsGetCall) Header() http.Header
- func (c *ProductsGetCall) IfNoneMatch(entityTag string) *ProductsGetCall
- func (c *ProductsGetCall) Language(language string) *ProductsGetCall
- type ProductsGetPermissionsCall
- func (c *ProductsGetPermissionsCall) Context(ctx context.Context) *ProductsGetPermissionsCall
- func (c *ProductsGetPermissionsCall) Do(opts ...googleapi.CallOption) (*ProductPermissions, error)
- func (c *ProductsGetPermissionsCall) Fields(s ...googleapi.Field) *ProductsGetPermissionsCall
- func (c *ProductsGetPermissionsCall) Header() http.Header
- func (c *ProductsGetPermissionsCall) IfNoneMatch(entityTag string) *ProductsGetPermissionsCall
- type ProductsListCall
- func (c *ProductsListCall) Approved(approved bool) *ProductsListCall
- func (c *ProductsListCall) Context(ctx context.Context) *ProductsListCall
- func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*ProductsListResponse, error)
- func (c *ProductsListCall) Fields(s ...googleapi.Field) *ProductsListCall
- func (c *ProductsListCall) Header() http.Header
- func (c *ProductsListCall) IfNoneMatch(entityTag string) *ProductsListCall
- func (c *ProductsListCall) Language(language string) *ProductsListCall
- func (c *ProductsListCall) MaxResults(maxResults int64) *ProductsListCall
- func (c *ProductsListCall) Query(query string) *ProductsListCall
- func (c *ProductsListCall) Token(token string) *ProductsListCall
- type ProductsListResponse
- type ProductsService
- func (r *ProductsService) Approve(enterpriseId string, productId string, ...) *ProductsApproveCall
- func (r *ProductsService) GenerateApprovalUrl(enterpriseId string, productId string) *ProductsGenerateApprovalUrlCall
- func (r *ProductsService) Get(enterpriseId string, productId string) *ProductsGetCall
- func (r *ProductsService) GetAppRestrictionsSchema(enterpriseId string, productId string) *ProductsGetAppRestrictionsSchemaCall
- func (r *ProductsService) GetPermissions(enterpriseId string, productId string) *ProductsGetPermissionsCall
- func (r *ProductsService) List(enterpriseId string) *ProductsListCall
- func (r *ProductsService) Unapprove(enterpriseId string, productId string) *ProductsUnapproveCall
- type ProductsUnapproveCall
- type Service
- type ServiceAccount
- type ServiceAccountKey
- type ServiceAccountKeysListResponse
- type ServiceaccountkeysDeleteCall
- func (c *ServiceaccountkeysDeleteCall) Context(ctx context.Context) *ServiceaccountkeysDeleteCall
- func (c *ServiceaccountkeysDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *ServiceaccountkeysDeleteCall) Fields(s ...googleapi.Field) *ServiceaccountkeysDeleteCall
- func (c *ServiceaccountkeysDeleteCall) Header() http.Header
- type ServiceaccountkeysInsertCall
- func (c *ServiceaccountkeysInsertCall) Context(ctx context.Context) *ServiceaccountkeysInsertCall
- func (c *ServiceaccountkeysInsertCall) Do(opts ...googleapi.CallOption) (*ServiceAccountKey, error)
- func (c *ServiceaccountkeysInsertCall) Fields(s ...googleapi.Field) *ServiceaccountkeysInsertCall
- func (c *ServiceaccountkeysInsertCall) Header() http.Header
- type ServiceaccountkeysListCall
- func (c *ServiceaccountkeysListCall) Context(ctx context.Context) *ServiceaccountkeysListCall
- func (c *ServiceaccountkeysListCall) Do(opts ...googleapi.CallOption) (*ServiceAccountKeysListResponse, error)
- func (c *ServiceaccountkeysListCall) Fields(s ...googleapi.Field) *ServiceaccountkeysListCall
- func (c *ServiceaccountkeysListCall) Header() http.Header
- func (c *ServiceaccountkeysListCall) IfNoneMatch(entityTag string) *ServiceaccountkeysListCall
- type ServiceaccountkeysService
- func (r *ServiceaccountkeysService) Delete(enterpriseId string, keyId string) *ServiceaccountkeysDeleteCall
- func (r *ServiceaccountkeysService) Insert(enterpriseId string, serviceaccountkey *ServiceAccountKey) *ServiceaccountkeysInsertCall
- func (r *ServiceaccountkeysService) List(enterpriseId string) *ServiceaccountkeysListCall
- type SignupInfo
- type StoreCluster
- type StoreLayout
- type StoreLayoutClustersListResponse
- type StoreLayoutPagesListResponse
- type StorePage
- type StorelayoutclustersDeleteCall
- func (c *StorelayoutclustersDeleteCall) Context(ctx context.Context) *StorelayoutclustersDeleteCall
- func (c *StorelayoutclustersDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *StorelayoutclustersDeleteCall) Fields(s ...googleapi.Field) *StorelayoutclustersDeleteCall
- func (c *StorelayoutclustersDeleteCall) Header() http.Header
- type StorelayoutclustersGetCall
- func (c *StorelayoutclustersGetCall) Context(ctx context.Context) *StorelayoutclustersGetCall
- func (c *StorelayoutclustersGetCall) Do(opts ...googleapi.CallOption) (*StoreCluster, error)
- func (c *StorelayoutclustersGetCall) Fields(s ...googleapi.Field) *StorelayoutclustersGetCall
- func (c *StorelayoutclustersGetCall) Header() http.Header
- func (c *StorelayoutclustersGetCall) IfNoneMatch(entityTag string) *StorelayoutclustersGetCall
- type StorelayoutclustersInsertCall
- func (c *StorelayoutclustersInsertCall) Context(ctx context.Context) *StorelayoutclustersInsertCall
- func (c *StorelayoutclustersInsertCall) Do(opts ...googleapi.CallOption) (*StoreCluster, error)
- func (c *StorelayoutclustersInsertCall) Fields(s ...googleapi.Field) *StorelayoutclustersInsertCall
- func (c *StorelayoutclustersInsertCall) Header() http.Header
- type StorelayoutclustersListCall
- func (c *StorelayoutclustersListCall) Context(ctx context.Context) *StorelayoutclustersListCall
- func (c *StorelayoutclustersListCall) Do(opts ...googleapi.CallOption) (*StoreLayoutClustersListResponse, error)
- func (c *StorelayoutclustersListCall) Fields(s ...googleapi.Field) *StorelayoutclustersListCall
- func (c *StorelayoutclustersListCall) Header() http.Header
- func (c *StorelayoutclustersListCall) IfNoneMatch(entityTag string) *StorelayoutclustersListCall
- type StorelayoutclustersService
- func (r *StorelayoutclustersService) Delete(enterpriseId string, pageId string, clusterId string) *StorelayoutclustersDeleteCall
- func (r *StorelayoutclustersService) Get(enterpriseId string, pageId string, clusterId string) *StorelayoutclustersGetCall
- func (r *StorelayoutclustersService) Insert(enterpriseId string, pageId string, storecluster *StoreCluster) *StorelayoutclustersInsertCall
- func (r *StorelayoutclustersService) List(enterpriseId string, pageId string) *StorelayoutclustersListCall
- func (r *StorelayoutclustersService) Update(enterpriseId string, pageId string, clusterId string, ...) *StorelayoutclustersUpdateCall
- type StorelayoutclustersUpdateCall
- func (c *StorelayoutclustersUpdateCall) Context(ctx context.Context) *StorelayoutclustersUpdateCall
- func (c *StorelayoutclustersUpdateCall) Do(opts ...googleapi.CallOption) (*StoreCluster, error)
- func (c *StorelayoutclustersUpdateCall) Fields(s ...googleapi.Field) *StorelayoutclustersUpdateCall
- func (c *StorelayoutclustersUpdateCall) Header() http.Header
- type StorelayoutpagesDeleteCall
- func (c *StorelayoutpagesDeleteCall) Context(ctx context.Context) *StorelayoutpagesDeleteCall
- func (c *StorelayoutpagesDeleteCall) Do(opts ...googleapi.CallOption) error
- func (c *StorelayoutpagesDeleteCall) Fields(s ...googleapi.Field) *StorelayoutpagesDeleteCall
- func (c *StorelayoutpagesDeleteCall) Header() http.Header
- type StorelayoutpagesGetCall
- func (c *StorelayoutpagesGetCall) Context(ctx context.Context) *StorelayoutpagesGetCall
- func (c *StorelayoutpagesGetCall) Do(opts ...googleapi.CallOption) (*StorePage, error)
- func (c *StorelayoutpagesGetCall) Fields(s ...googleapi.Field) *StorelayoutpagesGetCall
- func (c *StorelayoutpagesGetCall) Header() http.Header
- func (c *StorelayoutpagesGetCall) IfNoneMatch(entityTag string) *StorelayoutpagesGetCall
- type StorelayoutpagesInsertCall
- func (c *StorelayoutpagesInsertCall) Context(ctx context.Context) *StorelayoutpagesInsertCall
- func (c *StorelayoutpagesInsertCall) Do(opts ...googleapi.CallOption) (*StorePage, error)
- func (c *StorelayoutpagesInsertCall) Fields(s ...googleapi.Field) *StorelayoutpagesInsertCall
- func (c *StorelayoutpagesInsertCall) Header() http.Header
- type StorelayoutpagesListCall
- func (c *StorelayoutpagesListCall) Context(ctx context.Context) *StorelayoutpagesListCall
- func (c *StorelayoutpagesListCall) Do(opts ...googleapi.CallOption) (*StoreLayoutPagesListResponse, error)
- func (c *StorelayoutpagesListCall) Fields(s ...googleapi.Field) *StorelayoutpagesListCall
- func (c *StorelayoutpagesListCall) Header() http.Header
- func (c *StorelayoutpagesListCall) IfNoneMatch(entityTag string) *StorelayoutpagesListCall
- type StorelayoutpagesService
- func (r *StorelayoutpagesService) Delete(enterpriseId string, pageId string) *StorelayoutpagesDeleteCall
- func (r *StorelayoutpagesService) Get(enterpriseId string, pageId string) *StorelayoutpagesGetCall
- func (r *StorelayoutpagesService) Insert(enterpriseId string, storepage *StorePage) *StorelayoutpagesInsertCall
- func (r *StorelayoutpagesService) List(enterpriseId string) *StorelayoutpagesListCall
- func (r *StorelayoutpagesService) Update(enterpriseId string, pageId string, storepage *StorePage) *StorelayoutpagesUpdateCall
- type StorelayoutpagesUpdateCall
- func (c *StorelayoutpagesUpdateCall) Context(ctx context.Context) *StorelayoutpagesUpdateCall
- func (c *StorelayoutpagesUpdateCall) Do(opts ...googleapi.CallOption) (*StorePage, error)
- func (c *StorelayoutpagesUpdateCall) Fields(s ...googleapi.Field) *StorelayoutpagesUpdateCall
- func (c *StorelayoutpagesUpdateCall) Header() http.Header
- type TokenPagination
- type TrackInfo
- type User
- type UsersDeleteCall
- type UsersGenerateAuthenticationTokenCall
- func (c *UsersGenerateAuthenticationTokenCall) Context(ctx context.Context) *UsersGenerateAuthenticationTokenCall
- func (c *UsersGenerateAuthenticationTokenCall) Do(opts ...googleapi.CallOption) (*AuthenticationToken, error)
- func (c *UsersGenerateAuthenticationTokenCall) Fields(s ...googleapi.Field) *UsersGenerateAuthenticationTokenCall
- func (c *UsersGenerateAuthenticationTokenCall) Header() http.Header
- type UsersGetAvailableProductSetCall
- func (c *UsersGetAvailableProductSetCall) Context(ctx context.Context) *UsersGetAvailableProductSetCall
- func (c *UsersGetAvailableProductSetCall) Do(opts ...googleapi.CallOption) (*ProductSet, error)
- func (c *UsersGetAvailableProductSetCall) Fields(s ...googleapi.Field) *UsersGetAvailableProductSetCall
- func (c *UsersGetAvailableProductSetCall) Header() http.Header
- func (c *UsersGetAvailableProductSetCall) IfNoneMatch(entityTag string) *UsersGetAvailableProductSetCall
- type UsersGetCall
- func (c *UsersGetCall) Context(ctx context.Context) *UsersGetCall
- func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error)
- func (c *UsersGetCall) Fields(s ...googleapi.Field) *UsersGetCall
- func (c *UsersGetCall) Header() http.Header
- func (c *UsersGetCall) IfNoneMatch(entityTag string) *UsersGetCall
- type UsersInsertCall
- type UsersListCall
- func (c *UsersListCall) Context(ctx context.Context) *UsersListCall
- func (c *UsersListCall) Do(opts ...googleapi.CallOption) (*UsersListResponse, error)
- func (c *UsersListCall) Fields(s ...googleapi.Field) *UsersListCall
- func (c *UsersListCall) Header() http.Header
- func (c *UsersListCall) IfNoneMatch(entityTag string) *UsersListCall
- type UsersListResponse
- type UsersRevokeDeviceAccessCall
- func (c *UsersRevokeDeviceAccessCall) Context(ctx context.Context) *UsersRevokeDeviceAccessCall
- func (c *UsersRevokeDeviceAccessCall) Do(opts ...googleapi.CallOption) error
- func (c *UsersRevokeDeviceAccessCall) Fields(s ...googleapi.Field) *UsersRevokeDeviceAccessCall
- func (c *UsersRevokeDeviceAccessCall) Header() http.Header
- type UsersService
- func (r *UsersService) Delete(enterpriseId string, userId string) *UsersDeleteCall
- func (r *UsersService) GenerateAuthenticationToken(enterpriseId string, userId string) *UsersGenerateAuthenticationTokenCall
- func (r *UsersService) Get(enterpriseId string, userId string) *UsersGetCall
- func (r *UsersService) GetAvailableProductSet(enterpriseId string, userId string) *UsersGetAvailableProductSetCall
- func (r *UsersService) Insert(enterpriseId string, user *User) *UsersInsertCall
- func (r *UsersService) List(enterpriseId string, email string) *UsersListCall
- func (r *UsersService) RevokeDeviceAccess(enterpriseId string, userId string) *UsersRevokeDeviceAccessCall
- func (r *UsersService) SetAvailableProductSet(enterpriseId string, userId string, productset *ProductSet) *UsersSetAvailableProductSetCall
- func (r *UsersService) Update(enterpriseId string, userId string, user *User) *UsersUpdateCall
- type UsersSetAvailableProductSetCall
- func (c *UsersSetAvailableProductSetCall) Context(ctx context.Context) *UsersSetAvailableProductSetCall
- func (c *UsersSetAvailableProductSetCall) Do(opts ...googleapi.CallOption) (*ProductSet, error)
- func (c *UsersSetAvailableProductSetCall) Fields(s ...googleapi.Field) *UsersSetAvailableProductSetCall
- func (c *UsersSetAvailableProductSetCall) Header() http.Header
- type UsersUpdateCall
- type VariableSet
- type WebApp
- type WebAppIcon
- type WebAppsListResponse
- type WebappsDeleteCall
- type WebappsGetCall
- func (c *WebappsGetCall) Context(ctx context.Context) *WebappsGetCall
- func (c *WebappsGetCall) Do(opts ...googleapi.CallOption) (*WebApp, error)
- func (c *WebappsGetCall) Fields(s ...googleapi.Field) *WebappsGetCall
- func (c *WebappsGetCall) Header() http.Header
- func (c *WebappsGetCall) IfNoneMatch(entityTag string) *WebappsGetCall
- type WebappsInsertCall
- type WebappsListCall
- func (c *WebappsListCall) Context(ctx context.Context) *WebappsListCall
- func (c *WebappsListCall) Do(opts ...googleapi.CallOption) (*WebAppsListResponse, error)
- func (c *WebappsListCall) Fields(s ...googleapi.Field) *WebappsListCall
- func (c *WebappsListCall) Header() http.Header
- func (c *WebappsListCall) IfNoneMatch(entityTag string) *WebappsListCall
- type WebappsService
- func (r *WebappsService) Delete(enterpriseId string, webAppId string) *WebappsDeleteCall
- func (r *WebappsService) Get(enterpriseId string, webAppId string) *WebappsGetCall
- func (r *WebappsService) Insert(enterpriseId string, webapp *WebApp) *WebappsInsertCall
- func (r *WebappsService) List(enterpriseId string) *WebappsListCall
- func (r *WebappsService) Update(enterpriseId string, webAppId string, webapp *WebApp) *WebappsUpdateCall
- type WebappsUpdateCall
Constants¶
const (// Manage corporate Android devicesAndroidenterpriseScope = "https://www.googleapis.com/auth/androidenterprise")OAuth2 scopes used by this API.
Variables¶
This section is empty.
Functions¶
This section is empty.
Types¶
typeAdministrator¶
type Administrator struct {// Email: The admin's email address.Emailstring `json:"email,omitempty"`// ForceSendFields is a list of field names (e.g. "Email") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Email") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Administrator: This represents an enterprise admin who can manage theenterprise in the managed Google Play store.
func (Administrator)MarshalJSON¶
func (sAdministrator) MarshalJSON() ([]byte,error)
typeAdministratorWebToken¶
type AdministratorWebToken struct {// Token: An opaque token to be passed to the Play front-end to generate an// iframe.Tokenstring `json:"token,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Token") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Token") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AdministratorWebToken: A token authorizing an admin to access an iframe.
func (AdministratorWebToken)MarshalJSON¶
func (sAdministratorWebToken) MarshalJSON() ([]byte,error)
typeAdministratorWebTokenSpec¶
type AdministratorWebTokenSpec struct {// ManagedConfigurations: Options for displaying the Managed Configuration// page.ManagedConfigurations *AdministratorWebTokenSpecManagedConfigurations `json:"managedConfigurations,omitempty"`// Parent: The URI of the parent frame hosting the iframe. To prevent XSS, the// iframe may not be hosted at other URIs. This URI must be https. Use// whitespaces to separate multiple parent URIs.Parentstring `json:"parent,omitempty"`// Permission: Deprecated. Use PlaySearch.approveApps.//// Possible values:// "unknown" - Unknown permission.// "approveApps" - Permission to approve and unapprove apps.// "manageMcm" - Permission to manage app restrictions.Permission []string `json:"permission,omitempty"`// PlaySearch: Options for displaying the managed Play Search apps page.PlaySearch *AdministratorWebTokenSpecPlaySearch `json:"playSearch,omitempty"`// PrivateApps: Options for displaying the Private Apps page.PrivateApps *AdministratorWebTokenSpecPrivateApps `json:"privateApps,omitempty"`// StoreBuilder: Options for displaying the Organize apps page.StoreBuilder *AdministratorWebTokenSpecStoreBuilder `json:"storeBuilder,omitempty"`// WebApps: Options for displaying the Web Apps page.WebApps *AdministratorWebTokenSpecWebApps `json:"webApps,omitempty"`// ZeroTouch: Options for displaying the Zero Touch page.ZeroTouch *AdministratorWebTokenSpecZeroTouch `json:"zeroTouch,omitempty"`// ForceSendFields is a list of field names (e.g. "ManagedConfigurations") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ManagedConfigurations") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AdministratorWebTokenSpec: Specification for a token used to generateiframes. The token specifies what data the admin is allowed to modify andthe URI the iframe is allowed to communiate with.
func (AdministratorWebTokenSpec)MarshalJSON¶
func (sAdministratorWebTokenSpec) MarshalJSON() ([]byte,error)
typeAdministratorWebTokenSpecManagedConfigurations¶added inv0.2.0
type AdministratorWebTokenSpecManagedConfigurations struct {// Enabled: Whether the Managed Configuration page is displayed. Default is// true.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (AdministratorWebTokenSpecManagedConfigurations)MarshalJSON¶added inv0.2.0
func (sAdministratorWebTokenSpecManagedConfigurations) MarshalJSON() ([]byte,error)
typeAdministratorWebTokenSpecPlaySearch¶
type AdministratorWebTokenSpecPlaySearch struct {// ApproveApps: Allow access to the iframe in approve mode. Default is false.ApproveAppsbool `json:"approveApps,omitempty"`// Enabled: Whether the managed Play Search apps page is displayed. Default is// true.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "ApproveApps") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApproveApps") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (AdministratorWebTokenSpecPlaySearch)MarshalJSON¶
func (sAdministratorWebTokenSpecPlaySearch) MarshalJSON() ([]byte,error)
typeAdministratorWebTokenSpecPrivateApps¶
type AdministratorWebTokenSpecPrivateApps struct {// Enabled: Whether the Private Apps page is displayed. Default is true.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (AdministratorWebTokenSpecPrivateApps)MarshalJSON¶
func (sAdministratorWebTokenSpecPrivateApps) MarshalJSON() ([]byte,error)
typeAdministratorWebTokenSpecStoreBuilder¶
type AdministratorWebTokenSpecStoreBuilder struct {// Enabled: Whether the Organize apps page is displayed. Default is true.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (AdministratorWebTokenSpecStoreBuilder)MarshalJSON¶
func (sAdministratorWebTokenSpecStoreBuilder) MarshalJSON() ([]byte,error)
typeAdministratorWebTokenSpecWebApps¶
type AdministratorWebTokenSpecWebApps struct {// Enabled: Whether the Web Apps page is displayed. Default is true.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (AdministratorWebTokenSpecWebApps)MarshalJSON¶
func (sAdministratorWebTokenSpecWebApps) MarshalJSON() ([]byte,error)
typeAdministratorWebTokenSpecZeroTouch¶added inv0.46.0
type AdministratorWebTokenSpecZeroTouch struct {// Enabled: Whether zero-touch embedded UI is usable with this token. If// enabled, the admin can link zero-touch customers to this enterprise.Enabledbool `json:"enabled,omitempty"`// ForceSendFields is a list of field names (e.g. "Enabled") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enabled") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (AdministratorWebTokenSpecZeroTouch)MarshalJSON¶added inv0.46.0
func (sAdministratorWebTokenSpecZeroTouch) MarshalJSON() ([]byte,error)
typeAppRestrictionsSchema¶
type AppRestrictionsSchema struct {// Kind: Deprecated.Kindstring `json:"kind,omitempty"`// Restrictions: The set of restrictions that make up this schema.Restrictions []*AppRestrictionsSchemaRestriction `json:"restrictions,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Kind") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Kind") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AppRestrictionsSchema: Represents the list of app restrictions available tobe pre-configured for the product.
func (AppRestrictionsSchema)MarshalJSON¶
func (sAppRestrictionsSchema) MarshalJSON() ([]byte,error)
typeAppRestrictionsSchemaChangeEvent¶
type AppRestrictionsSchemaChangeEvent struct {// ProductId: The id of the product (e.g. "app:com.google.android.gm") for// which the app restriction schema changed. This field will always be present.ProductIdstring `json:"productId,omitempty"`// ForceSendFields is a list of field names (e.g. "ProductId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ProductId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AppRestrictionsSchemaChangeEvent: An event generated when a new app versionis uploaded to Google Play and its app restrictions schema changed. To fetchthe app restrictions schema for an app, useProducts.getAppRestrictionsSchema on the EMM API.
func (AppRestrictionsSchemaChangeEvent)MarshalJSON¶
func (sAppRestrictionsSchemaChangeEvent) MarshalJSON() ([]byte,error)
typeAppRestrictionsSchemaRestriction¶
type AppRestrictionsSchemaRestriction struct {// DefaultValue: The default value of the restriction. bundle and bundleArray// restrictions never have a default value.DefaultValue *AppRestrictionsSchemaRestrictionRestrictionValue `json:"defaultValue,omitempty"`// Description: A longer description of the restriction, giving more detail of// what it affects.Descriptionstring `json:"description,omitempty"`// Entry: For choice or multiselect restrictions, the list of possible entries'// human-readable names.Entry []string `json:"entry,omitempty"`// EntryValue: For choice or multiselect restrictions, the list of possible// entries' machine-readable values. These values should be used in the// configuration, either as a single string value for a choice restriction or// in a stringArray for a multiselect restriction.EntryValue []string `json:"entryValue,omitempty"`// Key: The unique key that the product uses to identify the restriction, e.g.// "com.google.android.gm.fieldname".Keystring `json:"key,omitempty"`// NestedRestriction: For bundle or bundleArray restrictions, the list of// nested restrictions. A bundle restriction is always nested within a// bundleArray restriction, and a bundleArray restriction is at most two levels// deep.NestedRestriction []*AppRestrictionsSchemaRestriction `json:"nestedRestriction,omitempty"`// RestrictionType: The type of the restriction.//// Possible values:// "bool" - A restriction of boolean type.// "string" - A restriction of string type.// "integer" - A restriction of integer type.// "choice" - A choice of one item from a set.// "multiselect" - A choice of multiple items from a set.// "hidden" - A hidden restriction of string type (the default value can be// used to pass along information that cannot be modified, such as a version// code).// "bundle" - [M+ devices only] A bundle of restrictions// "bundleArray" - [M+ devices only] An array of restriction bundlesRestrictionTypestring `json:"restrictionType,omitempty"`// Title: The name of the restriction.Titlestring `json:"title,omitempty"`// ForceSendFields is a list of field names (e.g. "DefaultValue") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DefaultValue") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AppRestrictionsSchemaRestriction: A restriction in the App RestrictionSchema represents a piece of configuration that may be pre-applied.
func (AppRestrictionsSchemaRestriction)MarshalJSON¶
func (sAppRestrictionsSchemaRestriction) MarshalJSON() ([]byte,error)
typeAppRestrictionsSchemaRestrictionRestrictionValue¶
type AppRestrictionsSchemaRestrictionRestrictionValue struct {// Type: The type of the value being provided.//// Possible values:// "bool" - A restriction of boolean type.// "string" - A restriction of string type.// "integer" - A restriction of integer type.// "choice" - A choice of one item from a set.// "multiselect" - A choice of multiple items from a set.// "hidden" - A hidden restriction of string type (the default value can be// used to pass along information that cannot be modified, such as a version// code).// "bundle" - [M+ devices only] A bundle of restrictions// "bundleArray" - [M+ devices only] An array of restriction bundlesTypestring `json:"type,omitempty"`// ValueBool: The boolean value - this will only be present if type is bool.ValueBoolbool `json:"valueBool,omitempty"`// ValueInteger: The integer value - this will only be present if type is// integer.ValueIntegerint64 `json:"valueInteger,omitempty"`// ValueMultiselect: The list of string values - this will only be present if// type is multiselect.ValueMultiselect []string `json:"valueMultiselect,omitempty"`// ValueString: The string value - this will be present for types string,// choice and hidden.ValueStringstring `json:"valueString,omitempty"`// ForceSendFields is a list of field names (e.g. "Type") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Type") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AppRestrictionsSchemaRestrictionRestrictionValue: A typed value for therestriction.
func (AppRestrictionsSchemaRestrictionRestrictionValue)MarshalJSON¶
func (sAppRestrictionsSchemaRestrictionRestrictionValue) MarshalJSON() ([]byte,error)
typeAppState¶added inv0.7.0
type AppState struct {// KeyedAppState: List of keyed app states. This field will always be present.KeyedAppState []*KeyedAppState `json:"keyedAppState,omitempty"`// PackageName: The package name of the app. This field will always be present.PackageNamestring `json:"packageName,omitempty"`// ForceSendFields is a list of field names (e.g. "KeyedAppState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "KeyedAppState") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AppState: List of states set by the app.
func (AppState)MarshalJSON¶added inv0.7.0
typeAppUpdateEvent¶
type AppUpdateEvent struct {// ProductId: The id of the product (e.g. "app:com.google.android.gm") that was// updated. This field will always be present.ProductIdstring `json:"productId,omitempty"`// ForceSendFields is a list of field names (e.g. "ProductId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ProductId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AppUpdateEvent: An event generated when a new version of an app is uploadedto Google Play. Notifications are sent for new public versions only: alpha,beta, or canary versions do not generate this event. To fetch up-to-dateversion history for an app, use Products.Get on the EMM API.
func (AppUpdateEvent)MarshalJSON¶
func (sAppUpdateEvent) MarshalJSON() ([]byte,error)
typeAppVersion¶
type AppVersion struct {// IsProduction: True if this version is a production APK.IsProductionbool `json:"isProduction,omitempty"`// TargetSdkVersion: The SDK version this app targets, as specified in the// manifest of the APK. See//http://developer.android.com/guide/topics/manifest/uses-sdk-element.htmlTargetSdkVersionint64 `json:"targetSdkVersion,omitempty"`// Track: Deprecated, use trackId instead.//// Possible values:// "appTrackUnspecified"// "production"// "beta"// "alpha"Trackstring `json:"track,omitempty"`// TrackId: Track ids that the app version is published in. Replaces the track// field (deprecated), but doesn't include the production track (see// isProduction instead).TrackId []string `json:"trackId,omitempty"`// VersionCode: Unique increasing identifier for the app version.VersionCodeint64 `json:"versionCode,omitempty"`// VersionString: The string used in the Play store by the app developer to// identify the version. The string is not necessarily unique or localized (for// example, the string could be "1.4").VersionStringstring `json:"versionString,omitempty"`// ForceSendFields is a list of field names (e.g. "IsProduction") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "IsProduction") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AppVersion: This represents a single version of the app.
func (AppVersion)MarshalJSON¶
func (sAppVersion) MarshalJSON() ([]byte,error)
typeApprovalUrlInfo¶
type ApprovalUrlInfo struct {// ApprovalUrl: A URL that displays a product's permissions and that can also// be used to approve the product with the Products.approve call.ApprovalUrlstring `json:"approvalUrl,omitempty"`// ForceSendFields is a list of field names (e.g. "ApprovalUrl") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApprovalUrl") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ApprovalUrlInfo: Information on an approval URL.
func (ApprovalUrlInfo)MarshalJSON¶
func (sApprovalUrlInfo) MarshalJSON() ([]byte,error)
typeAuthenticationToken¶
type AuthenticationToken struct {// Token: The authentication token to be passed to the device policy client on// the device where it can be used to provision the account for which this// token was generated.Tokenstring `json:"token,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Token") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Token") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AuthenticationToken: An AuthenticationToken is used by the EMM's devicepolicy client on a device to provision the given EMM-managed user on thatdevice.
func (AuthenticationToken)MarshalJSON¶
func (sAuthenticationToken) MarshalJSON() ([]byte,error)
typeAutoInstallConstraint¶
type AutoInstallConstraint struct {// ChargingStateConstraint: Charging state constraint.//// Possible values:// "chargingStateConstraintUnspecified"// "chargingNotRequired" - Device doesn't have to be charging.// "chargingRequired" - Device has to be charging.ChargingStateConstraintstring `json:"chargingStateConstraint,omitempty"`// DeviceIdleStateConstraint: Device idle state constraint.//// Possible values:// "deviceIdleStateConstraintUnspecified"// "deviceIdleNotRequired" - Device doesn't have to be idle, app can be// installed while the user is interacting with the device.// "deviceIdleRequired" - Device has to be idle.DeviceIdleStateConstraintstring `json:"deviceIdleStateConstraint,omitempty"`// NetworkTypeConstraint: Network type constraint.//// Possible values:// "networkTypeConstraintUnspecified"// "anyNetwork" - Any active networks (Wi-Fi, cellular, etc.).// "unmeteredNetwork" - Any unmetered network (e.g. Wi-FI).NetworkTypeConstraintstring `json:"networkTypeConstraint,omitempty"`// ForceSendFields is a list of field names (e.g. "ChargingStateConstraint") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ChargingStateConstraint") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}AutoInstallConstraint: The auto-install constraint. Defines a set ofrestrictions for installation. At least one of the fields must be set.
func (AutoInstallConstraint)MarshalJSON¶
func (sAutoInstallConstraint) MarshalJSON() ([]byte,error)
typeAutoInstallPolicy¶
type AutoInstallPolicy struct {// AutoInstallConstraint: The constraints for auto-installing the app. You can// specify a maximum of one constraint.AutoInstallConstraint []*AutoInstallConstraint `json:"autoInstallConstraint,omitempty"`// AutoInstallMode: The auto-install mode. If unset, defaults to// "doNotAutoInstall". An app is automatically installed regardless of a set// maintenance window.//// Possible values:// "autoInstallModeUnspecified"// "doNotAutoInstall" - The product is not installed automatically, the user// needs to install it from the Play Store.// "autoInstallOnce" - The product is automatically installed once, if the// user uninstalls the product it will not be installed again.// "forceAutoInstall" - The product is automatically installed, if the user// uninstalls the product it will be installed again. On managed devices the// DPC should block uninstall.AutoInstallModestring `json:"autoInstallMode,omitempty"`// AutoInstallPriority: The priority of the install, as an unsigned integer. A// lower number means higher priority.AutoInstallPriorityint64 `json:"autoInstallPriority,omitempty"`// MinimumVersionCode: The minimum version of the app. If a lower version of// the app is installed, then the app will be auto-updated according to the// auto-install constraints, instead of waiting for the regular auto-update.// You can set a minimum version code for at most 20 apps per device.MinimumVersionCodeint64 `json:"minimumVersionCode,omitempty"`// ForceSendFields is a list of field names (e.g. "AutoInstallConstraint") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AutoInstallConstraint") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (AutoInstallPolicy)MarshalJSON¶
func (sAutoInstallPolicy) MarshalJSON() ([]byte,error)
typeConfigurationVariables¶
type ConfigurationVariables struct {// McmId: The ID of the managed configurations settings.McmIdstring `json:"mcmId,omitempty"`// VariableSet: The variable set that is attributed to the user.VariableSet []*VariableSet `json:"variableSet,omitempty"`// ForceSendFields is a list of field names (e.g. "McmId") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "McmId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ConfigurationVariables: A configuration variables resource contains themanaged configuration settings ID to be applied to a single user, as well asthe variable set that is attributed to the user. The variable set will beused to replace placeholders in the managed configuration settings.
func (ConfigurationVariables)MarshalJSON¶
func (sConfigurationVariables) MarshalJSON() ([]byte,error)
typeDevice¶
type Device struct {// AndroidId: The Google Play Services Android ID for the device encoded as a// lowercase hex string. For example, "123456789abcdef0".AndroidIdstring `json:"androidId,omitempty"`// Device: The internal hardware codename of the device. This comes from// android.os.Build.DEVICE. (field named "device" per// logs/wireless/android/android_checkin.proto)Devicestring `json:"device,omitempty"`// LatestBuildFingerprint: The build fingerprint of the device if known.LatestBuildFingerprintstring `json:"latestBuildFingerprint,omitempty"`// Maker: The manufacturer of the device. This comes from// android.os.Build.MANUFACTURER.Makerstring `json:"maker,omitempty"`// ManagementType: Identifies the extent to which the device is controlled by a// managed Google Play EMM in various deployment configurations. Possible// values include: - "managedDevice", a device that has the EMM's device policy// controller (DPC) as the device owner. - "managedProfile", a device that has// a profile managed by the DPC (DPC is profile owner) in addition to a// separate, personal profile that is unavailable to the DPC. - "containerApp",// no longer used (deprecated). - "unmanagedProfile", a device that has been// allowed (by the domain's admin, using the Admin Console to enable the// privilege) to use managed Google Play, but the profile is itself not owned// by a DPC.//// Possible values:// "managedDevice"// "managedProfile"// "containerApp"// "unmanagedProfile"ManagementTypestring `json:"managementType,omitempty"`// Model: The model name of the device. This comes from android.os.Build.MODEL.Modelstring `json:"model,omitempty"`// Policy: The policy enforced on the device.Policy *Policy `json:"policy,omitempty"`// Product: The product name of the device. This comes from// android.os.Build.PRODUCT.Productstring `json:"product,omitempty"`// Report: The device report updated with the latest app states.Report *DeviceReport `json:"report,omitempty"`// RetailBrand: Retail brand for the device, if set. See android.os.Build.BRANDRetailBrandstring `json:"retailBrand,omitempty"`// SdkVersion: API compatibility version.SdkVersionint64 `json:"sdkVersion,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AndroidId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AndroidId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Device: A Devices resource represents a mobile device managed by the EMM andbelonging to a specific enterprise user.
func (Device)MarshalJSON¶
typeDeviceReport¶added inv0.7.0
type DeviceReport struct {// AppState: List of app states set by managed apps on the device. App states// are defined by the app's developers. This field will always be present.AppState []*AppState `json:"appState,omitempty"`// LastUpdatedTimestampMillis: The timestamp of the last report update in// milliseconds since epoch. This field will always be present.LastUpdatedTimestampMillisint64 `json:"lastUpdatedTimestampMillis,omitempty,string"`// ForceSendFields is a list of field names (e.g. "AppState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AppState") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}DeviceReport: Device report updated with the latest app states for managedapps on the device.
func (DeviceReport)MarshalJSON¶added inv0.7.0
func (sDeviceReport) MarshalJSON() ([]byte,error)
typeDeviceReportUpdateEvent¶added inv0.7.0
type DeviceReportUpdateEvent struct {// DeviceId: The Android ID of the device. This field will always be present.DeviceIdstring `json:"deviceId,omitempty"`// Report: The device report updated with the latest app states. This field// will always be present.Report *DeviceReport `json:"report,omitempty"`// UserId: The ID of the user. This field will always be present.UserIdstring `json:"userId,omitempty"`// ForceSendFields is a list of field names (e.g. "DeviceId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeviceId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}DeviceReportUpdateEvent: An event generated when an updated device report isavailable.
func (DeviceReportUpdateEvent)MarshalJSON¶added inv0.7.0
func (sDeviceReportUpdateEvent) MarshalJSON() ([]byte,error)
typeDeviceState¶
type DeviceState struct {// AccountState: The state of the Google account on the device. "enabled"// indicates that the Google account on the device can be used to access Google// services (including Google Play), while "disabled" means that it cannot. A// new device is initially in the "disabled" state.//// Possible values:// "enabled"// "disabled"AccountStatestring `json:"accountState,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountState") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}DeviceState: The state of a user's device, as accessed by the getState andsetState methods on device resources.
func (DeviceState)MarshalJSON¶
func (sDeviceState) MarshalJSON() ([]byte,error)
typeDevicesForceReportUploadCall¶added inv0.7.0
type DevicesForceReportUploadCall struct {// contains filtered or unexported fields}func (*DevicesForceReportUploadCall)Context¶added inv0.7.0
func (c *DevicesForceReportUploadCall) Context(ctxcontext.Context) *DevicesForceReportUploadCall
Context sets the context to be used in this call's Do method.
func (*DevicesForceReportUploadCall)Do¶added inv0.7.0
func (c *DevicesForceReportUploadCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.devices.forceReportUpload" call.
func (*DevicesForceReportUploadCall)Fields¶added inv0.7.0
func (c *DevicesForceReportUploadCall) Fields(s ...googleapi.Field) *DevicesForceReportUploadCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*DevicesForceReportUploadCall)Header¶added inv0.7.0
func (c *DevicesForceReportUploadCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeDevicesGetCall¶
type DevicesGetCall struct {// contains filtered or unexported fields}func (*DevicesGetCall)Context¶
func (c *DevicesGetCall) Context(ctxcontext.Context) *DevicesGetCall
Context sets the context to be used in this call's Do method.
func (*DevicesGetCall)Do¶
func (c *DevicesGetCall) Do(opts ...googleapi.CallOption) (*Device,error)
Do executes the "androidenterprise.devices.get" call.Any non-2xx status code is an error. Response headers are in either*Device.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*DevicesGetCall)Fields¶
func (c *DevicesGetCall) Fields(s ...googleapi.Field) *DevicesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*DevicesGetCall)Header¶
func (c *DevicesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*DevicesGetCall)IfNoneMatch¶
func (c *DevicesGetCall) IfNoneMatch(entityTagstring) *DevicesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeDevicesGetStateCall¶
type DevicesGetStateCall struct {// contains filtered or unexported fields}func (*DevicesGetStateCall)Context¶
func (c *DevicesGetStateCall) Context(ctxcontext.Context) *DevicesGetStateCall
Context sets the context to be used in this call's Do method.
func (*DevicesGetStateCall)Do¶
func (c *DevicesGetStateCall) Do(opts ...googleapi.CallOption) (*DeviceState,error)
Do executes the "androidenterprise.devices.getState" call.Any non-2xx status code is an error. Response headers are in either*DeviceState.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*DevicesGetStateCall)Fields¶
func (c *DevicesGetStateCall) Fields(s ...googleapi.Field) *DevicesGetStateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*DevicesGetStateCall)Header¶
func (c *DevicesGetStateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*DevicesGetStateCall)IfNoneMatch¶
func (c *DevicesGetStateCall) IfNoneMatch(entityTagstring) *DevicesGetStateCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeDevicesListCall¶
type DevicesListCall struct {// contains filtered or unexported fields}func (*DevicesListCall)Context¶
func (c *DevicesListCall) Context(ctxcontext.Context) *DevicesListCall
Context sets the context to be used in this call's Do method.
func (*DevicesListCall)Do¶
func (c *DevicesListCall) Do(opts ...googleapi.CallOption) (*DevicesListResponse,error)
Do executes the "androidenterprise.devices.list" call.Any non-2xx status code is an error. Response headers are in either*DevicesListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*DevicesListCall)Fields¶
func (c *DevicesListCall) Fields(s ...googleapi.Field) *DevicesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*DevicesListCall)Header¶
func (c *DevicesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*DevicesListCall)IfNoneMatch¶
func (c *DevicesListCall) IfNoneMatch(entityTagstring) *DevicesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeDevicesListResponse¶
type DevicesListResponse struct {// Device: A managed device.Device []*Device `json:"device,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Device") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Device") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (DevicesListResponse)MarshalJSON¶
func (sDevicesListResponse) MarshalJSON() ([]byte,error)
typeDevicesService¶
type DevicesService struct {// contains filtered or unexported fields}funcNewDevicesService¶
func NewDevicesService(s *Service) *DevicesService
func (*DevicesService)ForceReportUpload¶added inv0.7.0
func (r *DevicesService) ForceReportUpload(enterpriseIdstring, userIdstring, deviceIdstring) *DevicesForceReportUploadCall
ForceReportUpload: Uploads a report containing any changes in app states onthe device since the last report was generated. You can call this method upto 3 times every 24 hours for a given device. If you exceed the quota, thenthe Google Play EMM API returns HTTP 429 Too Many Requests.
- deviceId: The ID of the device.- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*DevicesService)Get¶
func (r *DevicesService) Get(enterpriseIdstring, userIdstring, deviceIdstring) *DevicesGetCall
Get: Retrieves the details of a device.
- deviceId: The ID of the device.- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*DevicesService)GetState¶
func (r *DevicesService) GetState(enterpriseIdstring, userIdstring, deviceIdstring) *DevicesGetStateCall
GetState: Retrieves whether a device's access to Google services is enabledor disabled. The device state takes effect only if enforcing EMM policies onAndroid devices is enabled in the Google Admin Console. Otherwise, thedevice state is ignored and all devices are allowed access to Googleservices. This is only supported for Google-managed users.
- deviceId: The ID of the device.- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*DevicesService)List¶
func (r *DevicesService) List(enterpriseIdstring, userIdstring) *DevicesListCall
List: Retrieves the IDs of all of a user's devices.
- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*DevicesService)SetState¶
func (r *DevicesService) SetState(enterpriseIdstring, userIdstring, deviceIdstring, devicestate *DeviceState) *DevicesSetStateCall
SetState: Sets whether a device's access to Google services is enabled ordisabled. The device state takes effect only if enforcing EMM policies onAndroid devices is enabled in the Google Admin Console. Otherwise, thedevice state is ignored and all devices are allowed access to Googleservices. This is only supported for Google-managed users.
- deviceId: The ID of the device.- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*DevicesService)Update¶
func (r *DevicesService) Update(enterpriseIdstring, userIdstring, deviceIdstring, device *Device) *DevicesUpdateCall
Update: Updates the device policy. To ensure the policy is properlyenforced, you need to prevent unmanaged accounts from accessing Google Playby setting the allowed_accounts in the managed configuration for the GooglePlay package. See restrict accounts in Google Play. When provisioning a newdevice, you should set the device policy using this method before adding themanaged Google Play Account to the device, otherwise the policy will not beapplied for a short period of time after adding the account to the device.
- deviceId: The ID of the device.- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
typeDevicesSetStateCall¶
type DevicesSetStateCall struct {// contains filtered or unexported fields}func (*DevicesSetStateCall)Context¶
func (c *DevicesSetStateCall) Context(ctxcontext.Context) *DevicesSetStateCall
Context sets the context to be used in this call's Do method.
func (*DevicesSetStateCall)Do¶
func (c *DevicesSetStateCall) Do(opts ...googleapi.CallOption) (*DeviceState,error)
Do executes the "androidenterprise.devices.setState" call.Any non-2xx status code is an error. Response headers are in either*DeviceState.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*DevicesSetStateCall)Fields¶
func (c *DevicesSetStateCall) Fields(s ...googleapi.Field) *DevicesSetStateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*DevicesSetStateCall)Header¶
func (c *DevicesSetStateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeDevicesUpdateCall¶
type DevicesUpdateCall struct {// contains filtered or unexported fields}func (*DevicesUpdateCall)Context¶
func (c *DevicesUpdateCall) Context(ctxcontext.Context) *DevicesUpdateCall
Context sets the context to be used in this call's Do method.
func (*DevicesUpdateCall)Do¶
func (c *DevicesUpdateCall) Do(opts ...googleapi.CallOption) (*Device,error)
Do executes the "androidenterprise.devices.update" call.Any non-2xx status code is an error. Response headers are in either*Device.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*DevicesUpdateCall)Fields¶
func (c *DevicesUpdateCall) Fields(s ...googleapi.Field) *DevicesUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*DevicesUpdateCall)Header¶
func (c *DevicesUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*DevicesUpdateCall)UpdateMask¶
func (c *DevicesUpdateCall) UpdateMask(updateMaskstring) *DevicesUpdateCall
UpdateMask sets the optional parameter "updateMask": Mask that identifieswhich fields to update. If not set, all modifiable fields will be modified.When set in a query parameter, this field should be specified asupdateMask=<field1>,<field2>,...
typeEnrollmentToken¶added inv0.207.0
type EnrollmentToken struct {// Duration: [Optional] The length of time the enrollment token is valid,// ranging from 1 minute to `Durations.MAX_VALUE`// (https://developers.google.com/protocol-buffers/docs/reference/java/com/google/protobuf/util/Durations.html#MAX_VALUE),// approximately 10,000 years. If not specified, the default duration is 1// hour.Durationstring `json:"duration,omitempty"`// EnrollmentTokenType: [Required] The type of the enrollment token.//// Possible values:// "enrollmentTokenTypeUnspecified" - The value is unused.// "userlessDevice" - The enrollment token is for a userless device.// "userDevice" - The enrollment token is for a user device.EnrollmentTokenTypestring `json:"enrollmentTokenType,omitempty"`// GoogleAuthenticationOptions: [Optional] Provides options related to Google// authentication during the enrollment.GoogleAuthenticationOptions *EnrollmentTokenGoogleAuthenticationOptions `json:"googleAuthenticationOptions,omitempty"`// Token: The token value that's passed to the device and authorizes the device// to enroll. This is a read-only field generated by the server.Tokenstring `json:"token,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Duration") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Duration") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}EnrollmentToken: A token used to enroll a device.
func (EnrollmentToken)MarshalJSON¶added inv0.207.0
func (sEnrollmentToken) MarshalJSON() ([]byte,error)
typeEnrollmentTokenGoogleAuthenticationOptions¶added inv0.244.0
type EnrollmentTokenGoogleAuthenticationOptions struct {// AuthenticationRequirement: [Optional] Specifies whether user should// authenticate with Google during enrollment. This setting, if// specified,`GoogleAuthenticationSettings` specified for the enterprise// resource is ignored for devices enrolled with this token.//// Possible values:// "authenticationRequirementUnspecified" - The value is unused.// "optional" - Google authentication is optional for the user. This means// the user can choose to skip Google authentication during enrollment.// "required" - Google authentication is required for the user. This means// the user must authenticate with a Google account to proceed.AuthenticationRequirementstring `json:"authenticationRequirement,omitempty"`// RequiredAccountEmail: [Optional] Specifies the managed Google account that// the user must use during enrollment.`AuthenticationRequirement` must be set// to`REQUIRED` if this field is set.RequiredAccountEmailstring `json:"requiredAccountEmail,omitempty"`// ForceSendFields is a list of field names (e.g. "AuthenticationRequirement")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AuthenticationRequirement") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}EnrollmentTokenGoogleAuthenticationOptions: Options for Googleauthentication during the enrollment.
func (EnrollmentTokenGoogleAuthenticationOptions)MarshalJSON¶added inv0.244.0
func (sEnrollmentTokenGoogleAuthenticationOptions) MarshalJSON() ([]byte,error)
typeEnrollmentTokensCreateCall¶added inv0.218.0
type EnrollmentTokensCreateCall struct {// contains filtered or unexported fields}func (*EnrollmentTokensCreateCall)Context¶added inv0.218.0
func (c *EnrollmentTokensCreateCall) Context(ctxcontext.Context) *EnrollmentTokensCreateCall
Context sets the context to be used in this call's Do method.
func (*EnrollmentTokensCreateCall)Do¶added inv0.218.0
func (c *EnrollmentTokensCreateCall) Do(opts ...googleapi.CallOption) (*EnrollmentToken,error)
Do executes the "androidenterprise.enrollmentTokens.create" call.Any non-2xx status code is an error. Response headers are in either*EnrollmentToken.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*EnrollmentTokensCreateCall)Fields¶added inv0.218.0
func (c *EnrollmentTokensCreateCall) Fields(s ...googleapi.Field) *EnrollmentTokensCreateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnrollmentTokensCreateCall)Header¶added inv0.218.0
func (c *EnrollmentTokensCreateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeEnrollmentTokensService¶added inv0.218.0
type EnrollmentTokensService struct {// contains filtered or unexported fields}funcNewEnrollmentTokensService¶added inv0.218.0
func NewEnrollmentTokensService(s *Service) *EnrollmentTokensService
func (*EnrollmentTokensService)Create¶added inv0.218.0
func (r *EnrollmentTokensService) Create(enterpriseIdstring, enrollmenttoken *EnrollmentToken) *EnrollmentTokensCreateCall
Create: Returns a token for device enrollment. The DPC can encode this tokenwithin the QR/NFC/zero-touch enrollment payload or fetch it before callingthe on-device API to authenticate the user. The token can be generated foreach device or reused across multiple devices.
- enterpriseId: The ID of the enterprise.
typeEnterprise¶
type Enterprise struct {// Administrator: Admins of the enterprise. This is only supported for// enterprises created via the EMM-initiated flow.Administrator []*Administrator `json:"administrator,omitempty"`// EnterpriseType: The type of the enterprise.//// Possible values:// "enterpriseTypeUnspecified" - This value is not used.// "managedGoogleDomain" - The enterprise belongs to a managed Google domain.// "managedGooglePlayAccountsEnterprise" - The enterprise is a managed Google// Play Accounts enterprise.EnterpriseTypestring `json:"enterpriseType,omitempty"`// GoogleAuthenticationSettings: Output only. Settings for Google-provided user// authentication.GoogleAuthenticationSettings *GoogleAuthenticationSettings `json:"googleAuthenticationSettings,omitempty"`// Id: The unique ID for the enterprise.Idstring `json:"id,omitempty"`// ManagedGoogleDomainType: The type of managed Google domain//// Possible values:// "managedGoogleDomainTypeUnspecified" - The managed Google domain type is// not specified.// "typeTeam" - The managed Google domain is an email-verified team.// "typeDomain" - The managed Google domain is domain-verified.ManagedGoogleDomainTypestring `json:"managedGoogleDomainType,omitempty"`// Name: The name of the enterprise, for example, "Example, Inc".Namestring `json:"name,omitempty"`// PrimaryDomain: The enterprise's primary domain, such as "example.com".PrimaryDomainstring `json:"primaryDomain,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Administrator") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Administrator") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Enterprise: An Enterprises resource represents the binding between an EMMand a specific organization. That binding can be instantiated in one of twodifferent ways using this API as follows: - For Google managed domaincustomers, the process involves using Enterprises.enroll andEnterprises.setAccount (in conjunction with artifacts obtained from theAdmin console and the Google API Console) and submitted to the EMM through amore-or-less manual process. - For managed Google Play Accounts customers,the process involves using Enterprises.generateSignupUrl andEnterprises.completeSignup in conjunction with the managed Google Playsign-up UI (Google-provided mechanism) to create the binding without manualsteps. As an EMM, you can support either or both approaches in your EMMconsole. See Create an Enterprise for details.
func (Enterprise)MarshalJSON¶
func (sEnterprise) MarshalJSON() ([]byte,error)
typeEnterpriseAccount¶
type EnterpriseAccount struct {// AccountEmail: The email address of the service account.AccountEmailstring `json:"accountEmail,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountEmail") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountEmail") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}EnterpriseAccount: A service account that can be used to authenticate as theenterprise to API calls that require such authentication.
func (EnterpriseAccount)MarshalJSON¶
func (sEnterpriseAccount) MarshalJSON() ([]byte,error)
typeEnterpriseAuthenticationAppLinkConfig¶added inv0.75.0
type EnterpriseAuthenticationAppLinkConfig struct {// Uri: An authentication url.Uristring `json:"uri,omitempty"`// ForceSendFields is a list of field names (e.g. "Uri") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Uri") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}EnterpriseAuthenticationAppLinkConfig: An authentication URL configurationfor the authenticator app of an identity provider.
func (EnterpriseAuthenticationAppLinkConfig)MarshalJSON¶added inv0.75.0
func (sEnterpriseAuthenticationAppLinkConfig) MarshalJSON() ([]byte,error)
typeEnterpriseUpgradeEvent¶added inv0.224.0
type EnterpriseUpgradeEvent struct {// UpgradeState: The upgrade state.//// Possible values:// "upgradeStateUnspecified" - Unspecified. This value is not used.// "upgradeStateSucceeded" - The upgrade has succeeded.UpgradeStatestring `json:"upgradeState,omitempty"`// ForceSendFields is a list of field names (e.g. "UpgradeState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "UpgradeState") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}EnterpriseUpgradeEvent: An event generated when an enterprise is upgraded.
func (EnterpriseUpgradeEvent)MarshalJSON¶added inv0.224.0
func (sEnterpriseUpgradeEvent) MarshalJSON() ([]byte,error)
typeEnterprisesAcknowledgeNotificationSetCall¶
type EnterprisesAcknowledgeNotificationSetCall struct {// contains filtered or unexported fields}func (*EnterprisesAcknowledgeNotificationSetCall)Context¶
func (c *EnterprisesAcknowledgeNotificationSetCall) Context(ctxcontext.Context) *EnterprisesAcknowledgeNotificationSetCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesAcknowledgeNotificationSetCall)Do¶
func (c *EnterprisesAcknowledgeNotificationSetCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.enterprises.acknowledgeNotificationSet" call.
func (*EnterprisesAcknowledgeNotificationSetCall)Fields¶
func (c *EnterprisesAcknowledgeNotificationSetCall) Fields(s ...googleapi.Field) *EnterprisesAcknowledgeNotificationSetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesAcknowledgeNotificationSetCall)Header¶
func (c *EnterprisesAcknowledgeNotificationSetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*EnterprisesAcknowledgeNotificationSetCall)NotificationSetId¶
func (c *EnterprisesAcknowledgeNotificationSetCall) NotificationSetId(notificationSetIdstring) *EnterprisesAcknowledgeNotificationSetCall
NotificationSetId sets the optional parameter "notificationSetId": Thenotification set ID as returned by Enterprises.PullNotificationSet. Thismust be provided.
typeEnterprisesCompleteSignupCall¶
type EnterprisesCompleteSignupCall struct {// contains filtered or unexported fields}func (*EnterprisesCompleteSignupCall)CompletionToken¶
func (c *EnterprisesCompleteSignupCall) CompletionToken(completionTokenstring) *EnterprisesCompleteSignupCall
CompletionToken sets the optional parameter "completionToken": TheCompletion token initially returned by GenerateSignupUrl.
func (*EnterprisesCompleteSignupCall)Context¶
func (c *EnterprisesCompleteSignupCall) Context(ctxcontext.Context) *EnterprisesCompleteSignupCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesCompleteSignupCall)Do¶
func (c *EnterprisesCompleteSignupCall) Do(opts ...googleapi.CallOption) (*Enterprise,error)
Do executes the "androidenterprise.enterprises.completeSignup" call.Any non-2xx status code is an error. Response headers are in either*Enterprise.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*EnterprisesCompleteSignupCall)EnterpriseToken¶
func (c *EnterprisesCompleteSignupCall) EnterpriseToken(enterpriseTokenstring) *EnterprisesCompleteSignupCall
EnterpriseToken sets the optional parameter "enterpriseToken": TheEnterprise token appended to the Callback URL.
func (*EnterprisesCompleteSignupCall)Fields¶
func (c *EnterprisesCompleteSignupCall) Fields(s ...googleapi.Field) *EnterprisesCompleteSignupCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesCompleteSignupCall)Header¶
func (c *EnterprisesCompleteSignupCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeEnterprisesCreateWebTokenCall¶
type EnterprisesCreateWebTokenCall struct {// contains filtered or unexported fields}func (*EnterprisesCreateWebTokenCall)Context¶
func (c *EnterprisesCreateWebTokenCall) Context(ctxcontext.Context) *EnterprisesCreateWebTokenCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesCreateWebTokenCall)Do¶
func (c *EnterprisesCreateWebTokenCall) Do(opts ...googleapi.CallOption) (*AdministratorWebToken,error)
Do executes the "androidenterprise.enterprises.createWebToken" call.Any non-2xx status code is an error. Response headers are in either*AdministratorWebToken.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*EnterprisesCreateWebTokenCall)Fields¶
func (c *EnterprisesCreateWebTokenCall) Fields(s ...googleapi.Field) *EnterprisesCreateWebTokenCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesCreateWebTokenCall)Header¶
func (c *EnterprisesCreateWebTokenCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeEnterprisesEnrollCall¶
type EnterprisesEnrollCall struct {// contains filtered or unexported fields}func (*EnterprisesEnrollCall)Context¶
func (c *EnterprisesEnrollCall) Context(ctxcontext.Context) *EnterprisesEnrollCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesEnrollCall)Do¶
func (c *EnterprisesEnrollCall) Do(opts ...googleapi.CallOption) (*Enterprise,error)
Do executes the "androidenterprise.enterprises.enroll" call.Any non-2xx status code is an error. Response headers are in either*Enterprise.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*EnterprisesEnrollCall)Fields¶
func (c *EnterprisesEnrollCall) Fields(s ...googleapi.Field) *EnterprisesEnrollCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesEnrollCall)Header¶
func (c *EnterprisesEnrollCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeEnterprisesGenerateEnterpriseUpgradeUrlCall¶added inv0.224.0
type EnterprisesGenerateEnterpriseUpgradeUrlCall struct {// contains filtered or unexported fields}func (*EnterprisesGenerateEnterpriseUpgradeUrlCall)AdminEmail¶added inv0.224.0
func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) AdminEmail(adminEmailstring) *EnterprisesGenerateEnterpriseUpgradeUrlCall
AdminEmail sets the optional parameter "adminEmail": Email address used toprefill the admin field of the enterprise signup form as part of the upgradeprocess. This value is a hint only and can be altered by the user. Personalemail addresses are not allowed. If `allowedDomains` is non-empty then thismust belong to one of the `allowedDomains`.
func (*EnterprisesGenerateEnterpriseUpgradeUrlCall)AllowedDomains¶added inv0.224.0
func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) AllowedDomains(allowedDomains ...string) *EnterprisesGenerateEnterpriseUpgradeUrlCall
AllowedDomains sets the optional parameter "allowedDomains": A list ofdomains that are permitted for the admin email. The IT admin cannot enter anemail address with a domain name that is not in this list. Subdomains ofdomains in this list are not allowed but can be allowed by adding a secondentry which has `*.` prefixed to the domain name (e.g. *.example.com). Ifthe field is not present or is an empty list then the IT admin is free touse any valid domain name. Personal email domains are not allowed.
func (*EnterprisesGenerateEnterpriseUpgradeUrlCall)Context¶added inv0.224.0
func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) Context(ctxcontext.Context) *EnterprisesGenerateEnterpriseUpgradeUrlCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesGenerateEnterpriseUpgradeUrlCall)Do¶added inv0.224.0
func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) Do(opts ...googleapi.CallOption) (*GenerateEnterpriseUpgradeUrlResponse,error)
Do executes the "androidenterprise.enterprises.generateEnterpriseUpgradeUrl" call.Any non-2xx status code is an error. Response headers are in either*GenerateEnterpriseUpgradeUrlResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*EnterprisesGenerateEnterpriseUpgradeUrlCall)Fields¶added inv0.224.0
func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) Fields(s ...googleapi.Field) *EnterprisesGenerateEnterpriseUpgradeUrlCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesGenerateEnterpriseUpgradeUrlCall)Header¶added inv0.224.0
func (c *EnterprisesGenerateEnterpriseUpgradeUrlCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeEnterprisesGenerateSignupUrlCall¶
type EnterprisesGenerateSignupUrlCall struct {// contains filtered or unexported fields}func (*EnterprisesGenerateSignupUrlCall)AdminEmail¶added inv0.188.0
func (c *EnterprisesGenerateSignupUrlCall) AdminEmail(adminEmailstring) *EnterprisesGenerateSignupUrlCall
AdminEmail sets the optional parameter "adminEmail": Email address used toprefill the admin field of the enterprise signup form. This value is a hintonly and can be altered by the user. If `allowedDomains` is non-empty thenthis must belong to one of the `allowedDomains`.
func (*EnterprisesGenerateSignupUrlCall)AllowedDomains¶added inv0.217.0
func (c *EnterprisesGenerateSignupUrlCall) AllowedDomains(allowedDomains ...string) *EnterprisesGenerateSignupUrlCall
AllowedDomains sets the optional parameter "allowedDomains": A list ofdomains that are permitted for the admin email. The IT admin cannot enter anemail address with a domain name that is not in this list. Subdomains ofdomains in this list are not allowed but can be allowed by adding a secondentry which has `*.` prefixed to the domain name (e.g. *.example.com). Ifthe field is not present or is an empty list then the IT admin is free touse any valid domain name. Personal email domains are always allowed, butwill result in the creation of a managed Google Play Accounts enterprise.
func (*EnterprisesGenerateSignupUrlCall)CallbackUrl¶
func (c *EnterprisesGenerateSignupUrlCall) CallbackUrl(callbackUrlstring) *EnterprisesGenerateSignupUrlCall
CallbackUrl sets the optional parameter "callbackUrl": The callback URL towhich the Admin will be redirected after successfully creating anenterprise. Before redirecting there the system will add a single queryparameter to this URL named "enterpriseToken" which will contain an opaquetoken to be used for the CompleteSignup request. Beware that this means thatthe URL will be parsed, the parameter added and then a new URL formatted,i.e. there may be some minor formatting changes and, more importantly, theURL must be well-formed so that it can be parsed.
func (*EnterprisesGenerateSignupUrlCall)Context¶
func (c *EnterprisesGenerateSignupUrlCall) Context(ctxcontext.Context) *EnterprisesGenerateSignupUrlCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesGenerateSignupUrlCall)Do¶
func (c *EnterprisesGenerateSignupUrlCall) Do(opts ...googleapi.CallOption) (*SignupInfo,error)
Do executes the "androidenterprise.enterprises.generateSignupUrl" call.Any non-2xx status code is an error. Response headers are in either*SignupInfo.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*EnterprisesGenerateSignupUrlCall)Fields¶
func (c *EnterprisesGenerateSignupUrlCall) Fields(s ...googleapi.Field) *EnterprisesGenerateSignupUrlCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesGenerateSignupUrlCall)Header¶
func (c *EnterprisesGenerateSignupUrlCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeEnterprisesGetCall¶
type EnterprisesGetCall struct {// contains filtered or unexported fields}func (*EnterprisesGetCall)Context¶
func (c *EnterprisesGetCall) Context(ctxcontext.Context) *EnterprisesGetCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesGetCall)Do¶
func (c *EnterprisesGetCall) Do(opts ...googleapi.CallOption) (*Enterprise,error)
Do executes the "androidenterprise.enterprises.get" call.Any non-2xx status code is an error. Response headers are in either*Enterprise.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*EnterprisesGetCall)Fields¶
func (c *EnterprisesGetCall) Fields(s ...googleapi.Field) *EnterprisesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesGetCall)Header¶
func (c *EnterprisesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*EnterprisesGetCall)IfNoneMatch¶
func (c *EnterprisesGetCall) IfNoneMatch(entityTagstring) *EnterprisesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeEnterprisesGetServiceAccountCall¶
type EnterprisesGetServiceAccountCall struct {// contains filtered or unexported fields}func (*EnterprisesGetServiceAccountCall)Context¶
func (c *EnterprisesGetServiceAccountCall) Context(ctxcontext.Context) *EnterprisesGetServiceAccountCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesGetServiceAccountCall)Do¶
func (c *EnterprisesGetServiceAccountCall) Do(opts ...googleapi.CallOption) (*ServiceAccount,error)
Do executes the "androidenterprise.enterprises.getServiceAccount" call.Any non-2xx status code is an error. Response headers are in either*ServiceAccount.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*EnterprisesGetServiceAccountCall)Fields¶
func (c *EnterprisesGetServiceAccountCall) Fields(s ...googleapi.Field) *EnterprisesGetServiceAccountCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesGetServiceAccountCall)Header¶
func (c *EnterprisesGetServiceAccountCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*EnterprisesGetServiceAccountCall)IfNoneMatch¶
func (c *EnterprisesGetServiceAccountCall) IfNoneMatch(entityTagstring) *EnterprisesGetServiceAccountCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*EnterprisesGetServiceAccountCall)KeyType¶
func (c *EnterprisesGetServiceAccountCall) KeyType(keyTypestring) *EnterprisesGetServiceAccountCall
KeyType sets the optional parameter "keyType": The type of credential toreturn with the service account. Required.
Possible values:
"googleCredentials" - Google Credentials File format."pkcs12" - PKCS12 format. The password for the PKCS12 file is
'notasecret'. For more information, seehttps://tools.ietf.org/html/rfc7292.The data for keys of this type are base64 encoded according toRFC 4648Section 4. Seehttp://tools.ietf.org/html/rfc4648#section-4.
typeEnterprisesGetStoreLayoutCall¶
type EnterprisesGetStoreLayoutCall struct {// contains filtered or unexported fields}func (*EnterprisesGetStoreLayoutCall)Context¶
func (c *EnterprisesGetStoreLayoutCall) Context(ctxcontext.Context) *EnterprisesGetStoreLayoutCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesGetStoreLayoutCall)Do¶
func (c *EnterprisesGetStoreLayoutCall) Do(opts ...googleapi.CallOption) (*StoreLayout,error)
Do executes the "androidenterprise.enterprises.getStoreLayout" call.Any non-2xx status code is an error. Response headers are in either*StoreLayout.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*EnterprisesGetStoreLayoutCall)Fields¶
func (c *EnterprisesGetStoreLayoutCall) Fields(s ...googleapi.Field) *EnterprisesGetStoreLayoutCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesGetStoreLayoutCall)Header¶
func (c *EnterprisesGetStoreLayoutCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*EnterprisesGetStoreLayoutCall)IfNoneMatch¶
func (c *EnterprisesGetStoreLayoutCall) IfNoneMatch(entityTagstring) *EnterprisesGetStoreLayoutCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeEnterprisesListCall¶
type EnterprisesListCall struct {// contains filtered or unexported fields}func (*EnterprisesListCall)Context¶
func (c *EnterprisesListCall) Context(ctxcontext.Context) *EnterprisesListCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesListCall)Do¶
func (c *EnterprisesListCall) Do(opts ...googleapi.CallOption) (*EnterprisesListResponse,error)
Do executes the "androidenterprise.enterprises.list" call.Any non-2xx status code is an error. Response headers are in either*EnterprisesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*EnterprisesListCall)Fields¶
func (c *EnterprisesListCall) Fields(s ...googleapi.Field) *EnterprisesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesListCall)Header¶
func (c *EnterprisesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*EnterprisesListCall)IfNoneMatch¶
func (c *EnterprisesListCall) IfNoneMatch(entityTagstring) *EnterprisesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeEnterprisesListResponse¶
type EnterprisesListResponse struct {// Enterprise: An enterprise.Enterprise []*Enterprise `json:"enterprise,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Enterprise") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Enterprise") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (EnterprisesListResponse)MarshalJSON¶
func (sEnterprisesListResponse) MarshalJSON() ([]byte,error)
typeEnterprisesPullNotificationSetCall¶
type EnterprisesPullNotificationSetCall struct {// contains filtered or unexported fields}func (*EnterprisesPullNotificationSetCall)Context¶
func (c *EnterprisesPullNotificationSetCall) Context(ctxcontext.Context) *EnterprisesPullNotificationSetCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesPullNotificationSetCall)Do¶
func (c *EnterprisesPullNotificationSetCall) Do(opts ...googleapi.CallOption) (*NotificationSet,error)
Do executes the "androidenterprise.enterprises.pullNotificationSet" call.Any non-2xx status code is an error. Response headers are in either*NotificationSet.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*EnterprisesPullNotificationSetCall)Fields¶
func (c *EnterprisesPullNotificationSetCall) Fields(s ...googleapi.Field) *EnterprisesPullNotificationSetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesPullNotificationSetCall)Header¶
func (c *EnterprisesPullNotificationSetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*EnterprisesPullNotificationSetCall)RequestMode¶
func (c *EnterprisesPullNotificationSetCall) RequestMode(requestModestring) *EnterprisesPullNotificationSetCall
RequestMode sets the optional parameter "requestMode": The request mode forpulling notifications. Specifying waitForNotifications will cause therequest to block and wait until one or more notifications are present, orreturn an empty notification list if no notifications are present after sometime. Specifying returnImmediately will cause the request to immediatelyreturn the pending notifications, or an empty list if no notifications arepresent. If omitted, defaults to waitForNotifications.
Possible values:
"waitForNotifications" - Wait until one or more notifications are present."returnImmediately" - Returns immediately whether notifications are
present or not.
typeEnterprisesSendTestPushNotificationCall¶
type EnterprisesSendTestPushNotificationCall struct {// contains filtered or unexported fields}func (*EnterprisesSendTestPushNotificationCall)Context¶
func (c *EnterprisesSendTestPushNotificationCall) Context(ctxcontext.Context) *EnterprisesSendTestPushNotificationCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesSendTestPushNotificationCall)Do¶
func (c *EnterprisesSendTestPushNotificationCall) Do(opts ...googleapi.CallOption) (*EnterprisesSendTestPushNotificationResponse,error)
Do executes the "androidenterprise.enterprises.sendTestPushNotification" call.Any non-2xx status code is an error. Response headers are in either*EnterprisesSendTestPushNotificationResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*EnterprisesSendTestPushNotificationCall)Fields¶
func (c *EnterprisesSendTestPushNotificationCall) Fields(s ...googleapi.Field) *EnterprisesSendTestPushNotificationCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesSendTestPushNotificationCall)Header¶
func (c *EnterprisesSendTestPushNotificationCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeEnterprisesSendTestPushNotificationResponse¶
type EnterprisesSendTestPushNotificationResponse struct {// MessageId: The message ID of the test push notification that was sent.MessageIdstring `json:"messageId,omitempty"`// TopicName: The name of the Cloud Pub/Sub topic to which notifications for// this enterprise's enrolled account will be sent.TopicNamestring `json:"topicName,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "MessageId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "MessageId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (EnterprisesSendTestPushNotificationResponse)MarshalJSON¶
func (sEnterprisesSendTestPushNotificationResponse) MarshalJSON() ([]byte,error)
typeEnterprisesService¶
type EnterprisesService struct {// contains filtered or unexported fields}funcNewEnterprisesService¶
func NewEnterprisesService(s *Service) *EnterprisesService
func (*EnterprisesService)AcknowledgeNotificationSet¶
func (r *EnterprisesService) AcknowledgeNotificationSet() *EnterprisesAcknowledgeNotificationSetCall
AcknowledgeNotificationSet: Acknowledges notifications that were receivedfrom Enterprises.PullNotificationSet to prevent subsequent calls fromreturning the same notifications.
func (*EnterprisesService)CompleteSignup¶
func (r *EnterprisesService) CompleteSignup() *EnterprisesCompleteSignupCall
CompleteSignup: Completes the signup flow, by specifying the Completiontoken and Enterprise token. This request must not be called multiple timesfor a given Enterprise Token.
func (*EnterprisesService)CreateWebToken¶
func (r *EnterprisesService) CreateWebToken(enterpriseIdstring, administratorwebtokenspec *AdministratorWebTokenSpec) *EnterprisesCreateWebTokenCall
CreateWebToken: Returns a unique token to access an embeddable UI. Togenerate a web UI, pass the generated token into the managed Google Playjavascript API. Each token may only be used to start one UI session. See theJavaScript API documentation for further information.
- enterpriseId: The ID of the enterprise.
func (*EnterprisesService)Enroll¶
func (r *EnterprisesService) Enroll(tokenstring, enterprise *Enterprise) *EnterprisesEnrollCall
Enroll: Enrolls an enterprise with the calling EMM.
- token: The token provided by the enterprise to register the EMM.
func (*EnterprisesService)GenerateEnterpriseUpgradeUrl¶added inv0.224.0
func (r *EnterprisesService) GenerateEnterpriseUpgradeUrl(enterpriseIdstring) *EnterprisesGenerateEnterpriseUpgradeUrlCall
GenerateEnterpriseUpgradeUrl: Generates an enterprise upgrade URL to upgradean existing managed Google Play Accounts enterprise to a managed Googledomain. See the guide to upgrading an enterprise for more details.
- enterpriseId: The ID of the enterprise.
func (*EnterprisesService)GenerateSignupUrl¶
func (r *EnterprisesService) GenerateSignupUrl() *EnterprisesGenerateSignupUrlCall
GenerateSignupUrl: Generates a sign-up URL.
func (*EnterprisesService)Get¶
func (r *EnterprisesService) Get(enterpriseIdstring) *EnterprisesGetCall
Get: Retrieves the name and domain of an enterprise.
- enterpriseId: The ID of the enterprise.
func (*EnterprisesService)GetServiceAccount¶
func (r *EnterprisesService) GetServiceAccount(enterpriseIdstring) *EnterprisesGetServiceAccountCall
GetServiceAccount: Returns a service account and credentials. The serviceaccount can be bound to the enterprise by calling setAccount. The serviceaccount is unique to this enterprise and EMM, and will be deleted if theenterprise is unbound. The credentials contain private key data and are notstored server-side. This method can only be called after callingEnterprises.Enroll or Enterprises.CompleteSignup, and beforeEnterprises.SetAccount; at other times it will return an error. Subsequentcalls after the first will generate a new, unique set of credentials, andinvalidate the previously generated credentials. Once the service account isbound to the enterprise, it can be managed using the serviceAccountKeysresource. *Note:* After you create a key, you might need to wait for 60seconds or more before you perform another operation with the key. If youtry to perform an operation with the key immediately after you create thekey, and you receive an error, you can retry the request with exponentialbackoff .
- enterpriseId: The ID of the enterprise.
func (*EnterprisesService)GetStoreLayout¶
func (r *EnterprisesService) GetStoreLayout(enterpriseIdstring) *EnterprisesGetStoreLayoutCall
GetStoreLayout: Returns the store layout for the enterprise. If the storelayout has not been set, returns "basic" as the store layout type and nohomepage.
- enterpriseId: The ID of the enterprise.
func (*EnterprisesService)List¶
func (r *EnterprisesService) List(domainstring) *EnterprisesListCall
List: Looks up an enterprise by domain name. This is only supported forenterprises created via the Google-initiated creation flow. Lookup of the idis not needed for enterprises created via the EMM-initiated flow since theEMM learns the enterprise ID in the callback specified in theEnterprises.generateSignupUrl call.
- domain: The exact primary domain name of the enterprise to look up.
func (*EnterprisesService)PullNotificationSet¶
func (r *EnterprisesService) PullNotificationSet() *EnterprisesPullNotificationSetCall
PullNotificationSet: Pulls and returns a notification set for theenterprises associated with the service account authenticated for therequest. The notification set may be empty if no notification are pending. Anotification set returned needs to be acknowledged within 20 seconds bycalling Enterprises.AcknowledgeNotificationSet, unless the notification setis empty. Notifications that are not acknowledged within the 20 seconds willeventually be included again in the response to another PullNotificationSetrequest, and those that are never acknowledged will ultimately be deletedaccording to the Google Cloud Platform Pub/Sub system policy. Multiplerequests might be performed concurrently to retrieve notifications, in whichcase the pending notifications (if any) will be split among each caller, ifany are pending. If no notifications are present, an empty notification listis returned. Subsequent requests may return more notifications once theybecome available.
func (*EnterprisesService)SendTestPushNotification¶
func (r *EnterprisesService) SendTestPushNotification(enterpriseIdstring) *EnterprisesSendTestPushNotificationCall
SendTestPushNotification: Sends a test notification to validate the EMMintegration with the Google Cloud Pub/Sub service for this enterprise.
- enterpriseId: The ID of the enterprise.
func (*EnterprisesService)SetAccount¶
func (r *EnterprisesService) SetAccount(enterpriseIdstring, enterpriseaccount *EnterpriseAccount) *EnterprisesSetAccountCall
SetAccount: Sets the account that will be used to authenticate to the API asthe enterprise.
- enterpriseId: The ID of the enterprise.
func (*EnterprisesService)SetStoreLayout¶
func (r *EnterprisesService) SetStoreLayout(enterpriseIdstring, storelayout *StoreLayout) *EnterprisesSetStoreLayoutCall
SetStoreLayout: Sets the store layout for the enterprise. By default,storeLayoutType is set to "basic" and the basic store layout is enabled. Thebasic layout only contains apps approved by the admin, and that have beenadded to the available product set for a user (using thesetAvailableProductSet call). Apps on the page are sorted in order of theirproduct ID value. If you create a custom store layout (by settingstoreLayoutType = "custom" and setting a homepage), the basic store layoutis disabled.
- enterpriseId: The ID of the enterprise.
func (*EnterprisesService)Unenroll¶
func (r *EnterprisesService) Unenroll(enterpriseIdstring) *EnterprisesUnenrollCall
Unenroll: Unenrolls an enterprise from the calling EMM.
- enterpriseId: The ID of the enterprise.
typeEnterprisesSetAccountCall¶
type EnterprisesSetAccountCall struct {// contains filtered or unexported fields}func (*EnterprisesSetAccountCall)Context¶
func (c *EnterprisesSetAccountCall) Context(ctxcontext.Context) *EnterprisesSetAccountCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesSetAccountCall)Do¶
func (c *EnterprisesSetAccountCall) Do(opts ...googleapi.CallOption) (*EnterpriseAccount,error)
Do executes the "androidenterprise.enterprises.setAccount" call.Any non-2xx status code is an error. Response headers are in either*EnterpriseAccount.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*EnterprisesSetAccountCall)Fields¶
func (c *EnterprisesSetAccountCall) Fields(s ...googleapi.Field) *EnterprisesSetAccountCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesSetAccountCall)Header¶
func (c *EnterprisesSetAccountCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeEnterprisesSetStoreLayoutCall¶
type EnterprisesSetStoreLayoutCall struct {// contains filtered or unexported fields}func (*EnterprisesSetStoreLayoutCall)Context¶
func (c *EnterprisesSetStoreLayoutCall) Context(ctxcontext.Context) *EnterprisesSetStoreLayoutCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesSetStoreLayoutCall)Do¶
func (c *EnterprisesSetStoreLayoutCall) Do(opts ...googleapi.CallOption) (*StoreLayout,error)
Do executes the "androidenterprise.enterprises.setStoreLayout" call.Any non-2xx status code is an error. Response headers are in either*StoreLayout.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*EnterprisesSetStoreLayoutCall)Fields¶
func (c *EnterprisesSetStoreLayoutCall) Fields(s ...googleapi.Field) *EnterprisesSetStoreLayoutCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesSetStoreLayoutCall)Header¶
func (c *EnterprisesSetStoreLayoutCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeEnterprisesUnenrollCall¶
type EnterprisesUnenrollCall struct {// contains filtered or unexported fields}func (*EnterprisesUnenrollCall)Context¶
func (c *EnterprisesUnenrollCall) Context(ctxcontext.Context) *EnterprisesUnenrollCall
Context sets the context to be used in this call's Do method.
func (*EnterprisesUnenrollCall)Do¶
func (c *EnterprisesUnenrollCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.enterprises.unenroll" call.
func (*EnterprisesUnenrollCall)Fields¶
func (c *EnterprisesUnenrollCall) Fields(s ...googleapi.Field) *EnterprisesUnenrollCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EnterprisesUnenrollCall)Header¶
func (c *EnterprisesUnenrollCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeEntitlement¶
type Entitlement struct {// ProductId: The ID of the product that the entitlement is for. For example,// "app:com.google.android.gm".ProductIdstring `json:"productId,omitempty"`// Reason: The reason for the entitlement. For example, "free" for free apps.// This property is temporary: it will be replaced by the acquisition kind// field of group licenses.//// Possible values:// "free"// "groupLicense"// "userPurchase"Reasonstring `json:"reason,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ProductId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ProductId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Entitlement: *Deprecated:* New integrations cannot use this method and canrefer to our new recommendations.
func (Entitlement)MarshalJSON¶
func (sEntitlement) MarshalJSON() ([]byte,error)
typeEntitlementsDeleteCall¶
type EntitlementsDeleteCall struct {// contains filtered or unexported fields}func (*EntitlementsDeleteCall)Context¶
func (c *EntitlementsDeleteCall) Context(ctxcontext.Context) *EntitlementsDeleteCall
Context sets the context to be used in this call's Do method.
func (*EntitlementsDeleteCall)Do¶
func (c *EntitlementsDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.entitlements.delete" call.
func (*EntitlementsDeleteCall)Fields¶
func (c *EntitlementsDeleteCall) Fields(s ...googleapi.Field) *EntitlementsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EntitlementsDeleteCall)Header¶
func (c *EntitlementsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeEntitlementsGetCall¶
type EntitlementsGetCall struct {// contains filtered or unexported fields}func (*EntitlementsGetCall)Context¶
func (c *EntitlementsGetCall) Context(ctxcontext.Context) *EntitlementsGetCall
Context sets the context to be used in this call's Do method.
func (*EntitlementsGetCall)Do¶
func (c *EntitlementsGetCall) Do(opts ...googleapi.CallOption) (*Entitlement,error)
Do executes the "androidenterprise.entitlements.get" call.Any non-2xx status code is an error. Response headers are in either*Entitlement.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*EntitlementsGetCall)Fields¶
func (c *EntitlementsGetCall) Fields(s ...googleapi.Field) *EntitlementsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EntitlementsGetCall)Header¶
func (c *EntitlementsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*EntitlementsGetCall)IfNoneMatch¶
func (c *EntitlementsGetCall) IfNoneMatch(entityTagstring) *EntitlementsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeEntitlementsListCall¶
type EntitlementsListCall struct {// contains filtered or unexported fields}func (*EntitlementsListCall)Context¶
func (c *EntitlementsListCall) Context(ctxcontext.Context) *EntitlementsListCall
Context sets the context to be used in this call's Do method.
func (*EntitlementsListCall)Do¶
func (c *EntitlementsListCall) Do(opts ...googleapi.CallOption) (*EntitlementsListResponse,error)
Do executes the "androidenterprise.entitlements.list" call.Any non-2xx status code is an error. Response headers are in either*EntitlementsListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*EntitlementsListCall)Fields¶
func (c *EntitlementsListCall) Fields(s ...googleapi.Field) *EntitlementsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EntitlementsListCall)Header¶
func (c *EntitlementsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*EntitlementsListCall)IfNoneMatch¶
func (c *EntitlementsListCall) IfNoneMatch(entityTagstring) *EntitlementsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeEntitlementsListResponse¶
type EntitlementsListResponse struct {// Entitlement: An entitlement of a user to a product (e.g. an app). For// example, a free app that they have installed, or a paid app that they have// been allocated a license to.Entitlement []*Entitlement `json:"entitlement,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Entitlement") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Entitlement") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (EntitlementsListResponse)MarshalJSON¶
func (sEntitlementsListResponse) MarshalJSON() ([]byte,error)
typeEntitlementsService¶
type EntitlementsService struct {// contains filtered or unexported fields}funcNewEntitlementsService¶
func NewEntitlementsService(s *Service) *EntitlementsService
func (*EntitlementsService)Delete¶
func (r *EntitlementsService) Delete(enterpriseIdstring, userIdstring, entitlementIdstring) *EntitlementsDeleteCall
Delete: Removes an entitlement to an app for a user. **Note:** This item hasbeen deprecated. New integrations cannot use this method and can refer toour new recommendations.
- enterpriseId: The ID of the enterprise.
- entitlementId: The ID of the entitlement (a product ID), e.g."app:com.google.android.gm".
- userId: The ID of the user.
func (*EntitlementsService)Get¶
func (r *EntitlementsService) Get(enterpriseIdstring, userIdstring, entitlementIdstring) *EntitlementsGetCall
Get: Retrieves details of an entitlement. **Note:** This item has beendeprecated. New integrations cannot use this method and can refer to our newrecommendations.
- enterpriseId: The ID of the enterprise.
- entitlementId: The ID of the entitlement (a product ID), e.g."app:com.google.android.gm".
- userId: The ID of the user.
func (*EntitlementsService)List¶
func (r *EntitlementsService) List(enterpriseIdstring, userIdstring) *EntitlementsListCall
List: Lists all entitlements for the specified user. Only the ID is set.**Note:** This item has been deprecated. New integrations cannot use thismethod and can refer to our new recommendations.
- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*EntitlementsService)Update¶
func (r *EntitlementsService) Update(enterpriseIdstring, userIdstring, entitlementIdstring, entitlement *Entitlement) *EntitlementsUpdateCall
Update: Adds or updates an entitlement to an app for a user. **Note:** Thisitem has been deprecated. New integrations cannot use this method and canrefer to our new recommendations.
- enterpriseId: The ID of the enterprise.
- entitlementId: The ID of the entitlement (a product ID), e.g."app:com.google.android.gm".
- userId: The ID of the user.
typeEntitlementsUpdateCall¶
type EntitlementsUpdateCall struct {// contains filtered or unexported fields}func (*EntitlementsUpdateCall)Context¶
func (c *EntitlementsUpdateCall) Context(ctxcontext.Context) *EntitlementsUpdateCall
Context sets the context to be used in this call's Do method.
func (*EntitlementsUpdateCall)Do¶
func (c *EntitlementsUpdateCall) Do(opts ...googleapi.CallOption) (*Entitlement,error)
Do executes the "androidenterprise.entitlements.update" call.Any non-2xx status code is an error. Response headers are in either*Entitlement.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*EntitlementsUpdateCall)Fields¶
func (c *EntitlementsUpdateCall) Fields(s ...googleapi.Field) *EntitlementsUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*EntitlementsUpdateCall)Header¶
func (c *EntitlementsUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*EntitlementsUpdateCall)Install¶
func (c *EntitlementsUpdateCall) Install(installbool) *EntitlementsUpdateCall
Install sets the optional parameter "install": Set to true to also installthe product on all the user's devices where possible. Failure to install onone or more devices will not prevent this operation from returningsuccessfully, as long as the entitlement was successfully assigned to theuser.
typeGenerateEnterpriseUpgradeUrlResponse¶added inv0.224.0
type GenerateEnterpriseUpgradeUrlResponse struct {// Url: A URL for an enterprise admin to upgrade their enterprise. The page// can't be rendered in an iframe.Urlstring `json:"url,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Url") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Url") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GenerateEnterpriseUpgradeUrlResponse: Response message for generating a URLto upgrade an existing managed Google Play Accounts enterprise to a managedGoogle domain.
func (GenerateEnterpriseUpgradeUrlResponse)MarshalJSON¶added inv0.224.0
func (sGenerateEnterpriseUpgradeUrlResponse) MarshalJSON() ([]byte,error)
typeGoogleAuthenticationSettings¶added inv0.108.0
type GoogleAuthenticationSettings struct {// DedicatedDevicesAllowed: Whether dedicated devices are allowed.//// Possible values:// "dedicatedDevicesAllowedUnspecified" - This value is unused.// "disallowed" - Dedicated devices are not allowed.// "allowed" - Dedicated devices are allowed.DedicatedDevicesAllowedstring `json:"dedicatedDevicesAllowed,omitempty"`// GoogleAuthenticationRequired: Whether Google authentication is required.//// Possible values:// "googleAuthenticationRequiredUnspecified" - This value is unused.// "notRequired" - Google authentication is not required.// "required" - User is required to be successfully authenticated by Google.GoogleAuthenticationRequiredstring `json:"googleAuthenticationRequired,omitempty"`// ForceSendFields is a list of field names (e.g. "DedicatedDevicesAllowed") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DedicatedDevicesAllowed") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GoogleAuthenticationSettings: Contains settings for Google-provided userauthentication.
func (GoogleAuthenticationSettings)MarshalJSON¶added inv0.108.0
func (sGoogleAuthenticationSettings) MarshalJSON() ([]byte,error)
typeGroupLicense¶
type GroupLicense struct {// AcquisitionKind: How this group license was acquired. "bulkPurchase" means// that this Grouplicenses resource was created because the enterprise// purchased licenses for this product; otherwise, the value is "free" (for// free products).//// Possible values:// "free"// "bulkPurchase"AcquisitionKindstring `json:"acquisitionKind,omitempty"`// Approval: Whether the product to which this group license relates is// currently approved by the enterprise. Products are approved when a group// license is first created, but this approval may be revoked by an enterprise// admin via Google Play. Unapproved products will not be visible to end users// in collections, and new entitlements to them should not normally be created.//// Possible values:// "approved"// "unapproved"Approvalstring `json:"approval,omitempty"`// NumProvisioned: The total number of provisioned licenses for this product.// Returned by read operations, but ignored in write operations.NumProvisionedint64 `json:"numProvisioned,omitempty"`// NumPurchased: The number of purchased licenses (possibly in multiple// purchases). If this field is omitted, then there is no limit on the number// of licenses that can be provisioned (for example, if the acquisition kind is// "free").NumPurchasedint64 `json:"numPurchased,omitempty"`// Permissions: The permission approval status of the product. This field is// only set if the product is approved. Possible states are: -// "currentApproved", the current set of permissions is approved, but// additional permissions will require the administrator to reapprove the// product (If the product was approved without specifying the approved// permissions setting, then this is the default behavior.), -// "needsReapproval", the product has unapproved permissions. No additional// product licenses can be assigned until the product is reapproved, -// "allCurrentAndFutureApproved", the current permissions are approved and any// future permission updates will be automatically approved without// administrator review.//// Possible values:// "currentApproved"// "needsReapproval"// "allCurrentAndFutureApproved"Permissionsstring `json:"permissions,omitempty"`// ProductId: The ID of the product that the license is for. For example,// "app:com.google.android.gm".ProductIdstring `json:"productId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AcquisitionKind") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AcquisitionKind") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}GroupLicense: *Deprecated:* New integrations cannot use this method and canrefer to our new recommendations
func (GroupLicense)MarshalJSON¶
func (sGroupLicense) MarshalJSON() ([]byte,error)
typeGroupLicenseUsersListResponse¶
type GroupLicenseUsersListResponse struct {// User: A user of an enterprise.User []*User `json:"user,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "User") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "User") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (GroupLicenseUsersListResponse)MarshalJSON¶
func (sGroupLicenseUsersListResponse) MarshalJSON() ([]byte,error)
typeGroupLicensesListResponse¶
type GroupLicensesListResponse struct {// GroupLicense: A group license for a product approved for use in the// enterprise.GroupLicense []*GroupLicense `json:"groupLicense,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "GroupLicense") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "GroupLicense") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (GroupLicensesListResponse)MarshalJSON¶
func (sGroupLicensesListResponse) MarshalJSON() ([]byte,error)
typeGrouplicensesGetCall¶
type GrouplicensesGetCall struct {// contains filtered or unexported fields}func (*GrouplicensesGetCall)Context¶
func (c *GrouplicensesGetCall) Context(ctxcontext.Context) *GrouplicensesGetCall
Context sets the context to be used in this call's Do method.
func (*GrouplicensesGetCall)Do¶
func (c *GrouplicensesGetCall) Do(opts ...googleapi.CallOption) (*GroupLicense,error)
Do executes the "androidenterprise.grouplicenses.get" call.Any non-2xx status code is an error. Response headers are in either*GroupLicense.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*GrouplicensesGetCall)Fields¶
func (c *GrouplicensesGetCall) Fields(s ...googleapi.Field) *GrouplicensesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*GrouplicensesGetCall)Header¶
func (c *GrouplicensesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*GrouplicensesGetCall)IfNoneMatch¶
func (c *GrouplicensesGetCall) IfNoneMatch(entityTagstring) *GrouplicensesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeGrouplicensesListCall¶
type GrouplicensesListCall struct {// contains filtered or unexported fields}func (*GrouplicensesListCall)Context¶
func (c *GrouplicensesListCall) Context(ctxcontext.Context) *GrouplicensesListCall
Context sets the context to be used in this call's Do method.
func (*GrouplicensesListCall)Do¶
func (c *GrouplicensesListCall) Do(opts ...googleapi.CallOption) (*GroupLicensesListResponse,error)
Do executes the "androidenterprise.grouplicenses.list" call.Any non-2xx status code is an error. Response headers are in either*GroupLicensesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*GrouplicensesListCall)Fields¶
func (c *GrouplicensesListCall) Fields(s ...googleapi.Field) *GrouplicensesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*GrouplicensesListCall)Header¶
func (c *GrouplicensesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*GrouplicensesListCall)IfNoneMatch¶
func (c *GrouplicensesListCall) IfNoneMatch(entityTagstring) *GrouplicensesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeGrouplicensesService¶
type GrouplicensesService struct {// contains filtered or unexported fields}funcNewGrouplicensesService¶
func NewGrouplicensesService(s *Service) *GrouplicensesService
func (*GrouplicensesService)Get¶
func (r *GrouplicensesService) Get(enterpriseIdstring, groupLicenseIdstring) *GrouplicensesGetCall
Get: Retrieves details of an enterprise's group license for a product.**Note:** This item has been deprecated. New integrations cannot use thismethod and can refer to our new recommendations.
- enterpriseId: The ID of the enterprise.
- groupLicenseId: The ID of the product the group license is for, e.g."app:com.google.android.gm".
func (*GrouplicensesService)List¶
func (r *GrouplicensesService) List(enterpriseIdstring) *GrouplicensesListCall
List: Retrieves IDs of all products for which the enterprise has a grouplicense. **Note:** This item has been deprecated. New integrations cannotuse this method and can refer to our new recommendations.
- enterpriseId: The ID of the enterprise.
typeGrouplicenseusersListCall¶
type GrouplicenseusersListCall struct {// contains filtered or unexported fields}func (*GrouplicenseusersListCall)Context¶
func (c *GrouplicenseusersListCall) Context(ctxcontext.Context) *GrouplicenseusersListCall
Context sets the context to be used in this call's Do method.
func (*GrouplicenseusersListCall)Do¶
func (c *GrouplicenseusersListCall) Do(opts ...googleapi.CallOption) (*GroupLicenseUsersListResponse,error)
Do executes the "androidenterprise.grouplicenseusers.list" call.Any non-2xx status code is an error. Response headers are in either*GroupLicenseUsersListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*GrouplicenseusersListCall)Fields¶
func (c *GrouplicenseusersListCall) Fields(s ...googleapi.Field) *GrouplicenseusersListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*GrouplicenseusersListCall)Header¶
func (c *GrouplicenseusersListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*GrouplicenseusersListCall)IfNoneMatch¶
func (c *GrouplicenseusersListCall) IfNoneMatch(entityTagstring) *GrouplicenseusersListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeGrouplicenseusersService¶
type GrouplicenseusersService struct {// contains filtered or unexported fields}funcNewGrouplicenseusersService¶
func NewGrouplicenseusersService(s *Service) *GrouplicenseusersService
func (*GrouplicenseusersService)List¶
func (r *GrouplicenseusersService) List(enterpriseIdstring, groupLicenseIdstring) *GrouplicenseusersListCall
List: Retrieves the IDs of the users who have been granted entitlementsunder the license. **Note:** This item has been deprecated. New integrationscannot use this method and can refer to our new recommendations.
- enterpriseId: The ID of the enterprise.
- groupLicenseId: The ID of the product the group license is for, e.g."app:com.google.android.gm".
typeInstall¶
type Install struct {// InstallState: Install state. The state "installPending" means that an// install request has recently been made and download to the device is in// progress. The state "installed" means that the app has been installed. This// field is read-only.//// Possible values:// "installed"// "installPending"InstallStatestring `json:"installState,omitempty"`// ProductId: The ID of the product that the install is for. For example,// "app:com.google.android.gm".ProductIdstring `json:"productId,omitempty"`// VersionCode: The version of the installed product. Guaranteed to be set only// if the install state is "installed".VersionCodeint64 `json:"versionCode,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "InstallState") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "InstallState") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Install: The existence of an Installs resource indicates that an app isinstalled on a particular device (or that an install is pending). The APIcan be used to create an install resource using the update method. Thistriggers the actual install of the app on the device. If the user does notalready have an entitlement for the app, then an attempt is made to createone. If this fails (for example, because the app is not free and there is noavailable license), then the creation of the install fails. The API can alsobe used to update an installed app. If the update method is used on anexisting install, then the app will be updated to the latest availableversion. Note that it is not possible to force the installation of aspecific version of an app: the version code is read-only. If a userinstalls an app themselves (as permitted by the enterprise), then again aninstall resource and possibly an entitlement resource are automaticallycreated. The API can also be used to delete an install resource, whichtriggers the removal of the app from the device. Note that deleting aninstall does not automatically remove the corresponding entitlement, even ifthere are no remaining installs. The install resource will also be deletedif the user uninstalls the app themselves.
func (Install)MarshalJSON¶
typeInstallFailureEvent¶
type InstallFailureEvent struct {// DeviceId: The Android ID of the device. This field will always be present.DeviceIdstring `json:"deviceId,omitempty"`// FailureDetails: Additional details on the failure if applicable.FailureDetailsstring `json:"failureDetails,omitempty"`// FailureReason: The reason for the installation failure. This field will// always be present.//// Possible values:// "unknown" - Used whenever no better reason for failure can be provided.// "timeout" - Used when the installation timed out. This can cover a number// of situations, for example when the device did not have connectivity at any// point during the retry period, or if the device is OOM.FailureReasonstring `json:"failureReason,omitempty"`// ProductId: The id of the product (e.g. "app:com.google.android.gm") for// which the install failure event occured. This field will always be present.ProductIdstring `json:"productId,omitempty"`// UserId: The ID of the user. This field will always be present.UserIdstring `json:"userId,omitempty"`// ForceSendFields is a list of field names (e.g. "DeviceId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeviceId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}InstallFailureEvent: An event generated when an app installation failed on adevice
func (InstallFailureEvent)MarshalJSON¶
func (sInstallFailureEvent) MarshalJSON() ([]byte,error)
typeInstallsDeleteCall¶
type InstallsDeleteCall struct {// contains filtered or unexported fields}func (*InstallsDeleteCall)Context¶
func (c *InstallsDeleteCall) Context(ctxcontext.Context) *InstallsDeleteCall
Context sets the context to be used in this call's Do method.
func (*InstallsDeleteCall)Do¶
func (c *InstallsDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.installs.delete" call.
func (*InstallsDeleteCall)Fields¶
func (c *InstallsDeleteCall) Fields(s ...googleapi.Field) *InstallsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*InstallsDeleteCall)Header¶
func (c *InstallsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeInstallsGetCall¶
type InstallsGetCall struct {// contains filtered or unexported fields}func (*InstallsGetCall)Context¶
func (c *InstallsGetCall) Context(ctxcontext.Context) *InstallsGetCall
Context sets the context to be used in this call's Do method.
func (*InstallsGetCall)Do¶
func (c *InstallsGetCall) Do(opts ...googleapi.CallOption) (*Install,error)
Do executes the "androidenterprise.installs.get" call.Any non-2xx status code is an error. Response headers are in either*Install.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*InstallsGetCall)Fields¶
func (c *InstallsGetCall) Fields(s ...googleapi.Field) *InstallsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*InstallsGetCall)Header¶
func (c *InstallsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*InstallsGetCall)IfNoneMatch¶
func (c *InstallsGetCall) IfNoneMatch(entityTagstring) *InstallsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeInstallsListCall¶
type InstallsListCall struct {// contains filtered or unexported fields}func (*InstallsListCall)Context¶
func (c *InstallsListCall) Context(ctxcontext.Context) *InstallsListCall
Context sets the context to be used in this call's Do method.
func (*InstallsListCall)Do¶
func (c *InstallsListCall) Do(opts ...googleapi.CallOption) (*InstallsListResponse,error)
Do executes the "androidenterprise.installs.list" call.Any non-2xx status code is an error. Response headers are in either*InstallsListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*InstallsListCall)Fields¶
func (c *InstallsListCall) Fields(s ...googleapi.Field) *InstallsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*InstallsListCall)Header¶
func (c *InstallsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*InstallsListCall)IfNoneMatch¶
func (c *InstallsListCall) IfNoneMatch(entityTagstring) *InstallsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeInstallsListResponse¶
type InstallsListResponse struct {// Install: An installation of an app for a user on a specific device. The// existence of an install implies that the user must have an entitlement to// the app.Install []*Install `json:"install,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Install") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Install") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (InstallsListResponse)MarshalJSON¶
func (sInstallsListResponse) MarshalJSON() ([]byte,error)
typeInstallsService¶
type InstallsService struct {// contains filtered or unexported fields}funcNewInstallsService¶
func NewInstallsService(s *Service) *InstallsService
func (*InstallsService)Delete¶
func (r *InstallsService) Delete(enterpriseIdstring, userIdstring, deviceIdstring, installIdstring) *InstallsDeleteCall
Delete: Requests to remove an app from a device. A call to get or list willstill show the app as installed on the device until it is actually removed.A successful response indicates that a removal request has been sent to thedevice. The call will be considered successful even if the app is notpresent on the device (e.g. it was never installed, or was removed by theuser).
- deviceId: The Android ID of the device.
- enterpriseId: The ID of the enterprise.
- installId: The ID of the product represented by the install, e.g."app:com.google.android.gm".
- userId: The ID of the user.
func (*InstallsService)Get¶
func (r *InstallsService) Get(enterpriseIdstring, userIdstring, deviceIdstring, installIdstring) *InstallsGetCall
Get: Retrieves details of an installation of an app on a device.
- deviceId: The Android ID of the device.
- enterpriseId: The ID of the enterprise.
- installId: The ID of the product represented by the install, e.g."app:com.google.android.gm".
- userId: The ID of the user.
func (*InstallsService)List¶
func (r *InstallsService) List(enterpriseIdstring, userIdstring, deviceIdstring) *InstallsListCall
List: Retrieves the details of all apps installed on the specified device.
- deviceId: The Android ID of the device.- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*InstallsService)Update¶
func (r *InstallsService) Update(enterpriseIdstring, userIdstring, deviceIdstring, installIdstring, install *Install) *InstallsUpdateCall
Update: Requests to install the latest version of an app to a device. If theapp is already installed, then it is updated to the latest version ifnecessary.
- deviceId: The Android ID of the device.
- enterpriseId: The ID of the enterprise.
- installId: The ID of the product represented by the install, e.g."app:com.google.android.gm".
- userId: The ID of the user.
typeInstallsUpdateCall¶
type InstallsUpdateCall struct {// contains filtered or unexported fields}func (*InstallsUpdateCall)Context¶
func (c *InstallsUpdateCall) Context(ctxcontext.Context) *InstallsUpdateCall
Context sets the context to be used in this call's Do method.
func (*InstallsUpdateCall)Do¶
func (c *InstallsUpdateCall) Do(opts ...googleapi.CallOption) (*Install,error)
Do executes the "androidenterprise.installs.update" call.Any non-2xx status code is an error. Response headers are in either*Install.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*InstallsUpdateCall)Fields¶
func (c *InstallsUpdateCall) Fields(s ...googleapi.Field) *InstallsUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*InstallsUpdateCall)Header¶
func (c *InstallsUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeKeyedAppState¶added inv0.7.0
type KeyedAppState struct {// Data: Additional field intended for machine-readable data. For example, a// number or JSON object. To prevent XSS, we recommend removing any HTML from// the data before displaying it.Datastring `json:"data,omitempty"`// Key: Key indicating what the app is providing a state for. The content of// the key is set by the app's developer. To prevent XSS, we recommend removing// any HTML from the key before displaying it. This field will always be// present.Keystring `json:"key,omitempty"`// Message: Free-form, human-readable message describing the app state. For// example, an error message. To prevent XSS, we recommend removing any HTML// from the message before displaying it.Messagestring `json:"message,omitempty"`// Severity: Severity of the app state. This field will always be present.//// Possible values:// "severityUnknown"// "severityInfo"// "severityError"Severitystring `json:"severity,omitempty"`// StateTimestampMillis: Timestamp of when the app set the state in// milliseconds since epoch. This field will always be present.StateTimestampMillisint64 `json:"stateTimestampMillis,omitempty,string"`// ForceSendFields is a list of field names (e.g. "Data") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Data") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}KeyedAppState: Represents a keyed app state containing a key, timestamp,severity level, optional description, and optional data.
func (KeyedAppState)MarshalJSON¶added inv0.7.0
func (sKeyedAppState) MarshalJSON() ([]byte,error)
typeLocalizedText¶
type LocalizedText struct {// Locale: The BCP47 tag for a locale. (e.g. "en-US", "de").Localestring `json:"locale,omitempty"`// Text: The text localized in the associated locale.Textstring `json:"text,omitempty"`// ForceSendFields is a list of field names (e.g. "Locale") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Locale") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}LocalizedText: A localized string with its locale.
func (LocalizedText)MarshalJSON¶
func (sLocalizedText) MarshalJSON() ([]byte,error)
typeMaintenanceWindow¶
type MaintenanceWindow struct {// DurationMs: Duration of the maintenance window, in milliseconds. The// duration must be between 30 minutes and 24 hours (inclusive).DurationMsint64 `json:"durationMs,omitempty,string"`// StartTimeAfterMidnightMs: Start time of the maintenance window, in// milliseconds after midnight on the device. Windows can span midnight.StartTimeAfterMidnightMsint64 `json:"startTimeAfterMidnightMs,omitempty,string"`// ForceSendFields is a list of field names (e.g. "DurationMs") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DurationMs") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}MaintenanceWindow: Maintenance window for managed Google Play Accounts. Thisallows Play store to update the apps on the foreground in the designatedwindow.
func (MaintenanceWindow)MarshalJSON¶
func (sMaintenanceWindow) MarshalJSON() ([]byte,error)
typeManagedConfiguration¶
type ManagedConfiguration struct {// ConfigurationVariables: Contains the ID of the managed configuration profile// and the set of configuration variables (if any) defined for the user.ConfigurationVariables *ConfigurationVariables `json:"configurationVariables,omitempty"`// Kind: Deprecated.Kindstring `json:"kind,omitempty"`// ManagedProperty: The set of managed properties for this configuration.ManagedProperty []*ManagedProperty `json:"managedProperty,omitempty"`// ProductId: The ID of the product that the managed configuration is for, e.g.// "app:com.google.android.gm".ProductIdstring `json:"productId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ConfigurationVariables") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ConfigurationVariables") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ManagedConfiguration: *Deprecated:* New integrations cannot use this methodand can refer to our new recommendations
func (ManagedConfiguration)MarshalJSON¶
func (sManagedConfiguration) MarshalJSON() ([]byte,error)
typeManagedConfigurationsForDeviceListResponse¶
type ManagedConfigurationsForDeviceListResponse struct {// ManagedConfigurationForDevice: A managed configuration for an app on a// specific device.ManagedConfigurationForDevice []*ManagedConfiguration `json:"managedConfigurationForDevice,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g.// "ManagedConfigurationForDevice") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ManagedConfigurationForDevice")// to include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ManagedConfigurationsForDeviceListResponse)MarshalJSON¶
func (sManagedConfigurationsForDeviceListResponse) MarshalJSON() ([]byte,error)
typeManagedConfigurationsForUserListResponse¶
type ManagedConfigurationsForUserListResponse struct {// ManagedConfigurationForUser: A managed configuration for an app for a// specific user.ManagedConfigurationForUser []*ManagedConfiguration `json:"managedConfigurationForUser,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g.// "ManagedConfigurationForUser") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ManagedConfigurationForUser") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ManagedConfigurationsForUserListResponse)MarshalJSON¶
func (sManagedConfigurationsForUserListResponse) MarshalJSON() ([]byte,error)
typeManagedConfigurationsSettings¶
type ManagedConfigurationsSettings struct {// LastUpdatedTimestampMillis: The last updated time of the managed// configuration settings in milliseconds since 1970-01-01T00:00:00Z.LastUpdatedTimestampMillisint64 `json:"lastUpdatedTimestampMillis,omitempty,string"`// McmId: The ID of the managed configurations settings.McmIdstring `json:"mcmId,omitempty"`// Name: The name of the managed configurations settings.Namestring `json:"name,omitempty"`// ForceSendFields is a list of field names (e.g. "LastUpdatedTimestampMillis")// to unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "LastUpdatedTimestampMillis") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ManagedConfigurationsSettings: A managed configurations settings resourcecontains the set of managed properties that have been configured for anAndroid app to be applied to a set of users. The app's developer would havedefined configurable properties in the managed configurations schema.
func (ManagedConfigurationsSettings)MarshalJSON¶
func (sManagedConfigurationsSettings) MarshalJSON() ([]byte,error)
typeManagedConfigurationsSettingsListResponse¶
type ManagedConfigurationsSettingsListResponse struct {// ManagedConfigurationsSettings: A managed configurations settings for an app// that may be assigned to a group of users in an enterprise.ManagedConfigurationsSettings []*ManagedConfigurationsSettings `json:"managedConfigurationsSettings,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g.// "ManagedConfigurationsSettings") to unconditionally include in API requests.// By default, fields with empty or default values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields// for more details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ManagedConfigurationsSettings")// to include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ManagedConfigurationsSettingsListResponse)MarshalJSON¶
func (sManagedConfigurationsSettingsListResponse) MarshalJSON() ([]byte,error)
typeManagedProperty¶
type ManagedProperty struct {// Key: The unique key that identifies the property.Keystring `json:"key,omitempty"`// ValueBool: The boolean value - this will only be present if type of the// property is bool.ValueBoolbool `json:"valueBool,omitempty"`// ValueBundle: The bundle of managed properties - this will only be present if// type of the property is bundle.ValueBundle *ManagedPropertyBundle `json:"valueBundle,omitempty"`// ValueBundleArray: The list of bundles of properties - this will only be// present if type of the property is bundle_array.ValueBundleArray []*ManagedPropertyBundle `json:"valueBundleArray,omitempty"`// ValueInteger: The integer value - this will only be present if type of the// property is integer.ValueIntegerint64 `json:"valueInteger,omitempty"`// ValueString: The string value - this will only be present if type of the// property is string, choice or hidden.ValueStringstring `json:"valueString,omitempty"`// ValueStringArray: The list of string values - this will only be present if// type of the property is multiselect.ValueStringArray []string `json:"valueStringArray,omitempty"`// ForceSendFields is a list of field names (e.g. "Key") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Key") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ManagedProperty: A managed property of a managed configuration. The propertymust match one of the properties in the app restrictions schema of theproduct. Exactly one of the value fields must be populated, and it mustmatch the property's type in the app restrictions schema.
func (ManagedProperty)MarshalJSON¶
func (sManagedProperty) MarshalJSON() ([]byte,error)
typeManagedPropertyBundle¶
type ManagedPropertyBundle struct {// ManagedProperty: The list of managed properties.ManagedProperty []*ManagedProperty `json:"managedProperty,omitempty"`// ForceSendFields is a list of field names (e.g. "ManagedProperty") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ManagedProperty") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ManagedPropertyBundle: A bundle of managed properties.
func (ManagedPropertyBundle)MarshalJSON¶
func (sManagedPropertyBundle) MarshalJSON() ([]byte,error)
typeManagedconfigurationsfordeviceDeleteCall¶
type ManagedconfigurationsfordeviceDeleteCall struct {// contains filtered or unexported fields}func (*ManagedconfigurationsfordeviceDeleteCall)Context¶
func (c *ManagedconfigurationsfordeviceDeleteCall) Context(ctxcontext.Context) *ManagedconfigurationsfordeviceDeleteCall
Context sets the context to be used in this call's Do method.
func (*ManagedconfigurationsfordeviceDeleteCall)Do¶
func (c *ManagedconfigurationsfordeviceDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.managedconfigurationsfordevice.delete" call.
func (*ManagedconfigurationsfordeviceDeleteCall)Fields¶
func (c *ManagedconfigurationsfordeviceDeleteCall) Fields(s ...googleapi.Field) *ManagedconfigurationsfordeviceDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ManagedconfigurationsfordeviceDeleteCall)Header¶
func (c *ManagedconfigurationsfordeviceDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeManagedconfigurationsfordeviceGetCall¶
type ManagedconfigurationsfordeviceGetCall struct {// contains filtered or unexported fields}func (*ManagedconfigurationsfordeviceGetCall)Context¶
func (c *ManagedconfigurationsfordeviceGetCall) Context(ctxcontext.Context) *ManagedconfigurationsfordeviceGetCall
Context sets the context to be used in this call's Do method.
func (*ManagedconfigurationsfordeviceGetCall)Do¶
func (c *ManagedconfigurationsfordeviceGetCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration,error)
Do executes the "androidenterprise.managedconfigurationsfordevice.get" call.Any non-2xx status code is an error. Response headers are in either*ManagedConfiguration.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ManagedconfigurationsfordeviceGetCall)Fields¶
func (c *ManagedconfigurationsfordeviceGetCall) Fields(s ...googleapi.Field) *ManagedconfigurationsfordeviceGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ManagedconfigurationsfordeviceGetCall)Header¶
func (c *ManagedconfigurationsfordeviceGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ManagedconfigurationsfordeviceGetCall)IfNoneMatch¶
func (c *ManagedconfigurationsfordeviceGetCall) IfNoneMatch(entityTagstring) *ManagedconfigurationsfordeviceGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeManagedconfigurationsfordeviceListCall¶
type ManagedconfigurationsfordeviceListCall struct {// contains filtered or unexported fields}func (*ManagedconfigurationsfordeviceListCall)Context¶
func (c *ManagedconfigurationsfordeviceListCall) Context(ctxcontext.Context) *ManagedconfigurationsfordeviceListCall
Context sets the context to be used in this call's Do method.
func (*ManagedconfigurationsfordeviceListCall)Do¶
func (c *ManagedconfigurationsfordeviceListCall) Do(opts ...googleapi.CallOption) (*ManagedConfigurationsForDeviceListResponse,error)
Do executes the "androidenterprise.managedconfigurationsfordevice.list" call.Any non-2xx status code is an error. Response headers are in either*ManagedConfigurationsForDeviceListResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ManagedconfigurationsfordeviceListCall)Fields¶
func (c *ManagedconfigurationsfordeviceListCall) Fields(s ...googleapi.Field) *ManagedconfigurationsfordeviceListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ManagedconfigurationsfordeviceListCall)Header¶
func (c *ManagedconfigurationsfordeviceListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ManagedconfigurationsfordeviceListCall)IfNoneMatch¶
func (c *ManagedconfigurationsfordeviceListCall) IfNoneMatch(entityTagstring) *ManagedconfigurationsfordeviceListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeManagedconfigurationsfordeviceService¶
type ManagedconfigurationsfordeviceService struct {// contains filtered or unexported fields}funcNewManagedconfigurationsfordeviceService¶
func NewManagedconfigurationsfordeviceService(s *Service) *ManagedconfigurationsfordeviceService
func (*ManagedconfigurationsfordeviceService)Delete¶
func (r *ManagedconfigurationsfordeviceService) Delete(enterpriseIdstring, userIdstring, deviceIdstring, managedConfigurationForDeviceIdstring) *ManagedconfigurationsfordeviceDeleteCall
Delete: Removes a per-device managed configuration for an app for thespecified device.
- deviceId: The Android ID of the device.
- enterpriseId: The ID of the enterprise.
- managedConfigurationForDeviceId: The ID of the managed configuration (aproduct ID), e.g. "app:com.google.android.gm".
- userId: The ID of the user.
func (*ManagedconfigurationsfordeviceService)Get¶
func (r *ManagedconfigurationsfordeviceService) Get(enterpriseIdstring, userIdstring, deviceIdstring, managedConfigurationForDeviceIdstring) *ManagedconfigurationsfordeviceGetCall
Get: Retrieves details of a per-device managed configuration.
- deviceId: The Android ID of the device.
- enterpriseId: The ID of the enterprise.
- managedConfigurationForDeviceId: The ID of the managed configuration (aproduct ID), e.g. "app:com.google.android.gm".
- userId: The ID of the user.
func (*ManagedconfigurationsfordeviceService)List¶
func (r *ManagedconfigurationsfordeviceService) List(enterpriseIdstring, userIdstring, deviceIdstring) *ManagedconfigurationsfordeviceListCall
List: Lists all the per-device managed configurations for the specifieddevice. Only the ID is set.
- deviceId: The Android ID of the device.- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*ManagedconfigurationsfordeviceService)Update¶
func (r *ManagedconfigurationsfordeviceService) Update(enterpriseIdstring, userIdstring, deviceIdstring, managedConfigurationForDeviceIdstring, managedconfiguration *ManagedConfiguration) *ManagedconfigurationsfordeviceUpdateCall
Update: Adds or updates a per-device managed configuration for an app forthe specified device.
- deviceId: The Android ID of the device.
- enterpriseId: The ID of the enterprise.
- managedConfigurationForDeviceId: The ID of the managed configuration (aproduct ID), e.g. "app:com.google.android.gm".
- userId: The ID of the user.
typeManagedconfigurationsfordeviceUpdateCall¶
type ManagedconfigurationsfordeviceUpdateCall struct {// contains filtered or unexported fields}func (*ManagedconfigurationsfordeviceUpdateCall)Context¶
func (c *ManagedconfigurationsfordeviceUpdateCall) Context(ctxcontext.Context) *ManagedconfigurationsfordeviceUpdateCall
Context sets the context to be used in this call's Do method.
func (*ManagedconfigurationsfordeviceUpdateCall)Do¶
func (c *ManagedconfigurationsfordeviceUpdateCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration,error)
Do executes the "androidenterprise.managedconfigurationsfordevice.update" call.Any non-2xx status code is an error. Response headers are in either*ManagedConfiguration.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ManagedconfigurationsfordeviceUpdateCall)Fields¶
func (c *ManagedconfigurationsfordeviceUpdateCall) Fields(s ...googleapi.Field) *ManagedconfigurationsfordeviceUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ManagedconfigurationsfordeviceUpdateCall)Header¶
func (c *ManagedconfigurationsfordeviceUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeManagedconfigurationsforuserDeleteCall¶
type ManagedconfigurationsforuserDeleteCall struct {// contains filtered or unexported fields}func (*ManagedconfigurationsforuserDeleteCall)Context¶
func (c *ManagedconfigurationsforuserDeleteCall) Context(ctxcontext.Context) *ManagedconfigurationsforuserDeleteCall
Context sets the context to be used in this call's Do method.
func (*ManagedconfigurationsforuserDeleteCall)Do¶
func (c *ManagedconfigurationsforuserDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.managedconfigurationsforuser.delete" call.
func (*ManagedconfigurationsforuserDeleteCall)Fields¶
func (c *ManagedconfigurationsforuserDeleteCall) Fields(s ...googleapi.Field) *ManagedconfigurationsforuserDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ManagedconfigurationsforuserDeleteCall)Header¶
func (c *ManagedconfigurationsforuserDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeManagedconfigurationsforuserGetCall¶
type ManagedconfigurationsforuserGetCall struct {// contains filtered or unexported fields}func (*ManagedconfigurationsforuserGetCall)Context¶
func (c *ManagedconfigurationsforuserGetCall) Context(ctxcontext.Context) *ManagedconfigurationsforuserGetCall
Context sets the context to be used in this call's Do method.
func (*ManagedconfigurationsforuserGetCall)Do¶
func (c *ManagedconfigurationsforuserGetCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration,error)
Do executes the "androidenterprise.managedconfigurationsforuser.get" call.Any non-2xx status code is an error. Response headers are in either*ManagedConfiguration.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ManagedconfigurationsforuserGetCall)Fields¶
func (c *ManagedconfigurationsforuserGetCall) Fields(s ...googleapi.Field) *ManagedconfigurationsforuserGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ManagedconfigurationsforuserGetCall)Header¶
func (c *ManagedconfigurationsforuserGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ManagedconfigurationsforuserGetCall)IfNoneMatch¶
func (c *ManagedconfigurationsforuserGetCall) IfNoneMatch(entityTagstring) *ManagedconfigurationsforuserGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeManagedconfigurationsforuserListCall¶
type ManagedconfigurationsforuserListCall struct {// contains filtered or unexported fields}func (*ManagedconfigurationsforuserListCall)Context¶
func (c *ManagedconfigurationsforuserListCall) Context(ctxcontext.Context) *ManagedconfigurationsforuserListCall
Context sets the context to be used in this call's Do method.
func (*ManagedconfigurationsforuserListCall)Do¶
func (c *ManagedconfigurationsforuserListCall) Do(opts ...googleapi.CallOption) (*ManagedConfigurationsForUserListResponse,error)
Do executes the "androidenterprise.managedconfigurationsforuser.list" call.Any non-2xx status code is an error. Response headers are in either*ManagedConfigurationsForUserListResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ManagedconfigurationsforuserListCall)Fields¶
func (c *ManagedconfigurationsforuserListCall) Fields(s ...googleapi.Field) *ManagedconfigurationsforuserListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ManagedconfigurationsforuserListCall)Header¶
func (c *ManagedconfigurationsforuserListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ManagedconfigurationsforuserListCall)IfNoneMatch¶
func (c *ManagedconfigurationsforuserListCall) IfNoneMatch(entityTagstring) *ManagedconfigurationsforuserListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeManagedconfigurationsforuserService¶
type ManagedconfigurationsforuserService struct {// contains filtered or unexported fields}funcNewManagedconfigurationsforuserService¶
func NewManagedconfigurationsforuserService(s *Service) *ManagedconfigurationsforuserService
func (*ManagedconfigurationsforuserService)Delete¶
func (r *ManagedconfigurationsforuserService) Delete(enterpriseIdstring, userIdstring, managedConfigurationForUserIdstring) *ManagedconfigurationsforuserDeleteCall
Delete: Removes a per-user managed configuration for an app for thespecified user.
- enterpriseId: The ID of the enterprise.
- managedConfigurationForUserId: The ID of the managed configuration (aproduct ID), e.g. "app:com.google.android.gm".
- userId: The ID of the user.
func (*ManagedconfigurationsforuserService)Get¶
func (r *ManagedconfigurationsforuserService) Get(enterpriseIdstring, userIdstring, managedConfigurationForUserIdstring) *ManagedconfigurationsforuserGetCall
Get: Retrieves details of a per-user managed configuration for an app forthe specified user.
- enterpriseId: The ID of the enterprise.
- managedConfigurationForUserId: The ID of the managed configuration (aproduct ID), e.g. "app:com.google.android.gm".
- userId: The ID of the user.
func (*ManagedconfigurationsforuserService)List¶
func (r *ManagedconfigurationsforuserService) List(enterpriseIdstring, userIdstring) *ManagedconfigurationsforuserListCall
List: Lists all the per-user managed configurations for the specified user.Only the ID is set.
- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*ManagedconfigurationsforuserService)Update¶
func (r *ManagedconfigurationsforuserService) Update(enterpriseIdstring, userIdstring, managedConfigurationForUserIdstring, managedconfiguration *ManagedConfiguration) *ManagedconfigurationsforuserUpdateCall
Update: Adds or updates the managed configuration settings for an app forthe specified user. If you support the Managed configurations iframe, youcan apply managed configurations to a user by specifying an mcmId and itsassociated configuration variables (if any) in the request. Alternatively,all EMMs can apply managed configurations by passing a list of managedproperties.
- enterpriseId: The ID of the enterprise.
- managedConfigurationForUserId: The ID of the managed configuration (aproduct ID), e.g. "app:com.google.android.gm".
- userId: The ID of the user.
typeManagedconfigurationsforuserUpdateCall¶
type ManagedconfigurationsforuserUpdateCall struct {// contains filtered or unexported fields}func (*ManagedconfigurationsforuserUpdateCall)Context¶
func (c *ManagedconfigurationsforuserUpdateCall) Context(ctxcontext.Context) *ManagedconfigurationsforuserUpdateCall
Context sets the context to be used in this call's Do method.
func (*ManagedconfigurationsforuserUpdateCall)Do¶
func (c *ManagedconfigurationsforuserUpdateCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration,error)
Do executes the "androidenterprise.managedconfigurationsforuser.update" call.Any non-2xx status code is an error. Response headers are in either*ManagedConfiguration.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ManagedconfigurationsforuserUpdateCall)Fields¶
func (c *ManagedconfigurationsforuserUpdateCall) Fields(s ...googleapi.Field) *ManagedconfigurationsforuserUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ManagedconfigurationsforuserUpdateCall)Header¶
func (c *ManagedconfigurationsforuserUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeManagedconfigurationssettingsListCall¶
type ManagedconfigurationssettingsListCall struct {// contains filtered or unexported fields}func (*ManagedconfigurationssettingsListCall)Context¶
func (c *ManagedconfigurationssettingsListCall) Context(ctxcontext.Context) *ManagedconfigurationssettingsListCall
Context sets the context to be used in this call's Do method.
func (*ManagedconfigurationssettingsListCall)Do¶
func (c *ManagedconfigurationssettingsListCall) Do(opts ...googleapi.CallOption) (*ManagedConfigurationsSettingsListResponse,error)
Do executes the "androidenterprise.managedconfigurationssettings.list" call.Any non-2xx status code is an error. Response headers are in either*ManagedConfigurationsSettingsListResponse.ServerResponse.Header or (if aresponse was returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ManagedconfigurationssettingsListCall)Fields¶
func (c *ManagedconfigurationssettingsListCall) Fields(s ...googleapi.Field) *ManagedconfigurationssettingsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ManagedconfigurationssettingsListCall)Header¶
func (c *ManagedconfigurationssettingsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ManagedconfigurationssettingsListCall)IfNoneMatch¶
func (c *ManagedconfigurationssettingsListCall) IfNoneMatch(entityTagstring) *ManagedconfigurationssettingsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeManagedconfigurationssettingsService¶
type ManagedconfigurationssettingsService struct {// contains filtered or unexported fields}funcNewManagedconfigurationssettingsService¶
func NewManagedconfigurationssettingsService(s *Service) *ManagedconfigurationssettingsService
func (*ManagedconfigurationssettingsService)List¶
func (r *ManagedconfigurationssettingsService) List(enterpriseIdstring, productIdstring) *ManagedconfigurationssettingsListCall
List: Lists all the managed configurations settings for the specified app.
- enterpriseId: The ID of the enterprise.
- productId: The ID of the product for which the managed configurationssettings applies to.
typeNewDeviceEvent¶
type NewDeviceEvent struct {// DeviceId: The Android ID of the device. This field will always be present.DeviceIdstring `json:"deviceId,omitempty"`// DpcPackageName: Policy app on the device.DpcPackageNamestring `json:"dpcPackageName,omitempty"`// ManagementType: Identifies the extent to which the device is controlled by// an Android EMM in various deployment configurations. Possible values// include: - "managedDevice", a device where the DPC is set as device owner, -// "managedProfile", a device where the DPC is set as profile owner.//// Possible values:// "managedDevice"// "managedProfile"ManagementTypestring `json:"managementType,omitempty"`// UserId: The ID of the user. This field will always be present.UserIdstring `json:"userId,omitempty"`// ForceSendFields is a list of field names (e.g. "DeviceId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DeviceId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}NewDeviceEvent: An event generated when a new device is ready to be managed.
func (NewDeviceEvent)MarshalJSON¶
func (sNewDeviceEvent) MarshalJSON() ([]byte,error)
typeNewPermissionsEvent¶
type NewPermissionsEvent struct {// ApprovedPermissions: The set of permissions that the enterprise admin has// already approved for this application. Use Permissions.Get on the EMM API to// retrieve details about these permissions.ApprovedPermissions []string `json:"approvedPermissions,omitempty"`// ProductId: The id of the product (e.g. "app:com.google.android.gm") for// which new permissions were added. This field will always be present.ProductIdstring `json:"productId,omitempty"`// RequestedPermissions: The set of permissions that the app is currently// requesting. Use Permissions.Get on the EMM API to retrieve details about// these permissions.RequestedPermissions []string `json:"requestedPermissions,omitempty"`// ForceSendFields is a list of field names (e.g. "ApprovedPermissions") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApprovedPermissions") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}NewPermissionsEvent: An event generated when new permissions are added to anapp.
func (NewPermissionsEvent)MarshalJSON¶
func (sNewPermissionsEvent) MarshalJSON() ([]byte,error)
typeNotification¶
type Notification struct {// AppRestrictionsSchemaChangeEvent: Notifications about new app restrictions// schema changes.AppRestrictionsSchemaChangeEvent *AppRestrictionsSchemaChangeEvent `json:"appRestrictionsSchemaChangeEvent,omitempty"`// AppUpdateEvent: Notifications about app updates.AppUpdateEvent *AppUpdateEvent `json:"appUpdateEvent,omitempty"`// DeviceReportUpdateEvent: Notifications about device report updates.DeviceReportUpdateEvent *DeviceReportUpdateEvent `json:"deviceReportUpdateEvent,omitempty"`// EnterpriseId: The ID of the enterprise for which the notification is sent.// This will always be present.EnterpriseIdstring `json:"enterpriseId,omitempty"`// EnterpriseUpgradeEvent: Notifications about enterprise upgrade.EnterpriseUpgradeEvent *EnterpriseUpgradeEvent `json:"enterpriseUpgradeEvent,omitempty"`// InstallFailureEvent: Notifications about an app installation failure.InstallFailureEvent *InstallFailureEvent `json:"installFailureEvent,omitempty"`// NewDeviceEvent: Notifications about new devices.NewDeviceEvent *NewDeviceEvent `json:"newDeviceEvent,omitempty"`// NewPermissionsEvent: Notifications about new app permissions.NewPermissionsEvent *NewPermissionsEvent `json:"newPermissionsEvent,omitempty"`// NotificationType: Type of the notification.//// Possible values:// "unknown"// "testNotification" - A test push notification.// "productApproval" - Notification about change to a product's approval// status.// "installFailure" - Notification about an app installation failure.// "appUpdate" - Notification about app update.// "newPermissions" - Notification about new app permissions.// "appRestricionsSchemaChange" - Notification about new app restrictions// schema change.// "productAvailabilityChange" - Notification about product availability// change.// "newDevice" - Notification about a new device.// "deviceReportUpdate" - Notification about an updated device report.// "enterpriseUpgrade" - Notification about an enterprise upgrade.NotificationTypestring `json:"notificationType,omitempty"`// ProductApprovalEvent: Notifications about changes to a product's approval// status.ProductApprovalEvent *ProductApprovalEvent `json:"productApprovalEvent,omitempty"`// ProductAvailabilityChangeEvent: Notifications about product availability// changes.ProductAvailabilityChangeEvent *ProductAvailabilityChangeEvent `json:"productAvailabilityChangeEvent,omitempty"`// TimestampMillis: The time when the notification was published in// milliseconds since 1970-01-01T00:00:00Z. This will always be present.TimestampMillisint64 `json:"timestampMillis,omitempty,string"`// ForceSendFields is a list of field names (e.g.// "AppRestrictionsSchemaChangeEvent") to unconditionally include in API// requests. By default, fields with empty or default values are omitted from// API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g.// "AppRestrictionsSchemaChangeEvent") to include in API requests with the JSON// null value. By default, fields with empty values are omitted from API// requests. Seehttps://pkg.go.dev/google.golang.org/api#hdr-NullFields for// more details.NullFields []string `json:"-"`}Notification: A notification of one event relating to an enterprise.
func (Notification)MarshalJSON¶
func (sNotification) MarshalJSON() ([]byte,error)
typeNotificationSet¶
type NotificationSet struct {// Notification: The notifications received, or empty if no notifications are// present.Notification []*Notification `json:"notification,omitempty"`// NotificationSetId: The notification set ID, required to mark the// notification as received with the Enterprises.AcknowledgeNotification API.// This will be omitted if no notifications are present.NotificationSetIdstring `json:"notificationSetId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Notification") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Notification") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}NotificationSet: A resource returned by the PullNotificationSet API, whichcontains a collection of notifications for enterprises associated with theservice account authenticated for the request.
func (NotificationSet)MarshalJSON¶
func (sNotificationSet) MarshalJSON() ([]byte,error)
typePageInfo¶
type PageInfo struct {// ResultPerPage: Maximum number of results returned in one page. ! The number// of results included in the API response.ResultPerPageint64 `json:"resultPerPage,omitempty"`// StartIndex: Index of the first result returned in the current page.StartIndexint64 `json:"startIndex,omitempty"`// TotalResults: Total number of results available on the backend ! The total// number of results in the result set.TotalResultsint64 `json:"totalResults,omitempty"`// ForceSendFields is a list of field names (e.g. "ResultPerPage") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ResultPerPage") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}PageInfo: Information about the current page. List operations that supportspaging return only one "page" of results. This protocol buffer messagedescribes the page that has been returned.
func (PageInfo)MarshalJSON¶
typePermission¶
type Permission struct {// Description: A longer description of the Permissions resource, giving more// details of what it affects.Descriptionstring `json:"description,omitempty"`// Name: The name of the permission.Namestring `json:"name,omitempty"`// PermissionId: An opaque string uniquely identifying the permission.PermissionIdstring `json:"permissionId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Description") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Description") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Permission: A Permissions resource represents some extra capability, to begranted to an Android app, which requires explicit consent. An enterpriseadmin must consent to these permissions on behalf of their users before anentitlement for the app can be created. The permissions collection isread-only. The information provided for each permission (localized name anddescription) is intended to be used in the MDM user interface when obtainingconsent from the enterprise.
func (Permission)MarshalJSON¶
func (sPermission) MarshalJSON() ([]byte,error)
typePermissionsGetCall¶
type PermissionsGetCall struct {// contains filtered or unexported fields}func (*PermissionsGetCall)Context¶
func (c *PermissionsGetCall) Context(ctxcontext.Context) *PermissionsGetCall
Context sets the context to be used in this call's Do method.
func (*PermissionsGetCall)Do¶
func (c *PermissionsGetCall) Do(opts ...googleapi.CallOption) (*Permission,error)
Do executes the "androidenterprise.permissions.get" call.Any non-2xx status code is an error. Response headers are in either*Permission.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*PermissionsGetCall)Fields¶
func (c *PermissionsGetCall) Fields(s ...googleapi.Field) *PermissionsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*PermissionsGetCall)Header¶
func (c *PermissionsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*PermissionsGetCall)IfNoneMatch¶
func (c *PermissionsGetCall) IfNoneMatch(entityTagstring) *PermissionsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*PermissionsGetCall)Language¶
func (c *PermissionsGetCall) Language(languagestring) *PermissionsGetCall
Language sets the optional parameter "language": The BCP47 tag for theuser's preferred language (e.g. "en-US", "de")
typePermissionsService¶
type PermissionsService struct {// contains filtered or unexported fields}funcNewPermissionsService¶
func NewPermissionsService(s *Service) *PermissionsService
func (*PermissionsService)Get¶
func (r *PermissionsService) Get(permissionIdstring) *PermissionsGetCall
Get: Retrieves details of an Android app permission for display to anenterprise admin.
- permissionId: The ID of the permission.
typePolicy¶
type Policy struct {// AutoUpdatePolicy: Controls when automatic app updates on the device can be// applied. Recommended alternative: autoUpdateMode which is set per app,// provides greater flexibility around update frequency. When autoUpdateMode is// set to AUTO_UPDATE_POSTPONED or AUTO_UPDATE_HIGH_PRIORITY, autoUpdatePolicy// has no effect. - choiceToTheUser allows the device's user to configure the// app update policy. - always enables auto updates. - never disables auto// updates. - wifiOnly enables auto updates only when the device is connected// to wifi. *Important:* Changes to app update policies don't affect updates// that are in progress. Any policy changes will apply to subsequent app// updates.//// Possible values:// "autoUpdatePolicyUnspecified" - The auto update policy is not set.// "choiceToTheUser" - The user can control auto-updates.// "never" - Apps are never auto-updated.// "wifiOnly" - Apps are auto-updated over WiFi only.// "always" - Apps are auto-updated at any time. Data charges may apply.AutoUpdatePolicystring `json:"autoUpdatePolicy,omitempty"`// DeviceReportPolicy: Whether the device reports app states to the EMM. The// default value is "deviceReportDisabled".//// Possible values:// "deviceReportPolicyUnspecified" - The device report policy is not set.// "deviceReportDisabled" - Device reports are disabled.// "deviceReportEnabled" - Device reports are enabled.DeviceReportPolicystring `json:"deviceReportPolicy,omitempty"`// MaintenanceWindow: The maintenance window defining when apps running in the// foreground should be updated.MaintenanceWindow *MaintenanceWindow `json:"maintenanceWindow,omitempty"`// PolicyId: An identifier for the policy that will be passed with the app// install feedback sent from the Play Store.PolicyIdstring `json:"policyId,omitempty"`// ProductAvailabilityPolicy: The availability granted to the device for the// specified products. "all" gives the device access to all products,// regardless of approval status. "all" does not enable automatic visibility of// "alpha" or "beta" tracks. "whitelist" grants the device access the products// specified in productPolicy[]. Only products that are approved or products// that were previously approved (products with revoked approval) by the// enterprise can be whitelisted. If no value is provided, the availability set// at the user level is applied by default.//// Possible values:// "productAvailabilityPolicyUnspecified" - Unspecified, applies the user// available product set by default.// "whitelist" - The approved products with product availability set to// AVAILABLE in the product policy are available.// "all" - All products are available except those explicitly marked as// unavailable in the product availability policy.ProductAvailabilityPolicystring `json:"productAvailabilityPolicy,omitempty"`// ProductPolicy: The list of product policies. The productAvailabilityPolicy// needs to be set to WHITELIST or ALL for the product policies to be applied.ProductPolicy []*ProductPolicy `json:"productPolicy,omitempty"`// ForceSendFields is a list of field names (e.g. "AutoUpdatePolicy") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AutoUpdatePolicy") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Policy: The device policy for a given managed device.
func (Policy)MarshalJSON¶
typeProduct¶
type Product struct {// AppRestrictionsSchema: The app restriction schemaAppRestrictionsSchema *AppRestrictionsSchema `json:"appRestrictionsSchema,omitempty"`// AppTracks: The tracks visible to the enterprise.AppTracks []*TrackInfo `json:"appTracks,omitempty"`// AppVersion: App versions currently available for this product.AppVersion []*AppVersion `json:"appVersion,omitempty"`// AuthorName: The name of the author of the product (for example, the app// developer).AuthorNamestring `json:"authorName,omitempty"`// AvailableCountries: The countries which this app is available in.AvailableCountries []string `json:"availableCountries,omitempty"`// AvailableTracks: Deprecated, use appTracks instead.//// Possible values:// "appTrackUnspecified"// "production"// "beta"// "alpha"AvailableTracks []string `json:"availableTracks,omitempty"`// Category: The app category (e.g. RACING, SOCIAL, etc.)Categorystring `json:"category,omitempty"`// ContentRating: The content rating for this app.//// Possible values:// "ratingUnknown"// "all"// "preTeen"// "teen"// "mature"ContentRatingstring `json:"contentRating,omitempty"`// Description: The localized promotional description, if available.Descriptionstring `json:"description,omitempty"`// DetailsUrl: A link to the (consumer) Google Play details page for the// product.DetailsUrlstring `json:"detailsUrl,omitempty"`// DistributionChannel: How and to whom the package is made available. The// value publicGoogleHosted means that the package is available through the// Play store and not restricted to a specific enterprise. The value// privateGoogleHosted means that the package is a private app (restricted to// an enterprise) but hosted by Google. The value privateSelfHosted means that// the package is a private app (restricted to an enterprise) and is privately// hosted.//// Possible values:// "publicGoogleHosted"// "privateGoogleHosted"// "privateSelfHosted"DistributionChannelstring `json:"distributionChannel,omitempty"`// Features: Noteworthy features (if any) of this product.//// Possible values:// "featureUnknown"// "vpnApp" - The app is a VPN.Features []string `json:"features,omitempty"`// FullDescription: The localized full app store description, if available.FullDescriptionstring `json:"fullDescription,omitempty"`// IconUrl: A link to an image that can be used as an icon for the product.// This image is suitable for use at up to 512px x 512px.IconUrlstring `json:"iconUrl,omitempty"`// LastUpdatedTimestampMillis: The approximate time (within 7 days) the app was// last published, expressed in milliseconds since epoch.LastUpdatedTimestampMillisint64 `json:"lastUpdatedTimestampMillis,omitempty,string"`// MinAndroidSdkVersion: The minimum Android SDK necessary to run the app.MinAndroidSdkVersionint64 `json:"minAndroidSdkVersion,omitempty"`// Permissions: A list of permissions required by the app.Permissions []*ProductPermission `json:"permissions,omitempty"`// ProductId: A string of the form *app:<package name>*. For example,// app:com.google.android.gm represents the Gmail app.ProductIdstring `json:"productId,omitempty"`// ProductPricing: Whether this product is free, free with in-app purchases, or// paid. If the pricing is unknown, this means the product is not generally// available anymore (even though it might still be available to people who own// it).//// Possible values:// "unknown" - Unknown pricing, used to denote an approved product that is// not generally available.// "free" - The product is free.// "freeWithInAppPurchase" - The product is free, but offers in-app// purchases.// "paid" - The product is paid.ProductPricingstring `json:"productPricing,omitempty"`// RecentChanges: A description of the recent changes made to the app.RecentChangesstring `json:"recentChanges,omitempty"`// RequiresContainerApp: Deprecated.RequiresContainerAppbool `json:"requiresContainerApp,omitempty"`// ScreenshotUrls: A list of screenshot links representing the app.ScreenshotUrls []string `json:"screenshotUrls,omitempty"`// SigningCertificate: The certificate used to sign this product.SigningCertificate *ProductSigningCertificate `json:"signingCertificate,omitempty"`// SmallIconUrl: A link to a smaller image that can be used as an icon for the// product. This image is suitable for use at up to 128px x 128px.SmallIconUrlstring `json:"smallIconUrl,omitempty"`// Title: The name of the product.Titlestring `json:"title,omitempty"`// WorkDetailsUrl: A link to the managed Google Play details page for the// product, for use by an Enterprise admin.WorkDetailsUrlstring `json:"workDetailsUrl,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AppRestrictionsSchema") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AppRestrictionsSchema") to// include in API requests with the JSON null value. By default, fields with// empty values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}Product: A Products resource represents an app in the Google Play store thatis available to at least some users in the enterprise. (Some apps arerestricted to a single enterprise, and no information about them is madeavailable outside that enterprise.) The information provided for eachproduct (localized name, icon, link to the full Google Play details page) isintended to allow a basic representation of the product within an EMM userinterface.
func (Product)MarshalJSON¶
typeProductApprovalEvent¶
type ProductApprovalEvent struct {// Approved: Whether the product was approved or unapproved. This field will// always be present.//// Possible values:// "unknown" - Conveys no information.// "approved" - The product was approved.// "unapproved" - The product was unapproved.Approvedstring `json:"approved,omitempty"`// ProductId: The id of the product (e.g. "app:com.google.android.gm") for// which the approval status has changed. This field will always be present.ProductIdstring `json:"productId,omitempty"`// ForceSendFields is a list of field names (e.g. "Approved") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Approved") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ProductApprovalEvent: An event generated when a product's approval status ischanged.
func (ProductApprovalEvent)MarshalJSON¶
func (sProductApprovalEvent) MarshalJSON() ([]byte,error)
typeProductAvailabilityChangeEvent¶
type ProductAvailabilityChangeEvent struct {// AvailabilityStatus: The new state of the product. This field will always be// present.//// Possible values:// "unknown" - Conveys no information.// "available" - The previously unavailable product is again available on// Google Play.// "removed" - The product was removed from Google Play.// "unpublished" - The product was unpublished by the developer.AvailabilityStatusstring `json:"availabilityStatus,omitempty"`// ProductId: The id of the product (e.g. "app:com.google.android.gm") for// which the product availability changed. This field will always be present.ProductIdstring `json:"productId,omitempty"`// ForceSendFields is a list of field names (e.g. "AvailabilityStatus") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AvailabilityStatus") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ProductAvailabilityChangeEvent: An event generated whenever a product'savailability changes.
func (ProductAvailabilityChangeEvent)MarshalJSON¶
func (sProductAvailabilityChangeEvent) MarshalJSON() ([]byte,error)
typeProductPermission¶
type ProductPermission struct {// PermissionId: An opaque string uniquely identifying the permission.PermissionIdstring `json:"permissionId,omitempty"`// State: Whether the permission has been accepted or not.//// Possible values:// "required" - The permission is required by the app but has not yet been// accepted by the enterprise.// "accepted" - The permission has been accepted by the enterprise.Statestring `json:"state,omitempty"`// ForceSendFields is a list of field names (e.g. "PermissionId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PermissionId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ProductPermission: A product permissions resource represents the set ofpermissions required by a specific app and whether or not they have beenaccepted by an enterprise admin. The API can be used to read the set ofpermissions, and also to update the set to indicate that permissions havebeen accepted.
func (ProductPermission)MarshalJSON¶
func (sProductPermission) MarshalJSON() ([]byte,error)
typeProductPermissions¶
type ProductPermissions struct {// Permission: The permissions required by the app.Permission []*ProductPermission `json:"permission,omitempty"`// ProductId: The ID of the app that the permissions relate to, e.g.// "app:com.google.android.gm".ProductIdstring `json:"productId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Permission") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Permission") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ProductPermissions: Information about the permissions required by a specificapp and whether they have been accepted by the enterprise.
func (ProductPermissions)MarshalJSON¶
func (sProductPermissions) MarshalJSON() ([]byte,error)
typeProductPolicy¶
type ProductPolicy struct {// AutoInstallPolicy: The auto-install policy for the product.AutoInstallPolicy *AutoInstallPolicy `json:"autoInstallPolicy,omitempty"`// AutoUpdateMode: The auto-update mode for the product. When autoUpdateMode is// used, it always takes precedence over the user's choice. So when a user// makes changes to the device settings manually, these changes are ignored.//// Possible values:// "autoUpdateModeUnspecified" - Unspecified. Defaults to// AUTO_UPDATE_DEFAULT.// "autoUpdateDefault" - The app is automatically updated with low priority// to minimize the impact on the user. The app is updated when the following// constraints are met: * The device is not actively used * The device is// connected to an unmetered network * The device is charging The device is// notified about a new update within 24 hours after it is published by the// developer, after which the app is updated the next time the constraints// above are met.// "autoUpdatePostponed" - The app is not automatically updated for a maximum// of 90 days after the app becomes out of date. 90 days after the app becomes// out of date, the latest available version is installed automatically with// low priority (see AUTO_UPDATE_DEFAULT). After the app is updated it is not// automatically updated again until 90 days after it becomes out of date// again. The user can still manually update the app from the Play Store at any// time.// "autoUpdateHighPriority" - The app is updated as soon as possible. No// constraints are applied. The device is notified as soon as possible about a// new app update after it is published by the developer.AutoUpdateModestring `json:"autoUpdateMode,omitempty"`// EnterpriseAuthenticationAppLinkConfigs: An authentication URL configuration// for the authenticator app of an identity provider. This helps to launch the// identity provider's authenticator app during the authentication happening in// a private app using Android WebView. Authenticator app should already be the// default handler for the authentication url on the device.EnterpriseAuthenticationAppLinkConfigs []*EnterpriseAuthenticationAppLinkConfig `json:"enterpriseAuthenticationAppLinkConfigs,omitempty"`// ManagedConfiguration: The managed configuration for the product.ManagedConfiguration *ManagedConfiguration `json:"managedConfiguration,omitempty"`// ProductId: The ID of the product. For example, "app:com.google.android.gm".ProductIdstring `json:"productId,omitempty"`// TrackIds: Grants the device visibility to the specified product release// track(s), identified by trackIds. The list of release tracks of a product// can be obtained by calling Products.Get.TrackIds []string `json:"trackIds,omitempty"`// Tracks: Deprecated. Use trackIds instead.//// Possible values:// "appTrackUnspecified"// "production"// "beta"// "alpha"Tracks []string `json:"tracks,omitempty"`// ForceSendFields is a list of field names (e.g. "AutoInstallPolicy") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AutoInstallPolicy") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ProductPolicy: The policy for a product.
func (ProductPolicy)MarshalJSON¶
func (sProductPolicy) MarshalJSON() ([]byte,error)
typeProductSet¶
type ProductSet struct {// ProductId: The list of product IDs making up the set of products.ProductId []string `json:"productId,omitempty"`// ProductSetBehavior: The interpretation of this product set. "unknown" should// never be sent and is ignored if received. "whitelist" means that the user is// entitled to access the product set. "includeAll" means that all products are// accessible, including products that are approved, products with revoked// approval, and products that have never been approved. "allApproved" means// that the user is entitled to access all products that are approved for the// enterprise. If the value is "allApproved" or "includeAll", the productId// field is ignored. If no value is provided, it is interpreted as "whitelist"// for backwards compatibility. Further "allApproved" or "includeAll" does not// enable automatic visibility of "alpha" or "beta" tracks for Android app. Use// ProductVisibility to enable "alpha" or "beta" tracks per user.//// Possible values:// "unknown" - This value should never be sent and ignored if received.// "whitelist" - This product set constitutes a whitelist.// "includeAll" - This product set represents all products. For Android app// it represents only "production" track. (The value of the productId field is// therefore ignored).// "allApproved" - This product set represents all approved products. For// Android app it represents only "production" track. (The value of the// product_id field is therefore ignored).ProductSetBehaviorstring `json:"productSetBehavior,omitempty"`// ProductVisibility: Additional list of product IDs making up the product set.// Unlike the productID array, in this list It's possible to specify which// tracks (alpha, beta, production) of a product are visible to the user. See// ProductVisibility and its fields for more information. Specifying the same// product ID both here and in the productId array is not allowed and it will// result in an error.ProductVisibility []*ProductVisibility `json:"productVisibility,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ProductId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ProductId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ProductSet: A set of products.
func (ProductSet)MarshalJSON¶
func (sProductSet) MarshalJSON() ([]byte,error)
typeProductSigningCertificate¶
type ProductSigningCertificate struct {// CertificateHashSha1: The base64 urlsafe encoded SHA1 hash of the// certificate. (This field is deprecated in favor of SHA2-256. It should not// be used and may be removed at any time.)CertificateHashSha1string `json:"certificateHashSha1,omitempty"`// CertificateHashSha256: The base64 urlsafe encoded SHA2-256 hash of the// certificate.CertificateHashSha256string `json:"certificateHashSha256,omitempty"`// ForceSendFields is a list of field names (e.g. "CertificateHashSha1") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CertificateHashSha1") to include// in API requests with the JSON null value. By default, fields with empty// values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ProductSigningCertificate)MarshalJSON¶
func (sProductSigningCertificate) MarshalJSON() ([]byte,error)
typeProductVisibility¶
type ProductVisibility struct {// ProductId: The product ID to make visible to the user. Required for each// item in the productVisibility list.ProductIdstring `json:"productId,omitempty"`// TrackIds: Grants the user visibility to the specified product track(s),// identified by trackIds.TrackIds []string `json:"trackIds,omitempty"`// Tracks: Deprecated. Use trackIds instead.//// Possible values:// "appTrackUnspecified"// "production"// "beta"// "alpha"Tracks []string `json:"tracks,omitempty"`// ForceSendFields is a list of field names (e.g. "ProductId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ProductId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ProductVisibility: A product to be made visible to a user.
func (ProductVisibility)MarshalJSON¶
func (sProductVisibility) MarshalJSON() ([]byte,error)
typeProductsApproveCall¶
type ProductsApproveCall struct {// contains filtered or unexported fields}func (*ProductsApproveCall)Context¶
func (c *ProductsApproveCall) Context(ctxcontext.Context) *ProductsApproveCall
Context sets the context to be used in this call's Do method.
func (*ProductsApproveCall)Do¶
func (c *ProductsApproveCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.products.approve" call.
func (*ProductsApproveCall)Fields¶
func (c *ProductsApproveCall) Fields(s ...googleapi.Field) *ProductsApproveCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProductsApproveCall)Header¶
func (c *ProductsApproveCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeProductsApproveRequest¶
type ProductsApproveRequest struct {// ApprovalUrlInfo: The approval URL that was shown to the user. Only the// permissions shown to the user with that URL will be accepted, which may not// be the product's entire set of permissions. For example, the URL may only// display new permissions from an update after the product was approved, or// not include new permissions if the product was updated since the URL was// generated.ApprovalUrlInfo *ApprovalUrlInfo `json:"approvalUrlInfo,omitempty"`// ApprovedPermissions: Sets how new permission requests for the product are// handled. "allPermissions" automatically approves all current and future// permissions for the product. "currentPermissionsOnly" approves the current// set of permissions for the product, but any future permissions added through// updates will require manual reapproval. If not specified, only the current// set of permissions will be approved.//// Possible values:// "currentPermissionsOnly" - Approve only the permissions the product// requires at approval time. If an update requires additional permissions, the// app will not be updated on devices associated with enterprise users until// the additional permissions are approved.// "allPermissions" - All current and future permissions the app requires are// automatically approved.ApprovedPermissionsstring `json:"approvedPermissions,omitempty"`// ForceSendFields is a list of field names (e.g. "ApprovalUrlInfo") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ApprovalUrlInfo") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ProductsApproveRequest)MarshalJSON¶
func (sProductsApproveRequest) MarshalJSON() ([]byte,error)
typeProductsGenerateApprovalUrlCall¶
type ProductsGenerateApprovalUrlCall struct {// contains filtered or unexported fields}func (*ProductsGenerateApprovalUrlCall)Context¶
func (c *ProductsGenerateApprovalUrlCall) Context(ctxcontext.Context) *ProductsGenerateApprovalUrlCall
Context sets the context to be used in this call's Do method.
func (*ProductsGenerateApprovalUrlCall)Do¶
func (c *ProductsGenerateApprovalUrlCall) Do(opts ...googleapi.CallOption) (*ProductsGenerateApprovalUrlResponse,error)
Do executes the "androidenterprise.products.generateApprovalUrl" call.Any non-2xx status code is an error. Response headers are in either*ProductsGenerateApprovalUrlResponse.ServerResponse.Header or (if a responsewas returned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ProductsGenerateApprovalUrlCall)Fields¶
func (c *ProductsGenerateApprovalUrlCall) Fields(s ...googleapi.Field) *ProductsGenerateApprovalUrlCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProductsGenerateApprovalUrlCall)Header¶
func (c *ProductsGenerateApprovalUrlCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProductsGenerateApprovalUrlCall)LanguageCode¶
func (c *ProductsGenerateApprovalUrlCall) LanguageCode(languageCodestring) *ProductsGenerateApprovalUrlCall
LanguageCode sets the optional parameter "languageCode": The BCP 47 languagecode used for permission names and descriptions in the returned iframe, forinstance "en-US".
typeProductsGenerateApprovalUrlResponse¶
type ProductsGenerateApprovalUrlResponse struct {// Url: A URL that can be rendered in an iframe to display the permissions (if// any) of a product. This URL can be used to approve the product only once and// only within 24 hours of being generated, using the Products.approve call. If// the product is currently unapproved and has no permissions, this URL will// point to an empty page. If the product is currently approved, a URL will// only be generated if that product has added permissions since it was last// approved, and the URL will only display those new permissions that have not// yet been accepted.Urlstring `json:"url,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Url") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Url") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ProductsGenerateApprovalUrlResponse)MarshalJSON¶
func (sProductsGenerateApprovalUrlResponse) MarshalJSON() ([]byte,error)
typeProductsGetAppRestrictionsSchemaCall¶
type ProductsGetAppRestrictionsSchemaCall struct {// contains filtered or unexported fields}func (*ProductsGetAppRestrictionsSchemaCall)Context¶
func (c *ProductsGetAppRestrictionsSchemaCall) Context(ctxcontext.Context) *ProductsGetAppRestrictionsSchemaCall
Context sets the context to be used in this call's Do method.
func (*ProductsGetAppRestrictionsSchemaCall)Do¶
func (c *ProductsGetAppRestrictionsSchemaCall) Do(opts ...googleapi.CallOption) (*AppRestrictionsSchema,error)
Do executes the "androidenterprise.products.getAppRestrictionsSchema" call.Any non-2xx status code is an error. Response headers are in either*AppRestrictionsSchema.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProductsGetAppRestrictionsSchemaCall)Fields¶
func (c *ProductsGetAppRestrictionsSchemaCall) Fields(s ...googleapi.Field) *ProductsGetAppRestrictionsSchemaCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProductsGetAppRestrictionsSchemaCall)Header¶
func (c *ProductsGetAppRestrictionsSchemaCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProductsGetAppRestrictionsSchemaCall)IfNoneMatch¶
func (c *ProductsGetAppRestrictionsSchemaCall) IfNoneMatch(entityTagstring) *ProductsGetAppRestrictionsSchemaCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProductsGetAppRestrictionsSchemaCall)Language¶
func (c *ProductsGetAppRestrictionsSchemaCall) Language(languagestring) *ProductsGetAppRestrictionsSchemaCall
Language sets the optional parameter "language": The BCP47 tag for theuser's preferred language (e.g. "en-US", "de").
typeProductsGetCall¶
type ProductsGetCall struct {// contains filtered or unexported fields}func (*ProductsGetCall)Context¶
func (c *ProductsGetCall) Context(ctxcontext.Context) *ProductsGetCall
Context sets the context to be used in this call's Do method.
func (*ProductsGetCall)Do¶
func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product,error)
Do executes the "androidenterprise.products.get" call.Any non-2xx status code is an error. Response headers are in either*Product.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*ProductsGetCall)Fields¶
func (c *ProductsGetCall) Fields(s ...googleapi.Field) *ProductsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProductsGetCall)Header¶
func (c *ProductsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProductsGetCall)IfNoneMatch¶
func (c *ProductsGetCall) IfNoneMatch(entityTagstring) *ProductsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProductsGetCall)Language¶
func (c *ProductsGetCall) Language(languagestring) *ProductsGetCall
Language sets the optional parameter "language": The BCP47 tag for theuser's preferred language (e.g. "en-US", "de").
typeProductsGetPermissionsCall¶
type ProductsGetPermissionsCall struct {// contains filtered or unexported fields}func (*ProductsGetPermissionsCall)Context¶
func (c *ProductsGetPermissionsCall) Context(ctxcontext.Context) *ProductsGetPermissionsCall
Context sets the context to be used in this call's Do method.
func (*ProductsGetPermissionsCall)Do¶
func (c *ProductsGetPermissionsCall) Do(opts ...googleapi.CallOption) (*ProductPermissions,error)
Do executes the "androidenterprise.products.getPermissions" call.Any non-2xx status code is an error. Response headers are in either*ProductPermissions.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProductsGetPermissionsCall)Fields¶
func (c *ProductsGetPermissionsCall) Fields(s ...googleapi.Field) *ProductsGetPermissionsCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProductsGetPermissionsCall)Header¶
func (c *ProductsGetPermissionsCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProductsGetPermissionsCall)IfNoneMatch¶
func (c *ProductsGetPermissionsCall) IfNoneMatch(entityTagstring) *ProductsGetPermissionsCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeProductsListCall¶
type ProductsListCall struct {// contains filtered or unexported fields}func (*ProductsListCall)Approved¶
func (c *ProductsListCall) Approved(approvedbool) *ProductsListCall
Approved sets the optional parameter "approved": Specifies whether to searchamong all products (false) or among only products that have been approved(true). Only "true" is supported, and should be specified.
func (*ProductsListCall)Context¶
func (c *ProductsListCall) Context(ctxcontext.Context) *ProductsListCall
Context sets the context to be used in this call's Do method.
func (*ProductsListCall)Do¶
func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*ProductsListResponse,error)
Do executes the "androidenterprise.products.list" call.Any non-2xx status code is an error. Response headers are in either*ProductsListResponse.ServerResponse.Header or (if a response was returnedat all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ProductsListCall)Fields¶
func (c *ProductsListCall) Fields(s ...googleapi.Field) *ProductsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProductsListCall)Header¶
func (c *ProductsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ProductsListCall)IfNoneMatch¶
func (c *ProductsListCall) IfNoneMatch(entityTagstring) *ProductsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
func (*ProductsListCall)Language¶
func (c *ProductsListCall) Language(languagestring) *ProductsListCall
Language sets the optional parameter "language": The BCP47 tag for theuser's preferred language (e.g. "en-US", "de"). Results are returned in thelanguage best matching the preferred language.
func (*ProductsListCall)MaxResults¶
func (c *ProductsListCall) MaxResults(maxResultsint64) *ProductsListCall
MaxResults sets the optional parameter "maxResults": Defines how manyresults the list operation should return. The default number depends on theresource collection.
func (*ProductsListCall)Query¶
func (c *ProductsListCall) Query(querystring) *ProductsListCall
Query sets the optional parameter "query": The search query as typed in theGoogle Play store search box. If omitted, all approved apps will be returned(using the pagination parameters), including apps that are not available inthe store (e.g. unpublished apps).
func (*ProductsListCall)Token¶
func (c *ProductsListCall) Token(tokenstring) *ProductsListCall
Token sets the optional parameter "token": Defines the token of the page toreturn, usually taken from TokenPagination. This can only be used if tokenpaging is enabled.
typeProductsListResponse¶
type ProductsListResponse struct {// PageInfo: General pagination information.PageInfo *PageInfo `json:"pageInfo,omitempty"`// Product: Information about a product (e.g. an app) in the Google Play store,// for display to an enterprise admin.Product []*Product `json:"product,omitempty"`// TokenPagination: Pagination information for token pagination.TokenPagination *TokenPagination `json:"tokenPagination,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "PageInfo") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "PageInfo") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ProductsListResponse)MarshalJSON¶
func (sProductsListResponse) MarshalJSON() ([]byte,error)
typeProductsService¶
type ProductsService struct {// contains filtered or unexported fields}funcNewProductsService¶
func NewProductsService(s *Service) *ProductsService
func (*ProductsService)Approve¶
func (r *ProductsService) Approve(enterpriseIdstring, productIdstring, productsapproverequest *ProductsApproveRequest) *ProductsApproveCall
Approve: Approves the specified product and the relevant app permissions,if any. The maximum number of products that you can approve per enterprisecustomer is 1,000. To learn how to use managed Google Play to design andcreate a store layout to display approved products to your users, see StoreLayout Design. **Note:** This item has been deprecated. New integrationscannot use this method and can refer to our new recommendations.
- enterpriseId: The ID of the enterprise.- productId: The ID of the product.
func (*ProductsService)GenerateApprovalUrl¶
func (r *ProductsService) GenerateApprovalUrl(enterpriseIdstring, productIdstring) *ProductsGenerateApprovalUrlCall
GenerateApprovalUrl: Generates a URL that can be rendered in an iframe todisplay the permissions (if any) of a product. An enterprise admin must viewthese permissions and accept them on behalf of their organization in orderto approve that product. Admins should accept the displayed permissions byinteracting with a separate UI element in the EMM console, which in turnshould trigger the use of this URL as the approvalUrlInfo.approvalUrlproperty in a Products.approve call to approve the product. This URL canonly be used to display permissions for up to 1 day. **Note:** This item hasbeen deprecated. New integrations cannot use this method and can refer toour new recommendations.
- enterpriseId: The ID of the enterprise.- productId: The ID of the product.
func (*ProductsService)Get¶
func (r *ProductsService) Get(enterpriseIdstring, productIdstring) *ProductsGetCall
Get: Retrieves details of a product for display to an enterprise admin.
- enterpriseId: The ID of the enterprise.- productId: The ID of the product, e.g. "app:com.google.android.gm".
func (*ProductsService)GetAppRestrictionsSchema¶
func (r *ProductsService) GetAppRestrictionsSchema(enterpriseIdstring, productIdstring) *ProductsGetAppRestrictionsSchemaCall
GetAppRestrictionsSchema: Retrieves the schema that defines the configurableproperties for this product. All products have a schema, but this schema maybe empty if no managed configurations have been defined. This schema can beused to populate a UI that allows an admin to configure the product. Toapply a managed configuration based on the schema obtained using this API,see Managed Configurations through Play.
- enterpriseId: The ID of the enterprise.- productId: The ID of the product.
func (*ProductsService)GetPermissions¶
func (r *ProductsService) GetPermissions(enterpriseIdstring, productIdstring) *ProductsGetPermissionsCall
GetPermissions: Retrieves the Android app permissions required by this app.
- enterpriseId: The ID of the enterprise.- productId: The ID of the product.
func (*ProductsService)List¶
func (r *ProductsService) List(enterpriseIdstring) *ProductsListCall
List: Finds approved products that match a query, or all approved productsif there is no query. **Note:** This item has been deprecated. Newintegrations cannot use this method and can refer to our newrecommendations.
- enterpriseId: The ID of the enterprise.
func (*ProductsService)Unapprove¶
func (r *ProductsService) Unapprove(enterpriseIdstring, productIdstring) *ProductsUnapproveCall
Unapprove: Unapproves the specified product (and the relevant apppermissions, if any) **Note:** This item has been deprecated. Newintegrations cannot use this method and can refer to our newrecommendations.
- enterpriseId: The ID of the enterprise.- productId: The ID of the product.
typeProductsUnapproveCall¶
type ProductsUnapproveCall struct {// contains filtered or unexported fields}func (*ProductsUnapproveCall)Context¶
func (c *ProductsUnapproveCall) Context(ctxcontext.Context) *ProductsUnapproveCall
Context sets the context to be used in this call's Do method.
func (*ProductsUnapproveCall)Do¶
func (c *ProductsUnapproveCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.products.unapprove" call.
func (*ProductsUnapproveCall)Fields¶
func (c *ProductsUnapproveCall) Fields(s ...googleapi.Field) *ProductsUnapproveCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ProductsUnapproveCall)Header¶
func (c *ProductsUnapproveCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeService¶
type Service struct {BasePathstring// API endpoint base URLUserAgentstring// optional additional User-Agent fragmentDevices *DevicesServiceEnrollmentTokens *EnrollmentTokensServiceEnterprises *EnterprisesServiceEntitlements *EntitlementsServiceGrouplicenses *GrouplicensesServiceGrouplicenseusers *GrouplicenseusersServiceInstalls *InstallsServiceManagedconfigurationsfordevice *ManagedconfigurationsfordeviceServiceManagedconfigurationsforuser *ManagedconfigurationsforuserServiceManagedconfigurationssettings *ManagedconfigurationssettingsServicePermissions *PermissionsServiceProducts *ProductsServiceServiceaccountkeys *ServiceaccountkeysServiceStorelayoutclusters *StorelayoutclustersServiceStorelayoutpages *StorelayoutpagesServiceUsers *UsersServiceWebapps *WebappsService// contains filtered or unexported fields} funcNewdeprecated
New creates a new Service. It uses the provided http.Client for requests.
Deprecated: please use NewService instead.To provide a custom HTTP client, use option.WithHTTPClient.If you are using google.golang.org/api/googleapis/transport.APIKey, use option.WithAPIKey with NewService instead.
funcNewService¶added inv0.3.0
NewService creates a new Service.
typeServiceAccount¶
type ServiceAccount struct {// Key: Credentials that can be used to authenticate as this ServiceAccount.Key *ServiceAccountKey `json:"key,omitempty"`// Name: The account name of the service account, in the form of an email// address. Assigned by the server.Namestring `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Key") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Key") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ServiceAccount: A service account identity, including the name andcredentials that can be used to authenticate as the service account.
func (ServiceAccount)MarshalJSON¶
func (sServiceAccount) MarshalJSON() ([]byte,error)
typeServiceAccountKey¶
type ServiceAccountKey struct {// Data: The body of the private key credentials file, in string format. This// is only populated when the ServiceAccountKey is created, and is not stored// by Google.Datastring `json:"data,omitempty"`// Id: An opaque, unique identifier for this ServiceAccountKey. Assigned by the// server.Idstring `json:"id,omitempty"`// PublicData: Public key data for the credentials file. This is an X.509 cert.// If you are using the googleCredentials key type, this is identical to the// cert that can be retrieved by using the X.509 cert url inside of the// credentials file.PublicDatastring `json:"publicData,omitempty"`// Type: The file format of the generated key data.//// Possible values:// "googleCredentials" - Google Credentials File format.// "pkcs12" - PKCS12 format. The password for the PKCS12 file is// 'notasecret'. For more information, seehttps://tools.ietf.org/html/rfc7292.// The data for keys of this type are base64 encoded according toRFC 4648// Section 4. Seehttp://tools.ietf.org/html/rfc4648#section-4.Typestring `json:"type,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Data") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Data") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}ServiceAccountKey: *Deprecated:* New integrations cannot use this methodand can refer to our new recommendations
func (ServiceAccountKey)MarshalJSON¶
func (sServiceAccountKey) MarshalJSON() ([]byte,error)
typeServiceAccountKeysListResponse¶
type ServiceAccountKeysListResponse struct {// ServiceAccountKey: The service account credentials.ServiceAccountKey []*ServiceAccountKey `json:"serviceAccountKey,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "ServiceAccountKey") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ServiceAccountKey") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (ServiceAccountKeysListResponse)MarshalJSON¶
func (sServiceAccountKeysListResponse) MarshalJSON() ([]byte,error)
typeServiceaccountkeysDeleteCall¶
type ServiceaccountkeysDeleteCall struct {// contains filtered or unexported fields}func (*ServiceaccountkeysDeleteCall)Context¶
func (c *ServiceaccountkeysDeleteCall) Context(ctxcontext.Context) *ServiceaccountkeysDeleteCall
Context sets the context to be used in this call's Do method.
func (*ServiceaccountkeysDeleteCall)Do¶
func (c *ServiceaccountkeysDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.serviceaccountkeys.delete" call.
func (*ServiceaccountkeysDeleteCall)Fields¶
func (c *ServiceaccountkeysDeleteCall) Fields(s ...googleapi.Field) *ServiceaccountkeysDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ServiceaccountkeysDeleteCall)Header¶
func (c *ServiceaccountkeysDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeServiceaccountkeysInsertCall¶
type ServiceaccountkeysInsertCall struct {// contains filtered or unexported fields}func (*ServiceaccountkeysInsertCall)Context¶
func (c *ServiceaccountkeysInsertCall) Context(ctxcontext.Context) *ServiceaccountkeysInsertCall
Context sets the context to be used in this call's Do method.
func (*ServiceaccountkeysInsertCall)Do¶
func (c *ServiceaccountkeysInsertCall) Do(opts ...googleapi.CallOption) (*ServiceAccountKey,error)
Do executes the "androidenterprise.serviceaccountkeys.insert" call.Any non-2xx status code is an error. Response headers are in either*ServiceAccountKey.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*ServiceaccountkeysInsertCall)Fields¶
func (c *ServiceaccountkeysInsertCall) Fields(s ...googleapi.Field) *ServiceaccountkeysInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ServiceaccountkeysInsertCall)Header¶
func (c *ServiceaccountkeysInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeServiceaccountkeysListCall¶
type ServiceaccountkeysListCall struct {// contains filtered or unexported fields}func (*ServiceaccountkeysListCall)Context¶
func (c *ServiceaccountkeysListCall) Context(ctxcontext.Context) *ServiceaccountkeysListCall
Context sets the context to be used in this call's Do method.
func (*ServiceaccountkeysListCall)Do¶
func (c *ServiceaccountkeysListCall) Do(opts ...googleapi.CallOption) (*ServiceAccountKeysListResponse,error)
Do executes the "androidenterprise.serviceaccountkeys.list" call.Any non-2xx status code is an error. Response headers are in either*ServiceAccountKeysListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*ServiceaccountkeysListCall)Fields¶
func (c *ServiceaccountkeysListCall) Fields(s ...googleapi.Field) *ServiceaccountkeysListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*ServiceaccountkeysListCall)Header¶
func (c *ServiceaccountkeysListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*ServiceaccountkeysListCall)IfNoneMatch¶
func (c *ServiceaccountkeysListCall) IfNoneMatch(entityTagstring) *ServiceaccountkeysListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeServiceaccountkeysService¶
type ServiceaccountkeysService struct {// contains filtered or unexported fields}funcNewServiceaccountkeysService¶
func NewServiceaccountkeysService(s *Service) *ServiceaccountkeysService
func (*ServiceaccountkeysService)Delete¶
func (r *ServiceaccountkeysService) Delete(enterpriseIdstring, keyIdstring) *ServiceaccountkeysDeleteCall
Delete: Removes and invalidates the specified credentials for the serviceaccount associated with this enterprise. The calling service account musthave been retrieved by calling Enterprises.GetServiceAccount and must havebeen set as the enterprise service account by callingEnterprises.SetAccount.
- enterpriseId: The ID of the enterprise.- keyId: The ID of the key.
func (*ServiceaccountkeysService)Insert¶
func (r *ServiceaccountkeysService) Insert(enterpriseIdstring, serviceaccountkey *ServiceAccountKey) *ServiceaccountkeysInsertCall
Insert: Generates new credentials for the service account associated withthis enterprise. The calling service account must have been retrieved bycalling Enterprises.GetServiceAccount and must have been set as theenterprise service account by calling Enterprises.SetAccount. Only the typeof the key should be populated in the resource to be inserted.
- enterpriseId: The ID of the enterprise.
func (*ServiceaccountkeysService)List¶
func (r *ServiceaccountkeysService) List(enterpriseIdstring) *ServiceaccountkeysListCall
List: Lists all active credentials for the service account associated withthis enterprise. Only the ID and key type are returned. The calling serviceaccount must have been retrieved by calling Enterprises.GetServiceAccountand must have been set as the enterprise service account by callingEnterprises.SetAccount.
- enterpriseId: The ID of the enterprise.
typeSignupInfo¶
type SignupInfo struct {// CompletionToken: An opaque token that will be required, along with the// Enterprise Token, for obtaining the enterprise resource from CompleteSignup.CompletionTokenstring `json:"completionToken,omitempty"`// Kind: Deprecated.Kindstring `json:"kind,omitempty"`// Url: A URL under which the Admin can sign up for an enterprise. The page// pointed to cannot be rendered in an iframe.Urlstring `json:"url,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "CompletionToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "CompletionToken") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}SignupInfo: A resource returned by the GenerateSignupUrl API, which containsthe Signup URL and Completion Token.
func (SignupInfo)MarshalJSON¶
func (sSignupInfo) MarshalJSON() ([]byte,error)
typeStoreCluster¶
type StoreCluster struct {// Id: Unique ID of this cluster. Assigned by the server. Immutable once// assigned.Idstring `json:"id,omitempty"`// Name: Ordered list of localized strings giving the name of this page. The// text displayed is the one that best matches the user locale, or the first// entry if there is no good match. There needs to be at least one entry.Name []*LocalizedText `json:"name,omitempty"`// OrderInPage: String (US-ASCII only) used to determine order of this cluster// within the parent page's elements. Page elements are sorted in lexicographic// order of this field. Duplicated values are allowed, but ordering between// elements with duplicate order is undefined. The value of this field is never// visible to a user, it is used solely for the purpose of defining an// ordering. Maximum length is 256 characters.OrderInPagestring `json:"orderInPage,omitempty"`// ProductId: List of products in the order they are displayed in the cluster.// There should not be duplicates within a cluster.ProductId []string `json:"productId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}StoreCluster: Definition of a managed Google Play store cluster, a list ofproducts displayed as part of a store page.
func (StoreCluster)MarshalJSON¶
func (sStoreCluster) MarshalJSON() ([]byte,error)
typeStoreLayout¶
type StoreLayout struct {// HomepageId: The ID of the store page to be used as the homepage. The// homepage is the first page shown in the managed Google Play Store. Not// specifying a homepage is equivalent to setting the store layout type to// "basic".HomepageIdstring `json:"homepageId,omitempty"`// StoreLayoutType: The store layout type. By default, this value is set to// "basic" if the homepageId field is not set, and to "custom" otherwise. If// set to "basic", the layout will consist of all approved apps that have been// whitelisted for the user.//// Possible values:// "unknown"// "basic"// "custom"StoreLayoutTypestring `json:"storeLayoutType,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "HomepageId") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "HomepageId") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}StoreLayout: General setting for the managed Google Play store layout,currently only specifying the page to display the first time the store isopened.
func (StoreLayout)MarshalJSON¶
func (sStoreLayout) MarshalJSON() ([]byte,error)
typeStoreLayoutClustersListResponse¶
type StoreLayoutClustersListResponse struct {// Cluster: A store cluster of an enterprise.Cluster []*StoreCluster `json:"cluster,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Cluster") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Cluster") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (StoreLayoutClustersListResponse)MarshalJSON¶
func (sStoreLayoutClustersListResponse) MarshalJSON() ([]byte,error)
typeStoreLayoutPagesListResponse¶
type StoreLayoutPagesListResponse struct {// Page: A store page of an enterprise.Page []*StorePage `json:"page,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Page") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Page") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (StoreLayoutPagesListResponse)MarshalJSON¶
func (sStoreLayoutPagesListResponse) MarshalJSON() ([]byte,error)
typeStorePage¶
type StorePage struct {// Id: Unique ID of this page. Assigned by the server. Immutable once assigned.Idstring `json:"id,omitempty"`// Link: Ordered list of pages a user should be able to reach from this page.// The list can't include this page. It is recommended that the basic pages are// created first, before adding the links between pages. The API doesn't verify// that the pages exist or the pages are reachable.Link []string `json:"link,omitempty"`// Name: Ordered list of localized strings giving the name of this page. The// text displayed is the one that best matches the user locale, or the first// entry if there is no good match. There needs to be at least one entry.Name []*LocalizedText `json:"name,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "Id") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Id") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}StorePage: Definition of a managed Google Play store page, made of alocalized name and links to other pages. A page also contains clustersdefined as a subcollection.
func (StorePage)MarshalJSON¶
typeStorelayoutclustersDeleteCall¶
type StorelayoutclustersDeleteCall struct {// contains filtered or unexported fields}func (*StorelayoutclustersDeleteCall)Context¶
func (c *StorelayoutclustersDeleteCall) Context(ctxcontext.Context) *StorelayoutclustersDeleteCall
Context sets the context to be used in this call's Do method.
func (*StorelayoutclustersDeleteCall)Do¶
func (c *StorelayoutclustersDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.storelayoutclusters.delete" call.
func (*StorelayoutclustersDeleteCall)Fields¶
func (c *StorelayoutclustersDeleteCall) Fields(s ...googleapi.Field) *StorelayoutclustersDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*StorelayoutclustersDeleteCall)Header¶
func (c *StorelayoutclustersDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeStorelayoutclustersGetCall¶
type StorelayoutclustersGetCall struct {// contains filtered or unexported fields}func (*StorelayoutclustersGetCall)Context¶
func (c *StorelayoutclustersGetCall) Context(ctxcontext.Context) *StorelayoutclustersGetCall
Context sets the context to be used in this call's Do method.
func (*StorelayoutclustersGetCall)Do¶
func (c *StorelayoutclustersGetCall) Do(opts ...googleapi.CallOption) (*StoreCluster,error)
Do executes the "androidenterprise.storelayoutclusters.get" call.Any non-2xx status code is an error. Response headers are in either*StoreCluster.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*StorelayoutclustersGetCall)Fields¶
func (c *StorelayoutclustersGetCall) Fields(s ...googleapi.Field) *StorelayoutclustersGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*StorelayoutclustersGetCall)Header¶
func (c *StorelayoutclustersGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*StorelayoutclustersGetCall)IfNoneMatch¶
func (c *StorelayoutclustersGetCall) IfNoneMatch(entityTagstring) *StorelayoutclustersGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeStorelayoutclustersInsertCall¶
type StorelayoutclustersInsertCall struct {// contains filtered or unexported fields}func (*StorelayoutclustersInsertCall)Context¶
func (c *StorelayoutclustersInsertCall) Context(ctxcontext.Context) *StorelayoutclustersInsertCall
Context sets the context to be used in this call's Do method.
func (*StorelayoutclustersInsertCall)Do¶
func (c *StorelayoutclustersInsertCall) Do(opts ...googleapi.CallOption) (*StoreCluster,error)
Do executes the "androidenterprise.storelayoutclusters.insert" call.Any non-2xx status code is an error. Response headers are in either*StoreCluster.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*StorelayoutclustersInsertCall)Fields¶
func (c *StorelayoutclustersInsertCall) Fields(s ...googleapi.Field) *StorelayoutclustersInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*StorelayoutclustersInsertCall)Header¶
func (c *StorelayoutclustersInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeStorelayoutclustersListCall¶
type StorelayoutclustersListCall struct {// contains filtered or unexported fields}func (*StorelayoutclustersListCall)Context¶
func (c *StorelayoutclustersListCall) Context(ctxcontext.Context) *StorelayoutclustersListCall
Context sets the context to be used in this call's Do method.
func (*StorelayoutclustersListCall)Do¶
func (c *StorelayoutclustersListCall) Do(opts ...googleapi.CallOption) (*StoreLayoutClustersListResponse,error)
Do executes the "androidenterprise.storelayoutclusters.list" call.Any non-2xx status code is an error. Response headers are in either*StoreLayoutClustersListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*StorelayoutclustersListCall)Fields¶
func (c *StorelayoutclustersListCall) Fields(s ...googleapi.Field) *StorelayoutclustersListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*StorelayoutclustersListCall)Header¶
func (c *StorelayoutclustersListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*StorelayoutclustersListCall)IfNoneMatch¶
func (c *StorelayoutclustersListCall) IfNoneMatch(entityTagstring) *StorelayoutclustersListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeStorelayoutclustersService¶
type StorelayoutclustersService struct {// contains filtered or unexported fields}funcNewStorelayoutclustersService¶
func NewStorelayoutclustersService(s *Service) *StorelayoutclustersService
func (*StorelayoutclustersService)Delete¶
func (r *StorelayoutclustersService) Delete(enterpriseIdstring, pageIdstring, clusterIdstring) *StorelayoutclustersDeleteCall
Delete: Deletes a cluster.
- clusterId: The ID of the cluster.- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.
func (*StorelayoutclustersService)Get¶
func (r *StorelayoutclustersService) Get(enterpriseIdstring, pageIdstring, clusterIdstring) *StorelayoutclustersGetCall
Get: Retrieves details of a cluster.
- clusterId: The ID of the cluster.- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.
func (*StorelayoutclustersService)Insert¶
func (r *StorelayoutclustersService) Insert(enterpriseIdstring, pageIdstring, storecluster *StoreCluster) *StorelayoutclustersInsertCall
Insert: Inserts a new cluster in a page.
- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.
func (*StorelayoutclustersService)List¶
func (r *StorelayoutclustersService) List(enterpriseIdstring, pageIdstring) *StorelayoutclustersListCall
List: Retrieves the details of all clusters on the specified page.
- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.
func (*StorelayoutclustersService)Update¶
func (r *StorelayoutclustersService) Update(enterpriseIdstring, pageIdstring, clusterIdstring, storecluster *StoreCluster) *StorelayoutclustersUpdateCall
Update: Updates a cluster.
- clusterId: The ID of the cluster.- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.
typeStorelayoutclustersUpdateCall¶
type StorelayoutclustersUpdateCall struct {// contains filtered or unexported fields}func (*StorelayoutclustersUpdateCall)Context¶
func (c *StorelayoutclustersUpdateCall) Context(ctxcontext.Context) *StorelayoutclustersUpdateCall
Context sets the context to be used in this call's Do method.
func (*StorelayoutclustersUpdateCall)Do¶
func (c *StorelayoutclustersUpdateCall) Do(opts ...googleapi.CallOption) (*StoreCluster,error)
Do executes the "androidenterprise.storelayoutclusters.update" call.Any non-2xx status code is an error. Response headers are in either*StoreCluster.ServerResponse.Header or (if a response was returned at all)in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*StorelayoutclustersUpdateCall)Fields¶
func (c *StorelayoutclustersUpdateCall) Fields(s ...googleapi.Field) *StorelayoutclustersUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*StorelayoutclustersUpdateCall)Header¶
func (c *StorelayoutclustersUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeStorelayoutpagesDeleteCall¶
type StorelayoutpagesDeleteCall struct {// contains filtered or unexported fields}func (*StorelayoutpagesDeleteCall)Context¶
func (c *StorelayoutpagesDeleteCall) Context(ctxcontext.Context) *StorelayoutpagesDeleteCall
Context sets the context to be used in this call's Do method.
func (*StorelayoutpagesDeleteCall)Do¶
func (c *StorelayoutpagesDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.storelayoutpages.delete" call.
func (*StorelayoutpagesDeleteCall)Fields¶
func (c *StorelayoutpagesDeleteCall) Fields(s ...googleapi.Field) *StorelayoutpagesDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*StorelayoutpagesDeleteCall)Header¶
func (c *StorelayoutpagesDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeStorelayoutpagesGetCall¶
type StorelayoutpagesGetCall struct {// contains filtered or unexported fields}func (*StorelayoutpagesGetCall)Context¶
func (c *StorelayoutpagesGetCall) Context(ctxcontext.Context) *StorelayoutpagesGetCall
Context sets the context to be used in this call's Do method.
func (*StorelayoutpagesGetCall)Do¶
func (c *StorelayoutpagesGetCall) Do(opts ...googleapi.CallOption) (*StorePage,error)
Do executes the "androidenterprise.storelayoutpages.get" call.Any non-2xx status code is an error. Response headers are in either*StorePage.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*StorelayoutpagesGetCall)Fields¶
func (c *StorelayoutpagesGetCall) Fields(s ...googleapi.Field) *StorelayoutpagesGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*StorelayoutpagesGetCall)Header¶
func (c *StorelayoutpagesGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*StorelayoutpagesGetCall)IfNoneMatch¶
func (c *StorelayoutpagesGetCall) IfNoneMatch(entityTagstring) *StorelayoutpagesGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeStorelayoutpagesInsertCall¶
type StorelayoutpagesInsertCall struct {// contains filtered or unexported fields}func (*StorelayoutpagesInsertCall)Context¶
func (c *StorelayoutpagesInsertCall) Context(ctxcontext.Context) *StorelayoutpagesInsertCall
Context sets the context to be used in this call's Do method.
func (*StorelayoutpagesInsertCall)Do¶
func (c *StorelayoutpagesInsertCall) Do(opts ...googleapi.CallOption) (*StorePage,error)
Do executes the "androidenterprise.storelayoutpages.insert" call.Any non-2xx status code is an error. Response headers are in either*StorePage.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*StorelayoutpagesInsertCall)Fields¶
func (c *StorelayoutpagesInsertCall) Fields(s ...googleapi.Field) *StorelayoutpagesInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*StorelayoutpagesInsertCall)Header¶
func (c *StorelayoutpagesInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeStorelayoutpagesListCall¶
type StorelayoutpagesListCall struct {// contains filtered or unexported fields}func (*StorelayoutpagesListCall)Context¶
func (c *StorelayoutpagesListCall) Context(ctxcontext.Context) *StorelayoutpagesListCall
Context sets the context to be used in this call's Do method.
func (*StorelayoutpagesListCall)Do¶
func (c *StorelayoutpagesListCall) Do(opts ...googleapi.CallOption) (*StoreLayoutPagesListResponse,error)
Do executes the "androidenterprise.storelayoutpages.list" call.Any non-2xx status code is an error. Response headers are in either*StoreLayoutPagesListResponse.ServerResponse.Header or (if a response wasreturned at all) in error.(*googleapi.Error).Header. Usegoogleapi.IsNotModified to check whether the returned error was becausehttp.StatusNotModified was returned.
func (*StorelayoutpagesListCall)Fields¶
func (c *StorelayoutpagesListCall) Fields(s ...googleapi.Field) *StorelayoutpagesListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*StorelayoutpagesListCall)Header¶
func (c *StorelayoutpagesListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*StorelayoutpagesListCall)IfNoneMatch¶
func (c *StorelayoutpagesListCall) IfNoneMatch(entityTagstring) *StorelayoutpagesListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeStorelayoutpagesService¶
type StorelayoutpagesService struct {// contains filtered or unexported fields}funcNewStorelayoutpagesService¶
func NewStorelayoutpagesService(s *Service) *StorelayoutpagesService
func (*StorelayoutpagesService)Delete¶
func (r *StorelayoutpagesService) Delete(enterpriseIdstring, pageIdstring) *StorelayoutpagesDeleteCall
Delete: Deletes a store page.
- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.
func (*StorelayoutpagesService)Get¶
func (r *StorelayoutpagesService) Get(enterpriseIdstring, pageIdstring) *StorelayoutpagesGetCall
Get: Retrieves details of a store page.
- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.
func (*StorelayoutpagesService)Insert¶
func (r *StorelayoutpagesService) Insert(enterpriseIdstring, storepage *StorePage) *StorelayoutpagesInsertCall
Insert: Inserts a new store page.
- enterpriseId: The ID of the enterprise.
func (*StorelayoutpagesService)List¶
func (r *StorelayoutpagesService) List(enterpriseIdstring) *StorelayoutpagesListCall
List: Retrieves the details of all pages in the store.
- enterpriseId: The ID of the enterprise.
func (*StorelayoutpagesService)Update¶
func (r *StorelayoutpagesService) Update(enterpriseIdstring, pageIdstring, storepage *StorePage) *StorelayoutpagesUpdateCall
Update: Updates the content of a store page.
- enterpriseId: The ID of the enterprise.- pageId: The ID of the page.
typeStorelayoutpagesUpdateCall¶
type StorelayoutpagesUpdateCall struct {// contains filtered or unexported fields}func (*StorelayoutpagesUpdateCall)Context¶
func (c *StorelayoutpagesUpdateCall) Context(ctxcontext.Context) *StorelayoutpagesUpdateCall
Context sets the context to be used in this call's Do method.
func (*StorelayoutpagesUpdateCall)Do¶
func (c *StorelayoutpagesUpdateCall) Do(opts ...googleapi.CallOption) (*StorePage,error)
Do executes the "androidenterprise.storelayoutpages.update" call.Any non-2xx status code is an error. Response headers are in either*StorePage.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*StorelayoutpagesUpdateCall)Fields¶
func (c *StorelayoutpagesUpdateCall) Fields(s ...googleapi.Field) *StorelayoutpagesUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*StorelayoutpagesUpdateCall)Header¶
func (c *StorelayoutpagesUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeTokenPagination¶
type TokenPagination struct {// NextPageToken: Tokens to pass to the standard list field 'page_token'.// Whenever available, tokens are preferred over manipulating start_index.NextPageTokenstring `json:"nextPageToken,omitempty"`PreviousPageTokenstring `json:"previousPageToken,omitempty"`// ForceSendFields is a list of field names (e.g. "NextPageToken") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "NextPageToken") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}TokenPagination: Pagination information returned by a List operation whentoken pagination is enabled. List operations that supports paging returnonly one "page" of results. This protocol buffer message describes the pagethat has been returned. When using token pagination, clients should use thenext/previous token to get another page of the result. The presence orabsence of next/previous token indicates whether a next/previous page isavailable and provides a mean of accessing this page. ListRequest.page_tokenshould be set to either next_page_token or previous_page_token to accessanother page.
func (TokenPagination)MarshalJSON¶
func (sTokenPagination) MarshalJSON() ([]byte,error)
typeTrackInfo¶
type TrackInfo struct {// TrackAlias: A modifiable name for a track. This is the visible name in the// play developer console.TrackAliasstring `json:"trackAlias,omitempty"`// TrackId: Unmodifiable, unique track identifier. This identifier is the// releaseTrackId in the url of the play developer console page that displays// the track information.TrackIdstring `json:"trackId,omitempty"`// ForceSendFields is a list of field names (e.g. "TrackAlias") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "TrackAlias") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}TrackInfo: Id to name association of a track.
func (TrackInfo)MarshalJSON¶
typeUser¶
type User struct {// AccountIdentifier: A unique identifier you create for this user, such as// "user342" or "asset#44418". Do not use personally identifiable information// (PII) for this property. Must always be set for EMM-managed users. Not set// for Google-managed users.AccountIdentifierstring `json:"accountIdentifier,omitempty"`// AccountType: The type of account that this user represents. A userAccount// can be installed on multiple devices, but a deviceAccount is specific to a// single device. An EMM-managed user (emmManaged) can be either type// (userAccount, deviceAccount), but a Google-managed user (googleManaged) is// always a userAccount.//// Possible values:// "deviceAccount"// "userAccount"AccountTypestring `json:"accountType,omitempty"`// DisplayName: The name that will appear in user interfaces. Setting this// property is optional when creating EMM-managed users. If you do set this// property, use something generic about the organization (such as "Example,// Inc.") or your name (as EMM). Not used for Google-managed user accounts.// @mutable androidenterprise.users.updateDisplayNamestring `json:"displayName,omitempty"`// Id: The unique ID for the user.Idstring `json:"id,omitempty"`// ManagementType: The entity that manages the user. With googleManaged users,// the source of truth is Google so EMMs have to make sure a Google Account// exists for the user. With emmManaged users, the EMM is in charge.//// Possible values:// "googleManaged"// "emmManaged"ManagementTypestring `json:"managementType,omitempty"`// PrimaryEmail: The user's primary email address, for example,// "jsmith@example.com". Will always be set for Google managed users and not// set for EMM managed users.PrimaryEmailstring `json:"primaryEmail,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "AccountIdentifier") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "AccountIdentifier") to include in// API requests with the JSON null value. By default, fields with empty values// are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}User: A Users resource represents an account associated with an enterprise.The account may be specific to a device or to an individual user (who canthen use the account across multiple devices). The account may provideaccess to managed Google Play only, or to other Google services, dependingon the identity model: - The Google managed domain identity model requiressynchronization to Google account sources (via primaryEmail). - The managedGoogle Play Accounts identity model provides a dynamic means for enterprisesto create user or device accounts as needed. These accounts provide accessto managed Google Play.
func (User)MarshalJSON¶
typeUsersDeleteCall¶
type UsersDeleteCall struct {// contains filtered or unexported fields}func (*UsersDeleteCall)Context¶
func (c *UsersDeleteCall) Context(ctxcontext.Context) *UsersDeleteCall
Context sets the context to be used in this call's Do method.
func (*UsersDeleteCall)Do¶
func (c *UsersDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.users.delete" call.
func (*UsersDeleteCall)Fields¶
func (c *UsersDeleteCall) Fields(s ...googleapi.Field) *UsersDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*UsersDeleteCall)Header¶
func (c *UsersDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeUsersGenerateAuthenticationTokenCall¶
type UsersGenerateAuthenticationTokenCall struct {// contains filtered or unexported fields}func (*UsersGenerateAuthenticationTokenCall)Context¶
func (c *UsersGenerateAuthenticationTokenCall) Context(ctxcontext.Context) *UsersGenerateAuthenticationTokenCall
Context sets the context to be used in this call's Do method.
func (*UsersGenerateAuthenticationTokenCall)Do¶
func (c *UsersGenerateAuthenticationTokenCall) Do(opts ...googleapi.CallOption) (*AuthenticationToken,error)
Do executes the "androidenterprise.users.generateAuthenticationToken" call.Any non-2xx status code is an error. Response headers are in either*AuthenticationToken.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*UsersGenerateAuthenticationTokenCall)Fields¶
func (c *UsersGenerateAuthenticationTokenCall) Fields(s ...googleapi.Field) *UsersGenerateAuthenticationTokenCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*UsersGenerateAuthenticationTokenCall)Header¶
func (c *UsersGenerateAuthenticationTokenCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeUsersGetAvailableProductSetCall¶
type UsersGetAvailableProductSetCall struct {// contains filtered or unexported fields}func (*UsersGetAvailableProductSetCall)Context¶
func (c *UsersGetAvailableProductSetCall) Context(ctxcontext.Context) *UsersGetAvailableProductSetCall
Context sets the context to be used in this call's Do method.
func (*UsersGetAvailableProductSetCall)Do¶
func (c *UsersGetAvailableProductSetCall) Do(opts ...googleapi.CallOption) (*ProductSet,error)
Do executes the "androidenterprise.users.getAvailableProductSet" call.Any non-2xx status code is an error. Response headers are in either*ProductSet.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*UsersGetAvailableProductSetCall)Fields¶
func (c *UsersGetAvailableProductSetCall) Fields(s ...googleapi.Field) *UsersGetAvailableProductSetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*UsersGetAvailableProductSetCall)Header¶
func (c *UsersGetAvailableProductSetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*UsersGetAvailableProductSetCall)IfNoneMatch¶
func (c *UsersGetAvailableProductSetCall) IfNoneMatch(entityTagstring) *UsersGetAvailableProductSetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeUsersGetCall¶
type UsersGetCall struct {// contains filtered or unexported fields}func (*UsersGetCall)Context¶
func (c *UsersGetCall) Context(ctxcontext.Context) *UsersGetCall
Context sets the context to be used in this call's Do method.
func (*UsersGetCall)Do¶
func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User,error)
Do executes the "androidenterprise.users.get" call.Any non-2xx status code is an error. Response headers are in either*User.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*UsersGetCall)Fields¶
func (c *UsersGetCall) Fields(s ...googleapi.Field) *UsersGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*UsersGetCall)Header¶
func (c *UsersGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*UsersGetCall)IfNoneMatch¶
func (c *UsersGetCall) IfNoneMatch(entityTagstring) *UsersGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeUsersInsertCall¶
type UsersInsertCall struct {// contains filtered or unexported fields}func (*UsersInsertCall)Context¶
func (c *UsersInsertCall) Context(ctxcontext.Context) *UsersInsertCall
Context sets the context to be used in this call's Do method.
func (*UsersInsertCall)Do¶
func (c *UsersInsertCall) Do(opts ...googleapi.CallOption) (*User,error)
Do executes the "androidenterprise.users.insert" call.Any non-2xx status code is an error. Response headers are in either*User.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*UsersInsertCall)Fields¶
func (c *UsersInsertCall) Fields(s ...googleapi.Field) *UsersInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*UsersInsertCall)Header¶
func (c *UsersInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeUsersListCall¶
type UsersListCall struct {// contains filtered or unexported fields}func (*UsersListCall)Context¶
func (c *UsersListCall) Context(ctxcontext.Context) *UsersListCall
Context sets the context to be used in this call's Do method.
func (*UsersListCall)Do¶
func (c *UsersListCall) Do(opts ...googleapi.CallOption) (*UsersListResponse,error)
Do executes the "androidenterprise.users.list" call.Any non-2xx status code is an error. Response headers are in either*UsersListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*UsersListCall)Fields¶
func (c *UsersListCall) Fields(s ...googleapi.Field) *UsersListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*UsersListCall)Header¶
func (c *UsersListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*UsersListCall)IfNoneMatch¶
func (c *UsersListCall) IfNoneMatch(entityTagstring) *UsersListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeUsersListResponse¶
type UsersListResponse struct {// User: A user of an enterprise.User []*User `json:"user,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "User") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "User") to include in API requests// with the JSON null value. By default, fields with empty values are omitted// from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (UsersListResponse)MarshalJSON¶
func (sUsersListResponse) MarshalJSON() ([]byte,error)
typeUsersRevokeDeviceAccessCall¶
type UsersRevokeDeviceAccessCall struct {// contains filtered or unexported fields}func (*UsersRevokeDeviceAccessCall)Context¶
func (c *UsersRevokeDeviceAccessCall) Context(ctxcontext.Context) *UsersRevokeDeviceAccessCall
Context sets the context to be used in this call's Do method.
func (*UsersRevokeDeviceAccessCall)Do¶
func (c *UsersRevokeDeviceAccessCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.users.revokeDeviceAccess" call.
func (*UsersRevokeDeviceAccessCall)Fields¶
func (c *UsersRevokeDeviceAccessCall) Fields(s ...googleapi.Field) *UsersRevokeDeviceAccessCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*UsersRevokeDeviceAccessCall)Header¶
func (c *UsersRevokeDeviceAccessCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeUsersService¶
type UsersService struct {// contains filtered or unexported fields}funcNewUsersService¶
func NewUsersService(s *Service) *UsersService
func (*UsersService)Delete¶
func (r *UsersService) Delete(enterpriseIdstring, userIdstring) *UsersDeleteCall
Delete: Deleted an EMM-managed user.
- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*UsersService)GenerateAuthenticationToken¶
func (r *UsersService) GenerateAuthenticationToken(enterpriseIdstring, userIdstring) *UsersGenerateAuthenticationTokenCall
GenerateAuthenticationToken: Generates an authentication token which thedevice policy client can use to provision the given EMM-managed user accounton a device. The generated token is single-use and expires after a fewminutes. You can provision a maximum of 10 devices per user. This call onlyworks with EMM-managed accounts.
- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*UsersService)Get¶
func (r *UsersService) Get(enterpriseIdstring, userIdstring) *UsersGetCall
Get: Retrieves a user's details.
- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*UsersService)GetAvailableProductSet¶
func (r *UsersService) GetAvailableProductSet(enterpriseIdstring, userIdstring) *UsersGetAvailableProductSetCall
GetAvailableProductSet: Retrieves the set of products a user is entitled toaccess. **Note:** This item has been deprecated. New integrations cannot usethis method and can refer to our new recommendations.
- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*UsersService)Insert¶
func (r *UsersService) Insert(enterpriseIdstring, user *User) *UsersInsertCall
Insert: Creates a new EMM-managed user. The Users resource passed in thebody of the request should include an accountIdentifier and an accountType.If a corresponding user already exists with the same account identifier, theuser will be updated with the resource. In this case only the displayNamefield can be changed.
- enterpriseId: The ID of the enterprise.
func (*UsersService)List¶
func (r *UsersService) List(enterpriseIdstring, emailstring) *UsersListCall
List: Looks up a user by primary email address. This is only supported forGoogle-managed users. Lookup of the id is not needed for EMM-managed usersbecause the id is already returned in the result of the Users.insert call.
- email: The exact primary email address of the user to look up.- enterpriseId: The ID of the enterprise.
func (*UsersService)RevokeDeviceAccess¶
func (r *UsersService) RevokeDeviceAccess(enterpriseIdstring, userIdstring) *UsersRevokeDeviceAccessCall
RevokeDeviceAccess: Revokes access to all devices currently provisioned tothe user. The user will no longer be able to use the managed Play store onany of their managed devices. This call only works with EMM-managedaccounts.
- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*UsersService)SetAvailableProductSet¶
func (r *UsersService) SetAvailableProductSet(enterpriseIdstring, userIdstring, productset *ProductSet) *UsersSetAvailableProductSetCall
SetAvailableProductSet: Modifies the set of products that a user is entitledto access (referred to as *whitelisted* products). Only products that areapproved or products that were previously approved (products with revokedapproval) can be whitelisted. **Note:** This item has been deprecated. Newintegrations cannot use this method and can refer to our newrecommendations.
- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
func (*UsersService)Update¶
func (r *UsersService) Update(enterpriseIdstring, userIdstring, user *User) *UsersUpdateCall
Update: Updates the details of an EMM-managed user. Can be used withEMM-managed users only (not Google managed users). Pass the new details inthe Users resource in the request body. Only the displayName field can bechanged. Other fields must either be unset or have the currently activevalue.
- enterpriseId: The ID of the enterprise.- userId: The ID of the user.
typeUsersSetAvailableProductSetCall¶
type UsersSetAvailableProductSetCall struct {// contains filtered or unexported fields}func (*UsersSetAvailableProductSetCall)Context¶
func (c *UsersSetAvailableProductSetCall) Context(ctxcontext.Context) *UsersSetAvailableProductSetCall
Context sets the context to be used in this call's Do method.
func (*UsersSetAvailableProductSetCall)Do¶
func (c *UsersSetAvailableProductSetCall) Do(opts ...googleapi.CallOption) (*ProductSet,error)
Do executes the "androidenterprise.users.setAvailableProductSet" call.Any non-2xx status code is an error. Response headers are in either*ProductSet.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*UsersSetAvailableProductSetCall)Fields¶
func (c *UsersSetAvailableProductSetCall) Fields(s ...googleapi.Field) *UsersSetAvailableProductSetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*UsersSetAvailableProductSetCall)Header¶
func (c *UsersSetAvailableProductSetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeUsersUpdateCall¶
type UsersUpdateCall struct {// contains filtered or unexported fields}func (*UsersUpdateCall)Context¶
func (c *UsersUpdateCall) Context(ctxcontext.Context) *UsersUpdateCall
Context sets the context to be used in this call's Do method.
func (*UsersUpdateCall)Do¶
func (c *UsersUpdateCall) Do(opts ...googleapi.CallOption) (*User,error)
Do executes the "androidenterprise.users.update" call.Any non-2xx status code is an error. Response headers are in either*User.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*UsersUpdateCall)Fields¶
func (c *UsersUpdateCall) Fields(s ...googleapi.Field) *UsersUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*UsersUpdateCall)Header¶
func (c *UsersUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeVariableSet¶
type VariableSet struct {// Placeholder: The placeholder string; defined by EMM.Placeholderstring `json:"placeholder,omitempty"`// UserValue: The value of the placeholder, specific to the user.UserValuestring `json:"userValue,omitempty"`// ForceSendFields is a list of field names (e.g. "Placeholder") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "Placeholder") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}VariableSet: A variable set is a key-value pair of EMM-provided placeholdersand its corresponding value, which is attributed to a user. For example,$FIRSTNAME could be a placeholder, and its value could be Alice.Placeholders should start with a '$' sign and should be alphanumeric only.
func (VariableSet)MarshalJSON¶
func (sVariableSet) MarshalJSON() ([]byte,error)
typeWebApp¶
type WebApp struct {// DisplayMode: The display mode of the web app. Possible values include: -// "minimalUi", the device's status bar, navigation bar, the app's URL, and a// refresh button are visible when the app is open. For HTTP URLs, you can only// select this option. - "standalone", the device's status bar and navigation// bar are visible when the app is open. - "fullScreen", the app opens in full// screen mode, hiding the device's status and navigation bars. All browser UI// elements, page URL, system status bar and back button are not visible, and// the web app takes up the entirety of the available display area.//// Possible values:// "displayModeUnspecified"// "minimalUi" - Opens the web app with a minimal set of browser UI elements// for controlling navigation and viewing the page URL.// "standalone" - Opens the web app to look and feel like a standalone native// application. The browser UI elements and page URL are not visible, however// the system status bar and back button are visible.// "fullScreen" - Opens the web app in full screen without any visible// controls. The browser UI elements, page URL, system status bar and back// button are not visible, and the web app takes up the entirety of the// available display area.DisplayModestring `json:"displayMode,omitempty"`// Icons: A list of icons representing this website. If absent, a default icon// (for create) or the current icon (for update) will be used.Icons []*WebAppIcon `json:"icons,omitempty"`// IsPublished: A flag whether the app has been published to the Play store// yet.IsPublishedbool `json:"isPublished,omitempty"`// StartUrl: The start URL, i.e. the URL that should load when the user opens// the application.StartUrlstring `json:"startUrl,omitempty"`// Title: The title of the web app as displayed to the user (e.g., amongst a// list of other applications, or as a label for an icon).Titlestring `json:"title,omitempty"`// VersionCode: The current version of the app. Note that the version can// automatically increase during the lifetime of the web app, while Google does// internal housekeeping to keep the web app up-to-date.VersionCodeint64 `json:"versionCode,omitempty,string"`// WebAppId: The ID of the application. A string of the form "app:<package// name>" where the package name always starts with the prefix// "com.google.enterprise.webapp." followed by a random id.WebAppIdstring `json:"webAppId,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "DisplayMode") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "DisplayMode") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}WebApp: A WebApps resource represents a web app created for an enterprise.Web apps are published to managed Google Play and can be distributed likeother Android apps. On a user's device, a web app opens its specified URL.
func (WebApp)MarshalJSON¶
typeWebAppIcon¶
type WebAppIcon struct {// ImageData: The actual bytes of the image in a base64url encoded string (c.f.// RFC4648, section 5 "Base 64 Encoding with URL and Filename Safe Alphabet").// - The image type can be png or jpg. - The image should ideally be square. -// The image should ideally have a size of 512x512.ImageDatastring `json:"imageData,omitempty"`// ForceSendFields is a list of field names (e.g. "ImageData") to// unconditionally include in API requests. By default, fields with empty or// default values are omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "ImageData") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}WebAppIcon: Icon for a web app.
func (WebAppIcon)MarshalJSON¶
func (sWebAppIcon) MarshalJSON() ([]byte,error)
typeWebAppsListResponse¶
type WebAppsListResponse struct {// WebApp: The manifest describing a web app.WebApp []*WebApp `json:"webApp,omitempty"`// ServerResponse contains the HTTP response code and headers from the server.googleapi.ServerResponse `json:"-"`// ForceSendFields is a list of field names (e.g. "WebApp") to unconditionally// include in API requests. By default, fields with empty or default values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-ForceSendFields for more// details.ForceSendFields []string `json:"-"`// NullFields is a list of field names (e.g. "WebApp") to include in API// requests with the JSON null value. By default, fields with empty values are// omitted from API requests. See//https://pkg.go.dev/google.golang.org/api#hdr-NullFields for more details.NullFields []string `json:"-"`}func (WebAppsListResponse)MarshalJSON¶
func (sWebAppsListResponse) MarshalJSON() ([]byte,error)
typeWebappsDeleteCall¶
type WebappsDeleteCall struct {// contains filtered or unexported fields}func (*WebappsDeleteCall)Context¶
func (c *WebappsDeleteCall) Context(ctxcontext.Context) *WebappsDeleteCall
Context sets the context to be used in this call's Do method.
func (*WebappsDeleteCall)Do¶
func (c *WebappsDeleteCall) Do(opts ...googleapi.CallOption)error
Do executes the "androidenterprise.webapps.delete" call.
func (*WebappsDeleteCall)Fields¶
func (c *WebappsDeleteCall) Fields(s ...googleapi.Field) *WebappsDeleteCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*WebappsDeleteCall)Header¶
func (c *WebappsDeleteCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeWebappsGetCall¶
type WebappsGetCall struct {// contains filtered or unexported fields}func (*WebappsGetCall)Context¶
func (c *WebappsGetCall) Context(ctxcontext.Context) *WebappsGetCall
Context sets the context to be used in this call's Do method.
func (*WebappsGetCall)Do¶
func (c *WebappsGetCall) Do(opts ...googleapi.CallOption) (*WebApp,error)
Do executes the "androidenterprise.webapps.get" call.Any non-2xx status code is an error. Response headers are in either*WebApp.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*WebappsGetCall)Fields¶
func (c *WebappsGetCall) Fields(s ...googleapi.Field) *WebappsGetCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*WebappsGetCall)Header¶
func (c *WebappsGetCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*WebappsGetCall)IfNoneMatch¶
func (c *WebappsGetCall) IfNoneMatch(entityTagstring) *WebappsGetCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeWebappsInsertCall¶
type WebappsInsertCall struct {// contains filtered or unexported fields}func (*WebappsInsertCall)Context¶
func (c *WebappsInsertCall) Context(ctxcontext.Context) *WebappsInsertCall
Context sets the context to be used in this call's Do method.
func (*WebappsInsertCall)Do¶
func (c *WebappsInsertCall) Do(opts ...googleapi.CallOption) (*WebApp,error)
Do executes the "androidenterprise.webapps.insert" call.Any non-2xx status code is an error. Response headers are in either*WebApp.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*WebappsInsertCall)Fields¶
func (c *WebappsInsertCall) Fields(s ...googleapi.Field) *WebappsInsertCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*WebappsInsertCall)Header¶
func (c *WebappsInsertCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
typeWebappsListCall¶
type WebappsListCall struct {// contains filtered or unexported fields}func (*WebappsListCall)Context¶
func (c *WebappsListCall) Context(ctxcontext.Context) *WebappsListCall
Context sets the context to be used in this call's Do method.
func (*WebappsListCall)Do¶
func (c *WebappsListCall) Do(opts ...googleapi.CallOption) (*WebAppsListResponse,error)
Do executes the "androidenterprise.webapps.list" call.Any non-2xx status code is an error. Response headers are in either*WebAppsListResponse.ServerResponse.Header or (if a response was returned atall) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified tocheck whether the returned error was because http.StatusNotModified wasreturned.
func (*WebappsListCall)Fields¶
func (c *WebappsListCall) Fields(s ...googleapi.Field) *WebappsListCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*WebappsListCall)Header¶
func (c *WebappsListCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.
func (*WebappsListCall)IfNoneMatch¶
func (c *WebappsListCall) IfNoneMatch(entityTagstring) *WebappsListCall
IfNoneMatch sets an optional parameter which makes the operation fail if theobject's ETag matches the given value. This is useful for getting updatesonly after the object has changed since the last request.
typeWebappsService¶
type WebappsService struct {// contains filtered or unexported fields}funcNewWebappsService¶
func NewWebappsService(s *Service) *WebappsService
func (*WebappsService)Delete¶
func (r *WebappsService) Delete(enterpriseIdstring, webAppIdstring) *WebappsDeleteCall
Delete: Deletes an existing web app.
- enterpriseId: The ID of the enterprise.- webAppId: The ID of the web app.
func (*WebappsService)Get¶
func (r *WebappsService) Get(enterpriseIdstring, webAppIdstring) *WebappsGetCall
Get: Gets an existing web app.
- enterpriseId: The ID of the enterprise.- webAppId: The ID of the web app.
func (*WebappsService)Insert¶
func (r *WebappsService) Insert(enterpriseIdstring, webapp *WebApp) *WebappsInsertCall
Insert: Creates a new web app for the enterprise.
- enterpriseId: The ID of the enterprise.
func (*WebappsService)List¶
func (r *WebappsService) List(enterpriseIdstring) *WebappsListCall
List: Retrieves the details of all web apps for a given enterprise.
- enterpriseId: The ID of the enterprise.
func (*WebappsService)Update¶
func (r *WebappsService) Update(enterpriseIdstring, webAppIdstring, webapp *WebApp) *WebappsUpdateCall
Update: Updates an existing web app.
- enterpriseId: The ID of the enterprise.- webAppId: The ID of the web app.
typeWebappsUpdateCall¶
type WebappsUpdateCall struct {// contains filtered or unexported fields}func (*WebappsUpdateCall)Context¶
func (c *WebappsUpdateCall) Context(ctxcontext.Context) *WebappsUpdateCall
Context sets the context to be used in this call's Do method.
func (*WebappsUpdateCall)Do¶
func (c *WebappsUpdateCall) Do(opts ...googleapi.CallOption) (*WebApp,error)
Do executes the "androidenterprise.webapps.update" call.Any non-2xx status code is an error. Response headers are in either*WebApp.ServerResponse.Header or (if a response was returned at all) inerror.(*googleapi.Error).Header. Use googleapi.IsNotModified to checkwhether the returned error was because http.StatusNotModified was returned.
func (*WebappsUpdateCall)Fields¶
func (c *WebappsUpdateCall) Fields(s ...googleapi.Field) *WebappsUpdateCall
Fields allows partial responses to be retrieved. Seehttps://developers.google.com/gdata/docs/2.0/basics#PartialResponse for moredetails.
func (*WebappsUpdateCall)Header¶
func (c *WebappsUpdateCall) Header()http.Header
Header returns a http.Header that can be modified by the caller to addheaders to the request.