Class EducationAssignmentItemRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
com.microsoft.graph.education.classes.item.assignments.item.EducationAssignmentItemRequestBuilder
@Generated("com.microsoft.kiota")
public class EducationAssignmentItemRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Provides operations to manage the assignments property of the microsoft.graph.educationClass entity.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options.classGet the properties and relationships of an assignment.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
ConstructorsConstructorDescriptionEducationAssignmentItemRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEducationAssignmentItemRequestBuilderand sets the default values.EducationAssignmentItemRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEducationAssignmentItemRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionactivate()Provides operations to call the activate method.Provides operations to manage the categories property of the microsoft.graph.educationAssignment entity.Provides operations to call the deactivate method.voiddelete()Delete an existing assignment.voiddelete(Consumer<EducationAssignmentItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete an existing assignment.get()Get the properties and relationships of an assignment.get(Consumer<EducationAssignmentItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties and relationships of an assignment.Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity.Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity.patch(EducationAssignment body) Update an educationAssignment object.patch(EducationAssignment body, Consumer<EducationAssignmentItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update an educationAssignment object.publish()Provides operations to call the publish method.Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity.rubric()Provides operations to manage the rubric property of the microsoft.graph.educationAssignment entity.Provides operations to call the setUpFeedbackResourcesFolder method.Provides operations to call the setUpResourcesFolder method.Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity.com.microsoft.kiota.RequestInformationDelete an existing assignment.com.microsoft.kiota.RequestInformationtoDeleteRequestInformation(Consumer<EducationAssignmentItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete an existing assignment.com.microsoft.kiota.RequestInformationGet the properties and relationships of an assignment.com.microsoft.kiota.RequestInformationtoGetRequestInformation(Consumer<EducationAssignmentItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties and relationships of an assignment.com.microsoft.kiota.RequestInformationUpdate an educationAssignment object.com.microsoft.kiota.RequestInformationtoPatchRequestInformation(EducationAssignment body, Consumer<EducationAssignmentItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update an educationAssignment object.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
EducationAssignmentItemRequestBuilder
public EducationAssignmentItemRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEducationAssignmentItemRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
EducationAssignmentItemRequestBuilder
public EducationAssignmentItemRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newEducationAssignmentItemRequestBuilderand 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
-
activate
Provides operations to call the activate method.- Returns:
- a
ActivateRequestBuilder
-
categories
Provides operations to manage the categories property of the microsoft.graph.educationAssignment entity.- Returns:
- a
CategoriesRequestBuilder
-
deactivate
Provides operations to call the deactivate method.- Returns:
- a
DeactivateRequestBuilder
-
gradingCategory
Provides operations to manage the gradingCategory property of the microsoft.graph.educationAssignment entity.- Returns:
- a
GradingCategoryRequestBuilder
-
gradingScheme
Provides operations to manage the gradingScheme property of the microsoft.graph.educationAssignment entity.- Returns:
- a
GradingSchemeRequestBuilder
-
publish
Provides operations to call the publish method.- Returns:
- a
PublishRequestBuilder
-
resources
Provides operations to manage the resources property of the microsoft.graph.educationAssignment entity.- Returns:
- a
ResourcesRequestBuilder
-
rubric
Provides operations to manage the rubric property of the microsoft.graph.educationAssignment entity.- Returns:
- a
RubricRequestBuilder
-
setUpFeedbackResourcesFolder
Provides operations to call the setUpFeedbackResourcesFolder method.- Returns:
- a
SetUpFeedbackResourcesFolderRequestBuilder
-
setUpResourcesFolder
Provides operations to call the setUpResourcesFolder method.- Returns:
- a
SetUpResourcesFolderRequestBuilder
-
submissions
Provides operations to manage the submissions property of the microsoft.graph.educationAssignment entity.- Returns:
- a
SubmissionsRequestBuilder
-
delete
public void delete()Delete an existing assignment. Only teachers within a class can delete assignments.- Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
delete
public void delete(@Nullable Consumer<EducationAssignmentItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete an existing assignment. Only teachers within a class can delete assignments.- 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
Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue.- Returns:
- a
EducationAssignment - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
get
@Nullable public EducationAssignment get(@Nullable Consumer<EducationAssignmentItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue.- Parameters:
requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
EducationAssignment - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose.- Parameters:
body- The request body- Returns:
- a
EducationAssignment - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
patch
@Nullable public EducationAssignment patch(@Nonnull EducationAssignment body, @Nullable Consumer<EducationAssignmentItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose.- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
EducationAssignment - Throws:
ODataError- When receiving a 4XX or 5XX status code- See Also:
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation()Delete an existing assignment. Only teachers within a class can delete assignments.- Returns:
- a
RequestInformation
-
toDeleteRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toDeleteRequestInformation(@Nullable Consumer<EducationAssignmentItemRequestBuilder.DeleteRequestConfiguration> requestConfiguration) Delete an existing assignment. Only teachers within a class can delete assignments.- 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 the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue.- Returns:
- a
RequestInformation
-
toGetRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toGetRequestInformation(@Nullable Consumer<EducationAssignmentItemRequestBuilder.GetRequestConfiguration> requestConfiguration) Get the properties and relationships of an assignment. Only teachers, students, and applications with application permissions can perform this operation. Students can only see assignments assigned to them; teachers and applications with application permissions can see all assignments in a class. You can use the Prefer header in your request to get the inactive status in case the assignment is deactivated; otherwise, the response value for the status property is unknownFutureValue.- 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 EducationAssignment body) Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose.- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPatchRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPatchRequestInformation(@Nonnull EducationAssignment body, @Nullable Consumer<EducationAssignmentItemRequestBuilder.PatchRequestConfiguration> requestConfiguration) Update an educationAssignment object. Only teachers can perform this action. Alternatively, request to change the status of an assignment with publish action. Don't use a PATCH operation for this purpose.- 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
EducationAssignmentItemRequestBuilder
-