Documentation ¶
Overview ¶
Package androidenterprise provides access to the Google Play EMM API.
See https://developers.google.com/android/work/play/emm-api
Usage example:
import "google.golang.org/api/androidenterprise/v1" ... androidenterpriseService, err := androidenterprise.New(oauthHttpClient)
Index ¶
- Constants
- type Administrator
- type AppRestrictionsSchema
- type AppRestrictionsSchemaChangeEvent
- type AppRestrictionsSchemaRestriction
- type AppRestrictionsSchemaRestrictionRestrictionValue
- type AppUpdateEvent
- type AppVersion
- type ApprovalUrlInfo
- type AuthenticationToken
- type Collection
- type CollectionViewersListResponse
- type CollectionsDeleteCall
- type CollectionsGetCall
- func (c *CollectionsGetCall) Context(ctx context.Context) *CollectionsGetCall
- func (c *CollectionsGetCall) Do(opts ...googleapi.CallOption) (*Collection, error)
- func (c *CollectionsGetCall) Fields(s ...googleapi.Field) *CollectionsGetCall
- func (c *CollectionsGetCall) IfNoneMatch(entityTag string) *CollectionsGetCall
- type CollectionsInsertCall
- type CollectionsListCall
- func (c *CollectionsListCall) Context(ctx context.Context) *CollectionsListCall
- func (c *CollectionsListCall) Do(opts ...googleapi.CallOption) (*CollectionsListResponse, error)
- func (c *CollectionsListCall) Fields(s ...googleapi.Field) *CollectionsListCall
- func (c *CollectionsListCall) IfNoneMatch(entityTag string) *CollectionsListCall
- type CollectionsListResponse
- type CollectionsPatchCall
- type CollectionsService
- func (r *CollectionsService) Delete(enterpriseId string, collectionId string) *CollectionsDeleteCall
- func (r *CollectionsService) Get(enterpriseId string, collectionId string) *CollectionsGetCall
- func (r *CollectionsService) Insert(enterpriseId string, collection *Collection) *CollectionsInsertCall
- func (r *CollectionsService) List(enterpriseId string) *CollectionsListCall
- func (r *CollectionsService) Patch(enterpriseId string, collectionId string, collection *Collection) *CollectionsPatchCall
- func (r *CollectionsService) Update(enterpriseId string, collectionId string, collection *Collection) *CollectionsUpdateCall
- type CollectionsUpdateCall
- type CollectionviewersDeleteCall
- type CollectionviewersGetCall
- func (c *CollectionviewersGetCall) Context(ctx context.Context) *CollectionviewersGetCall
- func (c *CollectionviewersGetCall) Do(opts ...googleapi.CallOption) (*User, error)
- func (c *CollectionviewersGetCall) Fields(s ...googleapi.Field) *CollectionviewersGetCall
- func (c *CollectionviewersGetCall) IfNoneMatch(entityTag string) *CollectionviewersGetCall
- type CollectionviewersListCall
- func (c *CollectionviewersListCall) Context(ctx context.Context) *CollectionviewersListCall
- func (c *CollectionviewersListCall) Do(opts ...googleapi.CallOption) (*CollectionViewersListResponse, error)
- func (c *CollectionviewersListCall) Fields(s ...googleapi.Field) *CollectionviewersListCall
- func (c *CollectionviewersListCall) IfNoneMatch(entityTag string) *CollectionviewersListCall
- type CollectionviewersPatchCall
- type CollectionviewersService
- func (r *CollectionviewersService) Delete(enterpriseId string, collectionId string, userId string) *CollectionviewersDeleteCall
- func (r *CollectionviewersService) Get(enterpriseId string, collectionId string, userId string) *CollectionviewersGetCall
- func (r *CollectionviewersService) List(enterpriseId string, collectionId string) *CollectionviewersListCall
- func (r *CollectionviewersService) Patch(enterpriseId string, collectionId string, userId string, user *User) *CollectionviewersPatchCall
- func (r *CollectionviewersService) Update(enterpriseId string, collectionId string, userId string, user *User) *CollectionviewersUpdateCall
- type CollectionviewersUpdateCall
- type Device
- type DeviceState
- type 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) 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) IfNoneMatch(entityTag string) *DevicesListCall
- type DevicesListResponse
- type DevicesService
- 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
- type DevicesSetStateCall
- type Enterprise
- type EnterpriseAccount
- 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) 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
- type EnterprisesDeleteCall
- type EnterprisesEnrollCall
- type 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
- 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) 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) 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) IfNoneMatch(entityTag string) *EnterprisesGetStoreLayoutCall
- type EnterprisesInsertCall
- 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) 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) 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
- type EnterprisesSendTestPushNotificationResponse
- type EnterprisesService
- func (r *EnterprisesService) AcknowledgeNotificationSet() *EnterprisesAcknowledgeNotificationSetCall
- func (r *EnterprisesService) CompleteSignup() *EnterprisesCompleteSignupCall
- func (r *EnterprisesService) Delete(enterpriseId string) *EnterprisesDeleteCall
- func (r *EnterprisesService) Enroll(token string, enterprise *Enterprise) *EnterprisesEnrollCall
- 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) Insert(token string, enterprise *Enterprise) *EnterprisesInsertCall
- 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
- type EnterprisesSetStoreLayoutCall
- type EnterprisesUnenrollCall
- 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) 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) IfNoneMatch(entityTag string) *EntitlementsListCall
- type EntitlementsListResponse
- type EntitlementsPatchCall
- func (c *EntitlementsPatchCall) Context(ctx context.Context) *EntitlementsPatchCall
- func (c *EntitlementsPatchCall) Do(opts ...googleapi.CallOption) (*Entitlement, error)
- func (c *EntitlementsPatchCall) Fields(s ...googleapi.Field) *EntitlementsPatchCall
- func (c *EntitlementsPatchCall) Install(install bool) *EntitlementsPatchCall
- 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) Patch(enterpriseId string, userId string, entitlementId string, ...) *EntitlementsPatchCall
- 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) Install(install bool) *EntitlementsUpdateCall
- 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) 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) 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) IfNoneMatch(entityTag string) *GrouplicenseusersListCall
- type GrouplicenseusersService
- type Install
- type InstallFailureEvent
- type InstallsDeleteCall
- type 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) IfNoneMatch(entityTag string) *InstallsListCall
- type InstallsListResponse
- type InstallsPatchCall
- 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) Patch(enterpriseId string, userId string, deviceId string, installId string, ...) *InstallsPatchCall
- func (r *InstallsService) Update(enterpriseId string, userId string, deviceId string, installId string, ...) *InstallsUpdateCall
- type InstallsUpdateCall
- type LocalizedText
- type ManagedConfiguration
- type ManagedConfigurationsForDeviceListResponse
- type ManagedConfigurationsForUserListResponse
- 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
- 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) 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) IfNoneMatch(entityTag string) *ManagedconfigurationsfordeviceListCall
- type ManagedconfigurationsfordevicePatchCall
- func (c *ManagedconfigurationsfordevicePatchCall) Context(ctx context.Context) *ManagedconfigurationsfordevicePatchCall
- func (c *ManagedconfigurationsfordevicePatchCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration, error)
- func (c *ManagedconfigurationsfordevicePatchCall) Fields(s ...googleapi.Field) *ManagedconfigurationsfordevicePatchCall
- 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) Patch(enterpriseId string, userId string, deviceId string, ...) *ManagedconfigurationsfordevicePatchCall
- 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
- 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
- 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) 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) IfNoneMatch(entityTag string) *ManagedconfigurationsforuserListCall
- type ManagedconfigurationsforuserPatchCall
- func (c *ManagedconfigurationsforuserPatchCall) Context(ctx context.Context) *ManagedconfigurationsforuserPatchCall
- func (c *ManagedconfigurationsforuserPatchCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration, error)
- func (c *ManagedconfigurationsforuserPatchCall) Fields(s ...googleapi.Field) *ManagedconfigurationsforuserPatchCall
- 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) Patch(enterpriseId string, userId string, managedConfigurationForUserId string, ...) *ManagedconfigurationsforuserPatchCall
- 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
- 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) IfNoneMatch(entityTag string) *PermissionsGetCall
- func (c *PermissionsGetCall) Language(language string) *PermissionsGetCall
- type PermissionsService
- type Product
- type ProductApprovalEvent
- type ProductAvailabilityChangeEvent
- type ProductPermission
- type ProductPermissions
- type ProductSet
- 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) 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) 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) 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) 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) 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
- func (r *ProductsService) UpdatePermissions(enterpriseId string, productId string, productpermissions *ProductPermissions) *ProductsUpdatePermissionsCall
- type ProductsUnapproveCall
- type ProductsUpdatePermissionsCall
- func (c *ProductsUpdatePermissionsCall) Context(ctx context.Context) *ProductsUpdatePermissionsCall
- func (c *ProductsUpdatePermissionsCall) Do(opts ...googleapi.CallOption) (*ProductPermissions, error)
- func (c *ProductsUpdatePermissionsCall) Fields(s ...googleapi.Field) *ProductsUpdatePermissionsCall
- type Service
- type ServiceAccount
- type ServiceAccountKey
- type ServiceAccountKeysListResponse
- type ServiceaccountkeysDeleteCall
- type ServiceaccountkeysInsertCall
- 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) 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
- 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) IfNoneMatch(entityTag string) *StorelayoutclustersGetCall
- type StorelayoutclustersInsertCall
- 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) IfNoneMatch(entityTag string) *StorelayoutclustersListCall
- type StorelayoutclustersPatchCall
- 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) Patch(enterpriseId string, pageId string, clusterId string, ...) *StorelayoutclustersPatchCall
- func (r *StorelayoutclustersService) Update(enterpriseId string, pageId string, clusterId string, ...) *StorelayoutclustersUpdateCall
- type StorelayoutclustersUpdateCall
- type StorelayoutpagesDeleteCall
- 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) IfNoneMatch(entityTag string) *StorelayoutpagesGetCall
- type StorelayoutpagesInsertCall
- 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) IfNoneMatch(entityTag string) *StorelayoutpagesListCall
- type StorelayoutpagesPatchCall
- 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) Patch(enterpriseId string, pageId string, storepage *StorePage) *StorelayoutpagesPatchCall
- func (r *StorelayoutpagesService) Update(enterpriseId string, pageId string, storepage *StorePage) *StorelayoutpagesUpdateCall
- type StorelayoutpagesUpdateCall
- type TokenPagination
- type User
- type UserToken
- 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
- type UsersGenerateTokenCall
- 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) IfNoneMatch(entityTag string) *UsersGetAvailableProductSetCall
- type UsersGetCall
- type UsersInsertCall
- type UsersListCall
- type UsersListResponse
- type UsersPatchCall
- type UsersRevokeTokenCall
- type UsersService
- func (r *UsersService) Delete(enterpriseId string, userId string) *UsersDeleteCall
- func (r *UsersService) GenerateAuthenticationToken(enterpriseId string, userId string) *UsersGenerateAuthenticationTokenCall
- func (r *UsersService) GenerateToken(enterpriseId string, userId string) *UsersGenerateTokenCall
- 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) Patch(enterpriseId string, userId string, user *User) *UsersPatchCall
- func (r *UsersService) RevokeToken(enterpriseId string, userId string) *UsersRevokeTokenCall
- 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
- type UsersUpdateCall
Constants ¶
const (
// Manage corporate Android devices
AndroidenterpriseScope = "https://www.googleapis.com/auth/androidenterprise"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Administrator ¶
type Administrator struct { // Email: The administrator's email address. Email string `json:"email,omitempty"` // ForceSendFields is a list of field names (e.g. "Email") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Email") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Administrator: This represents an enterprise administrator who can manage the enterprise in the Google Play for Work Store.
func (*Administrator) MarshalJSON ¶
func (s *Administrator) MarshalJSON() ([]byte, error)
type AppRestrictionsSchema ¶
type AppRestrictionsSchema struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#appRestrictionsSchema". Kind string `json:"kind,omitempty"` // Restrictions: The set of restrictions that make up this schema. Restrictions []*AppRestrictionsSchemaRestriction `json:"restrictions,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AppRestrictionsSchema: Represents the list of app restrictions available to be pre-configured for the product.
func (*AppRestrictionsSchema) MarshalJSON ¶
func (s *AppRestrictionsSchema) MarshalJSON() ([]byte, error)
type AppRestrictionsSchemaChangeEvent ¶
type AppRestrictionsSchemaChangeEvent struct { // ProductId: The id of the product (e.g. "app:com.google.android.gm") // for which the app restriction schema changed. This field will always // be present. ProductId string `json:"productId,omitempty"` // ForceSendFields is a list of field names (e.g. "ProductId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ProductId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AppRestrictionsSchemaChangeEvent: An event generated when a new app version is uploaded to Google Play and its app restrictions schema changed. To fetch the app restrictions schema for an app, use Products.getAppRestrictionsSchema on the EMM API.
func (*AppRestrictionsSchemaChangeEvent) MarshalJSON ¶
func (s *AppRestrictionsSchemaChangeEvent) MarshalJSON() ([]byte, error)
type AppRestrictionsSchemaRestriction ¶
type AppRestrictionsSchemaRestriction struct { // DefaultValue: The default value of the restriction. bundle and // bundleArray restrictions never have a default value. DefaultValue *AppRestrictionsSchemaRestrictionRestrictionValue `json:"defaultValue,omitempty"` // Description: A longer description of the restriction, giving more // detail of what it affects. Description string `json:"description,omitempty"` // Entry: For choice or multiselect restrictions, the list of possible // entries' human-readable names. Entry []string `json:"entry,omitempty"` // EntryValue: For choice or multiselect restrictions, the list of // possible entries' machine-readable values. These values should be // used in the configuration, either as a single string value for a // choice restriction or in a stringArray for a multiselect restriction. EntryValue []string `json:"entryValue,omitempty"` // Key: The unique key that the product uses to identify the // restriction, e.g. "com.google.android.gm.fieldname". Key string `json:"key,omitempty"` // NestedRestriction: For bundle or bundleArray restrictions, the list // of nested restrictions. A bundle restriction is always nested within // a bundleArray restriction, and a bundleArray restriction is at most // two levels deep. NestedRestriction []*AppRestrictionsSchemaRestriction `json:"nestedRestriction,omitempty"` // RestrictionType: The type of the restriction. RestrictionType string `json:"restrictionType,omitempty"` // Title: The name of the restriction. Title string `json:"title,omitempty"` // ForceSendFields is a list of field names (e.g. "DefaultValue") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DefaultValue") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AppRestrictionsSchemaRestriction: A restriction in the App Restriction Schema represents a piece of configuration that may be pre-applied.
func (*AppRestrictionsSchemaRestriction) MarshalJSON ¶
func (s *AppRestrictionsSchemaRestriction) MarshalJSON() ([]byte, error)
type AppRestrictionsSchemaRestrictionRestrictionValue ¶
type AppRestrictionsSchemaRestrictionRestrictionValue struct { // Type: The type of the value being provided. Type string `json:"type,omitempty"` // ValueBool: The boolean value - this will only be present if type is // bool. ValueBool bool `json:"valueBool,omitempty"` // ValueInteger: The integer value - this will only be present if type // is integer. ValueInteger int64 `json:"valueInteger,omitempty"` // ValueMultiselect: The list of string values - this will only be // present if type is multiselect. ValueMultiselect []string `json:"valueMultiselect,omitempty"` // ValueString: The string value - this will be present for types // string, choice and hidden. ValueString string `json:"valueString,omitempty"` // ForceSendFields is a list of field names (e.g. "Type") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Type") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AppRestrictionsSchemaRestrictionRestrictionValue: A typed value for the restriction.
func (*AppRestrictionsSchemaRestrictionRestrictionValue) MarshalJSON ¶
func (s *AppRestrictionsSchemaRestrictionRestrictionValue) MarshalJSON() ([]byte, error)
type AppUpdateEvent ¶
type AppUpdateEvent struct { // ProductId: The id of the product (e.g. "app:com.google.android.gm") // that was updated. This field will always be present. ProductId string `json:"productId,omitempty"` // ForceSendFields is a list of field names (e.g. "ProductId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ProductId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AppUpdateEvent: An event generated when a new version of an app is uploaded to Google Play. Notifications are sent for new public versions only: alpha, beta, or canary versions do not generate this event. To fetch up-to-date version history for an app, use Products.Get on the EMM API.
func (*AppUpdateEvent) MarshalJSON ¶
func (s *AppUpdateEvent) MarshalJSON() ([]byte, error)
type AppVersion ¶
type AppVersion struct { // VersionCode: Unique increasing identifier for the app version. VersionCode int64 `json:"versionCode,omitempty"` // VersionString: The string used in the Play Store by the app developer // to identify the version. The string is not necessarily unique or // localized (for example, the string could be "1.4"). VersionString string `json:"versionString,omitempty"` // ForceSendFields is a list of field names (e.g. "VersionCode") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "VersionCode") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AppVersion: This represents a single version of the app.
func (*AppVersion) MarshalJSON ¶
func (s *AppVersion) MarshalJSON() ([]byte, error)
type ApprovalUrlInfo ¶
type ApprovalUrlInfo struct { // ApprovalUrl: A URL that displays a product's permissions and that can // also be used to approve the product with the Products.approve call. ApprovalUrl string `json:"approvalUrl,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#approvalUrlInfo". Kind string `json:"kind,omitempty"` // ForceSendFields is a list of field names (e.g. "ApprovalUrl") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApprovalUrl") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ApprovalUrlInfo: Information on an approval URL.
func (*ApprovalUrlInfo) MarshalJSON ¶
func (s *ApprovalUrlInfo) MarshalJSON() ([]byte, error)
type AuthenticationToken ¶
type AuthenticationToken struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#authenticationToken". Kind string `json:"kind,omitempty"` // Token: The authentication token to be passed to the device policy // client on the device where it can be used to provision the account // for which this token was generated. Token string `json:"token,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
AuthenticationToken: An AuthenticationToken is used by the EMM's device policy client on a device to provision the given EMM-managed user on that device.
func (*AuthenticationToken) MarshalJSON ¶
func (s *AuthenticationToken) MarshalJSON() ([]byte, error)
type Collection ¶
type Collection struct { // CollectionId: Arbitrary unique ID, allocated by the API on creation. CollectionId string `json:"collectionId,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#collection". Kind string `json:"kind,omitempty"` // Name: A user-friendly name for the collection (should be unique), // e.g. "Accounting apps". Name string `json:"name,omitempty"` // ProductId: The IDs of the products in the collection, in the order in // which they should be displayed. ProductId []string `json:"productId,omitempty"` // Visibility: Whether this collection is visible to all users, or only // to the users that have been granted access through the // "Collectionviewers" API. With the launch of the // "setAvailableProductSet" API, this property should always be set to // "viewersOnly", as the "allUsers" option will bypass the // "availableProductSet" for all users within a domain. // // The "allUsers" setting is deprecated, and will be removed. Visibility string `json:"visibility,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CollectionId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CollectionId") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Collection: A collection resource defines a named set of apps that is visible to a set of users in the Google Play Store app running on those users' managed devices. Those users can then install any of those apps if they wish (which will trigger creation of install and entitlement resources). A user cannot install an app on a managed device unless the app is listed in at least one collection that is visible to that user.
Note that the API can be used to directly install an app regardless of whether it is in any collection - so an enterprise has a choice of either directly pushing apps to users, or allowing users to install apps if they want. Which is appropriate will depend on the enterprise's policies and the purpose of the apps concerned.
func (*Collection) MarshalJSON ¶
func (s *Collection) MarshalJSON() ([]byte, error)
type CollectionViewersListResponse ¶
type CollectionViewersListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#collectionViewersListResponse". Kind string `json:"kind,omitempty"` // User: A user of an enterprise. User []*User `json:"user,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CollectionViewersListResponse: The user resources for the collection.
func (*CollectionViewersListResponse) MarshalJSON ¶
func (s *CollectionViewersListResponse) MarshalJSON() ([]byte, error)
type CollectionsDeleteCall ¶
type CollectionsDeleteCall struct {
// contains filtered or unexported fields
}
func (*CollectionsDeleteCall) Context ¶
func (c *CollectionsDeleteCall) Context(ctx context.Context) *CollectionsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CollectionsDeleteCall) Do ¶
func (c *CollectionsDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "androidenterprise.collections.delete" call.
func (*CollectionsDeleteCall) Fields ¶
func (c *CollectionsDeleteCall) Fields(s ...googleapi.Field) *CollectionsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type CollectionsGetCall ¶
type CollectionsGetCall struct {
// contains filtered or unexported fields
}
func (*CollectionsGetCall) Context ¶
func (c *CollectionsGetCall) Context(ctx context.Context) *CollectionsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CollectionsGetCall) Do ¶
func (c *CollectionsGetCall) Do(opts ...googleapi.CallOption) (*Collection, error)
Do executes the "androidenterprise.collections.get" call. Exactly one of *Collection or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Collection.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CollectionsGetCall) Fields ¶
func (c *CollectionsGetCall) Fields(s ...googleapi.Field) *CollectionsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CollectionsGetCall) IfNoneMatch ¶
func (c *CollectionsGetCall) IfNoneMatch(entityTag string) *CollectionsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type CollectionsInsertCall ¶
type CollectionsInsertCall struct {
// contains filtered or unexported fields
}
func (*CollectionsInsertCall) Context ¶
func (c *CollectionsInsertCall) Context(ctx context.Context) *CollectionsInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CollectionsInsertCall) Do ¶
func (c *CollectionsInsertCall) Do(opts ...googleapi.CallOption) (*Collection, error)
Do executes the "androidenterprise.collections.insert" call. Exactly one of *Collection or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Collection.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CollectionsInsertCall) Fields ¶
func (c *CollectionsInsertCall) Fields(s ...googleapi.Field) *CollectionsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type CollectionsListCall ¶
type CollectionsListCall struct {
// contains filtered or unexported fields
}
func (*CollectionsListCall) Context ¶
func (c *CollectionsListCall) Context(ctx context.Context) *CollectionsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CollectionsListCall) Do ¶
func (c *CollectionsListCall) Do(opts ...googleapi.CallOption) (*CollectionsListResponse, error)
Do executes the "androidenterprise.collections.list" call. Exactly one of *CollectionsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CollectionsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CollectionsListCall) Fields ¶
func (c *CollectionsListCall) Fields(s ...googleapi.Field) *CollectionsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CollectionsListCall) IfNoneMatch ¶
func (c *CollectionsListCall) IfNoneMatch(entityTag string) *CollectionsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type CollectionsListResponse ¶
type CollectionsListResponse struct { // Collection: An ordered collection of products which can be made // visible on the Google Play Store to a selected group of users. Collection []*Collection `json:"collection,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#collectionsListResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Collection") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Collection") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
CollectionsListResponse: The collection resources for the enterprise.
func (*CollectionsListResponse) MarshalJSON ¶
func (s *CollectionsListResponse) MarshalJSON() ([]byte, error)
type CollectionsPatchCall ¶
type CollectionsPatchCall struct {
// contains filtered or unexported fields
}
func (*CollectionsPatchCall) Context ¶
func (c *CollectionsPatchCall) Context(ctx context.Context) *CollectionsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CollectionsPatchCall) Do ¶
func (c *CollectionsPatchCall) Do(opts ...googleapi.CallOption) (*Collection, error)
Do executes the "androidenterprise.collections.patch" call. Exactly one of *Collection or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Collection.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CollectionsPatchCall) Fields ¶
func (c *CollectionsPatchCall) Fields(s ...googleapi.Field) *CollectionsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type CollectionsService ¶
type CollectionsService struct {
// contains filtered or unexported fields
}
func NewCollectionsService ¶
func NewCollectionsService(s *Service) *CollectionsService
func (*CollectionsService) Delete ¶
func (r *CollectionsService) Delete(enterpriseId string, collectionId string) *CollectionsDeleteCall
Delete: Deletes a collection.
func (*CollectionsService) Get ¶
func (r *CollectionsService) Get(enterpriseId string, collectionId string) *CollectionsGetCall
Get: Retrieves the details of a collection.
func (*CollectionsService) Insert ¶
func (r *CollectionsService) Insert(enterpriseId string, collection *Collection) *CollectionsInsertCall
Insert: Creates a new collection.
func (*CollectionsService) List ¶
func (r *CollectionsService) List(enterpriseId string) *CollectionsListCall
List: Retrieves the IDs of all the collections for an enterprise.
func (*CollectionsService) Patch ¶
func (r *CollectionsService) Patch(enterpriseId string, collectionId string, collection *Collection) *CollectionsPatchCall
Patch: Updates a collection. This method supports patch semantics.
func (*CollectionsService) Update ¶
func (r *CollectionsService) Update(enterpriseId string, collectionId string, collection *Collection) *CollectionsUpdateCall
Update: Updates a collection.
type CollectionsUpdateCall ¶
type CollectionsUpdateCall struct {
// contains filtered or unexported fields
}
func (*CollectionsUpdateCall) Context ¶
func (c *CollectionsUpdateCall) Context(ctx context.Context) *CollectionsUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CollectionsUpdateCall) Do ¶
func (c *CollectionsUpdateCall) Do(opts ...googleapi.CallOption) (*Collection, error)
Do executes the "androidenterprise.collections.update" call. Exactly one of *Collection or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Collection.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CollectionsUpdateCall) Fields ¶
func (c *CollectionsUpdateCall) Fields(s ...googleapi.Field) *CollectionsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type CollectionviewersDeleteCall ¶
type CollectionviewersDeleteCall struct {
// contains filtered or unexported fields
}
func (*CollectionviewersDeleteCall) Context ¶
func (c *CollectionviewersDeleteCall) Context(ctx context.Context) *CollectionviewersDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CollectionviewersDeleteCall) Do ¶
func (c *CollectionviewersDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "androidenterprise.collectionviewers.delete" call.
func (*CollectionviewersDeleteCall) Fields ¶
func (c *CollectionviewersDeleteCall) Fields(s ...googleapi.Field) *CollectionviewersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type CollectionviewersGetCall ¶
type CollectionviewersGetCall struct {
// contains filtered or unexported fields
}
func (*CollectionviewersGetCall) Context ¶
func (c *CollectionviewersGetCall) Context(ctx context.Context) *CollectionviewersGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CollectionviewersGetCall) Do ¶
func (c *CollectionviewersGetCall) Do(opts ...googleapi.CallOption) (*User, error)
Do executes the "androidenterprise.collectionviewers.get" call. Exactly one of *User or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *User.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CollectionviewersGetCall) Fields ¶
func (c *CollectionviewersGetCall) Fields(s ...googleapi.Field) *CollectionviewersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CollectionviewersGetCall) IfNoneMatch ¶
func (c *CollectionviewersGetCall) IfNoneMatch(entityTag string) *CollectionviewersGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type CollectionviewersListCall ¶
type CollectionviewersListCall struct {
// contains filtered or unexported fields
}
func (*CollectionviewersListCall) Context ¶
func (c *CollectionviewersListCall) Context(ctx context.Context) *CollectionviewersListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CollectionviewersListCall) Do ¶
func (c *CollectionviewersListCall) Do(opts ...googleapi.CallOption) (*CollectionViewersListResponse, error)
Do executes the "androidenterprise.collectionviewers.list" call. Exactly one of *CollectionViewersListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CollectionViewersListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CollectionviewersListCall) Fields ¶
func (c *CollectionviewersListCall) Fields(s ...googleapi.Field) *CollectionviewersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*CollectionviewersListCall) IfNoneMatch ¶
func (c *CollectionviewersListCall) IfNoneMatch(entityTag string) *CollectionviewersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type CollectionviewersPatchCall ¶
type CollectionviewersPatchCall struct {
// contains filtered or unexported fields
}
func (*CollectionviewersPatchCall) Context ¶
func (c *CollectionviewersPatchCall) Context(ctx context.Context) *CollectionviewersPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CollectionviewersPatchCall) Do ¶
func (c *CollectionviewersPatchCall) Do(opts ...googleapi.CallOption) (*User, error)
Do executes the "androidenterprise.collectionviewers.patch" call. Exactly one of *User or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *User.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CollectionviewersPatchCall) Fields ¶
func (c *CollectionviewersPatchCall) Fields(s ...googleapi.Field) *CollectionviewersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type CollectionviewersService ¶
type CollectionviewersService struct {
// contains filtered or unexported fields
}
func NewCollectionviewersService ¶
func NewCollectionviewersService(s *Service) *CollectionviewersService
func (*CollectionviewersService) Delete ¶
func (r *CollectionviewersService) Delete(enterpriseId string, collectionId string, userId string) *CollectionviewersDeleteCall
Delete: Removes the user from the list of those specifically allowed to see the collection. If the collection's visibility is set to viewersOnly then only such users will see the collection.
func (*CollectionviewersService) Get ¶
func (r *CollectionviewersService) Get(enterpriseId string, collectionId string, userId string) *CollectionviewersGetCall
Get: Retrieves the ID of the user if they have been specifically allowed to see the collection. If the collection's visibility is set to viewersOnly then only these users will see the collection.
func (*CollectionviewersService) List ¶
func (r *CollectionviewersService) List(enterpriseId string, collectionId string) *CollectionviewersListCall
List: Retrieves the IDs of the users who have been specifically allowed to see the collection. If the collection's visibility is set to viewersOnly then only these users will see the collection.
func (*CollectionviewersService) Patch ¶
func (r *CollectionviewersService) Patch(enterpriseId string, collectionId string, userId string, user *User) *CollectionviewersPatchCall
Patch: Adds the user to the list of those specifically allowed to see the collection. If the collection's visibility is set to viewersOnly then only such users will see the collection. This method supports patch semantics.
func (*CollectionviewersService) Update ¶
func (r *CollectionviewersService) Update(enterpriseId string, collectionId string, userId string, user *User) *CollectionviewersUpdateCall
Update: Adds the user to the list of those specifically allowed to see the collection. If the collection's visibility is set to viewersOnly then only such users will see the collection.
type CollectionviewersUpdateCall ¶
type CollectionviewersUpdateCall struct {
// contains filtered or unexported fields
}
func (*CollectionviewersUpdateCall) Context ¶
func (c *CollectionviewersUpdateCall) Context(ctx context.Context) *CollectionviewersUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*CollectionviewersUpdateCall) Do ¶
func (c *CollectionviewersUpdateCall) Do(opts ...googleapi.CallOption) (*User, error)
Do executes the "androidenterprise.collectionviewers.update" call. Exactly one of *User or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *User.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*CollectionviewersUpdateCall) Fields ¶
func (c *CollectionviewersUpdateCall) Fields(s ...googleapi.Field) *CollectionviewersUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type Device ¶
type Device struct { // AndroidId: The Google Play Services Android ID for the device encoded // as a lowercase hex string, e.g. "123456789abcdef0". AndroidId string `json:"androidId,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#device". Kind string `json:"kind,omitempty"` // ManagementType: Identifies the extent to which the device is // controlled by an Android for Work 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 work profile managed by the // DPC (DPC is profile owner) in addition to a separate, personal // profile that is unavailable to the DPC, // - "containerApp", a device running the Android for Work App. The // Android for Work App is managed by the DPC, // - "unmanagedProfile", a device that has been allowed (by the domain's // admin, using the Admin Console to enable the privilege) to use // Android for Work apps or Google Apps for Work, but the profile is // itself not owned by a DPC. ManagementType string `json:"managementType,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AndroidId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AndroidId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Device: A device resource represents a mobile device managed by the EMM and belonging to a specific enterprise user.
This collection cannot be modified via the API; it is automatically populated as devices are set up to be managed.
func (*Device) MarshalJSON ¶
type DeviceState ¶
type DeviceState struct { // AccountState: The state of the Google account on the device. // "enabled" indicates that the Google account on the device can be used // to access Google services (including Google Play), while "disabled" // means that it cannot. A new device is initially in the "disabled" // state. AccountState string `json:"accountState,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#deviceState". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccountState") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountState") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DeviceState: The state of a user's device, as accessed by the getState and setState methods on device resources.
func (*DeviceState) MarshalJSON ¶
func (s *DeviceState) MarshalJSON() ([]byte, error)
type DevicesGetCall ¶
type DevicesGetCall struct {
// contains filtered or unexported fields
}
func (*DevicesGetCall) Context ¶
func (c *DevicesGetCall) Context(ctx context.Context) *DevicesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DevicesGetCall) Do ¶
func (c *DevicesGetCall) Do(opts ...googleapi.CallOption) (*Device, error)
Do executes the "androidenterprise.devices.get" call. Exactly one of *Device or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Device.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*DevicesGetCall) IfNoneMatch ¶
func (c *DevicesGetCall) IfNoneMatch(entityTag string) *DevicesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type DevicesGetStateCall ¶
type DevicesGetStateCall struct {
// contains filtered or unexported fields
}
func (*DevicesGetStateCall) Context ¶
func (c *DevicesGetStateCall) Context(ctx context.Context) *DevicesGetStateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DevicesGetStateCall) Do ¶
func (c *DevicesGetStateCall) Do(opts ...googleapi.CallOption) (*DeviceState, error)
Do executes the "androidenterprise.devices.getState" call. Exactly one of *DeviceState or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DeviceState.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*DevicesGetStateCall) IfNoneMatch ¶
func (c *DevicesGetStateCall) IfNoneMatch(entityTag string) *DevicesGetStateCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type DevicesListCall ¶
type DevicesListCall struct {
// contains filtered or unexported fields
}
func (*DevicesListCall) Context ¶
func (c *DevicesListCall) Context(ctx context.Context) *DevicesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DevicesListCall) Do ¶
func (c *DevicesListCall) Do(opts ...googleapi.CallOption) (*DevicesListResponse, error)
Do executes the "androidenterprise.devices.list" call. Exactly one of *DevicesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DevicesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*DevicesListCall) Fields ¶
func (c *DevicesListCall) Fields(s ...googleapi.Field) *DevicesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*DevicesListCall) IfNoneMatch ¶
func (c *DevicesListCall) IfNoneMatch(entityTag string) *DevicesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type DevicesListResponse ¶
type DevicesListResponse struct { // Device: A managed device. Device []*Device `json:"device,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#devicesListResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Device") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Device") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
DevicesListResponse: The device resources for the user.
func (*DevicesListResponse) MarshalJSON ¶
func (s *DevicesListResponse) MarshalJSON() ([]byte, error)
type DevicesService ¶
type DevicesService struct {
// contains filtered or unexported fields
}
func NewDevicesService ¶
func NewDevicesService(s *Service) *DevicesService
func (*DevicesService) Get ¶
func (r *DevicesService) Get(enterpriseId string, userId string, deviceId string) *DevicesGetCall
Get: Retrieves the details of a device.
func (*DevicesService) GetState ¶
func (r *DevicesService) GetState(enterpriseId string, userId string, deviceId string) *DevicesGetStateCall
GetState: Retrieves whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.
func (*DevicesService) List ¶
func (r *DevicesService) List(enterpriseId string, userId string) *DevicesListCall
List: Retrieves the IDs of all of a user's devices.
func (*DevicesService) SetState ¶
func (r *DevicesService) SetState(enterpriseId string, userId string, deviceId string, devicestate *DeviceState) *DevicesSetStateCall
SetState: Sets whether a device's access to Google services is enabled or disabled. The device state takes effect only if enforcing EMM policies on Android devices is enabled in the Google Admin Console. Otherwise, the device state is ignored and all devices are allowed access to Google services. This is only supported for Google-managed users.
type DevicesSetStateCall ¶
type DevicesSetStateCall struct {
// contains filtered or unexported fields
}
func (*DevicesSetStateCall) Context ¶
func (c *DevicesSetStateCall) Context(ctx context.Context) *DevicesSetStateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*DevicesSetStateCall) Do ¶
func (c *DevicesSetStateCall) Do(opts ...googleapi.CallOption) (*DeviceState, error)
Do executes the "androidenterprise.devices.setState" call. Exactly one of *DeviceState or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DeviceState.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type Enterprise ¶
type Enterprise struct { // Administrator: Administrators of the enterprise. This is only // supported for enterprises created via the EMM-initiated flow. Administrator []*Administrator `json:"administrator,omitempty"` // Id: The unique ID for the enterprise. Id string `json:"id,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#enterprise". Kind string `json:"kind,omitempty"` // Name: The name of the enterprise, for example, "Example, Inc". Name string `json:"name,omitempty"` // PrimaryDomain: The enterprise's primary domain, such as // "example.com". PrimaryDomain string `json:"primaryDomain,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Administrator") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Administrator") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Enterprise: An Enterprises resource represents the binding between an EMM and a specific organization. That binding can be instantiated in one of two different ways using this API as follows: - For Google managed domain customers, the process involves using Enterprises.enroll and Enterprises.setAccount (in conjunction with artifacts obtained from the Admin console and the Google API Console) and submitted to the EMM through a more-or-less manual process. - For Android for Work Accounts customers, the process involves using Enterprises.generateSignupUrl and Enterprises.completeSignup in conjunction with the Android for Work Sign-up UI (Google-provided mechanism) to create the binding without manual steps. As an EMM, you can support either or both approaches in your EMM console. See Create an Enterprise for details.
func (*Enterprise) MarshalJSON ¶
func (s *Enterprise) MarshalJSON() ([]byte, error)
type EnterpriseAccount ¶
type EnterpriseAccount struct { // AccountEmail: The email address of the service account. AccountEmail string `json:"accountEmail,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#enterpriseAccount". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccountEmail") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountEmail") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
EnterpriseAccount: A service account that can be used to authenticate as the enterprise to API calls that require such authentication.
func (*EnterpriseAccount) MarshalJSON ¶
func (s *EnterpriseAccount) MarshalJSON() ([]byte, error)
type EnterprisesAcknowledgeNotificationSetCall ¶
type EnterprisesAcknowledgeNotificationSetCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesAcknowledgeNotificationSetCall) Context ¶
func (c *EnterprisesAcknowledgeNotificationSetCall) Context(ctx context.Context) *EnterprisesAcknowledgeNotificationSetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EnterprisesAcknowledgeNotificationSetCall) NotificationSetId ¶
func (c *EnterprisesAcknowledgeNotificationSetCall) NotificationSetId(notificationSetId string) *EnterprisesAcknowledgeNotificationSetCall
NotificationSetId sets the optional parameter "notificationSetId": The notification set ID as returned by Enterprises.PullNotificationSet. This must be provided.
type EnterprisesCompleteSignupCall ¶
type EnterprisesCompleteSignupCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesCompleteSignupCall) CompletionToken ¶
func (c *EnterprisesCompleteSignupCall) CompletionToken(completionToken string) *EnterprisesCompleteSignupCall
CompletionToken sets the optional parameter "completionToken": The Completion token initially returned by GenerateSignupUrl.
func (*EnterprisesCompleteSignupCall) Context ¶
func (c *EnterprisesCompleteSignupCall) Context(ctx context.Context) *EnterprisesCompleteSignupCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EnterprisesCompleteSignupCall) Do ¶
func (c *EnterprisesCompleteSignupCall) Do(opts ...googleapi.CallOption) (*Enterprise, error)
Do executes the "androidenterprise.enterprises.completeSignup" call. Exactly one of *Enterprise or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Enterprise.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*EnterprisesCompleteSignupCall) EnterpriseToken ¶
func (c *EnterprisesCompleteSignupCall) EnterpriseToken(enterpriseToken string) *EnterprisesCompleteSignupCall
EnterpriseToken sets the optional parameter "enterpriseToken": The Enterprise token appended to the Callback URL.
func (*EnterprisesCompleteSignupCall) Fields ¶
func (c *EnterprisesCompleteSignupCall) Fields(s ...googleapi.Field) *EnterprisesCompleteSignupCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type EnterprisesDeleteCall ¶
type EnterprisesDeleteCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesDeleteCall) Context ¶
func (c *EnterprisesDeleteCall) Context(ctx context.Context) *EnterprisesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EnterprisesDeleteCall) Do ¶
func (c *EnterprisesDeleteCall) Do(opts ...googleapi.CallOption) error
Do executes the "androidenterprise.enterprises.delete" call.
func (*EnterprisesDeleteCall) Fields ¶
func (c *EnterprisesDeleteCall) Fields(s ...googleapi.Field) *EnterprisesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type EnterprisesEnrollCall ¶
type EnterprisesEnrollCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesEnrollCall) Context ¶
func (c *EnterprisesEnrollCall) Context(ctx context.Context) *EnterprisesEnrollCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EnterprisesEnrollCall) Do ¶
func (c *EnterprisesEnrollCall) Do(opts ...googleapi.CallOption) (*Enterprise, error)
Do executes the "androidenterprise.enterprises.enroll" call. Exactly one of *Enterprise or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Enterprise.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type EnterprisesGenerateSignupUrlCall ¶
type EnterprisesGenerateSignupUrlCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesGenerateSignupUrlCall) CallbackUrl ¶
func (c *EnterprisesGenerateSignupUrlCall) CallbackUrl(callbackUrl string) *EnterprisesGenerateSignupUrlCall
CallbackUrl sets the optional parameter "callbackUrl": The callback URL to which the Admin will be redirected after successfully creating an enterprise. Before redirecting there the system will add a single query parameter to this URL named "enterpriseToken" which will contain an opaque token to be used for the CompleteSignup request. Beware that this means that the 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, the URL must be well-formed so that it can be parsed.
func (*EnterprisesGenerateSignupUrlCall) Context ¶
func (c *EnterprisesGenerateSignupUrlCall) Context(ctx context.Context) *EnterprisesGenerateSignupUrlCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EnterprisesGenerateSignupUrlCall) Do ¶
func (c *EnterprisesGenerateSignupUrlCall) Do(opts ...googleapi.CallOption) (*SignupInfo, error)
Do executes the "androidenterprise.enterprises.generateSignupUrl" call. Exactly one of *SignupInfo or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *SignupInfo.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type EnterprisesGetCall ¶
type EnterprisesGetCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesGetCall) Context ¶
func (c *EnterprisesGetCall) Context(ctx context.Context) *EnterprisesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EnterprisesGetCall) Do ¶
func (c *EnterprisesGetCall) Do(opts ...googleapi.CallOption) (*Enterprise, error)
Do executes the "androidenterprise.enterprises.get" call. Exactly one of *Enterprise or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Enterprise.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EnterprisesGetCall) IfNoneMatch ¶
func (c *EnterprisesGetCall) IfNoneMatch(entityTag string) *EnterprisesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type EnterprisesGetServiceAccountCall ¶
type EnterprisesGetServiceAccountCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesGetServiceAccountCall) Context ¶
func (c *EnterprisesGetServiceAccountCall) Context(ctx context.Context) *EnterprisesGetServiceAccountCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EnterprisesGetServiceAccountCall) Do ¶
func (c *EnterprisesGetServiceAccountCall) Do(opts ...googleapi.CallOption) (*ServiceAccount, error)
Do executes the "androidenterprise.enterprises.getServiceAccount" call. Exactly one of *ServiceAccount or error will be non-nil. 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 check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EnterprisesGetServiceAccountCall) IfNoneMatch ¶
func (c *EnterprisesGetServiceAccountCall) IfNoneMatch(entityTag string) *EnterprisesGetServiceAccountCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*EnterprisesGetServiceAccountCall) KeyType ¶
func (c *EnterprisesGetServiceAccountCall) KeyType(keyType string) *EnterprisesGetServiceAccountCall
KeyType sets the optional parameter "keyType": The type of credential to return with the service account. Required.
Possible values:
"googleCredentials" "pkcs12"
type EnterprisesGetStoreLayoutCall ¶
type EnterprisesGetStoreLayoutCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesGetStoreLayoutCall) Context ¶
func (c *EnterprisesGetStoreLayoutCall) Context(ctx context.Context) *EnterprisesGetStoreLayoutCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EnterprisesGetStoreLayoutCall) Do ¶
func (c *EnterprisesGetStoreLayoutCall) Do(opts ...googleapi.CallOption) (*StoreLayout, error)
Do executes the "androidenterprise.enterprises.getStoreLayout" call. Exactly one of *StoreLayout or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *StoreLayout.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EnterprisesGetStoreLayoutCall) IfNoneMatch ¶
func (c *EnterprisesGetStoreLayoutCall) IfNoneMatch(entityTag string) *EnterprisesGetStoreLayoutCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type EnterprisesInsertCall ¶
type EnterprisesInsertCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesInsertCall) Context ¶
func (c *EnterprisesInsertCall) Context(ctx context.Context) *EnterprisesInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EnterprisesInsertCall) Do ¶
func (c *EnterprisesInsertCall) Do(opts ...googleapi.CallOption) (*Enterprise, error)
Do executes the "androidenterprise.enterprises.insert" call. Exactly one of *Enterprise or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Enterprise.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*EnterprisesInsertCall) Fields ¶
func (c *EnterprisesInsertCall) Fields(s ...googleapi.Field) *EnterprisesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type EnterprisesListCall ¶
type EnterprisesListCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesListCall) Context ¶
func (c *EnterprisesListCall) Context(ctx context.Context) *EnterprisesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EnterprisesListCall) Do ¶
func (c *EnterprisesListCall) Do(opts ...googleapi.CallOption) (*EnterprisesListResponse, error)
Do executes the "androidenterprise.enterprises.list" call. Exactly one of *EnterprisesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EnterprisesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*EnterprisesListCall) Fields ¶
func (c *EnterprisesListCall) Fields(s ...googleapi.Field) *EnterprisesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EnterprisesListCall) IfNoneMatch ¶
func (c *EnterprisesListCall) IfNoneMatch(entityTag string) *EnterprisesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type EnterprisesListResponse ¶
type EnterprisesListResponse struct { // Enterprise: An enterprise. Enterprise []*Enterprise `json:"enterprise,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#enterprisesListResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Enterprise") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Enterprise") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
EnterprisesListResponse: The matching enterprise resources.
func (*EnterprisesListResponse) MarshalJSON ¶
func (s *EnterprisesListResponse) MarshalJSON() ([]byte, error)
type EnterprisesPullNotificationSetCall ¶
type EnterprisesPullNotificationSetCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesPullNotificationSetCall) Context ¶
func (c *EnterprisesPullNotificationSetCall) Context(ctx context.Context) *EnterprisesPullNotificationSetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EnterprisesPullNotificationSetCall) Do ¶
func (c *EnterprisesPullNotificationSetCall) Do(opts ...googleapi.CallOption) (*NotificationSet, error)
Do executes the "androidenterprise.enterprises.pullNotificationSet" call. Exactly one of *NotificationSet or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *NotificationSet.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*EnterprisesPullNotificationSetCall) Fields ¶
func (c *EnterprisesPullNotificationSetCall) Fields(s ...googleapi.Field) *EnterprisesPullNotificationSetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EnterprisesPullNotificationSetCall) RequestMode ¶
func (c *EnterprisesPullNotificationSetCall) RequestMode(requestMode string) *EnterprisesPullNotificationSetCall
RequestMode sets the optional parameter "requestMode": The request mode for pulling notifications. Specifying waitForNotifications will cause the request to block and wait until one or more notifications are present, or return an empty notification list if no notifications are present after some time. Speciying returnImmediately will cause the request to immediately return the pending notifications, or an empty list if no notifications are present. If omitted, defaults to waitForNotifications.
Possible values:
"returnImmediately" "waitForNotifications"
type EnterprisesSendTestPushNotificationCall ¶
type EnterprisesSendTestPushNotificationCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesSendTestPushNotificationCall) Context ¶
func (c *EnterprisesSendTestPushNotificationCall) Context(ctx context.Context) *EnterprisesSendTestPushNotificationCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EnterprisesSendTestPushNotificationCall) Do ¶
func (c *EnterprisesSendTestPushNotificationCall) Do(opts ...googleapi.CallOption) (*EnterprisesSendTestPushNotificationResponse, error)
Do executes the "androidenterprise.enterprises.sendTestPushNotification" call. Exactly one of *EnterprisesSendTestPushNotificationResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EnterprisesSendTestPushNotificationResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*EnterprisesSendTestPushNotificationCall) Fields ¶
func (c *EnterprisesSendTestPushNotificationCall) Fields(s ...googleapi.Field) *EnterprisesSendTestPushNotificationCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type EnterprisesSendTestPushNotificationResponse ¶
type EnterprisesSendTestPushNotificationResponse struct { // MessageId: The message ID of the test push notification that was // sent. MessageId string `json:"messageId,omitempty"` // TopicName: The name of the Cloud Pub/Sub topic to which notifications // for this enterprise's enrolled account will be sent. TopicName string `json:"topicName,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "MessageId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "MessageId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*EnterprisesSendTestPushNotificationResponse) MarshalJSON ¶
func (s *EnterprisesSendTestPushNotificationResponse) MarshalJSON() ([]byte, error)
type EnterprisesService ¶
type EnterprisesService struct {
// contains filtered or unexported fields
}
func NewEnterprisesService ¶
func NewEnterprisesService(s *Service) *EnterprisesService
func (*EnterprisesService) AcknowledgeNotificationSet ¶
func (r *EnterprisesService) AcknowledgeNotificationSet() *EnterprisesAcknowledgeNotificationSetCall
AcknowledgeNotificationSet: Acknowledges notifications that were received from Enterprises.PullNotificationSet to prevent subsequent calls from returning the same notifications.
func (*EnterprisesService) CompleteSignup ¶
func (r *EnterprisesService) CompleteSignup() *EnterprisesCompleteSignupCall
CompleteSignup: Completes the signup flow, by specifying the Completion token and Enterprise token. This request must not be called multiple times for a given Enterprise Token.
func (*EnterprisesService) Delete ¶
func (r *EnterprisesService) Delete(enterpriseId string) *EnterprisesDeleteCall
Delete: Deletes the binding between the EMM and enterprise. This is now deprecated; use this to unenroll customers that were previously enrolled with the 'insert' call, then enroll them again with the 'enroll' call.
func (*EnterprisesService) Enroll ¶
func (r *EnterprisesService) Enroll(token string, enterprise *Enterprise) *EnterprisesEnrollCall
Enroll: Enrolls an enterprise with the calling EMM.
func (*EnterprisesService) GenerateSignupUrl ¶
func (r *EnterprisesService) GenerateSignupUrl() *EnterprisesGenerateSignupUrlCall
GenerateSignupUrl: Generates a sign-up URL.
func (*EnterprisesService) Get ¶
func (r *EnterprisesService) Get(enterpriseId string) *EnterprisesGetCall
Get: Retrieves the name and domain of an enterprise.
func (*EnterprisesService) GetServiceAccount ¶
func (r *EnterprisesService) GetServiceAccount(enterpriseId string) *EnterprisesGetServiceAccountCall
GetServiceAccount: Returns a service account and credentials. The service account can be bound to the enterprise by calling setAccount. The service account is unique to this enterprise and EMM, and will be deleted if the enterprise is unbound. The credentials contain private key data and are not stored server-side.
This method can only be called after calling Enterprises.Enroll or Enterprises.CompleteSignup, and before Enterprises.SetAccount; at other times it will return an error.
Subsequent calls after the first will generate a new, unique set of credentials, and invalidate the previously generated credentials.
Once the service account is bound to the enterprise, it can be managed using the serviceAccountKeys resource.
func (*EnterprisesService) GetStoreLayout ¶
func (r *EnterprisesService) GetStoreLayout(enterpriseId string) *EnterprisesGetStoreLayoutCall
GetStoreLayout: Returns the store layout for the enterprise. If the store layout has not been set, or if the store layout has no homepageId set, returns a NOT_FOUND error.
func (*EnterprisesService) Insert ¶
func (r *EnterprisesService) Insert(token string, enterprise *Enterprise) *EnterprisesInsertCall
Insert: Establishes the binding between the EMM and an enterprise. This is now deprecated; use enroll instead.
func (*EnterprisesService) List ¶
func (r *EnterprisesService) List(domain string) *EnterprisesListCall
List: Looks up an enterprise by domain name. This is only supported for enterprises created via the Google-initiated creation flow. Lookup of the id is not needed for enterprises created via the EMM-initiated flow since the EMM learns the enterprise ID in the callback specified in the Enterprises.generateSignupUrl call.
func (*EnterprisesService) PullNotificationSet ¶
func (r *EnterprisesService) PullNotificationSet() *EnterprisesPullNotificationSetCall
PullNotificationSet: Pulls and returns a notification set for the enterprises associated with the service account authenticated for the request. The notification set may be empty if no notification are pending. A notification set returned needs to be acknowledged within 20 seconds by calling Enterprises.AcknowledgeNotificationSet, unless the notification set is empty. Notifications that are not acknowledged within the 20 seconds will eventually be included again in the response to another PullNotificationSet request, and those that are never acknowledged will ultimately be deleted according to the Google Cloud Platform Pub/Sub system policy. Multiple requests might be performed concurrently to retrieve notifications, in which case the pending notifications (if any) will be split among each caller, if any are pending. If no notifications are present, an empty notification list is returned. Subsequent requests may return more notifications once they become available.
func (*EnterprisesService) SendTestPushNotification ¶
func (r *EnterprisesService) SendTestPushNotification(enterpriseId string) *EnterprisesSendTestPushNotificationCall
SendTestPushNotification: Sends a test push notification to validate the EMM integration with the Google Cloud Pub/Sub service for this enterprise.
func (*EnterprisesService) SetAccount ¶
func (r *EnterprisesService) SetAccount(enterpriseId string, enterpriseaccount *EnterpriseAccount) *EnterprisesSetAccountCall
SetAccount: Set the account that will be used to authenticate to the API as the enterprise.
func (*EnterprisesService) SetStoreLayout ¶
func (r *EnterprisesService) SetStoreLayout(enterpriseId string, storelayout *StoreLayout) *EnterprisesSetStoreLayoutCall
SetStoreLayout: Sets the store layout for the enterprise.
func (*EnterprisesService) Unenroll ¶
func (r *EnterprisesService) Unenroll(enterpriseId string) *EnterprisesUnenrollCall
Unenroll: Unenrolls an enterprise from the calling EMM.
type EnterprisesSetAccountCall ¶
type EnterprisesSetAccountCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesSetAccountCall) Context ¶
func (c *EnterprisesSetAccountCall) Context(ctx context.Context) *EnterprisesSetAccountCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EnterprisesSetAccountCall) Do ¶
func (c *EnterprisesSetAccountCall) Do(opts ...googleapi.CallOption) (*EnterpriseAccount, error)
Do executes the "androidenterprise.enterprises.setAccount" call. Exactly one of *EnterpriseAccount or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EnterpriseAccount.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*EnterprisesSetAccountCall) Fields ¶
func (c *EnterprisesSetAccountCall) Fields(s ...googleapi.Field) *EnterprisesSetAccountCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type EnterprisesSetStoreLayoutCall ¶
type EnterprisesSetStoreLayoutCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesSetStoreLayoutCall) Context ¶
func (c *EnterprisesSetStoreLayoutCall) Context(ctx context.Context) *EnterprisesSetStoreLayoutCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EnterprisesSetStoreLayoutCall) Do ¶
func (c *EnterprisesSetStoreLayoutCall) Do(opts ...googleapi.CallOption) (*StoreLayout, error)
Do executes the "androidenterprise.enterprises.setStoreLayout" call. Exactly one of *StoreLayout or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *StoreLayout.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type EnterprisesUnenrollCall ¶
type EnterprisesUnenrollCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesUnenrollCall) Context ¶
func (c *EnterprisesUnenrollCall) Context(ctx context.Context) *EnterprisesUnenrollCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type Entitlement ¶
type Entitlement struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#entitlement". Kind string `json:"kind,omitempty"` // ProductId: The ID of the product that the entitlement is for, e.g. // "app:com.google.android.gm". ProductId string `json:"productId,omitempty"` // Reason: The reason for the entitlement, e.g. "free" for free apps. // This is temporary, it will be replaced by the acquisition kind field // of group licenses. Reason string `json:"reason,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Entitlement: The existence of an entitlement resource means that a user has the right to use a particular app on any of their devices. This might be because the app is free or because they have been allocated a license to the app from a group license purchased by the enterprise.
It should always be true that a user has an app installed on one of their devices only if they have an entitlement to it. So if an entitlement is deleted, the app will be uninstalled from all devices. Similarly if the user installs an app (and is permitted to do so), or the EMM triggers an install of the app, an entitlement to that app is automatically created. If this is impossible - e.g. the enterprise has not purchased sufficient licenses - then installation fails.
Note that entitlements are always user specific, not device specific; a user may have an entitlement even though they have not installed the app anywhere. Once they have an entitlement they can install the app on multiple devices.
The API can be used to create an entitlement. If the app is a free app, a group license for that app is created. If it's a paid app, creating the entitlement consumes one license; it remains consumed until the entitlement is removed. Optionally an installation of the app on all the user's managed devices can be triggered at the time the entitlement is created. An entitlement cannot be created for an app if the app requires permissions that the enterprise has not yet accepted.
Entitlements for paid apps that are due to purchases by the user on a non-managed profile will have "userPurchase" as entitlement reason; those entitlements cannot be removed via the API.
func (*Entitlement) MarshalJSON ¶
func (s *Entitlement) MarshalJSON() ([]byte, error)
type EntitlementsDeleteCall ¶
type EntitlementsDeleteCall struct {
// contains filtered or unexported fields
}
func (*EntitlementsDeleteCall) Context ¶
func (c *EntitlementsDeleteCall) Context(ctx context.Context) *EntitlementsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type EntitlementsGetCall ¶
type EntitlementsGetCall struct {
// contains filtered or unexported fields
}
func (*EntitlementsGetCall) Context ¶
func (c *EntitlementsGetCall) Context(ctx context.Context) *EntitlementsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EntitlementsGetCall) Do ¶
func (c *EntitlementsGetCall) Do(opts ...googleapi.CallOption) (*Entitlement, error)
Do executes the "androidenterprise.entitlements.get" call. Exactly one of *Entitlement or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Entitlement.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EntitlementsGetCall) IfNoneMatch ¶
func (c *EntitlementsGetCall) IfNoneMatch(entityTag string) *EntitlementsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type EntitlementsListCall ¶
type EntitlementsListCall struct {
// contains filtered or unexported fields
}
func (*EntitlementsListCall) Context ¶
func (c *EntitlementsListCall) Context(ctx context.Context) *EntitlementsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EntitlementsListCall) Do ¶
func (c *EntitlementsListCall) Do(opts ...googleapi.CallOption) (*EntitlementsListResponse, error)
Do executes the "androidenterprise.entitlements.list" call. Exactly one of *EntitlementsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *EntitlementsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*EntitlementsListCall) Fields ¶
func (c *EntitlementsListCall) Fields(s ...googleapi.Field) *EntitlementsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EntitlementsListCall) IfNoneMatch ¶
func (c *EntitlementsListCall) IfNoneMatch(entityTag string) *EntitlementsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type EntitlementsListResponse ¶
type EntitlementsListResponse struct { // Entitlement: An entitlement of a user to a product (e.g. an app). For // example, a free app that they have installed, or a paid app that they // have been allocated a license to. Entitlement []*Entitlement `json:"entitlement,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#entitlementsListResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Entitlement") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Entitlement") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
EntitlementsListResponse: The entitlement resources for the user.
func (*EntitlementsListResponse) MarshalJSON ¶
func (s *EntitlementsListResponse) MarshalJSON() ([]byte, error)
type EntitlementsPatchCall ¶
type EntitlementsPatchCall struct {
// contains filtered or unexported fields
}
func (*EntitlementsPatchCall) Context ¶
func (c *EntitlementsPatchCall) Context(ctx context.Context) *EntitlementsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EntitlementsPatchCall) Do ¶
func (c *EntitlementsPatchCall) Do(opts ...googleapi.CallOption) (*Entitlement, error)
Do executes the "androidenterprise.entitlements.patch" call. Exactly one of *Entitlement or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Entitlement.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*EntitlementsPatchCall) Fields ¶
func (c *EntitlementsPatchCall) Fields(s ...googleapi.Field) *EntitlementsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EntitlementsPatchCall) Install ¶
func (c *EntitlementsPatchCall) Install(install bool) *EntitlementsPatchCall
Install sets the optional parameter "install": Set to true to also install the product on all the user's devices where possible. Failure to install on one or more devices will not prevent this operation from returning successfully, as long as the entitlement was successfully assigned to the user.
type EntitlementsService ¶
type EntitlementsService struct {
// contains filtered or unexported fields
}
func NewEntitlementsService ¶
func NewEntitlementsService(s *Service) *EntitlementsService
func (*EntitlementsService) Delete ¶
func (r *EntitlementsService) Delete(enterpriseId string, userId string, entitlementId string) *EntitlementsDeleteCall
Delete: Removes an entitlement to an app for a user and uninstalls it.
func (*EntitlementsService) Get ¶
func (r *EntitlementsService) Get(enterpriseId string, userId string, entitlementId string) *EntitlementsGetCall
Get: Retrieves details of an entitlement.
func (*EntitlementsService) List ¶
func (r *EntitlementsService) List(enterpriseId string, userId string) *EntitlementsListCall
List: List of all entitlements for the specified user. Only the ID is set.
func (*EntitlementsService) Patch ¶
func (r *EntitlementsService) Patch(enterpriseId string, userId string, entitlementId string, entitlement *Entitlement) *EntitlementsPatchCall
Patch: Adds or updates an entitlement to an app for a user. This method supports patch semantics.
func (*EntitlementsService) Update ¶
func (r *EntitlementsService) Update(enterpriseId string, userId string, entitlementId string, entitlement *Entitlement) *EntitlementsUpdateCall
Update: Adds or updates an entitlement to an app for a user.
type EntitlementsUpdateCall ¶
type EntitlementsUpdateCall struct {
// contains filtered or unexported fields
}
func (*EntitlementsUpdateCall) Context ¶
func (c *EntitlementsUpdateCall) Context(ctx context.Context) *EntitlementsUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*EntitlementsUpdateCall) Do ¶
func (c *EntitlementsUpdateCall) Do(opts ...googleapi.CallOption) (*Entitlement, error)
Do executes the "androidenterprise.entitlements.update" call. Exactly one of *Entitlement or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Entitlement.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*EntitlementsUpdateCall) Install ¶
func (c *EntitlementsUpdateCall) Install(install bool) *EntitlementsUpdateCall
Install sets the optional parameter "install": Set to true to also install the product on all the user's devices where possible. Failure to install on one or more devices will not prevent this operation from returning successfully, as long as the entitlement was successfully assigned to the user.
type GroupLicense ¶
type GroupLicense struct { // AcquisitionKind: How this group license was acquired. "bulkPurchase" // means that this group license object was created because the // enterprise purchased licenses for this product; this is "free" // otherwise (for free products). AcquisitionKind string `json:"acquisitionKind,omitempty"` // Approval: Whether the product to which this group license relates is // currently approved by the enterprise, as either "approved" or // "unapproved". Products are approved when a group license is first // created, but this approval may be revoked by an enterprise admin via // Google Play. Unapproved products will not be visible to end users in // collections and new entitlements to them should not normally be // created. Approval string `json:"approval,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#groupLicense". Kind string `json:"kind,omitempty"` // NumProvisioned: The total number of provisioned licenses for this // product. Returned by read operations, but ignored in write // operations. NumProvisioned int64 `json:"numProvisioned,omitempty"` // NumPurchased: The number of purchased licenses (possibly in multiple // purchases). If this field is omitted then there is no limit on the // number of licenses that can be provisioned (e.g. if the acquisition // kind is "free"). NumPurchased int64 `json:"numPurchased,omitempty"` // ProductId: The ID of the product that the license is for, e.g. // "app:com.google.android.gm". ProductId string `json:"productId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AcquisitionKind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AcquisitionKind") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
GroupLicense: A group license object indicates a product that an enterprise admin has approved for use in the enterprise. The product may be free or paid. For free products, a group license object is created in these cases: if the enterprise admin approves a product in Google Play, if the product is added to a collection, or if an entitlement for the product is created for a user via the API. For paid products, a group license object is only created as part of the first bulk purchase of that product in Google Play by the enterprise admin.
The API can be used to query group licenses; the available information includes the total number of licenses purchased (for paid products) and the total number of licenses that have been provisioned, that is, the total number of user entitlements in existence for the product.
Group license objects are never deleted. If, for example, a free app is added to a collection and then removed, the group license will remain, allowing the enterprise admin to keep track of any remaining entitlements. An enterprise admin may indicate they are no longer interested in the group license by marking it as unapproved in Google Play.
func (*GroupLicense) MarshalJSON ¶
func (s *GroupLicense) MarshalJSON() ([]byte, error)
type GroupLicenseUsersListResponse ¶
type GroupLicenseUsersListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#groupLicenseUsersListResponse". Kind string `json:"kind,omitempty"` // User: A user of an enterprise. User []*User `json:"user,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GroupLicenseUsersListResponse: The user resources for the group license.
func (*GroupLicenseUsersListResponse) MarshalJSON ¶
func (s *GroupLicenseUsersListResponse) MarshalJSON() ([]byte, error)
type GroupLicensesListResponse ¶
type GroupLicensesListResponse struct { // GroupLicense: A group license for a product approved for use in the // enterprise. GroupLicense []*GroupLicense `json:"groupLicense,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#groupLicensesListResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "GroupLicense") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "GroupLicense") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
GroupLicensesListResponse: The grouplicense resources for the enterprise.
func (*GroupLicensesListResponse) MarshalJSON ¶
func (s *GroupLicensesListResponse) MarshalJSON() ([]byte, error)
type GrouplicensesGetCall ¶
type GrouplicensesGetCall struct {
// contains filtered or unexported fields
}
func (*GrouplicensesGetCall) Context ¶
func (c *GrouplicensesGetCall) Context(ctx context.Context) *GrouplicensesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GrouplicensesGetCall) Do ¶
func (c *GrouplicensesGetCall) Do(opts ...googleapi.CallOption) (*GroupLicense, error)
Do executes the "androidenterprise.grouplicenses.get" call. Exactly one of *GroupLicense or error will be non-nil. 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 check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GrouplicensesGetCall) IfNoneMatch ¶
func (c *GrouplicensesGetCall) IfNoneMatch(entityTag string) *GrouplicensesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type GrouplicensesListCall ¶
type GrouplicensesListCall struct {
// contains filtered or unexported fields
}
func (*GrouplicensesListCall) Context ¶
func (c *GrouplicensesListCall) Context(ctx context.Context) *GrouplicensesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GrouplicensesListCall) Do ¶
func (c *GrouplicensesListCall) Do(opts ...googleapi.CallOption) (*GroupLicensesListResponse, error)
Do executes the "androidenterprise.grouplicenses.list" call. Exactly one of *GroupLicensesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GroupLicensesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GrouplicensesListCall) Fields ¶
func (c *GrouplicensesListCall) Fields(s ...googleapi.Field) *GrouplicensesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GrouplicensesListCall) IfNoneMatch ¶
func (c *GrouplicensesListCall) IfNoneMatch(entityTag string) *GrouplicensesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type GrouplicensesService ¶
type GrouplicensesService struct {
// contains filtered or unexported fields
}
func NewGrouplicensesService ¶
func NewGrouplicensesService(s *Service) *GrouplicensesService
func (*GrouplicensesService) Get ¶
func (r *GrouplicensesService) Get(enterpriseId string, groupLicenseId string) *GrouplicensesGetCall
Get: Retrieves details of an enterprise's group license for a product.
func (*GrouplicensesService) List ¶
func (r *GrouplicensesService) List(enterpriseId string) *GrouplicensesListCall
List: Retrieves IDs of all products for which the enterprise has a group license.
type GrouplicenseusersListCall ¶
type GrouplicenseusersListCall struct {
// contains filtered or unexported fields
}
func (*GrouplicenseusersListCall) Context ¶
func (c *GrouplicenseusersListCall) Context(ctx context.Context) *GrouplicenseusersListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*GrouplicenseusersListCall) Do ¶
func (c *GrouplicenseusersListCall) Do(opts ...googleapi.CallOption) (*GroupLicenseUsersListResponse, error)
Do executes the "androidenterprise.grouplicenseusers.list" call. Exactly one of *GroupLicenseUsersListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *GroupLicenseUsersListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*GrouplicenseusersListCall) Fields ¶
func (c *GrouplicenseusersListCall) Fields(s ...googleapi.Field) *GrouplicenseusersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GrouplicenseusersListCall) IfNoneMatch ¶
func (c *GrouplicenseusersListCall) IfNoneMatch(entityTag string) *GrouplicenseusersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type GrouplicenseusersService ¶
type GrouplicenseusersService struct {
// contains filtered or unexported fields
}
func NewGrouplicenseusersService ¶
func NewGrouplicenseusersService(s *Service) *GrouplicenseusersService
func (*GrouplicenseusersService) List ¶
func (r *GrouplicenseusersService) List(enterpriseId string, groupLicenseId string) *GrouplicenseusersListCall
List: Retrieves the IDs of the users who have been granted entitlements under the license.
type Install ¶
type Install struct { // InstallState: Install state. The state "installPending" means that an // install request has recently been made and download to the device is // in progress. The state "installed" means that the app has been // installed. This field is read-only. InstallState string `json:"installState,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#install". Kind string `json:"kind,omitempty"` // ProductId: The ID of the product that the install is for, e.g. // "app:com.google.android.gm". ProductId string `json:"productId,omitempty"` // VersionCode: The version of the installed product. Guaranteed to be // set only if the install state is "installed". VersionCode int64 `json:"versionCode,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "InstallState") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "InstallState") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Install: The existence of an install resource indicates that an app is installed on a particular device (or that an install is pending).
The API can be used to create an install resource using the update method. This triggers the actual install of the app on the device. If the user does not already have an entitlement for the app then an attempt is made to create one. If this fails (e.g. because the app is not free and there is no available license) then the creation of the install fails.
The API can also be used to update an installed app. If the update method is used on an existing install then the app will be updated to the latest available version.
Note that it is not possible to force the installation of a specific version of an app; the version code is read-only.
If a user installs an app themselves (as permitted by the enterprise), then again an install resource and possibly an entitlement resource are automatically created.
The API can also be used to delete an install resource, which triggers the removal of the app from the device. Note that deleting an install does not automatically remove the corresponding entitlement, even if there are no remaining installs. The install resource will also be deleted if the user uninstalls the app themselves.
func (*Install) MarshalJSON ¶
type InstallFailureEvent ¶
type InstallFailureEvent struct { // DeviceId: The Android ID of the device. This field will always be // present. DeviceId string `json:"deviceId,omitempty"` // FailureDetails: Additional details on the failure if applicable. FailureDetails string `json:"failureDetails,omitempty"` // FailureReason: The reason for the installation failure. This field // will always be present. FailureReason string `json:"failureReason,omitempty"` // ProductId: The id of the product (e.g. "app:com.google.android.gm") // for which the install failure event occured. This field will always // be present. ProductId string `json:"productId,omitempty"` // UserId: The ID of the user. This field will always be present. UserId string `json:"userId,omitempty"` // ForceSendFields is a list of field names (e.g. "DeviceId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "DeviceId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
InstallFailureEvent: An event generated when an app installation failed on a device
func (*InstallFailureEvent) MarshalJSON ¶
func (s *InstallFailureEvent) MarshalJSON() ([]byte, error)
type InstallsDeleteCall ¶
type InstallsDeleteCall struct {
// contains filtered or unexported fields
}
func (*InstallsDeleteCall) Context ¶
func (c *InstallsDeleteCall) Context(ctx context.Context) *InstallsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type InstallsGetCall ¶
type InstallsGetCall struct {
// contains filtered or unexported fields
}
func (*InstallsGetCall) Context ¶
func (c *InstallsGetCall) Context(ctx context.Context) *InstallsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstallsGetCall) Do ¶
func (c *InstallsGetCall) Do(opts ...googleapi.CallOption) (*Install, error)
Do executes the "androidenterprise.installs.get" call. Exactly one of *Install or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Install.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InstallsGetCall) IfNoneMatch ¶
func (c *InstallsGetCall) IfNoneMatch(entityTag string) *InstallsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type InstallsListCall ¶
type InstallsListCall struct {
// contains filtered or unexported fields
}
func (*InstallsListCall) Context ¶
func (c *InstallsListCall) Context(ctx context.Context) *InstallsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstallsListCall) Do ¶
func (c *InstallsListCall) Do(opts ...googleapi.CallOption) (*InstallsListResponse, error)
Do executes the "androidenterprise.installs.list" call. Exactly one of *InstallsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *InstallsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstallsListCall) Fields ¶
func (c *InstallsListCall) Fields(s ...googleapi.Field) *InstallsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*InstallsListCall) IfNoneMatch ¶
func (c *InstallsListCall) IfNoneMatch(entityTag string) *InstallsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type InstallsListResponse ¶
type InstallsListResponse struct { // Install: An installation of an app for a user on a specific device. // The existence of an install implies that the user must have an // entitlement to the app. Install []*Install `json:"install,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#installsListResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Install") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Install") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
InstallsListResponse: The install resources for the device.
func (*InstallsListResponse) MarshalJSON ¶
func (s *InstallsListResponse) MarshalJSON() ([]byte, error)
type InstallsPatchCall ¶
type InstallsPatchCall struct {
// contains filtered or unexported fields
}
func (*InstallsPatchCall) Context ¶
func (c *InstallsPatchCall) Context(ctx context.Context) *InstallsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstallsPatchCall) Do ¶
func (c *InstallsPatchCall) Do(opts ...googleapi.CallOption) (*Install, error)
Do executes the "androidenterprise.installs.patch" call. Exactly one of *Install or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Install.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*InstallsPatchCall) Fields ¶
func (c *InstallsPatchCall) Fields(s ...googleapi.Field) *InstallsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type InstallsService ¶
type InstallsService struct {
// contains filtered or unexported fields
}
func NewInstallsService ¶
func NewInstallsService(s *Service) *InstallsService
func (*InstallsService) Delete ¶
func (r *InstallsService) Delete(enterpriseId string, userId string, deviceId string, installId string) *InstallsDeleteCall
Delete: Requests to remove an app from a device. A call to get or list will still show the app as installed on the device until it is actually removed.
func (*InstallsService) Get ¶
func (r *InstallsService) Get(enterpriseId string, userId string, deviceId string, installId string) *InstallsGetCall
Get: Retrieves details of an installation of an app on a device.
func (*InstallsService) List ¶
func (r *InstallsService) List(enterpriseId string, userId string, deviceId string) *InstallsListCall
List: Retrieves the details of all apps installed on the specified device.
func (*InstallsService) Patch ¶
func (r *InstallsService) Patch(enterpriseId string, userId string, deviceId string, installId string, install *Install) *InstallsPatchCall
Patch: Requests to install the latest version of an app to a device. If the app is already installed then it is updated to the latest version if necessary. This method supports patch semantics.
func (*InstallsService) Update ¶
func (r *InstallsService) Update(enterpriseId string, userId string, deviceId string, installId string, install *Install) *InstallsUpdateCall
Update: Requests to install the latest version of an app to a device. If the app is already installed then it is updated to the latest version if necessary.
type InstallsUpdateCall ¶
type InstallsUpdateCall struct {
// contains filtered or unexported fields
}
func (*InstallsUpdateCall) Context ¶
func (c *InstallsUpdateCall) Context(ctx context.Context) *InstallsUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*InstallsUpdateCall) Do ¶
func (c *InstallsUpdateCall) Do(opts ...googleapi.CallOption) (*Install, error)
Do executes the "androidenterprise.installs.update" call. Exactly one of *Install or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Install.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type LocalizedText ¶
type LocalizedText struct { // Locale: The BCP47 tag for a locale. (e.g. "en-US", "de"). Locale string `json:"locale,omitempty"` // Text: The text localized in the associated locale. Text string `json:"text,omitempty"` // ForceSendFields is a list of field names (e.g. "Locale") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Locale") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
LocalizedText: A localized string with its locale.
func (*LocalizedText) MarshalJSON ¶
func (s *LocalizedText) MarshalJSON() ([]byte, error)
type ManagedConfiguration ¶
type ManagedConfiguration struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#managedConfiguration". Kind string `json:"kind,omitempty"` // ManagedProperty: The set of managed properties for this // configuration. ManagedProperty []*ManagedProperty `json:"managedProperty,omitempty"` // ProductId: The ID of the product that the managed configuration is // for, e.g. "app:com.google.android.gm". ProductId string `json:"productId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ManagedConfiguration: A managed configuration resource contains the set of managed properties that have been configured for an Android app. The app's developer would have defined configurable properties in the managed configurations schema.
func (*ManagedConfiguration) MarshalJSON ¶
func (s *ManagedConfiguration) MarshalJSON() ([]byte, error)
type ManagedConfigurationsForDeviceListResponse ¶
type ManagedConfigurationsForDeviceListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string // "androidenterprise#managedConfigurationsForDeviceListResponse". Kind string `json:"kind,omitempty"` // ManagedConfigurationForDevice: A managed configuration for an app on // a specific device. ManagedConfigurationForDevice []*ManagedConfiguration `json:"managedConfigurationForDevice,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ManagedConfigurationsForDeviceListResponse: The managed configuration resources for the device.
func (*ManagedConfigurationsForDeviceListResponse) MarshalJSON ¶
func (s *ManagedConfigurationsForDeviceListResponse) MarshalJSON() ([]byte, error)
type ManagedConfigurationsForUserListResponse ¶
type ManagedConfigurationsForUserListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#managedConfigurationsForUserListResponse". Kind string `json:"kind,omitempty"` // ManagedConfigurationForUser: A managed configuration for an app for a // specific user. ManagedConfigurationForUser []*ManagedConfiguration `json:"managedConfigurationForUser,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ManagedConfigurationsForUserListResponse: The managed configuration resources for the user.
func (*ManagedConfigurationsForUserListResponse) MarshalJSON ¶
func (s *ManagedConfigurationsForUserListResponse) MarshalJSON() ([]byte, error)
type ManagedProperty ¶
type ManagedProperty struct { // Key: The unique key that identifies the property. Key string `json:"key,omitempty"` // ValueBool: The boolean value - this will only be present if type of // the property is bool. ValueBool bool `json:"valueBool,omitempty"` // ValueBundle: The bundle of managed properties - this will only be // present if type of the property is bundle. ValueBundle *ManagedPropertyBundle `json:"valueBundle,omitempty"` // ValueBundleArray: The list of bundles of properties - this will only // be present if type of the property is bundle_array. ValueBundleArray []*ManagedPropertyBundle `json:"valueBundleArray,omitempty"` // ValueInteger: The integer value - this will only be present if type // of the property is integer. ValueInteger int64 `json:"valueInteger,omitempty"` // ValueString: The string value - this will only be present if type of // the property is string, choice or hidden. ValueString string `json:"valueString,omitempty"` // ValueStringArray: The list of string values - this will only be // present if type of the property is multiselect. ValueStringArray []string `json:"valueStringArray,omitempty"` // ForceSendFields is a list of field names (e.g. "Key") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Key") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ManagedProperty: A managed property of a managed configuration. The property must match one of the properties in the app restrictions schema of the product. Exactly one of the value fields must be populated, and it must match the property's type in the app restrictions schema.
func (*ManagedProperty) MarshalJSON ¶
func (s *ManagedProperty) MarshalJSON() ([]byte, error)
type ManagedPropertyBundle ¶
type ManagedPropertyBundle struct { // ManagedProperty: The list of managed properties. ManagedProperty []*ManagedProperty `json:"managedProperty,omitempty"` // ForceSendFields is a list of field names (e.g. "ManagedProperty") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ManagedProperty") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ManagedPropertyBundle: A bundle of managed properties.
func (*ManagedPropertyBundle) MarshalJSON ¶
func (s *ManagedPropertyBundle) MarshalJSON() ([]byte, error)
type ManagedconfigurationsfordeviceDeleteCall ¶
type ManagedconfigurationsfordeviceDeleteCall struct {
// contains filtered or unexported fields
}
func (*ManagedconfigurationsfordeviceDeleteCall) Context ¶
func (c *ManagedconfigurationsfordeviceDeleteCall) Context(ctx context.Context) *ManagedconfigurationsfordeviceDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ManagedconfigurationsfordeviceGetCall ¶
type ManagedconfigurationsfordeviceGetCall struct {
// contains filtered or unexported fields
}
func (*ManagedconfigurationsfordeviceGetCall) Context ¶
func (c *ManagedconfigurationsfordeviceGetCall) Context(ctx context.Context) *ManagedconfigurationsfordeviceGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ManagedconfigurationsfordeviceGetCall) Do ¶
func (c *ManagedconfigurationsfordeviceGetCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration, error)
Do executes the "androidenterprise.managedconfigurationsfordevice.get" call. Exactly one of *ManagedConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ManagedConfiguration.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ManagedconfigurationsfordeviceGetCall) Fields ¶
func (c *ManagedconfigurationsfordeviceGetCall) Fields(s ...googleapi.Field) *ManagedconfigurationsfordeviceGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ManagedconfigurationsfordeviceGetCall) IfNoneMatch ¶
func (c *ManagedconfigurationsfordeviceGetCall) IfNoneMatch(entityTag string) *ManagedconfigurationsfordeviceGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ManagedconfigurationsfordeviceListCall ¶
type ManagedconfigurationsfordeviceListCall struct {
// contains filtered or unexported fields
}
func (*ManagedconfigurationsfordeviceListCall) Context ¶
func (c *ManagedconfigurationsfordeviceListCall) Context(ctx context.Context) *ManagedconfigurationsfordeviceListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ManagedconfigurationsfordeviceListCall) Do ¶
func (c *ManagedconfigurationsfordeviceListCall) Do(opts ...googleapi.CallOption) (*ManagedConfigurationsForDeviceListResponse, error)
Do executes the "androidenterprise.managedconfigurationsfordevice.list" call. Exactly one of *ManagedConfigurationsForDeviceListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ManagedConfigurationsForDeviceListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ManagedconfigurationsfordeviceListCall) Fields ¶
func (c *ManagedconfigurationsfordeviceListCall) Fields(s ...googleapi.Field) *ManagedconfigurationsfordeviceListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ManagedconfigurationsfordeviceListCall) IfNoneMatch ¶
func (c *ManagedconfigurationsfordeviceListCall) IfNoneMatch(entityTag string) *ManagedconfigurationsfordeviceListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ManagedconfigurationsfordevicePatchCall ¶
type ManagedconfigurationsfordevicePatchCall struct {
// contains filtered or unexported fields
}
func (*ManagedconfigurationsfordevicePatchCall) Context ¶
func (c *ManagedconfigurationsfordevicePatchCall) Context(ctx context.Context) *ManagedconfigurationsfordevicePatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ManagedconfigurationsfordevicePatchCall) Do ¶
func (c *ManagedconfigurationsfordevicePatchCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration, error)
Do executes the "androidenterprise.managedconfigurationsfordevice.patch" call. Exactly one of *ManagedConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ManagedConfiguration.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ManagedconfigurationsfordevicePatchCall) Fields ¶
func (c *ManagedconfigurationsfordevicePatchCall) Fields(s ...googleapi.Field) *ManagedconfigurationsfordevicePatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ManagedconfigurationsfordeviceService ¶
type ManagedconfigurationsfordeviceService struct {
// contains filtered or unexported fields
}
func NewManagedconfigurationsfordeviceService ¶
func NewManagedconfigurationsfordeviceService(s *Service) *ManagedconfigurationsfordeviceService
func (*ManagedconfigurationsfordeviceService) Delete ¶
func (r *ManagedconfigurationsfordeviceService) Delete(enterpriseId string, userId string, deviceId string, managedConfigurationForDeviceId string) *ManagedconfigurationsfordeviceDeleteCall
Delete: Removes a per-device managed configuration for an app for the specified device.
func (*ManagedconfigurationsfordeviceService) Get ¶
func (r *ManagedconfigurationsfordeviceService) Get(enterpriseId string, userId string, deviceId string, managedConfigurationForDeviceId string) *ManagedconfigurationsfordeviceGetCall
Get: Retrieves details of a per-device managed configuration.
func (*ManagedconfigurationsfordeviceService) List ¶
func (r *ManagedconfigurationsfordeviceService) List(enterpriseId string, userId string, deviceId string) *ManagedconfigurationsfordeviceListCall
List: Lists all the per-device managed configurations for the specified device. Only the ID is set.
func (*ManagedconfigurationsfordeviceService) Patch ¶
func (r *ManagedconfigurationsfordeviceService) Patch(enterpriseId string, userId string, deviceId string, managedConfigurationForDeviceId string, managedconfiguration *ManagedConfiguration) *ManagedconfigurationsfordevicePatchCall
Patch: Adds or updates a per-device managed configuration for an app for the specified device. This method supports patch semantics.
func (*ManagedconfigurationsfordeviceService) Update ¶
func (r *ManagedconfigurationsfordeviceService) Update(enterpriseId string, userId string, deviceId string, managedConfigurationForDeviceId string, managedconfiguration *ManagedConfiguration) *ManagedconfigurationsfordeviceUpdateCall
Update: Adds or updates a per-device managed configuration for an app for the specified device.
type ManagedconfigurationsfordeviceUpdateCall ¶
type ManagedconfigurationsfordeviceUpdateCall struct {
// contains filtered or unexported fields
}
func (*ManagedconfigurationsfordeviceUpdateCall) Context ¶
func (c *ManagedconfigurationsfordeviceUpdateCall) Context(ctx context.Context) *ManagedconfigurationsfordeviceUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ManagedconfigurationsfordeviceUpdateCall) Do ¶
func (c *ManagedconfigurationsfordeviceUpdateCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration, error)
Do executes the "androidenterprise.managedconfigurationsfordevice.update" call. Exactly one of *ManagedConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ManagedConfiguration.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ManagedconfigurationsfordeviceUpdateCall) Fields ¶
func (c *ManagedconfigurationsfordeviceUpdateCall) Fields(s ...googleapi.Field) *ManagedconfigurationsfordeviceUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ManagedconfigurationsforuserDeleteCall ¶
type ManagedconfigurationsforuserDeleteCall struct {
// contains filtered or unexported fields
}
func (*ManagedconfigurationsforuserDeleteCall) Context ¶
func (c *ManagedconfigurationsforuserDeleteCall) Context(ctx context.Context) *ManagedconfigurationsforuserDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ManagedconfigurationsforuserGetCall ¶
type ManagedconfigurationsforuserGetCall struct {
// contains filtered or unexported fields
}
func (*ManagedconfigurationsforuserGetCall) Context ¶
func (c *ManagedconfigurationsforuserGetCall) Context(ctx context.Context) *ManagedconfigurationsforuserGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ManagedconfigurationsforuserGetCall) Do ¶
func (c *ManagedconfigurationsforuserGetCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration, error)
Do executes the "androidenterprise.managedconfigurationsforuser.get" call. Exactly one of *ManagedConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ManagedConfiguration.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ManagedconfigurationsforuserGetCall) Fields ¶
func (c *ManagedconfigurationsforuserGetCall) Fields(s ...googleapi.Field) *ManagedconfigurationsforuserGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ManagedconfigurationsforuserGetCall) IfNoneMatch ¶
func (c *ManagedconfigurationsforuserGetCall) IfNoneMatch(entityTag string) *ManagedconfigurationsforuserGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ManagedconfigurationsforuserListCall ¶
type ManagedconfigurationsforuserListCall struct {
// contains filtered or unexported fields
}
func (*ManagedconfigurationsforuserListCall) Context ¶
func (c *ManagedconfigurationsforuserListCall) Context(ctx context.Context) *ManagedconfigurationsforuserListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ManagedconfigurationsforuserListCall) Do ¶
func (c *ManagedconfigurationsforuserListCall) Do(opts ...googleapi.CallOption) (*ManagedConfigurationsForUserListResponse, error)
Do executes the "androidenterprise.managedconfigurationsforuser.list" call. Exactly one of *ManagedConfigurationsForUserListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ManagedConfigurationsForUserListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ManagedconfigurationsforuserListCall) Fields ¶
func (c *ManagedconfigurationsforuserListCall) Fields(s ...googleapi.Field) *ManagedconfigurationsforuserListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ManagedconfigurationsforuserListCall) IfNoneMatch ¶
func (c *ManagedconfigurationsforuserListCall) IfNoneMatch(entityTag string) *ManagedconfigurationsforuserListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ManagedconfigurationsforuserPatchCall ¶
type ManagedconfigurationsforuserPatchCall struct {
// contains filtered or unexported fields
}
func (*ManagedconfigurationsforuserPatchCall) Context ¶
func (c *ManagedconfigurationsforuserPatchCall) Context(ctx context.Context) *ManagedconfigurationsforuserPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ManagedconfigurationsforuserPatchCall) Do ¶
func (c *ManagedconfigurationsforuserPatchCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration, error)
Do executes the "androidenterprise.managedconfigurationsforuser.patch" call. Exactly one of *ManagedConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ManagedConfiguration.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ManagedconfigurationsforuserPatchCall) Fields ¶
func (c *ManagedconfigurationsforuserPatchCall) Fields(s ...googleapi.Field) *ManagedconfigurationsforuserPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ManagedconfigurationsforuserService ¶
type ManagedconfigurationsforuserService struct {
// contains filtered or unexported fields
}
func NewManagedconfigurationsforuserService ¶
func NewManagedconfigurationsforuserService(s *Service) *ManagedconfigurationsforuserService
func (*ManagedconfigurationsforuserService) Delete ¶
func (r *ManagedconfigurationsforuserService) Delete(enterpriseId string, userId string, managedConfigurationForUserId string) *ManagedconfigurationsforuserDeleteCall
Delete: Removes a per-user managed configuration for an app for the specified user.
func (*ManagedconfigurationsforuserService) Get ¶
func (r *ManagedconfigurationsforuserService) Get(enterpriseId string, userId string, managedConfigurationForUserId string) *ManagedconfigurationsforuserGetCall
Get: Retrieves details of a per-user managed configuration for an app for the specified user.
func (*ManagedconfigurationsforuserService) List ¶
func (r *ManagedconfigurationsforuserService) List(enterpriseId string, userId string) *ManagedconfigurationsforuserListCall
List: Lists all the per-user managed configurations for the specified user. Only the ID is set.
func (*ManagedconfigurationsforuserService) Patch ¶
func (r *ManagedconfigurationsforuserService) Patch(enterpriseId string, userId string, managedConfigurationForUserId string, managedconfiguration *ManagedConfiguration) *ManagedconfigurationsforuserPatchCall
Patch: Adds or updates a per-user managed configuration for an app for the specified user. This method supports patch semantics.
func (*ManagedconfigurationsforuserService) Update ¶
func (r *ManagedconfigurationsforuserService) Update(enterpriseId string, userId string, managedConfigurationForUserId string, managedconfiguration *ManagedConfiguration) *ManagedconfigurationsforuserUpdateCall
Update: Adds or updates a per-user managed configuration for an app for the specified user.
type ManagedconfigurationsforuserUpdateCall ¶
type ManagedconfigurationsforuserUpdateCall struct {
// contains filtered or unexported fields
}
func (*ManagedconfigurationsforuserUpdateCall) Context ¶
func (c *ManagedconfigurationsforuserUpdateCall) Context(ctx context.Context) *ManagedconfigurationsforuserUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ManagedconfigurationsforuserUpdateCall) Do ¶
func (c *ManagedconfigurationsforuserUpdateCall) Do(opts ...googleapi.CallOption) (*ManagedConfiguration, error)
Do executes the "androidenterprise.managedconfigurationsforuser.update" call. Exactly one of *ManagedConfiguration or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ManagedConfiguration.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ManagedconfigurationsforuserUpdateCall) Fields ¶
func (c *ManagedconfigurationsforuserUpdateCall) Fields(s ...googleapi.Field) *ManagedconfigurationsforuserUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type NewPermissionsEvent ¶
type NewPermissionsEvent struct { // ApprovedPermissions: The set of permissions that the enterprise admin // has already approved for this application. Use Permissions.Get on the // EMM API to retrieve details about these permissions. ApprovedPermissions []string `json:"approvedPermissions,omitempty"` // ProductId: The id of the product (e.g. "app:com.google.android.gm") // for which new permissions were added. This field will always be // present. ProductId string `json:"productId,omitempty"` // RequestedPermissions: The set of permissions that the app is // currently requesting. Use Permissions.Get on the EMM API to retrieve // details about these permissions. RequestedPermissions []string `json:"requestedPermissions,omitempty"` // ForceSendFields is a list of field names (e.g. "ApprovedPermissions") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApprovedPermissions") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
NewPermissionsEvent: An event generated when new permissions are added to an app.
func (*NewPermissionsEvent) MarshalJSON ¶
func (s *NewPermissionsEvent) MarshalJSON() ([]byte, error)
type Notification ¶
type Notification struct { // AppRestrictionsSchemaChangeEvent: Notifications about new app // restrictions schema changes. AppRestrictionsSchemaChangeEvent *AppRestrictionsSchemaChangeEvent `json:"appRestrictionsSchemaChangeEvent,omitempty"` // AppUpdateEvent: Notifications about app updates. AppUpdateEvent *AppUpdateEvent `json:"appUpdateEvent,omitempty"` // EnterpriseId: The ID of the enterprise for which the notification is // sent. This will always be present. EnterpriseId string `json:"enterpriseId,omitempty"` // InstallFailureEvent: Notifications about an app installation failure. InstallFailureEvent *InstallFailureEvent `json:"installFailureEvent,omitempty"` // NewPermissionsEvent: Notifications about new app permissions. NewPermissionsEvent *NewPermissionsEvent `json:"newPermissionsEvent,omitempty"` // ProductApprovalEvent: Notifications about changes to a product's // approval status. ProductApprovalEvent *ProductApprovalEvent `json:"productApprovalEvent,omitempty"` // ProductAvailabilityChangeEvent: Notifications about product // availability changes. ProductAvailabilityChangeEvent *ProductAvailabilityChangeEvent `json:"productAvailabilityChangeEvent,omitempty"` // TimestampMillis: The time when the notification was published in // milliseconds since 1970-01-01T00:00:00Z. This will always be present. TimestampMillis int64 `json:"timestampMillis,omitempty,string"` // ForceSendFields is a list of field names (e.g. // "AppRestrictionsSchemaChangeEvent") to unconditionally include in API // requests. By default, fields with empty values are omitted from API // requests. However, any non-pointer, non-interface field appearing in // ForceSendFields will be sent to the server regardless of whether the // field is empty or not. This may be used to include empty fields in // Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. // "AppRestrictionsSchemaChangeEvent") to include in API requests with // the JSON null value. By default, fields with empty values are omitted // from API requests. However, any field with an empty value appearing // in NullFields will be sent to the server as null. It is an error if a // field in this list has a non-empty value. This may be used to include // null fields in Patch requests. NullFields []string `json:"-"` }
Notification: A notification of one event relating to an enterprise.
func (*Notification) MarshalJSON ¶
func (s *Notification) MarshalJSON() ([]byte, error)
type NotificationSet ¶
type NotificationSet struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#notificationSet". Kind string `json:"kind,omitempty"` // Notification: The notifications received, or empty if no // notifications are present. Notification []*Notification `json:"notification,omitempty"` // NotificationSetId: The notification set ID, required to mark the // notification as received with the Enterprises.AcknowledgeNotification // API. This will be omitted if no notifications are present. NotificationSetId string `json:"notificationSetId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
NotificationSet: A resource returned by the PullNotificationSet API, which contains a collection of notifications for enterprises associated with the service account authenticated for the request.
func (*NotificationSet) MarshalJSON ¶
func (s *NotificationSet) MarshalJSON() ([]byte, error)
type PageInfo ¶
type PageInfo struct { ResultPerPage int64 `json:"resultPerPage,omitempty"` StartIndex int64 `json:"startIndex,omitempty"` TotalResults int64 `json:"totalResults,omitempty"` // ForceSendFields is a list of field names (e.g. "ResultPerPage") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ResultPerPage") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*PageInfo) MarshalJSON ¶
type Permission ¶
type Permission struct { // Description: A longer description of the permissions giving more // details of what it affects. Description string `json:"description,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#permission". Kind string `json:"kind,omitempty"` // Name: The name of the permission. Name string `json:"name,omitempty"` // PermissionId: An opaque string uniquely identifying the permission. PermissionId string `json:"permissionId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Description") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Description") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Permission: A permission represents some extra capability, to be granted to an Android app, which requires explicit consent. An enterprise admin must consent to these permissions on behalf of their users before an entitlement for the app can be created.
The permissions collection is read-only. The information provided for each permission (localized name and description) is intended to be used in the EMM user interface when obtaining consent from the enterprise.
func (*Permission) MarshalJSON ¶
func (s *Permission) MarshalJSON() ([]byte, error)
type PermissionsGetCall ¶
type PermissionsGetCall struct {
// contains filtered or unexported fields
}
func (*PermissionsGetCall) Context ¶
func (c *PermissionsGetCall) Context(ctx context.Context) *PermissionsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*PermissionsGetCall) Do ¶
func (c *PermissionsGetCall) Do(opts ...googleapi.CallOption) (*Permission, error)
Do executes the "androidenterprise.permissions.get" call. Exactly one of *Permission or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Permission.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*PermissionsGetCall) IfNoneMatch ¶
func (c *PermissionsGetCall) IfNoneMatch(entityTag string) *PermissionsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*PermissionsGetCall) Language ¶
func (c *PermissionsGetCall) Language(language string) *PermissionsGetCall
Language sets the optional parameter "language": The BCP47 tag for the user's preferred language (e.g. "en-US", "de")
type PermissionsService ¶
type PermissionsService struct {
// contains filtered or unexported fields
}
func NewPermissionsService ¶
func NewPermissionsService(s *Service) *PermissionsService
func (*PermissionsService) Get ¶
func (r *PermissionsService) Get(permissionId string) *PermissionsGetCall
Get: Retrieves details of an Android app permission for display to an enterprise admin.
type Product ¶
type Product struct { // AppVersion: App versions currently available for this product. The // returned list contains only public versions. Alpha and beta versions // are not included. AppVersion []*AppVersion `json:"appVersion,omitempty"` // AuthorName: The name of the author of the product (e.g. the app // developer). AuthorName string `json:"authorName,omitempty"` // DetailsUrl: A link to the (consumer) Google Play details page for the // product. DetailsUrl string `json:"detailsUrl,omitempty"` // DistributionChannel: How and to whom the package is made available. // The value publicGoogleHosted means that the package is available // through the Play Store and not restricted to a specific enterprise. // The value privateGoogleHosted means that the package is a private app // (restricted to an enterprise) but hosted by Google. The value // privateSelfHosted means that the package is a private app (restricted // to an enterprise) and is privately hosted. DistributionChannel string `json:"distributionChannel,omitempty"` // IconUrl: A link to an image that can be used as an icon for the // product. This image is suitable for use at up to 512px x 512px. IconUrl string `json:"iconUrl,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#product". Kind string `json:"kind,omitempty"` // ProductId: A string of the form app:<package name>. For example, // app:com.google.android.gm represents the Gmail app. ProductId string `json:"productId,omitempty"` // ProductPricing: Whether this product is free, free with in-app // purchases, or paid. If the pricing is unknown, this means the product // is not generally available anymore (even though it might still be // available to people who own it). ProductPricing string `json:"productPricing,omitempty"` // RequiresContainerApp: Whether this app can only be installed on // devices using the Android for Work container app. RequiresContainerApp bool `json:"requiresContainerApp,omitempty"` // SmallIconUrl: A link to a smaller image that can be used as an icon // for the product. This image is suitable for use at up to 128px x // 128px. SmallIconUrl string `json:"smallIconUrl,omitempty"` // Title: The name of the product. Title string `json:"title,omitempty"` // WorkDetailsUrl: A link to the Google Play for Work details page for // the product, for use by an Enterprise administrator. WorkDetailsUrl string `json:"workDetailsUrl,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AppVersion") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AppVersion") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
Product: A Products resource represents an app in the Google Play Store that is available to at least some users in the enterprise. (Some apps are restricted to a single enterprise, and no information about them is made available outside that enterprise.)
The information provided for each product (localized name, icon, link to the full Google Play details page) is intended to allow a basic representation of the product within an EMM user interface.
func (*Product) MarshalJSON ¶
type ProductApprovalEvent ¶
type ProductApprovalEvent struct { // Approved: Whether the product was approved or unapproved. This field // will always be present. Approved string `json:"approved,omitempty"` // ProductId: The id of the product (e.g. "app:com.google.android.gm") // for which the approval status has changed. This field will always be // present. ProductId string `json:"productId,omitempty"` // ForceSendFields is a list of field names (e.g. "Approved") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Approved") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ProductApprovalEvent: An event generated when a product's approval status is changed.
func (*ProductApprovalEvent) MarshalJSON ¶
func (s *ProductApprovalEvent) MarshalJSON() ([]byte, error)
type ProductAvailabilityChangeEvent ¶
type ProductAvailabilityChangeEvent struct { // AvailabilityStatus: The new state of the product. This field will // always be present. AvailabilityStatus string `json:"availabilityStatus,omitempty"` // ProductId: The id of the product (e.g. "app:com.google.android.gm") // for which the product availability changed. This field will always be // present. ProductId string `json:"productId,omitempty"` // ForceSendFields is a list of field names (e.g. "AvailabilityStatus") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AvailabilityStatus") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
ProductAvailabilityChangeEvent: An event generated whenever a product's availability changes.
func (*ProductAvailabilityChangeEvent) MarshalJSON ¶
func (s *ProductAvailabilityChangeEvent) MarshalJSON() ([]byte, error)
type ProductPermission ¶
type ProductPermission struct { // PermissionId: An opaque string uniquely identifying the permission. PermissionId string `json:"permissionId,omitempty"` // State: Whether the permission has been accepted or not. State string `json:"state,omitempty"` // ForceSendFields is a list of field names (e.g. "PermissionId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "PermissionId") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ProductPermission: A product permissions resource represents the set of permissions required by a specific app and whether or not they have been accepted by an enterprise admin.
The API can be used to read the set of permissions, and also to update the set to indicate that permissions have been accepted.
func (*ProductPermission) MarshalJSON ¶
func (s *ProductPermission) MarshalJSON() ([]byte, error)
type ProductPermissions ¶
type ProductPermissions struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#productPermissions". Kind string `json:"kind,omitempty"` // Permission: The permissions required by the app. Permission []*ProductPermission `json:"permission,omitempty"` // ProductId: The ID of the app that the permissions relate to, e.g. // "app:com.google.android.gm". ProductId string `json:"productId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ProductPermissions: Information about the permissions required by a specific app and whether they have been accepted by the enterprise.
func (*ProductPermissions) MarshalJSON ¶
func (s *ProductPermissions) MarshalJSON() ([]byte, error)
type ProductSet ¶
type ProductSet struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#productSet". Kind string `json:"kind,omitempty"` // ProductId: The list of product IDs making up the set of products. ProductId []string `json:"productId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ProductSet: A set of products.
func (*ProductSet) MarshalJSON ¶
func (s *ProductSet) MarshalJSON() ([]byte, error)
type ProductsApproveCall ¶
type ProductsApproveCall struct {
// contains filtered or unexported fields
}
func (*ProductsApproveCall) Context ¶
func (c *ProductsApproveCall) Context(ctx context.Context) *ProductsApproveCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProductsApproveRequest ¶
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"` // ForceSendFields is a list of field names (e.g. "ApprovalUrlInfo") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ApprovalUrlInfo") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*ProductsApproveRequest) MarshalJSON ¶
func (s *ProductsApproveRequest) MarshalJSON() ([]byte, error)
type ProductsGenerateApprovalUrlCall ¶
type ProductsGenerateApprovalUrlCall struct {
// contains filtered or unexported fields
}
func (*ProductsGenerateApprovalUrlCall) Context ¶
func (c *ProductsGenerateApprovalUrlCall) Context(ctx context.Context) *ProductsGenerateApprovalUrlCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProductsGenerateApprovalUrlCall) Do ¶
func (c *ProductsGenerateApprovalUrlCall) Do(opts ...googleapi.CallOption) (*ProductsGenerateApprovalUrlResponse, error)
Do executes the "androidenterprise.products.generateApprovalUrl" call. Exactly one of *ProductsGenerateApprovalUrlResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProductsGenerateApprovalUrlResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProductsGenerateApprovalUrlCall) Fields ¶
func (c *ProductsGenerateApprovalUrlCall) Fields(s ...googleapi.Field) *ProductsGenerateApprovalUrlCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductsGenerateApprovalUrlCall) LanguageCode ¶
func (c *ProductsGenerateApprovalUrlCall) LanguageCode(languageCode string) *ProductsGenerateApprovalUrlCall
LanguageCode sets the optional parameter "languageCode": The BCP 47 language code used for permission names and descriptions in the returned iframe, for instance "en-US".
type ProductsGenerateApprovalUrlResponse ¶
type ProductsGenerateApprovalUrlResponse struct { // Url: A URL that can be rendered in an iframe to display the // permissions (if any) of a product. This URL can be used to approve // the product only once and only within 24 hours of being generated, // using the Products.approve call. If the product is currently // unapproved and has no permissions, this URL will point to an empty // page. If the product is currently approved, a URL will only be // generated if that product has added permissions since it was last // approved, and the URL will only display those new permissions that // have not yet been accepted. Url string `json:"url,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Url") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Url") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*ProductsGenerateApprovalUrlResponse) MarshalJSON ¶
func (s *ProductsGenerateApprovalUrlResponse) MarshalJSON() ([]byte, error)
type ProductsGetAppRestrictionsSchemaCall ¶
type ProductsGetAppRestrictionsSchemaCall struct {
// contains filtered or unexported fields
}
func (*ProductsGetAppRestrictionsSchemaCall) Context ¶
func (c *ProductsGetAppRestrictionsSchemaCall) Context(ctx context.Context) *ProductsGetAppRestrictionsSchemaCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProductsGetAppRestrictionsSchemaCall) Do ¶
func (c *ProductsGetAppRestrictionsSchemaCall) Do(opts ...googleapi.CallOption) (*AppRestrictionsSchema, error)
Do executes the "androidenterprise.products.getAppRestrictionsSchema" call. Exactly one of *AppRestrictionsSchema or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AppRestrictionsSchema.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProductsGetAppRestrictionsSchemaCall) Fields ¶
func (c *ProductsGetAppRestrictionsSchemaCall) Fields(s ...googleapi.Field) *ProductsGetAppRestrictionsSchemaCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductsGetAppRestrictionsSchemaCall) IfNoneMatch ¶
func (c *ProductsGetAppRestrictionsSchemaCall) IfNoneMatch(entityTag string) *ProductsGetAppRestrictionsSchemaCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProductsGetAppRestrictionsSchemaCall) Language ¶
func (c *ProductsGetAppRestrictionsSchemaCall) Language(language string) *ProductsGetAppRestrictionsSchemaCall
Language sets the optional parameter "language": The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
type ProductsGetCall ¶
type ProductsGetCall struct {
// contains filtered or unexported fields
}
func (*ProductsGetCall) Context ¶
func (c *ProductsGetCall) Context(ctx context.Context) *ProductsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProductsGetCall) Do ¶
func (c *ProductsGetCall) Do(opts ...googleapi.CallOption) (*Product, error)
Do executes the "androidenterprise.products.get" call. Exactly one of *Product or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Product.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductsGetCall) IfNoneMatch ¶
func (c *ProductsGetCall) IfNoneMatch(entityTag string) *ProductsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProductsGetCall) Language ¶
func (c *ProductsGetCall) Language(language string) *ProductsGetCall
Language sets the optional parameter "language": The BCP47 tag for the user's preferred language (e.g. "en-US", "de").
type ProductsGetPermissionsCall ¶
type ProductsGetPermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProductsGetPermissionsCall) Context ¶
func (c *ProductsGetPermissionsCall) Context(ctx context.Context) *ProductsGetPermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProductsGetPermissionsCall) Do ¶
func (c *ProductsGetPermissionsCall) Do(opts ...googleapi.CallOption) (*ProductPermissions, error)
Do executes the "androidenterprise.products.getPermissions" call. Exactly one of *ProductPermissions or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProductPermissions.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProductsGetPermissionsCall) Fields ¶
func (c *ProductsGetPermissionsCall) Fields(s ...googleapi.Field) *ProductsGetPermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductsGetPermissionsCall) IfNoneMatch ¶
func (c *ProductsGetPermissionsCall) IfNoneMatch(entityTag string) *ProductsGetPermissionsCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ProductsListCall ¶
type ProductsListCall struct {
// contains filtered or unexported fields
}
func (*ProductsListCall) Approved ¶
func (c *ProductsListCall) Approved(approved bool) *ProductsListCall
Approved sets the optional parameter "approved": Specifies whether to search among 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(ctx context.Context) *ProductsListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProductsListCall) Do ¶
func (c *ProductsListCall) Do(opts ...googleapi.CallOption) (*ProductsListResponse, error)
Do executes the "androidenterprise.products.list" call. Exactly one of *ProductsListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProductsListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProductsListCall) Fields ¶
func (c *ProductsListCall) Fields(s ...googleapi.Field) *ProductsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ProductsListCall) IfNoneMatch ¶
func (c *ProductsListCall) IfNoneMatch(entityTag string) *ProductsListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*ProductsListCall) Language ¶
func (c *ProductsListCall) Language(language string) *ProductsListCall
Language sets the optional parameter "language": The BCP47 tag for the user's preferred language (e.g. "en-US", "de"). Results are returned in the language best matching the preferred language.
func (*ProductsListCall) MaxResults ¶
func (c *ProductsListCall) MaxResults(maxResults int64) *ProductsListCall
MaxResults sets the optional parameter "maxResults": Specifies the maximum number of products that can be returned per request. If not specified, uses a default value of 100, which is also the maximum retrievable within a single response.
func (*ProductsListCall) Query ¶
func (c *ProductsListCall) Query(query string) *ProductsListCall
Query sets the optional parameter "query": The search query as typed in the Google Play Store search box. If omitted, all approved apps will be returned (using the pagination parameters), including apps that are not available in the store (e.g. unpublished apps).
func (*ProductsListCall) Token ¶
func (c *ProductsListCall) Token(token string) *ProductsListCall
Token sets the optional parameter "token": A pagination token is contained in a request�s response when there are more products. The token can be used in a subsequent request to obtain more products, and so forth. This parameter cannot be used in the initial request.
type ProductsListResponse ¶
type ProductsListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#productsListResponse". Kind string `json:"kind,omitempty"` // PageInfo: General pagination information. PageInfo *PageInfo `json:"pageInfo,omitempty"` // Product: Information about a product (e.g. an app) in the Google Play // Store, for display to an enterprise admin. Product []*Product `json:"product,omitempty"` // TokenPagination: Pagination information for token pagination. TokenPagination *TokenPagination `json:"tokenPagination,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ProductsListResponse: The matching products.
func (*ProductsListResponse) MarshalJSON ¶
func (s *ProductsListResponse) MarshalJSON() ([]byte, error)
type ProductsService ¶
type ProductsService struct {
// contains filtered or unexported fields
}
func NewProductsService ¶
func NewProductsService(s *Service) *ProductsService
func (*ProductsService) Approve ¶
func (r *ProductsService) Approve(enterpriseId string, productId string, 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 enterprise customer is 1,000.
To learn how to use Google Play for Work to design and create a store layout to display approved products to your users, see Store Layout Design.
func (*ProductsService) GenerateApprovalUrl ¶
func (r *ProductsService) GenerateApprovalUrl(enterpriseId string, productId string) *ProductsGenerateApprovalUrlCall
GenerateApprovalUrl: Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product.
Admins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day.
func (*ProductsService) Get ¶
func (r *ProductsService) Get(enterpriseId string, productId string) *ProductsGetCall
Get: Retrieves details of a product for display to an enterprise admin.
func (*ProductsService) GetAppRestrictionsSchema ¶
func (r *ProductsService) GetAppRestrictionsSchema(enterpriseId string, productId string) *ProductsGetAppRestrictionsSchemaCall
GetAppRestrictionsSchema: Retrieves the schema that defines the configurable properties for this product. All products have a schema, but this schema may be empty if no managed configurations have been defined. This schema can be used to populate a UI that allows an administrator to configure the product. To apply a managed configuration based on the schema obtained using this API, see Managed Configurations through Play.
func (*ProductsService) GetPermissions ¶
func (r *ProductsService) GetPermissions(enterpriseId string, productId string) *ProductsGetPermissionsCall
GetPermissions: Retrieves the Android app permissions required by this app.
func (*ProductsService) List ¶
func (r *ProductsService) List(enterpriseId string) *ProductsListCall
List: Finds approved products that match a query, or all approved products if there is no query.
func (*ProductsService) Unapprove ¶
func (r *ProductsService) Unapprove(enterpriseId string, productId string) *ProductsUnapproveCall
Unapprove: Unapproves the specified product (and the relevant app permissions, if any)
func (*ProductsService) UpdatePermissions ¶
func (r *ProductsService) UpdatePermissions(enterpriseId string, productId string, productpermissions *ProductPermissions) *ProductsUpdatePermissionsCall
UpdatePermissions: This method has been deprecated. To programmatically approve applications, you must use the iframe mechanism via the generateApprovalUrl and approve methods of the Products resource. For more information, see the Play EMM API usage requirements.
The updatePermissions method (deprecated) updates the set of Android app permissions for this app that have been accepted by the enterprise.
type ProductsUnapproveCall ¶
type ProductsUnapproveCall struct {
// contains filtered or unexported fields
}
func (*ProductsUnapproveCall) Context ¶
func (c *ProductsUnapproveCall) Context(ctx context.Context) *ProductsUnapproveCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ProductsUpdatePermissionsCall ¶
type ProductsUpdatePermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProductsUpdatePermissionsCall) Context ¶
func (c *ProductsUpdatePermissionsCall) Context(ctx context.Context) *ProductsUpdatePermissionsCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ProductsUpdatePermissionsCall) Do ¶
func (c *ProductsUpdatePermissionsCall) Do(opts ...googleapi.CallOption) (*ProductPermissions, error)
Do executes the "androidenterprise.products.updatePermissions" call. Exactly one of *ProductPermissions or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProductPermissions.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ProductsUpdatePermissionsCall) Fields ¶
func (c *ProductsUpdatePermissionsCall) Fields(s ...googleapi.Field) *ProductsUpdatePermissionsCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type Service ¶
type Service struct { BasePath string // API endpoint base URL UserAgent string // optional additional User-Agent fragment Collections *CollectionsService Collectionviewers *CollectionviewersService Devices *DevicesService Enterprises *EnterprisesService Entitlements *EntitlementsService Grouplicenses *GrouplicensesService Grouplicenseusers *GrouplicenseusersService Installs *InstallsService Managedconfigurationsfordevice *ManagedconfigurationsfordeviceService Managedconfigurationsforuser *ManagedconfigurationsforuserService Permissions *PermissionsService Products *ProductsService Serviceaccountkeys *ServiceaccountkeysService Storelayoutclusters *StorelayoutclustersService Storelayoutpages *StorelayoutpagesService Users *UsersService // contains filtered or unexported fields }
type ServiceAccount ¶
type ServiceAccount struct { // Key: Credentials that can be used to authenticate as this // ServiceAccount. Key *ServiceAccountKey `json:"key,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#serviceAccount". Kind string `json:"kind,omitempty"` // Name: The account name of the service account, in the form of an // email address. Assigned by the server. Name string `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Key") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Key") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ServiceAccount: A service account identity, including the name and credentials that can be used to authenticate as the service account.
func (*ServiceAccount) MarshalJSON ¶
func (s *ServiceAccount) MarshalJSON() ([]byte, error)
type ServiceAccountKey ¶
type ServiceAccountKey struct { // Data: The body of the private key credentials file, in string format. // This is only populated when the ServiceAccountKey is created, and is // not stored by Google. Data string `json:"data,omitempty"` // Id: An opaque, unique identifier for this ServiceAccountKey. Assigned // by the server. Id string `json:"id,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#serviceAccountKey". Kind string `json:"kind,omitempty"` // Type: The file format of the generated key data. Type string `json:"type,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Data") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Data") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
ServiceAccountKey: Credentials that can be used to authenticate as a service account.
func (*ServiceAccountKey) MarshalJSON ¶
func (s *ServiceAccountKey) MarshalJSON() ([]byte, error)
type ServiceAccountKeysListResponse ¶
type ServiceAccountKeysListResponse struct { // ServiceAccountKey: The service account credentials. ServiceAccountKey []*ServiceAccountKey `json:"serviceAccountKey,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "ServiceAccountKey") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "ServiceAccountKey") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
func (*ServiceAccountKeysListResponse) MarshalJSON ¶
func (s *ServiceAccountKeysListResponse) MarshalJSON() ([]byte, error)
type ServiceaccountkeysDeleteCall ¶
type ServiceaccountkeysDeleteCall struct {
// contains filtered or unexported fields
}
func (*ServiceaccountkeysDeleteCall) Context ¶
func (c *ServiceaccountkeysDeleteCall) Context(ctx context.Context) *ServiceaccountkeysDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ServiceaccountkeysInsertCall ¶
type ServiceaccountkeysInsertCall struct {
// contains filtered or unexported fields
}
func (*ServiceaccountkeysInsertCall) Context ¶
func (c *ServiceaccountkeysInsertCall) Context(ctx context.Context) *ServiceaccountkeysInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ServiceaccountkeysInsertCall) Do ¶
func (c *ServiceaccountkeysInsertCall) Do(opts ...googleapi.CallOption) (*ServiceAccountKey, error)
Do executes the "androidenterprise.serviceaccountkeys.insert" call. Exactly one of *ServiceAccountKey or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ServiceAccountKey.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ServiceaccountkeysInsertCall) Fields ¶
func (c *ServiceaccountkeysInsertCall) Fields(s ...googleapi.Field) *ServiceaccountkeysInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ServiceaccountkeysListCall ¶
type ServiceaccountkeysListCall struct {
// contains filtered or unexported fields
}
func (*ServiceaccountkeysListCall) Context ¶
func (c *ServiceaccountkeysListCall) Context(ctx context.Context) *ServiceaccountkeysListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*ServiceaccountkeysListCall) Do ¶
func (c *ServiceaccountkeysListCall) Do(opts ...googleapi.CallOption) (*ServiceAccountKeysListResponse, error)
Do executes the "androidenterprise.serviceaccountkeys.list" call. Exactly one of *ServiceAccountKeysListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ServiceAccountKeysListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*ServiceaccountkeysListCall) Fields ¶
func (c *ServiceaccountkeysListCall) Fields(s ...googleapi.Field) *ServiceaccountkeysListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ServiceaccountkeysListCall) IfNoneMatch ¶
func (c *ServiceaccountkeysListCall) IfNoneMatch(entityTag string) *ServiceaccountkeysListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type ServiceaccountkeysService ¶
type ServiceaccountkeysService struct {
// contains filtered or unexported fields
}
func NewServiceaccountkeysService ¶
func NewServiceaccountkeysService(s *Service) *ServiceaccountkeysService
func (*ServiceaccountkeysService) Delete ¶
func (r *ServiceaccountkeysService) Delete(enterpriseId string, keyId string) *ServiceaccountkeysDeleteCall
Delete: Removes and invalidates the specified credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.
func (*ServiceaccountkeysService) Insert ¶
func (r *ServiceaccountkeysService) Insert(enterpriseId string, serviceaccountkey *ServiceAccountKey) *ServiceaccountkeysInsertCall
Insert: Generates new credentials for the service account associated with this enterprise. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.
Only the type of the key should be populated in the resource to be inserted.
func (*ServiceaccountkeysService) List ¶
func (r *ServiceaccountkeysService) List(enterpriseId string) *ServiceaccountkeysListCall
List: Lists all active credentials for the service account associated with this enterprise. Only the ID and key type are returned. The calling service account must have been retrieved by calling Enterprises.GetServiceAccount and must have been set as the enterprise service account by calling Enterprises.SetAccount.
type SignupInfo ¶
type SignupInfo struct { // CompletionToken: An opaque token that will be required, along with // the Enterprise Token, for obtaining the enterprise resource from // CompleteSignup. CompletionToken string `json:"completionToken,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#signupInfo". Kind string `json:"kind,omitempty"` // Url: A URL under which the Admin can sign up for an enterprise. The // page pointed to cannot be rendered in an iframe. Url string `json:"url,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "CompletionToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "CompletionToken") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
SignupInfo: A resource returned by the GenerateSignupUrl API, which contains the Signup URL and Completion Token.
func (*SignupInfo) MarshalJSON ¶
func (s *SignupInfo) MarshalJSON() ([]byte, error)
type StoreCluster ¶
type StoreCluster struct { // Id: Unique ID of this cluster. Assigned by the server. Immutable once // assigned. Id string `json:"id,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#storeCluster". Kind string `json:"kind,omitempty"` // Name: Ordered list of localized strings giving the name of this page. // The text displayed is the one that best matches the user locale, or // the first entry if there is no good match. There needs to be at least // one entry. Name []*LocalizedText `json:"name,omitempty"` // OrderInPage: String (US-ASCII only) used to determine order of this // cluster within the parent page's elements. Page elements are sorted // in lexicographic order of this field. Duplicated values are allowed, // but ordering between elements with duplicate order is undefined. // // The value of this field is never visible to a user, it is used solely // for the purpose of defining an ordering. Maximum length is 256 // characters. OrderInPage string `json:"orderInPage,omitempty"` // ProductId: List of products in the order they are displayed in the // cluster. There should not be duplicates within a cluster. ProductId []string `json:"productId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Id") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
StoreCluster: Definition of a Google Play for Work store cluster, a list of products displayed as part of a store page.
func (*StoreCluster) MarshalJSON ¶
func (s *StoreCluster) MarshalJSON() ([]byte, error)
type StoreLayout ¶
type StoreLayout struct { // HomepageId: The ID of the store page to be used as the homepage. The // homepage will be used as the first page shown in the Google Play for // Work store. // // If a homepage has not been set, the Play store shown on devices will // be empty. Not specifying a homepage on a store layout effectively // empties the store. // // If there exists at least one page, this field must be set to the ID // of a valid page. HomepageId string `json:"homepageId,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#storeLayout". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "HomepageId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "HomepageId") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
StoreLayout: General setting for the Google Play for Work store layout, currently only specifying the page to display the first time the store is opened.
func (*StoreLayout) MarshalJSON ¶
func (s *StoreLayout) MarshalJSON() ([]byte, error)
type StoreLayoutClustersListResponse ¶
type StoreLayoutClustersListResponse struct { // Cluster: A store cluster of an enterprise. Cluster []*StoreCluster `json:"cluster,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#storeLayoutClustersListResponse". Kind string `json:"kind,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Cluster") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Cluster") to include in // API requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
StoreLayoutClustersListResponse: The store page resources for the enterprise.
func (*StoreLayoutClustersListResponse) MarshalJSON ¶
func (s *StoreLayoutClustersListResponse) MarshalJSON() ([]byte, error)
type StoreLayoutPagesListResponse ¶
type StoreLayoutPagesListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#storeLayoutPagesListResponse". Kind string `json:"kind,omitempty"` // Page: A store page of an enterprise. Page []*StorePage `json:"page,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
StoreLayoutPagesListResponse: The store page resources for the enterprise.
func (*StoreLayoutPagesListResponse) MarshalJSON ¶
func (s *StoreLayoutPagesListResponse) MarshalJSON() ([]byte, error)
type StorePage ¶
type StorePage struct { // Id: Unique ID of this page. Assigned by the server. Immutable once // assigned. Id string `json:"id,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#storePage". Kind string `json:"kind,omitempty"` // Link: Ordered list of pages a user should be able to reach from this // page. The pages must exist, must not be this page, and once a link is // created the page linked to cannot be deleted until all links to it // are removed. It is recommended that the basic pages are created // first, before adding the links between pages. // // No attempt is made to verify that all pages are reachable from the // homepage. Link []string `json:"link,omitempty"` // Name: Ordered list of localized strings giving the name of this page. // The text displayed is the one that best matches the user locale, or // the first entry if there is no good match. There needs to be at least // one entry. Name []*LocalizedText `json:"name,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Id") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Id") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
StorePage: Definition of a Google Play for Work store page, made of a localized name and links to other pages. A page also contains clusters defined as a subcollection.
func (*StorePage) MarshalJSON ¶
type StorelayoutclustersDeleteCall ¶
type StorelayoutclustersDeleteCall struct {
// contains filtered or unexported fields
}
func (*StorelayoutclustersDeleteCall) Context ¶
func (c *StorelayoutclustersDeleteCall) Context(ctx context.Context) *StorelayoutclustersDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type StorelayoutclustersGetCall ¶
type StorelayoutclustersGetCall struct {
// contains filtered or unexported fields
}
func (*StorelayoutclustersGetCall) Context ¶
func (c *StorelayoutclustersGetCall) Context(ctx context.Context) *StorelayoutclustersGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*StorelayoutclustersGetCall) Do ¶
func (c *StorelayoutclustersGetCall) Do(opts ...googleapi.CallOption) (*StoreCluster, error)
Do executes the "androidenterprise.storelayoutclusters.get" call. Exactly one of *StoreCluster or error will be non-nil. 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 check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*StorelayoutclustersGetCall) IfNoneMatch ¶
func (c *StorelayoutclustersGetCall) IfNoneMatch(entityTag string) *StorelayoutclustersGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type StorelayoutclustersInsertCall ¶
type StorelayoutclustersInsertCall struct {
// contains filtered or unexported fields
}
func (*StorelayoutclustersInsertCall) Context ¶
func (c *StorelayoutclustersInsertCall) Context(ctx context.Context) *StorelayoutclustersInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*StorelayoutclustersInsertCall) Do ¶
func (c *StorelayoutclustersInsertCall) Do(opts ...googleapi.CallOption) (*StoreCluster, error)
Do executes the "androidenterprise.storelayoutclusters.insert" call. Exactly one of *StoreCluster or error will be non-nil. 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 check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type StorelayoutclustersListCall ¶
type StorelayoutclustersListCall struct {
// contains filtered or unexported fields
}
func (*StorelayoutclustersListCall) Context ¶
func (c *StorelayoutclustersListCall) Context(ctx context.Context) *StorelayoutclustersListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*StorelayoutclustersListCall) Do ¶
func (c *StorelayoutclustersListCall) Do(opts ...googleapi.CallOption) (*StoreLayoutClustersListResponse, error)
Do executes the "androidenterprise.storelayoutclusters.list" call. Exactly one of *StoreLayoutClustersListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *StoreLayoutClustersListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StorelayoutclustersListCall) Fields ¶
func (c *StorelayoutclustersListCall) Fields(s ...googleapi.Field) *StorelayoutclustersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*StorelayoutclustersListCall) IfNoneMatch ¶
func (c *StorelayoutclustersListCall) IfNoneMatch(entityTag string) *StorelayoutclustersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type StorelayoutclustersPatchCall ¶
type StorelayoutclustersPatchCall struct {
// contains filtered or unexported fields
}
func (*StorelayoutclustersPatchCall) Context ¶
func (c *StorelayoutclustersPatchCall) Context(ctx context.Context) *StorelayoutclustersPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*StorelayoutclustersPatchCall) Do ¶
func (c *StorelayoutclustersPatchCall) Do(opts ...googleapi.CallOption) (*StoreCluster, error)
Do executes the "androidenterprise.storelayoutclusters.patch" call. Exactly one of *StoreCluster or error will be non-nil. 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 check whether the returned error was because http.StatusNotModified was returned.
func (*StorelayoutclustersPatchCall) Fields ¶
func (c *StorelayoutclustersPatchCall) Fields(s ...googleapi.Field) *StorelayoutclustersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type StorelayoutclustersService ¶
type StorelayoutclustersService struct {
// contains filtered or unexported fields
}
func NewStorelayoutclustersService ¶
func NewStorelayoutclustersService(s *Service) *StorelayoutclustersService
func (*StorelayoutclustersService) Delete ¶
func (r *StorelayoutclustersService) Delete(enterpriseId string, pageId string, clusterId string) *StorelayoutclustersDeleteCall
Delete: Deletes a cluster.
func (*StorelayoutclustersService) Get ¶
func (r *StorelayoutclustersService) Get(enterpriseId string, pageId string, clusterId string) *StorelayoutclustersGetCall
Get: Retrieves details of a cluster.
func (*StorelayoutclustersService) Insert ¶
func (r *StorelayoutclustersService) Insert(enterpriseId string, pageId string, storecluster *StoreCluster) *StorelayoutclustersInsertCall
Insert: Inserts a new cluster in a page.
func (*StorelayoutclustersService) List ¶
func (r *StorelayoutclustersService) List(enterpriseId string, pageId string) *StorelayoutclustersListCall
List: Retrieves the details of all clusters on the specified page.
func (*StorelayoutclustersService) Patch ¶
func (r *StorelayoutclustersService) Patch(enterpriseId string, pageId string, clusterId string, storecluster *StoreCluster) *StorelayoutclustersPatchCall
Patch: Updates a cluster. This method supports patch semantics.
func (*StorelayoutclustersService) Update ¶
func (r *StorelayoutclustersService) Update(enterpriseId string, pageId string, clusterId string, storecluster *StoreCluster) *StorelayoutclustersUpdateCall
Update: Updates a cluster.
type StorelayoutclustersUpdateCall ¶
type StorelayoutclustersUpdateCall struct {
// contains filtered or unexported fields
}
func (*StorelayoutclustersUpdateCall) Context ¶
func (c *StorelayoutclustersUpdateCall) Context(ctx context.Context) *StorelayoutclustersUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*StorelayoutclustersUpdateCall) Do ¶
func (c *StorelayoutclustersUpdateCall) Do(opts ...googleapi.CallOption) (*StoreCluster, error)
Do executes the "androidenterprise.storelayoutclusters.update" call. Exactly one of *StoreCluster or error will be non-nil. 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 check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type StorelayoutpagesDeleteCall ¶
type StorelayoutpagesDeleteCall struct {
// contains filtered or unexported fields
}
func (*StorelayoutpagesDeleteCall) Context ¶
func (c *StorelayoutpagesDeleteCall) Context(ctx context.Context) *StorelayoutpagesDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type StorelayoutpagesGetCall ¶
type StorelayoutpagesGetCall struct {
// contains filtered or unexported fields
}
func (*StorelayoutpagesGetCall) Context ¶
func (c *StorelayoutpagesGetCall) Context(ctx context.Context) *StorelayoutpagesGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*StorelayoutpagesGetCall) Do ¶
func (c *StorelayoutpagesGetCall) Do(opts ...googleapi.CallOption) (*StorePage, error)
Do executes the "androidenterprise.storelayoutpages.get" call. Exactly one of *StorePage or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *StorePage.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*StorelayoutpagesGetCall) IfNoneMatch ¶
func (c *StorelayoutpagesGetCall) IfNoneMatch(entityTag string) *StorelayoutpagesGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type StorelayoutpagesInsertCall ¶
type StorelayoutpagesInsertCall struct {
// contains filtered or unexported fields
}
func (*StorelayoutpagesInsertCall) Context ¶
func (c *StorelayoutpagesInsertCall) Context(ctx context.Context) *StorelayoutpagesInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*StorelayoutpagesInsertCall) Do ¶
func (c *StorelayoutpagesInsertCall) Do(opts ...googleapi.CallOption) (*StorePage, error)
Do executes the "androidenterprise.storelayoutpages.insert" call. Exactly one of *StorePage or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *StorePage.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type StorelayoutpagesListCall ¶
type StorelayoutpagesListCall struct {
// contains filtered or unexported fields
}
func (*StorelayoutpagesListCall) Context ¶
func (c *StorelayoutpagesListCall) Context(ctx context.Context) *StorelayoutpagesListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*StorelayoutpagesListCall) Do ¶
func (c *StorelayoutpagesListCall) Do(opts ...googleapi.CallOption) (*StoreLayoutPagesListResponse, error)
Do executes the "androidenterprise.storelayoutpages.list" call. Exactly one of *StoreLayoutPagesListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *StoreLayoutPagesListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StorelayoutpagesListCall) Fields ¶
func (c *StorelayoutpagesListCall) Fields(s ...googleapi.Field) *StorelayoutpagesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*StorelayoutpagesListCall) IfNoneMatch ¶
func (c *StorelayoutpagesListCall) IfNoneMatch(entityTag string) *StorelayoutpagesListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type StorelayoutpagesPatchCall ¶
type StorelayoutpagesPatchCall struct {
// contains filtered or unexported fields
}
func (*StorelayoutpagesPatchCall) Context ¶
func (c *StorelayoutpagesPatchCall) Context(ctx context.Context) *StorelayoutpagesPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*StorelayoutpagesPatchCall) Do ¶
func (c *StorelayoutpagesPatchCall) Do(opts ...googleapi.CallOption) (*StorePage, error)
Do executes the "androidenterprise.storelayoutpages.patch" call. Exactly one of *StorePage or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *StorePage.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*StorelayoutpagesPatchCall) Fields ¶
func (c *StorelayoutpagesPatchCall) Fields(s ...googleapi.Field) *StorelayoutpagesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type StorelayoutpagesService ¶
type StorelayoutpagesService struct {
// contains filtered or unexported fields
}
func NewStorelayoutpagesService ¶
func NewStorelayoutpagesService(s *Service) *StorelayoutpagesService
func (*StorelayoutpagesService) Delete ¶
func (r *StorelayoutpagesService) Delete(enterpriseId string, pageId string) *StorelayoutpagesDeleteCall
Delete: Deletes a store page.
func (*StorelayoutpagesService) Get ¶
func (r *StorelayoutpagesService) Get(enterpriseId string, pageId string) *StorelayoutpagesGetCall
Get: Retrieves details of a store page.
func (*StorelayoutpagesService) Insert ¶
func (r *StorelayoutpagesService) Insert(enterpriseId string, storepage *StorePage) *StorelayoutpagesInsertCall
Insert: Inserts a new store page.
func (*StorelayoutpagesService) List ¶
func (r *StorelayoutpagesService) List(enterpriseId string) *StorelayoutpagesListCall
List: Retrieves the details of all pages in the store.
func (*StorelayoutpagesService) Patch ¶
func (r *StorelayoutpagesService) Patch(enterpriseId string, pageId string, storepage *StorePage) *StorelayoutpagesPatchCall
Patch: Updates the content of a store page. This method supports patch semantics.
func (*StorelayoutpagesService) Update ¶
func (r *StorelayoutpagesService) Update(enterpriseId string, pageId string, storepage *StorePage) *StorelayoutpagesUpdateCall
Update: Updates the content of a store page.
type StorelayoutpagesUpdateCall ¶
type StorelayoutpagesUpdateCall struct {
// contains filtered or unexported fields
}
func (*StorelayoutpagesUpdateCall) Context ¶
func (c *StorelayoutpagesUpdateCall) Context(ctx context.Context) *StorelayoutpagesUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*StorelayoutpagesUpdateCall) Do ¶
func (c *StorelayoutpagesUpdateCall) Do(opts ...googleapi.CallOption) (*StorePage, error)
Do executes the "androidenterprise.storelayoutpages.update" call. Exactly one of *StorePage or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *StorePage.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type TokenPagination ¶
type TokenPagination struct { NextPageToken string `json:"nextPageToken,omitempty"` PreviousPageToken string `json:"previousPageToken,omitempty"` // ForceSendFields is a list of field names (e.g. "NextPageToken") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "NextPageToken") to include // in API requests with the JSON null value. By default, fields with // empty values are omitted from API requests. However, any field with // an empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
func (*TokenPagination) MarshalJSON ¶
func (s *TokenPagination) MarshalJSON() ([]byte, error)
type User ¶
type User struct { // AccountIdentifier: A unique identifier you create for this user, such // as "user342" or "asset#44418". Do not use personally identifiable // information (PII) for this property. Must always be set for // EMM-managed users. Not set for Google-managed users. AccountIdentifier string `json:"accountIdentifier,omitempty"` // AccountType: The type of account that this user represents. A // userAccount can be installed on multiple devices, but a deviceAccount // is specific to a single device. An EMM-managed user (emmManaged) can // be either type (userAccount, deviceAccount), but a Google-managed // user (googleManaged) is always a userAccount. AccountType string `json:"accountType,omitempty"` // DisplayName: The name that will appear in user interfaces. Setting // this property is optional when creating EMM-managed users. If you do // set this property, use something generic about the organization (such // as "Example, Inc.") or your name (as EMM). Not used for // Google-managed user accounts. DisplayName string `json:"displayName,omitempty"` // Id: The unique ID for the user. Id string `json:"id,omitempty"` // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#user". Kind string `json:"kind,omitempty"` // ManagementType: The entity that manages the user. With googleManaged // users, the source of truth is Google so EMMs have to make sure a // Google Account exists for the user. With emmManaged users, the EMM is // in charge. ManagementType string `json:"managementType,omitempty"` // PrimaryEmail: The user's primary email address, for example, // "jsmith@example.com". Will always be set for Google managed users and // not set for EMM managed users. PrimaryEmail string `json:"primaryEmail,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "AccountIdentifier") // to unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "AccountIdentifier") to // include in API requests with the JSON null value. By default, fields // with empty values are omitted from API requests. However, any field // with an empty value appearing in NullFields will be sent to the // server as null. It is an error if a field in this list has a // non-empty value. This may be used to include null fields in Patch // requests. NullFields []string `json:"-"` }
User: A Users resource represents an account associated with an enterprise. The account may be specific to a device or to an individual user (who can then use the account across multiple devices). The account may provide access to Google Play for Work only, or to other Google services, depending on the identity model:
- Google managed domain identity model requires synchronization to Google account sources (via primaryEmail). - Android for Work Accounts identity model provides a dynamic means for enterprises to create user or device accounts as needed. These accounts provide access to Google Play for Work only.
func (*User) MarshalJSON ¶
type UserToken ¶
type UserToken struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#userToken". Kind string `json:"kind,omitempty"` // Token: The token (activation code) to be entered by the user. This // consists of a sequence of decimal digits. Note that the leading digit // may be 0. Token string `json:"token,omitempty"` // UserId: The unique ID for the user. UserId string `json:"userId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
UserToken: A UserToken is used by a user when setting up a managed device or profile with their work account on a device. When the user enters their email address and token (activation code) the appropriate EMM app can be automatically downloaded.
func (*UserToken) MarshalJSON ¶
type UsersDeleteCall ¶
type UsersDeleteCall struct {
// contains filtered or unexported fields
}
func (*UsersDeleteCall) Context ¶
func (c *UsersDeleteCall) Context(ctx context.Context) *UsersDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersGenerateAuthenticationTokenCall ¶
type UsersGenerateAuthenticationTokenCall struct {
// contains filtered or unexported fields
}
func (*UsersGenerateAuthenticationTokenCall) Context ¶
func (c *UsersGenerateAuthenticationTokenCall) Context(ctx context.Context) *UsersGenerateAuthenticationTokenCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UsersGenerateAuthenticationTokenCall) Do ¶
func (c *UsersGenerateAuthenticationTokenCall) Do(opts ...googleapi.CallOption) (*AuthenticationToken, error)
Do executes the "androidenterprise.users.generateAuthenticationToken" call. Exactly one of *AuthenticationToken or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *AuthenticationToken.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersGenerateAuthenticationTokenCall) Fields ¶
func (c *UsersGenerateAuthenticationTokenCall) Fields(s ...googleapi.Field) *UsersGenerateAuthenticationTokenCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersGenerateTokenCall ¶
type UsersGenerateTokenCall struct {
// contains filtered or unexported fields
}
func (*UsersGenerateTokenCall) Context ¶
func (c *UsersGenerateTokenCall) Context(ctx context.Context) *UsersGenerateTokenCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UsersGenerateTokenCall) Do ¶
func (c *UsersGenerateTokenCall) Do(opts ...googleapi.CallOption) (*UserToken, error)
Do executes the "androidenterprise.users.generateToken" call. Exactly one of *UserToken or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UserToken.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersGenerateTokenCall) Fields ¶
func (c *UsersGenerateTokenCall) Fields(s ...googleapi.Field) *UsersGenerateTokenCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersGetAvailableProductSetCall ¶
type UsersGetAvailableProductSetCall struct {
// contains filtered or unexported fields
}
func (*UsersGetAvailableProductSetCall) Context ¶
func (c *UsersGetAvailableProductSetCall) Context(ctx context.Context) *UsersGetAvailableProductSetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UsersGetAvailableProductSetCall) Do ¶
func (c *UsersGetAvailableProductSetCall) Do(opts ...googleapi.CallOption) (*ProductSet, error)
Do executes the "androidenterprise.users.getAvailableProductSet" call. Exactly one of *ProductSet or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProductSet.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*UsersGetAvailableProductSetCall) IfNoneMatch ¶
func (c *UsersGetAvailableProductSetCall) IfNoneMatch(entityTag string) *UsersGetAvailableProductSetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type UsersGetCall ¶
type UsersGetCall struct {
// contains filtered or unexported fields
}
func (*UsersGetCall) Context ¶
func (c *UsersGetCall) Context(ctx context.Context) *UsersGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UsersGetCall) Do ¶
func (c *UsersGetCall) Do(opts ...googleapi.CallOption) (*User, error)
Do executes the "androidenterprise.users.get" call. Exactly one of *User or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *User.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*UsersGetCall) IfNoneMatch ¶
func (c *UsersGetCall) IfNoneMatch(entityTag string) *UsersGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type UsersInsertCall ¶
type UsersInsertCall struct {
// contains filtered or unexported fields
}
func (*UsersInsertCall) Context ¶
func (c *UsersInsertCall) Context(ctx context.Context) *UsersInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UsersInsertCall) Do ¶
func (c *UsersInsertCall) Do(opts ...googleapi.CallOption) (*User, error)
Do executes the "androidenterprise.users.insert" call. Exactly one of *User or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *User.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersListCall ¶
type UsersListCall struct {
// contains filtered or unexported fields
}
func (*UsersListCall) Context ¶
func (c *UsersListCall) Context(ctx context.Context) *UsersListCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UsersListCall) Do ¶
func (c *UsersListCall) Do(opts ...googleapi.CallOption) (*UsersListResponse, error)
Do executes the "androidenterprise.users.list" call. Exactly one of *UsersListResponse or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UsersListResponse.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersListCall) Fields ¶
func (c *UsersListCall) Fields(s ...googleapi.Field) *UsersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*UsersListCall) IfNoneMatch ¶
func (c *UsersListCall) IfNoneMatch(entityTag string) *UsersListCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
type UsersListResponse ¶
type UsersListResponse struct { // Kind: Identifies what kind of resource this is. Value: the fixed // string "androidenterprise#usersListResponse". Kind string `json:"kind,omitempty"` // User: A user of an enterprise. User []*User `json:"user,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Kind") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` // NullFields is a list of field names (e.g. "Kind") to include in API // requests with the JSON null value. By default, fields with empty // values are omitted from API requests. However, any field with an // empty value appearing in NullFields will be sent to the server as // null. It is an error if a field in this list has a non-empty value. // This may be used to include null fields in Patch requests. NullFields []string `json:"-"` }
UsersListResponse: The matching user resources.
func (*UsersListResponse) MarshalJSON ¶
func (s *UsersListResponse) MarshalJSON() ([]byte, error)
type UsersPatchCall ¶
type UsersPatchCall struct {
// contains filtered or unexported fields
}
func (*UsersPatchCall) Context ¶
func (c *UsersPatchCall) Context(ctx context.Context) *UsersPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UsersPatchCall) Do ¶
func (c *UsersPatchCall) Do(opts ...googleapi.CallOption) (*User, error)
Do executes the "androidenterprise.users.patch" call. Exactly one of *User or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *User.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*UsersPatchCall) Fields ¶
func (c *UsersPatchCall) Fields(s ...googleapi.Field) *UsersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersRevokeTokenCall ¶
type UsersRevokeTokenCall struct {
// contains filtered or unexported fields
}
func (*UsersRevokeTokenCall) Context ¶
func (c *UsersRevokeTokenCall) Context(ctx context.Context) *UsersRevokeTokenCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UsersRevokeTokenCall) Do ¶
func (c *UsersRevokeTokenCall) Do(opts ...googleapi.CallOption) error
Do executes the "androidenterprise.users.revokeToken" call.
func (*UsersRevokeTokenCall) Fields ¶
func (c *UsersRevokeTokenCall) Fields(s ...googleapi.Field) *UsersRevokeTokenCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersService ¶
type UsersService struct {
// contains filtered or unexported fields
}
func NewUsersService ¶
func NewUsersService(s *Service) *UsersService
func (*UsersService) Delete ¶
func (r *UsersService) Delete(enterpriseId string, userId string) *UsersDeleteCall
Delete: Deleted an EMM-managed user.
func (*UsersService) GenerateAuthenticationToken ¶
func (r *UsersService) GenerateAuthenticationToken(enterpriseId string, userId string) *UsersGenerateAuthenticationTokenCall
GenerateAuthenticationToken: Generates an authentication token which the device policy client can use to provision the given EMM-managed user account on a device. The generated token is single-use and expires after a few minutes.
This call only works with EMM-managed accounts.
func (*UsersService) GenerateToken ¶
func (r *UsersService) GenerateToken(enterpriseId string, userId string) *UsersGenerateTokenCall
GenerateToken: Generates a token (activation code) to allow this user to configure their work account in the Android Setup Wizard. Revokes any previously generated token.
This call only works with Google managed accounts.
func (*UsersService) Get ¶
func (r *UsersService) Get(enterpriseId string, userId string) *UsersGetCall
Get: Retrieves a user's details.
func (*UsersService) GetAvailableProductSet ¶
func (r *UsersService) GetAvailableProductSet(enterpriseId string, userId string) *UsersGetAvailableProductSetCall
GetAvailableProductSet: Retrieves the set of products a user is entitled to access.
func (*UsersService) Insert ¶
func (r *UsersService) Insert(enterpriseId string, user *User) *UsersInsertCall
Insert: Creates a new EMM-managed user.
The Users resource passed in the body of the request should include an accountIdentifier and an accountType. If a corresponding user already exists with the same account identifier, the user will be updated with the resource. In this case only the displayName field can be changed.
func (*UsersService) List ¶
func (r *UsersService) List(enterpriseId string, email string) *UsersListCall
List: Looks up a user by primary email address. This is only supported for Google-managed users. Lookup of the id is not needed for EMM-managed users because the id is already returned in the result of the Users.insert call.
func (*UsersService) Patch ¶
func (r *UsersService) Patch(enterpriseId string, userId string, user *User) *UsersPatchCall
Patch: Updates the details of an EMM-managed user.
Can be used with EMM-managed users only (not Google managed users). Pass the new details in the Users resource in the request body. Only the displayName field can be changed. Other fields must either be unset or have the currently active value. This method supports patch semantics.
func (*UsersService) RevokeToken ¶
func (r *UsersService) RevokeToken(enterpriseId string, userId string) *UsersRevokeTokenCall
RevokeToken: Revokes a previously generated token (activation code) for the user.
func (*UsersService) SetAvailableProductSet ¶
func (r *UsersService) SetAvailableProductSet(enterpriseId string, userId string, productset *ProductSet) *UsersSetAvailableProductSetCall
SetAvailableProductSet: Modifies the set of products a user is entitled to access.
func (*UsersService) Update ¶
func (r *UsersService) Update(enterpriseId string, userId string, user *User) *UsersUpdateCall
Update: Updates the details of an EMM-managed user.
Can be used with EMM-managed users only (not Google managed users). Pass the new details in the Users resource in the request body. Only the displayName field can be changed. Other fields must either be unset or have the currently active value.
type UsersSetAvailableProductSetCall ¶
type UsersSetAvailableProductSetCall struct {
// contains filtered or unexported fields
}
func (*UsersSetAvailableProductSetCall) Context ¶
func (c *UsersSetAvailableProductSetCall) Context(ctx context.Context) *UsersSetAvailableProductSetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UsersSetAvailableProductSetCall) Do ¶
func (c *UsersSetAvailableProductSetCall) Do(opts ...googleapi.CallOption) (*ProductSet, error)
Do executes the "androidenterprise.users.setAvailableProductSet" call. Exactly one of *ProductSet or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ProductSet.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersUpdateCall ¶
type UsersUpdateCall struct {
// contains filtered or unexported fields
}
func (*UsersUpdateCall) Context ¶
func (c *UsersUpdateCall) Context(ctx context.Context) *UsersUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*UsersUpdateCall) Do ¶
func (c *UsersUpdateCall) Do(opts ...googleapi.CallOption) (*User, error)
Do executes the "androidenterprise.users.update" call. Exactly one of *User or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *User.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether 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. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.