api: google.golang.org/api/admin/directory/v1 Index | Files

package admin

import "google.golang.org/api/admin/directory/v1"

Package admin provides access to the Admin Directory API.

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

Usage example:

import "google.golang.org/api/admin/directory/v1"
...
adminService, err := admin.New(oauthHttpClient)

Index

Package Files

admin-gen.go

Constants

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

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

    // View and manage your Chrome OS devices' metadata
    AdminDirectoryDeviceChromeosScope = "https://www.googleapis.com/auth/admin.directory.device.chromeos"

    // View your Chrome OS devices' metadata
    AdminDirectoryDeviceChromeosReadonlyScope = "https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly"

    // View and manage your mobile devices' metadata
    AdminDirectoryDeviceMobileScope = "https://www.googleapis.com/auth/admin.directory.device.mobile"

    // Manage your mobile devices by performing administrative tasks
    AdminDirectoryDeviceMobileActionScope = "https://www.googleapis.com/auth/admin.directory.device.mobile.action"

    // View your mobile devices' metadata
    AdminDirectoryDeviceMobileReadonlyScope = "https://www.googleapis.com/auth/admin.directory.device.mobile.readonly"

    // View and manage the provisioning of domains for your customers
    AdminDirectoryDomainScope = "https://www.googleapis.com/auth/admin.directory.domain"

    // View domains related to your customers
    AdminDirectoryDomainReadonlyScope = "https://www.googleapis.com/auth/admin.directory.domain.readonly"

    // View and manage the provisioning of groups on your domain
    AdminDirectoryGroupScope = "https://www.googleapis.com/auth/admin.directory.group"

    // View and manage group subscriptions on your domain
    AdminDirectoryGroupMemberScope = "https://www.googleapis.com/auth/admin.directory.group.member"

    // View group subscriptions on your domain
    AdminDirectoryGroupMemberReadonlyScope = "https://www.googleapis.com/auth/admin.directory.group.member.readonly"

    // View groups on your domain
    AdminDirectoryGroupReadonlyScope = "https://www.googleapis.com/auth/admin.directory.group.readonly"

    // View and manage notifications received on your domain
    AdminDirectoryNotificationsScope = "https://www.googleapis.com/auth/admin.directory.notifications"

    // View and manage organization units on your domain
    AdminDirectoryOrgunitScope = "https://www.googleapis.com/auth/admin.directory.orgunit"

    // View organization units on your domain
    AdminDirectoryOrgunitReadonlyScope = "https://www.googleapis.com/auth/admin.directory.orgunit.readonly"

    // View and manage the provisioning of calendar resources on your domain
    AdminDirectoryResourceCalendarScope = "https://www.googleapis.com/auth/admin.directory.resource.calendar"

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

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

    // View delegated admin roles for your domain
    AdminDirectoryRolemanagementReadonlyScope = "https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly"

    // View and manage the provisioning of users on your domain
    AdminDirectoryUserScope = "https://www.googleapis.com/auth/admin.directory.user"

    // View and manage user aliases on your domain
    AdminDirectoryUserAliasScope = "https://www.googleapis.com/auth/admin.directory.user.alias"

    // View user aliases on your domain
    AdminDirectoryUserAliasReadonlyScope = "https://www.googleapis.com/auth/admin.directory.user.alias.readonly"

    // View users on your domain
    AdminDirectoryUserReadonlyScope = "https://www.googleapis.com/auth/admin.directory.user.readonly"

    // Manage data access permissions for users on your domain
    AdminDirectoryUserSecurityScope = "https://www.googleapis.com/auth/admin.directory.user.security"

    // View and manage the provisioning of user schemas on your domain
    AdminDirectoryUserschemaScope = "https://www.googleapis.com/auth/admin.directory.userschema"

    // View user schemas on your domain
    AdminDirectoryUserschemaReadonlyScope = "https://www.googleapis.com/auth/admin.directory.userschema.readonly"
)

OAuth2 scopes used by this API.

type Alias Uses

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

Alias: JSON template for Alias object in Directory API.

func (*Alias) MarshalJSON Uses

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

type Aliases Uses

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

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

func (*Aliases) MarshalJSON Uses

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

type AppAccessCollections Uses

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

AppAccessCollections: JSON template for App Access Collections Resource object in Directory API.

func (*AppAccessCollections) MarshalJSON Uses

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

type Asp Uses

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

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

func (*Asp) MarshalJSON Uses

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

type Asps Uses

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 (*Asps) MarshalJSON Uses

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

type AspsDeleteCall Uses

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

func (*AspsDeleteCall) Context Uses

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

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

func (*AspsDeleteCall) Do Uses

func (c *AspsDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*AspsDeleteCall) Fields Uses

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

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

func (*AspsDeleteCall) Header Uses

func (c *AspsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type AspsGetCall Uses

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

func (*AspsGetCall) Context Uses

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

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

func (*AspsGetCall) Do Uses

func (c *AspsGetCall) Do(opts ...googleapi.CallOption) (*Asp, error)

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

func (*AspsGetCall) Fields Uses

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

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

func (*AspsGetCall) Header Uses

func (c *AspsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AspsGetCall) IfNoneMatch Uses

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

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

type AspsListCall Uses

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

func (*AspsListCall) Context Uses

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

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

func (*AspsListCall) Do Uses

func (c *AspsListCall) Do(opts ...googleapi.CallOption) (*Asps, error)

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

func (*AspsListCall) Fields Uses

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

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

func (*AspsListCall) Header Uses

func (c *AspsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*AspsListCall) IfNoneMatch Uses

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

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

type AspsService Uses

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

func NewAspsService Uses

func NewAspsService(s *Service) *AspsService

func (*AspsService) Delete Uses

func (r *AspsService) Delete(userKey string, codeId int64) *AspsDeleteCall

Delete: Delete an ASP issued by a user.

func (*AspsService) Get Uses

func (r *AspsService) Get(userKey string, codeId int64) *AspsGetCall

Get: Get information about an ASP issued by a user.

func (*AspsService) List Uses

func (r *AspsService) List(userKey string) *AspsListCall

List: List the ASPs issued by a user.

type Building Uses

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

Building: JSON template for Building object in Directory API.

func (*Building) MarshalJSON Uses

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

type BuildingCoordinates Uses

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

BuildingCoordinates: JSON template for coordinates of a building in Directory API.

func (*BuildingCoordinates) MarshalJSON Uses

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

func (*BuildingCoordinates) UnmarshalJSON Uses

func (s *BuildingCoordinates) UnmarshalJSON(data []byte) error

type Buildings Uses

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

Buildings: JSON template for Building List Response object in Directory API.

func (*Buildings) MarshalJSON Uses

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

type CalendarResource Uses

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

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

func (*CalendarResource) MarshalJSON Uses

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

type CalendarResources Uses

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

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

func (*CalendarResources) MarshalJSON Uses

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

type Channel Uses

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

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

func (*Channel) MarshalJSON Uses

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

type ChannelsService Uses

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

func NewChannelsService Uses

func NewChannelsService(s *Service) *ChannelsService

func (*ChannelsService) Stop Uses

func (r *ChannelsService) Stop(channel *Channel) *ChannelsStopCall

Stop: Stop watching resources through this channel

type ChannelsStopCall Uses

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

func (*ChannelsStopCall) Context Uses

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

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

func (*ChannelsStopCall) Do Uses

func (c *ChannelsStopCall) Do(opts ...googleapi.CallOption) error

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

func (*ChannelsStopCall) Fields Uses

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

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

func (*ChannelsStopCall) Header Uses

func (c *ChannelsStopCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ChromeOsDevice Uses

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

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

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

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

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

func (*ChromeOsDevice) MarshalJSON Uses

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

type ChromeOsDeviceAction Uses

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

ChromeOsDeviceAction: JSON request template for firing actions on ChromeOs Device in Directory Devices API.

func (*ChromeOsDeviceAction) MarshalJSON Uses

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

type ChromeOsDeviceActiveTimeRanges Uses

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 (*ChromeOsDeviceActiveTimeRanges) MarshalJSON Uses

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

type ChromeOsDeviceDeviceFiles Uses

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 (*ChromeOsDeviceDeviceFiles) MarshalJSON Uses

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

type ChromeOsDeviceRecentUsers Uses

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 (*ChromeOsDeviceRecentUsers) MarshalJSON Uses

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

type ChromeOsDeviceTpmVersionInfo Uses

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

ChromeOsDeviceTpmVersionInfo: Trusted Platform Module (TPM) (Read-only)

func (*ChromeOsDeviceTpmVersionInfo) MarshalJSON Uses

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

type ChromeOsDevices Uses

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

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

func (*ChromeOsDevices) MarshalJSON Uses

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

type ChromeOsMoveDevicesToOu Uses

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

ChromeOsMoveDevicesToOu: JSON request template for moving ChromeOs Device to given OU in Directory Devices API.

func (*ChromeOsMoveDevicesToOu) MarshalJSON Uses

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

type ChromeosdevicesActionCall Uses

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

func (*ChromeosdevicesActionCall) Context Uses

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

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

func (*ChromeosdevicesActionCall) Do Uses

func (c *ChromeosdevicesActionCall) Do(opts ...googleapi.CallOption) error

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

func (*ChromeosdevicesActionCall) Fields Uses

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

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

func (*ChromeosdevicesActionCall) Header Uses

func (c *ChromeosdevicesActionCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ChromeosdevicesGetCall Uses

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

func (*ChromeosdevicesGetCall) Context Uses

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

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

func (*ChromeosdevicesGetCall) Do Uses

func (c *ChromeosdevicesGetCall) Do(opts ...googleapi.CallOption) (*ChromeOsDevice, error)

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

func (*ChromeosdevicesGetCall) Fields Uses

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

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

func (*ChromeosdevicesGetCall) Header Uses

func (c *ChromeosdevicesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ChromeosdevicesGetCall) IfNoneMatch Uses

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

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

func (*ChromeosdevicesGetCall) Projection Uses

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

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

Possible values:

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

serialNumber, status, and user)

"FULL" - Includes all metadata fields

type ChromeosdevicesListCall Uses

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

func (*ChromeosdevicesListCall) Context Uses

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

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

func (*ChromeosdevicesListCall) Do Uses

func (c *ChromeosdevicesListCall) Do(opts ...googleapi.CallOption) (*ChromeOsDevices, error)

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

func (*ChromeosdevicesListCall) Fields Uses

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

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

func (*ChromeosdevicesListCall) Header Uses

func (c *ChromeosdevicesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ChromeosdevicesListCall) IfNoneMatch Uses

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

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

func (*ChromeosdevicesListCall) MaxResults Uses

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

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

func (*ChromeosdevicesListCall) OrderBy Uses

func (c *ChromeosdevicesListCall) OrderBy(orderBy string) *ChromeosdevicesListCall

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

Possible values:

"annotatedLocation" - Chromebook location as annotated by the

administrator.

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

func (*ChromeosdevicesListCall) OrgUnitPath Uses

func (c *ChromeosdevicesListCall) OrgUnitPath(orgUnitPath string) *ChromeosdevicesListCall

OrgUnitPath sets the optional parameter "orgUnitPath": Full path of the organizational unit or its ID

func (*ChromeosdevicesListCall) PageToken Uses

func (c *ChromeosdevicesListCall) PageToken(pageToken string) *ChromeosdevicesListCall

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

func (*ChromeosdevicesListCall) Pages Uses

func (c *ChromeosdevicesListCall) Pages(ctx context.Context, f func(*ChromeOsDevices) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*ChromeosdevicesListCall) Projection Uses

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

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

Possible values:

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

serialNumber, status, and user)

"FULL" - Includes all metadata fields

func (*ChromeosdevicesListCall) Query Uses

func (c *ChromeosdevicesListCall) Query(query string) *ChromeosdevicesListCall

Query sets the optional parameter "query": Search string in the format given at http://support.google.com/chromeos/a/bin/answer.py?hl=en&answer=1698333

func (*ChromeosdevicesListCall) SortOrder Uses

func (c *ChromeosdevicesListCall) SortOrder(sortOrder string) *ChromeosdevicesListCall

SortOrder sets the optional parameter "sortOrder": Whether to return results in ascending or descending order. Only of use when orderBy is also used

Possible values:

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

type ChromeosdevicesMoveDevicesToOuCall Uses

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

func (*ChromeosdevicesMoveDevicesToOuCall) Context Uses

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

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

func (*ChromeosdevicesMoveDevicesToOuCall) Do Uses

func (c *ChromeosdevicesMoveDevicesToOuCall) Do(opts ...googleapi.CallOption) error

Do executes the "directory.chromeosdevices.moveDevicesToOu" call.

func (*ChromeosdevicesMoveDevicesToOuCall) Fields Uses

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

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

func (*ChromeosdevicesMoveDevicesToOuCall) Header Uses

func (c *ChromeosdevicesMoveDevicesToOuCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ChromeosdevicesPatchCall Uses

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

func (*ChromeosdevicesPatchCall) Context Uses

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

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

func (*ChromeosdevicesPatchCall) Do Uses

func (c *ChromeosdevicesPatchCall) Do(opts ...googleapi.CallOption) (*ChromeOsDevice, error)

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

func (*ChromeosdevicesPatchCall) Fields Uses

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

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

func (*ChromeosdevicesPatchCall) Header Uses

func (c *ChromeosdevicesPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ChromeosdevicesPatchCall) Projection Uses

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

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

Possible values:

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

serialNumber, status, and user)

"FULL" - Includes all metadata fields

type ChromeosdevicesService Uses

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

func NewChromeosdevicesService Uses

func NewChromeosdevicesService(s *Service) *ChromeosdevicesService

func (*ChromeosdevicesService) Action Uses

func (r *ChromeosdevicesService) Action(customerId string, resourceId string, chromeosdeviceaction *ChromeOsDeviceAction) *ChromeosdevicesActionCall

Action: Take action on Chrome OS Device

func (*ChromeosdevicesService) Get Uses

func (r *ChromeosdevicesService) Get(customerId string, deviceId string) *ChromeosdevicesGetCall

Get: Retrieve Chrome OS Device

func (*ChromeosdevicesService) List Uses

func (r *ChromeosdevicesService) List(customerId string) *ChromeosdevicesListCall

List: Retrieve all Chrome OS Devices of a customer (paginated)

func (*ChromeosdevicesService) MoveDevicesToOu Uses

func (r *ChromeosdevicesService) MoveDevicesToOu(customerId string, orgUnitPath string, chromeosmovedevicestoou *ChromeOsMoveDevicesToOu) *ChromeosdevicesMoveDevicesToOuCall

MoveDevicesToOu: Move or insert multiple Chrome OS Devices to organizational unit

func (*ChromeosdevicesService) Patch Uses

func (r *ChromeosdevicesService) Patch(customerId string, deviceId string, chromeosdevice *ChromeOsDevice) *ChromeosdevicesPatchCall

Patch: Update Chrome OS Device. This method supports patch semantics.

func (*ChromeosdevicesService) Update Uses

func (r *ChromeosdevicesService) Update(customerId string, deviceId string, chromeosdevice *ChromeOsDevice) *ChromeosdevicesUpdateCall

Update: Update Chrome OS Device

type ChromeosdevicesUpdateCall Uses

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

func (*ChromeosdevicesUpdateCall) Context Uses

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

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

func (*ChromeosdevicesUpdateCall) Do Uses

func (c *ChromeosdevicesUpdateCall) Do(opts ...googleapi.CallOption) (*ChromeOsDevice, error)

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

func (*ChromeosdevicesUpdateCall) Fields Uses

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

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

func (*ChromeosdevicesUpdateCall) Header Uses

func (c *ChromeosdevicesUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ChromeosdevicesUpdateCall) Projection Uses

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

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

Possible values:

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

serialNumber, status, and user)

"FULL" - Includes all metadata fields

type Customer Uses

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

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

func (*Customer) MarshalJSON Uses

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

type CustomerPostalAddress Uses

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

CustomerPostalAddress: JSON template for postal address of a customer.

func (*CustomerPostalAddress) MarshalJSON Uses

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

type CustomersGetCall Uses

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

func (*CustomersGetCall) Context Uses

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

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

func (*CustomersGetCall) Do Uses

func (c *CustomersGetCall) Do(opts ...googleapi.CallOption) (*Customer, error)

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

func (*CustomersGetCall) Fields Uses

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

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

func (*CustomersGetCall) Header Uses

func (c *CustomersGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*CustomersGetCall) IfNoneMatch Uses

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

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

type CustomersPatchCall Uses

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

func (*CustomersPatchCall) Context Uses

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

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

func (*CustomersPatchCall) Do Uses

func (c *CustomersPatchCall) Do(opts ...googleapi.CallOption) (*Customer, error)

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

func (*CustomersPatchCall) Fields Uses

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

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

func (*CustomersPatchCall) Header Uses

func (c *CustomersPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type CustomersService Uses

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

func NewCustomersService Uses

func NewCustomersService(s *Service) *CustomersService

func (*CustomersService) Get Uses

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

Get: Retrieves a customer.

func (*CustomersService) Patch Uses

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

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

func (*CustomersService) Update Uses

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

Update: Updates a customer.

type CustomersUpdateCall Uses

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

func (*CustomersUpdateCall) Context Uses

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

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

func (*CustomersUpdateCall) Do Uses

func (c *CustomersUpdateCall) Do(opts ...googleapi.CallOption) (*Customer, error)

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

func (*CustomersUpdateCall) Fields Uses

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

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

func (*CustomersUpdateCall) Header Uses

func (c *CustomersUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DomainAlias Uses

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

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

func (*DomainAlias) MarshalJSON Uses

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

type DomainAliases Uses

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

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

func (*DomainAliases) MarshalJSON Uses

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

type DomainAliasesDeleteCall Uses

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

func (*DomainAliasesDeleteCall) Context Uses

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

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

func (*DomainAliasesDeleteCall) Do Uses

func (c *DomainAliasesDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*DomainAliasesDeleteCall) Fields Uses

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

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

func (*DomainAliasesDeleteCall) Header Uses

func (c *DomainAliasesDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DomainAliasesGetCall Uses

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

func (*DomainAliasesGetCall) Context Uses

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

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

func (*DomainAliasesGetCall) Do Uses

func (c *DomainAliasesGetCall) Do(opts ...googleapi.CallOption) (*DomainAlias, error)

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

func (*DomainAliasesGetCall) Fields Uses

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

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

func (*DomainAliasesGetCall) Header Uses

func (c *DomainAliasesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DomainAliasesGetCall) IfNoneMatch Uses

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

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

type DomainAliasesInsertCall Uses

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

func (*DomainAliasesInsertCall) Context Uses

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

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

func (*DomainAliasesInsertCall) Do Uses

func (c *DomainAliasesInsertCall) Do(opts ...googleapi.CallOption) (*DomainAlias, error)

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

func (*DomainAliasesInsertCall) Fields Uses

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

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

func (*DomainAliasesInsertCall) Header Uses

func (c *DomainAliasesInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DomainAliasesListCall Uses

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

func (*DomainAliasesListCall) Context Uses

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

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

func (*DomainAliasesListCall) Do Uses

func (c *DomainAliasesListCall) Do(opts ...googleapi.CallOption) (*DomainAliases, error)

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

func (*DomainAliasesListCall) Fields Uses

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

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

func (*DomainAliasesListCall) Header Uses

func (c *DomainAliasesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DomainAliasesListCall) IfNoneMatch Uses

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

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

func (*DomainAliasesListCall) ParentDomainName Uses

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

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

type DomainAliasesService Uses

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

func NewDomainAliasesService Uses

func NewDomainAliasesService(s *Service) *DomainAliasesService

func (*DomainAliasesService) Delete Uses

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

Delete: Deletes a Domain Alias of the customer.

func (*DomainAliasesService) Get Uses

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

Get: Retrieves a domain alias of the customer.

func (*DomainAliasesService) Insert Uses

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

Insert: Inserts a Domain alias of the customer.

func (*DomainAliasesService) List Uses

func (r *DomainAliasesService) List(customer string) *DomainAliasesListCall

List: Lists the domain aliases of the customer.

type Domains Uses

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

Domains: JSON template for Domain object in Directory API.

func (*Domains) MarshalJSON Uses

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

type Domains2 Uses

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

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

func (*Domains2) MarshalJSON Uses

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

type DomainsDeleteCall Uses

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

func (*DomainsDeleteCall) Context Uses

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

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

func (*DomainsDeleteCall) Do Uses

func (c *DomainsDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*DomainsDeleteCall) Fields Uses

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

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

func (*DomainsDeleteCall) Header Uses

func (c *DomainsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DomainsGetCall Uses

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

func (*DomainsGetCall) Context Uses

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

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

func (*DomainsGetCall) Do Uses

func (c *DomainsGetCall) Do(opts ...googleapi.CallOption) (*Domains, error)

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

func (*DomainsGetCall) Fields Uses

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

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

func (*DomainsGetCall) Header Uses

func (c *DomainsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DomainsGetCall) IfNoneMatch Uses

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

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

type DomainsInsertCall Uses

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

func (*DomainsInsertCall) Context Uses

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

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

func (*DomainsInsertCall) Do Uses

func (c *DomainsInsertCall) Do(opts ...googleapi.CallOption) (*Domains, error)

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

func (*DomainsInsertCall) Fields Uses

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

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

func (*DomainsInsertCall) Header Uses

func (c *DomainsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type DomainsListCall Uses

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

func (*DomainsListCall) Context Uses

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

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

func (*DomainsListCall) Do Uses

func (c *DomainsListCall) Do(opts ...googleapi.CallOption) (*Domains2, error)

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

func (*DomainsListCall) Fields Uses

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

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

func (*DomainsListCall) Header Uses

func (c *DomainsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*DomainsListCall) IfNoneMatch Uses

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

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

type DomainsService Uses

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

func NewDomainsService Uses

func NewDomainsService(s *Service) *DomainsService

func (*DomainsService) Delete Uses

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

Delete: Deletes a domain of the customer.

func (*DomainsService) Get Uses

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

Get: Retrieves a domain of the customer.

func (*DomainsService) Insert Uses

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

Insert: Inserts a domain of the customer.

func (*DomainsService) List Uses

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

List: Lists the domains of the customer.

type Feature Uses

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

Feature: JSON template for Feature object in Directory API.

func (*Feature) MarshalJSON Uses

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

type FeatureInstance Uses

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

FeatureInstance: JSON template for a "feature instance".

func (*FeatureInstance) MarshalJSON Uses

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

type FeatureRename Uses

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

FeatureRename: JSON request template for renaming a feature.

func (*FeatureRename) MarshalJSON Uses

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

type Features Uses

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

Features: JSON template for Feature List Response object in Directory API.

func (*Features) MarshalJSON Uses

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

type Group Uses

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

Group: JSON template for Group resource in Directory API.

func (*Group) MarshalJSON Uses

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

type Groups Uses

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

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

func (*Groups) MarshalJSON Uses

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

type GroupsAliasesDeleteCall Uses

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

func (*GroupsAliasesDeleteCall) Context Uses

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

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

func (*GroupsAliasesDeleteCall) Do Uses

func (c *GroupsAliasesDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*GroupsAliasesDeleteCall) Fields Uses

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

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

func (*GroupsAliasesDeleteCall) Header Uses

func (c *GroupsAliasesDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type GroupsAliasesInsertCall Uses

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

func (*GroupsAliasesInsertCall) Context Uses

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

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

func (*GroupsAliasesInsertCall) Do Uses

func (c *GroupsAliasesInsertCall) Do(opts ...googleapi.CallOption) (*Alias, error)

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

func (*GroupsAliasesInsertCall) Fields Uses

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

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

func (*GroupsAliasesInsertCall) Header Uses

func (c *GroupsAliasesInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type GroupsAliasesListCall Uses

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

func (*GroupsAliasesListCall) Context Uses

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

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

func (*GroupsAliasesListCall) Do Uses

func (c *GroupsAliasesListCall) Do(opts ...googleapi.CallOption) (*Aliases, error)

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

func (*GroupsAliasesListCall) Fields Uses

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

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

func (*GroupsAliasesListCall) Header Uses

func (c *GroupsAliasesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*GroupsAliasesListCall) IfNoneMatch Uses

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

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

type GroupsAliasesService Uses

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

func NewGroupsAliasesService Uses

func NewGroupsAliasesService(s *Service) *GroupsAliasesService

func (*GroupsAliasesService) Delete Uses

func (r *GroupsAliasesService) Delete(groupKey string, alias string) *GroupsAliasesDeleteCall

Delete: Remove a alias for the group

func (*GroupsAliasesService) Insert Uses

func (r *GroupsAliasesService) Insert(groupKey string, alias *Alias) *GroupsAliasesInsertCall

Insert: Add a alias for the group

func (*GroupsAliasesService) List Uses

func (r *GroupsAliasesService) List(groupKey string) *GroupsAliasesListCall

List: List all aliases for a group

type GroupsDeleteCall Uses

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

func (*GroupsDeleteCall) Context Uses

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

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

func (*GroupsDeleteCall) Do Uses

func (c *GroupsDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*GroupsDeleteCall) Fields Uses

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

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

func (*GroupsDeleteCall) Header Uses

func (c *GroupsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type GroupsGetCall Uses

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

func (*GroupsGetCall) Context Uses

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

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

func (*GroupsGetCall) Do Uses

func (c *GroupsGetCall) Do(opts ...googleapi.CallOption) (*Group, error)

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

func (*GroupsGetCall) Fields Uses

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

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

func (*GroupsGetCall) Header Uses

func (c *GroupsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*GroupsGetCall) IfNoneMatch Uses

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

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

type GroupsInsertCall Uses

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

func (*GroupsInsertCall) Context Uses

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

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

func (*GroupsInsertCall) Do Uses

func (c *GroupsInsertCall) Do(opts ...googleapi.CallOption) (*Group, error)

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

func (*GroupsInsertCall) Fields Uses

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

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

func (*GroupsInsertCall) Header Uses

func (c *GroupsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type GroupsListCall Uses

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

func (*GroupsListCall) Context Uses

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

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

func (*GroupsListCall) Customer Uses

func (c *GroupsListCall) Customer(customer string) *GroupsListCall

Customer sets the optional parameter "customer": Immutable ID of the G Suite account. In case of multi-domain, to fetch all groups for a customer, fill this field instead of domain.

func (*GroupsListCall) Do Uses

func (c *GroupsListCall) Do(opts ...googleapi.CallOption) (*Groups, error)

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

func (*GroupsListCall) Domain Uses

func (c *GroupsListCall) Domain(domain string) *GroupsListCall

Domain sets the optional parameter "domain": Name of the domain. Fill this field to get groups from only this domain. To return all groups in a multi-domain fill customer field instead.

func (*GroupsListCall) Fields Uses

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

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

func (*GroupsListCall) Header Uses

func (c *GroupsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*GroupsListCall) IfNoneMatch Uses

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

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

func (*GroupsListCall) MaxResults Uses

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

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

func (*GroupsListCall) PageToken Uses

func (c *GroupsListCall) PageToken(pageToken string) *GroupsListCall

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

func (*GroupsListCall) Pages Uses

func (c *GroupsListCall) Pages(ctx context.Context, f func(*Groups) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*GroupsListCall) UserKey Uses

func (c *GroupsListCall) UserKey(userKey string) *GroupsListCall

UserKey sets the optional parameter "userKey": Email or immutable ID of the user if only those groups are to be listed, the given user is a member of. If ID, it should match with id of user object

type GroupsPatchCall Uses

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

func (*GroupsPatchCall) Context Uses

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

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

func (*GroupsPatchCall) Do Uses

func (c *GroupsPatchCall) Do(opts ...googleapi.CallOption) (*Group, error)

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

func (*GroupsPatchCall) Fields Uses

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

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

func (*GroupsPatchCall) Header Uses

func (c *GroupsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type GroupsService Uses

type GroupsService struct {
    Aliases *GroupsAliasesService
    // contains filtered or unexported fields
}

func NewGroupsService Uses

func NewGroupsService(s *Service) *GroupsService

func (*GroupsService) Delete Uses

func (r *GroupsService) Delete(groupKey string) *GroupsDeleteCall

Delete: Delete Group

func (*GroupsService) Get Uses

func (r *GroupsService) Get(groupKey string) *GroupsGetCall

Get: Retrieve Group

func (*GroupsService) Insert Uses

func (r *GroupsService) Insert(group *Group) *GroupsInsertCall

Insert: Create Group

func (*GroupsService) List Uses

func (r *GroupsService) List() *GroupsListCall

List: Retrieve all groups in a domain (paginated)

func (*GroupsService) Patch Uses

func (r *GroupsService) Patch(groupKey string, group *Group) *GroupsPatchCall

Patch: Update Group. This method supports patch semantics.

func (*GroupsService) Update Uses

func (r *GroupsService) Update(groupKey string, group *Group) *GroupsUpdateCall

Update: Update Group

type GroupsUpdateCall Uses

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

func (*GroupsUpdateCall) Context Uses

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

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

func (*GroupsUpdateCall) Do Uses

func (c *GroupsUpdateCall) Do(opts ...googleapi.CallOption) (*Group, error)

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

func (*GroupsUpdateCall) Fields Uses

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

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

func (*GroupsUpdateCall) Header Uses

func (c *GroupsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type Member Uses

type Member struct {
    // Email: Email of member (Read-only)
    Email string `json:"email,omitempty"`

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

    // Id: Unique identifier of customer member (Read-only) Unique
    // identifier of group (Read-only) Unique identifier of member
    // (Read-only)
    Id  string `json:"id,omitempty"`

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

    // Role: Role of member
    Role string `json:"role,omitempty"`

    // 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. "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:"-"`
}

Member: JSON template for Member resource in Directory API.

func (*Member) MarshalJSON Uses

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

type Members Uses

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

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

func (*Members) MarshalJSON Uses

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

type MembersDeleteCall Uses

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

func (*MembersDeleteCall) Context Uses

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

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

func (*MembersDeleteCall) Do Uses

func (c *MembersDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*MembersDeleteCall) Fields Uses

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

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

func (*MembersDeleteCall) Header Uses

func (c *MembersDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type MembersGetCall Uses

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

func (*MembersGetCall) Context Uses

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

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

func (*MembersGetCall) Do Uses

func (c *MembersGetCall) Do(opts ...googleapi.CallOption) (*Member, error)

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

func (*MembersGetCall) Fields Uses

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

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

func (*MembersGetCall) Header Uses

func (c *MembersGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*MembersGetCall) IfNoneMatch Uses

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

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

type MembersHasMember Uses

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

MembersHasMember: JSON template for Has Member response in Directory API.

func (*MembersHasMember) MarshalJSON Uses

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

type MembersHasMemberCall Uses

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

func (*MembersHasMemberCall) Context Uses

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

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

func (*MembersHasMemberCall) Do Uses

func (c *MembersHasMemberCall) Do(opts ...googleapi.CallOption) (*MembersHasMember, error)

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

func (*MembersHasMemberCall) Fields Uses

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

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

func (*MembersHasMemberCall) Header Uses

func (c *MembersHasMemberCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*MembersHasMemberCall) IfNoneMatch Uses

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

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

type MembersInsertCall Uses

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

func (*MembersInsertCall) Context Uses

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

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

func (*MembersInsertCall) Do Uses

func (c *MembersInsertCall) Do(opts ...googleapi.CallOption) (*Member, error)

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

func (*MembersInsertCall) Fields Uses

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

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

func (*MembersInsertCall) Header Uses

func (c *MembersInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type MembersListCall Uses

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

func (*MembersListCall) Context Uses

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

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

func (*MembersListCall) Do Uses

func (c *MembersListCall) Do(opts ...googleapi.CallOption) (*Members, error)

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

func (*MembersListCall) Fields Uses

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

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

func (*MembersListCall) Header Uses

func (c *MembersListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*MembersListCall) IfNoneMatch Uses

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

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

func (*MembersListCall) MaxResults Uses

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

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

func (*MembersListCall) PageToken Uses

func (c *MembersListCall) PageToken(pageToken string) *MembersListCall

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

func (*MembersListCall) Pages Uses

func (c *MembersListCall) Pages(ctx context.Context, f func(*Members) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*MembersListCall) Roles Uses

func (c *MembersListCall) Roles(roles string) *MembersListCall

Roles sets the optional parameter "roles": Comma separated role values to filter list results on.

type MembersPatchCall Uses

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

func (*MembersPatchCall) Context Uses

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

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

func (*MembersPatchCall) Do Uses

func (c *MembersPatchCall) Do(opts ...googleapi.CallOption) (*Member, error)

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

func (*MembersPatchCall) Fields Uses

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

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

func (*MembersPatchCall) Header Uses

func (c *MembersPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type MembersService Uses

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

func NewMembersService Uses

func NewMembersService(s *Service) *MembersService

func (*MembersService) Delete Uses

func (r *MembersService) Delete(groupKey string, memberKey string) *MembersDeleteCall

Delete: Remove membership.

func (*MembersService) Get Uses

func (r *MembersService) Get(groupKey string, memberKey string) *MembersGetCall

Get: Retrieve Group Member

func (*MembersService) HasMember Uses

func (r *MembersService) HasMember(groupKey string, memberKey string) *MembersHasMemberCall

HasMember: Checks whether the given user is a member of the group. Membership can be direct or nested.

func (*MembersService) Insert Uses

func (r *MembersService) Insert(groupKey string, member *Member) *MembersInsertCall

Insert: Add user to the specified group.

func (*MembersService) List Uses

func (r *MembersService) List(groupKey string) *MembersListCall

List: Retrieve all members in a group (paginated)

func (*MembersService) Patch Uses

func (r *MembersService) Patch(groupKey string, memberKey string, member *Member) *MembersPatchCall

Patch: Update membership of a user in the specified group. This method supports patch semantics.

func (*MembersService) Update Uses

func (r *MembersService) Update(groupKey string, memberKey string, member *Member) *MembersUpdateCall

Update: Update membership of a user in the specified group.

type MembersUpdateCall Uses

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

func (*MembersUpdateCall) Context Uses

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

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

func (*MembersUpdateCall) Do Uses

func (c *MembersUpdateCall) Do(opts ...googleapi.CallOption) (*Member, error)

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

func (*MembersUpdateCall) Fields Uses

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

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

func (*MembersUpdateCall) Header Uses

func (c *MembersUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type MobileDevice Uses

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

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

func (*MobileDevice) MarshalJSON Uses

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

type MobileDeviceAction Uses

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

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

func (*MobileDeviceAction) MarshalJSON Uses

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

type MobileDeviceApplications Uses

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 (*MobileDeviceApplications) MarshalJSON Uses

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

type MobileDevices Uses

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

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

func (*MobileDevices) MarshalJSON Uses

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

type MobiledevicesActionCall Uses

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

func (*MobiledevicesActionCall) Context Uses

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

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

func (*MobiledevicesActionCall) Do Uses

func (c *MobiledevicesActionCall) Do(opts ...googleapi.CallOption) error

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

func (*MobiledevicesActionCall) Fields Uses

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

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

func (*MobiledevicesActionCall) Header Uses

func (c *MobiledevicesActionCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type MobiledevicesDeleteCall Uses

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

func (*MobiledevicesDeleteCall) Context Uses

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

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

func (*MobiledevicesDeleteCall) Do Uses

func (c *MobiledevicesDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*MobiledevicesDeleteCall) Fields Uses

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

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

func (*MobiledevicesDeleteCall) Header Uses

func (c *MobiledevicesDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type MobiledevicesGetCall Uses

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

func (*MobiledevicesGetCall) Context Uses

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

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

func (*MobiledevicesGetCall) Do Uses

func (c *MobiledevicesGetCall) Do(opts ...googleapi.CallOption) (*MobileDevice, error)

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

func (*MobiledevicesGetCall) Fields Uses

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

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

func (*MobiledevicesGetCall) Header Uses

func (c *MobiledevicesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*MobiledevicesGetCall) IfNoneMatch Uses

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

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

func (*MobiledevicesGetCall) Projection Uses

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

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

Possible values:

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

model, status, type, and status)

"FULL" - Includes all metadata fields

type MobiledevicesListCall Uses

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

func (*MobiledevicesListCall) Context Uses

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

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

func (*MobiledevicesListCall) Do Uses

func (c *MobiledevicesListCall) Do(opts ...googleapi.CallOption) (*MobileDevices, error)

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

func (*MobiledevicesListCall) Fields Uses

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

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

func (*MobiledevicesListCall) Header Uses

func (c *MobiledevicesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*MobiledevicesListCall) IfNoneMatch Uses

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

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

func (*MobiledevicesListCall) MaxResults Uses

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

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

func (*MobiledevicesListCall) OrderBy Uses

func (c *MobiledevicesListCall) OrderBy(orderBy string) *MobiledevicesListCall

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

Possible values:

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

func (*MobiledevicesListCall) PageToken Uses

func (c *MobiledevicesListCall) PageToken(pageToken string) *MobiledevicesListCall

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

func (*MobiledevicesListCall) Pages Uses

func (c *MobiledevicesListCall) Pages(ctx context.Context, f func(*MobileDevices) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*MobiledevicesListCall) Projection Uses

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

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

Possible values:

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

model, status, type, and status)

"FULL" - Includes all metadata fields

func (*MobiledevicesListCall) Query Uses

func (c *MobiledevicesListCall) Query(query string) *MobiledevicesListCall

Query sets the optional parameter "query": Search string in the format given at http://support.google.com/a/bin/answer.py?hl=en&answer=1408863#search

func (*MobiledevicesListCall) SortOrder Uses

func (c *MobiledevicesListCall) SortOrder(sortOrder string) *MobiledevicesListCall

SortOrder sets the optional parameter "sortOrder": Whether to return results in ascending or descending order. Only of use when orderBy is also used

Possible values:

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

type MobiledevicesService Uses

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

func NewMobiledevicesService Uses

func NewMobiledevicesService(s *Service) *MobiledevicesService

func (*MobiledevicesService) Action Uses

func (r *MobiledevicesService) Action(customerId string, resourceId string, mobiledeviceaction *MobileDeviceAction) *MobiledevicesActionCall

Action: Take action on Mobile Device

func (*MobiledevicesService) Delete Uses

func (r *MobiledevicesService) Delete(customerId string, resourceId string) *MobiledevicesDeleteCall

Delete: Delete Mobile Device

func (*MobiledevicesService) Get Uses

func (r *MobiledevicesService) Get(customerId string, resourceId string) *MobiledevicesGetCall

Get: Retrieve Mobile Device

func (*MobiledevicesService) List Uses

func (r *MobiledevicesService) List(customerId string) *MobiledevicesListCall

List: Retrieve all Mobile Devices of a customer (paginated)

type Notification Uses

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

Notification: Template for a notification resource.

func (*Notification) MarshalJSON Uses

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

type Notifications Uses

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

Notifications: Template for notifications list response.

func (*Notifications) MarshalJSON Uses

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

type NotificationsDeleteCall Uses

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

func (*NotificationsDeleteCall) Context Uses

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

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

func (*NotificationsDeleteCall) Do Uses

func (c *NotificationsDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*NotificationsDeleteCall) Fields Uses

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

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

func (*NotificationsDeleteCall) Header Uses

func (c *NotificationsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type NotificationsGetCall Uses

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

func (*NotificationsGetCall) Context Uses

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

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

func (*NotificationsGetCall) Do Uses

func (c *NotificationsGetCall) Do(opts ...googleapi.CallOption) (*Notification, error)

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

func (*NotificationsGetCall) Fields Uses

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

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

func (*NotificationsGetCall) Header Uses

func (c *NotificationsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*NotificationsGetCall) IfNoneMatch Uses

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

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

type NotificationsListCall Uses

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

func (*NotificationsListCall) Context Uses

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

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

func (*NotificationsListCall) Do Uses

func (c *NotificationsListCall) Do(opts ...googleapi.CallOption) (*Notifications, error)

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

func (*NotificationsListCall) Fields Uses

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

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

func (*NotificationsListCall) Header Uses

func (c *NotificationsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*NotificationsListCall) IfNoneMatch Uses

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

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

func (*NotificationsListCall) Language Uses

func (c *NotificationsListCall) Language(language string) *NotificationsListCall

Language sets the optional parameter "language": The ISO 639-1 code of the language notifications are returned in. The default is English (en).

func (*NotificationsListCall) MaxResults Uses

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

MaxResults sets the optional parameter "maxResults": Maximum number of notifications to return per page. The default is 100.

func (*NotificationsListCall) PageToken Uses

func (c *NotificationsListCall) PageToken(pageToken string) *NotificationsListCall

PageToken sets the optional parameter "pageToken": The token to specify the page of results to retrieve.

func (*NotificationsListCall) Pages Uses

func (c *NotificationsListCall) Pages(ctx context.Context, f func(*Notifications) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type NotificationsPatchCall Uses

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

func (*NotificationsPatchCall) Context Uses

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

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

func (*NotificationsPatchCall) Do Uses

func (c *NotificationsPatchCall) Do(opts ...googleapi.CallOption) (*Notification, error)

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

func (*NotificationsPatchCall) Fields Uses

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

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

func (*NotificationsPatchCall) Header Uses

func (c *NotificationsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type NotificationsService Uses

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

func NewNotificationsService Uses

func NewNotificationsService(s *Service) *NotificationsService

func (*NotificationsService) Delete Uses

func (r *NotificationsService) Delete(customer string, notificationId string) *NotificationsDeleteCall

Delete: Deletes a notification

func (*NotificationsService) Get Uses

func (r *NotificationsService) Get(customer string, notificationId string) *NotificationsGetCall

Get: Retrieves a notification.

func (*NotificationsService) List Uses

func (r *NotificationsService) List(customer string) *NotificationsListCall

List: Retrieves a list of notifications.

func (*NotificationsService) Patch Uses

func (r *NotificationsService) Patch(customer string, notificationId string, notification *Notification) *NotificationsPatchCall

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

func (*NotificationsService) Update Uses

func (r *NotificationsService) Update(customer string, notificationId string, notification *Notification) *NotificationsUpdateCall

Update: Updates a notification.

type NotificationsUpdateCall Uses

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

func (*NotificationsUpdateCall) Context Uses

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

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

func (*NotificationsUpdateCall) Do Uses

func (c *NotificationsUpdateCall) Do(opts ...googleapi.CallOption) (*Notification, error)

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

func (*NotificationsUpdateCall) Fields Uses

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

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

func (*NotificationsUpdateCall) Header Uses

func (c *NotificationsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type OrgUnit Uses

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

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

func (*OrgUnit) MarshalJSON Uses

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

type OrgUnits Uses

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

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

func (*OrgUnits) MarshalJSON Uses

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

type OrgunitsDeleteCall Uses

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

func (*OrgunitsDeleteCall) Context Uses

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

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

func (*OrgunitsDeleteCall) Do Uses

func (c *OrgunitsDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*OrgunitsDeleteCall) Fields Uses

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

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

func (*OrgunitsDeleteCall) Header Uses

func (c *OrgunitsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type OrgunitsGetCall Uses

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

func (*OrgunitsGetCall) Context Uses

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

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

func (*OrgunitsGetCall) Do Uses

func (c *OrgunitsGetCall) Do(opts ...googleapi.CallOption) (*OrgUnit, error)

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

func (*OrgunitsGetCall) Fields Uses

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

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

func (*OrgunitsGetCall) Header Uses

func (c *OrgunitsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*OrgunitsGetCall) IfNoneMatch Uses

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

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

type OrgunitsInsertCall Uses

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

func (*OrgunitsInsertCall) Context Uses

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

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

func (*OrgunitsInsertCall) Do Uses

func (c *OrgunitsInsertCall) Do(opts ...googleapi.CallOption) (*OrgUnit, error)

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

func (*OrgunitsInsertCall) Fields Uses

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

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

func (*OrgunitsInsertCall) Header Uses

func (c *OrgunitsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type OrgunitsListCall Uses

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

func (*OrgunitsListCall) Context Uses

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

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

func (*OrgunitsListCall) Do Uses

func (c *OrgunitsListCall) Do(opts ...googleapi.CallOption) (*OrgUnits, error)

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

func (*OrgunitsListCall) Fields Uses

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

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

func (*OrgunitsListCall) Header Uses

func (c *OrgunitsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*OrgunitsListCall) IfNoneMatch Uses

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

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

func (*OrgunitsListCall) OrgUnitPath Uses

func (c *OrgunitsListCall) OrgUnitPath(orgUnitPath string) *OrgunitsListCall

OrgUnitPath sets the optional parameter "orgUnitPath": the URL-encoded organizational unit's path or its ID

func (*OrgunitsListCall) Type Uses

func (c *OrgunitsListCall) Type(type_ string) *OrgunitsListCall

Type sets the optional parameter "type": Whether to return all sub-organizations or just immediate children

Possible values:

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

type OrgunitsPatchCall Uses

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

func (*OrgunitsPatchCall) Context Uses

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

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

func (*OrgunitsPatchCall) Do Uses

func (c *OrgunitsPatchCall) Do(opts ...googleapi.CallOption) (*OrgUnit, error)

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

func (*OrgunitsPatchCall) Fields Uses

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

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

func (*OrgunitsPatchCall) Header Uses

func (c *OrgunitsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type OrgunitsService Uses

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

func NewOrgunitsService Uses

func NewOrgunitsService(s *Service) *OrgunitsService

func (*OrgunitsService) Delete Uses

func (r *OrgunitsService) Delete(customerId string, orgUnitPath []string) *OrgunitsDeleteCall

Delete: Remove organizational unit

func (*OrgunitsService) Get Uses

func (r *OrgunitsService) Get(customerId string, orgUnitPath []string) *OrgunitsGetCall

Get: Retrieve organizational unit

func (*OrgunitsService) Insert Uses

func (r *OrgunitsService) Insert(customerId string, orgunit *OrgUnit) *OrgunitsInsertCall

Insert: Add organizational unit

func (*OrgunitsService) List Uses

func (r *OrgunitsService) List(customerId string) *OrgunitsListCall

List: Retrieve all organizational units

func (*OrgunitsService) Patch Uses

func (r *OrgunitsService) Patch(customerId string, orgUnitPath []string, orgunit *OrgUnit) *OrgunitsPatchCall

Patch: Update organizational unit. This method supports patch semantics.

func (*OrgunitsService) Update Uses

func (r *OrgunitsService) Update(customerId string, orgUnitPath []string, orgunit *OrgUnit) *OrgunitsUpdateCall

Update: Update organizational unit

type OrgunitsUpdateCall Uses

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

func (*OrgunitsUpdateCall) Context Uses

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

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

func (*OrgunitsUpdateCall) Do Uses

func (c *OrgunitsUpdateCall) Do(opts ...googleapi.CallOption) (*OrgUnit, error)

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

func (*OrgunitsUpdateCall) Fields Uses

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

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

func (*OrgunitsUpdateCall) Header Uses

func (c *OrgunitsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type Privilege Uses

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

Privilege: JSON template for privilege resource in Directory API.

func (*Privilege) MarshalJSON Uses

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

type Privileges Uses

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

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

func (*Privileges) MarshalJSON Uses

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

type PrivilegesListCall Uses

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

func (*PrivilegesListCall) Context Uses

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

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

func (*PrivilegesListCall) Do Uses

func (c *PrivilegesListCall) Do(opts ...googleapi.CallOption) (*Privileges, error)

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

func (*PrivilegesListCall) Fields Uses

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

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

func (*PrivilegesListCall) Header Uses

func (c *PrivilegesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*PrivilegesListCall) IfNoneMatch Uses

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

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

type PrivilegesService Uses

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

func NewPrivilegesService Uses

func NewPrivilegesService(s *Service) *PrivilegesService

func (*PrivilegesService) List Uses

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

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

type ResolvedAppAccessSettingsGetSettingsCall Uses

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

func (*ResolvedAppAccessSettingsGetSettingsCall) Context Uses

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

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

func (*ResolvedAppAccessSettingsGetSettingsCall) Do Uses

func (c *ResolvedAppAccessSettingsGetSettingsCall) Do(opts ...googleapi.CallOption) (*AppAccessCollections, error)

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

func (*ResolvedAppAccessSettingsGetSettingsCall) Fields Uses

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

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

func (*ResolvedAppAccessSettingsGetSettingsCall) Header Uses

func (c *ResolvedAppAccessSettingsGetSettingsCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ResolvedAppAccessSettingsGetSettingsCall) IfNoneMatch Uses

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

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

type ResolvedAppAccessSettingsListTrustedAppsCall Uses

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

func (*ResolvedAppAccessSettingsListTrustedAppsCall) Context Uses

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

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

func (*ResolvedAppAccessSettingsListTrustedAppsCall) Do Uses

func (c *ResolvedAppAccessSettingsListTrustedAppsCall) Do(opts ...googleapi.CallOption) (*TrustedApps, error)

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

func (*ResolvedAppAccessSettingsListTrustedAppsCall) Fields Uses

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

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

func (*ResolvedAppAccessSettingsListTrustedAppsCall) Header Uses

func (c *ResolvedAppAccessSettingsListTrustedAppsCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ResolvedAppAccessSettingsListTrustedAppsCall) IfNoneMatch Uses

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

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

type ResolvedAppAccessSettingsService Uses

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

func NewResolvedAppAccessSettingsService Uses

func NewResolvedAppAccessSettingsService(s *Service) *ResolvedAppAccessSettingsService

func (*ResolvedAppAccessSettingsService) GetSettings Uses

func (r *ResolvedAppAccessSettingsService) GetSettings() *ResolvedAppAccessSettingsGetSettingsCall

GetSettings: Retrieves resolved app access settings of the logged in user.

func (*ResolvedAppAccessSettingsService) ListTrustedApps Uses

func (r *ResolvedAppAccessSettingsService) ListTrustedApps() *ResolvedAppAccessSettingsListTrustedAppsCall

ListTrustedApps: Retrieves the list of apps trusted by the admin of the logged in user.

type ResourcesBuildingsDeleteCall Uses

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

func (*ResourcesBuildingsDeleteCall) Context Uses

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

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

func (*ResourcesBuildingsDeleteCall) Do Uses

func (c *ResourcesBuildingsDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*ResourcesBuildingsDeleteCall) Fields Uses

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

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

func (*ResourcesBuildingsDeleteCall) Header Uses

func (c *ResourcesBuildingsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ResourcesBuildingsGetCall Uses

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

func (*ResourcesBuildingsGetCall) Context Uses

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

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

func (*ResourcesBuildingsGetCall) Do Uses

func (c *ResourcesBuildingsGetCall) Do(opts ...googleapi.CallOption) (*Building, error)

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

func (*ResourcesBuildingsGetCall) Fields Uses

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

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

func (*ResourcesBuildingsGetCall) Header Uses

func (c *ResourcesBuildingsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ResourcesBuildingsGetCall) IfNoneMatch Uses

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

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

type ResourcesBuildingsInsertCall Uses

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

func (*ResourcesBuildingsInsertCall) Context Uses

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

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

func (*ResourcesBuildingsInsertCall) Do Uses

func (c *ResourcesBuildingsInsertCall) Do(opts ...googleapi.CallOption) (*Building, error)

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

func (*ResourcesBuildingsInsertCall) Fields Uses

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

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

func (*ResourcesBuildingsInsertCall) Header Uses

func (c *ResourcesBuildingsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ResourcesBuildingsListCall Uses

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

func (*ResourcesBuildingsListCall) Context Uses

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

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

func (*ResourcesBuildingsListCall) Do Uses

func (c *ResourcesBuildingsListCall) Do(opts ...googleapi.CallOption) (*Buildings, error)

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

func (*ResourcesBuildingsListCall) Fields Uses

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

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

func (*ResourcesBuildingsListCall) Header Uses

func (c *ResourcesBuildingsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ResourcesBuildingsListCall) IfNoneMatch Uses

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

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

func (*ResourcesBuildingsListCall) MaxResults Uses

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

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

func (*ResourcesBuildingsListCall) PageToken Uses

func (c *ResourcesBuildingsListCall) PageToken(pageToken string) *ResourcesBuildingsListCall

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

func (*ResourcesBuildingsListCall) Pages Uses

func (c *ResourcesBuildingsListCall) Pages(ctx context.Context, f func(*Buildings) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ResourcesBuildingsPatchCall Uses

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

func (*ResourcesBuildingsPatchCall) Context Uses

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

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

func (*ResourcesBuildingsPatchCall) Do Uses

func (c *ResourcesBuildingsPatchCall) Do(opts ...googleapi.CallOption) (*Building, error)

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

func (*ResourcesBuildingsPatchCall) Fields Uses

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

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

func (*ResourcesBuildingsPatchCall) Header Uses

func (c *ResourcesBuildingsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ResourcesBuildingsService Uses

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

func NewResourcesBuildingsService Uses

func NewResourcesBuildingsService(s *Service) *ResourcesBuildingsService

func (*ResourcesBuildingsService) Delete Uses

func (r *ResourcesBuildingsService) Delete(customer string, buildingId string) *ResourcesBuildingsDeleteCall

Delete: Deletes a building.

func (*ResourcesBuildingsService) Get Uses

func (r *ResourcesBuildingsService) Get(customer string, buildingId string) *ResourcesBuildingsGetCall

Get: Retrieves a building.

func (*ResourcesBuildingsService) Insert Uses

func (r *ResourcesBuildingsService) Insert(customer string, building *Building) *ResourcesBuildingsInsertCall

Insert: Inserts a building.

func (*ResourcesBuildingsService) List Uses

func (r *ResourcesBuildingsService) List(customer string) *ResourcesBuildingsListCall

List: Retrieves a list of buildings for an account.

func (*ResourcesBuildingsService) Patch Uses

func (r *ResourcesBuildingsService) Patch(customer string, buildingId string, building *Building) *ResourcesBuildingsPatchCall

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

func (*ResourcesBuildingsService) Update Uses

func (r *ResourcesBuildingsService) Update(customer string, buildingId string, building *Building) *ResourcesBuildingsUpdateCall

Update: Updates a building.

type ResourcesBuildingsUpdateCall Uses

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

func (*ResourcesBuildingsUpdateCall) Context Uses

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

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

func (*ResourcesBuildingsUpdateCall) Do Uses

func (c *ResourcesBuildingsUpdateCall) Do(opts ...googleapi.CallOption) (*Building, error)

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

func (*ResourcesBuildingsUpdateCall) Fields Uses

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

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

func (*ResourcesBuildingsUpdateCall) Header Uses

func (c *ResourcesBuildingsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ResourcesCalendarsDeleteCall Uses

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

func (*ResourcesCalendarsDeleteCall) Context Uses

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

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

func (*ResourcesCalendarsDeleteCall) Do Uses

func (c *ResourcesCalendarsDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*ResourcesCalendarsDeleteCall) Fields Uses

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

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

func (*ResourcesCalendarsDeleteCall) Header Uses

func (c *ResourcesCalendarsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ResourcesCalendarsGetCall Uses

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

func (*ResourcesCalendarsGetCall) Context Uses

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

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

func (*ResourcesCalendarsGetCall) Do Uses

func (c *ResourcesCalendarsGetCall) Do(opts ...googleapi.CallOption) (*CalendarResource, error)

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

func (*ResourcesCalendarsGetCall) Fields Uses

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

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

func (*ResourcesCalendarsGetCall) Header Uses

func (c *ResourcesCalendarsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ResourcesCalendarsGetCall) IfNoneMatch Uses

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

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

type ResourcesCalendarsInsertCall Uses

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

func (*ResourcesCalendarsInsertCall) Context Uses

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

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

func (*ResourcesCalendarsInsertCall) Do Uses

func (c *ResourcesCalendarsInsertCall) Do(opts ...googleapi.CallOption) (*CalendarResource, error)

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

func (*ResourcesCalendarsInsertCall) Fields Uses

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

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

func (*ResourcesCalendarsInsertCall) Header Uses

func (c *ResourcesCalendarsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ResourcesCalendarsListCall Uses

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

func (*ResourcesCalendarsListCall) Context Uses

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

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

func (*ResourcesCalendarsListCall) Do Uses

func (c *ResourcesCalendarsListCall) Do(opts ...googleapi.CallOption) (*CalendarResources, error)

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

func (*ResourcesCalendarsListCall) Fields Uses

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

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

func (*ResourcesCalendarsListCall) Header Uses

func (c *ResourcesCalendarsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ResourcesCalendarsListCall) IfNoneMatch Uses

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

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

func (*ResourcesCalendarsListCall) MaxResults Uses

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

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

func (*ResourcesCalendarsListCall) OrderBy Uses

func (c *ResourcesCalendarsListCall) OrderBy(orderBy string) *ResourcesCalendarsListCall

OrderBy sets the optional parameter "orderBy": Field(s) to sort results by in either ascending or descending order. Supported fields include resourceId, resourceName, capacity, buildingId, and floorName. If no order is specified, defaults to ascending. Should be of the form "field [asc|desc], field [asc|desc], ...". For example buildingId, capacity desc would return results sorted first by buildingId in ascending order then by capacity in descending order.

func (*ResourcesCalendarsListCall) PageToken Uses

func (c *ResourcesCalendarsListCall) PageToken(pageToken string) *ResourcesCalendarsListCall

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

func (*ResourcesCalendarsListCall) Pages Uses

func (c *ResourcesCalendarsListCall) Pages(ctx context.Context, f func(*CalendarResources) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*ResourcesCalendarsListCall) Query Uses

func (c *ResourcesCalendarsListCall) Query(query string) *ResourcesCalendarsListCall

Query sets the optional parameter "query": String query used to filter results. Should be of the form "field operator value" where field can be any of supported fields and operators can be any of supported operations. Operators include '=' for exact match and ':' for prefix match or HAS match where applicable. For prefix match, the value should always be followed by a *. Supported fields include generatedResourceName, name, buildingId, featureInstances.feature.name. For example buildingId=US-NYC-9TH AND featureInstances.feature.name:Phone.

type ResourcesCalendarsPatchCall Uses

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

func (*ResourcesCalendarsPatchCall) Context Uses

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

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

func (*ResourcesCalendarsPatchCall) Do Uses

func (c *ResourcesCalendarsPatchCall) Do(opts ...googleapi.CallOption) (*CalendarResource, error)

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

func (*ResourcesCalendarsPatchCall) Fields Uses

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

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

func (*ResourcesCalendarsPatchCall) Header Uses

func (c *ResourcesCalendarsPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ResourcesCalendarsService Uses

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

func NewResourcesCalendarsService Uses

func NewResourcesCalendarsService(s *Service) *ResourcesCalendarsService

func (*ResourcesCalendarsService) Delete Uses

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

Delete: Deletes a calendar resource.

func (*ResourcesCalendarsService) Get Uses

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

Get: Retrieves a calendar resource.

func (*ResourcesCalendarsService) Insert Uses

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

Insert: Inserts a calendar resource.

func (*ResourcesCalendarsService) List Uses

func (r *ResourcesCalendarsService) List(customer string) *ResourcesCalendarsListCall

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

func (*ResourcesCalendarsService) Patch Uses

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

Patch: Updates a calendar resource.

This method supports patch semantics, meaning you only need to include the fields you wish to update. Fields that are not present in the request will be preserved. This method supports patch semantics.

func (*ResourcesCalendarsService) Update Uses

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

Update: Updates a calendar resource.

This method supports patch semantics, meaning you only need to include the fields you wish to update. Fields that are not present in the request will be preserved.

type ResourcesCalendarsUpdateCall Uses

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

func (*ResourcesCalendarsUpdateCall) Context Uses

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

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

func (*ResourcesCalendarsUpdateCall) Do Uses

func (c *ResourcesCalendarsUpdateCall) Do(opts ...googleapi.CallOption) (*CalendarResource, error)

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

func (*ResourcesCalendarsUpdateCall) Fields Uses

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

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

func (*ResourcesCalendarsUpdateCall) Header Uses

func (c *ResourcesCalendarsUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ResourcesFeaturesDeleteCall Uses

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

func (*ResourcesFeaturesDeleteCall) Context Uses

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

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

func (*ResourcesFeaturesDeleteCall) Do Uses

func (c *ResourcesFeaturesDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*ResourcesFeaturesDeleteCall) Fields Uses

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

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

func (*ResourcesFeaturesDeleteCall) Header Uses

func (c *ResourcesFeaturesDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ResourcesFeaturesGetCall Uses

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

func (*ResourcesFeaturesGetCall) Context Uses

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

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

func (*ResourcesFeaturesGetCall) Do Uses

func (c *ResourcesFeaturesGetCall) Do(opts ...googleapi.CallOption) (*Feature, error)

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

func (*ResourcesFeaturesGetCall) Fields Uses

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

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

func (*ResourcesFeaturesGetCall) Header Uses

func (c *ResourcesFeaturesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ResourcesFeaturesGetCall) IfNoneMatch Uses

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

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

type ResourcesFeaturesInsertCall Uses

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

func (*ResourcesFeaturesInsertCall) Context Uses

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

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

func (*ResourcesFeaturesInsertCall) Do Uses

func (c *ResourcesFeaturesInsertCall) Do(opts ...googleapi.CallOption) (*Feature, error)

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

func (*ResourcesFeaturesInsertCall) Fields Uses

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

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

func (*ResourcesFeaturesInsertCall) Header Uses

func (c *ResourcesFeaturesInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ResourcesFeaturesListCall Uses

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

func (*ResourcesFeaturesListCall) Context Uses

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

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

func (*ResourcesFeaturesListCall) Do Uses

func (c *ResourcesFeaturesListCall) Do(opts ...googleapi.CallOption) (*Features, error)

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

func (*ResourcesFeaturesListCall) Fields Uses

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

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

func (*ResourcesFeaturesListCall) Header Uses

func (c *ResourcesFeaturesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*ResourcesFeaturesListCall) IfNoneMatch Uses

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

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

func (*ResourcesFeaturesListCall) MaxResults Uses

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

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

func (*ResourcesFeaturesListCall) PageToken Uses

func (c *ResourcesFeaturesListCall) PageToken(pageToken string) *ResourcesFeaturesListCall

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

func (*ResourcesFeaturesListCall) Pages Uses

func (c *ResourcesFeaturesListCall) Pages(ctx context.Context, f func(*Features) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type ResourcesFeaturesPatchCall Uses

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

func (*ResourcesFeaturesPatchCall) Context Uses

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

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

func (*ResourcesFeaturesPatchCall) Do Uses

func (c *ResourcesFeaturesPatchCall) Do(opts ...googleapi.CallOption) (*Feature, error)

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

func (*ResourcesFeaturesPatchCall) Fields Uses

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

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

func (*ResourcesFeaturesPatchCall) Header Uses

func (c *ResourcesFeaturesPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ResourcesFeaturesRenameCall Uses

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

func (*ResourcesFeaturesRenameCall) Context Uses

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

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

func (*ResourcesFeaturesRenameCall) Do Uses

func (c *ResourcesFeaturesRenameCall) Do(opts ...googleapi.CallOption) error

Do executes the "directory.resources.features.rename" call.

func (*ResourcesFeaturesRenameCall) Fields Uses

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

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

func (*ResourcesFeaturesRenameCall) Header Uses

func (c *ResourcesFeaturesRenameCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ResourcesFeaturesService Uses

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

func NewResourcesFeaturesService Uses

func NewResourcesFeaturesService(s *Service) *ResourcesFeaturesService

func (*ResourcesFeaturesService) Delete Uses

func (r *ResourcesFeaturesService) Delete(customer string, featureKey string) *ResourcesFeaturesDeleteCall

Delete: Deletes a feature.

func (*ResourcesFeaturesService) Get Uses

func (r *ResourcesFeaturesService) Get(customer string, featureKey string) *ResourcesFeaturesGetCall

Get: Retrieves a feature.

func (*ResourcesFeaturesService) Insert Uses

func (r *ResourcesFeaturesService) Insert(customer string, feature *Feature) *ResourcesFeaturesInsertCall

Insert: Inserts a feature.

func (*ResourcesFeaturesService) List Uses

func (r *ResourcesFeaturesService) List(customer string) *ResourcesFeaturesListCall

List: Retrieves a list of features for an account.

func (*ResourcesFeaturesService) Patch Uses

func (r *ResourcesFeaturesService) Patch(customer string, featureKey string, feature *Feature) *ResourcesFeaturesPatchCall

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

func (*ResourcesFeaturesService) Rename Uses

func (r *ResourcesFeaturesService) Rename(customer string, oldName string, featurerename *FeatureRename) *ResourcesFeaturesRenameCall

Rename: Renames a feature.

func (*ResourcesFeaturesService) Update Uses

func (r *ResourcesFeaturesService) Update(customer string, featureKey string, feature *Feature) *ResourcesFeaturesUpdateCall

Update: Updates a feature.

type ResourcesFeaturesUpdateCall Uses

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

func (*ResourcesFeaturesUpdateCall) Context Uses

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

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

func (*ResourcesFeaturesUpdateCall) Do Uses

func (c *ResourcesFeaturesUpdateCall) Do(opts ...googleapi.CallOption) (*Feature, error)

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

func (*ResourcesFeaturesUpdateCall) Fields Uses

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

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

func (*ResourcesFeaturesUpdateCall) Header Uses

func (c *ResourcesFeaturesUpdateCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type ResourcesService Uses

type ResourcesService struct {
    Buildings *ResourcesBuildingsService

    Calendars *ResourcesCalendarsService

    Features *ResourcesFeaturesService
    // contains filtered or unexported fields
}

func NewResourcesService Uses

func NewResourcesService(s *Service) *ResourcesService

type Role Uses

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

Role: JSON template for role resource in Directory API.

func (*Role) MarshalJSON Uses

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

type RoleAssignment Uses

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

RoleAssignment: JSON template for roleAssignment resource in Directory API.

func (*RoleAssignment) MarshalJSON Uses

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

type RoleAssignments Uses

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

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

func (*RoleAssignments) MarshalJSON Uses

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

type RoleAssignmentsDeleteCall Uses

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

func (*RoleAssignmentsDeleteCall) Context Uses

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

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

func (*RoleAssignmentsDeleteCall) Do Uses

func (c *RoleAssignmentsDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*RoleAssignmentsDeleteCall) Fields Uses

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

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

func (*RoleAssignmentsDeleteCall) Header Uses

func (c *RoleAssignmentsDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type RoleAssignmentsGetCall Uses

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

func (*RoleAssignmentsGetCall) Context Uses

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

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

func (*RoleAssignmentsGetCall) Do Uses

func (c *RoleAssignmentsGetCall) Do(opts ...googleapi.CallOption) (*RoleAssignment, error)

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

func (*RoleAssignmentsGetCall) Fields Uses

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

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

func (*RoleAssignmentsGetCall) Header Uses

func (c *RoleAssignmentsGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*RoleAssignmentsGetCall) IfNoneMatch Uses

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

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

type RoleAssignmentsInsertCall Uses

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

func (*RoleAssignmentsInsertCall) Context Uses

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

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

func (*RoleAssignmentsInsertCall) Do Uses

func (c *RoleAssignmentsInsertCall) Do(opts ...googleapi.CallOption) (*RoleAssignment, error)

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

func (*RoleAssignmentsInsertCall) Fields Uses

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

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

func (*RoleAssignmentsInsertCall) Header Uses

func (c *RoleAssignmentsInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type RoleAssignmentsListCall Uses

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

func (*RoleAssignmentsListCall) Context Uses

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

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

func (*RoleAssignmentsListCall) Do Uses

func (c *RoleAssignmentsListCall) Do(opts ...googleapi.CallOption) (*RoleAssignments, error)

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

func (*RoleAssignmentsListCall) Fields Uses

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

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

func (*RoleAssignmentsListCall) Header Uses

func (c *RoleAssignmentsListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*RoleAssignmentsListCall) IfNoneMatch Uses

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

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

func (*RoleAssignmentsListCall) MaxResults Uses

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

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

func (*RoleAssignmentsListCall) PageToken Uses

func (c *RoleAssignmentsListCall) PageToken(pageToken string) *RoleAssignmentsListCall

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

func (*RoleAssignmentsListCall) Pages Uses

func (c *RoleAssignmentsListCall) Pages(ctx context.Context, f func(*RoleAssignments) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

func (*RoleAssignmentsListCall) RoleId Uses

func (c *RoleAssignmentsListCall) RoleId(roleId string) *RoleAssignmentsListCall

RoleId sets the optional parameter "roleId": Immutable ID of a role. If included in the request, returns only role assignments containing this role ID.

func (*RoleAssignmentsListCall) UserKey Uses

func (c *RoleAssignmentsListCall) UserKey(userKey string) *RoleAssignmentsListCall

UserKey sets the optional parameter "userKey": The user's primary email address, alias email address, or unique user ID. If included in the request, returns role assignments only for this user.

type RoleAssignmentsService Uses

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

func NewRoleAssignmentsService Uses

func NewRoleAssignmentsService(s *Service) *RoleAssignmentsService

func (*RoleAssignmentsService) Delete Uses

func (r *RoleAssignmentsService) Delete(customer string, roleAssignmentId string) *RoleAssignmentsDeleteCall

Delete: Deletes a role assignment.

func (*RoleAssignmentsService) Get Uses

func (r *RoleAssignmentsService) Get(customer string, roleAssignmentId string) *RoleAssignmentsGetCall

Get: Retrieve a role assignment.

func (*RoleAssignmentsService) Insert Uses

func (r *RoleAssignmentsService) Insert(customer string, roleassignment *RoleAssignment) *RoleAssignmentsInsertCall

Insert: Creates a role assignment.

func (*RoleAssignmentsService) List Uses

func (r *RoleAssignmentsService) List(customer string) *RoleAssignmentsListCall

List: Retrieves a paginated list of all roleAssignments.

type RoleRolePrivileges Uses

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 (*RoleRolePrivileges) MarshalJSON Uses

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

type Roles Uses

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

Roles: JSON response template for List roles operation in Directory API.

func (*Roles) MarshalJSON Uses

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

type RolesDeleteCall Uses

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

func (*RolesDeleteCall) Context Uses

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

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

func (*RolesDeleteCall) Do Uses

func (c *RolesDeleteCall) Do(opts ...googleapi.CallOption) error

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

func (*RolesDeleteCall) Fields Uses

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

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

func (*RolesDeleteCall) Header Uses

func (c *RolesDeleteCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type RolesGetCall Uses

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

func (*RolesGetCall) Context Uses

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

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

func (*RolesGetCall) Do Uses

func (c *RolesGetCall) Do(opts ...googleapi.CallOption) (*Role, error)

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

func (*RolesGetCall) Fields Uses

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

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

func (*RolesGetCall) Header Uses

func (c *RolesGetCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*RolesGetCall) IfNoneMatch Uses

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

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

type RolesInsertCall Uses

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

func (*RolesInsertCall) Context Uses

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

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

func (*RolesInsertCall) Do Uses

func (c *RolesInsertCall) Do(opts ...googleapi.CallOption) (*Role, error)

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

func (*RolesInsertCall) Fields Uses

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

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

func (*RolesInsertCall) Header Uses

func (c *RolesInsertCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type RolesListCall Uses

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

func (*RolesListCall) Context Uses

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

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

func (*RolesListCall) Do Uses

func (c *RolesListCall) Do(opts ...googleapi.CallOption) (*Roles, error)

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

func (*RolesListCall) Fields Uses

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

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

func (*RolesListCall) Header Uses

func (c *RolesListCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

func (*RolesListCall) IfNoneMatch Uses

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

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

func (*RolesListCall) MaxResults Uses

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

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

func (*RolesListCall) PageToken Uses

func (c *RolesListCall) PageToken(pageToken string) *RolesListCall

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

func (*RolesListCall) Pages Uses

func (c *RolesListCall) Pages(ctx context.Context, f func(*Roles) error) error

Pages invokes f for each page of results. A non-nil error returned from f will halt the iteration. The provided context supersedes any context provided to the Context method.

type RolesPatchCall Uses

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

func (*RolesPatchCall) Context Uses

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

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

func (*RolesPatchCall) Do Uses

func (c *RolesPatchCall) Do(opts ...googleapi.CallOption) (*Role, error)

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

func (*RolesPatchCall) Fields Uses

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

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

func (*RolesPatchCall) Header Uses

func (c *RolesPatchCall) Header() http.Header

Header returns an http.Header that can be modified by the caller to add HTTP headers to the request.

type RolesService Uses

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

func NewRolesService Uses

func NewRolesService(s *Service) *RolesService

func (*RolesService)