Documentation ¶
Overview ¶
Package admin provides access to the Admin Directory API.
See https://developers.google.com/admin-sdk/directory/
Usage example:
import "google.golang.org/api/admin/directory_v1" ... adminService, err := admin.New(oauthHttpClient)
Index ¶
- Constants
- type Alias
- type Aliases
- type Asp
- type Asps
- type AspsDeleteCall
- type AspsGetCall
- type AspsListCall
- type AspsService
- type Channel
- type ChannelsService
- type ChannelsStopCall
- type ChromeOsDevice
- type ChromeOsDeviceActiveTimeRanges
- type ChromeOsDeviceRecentUsers
- type ChromeOsDevices
- type ChromeosdevicesGetCall
- type ChromeosdevicesListCall
- func (c *ChromeosdevicesListCall) Do() (*ChromeOsDevices, error)
- func (c *ChromeosdevicesListCall) Fields(s ...googleapi.Field) *ChromeosdevicesListCall
- func (c *ChromeosdevicesListCall) MaxResults(maxResults int64) *ChromeosdevicesListCall
- func (c *ChromeosdevicesListCall) OrderBy(orderBy string) *ChromeosdevicesListCall
- func (c *ChromeosdevicesListCall) PageToken(pageToken string) *ChromeosdevicesListCall
- func (c *ChromeosdevicesListCall) Projection(projection string) *ChromeosdevicesListCall
- func (c *ChromeosdevicesListCall) Query(query string) *ChromeosdevicesListCall
- func (c *ChromeosdevicesListCall) SortOrder(sortOrder string) *ChromeosdevicesListCall
- type ChromeosdevicesPatchCall
- type ChromeosdevicesService
- func (r *ChromeosdevicesService) Get(customerId string, deviceId string) *ChromeosdevicesGetCall
- func (r *ChromeosdevicesService) List(customerId string) *ChromeosdevicesListCall
- func (r *ChromeosdevicesService) Patch(customerId string, deviceId string, chromeosdevice *ChromeOsDevice) *ChromeosdevicesPatchCall
- func (r *ChromeosdevicesService) Update(customerId string, deviceId string, chromeosdevice *ChromeOsDevice) *ChromeosdevicesUpdateCall
- type ChromeosdevicesUpdateCall
- type Group
- type Groups
- type GroupsAliasesDeleteCall
- type GroupsAliasesInsertCall
- type GroupsAliasesListCall
- type GroupsAliasesService
- type GroupsDeleteCall
- type GroupsGetCall
- type GroupsInsertCall
- type GroupsListCall
- func (c *GroupsListCall) Customer(customer string) *GroupsListCall
- func (c *GroupsListCall) Do() (*Groups, error)
- func (c *GroupsListCall) Domain(domain string) *GroupsListCall
- func (c *GroupsListCall) Fields(s ...googleapi.Field) *GroupsListCall
- func (c *GroupsListCall) MaxResults(maxResults int64) *GroupsListCall
- func (c *GroupsListCall) PageToken(pageToken string) *GroupsListCall
- func (c *GroupsListCall) UserKey(userKey string) *GroupsListCall
- type GroupsPatchCall
- type GroupsService
- func (r *GroupsService) Delete(groupKey string) *GroupsDeleteCall
- func (r *GroupsService) Get(groupKey string) *GroupsGetCall
- func (r *GroupsService) Insert(group *Group) *GroupsInsertCall
- func (r *GroupsService) List() *GroupsListCall
- func (r *GroupsService) Patch(groupKey string, group *Group) *GroupsPatchCall
- func (r *GroupsService) Update(groupKey string, group *Group) *GroupsUpdateCall
- type GroupsUpdateCall
- type Member
- type Members
- type MembersDeleteCall
- type MembersGetCall
- type MembersInsertCall
- type MembersListCall
- func (c *MembersListCall) Do() (*Members, error)
- func (c *MembersListCall) Fields(s ...googleapi.Field) *MembersListCall
- func (c *MembersListCall) MaxResults(maxResults int64) *MembersListCall
- func (c *MembersListCall) PageToken(pageToken string) *MembersListCall
- func (c *MembersListCall) Roles(roles string) *MembersListCall
- type MembersPatchCall
- type MembersService
- func (r *MembersService) Delete(groupKey string, memberKey string) *MembersDeleteCall
- func (r *MembersService) Get(groupKey string, memberKey string) *MembersGetCall
- func (r *MembersService) Insert(groupKey string, member *Member) *MembersInsertCall
- func (r *MembersService) List(groupKey string) *MembersListCall
- func (r *MembersService) Patch(groupKey string, memberKey string, member *Member) *MembersPatchCall
- func (r *MembersService) Update(groupKey string, memberKey string, member *Member) *MembersUpdateCall
- type MembersUpdateCall
- type MobileDevice
- type MobileDeviceAction
- type MobileDeviceApplications
- type MobileDevices
- type MobiledevicesActionCall
- type MobiledevicesDeleteCall
- type MobiledevicesGetCall
- type MobiledevicesListCall
- func (c *MobiledevicesListCall) Do() (*MobileDevices, error)
- func (c *MobiledevicesListCall) Fields(s ...googleapi.Field) *MobiledevicesListCall
- func (c *MobiledevicesListCall) MaxResults(maxResults int64) *MobiledevicesListCall
- func (c *MobiledevicesListCall) OrderBy(orderBy string) *MobiledevicesListCall
- func (c *MobiledevicesListCall) PageToken(pageToken string) *MobiledevicesListCall
- func (c *MobiledevicesListCall) Projection(projection string) *MobiledevicesListCall
- func (c *MobiledevicesListCall) Query(query string) *MobiledevicesListCall
- func (c *MobiledevicesListCall) SortOrder(sortOrder string) *MobiledevicesListCall
- type MobiledevicesService
- func (r *MobiledevicesService) Action(customerId string, resourceId string, mobiledeviceaction *MobileDeviceAction) *MobiledevicesActionCall
- func (r *MobiledevicesService) Delete(customerId string, resourceId string) *MobiledevicesDeleteCall
- func (r *MobiledevicesService) Get(customerId string, resourceId string) *MobiledevicesGetCall
- func (r *MobiledevicesService) List(customerId string) *MobiledevicesListCall
- type Notification
- type Notifications
- type NotificationsDeleteCall
- type NotificationsGetCall
- type NotificationsListCall
- func (c *NotificationsListCall) Do() (*Notifications, error)
- func (c *NotificationsListCall) Fields(s ...googleapi.Field) *NotificationsListCall
- func (c *NotificationsListCall) Language(language string) *NotificationsListCall
- func (c *NotificationsListCall) MaxResults(maxResults int64) *NotificationsListCall
- func (c *NotificationsListCall) PageToken(pageToken string) *NotificationsListCall
- type NotificationsPatchCall
- type NotificationsService
- func (r *NotificationsService) Delete(customer string, notificationId string) *NotificationsDeleteCall
- func (r *NotificationsService) Get(customer string, notificationId string) *NotificationsGetCall
- func (r *NotificationsService) List(customer string) *NotificationsListCall
- func (r *NotificationsService) Patch(customer string, notificationId string, notification *Notification) *NotificationsPatchCall
- func (r *NotificationsService) Update(customer string, notificationId string, notification *Notification) *NotificationsUpdateCall
- type NotificationsUpdateCall
- type OrgUnit
- type OrgUnits
- type OrgunitsDeleteCall
- type OrgunitsGetCall
- type OrgunitsInsertCall
- type OrgunitsListCall
- type OrgunitsPatchCall
- type OrgunitsService
- func (r *OrgunitsService) Delete(customerId string, orgUnitPath []string) *OrgunitsDeleteCall
- func (r *OrgunitsService) Get(customerId string, orgUnitPath []string) *OrgunitsGetCall
- func (r *OrgunitsService) Insert(customerId string, orgunit *OrgUnit) *OrgunitsInsertCall
- func (r *OrgunitsService) List(customerId string) *OrgunitsListCall
- func (r *OrgunitsService) Patch(customerId string, orgUnitPath []string, orgunit *OrgUnit) *OrgunitsPatchCall
- func (r *OrgunitsService) Update(customerId string, orgUnitPath []string, orgunit *OrgUnit) *OrgunitsUpdateCall
- type OrgunitsUpdateCall
- type Schema
- type SchemaFieldSpec
- type SchemaFieldSpecNumericIndexingSpec
- type Schemas
- type SchemasDeleteCall
- type SchemasGetCall
- type SchemasInsertCall
- type SchemasListCall
- type SchemasPatchCall
- type SchemasService
- func (r *SchemasService) Delete(customerId string, schemaKey string) *SchemasDeleteCall
- func (r *SchemasService) Get(customerId string, schemaKey string) *SchemasGetCall
- func (r *SchemasService) Insert(customerId string, schema *Schema) *SchemasInsertCall
- func (r *SchemasService) List(customerId string) *SchemasListCall
- func (r *SchemasService) Patch(customerId string, schemaKey string, schema *Schema) *SchemasPatchCall
- func (r *SchemasService) Update(customerId string, schemaKey string, schema *Schema) *SchemasUpdateCall
- type SchemasUpdateCall
- type Service
- type Token
- type Tokens
- type TokensDeleteCall
- type TokensGetCall
- type TokensListCall
- type TokensService
- type User
- type UserAbout
- type UserAddress
- type UserCustomProperties
- type UserEmail
- type UserExternalId
- type UserIm
- type UserMakeAdmin
- type UserName
- type UserOrganization
- type UserPhone
- type UserPhoto
- type UserRelation
- type UserUndelete
- type UserWebsite
- type Users
- type UsersAliasesDeleteCall
- type UsersAliasesInsertCall
- type UsersAliasesListCall
- type UsersAliasesService
- func (r *UsersAliasesService) Delete(userKey string, alias string) *UsersAliasesDeleteCall
- func (r *UsersAliasesService) Insert(userKey string, alias *Alias) *UsersAliasesInsertCall
- func (r *UsersAliasesService) List(userKey string) *UsersAliasesListCall
- func (r *UsersAliasesService) Watch(userKey string, channel *Channel) *UsersAliasesWatchCall
- type UsersAliasesWatchCall
- type UsersDeleteCall
- type UsersGetCall
- func (c *UsersGetCall) CustomFieldMask(customFieldMask string) *UsersGetCall
- func (c *UsersGetCall) Do() (*User, error)
- func (c *UsersGetCall) Fields(s ...googleapi.Field) *UsersGetCall
- func (c *UsersGetCall) Projection(projection string) *UsersGetCall
- func (c *UsersGetCall) ViewType(viewType string) *UsersGetCall
- type UsersInsertCall
- type UsersListCall
- func (c *UsersListCall) CustomFieldMask(customFieldMask string) *UsersListCall
- func (c *UsersListCall) Customer(customer string) *UsersListCall
- func (c *UsersListCall) Do() (*Users, error)
- func (c *UsersListCall) Domain(domain string) *UsersListCall
- func (c *UsersListCall) Event(event string) *UsersListCall
- func (c *UsersListCall) Fields(s ...googleapi.Field) *UsersListCall
- func (c *UsersListCall) MaxResults(maxResults int64) *UsersListCall
- func (c *UsersListCall) OrderBy(orderBy string) *UsersListCall
- func (c *UsersListCall) PageToken(pageToken string) *UsersListCall
- func (c *UsersListCall) Projection(projection string) *UsersListCall
- func (c *UsersListCall) Query(query string) *UsersListCall
- func (c *UsersListCall) ShowDeleted(showDeleted string) *UsersListCall
- func (c *UsersListCall) SortOrder(sortOrder string) *UsersListCall
- func (c *UsersListCall) ViewType(viewType string) *UsersListCall
- type UsersMakeAdminCall
- type UsersPatchCall
- type UsersPhotosDeleteCall
- type UsersPhotosGetCall
- type UsersPhotosPatchCall
- type UsersPhotosService
- func (r *UsersPhotosService) Delete(userKey string) *UsersPhotosDeleteCall
- func (r *UsersPhotosService) Get(userKey string) *UsersPhotosGetCall
- func (r *UsersPhotosService) Patch(userKey string, userphoto *UserPhoto) *UsersPhotosPatchCall
- func (r *UsersPhotosService) Update(userKey string, userphoto *UserPhoto) *UsersPhotosUpdateCall
- type UsersPhotosUpdateCall
- type UsersService
- func (r *UsersService) Delete(userKey string) *UsersDeleteCall
- func (r *UsersService) Get(userKey string) *UsersGetCall
- func (r *UsersService) Insert(user *User) *UsersInsertCall
- func (r *UsersService) List() *UsersListCall
- func (r *UsersService) MakeAdmin(userKey string, usermakeadmin *UserMakeAdmin) *UsersMakeAdminCall
- func (r *UsersService) Patch(userKey string, user *User) *UsersPatchCall
- func (r *UsersService) Undelete(userKey string, userundelete *UserUndelete) *UsersUndeleteCall
- func (r *UsersService) Update(userKey string, user *User) *UsersUpdateCall
- func (r *UsersService) Watch(channel *Channel) *UsersWatchCall
- type UsersUndeleteCall
- type UsersUpdateCall
- type UsersWatchCall
- func (c *UsersWatchCall) CustomFieldMask(customFieldMask string) *UsersWatchCall
- func (c *UsersWatchCall) Customer(customer string) *UsersWatchCall
- func (c *UsersWatchCall) Do() (*Channel, error)
- func (c *UsersWatchCall) Domain(domain string) *UsersWatchCall
- func (c *UsersWatchCall) Event(event string) *UsersWatchCall
- func (c *UsersWatchCall) Fields(s ...googleapi.Field) *UsersWatchCall
- func (c *UsersWatchCall) MaxResults(maxResults int64) *UsersWatchCall
- func (c *UsersWatchCall) OrderBy(orderBy string) *UsersWatchCall
- func (c *UsersWatchCall) PageToken(pageToken string) *UsersWatchCall
- func (c *UsersWatchCall) Projection(projection string) *UsersWatchCall
- func (c *UsersWatchCall) Query(query string) *UsersWatchCall
- func (c *UsersWatchCall) ShowDeleted(showDeleted string) *UsersWatchCall
- func (c *UsersWatchCall) SortOrder(sortOrder string) *UsersWatchCall
- func (c *UsersWatchCall) ViewType(viewType string) *UsersWatchCall
- type VerificationCode
- type VerificationCodes
- type VerificationCodesGenerateCall
- type VerificationCodesInvalidateCall
- type VerificationCodesListCall
- type VerificationCodesService
Constants ¶
const ( // View and manage your Chrome OS devices' metadata AdminDirectoryDeviceChromeosScope = "https://www.googleapis.com/auth/admin.directory.device.chromeos" // View your Chrome OS devices' metadata AdminDirectoryDeviceChromeosReadonlyScope = "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly" // View and manage your mobile devices' metadata AdminDirectoryDeviceMobileScope = "https://www.googleapis.com/auth/admin.directory.device.mobile" // Manage your mobile devices by performing administrative tasks AdminDirectoryDeviceMobileActionScope = "https://www.googleapis.com/auth/admin.directory.device.mobile.action" // View your mobile devices' metadata AdminDirectoryDeviceMobileReadonlyScope = "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly" // View and manage the provisioning of groups on your domain AdminDirectoryGroupScope = "https://www.googleapis.com/auth/admin.directory.group" // View and manage group subscriptions on your domain AdminDirectoryGroupMemberScope = "https://www.googleapis.com/auth/admin.directory.group.member" // View group subscriptions on your domain AdminDirectoryGroupMemberReadonlyScope = "https://www.googleapis.com/auth/admin.directory.group.member.readonly" // View groups on your domain AdminDirectoryGroupReadonlyScope = "https://www.googleapis.com/auth/admin.directory.group.readonly" // View and manage notifications received on your domain AdminDirectoryNotificationsScope = "https://www.googleapis.com/auth/admin.directory.notifications" // View and manage organization units on your domain AdminDirectoryOrgunitScope = "https://www.googleapis.com/auth/admin.directory.orgunit" // View organization units on your domain AdminDirectoryOrgunitReadonlyScope = "https://www.googleapis.com/auth/admin.directory.orgunit.readonly" // View and manage the provisioning of users on your domain AdminDirectoryUserScope = "https://www.googleapis.com/auth/admin.directory.user" // View and manage user aliases on your domain AdminDirectoryUserAliasScope = "https://www.googleapis.com/auth/admin.directory.user.alias" // View user aliases on your domain AdminDirectoryUserAliasReadonlyScope = "https://www.googleapis.com/auth/admin.directory.user.alias.readonly" // View users on your domain AdminDirectoryUserReadonlyScope = "https://www.googleapis.com/auth/admin.directory.user.readonly" // Manage data access permissions for users on your domain AdminDirectoryUserSecurityScope = "https://www.googleapis.com/auth/admin.directory.user.security" // View and manage the provisioning of user schemas on your domain AdminDirectoryUserschemaScope = "https://www.googleapis.com/auth/admin.directory.userschema" // View user schemas on your domain AdminDirectoryUserschemaReadonlyScope = "https://www.googleapis.com/auth/admin.directory.userschema.readonly" )
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Alias ¶
type Alias struct { // Alias: A alias email Alias string `json:"alias,omitempty"` // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Id: Unique id of the group (Read-only) Unique id of the user // (Read-only) Id string `json:"id,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // PrimaryEmail: Group's primary email (Read-only) User's primary email // (Read-only) PrimaryEmail string `json:"primaryEmail,omitempty"` }
type Asp ¶
type Asp struct { // CodeId: The unique ID of the ASP. CodeId int64 `json:"codeId,omitempty"` // CreationTime: The time when the ASP was created. Expressed in Unix // time format. CreationTime int64 `json:"creationTime,omitempty,string"` // Etag: ETag of the ASP. Etag string `json:"etag,omitempty"` // Kind: The type of the API resource. This is always // admin#directory#asp. Kind string `json:"kind,omitempty"` // LastTimeUsed: The time when the ASP was last used. Expressed in Unix // time format. LastTimeUsed int64 `json:"lastTimeUsed,omitempty,string"` // Name: The name of the application that the user, represented by their // userId, entered when the ASP was created. Name string `json:"name,omitempty"` // UserKey: The unique ID of the user who issued the ASP. UserKey string `json:"userKey,omitempty"` }
type AspsDeleteCall ¶
type AspsDeleteCall struct {
// contains filtered or unexported fields
}
func (*AspsDeleteCall) Do ¶
func (c *AspsDeleteCall) Do() error
func (*AspsDeleteCall) Fields ¶
func (c *AspsDeleteCall) Fields(s ...googleapi.Field) *AspsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type AspsGetCall ¶
type AspsGetCall struct {
// contains filtered or unexported fields
}
func (*AspsGetCall) Do ¶
func (c *AspsGetCall) Do() (*Asp, error)
func (*AspsGetCall) Fields ¶
func (c *AspsGetCall) Fields(s ...googleapi.Field) *AspsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type AspsListCall ¶
type AspsListCall struct {
// contains filtered or unexported fields
}
func (*AspsListCall) Do ¶
func (c *AspsListCall) Do() (*Asps, error)
func (*AspsListCall) Fields ¶
func (c *AspsListCall) Fields(s ...googleapi.Field) *AspsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type AspsService ¶
type AspsService struct {
// contains filtered or unexported fields
}
func NewAspsService ¶
func NewAspsService(s *Service) *AspsService
func (*AspsService) Delete ¶
func (r *AspsService) Delete(userKey string, codeId int64) *AspsDeleteCall
Delete: Delete an ASP issued by a user.
func (*AspsService) Get ¶
func (r *AspsService) Get(userKey string, codeId int64) *AspsGetCall
Get: Get information about an ASP issued by a user.
func (*AspsService) List ¶
func (r *AspsService) List(userKey string) *AspsListCall
List: List the ASPs issued by a user.
type Channel ¶
type Channel struct { // Address: The address where notifications are delivered for this // channel. Address string `json:"address,omitempty"` // Expiration: Date and time of notification channel expiration, // expressed as a Unix timestamp, in milliseconds. Optional. Expiration int64 `json:"expiration,omitempty,string"` // Id: A UUID or similar unique string that identifies this channel. Id string `json:"id,omitempty"` // Kind: Identifies this as a notification channel used to watch for // changes to a resource. Value: the fixed string "api#channel". Kind string `json:"kind,omitempty"` // Params: Additional parameters controlling delivery channel behavior. // Optional. Params map[string]string `json:"params,omitempty"` // Payload: A Boolean value to indicate whether payload is wanted. // Optional. Payload bool `json:"payload,omitempty"` // ResourceId: An opaque ID that identifies the resource being watched // on this channel. Stable across different API versions. ResourceId string `json:"resourceId,omitempty"` // ResourceUri: A version-specific identifier for the watched resource. ResourceUri string `json:"resourceUri,omitempty"` // Token: An arbitrary string delivered to the target address with each // notification delivered over this channel. Optional. Token string `json:"token,omitempty"` // Type: The type of delivery mechanism used for this channel. Type string `json:"type,omitempty"` }
type ChannelsService ¶
type ChannelsService struct {
// contains filtered or unexported fields
}
func NewChannelsService ¶
func NewChannelsService(s *Service) *ChannelsService
func (*ChannelsService) Stop ¶
func (r *ChannelsService) Stop(channel *Channel) *ChannelsStopCall
Stop: Stop watching resources through this channel
type ChannelsStopCall ¶
type ChannelsStopCall struct {
// contains filtered or unexported fields
}
func (*ChannelsStopCall) Do ¶
func (c *ChannelsStopCall) Do() error
func (*ChannelsStopCall) Fields ¶
func (c *ChannelsStopCall) Fields(s ...googleapi.Field) *ChannelsStopCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type ChromeOsDevice ¶
type ChromeOsDevice struct { // ActiveTimeRanges: List of active time ranges (Read-only) ActiveTimeRanges []*ChromeOsDeviceActiveTimeRanges `json:"activeTimeRanges,omitempty"` // AnnotatedAssetId: AssetId specified during enrollment or through // later annotation AnnotatedAssetId string `json:"annotatedAssetId,omitempty"` // AnnotatedLocation: Address or location of the device as noted by the // administrator AnnotatedLocation string `json:"annotatedLocation,omitempty"` // AnnotatedUser: User of the device AnnotatedUser string `json:"annotatedUser,omitempty"` // BootMode: Chromebook boot mode (Read-only) BootMode string `json:"bootMode,omitempty"` // DeviceId: Unique identifier of Chrome OS Device (Read-only) DeviceId string `json:"deviceId,omitempty"` // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // EthernetMacAddress: Chromebook Mac Address on ethernet network // interface (Read-only) EthernetMacAddress string `json:"ethernetMacAddress,omitempty"` // FirmwareVersion: Chromebook firmware version (Read-only) FirmwareVersion string `json:"firmwareVersion,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // LastEnrollmentTime: Date and time the device was last enrolled // (Read-only) LastEnrollmentTime string `json:"lastEnrollmentTime,omitempty"` // LastSync: Date and time the device was last synchronized with the // policy settings in the Google Apps administrator control panel // (Read-only) LastSync string `json:"lastSync,omitempty"` // MacAddress: Chromebook Mac Address on wifi network interface // (Read-only) MacAddress string `json:"macAddress,omitempty"` // Meid: Mobile Equipment identifier for the 3G mobile card in the // Chromebook (Read-only) Meid string `json:"meid,omitempty"` // Model: Chromebook Model (Read-only) Model string `json:"model,omitempty"` // Notes: Notes added by the administrator Notes string `json:"notes,omitempty"` // OrderNumber: Chromebook order number (Read-only) OrderNumber string `json:"orderNumber,omitempty"` // OrgUnitPath: OrgUnit of the device OrgUnitPath string `json:"orgUnitPath,omitempty"` // OsVersion: Chromebook Os Version (Read-only) OsVersion string `json:"osVersion,omitempty"` // PlatformVersion: Chromebook platform version (Read-only) PlatformVersion string `json:"platformVersion,omitempty"` // RecentUsers: List of recent device users, in descending order by last // login time (Read-only) RecentUsers []*ChromeOsDeviceRecentUsers `json:"recentUsers,omitempty"` // SerialNumber: Chromebook serial number (Read-only) SerialNumber string `json:"serialNumber,omitempty"` // Status: status of the device (Read-only) Status string `json:"status,omitempty"` // SupportEndDate: Final date the device will be supported (Read-only) SupportEndDate string `json:"supportEndDate,omitempty"` // WillAutoRenew: Will Chromebook auto renew after support end date // (Read-only) WillAutoRenew bool `json:"willAutoRenew,omitempty"` }
type ChromeOsDevices ¶
type ChromeOsDevices struct { // Chromeosdevices: List of Chrome OS Device objects. Chromeosdevices []*ChromeOsDevice `json:"chromeosdevices,omitempty"` // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // NextPageToken: Token used to access next page of this result. NextPageToken string `json:"nextPageToken,omitempty"` }
type ChromeosdevicesGetCall ¶
type ChromeosdevicesGetCall struct {
// contains filtered or unexported fields
}
func (*ChromeosdevicesGetCall) Do ¶
func (c *ChromeosdevicesGetCall) Do() (*ChromeOsDevice, error)
func (*ChromeosdevicesGetCall) Fields ¶
func (c *ChromeosdevicesGetCall) Fields(s ...googleapi.Field) *ChromeosdevicesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ChromeosdevicesGetCall) Projection ¶
func (c *ChromeosdevicesGetCall) Projection(projection string) *ChromeosdevicesGetCall
Projection sets the optional parameter "projection": Restrict information returned to a set of selected fields.
type ChromeosdevicesListCall ¶
type ChromeosdevicesListCall struct {
// contains filtered or unexported fields
}
func (*ChromeosdevicesListCall) Do ¶
func (c *ChromeosdevicesListCall) Do() (*ChromeOsDevices, error)
func (*ChromeosdevicesListCall) Fields ¶
func (c *ChromeosdevicesListCall) Fields(s ...googleapi.Field) *ChromeosdevicesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ChromeosdevicesListCall) MaxResults ¶
func (c *ChromeosdevicesListCall) MaxResults(maxResults int64) *ChromeosdevicesListCall
MaxResults sets the optional parameter "maxResults": Maximum number of results to return. Default is 100
func (*ChromeosdevicesListCall) OrderBy ¶
func (c *ChromeosdevicesListCall) OrderBy(orderBy string) *ChromeosdevicesListCall
OrderBy sets the optional parameter "orderBy": Column to use for sorting results
func (*ChromeosdevicesListCall) PageToken ¶
func (c *ChromeosdevicesListCall) PageToken(pageToken string) *ChromeosdevicesListCall
PageToken sets the optional parameter "pageToken": Token to specify next page in the list
func (*ChromeosdevicesListCall) Projection ¶
func (c *ChromeosdevicesListCall) Projection(projection string) *ChromeosdevicesListCall
Projection sets the optional parameter "projection": Restrict information returned to a set of selected fields.
func (*ChromeosdevicesListCall) Query ¶
func (c *ChromeosdevicesListCall) Query(query string) *ChromeosdevicesListCall
Query sets the optional parameter "query": Search string in the format given at http://support.google.com/chromeos/a/bin/answer.py?hl=en&answer=169833 3
func (*ChromeosdevicesListCall) SortOrder ¶
func (c *ChromeosdevicesListCall) SortOrder(sortOrder string) *ChromeosdevicesListCall
SortOrder sets the optional parameter "sortOrder": Whether to return results in ascending or descending order. Only of use when orderBy is also used
type ChromeosdevicesPatchCall ¶
type ChromeosdevicesPatchCall struct {
// contains filtered or unexported fields
}
func (*ChromeosdevicesPatchCall) Do ¶
func (c *ChromeosdevicesPatchCall) Do() (*ChromeOsDevice, error)
func (*ChromeosdevicesPatchCall) Fields ¶
func (c *ChromeosdevicesPatchCall) Fields(s ...googleapi.Field) *ChromeosdevicesPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ChromeosdevicesPatchCall) Projection ¶
func (c *ChromeosdevicesPatchCall) Projection(projection string) *ChromeosdevicesPatchCall
Projection sets the optional parameter "projection": Restrict information returned to a set of selected fields.
type ChromeosdevicesService ¶
type ChromeosdevicesService struct {
// contains filtered or unexported fields
}
func NewChromeosdevicesService ¶
func NewChromeosdevicesService(s *Service) *ChromeosdevicesService
func (*ChromeosdevicesService) Get ¶
func (r *ChromeosdevicesService) Get(customerId string, deviceId string) *ChromeosdevicesGetCall
Get: Retrieve Chrome OS Device
func (*ChromeosdevicesService) List ¶
func (r *ChromeosdevicesService) List(customerId string) *ChromeosdevicesListCall
List: Retrieve all Chrome OS Devices of a customer (paginated)
func (*ChromeosdevicesService) Patch ¶
func (r *ChromeosdevicesService) Patch(customerId string, deviceId string, chromeosdevice *ChromeOsDevice) *ChromeosdevicesPatchCall
Patch: Update Chrome OS Device. This method supports patch semantics.
func (*ChromeosdevicesService) Update ¶
func (r *ChromeosdevicesService) Update(customerId string, deviceId string, chromeosdevice *ChromeOsDevice) *ChromeosdevicesUpdateCall
Update: Update Chrome OS Device
type ChromeosdevicesUpdateCall ¶
type ChromeosdevicesUpdateCall struct {
// contains filtered or unexported fields
}
func (*ChromeosdevicesUpdateCall) Do ¶
func (c *ChromeosdevicesUpdateCall) Do() (*ChromeOsDevice, error)
func (*ChromeosdevicesUpdateCall) Fields ¶
func (c *ChromeosdevicesUpdateCall) Fields(s ...googleapi.Field) *ChromeosdevicesUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*ChromeosdevicesUpdateCall) Projection ¶
func (c *ChromeosdevicesUpdateCall) Projection(projection string) *ChromeosdevicesUpdateCall
Projection sets the optional parameter "projection": Restrict information returned to a set of selected fields.
type Group ¶
type Group struct { // AdminCreated: Is the group created by admin (Read-only) * AdminCreated bool `json:"adminCreated,omitempty"` // Aliases: List of aliases (Read-only) Aliases []string `json:"aliases,omitempty"` // Description: Description of the group Description string `json:"description,omitempty"` // DirectMembersCount: Group direct members count DirectMembersCount int64 `json:"directMembersCount,omitempty,string"` // Email: Email of Group Email string `json:"email,omitempty"` // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Id: Unique identifier of Group (Read-only) Id string `json:"id,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // Name: Group name Name string `json:"name,omitempty"` // NonEditableAliases: List of non editable aliases (Read-only) NonEditableAliases []string `json:"nonEditableAliases,omitempty"` }
type Groups ¶
type Groups struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Groups: List of group objects. Groups []*Group `json:"groups,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // NextPageToken: Token used to access next page of this result. NextPageToken string `json:"nextPageToken,omitempty"` }
type GroupsAliasesDeleteCall ¶
type GroupsAliasesDeleteCall struct {
// contains filtered or unexported fields
}
func (*GroupsAliasesDeleteCall) Do ¶
func (c *GroupsAliasesDeleteCall) Do() error
func (*GroupsAliasesDeleteCall) Fields ¶
func (c *GroupsAliasesDeleteCall) Fields(s ...googleapi.Field) *GroupsAliasesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type GroupsAliasesInsertCall ¶
type GroupsAliasesInsertCall struct {
// contains filtered or unexported fields
}
func (*GroupsAliasesInsertCall) Do ¶
func (c *GroupsAliasesInsertCall) Do() (*Alias, error)
func (*GroupsAliasesInsertCall) Fields ¶
func (c *GroupsAliasesInsertCall) Fields(s ...googleapi.Field) *GroupsAliasesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type GroupsAliasesListCall ¶
type GroupsAliasesListCall struct {
// contains filtered or unexported fields
}
func (*GroupsAliasesListCall) Do ¶
func (c *GroupsAliasesListCall) Do() (*Aliases, error)
func (*GroupsAliasesListCall) Fields ¶
func (c *GroupsAliasesListCall) Fields(s ...googleapi.Field) *GroupsAliasesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type GroupsAliasesService ¶
type GroupsAliasesService struct {
// contains filtered or unexported fields
}
func NewGroupsAliasesService ¶
func NewGroupsAliasesService(s *Service) *GroupsAliasesService
func (*GroupsAliasesService) Delete ¶
func (r *GroupsAliasesService) Delete(groupKey string, alias string) *GroupsAliasesDeleteCall
Delete: Remove a alias for the group
func (*GroupsAliasesService) Insert ¶
func (r *GroupsAliasesService) Insert(groupKey string, alias *Alias) *GroupsAliasesInsertCall
Insert: Add a alias for the group
func (*GroupsAliasesService) List ¶
func (r *GroupsAliasesService) List(groupKey string) *GroupsAliasesListCall
List: List all aliases for a group
type GroupsDeleteCall ¶
type GroupsDeleteCall struct {
// contains filtered or unexported fields
}
func (*GroupsDeleteCall) Do ¶
func (c *GroupsDeleteCall) Do() error
func (*GroupsDeleteCall) Fields ¶
func (c *GroupsDeleteCall) Fields(s ...googleapi.Field) *GroupsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type GroupsGetCall ¶
type GroupsGetCall struct {
// contains filtered or unexported fields
}
func (*GroupsGetCall) Do ¶
func (c *GroupsGetCall) Do() (*Group, error)
func (*GroupsGetCall) Fields ¶
func (c *GroupsGetCall) Fields(s ...googleapi.Field) *GroupsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type GroupsInsertCall ¶
type GroupsInsertCall struct {
// contains filtered or unexported fields
}
func (*GroupsInsertCall) Do ¶
func (c *GroupsInsertCall) Do() (*Group, error)
func (*GroupsInsertCall) Fields ¶
func (c *GroupsInsertCall) Fields(s ...googleapi.Field) *GroupsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type GroupsListCall ¶
type GroupsListCall struct {
// contains filtered or unexported fields
}
func (*GroupsListCall) Customer ¶
func (c *GroupsListCall) Customer(customer string) *GroupsListCall
Customer sets the optional parameter "customer": Immutable id of the Google Apps account. In case of multi-domain, to fetch all groups for a customer, fill this field instead of domain.
func (*GroupsListCall) Do ¶
func (c *GroupsListCall) Do() (*Groups, error)
func (*GroupsListCall) Domain ¶
func (c *GroupsListCall) Domain(domain string) *GroupsListCall
Domain sets the optional parameter "domain": Name of the domain. Fill this field to get groups from only this domain. To return all groups in a multi-domain fill customer field instead.
func (*GroupsListCall) Fields ¶
func (c *GroupsListCall) Fields(s ...googleapi.Field) *GroupsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*GroupsListCall) MaxResults ¶
func (c *GroupsListCall) MaxResults(maxResults int64) *GroupsListCall
MaxResults sets the optional parameter "maxResults": Maximum number of results to return. Default is 200
func (*GroupsListCall) PageToken ¶
func (c *GroupsListCall) PageToken(pageToken string) *GroupsListCall
PageToken sets the optional parameter "pageToken": Token to specify next page in the list
func (*GroupsListCall) UserKey ¶
func (c *GroupsListCall) UserKey(userKey string) *GroupsListCall
UserKey sets the optional parameter "userKey": Email or immutable Id of the user if only those groups are to be listed, the given user is a member of. If Id, it should match with id of user object
type GroupsPatchCall ¶
type GroupsPatchCall struct {
// contains filtered or unexported fields
}
func (*GroupsPatchCall) Do ¶
func (c *GroupsPatchCall) Do() (*Group, error)
func (*GroupsPatchCall) Fields ¶
func (c *GroupsPatchCall) Fields(s ...googleapi.Field) *GroupsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type GroupsService ¶
type GroupsService struct { Aliases *GroupsAliasesService // contains filtered or unexported fields }
func NewGroupsService ¶
func NewGroupsService(s *Service) *GroupsService
func (*GroupsService) Delete ¶
func (r *GroupsService) Delete(groupKey string) *GroupsDeleteCall
Delete: Delete Group
func (*GroupsService) Get ¶
func (r *GroupsService) Get(groupKey string) *GroupsGetCall
Get: Retrieve Group
func (*GroupsService) Insert ¶
func (r *GroupsService) Insert(group *Group) *GroupsInsertCall
Insert: Create Group
func (*GroupsService) List ¶
func (r *GroupsService) List() *GroupsListCall
List: Retrieve all groups in a domain (paginated)
func (*GroupsService) Patch ¶
func (r *GroupsService) Patch(groupKey string, group *Group) *GroupsPatchCall
Patch: Update Group. This method supports patch semantics.
func (*GroupsService) Update ¶
func (r *GroupsService) Update(groupKey string, group *Group) *GroupsUpdateCall
Update: Update Group
type GroupsUpdateCall ¶
type GroupsUpdateCall struct {
// contains filtered or unexported fields
}
func (*GroupsUpdateCall) Do ¶
func (c *GroupsUpdateCall) Do() (*Group, error)
func (*GroupsUpdateCall) Fields ¶
func (c *GroupsUpdateCall) Fields(s ...googleapi.Field) *GroupsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type Member ¶
type Member struct { // Email: Email of member (Read-only) Email string `json:"email,omitempty"` // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Id: Unique identifier of customer member (Read-only) Unique // identifier of group (Read-only) Unique identifier of member // (Read-only) Id string `json:"id,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // Role: Role of member Role string `json:"role,omitempty"` // Type: Type of member (Immutable) Type string `json:"type,omitempty"` }
type Members ¶
type Members struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // Members: List of member objects. Members []*Member `json:"members,omitempty"` // NextPageToken: Token used to access next page of this result. NextPageToken string `json:"nextPageToken,omitempty"` }
type MembersDeleteCall ¶
type MembersDeleteCall struct {
// contains filtered or unexported fields
}
func (*MembersDeleteCall) Do ¶
func (c *MembersDeleteCall) Do() error
func (*MembersDeleteCall) Fields ¶
func (c *MembersDeleteCall) Fields(s ...googleapi.Field) *MembersDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type MembersGetCall ¶
type MembersGetCall struct {
// contains filtered or unexported fields
}
func (*MembersGetCall) Do ¶
func (c *MembersGetCall) Do() (*Member, error)
func (*MembersGetCall) Fields ¶
func (c *MembersGetCall) Fields(s ...googleapi.Field) *MembersGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type MembersInsertCall ¶
type MembersInsertCall struct {
// contains filtered or unexported fields
}
func (*MembersInsertCall) Do ¶
func (c *MembersInsertCall) Do() (*Member, error)
func (*MembersInsertCall) Fields ¶
func (c *MembersInsertCall) Fields(s ...googleapi.Field) *MembersInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type MembersListCall ¶
type MembersListCall struct {
// contains filtered or unexported fields
}
func (*MembersListCall) Do ¶
func (c *MembersListCall) Do() (*Members, error)
func (*MembersListCall) Fields ¶
func (c *MembersListCall) Fields(s ...googleapi.Field) *MembersListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MembersListCall) MaxResults ¶
func (c *MembersListCall) MaxResults(maxResults int64) *MembersListCall
MaxResults sets the optional parameter "maxResults": Maximum number of results to return. Default is 200
func (*MembersListCall) PageToken ¶
func (c *MembersListCall) PageToken(pageToken string) *MembersListCall
PageToken sets the optional parameter "pageToken": Token to specify next page in the list
func (*MembersListCall) Roles ¶
func (c *MembersListCall) Roles(roles string) *MembersListCall
Roles sets the optional parameter "roles": Comma separated role values to filter list results on.
type MembersPatchCall ¶
type MembersPatchCall struct {
// contains filtered or unexported fields
}
func (*MembersPatchCall) Do ¶
func (c *MembersPatchCall) Do() (*Member, error)
func (*MembersPatchCall) Fields ¶
func (c *MembersPatchCall) Fields(s ...googleapi.Field) *MembersPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type MembersService ¶
type MembersService struct {
// contains filtered or unexported fields
}
func NewMembersService ¶
func NewMembersService(s *Service) *MembersService
func (*MembersService) Delete ¶
func (r *MembersService) Delete(groupKey string, memberKey string) *MembersDeleteCall
Delete: Remove membership.
func (*MembersService) Get ¶
func (r *MembersService) Get(groupKey string, memberKey string) *MembersGetCall
Get: Retrieve Group Member
func (*MembersService) Insert ¶
func (r *MembersService) Insert(groupKey string, member *Member) *MembersInsertCall
Insert: Add user to the specified group.
func (*MembersService) List ¶
func (r *MembersService) List(groupKey string) *MembersListCall
List: Retrieve all members in a group (paginated)
func (*MembersService) Patch ¶
func (r *MembersService) Patch(groupKey string, memberKey string, member *Member) *MembersPatchCall
Patch: Update membership of a user in the specified group. This method supports patch semantics.
func (*MembersService) Update ¶
func (r *MembersService) Update(groupKey string, memberKey string, member *Member) *MembersUpdateCall
Update: Update membership of a user in the specified group.
type MembersUpdateCall ¶
type MembersUpdateCall struct {
// contains filtered or unexported fields
}
func (*MembersUpdateCall) Do ¶
func (c *MembersUpdateCall) Do() (*Member, error)
func (*MembersUpdateCall) Fields ¶
func (c *MembersUpdateCall) Fields(s ...googleapi.Field) *MembersUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type MobileDevice ¶
type MobileDevice struct { // Applications: List of applications installed on Mobile Device Applications []*MobileDeviceApplications `json:"applications,omitempty"` // BasebandVersion: Mobile Device Baseband version (Read-only) BasebandVersion string `json:"basebandVersion,omitempty"` // BuildNumber: Mobile Device Build number (Read-only) BuildNumber string `json:"buildNumber,omitempty"` // DefaultLanguage: The default locale used on the Mobile Device // (Read-only) DefaultLanguage string `json:"defaultLanguage,omitempty"` // DeviceCompromisedStatus: Mobile Device compromised status (Read-only) DeviceCompromisedStatus string `json:"deviceCompromisedStatus,omitempty"` // DeviceId: Mobile Device serial number (Read-only) DeviceId string `json:"deviceId,omitempty"` // Email: List of owner user's email addresses (Read-only) Email []string `json:"email,omitempty"` // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // FirstSync: Date and time the device was first synchronized with the // policy settings in the Google Apps administrator control panel // (Read-only) FirstSync string `json:"firstSync,omitempty"` // HardwareId: Mobile Device Hardware Id (Read-only) HardwareId string `json:"hardwareId,omitempty"` // Imei: Mobile Device IMEI number (Read-only) Imei string `json:"imei,omitempty"` // KernelVersion: Mobile Device Kernel version (Read-only) KernelVersion string `json:"kernelVersion,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // LastSync: Date and time the device was last synchronized with the // policy settings in the Google Apps administrator control panel // (Read-only) LastSync string `json:"lastSync,omitempty"` // ManagedAccountIsOnOwnerProfile: Boolean indicating if this account is // on owner/primary profile or not (Read-only) ManagedAccountIsOnOwnerProfile bool `json:"managedAccountIsOnOwnerProfile,omitempty"` // Meid: Mobile Device MEID number (Read-only) Meid string `json:"meid,omitempty"` // Model: Name of the model of the device Model string `json:"model,omitempty"` // Name: List of owner user's names (Read-only) Name []string `json:"name,omitempty"` // NetworkOperator: Mobile Device mobile or network operator (if // available) (Read-only) NetworkOperator string `json:"networkOperator,omitempty"` // Os: Name of the mobile operating system Os string `json:"os,omitempty"` // ResourceId: Unique identifier of Mobile Device (Read-only) ResourceId string `json:"resourceId,omitempty"` // SerialNumber: Mobile Device SSN or Serial Number (Read-only) SerialNumber string `json:"serialNumber,omitempty"` // Status: Status of the device (Read-only) Status string `json:"status,omitempty"` // Type: The type of device (Read-only) Type string `json:"type,omitempty"` // UserAgent: Mobile Device user agent UserAgent string `json:"userAgent,omitempty"` // WifiMacAddress: Mobile Device WiFi MAC address (Read-only) WifiMacAddress string `json:"wifiMacAddress,omitempty"` }
type MobileDeviceAction ¶
type MobileDeviceAction struct { // Action: Action to be taken on the Mobile Device Action string `json:"action,omitempty"` }
type MobileDeviceApplications ¶
type MobileDeviceApplications struct { // DisplayName: Display name of application DisplayName string `json:"displayName,omitempty"` // PackageName: Package name of application PackageName string `json:"packageName,omitempty"` // Permission: List of Permissions for application Permission []string `json:"permission,omitempty"` // VersionCode: Version code of application VersionCode int64 `json:"versionCode,omitempty"` // VersionName: Version name of application VersionName string `json:"versionName,omitempty"` }
type MobileDevices ¶
type MobileDevices struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // Mobiledevices: List of Mobile Device objects. Mobiledevices []*MobileDevice `json:"mobiledevices,omitempty"` // NextPageToken: Token used to access next page of this result. NextPageToken string `json:"nextPageToken,omitempty"` }
type MobiledevicesActionCall ¶
type MobiledevicesActionCall struct {
// contains filtered or unexported fields
}
func (*MobiledevicesActionCall) Do ¶
func (c *MobiledevicesActionCall) Do() error
func (*MobiledevicesActionCall) Fields ¶
func (c *MobiledevicesActionCall) Fields(s ...googleapi.Field) *MobiledevicesActionCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type MobiledevicesDeleteCall ¶
type MobiledevicesDeleteCall struct {
// contains filtered or unexported fields
}
func (*MobiledevicesDeleteCall) Do ¶
func (c *MobiledevicesDeleteCall) Do() error
func (*MobiledevicesDeleteCall) Fields ¶
func (c *MobiledevicesDeleteCall) Fields(s ...googleapi.Field) *MobiledevicesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type MobiledevicesGetCall ¶
type MobiledevicesGetCall struct {
// contains filtered or unexported fields
}
func (*MobiledevicesGetCall) Do ¶
func (c *MobiledevicesGetCall) Do() (*MobileDevice, error)
func (*MobiledevicesGetCall) Fields ¶
func (c *MobiledevicesGetCall) Fields(s ...googleapi.Field) *MobiledevicesGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MobiledevicesGetCall) Projection ¶
func (c *MobiledevicesGetCall) Projection(projection string) *MobiledevicesGetCall
Projection sets the optional parameter "projection": Restrict information returned to a set of selected fields.
type MobiledevicesListCall ¶
type MobiledevicesListCall struct {
// contains filtered or unexported fields
}
func (*MobiledevicesListCall) Do ¶
func (c *MobiledevicesListCall) Do() (*MobileDevices, error)
func (*MobiledevicesListCall) Fields ¶
func (c *MobiledevicesListCall) Fields(s ...googleapi.Field) *MobiledevicesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*MobiledevicesListCall) MaxResults ¶
func (c *MobiledevicesListCall) MaxResults(maxResults int64) *MobiledevicesListCall
MaxResults sets the optional parameter "maxResults": Maximum number of results to return. Default is 100
func (*MobiledevicesListCall) OrderBy ¶
func (c *MobiledevicesListCall) OrderBy(orderBy string) *MobiledevicesListCall
OrderBy sets the optional parameter "orderBy": Column to use for sorting results
func (*MobiledevicesListCall) PageToken ¶
func (c *MobiledevicesListCall) PageToken(pageToken string) *MobiledevicesListCall
PageToken sets the optional parameter "pageToken": Token to specify next page in the list
func (*MobiledevicesListCall) Projection ¶
func (c *MobiledevicesListCall) Projection(projection string) *MobiledevicesListCall
Projection sets the optional parameter "projection": Restrict information returned to a set of selected fields.
func (*MobiledevicesListCall) Query ¶
func (c *MobiledevicesListCall) Query(query string) *MobiledevicesListCall
Query sets the optional parameter "query": Search string in the format given at http://support.google.com/a/bin/answer.py?hl=en&answer=1408863#search
func (*MobiledevicesListCall) SortOrder ¶
func (c *MobiledevicesListCall) SortOrder(sortOrder string) *MobiledevicesListCall
SortOrder sets the optional parameter "sortOrder": Whether to return results in ascending or descending order. Only of use when orderBy is also used
type MobiledevicesService ¶
type MobiledevicesService struct {
// contains filtered or unexported fields
}
func NewMobiledevicesService ¶
func NewMobiledevicesService(s *Service) *MobiledevicesService
func (*MobiledevicesService) Action ¶
func (r *MobiledevicesService) Action(customerId string, resourceId string, mobiledeviceaction *MobileDeviceAction) *MobiledevicesActionCall
Action: Take action on Mobile Device
func (*MobiledevicesService) Delete ¶
func (r *MobiledevicesService) Delete(customerId string, resourceId string) *MobiledevicesDeleteCall
Delete: Delete Mobile Device
func (*MobiledevicesService) Get ¶
func (r *MobiledevicesService) Get(customerId string, resourceId string) *MobiledevicesGetCall
Get: Retrieve Mobile Device
func (*MobiledevicesService) List ¶
func (r *MobiledevicesService) List(customerId string) *MobiledevicesListCall
List: Retrieve all Mobile Devices of a customer (paginated)
type Notification ¶
type Notification struct { // Body: Body of the notification (Read-only) Body string `json:"body,omitempty"` // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // FromAddress: Address from which the notification is received // (Read-only) FromAddress string `json:"fromAddress,omitempty"` // IsUnread: Boolean indicating whether the notification is unread or // not. IsUnread bool `json:"isUnread,omitempty"` // Kind: The type of the resource. Kind string `json:"kind,omitempty"` NotificationId string `json:"notificationId,omitempty"` // SendTime: Time at which notification was sent (Read-only) SendTime string `json:"sendTime,omitempty"` // Subject: Subject of the notification (Read-only) Subject string `json:"subject,omitempty"` }
type Notifications ¶
type Notifications struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Items: List of notifications in this page. Items []*Notification `json:"items,omitempty"` // Kind: The type of the resource. Kind string `json:"kind,omitempty"` // NextPageToken: Token for fetching the next page of notifications. NextPageToken string `json:"nextPageToken,omitempty"` // UnreadNotificationsCount: Number of unread notification for the // domain. UnreadNotificationsCount int64 `json:"unreadNotificationsCount,omitempty"` }
type NotificationsDeleteCall ¶
type NotificationsDeleteCall struct {
// contains filtered or unexported fields
}
func (*NotificationsDeleteCall) Do ¶
func (c *NotificationsDeleteCall) Do() error
func (*NotificationsDeleteCall) Fields ¶
func (c *NotificationsDeleteCall) Fields(s ...googleapi.Field) *NotificationsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type NotificationsGetCall ¶
type NotificationsGetCall struct {
// contains filtered or unexported fields
}
func (*NotificationsGetCall) Do ¶
func (c *NotificationsGetCall) Do() (*Notification, error)
func (*NotificationsGetCall) Fields ¶
func (c *NotificationsGetCall) Fields(s ...googleapi.Field) *NotificationsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type NotificationsListCall ¶
type NotificationsListCall struct {
// contains filtered or unexported fields
}
func (*NotificationsListCall) Do ¶
func (c *NotificationsListCall) Do() (*Notifications, error)
func (*NotificationsListCall) Fields ¶
func (c *NotificationsListCall) Fields(s ...googleapi.Field) *NotificationsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*NotificationsListCall) Language ¶
func (c *NotificationsListCall) Language(language string) *NotificationsListCall
Language sets the optional parameter "language": The ISO 639-1 code of the language notifications are returned in. The default is English (en).
func (*NotificationsListCall) MaxResults ¶
func (c *NotificationsListCall) MaxResults(maxResults int64) *NotificationsListCall
MaxResults sets the optional parameter "maxResults": Maximum number of notifications to return per page. The default is 100.
func (*NotificationsListCall) PageToken ¶
func (c *NotificationsListCall) PageToken(pageToken string) *NotificationsListCall
PageToken sets the optional parameter "pageToken": The token to specify the page of results to retrieve.
type NotificationsPatchCall ¶
type NotificationsPatchCall struct {
// contains filtered or unexported fields
}
func (*NotificationsPatchCall) Do ¶
func (c *NotificationsPatchCall) Do() (*Notification, error)
func (*NotificationsPatchCall) Fields ¶
func (c *NotificationsPatchCall) Fields(s ...googleapi.Field) *NotificationsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type NotificationsService ¶
type NotificationsService struct {
// contains filtered or unexported fields
}
func NewNotificationsService ¶
func NewNotificationsService(s *Service) *NotificationsService
func (*NotificationsService) Delete ¶
func (r *NotificationsService) Delete(customer string, notificationId string) *NotificationsDeleteCall
Delete: Deletes a notification
func (*NotificationsService) Get ¶
func (r *NotificationsService) Get(customer string, notificationId string) *NotificationsGetCall
Get: Retrieves a notification.
func (*NotificationsService) List ¶
func (r *NotificationsService) List(customer string) *NotificationsListCall
List: Retrieves a list of notifications.
func (*NotificationsService) Patch ¶
func (r *NotificationsService) Patch(customer string, notificationId string, notification *Notification) *NotificationsPatchCall
Patch: Updates a notification. This method supports patch semantics.
func (*NotificationsService) Update ¶
func (r *NotificationsService) Update(customer string, notificationId string, notification *Notification) *NotificationsUpdateCall
Update: Updates a notification.
type NotificationsUpdateCall ¶
type NotificationsUpdateCall struct {
// contains filtered or unexported fields
}
func (*NotificationsUpdateCall) Do ¶
func (c *NotificationsUpdateCall) Do() (*Notification, error)
func (*NotificationsUpdateCall) Fields ¶
func (c *NotificationsUpdateCall) Fields(s ...googleapi.Field) *NotificationsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrgUnit ¶
type OrgUnit struct { // BlockInheritance: Should block inheritance BlockInheritance bool `json:"blockInheritance,omitempty"` // Description: Description of OrgUnit Description string `json:"description,omitempty"` // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // Name: Name of OrgUnit Name string `json:"name,omitempty"` // OrgUnitId: Id of OrgUnit OrgUnitId string `json:"orgUnitId,omitempty"` // OrgUnitPath: Path of OrgUnit OrgUnitPath string `json:"orgUnitPath,omitempty"` // ParentOrgUnitId: Id of parent OrgUnit ParentOrgUnitId string `json:"parentOrgUnitId,omitempty"` // ParentOrgUnitPath: Path of parent OrgUnit ParentOrgUnitPath string `json:"parentOrgUnitPath,omitempty"` }
type OrgunitsDeleteCall ¶
type OrgunitsDeleteCall struct {
// contains filtered or unexported fields
}
func (*OrgunitsDeleteCall) Do ¶
func (c *OrgunitsDeleteCall) Do() error
func (*OrgunitsDeleteCall) Fields ¶
func (c *OrgunitsDeleteCall) Fields(s ...googleapi.Field) *OrgunitsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrgunitsGetCall ¶
type OrgunitsGetCall struct {
// contains filtered or unexported fields
}
func (*OrgunitsGetCall) Do ¶
func (c *OrgunitsGetCall) Do() (*OrgUnit, error)
func (*OrgunitsGetCall) Fields ¶
func (c *OrgunitsGetCall) Fields(s ...googleapi.Field) *OrgunitsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrgunitsInsertCall ¶
type OrgunitsInsertCall struct {
// contains filtered or unexported fields
}
func (*OrgunitsInsertCall) Do ¶
func (c *OrgunitsInsertCall) Do() (*OrgUnit, error)
func (*OrgunitsInsertCall) Fields ¶
func (c *OrgunitsInsertCall) Fields(s ...googleapi.Field) *OrgunitsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrgunitsListCall ¶
type OrgunitsListCall struct {
// contains filtered or unexported fields
}
func (*OrgunitsListCall) Do ¶
func (c *OrgunitsListCall) Do() (*OrgUnits, error)
func (*OrgunitsListCall) Fields ¶
func (c *OrgunitsListCall) Fields(s ...googleapi.Field) *OrgunitsListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*OrgunitsListCall) OrgUnitPath ¶
func (c *OrgunitsListCall) OrgUnitPath(orgUnitPath string) *OrgunitsListCall
OrgUnitPath sets the optional parameter "orgUnitPath": the URL-encoded organization unit's path or its Id
func (*OrgunitsListCall) Type ¶
func (c *OrgunitsListCall) Type(type_ string) *OrgunitsListCall
Type sets the optional parameter "type": Whether to return all sub-organizations or just immediate children
type OrgunitsPatchCall ¶
type OrgunitsPatchCall struct {
// contains filtered or unexported fields
}
func (*OrgunitsPatchCall) Do ¶
func (c *OrgunitsPatchCall) Do() (*OrgUnit, error)
func (*OrgunitsPatchCall) Fields ¶
func (c *OrgunitsPatchCall) Fields(s ...googleapi.Field) *OrgunitsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type OrgunitsService ¶
type OrgunitsService struct {
// contains filtered or unexported fields
}
func NewOrgunitsService ¶
func NewOrgunitsService(s *Service) *OrgunitsService
func (*OrgunitsService) Delete ¶
func (r *OrgunitsService) Delete(customerId string, orgUnitPath []string) *OrgunitsDeleteCall
Delete: Remove Organization Unit
func (*OrgunitsService) Get ¶
func (r *OrgunitsService) Get(customerId string, orgUnitPath []string) *OrgunitsGetCall
Get: Retrieve Organization Unit
func (*OrgunitsService) Insert ¶
func (r *OrgunitsService) Insert(customerId string, orgunit *OrgUnit) *OrgunitsInsertCall
Insert: Add Organization Unit
func (*OrgunitsService) List ¶
func (r *OrgunitsService) List(customerId string) *OrgunitsListCall
List: Retrieve all Organization Units
func (*OrgunitsService) Patch ¶
func (r *OrgunitsService) Patch(customerId string, orgUnitPath []string, orgunit *OrgUnit) *OrgunitsPatchCall
Patch: Update Organization Unit. This method supports patch semantics.
func (*OrgunitsService) Update ¶
func (r *OrgunitsService) Update(customerId string, orgUnitPath []string, orgunit *OrgUnit) *OrgunitsUpdateCall
Update: Update Organization Unit
type OrgunitsUpdateCall ¶
type OrgunitsUpdateCall struct {
// contains filtered or unexported fields
}
func (*OrgunitsUpdateCall) Do ¶
func (c *OrgunitsUpdateCall) Do() (*OrgUnit, error)
func (*OrgunitsUpdateCall) Fields ¶
func (c *OrgunitsUpdateCall) Fields(s ...googleapi.Field) *OrgunitsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type Schema ¶
type Schema struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Fields: Fields of Schema Fields []*SchemaFieldSpec `json:"fields,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // SchemaId: Unique identifier of Schema (Read-only) SchemaId string `json:"schemaId,omitempty"` // SchemaName: Schema name SchemaName string `json:"schemaName,omitempty"` }
type SchemaFieldSpec ¶
type SchemaFieldSpec struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // FieldId: Unique identifier of Field (Read-only) FieldId string `json:"fieldId,omitempty"` // FieldName: Name of the field. FieldName string `json:"fieldName,omitempty"` // FieldType: Type of the field. FieldType string `json:"fieldType,omitempty"` // Indexed: Boolean specifying whether the field is indexed or not. Indexed bool `json:"indexed,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // MultiValued: Boolean specifying whether this is a multi-valued field // or not. MultiValued bool `json:"multiValued,omitempty"` // NumericIndexingSpec: Indexing spec for a numeric field. By default, // only exact match queries will be supported for numeric fields. // Setting the numericIndexingSpec allows range queries to be supported. NumericIndexingSpec *SchemaFieldSpecNumericIndexingSpec `json:"numericIndexingSpec,omitempty"` // ReadAccessType: Read ACLs on the field specifying who can view values // of this field. Valid values are "ALL_DOMAIN_USERS" and // "ADMINS_AND_SELF". ReadAccessType string `json:"readAccessType,omitempty"` }
type SchemaFieldSpecNumericIndexingSpec ¶
type SchemaFieldSpecNumericIndexingSpec struct { // MaxValue: Maximum value of this field. This is meant to be indicative // rather than enforced. Values outside this range will still be // indexed, but search may not be as performant. MaxValue float64 `json:"maxValue,omitempty"` // MinValue: Minimum value of this field. This is meant to be indicative // rather than enforced. Values outside this range will still be // indexed, but search may not be as performant. MinValue float64 `json:"minValue,omitempty"` }
type SchemasDeleteCall ¶
type SchemasDeleteCall struct {
// contains filtered or unexported fields
}
func (*SchemasDeleteCall) Do ¶
func (c *SchemasDeleteCall) Do() error
func (*SchemasDeleteCall) Fields ¶
func (c *SchemasDeleteCall) Fields(s ...googleapi.Field) *SchemasDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type SchemasGetCall ¶
type SchemasGetCall struct {
// contains filtered or unexported fields
}
func (*SchemasGetCall) Do ¶
func (c *SchemasGetCall) Do() (*Schema, error)
func (*SchemasGetCall) Fields ¶
func (c *SchemasGetCall) Fields(s ...googleapi.Field) *SchemasGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type SchemasInsertCall ¶
type SchemasInsertCall struct {
// contains filtered or unexported fields
}
func (*SchemasInsertCall) Do ¶
func (c *SchemasInsertCall) Do() (*Schema, error)
func (*SchemasInsertCall) Fields ¶
func (c *SchemasInsertCall) Fields(s ...googleapi.Field) *SchemasInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type SchemasListCall ¶
type SchemasListCall struct {
// contains filtered or unexported fields
}
func (*SchemasListCall) Do ¶
func (c *SchemasListCall) Do() (*Schemas, error)
func (*SchemasListCall) Fields ¶
func (c *SchemasListCall) Fields(s ...googleapi.Field) *SchemasListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type SchemasPatchCall ¶
type SchemasPatchCall struct {
// contains filtered or unexported fields
}
func (*SchemasPatchCall) Do ¶
func (c *SchemasPatchCall) Do() (*Schema, error)
func (*SchemasPatchCall) Fields ¶
func (c *SchemasPatchCall) Fields(s ...googleapi.Field) *SchemasPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type SchemasService ¶
type SchemasService struct {
// contains filtered or unexported fields
}
func NewSchemasService ¶
func NewSchemasService(s *Service) *SchemasService
func (*SchemasService) Delete ¶
func (r *SchemasService) Delete(customerId string, schemaKey string) *SchemasDeleteCall
Delete: Delete schema
func (*SchemasService) Get ¶
func (r *SchemasService) Get(customerId string, schemaKey string) *SchemasGetCall
Get: Retrieve schema
func (*SchemasService) Insert ¶
func (r *SchemasService) Insert(customerId string, schema *Schema) *SchemasInsertCall
Insert: Create schema.
func (*SchemasService) List ¶
func (r *SchemasService) List(customerId string) *SchemasListCall
List: Retrieve all schemas for a customer
func (*SchemasService) Patch ¶
func (r *SchemasService) Patch(customerId string, schemaKey string, schema *Schema) *SchemasPatchCall
Patch: Update schema. This method supports patch semantics.
func (*SchemasService) Update ¶
func (r *SchemasService) Update(customerId string, schemaKey string, schema *Schema) *SchemasUpdateCall
Update: Update schema
type SchemasUpdateCall ¶
type SchemasUpdateCall struct {
// contains filtered or unexported fields
}
func (*SchemasUpdateCall) Do ¶
func (c *SchemasUpdateCall) Do() (*Schema, error)
func (*SchemasUpdateCall) Fields ¶
func (c *SchemasUpdateCall) Fields(s ...googleapi.Field) *SchemasUpdateCall
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 Asps *AspsService Channels *ChannelsService Chromeosdevices *ChromeosdevicesService Groups *GroupsService Members *MembersService Mobiledevices *MobiledevicesService Notifications *NotificationsService Orgunits *OrgunitsService Schemas *SchemasService Tokens *TokensService Users *UsersService VerificationCodes *VerificationCodesService // contains filtered or unexported fields }
type Token ¶
type Token struct { // Anonymous: Whether the application is registered with Google. The // value is true if the application has an anonymous Client ID. Anonymous bool `json:"anonymous,omitempty"` // ClientId: The Client ID of the application the token is issued to. ClientId string `json:"clientId,omitempty"` // DisplayText: The displayable name of the application the token is // issued to. DisplayText string `json:"displayText,omitempty"` // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Kind: The type of the API resource. This is always // admin#directory#token. Kind string `json:"kind,omitempty"` // NativeApp: Whether the token is issued to an installed application. // The value is true if the application is installed to a desktop or // mobile device. NativeApp bool `json:"nativeApp,omitempty"` // Scopes: A list of authorization scopes the application is granted. Scopes []string `json:"scopes,omitempty"` // UserKey: The unique ID of the user that issued the token. UserKey string `json:"userKey,omitempty"` }
type TokensDeleteCall ¶
type TokensDeleteCall struct {
// contains filtered or unexported fields
}
func (*TokensDeleteCall) Do ¶
func (c *TokensDeleteCall) Do() error
func (*TokensDeleteCall) Fields ¶
func (c *TokensDeleteCall) Fields(s ...googleapi.Field) *TokensDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type TokensGetCall ¶
type TokensGetCall struct {
// contains filtered or unexported fields
}
func (*TokensGetCall) Do ¶
func (c *TokensGetCall) Do() (*Token, error)
func (*TokensGetCall) Fields ¶
func (c *TokensGetCall) Fields(s ...googleapi.Field) *TokensGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type TokensListCall ¶
type TokensListCall struct {
// contains filtered or unexported fields
}
func (*TokensListCall) Do ¶
func (c *TokensListCall) Do() (*Tokens, error)
func (*TokensListCall) Fields ¶
func (c *TokensListCall) Fields(s ...googleapi.Field) *TokensListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type TokensService ¶
type TokensService struct {
// contains filtered or unexported fields
}
func NewTokensService ¶
func NewTokensService(s *Service) *TokensService
func (*TokensService) Delete ¶
func (r *TokensService) Delete(userKey string, clientId string) *TokensDeleteCall
Delete: Delete all access tokens issued by a user for an application.
func (*TokensService) Get ¶
func (r *TokensService) Get(userKey string, clientId string) *TokensGetCall
Get: Get information about an access token issued by a user.
func (*TokensService) List ¶
func (r *TokensService) List(userKey string) *TokensListCall
List: Returns the set of tokens specified user has issued to 3rd party applications.
type User ¶
type User struct { Addresses interface{} `json:"addresses,omitempty"` // AgreedToTerms: Indicates if user has agreed to terms (Read-only) AgreedToTerms bool `json:"agreedToTerms,omitempty"` // Aliases: List of aliases (Read-only) Aliases []string `json:"aliases,omitempty"` // ChangePasswordAtNextLogin: Boolean indicating if the user should // change password in next login ChangePasswordAtNextLogin bool `json:"changePasswordAtNextLogin,omitempty"` // CreationTime: User's Google account creation time. (Read-only) CreationTime string `json:"creationTime,omitempty"` // CustomSchemas: Custom fields of the user. CustomSchemas map[string]UserCustomProperties `json:"customSchemas,omitempty"` // CustomerId: CustomerId of User (Read-only) CustomerId string `json:"customerId,omitempty"` DeletionTime string `json:"deletionTime,omitempty"` Emails interface{} `json:"emails,omitempty"` // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` ExternalIds interface{} `json:"externalIds,omitempty"` // HashFunction: Hash function name for password. Supported are MD5, // SHA-1 and crypt HashFunction string `json:"hashFunction,omitempty"` // Id: Unique identifier of User (Read-only) Id string `json:"id,omitempty"` Ims interface{} `json:"ims,omitempty"` // IncludeInGlobalAddressList: Boolean indicating if user is included in // Global Address List IncludeInGlobalAddressList bool `json:"includeInGlobalAddressList,omitempty"` // IpWhitelisted: Boolean indicating if ip is whitelisted IpWhitelisted bool `json:"ipWhitelisted,omitempty"` // IsAdmin: Boolean indicating if the user is admin (Read-only) IsAdmin bool `json:"isAdmin,omitempty"` // IsDelegatedAdmin: Boolean indicating if the user is delegated admin // (Read-only) IsDelegatedAdmin bool `json:"isDelegatedAdmin,omitempty"` // IsMailboxSetup: Is mailbox setup (Read-only) IsMailboxSetup bool `json:"isMailboxSetup,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // LastLoginTime: User's last login time. (Read-only) LastLoginTime string `json:"lastLoginTime,omitempty"` // Name: User's name Name *UserName `json:"name,omitempty"` // NonEditableAliases: List of non editable aliases (Read-only) NonEditableAliases []string `json:"nonEditableAliases,omitempty"` Notes interface{} `json:"notes,omitempty"` // OrgUnitPath: OrgUnit of User OrgUnitPath string `json:"orgUnitPath,omitempty"` Organizations interface{} `json:"organizations,omitempty"` // Password: User's password Password string `json:"password,omitempty"` Phones interface{} `json:"phones,omitempty"` // PrimaryEmail: username of User PrimaryEmail string `json:"primaryEmail,omitempty"` Relations interface{} `json:"relations,omitempty"` // Suspended: Indicates if user is suspended Suspended bool `json:"suspended,omitempty"` // SuspensionReason: Suspension reason if user is suspended (Read-only) SuspensionReason string `json:"suspensionReason,omitempty"` // ThumbnailPhotoUrl: Photo Url of the user (Read-only) ThumbnailPhotoUrl string `json:"thumbnailPhotoUrl,omitempty"` Websites interface{} `json:"websites,omitempty"` }
type UserAbout ¶
type UserAbout struct { // ContentType: About entry can have a type which indicates the content // type. It can either be plain or html. By default, notes contents are // assumed to contain plain text. ContentType string `json:"contentType,omitempty"` // Value: Actual value of notes. Value string `json:"value,omitempty"` }
type UserAddress ¶
type UserAddress struct { // Country: Country. Country string `json:"country,omitempty"` // CountryCode: Country code. CountryCode string `json:"countryCode,omitempty"` // CustomType: Custom type. CustomType string `json:"customType,omitempty"` // ExtendedAddress: Extended Address. ExtendedAddress string `json:"extendedAddress,omitempty"` // Formatted: Formatted address. Formatted string `json:"formatted,omitempty"` // Locality: Locality. Locality string `json:"locality,omitempty"` // PoBox: Other parts of address. PoBox string `json:"poBox,omitempty"` // PostalCode: Postal code. PostalCode string `json:"postalCode,omitempty"` // Primary: If this is user's primary address. Only one entry could be // marked as primary. Primary bool `json:"primary,omitempty"` // Region: Region. Region string `json:"region,omitempty"` // SourceIsStructured: User supplied address was structured. Structured // addresses are NOT supported at this time. You might be able to write // structured addresses, but any values will eventually be clobbered. SourceIsStructured bool `json:"sourceIsStructured,omitempty"` // StreetAddress: Street. StreetAddress string `json:"streetAddress,omitempty"` // Type: Each entry can have a type which indicates standard values of // that entry. For example address could be of home, work etc. In // addition to the standard type, an entry can have a custom type and // can take any value. Such type should have the CUSTOM value as type // and also have a customType value. Type string `json:"type,omitempty"` }
type UserCustomProperties ¶
type UserCustomProperties struct { }
type UserEmail ¶
type UserEmail struct { // Address: Email id of the user. Address string `json:"address,omitempty"` // CustomType: Custom Type. CustomType string `json:"customType,omitempty"` // Primary: If this is user's primary email. Only one entry could be // marked as primary. Primary bool `json:"primary,omitempty"` // Type: Each entry can have a type which indicates standard types of // that entry. For example email could be of home, work etc. In addition // to the standard type, an entry can have a custom type and can take // any value Such types should have the CUSTOM value as type and also // have a customType value. Type string `json:"type,omitempty"` }
type UserExternalId ¶
type UserIm ¶
type UserIm struct { // CustomProtocol: Custom protocol. CustomProtocol string `json:"customProtocol,omitempty"` // CustomType: Custom type. CustomType string `json:"customType,omitempty"` // Im: Instant messenger id. Im string `json:"im,omitempty"` // Primary: If this is user's primary im. Only one entry could be marked // as primary. Primary bool `json:"primary,omitempty"` // Protocol: Protocol used in the instant messenger. It should be one of // the values from ImProtocolTypes map. Similar to type, it can take a // CUSTOM value and specify the custom name in customProtocol field. Protocol string `json:"protocol,omitempty"` // Type: Each entry can have a type which indicates standard types of // that entry. For example instant messengers could be of home, work // etc. In addition to the standard type, an entry can have a custom // type and can take any value. Such types should have the CUSTOM value // as type and also have a customType value. Type string `json:"type,omitempty"` }
type UserMakeAdmin ¶
type UserMakeAdmin struct { // Status: Boolean indicating new admin status of the user Status bool `json:"status,omitempty"` }
type UserOrganization ¶
type UserOrganization struct { // CostCenter: The cost center of the users department. CostCenter string `json:"costCenter,omitempty"` // CustomType: Custom type. CustomType string `json:"customType,omitempty"` // Department: Department within the organization. Department string `json:"department,omitempty"` // Description: Description of the organization. Description string `json:"description,omitempty"` // Domain: The domain to which the organization belongs to. Domain string `json:"domain,omitempty"` // Location: Location of the organization. This need not be fully // qualified address. Location string `json:"location,omitempty"` // Name: Name of the organization Name string `json:"name,omitempty"` // Primary: If it user's primary organization. Primary bool `json:"primary,omitempty"` // Symbol: Symbol of the organization. Symbol string `json:"symbol,omitempty"` // Title: Title (designation) of the user in the organization. Title string `json:"title,omitempty"` // Type: Each entry can have a type which indicates standard types of // that entry. For example organization could be of school, work etc. In // addition to the standard type, an entry can have a custom type and // can give it any name. Such types should have the CUSTOM value as type // and also have a CustomType value. Type string `json:"type,omitempty"` }
type UserPhone ¶
type UserPhone struct { // CustomType: Custom Type. CustomType string `json:"customType,omitempty"` // Primary: If this is user's primary phone or not. Primary bool `json:"primary,omitempty"` // Type: Each entry can have a type which indicates standard types of // that entry. For example phone could be of home_fax, work, mobile etc. // In addition to the standard type, an entry can have a custom type and // can give it any name. Such types should have the CUSTOM value as type // and also have a customType value. Type string `json:"type,omitempty"` // Value: Phone number. Value string `json:"value,omitempty"` }
type UserPhoto ¶
type UserPhoto struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Height: Height in pixels of the photo Height int64 `json:"height,omitempty"` // Id: Unique identifier of User (Read-only) Id string `json:"id,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // MimeType: Mime Type of the photo MimeType string `json:"mimeType,omitempty"` // PhotoData: Base64 encoded photo data PhotoData string `json:"photoData,omitempty"` // PrimaryEmail: Primary email of User (Read-only) PrimaryEmail string `json:"primaryEmail,omitempty"` // Width: Width in pixels of the photo Width int64 `json:"width,omitempty"` }
type UserRelation ¶
type UserRelation struct { // CustomType: Custom Type. CustomType string `json:"customType,omitempty"` // Type: The relation of the user. Some of the possible values are // mother, father, sister, brother, manager, assistant, partner. Type string `json:"type,omitempty"` // Value: The name of the relation. Value string `json:"value,omitempty"` }
type UserUndelete ¶
type UserUndelete struct { // OrgUnitPath: OrgUnit of User OrgUnitPath string `json:"orgUnitPath,omitempty"` }
type UserWebsite ¶
type UserWebsite struct { // CustomType: Custom Type. CustomType string `json:"customType,omitempty"` // Primary: If this is user's primary website or not. Primary bool `json:"primary,omitempty"` // Type: Each entry can have a type which indicates standard types of // that entry. For example website could be of home, work, blog etc. In // addition to the standard type, an entry can have a custom type and // can give it any name. Such types should have the CUSTOM value as type // and also have a customType value. Type string `json:"type,omitempty"` // Value: Website. Value string `json:"value,omitempty"` }
type Users ¶
type Users struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Kind: Kind of resource this is. Kind string `json:"kind,omitempty"` // NextPageToken: Token used to access next page of this result. NextPageToken string `json:"nextPageToken,omitempty"` // Trigger_event: Event that triggered this response (only used in case // of Push Response) Trigger_event string `json:"trigger_event,omitempty"` // Users: List of user objects. Users []*User `json:"users,omitempty"` }
type UsersAliasesDeleteCall ¶
type UsersAliasesDeleteCall struct {
// contains filtered or unexported fields
}
func (*UsersAliasesDeleteCall) Do ¶
func (c *UsersAliasesDeleteCall) Do() error
func (*UsersAliasesDeleteCall) Fields ¶
func (c *UsersAliasesDeleteCall) Fields(s ...googleapi.Field) *UsersAliasesDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersAliasesInsertCall ¶
type UsersAliasesInsertCall struct {
// contains filtered or unexported fields
}
func (*UsersAliasesInsertCall) Do ¶
func (c *UsersAliasesInsertCall) Do() (*Alias, error)
func (*UsersAliasesInsertCall) Fields ¶
func (c *UsersAliasesInsertCall) Fields(s ...googleapi.Field) *UsersAliasesInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersAliasesListCall ¶
type UsersAliasesListCall struct {
// contains filtered or unexported fields
}
func (*UsersAliasesListCall) Do ¶
func (c *UsersAliasesListCall) Do() (*Aliases, error)
func (*UsersAliasesListCall) Event ¶
func (c *UsersAliasesListCall) Event(event string) *UsersAliasesListCall
Event sets the optional parameter "event": Event on which subscription is intended (if subscribing)
func (*UsersAliasesListCall) Fields ¶
func (c *UsersAliasesListCall) Fields(s ...googleapi.Field) *UsersAliasesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersAliasesService ¶
type UsersAliasesService struct {
// contains filtered or unexported fields
}
func NewUsersAliasesService ¶
func NewUsersAliasesService(s *Service) *UsersAliasesService
func (*UsersAliasesService) Delete ¶
func (r *UsersAliasesService) Delete(userKey string, alias string) *UsersAliasesDeleteCall
Delete: Remove a alias for the user
func (*UsersAliasesService) Insert ¶
func (r *UsersAliasesService) Insert(userKey string, alias *Alias) *UsersAliasesInsertCall
Insert: Add a alias for the user
func (*UsersAliasesService) List ¶
func (r *UsersAliasesService) List(userKey string) *UsersAliasesListCall
List: List all aliases for a user
func (*UsersAliasesService) Watch ¶
func (r *UsersAliasesService) Watch(userKey string, channel *Channel) *UsersAliasesWatchCall
Watch: Watch for changes in user aliases list
type UsersAliasesWatchCall ¶
type UsersAliasesWatchCall struct {
// contains filtered or unexported fields
}
func (*UsersAliasesWatchCall) Do ¶
func (c *UsersAliasesWatchCall) Do() (*Channel, error)
func (*UsersAliasesWatchCall) Event ¶
func (c *UsersAliasesWatchCall) Event(event string) *UsersAliasesWatchCall
Event sets the optional parameter "event": Event on which subscription is intended (if subscribing)
func (*UsersAliasesWatchCall) Fields ¶
func (c *UsersAliasesWatchCall) Fields(s ...googleapi.Field) *UsersAliasesWatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersDeleteCall ¶
type UsersDeleteCall struct {
// contains filtered or unexported fields
}
func (*UsersDeleteCall) Do ¶
func (c *UsersDeleteCall) Do() error
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 UsersGetCall ¶
type UsersGetCall struct {
// contains filtered or unexported fields
}
func (*UsersGetCall) CustomFieldMask ¶
func (c *UsersGetCall) CustomFieldMask(customFieldMask string) *UsersGetCall
CustomFieldMask sets the optional parameter "customFieldMask": Comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom.
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.
func (*UsersGetCall) Projection ¶
func (c *UsersGetCall) Projection(projection string) *UsersGetCall
Projection sets the optional parameter "projection": What subset of fields to fetch for this user.
func (*UsersGetCall) ViewType ¶
func (c *UsersGetCall) ViewType(viewType string) *UsersGetCall
ViewType sets the optional parameter "viewType": Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user.
type UsersInsertCall ¶
type UsersInsertCall struct {
// contains filtered or unexported fields
}
func (*UsersInsertCall) Do ¶
func (c *UsersInsertCall) Do() (*User, error)
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) CustomFieldMask ¶
func (c *UsersListCall) CustomFieldMask(customFieldMask string) *UsersListCall
CustomFieldMask sets the optional parameter "customFieldMask": Comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom.
func (*UsersListCall) Customer ¶
func (c *UsersListCall) Customer(customer string) *UsersListCall
Customer sets the optional parameter "customer": Immutable id of the Google Apps account. In case of multi-domain, to fetch all users for a customer, fill this field instead of domain.
func (*UsersListCall) Do ¶
func (c *UsersListCall) Do() (*Users, error)
func (*UsersListCall) Domain ¶
func (c *UsersListCall) Domain(domain string) *UsersListCall
Domain sets the optional parameter "domain": Name of the domain. Fill this field to get users from only this domain. To return all users in a multi-domain fill customer field instead.
func (*UsersListCall) Event ¶
func (c *UsersListCall) Event(event string) *UsersListCall
Event sets the optional parameter "event": Event on which subscription is intended (if subscribing)
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) MaxResults ¶
func (c *UsersListCall) MaxResults(maxResults int64) *UsersListCall
MaxResults sets the optional parameter "maxResults": Maximum number of results to return. Default is 100. Max allowed is 500
func (*UsersListCall) OrderBy ¶
func (c *UsersListCall) OrderBy(orderBy string) *UsersListCall
OrderBy sets the optional parameter "orderBy": Column to use for sorting results
func (*UsersListCall) PageToken ¶
func (c *UsersListCall) PageToken(pageToken string) *UsersListCall
PageToken sets the optional parameter "pageToken": Token to specify next page in the list
func (*UsersListCall) Projection ¶
func (c *UsersListCall) Projection(projection string) *UsersListCall
Projection sets the optional parameter "projection": What subset of fields to fetch for this user.
func (*UsersListCall) Query ¶
func (c *UsersListCall) Query(query string) *UsersListCall
Query sets the optional parameter "query": Query string search. Should be of the form "". Complete documentation is at https://developers.google.com/admin-sdk/directory/v1/guides/search-use rs
func (*UsersListCall) ShowDeleted ¶
func (c *UsersListCall) ShowDeleted(showDeleted string) *UsersListCall
ShowDeleted sets the optional parameter "showDeleted": If set to true retrieves the list of deleted users. Default is false
func (*UsersListCall) SortOrder ¶
func (c *UsersListCall) SortOrder(sortOrder string) *UsersListCall
SortOrder sets the optional parameter "sortOrder": Whether to return results in ascending or descending order.
func (*UsersListCall) ViewType ¶
func (c *UsersListCall) ViewType(viewType string) *UsersListCall
ViewType sets the optional parameter "viewType": Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user.
type UsersMakeAdminCall ¶
type UsersMakeAdminCall struct {
// contains filtered or unexported fields
}
func (*UsersMakeAdminCall) Do ¶
func (c *UsersMakeAdminCall) Do() error
func (*UsersMakeAdminCall) Fields ¶
func (c *UsersMakeAdminCall) Fields(s ...googleapi.Field) *UsersMakeAdminCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersPatchCall ¶
type UsersPatchCall struct {
// contains filtered or unexported fields
}
func (*UsersPatchCall) Do ¶
func (c *UsersPatchCall) Do() (*User, error)
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 UsersPhotosDeleteCall ¶
type UsersPhotosDeleteCall struct {
// contains filtered or unexported fields
}
func (*UsersPhotosDeleteCall) Do ¶
func (c *UsersPhotosDeleteCall) Do() error
func (*UsersPhotosDeleteCall) Fields ¶
func (c *UsersPhotosDeleteCall) Fields(s ...googleapi.Field) *UsersPhotosDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersPhotosGetCall ¶
type UsersPhotosGetCall struct {
// contains filtered or unexported fields
}
func (*UsersPhotosGetCall) Do ¶
func (c *UsersPhotosGetCall) Do() (*UserPhoto, error)
func (*UsersPhotosGetCall) Fields ¶
func (c *UsersPhotosGetCall) Fields(s ...googleapi.Field) *UsersPhotosGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersPhotosPatchCall ¶
type UsersPhotosPatchCall struct {
// contains filtered or unexported fields
}
func (*UsersPhotosPatchCall) Do ¶
func (c *UsersPhotosPatchCall) Do() (*UserPhoto, error)
func (*UsersPhotosPatchCall) Fields ¶
func (c *UsersPhotosPatchCall) Fields(s ...googleapi.Field) *UsersPhotosPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type UsersPhotosService ¶
type UsersPhotosService struct {
// contains filtered or unexported fields
}
func NewUsersPhotosService ¶
func NewUsersPhotosService(s *Service) *UsersPhotosService
func (*UsersPhotosService) Delete ¶
func (r *UsersPhotosService) Delete(userKey string) *UsersPhotosDeleteCall
Delete: Remove photos for the user
func (*UsersPhotosService) Get ¶
func (r *UsersPhotosService) Get(userKey string) *UsersPhotosGetCall
Get: Retrieve photo of a user
func (*UsersPhotosService) Patch ¶
func (r *UsersPhotosService) Patch(userKey string, userphoto *UserPhoto) *UsersPhotosPatchCall
Patch: Add a photo for the user. This method supports patch semantics.
func (*UsersPhotosService) Update ¶
func (r *UsersPhotosService) Update(userKey string, userphoto *UserPhoto) *UsersPhotosUpdateCall
Update: Add a photo for the user
type UsersPhotosUpdateCall ¶
type UsersPhotosUpdateCall struct {
// contains filtered or unexported fields
}
func (*UsersPhotosUpdateCall) Do ¶
func (c *UsersPhotosUpdateCall) Do() (*UserPhoto, error)
func (*UsersPhotosUpdateCall) Fields ¶
func (c *UsersPhotosUpdateCall) Fields(s ...googleapi.Field) *UsersPhotosUpdateCall
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 { Aliases *UsersAliasesService Photos *UsersPhotosService // contains filtered or unexported fields }
func NewUsersService ¶
func NewUsersService(s *Service) *UsersService
func (*UsersService) Delete ¶
func (r *UsersService) Delete(userKey string) *UsersDeleteCall
Delete: Delete user
func (*UsersService) Get ¶
func (r *UsersService) Get(userKey string) *UsersGetCall
Get: retrieve user
func (*UsersService) Insert ¶
func (r *UsersService) Insert(user *User) *UsersInsertCall
Insert: create user.
func (*UsersService) List ¶
func (r *UsersService) List() *UsersListCall
List: Retrieve either deleted users or all users in a domain (paginated)
func (*UsersService) MakeAdmin ¶
func (r *UsersService) MakeAdmin(userKey string, usermakeadmin *UserMakeAdmin) *UsersMakeAdminCall
MakeAdmin: change admin status of a user
func (*UsersService) Patch ¶
func (r *UsersService) Patch(userKey string, user *User) *UsersPatchCall
Patch: update user. This method supports patch semantics.
func (*UsersService) Undelete ¶
func (r *UsersService) Undelete(userKey string, userundelete *UserUndelete) *UsersUndeleteCall
Undelete: Undelete a deleted user
func (*UsersService) Update ¶
func (r *UsersService) Update(userKey string, user *User) *UsersUpdateCall
Update: update user
func (*UsersService) Watch ¶
func (r *UsersService) Watch(channel *Channel) *UsersWatchCall
Watch: Watch for changes in users list
type UsersUndeleteCall ¶
type UsersUndeleteCall struct {
// contains filtered or unexported fields
}
func (*UsersUndeleteCall) Do ¶
func (c *UsersUndeleteCall) Do() error
func (*UsersUndeleteCall) Fields ¶
func (c *UsersUndeleteCall) Fields(s ...googleapi.Field) *UsersUndeleteCall
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) Do ¶
func (c *UsersUpdateCall) Do() (*User, error)
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.
type UsersWatchCall ¶
type UsersWatchCall struct {
// contains filtered or unexported fields
}
func (*UsersWatchCall) CustomFieldMask ¶
func (c *UsersWatchCall) CustomFieldMask(customFieldMask string) *UsersWatchCall
CustomFieldMask sets the optional parameter "customFieldMask": Comma-separated list of schema names. All fields from these schemas are fetched. This should only be set when projection=custom.
func (*UsersWatchCall) Customer ¶
func (c *UsersWatchCall) Customer(customer string) *UsersWatchCall
Customer sets the optional parameter "customer": Immutable id of the Google Apps account. In case of multi-domain, to fetch all users for a customer, fill this field instead of domain.
func (*UsersWatchCall) Do ¶
func (c *UsersWatchCall) Do() (*Channel, error)
func (*UsersWatchCall) Domain ¶
func (c *UsersWatchCall) Domain(domain string) *UsersWatchCall
Domain sets the optional parameter "domain": Name of the domain. Fill this field to get users from only this domain. To return all users in a multi-domain fill customer field instead.
func (*UsersWatchCall) Event ¶
func (c *UsersWatchCall) Event(event string) *UsersWatchCall
Event sets the optional parameter "event": Event on which subscription is intended (if subscribing)
func (*UsersWatchCall) Fields ¶
func (c *UsersWatchCall) Fields(s ...googleapi.Field) *UsersWatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*UsersWatchCall) MaxResults ¶
func (c *UsersWatchCall) MaxResults(maxResults int64) *UsersWatchCall
MaxResults sets the optional parameter "maxResults": Maximum number of results to return. Default is 100. Max allowed is 500
func (*UsersWatchCall) OrderBy ¶
func (c *UsersWatchCall) OrderBy(orderBy string) *UsersWatchCall
OrderBy sets the optional parameter "orderBy": Column to use for sorting results
func (*UsersWatchCall) PageToken ¶
func (c *UsersWatchCall) PageToken(pageToken string) *UsersWatchCall
PageToken sets the optional parameter "pageToken": Token to specify next page in the list
func (*UsersWatchCall) Projection ¶
func (c *UsersWatchCall) Projection(projection string) *UsersWatchCall
Projection sets the optional parameter "projection": What subset of fields to fetch for this user.
func (*UsersWatchCall) Query ¶
func (c *UsersWatchCall) Query(query string) *UsersWatchCall
Query sets the optional parameter "query": Query string search. Should be of the form "". Complete documentation is at https://developers.google.com/admin-sdk/directory/v1/guides/search-use rs
func (*UsersWatchCall) ShowDeleted ¶
func (c *UsersWatchCall) ShowDeleted(showDeleted string) *UsersWatchCall
ShowDeleted sets the optional parameter "showDeleted": If set to true retrieves the list of deleted users. Default is false
func (*UsersWatchCall) SortOrder ¶
func (c *UsersWatchCall) SortOrder(sortOrder string) *UsersWatchCall
SortOrder sets the optional parameter "sortOrder": Whether to return results in ascending or descending order.
func (*UsersWatchCall) ViewType ¶
func (c *UsersWatchCall) ViewType(viewType string) *UsersWatchCall
ViewType sets the optional parameter "viewType": Whether to fetch the ADMIN_VIEW or DOMAIN_PUBLIC view of the user.
type VerificationCode ¶
type VerificationCode struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Kind: The type of the resource. This is always // admin#directory#verificationCode. Kind string `json:"kind,omitempty"` // UserId: The obfuscated unique ID of the user. UserId string `json:"userId,omitempty"` // VerificationCode: A current verification code for the user. // Invalidated or used verification codes are not returned as part of // the result. VerificationCode string `json:"verificationCode,omitempty"` }
type VerificationCodes ¶
type VerificationCodes struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Items: A list of verification code resources. Items []*VerificationCode `json:"items,omitempty"` // Kind: The type of the resource. This is always // admin#directory#verificationCodesList. Kind string `json:"kind,omitempty"` }
type VerificationCodesGenerateCall ¶
type VerificationCodesGenerateCall struct {
// contains filtered or unexported fields
}
func (*VerificationCodesGenerateCall) Do ¶
func (c *VerificationCodesGenerateCall) Do() error
func (*VerificationCodesGenerateCall) Fields ¶
func (c *VerificationCodesGenerateCall) Fields(s ...googleapi.Field) *VerificationCodesGenerateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type VerificationCodesInvalidateCall ¶
type VerificationCodesInvalidateCall struct {
// contains filtered or unexported fields
}
func (*VerificationCodesInvalidateCall) Do ¶
func (c *VerificationCodesInvalidateCall) Do() error
func (*VerificationCodesInvalidateCall) Fields ¶
func (c *VerificationCodesInvalidateCall) Fields(s ...googleapi.Field) *VerificationCodesInvalidateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type VerificationCodesListCall ¶
type VerificationCodesListCall struct {
// contains filtered or unexported fields
}
func (*VerificationCodesListCall) Do ¶
func (c *VerificationCodesListCall) Do() (*VerificationCodes, error)
func (*VerificationCodesListCall) Fields ¶
func (c *VerificationCodesListCall) Fields(s ...googleapi.Field) *VerificationCodesListCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
type VerificationCodesService ¶
type VerificationCodesService struct {
// contains filtered or unexported fields
}
func NewVerificationCodesService ¶
func NewVerificationCodesService(s *Service) *VerificationCodesService
func (*VerificationCodesService) Generate ¶
func (r *VerificationCodesService) Generate(userKey string) *VerificationCodesGenerateCall
Generate: Generate new backup verification codes for the user.
func (*VerificationCodesService) Invalidate ¶
func (r *VerificationCodesService) Invalidate(userKey string) *VerificationCodesInvalidateCall
Invalidate: Invalidate the current backup verification codes for the user.
func (*VerificationCodesService) List ¶
func (r *VerificationCodesService) List(userKey string) *VerificationCodesListCall
List: Returns the current set of valid backup verification codes for the specified user.