From fe0fb23c404a732a301ed51ae481a2bb0c0107cf Mon Sep 17 00:00:00 2001 From: Microsoft Graph DevX Tooling Date: Tue, 30 Aug 2022 10:07:26 +0000 Subject: [PATCH 1/2] Update generated files with build 84225 --- README.md | 5 +- gradle.properties | 3 +- .../callrecords/models/ClientUserAgent.java | 18 ++ .../com/microsoft/graph/info/Constants.java | 3 +- ...utoRestartNotificationDismissalMethod.java | 34 +++ .../microsoft/graph/models/DetectedApp.java | 19 ++ .../graph/models/DetectedAppPlatformType.java | 62 +++++ .../DeviceManagementReportFileFormat.java | 8 + ...learUserPreferredPresenceParameterSet.java | 69 ++++++ ...eSetUserPreferredPresenceParameterSet.java | 153 +++++++++++++ .../UnifiedRoleAssignmentScheduleRequest.java | 2 +- ...UnifiedRoleEligibilityScheduleRequest.java | 2 +- ...WindowsUpdateForBusinessConfiguration.java | 211 ++++++++++++++++++ .../WindowsUpdateForBusinessUpdateWeeks.java | 46 ++++ ...indowsUpdateNotificationDisplayOption.java | 38 ++++ ...enceClearUserPreferredPresenceRequest.java | 52 +++++ ...arUserPreferredPresenceRequestBuilder.java | 59 +++++ .../PresenceCollectionRequestBuilder.java | 1 + .../requests/PresenceRequestBuilder.java | 20 ++ ...esenceSetUserPreferredPresenceRequest.java | 56 +++++ ...etUserPreferredPresenceRequestBuilder.java | 74 ++++++ .../graph/termstore/models/Group.java | 2 +- 22 files changed, 930 insertions(+), 7 deletions(-) create mode 100644 src/main/java/com/microsoft/graph/models/AutoRestartNotificationDismissalMethod.java create mode 100644 src/main/java/com/microsoft/graph/models/DetectedAppPlatformType.java create mode 100644 src/main/java/com/microsoft/graph/models/PresenceClearUserPreferredPresenceParameterSet.java create mode 100644 src/main/java/com/microsoft/graph/models/PresenceSetUserPreferredPresenceParameterSet.java create mode 100644 src/main/java/com/microsoft/graph/models/WindowsUpdateForBusinessUpdateWeeks.java create mode 100644 src/main/java/com/microsoft/graph/models/WindowsUpdateNotificationDisplayOption.java create mode 100644 src/main/java/com/microsoft/graph/requests/PresenceClearUserPreferredPresenceRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/PresenceClearUserPreferredPresenceRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/PresenceSetUserPreferredPresenceRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/PresenceSetUserPreferredPresenceRequestBuilder.java diff --git a/README.md b/README.md index cc7fd60a120..48c76aa2172 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.33.0' + implementation 'com.microsoft.graph:microsoft-graph:5.34.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.33.0 + 5.34.0 @@ -164,5 +164,6 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI + diff --git a/gradle.properties b/gradle.properties index 1f0978e5c42..3fe530e5b24 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 = 33 +mavenMinorVersion = 34 mavenPatchVersion = 0 mavenArtifactSuffix = @@ -87,5 +87,6 @@ mavenCentralPublishingEnabled=false + diff --git a/src/main/java/com/microsoft/graph/callrecords/models/ClientUserAgent.java b/src/main/java/com/microsoft/graph/callrecords/models/ClientUserAgent.java index 3e7c1ee26f9..e4bf1471f42 100644 --- a/src/main/java/com/microsoft/graph/callrecords/models/ClientUserAgent.java +++ b/src/main/java/com/microsoft/graph/callrecords/models/ClientUserAgent.java @@ -27,6 +27,24 @@ public class ClientUserAgent extends UserAgent implements IJsonBackedObject { + /** + * The Azure ADApp Id. + * The unique identifier of the Azure AD application used by this endpoint. + */ + @SerializedName(value = "azureADAppId", alternate = {"AzureADAppId"}) + @Expose + @Nullable + public String azureADAppId; + + /** + * The Communication Service Id. + * Immutable resource identifier of the Azure Communication Service associated with this endpoint based on Communication Services APIs. + */ + @SerializedName(value = "communicationServiceId", alternate = {"CommunicationServiceId"}) + @Expose + @Nullable + public String communicationServiceId; + /** * The Platform. * Identifies the platform used by this endpoint. Possible values are: unknown, windows, macOS, iOS, android, web, ipPhone, roomSystem, surfaceHub, holoLens, unknownFutureValue. diff --git a/src/main/java/com/microsoft/graph/info/Constants.java b/src/main/java/com/microsoft/graph/info/Constants.java index 1227d664a09..7292158f656 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.33.0"; + public static final String VERSION_NAME = "5.34.0"; } @@ -64,5 +64,6 @@ private Constants() { + diff --git a/src/main/java/com/microsoft/graph/models/AutoRestartNotificationDismissalMethod.java b/src/main/java/com/microsoft/graph/models/AutoRestartNotificationDismissalMethod.java new file mode 100644 index 00000000000..e50d478507a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/AutoRestartNotificationDismissalMethod.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 Auto Restart Notification Dismissal Method. +*/ +public enum AutoRestartNotificationDismissalMethod +{ + /** + * not Configured + */ + NOT_CONFIGURED, + /** + * automatic + */ + AUTOMATIC, + /** + * user + */ + USER, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For AutoRestartNotificationDismissalMethod values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/DetectedApp.java b/src/main/java/com/microsoft/graph/models/DetectedApp.java index 954ed645adb..c79b2e60e69 100644 --- a/src/main/java/com/microsoft/graph/models/DetectedApp.java +++ b/src/main/java/com/microsoft/graph/models/DetectedApp.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.DetectedAppPlatformType; import com.microsoft.graph.models.Entity; import com.microsoft.graph.requests.ManagedDeviceCollectionPage; @@ -45,6 +46,24 @@ public class DetectedApp extends Entity implements IJsonBackedObject { @Nullable public String displayName; + /** + * The Platform. + * Indicates the operating system / platform of the discovered application. Some possible values are Windows, iOS, macOS. The default value is unknown (0). + */ + @SerializedName(value = "platform", alternate = {"Platform"}) + @Expose + @Nullable + public DetectedAppPlatformType platform; + + /** + * The Publisher. + * Indicates the publisher of the discovered application. For example: 'Microsoft'. The default value is an empty string. + */ + @SerializedName(value = "publisher", alternate = {"Publisher"}) + @Expose + @Nullable + public String publisher; + /** * The Size In Byte. * Discovered application size in bytes. Read-only diff --git a/src/main/java/com/microsoft/graph/models/DetectedAppPlatformType.java b/src/main/java/com/microsoft/graph/models/DetectedAppPlatformType.java new file mode 100644 index 00000000000..378b2f38139 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/DetectedAppPlatformType.java @@ -0,0 +1,62 @@ +// 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 Detected App Platform Type. +*/ +public enum DetectedAppPlatformType +{ + /** + * unknown + */ + UNKNOWN, + /** + * windows + */ + WINDOWS, + /** + * windows Mobile + */ + WINDOWS_MOBILE, + /** + * windows Holographic + */ + WINDOWS_HOLOGRAPHIC, + /** + * ios + */ + IOS, + /** + * mac OS + */ + MAC_OS, + /** + * chrome OS + */ + CHROME_OS, + /** + * android OSP + */ + ANDROID_OSP, + /** + * android Device Administrator + */ + ANDROID_DEVICE_ADMINISTRATOR, + /** + * android Work Profile + */ + ANDROID_WORK_PROFILE, + /** + * android Dedicated And Fully Managed + */ + ANDROID_DEDICATED_AND_FULLY_MANAGED, + /** + * For DetectedAppPlatformType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/DeviceManagementReportFileFormat.java b/src/main/java/com/microsoft/graph/models/DeviceManagementReportFileFormat.java index 1a79c22aac0..a2175365359 100644 --- a/src/main/java/com/microsoft/graph/models/DeviceManagementReportFileFormat.java +++ b/src/main/java/com/microsoft/graph/models/DeviceManagementReportFileFormat.java @@ -20,6 +20,14 @@ public enum DeviceManagementReportFileFormat */ PDF, /** + * json + */ + JSON, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** * For DeviceManagementReportFileFormat values that were not expected from the service */ UNEXPECTED_VALUE diff --git a/src/main/java/com/microsoft/graph/models/PresenceClearUserPreferredPresenceParameterSet.java b/src/main/java/com/microsoft/graph/models/PresenceClearUserPreferredPresenceParameterSet.java new file mode 100644 index 00000000000..3000fcfa850 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/PresenceClearUserPreferredPresenceParameterSet.java @@ -0,0 +1,69 @@ +// Template Source: BaseMethodParameterSet.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + + +import com.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 Presence Clear User Preferred Presence Parameter Set. + */ +public class PresenceClearUserPreferredPresenceParameterSet { + + /** + * Instiaciates a new PresenceClearUserPreferredPresenceParameterSet + */ + public PresenceClearUserPreferredPresenceParameterSet() {} + /** + * Instiaciates a new PresenceClearUserPreferredPresenceParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected PresenceClearUserPreferredPresenceParameterSet(@Nonnull final PresenceClearUserPreferredPresenceParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static PresenceClearUserPreferredPresenceParameterSetBuilder newBuilder() { + return new PresenceClearUserPreferredPresenceParameterSetBuilder(); + } + /** + * Fluent builder for the PresenceClearUserPreferredPresenceParameterSet + */ + public static final class PresenceClearUserPreferredPresenceParameterSetBuilder { + /** + * Instanciates a new PresenceClearUserPreferredPresenceParameterSetBuilder + */ + @Nullable + protected PresenceClearUserPreferredPresenceParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public PresenceClearUserPreferredPresenceParameterSet build() { + return new PresenceClearUserPreferredPresenceParameterSet(this); + } + } + /** + * Gets the functions options from the properties that have been set + * @return a list of function options for the request + */ + @Nonnull + public java.util.List getFunctionOptions() { + final ArrayList result = new ArrayList<>(); + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/PresenceSetUserPreferredPresenceParameterSet.java b/src/main/java/com/microsoft/graph/models/PresenceSetUserPreferredPresenceParameterSet.java new file mode 100644 index 00000000000..60e2d262121 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/PresenceSetUserPreferredPresenceParameterSet.java @@ -0,0 +1,153 @@ +// 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.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 Presence Set User Preferred Presence Parameter Set. + */ +public class PresenceSetUserPreferredPresenceParameterSet { + /** + * The availability. + * + */ + @SerializedName(value = "availability", alternate = {"Availability"}) + @Expose + @Nullable + public String availability; + + /** + * The activity. + * + */ + @SerializedName(value = "activity", alternate = {"Activity"}) + @Expose + @Nullable + public String activity; + + /** + * The expiration Duration. + * + */ + @SerializedName(value = "expirationDuration", alternate = {"ExpirationDuration"}) + @Expose + @Nullable + public javax.xml.datatype.Duration expirationDuration; + + + /** + * Instiaciates a new PresenceSetUserPreferredPresenceParameterSet + */ + public PresenceSetUserPreferredPresenceParameterSet() {} + /** + * Instiaciates a new PresenceSetUserPreferredPresenceParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected PresenceSetUserPreferredPresenceParameterSet(@Nonnull final PresenceSetUserPreferredPresenceParameterSetBuilder builder) { + this.availability = builder.availability; + this.activity = builder.activity; + this.expirationDuration = builder.expirationDuration; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static PresenceSetUserPreferredPresenceParameterSetBuilder newBuilder() { + return new PresenceSetUserPreferredPresenceParameterSetBuilder(); + } + /** + * Fluent builder for the PresenceSetUserPreferredPresenceParameterSet + */ + public static final class PresenceSetUserPreferredPresenceParameterSetBuilder { + /** + * The availability parameter value + */ + @Nullable + protected String availability; + /** + * Sets the Availability + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public PresenceSetUserPreferredPresenceParameterSetBuilder withAvailability(@Nullable final String val) { + this.availability = val; + return this; + } + /** + * The activity parameter value + */ + @Nullable + protected String activity; + /** + * Sets the Activity + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public PresenceSetUserPreferredPresenceParameterSetBuilder withActivity(@Nullable final String val) { + this.activity = val; + return this; + } + /** + * The expirationDuration parameter value + */ + @Nullable + protected javax.xml.datatype.Duration expirationDuration; + /** + * Sets the ExpirationDuration + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public PresenceSetUserPreferredPresenceParameterSetBuilder withExpirationDuration(@Nullable final javax.xml.datatype.Duration val) { + this.expirationDuration = val; + return this; + } + /** + * Instanciates a new PresenceSetUserPreferredPresenceParameterSetBuilder + */ + @Nullable + protected PresenceSetUserPreferredPresenceParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public PresenceSetUserPreferredPresenceParameterSet build() { + return new PresenceSetUserPreferredPresenceParameterSet(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.availability != null) { + result.add(new com.microsoft.graph.options.FunctionOption("availability", availability)); + } + if(this.activity != null) { + result.add(new com.microsoft.graph.options.FunctionOption("activity", activity)); + } + if(this.expirationDuration != null) { + result.add(new com.microsoft.graph.options.FunctionOption("expirationDuration", expirationDuration)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/UnifiedRoleAssignmentScheduleRequest.java b/src/main/java/com/microsoft/graph/models/UnifiedRoleAssignmentScheduleRequest.java index 952dc7db569..0d56b4d81d1 100644 --- a/src/main/java/com/microsoft/graph/models/UnifiedRoleAssignmentScheduleRequest.java +++ b/src/main/java/com/microsoft/graph/models/UnifiedRoleAssignmentScheduleRequest.java @@ -80,7 +80,7 @@ public class UnifiedRoleAssignmentScheduleRequest extends Request implements IJs /** * The Principal Id. - * Identifier of the principal that has been granted the assignment. Supports $filter (eq, ne). + * Identifier of the principal that has been granted the assignment. Can be a user, role-assignable group, or a service principal. Supports $filter (eq, ne). */ @SerializedName(value = "principalId", alternate = {"PrincipalId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/UnifiedRoleEligibilityScheduleRequest.java b/src/main/java/com/microsoft/graph/models/UnifiedRoleEligibilityScheduleRequest.java index 085becf39c7..1e497e636bb 100644 --- a/src/main/java/com/microsoft/graph/models/UnifiedRoleEligibilityScheduleRequest.java +++ b/src/main/java/com/microsoft/graph/models/UnifiedRoleEligibilityScheduleRequest.java @@ -79,7 +79,7 @@ public class UnifiedRoleEligibilityScheduleRequest extends Request implements IJ /** * The Principal Id. - * Identifier of the principal that has been granted the role eligibility. Supports $filter (eq, ne). + * Identifier of the principal that has been granted the role eligibility. Can be a user or a role-assignable group. You can grant only active assignments service principals.Supports $filter (eq, ne). */ @SerializedName(value = "principalId", alternate = {"PrincipalId"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/WindowsUpdateForBusinessConfiguration.java b/src/main/java/com/microsoft/graph/models/WindowsUpdateForBusinessConfiguration.java index c79e6f4c76c..1b866289b19 100644 --- a/src/main/java/com/microsoft/graph/models/WindowsUpdateForBusinessConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/WindowsUpdateForBusinessConfiguration.java @@ -9,10 +9,14 @@ import com.microsoft.graph.serializer.AdditionalDataManager; import java.util.EnumSet; import com.microsoft.graph.models.AutomaticUpdateMode; +import com.microsoft.graph.models.AutoRestartNotificationDismissalMethod; import com.microsoft.graph.models.WindowsUpdateType; import com.microsoft.graph.models.WindowsDeliveryOptimizationMode; import com.microsoft.graph.models.WindowsUpdateInstallScheduleType; import com.microsoft.graph.models.PrereleaseFeatures; +import com.microsoft.graph.models.WindowsUpdateNotificationDisplayOption; +import com.microsoft.graph.models.WindowsUpdateForBusinessUpdateWeeks; +import com.microsoft.graph.models.Enablement; import com.microsoft.graph.models.DeviceConfiguration; @@ -30,6 +34,15 @@ public class WindowsUpdateForBusinessConfiguration extends DeviceConfiguration implements IJsonBackedObject { + /** + * The Allow Windows11Upgrade. + * When TRUE, allows eligible Windows 10 devices to upgrade to Windows 11. When FALSE, implies the device stays on the existing operating system. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "allowWindows11Upgrade", alternate = {"AllowWindows11Upgrade"}) + @Expose + @Nullable + public Boolean allowWindows11Upgrade; + /** * The Automatic Update Mode. * Automatic update mode. Possible values are: userDefined, notifyDownload, autoInstallAtMaintenanceTime, autoInstallAndRebootAtMaintenanceTime, autoInstallAndRebootAtScheduledTime, autoInstallAndRebootWithoutEndUserControl. @@ -39,6 +52,15 @@ public class WindowsUpdateForBusinessConfiguration extends DeviceConfiguration i @Nullable public AutomaticUpdateMode automaticUpdateMode; + /** + * The Auto Restart Notification Dismissal. + * Specify the method by which the auto-restart required notification is dismissed. Possible values are: NotConfigured, Automatic, User. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "autoRestartNotificationDismissal", alternate = {"AutoRestartNotificationDismissal"}) + @Expose + @Nullable + public AutoRestartNotificationDismissalMethod autoRestartNotificationDismissal; + /** * The Business Ready Updates Only. * Determines which branch devices will receive their updates from. Possible values are: userDefined, all, businessReadyOnly, windowsInsiderBuildFast, windowsInsiderBuildSlow, windowsInsiderBuildRelease. @@ -48,6 +70,33 @@ public class WindowsUpdateForBusinessConfiguration extends DeviceConfiguration i @Nullable public WindowsUpdateType businessReadyUpdatesOnly; + /** + * The Deadline For Feature Updates In Days. + * Number of days before feature updates are installed automatically with valid range from 0 to 30 days. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "deadlineForFeatureUpdatesInDays", alternate = {"DeadlineForFeatureUpdatesInDays"}) + @Expose + @Nullable + public Integer deadlineForFeatureUpdatesInDays; + + /** + * The Deadline For Quality Updates In Days. + * Number of days before quality updates are installed automatically with valid range from 0 to 30 days. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "deadlineForQualityUpdatesInDays", alternate = {"DeadlineForQualityUpdatesInDays"}) + @Expose + @Nullable + public Integer deadlineForQualityUpdatesInDays; + + /** + * The Deadline Grace Period In Days. + * Number of days after deadline until restarts occur automatically with valid range from 0 to 7 days. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "deadlineGracePeriodInDays", alternate = {"DeadlineGracePeriodInDays"}) + @Expose + @Nullable + public Integer deadlineGracePeriodInDays; + /** * The Delivery Optimization Mode. * Delivery Optimization Mode. Possible values are: userDefined, httpOnly, httpWithPeeringNat, httpWithPeeringPrivateGroup, httpWithInternetPeering, simpleDownload, bypassMode. @@ -66,6 +115,33 @@ public class WindowsUpdateForBusinessConfiguration extends DeviceConfiguration i @Nullable public Boolean driversExcluded; + /** + * The Engaged Restart Deadline In Days. + * Deadline in days before automatically scheduling and executing a pending restart outside of active hours, with valid range from 2 to 30 days. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "engagedRestartDeadlineInDays", alternate = {"EngagedRestartDeadlineInDays"}) + @Expose + @Nullable + public Integer engagedRestartDeadlineInDays; + + /** + * The Engaged Restart Snooze Schedule In Days. + * Number of days a user can snooze Engaged Restart reminder notifications with valid range from 1 to 3 days. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "engagedRestartSnoozeScheduleInDays", alternate = {"EngagedRestartSnoozeScheduleInDays"}) + @Expose + @Nullable + public Integer engagedRestartSnoozeScheduleInDays; + + /** + * The Engaged Restart Transition Schedule In Days. + * Number of days before transitioning from Auto Restarts scheduled outside of active hours to Engaged Restart, which requires the user to schedule, with valid range from 0 to 30 days. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "engagedRestartTransitionScheduleInDays", alternate = {"EngagedRestartTransitionScheduleInDays"}) + @Expose + @Nullable + public Integer engagedRestartTransitionScheduleInDays; + /** * The Feature Updates Deferral Period In Days. * Defer Feature Updates by these many days @@ -93,6 +169,42 @@ public class WindowsUpdateForBusinessConfiguration extends DeviceConfiguration i @Nullable public java.time.OffsetDateTime featureUpdatesPauseExpiryDateTime; + /** + * The Feature Updates Pause Start Date. + * The Feature Updates Pause start date. This value is the time when the admin paused or extended the pause for the ring. Returned by default. Query parameters are not supported. This property is read-only. + */ + @SerializedName(value = "featureUpdatesPauseStartDate", alternate = {"FeatureUpdatesPauseStartDate"}) + @Expose + @Nullable + public com.microsoft.graph.core.DateOnly featureUpdatesPauseStartDate; + + /** + * The Feature Updates Rollback Start Date Time. + * The Feature Updates Rollback Start datetime.This value is the time when the admin rolled back the Feature update for the ring.Returned by default.Query parameters are not supported. + */ + @SerializedName(value = "featureUpdatesRollbackStartDateTime", alternate = {"FeatureUpdatesRollbackStartDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime featureUpdatesRollbackStartDateTime; + + /** + * The Feature Updates Rollback Window In Days. + * The number of days after a Feature Update for which a rollback is valid with valid range from 2 to 60 days. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "featureUpdatesRollbackWindowInDays", alternate = {"FeatureUpdatesRollbackWindowInDays"}) + @Expose + @Nullable + public Integer featureUpdatesRollbackWindowInDays; + + /** + * The Feature Updates Will Be Rolled Back. + * When TRUE, rollback Feature Updates on the next device check in. When FALSE, do not rollback Feature Updates on the next device check in. Returned by default.Query parameters are not supported. + */ + @SerializedName(value = "featureUpdatesWillBeRolledBack", alternate = {"FeatureUpdatesWillBeRolledBack"}) + @Expose + @Nullable + public Boolean featureUpdatesWillBeRolledBack; + /** * The Installation Schedule. * Installation schedule @@ -111,6 +223,15 @@ public class WindowsUpdateForBusinessConfiguration extends DeviceConfiguration i @Nullable public Boolean microsoftUpdateServiceAllowed; + /** + * The Postpone Reboot Until After Deadline. + * When TRUE the device should wait until deadline for rebooting outside of active hours. When FALSE the device should not wait until deadline for rebooting outside of active hours. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "postponeRebootUntilAfterDeadline", alternate = {"PostponeRebootUntilAfterDeadline"}) + @Expose + @Nullable + public Boolean postponeRebootUntilAfterDeadline; + /** * The Prerelease Features. * The pre-release features. Possible values are: userDefined, settingsOnly, settingsAndExperimentations, notAllowed. @@ -147,6 +268,96 @@ public class WindowsUpdateForBusinessConfiguration extends DeviceConfiguration i @Nullable public java.time.OffsetDateTime qualityUpdatesPauseExpiryDateTime; + /** + * The Quality Updates Pause Start Date. + * The Quality Updates Pause start date. This value is the time when the admin paused or extended the pause for the ring. Returned by default. Query parameters are not supported. This property is read-only. + */ + @SerializedName(value = "qualityUpdatesPauseStartDate", alternate = {"QualityUpdatesPauseStartDate"}) + @Expose + @Nullable + public com.microsoft.graph.core.DateOnly qualityUpdatesPauseStartDate; + + /** + * The Quality Updates Rollback Start Date Time. + * The Quality Updates Rollback Start datetime. This value is the time when the admin rolled back the Quality update for the ring. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "qualityUpdatesRollbackStartDateTime", alternate = {"QualityUpdatesRollbackStartDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime qualityUpdatesRollbackStartDateTime; + + /** + * The Quality Updates Will Be Rolled Back. + * When TRUE, rollback Quality Updates on the next device check in. When FALSE, do not rollback Quality Updates on the next device check in. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "qualityUpdatesWillBeRolledBack", alternate = {"QualityUpdatesWillBeRolledBack"}) + @Expose + @Nullable + public Boolean qualityUpdatesWillBeRolledBack; + + /** + * The Schedule Imminent Restart Warning In Minutes. + * Specify the period for auto-restart imminent warning notifications. Supported values: 15, 30 or 60 (minutes). Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "scheduleImminentRestartWarningInMinutes", alternate = {"ScheduleImminentRestartWarningInMinutes"}) + @Expose + @Nullable + public Integer scheduleImminentRestartWarningInMinutes; + + /** + * The Schedule Restart Warning In Hours. + * Specify the period for auto-restart warning reminder notifications. Supported values: 2, 4, 8, 12 or 24 (hours). Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "scheduleRestartWarningInHours", alternate = {"ScheduleRestartWarningInHours"}) + @Expose + @Nullable + public Integer scheduleRestartWarningInHours; + + /** + * The Skip Checks Before Restart. + * When TRUE, skips all checks before restart: Battery level = 40%, User presence, Display Needed, Presentation mode, Full screen mode, phone call state, game mode etc. When FALSE, does not skip all checks before restart. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "skipChecksBeforeRestart", alternate = {"SkipChecksBeforeRestart"}) + @Expose + @Nullable + public Boolean skipChecksBeforeRestart; + + /** + * The Update Notification Level. + * Specifies what Windows Update notifications users see. Possible values are: NotConfigured, DefaultNotifications, RestartWarningsOnly, DisableAllNotifications. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "updateNotificationLevel", alternate = {"UpdateNotificationLevel"}) + @Expose + @Nullable + public WindowsUpdateNotificationDisplayOption updateNotificationLevel; + + /** + * The Update Weeks. + * Schedule the update installation on the weeks of the month. Possible values are: UserDefined, FirstWeek, SecondWeek, ThirdWeek, FourthWeek, EveryWeek. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "updateWeeks", alternate = {"UpdateWeeks"}) + @Expose + @Nullable + public EnumSet updateWeeks; + + /** + * The User Pause Access. + * Specifies whether to enable end user’s access to pause software updates. Possible values are: NotConfigured, Enabled, Disabled. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "userPauseAccess", alternate = {"UserPauseAccess"}) + @Expose + @Nullable + public Enablement userPauseAccess; + + /** + * The User Windows Update Scan Access. + * Specifies whether to disable user’s access to scan Windows Update. Possible values are: NotConfigured, Enabled, Disabled. Returned by default. Query parameters are not supported. + */ + @SerializedName(value = "userWindowsUpdateScanAccess", alternate = {"UserWindowsUpdateScanAccess"}) + @Expose + @Nullable + public Enablement userWindowsUpdateScanAccess; + /** * Sets the raw JSON object diff --git a/src/main/java/com/microsoft/graph/models/WindowsUpdateForBusinessUpdateWeeks.java b/src/main/java/com/microsoft/graph/models/WindowsUpdateForBusinessUpdateWeeks.java new file mode 100644 index 00000000000..f8b90d4a1c4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsUpdateForBusinessUpdateWeeks.java @@ -0,0 +1,46 @@ +// 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 Windows Update For Business Update Weeks. +*/ +public enum WindowsUpdateForBusinessUpdateWeeks +{ + /** + * user Defined + */ + USER_DEFINED, + /** + * first Week + */ + FIRST_WEEK, + /** + * second Week + */ + SECOND_WEEK, + /** + * third Week + */ + THIRD_WEEK, + /** + * fourth Week + */ + FOURTH_WEEK, + /** + * every Week + */ + EVERY_WEEK, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For WindowsUpdateForBusinessUpdateWeeks values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/WindowsUpdateNotificationDisplayOption.java b/src/main/java/com/microsoft/graph/models/WindowsUpdateNotificationDisplayOption.java new file mode 100644 index 00000000000..f9d8ad88855 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/WindowsUpdateNotificationDisplayOption.java @@ -0,0 +1,38 @@ +// Template Source: Enum.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; + + +/** + * The Enum Windows Update Notification Display Option. +*/ +public enum WindowsUpdateNotificationDisplayOption +{ + /** + * not Configured + */ + NOT_CONFIGURED, + /** + * default Notifications + */ + DEFAULT_NOTIFICATIONS, + /** + * restart Warnings Only + */ + RESTART_WARNINGS_ONLY, + /** + * disable All Notifications + */ + DISABLE_ALL_NOTIFICATIONS, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For WindowsUpdateNotificationDisplayOption values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/requests/PresenceClearUserPreferredPresenceRequest.java b/src/main/java/com/microsoft/graph/requests/PresenceClearUserPreferredPresenceRequest.java new file mode 100644 index 00000000000..aae238186e4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PresenceClearUserPreferredPresenceRequest.java @@ -0,0 +1,52 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.Presence; +import com.microsoft.graph.requests.PresenceClearUserPreferredPresenceRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Presence Clear User Preferred Presence Request. + */ +public class PresenceClearUserPreferredPresenceRequest extends BaseRequest { + /** + * The request for this PresenceClearUserPreferredPresence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PresenceClearUserPreferredPresenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Void.class); + } + + /** + * Creates the PresenceClearUserPreferredPresence + * + * @return a future for the operation + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return this.sendAsync(HttpMethod.POST, null); + } + + /** + * Creates the PresenceClearUserPreferredPresence + * + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + public void post() throws ClientException { + this.send(HttpMethod.POST, null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/PresenceClearUserPreferredPresenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/PresenceClearUserPreferredPresenceRequestBuilder.java new file mode 100644 index 00000000000..7f952c4f639 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PresenceClearUserPreferredPresenceRequestBuilder.java @@ -0,0 +1,59 @@ +// Template Source: BaseMethodRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.requests.PresenceClearUserPreferredPresenceRequest; +import com.microsoft.graph.models.Presence; + +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Presence Clear User Preferred Presence Request Builder. + */ +public class PresenceClearUserPreferredPresenceRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this PresenceClearUserPreferredPresence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PresenceClearUserPreferredPresenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the PresenceClearUserPreferredPresenceRequest + * + * @param requestOptions the options for the request + * @return the PresenceClearUserPreferredPresenceRequest instance + */ + @Nonnull + public PresenceClearUserPreferredPresenceRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the PresenceClearUserPreferredPresenceRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the PresenceClearUserPreferredPresenceRequest instance + */ + @Nonnull + public PresenceClearUserPreferredPresenceRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final PresenceClearUserPreferredPresenceRequest request = new PresenceClearUserPreferredPresenceRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/PresenceCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/PresenceCollectionRequestBuilder.java index e49692183aa..af1d474201a 100644 --- a/src/main/java/com/microsoft/graph/requests/PresenceCollectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/PresenceCollectionRequestBuilder.java @@ -22,6 +22,7 @@ import com.microsoft.graph.http.PrimitiveRequestBuilder; import com.microsoft.graph.models.PresenceClearPresenceParameterSet; import com.microsoft.graph.models.PresenceSetPresenceParameterSet; +import com.microsoft.graph.models.PresenceSetUserPreferredPresenceParameterSet; // **NOTE** This file was generated by a tool and any changes will be overwritten. /** diff --git a/src/main/java/com/microsoft/graph/requests/PresenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/PresenceRequestBuilder.java index a353634e2aa..d32c85dfb44 100644 --- a/src/main/java/com/microsoft/graph/requests/PresenceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/PresenceRequestBuilder.java @@ -16,6 +16,7 @@ import com.microsoft.graph.http.BaseRequestBuilder; import com.microsoft.graph.models.PresenceClearPresenceParameterSet; import com.microsoft.graph.models.PresenceSetPresenceParameterSet; +import com.microsoft.graph.models.PresenceSetUserPreferredPresenceParameterSet; // **NOTE** This file was generated by a tool and any changes will be overwritten. @@ -69,6 +70,15 @@ public PresenceClearPresenceRequestBuilder clearPresence(@Nonnull final Presence return new PresenceClearPresenceRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.clearPresence"), getClient(), null, parameters); } + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public PresenceClearUserPreferredPresenceRequestBuilder clearUserPreferredPresence() { + return new PresenceClearUserPreferredPresenceRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.clearUserPreferredPresence"), getClient(), null); + } + /** * Gets a builder to execute the method * @return the request builder @@ -78,4 +88,14 @@ public PresenceClearPresenceRequestBuilder clearPresence(@Nonnull final Presence public PresenceSetPresenceRequestBuilder setPresence(@Nonnull final PresenceSetPresenceParameterSet parameters) { return new PresenceSetPresenceRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.setPresence"), getClient(), null, parameters); } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public PresenceSetUserPreferredPresenceRequestBuilder setUserPreferredPresence(@Nonnull final PresenceSetUserPreferredPresenceParameterSet parameters) { + return new PresenceSetUserPreferredPresenceRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.setUserPreferredPresence"), getClient(), null, parameters); + } } diff --git a/src/main/java/com/microsoft/graph/requests/PresenceSetUserPreferredPresenceRequest.java b/src/main/java/com/microsoft/graph/requests/PresenceSetUserPreferredPresenceRequest.java new file mode 100644 index 00000000000..40ed1c20be1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PresenceSetUserPreferredPresenceRequest.java @@ -0,0 +1,56 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.Presence; +import com.microsoft.graph.requests.PresenceSetUserPreferredPresenceRequest; + +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.models.PresenceSetUserPreferredPresenceParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Presence Set User Preferred Presence Request. + */ +public class PresenceSetUserPreferredPresenceRequest extends BaseRequest { + /** + * The request for this PresenceSetUserPreferredPresence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PresenceSetUserPreferredPresenceRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Void.class); + } + + /** The body for the method */ + @Nullable + public PresenceSetUserPreferredPresenceParameterSet body; + /** + * Creates the PresenceSetUserPreferredPresence + * + * @return a future for the operation + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return this.sendAsync(HttpMethod.POST, body); + } + + /** + * Creates the PresenceSetUserPreferredPresence + * + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + public void post() throws ClientException { + this.send(HttpMethod.POST, body); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/PresenceSetUserPreferredPresenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/PresenceSetUserPreferredPresenceRequestBuilder.java new file mode 100644 index 00000000000..de5168030cb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/PresenceSetUserPreferredPresenceRequestBuilder.java @@ -0,0 +1,74 @@ +// Template Source: BaseMethodRequestBuilder.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.requests.PresenceSetUserPreferredPresenceRequest; +import com.microsoft.graph.models.Presence; + +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.models.PresenceSetUserPreferredPresenceParameterSet; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Presence Set User Preferred Presence Request Builder. + */ +public class PresenceSetUserPreferredPresenceRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this PresenceSetUserPreferredPresence + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public PresenceSetUserPreferredPresenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + private PresenceSetUserPreferredPresenceParameterSet body; + /** + * The request builder for this PresenceSetUserPreferredPresence + * + * @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 PresenceSetUserPreferredPresenceRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final PresenceSetUserPreferredPresenceParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } + + /** + * Creates the PresenceSetUserPreferredPresenceRequest + * + * @param requestOptions the options for the request + * @return the PresenceSetUserPreferredPresenceRequest instance + */ + @Nonnull + public PresenceSetUserPreferredPresenceRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the PresenceSetUserPreferredPresenceRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the PresenceSetUserPreferredPresenceRequest instance + */ + @Nonnull + public PresenceSetUserPreferredPresenceRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final PresenceSetUserPreferredPresenceRequest request = new PresenceSetUserPreferredPresenceRequest( + getRequestUrl(), + getClient(), + requestOptions); + request.body = this.body; + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/termstore/models/Group.java b/src/main/java/com/microsoft/graph/termstore/models/Group.java index 48f3c2a90c0..8db482bf561 100644 --- a/src/main/java/com/microsoft/graph/termstore/models/Group.java +++ b/src/main/java/com/microsoft/graph/termstore/models/Group.java @@ -66,7 +66,7 @@ public class Group extends Entity implements IJsonBackedObject { /** * The Scope. - * Returns the type of the group. Possible values are global, system, and siteCollection. + * Returns the type of the group. Possible values are: global, system, and siteCollection. */ @SerializedName(value = "scope", alternate = {"Scope"}) @Expose From 5611c3970d45858dec825edc991638da5d0dd51b Mon Sep 17 00:00:00 2001 From: ramsessanchez <63934382+ramsessanchez@users.noreply.github.com> Date: Thu, 1 Sep 2022 13:33:51 -0700 Subject: [PATCH 2/2] Update CHANGELOG.md --- CHANGELOG.md | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 271d92dab0c..a29f1db5791 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,24 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed +## [5.34.0] - 2022-09-01 + +### Added + +- AutoRestartNotificationDismissalMethod model. +- DetectedAppPlatformType model. +- WindowsUpdateForBusinessUpdateWeeks model. +- WindowsUpdateNotificationDisplayOption model. +- PresenceClearUserPreferredPresence models and related requests. +- PresenceSetUserPreferredPresence models and related requests. + +### Changed + +- Generated v1.0 models and request builders using Typewriter. +- References to newly added models/requests added to current models/requests. +- Example: WindowsUpdateForBusinessConfiguration model references newly added WindowsUpdate models and requests. +- Example: PresenceRequestBuilder request references newly added PresenceClearUserPreferredPresence & PresenceSetUserPreferredPresence models/requests. + ## [5.33.0] - 2022-08-23 ### Added