Package com.microsoft.graph.drives.item
Class DriveItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.drives.item.DriveItemRequestBuilder
@Generated("com.microsoft.kiota")
public class DriveItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of drive entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classGet entity from drives by keyclassConfiguration for the request such as headers, query parameters, and middleware options.classConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionDriveItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDriveItemRequestBuilderand sets the default values.DriveItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDriveItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbundles()Provides operations to manage the bundles property of the microsoft.graph.drive entity.Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity.voiddelete()Delete entity from drivesvoiddelete(Consumer<DriveItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete entity from drivesProvides operations to manage the following property of the microsoft.graph.drive entity.get()Get entity from drives by keyget(Consumer<DriveItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get entity from drives by keyitems()Provides operations to manage the items property of the microsoft.graph.drive entity.Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity.list()Provides operations to manage the list property of the microsoft.graph.drive entity.Update entity in drivespatch(Drive body, Consumer<DriveItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update entity in drivesrecent()Provides operations to call the recent method.root()Provides operations to manage the root property of the microsoft.graph.drive entity.Provides operations to call the search method.Provides operations to call the sharedWithMe method.special()Provides operations to manage the special property of the microsoft.graph.drive entity.com.microsoft.kiota.RequestInformationDelete entity from drivescom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<DriveItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete entity from drivescom.microsoft.kiota.RequestInformationGet entity from drives by keycom.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<DriveItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get entity from drives by keycom.microsoft.kiota.RequestInformationUpdate entity in drivescom.microsoft.kiota.RequestInformationtoPatchRequestInformation(Drive body, Consumer<DriveItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update entity in drivesReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
DriveItemRequestBuilder
public DriveItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDriveItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
DriveItemRequestBuilder
public DriveItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newDriveItemRequestBuilderand sets the default values.- Parameters:
rawUrl- The raw URL to use for the request builder.requestAdapter- The request adapter to use to execute the requests.
-
-
Method Details
-
bundles
Provides operations to manage the bundles property of the microsoft.graph.drive entity.- Returns:
- a
BundlesRequestBuilder
-
createdByUser
Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity.- Returns:
- a
CreatedByUserRequestBuilder
-
following
Provides operations to manage the following property of the microsoft.graph.drive entity.- Returns:
- a
FollowingRequestBuilder
-
items
Provides operations to manage the items property of the microsoft.graph.drive entity.- Returns:
- a
ItemsRequestBuilder
-
lastModifiedByUser
Provides operations to manage the lastModifiedByUser property of the microsoft.graph.baseItem entity.- Returns:
- a
LastModifiedByUserRequestBuilder
-
list
Provides operations to manage the list property of the microsoft.graph.drive entity.- Returns:
- a
ListRequestBuilder
-
recent
Provides operations to call the recent method.- Returns:
- a
RecentRequestBuilder
-
root
Provides operations to manage the root property of the microsoft.graph.drive entity.- Returns:
- a
RootRequestBuilder
-
special
Provides operations to manage the special property of the microsoft.graph.drive entity.- Returns:
- a
SpecialRequestBuilder
-
delete
public void delete()Delete entity from drives- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<DriveItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete entity from drives- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
Get entity from drives by key- Returns:
- a
Drive - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
get
@Nullable public Drive get(@Nullable Consumer<DriveItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get entity from drives by key- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Drive - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
Update entity in drives- Parameters:
body- The request body- Returns:
- a
Drive - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
@Nullable public Drive patch(@Nonnull Drive body, @Nullable Consumer<DriveItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update entity in drives- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
Drive - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
searchWithQ
Provides operations to call the search method.- Parameters:
q- Usage: q='{q}'- Returns:
- a
SearchWithQRequestBuilder
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete entity from drives- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<DriveItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete entity from drives- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Get entity from drives by key- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<DriveItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get entity from drives by key- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Drive body) Update entity in drives- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull Drive body, @Nullable Consumer<DriveItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update entity in drives- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.- Parameters:
rawUrl- The raw URL to use for the request builder.- Returns:
- a
DriveItemRequestBuilder
-