gsmadmin

package
v0.11.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2023 License: GPL-3.0 Imports: 15 Imported by: 0

Documentation

Overview

Package gsmadmin implements the Admin SDK APIs

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreatePrinter added in v0.2.5

func CreatePrinter(parent, fields string, printer *admin.Printer) (*admin.Printer, error)

CreatePrinter creates a printer under given Organization Unit.

func DeleteAsp

func DeleteAsp(userKey string, codeID int64) (bool, error)

DeleteAsp deletes an ASP issued by a user.

func DeleteBuilding

func DeleteBuilding(customer, buildingID string) (bool, error)

DeleteBuilding deletes a building.

func DeleteCalendarResource

func DeleteCalendarResource(customer, calendarResourceID string) (bool, error)

DeleteCalendarResource deletes a calendar resource.

func DeleteContactDelegate added in v0.2.4

func DeleteContactDelegate(parent, email string) (bool, error)

DeleteContactDelegate deletes a delegate from a given user.

func DeleteDomain

func DeleteDomain(customerID, domainName string) (bool, error)

DeleteDomain deletes a domain of the customer.

func DeleteDomainAlias

func DeleteDomainAlias(customerID, domainAliasName string) (bool, error)

DeleteDomainAlias deletes a Domain Alias of the customer.

func DeleteFeature

func DeleteFeature(customer, featureKey string) (bool, error)

DeleteFeature deletes a feature.

func DeleteGroup

func DeleteGroup(groupKey string) (bool, error)

DeleteGroup deletes a group.

func DeleteGroupAlias

func DeleteGroupAlias(groupKey, alias string) (bool, error)

DeleteGroupAlias removes an alias.

func DeleteMember

func DeleteMember(groupKey, memberKey string) (bool, error)

DeleteMember removes a member from a group.

func DeleteMobileDevice

func DeleteMobileDevice(customerID, resourceID string) (bool, error)

DeleteMobileDevice removes a mobile device.

func DeleteOrgUnit

func DeleteOrgUnit(customerID, orgUnitPath string) (bool, error)

DeleteOrgUnit removes an organizational unit.

func DeletePrinter added in v0.2.5

func DeletePrinter(name string) (bool, error)

DeletePrinter deletes a Printer.

func DeleteRole

func DeleteRole(customer, roleID string) (bool, error)

DeleteRole deleteRole deletes a role.

func DeleteRoleAssignment

func DeleteRoleAssignment(customer, roleAssignmentID string) (bool, error)

DeleteRoleAssignment deletes a role assignment.

func DeleteSchema

func DeleteSchema(customerID, schemaKey string) (bool, error)

DeleteSchema removes a custom schema.

func DeleteSharedContact

func DeleteSharedContact(url string) ([]byte, error)

DeleteSharedContact deletes a shared contact

func DeleteToken

func DeleteToken(userKey, clientID string) (bool, error)

DeleteToken deletes all access tokens issued by a user for an application.rolesPatchCmd

func DeleteUser

func DeleteUser(userKey string) (bool, error)

DeleteUser deletes a user.

func DeleteUserAlias

func DeleteUserAlias(userKey, alias string) (bool, error)

DeleteUserAlias removes an alias.

func DeleteUserPhoto

func DeleteUserPhoto(userKey string) (bool, error)

DeleteUserPhoto removes the user's photo.

func GenerateVerificationCodes

func GenerateVerificationCodes(userKey string) (bool, error)

GenerateVerificationCodes generates new backup verification codes for the user.

func GetAsp

func GetAsp(userKey, fields string, codeID int64) (*admin.Asp, error)

GetAsp gets information about an ASP issued by a user.

func GetBuilding

func GetBuilding(customer, buildingID, fields string) (*admin.Building, error)

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

func GetCustomer(id, fields string) (*admin.Customer, error)

GetCustomer retrieves a customer.

func GetCustomerID

func GetCustomerID(customerID string) string

GetCustomerID returns either your own customer ID or the provided one

func GetDomain

func GetDomain(customerID, domainName, fields string) (*admin.Domains, error)

GetDomain retrieves a domain of the customer.

func GetDomainAlias

func GetDomainAlias(customerID, domainAliasName, fields string) (*admin.DomainAlias, error)

GetDomainAlias retrieves a domain alias of the customer.

func GetFeature

func GetFeature(customer, featureKey, fields string) (*admin.Feature, error)

GetFeature retrieves a feature.

func GetGroup

func GetGroup(groupKey, fields string) (*admin.Group, error)

GetGroup retrieves a group's properties.

func GetMember

func GetMember(groupKey, memberKey, fields string) (*admin.Member, error)

GetMember retrieves a group member's properties.

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

func GetOrgUnit(customerID, orgUnitPath, fields string) (*admin.OrgUnit, error)

GetOrgUnit retrieves an organizational unit.

func GetOwnCustomerID

func GetOwnCustomerID() (string, error)

GetOwnCustomerID returns your own customer ID

func GetPrinter added in v0.2.5

func GetPrinter(name, fields string) (*admin.Printer, error)

GetPrinter returns a Printer resource (printer's config).

func GetRole

func GetRole(customer, roleID, fields string) (*admin.Role, error)

GetRole retrieves a role.

func GetRoleAssignment

func GetRoleAssignment(customer, roleAssignmentID, fields string) (*admin.RoleAssignment, error)

GetRoleAssignment retrieve a role assignment.

func GetSchema

func GetSchema(customerID, schemaKey, fields string) (*admin.Schema, error)

GetSchema retrieves a custom schema.

func GetToken

func GetToken(userKey, clientID, fields string) (*admin.Token, error)

GetToken gets information about an access token issued by a user.rolesPatchCmd

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 GetUser

func GetUser(userKey, fields, projection, customFieldMask, viewType string) (*admin.User, error)

GetUser retrieves a user.

func GetUserPhoto

func GetUserPhoto(userKey, fields string) (*admin.UserPhoto, error)

GetUserPhoto retrieves the user's photo.

func HasMember

func HasMember(groupKey, memberKey string) (bool, error)

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

func InsertDomain(customerID, fields string, domain *admin.Domains) (*admin.Domains, error)

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

func InsertFeature(customer, fields string, feature *admin.Feature) (*admin.Feature, error)

InsertFeature inserts a feature.

func InsertGroup

func InsertGroup(group *admin.Group, fields string) (*admin.Group, error)

InsertGroup creates a group.

func InsertGroupAlias

func InsertGroupAlias(groupKey, fields string, alias *admin.Alias) (*admin.Alias, error)

InsertGroupAlias adds an alias for the group.

func InsertMember

func InsertMember(groupKey, fields string, member *admin.Member) (*admin.Member, error)

InsertMember adds a user to the specified group.

func InsertOrgUnit

func InsertOrgUnit(customerID, fields string, OrgUnit *admin.OrgUnit) (*admin.OrgUnit, error)

InsertOrgUnit adds an organizational unit.

func InsertRole

func InsertRole(customer, fields string, role *admin.Role) (*admin.Role, error)

InsertRole creates a role.

func InsertRoleAssignment

func InsertRoleAssignment(customer, fields string, roleAssignment *admin.RoleAssignment) (*admin.RoleAssignment, error)

InsertRoleAssignment creates a role assignment.

func InsertSchema

func InsertSchema(customerID, fields string, schema *admin.Schema) (*admin.Schema, error)

InsertSchema creates a custom schema.

func InsertUser

func InsertUser(user *admin.User, fields string) (*admin.User, error)

InsertUser creates a user.

func InsertUserAlias

func InsertUserAlias(userKey, fields string, alias *admin.Alias) (*admin.Alias, error)

InsertUserAlias adds an alias.

func InvalidateVerificationCodes

func InvalidateVerificationCodes(userKey string) (bool, error)

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 ListAsps

func ListAsps(userKey, fields string) ([]*admin.Asp, error)

ListAsps lists the ASPs issued by a user.

func ListBuildings

func ListBuildings(customer, fields string, cap int) (<-chan *admin.Building, <-chan error)

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

func ListDomains(customerID, fields string) ([]*admin.Domains, error)

ListDomains lists the domains of the customer.

func ListFeatures

func ListFeatures(customer, fields string, cap int) (<-chan *admin.Feature, <-chan error)

ListFeatures retrieves a list of features for an account.

func ListGroupAliases

func ListGroupAliases(groupKey, fields string) ([]any, error)

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

func ListOrgUnits(customerID, t, orgUnitPath, fields string) ([]*admin.OrgUnit, error)

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

func ListPrinters(parent, filter, fields string, cap int) (<-chan *admin.Printer, <-chan error)

ListPrinters lists printers configs.

func ListPrivileges

func ListPrivileges(customerID, fields string) ([]*admin.Privilege, error)

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 ListRoles

func ListRoles(customer, fields string, cap int) (<-chan *admin.Role, <-chan error)

ListRoles retrieves a paginated list of all the roles in a domain.

func ListSchema

func ListSchema(customerID, fields string) ([]*admin.Schema, error)

ListSchema lists custom schemas.

func ListTokens

func ListTokens(userKey, fields string) ([]*admin.Token, error)

ListTokens returns the set of tokens specified user has issued to 3rd party applications.rolesPatchCmd

func ListUserAliases

func ListUserAliases(userKey, fields string) ([]any, error)

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 MakeAdmin

func MakeAdmin(userKey string, status bool) (bool, error)

MakeAdmin makes a user a super administrator.

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

func PatchCustomer(customerKey, fields string, customer *admin.Customer) (*admin.Customer, error)

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

func PatchGroup(groupKey, fields string, Group *admin.Group) (*admin.Group, error)

PatchGroup updates a group's properties. This method supports patch semantics.

func PatchMember

func PatchMember(groupKey, memberKey, fields string, member *admin.Member) (*admin.Member, error)

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 PatchRole

func PatchRole(customer, roleID, fields string, role *admin.Role) (*admin.Role, error)

PatchRole updates a role. This method supports patch semantics.

func PatchSchema

func PatchSchema(customerID, schemaKey, fields string, schema *admin.Schema) (*admin.Schema, error)

PatchSchema updates a customs schema.

func RenameFeature

func RenameFeature(customer, oldName string, featureRename *admin.FeatureRename) (bool, error)

RenameFeature renames a feature.

func SetClient

func SetClient(c *http.Client)

SetClient is used to inject a *http.Client into the package

func SignOutUser

func SignOutUser(userKey string) (bool, error)

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

func TurnOffTwoStepVerification(userKey string) (bool, error)

TurnOffTwoStepVerification turns off 2-Step Verification for user.

func UndeletUser

func UndeletUser(userKey, orgUnitPath string) (bool, error)

UndeletUser undeletes a deleted user.

func UpdateUser added in v0.2.3

func UpdateUser(userKey, fields string, user *admin.User) (*admin.User, error)

UpdateUser updates a user using patch semantics.

func UpdateUserPhoto

func UpdateUserPhoto(userKey, fields string, userPhoto *admin.UserPhoto) (*admin.UserPhoto, error)

UpdateUserPhoto adds a photo for the user.

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

func CreateSharedContact(domain string, person *Entry) (*Entry, error)

CreateSharedContact creates a new shared contact in the domain

func GetSharedContact

func GetSharedContact(url string) (*Entry, error)

GetSharedContact retrieves a shared contact

func ListSharedContacts

func ListSharedContacts(domain string) ([]Entry, error)

ListSharedContacts lists all shared contacts in the domain

func UpdateSharedContact

func UpdateSharedContact(url string, person *Entry) (*Entry, error)

UpdateSharedContact updates a shared contact

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 struct {
	Text string `xml:",chardata"`
	Href string `xml:"href,attr"`
}

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 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

type Title

type Title struct {
	Text string `xml:",chardata"`
	Type string `xml:"type,attr"`
}

Title is a Feed Title

type Where

type Where struct {
	Text        string `xml:",chardata"`
	Rel         string `xml:"rel,attr"`
	ValueString string `xml:"valueString,attr"`
	EntryLink   `xml:"entryLink"`
}

Where is a Shared Contact Where object

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL