admin

package
v0.0.0-...-5d1b9c1 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2019 License: BSD-3-Clause Imports: 13 Imported by: 0

Documentation

Overview

Package admin provides access to the Admin Directory API.

See https://developers.google.com/admin-sdk/directory/

Usage example:

import "github.com/zippoxer/google-api-go-client/admin/directory/v1"
...
adminService, err := admin.New(oauthHttpClient)

Index

Constants

View Source
const (
	// View and manage customer related information
	AdminDirectoryCustomerScope = "https://www.googleapis.com/auth/admin.directory.customer"

	// View customer related information
	AdminDirectoryCustomerReadonlyScope = "https://www.googleapis.com/auth/admin.directory.customer.readonly"

	// 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 domains for your customers
	AdminDirectoryDomainScope = "https://www.googleapis.com/auth/admin.directory.domain"

	// View domains related to your customers
	AdminDirectoryDomainReadonlyScope = "https://www.googleapis.com/auth/admin.directory.domain.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 calendar resources on your domain
	AdminDirectoryResourceCalendarScope = "https://www.googleapis.com/auth/admin.directory.resource.calendar"

	// View calendar resources on your domain
	AdminDirectoryResourceCalendarReadonlyScope = "https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly"

	// Manage delegated admin roles for your domain
	AdminDirectoryRolemanagementScope = "https://www.googleapis.com/auth/admin.directory.rolemanagement"

	// View delegated admin roles for your domain
	AdminDirectoryRolemanagementReadonlyScope = "https://www.googleapis.com/auth/admin.directory.rolemanagement.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"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Alias") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Alias: JSON template for Alias object in Directory API.

func (*Alias) MarshalJSON

func (s *Alias) MarshalJSON() ([]byte, error)

type Aliases

type Aliases struct {
	// Aliases: List of alias objects.
	Aliases []*Alias `json:"aliases,omitempty"`

	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// Kind: Kind of resource this is.
	Kind string `json:"kind,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Aliases") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Aliases: JSON response template to list aliases in Directory API.

func (*Aliases) MarshalJSON

func (s *Aliases) MarshalJSON() ([]byte, error)

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "CodeId") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Asp: The template that returns individual ASP (Access Code) data.

func (*Asp) MarshalJSON

func (s *Asp) MarshalJSON() ([]byte, error)

type Asps

type Asps struct {
	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// Items: A list of ASP resources.
	Items []*Asp `json:"items,omitempty"`

	// Kind: The type of the API resource. This is always
	// admin#directory#aspList.
	Kind string `json:"kind,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*Asps) MarshalJSON

func (s *Asps) MarshalJSON() ([]byte, error)

type AspsDeleteCall

type AspsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*AspsDeleteCall) Context

func (c *AspsDeleteCall) Context(ctx context.Context) *AspsDeleteCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AspsDeleteCall) Do

func (c *AspsDeleteCall) Do() error

Do executes the "directory.asps.delete" call.

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.

func (*AspsDeleteCall) QuotaUser

func (c *AspsDeleteCall) QuotaUser(quotaUser string) *AspsDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*AspsDeleteCall) UserIP

func (c *AspsDeleteCall) UserIP(userIP string) *AspsDeleteCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type AspsGetCall

type AspsGetCall struct {
	// contains filtered or unexported fields
}

func (*AspsGetCall) Context

func (c *AspsGetCall) Context(ctx context.Context) *AspsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AspsGetCall) Do

func (c *AspsGetCall) Do() (*Asp, error)

Do executes the "directory.asps.get" call. Exactly one of *Asp or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Asp.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*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.

func (*AspsGetCall) IfNoneMatch

func (c *AspsGetCall) IfNoneMatch(entityTag string) *AspsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AspsGetCall) QuotaUser

func (c *AspsGetCall) QuotaUser(quotaUser string) *AspsGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*AspsGetCall) UserIP

func (c *AspsGetCall) UserIP(userIP string) *AspsGetCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type AspsListCall

type AspsListCall struct {
	// contains filtered or unexported fields
}

func (*AspsListCall) Context

func (c *AspsListCall) Context(ctx context.Context) *AspsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*AspsListCall) Do

func (c *AspsListCall) Do() (*Asps, error)

Do executes the "directory.asps.list" call. Exactly one of *Asps or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Asps.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*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.

func (*AspsListCall) IfNoneMatch

func (c *AspsListCall) IfNoneMatch(entityTag string) *AspsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*AspsListCall) QuotaUser

func (c *AspsListCall) QuotaUser(quotaUser string) *AspsListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*AspsListCall) UserIP

func (c *AspsListCall) UserIP(userIP string) *AspsListCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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 CalendarResource

type CalendarResource struct {
	// Etags: ETag of the resource.
	Etags string `json:"etags,omitempty"`

	// Kind: The type of the resource. For calendar resources, the value is
	// admin#directory#resources#calendars#CalendarResource.
	Kind string `json:"kind,omitempty"`

	// ResourceDescription: The brief description of the calendar resource.
	ResourceDescription string `json:"resourceDescription,omitempty"`

	// ResourceEmail: The read-only email ID for the calendar resource.
	// Generated as part of creating a new calendar resource.
	ResourceEmail string `json:"resourceEmail,omitempty"`

	// ResourceId: The unique ID for the calendar resource.
	ResourceId string `json:"resourceId,omitempty"`

	// ResourceName: The name of the calendar resource. For example,
	// Training Room 1A
	ResourceName string `json:"resourceName,omitempty"`

	// ResourceType: The type of the calendar resource. Used for grouping
	// resources in the calendar user interface.
	ResourceType string `json:"resourceType,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etags") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

CalendarResource: JSON template for Calendar Resource object in Directory API.

func (*CalendarResource) MarshalJSON

func (s *CalendarResource) MarshalJSON() ([]byte, error)

type CalendarResources

type CalendarResources struct {
	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// Items: The CalendarResources in this page of results.
	Items []*CalendarResource `json:"items,omitempty"`

	// Kind: Identifies this as a collection of CalendarResources. This is
	// always admin#directory#resources#calendars#calendarResourcesList.
	Kind string `json:"kind,omitempty"`

	// NextPageToken: The continuation token, used to page through large
	// result sets. Provide this value in a subsequent request to return the
	// next page of results.
	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

CalendarResources: JSON template for Calendar Resource List Response object in Directory API.

func (*CalendarResources) MarshalJSON

func (s *CalendarResources) MarshalJSON() ([]byte, error)

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Address") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Channel: An notification channel used to watch for resource changes.

func (*Channel) MarshalJSON

func (s *Channel) MarshalJSON() ([]byte, error)

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

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ChannelsStopCall) Do

func (c *ChannelsStopCall) Do() error

Do executes the "admin.channels.stop" call.

func (*ChannelsStopCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ChannelsStopCall) QuotaUser

func (c *ChannelsStopCall) QuotaUser(quotaUser string) *ChannelsStopCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*ChannelsStopCall) UserIP

func (c *ChannelsStopCall) UserIP(userIP string) *ChannelsStopCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "ActiveTimeRanges") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

ChromeOsDevice: JSON template for Chrome Os Device resource in Directory API.

func (*ChromeOsDevice) MarshalJSON

func (s *ChromeOsDevice) MarshalJSON() ([]byte, error)

type ChromeOsDeviceActiveTimeRanges

type ChromeOsDeviceActiveTimeRanges struct {
	// ActiveTime: Duration in milliseconds
	ActiveTime int64 `json:"activeTime,omitempty"`

	// Date: Date of usage
	Date string `json:"date,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ActiveTime") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*ChromeOsDeviceActiveTimeRanges) MarshalJSON

func (s *ChromeOsDeviceActiveTimeRanges) MarshalJSON() ([]byte, error)

type ChromeOsDeviceRecentUsers

type ChromeOsDeviceRecentUsers struct {
	// Email: Email address of the user. Present only if the user type is
	// managed
	Email string `json:"email,omitempty"`

	// Type: The type of the user
	Type string `json:"type,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Email") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*ChromeOsDeviceRecentUsers) MarshalJSON

func (s *ChromeOsDeviceRecentUsers) MarshalJSON() ([]byte, error)

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Chromeosdevices") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

ChromeOsDevices: JSON response template for List Chrome OS Devices operation in Directory API.

func (*ChromeOsDevices) MarshalJSON

func (s *ChromeOsDevices) MarshalJSON() ([]byte, error)

type ChromeosdevicesGetCall

type ChromeosdevicesGetCall struct {
	// contains filtered or unexported fields
}

func (*ChromeosdevicesGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ChromeosdevicesGetCall) Do

Do executes the "directory.chromeosdevices.get" call. Exactly one of *ChromeOsDevice or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ChromeOsDevice.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ChromeosdevicesGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ChromeosdevicesGetCall) IfNoneMatch

func (c *ChromeosdevicesGetCall) IfNoneMatch(entityTag string) *ChromeosdevicesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ChromeosdevicesGetCall) Projection

func (c *ChromeosdevicesGetCall) Projection(projection string) *ChromeosdevicesGetCall

Projection sets the optional parameter "projection": Restrict information returned to a set of selected fields.

Possible values:

"BASIC" - Includes only the basic metadata fields (e.g., deviceId,

serialNumber, status, and user)

"FULL" - Includes all metadata fields

func (*ChromeosdevicesGetCall) QuotaUser

func (c *ChromeosdevicesGetCall) QuotaUser(quotaUser string) *ChromeosdevicesGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*ChromeosdevicesGetCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type ChromeosdevicesListCall

type ChromeosdevicesListCall struct {
	// contains filtered or unexported fields
}

func (*ChromeosdevicesListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ChromeosdevicesListCall) Do

Do executes the "directory.chromeosdevices.list" call. Exactly one of *ChromeOsDevices or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ChromeOsDevices.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ChromeosdevicesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ChromeosdevicesListCall) IfNoneMatch

func (c *ChromeosdevicesListCall) IfNoneMatch(entityTag string) *ChromeosdevicesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*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

OrderBy sets the optional parameter "orderBy": Column to use for sorting results

Possible values:

"annotatedLocation" - Chromebook location as annotated by the

administrator.

"annotatedUser" - Chromebook user as annotated by administrator.
"lastSync" - Chromebook last sync.
"notes" - Chromebook notes as annotated by the administrator.
"serialNumber" - Chromebook Serial Number.
"status" - Chromebook status.
"supportEndDate" - Chromebook support end date.

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.

Possible values:

"BASIC" - Includes only the basic metadata fields (e.g., deviceId,

serialNumber, status, and user)

"FULL" - Includes all metadata fields

func (*ChromeosdevicesListCall) Query

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

func (*ChromeosdevicesListCall) QuotaUser

func (c *ChromeosdevicesListCall) QuotaUser(quotaUser string) *ChromeosdevicesListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

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

Possible values:

"ASCENDING" - Ascending order.
"DESCENDING" - Descending order.

func (*ChromeosdevicesListCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type ChromeosdevicesPatchCall

type ChromeosdevicesPatchCall struct {
	// contains filtered or unexported fields
}

func (*ChromeosdevicesPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ChromeosdevicesPatchCall) Do

Do executes the "directory.chromeosdevices.patch" call. Exactly one of *ChromeOsDevice or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ChromeOsDevice.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ChromeosdevicesPatchCall) Fields

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.

Possible values:

"BASIC" - Includes only the basic metadata fields (e.g., deviceId,

serialNumber, status, and user)

"FULL" - Includes all metadata fields

func (*ChromeosdevicesPatchCall) QuotaUser

func (c *ChromeosdevicesPatchCall) QuotaUser(quotaUser string) *ChromeosdevicesPatchCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*ChromeosdevicesPatchCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

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

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ChromeosdevicesUpdateCall) Do

Do executes the "directory.chromeosdevices.update" call. Exactly one of *ChromeOsDevice or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *ChromeOsDevice.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ChromeosdevicesUpdateCall) Fields

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.

Possible values:

"BASIC" - Includes only the basic metadata fields (e.g., deviceId,

serialNumber, status, and user)

"FULL" - Includes all metadata fields

func (*ChromeosdevicesUpdateCall) QuotaUser

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*ChromeosdevicesUpdateCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type Customer

type Customer struct {
	// AlternateEmail: The customer's secondary contact email address. This
	// email address cannot be on the same domain as the customerDomain
	AlternateEmail string `json:"alternateEmail,omitempty"`

	// CustomerCreationTime: The customer's creation time (Readonly)
	CustomerCreationTime string `json:"customerCreationTime,omitempty"`

	// CustomerDomain: The customer's primary domain name string. Do not
	// include the www prefix when creating a new customer.
	CustomerDomain string `json:"customerDomain,omitempty"`

	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// Id: The unique ID for the customer's Google account. (Readonly)
	Id string `json:"id,omitempty"`

	// Kind: Identifies the resource as a customer. Value:
	// admin#directory#customer
	Kind string `json:"kind,omitempty"`

	// Language: The customer's ISO 639-2 language code. The default value
	// is en-US
	Language string `json:"language,omitempty"`

	// PhoneNumber: The customer's contact phone number in E.164 format.
	PhoneNumber string `json:"phoneNumber,omitempty"`

	// PostalAddress: The customer's postal address information.
	PostalAddress *CustomerPostalAddress `json:"postalAddress,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AlternateEmail") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Customer: JSON template for Customer Resource object in Directory API.

func (*Customer) MarshalJSON

func (s *Customer) MarshalJSON() ([]byte, error)

type CustomerPostalAddress

type CustomerPostalAddress struct {
	// AddressLine1: A customer's physical address. The address can be
	// composed of one to three lines.
	AddressLine1 string `json:"addressLine1,omitempty"`

	// AddressLine2: Address line 2 of the address.
	AddressLine2 string `json:"addressLine2,omitempty"`

	// AddressLine3: Address line 3 of the address.
	AddressLine3 string `json:"addressLine3,omitempty"`

	// ContactName: The customer contact's name.
	ContactName string `json:"contactName,omitempty"`

	// CountryCode: This is a required property. For countryCode information
	// see the ISO 3166 country code elements.
	CountryCode string `json:"countryCode,omitempty"`

	// Locality: Name of the locality. An example of a locality value is the
	// city of San Francisco.
	Locality string `json:"locality,omitempty"`

	// OrganizationName: The company or company division name.
	OrganizationName string `json:"organizationName,omitempty"`

	// PostalCode: The postal code. A postalCode example is a postal zip
	// code such as 10009. This is in accordance with -
	// http://portablecontacts.net/draft-spec.html#address_element.
	PostalCode string `json:"postalCode,omitempty"`

	// Region: Name of the region. An example of a region value is NY for
	// the state of New York.
	Region string `json:"region,omitempty"`

	// ForceSendFields is a list of field names (e.g. "AddressLine1") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

CustomerPostalAddress: JSON template for postal address of a customer.

func (*CustomerPostalAddress) MarshalJSON

func (s *CustomerPostalAddress) MarshalJSON() ([]byte, error)

type CustomersGetCall

type CustomersGetCall struct {
	// contains filtered or unexported fields
}

func (*CustomersGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CustomersGetCall) Do

func (c *CustomersGetCall) Do() (*Customer, error)

Do executes the "directory.customers.get" call. Exactly one of *Customer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Customer.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CustomersGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersGetCall) IfNoneMatch

func (c *CustomersGetCall) IfNoneMatch(entityTag string) *CustomersGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*CustomersGetCall) QuotaUser

func (c *CustomersGetCall) QuotaUser(quotaUser string) *CustomersGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*CustomersGetCall) UserIP

func (c *CustomersGetCall) UserIP(userIP string) *CustomersGetCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type CustomersPatchCall

type CustomersPatchCall struct {
	// contains filtered or unexported fields
}

func (*CustomersPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CustomersPatchCall) Do

func (c *CustomersPatchCall) Do() (*Customer, error)

Do executes the "directory.customers.patch" call. Exactly one of *Customer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Customer.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CustomersPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersPatchCall) QuotaUser

func (c *CustomersPatchCall) QuotaUser(quotaUser string) *CustomersPatchCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*CustomersPatchCall) UserIP

func (c *CustomersPatchCall) UserIP(userIP string) *CustomersPatchCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type CustomersService

type CustomersService struct {
	// contains filtered or unexported fields
}

func NewCustomersService

func NewCustomersService(s *Service) *CustomersService

func (*CustomersService) Get

func (r *CustomersService) Get(customerKey string) *CustomersGetCall

Get: Retrives a customer.

func (*CustomersService) Patch

func (r *CustomersService) Patch(customerKey string, customer *Customer) *CustomersPatchCall

Patch: Updates a customer. This method supports patch semantics.

func (*CustomersService) Update

func (r *CustomersService) Update(customerKey string, customer *Customer) *CustomersUpdateCall

Update: Updates a customer.

type CustomersUpdateCall

type CustomersUpdateCall struct {
	// contains filtered or unexported fields
}

func (*CustomersUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*CustomersUpdateCall) Do

func (c *CustomersUpdateCall) Do() (*Customer, error)

Do executes the "directory.customers.update" call. Exactly one of *Customer or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Customer.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*CustomersUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*CustomersUpdateCall) QuotaUser

func (c *CustomersUpdateCall) QuotaUser(quotaUser string) *CustomersUpdateCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*CustomersUpdateCall) UserIP

func (c *CustomersUpdateCall) UserIP(userIP string) *CustomersUpdateCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type DomainAlias

type DomainAlias struct {
	// CreationTime: The creation time of the domain alias. (Read-only).
	CreationTime int64 `json:"creationTime,omitempty,string"`

	// DomainAliasName: The domain alias name.
	DomainAliasName string `json:"domainAliasName,omitempty"`

	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// Kind: Kind of resource this is.
	Kind string `json:"kind,omitempty"`

	// ParentDomainName: The parent domain name that the domain alias is
	// associated with. This can either be a primary or secondary domain
	// name within a customer.
	ParentDomainName string `json:"parentDomainName,omitempty"`

	// Verified: Indicates the verification state of a domain alias.
	// (Read-only)
	Verified bool `json:"verified,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "CreationTime") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

DomainAlias: JSON template for Domain Alias object in Directory API.

func (*DomainAlias) MarshalJSON

func (s *DomainAlias) MarshalJSON() ([]byte, error)

type DomainAliases

type DomainAliases struct {
	// DomainAliases: List of domain alias objects.
	DomainAliases []*DomainAlias `json:"domainAliases,omitempty"`

	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// Kind: Kind of resource this is.
	Kind string `json:"kind,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "DomainAliases") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

DomainAliases: JSON response template to list domain aliases in Directory API.

func (*DomainAliases) MarshalJSON

func (s *DomainAliases) MarshalJSON() ([]byte, error)

type DomainAliasesDeleteCall

type DomainAliasesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*DomainAliasesDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DomainAliasesDeleteCall) Do

Do executes the "directory.domainAliases.delete" call.

func (*DomainAliasesDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DomainAliasesDeleteCall) QuotaUser

func (c *DomainAliasesDeleteCall) QuotaUser(quotaUser string) *DomainAliasesDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*DomainAliasesDeleteCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type DomainAliasesGetCall

type DomainAliasesGetCall struct {
	// contains filtered or unexported fields
}

func (*DomainAliasesGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DomainAliasesGetCall) Do

Do executes the "directory.domainAliases.get" call. Exactly one of *DomainAlias or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DomainAlias.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DomainAliasesGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DomainAliasesGetCall) IfNoneMatch

func (c *DomainAliasesGetCall) IfNoneMatch(entityTag string) *DomainAliasesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*DomainAliasesGetCall) QuotaUser

func (c *DomainAliasesGetCall) QuotaUser(quotaUser string) *DomainAliasesGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*DomainAliasesGetCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type DomainAliasesInsertCall

type DomainAliasesInsertCall struct {
	// contains filtered or unexported fields
}

func (*DomainAliasesInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DomainAliasesInsertCall) Do

Do executes the "directory.domainAliases.insert" call. Exactly one of *DomainAlias or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DomainAlias.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DomainAliasesInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DomainAliasesInsertCall) QuotaUser

func (c *DomainAliasesInsertCall) QuotaUser(quotaUser string) *DomainAliasesInsertCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*DomainAliasesInsertCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type DomainAliasesListCall

type DomainAliasesListCall struct {
	// contains filtered or unexported fields
}

func (*DomainAliasesListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DomainAliasesListCall) Do

Do executes the "directory.domainAliases.list" call. Exactly one of *DomainAliases or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *DomainAliases.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DomainAliasesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DomainAliasesListCall) IfNoneMatch

func (c *DomainAliasesListCall) IfNoneMatch(entityTag string) *DomainAliasesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*DomainAliasesListCall) ParentDomainName

func (c *DomainAliasesListCall) ParentDomainName(parentDomainName string) *DomainAliasesListCall

ParentDomainName sets the optional parameter "parentDomainName": Name of the parent domain for which domain aliases are to be fetched.

func (*DomainAliasesListCall) QuotaUser

func (c *DomainAliasesListCall) QuotaUser(quotaUser string) *DomainAliasesListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*DomainAliasesListCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type DomainAliasesService

type DomainAliasesService struct {
	// contains filtered or unexported fields
}

func NewDomainAliasesService

func NewDomainAliasesService(s *Service) *DomainAliasesService

func (*DomainAliasesService) Delete

func (r *DomainAliasesService) Delete(customer string, domainAliasName string) *DomainAliasesDeleteCall

Delete: Deletes a Domain Alias of the customer.

func (*DomainAliasesService) Get

func (r *DomainAliasesService) Get(customer string, domainAliasName string) *DomainAliasesGetCall

Get: Retrieves a domain alias of the customer.

func (*DomainAliasesService) Insert

func (r *DomainAliasesService) Insert(customer string, domainalias *DomainAlias) *DomainAliasesInsertCall

Insert: Inserts a Domain alias of the customer.

func (*DomainAliasesService) List

List: Lists the domain aliases of the customer.

type Domains

type Domains struct {
	// CreationTime: Creation time of the domain. (Read-only).
	CreationTime int64 `json:"creationTime,omitempty,string"`

	// DomainAliases: List of domain alias objects. (Read-only)
	DomainAliases []*DomainAlias `json:"domainAliases,omitempty"`

	// DomainName: The domain name of the customer.
	DomainName string `json:"domainName,omitempty"`

	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// IsPrimary: Indicates if the domain is a primary domain (Read-only).
	IsPrimary bool `json:"isPrimary,omitempty"`

	// Kind: Kind of resource this is.
	Kind string `json:"kind,omitempty"`

	// Verified: Indicates the verification state of a domain. (Read-only).
	Verified bool `json:"verified,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "CreationTime") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Domains: JSON template for Domain object in Directory API.

func (*Domains) MarshalJSON

func (s *Domains) MarshalJSON() ([]byte, error)

type Domains2

type Domains2 struct {
	// Domains: List of domain objects.
	Domains []*Domains `json:"domains,omitempty"`

	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// Kind: Kind of resource this is.
	Kind string `json:"kind,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Domains") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Domains2: JSON response template to list Domains in Directory API.

func (*Domains2) MarshalJSON

func (s *Domains2) MarshalJSON() ([]byte, error)

type DomainsDeleteCall

type DomainsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*DomainsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DomainsDeleteCall) Do

func (c *DomainsDeleteCall) Do() error

Do executes the "directory.domains.delete" call.

func (*DomainsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DomainsDeleteCall) QuotaUser

func (c *DomainsDeleteCall) QuotaUser(quotaUser string) *DomainsDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*DomainsDeleteCall) UserIP

func (c *DomainsDeleteCall) UserIP(userIP string) *DomainsDeleteCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type DomainsGetCall

type DomainsGetCall struct {
	// contains filtered or unexported fields
}

func (*DomainsGetCall) Context

func (c *DomainsGetCall) Context(ctx context.Context) *DomainsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DomainsGetCall) Do

func (c *DomainsGetCall) Do() (*Domains, error)

Do executes the "directory.domains.get" call. Exactly one of *Domains or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Domains.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DomainsGetCall) Fields

func (c *DomainsGetCall) Fields(s ...googleapi.Field) *DomainsGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DomainsGetCall) IfNoneMatch

func (c *DomainsGetCall) IfNoneMatch(entityTag string) *DomainsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*DomainsGetCall) QuotaUser

func (c *DomainsGetCall) QuotaUser(quotaUser string) *DomainsGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*DomainsGetCall) UserIP

func (c *DomainsGetCall) UserIP(userIP string) *DomainsGetCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type DomainsInsertCall

type DomainsInsertCall struct {
	// contains filtered or unexported fields
}

func (*DomainsInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DomainsInsertCall) Do

func (c *DomainsInsertCall) Do() (*Domains, error)

Do executes the "directory.domains.insert" call. Exactly one of *Domains or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Domains.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DomainsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DomainsInsertCall) QuotaUser

func (c *DomainsInsertCall) QuotaUser(quotaUser string) *DomainsInsertCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*DomainsInsertCall) UserIP

func (c *DomainsInsertCall) UserIP(userIP string) *DomainsInsertCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type DomainsListCall

type DomainsListCall struct {
	// contains filtered or unexported fields
}

func (*DomainsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*DomainsListCall) Do

func (c *DomainsListCall) Do() (*Domains2, error)

Do executes the "directory.domains.list" call. Exactly one of *Domains2 or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Domains2.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*DomainsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*DomainsListCall) IfNoneMatch

func (c *DomainsListCall) IfNoneMatch(entityTag string) *DomainsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*DomainsListCall) QuotaUser

func (c *DomainsListCall) QuotaUser(quotaUser string) *DomainsListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*DomainsListCall) UserIP

func (c *DomainsListCall) UserIP(userIP string) *DomainsListCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type DomainsService

type DomainsService struct {
	// contains filtered or unexported fields
}

func NewDomainsService

func NewDomainsService(s *Service) *DomainsService

func (*DomainsService) Delete

func (r *DomainsService) Delete(customer string, domainName string) *DomainsDeleteCall

Delete: Deletes a domain of the customer.

func (*DomainsService) Get

func (r *DomainsService) Get(customer string, domainName string) *DomainsGetCall

Get: Retrives a domain of the customer.

func (*DomainsService) Insert

func (r *DomainsService) Insert(customer string, domains *Domains) *DomainsInsertCall

Insert: Inserts a domain of the customer.

func (*DomainsService) List

func (r *DomainsService) List(customer string) *DomainsListCall

List: Lists the domains of the customer.

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AdminCreated") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Group: JSON template for Group resource in Directory API.

func (*Group) MarshalJSON

func (s *Group) MarshalJSON() ([]byte, error)

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Groups: JSON response template for List Groups operation in Directory API.

func (*Groups) MarshalJSON

func (s *Groups) MarshalJSON() ([]byte, error)

type GroupsAliasesDeleteCall

type GroupsAliasesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*GroupsAliasesDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*GroupsAliasesDeleteCall) Do

Do executes the "directory.groups.aliases.delete" call.

func (*GroupsAliasesDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*GroupsAliasesDeleteCall) QuotaUser

func (c *GroupsAliasesDeleteCall) QuotaUser(quotaUser string) *GroupsAliasesDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*GroupsAliasesDeleteCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type GroupsAliasesInsertCall

type GroupsAliasesInsertCall struct {
	// contains filtered or unexported fields
}

func (*GroupsAliasesInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*GroupsAliasesInsertCall) Do

func (c *GroupsAliasesInsertCall) Do() (*Alias, error)

Do executes the "directory.groups.aliases.insert" call. Exactly one of *Alias or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Alias.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GroupsAliasesInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*GroupsAliasesInsertCall) QuotaUser

func (c *GroupsAliasesInsertCall) QuotaUser(quotaUser string) *GroupsAliasesInsertCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*GroupsAliasesInsertCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type GroupsAliasesListCall

type GroupsAliasesListCall struct {
	// contains filtered or unexported fields
}

func (*GroupsAliasesListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*GroupsAliasesListCall) Do

func (c *GroupsAliasesListCall) Do() (*Aliases, error)

Do executes the "directory.groups.aliases.list" call. Exactly one of *Aliases or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Aliases.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GroupsAliasesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*GroupsAliasesListCall) IfNoneMatch

func (c *GroupsAliasesListCall) IfNoneMatch(entityTag string) *GroupsAliasesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*GroupsAliasesListCall) QuotaUser

func (c *GroupsAliasesListCall) QuotaUser(quotaUser string) *GroupsAliasesListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*GroupsAliasesListCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

List: List all aliases for a group

type GroupsDeleteCall

type GroupsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*GroupsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*GroupsDeleteCall) Do

func (c *GroupsDeleteCall) Do() error

Do executes the "directory.groups.delete" call.

func (*GroupsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*GroupsDeleteCall) QuotaUser

func (c *GroupsDeleteCall) QuotaUser(quotaUser string) *GroupsDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*GroupsDeleteCall) UserIP

func (c *GroupsDeleteCall) UserIP(userIP string) *GroupsDeleteCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type GroupsGetCall

type GroupsGetCall struct {
	// contains filtered or unexported fields
}

func (*GroupsGetCall) Context

func (c *GroupsGetCall) Context(ctx context.Context) *GroupsGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*GroupsGetCall) Do

func (c *GroupsGetCall) Do() (*Group, error)

Do executes the "directory.groups.get" call. Exactly one of *Group or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Group.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*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.

func (*GroupsGetCall) IfNoneMatch

func (c *GroupsGetCall) IfNoneMatch(entityTag string) *GroupsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*GroupsGetCall) QuotaUser

func (c *GroupsGetCall) QuotaUser(quotaUser string) *GroupsGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*GroupsGetCall) UserIP

func (c *GroupsGetCall) UserIP(userIP string) *GroupsGetCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type GroupsInsertCall

type GroupsInsertCall struct {
	// contains filtered or unexported fields
}

func (*GroupsInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*GroupsInsertCall) Do

func (c *GroupsInsertCall) Do() (*Group, error)

Do executes the "directory.groups.insert" call. Exactly one of *Group or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Group.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GroupsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*GroupsInsertCall) QuotaUser

func (c *GroupsInsertCall) QuotaUser(quotaUser string) *GroupsInsertCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*GroupsInsertCall) UserIP

func (c *GroupsInsertCall) UserIP(userIP string) *GroupsInsertCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type GroupsListCall

type GroupsListCall struct {
	// contains filtered or unexported fields
}

func (*GroupsListCall) Context

func (c *GroupsListCall) Context(ctx context.Context) *GroupsListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*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)

Do executes the "directory.groups.list" call. Exactly one of *Groups or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Groups.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*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) IfNoneMatch

func (c *GroupsListCall) IfNoneMatch(entityTag string) *GroupsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*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) QuotaUser

func (c *GroupsListCall) QuotaUser(quotaUser string) *GroupsListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*GroupsListCall) UserIP

func (c *GroupsListCall) UserIP(userIP string) *GroupsListCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*GroupsPatchCall) Do

func (c *GroupsPatchCall) Do() (*Group, error)

Do executes the "directory.groups.patch" call. Exactly one of *Group or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Group.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GroupsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*GroupsPatchCall) QuotaUser

func (c *GroupsPatchCall) QuotaUser(quotaUser string) *GroupsPatchCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*GroupsPatchCall) UserIP

func (c *GroupsPatchCall) UserIP(userIP string) *GroupsPatchCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*GroupsUpdateCall) Do

func (c *GroupsUpdateCall) Do() (*Group, error)

Do executes the "directory.groups.update" call. Exactly one of *Group or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Group.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*GroupsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*GroupsUpdateCall) QuotaUser

func (c *GroupsUpdateCall) QuotaUser(quotaUser string) *GroupsUpdateCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*GroupsUpdateCall) UserIP

func (c *GroupsUpdateCall) UserIP(userIP string) *GroupsUpdateCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Email") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Member: JSON template for Member resource in Directory API.

func (*Member) MarshalJSON

func (s *Member) MarshalJSON() ([]byte, error)

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Members: JSON response template for List Members operation in Directory API.

func (*Members) MarshalJSON

func (s *Members) MarshalJSON() ([]byte, error)

type MembersDeleteCall

type MembersDeleteCall struct {
	// contains filtered or unexported fields
}

func (*MembersDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MembersDeleteCall) Do

func (c *MembersDeleteCall) Do() error

Do executes the "directory.members.delete" call.

func (*MembersDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MembersDeleteCall) QuotaUser

func (c *MembersDeleteCall) QuotaUser(quotaUser string) *MembersDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*MembersDeleteCall) UserIP

func (c *MembersDeleteCall) UserIP(userIP string) *MembersDeleteCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type MembersGetCall

type MembersGetCall struct {
	// contains filtered or unexported fields
}

func (*MembersGetCall) Context

func (c *MembersGetCall) Context(ctx context.Context) *MembersGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MembersGetCall) Do

func (c *MembersGetCall) Do() (*Member, error)

Do executes the "directory.members.get" call. Exactly one of *Member or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Member.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*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.

func (*MembersGetCall) IfNoneMatch

func (c *MembersGetCall) IfNoneMatch(entityTag string) *MembersGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*MembersGetCall) QuotaUser

func (c *MembersGetCall) QuotaUser(quotaUser string) *MembersGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*MembersGetCall) UserIP

func (c *MembersGetCall) UserIP(userIP string) *MembersGetCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type MembersInsertCall

type MembersInsertCall struct {
	// contains filtered or unexported fields
}

func (*MembersInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MembersInsertCall) Do

func (c *MembersInsertCall) Do() (*Member, error)

Do executes the "directory.members.insert" call. Exactly one of *Member or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Member.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MembersInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MembersInsertCall) QuotaUser

func (c *MembersInsertCall) QuotaUser(quotaUser string) *MembersInsertCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*MembersInsertCall) UserIP

func (c *MembersInsertCall) UserIP(userIP string) *MembersInsertCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type MembersListCall

type MembersListCall struct {
	// contains filtered or unexported fields
}

func (*MembersListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MembersListCall) Do

func (c *MembersListCall) Do() (*Members, error)

Do executes the "directory.members.list" call. Exactly one of *Members or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Members.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MembersListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MembersListCall) IfNoneMatch

func (c *MembersListCall) IfNoneMatch(entityTag string) *MembersListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*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) QuotaUser

func (c *MembersListCall) QuotaUser(quotaUser string) *MembersListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

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.

func (*MembersListCall) UserIP

func (c *MembersListCall) UserIP(userIP string) *MembersListCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type MembersPatchCall

type MembersPatchCall struct {
	// contains filtered or unexported fields
}

func (*MembersPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MembersPatchCall) Do

func (c *MembersPatchCall) Do() (*Member, error)

Do executes the "directory.members.patch" call. Exactly one of *Member or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Member.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MembersPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MembersPatchCall) QuotaUser

func (c *MembersPatchCall) QuotaUser(quotaUser string) *MembersPatchCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*MembersPatchCall) UserIP

func (c *MembersPatchCall) UserIP(userIP string) *MembersPatchCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MembersUpdateCall) Do

func (c *MembersUpdateCall) Do() (*Member, error)

Do executes the "directory.members.update" call. Exactly one of *Member or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Member.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MembersUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MembersUpdateCall) QuotaUser

func (c *MembersUpdateCall) QuotaUser(quotaUser string) *MembersUpdateCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*MembersUpdateCall) UserIP

func (c *MembersUpdateCall) UserIP(userIP string) *MembersUpdateCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type MobileDevice

type MobileDevice struct {
	// AdbStatus: Adb (USB debugging) enabled or disabled on device
	// (Read-only)
	AdbStatus bool `json:"adbStatus,omitempty"`

	// 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"`

	// DeveloperOptionsStatus: Developer options enabled or disabled on
	// device (Read-only)
	DeveloperOptionsStatus bool `json:"developerOptionsStatus,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"`

	// OtherAccountsInfo: List of accounts added on device (Read-only)
	OtherAccountsInfo []string `json:"otherAccountsInfo,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"`

	// SupportsWorkProfile: Work profile supported on device (Read-only)
	SupportsWorkProfile bool `json:"supportsWorkProfile,omitempty"`

	// Type: The type of device (Read-only)
	Type string `json:"type,omitempty"`

	// UnknownSourcesStatus: Unknown sources enabled or disabled on device
	// (Read-only)
	UnknownSourcesStatus bool `json:"unknownSourcesStatus,omitempty"`

	// UserAgent: Mobile Device user agent
	UserAgent string `json:"userAgent,omitempty"`

	// WifiMacAddress: Mobile Device WiFi MAC address (Read-only)
	WifiMacAddress string `json:"wifiMacAddress,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AdbStatus") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

MobileDevice: JSON template for Mobile Device resource in Directory API.

func (*MobileDevice) MarshalJSON

func (s *MobileDevice) MarshalJSON() ([]byte, error)

type MobileDeviceAction

type MobileDeviceAction struct {
	// Action: Action to be taken on the Mobile Device
	Action string `json:"action,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Action") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

MobileDeviceAction: JSON request template for firing commands on Mobile Device in Directory Devices API.

func (*MobileDeviceAction) MarshalJSON

func (s *MobileDeviceAction) MarshalJSON() ([]byte, error)

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

	// ForceSendFields is a list of field names (e.g. "DisplayName") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*MobileDeviceApplications) MarshalJSON

func (s *MobileDeviceApplications) MarshalJSON() ([]byte, error)

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

MobileDevices: JSON response template for List Mobile Devices operation in Directory API.

func (*MobileDevices) MarshalJSON

func (s *MobileDevices) MarshalJSON() ([]byte, error)

type MobiledevicesActionCall

type MobiledevicesActionCall struct {
	// contains filtered or unexported fields
}

func (*MobiledevicesActionCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MobiledevicesActionCall) Do

Do executes the "directory.mobiledevices.action" call.

func (*MobiledevicesActionCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MobiledevicesActionCall) QuotaUser

func (c *MobiledevicesActionCall) QuotaUser(quotaUser string) *MobiledevicesActionCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*MobiledevicesActionCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type MobiledevicesDeleteCall

type MobiledevicesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*MobiledevicesDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MobiledevicesDeleteCall) Do

Do executes the "directory.mobiledevices.delete" call.

func (*MobiledevicesDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MobiledevicesDeleteCall) QuotaUser

func (c *MobiledevicesDeleteCall) QuotaUser(quotaUser string) *MobiledevicesDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*MobiledevicesDeleteCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type MobiledevicesGetCall

type MobiledevicesGetCall struct {
	// contains filtered or unexported fields
}

func (*MobiledevicesGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MobiledevicesGetCall) Do

Do executes the "directory.mobiledevices.get" call. Exactly one of *MobileDevice or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *MobileDevice.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MobiledevicesGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MobiledevicesGetCall) IfNoneMatch

func (c *MobiledevicesGetCall) IfNoneMatch(entityTag string) *MobiledevicesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*MobiledevicesGetCall) Projection

func (c *MobiledevicesGetCall) Projection(projection string) *MobiledevicesGetCall

Projection sets the optional parameter "projection": Restrict information returned to a set of selected fields.

Possible values:

"BASIC" - Includes only the basic metadata fields (e.g., deviceId,

model, status, type, and status)

"FULL" - Includes all metadata fields

func (*MobiledevicesGetCall) QuotaUser

func (c *MobiledevicesGetCall) QuotaUser(quotaUser string) *MobiledevicesGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*MobiledevicesGetCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type MobiledevicesListCall

type MobiledevicesListCall struct {
	// contains filtered or unexported fields
}

func (*MobiledevicesListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*MobiledevicesListCall) Do

Do executes the "directory.mobiledevices.list" call. Exactly one of *MobileDevices or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *MobileDevices.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*MobiledevicesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*MobiledevicesListCall) IfNoneMatch

func (c *MobiledevicesListCall) IfNoneMatch(entityTag string) *MobiledevicesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*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

Possible values:

"deviceId" - Mobile Device serial number.
"email" - Owner user email.
"lastSync" - Last policy settings sync date time of the device.
"model" - Mobile Device model.
"name" - Owner user name.
"os" - Mobile operating system.
"status" - Status of the device.
"type" - Type of the device.

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.

Possible values:

"BASIC" - Includes only the basic metadata fields (e.g., deviceId,

model, status, type, and status)

"FULL" - Includes all metadata fields

func (*MobiledevicesListCall) Query

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

func (c *MobiledevicesListCall) QuotaUser(quotaUser string) *MobiledevicesListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

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

Possible values:

"ASCENDING" - Ascending order.
"DESCENDING" - Descending order.

func (*MobiledevicesListCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Body") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Notification: Template for a notification resource.

func (*Notification) MarshalJSON

func (s *Notification) MarshalJSON() ([]byte, error)

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Notifications: Template for notifications list response.

func (*Notifications) MarshalJSON

func (s *Notifications) MarshalJSON() ([]byte, error)

type NotificationsDeleteCall

type NotificationsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*NotificationsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*NotificationsDeleteCall) Do

Do executes the "directory.notifications.delete" call.

func (*NotificationsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*NotificationsDeleteCall) QuotaUser

func (c *NotificationsDeleteCall) QuotaUser(quotaUser string) *NotificationsDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*NotificationsDeleteCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type NotificationsGetCall

type NotificationsGetCall struct {
	// contains filtered or unexported fields
}

func (*NotificationsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*NotificationsGetCall) Do

Do executes the "directory.notifications.get" call. Exactly one of *Notification or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Notification.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*NotificationsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*NotificationsGetCall) IfNoneMatch

func (c *NotificationsGetCall) IfNoneMatch(entityTag string) *NotificationsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*NotificationsGetCall) QuotaUser

func (c *NotificationsGetCall) QuotaUser(quotaUser string) *NotificationsGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*NotificationsGetCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type NotificationsListCall

type NotificationsListCall struct {
	// contains filtered or unexported fields
}

func (*NotificationsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*NotificationsListCall) Do

Do executes the "directory.notifications.list" call. Exactly one of *Notifications or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Notifications.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*NotificationsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*NotificationsListCall) IfNoneMatch

func (c *NotificationsListCall) IfNoneMatch(entityTag string) *NotificationsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*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.

func (*NotificationsListCall) QuotaUser

func (c *NotificationsListCall) QuotaUser(quotaUser string) *NotificationsListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*NotificationsListCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type NotificationsPatchCall

type NotificationsPatchCall struct {
	// contains filtered or unexported fields
}

func (*NotificationsPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*NotificationsPatchCall) Do

Do executes the "directory.notifications.patch" call. Exactly one of *Notification or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Notification.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*NotificationsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*NotificationsPatchCall) QuotaUser

func (c *NotificationsPatchCall) QuotaUser(quotaUser string) *NotificationsPatchCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*NotificationsPatchCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

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

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*NotificationsUpdateCall) Do

Do executes the "directory.notifications.update" call. Exactly one of *Notification or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Notification.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*NotificationsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*NotificationsUpdateCall) QuotaUser

func (c *NotificationsUpdateCall) QuotaUser(quotaUser string) *NotificationsUpdateCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*NotificationsUpdateCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "BlockInheritance") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

OrgUnit: JSON template for Org Unit resource in Directory API.

func (*OrgUnit) MarshalJSON

func (s *OrgUnit) MarshalJSON() ([]byte, error)

type OrgUnits

type OrgUnits struct {
	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// Kind: Kind of resource this is.
	Kind string `json:"kind,omitempty"`

	// OrganizationUnits: List of user objects.
	OrganizationUnits []*OrgUnit `json:"organizationUnits,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

OrgUnits: JSON response template for List Organization Units operation in Directory API.

func (*OrgUnits) MarshalJSON

func (s *OrgUnits) MarshalJSON() ([]byte, error)

type OrgunitsDeleteCall

type OrgunitsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*OrgunitsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrgunitsDeleteCall) Do

func (c *OrgunitsDeleteCall) Do() error

Do executes the "directory.orgunits.delete" call.

func (*OrgunitsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrgunitsDeleteCall) QuotaUser

func (c *OrgunitsDeleteCall) QuotaUser(quotaUser string) *OrgunitsDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*OrgunitsDeleteCall) UserIP

func (c *OrgunitsDeleteCall) UserIP(userIP string) *OrgunitsDeleteCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type OrgunitsGetCall

type OrgunitsGetCall struct {
	// contains filtered or unexported fields
}

func (*OrgunitsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrgunitsGetCall) Do

func (c *OrgunitsGetCall) Do() (*OrgUnit, error)

Do executes the "directory.orgunits.get" call. Exactly one of *OrgUnit or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrgUnit.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrgunitsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrgunitsGetCall) IfNoneMatch

func (c *OrgunitsGetCall) IfNoneMatch(entityTag string) *OrgunitsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*OrgunitsGetCall) QuotaUser

func (c *OrgunitsGetCall) QuotaUser(quotaUser string) *OrgunitsGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*OrgunitsGetCall) UserIP

func (c *OrgunitsGetCall) UserIP(userIP string) *OrgunitsGetCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type OrgunitsInsertCall

type OrgunitsInsertCall struct {
	// contains filtered or unexported fields
}

func (*OrgunitsInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrgunitsInsertCall) Do

func (c *OrgunitsInsertCall) Do() (*OrgUnit, error)

Do executes the "directory.orgunits.insert" call. Exactly one of *OrgUnit or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrgUnit.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrgunitsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrgunitsInsertCall) QuotaUser

func (c *OrgunitsInsertCall) QuotaUser(quotaUser string) *OrgunitsInsertCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*OrgunitsInsertCall) UserIP

func (c *OrgunitsInsertCall) UserIP(userIP string) *OrgunitsInsertCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type OrgunitsListCall

type OrgunitsListCall struct {
	// contains filtered or unexported fields
}

func (*OrgunitsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrgunitsListCall) Do

func (c *OrgunitsListCall) Do() (*OrgUnits, error)

Do executes the "directory.orgunits.list" call. Exactly one of *OrgUnits or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrgUnits.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrgunitsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrgunitsListCall) IfNoneMatch

func (c *OrgunitsListCall) IfNoneMatch(entityTag string) *OrgunitsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*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) QuotaUser

func (c *OrgunitsListCall) QuotaUser(quotaUser string) *OrgunitsListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

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

Possible values:

"all" - All sub-organization units.
"children" - Immediate children only (default).

func (*OrgunitsListCall) UserIP

func (c *OrgunitsListCall) UserIP(userIP string) *OrgunitsListCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type OrgunitsPatchCall

type OrgunitsPatchCall struct {
	// contains filtered or unexported fields
}

func (*OrgunitsPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrgunitsPatchCall) Do

func (c *OrgunitsPatchCall) Do() (*OrgUnit, error)

Do executes the "directory.orgunits.patch" call. Exactly one of *OrgUnit or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrgUnit.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrgunitsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrgunitsPatchCall) QuotaUser

func (c *OrgunitsPatchCall) QuotaUser(quotaUser string) *OrgunitsPatchCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*OrgunitsPatchCall) UserIP

func (c *OrgunitsPatchCall) UserIP(userIP string) *OrgunitsPatchCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*OrgunitsUpdateCall) Do

func (c *OrgunitsUpdateCall) Do() (*OrgUnit, error)

Do executes the "directory.orgunits.update" call. Exactly one of *OrgUnit or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *OrgUnit.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*OrgunitsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*OrgunitsUpdateCall) QuotaUser

func (c *OrgunitsUpdateCall) QuotaUser(quotaUser string) *OrgunitsUpdateCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*OrgunitsUpdateCall) UserIP

func (c *OrgunitsUpdateCall) UserIP(userIP string) *OrgunitsUpdateCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type Privilege

type Privilege struct {
	// ChildPrivileges: A list of child privileges. Privileges for a service
	// form a tree. Each privilege can have a list of child privileges; this
	// list is empty for a leaf privilege.
	ChildPrivileges []*Privilege `json:"childPrivileges,omitempty"`

	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// IsOuScopable: If the privilege can be restricted to an organization
	// unit.
	IsOuScopable bool `json:"isOuScopable,omitempty"`

	// Kind: The type of the API resource. This is always
	// admin#directory#privilege.
	Kind string `json:"kind,omitempty"`

	// PrivilegeName: The name of the privilege.
	PrivilegeName string `json:"privilegeName,omitempty"`

	// ServiceId: The obfuscated ID of the service this privilege is for.
	ServiceId string `json:"serviceId,omitempty"`

	// ServiceName: The name of the service this privilege is for.
	ServiceName string `json:"serviceName,omitempty"`

	// ForceSendFields is a list of field names (e.g. "ChildPrivileges") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Privilege: JSON template for privilege resource in Directory API.

func (*Privilege) MarshalJSON

func (s *Privilege) MarshalJSON() ([]byte, error)

type Privileges

type Privileges struct {
	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// Items: A list of Privilege resources.
	Items []*Privilege `json:"items,omitempty"`

	// Kind: The type of the API resource. This is always
	// admin#directory#privileges.
	Kind string `json:"kind,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Privileges: JSON response template for List privileges operation in Directory API.

func (*Privileges) MarshalJSON

func (s *Privileges) MarshalJSON() ([]byte, error)

type PrivilegesListCall

type PrivilegesListCall struct {
	// contains filtered or unexported fields
}

func (*PrivilegesListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*PrivilegesListCall) Do

func (c *PrivilegesListCall) Do() (*Privileges, error)

Do executes the "directory.privileges.list" call. Exactly one of *Privileges or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Privileges.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*PrivilegesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*PrivilegesListCall) IfNoneMatch

func (c *PrivilegesListCall) IfNoneMatch(entityTag string) *PrivilegesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*PrivilegesListCall) QuotaUser

func (c *PrivilegesListCall) QuotaUser(quotaUser string) *PrivilegesListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*PrivilegesListCall) UserIP

func (c *PrivilegesListCall) UserIP(userIP string) *PrivilegesListCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type PrivilegesService

type PrivilegesService struct {
	// contains filtered or unexported fields
}

func NewPrivilegesService

func NewPrivilegesService(s *Service) *PrivilegesService

func (*PrivilegesService) List

func (r *PrivilegesService) List(customer string) *PrivilegesListCall

List: Retrieves a paginated list of all privileges for a customer.

type ResourcesCalendarsDeleteCall

type ResourcesCalendarsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*ResourcesCalendarsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ResourcesCalendarsDeleteCall) Do

Do executes the "directory.resources.calendars.delete" call.

func (*ResourcesCalendarsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ResourcesCalendarsDeleteCall) QuotaUser

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*ResourcesCalendarsDeleteCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type ResourcesCalendarsGetCall

type ResourcesCalendarsGetCall struct {
	// contains filtered or unexported fields
}

func (*ResourcesCalendarsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ResourcesCalendarsGetCall) Do

Do executes the "directory.resources.calendars.get" call. Exactly one of *CalendarResource or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CalendarResource.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ResourcesCalendarsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ResourcesCalendarsGetCall) IfNoneMatch

func (c *ResourcesCalendarsGetCall) IfNoneMatch(entityTag string) *ResourcesCalendarsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ResourcesCalendarsGetCall) QuotaUser

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*ResourcesCalendarsGetCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type ResourcesCalendarsInsertCall

type ResourcesCalendarsInsertCall struct {
	// contains filtered or unexported fields
}

func (*ResourcesCalendarsInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ResourcesCalendarsInsertCall) Do

Do executes the "directory.resources.calendars.insert" call. Exactly one of *CalendarResource or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CalendarResource.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ResourcesCalendarsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ResourcesCalendarsInsertCall) QuotaUser

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*ResourcesCalendarsInsertCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type ResourcesCalendarsListCall

type ResourcesCalendarsListCall struct {
	// contains filtered or unexported fields
}

func (*ResourcesCalendarsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ResourcesCalendarsListCall) Do

Do executes the "directory.resources.calendars.list" call. Exactly one of *CalendarResources or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CalendarResources.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ResourcesCalendarsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ResourcesCalendarsListCall) IfNoneMatch

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*ResourcesCalendarsListCall) MaxResults

func (c *ResourcesCalendarsListCall) MaxResults(maxResults int64) *ResourcesCalendarsListCall

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*ResourcesCalendarsListCall) PageToken

PageToken sets the optional parameter "pageToken": Token to specify the next page in the list.

func (*ResourcesCalendarsListCall) QuotaUser

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*ResourcesCalendarsListCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type ResourcesCalendarsPatchCall

type ResourcesCalendarsPatchCall struct {
	// contains filtered or unexported fields
}

func (*ResourcesCalendarsPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ResourcesCalendarsPatchCall) Do

Do executes the "directory.resources.calendars.patch" call. Exactly one of *CalendarResource or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CalendarResource.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ResourcesCalendarsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ResourcesCalendarsPatchCall) QuotaUser

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*ResourcesCalendarsPatchCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type ResourcesCalendarsService

type ResourcesCalendarsService struct {
	// contains filtered or unexported fields
}

func NewResourcesCalendarsService

func NewResourcesCalendarsService(s *Service) *ResourcesCalendarsService

func (*ResourcesCalendarsService) Delete

func (r *ResourcesCalendarsService) Delete(customer string, calendarResourceId string) *ResourcesCalendarsDeleteCall

Delete: Deletes a calendar resource.

func (*ResourcesCalendarsService) Get

func (r *ResourcesCalendarsService) Get(customer string, calendarResourceId string) *ResourcesCalendarsGetCall

Get: Retrieves a calendar resource.

func (*ResourcesCalendarsService) Insert

func (r *ResourcesCalendarsService) Insert(customer string, calendarresource *CalendarResource) *ResourcesCalendarsInsertCall

Insert: Inserts a calendar resource.

func (*ResourcesCalendarsService) List

List: Retrieves a list of calendar resources for an account.

func (*ResourcesCalendarsService) Patch

func (r *ResourcesCalendarsService) Patch(customer string, calendarResourceId string, calendarresource *CalendarResource) *ResourcesCalendarsPatchCall

Patch: Updates a calendar resource. This method supports patch semantics.

func (*ResourcesCalendarsService) Update

func (r *ResourcesCalendarsService) Update(customer string, calendarResourceId string, calendarresource *CalendarResource) *ResourcesCalendarsUpdateCall

Update: Updates a calendar resource.

type ResourcesCalendarsUpdateCall

type ResourcesCalendarsUpdateCall struct {
	// contains filtered or unexported fields
}

func (*ResourcesCalendarsUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*ResourcesCalendarsUpdateCall) Do

Do executes the "directory.resources.calendars.update" call. Exactly one of *CalendarResource or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *CalendarResource.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*ResourcesCalendarsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*ResourcesCalendarsUpdateCall) QuotaUser

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*ResourcesCalendarsUpdateCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type ResourcesService

type ResourcesService struct {
	Calendars *ResourcesCalendarsService
	// contains filtered or unexported fields
}

func NewResourcesService

func NewResourcesService(s *Service) *ResourcesService

type Role

type Role struct {
	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// IsSuperAdminRole: Returns true if the role is a super admin role.
	IsSuperAdminRole bool `json:"isSuperAdminRole,omitempty"`

	// IsSystemRole: Returns true if this is a pre-defined system role.
	IsSystemRole bool `json:"isSystemRole,omitempty"`

	// Kind: The type of the API resource. This is always
	// admin#directory#role.
	Kind string `json:"kind,omitempty"`

	// RoleDescription: A short description of the role.
	RoleDescription string `json:"roleDescription,omitempty"`

	// RoleId: ID of the role.
	RoleId int64 `json:"roleId,omitempty,string"`

	// RoleName: Name of the role.
	RoleName string `json:"roleName,omitempty"`

	// RolePrivileges: The set of privileges that are granted to this role.
	RolePrivileges []*RoleRolePrivileges `json:"rolePrivileges,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Role: JSON template for role resource in Directory API.

func (*Role) MarshalJSON

func (s *Role) MarshalJSON() ([]byte, error)

type RoleAssignment

type RoleAssignment struct {
	// AssignedTo: The unique ID of the user this role is assigned to.
	AssignedTo string `json:"assignedTo,omitempty"`

	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// Kind: The type of the API resource. This is always
	// admin#directory#roleAssignment.
	Kind string `json:"kind,omitempty"`

	// OrgUnitId: If the role is restricted to an organization unit, this
	// contains the ID for the organization unit the exercise of this role
	// is restricted to.
	OrgUnitId string `json:"orgUnitId,omitempty"`

	// RoleAssignmentId: ID of this roleAssignment.
	RoleAssignmentId int64 `json:"roleAssignmentId,omitempty,string"`

	// RoleId: The ID of the role that is assigned.
	RoleId int64 `json:"roleId,omitempty,string"`

	// ScopeType: The scope in which this role is assigned. Possible values
	// are:
	// - CUSTOMER
	// - ORG_UNIT
	ScopeType string `json:"scopeType,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "AssignedTo") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

RoleAssignment: JSON template for roleAssignment resource in Directory API.

func (*RoleAssignment) MarshalJSON

func (s *RoleAssignment) MarshalJSON() ([]byte, error)

type RoleAssignments

type RoleAssignments struct {
	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// Items: A list of RoleAssignment resources.
	Items []*RoleAssignment `json:"items,omitempty"`

	// Kind: The type of the API resource. This is always
	// admin#directory#roleAssignments.
	Kind string `json:"kind,omitempty"`

	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

RoleAssignments: JSON response template for List roleAssignments operation in Directory API.

func (*RoleAssignments) MarshalJSON

func (s *RoleAssignments) MarshalJSON() ([]byte, error)

type RoleAssignmentsDeleteCall

type RoleAssignmentsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*RoleAssignmentsDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RoleAssignmentsDeleteCall) Do

Do executes the "directory.roleAssignments.delete" call.

func (*RoleAssignmentsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RoleAssignmentsDeleteCall) QuotaUser

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*RoleAssignmentsDeleteCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type RoleAssignmentsGetCall

type RoleAssignmentsGetCall struct {
	// contains filtered or unexported fields
}

func (*RoleAssignmentsGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RoleAssignmentsGetCall) Do

Do executes the "directory.roleAssignments.get" call. Exactly one of *RoleAssignment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RoleAssignment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RoleAssignmentsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RoleAssignmentsGetCall) IfNoneMatch

func (c *RoleAssignmentsGetCall) IfNoneMatch(entityTag string) *RoleAssignmentsGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*RoleAssignmentsGetCall) QuotaUser

func (c *RoleAssignmentsGetCall) QuotaUser(quotaUser string) *RoleAssignmentsGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*RoleAssignmentsGetCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type RoleAssignmentsInsertCall

type RoleAssignmentsInsertCall struct {
	// contains filtered or unexported fields
}

func (*RoleAssignmentsInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RoleAssignmentsInsertCall) Do

Do executes the "directory.roleAssignments.insert" call. Exactly one of *RoleAssignment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RoleAssignment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RoleAssignmentsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RoleAssignmentsInsertCall) QuotaUser

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*RoleAssignmentsInsertCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type RoleAssignmentsListCall

type RoleAssignmentsListCall struct {
	// contains filtered or unexported fields
}

func (*RoleAssignmentsListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RoleAssignmentsListCall) Do

Do executes the "directory.roleAssignments.list" call. Exactly one of *RoleAssignments or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *RoleAssignments.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RoleAssignmentsListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RoleAssignmentsListCall) IfNoneMatch

func (c *RoleAssignmentsListCall) IfNoneMatch(entityTag string) *RoleAssignmentsListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*RoleAssignmentsListCall) MaxResults

func (c *RoleAssignmentsListCall) MaxResults(maxResults int64) *RoleAssignmentsListCall

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*RoleAssignmentsListCall) PageToken

func (c *RoleAssignmentsListCall) PageToken(pageToken string) *RoleAssignmentsListCall

PageToken sets the optional parameter "pageToken": Token to specify the next page in the list.

func (*RoleAssignmentsListCall) QuotaUser

func (c *RoleAssignmentsListCall) QuotaUser(quotaUser string) *RoleAssignmentsListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*RoleAssignmentsListCall) RoleId

RoleId sets the optional parameter "roleId": Immutable ID of a role. If included in the request, returns only role assignments containing this role ID.

func (*RoleAssignmentsListCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

func (*RoleAssignmentsListCall) UserKey

UserKey sets the optional parameter "userKey": The user's primary email address, alias email address, or unique user ID. If included in the request, returns role assignments only for this user.

type RoleAssignmentsService

type RoleAssignmentsService struct {
	// contains filtered or unexported fields
}

func NewRoleAssignmentsService

func NewRoleAssignmentsService(s *Service) *RoleAssignmentsService

func (*RoleAssignmentsService) Delete

func (r *RoleAssignmentsService) Delete(customer string, roleAssignmentId string) *RoleAssignmentsDeleteCall

Delete: Deletes a role assignment.

func (*RoleAssignmentsService) Get

func (r *RoleAssignmentsService) Get(customer string, roleAssignmentId string) *RoleAssignmentsGetCall

Get: Retrieve a role assignment.

func (*RoleAssignmentsService) Insert

func (r *RoleAssignmentsService) Insert(customer string, roleassignment *RoleAssignment) *RoleAssignmentsInsertCall

Insert: Creates a role assignment.

func (*RoleAssignmentsService) List

List: Retrieves a paginated list of all roleAssignments.

type RoleRolePrivileges

type RoleRolePrivileges struct {
	// PrivilegeName: The name of the privilege.
	PrivilegeName string `json:"privilegeName,omitempty"`

	// ServiceId: The obfuscated ID of the service this privilege is for.
	ServiceId string `json:"serviceId,omitempty"`

	// ForceSendFields is a list of field names (e.g. "PrivilegeName") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

func (*RoleRolePrivileges) MarshalJSON

func (s *RoleRolePrivileges) MarshalJSON() ([]byte, error)

type Roles

type Roles struct {
	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// Items: A list of Role resources.
	Items []*Role `json:"items,omitempty"`

	// Kind: The type of the API resource. This is always
	// admin#directory#roles.
	Kind string `json:"kind,omitempty"`

	NextPageToken string `json:"nextPageToken,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Roles: JSON response template for List roles operation in Directory API.

func (*Roles) MarshalJSON

func (s *Roles) MarshalJSON() ([]byte, error)

type RolesDeleteCall

type RolesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*RolesDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RolesDeleteCall) Do

func (c *RolesDeleteCall) Do() error

Do executes the "directory.roles.delete" call.

func (*RolesDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RolesDeleteCall) QuotaUser

func (c *RolesDeleteCall) QuotaUser(quotaUser string) *RolesDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*RolesDeleteCall) UserIP

func (c *RolesDeleteCall) UserIP(userIP string) *RolesDeleteCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type RolesGetCall

type RolesGetCall struct {
	// contains filtered or unexported fields
}

func (*RolesGetCall) Context

func (c *RolesGetCall) Context(ctx context.Context) *RolesGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RolesGetCall) Do

func (c *RolesGetCall) Do() (*Role, error)

Do executes the "directory.roles.get" call. Exactly one of *Role or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Role.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RolesGetCall) Fields

func (c *RolesGetCall) Fields(s ...googleapi.Field) *RolesGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RolesGetCall) IfNoneMatch

func (c *RolesGetCall) IfNoneMatch(entityTag string) *RolesGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*RolesGetCall) QuotaUser

func (c *RolesGetCall) QuotaUser(quotaUser string) *RolesGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*RolesGetCall) UserIP

func (c *RolesGetCall) UserIP(userIP string) *RolesGetCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type RolesInsertCall

type RolesInsertCall struct {
	// contains filtered or unexported fields
}

func (*RolesInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RolesInsertCall) Do

func (c *RolesInsertCall) Do() (*Role, error)

Do executes the "directory.roles.insert" call. Exactly one of *Role or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Role.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RolesInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RolesInsertCall) QuotaUser

func (c *RolesInsertCall) QuotaUser(quotaUser string) *RolesInsertCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*RolesInsertCall) UserIP

func (c *RolesInsertCall) UserIP(userIP string) *RolesInsertCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type RolesListCall

type RolesListCall struct {
	// contains filtered or unexported fields
}

func (*RolesListCall) Context

func (c *RolesListCall) Context(ctx context.Context) *RolesListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RolesListCall) Do

func (c *RolesListCall) Do() (*Roles, error)

Do executes the "directory.roles.list" call. Exactly one of *Roles or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Roles.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RolesListCall) Fields

func (c *RolesListCall) Fields(s ...googleapi.Field) *RolesListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RolesListCall) IfNoneMatch

func (c *RolesListCall) IfNoneMatch(entityTag string) *RolesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*RolesListCall) MaxResults

func (c *RolesListCall) MaxResults(maxResults int64) *RolesListCall

MaxResults sets the optional parameter "maxResults": Maximum number of results to return.

func (*RolesListCall) PageToken

func (c *RolesListCall) PageToken(pageToken string) *RolesListCall

PageToken sets the optional parameter "pageToken": Token to specify the next page in the list.

func (*RolesListCall) QuotaUser

func (c *RolesListCall) QuotaUser(quotaUser string) *RolesListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*RolesListCall) UserIP

func (c *RolesListCall) UserIP(userIP string) *RolesListCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type RolesPatchCall

type RolesPatchCall struct {
	// contains filtered or unexported fields
}

func (*RolesPatchCall) Context

func (c *RolesPatchCall) Context(ctx context.Context) *RolesPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RolesPatchCall) Do

func (c *RolesPatchCall) Do() (*Role, error)

Do executes the "directory.roles.patch" call. Exactly one of *Role or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Role.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RolesPatchCall) Fields

func (c *RolesPatchCall) Fields(s ...googleapi.Field) *RolesPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RolesPatchCall) QuotaUser

func (c *RolesPatchCall) QuotaUser(quotaUser string) *RolesPatchCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*RolesPatchCall) UserIP

func (c *RolesPatchCall) UserIP(userIP string) *RolesPatchCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type RolesService

type RolesService struct {
	// contains filtered or unexported fields
}

func NewRolesService

func NewRolesService(s *Service) *RolesService

func (*RolesService) Delete

func (r *RolesService) Delete(customer string, roleId string) *RolesDeleteCall

Delete: Deletes a role.

func (*RolesService) Get

func (r *RolesService) Get(customer string, roleId string) *RolesGetCall

Get: Retrieves a role.

func (*RolesService) Insert

func (r *RolesService) Insert(customer string, role *Role) *RolesInsertCall

Insert: Creates a role.

func (*RolesService) List

func (r *RolesService) List(customer string) *RolesListCall

List: Retrieves a paginated list of all the roles in a domain.

func (*RolesService) Patch

func (r *RolesService) Patch(customer string, roleId string, role *Role) *RolesPatchCall

Patch: Updates a role. This method supports patch semantics.

func (*RolesService) Update

func (r *RolesService) Update(customer string, roleId string, role *Role) *RolesUpdateCall

Update: Updates a role.

type RolesUpdateCall

type RolesUpdateCall struct {
	// contains filtered or unexported fields
}

func (*RolesUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*RolesUpdateCall) Do

func (c *RolesUpdateCall) Do() (*Role, error)

Do executes the "directory.roles.update" call. Exactly one of *Role or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Role.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*RolesUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*RolesUpdateCall) QuotaUser

func (c *RolesUpdateCall) QuotaUser(quotaUser string) *RolesUpdateCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*RolesUpdateCall) UserIP

func (c *RolesUpdateCall) UserIP(userIP string) *RolesUpdateCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Schema: JSON template for Schema resource in Directory API.

func (*Schema) MarshalJSON

func (s *Schema) MarshalJSON() ([]byte, error)

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.
	//
	// Default: true
	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"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

SchemaFieldSpec: JSON template for FieldSpec resource for Schemas in Directory API.

func (*SchemaFieldSpec) MarshalJSON

func (s *SchemaFieldSpec) MarshalJSON() ([]byte, error)

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

	// ForceSendFields is a list of field names (e.g. "MaxValue") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

SchemaFieldSpecNumericIndexingSpec: 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.

func (*SchemaFieldSpecNumericIndexingSpec) MarshalJSON

func (s *SchemaFieldSpecNumericIndexingSpec) MarshalJSON() ([]byte, error)

type Schemas

type Schemas struct {
	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// Kind: Kind of resource this is.
	Kind string `json:"kind,omitempty"`

	// Schemas: List of UserSchema objects.
	Schemas []*Schema `json:"schemas,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Schemas: JSON response template for List Schema operation in Directory API.

func (*Schemas) MarshalJSON

func (s *Schemas) MarshalJSON() ([]byte, error)

type SchemasDeleteCall

type SchemasDeleteCall struct {
	// contains filtered or unexported fields
}

func (*SchemasDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SchemasDeleteCall) Do

func (c *SchemasDeleteCall) Do() error

Do executes the "directory.schemas.delete" call.

func (*SchemasDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SchemasDeleteCall) QuotaUser

func (c *SchemasDeleteCall) QuotaUser(quotaUser string) *SchemasDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*SchemasDeleteCall) UserIP

func (c *SchemasDeleteCall) UserIP(userIP string) *SchemasDeleteCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type SchemasGetCall

type SchemasGetCall struct {
	// contains filtered or unexported fields
}

func (*SchemasGetCall) Context

func (c *SchemasGetCall) Context(ctx context.Context) *SchemasGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SchemasGetCall) Do

func (c *SchemasGetCall) Do() (*Schema, error)

Do executes the "directory.schemas.get" call. Exactly one of *Schema or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Schema.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*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.

func (*SchemasGetCall) IfNoneMatch

func (c *SchemasGetCall) IfNoneMatch(entityTag string) *SchemasGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*SchemasGetCall) QuotaUser

func (c *SchemasGetCall) QuotaUser(quotaUser string) *SchemasGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*SchemasGetCall) UserIP

func (c *SchemasGetCall) UserIP(userIP string) *SchemasGetCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type SchemasInsertCall

type SchemasInsertCall struct {
	// contains filtered or unexported fields
}

func (*SchemasInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SchemasInsertCall) Do

func (c *SchemasInsertCall) Do() (*Schema, error)

Do executes the "directory.schemas.insert" call. Exactly one of *Schema or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Schema.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SchemasInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SchemasInsertCall) QuotaUser

func (c *SchemasInsertCall) QuotaUser(quotaUser string) *SchemasInsertCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*SchemasInsertCall) UserIP

func (c *SchemasInsertCall) UserIP(userIP string) *SchemasInsertCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type SchemasListCall

type SchemasListCall struct {
	// contains filtered or unexported fields
}

func (*SchemasListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SchemasListCall) Do

func (c *SchemasListCall) Do() (*Schemas, error)

Do executes the "directory.schemas.list" call. Exactly one of *Schemas or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Schemas.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SchemasListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SchemasListCall) IfNoneMatch

func (c *SchemasListCall) IfNoneMatch(entityTag string) *SchemasListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*SchemasListCall) QuotaUser

func (c *SchemasListCall) QuotaUser(quotaUser string) *SchemasListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*SchemasListCall) UserIP

func (c *SchemasListCall) UserIP(userIP string) *SchemasListCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type SchemasPatchCall

type SchemasPatchCall struct {
	// contains filtered or unexported fields
}

func (*SchemasPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SchemasPatchCall) Do

func (c *SchemasPatchCall) Do() (*Schema, error)

Do executes the "directory.schemas.patch" call. Exactly one of *Schema or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Schema.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SchemasPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SchemasPatchCall) QuotaUser

func (c *SchemasPatchCall) QuotaUser(quotaUser string) *SchemasPatchCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*SchemasPatchCall) UserIP

func (c *SchemasPatchCall) UserIP(userIP string) *SchemasPatchCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*SchemasUpdateCall) Do

func (c *SchemasUpdateCall) Do() (*Schema, error)

Do executes the "directory.schemas.update" call. Exactly one of *Schema or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Schema.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*SchemasUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*SchemasUpdateCall) QuotaUser

func (c *SchemasUpdateCall) QuotaUser(quotaUser string) *SchemasUpdateCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*SchemasUpdateCall) UserIP

func (c *SchemasUpdateCall) UserIP(userIP string) *SchemasUpdateCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type Service

type Service struct {
	BasePath  string // API endpoint base URL
	UserAgent string // optional additional User-Agent fragment

	Asps *AspsService

	Channels *ChannelsService

	Chromeosdevices *ChromeosdevicesService

	Customers *CustomersService

	DomainAliases *DomainAliasesService

	Domains *DomainsService

	Groups *GroupsService

	Members *MembersService

	Mobiledevices *MobiledevicesService

	Notifications *NotificationsService

	Orgunits *OrgunitsService

	Privileges *PrivilegesService

	Resources *ResourcesService

	RoleAssignments *RoleAssignmentsService

	Roles *RolesService

	Schemas *SchemasService

	Tokens *TokensService

	Users *UsersService

	VerificationCodes *VerificationCodesService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Anonymous") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Token: JSON template for token resource in Directory API.

func (*Token) MarshalJSON

func (s *Token) MarshalJSON() ([]byte, error)

type Tokens

type Tokens struct {
	// Etag: ETag of the resource.
	Etag string `json:"etag,omitempty"`

	// Items: A list of Token resources.
	Items []*Token `json:"items,omitempty"`

	// Kind: The type of the API resource. This is always
	// admin#directory#tokenList.
	Kind string `json:"kind,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Tokens: JSON response template for List tokens operation in Directory API.

func (*Tokens) MarshalJSON

func (s *Tokens) MarshalJSON() ([]byte, error)

type TokensDeleteCall

type TokensDeleteCall struct {
	// contains filtered or unexported fields
}

func (*TokensDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TokensDeleteCall) Do

func (c *TokensDeleteCall) Do() error

Do executes the "directory.tokens.delete" call.

func (*TokensDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*TokensDeleteCall) QuotaUser

func (c *TokensDeleteCall) QuotaUser(quotaUser string) *TokensDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*TokensDeleteCall) UserIP

func (c *TokensDeleteCall) UserIP(userIP string) *TokensDeleteCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type TokensGetCall

type TokensGetCall struct {
	// contains filtered or unexported fields
}

func (*TokensGetCall) Context

func (c *TokensGetCall) Context(ctx context.Context) *TokensGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TokensGetCall) Do

func (c *TokensGetCall) Do() (*Token, error)

Do executes the "directory.tokens.get" call. Exactly one of *Token or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Token.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*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.

func (*TokensGetCall) IfNoneMatch

func (c *TokensGetCall) IfNoneMatch(entityTag string) *TokensGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TokensGetCall) QuotaUser

func (c *TokensGetCall) QuotaUser(quotaUser string) *TokensGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*TokensGetCall) UserIP

func (c *TokensGetCall) UserIP(userIP string) *TokensGetCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type TokensListCall

type TokensListCall struct {
	// contains filtered or unexported fields
}

func (*TokensListCall) Context

func (c *TokensListCall) Context(ctx context.Context) *TokensListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*TokensListCall) Do

func (c *TokensListCall) Do() (*Tokens, error)

Do executes the "directory.tokens.list" call. Exactly one of *Tokens or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Tokens.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*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.

func (*TokensListCall) IfNoneMatch

func (c *TokensListCall) IfNoneMatch(entityTag string) *TokensListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*TokensListCall) QuotaUser

func (c *TokensListCall) QuotaUser(quotaUser string) *TokensListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*TokensListCall) UserIP

func (c *TokensListCall) UserIP(userIP string) *TokensListCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

	// ThumbnailPhotoEtag: ETag of the user's photo (Read-only)
	ThumbnailPhotoEtag string `json:"thumbnailPhotoEtag,omitempty"`

	// ThumbnailPhotoUrl: Photo Url of the user (Read-only)
	ThumbnailPhotoUrl string `json:"thumbnailPhotoUrl,omitempty"`

	Websites interface{} `json:"websites,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Addresses") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

User: JSON template for User object in Directory API.

func (*User) MarshalJSON

func (s *User) MarshalJSON() ([]byte, error)

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

	// ForceSendFields is a list of field names (e.g. "ContentType") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

UserAbout: JSON template for About (notes) of a user in Directory API.

func (*UserAbout) MarshalJSON

func (s *UserAbout) MarshalJSON() ([]byte, error)

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

	// ForceSendFields is a list of field names (e.g. "Country") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

UserAddress: JSON template for address.

func (*UserAddress) MarshalJSON

func (s *UserAddress) MarshalJSON() ([]byte, error)

type UserCustomProperties

type UserCustomProperties interface{}

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

	// ForceSendFields is a list of field names (e.g. "Address") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

UserEmail: JSON template for an email.

func (*UserEmail) MarshalJSON

func (s *UserEmail) MarshalJSON() ([]byte, error)

type UserExternalId

type UserExternalId struct {
	// CustomType: Custom type.
	CustomType string `json:"customType,omitempty"`

	// Type: The type of the Id.
	Type string `json:"type,omitempty"`

	// Value: The value of the id.
	Value string `json:"value,omitempty"`

	// ForceSendFields is a list of field names (e.g. "CustomType") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

UserExternalId: JSON template for an externalId entry.

func (*UserExternalId) MarshalJSON

func (s *UserExternalId) MarshalJSON() ([]byte, error)

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

	// ForceSendFields is a list of field names (e.g. "CustomProtocol") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

UserIm: JSON template for instant messenger of an user.

func (*UserIm) MarshalJSON

func (s *UserIm) MarshalJSON() ([]byte, error)

type UserMakeAdmin

type UserMakeAdmin struct {
	// Status: Boolean indicating new admin status of the user
	Status bool `json:"status,omitempty"`

	// ForceSendFields is a list of field names (e.g. "Status") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

UserMakeAdmin: JSON request template for setting/revoking admin status of a user in Directory API.

func (*UserMakeAdmin) MarshalJSON

func (s *UserMakeAdmin) MarshalJSON() ([]byte, error)

type UserName

type UserName struct {
	// FamilyName: Last Name
	FamilyName string `json:"familyName,omitempty"`

	// FullName: Full Name
	FullName string `json:"fullName,omitempty"`

	// GivenName: First Name
	GivenName string `json:"givenName,omitempty"`

	// ForceSendFields is a list of field names (e.g. "FamilyName") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

UserName: JSON template for name of a user in Directory API.

func (*UserName) MarshalJSON

func (s *UserName) MarshalJSON() ([]byte, error)

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

	// ForceSendFields is a list of field names (e.g. "CostCenter") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

UserOrganization: JSON template for an organization entry.

func (*UserOrganization) MarshalJSON

func (s *UserOrganization) MarshalJSON() ([]byte, error)

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

	// ForceSendFields is a list of field names (e.g. "CustomType") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

UserPhone: JSON template for a phone entry.

func (*UserPhone) MarshalJSON

func (s *UserPhone) MarshalJSON() ([]byte, error)

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

UserPhoto: JSON template for Photo object in Directory API.

func (*UserPhoto) MarshalJSON

func (s *UserPhoto) MarshalJSON() ([]byte, error)

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

	// ForceSendFields is a list of field names (e.g. "CustomType") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

UserRelation: JSON template for a relation entry.

func (*UserRelation) MarshalJSON

func (s *UserRelation) MarshalJSON() ([]byte, error)

type UserUndelete

type UserUndelete struct {
	// OrgUnitPath: OrgUnit of User
	OrgUnitPath string `json:"orgUnitPath,omitempty"`

	// ForceSendFields is a list of field names (e.g. "OrgUnitPath") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

UserUndelete: JSON request template to undelete a user in Directory API.

func (*UserUndelete) MarshalJSON

func (s *UserUndelete) MarshalJSON() ([]byte, error)

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

	// ForceSendFields is a list of field names (e.g. "CustomType") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

UserWebsite: JSON template for a website entry.

func (*UserWebsite) MarshalJSON

func (s *UserWebsite) MarshalJSON() ([]byte, error)

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

	// TriggerEvent: Event that triggered this response (only used in case
	// of Push Response)
	TriggerEvent string `json:"trigger_event,omitempty"`

	// Users: List of user objects.
	Users []*User `json:"users,omitempty"`

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

Users: JSON response template for List Users operation in Apps Directory API.

func (*Users) MarshalJSON

func (s *Users) MarshalJSON() ([]byte, error)

type UsersAliasesDeleteCall

type UsersAliasesDeleteCall struct {
	// contains filtered or unexported fields
}

func (*UsersAliasesDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersAliasesDeleteCall) Do

func (c *UsersAliasesDeleteCall) Do() error

Do executes the "directory.users.aliases.delete" call.

func (*UsersAliasesDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersAliasesDeleteCall) QuotaUser

func (c *UsersAliasesDeleteCall) QuotaUser(quotaUser string) *UsersAliasesDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersAliasesDeleteCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type UsersAliasesInsertCall

type UsersAliasesInsertCall struct {
	// contains filtered or unexported fields
}

func (*UsersAliasesInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersAliasesInsertCall) Do

func (c *UsersAliasesInsertCall) Do() (*Alias, error)

Do executes the "directory.users.aliases.insert" call. Exactly one of *Alias or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Alias.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersAliasesInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersAliasesInsertCall) QuotaUser

func (c *UsersAliasesInsertCall) QuotaUser(quotaUser string) *UsersAliasesInsertCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersAliasesInsertCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type UsersAliasesListCall

type UsersAliasesListCall struct {
	// contains filtered or unexported fields
}

func (*UsersAliasesListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersAliasesListCall) Do

func (c *UsersAliasesListCall) Do() (*Aliases, error)

Do executes the "directory.users.aliases.list" call. Exactly one of *Aliases or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Aliases.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersAliasesListCall) Event

Event sets the optional parameter "event": Event on which subscription is intended (if subscribing)

Possible values:

"add" - Alias Created Event
"delete" - Alias Deleted Event

func (*UsersAliasesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersAliasesListCall) IfNoneMatch

func (c *UsersAliasesListCall) IfNoneMatch(entityTag string) *UsersAliasesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*UsersAliasesListCall) QuotaUser

func (c *UsersAliasesListCall) QuotaUser(quotaUser string) *UsersAliasesListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersAliasesListCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

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

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersAliasesWatchCall) Do

func (c *UsersAliasesWatchCall) Do() (*Channel, error)

Do executes the "directory.users.aliases.watch" call. Exactly one of *Channel or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Channel.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersAliasesWatchCall) Event

Event sets the optional parameter "event": Event on which subscription is intended (if subscribing)

Possible values:

"add" - Alias Created Event
"delete" - Alias Deleted Event

func (*UsersAliasesWatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersAliasesWatchCall) QuotaUser

func (c *UsersAliasesWatchCall) QuotaUser(quotaUser string) *UsersAliasesWatchCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersAliasesWatchCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type UsersDeleteCall

type UsersDeleteCall struct {
	// contains filtered or unexported fields
}

func (*UsersDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersDeleteCall) Do

func (c *UsersDeleteCall) Do() error

Do executes the "directory.users.delete" call.

func (*UsersDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersDeleteCall) QuotaUser

func (c *UsersDeleteCall) QuotaUser(quotaUser string) *UsersDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersDeleteCall) UserIP

func (c *UsersDeleteCall) UserIP(userIP string) *UsersDeleteCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type UsersGetCall

type UsersGetCall struct {
	// contains filtered or unexported fields
}

func (*UsersGetCall) Context

func (c *UsersGetCall) Context(ctx context.Context) *UsersGetCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersGetCall) 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)

Do executes the "directory.users.get" call. Exactly one of *User or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *User.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersGetCall) Fields

func (c *UsersGetCall) Fields(s ...googleapi.Field) *UsersGetCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersGetCall) IfNoneMatch

func (c *UsersGetCall) IfNoneMatch(entityTag string) *UsersGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

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.

Possible values:

"basic" (default) - Do not include any custom fields for the user.
"custom" - Include custom fields from schemas mentioned in

customFieldMask.

"full" - Include all fields associated with this user.

func (*UsersGetCall) QuotaUser

func (c *UsersGetCall) QuotaUser(quotaUser string) *UsersGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersGetCall) UserIP

func (c *UsersGetCall) UserIP(userIP string) *UsersGetCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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.

Possible values:

"admin_view" (default) - Fetches the ADMIN_VIEW of the user.
"domain_public" - Fetches the DOMAIN_PUBLIC view of the user.

type UsersInsertCall

type UsersInsertCall struct {
	// contains filtered or unexported fields
}

func (*UsersInsertCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersInsertCall) Do

func (c *UsersInsertCall) Do() (*User, error)

Do executes the "directory.users.insert" call. Exactly one of *User or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *User.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersInsertCall) QuotaUser

func (c *UsersInsertCall) QuotaUser(quotaUser string) *UsersInsertCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersInsertCall) UserIP

func (c *UsersInsertCall) UserIP(userIP string) *UsersInsertCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type UsersListCall

type UsersListCall struct {
	// contains filtered or unexported fields
}

func (*UsersListCall) Context

func (c *UsersListCall) Context(ctx context.Context) *UsersListCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersListCall) 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)

Do executes the "directory.users.list" call. Exactly one of *Users or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Users.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersListCall) 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)

Possible values:

"add" - User Created Event
"delete" - User Deleted Event
"makeAdmin" - User Admin Status Change Event
"undelete" - User Undeleted Event
"update" - User Updated Event

func (*UsersListCall) Fields

func (c *UsersListCall) Fields(s ...googleapi.Field) *UsersListCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersListCall) IfNoneMatch

func (c *UsersListCall) IfNoneMatch(entityTag string) *UsersListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

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

Possible values:

"email" - Primary email of the user.
"familyName" - User's family name.
"givenName" - User's given name.

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.

Possible values:

"basic" (default) - Do not include any custom fields for the user.
"custom" - Include custom fields from schemas mentioned in

customFieldMask.

"full" - Include all fields associated with 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-users

func (*UsersListCall) QuotaUser

func (c *UsersListCall) QuotaUser(quotaUser string) *UsersListCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

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.

Possible values:

"ASCENDING" - Ascending order.
"DESCENDING" - Descending order.

func (*UsersListCall) UserIP

func (c *UsersListCall) UserIP(userIP string) *UsersListCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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.

Possible values:

"admin_view" (default) - Fetches the ADMIN_VIEW of the user.
"domain_public" - Fetches the DOMAIN_PUBLIC view of the user.

type UsersMakeAdminCall

type UsersMakeAdminCall struct {
	// contains filtered or unexported fields
}

func (*UsersMakeAdminCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersMakeAdminCall) Do

func (c *UsersMakeAdminCall) Do() error

Do executes the "directory.users.makeAdmin" call.

func (*UsersMakeAdminCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersMakeAdminCall) QuotaUser

func (c *UsersMakeAdminCall) QuotaUser(quotaUser string) *UsersMakeAdminCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersMakeAdminCall) UserIP

func (c *UsersMakeAdminCall) UserIP(userIP string) *UsersMakeAdminCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type UsersPatchCall

type UsersPatchCall struct {
	// contains filtered or unexported fields
}

func (*UsersPatchCall) Context

func (c *UsersPatchCall) Context(ctx context.Context) *UsersPatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersPatchCall) Do

func (c *UsersPatchCall) Do() (*User, error)

Do executes the "directory.users.patch" call. Exactly one of *User or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *User.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersPatchCall) Fields

func (c *UsersPatchCall) Fields(s ...googleapi.Field) *UsersPatchCall

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersPatchCall) QuotaUser

func (c *UsersPatchCall) QuotaUser(quotaUser string) *UsersPatchCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersPatchCall) UserIP

func (c *UsersPatchCall) UserIP(userIP string) *UsersPatchCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type UsersPhotosDeleteCall

type UsersPhotosDeleteCall struct {
	// contains filtered or unexported fields
}

func (*UsersPhotosDeleteCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersPhotosDeleteCall) Do

func (c *UsersPhotosDeleteCall) Do() error

Do executes the "directory.users.photos.delete" call.

func (*UsersPhotosDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersPhotosDeleteCall) QuotaUser

func (c *UsersPhotosDeleteCall) QuotaUser(quotaUser string) *UsersPhotosDeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersPhotosDeleteCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type UsersPhotosGetCall

type UsersPhotosGetCall struct {
	// contains filtered or unexported fields
}

func (*UsersPhotosGetCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersPhotosGetCall) Do

func (c *UsersPhotosGetCall) Do() (*UserPhoto, error)

Do executes the "directory.users.photos.get" call. Exactly one of *UserPhoto or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UserPhoto.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersPhotosGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersPhotosGetCall) IfNoneMatch

func (c *UsersPhotosGetCall) IfNoneMatch(entityTag string) *UsersPhotosGetCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*UsersPhotosGetCall) QuotaUser

func (c *UsersPhotosGetCall) QuotaUser(quotaUser string) *UsersPhotosGetCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersPhotosGetCall) UserIP

func (c *UsersPhotosGetCall) UserIP(userIP string) *UsersPhotosGetCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type UsersPhotosPatchCall

type UsersPhotosPatchCall struct {
	// contains filtered or unexported fields
}

func (*UsersPhotosPatchCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersPhotosPatchCall) Do

func (c *UsersPhotosPatchCall) Do() (*UserPhoto, error)

Do executes the "directory.users.photos.patch" call. Exactly one of *UserPhoto or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UserPhoto.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersPhotosPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersPhotosPatchCall) QuotaUser

func (c *UsersPhotosPatchCall) QuotaUser(quotaUser string) *UsersPhotosPatchCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersPhotosPatchCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersPhotosUpdateCall) Do

Do executes the "directory.users.photos.update" call. Exactly one of *UserPhoto or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *UserPhoto.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersPhotosUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersPhotosUpdateCall) QuotaUser

func (c *UsersPhotosUpdateCall) QuotaUser(quotaUser string) *UsersPhotosUpdateCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersPhotosUpdateCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersUndeleteCall) Do

func (c *UsersUndeleteCall) Do() error

Do executes the "directory.users.undelete" call.

func (*UsersUndeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersUndeleteCall) QuotaUser

func (c *UsersUndeleteCall) QuotaUser(quotaUser string) *UsersUndeleteCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersUndeleteCall) UserIP

func (c *UsersUndeleteCall) UserIP(userIP string) *UsersUndeleteCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type UsersUpdateCall

type UsersUpdateCall struct {
	// contains filtered or unexported fields
}

func (*UsersUpdateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*UsersUpdateCall) Do

func (c *UsersUpdateCall) Do() (*User, error)

Do executes the "directory.users.update" call. Exactly one of *User or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *User.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*UsersUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*UsersUpdateCall) QuotaUser

func (c *UsersUpdateCall) QuotaUser(quotaUser string) *UsersUpdateCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*UsersUpdateCall) UserIP

func (c *UsersUpdateCall) UserIP(userIP string) *UsersUpdateCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type UsersWatchCall

type UsersWatchCall struct {
	// contains filtered or unexported fields
}

func (*UsersWatchCall) Context

func (c *UsersWatchCall) Context(ctx context.Context) *UsersWatchCall

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*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)

Do executes the "directory.users.watch" call. Exactly one of *Channel or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *Channel.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*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)

Possible values:

"add" - User Created Event
"delete" - User Deleted Event
"makeAdmin" - User Admin Status Change Event
"undelete" - User Undeleted Event
"update" - User Updated Event

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

Possible values:

"email" - Primary email of the user.
"familyName" - User's family name.
"givenName" - User's given name.

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.

Possible values:

"basic" (default) - Do not include any custom fields for the user.
"custom" - Include custom fields from schemas mentioned in

customFieldMask.

"full" - Include all fields associated with 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-users

func (*UsersWatchCall) QuotaUser

func (c *UsersWatchCall) QuotaUser(quotaUser string) *UsersWatchCall

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

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.

Possible values:

"ASCENDING" - Ascending order.
"DESCENDING" - Descending order.

func (*UsersWatchCall) UserIP

func (c *UsersWatchCall) UserIP(userIP string) *UsersWatchCall

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

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.

Possible values:

"admin_view" (default) - Fetches the ADMIN_VIEW of the user.
"domain_public" - Fetches the 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"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

VerificationCode: JSON template for verification codes in Directory API.

func (*VerificationCode) MarshalJSON

func (s *VerificationCode) MarshalJSON() ([]byte, error)

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

	// ServerResponse contains the HTTP response code and headers from the
	// server.
	googleapi.ServerResponse `json:"-"`

	// ForceSendFields is a list of field names (e.g. "Etag") to
	// unconditionally include in API requests. By default, fields with
	// empty values are omitted from API requests. However, any non-pointer,
	// non-interface field appearing in ForceSendFields will be sent to the
	// server regardless of whether the field is empty or not. This may be
	// used to include empty fields in Patch requests.
	ForceSendFields []string `json:"-"`
}

VerificationCodes: JSON response template for List verification codes operation in Directory API.

func (*VerificationCodes) MarshalJSON

func (s *VerificationCodes) MarshalJSON() ([]byte, error)

type VerificationCodesGenerateCall

type VerificationCodesGenerateCall struct {
	// contains filtered or unexported fields
}

func (*VerificationCodesGenerateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*VerificationCodesGenerateCall) Do

Do executes the "directory.verificationCodes.generate" call.

func (*VerificationCodesGenerateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*VerificationCodesGenerateCall) QuotaUser

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*VerificationCodesGenerateCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type VerificationCodesInvalidateCall

type VerificationCodesInvalidateCall struct {
	// contains filtered or unexported fields
}

func (*VerificationCodesInvalidateCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*VerificationCodesInvalidateCall) Do

Do executes the "directory.verificationCodes.invalidate" call.

func (*VerificationCodesInvalidateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*VerificationCodesInvalidateCall) QuotaUser

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*VerificationCodesInvalidateCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type VerificationCodesListCall

type VerificationCodesListCall struct {
	// contains filtered or unexported fields
}

func (*VerificationCodesListCall) Context

Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.

func (*VerificationCodesListCall) Do

Do executes the "directory.verificationCodes.list" call. Exactly one of *VerificationCodes or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *VerificationCodes.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.

func (*VerificationCodesListCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*VerificationCodesListCall) IfNoneMatch

func (c *VerificationCodesListCall) IfNoneMatch(entityTag string) *VerificationCodesListCall

IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.

func (*VerificationCodesListCall) QuotaUser

QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.

func (*VerificationCodesListCall) UserIP

UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.

type VerificationCodesService

type VerificationCodesService struct {
	// contains filtered or unexported fields
}

func NewVerificationCodesService

func NewVerificationCodesService(s *Service) *VerificationCodesService

func (*VerificationCodesService) Generate

Generate: Generate new backup verification codes for the user.

func (*VerificationCodesService) Invalidate

Invalidate: Invalidate the current backup verification codes for the user.

func (*VerificationCodesService) List

List: Returns the current set of valid backup verification codes for the specified user.

Jump to

Keyboard shortcuts

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