Documentation ¶
Index ¶
- Constants
- type AzureADAppRegistration
- type AzureADAuthFlowContext
- type EdmDotStream
- type MicrosoftEndPoints
- func (e *MicrosoftEndPoints) GetAzureADAuthorizeEndPointURL() string
- func (e *MicrosoftEndPoints) GetMicrosoftGraphAPIEndPointURL() string
- func (e *MicrosoftEndPoints) PostAzureADTokenEndPointURL() string
- func (e *MicrosoftEndPoints) Set(input *MicrosoftEndPoints) error
- func (e *MicrosoftEndPoints) UseMicrosoftGraphAPIEndPointURL(str string) string
- type MicrosoftGraphAPI
- func (api *MicrosoftGraphAPI) GetMicrosoftGraphAPIToken() error
- func (api *MicrosoftGraphAPI) RefreshMicrosoftGraphAPIToken() error
- func (api *MicrosoftGraphAPI) UseMicrosoftGraphAPIGet(str string) ([]byte, error)
- func (api *MicrosoftGraphAPI) UseMicrosoftGraphAPIPost(str string, payload io.Reader) ([]byte, error)
- func (api *MicrosoftGraphAPI) UseMicrosoftGraphAPIPut(str string, payload io.Reader) ([]byte, error)
- type MicrosoftGraphAPIToken
- type MicrosoftGraphAudio
- type MicrosoftGraphBaseItem
- type MicrosoftGraphCommentAction
- type MicrosoftGraphContentTypeInfo
- type MicrosoftGraphCreateAction
- type MicrosoftGraphDeleteAction
- type MicrosoftGraphDeleted
- type MicrosoftGraphDrive
- type MicrosoftGraphDriveItem
- type MicrosoftGraphDriveItemCollection
- type MicrosoftGraphDriveItemUploadableProperties
- type MicrosoftGraphDriveItemVersion
- type MicrosoftGraphEditAction
- type MicrosoftGraphFieldValueSet
- type MicrosoftGraphFile
- type MicrosoftGraphFileSystemInfo
- type MicrosoftGraphFolder
- type MicrosoftGraphFolderView
- type MicrosoftGraphGEOCoordinates
- type MicrosoftGraphHashes
- type MicrosoftGraphIdentity
- type MicrosoftGraphIdentitySet
- type MicrosoftGraphImage
- type MicrosoftGraphItemActionSet
- type MicrosoftGraphItemActivity
- type MicrosoftGraphItemReference
- type MicrosoftGraphListItem
- type MicrosoftGraphListItemVersion
- type MicrosoftGraphMalware
- type MicrosoftGraphMentionAction
- type MicrosoftGraphMoveAction
- type MicrosoftGraphPackage
- type MicrosoftGraphPermission
- type MicrosoftGraphPhoto
- type MicrosoftGraphPublicationFacet
- type MicrosoftGraphQuota
- type MicrosoftGraphRemoteItem
- type MicrosoftGraphRenameAction
- type MicrosoftGraphRestoreAction
- type MicrosoftGraphRoot
- type MicrosoftGraphSearchResult
- type MicrosoftGraphShareAction
- type MicrosoftGraphShared
- type MicrosoftGraphSharepointIDs
- type MicrosoftGraphSharingInvitation
- type MicrosoftGraphSharingLink
- type MicrosoftGraphSpecialFolder
- type MicrosoftGraphSystemFacet
- type MicrosoftGraphThumbnail
- type MicrosoftGraphThumbnailSet
- type MicrosoftGraphUploadSession
- type MicrosoftGraphVersionAction
- type MicrosoftGraphVideo
- type MicrosoftGraphitemActivityTimeSet
- type NewMicrosoftGraphAPIInput
- type ODataError
Constants ¶
const ( AtMicrosoftGraphDownloadURLAvailableSafePeriod = int64(3300) AtMicrosoftGraphDownloadURLAvailablePeriod = int64(3600) )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureADAppRegistration ¶
type AzureADAppRegistration struct { DisplayName *string `json:"displayName,omitempty"` ClientID string `json:"clientId"` TenantID *string `json:"tenantId,omitempty"` ObjectID *string `json:"objectId,omitempty"` RedirectURIs []string `json:"redirectUris"` LogoutURL *string `json:"logoutUrl,omitempty"` ClientSecret string `json:"clientSecret"` }
func (*AzureADAppRegistration) Set ¶
func (r *AzureADAppRegistration) Set(input *AzureADAppRegistration) error
type AzureADAuthFlowContext ¶
type AzureADAuthFlowContext struct { GrantScope string `json:"grantScope"` StateID *string `json:"stateId,omitempty"` Code *string `json:"code,omitempty"` RefreshToken *string `json:"refreshToken,omitempty"` }
func (*AzureADAuthFlowContext) Set ¶
func (c *AzureADAuthFlowContext) Set(input *AzureADAuthFlowContext) error
func (*AzureADAuthFlowContext) SetRefreshToken ¶
func (c *AzureADAuthFlowContext) SetRefreshToken(input *string) error
type MicrosoftEndPoints ¶
type MicrosoftEndPoints struct { AzureADPortalEndPointURL *string `json:"azureAdPortalEndPointUrl,omitempty"` AzureADEndPointURL string `json:"azureAdEndPointUrl"` MicrosoftGraphAPIEndPointURL string `json:"microsoftgraphApiEndPointUrl"` }
func (*MicrosoftEndPoints) GetAzureADAuthorizeEndPointURL ¶
func (e *MicrosoftEndPoints) GetAzureADAuthorizeEndPointURL() string
func (*MicrosoftEndPoints) GetMicrosoftGraphAPIEndPointURL ¶
func (e *MicrosoftEndPoints) GetMicrosoftGraphAPIEndPointURL() string
func (*MicrosoftEndPoints) PostAzureADTokenEndPointURL ¶
func (e *MicrosoftEndPoints) PostAzureADTokenEndPointURL() string
func (*MicrosoftEndPoints) Set ¶
func (e *MicrosoftEndPoints) Set(input *MicrosoftEndPoints) error
func (*MicrosoftEndPoints) UseMicrosoftGraphAPIEndPointURL ¶
func (e *MicrosoftEndPoints) UseMicrosoftGraphAPIEndPointURL(str string) string
type MicrosoftGraphAPI ¶
type MicrosoftGraphAPI struct { MicrosoftEndPoints MicrosoftEndPoints `json:"microsoftEndPoints"` AzureADAppRegistration AzureADAppRegistration `json:"azureAdAppRegistration"` AzureADAuthFlowContext AzureADAuthFlowContext `json:"azureAdAuthFlowContext"` MicrosoftGraphAPIToken *MicrosoftGraphAPIToken `json:"microsoftGraphApiToken,omitempty"` }
func NewMicrosoftGraphAPI ¶
func NewMicrosoftGraphAPI(input *NewMicrosoftGraphAPIInput) (*MicrosoftGraphAPI, error)
NewMicrosoftGraphAPI validates NewMicrosoftGraphAPIInput and assigns to api
func (*MicrosoftGraphAPI) GetMicrosoftGraphAPIToken ¶
func (api *MicrosoftGraphAPI) GetMicrosoftGraphAPIToken() error
func (*MicrosoftGraphAPI) RefreshMicrosoftGraphAPIToken ¶
func (api *MicrosoftGraphAPI) RefreshMicrosoftGraphAPIToken() error
func (*MicrosoftGraphAPI) UseMicrosoftGraphAPIGet ¶
func (api *MicrosoftGraphAPI) UseMicrosoftGraphAPIGet(str string) ([]byte, error)
func (*MicrosoftGraphAPI) UseMicrosoftGraphAPIPost ¶
func (*MicrosoftGraphAPI) UseMicrosoftGraphAPIPut ¶
type MicrosoftGraphAPIToken ¶
type MicrosoftGraphAPIToken struct { TokenType string `json:"token_type"` ExpiresIn int32 `json:"expires_in"` ExtExpiresIn *int32 `json:"ext_expires_in,omitempty"` Scope string `json:"scope"` AccessToken string `json:"access_token"` RefreshToken *string `json:"refresh_token,omitempty"` }
func (*MicrosoftGraphAPIToken) GetAuthorizationString ¶
func (t *MicrosoftGraphAPIToken) GetAuthorizationString() string
func (*MicrosoftGraphAPIToken) Set ¶
func (t *MicrosoftGraphAPIToken) Set(input *MicrosoftGraphAPIToken) error
type MicrosoftGraphAudio ¶
type MicrosoftGraphAudio struct { Album string `json:"album"` AlbumArtist string `json:"albumArtist"` Artist string `json:"artist"` Bitrate int64 `json:"bitrate"` Composers string `json:"composers"` Copyright string `json:"copyright"` Disc int16 `json:"disc"` DiscCount int16 `json:"discCount"` Duration int64 `json:"duration"` Genre string `json:"genre"` HasDRM bool `json:"hasDrm"` IsVariableBitrate bool `json:"isVariableBitrate"` Title string `json:"title"` Track int32 `json:"track"` TrackCount int32 `json:"trackCount"` Year int32 `json:"year"` }
MicrosoftGraphAudio "@odata.type": "microsoft.graph.audio"
type MicrosoftGraphBaseItem ¶
type MicrosoftGraphBaseItem struct { ID string `json:"id"` // identifier CreatedBy *MicrosoftGraphIdentitySet `json:"createdBy,omitempty"` CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` Description *string `json:"description,omitempty"` ETag string `json:"eTag"` LastModifiedBy *MicrosoftGraphIdentitySet `json:"lastModifiedBy,omitempty"` LastModifiedDateTime time.Time `json:"lastModifiedDateTime"` Name string `json:"name"` ParentReference *MicrosoftGraphItemReference `json:"parentReference,omitempty"` WebURL string `json:"webUrl"` }
MicrosoftGraphBaseItem "@odata.type": "microsoft.graph.baseItem"
type MicrosoftGraphCommentAction ¶
type MicrosoftGraphCommentAction struct { IsReply bool `json:"isReply"` ParentAuthor *MicrosoftGraphIdentitySet `json:"parentAuthor,omitempty"` Participants []MicrosoftGraphIdentitySet `json:"participants,omitempty"` }
MicrosoftGraphCommentAction "@odata.type": "microsoft.graph.commentAction"
type MicrosoftGraphContentTypeInfo ¶
MicrosoftGraphContentTypeInfo "@odata.type": "microsoft.graph.contentTypeInfo"
type MicrosoftGraphCreateAction ¶
type MicrosoftGraphCreateAction struct { }
MicrosoftGraphCreateAction "@odata.type": "microsoft.graph.createAction"
type MicrosoftGraphDeleteAction ¶
type MicrosoftGraphDeleteAction struct { Name string `json:"name"` ObjectType string `json:"objectType"` // File, Folder }
MicrosoftGraphDeleteAction "@odata.type": "microsoft.graph.deleteAction"
type MicrosoftGraphDeleted ¶
type MicrosoftGraphDeleted struct {
State string `json:"state"`
}
MicrosoftGraphDeleted "@odata.type": "microsoft.graph.deleted"
type MicrosoftGraphDrive ¶
type MicrosoftGraphDrive struct { Activities []MicrosoftGraphItemActivity `json:"activities,omitempty"` ID string `json:"id"` // identifier CreatedBy *MicrosoftGraphIdentitySet `json:"createdBy,omitempty"` CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` Description *string `json:"description,omitempty"` DriveType string `json:"driveType"` // personal, business, documentLibrary Items []MicrosoftGraphDriveItem `json:"items,omitempty"` LastModifiedBy *MicrosoftGraphIdentitySet `json:"lastModifiedBy,omitempty"` LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` Name string `json:"name"` Owner *MicrosoftGraphIdentitySet `json:"owner,omitempty"` Quota *MicrosoftGraphQuota `json:"quota,omitempty"` Root *MicrosoftGraphDriveItem `json:"root,omitempty"` Special []MicrosoftGraphDriveItem `json:"special,omitempty"` System *MicrosoftGraphSystemFacet `json:"system,omitempty"` WebURL string `json:"webUrl"` }
MicrosoftGraphDrive "@odata.type": "microsoft.graph.drive"
type MicrosoftGraphDriveItem ¶
type MicrosoftGraphDriveItem struct { Audio *MicrosoftGraphAudio `json:"audio,omitempty"` Content *EdmDotStream `json:"content,omitempty"` CTag string `json:"cTag"` // etag Deleted *MicrosoftGraphDeleted `json:"deleted,omitempty"` Description *string `json:"description,omitempty"` File *MicrosoftGraphFile `json:"file,omitempty"` FileSystemInfo *MicrosoftGraphFileSystemInfo `json:"fileSystemInfo,omitempty"` Folder *MicrosoftGraphFolder `json:"folder,omitempty"` Image *MicrosoftGraphImage `json:"image,omitempty"` Location *MicrosoftGraphGEOCoordinates `json:"location,omitempty"` Malware *MicrosoftGraphMalware `json:"malware,omitempty"` Package *MicrosoftGraphPackage `json:"package,omitempty"` Photo *MicrosoftGraphPhoto `json:"photo,omitempty"` Publication *MicrosoftGraphPublicationFacet `json:"publication,omitempty"` RemoteItem *MicrosoftGraphRemoteItem `json:"remoteItem,omitempty"` Root *MicrosoftGraphRoot `json:"root,omitempty"` SearchResult *MicrosoftGraphSearchResult `json:"searchResult,omitempty"` Size int64 `json:"size"` SpecialFolder *MicrosoftGraphSpecialFolder `json:"specialFolder,omitempty"` Video *MicrosoftGraphVideo `json:"video,omitempty"` WebDavURL *string `json:"webDavUrl,omitempty"` /* relationships */ Activities []MicrosoftGraphItemActivity `json:"activities,omitempty"` Children []MicrosoftGraphDriveItem `json:"children,omitempty"` Permissions []MicrosoftGraphPermission `json:"permissions,omitempty"` Thumbnails []MicrosoftGraphThumbnailSet `json:"thumbnails,omitempty"` Versions []MicrosoftGraphDriveItemVersion `json:"versions,omitempty"` /* inherited from baseItem */ ID string `json:"id"` // identifier CreatedBy *MicrosoftGraphIdentitySet `json:"createdBy,omitempty"` CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` ETag string `json:"eTag"` LastModifiedBy *MicrosoftGraphIdentitySet `json:"lastModifiedBy,omitempty"` LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` Name string `json:"name"` ParentReference *MicrosoftGraphItemReference `json:"parentReference,omitempty"` WebURL string `json:"webUrl"` /* instance annotations */ AtMicrosoftGraphConflictBehavior *string `json:"@microsoft.graph.conflictBehavior,omitempty"` AtMicrosoftGraphDownloadURL *string `json:"@microsoft.graph.downloadUrl,omitempty"` AtMicrosoftGraphSourceURL *string `json:"@microsoft.graph.sourceUrl,omitempty"` /* more */ AtOdataContext *string `json:"@odata.context,omitempty"` AtOdataType *string `json:"@odata.type,omitempty"` AtOdataID *string `json:"@odata.id,omitempty"` AtOdataEditLink *string `json:"@odata.editLink,omitempty"` AtContentDownloadURL *string `json:"@content.downloadUrl,omitempty"` }
MicrosoftGraphDriveItem "@odata.type": "microsoft.graph.driveItem"
type MicrosoftGraphDriveItemCollection ¶
type MicrosoftGraphDriveItemCollection struct { Value []MicrosoftGraphDriveItem `json:"value"` AtODataDeltaLink *string `json:"@odata.deltaLink,omitempty"` AtODataNextLink *string `json:"@odata.nextLink,omitempty"` }
MicrosoftGraphDriveItemCollection "@odata.type": "microsoft.graph.driveItemCollection"
type MicrosoftGraphDriveItemUploadableProperties ¶
type MicrosoftGraphDriveItemUploadableProperties struct { Description *string `json:"description,omitempty"` FileSize *int64 `json:"fileSize"` FileSystemInfo *MicrosoftGraphFileSystemInfo `json:"fileSystemInfo,omitempty"` Name string `json:"name"` AtMicrosoftGraphConflictBehavior *string `json:"@microsoft.graph.conflictBehavior"` // rename, fail, replace AtMicrosoftGraphSourceURL *string `json:"@microsoft.graph.sourceUrl"` }
MicrosoftGraphDriveItemUploadableProperties "@odata.type": "microsoft.graph.driveItemUploadableProperties"
type MicrosoftGraphDriveItemVersion ¶
type MicrosoftGraphDriveItemVersion struct { Content *EdmDotStream `json:"content,omitempty"` ID string `json:"id"` LastModifiedBy *MicrosoftGraphIdentitySet `json:"lastModifiedBy,omitempty"` LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` Publication *MicrosoftGraphPublicationFacet `json:"publication,omitempty"` Height int32 `json:"height"` }
MicrosoftGraphDriveItemVersion "@odata.type": "microsoft.graph.driveItemVersion"
type MicrosoftGraphEditAction ¶
type MicrosoftGraphEditAction struct { }
MicrosoftGraphEditAction "@odata.type": "microsoft.graph.editAction"
type MicrosoftGraphFieldValueSet ¶
type MicrosoftGraphFieldValueSet struct { Author string `json:"Author"` AuthorLookupID string `json:"AuthorLookupId"` Name string `json:"Name"` Color string `json:"Color"` Quantity int32 `json:"Quantity"` }
MicrosoftGraphFieldValueSet "@odata.type": "microsoft.graph.fieldValueSet"
type MicrosoftGraphFile ¶
type MicrosoftGraphFile struct { Hashes *MicrosoftGraphHashes `json:"hashes,omitempty"` MimeType string `json:"mimeType"` IRMEnabled *bool `json:"irmEnabled,omitempty"` ProcessingMetadata *bool `json:"processingMetadata,omitempty"` }
MicrosoftGraphFile "@odata.type": "microsoft.graph.file"
type MicrosoftGraphFileSystemInfo ¶
type MicrosoftGraphFileSystemInfo struct { CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` LastAccessedDateTime *time.Time `json:"lastAccessedDateTime,omitempty"` LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` }
MicrosoftGraphFileSystemInfo "@odata.type": "microsoft.graph.fileSystemInfo"
type MicrosoftGraphFolder ¶
type MicrosoftGraphFolder struct { ChildCount int32 `json:"childCount"` View *MicrosoftGraphFolderView `json:"view,omitempty"` }
MicrosoftGraphFolder "@odata.type": "microsoft.graph.folder"
type MicrosoftGraphFolderView ¶
type MicrosoftGraphFolderView struct { SortBy string `json:"sortBy"` // default, name, type, size, takenOrCreatedDateTime, lastModifiedDateTime, sequence SortOrder string `json:"sortOrder"` // ascending, descending ViewType string `json:"viewType"` // default, icons, details, thumbnails }
MicrosoftGraphFolderView "@odata.type": "microsoft.graph.folderView"
type MicrosoftGraphGEOCoordinates ¶
type MicrosoftGraphGEOCoordinates struct { Altitude float64 `json:"altitude"` Latitude float64 `json:"latitude"` Longitude float64 `json:"longitude"` }
MicrosoftGraphGEOCoordinates "@odata.type": "microsoft.graph.geoCoordinates"
type MicrosoftGraphHashes ¶
type MicrosoftGraphHashes struct { CRC32Hash *string `json:"crc32Hash,omitempty"` // hex SHA1Hash *string `json:"sha1Hash,omitempty"` // hex QuickXorHash *string `json:"quickXorHash,omitempty"` // base64 }
MicrosoftGraphHashes "@odata.type": "microsoft.graph.hashes"
type MicrosoftGraphIdentity ¶
type MicrosoftGraphIdentity struct { DisplayName string `json:"displayName"` ID string `json:"id,omitempty"` Thumbnails *MicrosoftGraphThumbnailSet `json:"thumbnails,omitempty"` }
MicrosoftGraphIdentity "@odata.type": "microsoft.graph.identity"
type MicrosoftGraphIdentitySet ¶
type MicrosoftGraphIdentitySet struct { Application *MicrosoftGraphIdentity `json:"application,omitempty"` Device *MicrosoftGraphIdentity `json:"device,omitempty"` Group *MicrosoftGraphIdentity `json:"group,omitempty"` User *MicrosoftGraphIdentity `json:"user,omitempty"` }
MicrosoftGraphIdentitySet "@odata.type": "microsoft.graph.identitySet"
type MicrosoftGraphImage ¶
MicrosoftGraphImage "@odata.type": "microsoft.graph.image"
type MicrosoftGraphItemActionSet ¶
type MicrosoftGraphItemActionSet struct { Comment *MicrosoftGraphCommentAction `json:"comment,omitempty"` Create *MicrosoftGraphCreateAction `json:"create,omitempty"` Delete *MicrosoftGraphDeleteAction `json:"delete,omitempty"` Edit *MicrosoftGraphEditAction `json:"edit,omitempty"` Mention *MicrosoftGraphMentionAction `json:"mention,omitempty"` Move *MicrosoftGraphMoveAction `json:"move,omitempty"` Rename *MicrosoftGraphRenameAction `json:"rename,omitempty"` Restore *MicrosoftGraphRestoreAction `json:"restore,omitempty"` Version *MicrosoftGraphVersionAction `json:"version,omitempty"` }
MicrosoftGraphItemActionSet "@odata.type": "microsoft.graph.itemActionSet"
type MicrosoftGraphItemActivity ¶
type MicrosoftGraphItemActivity struct { ID string `json:"id"` // identifier Action *MicrosoftGraphItemActionSet `json:"action,omitempty"` Actor *MicrosoftGraphIdentitySet `json:"actor,omitempty"` Times *MicrosoftGraphitemActivityTimeSet `json:"times,omitempty"` /* relationships */ DriveItem *MicrosoftGraphDriveItem `json:"driveItem,omitempty"` ListItem *MicrosoftGraphListItem `json:"listItem,omitempty"` }
MicrosoftGraphItemActivity "@odata.type": "microsoft.graph.itemActivity"
type MicrosoftGraphItemReference ¶
type MicrosoftGraphItemReference struct { DriveID string `json:"driveId"` DriveType string `json:"driveType"` // personal, business, documentLibrary ID string `json:"id"` ListID *string `json:"listId,omitempty"` Name *string `json:"name,omitempty"` Path string `json:"path"` SiteID *string `json:"siteId,omitempty"` }
MicrosoftGraphItemReference "@odata.type": "microsoft.graph.itemReference"
type MicrosoftGraphListItem ¶
type MicrosoftGraphListItem struct { ContentType *MicrosoftGraphContentTypeInfo `json:"contentType,omitempty"` Fields *MicrosoftGraphFieldValueSet `json:"fields,omitempty"` /* relationships */ Activities []MicrosoftGraphItemActivity `json:"activities,omitempty"` DriveItem *MicrosoftGraphDriveItem `json:"driveItem,omitempty"` Versions []MicrosoftGraphListItemVersion `json:"versions,omitempty"` /* inherited from baseItem */ ID string `json:"id"` CreatedBy *MicrosoftGraphIdentitySet `json:"createdBy,omitempty"` CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` Description *string `json:"description,omitempty"` ETag string `json:"eTag"` LastModifiedBy *MicrosoftGraphIdentitySet `json:"lastModifiedBy,omitempty"` LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` Name string `json:"name"` ParentReference *MicrosoftGraphItemReference `json:"parentReference,omitempty"` WebURL string `json:"webUrl"` }
MicrosoftGraphListItem "@odata.type": "microsoft.graph.listItem"
type MicrosoftGraphListItemVersion ¶
type MicrosoftGraphListItemVersion struct { Fields *MicrosoftGraphFieldValueSet `json:"fields,omitempty"` ID string `json:"id"` LastModifiedBy *MicrosoftGraphIdentitySet `json:"lastModifiedBy,omitempty"` LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` Published *MicrosoftGraphPublicationFacet `json:"published,omitempty"` }
MicrosoftGraphListItemVersion "@odata.type": "microsoft.graph.listItemVersion"
type MicrosoftGraphMalware ¶
type MicrosoftGraphMalware struct { }
MicrosoftGraphMalware "@odata.type": "microsoft.graph.malware"
type MicrosoftGraphMentionAction ¶
type MicrosoftGraphMentionAction struct {
Mentionees []MicrosoftGraphIdentitySet `json:"mentionees,omitempty"`
}
MicrosoftGraphMentionAction "@odata.type": "microsoft.graph.mentionAction"
type MicrosoftGraphMoveAction ¶
MicrosoftGraphMoveAction "@odata.type": "microsoft.graph.moveAction"
type MicrosoftGraphPackage ¶
type MicrosoftGraphPackage struct {
Type string `json:"type"`
}
MicrosoftGraphPackage "@odata.type": "microsoft.graph.package"
type MicrosoftGraphPermission ¶
type MicrosoftGraphPermission struct { ID string `json:"id"` GrantedTo *MicrosoftGraphIdentitySet `json:"grantedTo,omitempty"` GrantedToIdentities []MicrosoftGraphIdentitySet `json:"grantedToIdentities,omitempty"` InheritedFrom *MicrosoftGraphItemReference `json:"inheritedFrom,omitempty"` Invitation *MicrosoftGraphSharingInvitation `json:"invitation,omitempty"` Link *MicrosoftGraphSharingLink `json:"link,omitempty"` Roles []string `json:"roles"` // read, write, sp.owner, sp.member }
MicrosoftGraphPermission "@odata.type": "microsoft.graph.permission"
type MicrosoftGraphPhoto ¶
type MicrosoftGraphPhoto struct { CameraMake string `json:"cameraMake"` CameraModel string `json:"cameraModel"` ExposureDenominator float64 `json:"exposureDenominator"` ExposureNumerator float64 `json:"exposureNumerator"` FNumber float64 `json:"fNumber"` FocalLength float64 `json:"focalLength"` ISO int32 `json:"iso"` TakenDateTime *time.Time `json:"takenDateTime,omitempty"` }
MicrosoftGraphPhoto "@odata.type": "microsoft.graph.photo"
type MicrosoftGraphPublicationFacet ¶
type MicrosoftGraphPublicationFacet struct { Level string `json:"level"` // published, checkout VersionID string `json:"versionId"` }
MicrosoftGraphPublicationFacet "@odata.type": "microsoft.graph.publicationFacet"
type MicrosoftGraphQuota ¶
type MicrosoftGraphQuota struct { Deleted int64 `json:"deleted"` FileCount *int64 `json:"fileCount,omitempty"` Remaining int64 `json:"remaining"` State string `json:"state"` // normal, nearing, critical, exceeded Total int64 `json:"total"` Used int64 `json:"used"` }
MicrosoftGraphQuota "@odata.type": "microsoft.graph.quota"
type MicrosoftGraphRemoteItem ¶
type MicrosoftGraphRemoteItem struct { ID string `json:"id"` // identifier CreatedBy *MicrosoftGraphIdentitySet `json:"createdBy,omitempty"` CreatedDateTime *time.Time `json:"createdDateTime,omitempty"` File *MicrosoftGraphFile `json:"file,omitempty"` FileSystemInfo *MicrosoftGraphFileSystemInfo `json:"fileSystemInfo,omitempty"` Folder *MicrosoftGraphFolder `json:"folder,omitempty"` LastModifiedBy *MicrosoftGraphIdentitySet `json:"lastModifiedBy,omitempty"` LastModifiedDateTime *time.Time `json:"lastModifiedDateTime,omitempty"` Name string `json:"name"` Package *MicrosoftGraphPackage `json:"package,omitempty"` ParentReference *MicrosoftGraphItemReference `json:"parentReference,omitempty"` SpecialFolder *MicrosoftGraphSpecialFolder `json:"specialFolder,omitempty"` Size int64 `json:"size"` WebDavURL string `json:"webDavUrl"` WebURL string `json:"webUrl"` }
MicrosoftGraphRemoteItem "@odata.type": "microsoft.graph.remoteItem"
type MicrosoftGraphRenameAction ¶
type MicrosoftGraphRenameAction struct { OldName string `json:"oldName"` NewName string `json:"newName"` }
MicrosoftGraphRenameAction "@odata.type": "microsoft.graph.renameAction"
type MicrosoftGraphRestoreAction ¶
type MicrosoftGraphRestoreAction struct { }
MicrosoftGraphRestoreAction "@odata.type": "microsoft.graph.restoreAction"
type MicrosoftGraphRoot ¶
type MicrosoftGraphRoot struct { }
MicrosoftGraphRoot "@odata.type": "microsoft.graph.root"
type MicrosoftGraphSearchResult ¶
type MicrosoftGraphSearchResult struct {
OnClickTelemetryURL string `json:"onClickTelemetryUrl"`
}
MicrosoftGraphSearchResult "@odata.type": "microsoft.graph.searchResult"
type MicrosoftGraphShareAction ¶
type MicrosoftGraphShareAction struct {
}MicrosoftGraphShareAction "@odata.type": "microsoft.graph.shareAction"
type MicrosoftGraphShared ¶
type MicrosoftGraphShared struct {}
MicrosoftGraphShared "@odata.type": "microsoft.graph.shared"
type MicrosoftGraphSharepointIDs ¶
type MicrosoftGraphSharepointIDs struct {}
MicrosoftGraphSharepointIDs "@odata.type": "microsoft.graph.sharepointIds"
type MicrosoftGraphSharingInvitation ¶
type MicrosoftGraphSharingInvitation struct { Email string `json:"email"` InvitedBy *MicrosoftGraphIdentitySet `json:"invitedBy,omitempty"` SignInRequired bool `json:"signInRequired"` }
MicrosoftGraphSharingInvitation "@odata.type": "microsoft.graph.sharingInvitation"
type MicrosoftGraphSharingLink ¶
type MicrosoftGraphSharingLink struct { Application *MicrosoftGraphIdentity `json:"application,omitempty"` Type string `json:"type"` // view, edit, embed Scope string `json:"scope"` // anonymous, organization WebHTML string `json:"webHtml"` WebURL string `json:"webUrl"` }
MicrosoftGraphSharingLink "@odata.type": "microsoft.graph.sharingLink"
type MicrosoftGraphSpecialFolder ¶
type MicrosoftGraphSpecialFolder struct {
Name string `json:"name"`
}
MicrosoftGraphSpecialFolder "@odata.type": "microsoft.graph.specialFolder"
type MicrosoftGraphSystemFacet ¶
type MicrosoftGraphSystemFacet struct { }
MicrosoftGraphSystemFacet "@odata.type": "microsoft.graph.systemFacet"
type MicrosoftGraphThumbnail ¶
type MicrosoftGraphThumbnail struct { Content *EdmDotStream `json:"content,omitempty"` Height int32 `json:"height"` SourceItemID string `json:"sourceItemId"` URL string `json:"url"` Width int32 `json:"width"` }
MicrosoftGraphThumbnail "@odata.type": "microsoft.graph.thumbnail"
type MicrosoftGraphThumbnailSet ¶
type MicrosoftGraphThumbnailSet struct { ID string `json:"id"` // identifier Large *MicrosoftGraphThumbnail `json:"large,omitempty"` Medium *MicrosoftGraphThumbnail `json:"medium,omitempty"` Small *MicrosoftGraphThumbnail `json:"small,omitempty"` Source *MicrosoftGraphThumbnail `json:"source,omitempty"` }
MicrosoftGraphThumbnailSet "@odata.type": "microsoft.graph.thumbnailSet"
type MicrosoftGraphUploadSession ¶
type MicrosoftGraphUploadSession struct { ExpirationDateTime time.Time `json:"expirationDateTime"` NextExpectedRanges []string `json:"nextExpectedRanges"` UploadURL *string `json:"uploadUrl"` }
MicrosoftGraphUploadSession "@odata.type": "microsoft.graph.uploadSession"
type MicrosoftGraphVersionAction ¶
type MicrosoftGraphVersionAction struct {
NewVersion string `json:"newVersion"`
}
MicrosoftGraphVersionAction "@odata.type": "microsoft.graph.versionAction"
type MicrosoftGraphVideo ¶
type MicrosoftGraphVideo struct { AudioBitsPerSample int32 `json:"audioBitsPerSample"` AudioChannels int32 `json:"audioChannels"` AudioFormat string `json:"audioFormat"` AudioSamplesPerSecond int32 `json:"audioSamplesPerSecond"` Bitrate int32 `json:"bitrate"` Duration int32 `json:"duration"` FourCC string `json:"fourCC"` FrameRate float64 `json:"frameRate"` Height int32 `json:"height"` Width int32 `json:"width"` }
MicrosoftGraphVideo "@odata.type": "microsoft.graph.video"
type MicrosoftGraphitemActivityTimeSet ¶
type MicrosoftGraphitemActivityTimeSet struct { ObservedDateTime *time.Time `json:"observedDateTime,omitempty"` RecordedDateTime *time.Time `json:"recordedDateTime,omitempty"` }
MicrosoftGraphitemActivityTimeSet "@odata.type": "microsoft.graph.itemActivityTimeSet"
type NewMicrosoftGraphAPIInput ¶
type NewMicrosoftGraphAPIInput struct { MicrosoftEndPoints *MicrosoftEndPoints `json:"microsoftEndPoints,omitempty"` AzureADAppRegistration *AzureADAppRegistration `json:"azureAdAppRegistration,omitempty"` AzureADAuthFlowContext *AzureADAuthFlowContext `json:"azureAdAuthFlowContext,omitempty"` }
type ODataError ¶
type ODataError struct { Code *string `json:"code"` Message *string `json:"message"` RequestID *string `json:"request-id"` Date *time.Time `json:"date"` MicrosoftGraphInnerError *ODataError `json:"innerError,omitempty"` }
func (*ODataError) On ¶
func (e *ODataError) On()