diff --git a/README.md b/README.md index 26191bb324d..c26279a886f 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@ repositories { dependencies { // Include the sdk as a dependency - implementation 'com.microsoft.graph:microsoft-graph:3.8.0' + implementation 'com.microsoft.graph:microsoft-graph:3.9.0' // Uncomment the line below if you are building an android application //implementation 'com.google.guava:guava:30.1.1-android' // This dependency is only needed if you are using the TokenCrendentialAuthProvider @@ -36,7 +36,7 @@ Add the dependency in `dependencies` in pom.xml com.microsoft.graph microsoft-graph - 3.8.0 + 3.9.0 @@ -143,3 +143,4 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI + diff --git a/gradle.properties b/gradle.properties index 33519f39e68..d80d16a7643 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ org.gradle.caching=true mavenGroupId = com.microsoft.graph mavenArtifactId = microsoft-graph mavenMajorVersion = 3 -mavenMinorVersion = 8 +mavenMinorVersion = 9 mavenPatchVersion = 0 mavenArtifactSuffix = @@ -52,3 +52,4 @@ mavenCentralPublishingEnabled=false + diff --git a/src/main/java/com/microsoft/graph/info/Constants.java b/src/main/java/com/microsoft/graph/info/Constants.java index fd2c4183437..47ae12f13d8 100644 --- a/src/main/java/com/microsoft/graph/info/Constants.java +++ b/src/main/java/com/microsoft/graph/info/Constants.java @@ -18,7 +18,7 @@ private Constants() { /** The client secret to use for unit testing */ public static final String CLIENTSECRET = "clientsecret"; /** The SDK version */ - public static final String VERSION_NAME = "3.8.0"; + public static final String VERSION_NAME = "3.9.0"; } @@ -29,3 +29,4 @@ private Constants() { + diff --git a/src/main/java/com/microsoft/graph/models/EducationAddedStudentAction.java b/src/main/java/com/microsoft/graph/models/EducationAddedStudentAction.java new file mode 100644 index 00000000000..2c56a6d44a7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAddedStudentAction.java @@ -0,0 +1,30 @@ +// Template Source: Enum.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + + +/** + * The Enum Education Added Student Action. +*/ +public enum EducationAddedStudentAction +{ + /** + * none + */ + NONE, + /** + * assign If Open + */ + ASSIGN_IF_OPEN, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For EducationAddedStudentAction values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignment.java b/src/main/java/com/microsoft/graph/models/EducationAssignment.java new file mode 100644 index 00000000000..387368a59ab --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignment.java @@ -0,0 +1,280 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.EducationAddedStudentAction; +import com.microsoft.graph.models.EducationAssignmentRecipient; +import com.microsoft.graph.models.IdentitySet; +import com.microsoft.graph.models.EducationAssignmentGradeType; +import com.microsoft.graph.models.EducationItemBody; +import com.microsoft.graph.models.EducationAssignmentStatus; +import com.microsoft.graph.models.EducationCategory; +import com.microsoft.graph.models.EducationAssignmentResource; +import com.microsoft.graph.models.EducationRubric; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.EducationCategoryCollectionPage; +import com.microsoft.graph.requests.EducationAssignmentResourceCollectionPage; +import com.microsoft.graph.requests.EducationSubmissionCollectionPage; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment. + */ +public class EducationAssignment extends Entity implements IJsonBackedObject { + + + /** + * The Added Student Action. + * Optional field to control the assignment behavior for students who are added after the assignment is published. If not specified, defaults to none value. Currently supports only two values: none or assignIfOpen. + */ + @SerializedName(value = "addedStudentAction", alternate = {"AddedStudentAction"}) + @Expose + @Nullable + public EducationAddedStudentAction addedStudentAction; + + /** + * The Allow Late Submissions. + * Identifies whether students can submit after the due date. If this property is not specified during create, it defaults to true. + */ + @SerializedName(value = "allowLateSubmissions", alternate = {"AllowLateSubmissions"}) + @Expose + @Nullable + public Boolean allowLateSubmissions; + + /** + * The Allow Students To Add Resources To Submission. + * Identifies whether students can add their own resources to a submission or if they can only modify resources added by the teacher. + */ + @SerializedName(value = "allowStudentsToAddResourcesToSubmission", alternate = {"AllowStudentsToAddResourcesToSubmission"}) + @Expose + @Nullable + public Boolean allowStudentsToAddResourcesToSubmission; + + /** + * The Assign Date Time. + * The date when the assignment should become active. If in the future, the assignment is not shown to the student until this date. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "assignDateTime", alternate = {"AssignDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime assignDateTime; + + /** + * The Assigned Date Time. + * The moment that the assignment was published to students and the assignment shows up on the students timeline. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "assignedDateTime", alternate = {"AssignedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime assignedDateTime; + + /** + * The Assign To. + * Which users, or whole class should receive a submission object once the assignment is published. + */ + @SerializedName(value = "assignTo", alternate = {"AssignTo"}) + @Expose + @Nullable + public EducationAssignmentRecipient assignTo; + + /** + * The Class Id. + * Class which this assignment belongs. + */ + @SerializedName(value = "classId", alternate = {"ClassId"}) + @Expose + @Nullable + public String classId; + + /** + * The Close Date Time. + * Date when the assignment will be closed for submissions. This is an optional field that can be null if the assignment does not allowLateSubmissions or when the closeDateTime is the same as the dueDateTime. But if specified, then the closeDateTime must be greater than or equal to the dueDateTime. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "closeDateTime", alternate = {"CloseDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime closeDateTime; + + /** + * The Created By. + * Who created the assignment. + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public IdentitySet createdBy; + + /** + * The Created Date Time. + * Moment when the assignment was created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Display Name. + * Name of the assignment. + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Due Date Time. + * Date when the students assignment is due. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "dueDateTime", alternate = {"DueDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime dueDateTime; + + /** + * The Grading. + * How the assignment will be graded. + */ + @SerializedName(value = "grading", alternate = {"Grading"}) + @Expose + @Nullable + public EducationAssignmentGradeType grading; + + /** + * The Instructions. + * Instructions for the assignment. This along with the display name tell the student what to do. + */ + @SerializedName(value = "instructions", alternate = {"Instructions"}) + @Expose + @Nullable + public EducationItemBody instructions; + + /** + * The Last Modified By. + * Who last modified the assignment. + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public IdentitySet lastModifiedBy; + + /** + * The Last Modified Date Time. + * Moment when the assignment was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + /** + * The Notification Channel Url. + * Optional field to specify the URL of the channel to post the assignment publish notification. If not specified or null, defaults to the General channel. This field only applies to assignments where the assignTo value is educationAssignmentClassRecipient. Updating the notificationChannelUrl is not allowed after the assignment has been published. + */ + @SerializedName(value = "notificationChannelUrl", alternate = {"NotificationChannelUrl"}) + @Expose + @Nullable + public String notificationChannelUrl; + + /** + * The Resources Folder Url. + * Folder URL where all the file resources for this assignment are stored. + */ + @SerializedName(value = "resourcesFolderUrl", alternate = {"ResourcesFolderUrl"}) + @Expose + @Nullable + public String resourcesFolderUrl; + + /** + * The Status. + * Status of the Assignment. You can not PATCH this value. Possible values are: draft, scheduled, published, assigned. + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public EducationAssignmentStatus status; + + /** + * The Web Url. + * The deep link URL for the given assignment. + */ + @SerializedName(value = "webUrl", alternate = {"WebUrl"}) + @Expose + @Nullable + public String webUrl; + + /** + * The Categories. + * When set, enables users to easily find assignments of a given type. Read-only. Nullable. + */ + @SerializedName(value = "categories", alternate = {"Categories"}) + @Expose + @Nullable + public EducationCategoryCollectionPage categories; + + /** + * The Resources. + * Learning objects that are associated with this assignment. Only teachers can modify this list. Nullable. + */ + @SerializedName(value = "resources", alternate = {"Resources"}) + @Expose + @Nullable + public EducationAssignmentResourceCollectionPage resources; + + /** + * The Rubric. + * When set, the grading rubric attached to this assignment. + */ + @SerializedName(value = "rubric", alternate = {"Rubric"}) + @Expose + @Nullable + public EducationRubric rubric; + + /** + * The Submissions. + * Once published, there is a submission object for each student representing their work and grade. Read-only. Nullable. + */ + @SerializedName(value = "submissions", alternate = {"Submissions"}) + @Expose + @Nullable + public EducationSubmissionCollectionPage submissions; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + + if (json.has("categories")) { + categories = serializer.deserializeObject(json.get("categories"), EducationCategoryCollectionPage.class); + } + + if (json.has("resources")) { + resources = serializer.deserializeObject(json.get("resources"), EducationAssignmentResourceCollectionPage.class); + } + + if (json.has("submissions")) { + submissions = serializer.deserializeObject(json.get("submissions"), EducationSubmissionCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignmentClassRecipient.java b/src/main/java/com/microsoft/graph/models/EducationAssignmentClassRecipient.java new file mode 100644 index 00000000000..f4276a6502d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignmentClassRecipient.java @@ -0,0 +1,38 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationAssignmentRecipient; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Class Recipient. + */ +public class EducationAssignmentClassRecipient extends EducationAssignmentRecipient implements IJsonBackedObject { + + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignmentDefaults.java b/src/main/java/com/microsoft/graph/models/EducationAssignmentDefaults.java new file mode 100644 index 00000000000..c24dcdd0757 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignmentDefaults.java @@ -0,0 +1,66 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationAddedStudentAction; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Defaults. + */ +public class EducationAssignmentDefaults extends Entity implements IJsonBackedObject { + + + /** + * The Added Student Action. + * Class-level default behavior for handling students who are added after the assignment is published. Possible values are: none, assignIfOpen. + */ + @SerializedName(value = "addedStudentAction", alternate = {"AddedStudentAction"}) + @Expose + @Nullable + public EducationAddedStudentAction addedStudentAction; + + /** + * The Due Time. + * Class-level default value for due time field. Default value is 23:59:00. + */ + @SerializedName(value = "dueTime", alternate = {"DueTime"}) + @Expose + @Nullable + public com.microsoft.graph.core.TimeOfDay dueTime; + + /** + * The Notification Channel Url. + * Default Teams channel to which notifications will be sent. Default value is null. + */ + @SerializedName(value = "notificationChannelUrl", alternate = {"NotificationChannelUrl"}) + @Expose + @Nullable + public String notificationChannelUrl; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignmentGrade.java b/src/main/java/com/microsoft/graph/models/EducationAssignmentGrade.java new file mode 100644 index 00000000000..df7fc2d9567 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignmentGrade.java @@ -0,0 +1,69 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.IdentitySet; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Grade. + */ +public class EducationAssignmentGrade implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Graded By. + * User who did the grading. + */ + @SerializedName(value = "gradedBy", alternate = {"GradedBy"}) + @Expose + @Nullable + public IdentitySet gradedBy; + + /** + * The Graded Date Time. + * Moment in time when the grade was applied to this submission object. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "gradedDateTime", alternate = {"GradedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime gradedDateTime; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignmentGradeType.java b/src/main/java/com/microsoft/graph/models/EducationAssignmentGradeType.java new file mode 100644 index 00000000000..5729252891e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignmentGradeType.java @@ -0,0 +1,50 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Grade Type. + */ +public class EducationAssignmentGradeType implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignmentGroupRecipient.java b/src/main/java/com/microsoft/graph/models/EducationAssignmentGroupRecipient.java new file mode 100644 index 00000000000..0612222316d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignmentGroupRecipient.java @@ -0,0 +1,38 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationAssignmentRecipient; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Group Recipient. + */ +public class EducationAssignmentGroupRecipient extends EducationAssignmentRecipient implements IJsonBackedObject { + + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignmentIndividualRecipient.java b/src/main/java/com/microsoft/graph/models/EducationAssignmentIndividualRecipient.java new file mode 100644 index 00000000000..0d7be1ff9f8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignmentIndividualRecipient.java @@ -0,0 +1,48 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.EducationAssignmentRecipient; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Individual Recipient. + */ +public class EducationAssignmentIndividualRecipient extends EducationAssignmentRecipient implements IJsonBackedObject { + + + /** + * The Recipients. + * A collection of ids of the recipients. + */ + @SerializedName(value = "recipients", alternate = {"Recipients"}) + @Expose + @Nullable + public java.util.List recipients; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignmentPointsGrade.java b/src/main/java/com/microsoft/graph/models/EducationAssignmentPointsGrade.java new file mode 100644 index 00000000000..487b551bd5d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignmentPointsGrade.java @@ -0,0 +1,47 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationAssignmentGrade; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Points Grade. + */ +public class EducationAssignmentPointsGrade extends EducationAssignmentGrade implements IJsonBackedObject { + + + /** + * The Points. + * Number of points a teacher is giving this submission object. + */ + @SerializedName(value = "points", alternate = {"Points"}) + @Expose + @Nullable + public Float points; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignmentPointsGradeType.java b/src/main/java/com/microsoft/graph/models/EducationAssignmentPointsGradeType.java new file mode 100644 index 00000000000..ada534009cd --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignmentPointsGradeType.java @@ -0,0 +1,47 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationAssignmentGradeType; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Points Grade Type. + */ +public class EducationAssignmentPointsGradeType extends EducationAssignmentGradeType implements IJsonBackedObject { + + + /** + * The Max Points. + * Max points possible for this assignment. + */ + @SerializedName(value = "maxPoints", alternate = {"MaxPoints"}) + @Expose + @Nullable + public Float maxPoints; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignmentPublishParameterSet.java b/src/main/java/com/microsoft/graph/models/EducationAssignmentPublishParameterSet.java new file mode 100644 index 00000000000..5e48febd4c0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignmentPublishParameterSet.java @@ -0,0 +1,69 @@ +// Template Source: BaseMethodParameterSet.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + +import com.microsoft.graph.models.EducationAssignment; +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import com.google.gson.JsonObject; +import java.util.EnumSet; +import java.util.ArrayList; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Publish Parameter Set. + */ +public class EducationAssignmentPublishParameterSet { + + /** + * Instiaciates a new EducationAssignmentPublishParameterSet + */ + public EducationAssignmentPublishParameterSet() {} + /** + * Instiaciates a new EducationAssignmentPublishParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected EducationAssignmentPublishParameterSet(@Nonnull final EducationAssignmentPublishParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static EducationAssignmentPublishParameterSetBuilder newBuilder() { + return new EducationAssignmentPublishParameterSetBuilder(); + } + /** + * Fluent builder for the EducationAssignmentPublishParameterSet + */ + public static final class EducationAssignmentPublishParameterSetBuilder { + /** + * Instanciates a new EducationAssignmentPublishParameterSetBuilder + */ + @Nullable + protected EducationAssignmentPublishParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public EducationAssignmentPublishParameterSet build() { + return new EducationAssignmentPublishParameterSet(this); + } + } + /** + * Gets the functions options from the properties that have been set + * @return a list of function options for the request + */ + @Nonnull + public java.util.List getFunctionOptions() { + final ArrayList result = new ArrayList<>(); + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignmentRecipient.java b/src/main/java/com/microsoft/graph/models/EducationAssignmentRecipient.java new file mode 100644 index 00000000000..6cfad1b9122 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignmentRecipient.java @@ -0,0 +1,50 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Recipient. + */ +public class EducationAssignmentRecipient implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignmentResource.java b/src/main/java/com/microsoft/graph/models/EducationAssignmentResource.java new file mode 100644 index 00000000000..4111d46d050 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignmentResource.java @@ -0,0 +1,57 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationResource; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Resource. + */ +public class EducationAssignmentResource extends Entity implements IJsonBackedObject { + + + /** + * The Distribute For Student Work. + * Indicates whether this resource should be copied to each student submission for modification and submission. + */ + @SerializedName(value = "distributeForStudentWork", alternate = {"DistributeForStudentWork"}) + @Expose + @Nullable + public Boolean distributeForStudentWork; + + /** + * The Resource. + * Resource object that has been associated with this assignment. + */ + @SerializedName(value = "resource", alternate = {"Resource"}) + @Expose + @Nullable + public EducationResource resource; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignmentSetUpResourcesFolderParameterSet.java b/src/main/java/com/microsoft/graph/models/EducationAssignmentSetUpResourcesFolderParameterSet.java new file mode 100644 index 00000000000..c6e50c54c38 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignmentSetUpResourcesFolderParameterSet.java @@ -0,0 +1,69 @@ +// Template Source: BaseMethodParameterSet.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + +import com.microsoft.graph.models.EducationAssignment; +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import com.google.gson.JsonObject; +import java.util.EnumSet; +import java.util.ArrayList; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Set Up Resources Folder Parameter Set. + */ +public class EducationAssignmentSetUpResourcesFolderParameterSet { + + /** + * Instiaciates a new EducationAssignmentSetUpResourcesFolderParameterSet + */ + public EducationAssignmentSetUpResourcesFolderParameterSet() {} + /** + * Instiaciates a new EducationAssignmentSetUpResourcesFolderParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected EducationAssignmentSetUpResourcesFolderParameterSet(@Nonnull final EducationAssignmentSetUpResourcesFolderParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static EducationAssignmentSetUpResourcesFolderParameterSetBuilder newBuilder() { + return new EducationAssignmentSetUpResourcesFolderParameterSetBuilder(); + } + /** + * Fluent builder for the EducationAssignmentSetUpResourcesFolderParameterSet + */ + public static final class EducationAssignmentSetUpResourcesFolderParameterSetBuilder { + /** + * Instanciates a new EducationAssignmentSetUpResourcesFolderParameterSetBuilder + */ + @Nullable + protected EducationAssignmentSetUpResourcesFolderParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public EducationAssignmentSetUpResourcesFolderParameterSet build() { + return new EducationAssignmentSetUpResourcesFolderParameterSet(this); + } + } + /** + * Gets the functions options from the properties that have been set + * @return a list of function options for the request + */ + @Nonnull + public java.util.List getFunctionOptions() { + final ArrayList result = new ArrayList<>(); + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignmentSettings.java b/src/main/java/com/microsoft/graph/models/EducationAssignmentSettings.java new file mode 100644 index 00000000000..8f810c4197d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignmentSettings.java @@ -0,0 +1,47 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Settings. + */ +public class EducationAssignmentSettings extends Entity implements IJsonBackedObject { + + + /** + * The Submission Animation Disabled. + * Indicates whether turn-in celebration animation will be shown. A value of true indicates that the animation will not be shown. Default value is false. + */ + @SerializedName(value = "submissionAnimationDisabled", alternate = {"SubmissionAnimationDisabled"}) + @Expose + @Nullable + public Boolean submissionAnimationDisabled; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationAssignmentStatus.java b/src/main/java/com/microsoft/graph/models/EducationAssignmentStatus.java new file mode 100644 index 00000000000..7c53510fc00 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationAssignmentStatus.java @@ -0,0 +1,34 @@ +// Template Source: Enum.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + + +/** + * The Enum Education Assignment Status. +*/ +public enum EducationAssignmentStatus +{ + /** + * draft + */ + DRAFT, + /** + * published + */ + PUBLISHED, + /** + * assigned + */ + ASSIGNED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For EducationAssignmentStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/EducationCategory.java b/src/main/java/com/microsoft/graph/models/EducationCategory.java new file mode 100644 index 00000000000..b7e09a0a0cd --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationCategory.java @@ -0,0 +1,47 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Category. + */ +public class EducationCategory extends Entity implements IJsonBackedObject { + + + /** + * The Display Name. + * Unique identifier for the category. + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationClass.java b/src/main/java/com/microsoft/graph/models/EducationClass.java index 74ff6c646fe..f246ab253a1 100644 --- a/src/main/java/com/microsoft/graph/models/EducationClass.java +++ b/src/main/java/com/microsoft/graph/models/EducationClass.java @@ -13,10 +13,16 @@ import com.microsoft.graph.models.IdentitySet; import com.microsoft.graph.models.EducationExternalSource; import com.microsoft.graph.models.EducationTerm; +import com.microsoft.graph.models.EducationCategory; +import com.microsoft.graph.models.EducationAssignmentDefaults; +import com.microsoft.graph.models.EducationAssignment; +import com.microsoft.graph.models.EducationAssignmentSettings; import com.microsoft.graph.models.Group; import com.microsoft.graph.models.EducationUser; import com.microsoft.graph.models.EducationSchool; import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.EducationCategoryCollectionPage; +import com.microsoft.graph.requests.EducationAssignmentCollectionPage; import com.microsoft.graph.requests.EducationUserCollectionPage; import com.microsoft.graph.requests.EducationSchoolCollectionPage; @@ -143,6 +149,42 @@ public class EducationClass extends Entity implements IJsonBackedObject { @Nullable public EducationTerm term; + /** + * The Assignment Categories. + * + */ + @SerializedName(value = "assignmentCategories", alternate = {"AssignmentCategories"}) + @Expose + @Nullable + public EducationCategoryCollectionPage assignmentCategories; + + /** + * The Assignment Defaults. + * + */ + @SerializedName(value = "assignmentDefaults", alternate = {"AssignmentDefaults"}) + @Expose + @Nullable + public EducationAssignmentDefaults assignmentDefaults; + + /** + * The Assignments. + * All assignments associated with this class. Nullable. + */ + @SerializedName(value = "assignments", alternate = {"Assignments"}) + @Expose + @Nullable + public EducationAssignmentCollectionPage assignments; + + /** + * The Assignment Settings. + * + */ + @SerializedName(value = "assignmentSettings", alternate = {"AssignmentSettings"}) + @Expose + @Nullable + public EducationAssignmentSettings assignmentSettings; + /** * The Group. * The underlying Microsoft 365 group object. @@ -183,6 +225,14 @@ public class EducationClass extends Entity implements IJsonBackedObject { public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + if (json.has("assignmentCategories")) { + assignmentCategories = serializer.deserializeObject(json.get("assignmentCategories"), EducationCategoryCollectionPage.class); + } + + if (json.has("assignments")) { + assignments = serializer.deserializeObject(json.get("assignments"), EducationAssignmentCollectionPage.class); + } + if (json.has("members")) { members = serializer.deserializeObject(json.get("members"), EducationUserCollectionPage.class); } diff --git a/src/main/java/com/microsoft/graph/models/EducationExcelResource.java b/src/main/java/com/microsoft/graph/models/EducationExcelResource.java new file mode 100644 index 00000000000..675ae6bd882 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationExcelResource.java @@ -0,0 +1,47 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationResource; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Excel Resource. + */ +public class EducationExcelResource extends EducationResource implements IJsonBackedObject { + + + /** + * The File Url. + * Pointer to the Excel file object. + */ + @SerializedName(value = "fileUrl", alternate = {"FileUrl"}) + @Expose + @Nullable + public String fileUrl; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationFeedback.java b/src/main/java/com/microsoft/graph/models/EducationFeedback.java new file mode 100644 index 00000000000..f94c2f059db --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationFeedback.java @@ -0,0 +1,79 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.IdentitySet; +import com.microsoft.graph.models.EducationItemBody; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Feedback. + */ +public class EducationFeedback implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Feedback By. + * User who created the feedback. + */ + @SerializedName(value = "feedbackBy", alternate = {"FeedbackBy"}) + @Expose + @Nullable + public IdentitySet feedbackBy; + + /** + * The Feedback Date Time. + * Moment in time when the feedback was given. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "feedbackDateTime", alternate = {"FeedbackDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime feedbackDateTime; + + /** + * The Text. + * Feedback. + */ + @SerializedName(value = "text", alternate = {"Text"}) + @Expose + @Nullable + public EducationItemBody text; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationFeedbackOutcome.java b/src/main/java/com/microsoft/graph/models/EducationFeedbackOutcome.java new file mode 100644 index 00000000000..3ca00685933 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationFeedbackOutcome.java @@ -0,0 +1,57 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationFeedback; +import com.microsoft.graph.models.EducationOutcome; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Feedback Outcome. + */ +public class EducationFeedbackOutcome extends EducationOutcome implements IJsonBackedObject { + + + /** + * The Feedback. + * Teacher's written feedback to the student. + */ + @SerializedName(value = "feedback", alternate = {"Feedback"}) + @Expose + @Nullable + public EducationFeedback feedback; + + /** + * The Published Feedback. + * A copy of the feedback property that is made when the grade is released to the student. + */ + @SerializedName(value = "publishedFeedback", alternate = {"PublishedFeedback"}) + @Expose + @Nullable + public EducationFeedback publishedFeedback; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationFileResource.java b/src/main/java/com/microsoft/graph/models/EducationFileResource.java new file mode 100644 index 00000000000..46c7b45e5c3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationFileResource.java @@ -0,0 +1,47 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationResource; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education File Resource. + */ +public class EducationFileResource extends EducationResource implements IJsonBackedObject { + + + /** + * The File Url. + * Location on disk of the file resource. + */ + @SerializedName(value = "fileUrl", alternate = {"FileUrl"}) + @Expose + @Nullable + public String fileUrl; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationItemBody.java b/src/main/java/com/microsoft/graph/models/EducationItemBody.java new file mode 100644 index 00000000000..8223a3a6292 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationItemBody.java @@ -0,0 +1,69 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.BodyType; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Item Body. + */ +public class EducationItemBody implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Content. + * + */ + @SerializedName(value = "content", alternate = {"Content"}) + @Expose + @Nullable + public String content; + + /** + * The Content Type. + * + */ + @SerializedName(value = "contentType", alternate = {"ContentType"}) + @Expose + @Nullable + public BodyType contentType; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationLinkResource.java b/src/main/java/com/microsoft/graph/models/EducationLinkResource.java new file mode 100644 index 00000000000..968be888bfd --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationLinkResource.java @@ -0,0 +1,47 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationResource; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Link Resource. + */ +public class EducationLinkResource extends EducationResource implements IJsonBackedObject { + + + /** + * The Link. + * URL to the resource. + */ + @SerializedName(value = "link", alternate = {"Link"}) + @Expose + @Nullable + public String link; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationOutcome.java b/src/main/java/com/microsoft/graph/models/EducationOutcome.java new file mode 100644 index 00000000000..059a3055c62 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationOutcome.java @@ -0,0 +1,57 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.IdentitySet; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Outcome. + */ +public class EducationOutcome extends Entity implements IJsonBackedObject { + + + /** + * The Last Modified By. + * + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public IdentitySet lastModifiedBy; + + /** + * The Last Modified Date Time. + * + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationPointsOutcome.java b/src/main/java/com/microsoft/graph/models/EducationPointsOutcome.java new file mode 100644 index 00000000000..2a6ef2812cd --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationPointsOutcome.java @@ -0,0 +1,57 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationAssignmentPointsGrade; +import com.microsoft.graph.models.EducationOutcome; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Points Outcome. + */ +public class EducationPointsOutcome extends EducationOutcome implements IJsonBackedObject { + + + /** + * The Points. + * The numeric grade the teacher has given the student for this assignment. + */ + @SerializedName(value = "points", alternate = {"Points"}) + @Expose + @Nullable + public EducationAssignmentPointsGrade points; + + /** + * The Published Points. + * A copy of the points property that is made when the grade is released to the student. + */ + @SerializedName(value = "publishedPoints", alternate = {"PublishedPoints"}) + @Expose + @Nullable + public EducationAssignmentPointsGrade publishedPoints; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationPowerPointResource.java b/src/main/java/com/microsoft/graph/models/EducationPowerPointResource.java new file mode 100644 index 00000000000..45971e44c9b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationPowerPointResource.java @@ -0,0 +1,47 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationResource; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Power Point Resource. + */ +public class EducationPowerPointResource extends EducationResource implements IJsonBackedObject { + + + /** + * The File Url. + * Location of the file on disk. + */ + @SerializedName(value = "fileUrl", alternate = {"FileUrl"}) + @Expose + @Nullable + public String fileUrl; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationResource.java b/src/main/java/com/microsoft/graph/models/EducationResource.java new file mode 100644 index 00000000000..8c578564507 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationResource.java @@ -0,0 +1,96 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.IdentitySet; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Resource. + */ +public class EducationResource implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Created By. + * Who created the resource. + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public IdentitySet createdBy; + + /** + * The Created Date Time. + * The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Display Name. + * Display name of resource. + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Last Modified By. + * Who was the last user to modify the resource. + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public IdentitySet lastModifiedBy; + + /** + * The Last Modified Date Time. + * Moment in time when the resource was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationRubric.java b/src/main/java/com/microsoft/graph/models/EducationRubric.java new file mode 100644 index 00000000000..afae7a2e927 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationRubric.java @@ -0,0 +1,125 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.IdentitySet; +import com.microsoft.graph.models.EducationItemBody; +import com.microsoft.graph.models.EducationAssignmentGradeType; +import com.microsoft.graph.models.RubricLevel; +import com.microsoft.graph.models.RubricQuality; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Rubric. + */ +public class EducationRubric extends Entity implements IJsonBackedObject { + + + /** + * The Created By. + * The user who created this resource. + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public IdentitySet createdBy; + + /** + * The Created Date Time. + * The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Description. + * The description of this rubric. + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public EducationItemBody description; + + /** + * The Display Name. + * The name of this rubric. + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Grading. + * The grading type of this rubric -- null for a no-points rubric, or educationAssignmentPointsGradeType for a points rubric. + */ + @SerializedName(value = "grading", alternate = {"Grading"}) + @Expose + @Nullable + public EducationAssignmentGradeType grading; + + /** + * The Last Modified By. + * The last user to modify the resource. + */ + @SerializedName(value = "lastModifiedBy", alternate = {"LastModifiedBy"}) + @Expose + @Nullable + public IdentitySet lastModifiedBy; + + /** + * The Last Modified Date Time. + * Moment in time when the resource was last modified. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + /** + * The Levels. + * The collection of levels making up this rubric. + */ + @SerializedName(value = "levels", alternate = {"Levels"}) + @Expose + @Nullable + public java.util.List levels; + + /** + * The Qualities. + * The collection of qualities making up this rubric. + */ + @SerializedName(value = "qualities", alternate = {"Qualities"}) + @Expose + @Nullable + public java.util.List qualities; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationRubricOutcome.java b/src/main/java/com/microsoft/graph/models/EducationRubricOutcome.java new file mode 100644 index 00000000000..7afa38ddc38 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationRubricOutcome.java @@ -0,0 +1,77 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.RubricQualityFeedbackModel; +import com.microsoft.graph.models.RubricQualitySelectedColumnModel; +import com.microsoft.graph.models.EducationOutcome; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Rubric Outcome. + */ +public class EducationRubricOutcome extends EducationOutcome implements IJsonBackedObject { + + + /** + * The Published Rubric Quality Feedback. + * A copy of the rubricQualityFeedback property that is made when the grade is released to the student. + */ + @SerializedName(value = "publishedRubricQualityFeedback", alternate = {"PublishedRubricQualityFeedback"}) + @Expose + @Nullable + public java.util.List publishedRubricQualityFeedback; + + /** + * The Published Rubric Quality Selected Levels. + * A copy of the rubricQualitySelectedLevels property that is made when the grade is released to the student. + */ + @SerializedName(value = "publishedRubricQualitySelectedLevels", alternate = {"PublishedRubricQualitySelectedLevels"}) + @Expose + @Nullable + public java.util.List publishedRubricQualitySelectedLevels; + + /** + * The Rubric Quality Feedback. + * A collection of specific feedback for each quality of this rubric. + */ + @SerializedName(value = "rubricQualityFeedback", alternate = {"RubricQualityFeedback"}) + @Expose + @Nullable + public java.util.List rubricQualityFeedback; + + /** + * The Rubric Quality Selected Levels. + * The level that the teacher has selected for each quality while grading this assignment. + */ + @SerializedName(value = "rubricQualitySelectedLevels", alternate = {"RubricQualitySelectedLevels"}) + @Expose + @Nullable + public java.util.List rubricQualitySelectedLevels; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationSubmission.java b/src/main/java/com/microsoft/graph/models/EducationSubmission.java new file mode 100644 index 00000000000..3adb024535e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationSubmission.java @@ -0,0 +1,166 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.EducationSubmissionRecipient; +import com.microsoft.graph.models.IdentitySet; +import com.microsoft.graph.models.EducationSubmissionStatus; +import com.microsoft.graph.models.EducationOutcome; +import com.microsoft.graph.models.EducationSubmissionResource; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.EducationOutcomeCollectionPage; +import com.microsoft.graph.requests.EducationSubmissionResourceCollectionPage; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission. + */ +public class EducationSubmission extends Entity implements IJsonBackedObject { + + + /** + * The Recipient. + * Who this submission is assigned to. + */ + @SerializedName(value = "recipient", alternate = {"Recipient"}) + @Expose + @Nullable + public EducationSubmissionRecipient recipient; + + /** + * The Resources Folder Url. + * Folder where all file resources for this submission need to be stored. + */ + @SerializedName(value = "resourcesFolderUrl", alternate = {"ResourcesFolderUrl"}) + @Expose + @Nullable + public String resourcesFolderUrl; + + /** + * The Returned By. + * User who moved the status of this submission to returned. + */ + @SerializedName(value = "returnedBy", alternate = {"ReturnedBy"}) + @Expose + @Nullable + public IdentitySet returnedBy; + + /** + * The Returned Date Time. + * Moment in time when the submission was returned. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "returnedDateTime", alternate = {"ReturnedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime returnedDateTime; + + /** + * The Status. + * Read-Only. Possible values are: working, submitted, released, returned. + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public EducationSubmissionStatus status; + + /** + * The Submitted By. + * User who moved the resource into the submitted state. + */ + @SerializedName(value = "submittedBy", alternate = {"SubmittedBy"}) + @Expose + @Nullable + public IdentitySet submittedBy; + + /** + * The Submitted Date Time. + * Moment in time when the submission was moved into the submitted state. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "submittedDateTime", alternate = {"SubmittedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime submittedDateTime; + + /** + * The Unsubmitted By. + * User who moved the resource from submitted into the working state. + */ + @SerializedName(value = "unsubmittedBy", alternate = {"UnsubmittedBy"}) + @Expose + @Nullable + public IdentitySet unsubmittedBy; + + /** + * The Unsubmitted Date Time. + * Moment in time when the submission was moved from submitted into the working state. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + */ + @SerializedName(value = "unsubmittedDateTime", alternate = {"UnsubmittedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime unsubmittedDateTime; + + /** + * The Outcomes. + * Read-Write. Nullable. + */ + @SerializedName(value = "outcomes", alternate = {"Outcomes"}) + @Expose + @Nullable + public EducationOutcomeCollectionPage outcomes; + + /** + * The Resources. + * Nullable. + */ + @SerializedName(value = "resources", alternate = {"Resources"}) + @Expose + @Nullable + public EducationSubmissionResourceCollectionPage resources; + + /** + * The Submitted Resources. + * Read-only. Nullable. + */ + @SerializedName(value = "submittedResources", alternate = {"SubmittedResources"}) + @Expose + @Nullable + public EducationSubmissionResourceCollectionPage submittedResources; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + + if (json.has("outcomes")) { + outcomes = serializer.deserializeObject(json.get("outcomes"), EducationOutcomeCollectionPage.class); + } + + if (json.has("resources")) { + resources = serializer.deserializeObject(json.get("resources"), EducationSubmissionResourceCollectionPage.class); + } + + if (json.has("submittedResources")) { + submittedResources = serializer.deserializeObject(json.get("submittedResources"), EducationSubmissionResourceCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationSubmissionIndividualRecipient.java b/src/main/java/com/microsoft/graph/models/EducationSubmissionIndividualRecipient.java new file mode 100644 index 00000000000..afd987831a9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationSubmissionIndividualRecipient.java @@ -0,0 +1,47 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationSubmissionRecipient; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Individual Recipient. + */ +public class EducationSubmissionIndividualRecipient extends EducationSubmissionRecipient implements IJsonBackedObject { + + + /** + * The User Id. + * User ID of the user to whom the submission is assigned. + */ + @SerializedName(value = "userId", alternate = {"UserId"}) + @Expose + @Nullable + public String userId; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationSubmissionRecipient.java b/src/main/java/com/microsoft/graph/models/EducationSubmissionRecipient.java new file mode 100644 index 00000000000..b9bb4d11ba0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationSubmissionRecipient.java @@ -0,0 +1,50 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Recipient. + */ +public class EducationSubmissionRecipient implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationSubmissionResource.java b/src/main/java/com/microsoft/graph/models/EducationSubmissionResource.java new file mode 100644 index 00000000000..251b549f596 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationSubmissionResource.java @@ -0,0 +1,57 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationResource; +import com.microsoft.graph.models.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Resource. + */ +public class EducationSubmissionResource extends Entity implements IJsonBackedObject { + + + /** + * The Assignment Resource Url. + * Pointer to the assignment from which this resource was copied. If this is null, the student uploaded the resource. + */ + @SerializedName(value = "assignmentResourceUrl", alternate = {"AssignmentResourceUrl"}) + @Expose + @Nullable + public String assignmentResourceUrl; + + /** + * The Resource. + * Resource object. + */ + @SerializedName(value = "resource", alternate = {"Resource"}) + @Expose + @Nullable + public EducationResource resource; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationSubmissionReturnParameterSet.java b/src/main/java/com/microsoft/graph/models/EducationSubmissionReturnParameterSet.java new file mode 100644 index 00000000000..3f8d17cf30d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationSubmissionReturnParameterSet.java @@ -0,0 +1,69 @@ +// Template Source: BaseMethodParameterSet.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + +import com.microsoft.graph.models.EducationSubmission; +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import com.google.gson.JsonObject; +import java.util.EnumSet; +import java.util.ArrayList; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Return Parameter Set. + */ +public class EducationSubmissionReturnParameterSet { + + /** + * Instiaciates a new EducationSubmissionReturnParameterSet + */ + public EducationSubmissionReturnParameterSet() {} + /** + * Instiaciates a new EducationSubmissionReturnParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected EducationSubmissionReturnParameterSet(@Nonnull final EducationSubmissionReturnParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static EducationSubmissionReturnParameterSetBuilder newBuilder() { + return new EducationSubmissionReturnParameterSetBuilder(); + } + /** + * Fluent builder for the EducationSubmissionReturnParameterSet + */ + public static final class EducationSubmissionReturnParameterSetBuilder { + /** + * Instanciates a new EducationSubmissionReturnParameterSetBuilder + */ + @Nullable + protected EducationSubmissionReturnParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public EducationSubmissionReturnParameterSet build() { + return new EducationSubmissionReturnParameterSet(this); + } + } + /** + * Gets the functions options from the properties that have been set + * @return a list of function options for the request + */ + @Nonnull + public java.util.List getFunctionOptions() { + final ArrayList result = new ArrayList<>(); + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationSubmissionSetUpResourcesFolderParameterSet.java b/src/main/java/com/microsoft/graph/models/EducationSubmissionSetUpResourcesFolderParameterSet.java new file mode 100644 index 00000000000..08c03ff0008 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationSubmissionSetUpResourcesFolderParameterSet.java @@ -0,0 +1,69 @@ +// Template Source: BaseMethodParameterSet.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + +import com.microsoft.graph.models.EducationSubmission; +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import com.google.gson.JsonObject; +import java.util.EnumSet; +import java.util.ArrayList; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Set Up Resources Folder Parameter Set. + */ +public class EducationSubmissionSetUpResourcesFolderParameterSet { + + /** + * Instiaciates a new EducationSubmissionSetUpResourcesFolderParameterSet + */ + public EducationSubmissionSetUpResourcesFolderParameterSet() {} + /** + * Instiaciates a new EducationSubmissionSetUpResourcesFolderParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected EducationSubmissionSetUpResourcesFolderParameterSet(@Nonnull final EducationSubmissionSetUpResourcesFolderParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static EducationSubmissionSetUpResourcesFolderParameterSetBuilder newBuilder() { + return new EducationSubmissionSetUpResourcesFolderParameterSetBuilder(); + } + /** + * Fluent builder for the EducationSubmissionSetUpResourcesFolderParameterSet + */ + public static final class EducationSubmissionSetUpResourcesFolderParameterSetBuilder { + /** + * Instanciates a new EducationSubmissionSetUpResourcesFolderParameterSetBuilder + */ + @Nullable + protected EducationSubmissionSetUpResourcesFolderParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public EducationSubmissionSetUpResourcesFolderParameterSet build() { + return new EducationSubmissionSetUpResourcesFolderParameterSet(this); + } + } + /** + * Gets the functions options from the properties that have been set + * @return a list of function options for the request + */ + @Nonnull + public java.util.List getFunctionOptions() { + final ArrayList result = new ArrayList<>(); + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationSubmissionStatus.java b/src/main/java/com/microsoft/graph/models/EducationSubmissionStatus.java new file mode 100644 index 00000000000..b0589140167 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationSubmissionStatus.java @@ -0,0 +1,38 @@ +// Template Source: Enum.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + + +/** + * The Enum Education Submission Status. +*/ +public enum EducationSubmissionStatus +{ + /** + * working + */ + WORKING, + /** + * submitted + */ + SUBMITTED, + /** + * released + */ + RELEASED, + /** + * returned + */ + RETURNED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For EducationSubmissionStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/EducationSubmissionSubmitParameterSet.java b/src/main/java/com/microsoft/graph/models/EducationSubmissionSubmitParameterSet.java new file mode 100644 index 00000000000..29fad3a4384 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationSubmissionSubmitParameterSet.java @@ -0,0 +1,69 @@ +// Template Source: BaseMethodParameterSet.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + +import com.microsoft.graph.models.EducationSubmission; +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import com.google.gson.JsonObject; +import java.util.EnumSet; +import java.util.ArrayList; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Submit Parameter Set. + */ +public class EducationSubmissionSubmitParameterSet { + + /** + * Instiaciates a new EducationSubmissionSubmitParameterSet + */ + public EducationSubmissionSubmitParameterSet() {} + /** + * Instiaciates a new EducationSubmissionSubmitParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected EducationSubmissionSubmitParameterSet(@Nonnull final EducationSubmissionSubmitParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static EducationSubmissionSubmitParameterSetBuilder newBuilder() { + return new EducationSubmissionSubmitParameterSetBuilder(); + } + /** + * Fluent builder for the EducationSubmissionSubmitParameterSet + */ + public static final class EducationSubmissionSubmitParameterSetBuilder { + /** + * Instanciates a new EducationSubmissionSubmitParameterSetBuilder + */ + @Nullable + protected EducationSubmissionSubmitParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public EducationSubmissionSubmitParameterSet build() { + return new EducationSubmissionSubmitParameterSet(this); + } + } + /** + * Gets the functions options from the properties that have been set + * @return a list of function options for the request + */ + @Nonnull + public java.util.List getFunctionOptions() { + final ArrayList result = new ArrayList<>(); + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationSubmissionUnsubmitParameterSet.java b/src/main/java/com/microsoft/graph/models/EducationSubmissionUnsubmitParameterSet.java new file mode 100644 index 00000000000..c47b70b9df7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationSubmissionUnsubmitParameterSet.java @@ -0,0 +1,69 @@ +// Template Source: BaseMethodParameterSet.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + +import com.microsoft.graph.models.EducationSubmission; +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import javax.annotation.Nonnull; +import javax.annotation.Nullable; +import com.google.gson.JsonObject; +import java.util.EnumSet; +import java.util.ArrayList; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Unsubmit Parameter Set. + */ +public class EducationSubmissionUnsubmitParameterSet { + + /** + * Instiaciates a new EducationSubmissionUnsubmitParameterSet + */ + public EducationSubmissionUnsubmitParameterSet() {} + /** + * Instiaciates a new EducationSubmissionUnsubmitParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected EducationSubmissionUnsubmitParameterSet(@Nonnull final EducationSubmissionUnsubmitParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static EducationSubmissionUnsubmitParameterSetBuilder newBuilder() { + return new EducationSubmissionUnsubmitParameterSetBuilder(); + } + /** + * Fluent builder for the EducationSubmissionUnsubmitParameterSet + */ + public static final class EducationSubmissionUnsubmitParameterSetBuilder { + /** + * Instanciates a new EducationSubmissionUnsubmitParameterSetBuilder + */ + @Nullable + protected EducationSubmissionUnsubmitParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public EducationSubmissionUnsubmitParameterSet build() { + return new EducationSubmissionUnsubmitParameterSet(this); + } + } + /** + * Gets the functions options from the properties that have been set + * @return a list of function options for the request + */ + @Nonnull + public java.util.List getFunctionOptions() { + final ArrayList result = new ArrayList<>(); + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/EducationUser.java b/src/main/java/com/microsoft/graph/models/EducationUser.java index 474a71a88cc..ab02484d013 100644 --- a/src/main/java/com/microsoft/graph/models/EducationUser.java +++ b/src/main/java/com/microsoft/graph/models/EducationUser.java @@ -20,10 +20,12 @@ import com.microsoft.graph.models.ProvisionedPlan; import com.microsoft.graph.models.EducationStudent; import com.microsoft.graph.models.EducationTeacher; +import com.microsoft.graph.models.EducationRubric; import com.microsoft.graph.models.EducationClass; import com.microsoft.graph.models.EducationSchool; import com.microsoft.graph.models.User; import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.EducationRubricCollectionPage; import com.microsoft.graph.requests.EducationClassCollectionPage; import com.microsoft.graph.requests.EducationSchoolCollectionPage; @@ -321,6 +323,15 @@ public class EducationUser extends Entity implements IJsonBackedObject { @Nullable public String userType; + /** + * The Rubrics. + * + */ + @SerializedName(value = "rubrics", alternate = {"Rubrics"}) + @Expose + @Nullable + public EducationRubricCollectionPage rubrics; + /** * The Classes. * Classes to which the user belongs. Nullable. @@ -361,6 +372,10 @@ public class EducationUser extends Entity implements IJsonBackedObject { public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + if (json.has("rubrics")) { + rubrics = serializer.deserializeObject(json.get("rubrics"), EducationRubricCollectionPage.class); + } + if (json.has("classes")) { classes = serializer.deserializeObject(json.get("classes"), EducationClassCollectionPage.class); } diff --git a/src/main/java/com/microsoft/graph/models/EducationWordResource.java b/src/main/java/com/microsoft/graph/models/EducationWordResource.java new file mode 100644 index 00000000000..994bdfd2ed4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/EducationWordResource.java @@ -0,0 +1,47 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationResource; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Word Resource. + */ +public class EducationWordResource extends EducationResource implements IJsonBackedObject { + + + /** + * The File Url. + * Location of the file on disk. + */ + @SerializedName(value = "fileUrl", alternate = {"FileUrl"}) + @Expose + @Nullable + public String fileUrl; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/EventDeclineParameterSet.java b/src/main/java/com/microsoft/graph/models/EventDeclineParameterSet.java index 29ea7a4bfe5..d763984bd1b 100644 --- a/src/main/java/com/microsoft/graph/models/EventDeclineParameterSet.java +++ b/src/main/java/com/microsoft/graph/models/EventDeclineParameterSet.java @@ -5,7 +5,7 @@ package com.microsoft.graph.models; - +import com.microsoft.graph.models.TimeSlot; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import javax.annotation.Nonnull; @@ -38,6 +38,15 @@ public class EventDeclineParameterSet { @Nullable public Boolean sendResponse; + /** + * The proposed New Time. + * + */ + @SerializedName(value = "proposedNewTime", alternate = {"ProposedNewTime"}) + @Expose + @Nullable + public TimeSlot proposedNewTime; + /** * Instiaciates a new EventDeclineParameterSet @@ -50,6 +59,7 @@ public EventDeclineParameterSet() {} protected EventDeclineParameterSet(@Nonnull final EventDeclineParameterSetBuilder builder) { this.comment = builder.comment; this.sendResponse = builder.sendResponse; + this.proposedNewTime = builder.proposedNewTime; } /** * Gets a new builder for the body @@ -93,6 +103,21 @@ public EventDeclineParameterSetBuilder withSendResponse(@Nullable final Boolean this.sendResponse = val; return this; } + /** + * The proposedNewTime parameter value + */ + @Nullable + protected TimeSlot proposedNewTime; + /** + * Sets the ProposedNewTime + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public EventDeclineParameterSetBuilder withProposedNewTime(@Nullable final TimeSlot val) { + this.proposedNewTime = val; + return this; + } /** * Instanciates a new EventDeclineParameterSetBuilder */ @@ -120,6 +145,9 @@ public java.util.List getFunctionOpt if(this.sendResponse != null) { result.add(new com.microsoft.graph.options.FunctionOption("sendResponse", sendResponse)); } + if(this.proposedNewTime != null) { + result.add(new com.microsoft.graph.options.FunctionOption("proposedNewTime", proposedNewTime)); + } return result; } } diff --git a/src/main/java/com/microsoft/graph/models/EventTentativelyAcceptParameterSet.java b/src/main/java/com/microsoft/graph/models/EventTentativelyAcceptParameterSet.java index fb4d83b65a6..8534de157ae 100644 --- a/src/main/java/com/microsoft/graph/models/EventTentativelyAcceptParameterSet.java +++ b/src/main/java/com/microsoft/graph/models/EventTentativelyAcceptParameterSet.java @@ -5,7 +5,7 @@ package com.microsoft.graph.models; - +import com.microsoft.graph.models.TimeSlot; import com.google.gson.annotations.Expose; import com.google.gson.annotations.SerializedName; import javax.annotation.Nonnull; @@ -38,6 +38,15 @@ public class EventTentativelyAcceptParameterSet { @Nullable public Boolean sendResponse; + /** + * The proposed New Time. + * + */ + @SerializedName(value = "proposedNewTime", alternate = {"ProposedNewTime"}) + @Expose + @Nullable + public TimeSlot proposedNewTime; + /** * Instiaciates a new EventTentativelyAcceptParameterSet @@ -50,6 +59,7 @@ public EventTentativelyAcceptParameterSet() {} protected EventTentativelyAcceptParameterSet(@Nonnull final EventTentativelyAcceptParameterSetBuilder builder) { this.comment = builder.comment; this.sendResponse = builder.sendResponse; + this.proposedNewTime = builder.proposedNewTime; } /** * Gets a new builder for the body @@ -93,6 +103,21 @@ public EventTentativelyAcceptParameterSetBuilder withSendResponse(@Nullable fina this.sendResponse = val; return this; } + /** + * The proposedNewTime parameter value + */ + @Nullable + protected TimeSlot proposedNewTime; + /** + * Sets the ProposedNewTime + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public EventTentativelyAcceptParameterSetBuilder withProposedNewTime(@Nullable final TimeSlot val) { + this.proposedNewTime = val; + return this; + } /** * Instanciates a new EventTentativelyAcceptParameterSetBuilder */ @@ -120,6 +145,9 @@ public java.util.List getFunctionOpt if(this.sendResponse != null) { result.add(new com.microsoft.graph.options.FunctionOption("sendResponse", sendResponse)); } + if(this.proposedNewTime != null) { + result.add(new com.microsoft.graph.options.FunctionOption("proposedNewTime", proposedNewTime)); + } return result; } } diff --git a/src/main/java/com/microsoft/graph/models/OnlineMeeting.java b/src/main/java/com/microsoft/graph/models/OnlineMeeting.java index 0790ab737c1..770eb8d7bd0 100644 --- a/src/main/java/com/microsoft/graph/models/OnlineMeeting.java +++ b/src/main/java/com/microsoft/graph/models/OnlineMeeting.java @@ -87,7 +87,7 @@ public class OnlineMeeting extends Entity implements IJsonBackedObject { /** * The Is Entry Exit Announced. - * Whether or not to announce when callers join or leave. + * Indicates whether to announce when callers join or leave. */ @SerializedName(value = "isEntryExitAnnounced", alternate = {"IsEntryExitAnnounced"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/RubricCriterion.java b/src/main/java/com/microsoft/graph/models/RubricCriterion.java new file mode 100644 index 00000000000..ca8ea897034 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/RubricCriterion.java @@ -0,0 +1,60 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationItemBody; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Rubric Criterion. + */ +public class RubricCriterion implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Description. + * The description of this criterion. + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public EducationItemBody description; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/RubricLevel.java b/src/main/java/com/microsoft/graph/models/RubricLevel.java new file mode 100644 index 00000000000..804e0e3facc --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/RubricLevel.java @@ -0,0 +1,88 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationItemBody; +import com.microsoft.graph.models.EducationAssignmentGradeType; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Rubric Level. + */ +public class RubricLevel implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Description. + * The description of this rubric level. + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public EducationItemBody description; + + /** + * The Display Name. + * The name of this rubric level. + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Grading. + * Null if this is a no-points rubric; educationAssignmentPointsGradeType if it is a points rubric. + */ + @SerializedName(value = "grading", alternate = {"Grading"}) + @Expose + @Nullable + public EducationAssignmentGradeType grading; + + /** + * The Level Id. + * The ID of this resource. + */ + @SerializedName(value = "levelId", alternate = {"LevelId"}) + @Expose + @Nullable + public String levelId; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/RubricQuality.java b/src/main/java/com/microsoft/graph/models/RubricQuality.java new file mode 100644 index 00000000000..76364bd7ee1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/RubricQuality.java @@ -0,0 +1,98 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.RubricCriterion; +import com.microsoft.graph.models.EducationItemBody; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Rubric Quality. + */ +public class RubricQuality implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Criteria. + * The collection of criteria for this rubric quality. + */ + @SerializedName(value = "criteria", alternate = {"Criteria"}) + @Expose + @Nullable + public java.util.List criteria; + + /** + * The Description. + * The description of this rubric quality. + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public EducationItemBody description; + + /** + * The Display Name. + * The name of this rubric quality. + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Quality Id. + * The ID of this resource. + */ + @SerializedName(value = "qualityId", alternate = {"QualityId"}) + @Expose + @Nullable + public String qualityId; + + /** + * The Weight. + * If present, a numerical weight for this quality. Weights must add up to 100. + */ + @SerializedName(value = "weight", alternate = {"Weight"}) + @Expose + @Nullable + public Float weight; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/RubricQualityFeedbackModel.java b/src/main/java/com/microsoft/graph/models/RubricQualityFeedbackModel.java new file mode 100644 index 00000000000..37840109a55 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/RubricQualityFeedbackModel.java @@ -0,0 +1,69 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.EducationItemBody; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Rubric Quality Feedback Model. + */ +public class RubricQualityFeedbackModel implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Feedback. + * Specific feedback for one quality of this rubric. + */ + @SerializedName(value = "feedback", alternate = {"Feedback"}) + @Expose + @Nullable + public EducationItemBody feedback; + + /** + * The Quality Id. + * The ID of the rubricQuality that this feedback is related to. + */ + @SerializedName(value = "qualityId", alternate = {"QualityId"}) + @Expose + @Nullable + public String qualityId; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/RubricQualitySelectedColumnModel.java b/src/main/java/com/microsoft/graph/models/RubricQualitySelectedColumnModel.java new file mode 100644 index 00000000000..542dc29383a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/RubricQualitySelectedColumnModel.java @@ -0,0 +1,68 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Rubric Quality Selected Column Model. + */ +public class RubricQualitySelectedColumnModel implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Column Id. + * ID of the selected level for this quality. + */ + @SerializedName(value = "columnId", alternate = {"ColumnId"}) + @Expose + @Nullable + public String columnId; + + /** + * The Quality Id. + * ID of the associated quality. + */ + @SerializedName(value = "qualityId", alternate = {"QualityId"}) + @Expose + @Nullable + public String qualityId; + + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { + + } +} diff --git a/src/main/java/com/microsoft/graph/models/User.java b/src/main/java/com/microsoft/graph/models/User.java index c7b107654cc..bd0ebba4c1c 100644 --- a/src/main/java/com/microsoft/graph/models/User.java +++ b/src/main/java/com/microsoft/graph/models/User.java @@ -97,7 +97,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Account Enabled. - * true if the account is enabled; otherwise, false. This property is required when a user is created. Returned only on $select. Supports $filter. + * true if the account is enabled; otherwise, false. This property is required when a user is created. Supports $filter (eq, ne, NOT, and in). */ @SerializedName(value = "accountEnabled", alternate = {"AccountEnabled"}) @Expose @@ -106,7 +106,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Age Group. - * Sets the age group of the user. Allowed values: null, minor, notAdult and adult. Refer to the legal age group property definitions for further information. Returned only on $select. + * Sets the age group of the user. Allowed values: null, minor, notAdult and adult. Refer to the legal age group property definitions for further information. Supports $filter (eq, ne, NOT, and in). */ @SerializedName(value = "ageGroup", alternate = {"AgeGroup"}) @Expose @@ -115,7 +115,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Assigned Licenses. - * The licenses that are assigned to the user, including inherited (group-based) licenses. Not nullable. Supports $filter. + * The licenses that are assigned to the user, including inherited (group-based) licenses. Not nullable. Supports $filter (eq and NOT). */ @SerializedName(value = "assignedLicenses", alternate = {"AssignedLicenses"}) @Expose @@ -124,7 +124,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Assigned Plans. - * The plans that are assigned to the user. Returned only on $select. Read-only. Not nullable. + * The plans that are assigned to the user. Read-only. Not nullable.Supports $filter (eq and NOT). */ @SerializedName(value = "assignedPlans", alternate = {"AssignedPlans"}) @Expose @@ -133,7 +133,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Business Phones. - * The telephone numbers for the user. Only one number can be set for this property. Returned by default. Read-only for users synced from on-premises directory. + * The telephone numbers for the user. Only one number can be set for this property. Read-only for users synced from on-premises directory. Supports $filter (eq and NOT). */ @SerializedName(value = "businessPhones", alternate = {"BusinessPhones"}) @Expose @@ -142,7 +142,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The City. - * The city in which the user is located. Maximum length is 128 characters. Returned only on $select. Supports $filter. + * The city in which the user is located. Maximum length is 128 characters. Supports $filter (eq, ne, NOT, ge, le, in, startsWith). */ @SerializedName(value = "city", alternate = {"City"}) @Expose @@ -151,7 +151,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Company Name. - * The company name which the user is associated. This property can be useful for describing the company that an external user comes from. The maximum length of the company name is 64 characters.Returned only on $select. + * The company name which the user is associated. This property can be useful for describing the company that an external user comes from. The maximum length of the company name is 64 characters.Supports $filter (eq, ne, NOT, ge, le, in, startsWith). */ @SerializedName(value = "companyName", alternate = {"CompanyName"}) @Expose @@ -160,7 +160,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Consent Provided For Minor. - * Sets whether consent has been obtained for minors. Allowed values: null, granted, denied and notRequired. Refer to the legal age group property definitions for further information. Returned only on $select. + * Sets whether consent has been obtained for minors. Allowed values: null, granted, denied and notRequired. Refer to the legal age group property definitions for further information. Supports $filter (eq, ne, NOT, and in). */ @SerializedName(value = "consentProvidedForMinor", alternate = {"ConsentProvidedForMinor"}) @Expose @@ -169,7 +169,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Country. - * The country/region in which the user is located; for example, 'US' or 'UK'. Maximum length is 128 characters. Returned only on $select. Supports $filter. + * The country/region in which the user is located; for example, US or UK. Maximum length is 128 characters. Supports $filter (eq, ne, NOT, ge, le, in, startsWith). */ @SerializedName(value = "country", alternate = {"Country"}) @Expose @@ -178,7 +178,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Created Date Time. - * The date and time the user was created. The value cannot be modified and is automatically populated when the entity is created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. Property is nullable. A null value indicates that an accurate creation time couldn't be determined for the user. Returned only on $select. Read-only. Supports $filter with the eq, ne, le, and ge operators. + * The date and time the user was created. The value cannot be modified and is automatically populated when the entity is created. The DateTimeOffset type represents date and time information using ISO 8601 format and is always in UTC time. Property is nullable. A null value indicates that an accurate creation time couldn't be determined for the user. Read-only. Supports $filter (eq, ne, NOT , ge, le, and in operators) and $orderBy. */ @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) @Expose @@ -187,7 +187,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Creation Type. - * Indicates whether the user account was created as a regular school or work account (null), an external account (Invitation), a local account for an Azure Active Directory B2C tenant (LocalAccount) or self-service sign-up using email verification (EmailVerified). Returned only on $select. Read-only. + * Indicates whether the user account was created as a regular school or work account (null), an external account (Invitation), a local account for an Azure Active Directory B2C tenant (LocalAccount) or self-service sign-up using email verification (EmailVerified). Read-only. Supports $filter (eq, ne, NOT, and in). */ @SerializedName(value = "creationType", alternate = {"CreationType"}) @Expose @@ -196,7 +196,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Department. - * The name for the department in which the user works. Maximum length is 64 characters.Returned only on $select. Supports $filter. + * The name for the department in which the user works. Maximum length is 64 characters.Supports $filter (eq, ne, NOT , ge, le, and in operators). */ @SerializedName(value = "department", alternate = {"Department"}) @Expose @@ -205,7 +205,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Display Name. - * The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and last name. This property is required when a user is created and it cannot be cleared during updates. Maximum length is 256 characters. Returned by default. Supports $filter and $orderby. + * The name displayed in the address book for the user. This value is usually the combination of the user's first name, middle initial, and last name. This property is required when a user is created and it cannot be cleared during updates. Maximum length is 256 characters. Supports $filter (eq, ne, NOT , ge, le, in, startsWith), $orderBy, and $search. */ @SerializedName(value = "displayName", alternate = {"DisplayName"}) @Expose @@ -214,7 +214,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Employee Hire Date. - * The date and time when the user was hired or will start work in case of a future hire. Returned only on $select. Supports $filter. + * The date and time when the user was hired or will start work in case of a future hire. Supports $filter (eq, ne, NOT , ge, le, in). */ @SerializedName(value = "employeeHireDate", alternate = {"EmployeeHireDate"}) @Expose @@ -223,7 +223,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Employee Id. - * The employee identifier assigned to the user by the organization. Returned only on $select. Supports $filter. + * The employee identifier assigned to the user by the organization. Supports $filter (eq, ne, NOT , ge, le, in, startsWith). */ @SerializedName(value = "employeeId", alternate = {"EmployeeId"}) @Expose @@ -232,7 +232,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Employee Org Data. - * Represents organization data (e.g. division and costCenter) associated with a user. Returned only on $select. + * Represents organization data (e.g. division and costCenter) associated with a user. Supports $filter (eq, ne, NOT , ge, le, in). */ @SerializedName(value = "employeeOrgData", alternate = {"EmployeeOrgData"}) @Expose @@ -241,7 +241,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Employee Type. - * Captures enterprise worker type. For example, Employee, Contractor, Consultant, or Vendor. Returned only on $select. Supports $filter with the eq operator. + * Captures enterprise worker type. For example, Employee, Contractor, Consultant, or Vendor. Supports $filter (eq, ne, NOT , ge, le, in, startsWith). */ @SerializedName(value = "employeeType", alternate = {"EmployeeType"}) @Expose @@ -250,7 +250,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The External User State. - * For an external user invited to the tenant using the invitation API, this property represents the invited user's invitation status. For invited users, the state can be PendingAcceptance or Accepted, or null for all other users. Returned only on $select. Supports $filter with the supported values. For example: $filter=externalUserState eq 'PendingAcceptance'. + * For an external user invited to the tenant using the invitation API, this property represents the invited user's invitation status. For invited users, the state can be PendingAcceptance or Accepted, or null for all other users. Supports $filter (eq, ne, NOT , in). */ @SerializedName(value = "externalUserState", alternate = {"ExternalUserState"}) @Expose @@ -259,7 +259,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The External User State Change Date Time. - * Shows the timestamp for the latest change to the externalUserState property. Returned only on $select. + * Shows the timestamp for the latest change to the externalUserState property. Supports $filter (eq, ne, NOT , in). */ @SerializedName(value = "externalUserStateChangeDateTime", alternate = {"ExternalUserStateChangeDateTime"}) @Expose @@ -268,7 +268,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Fax Number. - * The fax number of the user. Returned only on $select. + * The fax number of the user. Supports $filter (eq, ne, NOT , ge, le, in, startsWith). */ @SerializedName(value = "faxNumber", alternate = {"FaxNumber"}) @Expose @@ -277,7 +277,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Given Name. - * The given name (first name) of the user. Maximum length is 64 characters. Returned by default. Supports $filter. + * The given name (first name) of the user. Maximum length is 64 characters. Supports $filter (eq, ne, NOT , ge, le, in, startsWith). */ @SerializedName(value = "givenName", alternate = {"GivenName"}) @Expose @@ -286,7 +286,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Identities. - * Represents the identities that can be used to sign in to this user account. An identity can be provided by Microsoft (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and tied to a user account. May contain multiple items with the same signInType value. Returned only on $select. Supports $filter. + * Represents the identities that can be used to sign in to this user account. An identity can be provided by Microsoft (also known as a local account), by organizations, or by social identity providers such as Facebook, Google, and Microsoft, and tied to a user account. May contain multiple items with the same signInType value. Supports $filter (eq) only where the signInType is not userPrincipalName. */ @SerializedName(value = "identities", alternate = {"Identities"}) @Expose @@ -295,7 +295,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Im Addresses. - * The instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user. Read-only. + * The instant message voice over IP (VOIP) session initiation protocol (SIP) addresses for the user. Read-only. Supports $filter (eq, NOT, ge, le, startsWith). */ @SerializedName(value = "imAddresses", alternate = {"ImAddresses"}) @Expose @@ -313,7 +313,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Job Title. - * The user's job title. Maximum length is 128 characters. Returned by default. Supports $filter (eq and startsWith operators). + * The user's job title. Maximum length is 128 characters. Supports $filter (eq, ne, NOT , ge, le, in, startsWith). */ @SerializedName(value = "jobTitle", alternate = {"JobTitle"}) @Expose @@ -322,7 +322,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Last Password Change Date Time. - * The time when this Azure AD user last changed their password. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z Returned only on $select. Read-only. + * The time when this Azure AD user last changed their password. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Returned only on $select. */ @SerializedName(value = "lastPasswordChangeDateTime", alternate = {"LastPasswordChangeDateTime"}) @Expose @@ -340,7 +340,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The License Assignment States. - * State of license assignments for this user. Returned only on $select. Read-only. + * State of license assignments for this user. Read-only. Returned only on $select. */ @SerializedName(value = "licenseAssignmentStates", alternate = {"LicenseAssignmentStates"}) @Expose @@ -349,7 +349,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Mail. - * The SMTP address for the user, for example, 'jeff@contoso.onmicrosoft.com'. Changes to this property will also update the user's proxyAddresses collection to include the value as an SMTP address. While this property can contain accent characters, using them can cause access issues with other Microsoft applications for the user. Supports $filter and endsWith. + * The SMTP address for the user, for example, admin@contoso.com. Changes to this property will also update the user's proxyAddresses collection to include the value as an SMTP address. While this property can contain accent characters, using them can cause access issues with other Microsoft applications for the user. Supports $filter (eq, ne, NOT, ge, le, in, startsWith, endsWith). */ @SerializedName(value = "mail", alternate = {"Mail"}) @Expose @@ -358,7 +358,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Mail Nickname. - * The mail alias for the user. This property must be specified when a user is created. Maximum length is 64 characters. Returned only on $select. Supports $filter. + * The mail alias for the user. This property must be specified when a user is created. Maximum length is 64 characters. Supports $filter (eq, ne, NOT, ge, le, in, startsWith). */ @SerializedName(value = "mailNickname", alternate = {"MailNickname"}) @Expose @@ -367,7 +367,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Mobile Phone. - * The primary cellular telephone number for the user. Returned by default. Read-only for users synced from on-premises directory. + * The primary cellular telephone number for the user. Read-only for users synced from on-premises directory. Supports $filter (eq, ne, NOT, ge, le, in, startsWith). */ @SerializedName(value = "mobilePhone", alternate = {"MobilePhone"}) @Expose @@ -376,7 +376,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Office Location. - * The office location in the user's place of business. Maximum length is 128 characters. Returned by default. + * The office location in the user's place of business. Maximum length is 128 characters. Supports $filter (eq, ne, NOT, ge, le, in, startsWith). */ @SerializedName(value = "officeLocation", alternate = {"OfficeLocation"}) @Expose @@ -385,7 +385,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The On Premises Distinguished Name. - * Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Returned only on $select. Read-only. + * Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. */ @SerializedName(value = "onPremisesDistinguishedName", alternate = {"OnPremisesDistinguishedName"}) @Expose @@ -394,7 +394,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The On Premises Domain Name. - * Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Returned only on $select. Read-only. + * Contains the on-premises domainFQDN, also called dnsDomainName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. */ @SerializedName(value = "onPremisesDomainName", alternate = {"OnPremisesDomainName"}) @Expose @@ -403,7 +403,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The On Premises Extension Attributes. - * Contains extensionAttributes 1-15 for the user. Note that the individual extension attributes are neither selectable nor filterable. For an onPremisesSyncEnabled user, the source of authority for this set of properties is the on-premises and is read-only and is read-only. For a cloud-only user (where onPremisesSyncEnabled is false), these properties may be set during creation or update. These extension attributes are also known as Exchange custom attributes 1-15. Returned only on $select. + * Contains extensionAttributes 1-15 for the user. Note that the individual extension attributes are neither selectable nor filterable. For an onPremisesSyncEnabled user, the source of authority for this set of properties is the on-premises and is read-only and is read-only. For a cloud-only user (where onPremisesSyncEnabled is false), these properties may be set during creation or update. These extension attributes are also known as Exchange custom attributes 1-15. Supports $filter (eq, NOT, ge, le, in). */ @SerializedName(value = "onPremisesExtensionAttributes", alternate = {"OnPremisesExtensionAttributes"}) @Expose @@ -412,7 +412,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The On Premises Immutable Id. - * This property is used to associate an on-premises Active Directory user account to their Azure AD user object. This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user's userPrincipalName (UPN) property. Important: The $ and _ characters cannot be used when specifying this property. Returned only on $select. Supports $filter. + * This property is used to associate an on-premises Active Directory user account to their Azure AD user object. This property must be specified when creating a new user account in the Graph if you are using a federated domain for the user's userPrincipalName (UPN) property. Note: The $ and _ characters cannot be used when specifying this property. Supports $filter (eq, ne, NOT, ge, le, in). */ @SerializedName(value = "onPremisesImmutableId", alternate = {"OnPremisesImmutableId"}) @Expose @@ -421,7 +421,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The On Premises Last Sync Date Time. - * Indicates the last time at which the object was synced with the on-premises directory; for example: '2013-02-16T03:04:54Z'. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned only on $select. Read-only. + * Indicates the last time at which the object was synced with the on-premises directory; for example: '2013-02-16T03:04:54Z'. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. Supports $filter (eq, ne, NOT, ge, le, in). */ @SerializedName(value = "onPremisesLastSyncDateTime", alternate = {"OnPremisesLastSyncDateTime"}) @Expose @@ -430,7 +430,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The On Premises Provisioning Errors. - * Errors when using Microsoft synchronization product during provisioning. Returned only on $select. + * Errors when using Microsoft synchronization product during provisioning. */ @SerializedName(value = "onPremisesProvisioningErrors", alternate = {"OnPremisesProvisioningErrors"}) @Expose @@ -439,7 +439,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The On Premises Sam Account Name. - * Contains the on-premises sAMAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Returned only on $select. Read-only. + * Contains the on-premises sAMAccountName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Supports $filter (eq, ne, NOT, ge, le, in, startsWith). */ @SerializedName(value = "onPremisesSamAccountName", alternate = {"OnPremisesSamAccountName"}) @Expose @@ -448,7 +448,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The On Premises Security Identifier. - * Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud. Returned only on $select. Read-only. + * Contains the on-premises security identifier (SID) for the user that was synchronized from on-premises to the cloud. Read-only. Supports $filter (eq, ne, NOT, in). */ @SerializedName(value = "onPremisesSecurityIdentifier", alternate = {"OnPremisesSecurityIdentifier"}) @Expose @@ -457,7 +457,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The On Premises Sync Enabled. - * true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Returned only on $select. Read-only. + * true if this object is synced from an on-premises directory; false if this object was originally synced from an on-premises directory but is no longer synced; null if this object has never been synced from an on-premises directory (default). Read-only. Supports $filter (eq, ne, NOT, in). */ @SerializedName(value = "onPremisesSyncEnabled", alternate = {"OnPremisesSyncEnabled"}) @Expose @@ -466,7 +466,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The On Premises User Principal Name. - * Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Returned only on $select. Read-only. + * Contains the on-premises userPrincipalName synchronized from the on-premises directory. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. Supports $filter (eq, ne, NOT, ge, le, in, startsWith). */ @SerializedName(value = "onPremisesUserPrincipalName", alternate = {"OnPremisesUserPrincipalName"}) @Expose @@ -475,7 +475,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Other Mails. - * A list of additional email addresses for the user; for example: ['bob@contoso.com', 'Robert@fabrikam.com'].NOTE: While this property can contain accent characters, they can cause access issues to first-party applications for the user.Returned only on $select. Supports$filter. + * A list of additional email addresses for the user; for example: ['bob@contoso.com', 'Robert@fabrikam.com'].NOTE: While this property can contain accent characters, they can cause access issues to first-party applications for the user.Supports $filter (eq, NOT, ge, le, in, startsWith). */ @SerializedName(value = "otherMails", alternate = {"OtherMails"}) @Expose @@ -484,7 +484,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Password Policies. - * Specifies password policies for the user. This value is an enumeration with one possible value being 'DisableStrongPassword', which allows weaker passwords than the default policy to be specified. 'DisablePasswordExpiration' can also be specified. The two may be specified together; for example: 'DisablePasswordExpiration, DisableStrongPassword'.Returned only on $select. + * Specifies password policies for the user. This value is an enumeration with one possible value being DisableStrongPassword, which allows weaker passwords than the default policy to be specified. DisablePasswordExpiration can also be specified. The two may be specified together; for example: DisablePasswordExpiration, DisableStrongPassword.Supports $filter (eq, ne, NOT). */ @SerializedName(value = "passwordPolicies", alternate = {"PasswordPolicies"}) @Expose @@ -493,7 +493,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Password Profile. - * Specifies the password profile for the user. The profile contains the user's password. This property is required when a user is created. The password in the profile must satisfy minimum requirements as specified by the passwordPolicies property. By default, a strong password is required. Returned only on $select. + * Specifies the password profile for the user. The profile contains the user's password. This property is required when a user is created. The password in the profile must satisfy minimum requirements as specified by the passwordPolicies property. By default, a strong password is required. NOTE: For Azure B2C tenants, the forceChangePasswordNextSignIn property should be set to false and instead use custom policies and user flows to force password reset at first logon. See Force password reset at first logon. */ @SerializedName(value = "passwordProfile", alternate = {"PasswordProfile"}) @Expose @@ -502,7 +502,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Postal Code. - * The postal code for the user's postal address. The postal code is specific to the user's country/region. In the United States of America, this attribute contains the ZIP code. Maximum length is 40 characters. Returned only on $select. + * The postal code for the user's postal address. The postal code is specific to the user's country/region. In the United States of America, this attribute contains the ZIP code. Maximum length is 40 characters. Supports $filter (eq, ne, NOT, ge, le, in, startsWith). */ @SerializedName(value = "postalCode", alternate = {"PostalCode"}) @Expose @@ -511,7 +511,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Preferred Language. - * The preferred language for the user. Should follow ISO 639-1 Code; for example 'en-US'. Returned by default. + * The preferred language for the user. Should follow ISO 639-1 Code; for example en-US. Supports $filter (eq, ne, NOT, ge, le, in, startsWith). */ @SerializedName(value = "preferredLanguage", alternate = {"PreferredLanguage"}) @Expose @@ -520,7 +520,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Provisioned Plans. - * The plans that are provisioned for the user. Returned only on $select. Read-only. Not nullable. + * The plans that are provisioned for the user. Read-only. Not nullable. */ @SerializedName(value = "provisionedPlans", alternate = {"ProvisionedPlans"}) @Expose @@ -529,7 +529,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Proxy Addresses. - * For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com'] The any operator is required for filter expressions on multi-valued properties. Returned only on $select. Read-only, Not nullable. Supports $filter. + * For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. Read-only, Not nullable. Supports $filter (eq, NOT, ge, le, startsWith). */ @SerializedName(value = "proxyAddresses", alternate = {"ProxyAddresses"}) @Expose @@ -538,7 +538,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Show In Address List. - * true if the Outlook global address list should contain this user, otherwise false. If not set, this will be treated as true. For users invited through the invitation manager, this property will be set to false. Returned only on $select. + * true if the Outlook global address list should contain this user, otherwise false. If not set, this will be treated as true. For users invited through the invitation manager, this property will be set to false. Supports $filter (eq, ne, NOT, in). */ @SerializedName(value = "showInAddressList", alternate = {"ShowInAddressList"}) @Expose @@ -547,7 +547,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Sign In Sessions Valid From Date Time. - * Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint. Returned only on $select. Read-only. Use revokeSignInSessions to reset. + * Any refresh tokens or sessions tokens (session cookies) issued before this time are invalid, and applications will get an error when using an invalid refresh or sessions token to acquire a delegated access token (to access APIs such as Microsoft Graph). If this happens, the application will need to acquire a new refresh token by making a request to the authorize endpoint. Read-only. Use revokeSignInSessions to reset. */ @SerializedName(value = "signInSessionsValidFromDateTime", alternate = {"SignInSessionsValidFromDateTime"}) @Expose @@ -556,7 +556,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The State. - * The state or province in the user's address. Maximum length is 128 characters. Returned only on $select. Supports $filter. + * The state or province in the user's address. Maximum length is 128 characters. Supports $filter (eq, ne, NOT, ge, le, in, startsWith). */ @SerializedName(value = "state", alternate = {"State"}) @Expose @@ -565,7 +565,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Street Address. - * The street address of the user's place of business. Maximum length is 1024 characters. Returned only on $select. + * The street address of the user's place of business. Maximum length is 1024 characters. Supports $filter (eq, ne, NOT, ge, le, in, startsWith). */ @SerializedName(value = "streetAddress", alternate = {"StreetAddress"}) @Expose @@ -574,7 +574,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Surname. - * The user's surname (family name or last name). Maximum length is 64 characters. Returned by default. Supports $filter. + * The user's surname (family name or last name). Maximum length is 64 characters. Supports $filter (eq, ne, NOT, ge, le, in, startsWith). */ @SerializedName(value = "surname", alternate = {"Surname"}) @Expose @@ -583,7 +583,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Usage Location. - * A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: 'US', 'JP', and 'GB'. Not nullable. Returned only on $select. Supports $filter. + * A two letter country code (ISO standard 3166). Required for users that will be assigned licenses due to legal requirement to check for availability of services in countries. Examples include: US, JP, and GB. Not nullable. Supports $filter (eq, ne, NOT, ge, le, in, startsWith). */ @SerializedName(value = "usageLocation", alternate = {"UsageLocation"}) @Expose @@ -592,7 +592,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The User Principal Name. - * The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: While this property can contain accent characters, they can cause access issues to first-party applications for the user. Returned by default. Supports $filter, $orderby, and endsWith. + * The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: While this property can contain accent characters, they can cause access issues to first-party applications for the user. Supports $filter (eq, ne, NOT, ge, le, in, startsWith, endsWith) and $orderBy. */ @SerializedName(value = "userPrincipalName", alternate = {"UserPrincipalName"}) @Expose @@ -601,7 +601,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The User Type. - * A string value that can be used to classify user types in your directory, such as 'Member' and 'Guest'. Returned only on $select. Supports $filter. + * A string value that can be used to classify user types in your directory, such as Member and Guest. Supports $filter (eq, ne, NOT, in, startsWith, endsWith). */ @SerializedName(value = "userType", alternate = {"UserType"}) @Expose @@ -610,7 +610,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Mailbox Settings. - * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. Supported only on the Get user API (GET /users/{id} or GET /me). + * Settings for the primary mailbox of the signed-in user. You can get or update settings for sending automatic replies to incoming messages, locale, and time zone. Returned only on $select. */ @SerializedName(value = "mailboxSettings", alternate = {"MailboxSettings"}) @Expose @@ -646,7 +646,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Hire Date. - * The hire date of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned only on $select. Note: This property is specific to SharePoint Online. We recommend using the native employeeHireDate property to set and update hire date values using Microsoft Graph APIs. + * The hire date of the user. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned only on $select. Note: This property is specific to SharePoint Online. We recommend using the native employeeHireDate property to set and update hire date values using Microsoft Graph APIs. */ @SerializedName(value = "hireDate", alternate = {"HireDate"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Workbook.java b/src/main/java/com/microsoft/graph/models/Workbook.java index ab11a49bbf9..ea401fe02aa 100644 --- a/src/main/java/com/microsoft/graph/models/Workbook.java +++ b/src/main/java/com/microsoft/graph/models/Workbook.java @@ -67,7 +67,7 @@ public class Workbook extends Entity implements IJsonBackedObject { /** * The Names. - * Represents a collection of workbook scoped named items (named ranges and constants). Read-only. + * Represents a collection of workbooks scoped named items (named ranges and constants). Read-only. */ @SerializedName(value = "names", alternate = {"Names"}) @Expose diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentCollectionPage.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentCollectionPage.java new file mode 100644 index 00000000000..ed005f3a05d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationAssignment; +import com.microsoft.graph.requests.EducationAssignmentCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.EducationAssignmentCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Collection Page. + */ +public class EducationAssignmentCollectionPage extends BaseCollectionPage { + + /** + * A collection page for EducationAssignment + * + * @param response the serialized EducationAssignmentCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public EducationAssignmentCollectionPage(@Nonnull final EducationAssignmentCollectionResponse response, @Nonnull final EducationAssignmentCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for EducationAssignment + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public EducationAssignmentCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final EducationAssignmentCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentCollectionRequest.java new file mode 100644 index 00000000000..712a42e3561 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationClass; +import com.microsoft.graph.models.EducationAssignment; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.EducationAssignmentCollectionResponse; +import com.microsoft.graph.requests.EducationAssignmentCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Collection Request. + */ +public class EducationAssignmentCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of EducationAssignment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationAssignmentCollectionResponse.class, EducationAssignmentCollectionPage.class, EducationAssignmentCollectionRequestBuilder.class); + } + + /** + * Creates a new EducationAssignment + * @param newEducationAssignment the EducationAssignment to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationAssignment newEducationAssignment) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationAssignmentRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newEducationAssignment); + } + + /** + * Creates a new EducationAssignment + * @param newEducationAssignment the EducationAssignment to create + * @return the newly created object + */ + @Nonnull + public EducationAssignment post(@Nonnull final EducationAssignment newEducationAssignment) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationAssignmentRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newEducationAssignment); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public EducationAssignmentCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public EducationAssignmentCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public EducationAssignmentCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public EducationAssignmentCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public EducationAssignmentCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentCollectionRequestBuilder.java new file mode 100644 index 00000000000..24b23218d8a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationClass; +import com.microsoft.graph.models.EducationAssignment; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.EducationAssignmentCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Collection Request Builder. + */ +public class EducationAssignmentCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of EducationClass + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationAssignmentRequestBuilder.class, EducationAssignmentCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentCollectionResponse.java new file mode 100644 index 00000000000..8446596d7fe --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationAssignment; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Collection Response. + */ +public class EducationAssignmentCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentDefaultsRequest.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentDefaultsRequest.java new file mode 100644 index 00000000000..5fdf9a0591c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentDefaultsRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationAssignmentDefaults; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Defaults Request. + */ +public class EducationAssignmentDefaultsRequest extends BaseRequest { + + /** + * The request for the EducationAssignmentDefaults + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentDefaultsRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationAssignmentDefaults.class); + } + + /** + * Gets the EducationAssignmentDefaults from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationAssignmentDefaults from the service + * + * @return the EducationAssignmentDefaults from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignmentDefaults get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public EducationAssignmentDefaults delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EducationAssignmentDefaults with a source + * + * @param sourceEducationAssignmentDefaults the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EducationAssignmentDefaults sourceEducationAssignmentDefaults) { + return sendAsync(HttpMethod.PATCH, sourceEducationAssignmentDefaults); + } + + /** + * Patches this EducationAssignmentDefaults with a source + * + * @param sourceEducationAssignmentDefaults the source object with updates + * @return the updated EducationAssignmentDefaults + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignmentDefaults patch(@Nonnull final EducationAssignmentDefaults sourceEducationAssignmentDefaults) throws ClientException { + return send(HttpMethod.PATCH, sourceEducationAssignmentDefaults); + } + + /** + * Creates a EducationAssignmentDefaults with a new object + * + * @param newEducationAssignmentDefaults the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationAssignmentDefaults newEducationAssignmentDefaults) { + return sendAsync(HttpMethod.POST, newEducationAssignmentDefaults); + } + + /** + * Creates a EducationAssignmentDefaults with a new object + * + * @param newEducationAssignmentDefaults the new object to create + * @return the created EducationAssignmentDefaults + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignmentDefaults post(@Nonnull final EducationAssignmentDefaults newEducationAssignmentDefaults) throws ClientException { + return send(HttpMethod.POST, newEducationAssignmentDefaults); + } + + /** + * Creates a EducationAssignmentDefaults with a new object + * + * @param newEducationAssignmentDefaults the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EducationAssignmentDefaults newEducationAssignmentDefaults) { + return sendAsync(HttpMethod.PUT, newEducationAssignmentDefaults); + } + + /** + * Creates a EducationAssignmentDefaults with a new object + * + * @param newEducationAssignmentDefaults the object to create/update + * @return the created EducationAssignmentDefaults + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignmentDefaults put(@Nonnull final EducationAssignmentDefaults newEducationAssignmentDefaults) throws ClientException { + return send(HttpMethod.PUT, newEducationAssignmentDefaults); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentDefaultsRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentDefaultsRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentDefaultsRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentDefaultsRequestBuilder.java new file mode 100644 index 00000000000..f7e6cabe568 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentDefaultsRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationAssignmentDefaults; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Defaults Request Builder. + */ +public class EducationAssignmentDefaultsRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EducationAssignmentDefaults + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentDefaultsRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the EducationAssignmentDefaultsRequest instance + */ + @Nonnull + public EducationAssignmentDefaultsRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the EducationAssignmentDefaultsRequest instance + */ + @Nonnull + public EducationAssignmentDefaultsRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EducationAssignmentDefaultsRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentPublishRequest.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentPublishRequest.java new file mode 100644 index 00000000000..c63bb91ead7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentPublishRequest.java @@ -0,0 +1,77 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationAssignment; +import com.microsoft.graph.requests.EducationAssignmentPublishRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Publish Request. + */ +public class EducationAssignmentPublishRequest extends BaseRequest { + /** + * The request for this EducationAssignmentPublish + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentPublishRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationAssignment.class); + } + + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, null); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public EducationAssignment post() throws ClientException { + return send(HttpMethod.POST, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentPublishRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentPublishRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentPublishRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentPublishRequestBuilder.java new file mode 100644 index 00000000000..55574f3456f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentPublishRequestBuilder.java @@ -0,0 +1,58 @@ +// Template Source: BaseMethodRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.requests.EducationAssignmentPublishRequest; +import com.microsoft.graph.models.EducationAssignment; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Publish Request Builder. + */ +public class EducationAssignmentPublishRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this EducationAssignmentPublish + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentPublishRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the EducationAssignmentPublishRequest + * + * @param requestOptions the options for the request + * @return the EducationAssignmentPublishRequest instance + */ + @Nonnull + public EducationAssignmentPublishRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the EducationAssignmentPublishRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the EducationAssignmentPublishRequest instance + */ + @Nonnull + public EducationAssignmentPublishRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final EducationAssignmentPublishRequest request = new EducationAssignmentPublishRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentRequest.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentRequest.java new file mode 100644 index 00000000000..8419f7d3bc7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentRequest.java @@ -0,0 +1,180 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationAssignment; +import com.microsoft.graph.requests.EducationCategoryCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationCategoryRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentResourceCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentResourceRequestBuilder; +import com.microsoft.graph.requests.EducationRubricRequestBuilder; +import com.microsoft.graph.requests.EducationSubmissionCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationSubmissionRequestBuilder; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Request. + */ +public class EducationAssignmentRequest extends BaseRequest { + + /** + * The request for the EducationAssignment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationAssignment.class); + } + + /** + * Gets the EducationAssignment from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationAssignment from the service + * + * @return the EducationAssignment from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignment get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public EducationAssignment delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EducationAssignment with a source + * + * @param sourceEducationAssignment the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EducationAssignment sourceEducationAssignment) { + return sendAsync(HttpMethod.PATCH, sourceEducationAssignment); + } + + /** + * Patches this EducationAssignment with a source + * + * @param sourceEducationAssignment the source object with updates + * @return the updated EducationAssignment + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignment patch(@Nonnull final EducationAssignment sourceEducationAssignment) throws ClientException { + return send(HttpMethod.PATCH, sourceEducationAssignment); + } + + /** + * Creates a EducationAssignment with a new object + * + * @param newEducationAssignment the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationAssignment newEducationAssignment) { + return sendAsync(HttpMethod.POST, newEducationAssignment); + } + + /** + * Creates a EducationAssignment with a new object + * + * @param newEducationAssignment the new object to create + * @return the created EducationAssignment + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignment post(@Nonnull final EducationAssignment newEducationAssignment) throws ClientException { + return send(HttpMethod.POST, newEducationAssignment); + } + + /** + * Creates a EducationAssignment with a new object + * + * @param newEducationAssignment the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EducationAssignment newEducationAssignment) { + return sendAsync(HttpMethod.PUT, newEducationAssignment); + } + + /** + * Creates a EducationAssignment with a new object + * + * @param newEducationAssignment the object to create/update + * @return the created EducationAssignment + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignment put(@Nonnull final EducationAssignment newEducationAssignment) throws ClientException { + return send(HttpMethod.PUT, newEducationAssignment); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentRequestBuilder.java new file mode 100644 index 00000000000..1e55badf5a2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentRequestBuilder.java @@ -0,0 +1,154 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationAssignment; +import com.microsoft.graph.requests.EducationCategoryCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationCategoryRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentResourceCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentResourceRequestBuilder; +import com.microsoft.graph.requests.EducationRubricRequestBuilder; +import com.microsoft.graph.requests.EducationSubmissionCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationSubmissionRequestBuilder; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Request Builder. + */ +public class EducationAssignmentRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EducationAssignment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the EducationAssignmentRequest instance + */ + @Nonnull + public EducationAssignmentRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the EducationAssignmentRequest instance + */ + @Nonnull + public EducationAssignmentRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EducationAssignmentRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the EducationCategory collection + * + * @return the collection request builder + */ + @Nonnull + public EducationCategoryCollectionRequestBuilder categories() { + return new EducationCategoryCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("categories"), getClient(), null); + } + + /** + * Gets a request builder for the EducationCategory item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public EducationCategoryRequestBuilder categories(@Nonnull final String id) { + return new EducationCategoryRequestBuilder(getRequestUrlWithAdditionalSegment("categories") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the EducationAssignmentResource collection + * + * @return the collection request builder + */ + @Nonnull + public EducationAssignmentResourceCollectionRequestBuilder resources() { + return new EducationAssignmentResourceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("resources"), getClient(), null); + } + + /** + * Gets a request builder for the EducationAssignmentResource item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public EducationAssignmentResourceRequestBuilder resources(@Nonnull final String id) { + return new EducationAssignmentResourceRequestBuilder(getRequestUrlWithAdditionalSegment("resources") + "/" + id, getClient(), null); + } + + /** + * Gets the request builder for EducationRubric + * + * @return the EducationRubricRequestBuilder instance + */ + @Nonnull + public EducationRubricRequestBuilder rubric() { + return new EducationRubricRequestBuilder(getRequestUrlWithAdditionalSegment("rubric"), getClient(), null); + } + /** + * Gets a request builder for the EducationSubmission collection + * + * @return the collection request builder + */ + @Nonnull + public EducationSubmissionCollectionRequestBuilder submissions() { + return new EducationSubmissionCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("submissions"), getClient(), null); + } + + /** + * Gets a request builder for the EducationSubmission item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public EducationSubmissionRequestBuilder submissions(@Nonnull final String id) { + return new EducationSubmissionRequestBuilder(getRequestUrlWithAdditionalSegment("submissions") + "/" + id, getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public EducationAssignmentPublishRequestBuilder publish() { + return new EducationAssignmentPublishRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.publish"), getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public EducationAssignmentSetUpResourcesFolderRequestBuilder setUpResourcesFolder() { + return new EducationAssignmentSetUpResourcesFolderRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.setUpResourcesFolder"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceCollectionPage.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceCollectionPage.java new file mode 100644 index 00000000000..67fbef42727 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationAssignmentResource; +import com.microsoft.graph.requests.EducationAssignmentResourceCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.EducationAssignmentResourceCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Resource Collection Page. + */ +public class EducationAssignmentResourceCollectionPage extends BaseCollectionPage { + + /** + * A collection page for EducationAssignmentResource + * + * @param response the serialized EducationAssignmentResourceCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public EducationAssignmentResourceCollectionPage(@Nonnull final EducationAssignmentResourceCollectionResponse response, @Nonnull final EducationAssignmentResourceCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for EducationAssignmentResource + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public EducationAssignmentResourceCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final EducationAssignmentResourceCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceCollectionRequest.java new file mode 100644 index 00000000000..09ce30ee978 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationAssignment; +import com.microsoft.graph.models.EducationAssignmentResource; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.EducationAssignmentResourceCollectionResponse; +import com.microsoft.graph.requests.EducationAssignmentResourceCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentResourceCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Resource Collection Request. + */ +public class EducationAssignmentResourceCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of EducationAssignmentResource + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentResourceCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationAssignmentResourceCollectionResponse.class, EducationAssignmentResourceCollectionPage.class, EducationAssignmentResourceCollectionRequestBuilder.class); + } + + /** + * Creates a new EducationAssignmentResource + * @param newEducationAssignmentResource the EducationAssignmentResource to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationAssignmentResource newEducationAssignmentResource) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationAssignmentResourceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newEducationAssignmentResource); + } + + /** + * Creates a new EducationAssignmentResource + * @param newEducationAssignmentResource the EducationAssignmentResource to create + * @return the newly created object + */ + @Nonnull + public EducationAssignmentResource post(@Nonnull final EducationAssignmentResource newEducationAssignmentResource) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationAssignmentResourceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newEducationAssignmentResource); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentResourceCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentResourceCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentResourceCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentResourceCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public EducationAssignmentResourceCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public EducationAssignmentResourceCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public EducationAssignmentResourceCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public EducationAssignmentResourceCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public EducationAssignmentResourceCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceCollectionRequestBuilder.java new file mode 100644 index 00000000000..8b1e370fde0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationAssignment; +import com.microsoft.graph.models.EducationAssignmentResource; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.EducationAssignmentResourceCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentResourceRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentResourceCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Resource Collection Request Builder. + */ +public class EducationAssignmentResourceCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of EducationAssignment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentResourceCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationAssignmentResourceRequestBuilder.class, EducationAssignmentResourceCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceCollectionResponse.java new file mode 100644 index 00000000000..45dc25ef787 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationAssignmentResource; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Resource Collection Response. + */ +public class EducationAssignmentResourceCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceRequest.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceRequest.java new file mode 100644 index 00000000000..fbba40bdcf2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationAssignmentResource; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Resource Request. + */ +public class EducationAssignmentResourceRequest extends BaseRequest { + + /** + * The request for the EducationAssignmentResource + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentResourceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationAssignmentResource.class); + } + + /** + * Gets the EducationAssignmentResource from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationAssignmentResource from the service + * + * @return the EducationAssignmentResource from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignmentResource get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public EducationAssignmentResource delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EducationAssignmentResource with a source + * + * @param sourceEducationAssignmentResource the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EducationAssignmentResource sourceEducationAssignmentResource) { + return sendAsync(HttpMethod.PATCH, sourceEducationAssignmentResource); + } + + /** + * Patches this EducationAssignmentResource with a source + * + * @param sourceEducationAssignmentResource the source object with updates + * @return the updated EducationAssignmentResource + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignmentResource patch(@Nonnull final EducationAssignmentResource sourceEducationAssignmentResource) throws ClientException { + return send(HttpMethod.PATCH, sourceEducationAssignmentResource); + } + + /** + * Creates a EducationAssignmentResource with a new object + * + * @param newEducationAssignmentResource the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationAssignmentResource newEducationAssignmentResource) { + return sendAsync(HttpMethod.POST, newEducationAssignmentResource); + } + + /** + * Creates a EducationAssignmentResource with a new object + * + * @param newEducationAssignmentResource the new object to create + * @return the created EducationAssignmentResource + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignmentResource post(@Nonnull final EducationAssignmentResource newEducationAssignmentResource) throws ClientException { + return send(HttpMethod.POST, newEducationAssignmentResource); + } + + /** + * Creates a EducationAssignmentResource with a new object + * + * @param newEducationAssignmentResource the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EducationAssignmentResource newEducationAssignmentResource) { + return sendAsync(HttpMethod.PUT, newEducationAssignmentResource); + } + + /** + * Creates a EducationAssignmentResource with a new object + * + * @param newEducationAssignmentResource the object to create/update + * @return the created EducationAssignmentResource + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignmentResource put(@Nonnull final EducationAssignmentResource newEducationAssignmentResource) throws ClientException { + return send(HttpMethod.PUT, newEducationAssignmentResource); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentResourceRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentResourceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceRequestBuilder.java new file mode 100644 index 00000000000..731c88b759f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentResourceRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationAssignmentResource; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Resource Request Builder. + */ +public class EducationAssignmentResourceRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EducationAssignmentResource + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentResourceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the EducationAssignmentResourceRequest instance + */ + @Nonnull + public EducationAssignmentResourceRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the EducationAssignmentResourceRequest instance + */ + @Nonnull + public EducationAssignmentResourceRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EducationAssignmentResourceRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentSetUpResourcesFolderRequest.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentSetUpResourcesFolderRequest.java new file mode 100644 index 00000000000..29e1c059ace --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentSetUpResourcesFolderRequest.java @@ -0,0 +1,79 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationAssignment; +import com.microsoft.graph.requests.EducationAssignmentSetUpResourcesFolderRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Set Up Resources Folder Request. + */ +public class EducationAssignmentSetUpResourcesFolderRequest extends BaseRequest { + /** + * The request for this EducationAssignmentSetUpResourcesFolder + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentSetUpResourcesFolderRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationAssignment.class); + } + + /** + * Gets the EducationAssignment + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationAssignment + * + * @return the EducationAssignment + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public EducationAssignment get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentSetUpResourcesFolderRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentSetUpResourcesFolderRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentSetUpResourcesFolderRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentSetUpResourcesFolderRequestBuilder.java new file mode 100644 index 00000000000..4d222383b7f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentSetUpResourcesFolderRequestBuilder.java @@ -0,0 +1,58 @@ +// Template Source: BaseMethodRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.requests.EducationAssignmentSetUpResourcesFolderRequest; +import com.microsoft.graph.models.EducationAssignment; +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Set Up Resources Folder Request Builder. + */ +public class EducationAssignmentSetUpResourcesFolderRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this EducationAssignmentSetUpResourcesFolder + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentSetUpResourcesFolderRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the EducationAssignmentSetUpResourcesFolderRequest + * + * @param requestOptions the options for the request + * @return the EducationAssignmentSetUpResourcesFolderRequest instance + */ + @Nonnull + public EducationAssignmentSetUpResourcesFolderRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the EducationAssignmentSetUpResourcesFolderRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the EducationAssignmentSetUpResourcesFolderRequest instance + */ + @Nonnull + public EducationAssignmentSetUpResourcesFolderRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final EducationAssignmentSetUpResourcesFolderRequest request = new EducationAssignmentSetUpResourcesFolderRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentSettingsRequest.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentSettingsRequest.java new file mode 100644 index 00000000000..69390a685ed --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentSettingsRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationAssignmentSettings; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Settings Request. + */ +public class EducationAssignmentSettingsRequest extends BaseRequest { + + /** + * The request for the EducationAssignmentSettings + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentSettingsRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationAssignmentSettings.class); + } + + /** + * Gets the EducationAssignmentSettings from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationAssignmentSettings from the service + * + * @return the EducationAssignmentSettings from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignmentSettings get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public EducationAssignmentSettings delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EducationAssignmentSettings with a source + * + * @param sourceEducationAssignmentSettings the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EducationAssignmentSettings sourceEducationAssignmentSettings) { + return sendAsync(HttpMethod.PATCH, sourceEducationAssignmentSettings); + } + + /** + * Patches this EducationAssignmentSettings with a source + * + * @param sourceEducationAssignmentSettings the source object with updates + * @return the updated EducationAssignmentSettings + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignmentSettings patch(@Nonnull final EducationAssignmentSettings sourceEducationAssignmentSettings) throws ClientException { + return send(HttpMethod.PATCH, sourceEducationAssignmentSettings); + } + + /** + * Creates a EducationAssignmentSettings with a new object + * + * @param newEducationAssignmentSettings the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationAssignmentSettings newEducationAssignmentSettings) { + return sendAsync(HttpMethod.POST, newEducationAssignmentSettings); + } + + /** + * Creates a EducationAssignmentSettings with a new object + * + * @param newEducationAssignmentSettings the new object to create + * @return the created EducationAssignmentSettings + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignmentSettings post(@Nonnull final EducationAssignmentSettings newEducationAssignmentSettings) throws ClientException { + return send(HttpMethod.POST, newEducationAssignmentSettings); + } + + /** + * Creates a EducationAssignmentSettings with a new object + * + * @param newEducationAssignmentSettings the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EducationAssignmentSettings newEducationAssignmentSettings) { + return sendAsync(HttpMethod.PUT, newEducationAssignmentSettings); + } + + /** + * Creates a EducationAssignmentSettings with a new object + * + * @param newEducationAssignmentSettings the object to create/update + * @return the created EducationAssignmentSettings + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationAssignmentSettings put(@Nonnull final EducationAssignmentSettings newEducationAssignmentSettings) throws ClientException { + return send(HttpMethod.PUT, newEducationAssignmentSettings); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentSettingsRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationAssignmentSettingsRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationAssignmentSettingsRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationAssignmentSettingsRequestBuilder.java new file mode 100644 index 00000000000..ace66e4b3be --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationAssignmentSettingsRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationAssignmentSettings; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Assignment Settings Request Builder. + */ +public class EducationAssignmentSettingsRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EducationAssignmentSettings + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationAssignmentSettingsRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the EducationAssignmentSettingsRequest instance + */ + @Nonnull + public EducationAssignmentSettingsRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the EducationAssignmentSettingsRequest instance + */ + @Nonnull + public EducationAssignmentSettingsRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EducationAssignmentSettingsRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationCategoryCollectionPage.java b/src/main/java/com/microsoft/graph/requests/EducationCategoryCollectionPage.java new file mode 100644 index 00000000000..6692f27eb26 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationCategoryCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationCategory; +import com.microsoft.graph.requests.EducationCategoryCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.EducationCategoryCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Category Collection Page. + */ +public class EducationCategoryCollectionPage extends BaseCollectionPage { + + /** + * A collection page for EducationCategory + * + * @param response the serialized EducationCategoryCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public EducationCategoryCollectionPage(@Nonnull final EducationCategoryCollectionResponse response, @Nonnull final EducationCategoryCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for EducationCategory + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public EducationCategoryCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final EducationCategoryCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationCategoryCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/EducationCategoryCollectionRequest.java new file mode 100644 index 00000000000..d5f52f967ef --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationCategoryCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationClass; +import com.microsoft.graph.models.EducationCategory; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.EducationCategoryCollectionResponse; +import com.microsoft.graph.requests.EducationCategoryCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationCategoryCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Category Collection Request. + */ +public class EducationCategoryCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of EducationCategory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationCategoryCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationCategoryCollectionResponse.class, EducationCategoryCollectionPage.class, EducationCategoryCollectionRequestBuilder.class); + } + + /** + * Creates a new EducationCategory + * @param newEducationCategory the EducationCategory to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationCategory newEducationCategory) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationCategoryRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newEducationCategory); + } + + /** + * Creates a new EducationCategory + * @param newEducationCategory the EducationCategory to create + * @return the newly created object + */ + @Nonnull + public EducationCategory post(@Nonnull final EducationCategory newEducationCategory) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationCategoryRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newEducationCategory); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationCategoryCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public EducationCategoryCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public EducationCategoryCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationCategoryCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public EducationCategoryCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public EducationCategoryCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public EducationCategoryCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public EducationCategoryCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public EducationCategoryCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationCategoryCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationCategoryCollectionRequestBuilder.java new file mode 100644 index 00000000000..27089db9358 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationCategoryCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationClass; +import com.microsoft.graph.models.EducationCategory; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.EducationCategoryCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationCategoryRequestBuilder; +import com.microsoft.graph.requests.EducationCategoryCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Category Collection Request Builder. + */ +public class EducationCategoryCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of EducationClass + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationCategoryCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationCategoryRequestBuilder.class, EducationCategoryCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationCategoryCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/EducationCategoryCollectionResponse.java new file mode 100644 index 00000000000..1761e4c9732 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationCategoryCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationCategory; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Category Collection Response. + */ +public class EducationCategoryCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationCategoryRequest.java b/src/main/java/com/microsoft/graph/requests/EducationCategoryRequest.java new file mode 100644 index 00000000000..137f6dedee3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationCategoryRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationCategory; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Category Request. + */ +public class EducationCategoryRequest extends BaseRequest { + + /** + * The request for the EducationCategory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationCategoryRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationCategory.class); + } + + /** + * Gets the EducationCategory from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationCategory from the service + * + * @return the EducationCategory from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationCategory get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public EducationCategory delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EducationCategory with a source + * + * @param sourceEducationCategory the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EducationCategory sourceEducationCategory) { + return sendAsync(HttpMethod.PATCH, sourceEducationCategory); + } + + /** + * Patches this EducationCategory with a source + * + * @param sourceEducationCategory the source object with updates + * @return the updated EducationCategory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationCategory patch(@Nonnull final EducationCategory sourceEducationCategory) throws ClientException { + return send(HttpMethod.PATCH, sourceEducationCategory); + } + + /** + * Creates a EducationCategory with a new object + * + * @param newEducationCategory the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationCategory newEducationCategory) { + return sendAsync(HttpMethod.POST, newEducationCategory); + } + + /** + * Creates a EducationCategory with a new object + * + * @param newEducationCategory the new object to create + * @return the created EducationCategory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationCategory post(@Nonnull final EducationCategory newEducationCategory) throws ClientException { + return send(HttpMethod.POST, newEducationCategory); + } + + /** + * Creates a EducationCategory with a new object + * + * @param newEducationCategory the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EducationCategory newEducationCategory) { + return sendAsync(HttpMethod.PUT, newEducationCategory); + } + + /** + * Creates a EducationCategory with a new object + * + * @param newEducationCategory the object to create/update + * @return the created EducationCategory + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationCategory put(@Nonnull final EducationCategory newEducationCategory) throws ClientException { + return send(HttpMethod.PUT, newEducationCategory); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationCategoryRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationCategoryRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationCategoryRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationCategoryRequestBuilder.java new file mode 100644 index 00000000000..d4eb460e7c6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationCategoryRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationCategory; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Category Request Builder. + */ +public class EducationCategoryRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EducationCategory + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationCategoryRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the EducationCategoryRequest instance + */ + @Nonnull + public EducationCategoryRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the EducationCategoryRequest instance + */ + @Nonnull + public EducationCategoryRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EducationCategoryRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationClassReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/EducationClassReferenceRequest.java index 597feccbb07..6b8941fbfb6 100644 --- a/src/main/java/com/microsoft/graph/requests/EducationClassReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/requests/EducationClassReferenceRequest.java @@ -8,6 +8,12 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.EducationClass; +import com.microsoft.graph.requests.EducationCategoryCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationCategoryRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentDefaultsRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentSettingsRequestBuilder; import com.microsoft.graph.requests.GroupWithReferenceRequestBuilder; import com.microsoft.graph.requests.EducationUserCollectionWithReferencesRequestBuilder; import com.microsoft.graph.requests.EducationUserWithReferenceRequestBuilder; diff --git a/src/main/java/com/microsoft/graph/requests/EducationClassReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationClassReferenceRequestBuilder.java index bb3326688f3..e23aac14297 100644 --- a/src/main/java/com/microsoft/graph/requests/EducationClassReferenceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/EducationClassReferenceRequestBuilder.java @@ -9,6 +9,12 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.EducationClass; +import com.microsoft.graph.requests.EducationCategoryCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationCategoryRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentDefaultsRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentSettingsRequestBuilder; import com.microsoft.graph.requests.GroupWithReferenceRequestBuilder; import com.microsoft.graph.requests.EducationUserCollectionWithReferencesRequestBuilder; import com.microsoft.graph.requests.EducationUserWithReferenceRequestBuilder; diff --git a/src/main/java/com/microsoft/graph/requests/EducationClassRequest.java b/src/main/java/com/microsoft/graph/requests/EducationClassRequest.java index 84d54931d62..29327b51173 100644 --- a/src/main/java/com/microsoft/graph/requests/EducationClassRequest.java +++ b/src/main/java/com/microsoft/graph/requests/EducationClassRequest.java @@ -8,6 +8,12 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.EducationClass; +import com.microsoft.graph.requests.EducationCategoryCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationCategoryRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentDefaultsRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentSettingsRequestBuilder; import com.microsoft.graph.requests.GroupWithReferenceRequestBuilder; import com.microsoft.graph.requests.EducationUserCollectionWithReferencesRequestBuilder; import com.microsoft.graph.requests.EducationUserWithReferenceRequestBuilder; diff --git a/src/main/java/com/microsoft/graph/requests/EducationClassRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationClassRequestBuilder.java index 326ad342b68..744775b5efe 100644 --- a/src/main/java/com/microsoft/graph/requests/EducationClassRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/EducationClassRequestBuilder.java @@ -8,6 +8,12 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.EducationClass; +import com.microsoft.graph.requests.EducationCategoryCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationCategoryRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentDefaultsRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentRequestBuilder; +import com.microsoft.graph.requests.EducationAssignmentSettingsRequestBuilder; import com.microsoft.graph.requests.GroupWithReferenceRequestBuilder; import com.microsoft.graph.requests.EducationUserCollectionWithReferencesRequestBuilder; import com.microsoft.graph.requests.EducationUserWithReferenceRequestBuilder; @@ -61,6 +67,66 @@ public EducationClassRequest buildRequest(@Nonnull final java.util.List { + + /** + * The request for the EducationFeedbackOutcome + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationFeedbackOutcomeRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationFeedbackOutcome.class); + } + + /** + * Gets the EducationFeedbackOutcome from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationFeedbackOutcome from the service + * + * @return the EducationFeedbackOutcome from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationFeedbackOutcome get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public EducationFeedbackOutcome delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EducationFeedbackOutcome with a source + * + * @param sourceEducationFeedbackOutcome the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EducationFeedbackOutcome sourceEducationFeedbackOutcome) { + return sendAsync(HttpMethod.PATCH, sourceEducationFeedbackOutcome); + } + + /** + * Patches this EducationFeedbackOutcome with a source + * + * @param sourceEducationFeedbackOutcome the source object with updates + * @return the updated EducationFeedbackOutcome + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationFeedbackOutcome patch(@Nonnull final EducationFeedbackOutcome sourceEducationFeedbackOutcome) throws ClientException { + return send(HttpMethod.PATCH, sourceEducationFeedbackOutcome); + } + + /** + * Creates a EducationFeedbackOutcome with a new object + * + * @param newEducationFeedbackOutcome the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationFeedbackOutcome newEducationFeedbackOutcome) { + return sendAsync(HttpMethod.POST, newEducationFeedbackOutcome); + } + + /** + * Creates a EducationFeedbackOutcome with a new object + * + * @param newEducationFeedbackOutcome the new object to create + * @return the created EducationFeedbackOutcome + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationFeedbackOutcome post(@Nonnull final EducationFeedbackOutcome newEducationFeedbackOutcome) throws ClientException { + return send(HttpMethod.POST, newEducationFeedbackOutcome); + } + + /** + * Creates a EducationFeedbackOutcome with a new object + * + * @param newEducationFeedbackOutcome the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EducationFeedbackOutcome newEducationFeedbackOutcome) { + return sendAsync(HttpMethod.PUT, newEducationFeedbackOutcome); + } + + /** + * Creates a EducationFeedbackOutcome with a new object + * + * @param newEducationFeedbackOutcome the object to create/update + * @return the created EducationFeedbackOutcome + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationFeedbackOutcome put(@Nonnull final EducationFeedbackOutcome newEducationFeedbackOutcome) throws ClientException { + return send(HttpMethod.PUT, newEducationFeedbackOutcome); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationFeedbackOutcomeRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationFeedbackOutcomeRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationFeedbackOutcomeRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationFeedbackOutcomeRequestBuilder.java new file mode 100644 index 00000000000..445f561558e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationFeedbackOutcomeRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationFeedbackOutcome; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Feedback Outcome Request Builder. + */ +public class EducationFeedbackOutcomeRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EducationFeedbackOutcome + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationFeedbackOutcomeRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the EducationFeedbackOutcomeRequest instance + */ + @Nonnull + public EducationFeedbackOutcomeRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the EducationFeedbackOutcomeRequest instance + */ + @Nonnull + public EducationFeedbackOutcomeRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EducationFeedbackOutcomeRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationOutcomeCollectionPage.java b/src/main/java/com/microsoft/graph/requests/EducationOutcomeCollectionPage.java new file mode 100644 index 00000000000..cd758a5798f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationOutcomeCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationOutcome; +import com.microsoft.graph.requests.EducationOutcomeCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.EducationOutcomeCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Outcome Collection Page. + */ +public class EducationOutcomeCollectionPage extends BaseCollectionPage { + + /** + * A collection page for EducationOutcome + * + * @param response the serialized EducationOutcomeCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public EducationOutcomeCollectionPage(@Nonnull final EducationOutcomeCollectionResponse response, @Nonnull final EducationOutcomeCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for EducationOutcome + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public EducationOutcomeCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final EducationOutcomeCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationOutcomeCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/EducationOutcomeCollectionRequest.java new file mode 100644 index 00000000000..8bdbd934425 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationOutcomeCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.models.EducationOutcome; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.EducationOutcomeCollectionResponse; +import com.microsoft.graph.requests.EducationOutcomeCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationOutcomeCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Outcome Collection Request. + */ +public class EducationOutcomeCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of EducationOutcome + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationOutcomeCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationOutcomeCollectionResponse.class, EducationOutcomeCollectionPage.class, EducationOutcomeCollectionRequestBuilder.class); + } + + /** + * Creates a new EducationOutcome + * @param newEducationOutcome the EducationOutcome to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationOutcome newEducationOutcome) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationOutcomeRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newEducationOutcome); + } + + /** + * Creates a new EducationOutcome + * @param newEducationOutcome the EducationOutcome to create + * @return the newly created object + */ + @Nonnull + public EducationOutcome post(@Nonnull final EducationOutcome newEducationOutcome) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationOutcomeRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newEducationOutcome); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationOutcomeCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public EducationOutcomeCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public EducationOutcomeCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationOutcomeCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public EducationOutcomeCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public EducationOutcomeCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public EducationOutcomeCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public EducationOutcomeCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public EducationOutcomeCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationOutcomeCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationOutcomeCollectionRequestBuilder.java new file mode 100644 index 00000000000..3e2a095ccf3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationOutcomeCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.models.EducationOutcome; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.EducationOutcomeCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationOutcomeRequestBuilder; +import com.microsoft.graph.requests.EducationOutcomeCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Outcome Collection Request Builder. + */ +public class EducationOutcomeCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of EducationSubmission + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationOutcomeCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationOutcomeRequestBuilder.class, EducationOutcomeCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationOutcomeCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/EducationOutcomeCollectionResponse.java new file mode 100644 index 00000000000..922f829a540 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationOutcomeCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationOutcome; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Outcome Collection Response. + */ +public class EducationOutcomeCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationOutcomeRequest.java b/src/main/java/com/microsoft/graph/requests/EducationOutcomeRequest.java new file mode 100644 index 00000000000..3bd0a92cf43 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationOutcomeRequest.java @@ -0,0 +1,188 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationOutcome; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Outcome Request. + */ +public class EducationOutcomeRequest extends BaseRequest { + + /** + * The request for the EducationOutcome + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param responseClass the class of the response + */ + public EducationOutcomeRequest(@Nonnull final String requestUrl, + @Nonnull final IBaseClient client, + @Nullable final java.util.List requestOptions, + @Nonnull final Class responseClass) { + super(requestUrl, client, requestOptions, responseClass); + } + + /** + * The request for the EducationOutcome + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationOutcomeRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationOutcome.class); + } + + /** + * Gets the EducationOutcome from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationOutcome from the service + * + * @return the EducationOutcome from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationOutcome get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public EducationOutcome delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EducationOutcome with a source + * + * @param sourceEducationOutcome the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EducationOutcome sourceEducationOutcome) { + return sendAsync(HttpMethod.PATCH, sourceEducationOutcome); + } + + /** + * Patches this EducationOutcome with a source + * + * @param sourceEducationOutcome the source object with updates + * @return the updated EducationOutcome + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationOutcome patch(@Nonnull final EducationOutcome sourceEducationOutcome) throws ClientException { + return send(HttpMethod.PATCH, sourceEducationOutcome); + } + + /** + * Creates a EducationOutcome with a new object + * + * @param newEducationOutcome the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationOutcome newEducationOutcome) { + return sendAsync(HttpMethod.POST, newEducationOutcome); + } + + /** + * Creates a EducationOutcome with a new object + * + * @param newEducationOutcome the new object to create + * @return the created EducationOutcome + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationOutcome post(@Nonnull final EducationOutcome newEducationOutcome) throws ClientException { + return send(HttpMethod.POST, newEducationOutcome); + } + + /** + * Creates a EducationOutcome with a new object + * + * @param newEducationOutcome the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EducationOutcome newEducationOutcome) { + return sendAsync(HttpMethod.PUT, newEducationOutcome); + } + + /** + * Creates a EducationOutcome with a new object + * + * @param newEducationOutcome the object to create/update + * @return the created EducationOutcome + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationOutcome put(@Nonnull final EducationOutcome newEducationOutcome) throws ClientException { + return send(HttpMethod.PUT, newEducationOutcome); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationOutcomeRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationOutcomeRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationOutcomeRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationOutcomeRequestBuilder.java new file mode 100644 index 00000000000..cfeba7aa095 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationOutcomeRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationOutcome; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Outcome Request Builder. + */ +public class EducationOutcomeRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EducationOutcome + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationOutcomeRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the EducationOutcomeRequest instance + */ + @Nonnull + public EducationOutcomeRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the EducationOutcomeRequest instance + */ + @Nonnull + public EducationOutcomeRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EducationOutcomeRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationPointsOutcomeRequest.java b/src/main/java/com/microsoft/graph/requests/EducationPointsOutcomeRequest.java new file mode 100644 index 00000000000..0bcd5d2453f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationPointsOutcomeRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationPointsOutcome; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Points Outcome Request. + */ +public class EducationPointsOutcomeRequest extends BaseRequest { + + /** + * The request for the EducationPointsOutcome + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationPointsOutcomeRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationPointsOutcome.class); + } + + /** + * Gets the EducationPointsOutcome from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationPointsOutcome from the service + * + * @return the EducationPointsOutcome from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationPointsOutcome get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public EducationPointsOutcome delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EducationPointsOutcome with a source + * + * @param sourceEducationPointsOutcome the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EducationPointsOutcome sourceEducationPointsOutcome) { + return sendAsync(HttpMethod.PATCH, sourceEducationPointsOutcome); + } + + /** + * Patches this EducationPointsOutcome with a source + * + * @param sourceEducationPointsOutcome the source object with updates + * @return the updated EducationPointsOutcome + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationPointsOutcome patch(@Nonnull final EducationPointsOutcome sourceEducationPointsOutcome) throws ClientException { + return send(HttpMethod.PATCH, sourceEducationPointsOutcome); + } + + /** + * Creates a EducationPointsOutcome with a new object + * + * @param newEducationPointsOutcome the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationPointsOutcome newEducationPointsOutcome) { + return sendAsync(HttpMethod.POST, newEducationPointsOutcome); + } + + /** + * Creates a EducationPointsOutcome with a new object + * + * @param newEducationPointsOutcome the new object to create + * @return the created EducationPointsOutcome + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationPointsOutcome post(@Nonnull final EducationPointsOutcome newEducationPointsOutcome) throws ClientException { + return send(HttpMethod.POST, newEducationPointsOutcome); + } + + /** + * Creates a EducationPointsOutcome with a new object + * + * @param newEducationPointsOutcome the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EducationPointsOutcome newEducationPointsOutcome) { + return sendAsync(HttpMethod.PUT, newEducationPointsOutcome); + } + + /** + * Creates a EducationPointsOutcome with a new object + * + * @param newEducationPointsOutcome the object to create/update + * @return the created EducationPointsOutcome + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationPointsOutcome put(@Nonnull final EducationPointsOutcome newEducationPointsOutcome) throws ClientException { + return send(HttpMethod.PUT, newEducationPointsOutcome); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationPointsOutcomeRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationPointsOutcomeRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationPointsOutcomeRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationPointsOutcomeRequestBuilder.java new file mode 100644 index 00000000000..e8028981833 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationPointsOutcomeRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationPointsOutcome; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Points Outcome Request Builder. + */ +public class EducationPointsOutcomeRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EducationPointsOutcome + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationPointsOutcomeRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the EducationPointsOutcomeRequest instance + */ + @Nonnull + public EducationPointsOutcomeRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the EducationPointsOutcomeRequest instance + */ + @Nonnull + public EducationPointsOutcomeRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EducationPointsOutcomeRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationRubricCollectionPage.java b/src/main/java/com/microsoft/graph/requests/EducationRubricCollectionPage.java new file mode 100644 index 00000000000..127af2f1c8a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationRubricCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationRubric; +import com.microsoft.graph.requests.EducationRubricCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.EducationRubricCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Rubric Collection Page. + */ +public class EducationRubricCollectionPage extends BaseCollectionPage { + + /** + * A collection page for EducationRubric + * + * @param response the serialized EducationRubricCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public EducationRubricCollectionPage(@Nonnull final EducationRubricCollectionResponse response, @Nonnull final EducationRubricCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for EducationRubric + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public EducationRubricCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final EducationRubricCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationRubricCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/EducationRubricCollectionRequest.java new file mode 100644 index 00000000000..136e04a10ee --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationRubricCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationUser; +import com.microsoft.graph.models.EducationRubric; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.EducationRubricCollectionResponse; +import com.microsoft.graph.requests.EducationRubricCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationRubricCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Rubric Collection Request. + */ +public class EducationRubricCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of EducationRubric + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationRubricCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationRubricCollectionResponse.class, EducationRubricCollectionPage.class, EducationRubricCollectionRequestBuilder.class); + } + + /** + * Creates a new EducationRubric + * @param newEducationRubric the EducationRubric to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationRubric newEducationRubric) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationRubricRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newEducationRubric); + } + + /** + * Creates a new EducationRubric + * @param newEducationRubric the EducationRubric to create + * @return the newly created object + */ + @Nonnull + public EducationRubric post(@Nonnull final EducationRubric newEducationRubric) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationRubricRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newEducationRubric); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationRubricCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public EducationRubricCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public EducationRubricCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationRubricCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public EducationRubricCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public EducationRubricCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public EducationRubricCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public EducationRubricCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public EducationRubricCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationRubricCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationRubricCollectionRequestBuilder.java new file mode 100644 index 00000000000..a97476cd1c2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationRubricCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationUser; +import com.microsoft.graph.models.EducationRubric; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.EducationRubricCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationRubricRequestBuilder; +import com.microsoft.graph.requests.EducationRubricCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Rubric Collection Request Builder. + */ +public class EducationRubricCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of EducationUser + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationRubricCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationRubricRequestBuilder.class, EducationRubricCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationRubricCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/EducationRubricCollectionResponse.java new file mode 100644 index 00000000000..4423454ea59 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationRubricCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationRubric; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Rubric Collection Response. + */ +public class EducationRubricCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationRubricOutcomeRequest.java b/src/main/java/com/microsoft/graph/requests/EducationRubricOutcomeRequest.java new file mode 100644 index 00000000000..993caf76140 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationRubricOutcomeRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationRubricOutcome; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Rubric Outcome Request. + */ +public class EducationRubricOutcomeRequest extends BaseRequest { + + /** + * The request for the EducationRubricOutcome + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationRubricOutcomeRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationRubricOutcome.class); + } + + /** + * Gets the EducationRubricOutcome from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationRubricOutcome from the service + * + * @return the EducationRubricOutcome from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationRubricOutcome get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public EducationRubricOutcome delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EducationRubricOutcome with a source + * + * @param sourceEducationRubricOutcome the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EducationRubricOutcome sourceEducationRubricOutcome) { + return sendAsync(HttpMethod.PATCH, sourceEducationRubricOutcome); + } + + /** + * Patches this EducationRubricOutcome with a source + * + * @param sourceEducationRubricOutcome the source object with updates + * @return the updated EducationRubricOutcome + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationRubricOutcome patch(@Nonnull final EducationRubricOutcome sourceEducationRubricOutcome) throws ClientException { + return send(HttpMethod.PATCH, sourceEducationRubricOutcome); + } + + /** + * Creates a EducationRubricOutcome with a new object + * + * @param newEducationRubricOutcome the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationRubricOutcome newEducationRubricOutcome) { + return sendAsync(HttpMethod.POST, newEducationRubricOutcome); + } + + /** + * Creates a EducationRubricOutcome with a new object + * + * @param newEducationRubricOutcome the new object to create + * @return the created EducationRubricOutcome + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationRubricOutcome post(@Nonnull final EducationRubricOutcome newEducationRubricOutcome) throws ClientException { + return send(HttpMethod.POST, newEducationRubricOutcome); + } + + /** + * Creates a EducationRubricOutcome with a new object + * + * @param newEducationRubricOutcome the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EducationRubricOutcome newEducationRubricOutcome) { + return sendAsync(HttpMethod.PUT, newEducationRubricOutcome); + } + + /** + * Creates a EducationRubricOutcome with a new object + * + * @param newEducationRubricOutcome the object to create/update + * @return the created EducationRubricOutcome + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationRubricOutcome put(@Nonnull final EducationRubricOutcome newEducationRubricOutcome) throws ClientException { + return send(HttpMethod.PUT, newEducationRubricOutcome); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationRubricOutcomeRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationRubricOutcomeRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationRubricOutcomeRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationRubricOutcomeRequestBuilder.java new file mode 100644 index 00000000000..9bdca80e1d2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationRubricOutcomeRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationRubricOutcome; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Rubric Outcome Request Builder. + */ +public class EducationRubricOutcomeRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EducationRubricOutcome + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationRubricOutcomeRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the EducationRubricOutcomeRequest instance + */ + @Nonnull + public EducationRubricOutcomeRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the EducationRubricOutcomeRequest instance + */ + @Nonnull + public EducationRubricOutcomeRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EducationRubricOutcomeRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationRubricRequest.java b/src/main/java/com/microsoft/graph/requests/EducationRubricRequest.java new file mode 100644 index 00000000000..48d635f0d6d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationRubricRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationRubric; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Rubric Request. + */ +public class EducationRubricRequest extends BaseRequest { + + /** + * The request for the EducationRubric + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationRubricRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationRubric.class); + } + + /** + * Gets the EducationRubric from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationRubric from the service + * + * @return the EducationRubric from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationRubric get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public EducationRubric delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EducationRubric with a source + * + * @param sourceEducationRubric the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EducationRubric sourceEducationRubric) { + return sendAsync(HttpMethod.PATCH, sourceEducationRubric); + } + + /** + * Patches this EducationRubric with a source + * + * @param sourceEducationRubric the source object with updates + * @return the updated EducationRubric + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationRubric patch(@Nonnull final EducationRubric sourceEducationRubric) throws ClientException { + return send(HttpMethod.PATCH, sourceEducationRubric); + } + + /** + * Creates a EducationRubric with a new object + * + * @param newEducationRubric the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationRubric newEducationRubric) { + return sendAsync(HttpMethod.POST, newEducationRubric); + } + + /** + * Creates a EducationRubric with a new object + * + * @param newEducationRubric the new object to create + * @return the created EducationRubric + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationRubric post(@Nonnull final EducationRubric newEducationRubric) throws ClientException { + return send(HttpMethod.POST, newEducationRubric); + } + + /** + * Creates a EducationRubric with a new object + * + * @param newEducationRubric the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EducationRubric newEducationRubric) { + return sendAsync(HttpMethod.PUT, newEducationRubric); + } + + /** + * Creates a EducationRubric with a new object + * + * @param newEducationRubric the object to create/update + * @return the created EducationRubric + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationRubric put(@Nonnull final EducationRubric newEducationRubric) throws ClientException { + return send(HttpMethod.PUT, newEducationRubric); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationRubricRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationRubricRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationRubricRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationRubricRequestBuilder.java new file mode 100644 index 00000000000..9b9306aa182 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationRubricRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationRubric; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Rubric Request Builder. + */ +public class EducationRubricRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EducationRubric + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationRubricRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the EducationRubricRequest instance + */ + @Nonnull + public EducationRubricRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the EducationRubricRequest instance + */ + @Nonnull + public EducationRubricRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EducationRubricRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionCollectionPage.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionCollectionPage.java new file mode 100644 index 00000000000..4f4220dcf1b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.requests.EducationSubmissionCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.EducationSubmissionCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Collection Page. + */ +public class EducationSubmissionCollectionPage extends BaseCollectionPage { + + /** + * A collection page for EducationSubmission + * + * @param response the serialized EducationSubmissionCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public EducationSubmissionCollectionPage(@Nonnull final EducationSubmissionCollectionResponse response, @Nonnull final EducationSubmissionCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for EducationSubmission + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public EducationSubmissionCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final EducationSubmissionCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionCollectionRequest.java new file mode 100644 index 00000000000..28e66173177 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationAssignment; +import com.microsoft.graph.models.EducationSubmission; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.EducationSubmissionCollectionResponse; +import com.microsoft.graph.requests.EducationSubmissionCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationSubmissionCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Collection Request. + */ +public class EducationSubmissionCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of EducationSubmission + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationSubmissionCollectionResponse.class, EducationSubmissionCollectionPage.class, EducationSubmissionCollectionRequestBuilder.class); + } + + /** + * Creates a new EducationSubmission + * @param newEducationSubmission the EducationSubmission to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationSubmission newEducationSubmission) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationSubmissionRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newEducationSubmission); + } + + /** + * Creates a new EducationSubmission + * @param newEducationSubmission the EducationSubmission to create + * @return the newly created object + */ + @Nonnull + public EducationSubmission post(@Nonnull final EducationSubmission newEducationSubmission) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationSubmissionRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newEducationSubmission); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public EducationSubmissionCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public EducationSubmissionCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public EducationSubmissionCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public EducationSubmissionCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public EducationSubmissionCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionCollectionRequestBuilder.java new file mode 100644 index 00000000000..21de6a0278b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationAssignment; +import com.microsoft.graph.models.EducationSubmission; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.EducationSubmissionCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationSubmissionRequestBuilder; +import com.microsoft.graph.requests.EducationSubmissionCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Collection Request Builder. + */ +public class EducationSubmissionCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of EducationAssignment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationSubmissionRequestBuilder.class, EducationSubmissionCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionCollectionResponse.java new file mode 100644 index 00000000000..4296f5ad293 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationSubmission; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Collection Response. + */ +public class EducationSubmissionCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionRequest.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionRequest.java new file mode 100644 index 00000000000..811e75a9c94 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionRequest.java @@ -0,0 +1,177 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.requests.EducationOutcomeCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationOutcomeRequestBuilder; +import com.microsoft.graph.requests.EducationSubmissionResourceCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationSubmissionResourceRequestBuilder; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Request. + */ +public class EducationSubmissionRequest extends BaseRequest { + + /** + * The request for the EducationSubmission + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationSubmission.class); + } + + /** + * Gets the EducationSubmission from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationSubmission from the service + * + * @return the EducationSubmission from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationSubmission get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public EducationSubmission delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EducationSubmission with a source + * + * @param sourceEducationSubmission the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EducationSubmission sourceEducationSubmission) { + return sendAsync(HttpMethod.PATCH, sourceEducationSubmission); + } + + /** + * Patches this EducationSubmission with a source + * + * @param sourceEducationSubmission the source object with updates + * @return the updated EducationSubmission + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationSubmission patch(@Nonnull final EducationSubmission sourceEducationSubmission) throws ClientException { + return send(HttpMethod.PATCH, sourceEducationSubmission); + } + + /** + * Creates a EducationSubmission with a new object + * + * @param newEducationSubmission the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationSubmission newEducationSubmission) { + return sendAsync(HttpMethod.POST, newEducationSubmission); + } + + /** + * Creates a EducationSubmission with a new object + * + * @param newEducationSubmission the new object to create + * @return the created EducationSubmission + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationSubmission post(@Nonnull final EducationSubmission newEducationSubmission) throws ClientException { + return send(HttpMethod.POST, newEducationSubmission); + } + + /** + * Creates a EducationSubmission with a new object + * + * @param newEducationSubmission the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EducationSubmission newEducationSubmission) { + return sendAsync(HttpMethod.PUT, newEducationSubmission); + } + + /** + * Creates a EducationSubmission with a new object + * + * @param newEducationSubmission the object to create/update + * @return the created EducationSubmission + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationSubmission put(@Nonnull final EducationSubmission newEducationSubmission) throws ClientException { + return send(HttpMethod.PUT, newEducationSubmission); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionRequestBuilder.java new file mode 100644 index 00000000000..4e8bee8a101 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionRequestBuilder.java @@ -0,0 +1,159 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.requests.EducationOutcomeCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationOutcomeRequestBuilder; +import com.microsoft.graph.requests.EducationSubmissionResourceCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationSubmissionResourceRequestBuilder; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Request Builder. + */ +public class EducationSubmissionRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EducationSubmission + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the EducationSubmissionRequest instance + */ + @Nonnull + public EducationSubmissionRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the EducationSubmissionRequest instance + */ + @Nonnull + public EducationSubmissionRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EducationSubmissionRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the EducationOutcome collection + * + * @return the collection request builder + */ + @Nonnull + public EducationOutcomeCollectionRequestBuilder outcomes() { + return new EducationOutcomeCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("outcomes"), getClient(), null); + } + + /** + * Gets a request builder for the EducationOutcome item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public EducationOutcomeRequestBuilder outcomes(@Nonnull final String id) { + return new EducationOutcomeRequestBuilder(getRequestUrlWithAdditionalSegment("outcomes") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the EducationSubmissionResource collection + * + * @return the collection request builder + */ + @Nonnull + public EducationSubmissionResourceCollectionRequestBuilder resources() { + return new EducationSubmissionResourceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("resources"), getClient(), null); + } + + /** + * Gets a request builder for the EducationSubmissionResource item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public EducationSubmissionResourceRequestBuilder resources(@Nonnull final String id) { + return new EducationSubmissionResourceRequestBuilder(getRequestUrlWithAdditionalSegment("resources") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the EducationSubmissionResource collection + * + * @return the collection request builder + */ + @Nonnull + public EducationSubmissionResourceCollectionRequestBuilder submittedResources() { + return new EducationSubmissionResourceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("submittedResources"), getClient(), null); + } + + /** + * Gets a request builder for the EducationSubmissionResource item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public EducationSubmissionResourceRequestBuilder submittedResources(@Nonnull final String id) { + return new EducationSubmissionResourceRequestBuilder(getRequestUrlWithAdditionalSegment("submittedResources") + "/" + id, getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public EducationSubmissionReturnRequestBuilder msgraphReturn() { + return new EducationSubmissionReturnRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.return"), getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public EducationSubmissionSubmitRequestBuilder submit() { + return new EducationSubmissionSubmitRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.submit"), getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public EducationSubmissionUnsubmitRequestBuilder unsubmit() { + return new EducationSubmissionUnsubmitRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.unsubmit"), getClient(), null); + } + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public EducationSubmissionSetUpResourcesFolderRequestBuilder setUpResourcesFolder() { + return new EducationSubmissionSetUpResourcesFolderRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.setUpResourcesFolder"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceCollectionPage.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceCollectionPage.java new file mode 100644 index 00000000000..033c73d376d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceCollectionPage.java @@ -0,0 +1,40 @@ +// Template Source: BaseEntityCollectionPage.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationSubmissionResource; +import com.microsoft.graph.requests.EducationSubmissionResourceCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.EducationSubmissionResourceCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Resource Collection Page. + */ +public class EducationSubmissionResourceCollectionPage extends BaseCollectionPage { + + /** + * A collection page for EducationSubmissionResource + * + * @param response the serialized EducationSubmissionResourceCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public EducationSubmissionResourceCollectionPage(@Nonnull final EducationSubmissionResourceCollectionResponse response, @Nonnull final EducationSubmissionResourceCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for EducationSubmissionResource + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public EducationSubmissionResourceCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final EducationSubmissionResourceCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceCollectionRequest.java new file mode 100644 index 00000000000..c671dd46a7a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceCollectionRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityCollectionRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.models.EducationSubmissionResource; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseEntityCollectionRequest; +import com.microsoft.graph.requests.EducationSubmissionResourceCollectionResponse; +import com.microsoft.graph.requests.EducationSubmissionResourceCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationSubmissionResourceCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Resource Collection Request. + */ +public class EducationSubmissionResourceCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of EducationSubmissionResource + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionResourceCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationSubmissionResourceCollectionResponse.class, EducationSubmissionResourceCollectionPage.class, EducationSubmissionResourceCollectionRequestBuilder.class); + } + + /** + * Creates a new EducationSubmissionResource + * @param newEducationSubmissionResource the EducationSubmissionResource to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationSubmissionResource newEducationSubmissionResource) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationSubmissionResourceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newEducationSubmissionResource); + } + + /** + * Creates a new EducationSubmissionResource + * @param newEducationSubmissionResource the EducationSubmissionResource to create + * @return the newly created object + */ + @Nonnull + public EducationSubmissionResource post(@Nonnull final EducationSubmissionResource newEducationSubmissionResource) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new EducationSubmissionResourceRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newEducationSubmissionResource); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionResourceCollectionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionResourceCollectionRequest filter(@Nonnull final String value) { + addFilterOption(value); + return this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionResourceCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(value); + return this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionResourceCollectionRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public EducationSubmissionResourceCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + + /** + * Sets the count value for the request + * + * @param value whether or not to return the count of objects with the request + * @return the updated request + */ + @Nonnull + public EducationSubmissionResourceCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public EducationSubmissionResourceCollectionRequest count() { + addCountOption(true); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public EducationSubmissionResourceCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public EducationSubmissionResourceCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceCollectionRequestBuilder.java new file mode 100644 index 00000000000..a20dfb06d1d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceCollectionRequestBuilder.java @@ -0,0 +1,51 @@ +// Template Source: BaseEntityCollectionRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.models.EducationSubmissionResource; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.EducationSubmissionResourceCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationSubmissionResourceRequestBuilder; +import com.microsoft.graph.requests.EducationSubmissionResourceCollectionRequest; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Resource Collection Request Builder. + */ +public class EducationSubmissionResourceCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of EducationSubmission + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionResourceCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationSubmissionResourceRequestBuilder.class, EducationSubmissionResourceCollectionRequest.class); + } + + + + /** + * Gets the raw count request for the collection + * @return The raw count request for the collection + */ + @Nonnull + public PrimitiveRequestBuilder count() { + return new PrimitiveRequestBuilder(getRequestUrlWithAdditionalSegment("$count"), getClient(), null, Long.class); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceCollectionResponse.java new file mode 100644 index 00000000000..cf4cebdb5b8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceCollectionResponse.java @@ -0,0 +1,18 @@ +// Template Source: BaseEntityCollectionResponse.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationSubmissionResource; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Resource Collection Response. + */ +public class EducationSubmissionResourceCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceRequest.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceRequest.java new file mode 100644 index 00000000000..d1fcc392678 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceRequest.java @@ -0,0 +1,173 @@ +// Template Source: BaseEntityRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationSubmissionResource; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Resource Request. + */ +public class EducationSubmissionResourceRequest extends BaseRequest { + + /** + * The request for the EducationSubmissionResource + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionResourceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationSubmissionResource.class); + } + + /** + * Gets the EducationSubmissionResource from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationSubmissionResource from the service + * + * @return the EducationSubmissionResource from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationSubmissionResource get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @return a future with the deletion result + */ + @Nonnull + public java.util.concurrent.CompletableFuture deleteAsync() { + return sendAsync(HttpMethod.DELETE, null); + } + + /** + * Delete this item from the service + * @return the resulting response if the service returns anything on deletion + * + * @throws ClientException if there was an exception during the delete operation + */ + @Nullable + public EducationSubmissionResource delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this EducationSubmissionResource with a source + * + * @param sourceEducationSubmissionResource the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final EducationSubmissionResource sourceEducationSubmissionResource) { + return sendAsync(HttpMethod.PATCH, sourceEducationSubmissionResource); + } + + /** + * Patches this EducationSubmissionResource with a source + * + * @param sourceEducationSubmissionResource the source object with updates + * @return the updated EducationSubmissionResource + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationSubmissionResource patch(@Nonnull final EducationSubmissionResource sourceEducationSubmissionResource) throws ClientException { + return send(HttpMethod.PATCH, sourceEducationSubmissionResource); + } + + /** + * Creates a EducationSubmissionResource with a new object + * + * @param newEducationSubmissionResource the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final EducationSubmissionResource newEducationSubmissionResource) { + return sendAsync(HttpMethod.POST, newEducationSubmissionResource); + } + + /** + * Creates a EducationSubmissionResource with a new object + * + * @param newEducationSubmissionResource the new object to create + * @return the created EducationSubmissionResource + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationSubmissionResource post(@Nonnull final EducationSubmissionResource newEducationSubmissionResource) throws ClientException { + return send(HttpMethod.POST, newEducationSubmissionResource); + } + + /** + * Creates a EducationSubmissionResource with a new object + * + * @param newEducationSubmissionResource the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final EducationSubmissionResource newEducationSubmissionResource) { + return sendAsync(HttpMethod.PUT, newEducationSubmissionResource); + } + + /** + * Creates a EducationSubmissionResource with a new object + * + * @param newEducationSubmissionResource the object to create/update + * @return the created EducationSubmissionResource + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public EducationSubmissionResource put(@Nonnull final EducationSubmissionResource newEducationSubmissionResource) throws ClientException { + return send(HttpMethod.PUT, newEducationSubmissionResource); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionResourceRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionResourceRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceRequestBuilder.java new file mode 100644 index 00000000000..076be9ff80c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionResourceRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseEntityRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.models.EducationSubmissionResource; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Resource Request Builder. + */ +public class EducationSubmissionResourceRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the EducationSubmissionResource + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionResourceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the EducationSubmissionResourceRequest instance + */ + @Nonnull + public EducationSubmissionResourceRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the EducationSubmissionResourceRequest instance + */ + @Nonnull + public EducationSubmissionResourceRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.EducationSubmissionResourceRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionReturnRequest.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionReturnRequest.java new file mode 100644 index 00000000000..e132e2b2bce --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionReturnRequest.java @@ -0,0 +1,77 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.requests.EducationSubmissionReturnRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Return Request. + */ +public class EducationSubmissionReturnRequest extends BaseRequest { + /** + * The request for this EducationSubmissionReturn + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionReturnRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationSubmission.class); + } + + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, null); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public EducationSubmission post() throws ClientException { + return send(HttpMethod.POST, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionReturnRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionReturnRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionReturnRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionReturnRequestBuilder.java new file mode 100644 index 00000000000..c2ccc3081b6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionReturnRequestBuilder.java @@ -0,0 +1,58 @@ +// Template Source: BaseMethodRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.requests.EducationSubmissionReturnRequest; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Return Request Builder. + */ +public class EducationSubmissionReturnRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this EducationSubmissionReturn + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionReturnRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the EducationSubmissionReturnRequest + * + * @param requestOptions the options for the request + * @return the EducationSubmissionReturnRequest instance + */ + @Nonnull + public EducationSubmissionReturnRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the EducationSubmissionReturnRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the EducationSubmissionReturnRequest instance + */ + @Nonnull + public EducationSubmissionReturnRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final EducationSubmissionReturnRequest request = new EducationSubmissionReturnRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionSetUpResourcesFolderRequest.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionSetUpResourcesFolderRequest.java new file mode 100644 index 00000000000..b3d780d0211 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionSetUpResourcesFolderRequest.java @@ -0,0 +1,79 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.requests.EducationSubmissionSetUpResourcesFolderRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Set Up Resources Folder Request. + */ +public class EducationSubmissionSetUpResourcesFolderRequest extends BaseRequest { + /** + * The request for this EducationSubmissionSetUpResourcesFolder + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionSetUpResourcesFolderRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationSubmission.class); + } + + /** + * Gets the EducationSubmission + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the EducationSubmission + * + * @return the EducationSubmission + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public EducationSubmission get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionSetUpResourcesFolderRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionSetUpResourcesFolderRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionSetUpResourcesFolderRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionSetUpResourcesFolderRequestBuilder.java new file mode 100644 index 00000000000..1ab40702d8b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionSetUpResourcesFolderRequestBuilder.java @@ -0,0 +1,58 @@ +// Template Source: BaseMethodRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.requests.EducationSubmissionSetUpResourcesFolderRequest; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Set Up Resources Folder Request Builder. + */ +public class EducationSubmissionSetUpResourcesFolderRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this EducationSubmissionSetUpResourcesFolder + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionSetUpResourcesFolderRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the EducationSubmissionSetUpResourcesFolderRequest + * + * @param requestOptions the options for the request + * @return the EducationSubmissionSetUpResourcesFolderRequest instance + */ + @Nonnull + public EducationSubmissionSetUpResourcesFolderRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the EducationSubmissionSetUpResourcesFolderRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the EducationSubmissionSetUpResourcesFolderRequest instance + */ + @Nonnull + public EducationSubmissionSetUpResourcesFolderRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final EducationSubmissionSetUpResourcesFolderRequest request = new EducationSubmissionSetUpResourcesFolderRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionSubmitRequest.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionSubmitRequest.java new file mode 100644 index 00000000000..65a7192ddfc --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionSubmitRequest.java @@ -0,0 +1,77 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.requests.EducationSubmissionSubmitRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Submit Request. + */ +public class EducationSubmissionSubmitRequest extends BaseRequest { + /** + * The request for this EducationSubmissionSubmit + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionSubmitRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationSubmission.class); + } + + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, null); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public EducationSubmission post() throws ClientException { + return send(HttpMethod.POST, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionSubmitRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionSubmitRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionSubmitRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionSubmitRequestBuilder.java new file mode 100644 index 00000000000..ea918e1614d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionSubmitRequestBuilder.java @@ -0,0 +1,58 @@ +// Template Source: BaseMethodRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.requests.EducationSubmissionSubmitRequest; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Submit Request Builder. + */ +public class EducationSubmissionSubmitRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this EducationSubmissionSubmit + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionSubmitRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the EducationSubmissionSubmitRequest + * + * @param requestOptions the options for the request + * @return the EducationSubmissionSubmitRequest instance + */ + @Nonnull + public EducationSubmissionSubmitRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the EducationSubmissionSubmitRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the EducationSubmissionSubmitRequest instance + */ + @Nonnull + public EducationSubmissionSubmitRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final EducationSubmissionSubmitRequest request = new EducationSubmissionSubmitRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionUnsubmitRequest.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionUnsubmitRequest.java new file mode 100644 index 00000000000..e0644860f27 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionUnsubmitRequest.java @@ -0,0 +1,77 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.requests.EducationSubmissionUnsubmitRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Unsubmit Request. + */ +public class EducationSubmissionUnsubmitRequest extends BaseRequest { + /** + * The request for this EducationSubmissionUnsubmit + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionUnsubmitRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, EducationSubmission.class); + } + + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, null); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public EducationSubmission post() throws ClientException { + return send(HttpMethod.POST, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionUnsubmitRequest select(@Nonnull final String value) { + addSelectOption(value); + return this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public EducationSubmissionUnsubmitRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationSubmissionUnsubmitRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationSubmissionUnsubmitRequestBuilder.java new file mode 100644 index 00000000000..5bcfe288cfe --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/EducationSubmissionUnsubmitRequestBuilder.java @@ -0,0 +1,58 @@ +// Template Source: BaseMethodRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.requests.EducationSubmissionUnsubmitRequest; +import com.microsoft.graph.models.EducationSubmission; +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Education Submission Unsubmit Request Builder. + */ +public class EducationSubmissionUnsubmitRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this EducationSubmissionUnsubmit + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EducationSubmissionUnsubmitRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the EducationSubmissionUnsubmitRequest + * + * @param requestOptions the options for the request + * @return the EducationSubmissionUnsubmitRequest instance + */ + @Nonnull + public EducationSubmissionUnsubmitRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the EducationSubmissionUnsubmitRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the EducationSubmissionUnsubmitRequest instance + */ + @Nonnull + public EducationSubmissionUnsubmitRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final EducationSubmissionUnsubmitRequest request = new EducationSubmissionUnsubmitRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/EducationUserReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/EducationUserReferenceRequest.java index 121f03d5242..564664fe6e3 100644 --- a/src/main/java/com/microsoft/graph/requests/EducationUserReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/requests/EducationUserReferenceRequest.java @@ -8,6 +8,8 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.EducationUser; +import com.microsoft.graph.requests.EducationRubricCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationRubricRequestBuilder; import com.microsoft.graph.requests.EducationClassCollectionWithReferencesRequestBuilder; import com.microsoft.graph.requests.EducationClassWithReferenceRequestBuilder; import com.microsoft.graph.requests.EducationSchoolCollectionWithReferencesRequestBuilder; diff --git a/src/main/java/com/microsoft/graph/requests/EducationUserReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationUserReferenceRequestBuilder.java index bf2d1b25314..d7170a8ab98 100644 --- a/src/main/java/com/microsoft/graph/requests/EducationUserReferenceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/EducationUserReferenceRequestBuilder.java @@ -9,6 +9,8 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.EducationUser; +import com.microsoft.graph.requests.EducationRubricCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationRubricRequestBuilder; import com.microsoft.graph.requests.EducationClassCollectionWithReferencesRequestBuilder; import com.microsoft.graph.requests.EducationClassWithReferenceRequestBuilder; import com.microsoft.graph.requests.EducationSchoolCollectionWithReferencesRequestBuilder; diff --git a/src/main/java/com/microsoft/graph/requests/EducationUserRequest.java b/src/main/java/com/microsoft/graph/requests/EducationUserRequest.java index fce715f29a3..40a2a609c83 100644 --- a/src/main/java/com/microsoft/graph/requests/EducationUserRequest.java +++ b/src/main/java/com/microsoft/graph/requests/EducationUserRequest.java @@ -8,6 +8,8 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.EducationUser; +import com.microsoft.graph.requests.EducationRubricCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationRubricRequestBuilder; import com.microsoft.graph.requests.EducationClassCollectionWithReferencesRequestBuilder; import com.microsoft.graph.requests.EducationClassWithReferenceRequestBuilder; import com.microsoft.graph.requests.EducationSchoolCollectionWithReferencesRequestBuilder; diff --git a/src/main/java/com/microsoft/graph/requests/EducationUserRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/EducationUserRequestBuilder.java index 6bfb8098df9..c6f7f1fecf4 100644 --- a/src/main/java/com/microsoft/graph/requests/EducationUserRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/EducationUserRequestBuilder.java @@ -8,6 +8,8 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.EducationUser; +import com.microsoft.graph.requests.EducationRubricCollectionRequestBuilder; +import com.microsoft.graph.requests.EducationRubricRequestBuilder; import com.microsoft.graph.requests.EducationClassCollectionWithReferencesRequestBuilder; import com.microsoft.graph.requests.EducationClassWithReferenceRequestBuilder; import com.microsoft.graph.requests.EducationSchoolCollectionWithReferencesRequestBuilder; @@ -61,6 +63,26 @@ public EducationUserRequest buildRequest(@Nonnull final java.util.List