Package odata.msgraph.client.beta.entity
Class DriveItem
- java.lang.Object
-
- odata.msgraph.client.beta.entity.Entity
-
- odata.msgraph.client.beta.entity.BaseItem
-
- odata.msgraph.client.beta.entity.DriveItem
-
- All Implemented Interfaces:
com.github.davidmoten.odata.client.ODataEntityType,com.github.davidmoten.odata.client.ODataType
public class DriveItem extends BaseItem implements com.github.davidmoten.odata.client.ODataEntityType
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classDriveItem.Builder
-
Field Summary
Fields Modifier and Type Field Description protected Audioaudioprotected Bundlebundleprotected Stringcontentprotected StringcTagprotected Deleteddeletedprotected Filefileprotected FileSystemInfofileSystemInfoprotected Folderfolderprotected Imageimageprotected GeoCoordinateslocationprotected Malwaremalwareprotected Mediamediaprotected Packagepackage_protected PendingOperationspendingOperationsprotected Photophotoprotected PublicationFacetpublicationprotected RemoteItemremoteItemprotected Rootrootprotected SearchResultsearchResultprotected Sharedsharedprotected SharepointIdssharepointIdsprotected Longsizeprotected DriveItemSourcesourceprotected SpecialFolderspecialFolderprotected Videovideoprotected StringwebDavUrl-
Fields inherited from class odata.msgraph.client.beta.entity.BaseItem
createdBy, createdDateTime, description, eTag, lastModifiedBy, lastModifiedDateTime, name, parentReference, webUrl
-
Fields inherited from class odata.msgraph.client.beta.entity.Entity
changedFields, contextPath, id, odataType, unmappedFields
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedDriveItem()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static DriveItem.BuilderbuilderDriveItem()Returns a builder which is used to create a new instance of this class (given that this class is immutable).com.github.davidmoten.odata.client.ActionRequestNoReturncheckin(String checkInAs, String comment)com.github.davidmoten.odata.client.ActionRequestNoReturncheckout()com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DriveItem>copy(String name, ItemReference parentReference)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Permission>createLink(String type, String scope, OffsetDateTime expirationDateTime, String password, String message, List<DriveRecipient> recipients)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<UploadSession>createUploadSession(DriveItemUploadableProperties item, Boolean deferCommit)com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<DriveItem>delta()com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<DriveItem>delta_Function(String token)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DriveItem>follow()ItemActivityOLDCollectionRequestgetActivities()com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<ItemActivityStat>getActivitiesByInterval(String startDateTime, String endDateTime, String interval)ItemAnalyticsRequestgetAnalytics()Optional<Audio>getAudio()Optional<Bundle>getBundle()com.github.davidmoten.odata.client.internal.ChangedFieldsgetChangedFields()DriveItemCollectionRequestgetChildren()Optional<com.github.davidmoten.odata.client.StreamProvider>getContent()Optional<String>getCTag()Optional<Deleted>getDeleted()Optional<File>getFile()Optional<FileSystemInfo>getFileSystemInfo()Optional<Folder>getFolder()Optional<Image>getImage()ListItemRequestgetListItem()Optional<GeoCoordinates>getLocation()Optional<Malware>getMalware()Optional<Media>getMedia()Optional<Package>getPackage()Optional<PendingOperations>getPendingOperations()PermissionCollectionRequestgetPermissions()Optional<Photo>getPhoto()Optional<PublicationFacet>getPublication()Optional<RemoteItem>getRemoteItem()Optional<Root>getRoot()Optional<SearchResult>getSearchResult()Optional<Shared>getShared()Optional<SharepointIds>getSharepointIds()Optional<Long>getSize()Optional<DriveItemSource>getSource()Optional<SpecialFolder>getSpecialFolder()SubscriptionCollectionRequestgetSubscriptions()ThumbnailSetCollectionRequestgetThumbnails()com.github.davidmoten.odata.client.UnmappedFieldsgetUnmappedFields()DriveItemVersionCollectionRequestgetVersions()Optional<Video>getVideo()Optional<String>getWebDavUrl()WorkbookRequestgetWorkbook()com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<Permission>invite(Boolean requireSignIn, List<String> roles, Boolean sendInvitation, String message, List<DriveRecipient> recipients, String expirationDateTime, String password)StringodataTypeName()DriveItempatch()Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>patchChunkedContent()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>patchContent()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>patchContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>postChunkedContent()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP POST.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>postContent()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP POST.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>postContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)voidpostInject(boolean addKeysToContextPath)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<ItemPreviewInfo>preview(String viewer, Boolean chromeless, Boolean allowEdit, String page, Double zoom)DriveItemput()Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).Optional<com.github.davidmoten.odata.client.StreamUploaderChunked>putChunkedContent()If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall>putContent()If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.<T extends com.github.davidmoten.odata.client.StreamUploader<T>>
Optional<T>putContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DriveItem>restore(ItemReference parentReference, String name)com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<DriveItem>search(String q)StringtoString()com.github.davidmoten.odata.client.ActionRequestNoReturnunfollow()com.github.davidmoten.odata.client.ActionRequestNoReturnvalidatePermission(String challengeToken, String password)DriveItemwithAudio(Audio audio)DriveItemwithBundle(Bundle bundle)DriveItemwithCTag(String cTag)DriveItemwithDeleted(Deleted deleted)DriveItemwithFile(File file)DriveItemwithFileSystemInfo(FileSystemInfo fileSystemInfo)DriveItemwithFolder(Folder folder)DriveItemwithImage(Image image)DriveItemwithLocation(GeoCoordinates location)DriveItemwithMalware(Malware malware)DriveItemwithMedia(Media media)DriveItemwithPackage(Package package_)DriveItemwithPendingOperations(PendingOperations pendingOperations)DriveItemwithPhoto(Photo photo)DriveItemwithPublication(PublicationFacet publication)DriveItemwithRemoteItem(RemoteItem remoteItem)DriveItemwithRoot(Root root)DriveItemwithSearchResult(SearchResult searchResult)DriveItemwithShared(Shared shared)DriveItemwithSharepointIds(SharepointIds sharepointIds)DriveItemwithSize(Long size)DriveItemwithSource(DriveItemSource source)DriveItemwithSpecialFolder(SpecialFolder specialFolder)DriveItemwithUnmappedField(String name, String value)DriveItemwithVideo(Video video)DriveItemwithWebDavUrl(String webDavUrl)-
Methods inherited from class odata.msgraph.client.beta.entity.BaseItem
getCreatedBy, getCreatedByUser, getCreatedDateTime, getDescription, getETag, getLastModifiedBy, getLastModifiedByUser, getLastModifiedDateTime, getName, getParentReference, getWebUrl, withCreatedBy, withCreatedDateTime, withDescription, withETag, withLastModifiedBy, withLastModifiedDateTime, withName, withParentReference, withWebUrl
-
-
-
-
Field Detail
-
audio
protected Audio audio
-
bundle
protected Bundle bundle
-
content
protected String content
-
cTag
protected String cTag
-
deleted
protected Deleted deleted
-
file
protected File file
-
fileSystemInfo
protected FileSystemInfo fileSystemInfo
-
folder
protected Folder folder
-
image
protected Image image
-
location
protected GeoCoordinates location
-
malware
protected Malware malware
-
media
protected Media media
-
package_
protected Package package_
-
pendingOperations
protected PendingOperations pendingOperations
-
photo
protected Photo photo
-
publication
protected PublicationFacet publication
-
remoteItem
protected RemoteItem remoteItem
-
root
protected Root root
-
searchResult
protected SearchResult searchResult
-
shared
protected Shared shared
-
sharepointIds
protected SharepointIds sharepointIds
-
size
protected Long size
-
source
protected DriveItemSource source
-
specialFolder
protected SpecialFolder specialFolder
-
video
protected Video video
-
webDavUrl
protected String webDavUrl
-
-
Method Detail
-
odataTypeName
public String odataTypeName()
- Specified by:
odataTypeNamein interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
odataTypeNamein classBaseItem
-
builderDriveItem
public static DriveItem.Builder builderDriveItem()
Returns a builder which is used to create a new instance of this class (given that this class is immutable).- Returns:
- a new Builder for this class
-
getChangedFields
public com.github.davidmoten.odata.client.internal.ChangedFields getChangedFields()
- Specified by:
getChangedFieldsin interfacecom.github.davidmoten.odata.client.ODataEntityType- Overrides:
getChangedFieldsin classBaseItem
-
postInject
public void postInject(boolean addKeysToContextPath)
- Specified by:
postInjectin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
postInjectin classBaseItem
-
getContent
public Optional<com.github.davidmoten.odata.client.StreamProvider> getContent()
-
putContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> putContent()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.- Returns:
- a StreamUploader if upload permitted
-
putChunkedContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> putChunkedContent()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PUT.- Returns:
- a StreamUploaderChunked if upload permitted
-
putContent
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> putContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
postContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> postContent()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP POST.- Returns:
- a StreamUploader if upload permitted
-
postChunkedContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> postChunkedContent()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP POST.- Returns:
- a StreamUploaderChunked if upload permitted
-
postContent
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> postContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
patchContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> patchContent()
If metadata indicate that the stream is editable then returns aStreamUploaderwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.- Returns:
- a StreamUploader if upload permitted
-
patchChunkedContent
public Optional<com.github.davidmoten.odata.client.StreamUploaderChunked> patchChunkedContent()
If metadata indicate that the stream is editable then returns aStreamUploaderChunkedwhich can be used to upload the stream to thecontentproperty, using HTTP PATCH.- Returns:
- a StreamUploaderChunked if upload permitted
-
patchContent
public <T extends com.github.davidmoten.odata.client.StreamUploader<T>> Optional<T> patchContent(com.github.davidmoten.odata.client.UploadStrategy<T> strategy)
-
getFileSystemInfo
public Optional<FileSystemInfo> getFileSystemInfo()
-
withFileSystemInfo
public DriveItem withFileSystemInfo(FileSystemInfo fileSystemInfo)
-
getLocation
public Optional<GeoCoordinates> getLocation()
-
withLocation
public DriveItem withLocation(GeoCoordinates location)
-
getPendingOperations
public Optional<PendingOperations> getPendingOperations()
-
withPendingOperations
public DriveItem withPendingOperations(PendingOperations pendingOperations)
-
getPublication
public Optional<PublicationFacet> getPublication()
-
withPublication
public DriveItem withPublication(PublicationFacet publication)
-
getRemoteItem
public Optional<RemoteItem> getRemoteItem()
-
withRemoteItem
public DriveItem withRemoteItem(RemoteItem remoteItem)
-
getSearchResult
public Optional<SearchResult> getSearchResult()
-
withSearchResult
public DriveItem withSearchResult(SearchResult searchResult)
-
getSharepointIds
public Optional<SharepointIds> getSharepointIds()
-
withSharepointIds
public DriveItem withSharepointIds(SharepointIds sharepointIds)
-
getSource
public Optional<DriveItemSource> getSource()
-
withSource
public DriveItem withSource(DriveItemSource source)
-
getSpecialFolder
public Optional<SpecialFolder> getSpecialFolder()
-
withSpecialFolder
public DriveItem withSpecialFolder(SpecialFolder specialFolder)
-
withUnmappedField
public DriveItem withUnmappedField(String name, String value)
- Overrides:
withUnmappedFieldin classBaseItem
-
getWorkbook
public WorkbookRequest getWorkbook()
-
getActivities
public ItemActivityOLDCollectionRequest getActivities()
-
getAnalytics
public ItemAnalyticsRequest getAnalytics()
-
getChildren
public DriveItemCollectionRequest getChildren()
-
getListItem
public ListItemRequest getListItem()
-
getPermissions
public PermissionCollectionRequest getPermissions()
-
getSubscriptions
public SubscriptionCollectionRequest getSubscriptions()
-
getThumbnails
public ThumbnailSetCollectionRequest getThumbnails()
-
getVersions
public DriveItemVersionCollectionRequest getVersions()
-
getUnmappedFields
public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
- Specified by:
getUnmappedFieldsin interfacecom.github.davidmoten.odata.client.ODataType- Overrides:
getUnmappedFieldsin classBaseItem
-
patch
public DriveItem patch()
Submits only changed fields for update and returns an immutable copy ofthiswith changed fields reset.
-
put
public DriveItem put()
Submits all fields for update and returns an immutable copy ofthiswith changed fields reset (they were ignored anyway).
-
restore
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DriveItem> restore(ItemReference parentReference, String name)
-
copy
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DriveItem> copy(String name, ItemReference parentReference)
-
createUploadSession
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<UploadSession> createUploadSession(DriveItemUploadableProperties item, Boolean deferCommit)
-
checkin
public com.github.davidmoten.odata.client.ActionRequestNoReturn checkin(String checkInAs, String comment)
-
checkout
public com.github.davidmoten.odata.client.ActionRequestNoReturn checkout()
-
createLink
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<Permission> createLink(String type, String scope, OffsetDateTime expirationDateTime, String password, String message, List<DriveRecipient> recipients)
-
follow
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DriveItem> follow()
-
invite
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<Permission> invite(Boolean requireSignIn, List<String> roles, Boolean sendInvitation, String message, List<DriveRecipient> recipients, String expirationDateTime, String password)
-
preview
public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<ItemPreviewInfo> preview(String viewer, Boolean chromeless, Boolean allowEdit, String page, Double zoom)
-
unfollow
public com.github.davidmoten.odata.client.ActionRequestNoReturn unfollow()
-
validatePermission
public com.github.davidmoten.odata.client.ActionRequestNoReturn validatePermission(String challengeToken, String password)
-
delta
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<DriveItem> delta()
-
delta_Function
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<DriveItem> delta_Function(String token)
-
getActivitiesByInterval
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<ItemActivityStat> getActivitiesByInterval(String startDateTime, String endDateTime, String interval)
-
search
public com.github.davidmoten.odata.client.CollectionPageNonEntityRequest<DriveItem> search(String q)
-
-