Class ResourcesRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.education.classes.item.assignments.item.submissions.item.resources.ResourcesRequestBuilder
@Generated("com.microsoft.kiota")
public class ResourcesRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassList the resources associated with a submission.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
ConstructorsConstructorDescriptionResourcesRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newResourcesRequestBuilderand sets the default values.ResourcesRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newResourcesRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyEducationSubmissionResourceId(String educationSubmissionResourceId) Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity.count()Provides operations to count the resources in the collection.get()List the resources associated with a submission.get(Consumer<ResourcesRequestBuilder.GetRequestConfiguration> requestConfiguration) List the resources associated with a submission.Add an educationSubmissionResource to a submission resource list.post(EducationSubmissionResource body, Consumer<ResourcesRequestBuilder.PostRequestConfiguration> requestConfiguration) Add an educationSubmissionResource to a submission resource list.com.microsoft.kiota.RequestInformationList the resources associated with a submission.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<ResourcesRequestBuilder.GetRequestConfiguration> requestConfiguration) List the resources associated with a submission.com.microsoft.kiota.RequestInformationAdd an educationSubmissionResource to a submission resource list.com.microsoft.kiota.RequestInformationtoPostRequestInformation(EducationSubmissionResource body, Consumer<ResourcesRequestBuilder.PostRequestConfiguration> requestConfiguration) Add an educationSubmissionResource to a submission resource list.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ResourcesRequestBuilder
public ResourcesRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newResourcesRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ResourcesRequestBuilder
public ResourcesRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newResourcesRequestBuilderand 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
-
byEducationSubmissionResourceId
@Nonnull public EducationSubmissionResourceItemRequestBuilder byEducationSubmissionResourceId(@Nonnull String educationSubmissionResourceId) Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity.- Parameters:
educationSubmissionResourceId- The unique identifier of educationSubmissionResource- Returns:
- a
EducationSubmissionResourceItemRequestBuilder
-
get
List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading.- Returns:
- a
EducationSubmissionResourceCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public EducationSubmissionResourceCollectionResponse get(@Nullable Consumer<ResourcesRequestBuilder.GetRequestConfiguration> requestConfiguration) List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
EducationSubmissionResourceCollectionResponse - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail.- Parameters:
body- The request body- Returns:
- a
EducationSubmissionResource - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
post
@Nullable public EducationSubmissionResource post(@Nonnull EducationSubmissionResource body, @Nullable Consumer<ResourcesRequestBuilder.PostRequestConfiguration> requestConfiguration) Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
EducationSubmissionResource - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation()List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<ResourcesRequestBuilder.GetRequestConfiguration> requestConfiguration) List the resources associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. The educationSubmissionResource object is a wrapper around the actual resource object the student is working on. The wrapper also includes a pointer to the resources on the assignment if this resource was copied from the assignment during the assign process. These resources are the working copy of the assignment. The submittedResources are the resources that were officially submitted for grading.- 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 EducationSubmissionResource body) Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull EducationSubmissionResource body, @Nullable Consumer<ResourcesRequestBuilder.PostRequestConfiguration> requestConfiguration) Add an educationSubmissionResource to a submission resource list. Only teachers and students can perform this operation. The operation will not succeed if the allowStudentsToAddResources flag is not set to true. To create a new file-based resource, upload the file to the resources folder associated with the submission. If the file doesn't exist or is not in that folder, the POST request will fail.- 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
ResourcesRequestBuilder
-