Class 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
    • Constructor Detail

      • DriveItem

        protected DriveItem()
    • Method Detail

      • odataTypeName

        public String odataTypeName()
        Specified by:
        odataTypeName in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        odataTypeName in class BaseItem
      • 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:
        getChangedFields in interface com.github.davidmoten.odata.client.ODataEntityType
        Overrides:
        getChangedFields in class BaseItem
      • postInject

        public void postInject​(boolean addKeysToContextPath)
        Specified by:
        postInject in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        postInject in class BaseItem
      • getContent

        public Optional<com.github.davidmoten.odata.client.StreamProvider> getContent()
      • postContent

        public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> postContent()
        If metadata indicate that the stream is editable then returns a StreamUploader which can be used to upload the stream to the content property, 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 a StreamUploaderChunked which can be used to upload the stream to the content property, 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 a StreamUploader which can be used to upload the stream to the content property, 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 a StreamUploaderChunked which can be used to upload the stream to the content property, 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)
      • putContent

        public Optional<com.github.davidmoten.odata.client.StreamUploaderSingleCall> putContent()
        If metadata indicate that the stream is editable then returns a StreamUploader which can be used to upload the stream to the content property, 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 a StreamUploaderChunked which can be used to upload the stream to the content property, 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)
      • getUnmappedFields

        public com.github.davidmoten.odata.client.UnmappedFields getUnmappedFields()
        Specified by:
        getUnmappedFields in interface com.github.davidmoten.odata.client.ODataType
        Overrides:
        getUnmappedFields in class BaseItem
      • patch

        public DriveItem patch()
        Submits only changed fields for update and returns an immutable copy of this with changed fields reset.
        Overrides:
        patch in class BaseItem
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • put

        public DriveItem put()
        Submits all fields for update and returns an immutable copy of this with changed fields reset (they were ignored anyway).
        Overrides:
        put in class BaseItem
        Returns:
        a copy of this with changed fields reset
        Throws:
        com.github.davidmoten.odata.client.ClientException - if HTTP response is not as expected
      • 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)
      • checkin

        public com.github.davidmoten.odata.client.ActionRequestNoReturn checkin​(String checkInAs,
                                                                                String comment)
      • checkout

        public com.github.davidmoten.odata.client.ActionRequestNoReturn checkout()
      • follow

        public com.github.davidmoten.odata.client.ActionRequestReturningNonCollectionUnwrapped<DriveItem> follow()
      • 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)