Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Group ¶
type Group struct {
ID string
// DisplayName is the human-readable name of the group. Normally the plaintext name that the
// user provided when they created the group, or the updated name if it was changed.
// Ex: displayName: "My Group"
DisplayName string
// IsTeam is true if the group qualifies as a Teams resource, and is able to backup and restore
// teams data.
IsTeam bool
}
Group is the minimal information required to identify and display a M365 Group.
type Site ¶
type Site struct {
// WebURL is the url for the site, works as an alias for the user name.
WebURL string
// ID is of the format: <site collection hostname>.<site collection unique id>.<site unique id>
// for example: contoso.sharepoint.com,abcdeab3-0ccc-4ce1-80ae-b32912c9468d,xyzud296-9f7c-44e1-af81-3c06d0d43007
ID string
// DisplayName is the human-readable name of the site. Normally the plaintext name that the
// user provided when they created the site, though it can be changed across time.
// Ex: webUrl: https://host.com/sites/TestingSite, displayName: "Testing Site"
DisplayName string
OwnerType SiteOwnerType
// OwnerID may or may not contain the site owner's ID.
// Requires:
// * a discoverable site owner type
// * getByID (the drive expansion doesn't work on paginated data)
// * lucky chance (not all responses contain an owner ID)
OwnerID string
// OwnerEmail may or may not contain the site owner's email.
OwnerEmail string
}
Site is the minimal information required to identify and display a SharePoint site.
type SiteOwnerType ¶
type SiteOwnerType string
const ( SiteOwnerUnknown SiteOwnerType = "unknown" SiteOwnerUser SiteOwnerType = "user" SiteOwnerGroup SiteOwnerType = "group" )
type UserNoInfo ¶
UserNoInfo is the minimal information required to identify and display a user. TODO(pandeyabs): Rename this to User now that `Info` support has been removed.