Documentation ¶
Overview ¶
Package gsmadmin implements the Admin SDK APIs
Index ¶
- func CreatePrinter(parent, fields string, printer *admin.Printer) (*admin.Printer, error)
- func DeleteAsp(userKey string, codeID int64) (bool, error)
- func DeleteBuilding(customer, buildingID string) (bool, error)
- func DeleteCalendarResource(customer, calendarResourceID string) (bool, error)
- func DeleteContactDelegate(parent, email string) (bool, error)
- func DeleteDomain(customerID, domainName string) (bool, error)
- func DeleteDomainAlias(customerID, domainAliasName string) (bool, error)
- func DeleteFeature(customer, featureKey string) (bool, error)
- func DeleteGroup(groupKey string) (bool, error)
- func DeleteGroupAlias(groupKey, alias string) (bool, error)
- func DeleteMember(groupKey, memberKey string) (bool, error)
- func DeleteMobileDevice(customerID, resourceID string) (bool, error)
- func DeleteOrgUnit(customerID, orgUnitPath string) (bool, error)
- func DeletePrinter(name string) (bool, error)
- func DeleteRole(customer, roleID string) (bool, error)
- func DeleteRoleAssignment(customer, roleAssignmentID string) (bool, error)
- func DeleteSchema(customerID, schemaKey string) (bool, error)
- func DeleteSharedContact(url string) ([]byte, error)
- func DeleteToken(userKey, clientID string) (bool, error)
- func DeleteUser(userKey string) (bool, error)
- func DeleteUserAlias(userKey, alias string) (bool, error)
- func DeleteUserPhoto(userKey string) (bool, error)
- func GenerateVerificationCodes(userKey string) (bool, error)
- func GetAsp(userKey, fields string, codeID int64) (*admin.Asp, error)
- func GetBuilding(customer, buildingID, fields string) (*admin.Building, error)
- func GetCalendarResource(customer, calendarResourceID, fields string) (*admin.CalendarResource, error)
- func GetChromeOsDevice(customerID, deviceID, fields, projection string) (*admin.ChromeOsDevice, error)
- func GetCommand(customerID, deviceID, fields string, commandID int64) (*admin.DirectoryChromeosdevicesCommand, error)
- func GetCustomer(id, fields string) (*admin.Customer, error)
- func GetCustomerID(customerID string) string
- func GetDomain(customerID, domainName, fields string) (*admin.Domains, error)
- func GetDomainAlias(customerID, domainAliasName, fields string) (*admin.DomainAlias, error)
- func GetFeature(customer, featureKey, fields string) (*admin.Feature, error)
- func GetGroup(groupKey, fields string) (*admin.Group, error)
- func GetMember(groupKey, memberKey, fields string) (*admin.Member, error)
- func GetMembersToSet(groupKey string, threads int, emailAddresses ...string) (<-chan string, <-chan string, error)
- func GetMobileDevice(customerID, resourceID, fields, projection string) (*admin.MobileDevice, error)
- func GetOrgUnit(customerID, orgUnitPath, fields string) (*admin.OrgUnit, error)
- func GetOwnCustomerID() (string, error)
- func GetPrinter(name, fields string) (*admin.Printer, error)
- func GetRole(customer, roleID, fields string) (*admin.Role, error)
- func GetRoleAssignment(customer, roleAssignmentID, fields string) (*admin.RoleAssignment, error)
- func GetSchema(customerID, schemaKey, fields string) (*admin.Schema, error)
- func GetToken(userKey, clientID, fields string) (*admin.Token, error)
- func GetUniqueUsersChannelRecursive(orgUnits, groupEmails []string, threads int) (<-chan string, <-chan error)
- func GetUser(userKey, fields, projection, customFieldMask, viewType string) (*admin.User, error)
- func GetUserPhoto(userKey, fields string) (*admin.UserPhoto, error)
- func HasMember(groupKey, memberKey string) (bool, error)
- func InsertBuilding(customer, coordinatesSource, fields string, building *admin.Building) (*admin.Building, error)
- func InsertCalendarResource(customer, fields string, calendarResource *admin.CalendarResource) (*admin.CalendarResource, error)
- func InsertDomain(customerID, fields string, domain *admin.Domains) (*admin.Domains, error)
- func InsertDomainAlias(customerID, fields string, domainAlias *admin.DomainAlias) (*admin.DomainAlias, error)
- func InsertFeature(customer, fields string, feature *admin.Feature) (*admin.Feature, error)
- func InsertGroup(group *admin.Group, fields string) (*admin.Group, error)
- func InsertGroupAlias(groupKey, fields string, alias *admin.Alias) (*admin.Alias, error)
- func InsertMember(groupKey, fields string, member *admin.Member) (*admin.Member, error)
- func InsertOrgUnit(customerID, fields string, OrgUnit *admin.OrgUnit) (*admin.OrgUnit, error)
- func InsertRole(customer, fields string, role *admin.Role) (*admin.Role, error)
- func InsertRoleAssignment(customer, fields string, roleAssignment *admin.RoleAssignment) (*admin.RoleAssignment, error)
- func InsertSchema(customerID, fields string, schema *admin.Schema) (*admin.Schema, error)
- func InsertUser(user *admin.User, fields string) (*admin.User, error)
- func InsertUserAlias(userKey, fields string, alias *admin.Alias) (*admin.Alias, error)
- func InvalidateVerificationCodes(userKey string) (bool, error)
- func IssueCommand(customerID, deviceID string, ...) (int64, error)
- func ListAsps(userKey, fields string) ([]*admin.Asp, error)
- func ListBuildings(customer, fields string, cap int) (<-chan *admin.Building, <-chan error)
- func ListCalendarResources(customer, orderBy, query, fields string, cap int) (<-chan *admin.CalendarResource, <-chan error)
- func ListChromeOsDevices(customerID, query, orgUnitPath, fields, projection string, cap int) (<-chan *admin.ChromeOsDevice, <-chan error)
- func ListDomainAliases(customerID, parentDomainName, fields string) ([]*admin.DomainAlias, error)
- func ListDomains(customerID, fields string) ([]*admin.Domains, error)
- func ListFeatures(customer, fields string, cap int) (<-chan *admin.Feature, <-chan error)
- func ListGroupAliases(groupKey, fields string) ([]any, error)
- func ListGroups(filter, userKey, domain, customer, fields string, cap int) (<-chan *admin.Group, <-chan error)
- func ListMembers(groupKey, roles, fields string, includeDerivedMembership bool, cap int) (<-chan *admin.Member, <-chan error)
- func ListMobileDevices(customerID, query, fields, projection, orderBy, sortOrder string, cap int) (<-chan *admin.MobileDevice, <-chan error)
- func ListOrgUnits(customerID, t, orgUnitPath, fields string) ([]*admin.OrgUnit, error)
- func ListPrinterModels(parent, filter, fields string, cap int) (<-chan *admin.PrinterModel, <-chan error)
- func ListPrinters(parent, filter, fields string, cap int) (<-chan *admin.Printer, <-chan error)
- func ListPrivileges(customerID, fields string) ([]*admin.Privilege, error)
- func ListRoleAssignments(customer, roleID, userKey, fields string, cap int) (<-chan *admin.RoleAssignment, <-chan error)
- func ListRoles(customer, fields string, cap int) (<-chan *admin.Role, <-chan error)
- func ListSchema(customerID, fields string) ([]*admin.Schema, error)
- func ListTokens(userKey, fields string) ([]*admin.Token, error)
- func ListUserAliases(userKey, fields string) ([]any, error)
- func ListUsers(showDeleted bool, ...) (<-chan *admin.User, <-chan error)
- func ListVerificationCodes(userKey, fields string) ([]*admin.VerificationCode, error)
- func MakeAdmin(userKey string, status bool) (bool, error)
- func MoveChromeOSDevicesToOU(customerID, orgUnitPath string, devicesToMove *admin.ChromeOsMoveDevicesToOu) (bool, error)
- func PatchBuilding(customer, buildingID, coordinatesSource, fields string, ...) (*admin.Building, error)
- func PatchCalendarResource(customer, calendarResourceID, fields string, calendar *admin.CalendarResource) (*admin.CalendarResource, error)
- func PatchChromeOsDevice(customerID, deviceID, fields, projection string, ...) (*admin.ChromeOsDevice, error)
- func PatchCustomer(customerKey, fields string, customer *admin.Customer) (*admin.Customer, error)
- func PatchFeature(customer, featureKey, fields string, feature *admin.Feature) (*admin.Feature, error)
- func PatchGroup(groupKey, fields string, Group *admin.Group) (*admin.Group, error)
- func PatchMember(groupKey, memberKey, fields string, member *admin.Member) (*admin.Member, error)
- func PatchOrgUnit(customerID, orgUnitPath, fields string, OrgUnit *admin.OrgUnit) (*admin.OrgUnit, error)
- func PatchPrinter(name, updateMask, clearMask, fields string, printer *admin.Printer) (*admin.Printer, error)
- func PatchRole(customer, roleID, fields string, role *admin.Role) (*admin.Role, error)
- func PatchSchema(customerID, schemaKey, fields string, schema *admin.Schema) (*admin.Schema, error)
- func RenameFeature(customer, oldName string, featureRename *admin.FeatureRename) (bool, error)
- func SetClient(c *http.Client)
- func SignOutUser(userKey string) (bool, error)
- func TakeActionOnChromeOsDevice(customerID, deviceID string, action *admin.ChromeOsDeviceAction) (bool, error)
- func TakeActionOnMobileDevice(customerID, resourceID string, action *admin.MobileDeviceAction) (bool, error)
- func TurnOffTwoStepVerification(userKey string) (bool, error)
- func UndeletUser(userKey, orgUnitPath string) (bool, error)
- func UpdateUser(userKey, fields string, user *admin.User) (*admin.User, error)
- func UpdateUserPhoto(userKey, fields string, userPhoto *admin.UserPhoto) (*admin.UserPhoto, error)
- type Author
- type Category
- type ContactDelegate
- type Email
- type Entry
- type EntryLink
- type EntryLinkEntry
- type EntryLinkEntryEmail
- type EntryLinkEntryLink
- type ExtendedProperty
- type Feed
- type Generator
- type GeoPt
- type Im
- type Link
- type Name
- type Organization
- type PhoneNumber
- type PostalAddress
- type PrinterResults
- type StructuredPostalAddress
- type Title
- type Where
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreatePrinter ¶ added in v0.2.5
CreatePrinter creates a printer under given Organization Unit.
func DeleteBuilding ¶
DeleteBuilding deletes a building.
func DeleteCalendarResource ¶
DeleteCalendarResource deletes a calendar resource.
func DeleteContactDelegate ¶ added in v0.2.4
DeleteContactDelegate deletes a delegate from a given user.
func DeleteDomain ¶
DeleteDomain deletes a domain of the customer.
func DeleteDomainAlias ¶
DeleteDomainAlias deletes a Domain Alias of the customer.
func DeleteFeature ¶
DeleteFeature deletes a feature.
func DeleteGroupAlias ¶
DeleteGroupAlias removes an alias.
func DeleteMember ¶
DeleteMember removes a member from a group.
func DeleteMobileDevice ¶
DeleteMobileDevice removes a mobile device.
func DeleteOrgUnit ¶
DeleteOrgUnit removes an organizational unit.
func DeletePrinter ¶ added in v0.2.5
DeletePrinter deletes a Printer.
func DeleteRole ¶
DeleteRole deleteRole deletes a role.
func DeleteRoleAssignment ¶
DeleteRoleAssignment deletes a role assignment.
func DeleteSchema ¶
DeleteSchema removes a custom schema.
func DeleteSharedContact ¶
DeleteSharedContact deletes a shared contact
func DeleteToken ¶
DeleteToken deletes all access tokens issued by a user for an application.rolesPatchCmd
func DeleteUserAlias ¶
DeleteUserAlias removes an alias.
func DeleteUserPhoto ¶
DeleteUserPhoto removes the user's photo.
func GenerateVerificationCodes ¶
GenerateVerificationCodes generates new backup verification codes for the user.
func GetBuilding ¶
GetBuilding retrieves a building.
func GetCalendarResource ¶
func GetCalendarResource(customer, calendarResourceID, fields string) (*admin.CalendarResource, error)
GetCalendarResource retrieves a calendar resource.
func GetChromeOsDevice ¶
func GetChromeOsDevice(customerID, deviceID, fields, projection string) (*admin.ChromeOsDevice, error)
GetChromeOsDevice retrieves a Chrome OS device's properties.
func GetCommand ¶
func GetCommand(customerID, deviceID, fields string, commandID int64) (*admin.DirectoryChromeosdevicesCommand, error)
GetCommand gets command data a specific command issued to the device.
func GetCustomer ¶
GetCustomer retrieves a customer.
func GetCustomerID ¶
GetCustomerID returns either your own customer ID or the provided one
func GetDomainAlias ¶
func GetDomainAlias(customerID, domainAliasName, fields string) (*admin.DomainAlias, error)
GetDomainAlias retrieves a domain alias of the customer.
func GetFeature ¶
GetFeature retrieves a feature.
func GetMembersToSet ¶ added in v0.2.1
func GetMembersToSet(groupKey string, threads int, emailAddresses ...string) (<-chan string, <-chan string, error)
GetMembersToSet compares the list of current members of a group to the specified emailAddresses. The function will return a list of members to be added and / or removed.
func GetMobileDevice ¶
func GetMobileDevice(customerID, resourceID, fields, projection string) (*admin.MobileDevice, error)
GetMobileDevice retrieves a mobile device's properties.
func GetOrgUnit ¶
GetOrgUnit retrieves an organizational unit.
func GetOwnCustomerID ¶
GetOwnCustomerID returns your own customer ID
func GetPrinter ¶ added in v0.2.5
GetPrinter returns a Printer resource (printer's config).
func GetRoleAssignment ¶
func GetRoleAssignment(customer, roleAssignmentID, fields string) (*admin.RoleAssignment, error)
GetRoleAssignment retrieve a role assignment.
func GetUniqueUsersChannelRecursive ¶
func GetUniqueUsersChannelRecursive(orgUnits, groupEmails []string, threads int) (<-chan string, <-chan error)
GetUniqueUsersChannelRecursive returns a channel containing unique email addresses of all users inside the specified orgUnits and groups
func GetUserPhoto ¶
GetUserPhoto retrieves the user's photo.
func HasMember ¶
HasMember checks whether the given user is a member of the group. Membership can be direct or nested.
func InsertBuilding ¶
func InsertBuilding(customer, coordinatesSource, fields string, building *admin.Building) (*admin.Building, error)
InsertBuilding inserts a building.
func InsertCalendarResource ¶
func InsertCalendarResource(customer, fields string, calendarResource *admin.CalendarResource) (*admin.CalendarResource, error)
InsertCalendarResource inserts a calendar resource.
func InsertDomain ¶
InsertDomain inserts a domain of the customer.
func InsertDomainAlias ¶
func InsertDomainAlias(customerID, fields string, domainAlias *admin.DomainAlias) (*admin.DomainAlias, error)
InsertDomainAlias inserts a Domain alias of the customer.
func InsertFeature ¶
InsertFeature inserts a feature.
func InsertGroup ¶
InsertGroup creates a group.
func InsertGroupAlias ¶
InsertGroupAlias adds an alias for the group.
func InsertMember ¶
InsertMember adds a user to the specified group.
func InsertOrgUnit ¶
InsertOrgUnit adds an organizational unit.
func InsertRole ¶
InsertRole creates a role.
func InsertRoleAssignment ¶
func InsertRoleAssignment(customer, fields string, roleAssignment *admin.RoleAssignment) (*admin.RoleAssignment, error)
InsertRoleAssignment creates a role assignment.
func InsertSchema ¶
InsertSchema creates a custom schema.
func InsertUser ¶
InsertUser creates a user.
func InsertUserAlias ¶
InsertUserAlias adds an alias.
func InvalidateVerificationCodes ¶
InvalidateVerificationCodes invalidates the current backup verification codes for the user.
func IssueCommand ¶
func IssueCommand(customerID, deviceID string, issueCommandRequest *admin.DirectoryChromeosdevicesIssueCommandRequest) (int64, error)
IssueCommand issues a command for the device to execute.
func ListBuildings ¶
ListBuildings retrieves a list of buildings for an account.
func ListCalendarResources ¶
func ListCalendarResources(customer, orderBy, query, fields string, cap int) (<-chan *admin.CalendarResource, <-chan error)
ListCalendarResources retrieves a list of calendar resources for an account.
func ListChromeOsDevices ¶
func ListChromeOsDevices(customerID, query, orgUnitPath, fields, projection string, cap int) (<-chan *admin.ChromeOsDevice, <-chan error)
ListChromeOsDevices retrieves a paginated list of Chrome OS devices within an account.
func ListDomainAliases ¶
func ListDomainAliases(customerID, parentDomainName, fields string) ([]*admin.DomainAlias, error)
ListDomainAliases lists the domain aliases of the customer.
func ListDomains ¶
ListDomains lists the domains of the customer.
func ListFeatures ¶
ListFeatures retrieves a list of features for an account.
func ListGroupAliases ¶
ListGroupAliases lists all aliases for a group.
func ListGroups ¶
func ListGroups(filter, userKey, domain, customer, fields string, cap int) (<-chan *admin.Group, <-chan error)
ListGroups retrieve all groups of a domain or of a user given a userKey (paginated)
func ListMembers ¶
func ListMembers(groupKey, roles, fields string, includeDerivedMembership bool, cap int) (<-chan *admin.Member, <-chan error)
ListMembers retrieves a paginated list of all members in a group.
func ListMobileDevices ¶
func ListMobileDevices(customerID, query, fields, projection, orderBy, sortOrder string, cap int) (<-chan *admin.MobileDevice, <-chan error)
ListMobileDevices retrieves a paginated list of all mobile devices for an account.
func ListOrgUnits ¶
ListOrgUnits retrieves a list of all organizational units for an account.
func ListPrinterModels ¶ added in v0.2.5
func ListPrinterModels(parent, filter, fields string, cap int) (<-chan *admin.PrinterModel, <-chan error)
ListPrinterModels lists the supported printer models.
func ListPrinters ¶ added in v0.2.5
ListPrinters lists printers configs.
func ListPrivileges ¶
ListPrivileges retrieves a paginated list of all privileges for a customer.
func ListRoleAssignments ¶
func ListRoleAssignments(customer, roleID, userKey, fields string, cap int) (<-chan *admin.RoleAssignment, <-chan error)
ListRoleAssignments retrieves a paginated list of all roleAssignments.
func ListSchema ¶
ListSchema lists custom schemas.
func ListTokens ¶
ListTokens returns the set of tokens specified user has issued to 3rd party applications.rolesPatchCmd
func ListUserAliases ¶
ListUserAliases lists all aliases for a user.
func ListUsers ¶
func ListUsers(showDeleted bool, query, domain, customer, fields, projection, orderBy, sortOrder, viewType, customFieldMask string, cap int) (<-chan *admin.User, <-chan error)
ListUsers retrieves a paginated list of either deleted users or all users in a domain.
func ListVerificationCodes ¶
func ListVerificationCodes(userKey, fields string) ([]*admin.VerificationCode, error)
ListVerificationCodes returns the current set of valid backup verification codes for the specified user.
func MoveChromeOSDevicesToOU ¶
func MoveChromeOSDevicesToOU(customerID, orgUnitPath string, devicesToMove *admin.ChromeOsMoveDevicesToOu) (bool, error)
MoveChromeOSDevicesToOU moves or inserts multiple Chrome OS devices to an organizational unit. You can move up to 50 devices at once.
func PatchBuilding ¶
func PatchBuilding(customer, buildingID, coordinatesSource, fields string, building *admin.Building) (*admin.Building, error)
PatchBuilding updates a building. This method supports patch semantics.
func PatchCalendarResource ¶
func PatchCalendarResource(customer, calendarResourceID, fields string, calendar *admin.CalendarResource) (*admin.CalendarResource, error)
PatchCalendarResource updates a calendar resource. This method supports patch semantics.
func PatchChromeOsDevice ¶
func PatchChromeOsDevice(customerID, deviceID, fields, projection string, chromeOsDevice *admin.ChromeOsDevice) (*admin.ChromeOsDevice, error)
PatchChromeOsDevice updates a device's updatable properties, such as annotatedUser, annotatedLocation, notes, orgUnitPath, or annotatedAssetId. This method supports patch semantics.
func PatchCustomer ¶
PatchCustomer updates a customer. This method supports patch semantics.
func PatchFeature ¶
func PatchFeature(customer, featureKey, fields string, feature *admin.Feature) (*admin.Feature, error)
PatchFeature updates a feature. This method supports patch semantics.
func PatchGroup ¶
PatchGroup updates a group's properties. This method supports patch semantics.
func PatchMember ¶
PatchMember updates the membership properties of a user in the specified group. This method supports patch semantics.
func PatchOrgUnit ¶
func PatchOrgUnit(customerID, orgUnitPath, fields string, OrgUnit *admin.OrgUnit) (*admin.OrgUnit, error)
PatchOrgUnit updates an organizational unit. This method supports patch semantics.
func PatchPrinter ¶ added in v0.2.5
func PatchPrinter(name, updateMask, clearMask, fields string, printer *admin.Printer) (*admin.Printer, error)
PatchPrinter updates a Printer resource.
func PatchSchema ¶
PatchSchema updates a customs schema.
func RenameFeature ¶
func RenameFeature(customer, oldName string, featureRename *admin.FeatureRename) (bool, error)
RenameFeature renames a feature.
func SignOutUser ¶
SignOutUser signs a user out of all web and device sessions and reset their sign-in cookies. User will have to sign in by authenticating again.
func TakeActionOnChromeOsDevice ¶
func TakeActionOnChromeOsDevice(customerID, deviceID string, action *admin.ChromeOsDeviceAction) (bool, error)
TakeActionOnChromeOsDevice takes an action that affects a Chrome OS Device. This includes deprovisioning, disabling, and re-enabling devices.
func TakeActionOnMobileDevice ¶
func TakeActionOnMobileDevice(customerID, resourceID string, action *admin.MobileDeviceAction) (bool, error)
TakeActionOnMobileDevice takes an action that affects a mobile device. For example, remotely wiping a device.
func TurnOffTwoStepVerification ¶
TurnOffTwoStepVerification turns off 2-Step Verification for user.
func UndeletUser ¶
UndeletUser undeletes a deleted user.
func UpdateUser ¶ added in v0.2.3
UpdateUser updates a user using patch semantics.
Types ¶
type Author ¶
type Author struct { Text string `xml:",chardata"` Name string `xml:"name"` Email string `xml:"email"` }
Author is a Feed Author
type Category ¶
type Category struct { Text string `xml:",chardata"` Scheme string `xml:"scheme,attr"` Term string `xml:"term,attr"` }
Category is a Feed Category
type ContactDelegate ¶ added in v0.2.4
type ContactDelegate struct {
Email string `json:"email,omitempty"`
}
ContactDelegate represents a delegation to manage a user's contacts
func CreateContactDelegate ¶ added in v0.2.4
func CreateContactDelegate(parent, email string) (*ContactDelegate, error)
CreateContactDelegate creates one or more delegates for a given user.
func ListContactDelegates ¶ added in v0.2.4
func ListContactDelegates(parent string) ([]*ContactDelegate, error)
ListContactDelegates lists the delegates of a given user.
type Email ¶
type Email struct { Text string `xml:",chardata"` Rel string `xml:"rel,attr"` Primary string `xml:"primary,attr"` Address string `xml:"address,attr"` DisplayName string `xml:"displayName,attr"` Label string `xml:"label,attr"` }
Email is a Shared Contact Email
type Entry ¶
type Entry struct { Where Where `xml:"where"` Name Name `xml:"name"` Category Category `xml:"category"` Title Title `xml:"title"` Gd string `xml:"gd,attr"` ID string `xml:"id"` Updated string `xml:"updated"` Xmlns string `xml:"xmlns,attr"` Content string `xml:"content"` Text string `xml:",chardata"` ExtendedProperty []ExtendedProperty `xml:"extendedProperty"` Link []Link `xml:"link"` Email []Email `xml:"email"` Im []Im `xml:"im"` PostalAddress []PostalAddress `xml:"postalAddress"` Organization []Organization `xml:"organization"` StructuredPostalAddress []StructuredPostalAddress `xml:"structuredPostalAddress"` PhoneNumber []PhoneNumber `xml:"phoneNumber"` }
Entry is a Feed Entry
func CreateSharedContact ¶
CreateSharedContact creates a new shared contact in the domain
func GetSharedContact ¶
GetSharedContact retrieves a shared contact
func ListSharedContacts ¶
ListSharedContacts lists all shared contacts in the domain
type EntryLink ¶
type EntryLink struct { Text string `xml:",chardata"` Href string `xml:"href,attr"` Entry EntryLinkEntry `xml:"entry"` }
EntryLink is a Where Entry Link object
type EntryLinkEntry ¶
type EntryLinkEntry struct { Text string `xml:",chardata"` ID string `xml:"id"` Category Category `xml:"category"` Content string `xml:"content"` Link Link `xml:"link"` PostalAddress string `xml:"postalAddress"` GeoPt GeoPt `xml:"geoPt"` PhoneNumber string `xml:"phoneNumber"` Email EntryLinkEntryEmail `xml:"email"` }
EntryLinkEntry is a Entry Link Entry object of a Shared Contact Where object
type EntryLinkEntryEmail ¶
type EntryLinkEntryEmail struct { Text string `xml:",chardata"` Address string `xml:"address,attr"` }
EntryLinkEntryEmail is an Email object in an EntryLinkEntry object
type EntryLinkEntryLink ¶
EntryLinkEntryLink is a Link in an EntryLinkEntry object
type ExtendedProperty ¶
type ExtendedProperty struct { Text string `xml:",chardata"` Name string `xml:"name,attr"` Value string `xml:"value,attr"` Realm string `xml:"realm,attr"` }
ExtendedProperty is a Shared Contact Extended Property
type Feed ¶
type Feed struct { XMLName xml.Name `xml:"feed"` Text string `xml:",chardata"` Xmlns string `xml:"xmlns,attr"` OpenSearch string `xml:"openSearch,attr"` Gd string `xml:"gd,attr"` GContact string `xml:"gContact,attr"` Batch string `xml:"batch,attr"` ID string `xml:"id"` Updated string `xml:"updated"` Category Category `xml:"category"` Title Title `xml:"title"` Link []Link `xml:"link"` Author Author `xml:"author"` Generator Generator `xml:"generator"` TotalResults string `xml:"totalResults"` StartIndex string `xml:"startIndex"` ItemsPerPage string `xml:"itemsPerPage"` Entry []Entry `xml:"entry"` }
Feed was generated 2020-10-11 05:44:12 by hannes_siefert_gmail_com on code-server.
type Generator ¶
type Generator struct { Text string `xml:",chardata"` Version string `xml:"version,attr"` URI string `xml:"uri,attr"` }
Generator is a Feed Generator
type GeoPt ¶
type GeoPt struct { Text string `xml:",chardata"` Lat string `xml:"lat,attr"` Lon string `xml:"lon,attr"` }
GeoPt is a GeoPt object in an EntryLinkEntry object
type Im ¶
type Im struct { Text string `xml:",chardata"` Rel string `xml:"rel,attr"` Protocol string `xml:"protocol,attr"` Address string `xml:"address,attr"` Label string `xml:"label,attr"` Primary string `xml:"primary,attr"` }
Im is a Shared Contact IM object
type Link ¶
type Link struct { Text string `xml:",chardata"` Rel string `xml:"rel,attr"` Type string `xml:"type,attr"` Href string `xml:"href,attr"` }
Link is a Feed Link
type Name ¶
type Name struct { Text string `xml:",chardata"` GivenName string `xml:"givenName"` AdditionalName string `xml:"additionalName"` FamilyName string `xml:"familyName"` NamePrefix string `xml:"namePrefix"` NameSuffix string `xml:"nameSuffix"` FullName string `xml:"fullName"` }
Name is a Shared Contact Name
type Organization ¶
type Organization struct { Text string `xml:",chardata"` Label string `xml:"label,attr"` Primary string `xml:"primary,attr"` Rel string `xml:"rel,attr"` OrgDepartment string `xml:"orgDepartment"` OrgJobDescription string `xml:"orgJobDescription"` OrgName string `xml:"orgName"` OrgSymbol string `xml:"orgSymbol"` OrgTitle string `xml:"orgTitle"` Where string `xml:"where"` }
Organization is a Shared Contact Organization object
type PhoneNumber ¶
type PhoneNumber struct { PhoneNumber string `xml:",chardata"` Rel string `xml:"rel,attr"` Primary string `xml:"primary,attr"` Label string `xml:"label,attr"` URI string `xml:"uri,attr"` }
PhoneNumber is a Shared Contact Phone Number
type PostalAddress ¶
type PostalAddress struct { PostalAddress string `xml:",chardata"` Rel string `xml:"rel,attr"` Primary string `xml:"primary,attr"` }
PostalAddress is a Shared Contact Postal Address
type PrinterResults ¶ added in v0.2.5
type PrinterResults struct { Failures []*admin.FailureInfo `json:"failures,omitempty"` Printers []*admin.Printer `json:"printers,omitempty"` PrinterIDs []string `json:"printerIDs,omitempty"` }
PrinterResults represents the result of a batch operation
func BatchCreatePrinters ¶ added in v0.2.5
func BatchCreatePrinters(parent, fields string, batchCreatePrintersRequest *admin.BatchCreatePrintersRequest) (*PrinterResults, error)
BatchCreatePrinters creates printers under given Organization Unit.
func BatchDeletePrinters ¶ added in v0.2.5
func BatchDeletePrinters(parent string, batchDeletePrintersRequest *admin.BatchDeletePrintersRequest) (*PrinterResults, error)
BatchDeletePrinters deletes printers in batch.
type StructuredPostalAddress ¶
type StructuredPostalAddress struct { Text string `xml:",chardata"` MailClass string `xml:"mailClass,attr"` Label string `xml:"label,attr"` Usage string `xml:"usage,attr"` Primary string `xml:"primary,attr"` Agent string `xml:"agent"` Housename string `xml:"housename"` Street string `xml:"street"` Pobox string `xml:"pobox"` Neighborhood string `xml:"neighborhood"` City string `xml:"city"` Subregion string `xml:"subregion"` Region string `xml:"region"` Postcode string `xml:"postcode"` Country string `xml:"country"` FormattedAddress string `xml:"formattedAddress"` }
StructuredPostalAddress is a Shared Contact Structured Postal Address
Source Files ¶
- asps.go
- chromeos.go
- chromeoscommands.go
- chromeosdevices.go
- chromeprinters.go
- contactdelegates.go
- customers.go
- domainaliases.go
- domains.go
- groups.go
- groupsaliases.go
- members.go
- mobiledevices.go
- orgunits.go
- privileges.go
- resourcesbuildings.go
- resourcescalendars.go
- resourcesfeatures.go
- roleassignments.go
- roles.go
- schemas.go
- services.go
- sharedcontacts.go
- special.go
- tokens.go
- twostepverification.go
- userphotos.go
- users.go
- usersaliases.go
- verificationcodes.go