diff --git a/CHANGELOG.md b/CHANGELOG.md index 76ff2886360..60e259451a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,32 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [5.77.0] - 2023-11-17 + +### Added + +- ItemRetentionLabel model and derived request. +- MeetingAudience model. +- OnlineMeetingBase model and derived request. +- RetentionLabelSettings model. +- VirtualEvent model and derived requests. +- VirtualEventAttendeeRegistrationStatus model. +- VirtualEventRegistration model and derived requests. +- VirtualEventRegistrationQuestionAnswer model. +- VirtualEventSession model and derived requests. +- VirtualEventsRoot model and derived request. +- VirtualEventStatus model. +- VirtualEventWebinar model and derived requests. +- VirtualEventWebinarGetByUserIdAndRoleParameterSet model and derived requests. +- VirtualEventWebinarGetByUserRoleParameterSet model and derived requests. +- BehaviorDuringRetentionPeriod model. + +### Changed + +- DriveItem model and derived request. +- OnlineMeeting model. +- SolutionsRoot model and derived request. + ## [5.76.0] - 2023-11-10 ### Added diff --git a/README.md b/README.md index bf87a4e6fa6..1006c19ac7b 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:5.76.0' + implementation 'com.microsoft.graph:microsoft-graph:5.77.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 - 5.76.0 + 5.77.0 @@ -207,5 +207,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI + diff --git a/gradle.properties b/gradle.properties index f5a69ee2df8..b16072f2ff5 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ org.gradle.caching=true mavenGroupId = com.microsoft.graph mavenArtifactId = microsoft-graph mavenMajorVersion = 5 -mavenMinorVersion = 76 +mavenMinorVersion = 77 mavenPatchVersion = 0 mavenArtifactSuffix = @@ -130,5 +130,6 @@ 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 19d133c4212..af3e3c92812 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 = "5.76.0"; + public static final String VERSION_NAME = "5.77.0"; } @@ -107,5 +107,6 @@ private Constants() { + diff --git a/src/main/java/com/microsoft/graph/models/CallRecording.java b/src/main/java/com/microsoft/graph/models/CallRecording.java index 7922fb0aafb..629ddb883ef 100644 --- a/src/main/java/com/microsoft/graph/models/CallRecording.java +++ b/src/main/java/com/microsoft/graph/models/CallRecording.java @@ -28,7 +28,7 @@ public class CallRecording extends Entity implements IJsonBackedObject { /** * The Created Date Time. - * + * Date and time at which the recording was created. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. */ @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) @Expose @@ -37,7 +37,7 @@ public class CallRecording extends Entity implements IJsonBackedObject { /** * The Meeting Id. - * + * The unique identifier of the onlineMeeting related to this recording. Read-only. */ @SerializedName(value = "meetingId", alternate = {"MeetingId"}) @Expose @@ -46,7 +46,7 @@ public class CallRecording extends Entity implements IJsonBackedObject { /** * The Meeting Organizer. - * + * The identity information of the organizer of the onlineMeeting related to this recording. Read-only. */ @SerializedName(value = "meetingOrganizer", alternate = {"MeetingOrganizer"}) @Expose @@ -55,7 +55,7 @@ public class CallRecording extends Entity implements IJsonBackedObject { /** * The Recording Content Url. - * + * The URL that can be used to access the content of the recording. Read-only. */ @SerializedName(value = "recordingContentUrl", alternate = {"RecordingContentUrl"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/DriveItem.java b/src/main/java/com/microsoft/graph/models/DriveItem.java index b5c5332804c..b8f0eac7e2c 100644 --- a/src/main/java/com/microsoft/graph/models/DriveItem.java +++ b/src/main/java/com/microsoft/graph/models/DriveItem.java @@ -31,6 +31,7 @@ import com.microsoft.graph.models.Workbook; import com.microsoft.graph.models.ItemAnalytics; import com.microsoft.graph.models.ListItem; +import com.microsoft.graph.models.ItemRetentionLabel; import com.microsoft.graph.models.BaseItem; import com.microsoft.graph.requests.DriveItemCollectionPage; import com.microsoft.graph.requests.PermissionCollectionPage; @@ -305,6 +306,15 @@ public class DriveItem extends BaseItem implements IJsonBackedObject { @Nullable public com.microsoft.graph.requests.PermissionCollectionPage permissions; + /** + * The Retention Label. + * Information about retention label and settings enforced on the driveItem. Read-write. + */ + @SerializedName(value = "retentionLabel", alternate = {"RetentionLabel"}) + @Expose + @Nullable + public ItemRetentionLabel retentionLabel; + /** * The Subscriptions. * The set of subscriptions on the item. Only supported on the root of a drive. diff --git a/src/main/java/com/microsoft/graph/models/ExtensionProperty.java b/src/main/java/com/microsoft/graph/models/ExtensionProperty.java index 036260d8f3a..6ce4467e0a8 100644 --- a/src/main/java/com/microsoft/graph/models/ExtensionProperty.java +++ b/src/main/java/com/microsoft/graph/models/ExtensionProperty.java @@ -46,7 +46,7 @@ public class ExtensionProperty extends DirectoryObject implements IJsonBackedObj /** * The Is Multi Valued. - * + * Defines the directory extension as a multi-valued property. When true, the directory extension property can store a collection of objects of the dataType; for example, a collection of integers. The default value is false. Supports $filter (eq). */ @SerializedName(value = "isMultiValued", alternate = {"IsMultiValued"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/InternalDomainFederation.java b/src/main/java/com/microsoft/graph/models/InternalDomainFederation.java index 55d5e7f5ba8..aaf7e41fdce 100644 --- a/src/main/java/com/microsoft/graph/models/InternalDomainFederation.java +++ b/src/main/java/com/microsoft/graph/models/InternalDomainFederation.java @@ -48,7 +48,7 @@ public class InternalDomainFederation extends SamlOrWsFedProvider implements IJs /** * The Is Signed Authentication Request Required. - * If true, when SAML authentication requests are sent to the federated SAML IdP, Microsoft Entra ID will sign those requests using the OrgID signing key. If false (default), the SAML authentication requests sent to the federated IdP are not signed. + * If true, when SAML authentication requests are sent to the federated SAML IdP, Microsoft Entra ID will sign those requests using the OrgID signing key. If false (default), the SAML authentication requests sent to the federated IdP aren't signed. */ @SerializedName(value = "isSignedAuthenticationRequestRequired", alternate = {"IsSignedAuthenticationRequestRequired"}) @Expose @@ -57,7 +57,7 @@ public class InternalDomainFederation extends SamlOrWsFedProvider implements IJs /** * The Next Signing Certificate. - * Fallback token signing certificate that is used to sign tokens when the primary signing certificate expires. Formatted as Base64 encoded strings of the public portion of the federated IdP's token signing certificate. Needs to be compatible with the X509Certificate2 class. Much like the signingCertificate, the nextSigningCertificate property is used if a rollover is required outside of the auto-rollover update, a new federation service is being set up, or if the new token signing certificate is not present in the federation properties after the federation service certificate has been updated. + * Fallback token signing certificate that can also be used to sign tokens, for example when the primary signing certificate expires. Formatted as Base64 encoded strings of the public portion of the federated IdP's token signing certificate. Needs to be compatible with the X509Certificate2 class. Much like the signingCertificate, the nextSigningCertificate property is used if a rollover is required outside of the auto-rollover update, a new federation service is being set up, or if the new token signing certificate isn't present in the federation properties after the federation service certificate has been updated. */ @SerializedName(value = "nextSigningCertificate", alternate = {"NextSigningCertificate"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ItemRetentionLabel.java b/src/main/java/com/microsoft/graph/models/ItemRetentionLabel.java new file mode 100644 index 00000000000..f7018039c68 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ItemRetentionLabel.java @@ -0,0 +1,85 @@ +// 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.RetentionLabelSettings; +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 Item Retention Label. + */ +public class ItemRetentionLabel extends Entity implements IJsonBackedObject { + + + /** + * The Is Label Applied Explicitly. + * Specifies whether the label is applied explicitly on the item. True indicates that the label is applied explicitly; otherwise, the label is inherited from its parent. Read-only. + */ + @SerializedName(value = "isLabelAppliedExplicitly", alternate = {"IsLabelAppliedExplicitly"}) + @Expose + @Nullable + public Boolean isLabelAppliedExplicitly; + + /** + * The Label Applied By. + * Identity of the user who applied the label. Read-only. + */ + @SerializedName(value = "labelAppliedBy", alternate = {"LabelAppliedBy"}) + @Expose + @Nullable + public IdentitySet labelAppliedBy; + + /** + * The Label Applied Date Time. + * The date and time when the label was applied on the item. The timestamp type represents date and time information using ISO 8601 format and is always in UTC. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Read-only. + */ + @SerializedName(value = "labelAppliedDateTime", alternate = {"LabelAppliedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime labelAppliedDateTime; + + /** + * The Name. + * The retention label on the document. Read-write. + */ + @SerializedName(value = "name", alternate = {"Name"}) + @Expose + @Nullable + public String name; + + /** + * The Retention Settings. + * The retention settings enforced on the item. Read-write. + */ + @SerializedName(value = "retentionSettings", alternate = {"RetentionSettings"}) + @Expose + @Nullable + public RetentionLabelSettings retentionSettings; + + + /** + * 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/MeetingAudience.java b/src/main/java/com/microsoft/graph/models/MeetingAudience.java new file mode 100644 index 00000000000..b4181879cd3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/MeetingAudience.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 Meeting Audience. +*/ +public enum MeetingAudience +{ + /** + * everyone + */ + EVERYONE, + /** + * organization + */ + ORGANIZATION, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For MeetingAudience values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/OnlineMeeting.java b/src/main/java/com/microsoft/graph/models/OnlineMeeting.java index e127e391918..9d3877ae7e3 100644 --- a/src/main/java/com/microsoft/graph/models/OnlineMeeting.java +++ b/src/main/java/com/microsoft/graph/models/OnlineMeeting.java @@ -9,19 +9,9 @@ import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; -import com.microsoft.graph.models.OnlineMeetingPresenters; -import com.microsoft.graph.models.MeetingChatMode; -import com.microsoft.graph.models.AudioConferencing; import com.microsoft.graph.models.BroadcastMeetingSettings; -import com.microsoft.graph.models.ChatInfo; -import com.microsoft.graph.models.ItemBody; -import com.microsoft.graph.models.JoinMeetingIdSettings; -import com.microsoft.graph.models.LobbyBypassSettings; import com.microsoft.graph.models.MeetingParticipants; -import com.microsoft.graph.models.MeetingChatHistoryDefaultMode; -import com.microsoft.graph.models.WatermarkProtectionValues; -import com.microsoft.graph.models.Entity; -import com.microsoft.graph.requests.MeetingAttendanceReportCollectionPage; +import com.microsoft.graph.models.OnlineMeetingBase; import com.microsoft.graph.requests.CallRecordingCollectionPage; import com.microsoft.graph.requests.CallTranscriptCollectionPage; @@ -37,72 +27,9 @@ /** * The class for the Online Meeting. */ -public class OnlineMeeting extends Entity implements IJsonBackedObject { +public class OnlineMeeting extends OnlineMeetingBase implements IJsonBackedObject { - /** - * The Allow Attendee To Enable Camera. - * Indicates whether attendees can turn on their camera. - */ - @SerializedName(value = "allowAttendeeToEnableCamera", alternate = {"AllowAttendeeToEnableCamera"}) - @Expose - @Nullable - public Boolean allowAttendeeToEnableCamera; - - /** - * The Allow Attendee To Enable Mic. - * Indicates whether attendees can turn on their microphone. - */ - @SerializedName(value = "allowAttendeeToEnableMic", alternate = {"AllowAttendeeToEnableMic"}) - @Expose - @Nullable - public Boolean allowAttendeeToEnableMic; - - /** - * The Allowed Presenters. - * Specifies who can be a presenter in a meeting. Possible values are listed in the following table. - */ - @SerializedName(value = "allowedPresenters", alternate = {"AllowedPresenters"}) - @Expose - @Nullable - public OnlineMeetingPresenters allowedPresenters; - - /** - * The Allow Meeting Chat. - * Specifies the mode of meeting chat. - */ - @SerializedName(value = "allowMeetingChat", alternate = {"AllowMeetingChat"}) - @Expose - @Nullable - public MeetingChatMode allowMeetingChat; - - /** - * The Allow Participants To Change Name. - * Specifies if participants are allowed to rename themselves in an instance of the meeting. - */ - @SerializedName(value = "allowParticipantsToChangeName", alternate = {"AllowParticipantsToChangeName"}) - @Expose - @Nullable - public Boolean allowParticipantsToChangeName; - - /** - * The Allow Teamwork Reactions. - * Indicates whether Teams reactions are enabled for the meeting. - */ - @SerializedName(value = "allowTeamworkReactions", alternate = {"AllowTeamworkReactions"}) - @Expose - @Nullable - public Boolean allowTeamworkReactions; - - /** - * The Audio Conferencing. - * The phone access (dial-in) information for an online meeting. Read-only. - */ - @SerializedName(value = "audioConferencing", alternate = {"AudioConferencing"}) - @Expose - @Nullable - public AudioConferencing audioConferencing; - /** * The Broadcast Settings. * @@ -112,15 +39,6 @@ public class OnlineMeeting extends Entity implements IJsonBackedObject { @Nullable public BroadcastMeetingSettings broadcastSettings; - /** - * The Chat Info. - * The chat information associated with this online meeting. - */ - @SerializedName(value = "chatInfo", alternate = {"ChatInfo"}) - @Expose - @Nullable - public ChatInfo chatInfo; - /** * The Creation Date Time. * The meeting creation time in UTC. Read-only. @@ -157,51 +75,6 @@ public class OnlineMeeting extends Entity implements IJsonBackedObject { @Nullable public Boolean isBroadcast; - /** - * The Is Entry Exit Announced. - * Indicates whether to announce when callers join or leave. - */ - @SerializedName(value = "isEntryExitAnnounced", alternate = {"IsEntryExitAnnounced"}) - @Expose - @Nullable - public Boolean isEntryExitAnnounced; - - /** - * The Join Information. - * The join information in the language and locale variant specified in the Accept-Language request HTTP header. Read-only. - */ - @SerializedName(value = "joinInformation", alternate = {"JoinInformation"}) - @Expose - @Nullable - public ItemBody joinInformation; - - /** - * The Join Meeting Id Settings. - * Specifies the joinMeetingId, the meeting passcode, and the requirement for the passcode. Once an onlineMeeting is created, the joinMeetingIdSettings cannot be modified. To make any changes to this property, the meeting needs to be canceled and a new one needs to be created. - */ - @SerializedName(value = "joinMeetingIdSettings", alternate = {"JoinMeetingIdSettings"}) - @Expose - @Nullable - public JoinMeetingIdSettings joinMeetingIdSettings; - - /** - * The Join Web Url. - * The join URL of the online meeting. Read-only. - */ - @SerializedName(value = "joinWebUrl", alternate = {"JoinWebUrl"}) - @Expose - @Nullable - public String joinWebUrl; - - /** - * The Lobby Bypass Settings. - * Specifies which participants can bypass the meeting lobby. - */ - @SerializedName(value = "lobbyBypassSettings", alternate = {"LobbyBypassSettings"}) - @Expose - @Nullable - public LobbyBypassSettings lobbyBypassSettings; - /** * The Participants. * The participants associated with the online meeting. This includes the organizer and the attendees. @@ -211,24 +84,6 @@ public class OnlineMeeting extends Entity implements IJsonBackedObject { @Nullable public MeetingParticipants participants; - /** - * The Record Automatically. - * Indicates whether to record the meeting automatically. - */ - @SerializedName(value = "recordAutomatically", alternate = {"RecordAutomatically"}) - @Expose - @Nullable - public Boolean recordAutomatically; - - /** - * The Share Meeting Chat History Default. - * Specifies whether meeting chat history is shared with participants. Possible values are: all, none, unknownFutureValue. - */ - @SerializedName(value = "shareMeetingChatHistoryDefault", alternate = {"ShareMeetingChatHistoryDefault"}) - @Expose - @Nullable - public MeetingChatHistoryDefaultMode shareMeetingChatHistoryDefault; - /** * The Start Date Time. * The meeting start time in UTC. @@ -238,45 +93,9 @@ public class OnlineMeeting extends Entity implements IJsonBackedObject { @Nullable public java.time.OffsetDateTime startDateTime; - /** - * The Subject. - * The subject of the online meeting. - */ - @SerializedName(value = "subject", alternate = {"Subject"}) - @Expose - @Nullable - public String subject; - - /** - * The Video Teleconference Id. - * The video teleconferencing ID. Read-only. - */ - @SerializedName(value = "videoTeleconferenceId", alternate = {"VideoTeleconferenceId"}) - @Expose - @Nullable - public String videoTeleconferenceId; - - /** - * The Watermark Protection. - * Specifies whether a watermark should be applied to a content type by the client application. - */ - @SerializedName(value = "watermarkProtection", alternate = {"WatermarkProtection"}) - @Expose - @Nullable - public WatermarkProtectionValues watermarkProtection; - - /** - * The Attendance Reports. - * The attendance reports of an online meeting. Read-only. - */ - @SerializedName(value = "attendanceReports", alternate = {"AttendanceReports"}) - @Expose - @Nullable - public com.microsoft.graph.requests.MeetingAttendanceReportCollectionPage attendanceReports; - /** * The Recordings. - * + * The recordings of an online meeting. Read-only. */ @SerializedName(value = "recordings", alternate = {"Recordings"}) @Expose @@ -302,10 +121,6 @@ public class OnlineMeeting extends Entity implements IJsonBackedObject { public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) { - if (json.has("attendanceReports")) { - attendanceReports = serializer.deserializeObject(json.get("attendanceReports"), com.microsoft.graph.requests.MeetingAttendanceReportCollectionPage.class); - } - if (json.has("recordings")) { recordings = serializer.deserializeObject(json.get("recordings"), com.microsoft.graph.requests.CallRecordingCollectionPage.class); } diff --git a/src/main/java/com/microsoft/graph/models/OnlineMeetingBase.java b/src/main/java/com/microsoft/graph/models/OnlineMeetingBase.java new file mode 100644 index 00000000000..af25c9ae6eb --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/OnlineMeetingBase.java @@ -0,0 +1,224 @@ +// 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.OnlineMeetingPresenters; +import com.microsoft.graph.models.MeetingChatMode; +import com.microsoft.graph.models.AudioConferencing; +import com.microsoft.graph.models.ChatInfo; +import com.microsoft.graph.models.ItemBody; +import com.microsoft.graph.models.JoinMeetingIdSettings; +import com.microsoft.graph.models.LobbyBypassSettings; +import com.microsoft.graph.models.MeetingChatHistoryDefaultMode; +import com.microsoft.graph.models.WatermarkProtectionValues; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.MeetingAttendanceReportCollectionPage; + + +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 Online Meeting Base. + */ +public class OnlineMeetingBase extends Entity implements IJsonBackedObject { + + + /** + * The Allow Attendee To Enable Camera. + * + */ + @SerializedName(value = "allowAttendeeToEnableCamera", alternate = {"AllowAttendeeToEnableCamera"}) + @Expose + @Nullable + public Boolean allowAttendeeToEnableCamera; + + /** + * The Allow Attendee To Enable Mic. + * + */ + @SerializedName(value = "allowAttendeeToEnableMic", alternate = {"AllowAttendeeToEnableMic"}) + @Expose + @Nullable + public Boolean allowAttendeeToEnableMic; + + /** + * The Allowed Presenters. + * + */ + @SerializedName(value = "allowedPresenters", alternate = {"AllowedPresenters"}) + @Expose + @Nullable + public OnlineMeetingPresenters allowedPresenters; + + /** + * The Allow Meeting Chat. + * + */ + @SerializedName(value = "allowMeetingChat", alternate = {"AllowMeetingChat"}) + @Expose + @Nullable + public MeetingChatMode allowMeetingChat; + + /** + * The Allow Participants To Change Name. + * + */ + @SerializedName(value = "allowParticipantsToChangeName", alternate = {"AllowParticipantsToChangeName"}) + @Expose + @Nullable + public Boolean allowParticipantsToChangeName; + + /** + * The Allow Teamwork Reactions. + * + */ + @SerializedName(value = "allowTeamworkReactions", alternate = {"AllowTeamworkReactions"}) + @Expose + @Nullable + public Boolean allowTeamworkReactions; + + /** + * The Audio Conferencing. + * + */ + @SerializedName(value = "audioConferencing", alternate = {"AudioConferencing"}) + @Expose + @Nullable + public AudioConferencing audioConferencing; + + /** + * The Chat Info. + * + */ + @SerializedName(value = "chatInfo", alternate = {"ChatInfo"}) + @Expose + @Nullable + public ChatInfo chatInfo; + + /** + * The Is Entry Exit Announced. + * + */ + @SerializedName(value = "isEntryExitAnnounced", alternate = {"IsEntryExitAnnounced"}) + @Expose + @Nullable + public Boolean isEntryExitAnnounced; + + /** + * The Join Information. + * + */ + @SerializedName(value = "joinInformation", alternate = {"JoinInformation"}) + @Expose + @Nullable + public ItemBody joinInformation; + + /** + * The Join Meeting Id Settings. + * + */ + @SerializedName(value = "joinMeetingIdSettings", alternate = {"JoinMeetingIdSettings"}) + @Expose + @Nullable + public JoinMeetingIdSettings joinMeetingIdSettings; + + /** + * The Join Web Url. + * + */ + @SerializedName(value = "joinWebUrl", alternate = {"JoinWebUrl"}) + @Expose + @Nullable + public String joinWebUrl; + + /** + * The Lobby Bypass Settings. + * + */ + @SerializedName(value = "lobbyBypassSettings", alternate = {"LobbyBypassSettings"}) + @Expose + @Nullable + public LobbyBypassSettings lobbyBypassSettings; + + /** + * The Record Automatically. + * + */ + @SerializedName(value = "recordAutomatically", alternate = {"RecordAutomatically"}) + @Expose + @Nullable + public Boolean recordAutomatically; + + /** + * The Share Meeting Chat History Default. + * + */ + @SerializedName(value = "shareMeetingChatHistoryDefault", alternate = {"ShareMeetingChatHistoryDefault"}) + @Expose + @Nullable + public MeetingChatHistoryDefaultMode shareMeetingChatHistoryDefault; + + /** + * The Subject. + * + */ + @SerializedName(value = "subject", alternate = {"Subject"}) + @Expose + @Nullable + public String subject; + + /** + * The Video Teleconference Id. + * + */ + @SerializedName(value = "videoTeleconferenceId", alternate = {"VideoTeleconferenceId"}) + @Expose + @Nullable + public String videoTeleconferenceId; + + /** + * The Watermark Protection. + * + */ + @SerializedName(value = "watermarkProtection", alternate = {"WatermarkProtection"}) + @Expose + @Nullable + public WatermarkProtectionValues watermarkProtection; + + /** + * The Attendance Reports. + * + */ + @SerializedName(value = "attendanceReports", alternate = {"AttendanceReports"}) + @Expose + @Nullable + public com.microsoft.graph.requests.MeetingAttendanceReportCollectionPage attendanceReports; + + + /** + * 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("attendanceReports")) { + attendanceReports = serializer.deserializeObject(json.get("attendanceReports"), com.microsoft.graph.requests.MeetingAttendanceReportCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/RetentionLabelSettings.java b/src/main/java/com/microsoft/graph/models/RetentionLabelSettings.java new file mode 100644 index 00000000000..bea6436d873 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/RetentionLabelSettings.java @@ -0,0 +1,105 @@ +// 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.security.models.BehaviorDuringRetentionPeriod; + + +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 Retention Label Settings. + */ +public class RetentionLabelSettings 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 Behavior During Retention Period. + * Describes the item behavior during retention period. Possible values are: doNotRetain, retain, retainAsRecord, retainAsRegulatoryRecord, unknownFutureValue. Read-only. + */ + @SerializedName(value = "behaviorDuringRetentionPeriod", alternate = {"BehaviorDuringRetentionPeriod"}) + @Expose + @Nullable + public BehaviorDuringRetentionPeriod behaviorDuringRetentionPeriod; + + /** + * The Is Content Update Allowed. + * Specifies whether updates to document content are allowed. Read-only. + */ + @SerializedName(value = "isContentUpdateAllowed", alternate = {"IsContentUpdateAllowed"}) + @Expose + @Nullable + public Boolean isContentUpdateAllowed; + + /** + * The Is Delete Allowed. + * Specifies whether the document deletion is allowed. Read-only. + */ + @SerializedName(value = "isDeleteAllowed", alternate = {"IsDeleteAllowed"}) + @Expose + @Nullable + public Boolean isDeleteAllowed; + + /** + * The Is Label Update Allowed. + * Specifies whether you're allowed to change the retention label on the document. Read-only. + */ + @SerializedName(value = "isLabelUpdateAllowed", alternate = {"IsLabelUpdateAllowed"}) + @Expose + @Nullable + public Boolean isLabelUpdateAllowed; + + /** + * The Is Metadata Update Allowed. + * Specifies whether updates to the item metadata (for example, the Title field) are blocked. Read-only. + */ + @SerializedName(value = "isMetadataUpdateAllowed", alternate = {"IsMetadataUpdateAllowed"}) + @Expose + @Nullable + public Boolean isMetadataUpdateAllowed; + + /** + * The Is Record Locked. + * Specifies whether the item is locked. Read-write. + */ + @SerializedName(value = "isRecordLocked", alternate = {"IsRecordLocked"}) + @Expose + @Nullable + public Boolean isRecordLocked; + + + /** + * 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/SolutionsRoot.java b/src/main/java/com/microsoft/graph/models/SolutionsRoot.java index 472405abe57..d8e5763bc6b 100644 --- a/src/main/java/com/microsoft/graph/models/SolutionsRoot.java +++ b/src/main/java/com/microsoft/graph/models/SolutionsRoot.java @@ -9,6 +9,7 @@ import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.models.VirtualEventsRoot; import com.microsoft.graph.requests.BookingBusinessCollectionPage; import com.microsoft.graph.requests.BookingCurrencyCollectionPage; @@ -58,6 +59,15 @@ public final AdditionalDataManager additionalDataManager() { @Nullable public com.microsoft.graph.requests.BookingCurrencyCollectionPage bookingCurrencies; + /** + * The Virtual Events. + * + */ + @SerializedName(value = "virtualEvents", alternate = {"VirtualEvents"}) + @Expose + @Nullable + public VirtualEventsRoot virtualEvents; + /** * Sets the raw JSON object diff --git a/src/main/java/com/microsoft/graph/models/VirtualEvent.java b/src/main/java/com/microsoft/graph/models/VirtualEvent.java new file mode 100644 index 00000000000..94a70904cd4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/VirtualEvent.java @@ -0,0 +1,111 @@ +// 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.CommunicationsIdentitySet; +import com.microsoft.graph.models.ItemBody; +import com.microsoft.graph.models.DateTimeTimeZone; +import com.microsoft.graph.models.VirtualEventStatus; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.VirtualEventSessionCollectionPage; + + +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 Virtual Event. + */ +public class VirtualEvent extends Entity implements IJsonBackedObject { + + + /** + * The Created By. + * + */ + @SerializedName(value = "createdBy", alternate = {"CreatedBy"}) + @Expose + @Nullable + public CommunicationsIdentitySet createdBy; + + /** + * The Description. + * + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public ItemBody description; + + /** + * The Display Name. + * + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The End Date Time. + * + */ + @SerializedName(value = "endDateTime", alternate = {"EndDateTime"}) + @Expose + @Nullable + public DateTimeTimeZone endDateTime; + + /** + * The Start Date Time. + * + */ + @SerializedName(value = "startDateTime", alternate = {"StartDateTime"}) + @Expose + @Nullable + public DateTimeTimeZone startDateTime; + + /** + * The Status. + * + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public VirtualEventStatus status; + + /** + * The Sessions. + * + */ + @SerializedName(value = "sessions", alternate = {"Sessions"}) + @Expose + @Nullable + public com.microsoft.graph.requests.VirtualEventSessionCollectionPage sessions; + + + /** + * 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("sessions")) { + sessions = serializer.deserializeObject(json.get("sessions"), com.microsoft.graph.requests.VirtualEventSessionCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/VirtualEventAttendeeRegistrationStatus.java b/src/main/java/com/microsoft/graph/models/VirtualEventAttendeeRegistrationStatus.java new file mode 100644 index 00000000000..1247cef63a2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/VirtualEventAttendeeRegistrationStatus.java @@ -0,0 +1,42 @@ +// 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 Virtual Event Attendee Registration Status. +*/ +public enum VirtualEventAttendeeRegistrationStatus +{ + /** + * registered + */ + REGISTERED, + /** + * canceled + */ + CANCELED, + /** + * waitlisted + */ + WAITLISTED, + /** + * pending Approval + */ + PENDING_APPROVAL, + /** + * rejected By Organizer + */ + REJECTED_BY_ORGANIZER, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For VirtualEventAttendeeRegistrationStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/VirtualEventRegistration.java b/src/main/java/com/microsoft/graph/models/VirtualEventRegistration.java new file mode 100644 index 00000000000..eede73eca31 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/VirtualEventRegistration.java @@ -0,0 +1,113 @@ +// 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.VirtualEventRegistrationQuestionAnswer; +import com.microsoft.graph.models.VirtualEventAttendeeRegistrationStatus; +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 Virtual Event Registration. + */ +public class VirtualEventRegistration extends Entity implements IJsonBackedObject { + + + /** + * The Cancelation Date Time. + * + */ + @SerializedName(value = "cancelationDateTime", alternate = {"CancelationDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime cancelationDateTime; + + /** + * The Email. + * + */ + @SerializedName(value = "email", alternate = {"Email"}) + @Expose + @Nullable + public String email; + + /** + * The First Name. + * + */ + @SerializedName(value = "firstName", alternate = {"FirstName"}) + @Expose + @Nullable + public String firstName; + + /** + * The Last Name. + * + */ + @SerializedName(value = "lastName", alternate = {"LastName"}) + @Expose + @Nullable + public String lastName; + + /** + * The Registration Date Time. + * + */ + @SerializedName(value = "registrationDateTime", alternate = {"RegistrationDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime registrationDateTime; + + /** + * The Registration Question Answers. + * + */ + @SerializedName(value = "registrationQuestionAnswers", alternate = {"RegistrationQuestionAnswers"}) + @Expose + @Nullable + public java.util.List registrationQuestionAnswers; + + /** + * The Status. + * + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public VirtualEventAttendeeRegistrationStatus status; + + /** + * The User Id. + * + */ + @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/VirtualEventRegistrationQuestionAnswer.java b/src/main/java/com/microsoft/graph/models/VirtualEventRegistrationQuestionAnswer.java new file mode 100644 index 00000000000..11538f2429f --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/VirtualEventRegistrationQuestionAnswer.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.http.BaseCollectionPage; + + +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 Virtual Event Registration Question Answer. + */ +public class VirtualEventRegistrationQuestionAnswer 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 Boolean Value. + * + */ + @SerializedName(value = "booleanValue", alternate = {"BooleanValue"}) + @Expose + @Nullable + public Boolean booleanValue; + + /** + * The Display Name. + * + */ + @SerializedName(value = "displayName", alternate = {"DisplayName"}) + @Expose + @Nullable + public String displayName; + + /** + * The Multi Choice Values. + * + */ + @SerializedName(value = "multiChoiceValues", alternate = {"MultiChoiceValues"}) + @Expose + @Nullable + public java.util.List multiChoiceValues; + + /** + * The Question Id. + * + */ + @SerializedName(value = "questionId", alternate = {"QuestionId"}) + @Expose + @Nullable + public String questionId; + + /** + * The Value. + * + */ + @SerializedName(value = "value", alternate = {"Value"}) + @Expose + @Nullable + public String value; + + + /** + * 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/VirtualEventSession.java b/src/main/java/com/microsoft/graph/models/VirtualEventSession.java new file mode 100644 index 00000000000..24dbd1efea9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/VirtualEventSession.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.DateTimeTimeZone; +import com.microsoft.graph.models.OnlineMeetingBase; + + +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 Virtual Event Session. + */ +public class VirtualEventSession extends OnlineMeetingBase implements IJsonBackedObject { + + + /** + * The End Date Time. + * + */ + @SerializedName(value = "endDateTime", alternate = {"EndDateTime"}) + @Expose + @Nullable + public DateTimeTimeZone endDateTime; + + /** + * The Start Date Time. + * + */ + @SerializedName(value = "startDateTime", alternate = {"StartDateTime"}) + @Expose + @Nullable + public DateTimeTimeZone startDateTime; + + + /** + * 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/VirtualEventStatus.java b/src/main/java/com/microsoft/graph/models/VirtualEventStatus.java new file mode 100644 index 00000000000..589efeb8c7a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/VirtualEventStatus.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 Virtual Event Status. +*/ +public enum VirtualEventStatus +{ + /** + * draft + */ + DRAFT, + /** + * published + */ + PUBLISHED, + /** + * canceled + */ + CANCELED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For VirtualEventStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/VirtualEventWebinar.java b/src/main/java/com/microsoft/graph/models/VirtualEventWebinar.java new file mode 100644 index 00000000000..8acb81c5b7f --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/VirtualEventWebinar.java @@ -0,0 +1,73 @@ +// 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.MeetingAudience; +import com.microsoft.graph.models.CommunicationsUserIdentity; +import com.microsoft.graph.models.VirtualEvent; +import com.microsoft.graph.requests.VirtualEventRegistrationCollectionPage; + + +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 Virtual Event Webinar. + */ +public class VirtualEventWebinar extends VirtualEvent implements IJsonBackedObject { + + + /** + * The Audience. + * + */ + @SerializedName(value = "audience", alternate = {"Audience"}) + @Expose + @Nullable + public MeetingAudience audience; + + /** + * The Co Organizers. + * + */ + @SerializedName(value = "coOrganizers", alternate = {"CoOrganizers"}) + @Expose + @Nullable + public java.util.List coOrganizers; + + /** + * The Registrations. + * + */ + @SerializedName(value = "registrations", alternate = {"Registrations"}) + @Expose + @Nullable + public com.microsoft.graph.requests.VirtualEventRegistrationCollectionPage registrations; + + + /** + * 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("registrations")) { + registrations = serializer.deserializeObject(json.get("registrations"), com.microsoft.graph.requests.VirtualEventRegistrationCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/VirtualEventWebinarGetByUserIdAndRoleParameterSet.java b/src/main/java/com/microsoft/graph/models/VirtualEventWebinarGetByUserIdAndRoleParameterSet.java new file mode 100644 index 00000000000..ee0e8226309 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/VirtualEventWebinarGetByUserIdAndRoleParameterSet.java @@ -0,0 +1,125 @@ +// 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.VirtualEventWebinar; +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 Virtual Event Webinar Get By User Id And Role Parameter Set. + */ +public class VirtualEventWebinarGetByUserIdAndRoleParameterSet { + /** + * The user Id. + * + */ + @SerializedName(value = "userId", alternate = {"UserId"}) + @Expose + @Nullable + public String userId; + + /** + * The role. + * + */ + @SerializedName(value = "role", alternate = {"Role"}) + @Expose + @Nullable + public String role; + + + /** + * Instiaciates a new VirtualEventWebinarGetByUserIdAndRoleParameterSet + */ + public VirtualEventWebinarGetByUserIdAndRoleParameterSet() {} + /** + * Instiaciates a new VirtualEventWebinarGetByUserIdAndRoleParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected VirtualEventWebinarGetByUserIdAndRoleParameterSet(@Nonnull final VirtualEventWebinarGetByUserIdAndRoleParameterSetBuilder builder) { + this.userId = builder.userId; + this.role = builder.role; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static VirtualEventWebinarGetByUserIdAndRoleParameterSetBuilder newBuilder() { + return new VirtualEventWebinarGetByUserIdAndRoleParameterSetBuilder(); + } + /** + * Fluent builder for the VirtualEventWebinarGetByUserIdAndRoleParameterSet + */ + public static final class VirtualEventWebinarGetByUserIdAndRoleParameterSetBuilder { + /** + * The userId parameter value + */ + @Nullable + protected String userId; + /** + * Sets the UserId + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public VirtualEventWebinarGetByUserIdAndRoleParameterSetBuilder withUserId(@Nullable final String val) { + this.userId = val; + return this; + } + /** + * The role parameter value + */ + @Nullable + protected String role; + /** + * Sets the Role + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public VirtualEventWebinarGetByUserIdAndRoleParameterSetBuilder withRole(@Nullable final String val) { + this.role = val; + return this; + } + /** + * Instanciates a new VirtualEventWebinarGetByUserIdAndRoleParameterSetBuilder + */ + @Nullable + protected VirtualEventWebinarGetByUserIdAndRoleParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public VirtualEventWebinarGetByUserIdAndRoleParameterSet build() { + return new VirtualEventWebinarGetByUserIdAndRoleParameterSet(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<>(); + if(this.userId != null) { + result.add(new com.microsoft.graph.options.FunctionOption("userId", userId)); + } + if(this.role != null) { + result.add(new com.microsoft.graph.options.FunctionOption("role", role)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/VirtualEventWebinarGetByUserRoleParameterSet.java b/src/main/java/com/microsoft/graph/models/VirtualEventWebinarGetByUserRoleParameterSet.java new file mode 100644 index 00000000000..04d27ea1601 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/VirtualEventWebinarGetByUserRoleParameterSet.java @@ -0,0 +1,97 @@ +// 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.VirtualEventWebinar; +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 Virtual Event Webinar Get By User Role Parameter Set. + */ +public class VirtualEventWebinarGetByUserRoleParameterSet { + /** + * The role. + * + */ + @SerializedName(value = "role", alternate = {"Role"}) + @Expose + @Nullable + public String role; + + + /** + * Instiaciates a new VirtualEventWebinarGetByUserRoleParameterSet + */ + public VirtualEventWebinarGetByUserRoleParameterSet() {} + /** + * Instiaciates a new VirtualEventWebinarGetByUserRoleParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected VirtualEventWebinarGetByUserRoleParameterSet(@Nonnull final VirtualEventWebinarGetByUserRoleParameterSetBuilder builder) { + this.role = builder.role; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static VirtualEventWebinarGetByUserRoleParameterSetBuilder newBuilder() { + return new VirtualEventWebinarGetByUserRoleParameterSetBuilder(); + } + /** + * Fluent builder for the VirtualEventWebinarGetByUserRoleParameterSet + */ + public static final class VirtualEventWebinarGetByUserRoleParameterSetBuilder { + /** + * The role parameter value + */ + @Nullable + protected String role; + /** + * Sets the Role + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public VirtualEventWebinarGetByUserRoleParameterSetBuilder withRole(@Nullable final String val) { + this.role = val; + return this; + } + /** + * Instanciates a new VirtualEventWebinarGetByUserRoleParameterSetBuilder + */ + @Nullable + protected VirtualEventWebinarGetByUserRoleParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public VirtualEventWebinarGetByUserRoleParameterSet build() { + return new VirtualEventWebinarGetByUserRoleParameterSet(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<>(); + if(this.role != null) { + result.add(new com.microsoft.graph.options.FunctionOption("role", role)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/VirtualEventsRoot.java b/src/main/java/com/microsoft/graph/models/VirtualEventsRoot.java new file mode 100644 index 00000000000..523147eec9a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/VirtualEventsRoot.java @@ -0,0 +1,67 @@ +// 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.Entity; +import com.microsoft.graph.requests.VirtualEventCollectionPage; +import com.microsoft.graph.requests.VirtualEventWebinarCollectionPage; + + +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 Virtual Events Root. + */ +public class VirtualEventsRoot extends Entity implements IJsonBackedObject { + + + /** + * The Events. + * + */ + @SerializedName(value = "events", alternate = {"Events"}) + @Expose + @Nullable + public com.microsoft.graph.requests.VirtualEventCollectionPage events; + + /** + * The Webinars. + * + */ + @SerializedName(value = "webinars", alternate = {"Webinars"}) + @Expose + @Nullable + public com.microsoft.graph.requests.VirtualEventWebinarCollectionPage webinars; + + + /** + * 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("events")) { + events = serializer.deserializeObject(json.get("events"), com.microsoft.graph.requests.VirtualEventCollectionPage.class); + } + + if (json.has("webinars")) { + webinars = serializer.deserializeObject(json.get("webinars"), com.microsoft.graph.requests.VirtualEventWebinarCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/requests/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/DriveItemRequestBuilder.java index fbe6d73f9be..9db187f7dc8 100644 --- a/src/main/java/com/microsoft/graph/requests/DriveItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/DriveItemRequestBuilder.java @@ -183,6 +183,16 @@ public com.microsoft.graph.requests.PermissionCollectionRequestBuilder permissio public com.microsoft.graph.requests.PermissionRequestBuilder permissions(@Nonnull final String id) { return new com.microsoft.graph.requests.PermissionRequestBuilder(getRequestUrlWithAdditionalSegment("permissions") + "/" + id, getClient(), null); } + + /** + * Gets the request builder for ItemRetentionLabel + * + * @return the ItemRetentionLabelRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.ItemRetentionLabelRequestBuilder retentionLabel() { + return new com.microsoft.graph.requests.ItemRetentionLabelRequestBuilder(getRequestUrlWithAdditionalSegment("retentionLabel"), getClient(), null); + } /** * Gets a request builder for the Subscription collection * diff --git a/src/main/java/com/microsoft/graph/requests/ItemRetentionLabelRequest.java b/src/main/java/com/microsoft/graph/requests/ItemRetentionLabelRequest.java new file mode 100644 index 00000000000..61c1bac44fa --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ItemRetentionLabelRequest.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.ItemRetentionLabel; +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 Item Retention Label Request. + */ +public class ItemRetentionLabelRequest extends BaseRequest { + + /** + * The request for the ItemRetentionLabel + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemRetentionLabelRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ItemRetentionLabel.class); + } + + /** + * Gets the ItemRetentionLabel from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the ItemRetentionLabel from the service + * + * @return the ItemRetentionLabel from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ItemRetentionLabel 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 ItemRetentionLabel delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this ItemRetentionLabel with a source + * + * @param sourceItemRetentionLabel the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final ItemRetentionLabel sourceItemRetentionLabel) { + return sendAsync(HttpMethod.PATCH, sourceItemRetentionLabel); + } + + /** + * Patches this ItemRetentionLabel with a source + * + * @param sourceItemRetentionLabel the source object with updates + * @return the updated ItemRetentionLabel + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ItemRetentionLabel patch(@Nonnull final ItemRetentionLabel sourceItemRetentionLabel) throws ClientException { + return send(HttpMethod.PATCH, sourceItemRetentionLabel); + } + + /** + * Creates a ItemRetentionLabel with a new object + * + * @param newItemRetentionLabel the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final ItemRetentionLabel newItemRetentionLabel) { + return sendAsync(HttpMethod.POST, newItemRetentionLabel); + } + + /** + * Creates a ItemRetentionLabel with a new object + * + * @param newItemRetentionLabel the new object to create + * @return the created ItemRetentionLabel + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ItemRetentionLabel post(@Nonnull final ItemRetentionLabel newItemRetentionLabel) throws ClientException { + return send(HttpMethod.POST, newItemRetentionLabel); + } + + /** + * Creates a ItemRetentionLabel with a new object + * + * @param newItemRetentionLabel the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final ItemRetentionLabel newItemRetentionLabel) { + return sendAsync(HttpMethod.PUT, newItemRetentionLabel); + } + + /** + * Creates a ItemRetentionLabel with a new object + * + * @param newItemRetentionLabel the object to create/update + * @return the created ItemRetentionLabel + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ItemRetentionLabel put(@Nonnull final ItemRetentionLabel newItemRetentionLabel) throws ClientException { + return send(HttpMethod.PUT, newItemRetentionLabel); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ItemRetentionLabelRequest 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 ItemRetentionLabelRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/ItemRetentionLabelRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ItemRetentionLabelRequestBuilder.java new file mode 100644 index 00000000000..089d4bbc6e3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ItemRetentionLabelRequestBuilder.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.ItemRetentionLabel; +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 Item Retention Label Request Builder. + */ +public class ItemRetentionLabelRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the ItemRetentionLabel + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemRetentionLabelRequestBuilder(@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 ItemRetentionLabelRequest instance + */ + @Nonnull + public ItemRetentionLabelRequest 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 ItemRetentionLabelRequest instance + */ + @Nonnull + public ItemRetentionLabelRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.ItemRetentionLabelRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/MeetingAttendanceReportCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/MeetingAttendanceReportCollectionRequest.java index c189505bff4..bf0f947b916 100644 --- a/src/main/java/com/microsoft/graph/requests/MeetingAttendanceReportCollectionRequest.java +++ b/src/main/java/com/microsoft/graph/requests/MeetingAttendanceReportCollectionRequest.java @@ -7,7 +7,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; -import com.microsoft.graph.models.OnlineMeeting; +import com.microsoft.graph.models.OnlineMeetingBase; import com.microsoft.graph.models.MeetingAttendanceReport; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/MeetingAttendanceReportCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/MeetingAttendanceReportCollectionRequestBuilder.java index bc849839bdd..92e7ecb5840 100644 --- a/src/main/java/com/microsoft/graph/requests/MeetingAttendanceReportCollectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/MeetingAttendanceReportCollectionRequestBuilder.java @@ -7,7 +7,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; -import com.microsoft.graph.models.OnlineMeeting; +import com.microsoft.graph.models.OnlineMeetingBase; import com.microsoft.graph.models.MeetingAttendanceReport; import java.util.Arrays; import java.util.EnumSet; @@ -28,7 +28,7 @@ public class MeetingAttendanceReportCollectionRequestBuilder extends BaseCollectionRequestBuilder { /** - * The request builder for this collection of OnlineMeeting + * The request builder for this collection of OnlineMeetingBase * * @param requestUrl the request URL * @param client the service client diff --git a/src/main/java/com/microsoft/graph/requests/OnlineMeetingBaseRequest.java b/src/main/java/com/microsoft/graph/requests/OnlineMeetingBaseRequest.java new file mode 100644 index 00000000000..f575dfc1d8f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/OnlineMeetingBaseRequest.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.OnlineMeetingBase; +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 Online Meeting Base Request. + */ +public class OnlineMeetingBaseRequest extends BaseRequest { + + /** + * The request for the OnlineMeetingBase + * + * @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 OnlineMeetingBaseRequest(@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 OnlineMeetingBase + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public OnlineMeetingBaseRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, OnlineMeetingBase.class); + } + + /** + * Gets the OnlineMeetingBase from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the OnlineMeetingBase from the service + * + * @return the OnlineMeetingBase from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public OnlineMeetingBase 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 OnlineMeetingBase delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this OnlineMeetingBase with a source + * + * @param sourceOnlineMeetingBase the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final OnlineMeetingBase sourceOnlineMeetingBase) { + return sendAsync(HttpMethod.PATCH, sourceOnlineMeetingBase); + } + + /** + * Patches this OnlineMeetingBase with a source + * + * @param sourceOnlineMeetingBase the source object with updates + * @return the updated OnlineMeetingBase + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public OnlineMeetingBase patch(@Nonnull final OnlineMeetingBase sourceOnlineMeetingBase) throws ClientException { + return send(HttpMethod.PATCH, sourceOnlineMeetingBase); + } + + /** + * Creates a OnlineMeetingBase with a new object + * + * @param newOnlineMeetingBase the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final OnlineMeetingBase newOnlineMeetingBase) { + return sendAsync(HttpMethod.POST, newOnlineMeetingBase); + } + + /** + * Creates a OnlineMeetingBase with a new object + * + * @param newOnlineMeetingBase the new object to create + * @return the created OnlineMeetingBase + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public OnlineMeetingBase post(@Nonnull final OnlineMeetingBase newOnlineMeetingBase) throws ClientException { + return send(HttpMethod.POST, newOnlineMeetingBase); + } + + /** + * Creates a OnlineMeetingBase with a new object + * + * @param newOnlineMeetingBase the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final OnlineMeetingBase newOnlineMeetingBase) { + return sendAsync(HttpMethod.PUT, newOnlineMeetingBase); + } + + /** + * Creates a OnlineMeetingBase with a new object + * + * @param newOnlineMeetingBase the object to create/update + * @return the created OnlineMeetingBase + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public OnlineMeetingBase put(@Nonnull final OnlineMeetingBase newOnlineMeetingBase) throws ClientException { + return send(HttpMethod.PUT, newOnlineMeetingBase); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public OnlineMeetingBaseRequest 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 OnlineMeetingBaseRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/OnlineMeetingBaseRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/OnlineMeetingBaseRequestBuilder.java new file mode 100644 index 00000000000..ca9237a5945 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/OnlineMeetingBaseRequestBuilder.java @@ -0,0 +1,79 @@ +// 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.OnlineMeetingBase; +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 Online Meeting Base Request Builder. + */ +public class OnlineMeetingBaseRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the OnlineMeetingBase + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public OnlineMeetingBaseRequestBuilder(@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 OnlineMeetingBaseRequest instance + */ + @Nonnull + public OnlineMeetingBaseRequest 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 OnlineMeetingBaseRequest instance + */ + @Nonnull + public OnlineMeetingBaseRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.OnlineMeetingBaseRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the MeetingAttendanceReport collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.MeetingAttendanceReportCollectionRequestBuilder attendanceReports() { + return new com.microsoft.graph.requests.MeetingAttendanceReportCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("attendanceReports"), getClient(), null); + } + + /** + * Gets a request builder for the MeetingAttendanceReport item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.MeetingAttendanceReportRequestBuilder attendanceReports(@Nonnull final String id) { + return new com.microsoft.graph.requests.MeetingAttendanceReportRequestBuilder(getRequestUrlWithAdditionalSegment("attendanceReports") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/SolutionsRootRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/SolutionsRootRequestBuilder.java index 893708340ab..cdc71e1b22d 100644 --- a/src/main/java/com/microsoft/graph/requests/SolutionsRootRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/SolutionsRootRequestBuilder.java @@ -96,4 +96,14 @@ public com.microsoft.graph.requests.BookingCurrencyCollectionRequestBuilder book public com.microsoft.graph.requests.BookingCurrencyRequestBuilder bookingCurrencies(@Nonnull final String id) { return new com.microsoft.graph.requests.BookingCurrencyRequestBuilder(getRequestUrlWithAdditionalSegment("bookingCurrencies") + "/" + id, getClient(), null); } + + /** + * Gets the request builder for VirtualEventsRoot + * + * @return the VirtualEventsRootRequestBuilder instance + */ + @Nonnull + public com.microsoft.graph.requests.VirtualEventsRootRequestBuilder virtualEvents() { + return new com.microsoft.graph.requests.VirtualEventsRootRequestBuilder(getRequestUrlWithAdditionalSegment("virtualEvents"), getClient(), null); + } } diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventCollectionPage.java b/src/main/java/com/microsoft/graph/requests/VirtualEventCollectionPage.java new file mode 100644 index 00000000000..54331bcbc3b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventCollectionPage.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.VirtualEvent; +import com.microsoft.graph.requests.VirtualEventCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.VirtualEventCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Collection Page. + */ +public class VirtualEventCollectionPage extends BaseCollectionPage { + + /** + * A collection page for VirtualEvent + * + * @param response the serialized VirtualEventCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public VirtualEventCollectionPage(@Nonnull final VirtualEventCollectionResponse response, @Nonnull final VirtualEventCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for VirtualEvent + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public VirtualEventCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final VirtualEventCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/VirtualEventCollectionRequest.java new file mode 100644 index 00000000000..28107054071 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventCollectionRequest.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.VirtualEventsRoot; +import com.microsoft.graph.models.VirtualEvent; +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.VirtualEventCollectionResponse; +import com.microsoft.graph.requests.VirtualEventCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Collection Request. + */ +public class VirtualEventCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of VirtualEvent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventCollectionResponse.class, VirtualEventCollectionPage.class, VirtualEventCollectionRequestBuilder.class); + } + + /** + * Creates a new VirtualEvent + * @param newVirtualEvent the VirtualEvent to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final VirtualEvent newVirtualEvent) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new VirtualEventRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newVirtualEvent); + } + + /** + * Creates a new VirtualEvent + * @param newVirtualEvent the VirtualEvent to create + * @return the newly created object + */ + @Nonnull + public VirtualEvent post(@Nonnull final VirtualEvent newVirtualEvent) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new VirtualEventRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newVirtualEvent); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public VirtualEventCollectionRequest 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 VirtualEventCollectionRequest 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 VirtualEventCollectionRequest 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 VirtualEventCollectionRequest 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 VirtualEventCollectionRequest 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 VirtualEventCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public VirtualEventCollectionRequest 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 VirtualEventCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public VirtualEventCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/VirtualEventCollectionRequestBuilder.java new file mode 100644 index 00000000000..c8efb59f0fb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventCollectionRequestBuilder.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.VirtualEventsRoot; +import com.microsoft.graph.models.VirtualEvent; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.VirtualEventCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventRequestBuilder; +import com.microsoft.graph.requests.VirtualEventCollectionRequest; +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 Virtual Event Collection Request Builder. + */ +public class VirtualEventCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of VirtualEventsRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventRequestBuilder.class, VirtualEventCollectionRequest.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/VirtualEventCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/VirtualEventCollectionResponse.java new file mode 100644 index 00000000000..f081c30b078 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventCollectionResponse.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.VirtualEvent; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Collection Response. + */ +public class VirtualEventCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationCollectionPage.java b/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationCollectionPage.java new file mode 100644 index 00000000000..2debdc88db8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationCollectionPage.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.VirtualEventRegistration; +import com.microsoft.graph.requests.VirtualEventRegistrationCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.VirtualEventRegistrationCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Registration Collection Page. + */ +public class VirtualEventRegistrationCollectionPage extends BaseCollectionPage { + + /** + * A collection page for VirtualEventRegistration + * + * @param response the serialized VirtualEventRegistrationCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public VirtualEventRegistrationCollectionPage(@Nonnull final VirtualEventRegistrationCollectionResponse response, @Nonnull final VirtualEventRegistrationCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for VirtualEventRegistration + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public VirtualEventRegistrationCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final VirtualEventRegistrationCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationCollectionRequest.java new file mode 100644 index 00000000000..2f4e0a57135 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationCollectionRequest.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.VirtualEventWebinar; +import com.microsoft.graph.models.VirtualEventRegistration; +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.VirtualEventRegistrationCollectionResponse; +import com.microsoft.graph.requests.VirtualEventRegistrationCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventRegistrationCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Registration Collection Request. + */ +public class VirtualEventRegistrationCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of VirtualEventRegistration + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventRegistrationCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventRegistrationCollectionResponse.class, VirtualEventRegistrationCollectionPage.class, VirtualEventRegistrationCollectionRequestBuilder.class); + } + + /** + * Creates a new VirtualEventRegistration + * @param newVirtualEventRegistration the VirtualEventRegistration to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final VirtualEventRegistration newVirtualEventRegistration) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new VirtualEventRegistrationRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newVirtualEventRegistration); + } + + /** + * Creates a new VirtualEventRegistration + * @param newVirtualEventRegistration the VirtualEventRegistration to create + * @return the newly created object + */ + @Nonnull + public VirtualEventRegistration post(@Nonnull final VirtualEventRegistration newVirtualEventRegistration) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new VirtualEventRegistrationRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newVirtualEventRegistration); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public VirtualEventRegistrationCollectionRequest 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 VirtualEventRegistrationCollectionRequest 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 VirtualEventRegistrationCollectionRequest 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 VirtualEventRegistrationCollectionRequest 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 VirtualEventRegistrationCollectionRequest 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 VirtualEventRegistrationCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public VirtualEventRegistrationCollectionRequest 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 VirtualEventRegistrationCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public VirtualEventRegistrationCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationCollectionRequestBuilder.java new file mode 100644 index 00000000000..e38be9fbac5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationCollectionRequestBuilder.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.VirtualEventWebinar; +import com.microsoft.graph.models.VirtualEventRegistration; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.VirtualEventRegistrationCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventRegistrationRequestBuilder; +import com.microsoft.graph.requests.VirtualEventRegistrationCollectionRequest; +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 Virtual Event Registration Collection Request Builder. + */ +public class VirtualEventRegistrationCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of VirtualEventWebinar + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventRegistrationCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventRegistrationRequestBuilder.class, VirtualEventRegistrationCollectionRequest.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/VirtualEventRegistrationCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationCollectionResponse.java new file mode 100644 index 00000000000..5d124e2aa41 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationCollectionResponse.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.VirtualEventRegistration; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Registration Collection Response. + */ +public class VirtualEventRegistrationCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationRequest.java b/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationRequest.java new file mode 100644 index 00000000000..a1065ce24ac --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationRequest.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.VirtualEventRegistration; +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 Virtual Event Registration Request. + */ +public class VirtualEventRegistrationRequest extends BaseRequest { + + /** + * The request for the VirtualEventRegistration + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventRegistrationRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventRegistration.class); + } + + /** + * Gets the VirtualEventRegistration from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the VirtualEventRegistration from the service + * + * @return the VirtualEventRegistration from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventRegistration 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 VirtualEventRegistration delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this VirtualEventRegistration with a source + * + * @param sourceVirtualEventRegistration the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final VirtualEventRegistration sourceVirtualEventRegistration) { + return sendAsync(HttpMethod.PATCH, sourceVirtualEventRegistration); + } + + /** + * Patches this VirtualEventRegistration with a source + * + * @param sourceVirtualEventRegistration the source object with updates + * @return the updated VirtualEventRegistration + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventRegistration patch(@Nonnull final VirtualEventRegistration sourceVirtualEventRegistration) throws ClientException { + return send(HttpMethod.PATCH, sourceVirtualEventRegistration); + } + + /** + * Creates a VirtualEventRegistration with a new object + * + * @param newVirtualEventRegistration the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final VirtualEventRegistration newVirtualEventRegistration) { + return sendAsync(HttpMethod.POST, newVirtualEventRegistration); + } + + /** + * Creates a VirtualEventRegistration with a new object + * + * @param newVirtualEventRegistration the new object to create + * @return the created VirtualEventRegistration + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventRegistration post(@Nonnull final VirtualEventRegistration newVirtualEventRegistration) throws ClientException { + return send(HttpMethod.POST, newVirtualEventRegistration); + } + + /** + * Creates a VirtualEventRegistration with a new object + * + * @param newVirtualEventRegistration the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final VirtualEventRegistration newVirtualEventRegistration) { + return sendAsync(HttpMethod.PUT, newVirtualEventRegistration); + } + + /** + * Creates a VirtualEventRegistration with a new object + * + * @param newVirtualEventRegistration the object to create/update + * @return the created VirtualEventRegistration + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventRegistration put(@Nonnull final VirtualEventRegistration newVirtualEventRegistration) throws ClientException { + return send(HttpMethod.PUT, newVirtualEventRegistration); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public VirtualEventRegistrationRequest 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 VirtualEventRegistrationRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationRequestBuilder.java new file mode 100644 index 00000000000..99b9a44dbb4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventRegistrationRequestBuilder.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.VirtualEventRegistration; +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 Virtual Event Registration Request Builder. + */ +public class VirtualEventRegistrationRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the VirtualEventRegistration + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventRegistrationRequestBuilder(@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 VirtualEventRegistrationRequest instance + */ + @Nonnull + public VirtualEventRegistrationRequest 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 VirtualEventRegistrationRequest instance + */ + @Nonnull + public VirtualEventRegistrationRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.VirtualEventRegistrationRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventRequest.java b/src/main/java/com/microsoft/graph/requests/VirtualEventRequest.java new file mode 100644 index 00000000000..5b2589fecda --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventRequest.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.VirtualEvent; +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 Virtual Event Request. + */ +public class VirtualEventRequest extends BaseRequest { + + /** + * The request for the VirtualEvent + * + * @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 VirtualEventRequest(@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 VirtualEvent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEvent.class); + } + + /** + * Gets the VirtualEvent from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the VirtualEvent from the service + * + * @return the VirtualEvent from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEvent 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 VirtualEvent delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this VirtualEvent with a source + * + * @param sourceVirtualEvent the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final VirtualEvent sourceVirtualEvent) { + return sendAsync(HttpMethod.PATCH, sourceVirtualEvent); + } + + /** + * Patches this VirtualEvent with a source + * + * @param sourceVirtualEvent the source object with updates + * @return the updated VirtualEvent + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEvent patch(@Nonnull final VirtualEvent sourceVirtualEvent) throws ClientException { + return send(HttpMethod.PATCH, sourceVirtualEvent); + } + + /** + * Creates a VirtualEvent with a new object + * + * @param newVirtualEvent the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final VirtualEvent newVirtualEvent) { + return sendAsync(HttpMethod.POST, newVirtualEvent); + } + + /** + * Creates a VirtualEvent with a new object + * + * @param newVirtualEvent the new object to create + * @return the created VirtualEvent + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEvent post(@Nonnull final VirtualEvent newVirtualEvent) throws ClientException { + return send(HttpMethod.POST, newVirtualEvent); + } + + /** + * Creates a VirtualEvent with a new object + * + * @param newVirtualEvent the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final VirtualEvent newVirtualEvent) { + return sendAsync(HttpMethod.PUT, newVirtualEvent); + } + + /** + * Creates a VirtualEvent with a new object + * + * @param newVirtualEvent the object to create/update + * @return the created VirtualEvent + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEvent put(@Nonnull final VirtualEvent newVirtualEvent) throws ClientException { + return send(HttpMethod.PUT, newVirtualEvent); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public VirtualEventRequest 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 VirtualEventRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/VirtualEventRequestBuilder.java new file mode 100644 index 00000000000..3de1e26db39 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventRequestBuilder.java @@ -0,0 +1,79 @@ +// 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.VirtualEvent; +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 Virtual Event Request Builder. + */ +public class VirtualEventRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the VirtualEvent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventRequestBuilder(@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 VirtualEventRequest instance + */ + @Nonnull + public VirtualEventRequest 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 VirtualEventRequest instance + */ + @Nonnull + public VirtualEventRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.VirtualEventRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the VirtualEventSession collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.VirtualEventSessionCollectionRequestBuilder sessions() { + return new com.microsoft.graph.requests.VirtualEventSessionCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("sessions"), getClient(), null); + } + + /** + * Gets a request builder for the VirtualEventSession item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.VirtualEventSessionRequestBuilder sessions(@Nonnull final String id) { + return new com.microsoft.graph.requests.VirtualEventSessionRequestBuilder(getRequestUrlWithAdditionalSegment("sessions") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventSessionCollectionPage.java b/src/main/java/com/microsoft/graph/requests/VirtualEventSessionCollectionPage.java new file mode 100644 index 00000000000..d6cc182031d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventSessionCollectionPage.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.VirtualEventSession; +import com.microsoft.graph.requests.VirtualEventSessionCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.VirtualEventSessionCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Session Collection Page. + */ +public class VirtualEventSessionCollectionPage extends BaseCollectionPage { + + /** + * A collection page for VirtualEventSession + * + * @param response the serialized VirtualEventSessionCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public VirtualEventSessionCollectionPage(@Nonnull final VirtualEventSessionCollectionResponse response, @Nonnull final VirtualEventSessionCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for VirtualEventSession + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public VirtualEventSessionCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final VirtualEventSessionCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventSessionCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/VirtualEventSessionCollectionRequest.java new file mode 100644 index 00000000000..3329eed7dc7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventSessionCollectionRequest.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.VirtualEvent; +import com.microsoft.graph.models.VirtualEventSession; +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.VirtualEventSessionCollectionResponse; +import com.microsoft.graph.requests.VirtualEventSessionCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventSessionCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Session Collection Request. + */ +public class VirtualEventSessionCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of VirtualEventSession + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventSessionCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventSessionCollectionResponse.class, VirtualEventSessionCollectionPage.class, VirtualEventSessionCollectionRequestBuilder.class); + } + + /** + * Creates a new VirtualEventSession + * @param newVirtualEventSession the VirtualEventSession to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final VirtualEventSession newVirtualEventSession) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new VirtualEventSessionRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newVirtualEventSession); + } + + /** + * Creates a new VirtualEventSession + * @param newVirtualEventSession the VirtualEventSession to create + * @return the newly created object + */ + @Nonnull + public VirtualEventSession post(@Nonnull final VirtualEventSession newVirtualEventSession) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new VirtualEventSessionRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newVirtualEventSession); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public VirtualEventSessionCollectionRequest 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 VirtualEventSessionCollectionRequest 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 VirtualEventSessionCollectionRequest 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 VirtualEventSessionCollectionRequest 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 VirtualEventSessionCollectionRequest 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 VirtualEventSessionCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public VirtualEventSessionCollectionRequest 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 VirtualEventSessionCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public VirtualEventSessionCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventSessionCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/VirtualEventSessionCollectionRequestBuilder.java new file mode 100644 index 00000000000..49beac5087b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventSessionCollectionRequestBuilder.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.VirtualEvent; +import com.microsoft.graph.models.VirtualEventSession; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.VirtualEventSessionCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventSessionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventSessionCollectionRequest; +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 Virtual Event Session Collection Request Builder. + */ +public class VirtualEventSessionCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of VirtualEvent + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventSessionCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventSessionRequestBuilder.class, VirtualEventSessionCollectionRequest.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/VirtualEventSessionCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/VirtualEventSessionCollectionResponse.java new file mode 100644 index 00000000000..06c9f255076 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventSessionCollectionResponse.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.VirtualEventSession; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Session Collection Response. + */ +public class VirtualEventSessionCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventSessionRequest.java b/src/main/java/com/microsoft/graph/requests/VirtualEventSessionRequest.java new file mode 100644 index 00000000000..202703c7e28 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventSessionRequest.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.VirtualEventSession; +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 Virtual Event Session Request. + */ +public class VirtualEventSessionRequest extends BaseRequest { + + /** + * The request for the VirtualEventSession + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventSessionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventSession.class); + } + + /** + * Gets the VirtualEventSession from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the VirtualEventSession from the service + * + * @return the VirtualEventSession from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventSession 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 VirtualEventSession delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this VirtualEventSession with a source + * + * @param sourceVirtualEventSession the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final VirtualEventSession sourceVirtualEventSession) { + return sendAsync(HttpMethod.PATCH, sourceVirtualEventSession); + } + + /** + * Patches this VirtualEventSession with a source + * + * @param sourceVirtualEventSession the source object with updates + * @return the updated VirtualEventSession + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventSession patch(@Nonnull final VirtualEventSession sourceVirtualEventSession) throws ClientException { + return send(HttpMethod.PATCH, sourceVirtualEventSession); + } + + /** + * Creates a VirtualEventSession with a new object + * + * @param newVirtualEventSession the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final VirtualEventSession newVirtualEventSession) { + return sendAsync(HttpMethod.POST, newVirtualEventSession); + } + + /** + * Creates a VirtualEventSession with a new object + * + * @param newVirtualEventSession the new object to create + * @return the created VirtualEventSession + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventSession post(@Nonnull final VirtualEventSession newVirtualEventSession) throws ClientException { + return send(HttpMethod.POST, newVirtualEventSession); + } + + /** + * Creates a VirtualEventSession with a new object + * + * @param newVirtualEventSession the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final VirtualEventSession newVirtualEventSession) { + return sendAsync(HttpMethod.PUT, newVirtualEventSession); + } + + /** + * Creates a VirtualEventSession with a new object + * + * @param newVirtualEventSession the object to create/update + * @return the created VirtualEventSession + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventSession put(@Nonnull final VirtualEventSession newVirtualEventSession) throws ClientException { + return send(HttpMethod.PUT, newVirtualEventSession); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public VirtualEventSessionRequest 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 VirtualEventSessionRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventSessionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/VirtualEventSessionRequestBuilder.java new file mode 100644 index 00000000000..e85a24ee089 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventSessionRequestBuilder.java @@ -0,0 +1,79 @@ +// 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.VirtualEventSession; +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 Virtual Event Session Request Builder. + */ +public class VirtualEventSessionRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the VirtualEventSession + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventSessionRequestBuilder(@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 VirtualEventSessionRequest instance + */ + @Nonnull + public VirtualEventSessionRequest 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 VirtualEventSessionRequest instance + */ + @Nonnull + public VirtualEventSessionRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.VirtualEventSessionRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the MeetingAttendanceReport collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.MeetingAttendanceReportCollectionRequestBuilder attendanceReports() { + return new com.microsoft.graph.requests.MeetingAttendanceReportCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("attendanceReports"), getClient(), null); + } + + /** + * Gets a request builder for the MeetingAttendanceReport item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.MeetingAttendanceReportRequestBuilder attendanceReports(@Nonnull final String id) { + return new com.microsoft.graph.requests.MeetingAttendanceReportRequestBuilder(getRequestUrlWithAdditionalSegment("attendanceReports") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarCollectionPage.java b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarCollectionPage.java new file mode 100644 index 00000000000..9ed87d80b8a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarCollectionPage.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.VirtualEventWebinar; +import com.microsoft.graph.requests.VirtualEventWebinarCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.VirtualEventWebinarCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Webinar Collection Page. + */ +public class VirtualEventWebinarCollectionPage extends BaseCollectionPage { + + /** + * A collection page for VirtualEventWebinar + * + * @param response the serialized VirtualEventWebinarCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public VirtualEventWebinarCollectionPage(@Nonnull final VirtualEventWebinarCollectionResponse response, @Nonnull final VirtualEventWebinarCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for VirtualEventWebinar + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public VirtualEventWebinarCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final VirtualEventWebinarCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarCollectionRequest.java new file mode 100644 index 00000000000..5edd28ca79c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarCollectionRequest.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.VirtualEventsRoot; +import com.microsoft.graph.models.VirtualEventWebinar; +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.VirtualEventWebinarCollectionResponse; +import com.microsoft.graph.requests.VirtualEventWebinarCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventWebinarCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Webinar Collection Request. + */ +public class VirtualEventWebinarCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of VirtualEventWebinar + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventWebinarCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventWebinarCollectionResponse.class, VirtualEventWebinarCollectionPage.class, VirtualEventWebinarCollectionRequestBuilder.class); + } + + /** + * Creates a new VirtualEventWebinar + * @param newVirtualEventWebinar the VirtualEventWebinar to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final VirtualEventWebinar newVirtualEventWebinar) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new VirtualEventWebinarRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newVirtualEventWebinar); + } + + /** + * Creates a new VirtualEventWebinar + * @param newVirtualEventWebinar the VirtualEventWebinar to create + * @return the newly created object + */ + @Nonnull + public VirtualEventWebinar post(@Nonnull final VirtualEventWebinar newVirtualEventWebinar) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new VirtualEventWebinarRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newVirtualEventWebinar); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public VirtualEventWebinarCollectionRequest 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 VirtualEventWebinarCollectionRequest 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 VirtualEventWebinarCollectionRequest 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 VirtualEventWebinarCollectionRequest 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 VirtualEventWebinarCollectionRequest 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 VirtualEventWebinarCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public VirtualEventWebinarCollectionRequest 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 VirtualEventWebinarCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public VirtualEventWebinarCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarCollectionRequestBuilder.java new file mode 100644 index 00000000000..555a950bdca --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarCollectionRequestBuilder.java @@ -0,0 +1,75 @@ +// 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.VirtualEventsRoot; +import com.microsoft.graph.models.VirtualEventWebinar; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.VirtualEventWebinarCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventWebinarRequestBuilder; +import com.microsoft.graph.requests.VirtualEventWebinarCollectionRequest; +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserRoleCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +import com.microsoft.graph.models.VirtualEventWebinarGetByUserIdAndRoleParameterSet; +import com.microsoft.graph.models.VirtualEventWebinarGetByUserRoleParameterSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Webinar Collection Request Builder. + */ +public class VirtualEventWebinarCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of VirtualEventsRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventWebinarCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventWebinarRequestBuilder.class, VirtualEventWebinarCollectionRequest.class); + } + + + + /** + * Gets a builder to execute the method + * @return the request builder collection + * @param parameters the parameters for the service method + */ + @Nonnull + public VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder getByUserIdAndRole(@Nonnull final VirtualEventWebinarGetByUserIdAndRoleParameterSet parameters) { + return new VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getByUserIdAndRole"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder collection + * @param parameters the parameters for the service method + */ + @Nonnull + public VirtualEventWebinarGetByUserRoleCollectionRequestBuilder getByUserRole(@Nonnull final VirtualEventWebinarGetByUserRoleParameterSet parameters) { + return new VirtualEventWebinarGetByUserRoleCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getByUserRole"), getClient(), null, parameters); + } + + /** + * 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/VirtualEventWebinarCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarCollectionResponse.java new file mode 100644 index 00000000000..5194b0ea717 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarCollectionResponse.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.VirtualEventWebinar; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Webinar Collection Response. + */ +public class VirtualEventWebinarCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserIdAndRoleCollectionPage.java b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserIdAndRoleCollectionPage.java new file mode 100644 index 00000000000..a70e2ee96d2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserIdAndRoleCollectionPage.java @@ -0,0 +1,47 @@ +// Template Source: BaseMethodCollectionPage.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.VirtualEventWebinar; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserIdAndRoleCollectionPage; +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserIdAndRoleCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Webinar Get By User Id And Role Collection Page. + */ +public class VirtualEventWebinarGetByUserIdAndRoleCollectionPage extends BaseCollectionPage { + + /** + * A collection page for VirtualEventWebinar. + * + * @param response The serialized VirtualEventWebinarGetByUserIdAndRoleCollectionResponse from the service + * @param builder The request builder for the next collection page + */ + public VirtualEventWebinarGetByUserIdAndRoleCollectionPage(@Nonnull final VirtualEventWebinarGetByUserIdAndRoleCollectionResponse response, @Nonnull final VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for VirtualEventWebinarGetByUserIdAndRole + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public VirtualEventWebinarGetByUserIdAndRoleCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserIdAndRoleCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserIdAndRoleCollectionRequest.java new file mode 100644 index 00000000000..19e85cd53fd --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserIdAndRoleCollectionRequest.java @@ -0,0 +1,145 @@ +// Template Source: BaseMethodCollectionRequest.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.VirtualEventWebinar; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserIdAndRoleCollectionResponse; +import com.microsoft.graph.models.VirtualEventWebinar; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseFunctionCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Webinar Get By User Id And Role Collection Request. + */ +public class VirtualEventWebinarGetByUserIdAndRoleCollectionRequest extends BaseFunctionCollectionRequest { + + + /** + * The request for this VirtualEventWebinarGetByUserIdAndRole + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventWebinarGetByUserIdAndRoleCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventWebinarGetByUserIdAndRoleCollectionResponse.class, VirtualEventWebinarGetByUserIdAndRoleCollectionPage.class, VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public VirtualEventWebinarGetByUserIdAndRoleCollectionRequest 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 VirtualEventWebinarGetByUserIdAndRoleCollectionRequest 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 VirtualEventWebinarGetByUserIdAndRoleCollectionRequest 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 VirtualEventWebinarGetByUserIdAndRoleCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(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 VirtualEventWebinarGetByUserIdAndRoleCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public VirtualEventWebinarGetByUserIdAndRoleCollectionRequest count() { + addCountOption(true); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public VirtualEventWebinarGetByUserIdAndRoleCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public VirtualEventWebinarGetByUserIdAndRoleCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public VirtualEventWebinarGetByUserIdAndRoleCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder.java new file mode 100644 index 00000000000..a310516bb25 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder.java @@ -0,0 +1,72 @@ +// Template Source: BaseMethodCollectionRequestBuilder.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.VirtualEventWebinar; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserIdAndRoleCollectionRequest; +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserIdAndRoleCollectionResponse; +import com.microsoft.graph.models.VirtualEventWebinarGetByUserIdAndRoleParameterSet; +import com.microsoft.graph.options.FunctionOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseFunctionCollectionRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Webinar Get By User Id And Role Collection Request Builder. + */ +public class VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder extends BaseFunctionCollectionRequestBuilder { + + /** + * The request builder for this collection of VirtualEventWebinar + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder.class, VirtualEventWebinarGetByUserIdAndRoleCollectionRequest.class); + } + /** + * The request builder for this collection of VirtualEventWebinar + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param parameters the parameters for the service method + */ + public VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final VirtualEventWebinarGetByUserIdAndRoleParameterSet parameters) { + super(requestUrl, client, requestOptions, VirtualEventWebinarGetByUserIdAndRoleCollectionRequestBuilder.class, VirtualEventWebinarGetByUserIdAndRoleCollectionRequest.class); + if(parameters != null) { + functionOptions = parameters.getFunctionOptions(); + } + } + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the VirtualEventWebinarGetByUserIdAndRoleCollectionRequest instance + */ + @Override + @Nonnull + public VirtualEventWebinarGetByUserIdAndRoleCollectionRequest buildRequest(@Nullable final java.util.List requestOptions) { + final VirtualEventWebinarGetByUserIdAndRoleCollectionRequest request = super.buildRequest(requestOptions); + if(functionOptions != null) { + for (com.microsoft.graph.options.FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + } + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserIdAndRoleCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserIdAndRoleCollectionResponse.java new file mode 100644 index 00000000000..7980419ae05 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserIdAndRoleCollectionResponse.java @@ -0,0 +1,20 @@ +// Template Source: BaseMethodCollectionResponse.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.VirtualEventWebinar; + + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Webinar Get By User Id And Role Collection Response. + */ +public class VirtualEventWebinarGetByUserIdAndRoleCollectionResponse extends BaseCollectionResponse { +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserRoleCollectionPage.java b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserRoleCollectionPage.java new file mode 100644 index 00000000000..4eb6bcc1518 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserRoleCollectionPage.java @@ -0,0 +1,47 @@ +// Template Source: BaseMethodCollectionPage.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.VirtualEventWebinar; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserRoleCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserRoleCollectionPage; +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserRoleCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Webinar Get By User Role Collection Page. + */ +public class VirtualEventWebinarGetByUserRoleCollectionPage extends BaseCollectionPage { + + /** + * A collection page for VirtualEventWebinar. + * + * @param response The serialized VirtualEventWebinarGetByUserRoleCollectionResponse from the service + * @param builder The request builder for the next collection page + */ + public VirtualEventWebinarGetByUserRoleCollectionPage(@Nonnull final VirtualEventWebinarGetByUserRoleCollectionResponse response, @Nonnull final VirtualEventWebinarGetByUserRoleCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for VirtualEventWebinarGetByUserRole + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public VirtualEventWebinarGetByUserRoleCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final VirtualEventWebinarGetByUserRoleCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserRoleCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserRoleCollectionRequest.java new file mode 100644 index 00000000000..b041457e0db --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserRoleCollectionRequest.java @@ -0,0 +1,145 @@ +// Template Source: BaseMethodCollectionRequest.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.VirtualEventWebinar; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserRoleCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserRoleCollectionResponse; +import com.microsoft.graph.models.VirtualEventWebinar; +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseFunctionCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Webinar Get By User Role Collection Request. + */ +public class VirtualEventWebinarGetByUserRoleCollectionRequest extends BaseFunctionCollectionRequest { + + + /** + * The request for this VirtualEventWebinarGetByUserRole + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventWebinarGetByUserRoleCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventWebinarGetByUserRoleCollectionResponse.class, VirtualEventWebinarGetByUserRoleCollectionPage.class, VirtualEventWebinarGetByUserRoleCollectionRequestBuilder.class); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public VirtualEventWebinarGetByUserRoleCollectionRequest 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 VirtualEventWebinarGetByUserRoleCollectionRequest 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 VirtualEventWebinarGetByUserRoleCollectionRequest 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 VirtualEventWebinarGetByUserRoleCollectionRequest orderBy(@Nonnull final String value) { + addOrderByOption(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 VirtualEventWebinarGetByUserRoleCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public VirtualEventWebinarGetByUserRoleCollectionRequest count() { + addCountOption(true); + return this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + @Nonnull + public VirtualEventWebinarGetByUserRoleCollectionRequest top(final int value) { + addTopOption(value); + return this; + } + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + @Nonnull + public VirtualEventWebinarGetByUserRoleCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public VirtualEventWebinarGetByUserRoleCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserRoleCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserRoleCollectionRequestBuilder.java new file mode 100644 index 00000000000..bb288ffba28 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserRoleCollectionRequestBuilder.java @@ -0,0 +1,72 @@ +// Template Source: BaseMethodCollectionRequestBuilder.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.VirtualEventWebinar; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserRoleCollectionRequestBuilder; +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserRoleCollectionRequest; +import com.microsoft.graph.requests.VirtualEventWebinarGetByUserRoleCollectionResponse; +import com.microsoft.graph.models.VirtualEventWebinarGetByUserRoleParameterSet; +import com.microsoft.graph.options.FunctionOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseFunctionCollectionRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Webinar Get By User Role Collection Request Builder. + */ +public class VirtualEventWebinarGetByUserRoleCollectionRequestBuilder extends BaseFunctionCollectionRequestBuilder { + + /** + * The request builder for this collection of VirtualEventWebinar + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventWebinarGetByUserRoleCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventWebinarGetByUserRoleCollectionRequestBuilder.class, VirtualEventWebinarGetByUserRoleCollectionRequest.class); + } + /** + * The request builder for this collection of VirtualEventWebinar + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param parameters the parameters for the service method + */ + public VirtualEventWebinarGetByUserRoleCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final VirtualEventWebinarGetByUserRoleParameterSet parameters) { + super(requestUrl, client, requestOptions, VirtualEventWebinarGetByUserRoleCollectionRequestBuilder.class, VirtualEventWebinarGetByUserRoleCollectionRequest.class); + if(parameters != null) { + functionOptions = parameters.getFunctionOptions(); + } + } + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the VirtualEventWebinarGetByUserRoleCollectionRequest instance + */ + @Override + @Nonnull + public VirtualEventWebinarGetByUserRoleCollectionRequest buildRequest(@Nullable final java.util.List requestOptions) { + final VirtualEventWebinarGetByUserRoleCollectionRequest request = super.buildRequest(requestOptions); + if(functionOptions != null) { + for (com.microsoft.graph.options.FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + } + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserRoleCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserRoleCollectionResponse.java new file mode 100644 index 00000000000..3ffddbb035f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarGetByUserRoleCollectionResponse.java @@ -0,0 +1,20 @@ +// Template Source: BaseMethodCollectionResponse.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.VirtualEventWebinar; + + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Virtual Event Webinar Get By User Role Collection Response. + */ +public class VirtualEventWebinarGetByUserRoleCollectionResponse extends BaseCollectionResponse { +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarRequest.java b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarRequest.java new file mode 100644 index 00000000000..2c795395dab --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarRequest.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.VirtualEventWebinar; +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 Virtual Event Webinar Request. + */ +public class VirtualEventWebinarRequest extends BaseRequest { + + /** + * The request for the VirtualEventWebinar + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventWebinarRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventWebinar.class); + } + + /** + * Gets the VirtualEventWebinar from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the VirtualEventWebinar from the service + * + * @return the VirtualEventWebinar from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventWebinar 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 VirtualEventWebinar delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this VirtualEventWebinar with a source + * + * @param sourceVirtualEventWebinar the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final VirtualEventWebinar sourceVirtualEventWebinar) { + return sendAsync(HttpMethod.PATCH, sourceVirtualEventWebinar); + } + + /** + * Patches this VirtualEventWebinar with a source + * + * @param sourceVirtualEventWebinar the source object with updates + * @return the updated VirtualEventWebinar + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventWebinar patch(@Nonnull final VirtualEventWebinar sourceVirtualEventWebinar) throws ClientException { + return send(HttpMethod.PATCH, sourceVirtualEventWebinar); + } + + /** + * Creates a VirtualEventWebinar with a new object + * + * @param newVirtualEventWebinar the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final VirtualEventWebinar newVirtualEventWebinar) { + return sendAsync(HttpMethod.POST, newVirtualEventWebinar); + } + + /** + * Creates a VirtualEventWebinar with a new object + * + * @param newVirtualEventWebinar the new object to create + * @return the created VirtualEventWebinar + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventWebinar post(@Nonnull final VirtualEventWebinar newVirtualEventWebinar) throws ClientException { + return send(HttpMethod.POST, newVirtualEventWebinar); + } + + /** + * Creates a VirtualEventWebinar with a new object + * + * @param newVirtualEventWebinar the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final VirtualEventWebinar newVirtualEventWebinar) { + return sendAsync(HttpMethod.PUT, newVirtualEventWebinar); + } + + /** + * Creates a VirtualEventWebinar with a new object + * + * @param newVirtualEventWebinar the object to create/update + * @return the created VirtualEventWebinar + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventWebinar put(@Nonnull final VirtualEventWebinar newVirtualEventWebinar) throws ClientException { + return send(HttpMethod.PUT, newVirtualEventWebinar); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public VirtualEventWebinarRequest 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 VirtualEventWebinarRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarRequestBuilder.java new file mode 100644 index 00000000000..2109ea0fd32 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventWebinarRequestBuilder.java @@ -0,0 +1,99 @@ +// 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.VirtualEventWebinar; +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 Virtual Event Webinar Request Builder. + */ +public class VirtualEventWebinarRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the VirtualEventWebinar + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventWebinarRequestBuilder(@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 VirtualEventWebinarRequest instance + */ + @Nonnull + public VirtualEventWebinarRequest 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 VirtualEventWebinarRequest instance + */ + @Nonnull + public VirtualEventWebinarRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.VirtualEventWebinarRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the VirtualEventSession collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.VirtualEventSessionCollectionRequestBuilder sessions() { + return new com.microsoft.graph.requests.VirtualEventSessionCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("sessions"), getClient(), null); + } + + /** + * Gets a request builder for the VirtualEventSession item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.VirtualEventSessionRequestBuilder sessions(@Nonnull final String id) { + return new com.microsoft.graph.requests.VirtualEventSessionRequestBuilder(getRequestUrlWithAdditionalSegment("sessions") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the VirtualEventRegistration collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.VirtualEventRegistrationCollectionRequestBuilder registrations() { + return new com.microsoft.graph.requests.VirtualEventRegistrationCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("registrations"), getClient(), null); + } + + /** + * Gets a request builder for the VirtualEventRegistration item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.VirtualEventRegistrationRequestBuilder registrations(@Nonnull final String id) { + return new com.microsoft.graph.requests.VirtualEventRegistrationRequestBuilder(getRequestUrlWithAdditionalSegment("registrations") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventsRootRequest.java b/src/main/java/com/microsoft/graph/requests/VirtualEventsRootRequest.java new file mode 100644 index 00000000000..c53cf6733e6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventsRootRequest.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.VirtualEventsRoot; +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 Virtual Events Root Request. + */ +public class VirtualEventsRootRequest extends BaseRequest { + + /** + * The request for the VirtualEventsRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventsRootRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, VirtualEventsRoot.class); + } + + /** + * Gets the VirtualEventsRoot from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the VirtualEventsRoot from the service + * + * @return the VirtualEventsRoot from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventsRoot 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 VirtualEventsRoot delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this VirtualEventsRoot with a source + * + * @param sourceVirtualEventsRoot the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final VirtualEventsRoot sourceVirtualEventsRoot) { + return sendAsync(HttpMethod.PATCH, sourceVirtualEventsRoot); + } + + /** + * Patches this VirtualEventsRoot with a source + * + * @param sourceVirtualEventsRoot the source object with updates + * @return the updated VirtualEventsRoot + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventsRoot patch(@Nonnull final VirtualEventsRoot sourceVirtualEventsRoot) throws ClientException { + return send(HttpMethod.PATCH, sourceVirtualEventsRoot); + } + + /** + * Creates a VirtualEventsRoot with a new object + * + * @param newVirtualEventsRoot the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final VirtualEventsRoot newVirtualEventsRoot) { + return sendAsync(HttpMethod.POST, newVirtualEventsRoot); + } + + /** + * Creates a VirtualEventsRoot with a new object + * + * @param newVirtualEventsRoot the new object to create + * @return the created VirtualEventsRoot + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventsRoot post(@Nonnull final VirtualEventsRoot newVirtualEventsRoot) throws ClientException { + return send(HttpMethod.POST, newVirtualEventsRoot); + } + + /** + * Creates a VirtualEventsRoot with a new object + * + * @param newVirtualEventsRoot the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final VirtualEventsRoot newVirtualEventsRoot) { + return sendAsync(HttpMethod.PUT, newVirtualEventsRoot); + } + + /** + * Creates a VirtualEventsRoot with a new object + * + * @param newVirtualEventsRoot the object to create/update + * @return the created VirtualEventsRoot + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public VirtualEventsRoot put(@Nonnull final VirtualEventsRoot newVirtualEventsRoot) throws ClientException { + return send(HttpMethod.PUT, newVirtualEventsRoot); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public VirtualEventsRootRequest 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 VirtualEventsRootRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/VirtualEventsRootRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/VirtualEventsRootRequestBuilder.java new file mode 100644 index 00000000000..89f00b6a6ec --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/VirtualEventsRootRequestBuilder.java @@ -0,0 +1,99 @@ +// 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.VirtualEventsRoot; +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 Virtual Events Root Request Builder. + */ +public class VirtualEventsRootRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the VirtualEventsRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public VirtualEventsRootRequestBuilder(@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 VirtualEventsRootRequest instance + */ + @Nonnull + public VirtualEventsRootRequest 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 VirtualEventsRootRequest instance + */ + @Nonnull + public VirtualEventsRootRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.VirtualEventsRootRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the VirtualEvent collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.VirtualEventCollectionRequestBuilder events() { + return new com.microsoft.graph.requests.VirtualEventCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("events"), getClient(), null); + } + + /** + * Gets a request builder for the VirtualEvent item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.VirtualEventRequestBuilder events(@Nonnull final String id) { + return new com.microsoft.graph.requests.VirtualEventRequestBuilder(getRequestUrlWithAdditionalSegment("events") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the VirtualEventWebinar collection + * + * @return the collection request builder + */ + @Nonnull + public com.microsoft.graph.requests.VirtualEventWebinarCollectionRequestBuilder webinars() { + return new com.microsoft.graph.requests.VirtualEventWebinarCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("webinars"), getClient(), null); + } + + /** + * Gets a request builder for the VirtualEventWebinar item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public com.microsoft.graph.requests.VirtualEventWebinarRequestBuilder webinars(@Nonnull final String id) { + return new com.microsoft.graph.requests.VirtualEventWebinarRequestBuilder(getRequestUrlWithAdditionalSegment("webinars") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/Alert.java b/src/main/java/com/microsoft/graph/securitynamespace/models/Alert.java index 1fe19008a44..f69d019b72a 100644 --- a/src/main/java/com/microsoft/graph/securitynamespace/models/Alert.java +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/Alert.java @@ -127,7 +127,7 @@ public class Alert extends Entity implements IJsonBackedObject { /** * The Detection Source. - * Detection technology or sensor that identified the notable component or activity. Possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: microsoftDefenderForCloud. + * Detection technology or sensor that identified the notable component or activity. Possible values are: unknown, microsoftDefenderForEndpoint, antivirus, smartScreen, customTi, microsoftDefenderForOffice365, automatedInvestigation, microsoftThreatExperts, customDetection, microsoftDefenderForIdentity, cloudAppSecurity, microsoft365Defender, azureAdIdentityProtection, manual, microsoftDataLossPrevention, appGovernancePolicy, appGovernanceDetection, unknownFutureValue, microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement. You must use the Prefer: include-unknown-enum-members request header to get the following value(s) in this evolvable enum: microsoftDefenderForCloud, microsoftDefenderForIoT, microsoftDefenderForServers, microsoftDefenderForStorage, microsoftDefenderForDNS, microsoftDefenderForDatabases, microsoftDefenderForContainers, microsoftDefenderForNetwork, microsoftDefenderForAppService, microsoftDefenderForKeyVault, microsoftDefenderForResourceManager, microsoftDefenderForApiManagement. */ @SerializedName(value = "detectionSource", alternate = {"DetectionSource"}) @Expose diff --git a/src/main/java/com/microsoft/graph/securitynamespace/models/BehaviorDuringRetentionPeriod.java b/src/main/java/com/microsoft/graph/securitynamespace/models/BehaviorDuringRetentionPeriod.java new file mode 100644 index 00000000000..95217b08413 --- /dev/null +++ b/src/main/java/com/microsoft/graph/securitynamespace/models/BehaviorDuringRetentionPeriod.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.security.models; + + +/** + * The Enum Behavior During Retention Period. +*/ +public enum BehaviorDuringRetentionPeriod +{ + /** + * do Not Retain + */ + DO_NOT_RETAIN, + /** + * retain + */ + RETAIN, + /** + * retain As Record + */ + RETAIN_AS_RECORD, + /** + * retain As Regulatory Record + */ + RETAIN_AS_REGULATORY_RECORD, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For BehaviorDuringRetentionPeriod values that were not expected from the service + */ + UNEXPECTED_VALUE +}