Class ContainersRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.storage.filestorage.containers.ContainersRequestBuilder
@Generated("com.microsoft.kiota")
public class ContainersRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the containers property of the microsoft.graph.fileStorage entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassRetrieve a list of fileStorageContainer objects that are visible to the caller.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
ConstructorsConstructorDescriptionContainersRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newContainersRequestBuilderand sets the default values.ContainersRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newContainersRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyFileStorageContainerId(String fileStorageContainerId) Provides operations to manage the containers property of the microsoft.graph.fileStorage entity.count()Provides operations to count the resources in the collection.get()Retrieve a list of fileStorageContainer objects that are visible to the caller.get(Consumer<ContainersRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of fileStorageContainer objects that are visible to the caller.post(FileStorageContainer body) Create a new fileStorageContainer object.post(FileStorageContainer body, Consumer<ContainersRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new fileStorageContainer object.com.microsoft.kiota.RequestInformationRetrieve a list of fileStorageContainer objects that are visible to the caller.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ContainersRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of fileStorageContainer objects that are visible to the caller.com.microsoft.kiota.RequestInformationCreate a new fileStorageContainer object.com.microsoft.kiota.RequestInformationtoPostRequestInformation(FileStorageContainer body, Consumer<ContainersRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new fileStorageContainer object.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ContainersRequestBuilder
public ContainersRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newContainersRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ContainersRequestBuilder
public ContainersRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newContainersRequestBuilderand 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
-
count
Provides operations to count the resources in the collection.- Returns:
- a
CountRequestBuilder
-
byFileStorageContainerId
@Nonnull public FileStorageContainerItemRequestBuilder byFileStorageContainerId(@Nonnull String fileStorageContainerId) Provides operations to manage the containers property of the microsoft.graph.fileStorage entity.- Parameters:
fileStorageContainerId- The unique identifier of fileStorageContainer- Returns:
- a
FileStorageContainerItemRequestBuilder
-
get
Retrieve a list of fileStorageContainer objects that are visible to the caller. The containerTypeId filter parameter is required.- Returns:
- a
FileStorageContainerCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public FileStorageContainerCollectionResponse get(@Nullable Consumer<ContainersRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of fileStorageContainer objects that are visible to the caller. The containerTypeId filter parameter is required.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
FileStorageContainerCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Create a new fileStorageContainer object. The container type identified by containerTypeId must be registered in the tenant. For delegated calls, the calling user is set as the owner of the fileStorageContainer.- Parameters:
body- The request body- Returns:
- a
FileStorageContainer - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public FileStorageContainer post(@Nonnull FileStorageContainer body, @Nullable Consumer<ContainersRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new fileStorageContainer object. The container type identified by containerTypeId must be registered in the tenant. For delegated calls, the calling user is set as the owner of the fileStorageContainer.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
FileStorageContainer - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()Retrieve a list of fileStorageContainer objects that are visible to the caller. The containerTypeId filter parameter is required.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ContainersRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve a list of fileStorageContainer objects that are visible to the caller. The containerTypeId filter parameter is required.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull FileStorageContainer body) Create a new fileStorageContainer object. The container type identified by containerTypeId must be registered in the tenant. For delegated calls, the calling user is set as the owner of the fileStorageContainer.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull FileStorageContainer body, @Nullable Consumer<ContainersRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new fileStorageContainer object. The container type identified by containerTypeId must be registered in the tenant. For delegated calls, the calling user is set as the owner of the fileStorageContainer.- 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
ContainersRequestBuilder
-