Documentation ¶
Overview ¶
Package androidenterprise provides access to the Google Play EMM API.
Usage example:
import "google.golang.org/api/androidenterprise/v1" ... androidenterpriseService, err := androidenterprise.New(oauthHttpClient)
Index ¶
- Constants
- type AppRestrictionsSchema
- type AppRestrictionsSchemaRestriction
- type AppRestrictionsSchemaRestrictionRestrictionValue
- type Collection
- type CollectionViewersListResponse
- type CollectionsDeleteCall
- type CollectionsGetCall
- type CollectionsInsertCall
- type 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
- type 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
- type 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 EnterprisesDeleteCall
- type EnterprisesEnrollCall
- type EnterprisesGetCall
- type EnterprisesInsertCall
- type EnterprisesListCall
- type EnterprisesListResponse
- type EnterprisesService
- func (r *EnterprisesService) Delete(enterpriseId string) *EnterprisesDeleteCall
- func (r *EnterprisesService) Enroll(token string, enterprise *Enterprise) *EnterprisesEnrollCall
- func (r *EnterprisesService) Get(enterpriseId string) *EnterprisesGetCall
- func (r *EnterprisesService) Insert(token string, enterprise *Enterprise) *EnterprisesInsertCall
- func (r *EnterprisesService) List(domain string) *EnterprisesListCall
- func (r *EnterprisesService) SetAccount(enterpriseId string, enterpriseaccount *EnterpriseAccount) *EnterprisesSetAccountCall
- func (r *EnterprisesService) Unenroll(enterpriseId string) *EnterprisesUnenrollCall
- type EnterprisesSetAccountCall
- type EnterprisesUnenrollCall
- type Entitlement
- type EntitlementsDeleteCall
- type EntitlementsGetCall
- type EntitlementsListCall
- type EntitlementsListResponse
- type 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
- type GroupLicense
- type GroupLicenseUsersListResponse
- type GroupLicensesListResponse
- type GrouplicensesGetCall
- type GrouplicensesListCall
- type GrouplicensesService
- type GrouplicenseusersListCall
- type GrouplicenseusersService
- type Install
- type InstallsDeleteCall
- type InstallsGetCall
- type 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 Permission
- type PermissionsGetCall
- type PermissionsService
- type Product
- type ProductPermission
- type ProductPermissions
- type ProductsGetAppRestrictionsSchemaCall
- func (c *ProductsGetAppRestrictionsSchemaCall) Do() (*AppRestrictionsSchema, error)
- func (c *ProductsGetAppRestrictionsSchemaCall) Fields(s ...googleapi.Field) *ProductsGetAppRestrictionsSchemaCall
- func (c *ProductsGetAppRestrictionsSchemaCall) Language(language string) *ProductsGetAppRestrictionsSchemaCall
- type ProductsGetCall
- type ProductsGetPermissionsCall
- type ProductsService
- 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) UpdatePermissions(enterpriseId string, productId string, productpermissions *ProductPermissions) *ProductsUpdatePermissionsCall
- type ProductsUpdatePermissionsCall
- type Service
- type User
- type UserToken
- type UsersGenerateTokenCall
- type UsersGetCall
- type UsersListCall
- type UsersListResponse
- type UsersRevokeTokenCall
- type UsersService
- func (r *UsersService) GenerateToken(enterpriseId string, userId string) *UsersGenerateTokenCall
- func (r *UsersService) Get(enterpriseId string, userId string) *UsersGetCall
- func (r *UsersService) List(enterpriseId string, email string) *UsersListCall
- func (r *UsersService) RevokeToken(enterpriseId string, userId string) *UsersRevokeTokenCall
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 AppRestrictionsSchema ¶
type AppRestrictionsSchema struct { // Restrictions: The set of restrictions that make up this schema. Restrictions []*AppRestrictionsSchemaRestriction `json:"restrictions,omitempty"` }
type AppRestrictionsSchemaRestriction ¶
type AppRestrictionsSchemaRestriction struct { // DefaultValue: The default value of the restriction. 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. 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"` // RestrictionType: The type of the restriction. RestrictionType string `json:"restrictionType,omitempty"` // Title: The name of the restriction. Title string `json:"title,omitempty"` }
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"` }
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 // collection_viewers api. Even if a collection is visible to allUsers, // it is possible to add and remove viewers, but this will have no // effect until the collection's visibility changes to viewersOnly. Visibility string `json:"visibility,omitempty"` }
type CollectionsDeleteCall ¶
type CollectionsDeleteCall struct {
// contains filtered or unexported fields
}
func (*CollectionsDeleteCall) Do ¶
func (c *CollectionsDeleteCall) Do() error
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) Do ¶
func (c *CollectionsGetCall) Do() (*Collection, error)
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.
type CollectionsInsertCall ¶
type CollectionsInsertCall struct {
// contains filtered or unexported fields
}
func (*CollectionsInsertCall) Do ¶
func (c *CollectionsInsertCall) Do() (*Collection, error)
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) Do ¶
func (c *CollectionsListCall) Do() (*CollectionsListResponse, error)
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.
type CollectionsListResponse ¶
type CollectionsListResponse struct { // Collection: An ordered collection of products which can be made // visible on the Google Play Store app 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"` }
type CollectionsPatchCall ¶
type CollectionsPatchCall struct {
// contains filtered or unexported fields
}
func (*CollectionsPatchCall) Do ¶
func (c *CollectionsPatchCall) Do() (*Collection, error)
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) Do ¶
func (c *CollectionsUpdateCall) Do() (*Collection, error)
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) Do ¶
func (c *CollectionviewersDeleteCall) Do() error
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) Do ¶
func (c *CollectionviewersGetCall) Do() (*User, error)
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.
type CollectionviewersListCall ¶
type CollectionviewersListCall struct {
// contains filtered or unexported fields
}
func (*CollectionviewersListCall) Do ¶
func (c *CollectionviewersListCall) Do() (*CollectionViewersListResponse, error)
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.
type CollectionviewersPatchCall ¶
type CollectionviewersPatchCall struct {
// contains filtered or unexported fields
}
func (*CollectionviewersPatchCall) Do ¶
func (c *CollectionviewersPatchCall) Do() (*User, error)
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) Do ¶
func (c *CollectionviewersUpdateCall) Do() (*User, error)
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: The mechanism by which this device is managed by the // MDM. "managedDevice" means that the MDM's app is a device owner. // "managedProfile" means that the MDM's app is the profile owner (and // there is a separate personal profile which is not managed). // "containerApp" means that the MDM's app is managing the Android for // Work container app on the device. ManagementType string `json:"managementType,omitempty"` }
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"` }
type DevicesGetCall ¶
type DevicesGetCall struct {
// contains filtered or unexported fields
}
func (*DevicesGetCall) Do ¶
func (c *DevicesGetCall) Do() (*Device, error)
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.
type DevicesGetStateCall ¶
type DevicesGetStateCall struct {
// contains filtered or unexported fields
}
func (*DevicesGetStateCall) Do ¶
func (c *DevicesGetStateCall) Do() (*DeviceState, error)
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.
type DevicesListCall ¶
type DevicesListCall struct {
// contains filtered or unexported fields
}
func (*DevicesListCall) Do ¶
func (c *DevicesListCall) Do() (*DevicesListResponse, error)
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.
type DevicesListResponse ¶
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 is enabled or disabled for access by the user to Google services. 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.
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 is enabled or disabled for access by the user to Google services. 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.
type DevicesSetStateCall ¶
type DevicesSetStateCall struct {
// contains filtered or unexported fields
}
func (*DevicesSetStateCall) Do ¶
func (c *DevicesSetStateCall) Do() (*DeviceState, error)
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 { // 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, e.g. "Example Inc". Name string `json:"name,omitempty"` // PrimaryDomain: The enterprise's primary domain, e.g. "example.com". PrimaryDomain string `json:"primaryDomain,omitempty"` }
type EnterpriseAccount ¶
type EnterprisesDeleteCall ¶
type EnterprisesDeleteCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesDeleteCall) Do ¶
func (c *EnterprisesDeleteCall) Do() error
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) Do ¶
func (c *EnterprisesEnrollCall) Do() (*Enterprise, error)
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 EnterprisesGetCall ¶
type EnterprisesGetCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesGetCall) Do ¶
func (c *EnterprisesGetCall) Do() (*Enterprise, error)
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.
type EnterprisesInsertCall ¶
type EnterprisesInsertCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesInsertCall) Do ¶
func (c *EnterprisesInsertCall) Do() (*Enterprise, error)
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) Do ¶
func (c *EnterprisesListCall) Do() (*EnterprisesListResponse, error)
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.
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"` }
type EnterprisesService ¶
type EnterprisesService struct {
// contains filtered or unexported fields
}
func NewEnterprisesService ¶
func NewEnterprisesService(s *Service) *EnterprisesService
func (*EnterprisesService) Delete ¶
func (r *EnterprisesService) Delete(enterpriseId string) *EnterprisesDeleteCall
Delete: Deletes the binding between the MDM 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 MDM.
func (*EnterprisesService) Get ¶
func (r *EnterprisesService) Get(enterpriseId string) *EnterprisesGetCall
Get: Retrieves the name and domain of an enterprise.
func (*EnterprisesService) Insert ¶
func (r *EnterprisesService) Insert(token string, enterprise *Enterprise) *EnterprisesInsertCall
Insert: Establishes the binding between the MDM 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.
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) Unenroll ¶
func (r *EnterprisesService) Unenroll(enterpriseId string) *EnterprisesUnenrollCall
Unenroll: Unenrolls an enterprise from the calling MDM.
type EnterprisesSetAccountCall ¶
type EnterprisesSetAccountCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesSetAccountCall) Do ¶
func (c *EnterprisesSetAccountCall) Do() (*EnterpriseAccount, error)
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 EnterprisesUnenrollCall ¶
type EnterprisesUnenrollCall struct {
// contains filtered or unexported fields
}
func (*EnterprisesUnenrollCall) Do ¶
func (c *EnterprisesUnenrollCall) Do() error
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"` }
type EntitlementsDeleteCall ¶
type EntitlementsDeleteCall struct {
// contains filtered or unexported fields
}
func (*EntitlementsDeleteCall) Do ¶
func (c *EntitlementsDeleteCall) Do() error
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) Do ¶
func (c *EntitlementsGetCall) Do() (*Entitlement, error)
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.
type EntitlementsListCall ¶
type EntitlementsListCall struct {
// contains filtered or unexported fields
}
func (*EntitlementsListCall) Do ¶
func (c *EntitlementsListCall) Do() (*EntitlementsListResponse, error)
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.
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"` }
type EntitlementsPatchCall ¶
type EntitlementsPatchCall struct {
// contains filtered or unexported fields
}
func (*EntitlementsPatchCall) Do ¶
func (c *EntitlementsPatchCall) Do() (*Entitlement, error)
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) Do ¶
func (c *EntitlementsUpdateCall) Do() (*Entitlement, error)
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"` }
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"` }
type GrouplicensesGetCall ¶
type GrouplicensesGetCall struct {
// contains filtered or unexported fields
}
func (*GrouplicensesGetCall) Do ¶
func (c *GrouplicensesGetCall) Do() (*GroupLicense, error)
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.
type GrouplicensesListCall ¶
type GrouplicensesListCall struct {
// contains filtered or unexported fields
}
func (*GrouplicensesListCall) Do ¶
func (c *GrouplicensesListCall) Do() (*GroupLicensesListResponse, error)
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.
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) Do ¶
func (c *GrouplicenseusersListCall) Do() (*GroupLicenseUsersListResponse, error)
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.
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"` }
type InstallsDeleteCall ¶
type InstallsDeleteCall struct {
// contains filtered or unexported fields
}
func (*InstallsDeleteCall) Do ¶
func (c *InstallsDeleteCall) Do() error
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) Do ¶
func (c *InstallsGetCall) Do() (*Install, error)
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.
type InstallsListCall ¶
type InstallsListCall struct {
// contains filtered or unexported fields
}
func (*InstallsListCall) Do ¶
func (c *InstallsListCall) Do() (*InstallsListResponse, error)
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.
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"` }
type InstallsPatchCall ¶
type InstallsPatchCall struct {
// contains filtered or unexported fields
}
func (*InstallsPatchCall) Do ¶
func (c *InstallsPatchCall) Do() (*Install, error)
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) Do ¶
func (c *InstallsUpdateCall) Do() (*Install, error)
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 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"` }
type PermissionsGetCall ¶
type PermissionsGetCall struct {
// contains filtered or unexported fields
}
func (*PermissionsGetCall) Do ¶
func (c *PermissionsGetCall) Do() (*Permission, error)
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) 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 { // 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"` // IconUrl: A link to an image that can be used as an icon for the // product. 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: // " - e.g. "app:com.google.android.gm" represents the GMail app. ProductId string `json:"productId,omitempty"` // RequiresContainerApp: Whether this app can only be installed on // devices using the Android for Work container app. RequiresContainerApp *bool `json:"requiresContainerApp,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"` }
type ProductPermission ¶
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"` }
type ProductsGetAppRestrictionsSchemaCall ¶
type ProductsGetAppRestrictionsSchemaCall struct {
// contains filtered or unexported fields
}
func (*ProductsGetAppRestrictionsSchemaCall) Do ¶
func (c *ProductsGetAppRestrictionsSchemaCall) Do() (*AppRestrictionsSchema, error)
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) 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) Do ¶
func (c *ProductsGetCall) Do() (*Product, error)
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) 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) Do ¶
func (c *ProductsGetPermissionsCall) Do() (*ProductPermissions, error)
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.
type ProductsService ¶
type ProductsService struct {
// contains filtered or unexported fields
}
func NewProductsService ¶
func NewProductsService(s *Service) *ProductsService
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 defining app restrictions configurable for this product. All products have a schema, but this may be empty if no app restrictions are defined.
func (*ProductsService) GetPermissions ¶
func (r *ProductsService) GetPermissions(enterpriseId string, productId string) *ProductsGetPermissionsCall
GetPermissions: Retrieves the Android app permissions required by this app.
func (*ProductsService) UpdatePermissions ¶
func (r *ProductsService) UpdatePermissions(enterpriseId string, productId string, productpermissions *ProductPermissions) *ProductsUpdatePermissionsCall
UpdatePermissions: Updates the set of Android app permissions for this app that have been accepted by the enterprise.
type ProductsUpdatePermissionsCall ¶
type ProductsUpdatePermissionsCall struct {
// contains filtered or unexported fields
}
func (*ProductsUpdatePermissionsCall) Do ¶
func (c *ProductsUpdatePermissionsCall) Do() (*ProductPermissions, error)
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 Permissions *PermissionsService Products *ProductsService Users *UsersService // contains filtered or unexported fields }
type User ¶
type User struct { // 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"` // PrimaryEmail: The user's primary email, e.g. "jsmith@example.com". PrimaryEmail string `json:"primaryEmail,omitempty"` }
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"` }
type UsersGenerateTokenCall ¶
type UsersGenerateTokenCall struct {
// contains filtered or unexported fields
}
func (*UsersGenerateTokenCall) Do ¶
func (c *UsersGenerateTokenCall) Do() (*UserToken, error)
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 UsersGetCall ¶
type UsersGetCall struct {
// contains filtered or unexported fields
}
func (*UsersGetCall) Do ¶
func (c *UsersGetCall) Do() (*User, error)
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.
type UsersListCall ¶
type UsersListCall struct {
// contains filtered or unexported fields
}
func (*UsersListCall) Do ¶
func (c *UsersListCall) Do() (*UsersListResponse, error)
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.
type UsersListResponse ¶
type UsersRevokeTokenCall ¶
type UsersRevokeTokenCall struct {
// contains filtered or unexported fields
}
func (*UsersRevokeTokenCall) Do ¶
func (c *UsersRevokeTokenCall) Do() error
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) 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.
func (*UsersService) Get ¶
func (r *UsersService) Get(enterpriseId string, userId string) *UsersGetCall
Get: Retrieves a user's details.
func (*UsersService) List ¶
func (r *UsersService) List(enterpriseId string, email string) *UsersListCall
List: Looks up a user by email address.
func (*UsersService) RevokeToken ¶
func (r *UsersService) RevokeToken(enterpriseId string, userId string) *UsersRevokeTokenCall
RevokeToken: Revokes a previously generated token (activation code) for the user.