Package com.microsoft.graph.shares.item
Class SharedDriveItemItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.shares.item.SharedDriveItemItemRequestBuilder
@Generated("com.microsoft.kiota")
public class SharedDriveItemItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the collection of sharedDriveItem entities.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classAccess a shared DriveItem or a collection of shared items by using a shareId or sharing URL.classConfiguration 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
ConstructorsConstructorDescriptionSharedDriveItemItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSharedDriveItemItemRequestBuilderand sets the default values.SharedDriveItemItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSharedDriveItemItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionProvides operations to manage the createdByUser property of the microsoft.graph.baseItem entity.voiddelete()Delete entity from sharesvoiddelete(Consumer<SharedDriveItemItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete entity from sharesProvides operations to manage the driveItem property of the microsoft.graph.sharedDriveItem entity.get()Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL.get(Consumer<SharedDriveItemItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL.items()Provides operations to manage the items property of the microsoft.graph.sharedDriveItem 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.sharedDriveItem entity.listItem()Provides operations to manage the listItem property of the microsoft.graph.sharedDriveItem entity.patch(SharedDriveItem body) Update entity in sharespatch(SharedDriveItem body, Consumer<SharedDriveItemItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update entity in sharesProvides operations to manage the permission property of the microsoft.graph.sharedDriveItem entity.root()Provides operations to manage the root property of the microsoft.graph.sharedDriveItem entity.site()Provides operations to manage the site property of the microsoft.graph.sharedDriveItem entity.com.microsoft.kiota.RequestInformationDelete entity from sharescom.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<SharedDriveItemItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete entity from sharescom.microsoft.kiota.RequestInformationAccess a shared DriveItem or a collection of shared items by using a shareId or sharing URL.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<SharedDriveItemItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL.com.microsoft.kiota.RequestInformationUpdate entity in sharescom.microsoft.kiota.RequestInformationtoPatchRequestInformation(SharedDriveItem body, Consumer<SharedDriveItemItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update entity in sharesReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
SharedDriveItemItemRequestBuilder
public SharedDriveItemItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSharedDriveItemItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
SharedDriveItemItemRequestBuilder
public SharedDriveItemItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newSharedDriveItemItemRequestBuilderand 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
-
createdByUser
Provides operations to manage the createdByUser property of the microsoft.graph.baseItem entity.- Returns:
- a
CreatedByUserRequestBuilder
-
driveItem
Provides operations to manage the driveItem property of the microsoft.graph.sharedDriveItem entity.- Returns:
- a
DriveItemRequestBuilder
-
items
Provides operations to manage the items property of the microsoft.graph.sharedDriveItem 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.sharedDriveItem entity.- Returns:
- a
ListRequestBuilder
-
listItem
Provides operations to manage the listItem property of the microsoft.graph.sharedDriveItem entity.- Returns:
- a
ListItemRequestBuilder
-
permission
Provides operations to manage the permission property of the microsoft.graph.sharedDriveItem entity.- Returns:
- a
PermissionRequestBuilder
-
root
Provides operations to manage the root property of the microsoft.graph.sharedDriveItem entity.- Returns:
- a
RootRequestBuilder
-
site
Provides operations to manage the site property of the microsoft.graph.sharedDriveItem entity.- Returns:
- a
SiteRequestBuilder
-
delete
public void delete()Delete entity from shares- Throws:
ODataError- When receiving a 4XX or 5XX status code
-
delete
public void delete(@Nullable Consumer<SharedDriveItemItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete entity from shares- 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
Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token.- Returns:
- a
SharedDriveItem - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public SharedDriveItem get(@Nullable Consumer<SharedDriveItemItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
SharedDriveItem - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete entity from shares- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<SharedDriveItemItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete entity from shares- 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()Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<SharedDriveItemItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Access a shared DriveItem or a collection of shared items by using a shareId or sharing URL. To use a sharing URL with this API, your app needs to transform the URL into a sharing token.- Parameters:
requestConfiguration- 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
SharedDriveItemItemRequestBuilder
-