Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
21301 lines (19235 sloc) 674 KB
// Package admin provides access to the Admin Directory API.
//
// See https://developers.google.com/admin-sdk/directory/
//
// Usage example:
//
// import "google.golang.org/api/admin/directory/v1"
// ...
// adminService, err := admin.New(oauthHttpClient)
package admin // import "google.golang.org/api/admin/directory/v1"
import (
"bytes"
"context"
"encoding/json"
"errors"
"fmt"
"io"
"net/http"
"net/url"
"strconv"
"strings"
gensupport "google.golang.org/api/gensupport"
googleapi "google.golang.org/api/googleapi"
)
// Always reference these packages, just in case the auto-generated code
// below doesn't.
var _ = bytes.NewBuffer
var _ = strconv.Itoa
var _ = fmt.Sprintf
var _ = json.NewDecoder
var _ = io.Copy
var _ = url.Parse
var _ = gensupport.MarshalJSON
var _ = googleapi.Version
var _ = errors.New
var _ = strings.Replace
var _ = context.Canceled
const apiId = "admin:directory_v1"
const apiName = "admin"
const apiVersion = "directory_v1"
const basePath = "https://www.googleapis.com/admin/directory/v1/"
// OAuth2 scopes used by this API.
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"
)
func New(client *http.Client) (*Service, error) {
if client == nil {
return nil, errors.New("client is nil")
}
s := &Service{client: client, BasePath: basePath}
s.Asps = NewAspsService(s)
s.Channels = NewChannelsService(s)
s.Chromeosdevices = NewChromeosdevicesService(s)
s.Customers = NewCustomersService(s)
s.DomainAliases = NewDomainAliasesService(s)
s.Domains = NewDomainsService(s)
s.Groups = NewGroupsService(s)
s.Members = NewMembersService(s)
s.Mobiledevices = NewMobiledevicesService(s)
s.Notifications = NewNotificationsService(s)
s.Orgunits = NewOrgunitsService(s)
s.Privileges = NewPrivilegesService(s)
s.ResolvedAppAccessSettings = NewResolvedAppAccessSettingsService(s)
s.Resources = NewResourcesService(s)
s.RoleAssignments = NewRoleAssignmentsService(s)
s.Roles = NewRolesService(s)
s.Schemas = NewSchemasService(s)
s.Tokens = NewTokensService(s)
s.Users = NewUsersService(s)
s.VerificationCodes = NewVerificationCodesService(s)
return s, nil
}
type Service struct {
client *http.Client
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
ResolvedAppAccessSettings *ResolvedAppAccessSettingsService
Resources *ResourcesService
RoleAssignments *RoleAssignmentsService
Roles *RolesService
Schemas *SchemasService
Tokens *TokensService
Users *UsersService
VerificationCodes *VerificationCodesService
}
func (s *Service) userAgent() string {
if s.UserAgent == "" {
return googleapi.UserAgent
}
return googleapi.UserAgent + " " + s.UserAgent
}
func NewAspsService(s *Service) *AspsService {
rs := &AspsService{s: s}
return rs
}
type AspsService struct {
s *Service
}
func NewChannelsService(s *Service) *ChannelsService {
rs := &ChannelsService{s: s}
return rs
}
type ChannelsService struct {
s *Service
}
func NewChromeosdevicesService(s *Service) *ChromeosdevicesService {
rs := &ChromeosdevicesService{s: s}
return rs
}
type ChromeosdevicesService struct {
s *Service
}
func NewCustomersService(s *Service) *CustomersService {
rs := &CustomersService{s: s}
return rs
}
type CustomersService struct {
s *Service
}
func NewDomainAliasesService(s *Service) *DomainAliasesService {
rs := &DomainAliasesService{s: s}
return rs
}
type DomainAliasesService struct {
s *Service
}
func NewDomainsService(s *Service) *DomainsService {
rs := &DomainsService{s: s}
return rs
}
type DomainsService struct {
s *Service
}
func NewGroupsService(s *Service) *GroupsService {
rs := &GroupsService{s: s}
rs.Aliases = NewGroupsAliasesService(s)
return rs
}
type GroupsService struct {
s *Service
Aliases *GroupsAliasesService
}
func NewGroupsAliasesService(s *Service) *GroupsAliasesService {
rs := &GroupsAliasesService{s: s}
return rs
}
type GroupsAliasesService struct {
s *Service
}
func NewMembersService(s *Service) *MembersService {
rs := &MembersService{s: s}
return rs
}
type MembersService struct {
s *Service
}
func NewMobiledevicesService(s *Service) *MobiledevicesService {
rs := &MobiledevicesService{s: s}
return rs
}
type MobiledevicesService struct {
s *Service
}
func NewNotificationsService(s *Service) *NotificationsService {
rs := &NotificationsService{s: s}
return rs
}
type NotificationsService struct {
s *Service
}
func NewOrgunitsService(s *Service) *OrgunitsService {
rs := &OrgunitsService{s: s}
return rs
}
type OrgunitsService struct {
s *Service
}
func NewPrivilegesService(s *Service) *PrivilegesService {
rs := &PrivilegesService{s: s}
return rs
}
type PrivilegesService struct {
s *Service
}
func NewResolvedAppAccessSettingsService(s *Service) *ResolvedAppAccessSettingsService {
rs := &ResolvedAppAccessSettingsService{s: s}
return rs
}
type ResolvedAppAccessSettingsService struct {
s *Service
}
func NewResourcesService(s *Service) *ResourcesService {
rs := &ResourcesService{s: s}
rs.Buildings = NewResourcesBuildingsService(s)
rs.Calendars = NewResourcesCalendarsService(s)
rs.Features = NewResourcesFeaturesService(s)
return rs
}
type ResourcesService struct {
s *Service
Buildings *ResourcesBuildingsService
Calendars *ResourcesCalendarsService
Features *ResourcesFeaturesService
}
func NewResourcesBuildingsService(s *Service) *ResourcesBuildingsService {
rs := &ResourcesBuildingsService{s: s}
return rs
}
type ResourcesBuildingsService struct {
s *Service
}
func NewResourcesCalendarsService(s *Service) *ResourcesCalendarsService {
rs := &ResourcesCalendarsService{s: s}
return rs
}
type ResourcesCalendarsService struct {
s *Service
}
func NewResourcesFeaturesService(s *Service) *ResourcesFeaturesService {
rs := &ResourcesFeaturesService{s: s}
return rs
}
type ResourcesFeaturesService struct {
s *Service
}
func NewRoleAssignmentsService(s *Service) *RoleAssignmentsService {
rs := &RoleAssignmentsService{s: s}
return rs
}
type RoleAssignmentsService struct {
s *Service
}
func NewRolesService(s *Service) *RolesService {
rs := &RolesService{s: s}
return rs
}
type RolesService struct {
s *Service
}
func NewSchemasService(s *Service) *SchemasService {
rs := &SchemasService{s: s}
return rs
}
type SchemasService struct {
s *Service
}
func NewTokensService(s *Service) *TokensService {
rs := &TokensService{s: s}
return rs
}
type TokensService struct {
s *Service
}
func NewUsersService(s *Service) *UsersService {
rs := &UsersService{s: s}
rs.Aliases = NewUsersAliasesService(s)
rs.Photos = NewUsersPhotosService(s)
return rs
}
type UsersService struct {
s *Service
Aliases *UsersAliasesService
Photos *UsersPhotosService
}
func NewUsersAliasesService(s *Service) *UsersAliasesService {
rs := &UsersAliasesService{s: s}
return rs
}
type UsersAliasesService struct {
s *Service
}
func NewUsersPhotosService(s *Service) *UsersPhotosService {
rs := &UsersPhotosService{s: s}
return rs
}
type UsersPhotosService struct {
s *Service
}
func NewVerificationCodesService(s *Service) *VerificationCodesService {
rs := &VerificationCodesService{s: s}
return rs
}
type VerificationCodesService struct {
s *Service
}
// Alias: JSON template for Alias object in Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "Alias") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Alias) MarshalJSON() ([]byte, error) {
type NoMethod Alias
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Aliases: JSON response template to list aliases in Directory API.
type Aliases struct {
// Aliases: List of alias objects.
Aliases []interface{} `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:"-"`
// NullFields is a list of field names (e.g. "Aliases") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Aliases) MarshalJSON() ([]byte, error) {
type NoMethod Aliases
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// AppAccessCollections: JSON template for App Access Collections
// Resource object in Directory API.
type AppAccessCollections struct {
// BlockedApiAccessBuckets: List of blocked api access buckets.
BlockedApiAccessBuckets []string `json:"blockedApiAccessBuckets,omitempty"`
// EnforceSettingsForAndroidDrive: Boolean to indicate whether to
// enforce app access settings on Android Drive or not.
EnforceSettingsForAndroidDrive bool `json:"enforceSettingsForAndroidDrive,omitempty"`
// ErrorMessage: Error message provided by the Admin that will be shown
// to the user when an app is blocked.
ErrorMessage string `json:"errorMessage,omitempty"`
// Etag: ETag of the resource.
Etag string `json:"etag,omitempty"`
// Kind: Identifies the resource as an app access collection. Value:
// admin#directory#appaccesscollection
Kind string `json:"kind,omitempty"`
// ResourceId: Unique ID of app access collection. (Readonly)
ResourceId int64 `json:"resourceId,omitempty,string"`
// ResourceName: Resource name given by the customer while
// creating/updating. Should be unique under given customer.
ResourceName string `json:"resourceName,omitempty"`
// TrustDomainOwnedApps: Boolean that indicates whether to trust domain
// owned apps.
TrustDomainOwnedApps bool `json:"trustDomainOwnedApps,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g.
// "BlockedApiAccessBuckets") 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:"-"`
// NullFields is a list of field names (e.g. "BlockedApiAccessBuckets")
// to include in API requests with the JSON null value. By default,
// fields with empty values are omitted from API requests. However, any
// field with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *AppAccessCollections) MarshalJSON() ([]byte, error) {
type NoMethod AppAccessCollections
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Asp: The template that returns individual ASP (Access Code) data.
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:"-"`
// NullFields is a list of field names (e.g. "CodeId") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Asp) MarshalJSON() ([]byte, error) {
type NoMethod Asp
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Asps) MarshalJSON() ([]byte, error) {
type NoMethod Asps
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Building: JSON template for Building object in Directory API.
type Building struct {
// BuildingId: Unique identifier for the building. The maximum length is
// 100 characters.
BuildingId string `json:"buildingId,omitempty"`
// BuildingName: The building name as seen by users in Calendar. Must be
// unique for the customer. For example, "NYC-CHEL". The maximum length
// is 100 characters.
BuildingName string `json:"buildingName,omitempty"`
// Coordinates: The geographic coordinates of the center of the
// building, expressed as latitude and longitude in decimal degrees.
Coordinates *BuildingCoordinates `json:"coordinates,omitempty"`
// Description: A brief description of the building. For example,
// "Chelsea Market".
Description string `json:"description,omitempty"`
// Etags: ETag of the resource.
Etags string `json:"etags,omitempty"`
// FloorNames: The display names for all floors in this building. The
// floors are expected to be sorted in ascending order, from lowest
// floor to highest floor. For example, ["B2", "B1", "L", "1", "2",
// "2M", "3", "PH"] Must contain at least one entry.
FloorNames []string `json:"floorNames,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. "BuildingId") 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:"-"`
// NullFields is a list of field names (e.g. "BuildingId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Building) MarshalJSON() ([]byte, error) {
type NoMethod Building
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// BuildingCoordinates: JSON template for coordinates of a building in
// Directory API.
type BuildingCoordinates struct {
// Latitude: Latitude in decimal degrees.
Latitude float64 `json:"latitude,omitempty"`
// Longitude: Longitude in decimal degrees.
Longitude float64 `json:"longitude,omitempty"`
// ForceSendFields is a list of field names (e.g. "Latitude") 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:"-"`
// NullFields is a list of field names (e.g. "Latitude") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *BuildingCoordinates) MarshalJSON() ([]byte, error) {
type NoMethod BuildingCoordinates
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *BuildingCoordinates) UnmarshalJSON(data []byte) error {
type NoMethod BuildingCoordinates
var s1 struct {
Latitude gensupport.JSONFloat64 `json:"latitude"`
Longitude gensupport.JSONFloat64 `json:"longitude"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.Latitude = float64(s1.Latitude)
s.Longitude = float64(s1.Longitude)
return nil
}
// Buildings: JSON template for Building List Response object in
// Directory API.
type Buildings struct {
// Buildings: The Buildings in this page of results.
Buildings []*Building `json:"buildings,omitempty"`
// Etag: ETag of the resource.
Etag string `json:"etag,omitempty"`
// Kind: Kind of resource this is.
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. "Buildings") 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:"-"`
// NullFields is a list of field names (e.g. "Buildings") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Buildings) MarshalJSON() ([]byte, error) {
type NoMethod Buildings
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CalendarResource: JSON template for Calendar Resource object in
// Directory API.
type CalendarResource struct {
// BuildingId: Unique ID for the building a resource is located in.
BuildingId string `json:"buildingId,omitempty"`
// Capacity: Capacity of a resource, number of seats in a room.
Capacity int64 `json:"capacity,omitempty"`
// Etags: ETag of the resource.
Etags string `json:"etags,omitempty"`
FeatureInstances interface{} `json:"featureInstances,omitempty"`
// FloorName: Name of the floor a resource is located on.
FloorName string `json:"floorName,omitempty"`
// FloorSection: Name of the section within a floor a resource is
// located in.
FloorSection string `json:"floorSection,omitempty"`
// GeneratedResourceName: The read-only auto-generated name of the
// calendar resource which includes metadata about the resource such as
// building name, floor, capacity, etc. For example, "NYC-2-Training
// Room 1A (16)".
GeneratedResourceName string `json:"generatedResourceName,omitempty"`
// Kind: The type of the resource. For calendar resources, the value is
// admin#directory#resources#calendars#CalendarResource.
Kind string `json:"kind,omitempty"`
// ResourceCategory: The category of the calendar resource. Either
// CONFERENCE_ROOM or OTHER. Legacy data is set to CATEGORY_UNKNOWN.
ResourceCategory string `json:"resourceCategory,omitempty"`
// ResourceDescription: Description of the resource, visible only to
// admins.
ResourceDescription string `json:"resourceDescription,omitempty"`
// ResourceEmail: The read-only email 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, intended for
// non-room resources.
ResourceType string `json:"resourceType,omitempty"`
// UserVisibleDescription: Description of the resource, visible to users
// and admins.
UserVisibleDescription string `json:"userVisibleDescription,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "BuildingId") 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:"-"`
// NullFields is a list of field names (e.g. "BuildingId") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CalendarResource) MarshalJSON() ([]byte, error) {
type NoMethod CalendarResource
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CalendarResources: JSON template for Calendar Resource List Response
// object in Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CalendarResources) MarshalJSON() ([]byte, error) {
type NoMethod CalendarResources
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Channel: An notification channel used to watch for resource changes.
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:"-"`
// NullFields is a list of field names (e.g. "Address") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Channel) MarshalJSON() ([]byte, error) {
type NoMethod Channel
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ChromeOsDevice: JSON template for Chrome Os Device resource in
// Directory API.
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"`
// CpuStatusReports: Reports of CPU utilization and temperature
// (Read-only)
CpuStatusReports []*ChromeOsDeviceCpuStatusReports `json:"cpuStatusReports,omitempty"`
// DeviceFiles: List of device files to download (Read-only)
DeviceFiles []*ChromeOsDeviceDeviceFiles `json:"deviceFiles,omitempty"`
// DeviceId: Unique identifier of Chrome OS Device (Read-only)
DeviceId string `json:"deviceId,omitempty"`
// DiskVolumeReports: Reports of disk space and other info about
// mounted/connected volumes.
DiskVolumeReports []*ChromeOsDeviceDiskVolumeReports `json:"diskVolumeReports,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 G Suite 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"`
// SystemRamFreeReports: Reports of amounts of available RAM memory
// (Read-only)
SystemRamFreeReports []*ChromeOsDeviceSystemRamFreeReports `json:"systemRamFreeReports,omitempty"`
// SystemRamTotal: Total RAM on the device [in bytes] (Read-only)
SystemRamTotal int64 `json:"systemRamTotal,omitempty,string"`
// TpmVersionInfo: Trusted Platform Module (TPM) (Read-only)
TpmVersionInfo *ChromeOsDeviceTpmVersionInfo `json:"tpmVersionInfo,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:"-"`
// NullFields is a list of field names (e.g. "ActiveTimeRanges") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ChromeOsDevice) MarshalJSON() ([]byte, error) {
type NoMethod ChromeOsDevice
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "ActiveTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChromeOsDeviceActiveTimeRanges) MarshalJSON() ([]byte, error) {
type NoMethod ChromeOsDeviceActiveTimeRanges
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ChromeOsDeviceCpuStatusReports struct {
// CpuTemperatureInfo: List of CPU temperature samples.
CpuTemperatureInfo []*ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo `json:"cpuTemperatureInfo,omitempty"`
CpuUtilizationPercentageInfo []int64 `json:"cpuUtilizationPercentageInfo,omitempty"`
// ReportTime: Date and time the report was received.
ReportTime string `json:"reportTime,omitempty"`
// ForceSendFields is a list of field names (e.g. "CpuTemperatureInfo")
// 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:"-"`
// NullFields is a list of field names (e.g. "CpuTemperatureInfo") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ChromeOsDeviceCpuStatusReports) MarshalJSON() ([]byte, error) {
type NoMethod ChromeOsDeviceCpuStatusReports
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo struct {
// Label: CPU label
Label string `json:"label,omitempty"`
// Temperature: Temperature in Celsius degrees.
Temperature int64 `json:"temperature,omitempty"`
// ForceSendFields is a list of field names (e.g. "Label") 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:"-"`
// NullFields is a list of field names (e.g. "Label") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo) MarshalJSON() ([]byte, error) {
type NoMethod ChromeOsDeviceCpuStatusReportsCpuTemperatureInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ChromeOsDeviceDeviceFiles struct {
// CreateTime: Date and time the file was created
CreateTime string `json:"createTime,omitempty"`
// DownloadUrl: File download URL
DownloadUrl string `json:"downloadUrl,omitempty"`
// Name: File name
Name string `json:"name,omitempty"`
// Type: File type
Type string `json:"type,omitempty"`
// ForceSendFields is a list of field names (e.g. "CreateTime") 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:"-"`
// NullFields is a list of field names (e.g. "CreateTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChromeOsDeviceDeviceFiles) MarshalJSON() ([]byte, error) {
type NoMethod ChromeOsDeviceDeviceFiles
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ChromeOsDeviceDiskVolumeReports struct {
// VolumeInfo: Disk volumes
VolumeInfo []*ChromeOsDeviceDiskVolumeReportsVolumeInfo `json:"volumeInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "VolumeInfo") 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:"-"`
// NullFields is a list of field names (e.g. "VolumeInfo") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChromeOsDeviceDiskVolumeReports) MarshalJSON() ([]byte, error) {
type NoMethod ChromeOsDeviceDiskVolumeReports
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ChromeOsDeviceDiskVolumeReportsVolumeInfo struct {
// StorageFree: Free disk space [in bytes]
StorageFree int64 `json:"storageFree,omitempty,string"`
// StorageTotal: Total disk space [in bytes]
StorageTotal int64 `json:"storageTotal,omitempty,string"`
// VolumeId: Volume id
VolumeId string `json:"volumeId,omitempty"`
// ForceSendFields is a list of field names (e.g. "StorageFree") 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:"-"`
// NullFields is a list of field names (e.g. "StorageFree") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChromeOsDeviceDiskVolumeReportsVolumeInfo) MarshalJSON() ([]byte, error) {
type NoMethod ChromeOsDeviceDiskVolumeReportsVolumeInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "Email") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChromeOsDeviceRecentUsers) MarshalJSON() ([]byte, error) {
type NoMethod ChromeOsDeviceRecentUsers
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
type ChromeOsDeviceSystemRamFreeReports struct {
// ReportTime: Date and time the report was received.
ReportTime string `json:"reportTime,omitempty"`
SystemRamFreeInfo googleapi.Int64s `json:"systemRamFreeInfo,omitempty"`
// ForceSendFields is a list of field names (e.g. "ReportTime") 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:"-"`
// NullFields is a list of field names (e.g. "ReportTime") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChromeOsDeviceSystemRamFreeReports) MarshalJSON() ([]byte, error) {
type NoMethod ChromeOsDeviceSystemRamFreeReports
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ChromeOsDeviceTpmVersionInfo: Trusted Platform Module (TPM)
// (Read-only)
type ChromeOsDeviceTpmVersionInfo struct {
// Family: TPM family.
Family string `json:"family,omitempty"`
// FirmwareVersion: TPM firmware version.
FirmwareVersion string `json:"firmwareVersion,omitempty"`
// Manufacturer: TPM manufacturer code.
Manufacturer string `json:"manufacturer,omitempty"`
// SpecLevel: TPM specification level.
SpecLevel string `json:"specLevel,omitempty"`
// TpmModel: TPM model number.
TpmModel string `json:"tpmModel,omitempty"`
// VendorSpecific: Vendor-specific information such as Vendor ID.
VendorSpecific string `json:"vendorSpecific,omitempty"`
// ForceSendFields is a list of field names (e.g. "Family") 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:"-"`
// NullFields is a list of field names (e.g. "Family") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChromeOsDeviceTpmVersionInfo) MarshalJSON() ([]byte, error) {
type NoMethod ChromeOsDeviceTpmVersionInfo
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ChromeOsDeviceAction: JSON request template for firing actions on
// ChromeOs Device in Directory Devices API.
type ChromeOsDeviceAction struct {
// Action: Action to be taken on the ChromeOs Device
Action string `json:"action,omitempty"`
DeprovisionReason string `json:"deprovisionReason,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:"-"`
// NullFields is a list of field names (e.g. "Action") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChromeOsDeviceAction) MarshalJSON() ([]byte, error) {
type NoMethod ChromeOsDeviceAction
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ChromeOsDevices: JSON response template for List Chrome OS Devices
// operation in Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "Chromeosdevices") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *ChromeOsDevices) MarshalJSON() ([]byte, error) {
type NoMethod ChromeOsDevices
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// ChromeOsMoveDevicesToOu: JSON request template for moving ChromeOs
// Device to given OU in Directory Devices API.
type ChromeOsMoveDevicesToOu struct {
// DeviceIds: ChromeOs Devices to be moved to OU
DeviceIds []string `json:"deviceIds,omitempty"`
// ForceSendFields is a list of field names (e.g. "DeviceIds") 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:"-"`
// NullFields is a list of field names (e.g. "DeviceIds") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *ChromeOsMoveDevicesToOu) MarshalJSON() ([]byte, error) {
type NoMethod ChromeOsMoveDevicesToOu
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Customer: JSON template for Customer Resource object in Directory
// API.
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 G Suite 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:"-"`
// NullFields is a list of field names (e.g. "AlternateEmail") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Customer) MarshalJSON() ([]byte, error) {
type NoMethod Customer
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// CustomerPostalAddress: JSON template for postal address of a
// customer.
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:"-"`
// NullFields is a list of field names (e.g. "AddressLine1") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *CustomerPostalAddress) MarshalJSON() ([]byte, error) {
type NoMethod CustomerPostalAddress
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DomainAlias: JSON template for Domain Alias object in Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "CreationTime") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DomainAlias) MarshalJSON() ([]byte, error) {
type NoMethod DomainAlias
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// DomainAliases: JSON response template to list domain aliases in
// Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "DomainAliases") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *DomainAliases) MarshalJSON() ([]byte, error) {
type NoMethod DomainAliases
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Domains: JSON template for Domain object in Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "CreationTime") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Domains) MarshalJSON() ([]byte, error) {
type NoMethod Domains
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Domains2: JSON response template to list Domains in Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "Domains") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Domains2) MarshalJSON() ([]byte, error) {
type NoMethod Domains2
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Feature: JSON template for Feature object in Directory API.
type Feature struct {
// Etags: ETag of the resource.
Etags string `json:"etags,omitempty"`
// Kind: Kind of resource this is.
Kind string `json:"kind,omitempty"`
// Name: The name of the feature.
Name string `json:"name,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:"-"`
// NullFields is a list of field names (e.g. "Etags") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Feature) MarshalJSON() ([]byte, error) {
type NoMethod Feature
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// FeatureInstance: JSON template for a "feature instance".
type FeatureInstance struct {
// Feature: The feature that this is an instance of. A calendar resource
// may have multiple instances of a feature.
Feature *Feature `json:"feature,omitempty"`
// ForceSendFields is a list of field names (e.g. "Feature") 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:"-"`
// NullFields is a list of field names (e.g. "Feature") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *FeatureInstance) MarshalJSON() ([]byte, error) {
type NoMethod FeatureInstance
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// FeatureRename: JSON request template for renaming a feature.
type FeatureRename struct {
// NewName: New name of the feature.
NewName string `json:"newName,omitempty"`
// ForceSendFields is a list of field names (e.g. "NewName") 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:"-"`
// NullFields is a list of field names (e.g. "NewName") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *FeatureRename) MarshalJSON() ([]byte, error) {
type NoMethod FeatureRename
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Features: JSON template for Feature List Response object in Directory
// API.
type Features struct {
// Etag: ETag of the resource.
Etag string `json:"etag,omitempty"`
// Features: The Features in this page of results.
Features []*Feature `json:"features,omitempty"`
// Kind: Kind of resource this is.
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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Features) MarshalJSON() ([]byte, error) {
type NoMethod Features
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Group: JSON template for Group resource in Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "AdminCreated") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Group) MarshalJSON() ([]byte, error) {
type NoMethod Group
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Groups: JSON response template for List Groups operation in Directory
// API.
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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Groups) MarshalJSON() ([]byte, error) {
type NoMethod Groups
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Member: JSON template for Member resource in Directory API.
type Member struct {
// DeliverySettings: Delivery settings of member
DeliverySettings string `json:"delivery_settings,omitempty"`
// 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"`
// Status: Status of member (Immutable)
Status string `json:"status,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. "DeliverySettings") 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:"-"`
// NullFields is a list of field names (e.g. "DeliverySettings") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Member) MarshalJSON() ([]byte, error) {
type NoMethod Member
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Members: JSON response template for List Members operation in
// Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Members) MarshalJSON() ([]byte, error) {
type NoMethod Members
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MembersHasMember: JSON template for Has Member response in Directory
// API.
type MembersHasMember struct {
// IsMember: Identifies whether the given user is a member of the group.
// Membership can be direct or nested.
IsMember bool `json:"isMember,omitempty"`
// ServerResponse contains the HTTP response code and headers from the
// server.
googleapi.ServerResponse `json:"-"`
// ForceSendFields is a list of field names (e.g. "IsMember") 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:"-"`
// NullFields is a list of field names (e.g. "IsMember") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MembersHasMember) MarshalJSON() ([]byte, error) {
type NoMethod MembersHasMember
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MobileDevice: JSON template for Mobile Device resource in Directory
// API.
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"`
// BootloaderVersion: Mobile Device Bootloader version (Read-only)
BootloaderVersion string `json:"bootloaderVersion,omitempty"`
// Brand: Mobile Device Brand (Read-only)
Brand string `json:"brand,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"`
// DevicePasswordStatus: DevicePasswordStatus (Read-only)
DevicePasswordStatus string `json:"devicePasswordStatus,omitempty"`
// Email: List of owner user's email addresses (Read-only)
Email []string `json:"email,omitempty"`
// EncryptionStatus: Mobile Device Encryption Status (Read-only)
EncryptionStatus string `json:"encryptionStatus,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 G Suite administrator control panel
// (Read-only)
FirstSync string `json:"firstSync,omitempty"`
// Hardware: Mobile Device Hardware (Read-only)
Hardware string `json:"hardware,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 G Suite 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"`
// Manufacturer: Mobile Device manufacturer (Read-only)
Manufacturer string `json:"manufacturer,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"`
// Privilege: DMAgentPermission (Read-only)
Privilege string `json:"privilege,omitempty"`
// ReleaseVersion: Mobile Device release version version (Read-only)
ReleaseVersion string `json:"releaseVersion,omitempty"`
// ResourceId: Unique identifier of Mobile Device (Read-only)
ResourceId string `json:"resourceId,omitempty"`
// SecurityPatchLevel: Mobile Device Security patch level (Read-only)
SecurityPatchLevel int64 `json:"securityPatchLevel,omitempty,string"`
// 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:"-"`
// NullFields is a list of field names (e.g. "AdbStatus") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MobileDevice) MarshalJSON() ([]byte, error) {
type NoMethod MobileDevice
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MobileDeviceApplications) MarshalJSON() ([]byte, error) {
type NoMethod MobileDeviceApplications
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MobileDeviceAction: JSON request template for firing commands on
// Mobile Device in Directory Devices API.
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:"-"`
// NullFields is a list of field names (e.g. "Action") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MobileDeviceAction) MarshalJSON() ([]byte, error) {
type NoMethod MobileDeviceAction
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// MobileDevices: JSON response template for List Mobile Devices
// operation in Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *MobileDevices) MarshalJSON() ([]byte, error) {
type NoMethod MobileDevices
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Notification: Template for a notification resource.
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:"-"`
// NullFields is a list of field names (e.g. "Body") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Notification) MarshalJSON() ([]byte, error) {
type NoMethod Notification
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Notifications: Template for notifications list response.
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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Notifications) MarshalJSON() ([]byte, error) {
type NoMethod Notifications
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// OrgUnit: JSON template for Org Unit resource in Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "BlockInheritance") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *OrgUnit) MarshalJSON() ([]byte, error) {
type NoMethod OrgUnit
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// OrgUnits: JSON response template for List Organization Units
// operation in Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *OrgUnits) MarshalJSON() ([]byte, error) {
type NoMethod OrgUnits
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Privilege: JSON template for privilege resource in Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "ChildPrivileges") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *Privilege) MarshalJSON() ([]byte, error) {
type NoMethod Privilege
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Privileges: JSON response template for List privileges operation in
// Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Privileges) MarshalJSON() ([]byte, error) {
type NoMethod Privileges
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Role: JSON template for role resource in Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Role) MarshalJSON() ([]byte, error) {
type NoMethod Role
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
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:"-"`
// NullFields is a list of field names (e.g. "PrivilegeName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *RoleRolePrivileges) MarshalJSON() ([]byte, error) {
type NoMethod RoleRolePrivileges
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// RoleAssignment: JSON template for roleAssignment resource in
// Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "AssignedTo") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *RoleAssignment) MarshalJSON() ([]byte, error) {
type NoMethod RoleAssignment
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// RoleAssignments: JSON response template for List roleAssignments
// operation in Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *RoleAssignments) MarshalJSON() ([]byte, error) {
type NoMethod RoleAssignments
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Roles: JSON response template for List roles operation in Directory
// API.
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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Roles) MarshalJSON() ([]byte, error) {
type NoMethod Roles
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Schema: JSON template for Schema resource in Directory API.
type Schema struct {
// DisplayName: Display name for the schema.
DisplayName string `json:"displayName,omitempty"`
// 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. "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:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Schema) MarshalJSON() ([]byte, error) {
type NoMethod Schema
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// SchemaFieldSpec: JSON template for FieldSpec resource for Schemas in
// Directory API.
type SchemaFieldSpec struct {
// DisplayName: Display Name of the field.
DisplayName string `json:"displayName,omitempty"`
// 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. "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:"-"`
// NullFields is a list of field names (e.g. "DisplayName") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SchemaFieldSpec) MarshalJSON() ([]byte, error) {
type NoMethod SchemaFieldSpec
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// 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.
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:"-"`
// NullFields is a list of field names (e.g. "MaxValue") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *SchemaFieldSpecNumericIndexingSpec) MarshalJSON() ([]byte, error) {
type NoMethod SchemaFieldSpecNumericIndexingSpec
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
func (s *SchemaFieldSpecNumericIndexingSpec) UnmarshalJSON(data []byte) error {
type NoMethod SchemaFieldSpecNumericIndexingSpec
var s1 struct {
MaxValue gensupport.JSONFloat64 `json:"maxValue"`
MinValue gensupport.JSONFloat64 `json:"minValue"`
*NoMethod
}
s1.NoMethod = (*NoMethod)(s)
if err := json.Unmarshal(data, &s1); err != nil {
return err
}
s.MaxValue = float64(s1.MaxValue)
s.MinValue = float64(s1.MinValue)
return nil
}
// Schemas: JSON response template for List Schema operation in
// Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Schemas) MarshalJSON() ([]byte, error) {
type NoMethod Schemas
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Token: JSON template for token resource in Directory API.
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:"-"`
// NullFields is a list of field names (e.g. "Anonymous") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Token) MarshalJSON() ([]byte, error) {
type NoMethod Token
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// Tokens: JSON response template for List tokens operation in Directory
// API.
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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *Tokens) MarshalJSON() ([]byte, error) {
type NoMethod Tokens
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TrustedAppId: JSON template for Trusted App Ids Resource object in
// Directory API.
type TrustedAppId struct {
// AndroidPackageName: Android package name.
AndroidPackageName string `json:"androidPackageName,omitempty"`
// CertificateHashSHA1: SHA1 signature of the app certificate.
CertificateHashSHA1 string `json:"certificateHashSHA1,omitempty"`
// CertificateHashSHA256: SHA256 signature of the app certificate.
CertificateHashSHA256 string `json:"certificateHashSHA256,omitempty"`
Etag string `json:"etag,omitempty"`
// Kind: Identifies the resource as a trusted AppId.
Kind string `json:"kind,omitempty"`
// ForceSendFields is a list of field names (e.g. "AndroidPackageName")
// 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:"-"`
// NullFields is a list of field names (e.g. "AndroidPackageName") to
// include in API requests with the JSON null value. By default, fields
// with empty values are omitted from API requests. However, any field
// with an empty value appearing in NullFields will be sent to the
// server as null. It is an error if a field in this list has a
// non-empty value. This may be used to include null fields in Patch
// requests.
NullFields []string `json:"-"`
}
func (s *TrustedAppId) MarshalJSON() ([]byte, error) {
type NoMethod TrustedAppId
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// TrustedApps: JSON template for Trusted Apps response object of a user
// in Directory API.
type TrustedApps struct {
// Etag: ETag of the resource.
Etag string `json:"etag,omitempty"`
// Kind: Identifies the resource as trusted apps response.
Kind string `json:"kind,omitempty"`
NextPageToken string `json:"nextPageToken,omitempty"`
// TrustedApps: Trusted Apps list.
TrustedApps []*TrustedAppId `json:"trustedApps,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:"-"`
// NullFields is a list of field names (e.g. "Etag") to include in API
// requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *TrustedApps) MarshalJSON() ([]byte, error) {
type NoMethod TrustedApps
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// User: JSON template for User object in Directory API.
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"`
// Archived: Indicates if user is archived.
Archived bool `json:"archived,omitempty"`
// ChangePasswordAtNextLogin: Boolean indicating if the user should
// change password in next login
ChangePasswordAtNextLogin bool `json:"changePasswordAtNextLogin,omitempty"`
// CreationTime: User's G Suite account creation time. (Read-only)
CreationTime string `json:"creationTime,omitempty"`
// CustomSchemas: Custom fields of the user.
CustomSchemas map[string]googleapi.RawMessage `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"`
Gender interface{} `json:"gender,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"`
// IsEnforcedIn2Sv: Is 2-step verification enforced (Read-only)
IsEnforcedIn2Sv bool `json:"isEnforcedIn2Sv,omitempty"`
// IsEnrolledIn2Sv: Is enrolled in 2-step verification (Read-only)
IsEnrolledIn2Sv bool `json:"isEnrolledIn2Sv,omitempty"`
// IsMailboxSetup: Is mailbox setup (Read-only)
IsMailboxSetup bool `json:"isMailboxSetup,omitempty"`
Keywords interface{} `json:"keywords,omitempty"`
// Kind: Kind of resource this is.
Kind string `json:"kind,omitempty"`
Languages interface{} `json:"languages,omitempty"`
// LastLoginTime: User's last login time. (Read-only)
LastLoginTime string `json:"lastLoginTime,omitempty"`
Locations interface{} `json:"locations,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"`
PosixAccounts interface{} `json:"posixAccounts,omitempty"`
// PrimaryEmail: username of User
PrimaryEmail string `json:"primaryEmail,omitempty"`
Relations interface{} `json:"relations,omitempty"`
SshPublicKeys interface{} `json:"sshPublicKeys,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:"-"`
// NullFields is a list of field names (e.g. "Addresses") to include in
// API requests with the JSON null value. By default, fields with empty
// values are omitted from API requests. However, any field with an
// empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *User) MarshalJSON() ([]byte, error) {
type NoMethod User
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UserAbout: JSON template for About (notes) of a user in Directory
// API.
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:"-"`
// NullFields is a list of field names (e.g. "ContentType") to include
// in API requests with the JSON null value. By default, fields with
// empty values are omitted from API requests. However, any field with
// an empty value appearing in NullFields will be sent to the server as
// null. It is an error if a field in this list has a non-empty value.
// This may be used to include null fields in Patch requests.
NullFields []string `json:"-"`
}
func (s *UserAbout) MarshalJSON() ([]byte, error) {
type NoMethod UserAbout
raw := NoMethod(*s)
return gensupport.MarshalJSON(raw, s.ForceSendFields, s.NullFields)
}
// UserAddress: JSON template for address.
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.