Class EducationSubmissionResourceItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.education.classes.item.assignments.item.submissions.item.resources.item.EducationSubmissionResourceItemRequestBuilder
@Generated("com.microsoft.kiota")
public class EducationSubmissionResourceItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the resources property of the microsoft.graph.educationSubmission entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classRetrieve the properties of a specific resource 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
ConstructorsConstructorDescriptionEducationSubmissionResourceItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEducationSubmissionResourceItemRequestBuilderand sets the default values.EducationSubmissionResourceItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEducationSubmissionResourceItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionvoiddelete()Delete an educationSubmissionResource from the submission.voiddelete(Consumer<EducationSubmissionResourceItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete an educationSubmissionResource from the submission.Provides operations to manage the dependentResources property of the microsoft.graph.educationSubmissionResource entity.get()Retrieve the properties of a specific resource associated with a submission.get(Consumer<EducationSubmissionResourceItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a specific resource associated with a submission.Update the navigation property resources in educationpatch(EducationSubmissionResource body, Consumer<EducationSubmissionResourceItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property resources in educationcom.microsoft.kiota.RequestInformationDelete an educationSubmissionResource from the submission.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<EducationSubmissionResourceItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete an educationSubmissionResource from the submission.com.microsoft.kiota.RequestInformationRetrieve the properties of a specific resource associated with a submission.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<EducationSubmissionResourceItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a specific resource associated with a submission.com.microsoft.kiota.RequestInformationUpdate the navigation property resources in educationcom.microsoft.kiota.RequestInformationtoPatchRequestInformation(EducationSubmissionResource body, Consumer<EducationSubmissionResourceItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property resources in educationReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
EducationSubmissionResourceItemRequestBuilder
public EducationSubmissionResourceItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEducationSubmissionResourceItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
EducationSubmissionResourceItemRequestBuilder
public EducationSubmissionResourceItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEducationSubmissionResourceItemRequestBuilderand 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
-
dependentResources
Provides operations to manage the dependentResources property of the microsoft.graph.educationSubmissionResource entity.- Returns:
- a
DependentResourcesRequestBuilder
-
delete
public void delete()Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<EducationSubmissionResourceItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment.- Returns:
- a
EducationSubmissionResource - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public EducationSubmissionResource get(@Nullable Consumer<EducationSubmissionResourceItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment.- Parameters:
requestConfiguration- 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:
-
patch
Update the navigation property resources in education- Parameters:
body- The request body- Returns:
- a
EducationSubmissionResource - Throws:
ODataError- When receiving a 4XX or 5XX status code
-
patch
@Nullable public EducationSubmissionResource patch(@Nonnull EducationSubmissionResource body, @Nullable Consumer<EducationSubmissionResourceItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property resources in education- 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
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<EducationSubmissionResourceItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete an educationSubmissionResource from the submission. Only teachers and students can perform this operation. If the resource was copied from the assignment, a new copy of the resource will be created after the current copy is deleted. This allows you to 'reset' the resource to its original state. If the resource wasn't copied from the assignment but was added from the student, the resource is deleted.- 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()Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<EducationSubmissionResourceItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Retrieve the properties of a specific resource associated with a submission. Only teachers, students, and applications with application permissions can perform this operation. This resource is in the 'working' resource list and should be considered work in process by a student. This resource is wrapped with a possible pointer back to the assignment resource if it was copied from the assignment.- 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 EducationSubmissionResource body) Update the navigation property resources in education- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull EducationSubmissionResource body, @Nullable Consumer<EducationSubmissionResourceItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update the navigation property resources in education- 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
EducationSubmissionResourceItemRequestBuilder
-