diff --git a/README.md b/README.md index ba052f465f9..83a42f064d4 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:4.1.0' + implementation 'com.microsoft.graph:microsoft-graph:4.2.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 - 4.1.0 + 4.2.0 @@ -146,3 +146,4 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI + diff --git a/gradle.properties b/gradle.properties index b981ade9287..b6d253059a1 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ org.gradle.caching=true mavenGroupId = com.microsoft.graph mavenArtifactId = microsoft-graph mavenMajorVersion = 4 -mavenMinorVersion = 1 +mavenMinorVersion = 2 mavenPatchVersion = 0 mavenArtifactSuffix = @@ -55,3 +55,4 @@ mavenCentralPublishingEnabled=false + diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/Property.java b/src/main/java/com/microsoft/graph/externalconnectors/models/Property.java index 5c206e564a7..29ed43eba22 100644 --- a/src/main/java/com/microsoft/graph/externalconnectors/models/Property.java +++ b/src/main/java/com/microsoft/graph/externalconnectors/models/Property.java @@ -87,7 +87,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Labels. - * Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (e.g. better relevance). Supported labels: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, iconUrl, containerName, and containerUrl. Optional. + * Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (e.g. better relevance). Optional.The possible values are: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, unknownFutureValue, iconUrl, containerName, containerUrl. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: iconUrl, containerName, containerUrl. */ @SerializedName(value = "labels", alternate = {"Labels"}) @Expose @@ -105,7 +105,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Type. - * The data type of the property. Possible values are: string, int64, double, dateTime, boolean, stringCollection, int64Collection, doubleCollection, dateTimeCollection. Required. + * The data type of the property. Possible values are: string, int64, double, dateTime, boolean, stringCollection, int64Collection, doubleCollection, dateTimeCollection, unknownFutureValue. Required. */ @SerializedName(value = "type", alternate = {"Type"}) @Expose diff --git a/src/main/java/com/microsoft/graph/info/Constants.java b/src/main/java/com/microsoft/graph/info/Constants.java index 383a5739353..d8dee36be8b 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 = "4.1.0"; + public static final String VERSION_NAME = "4.2.0"; } @@ -32,3 +32,4 @@ private Constants() { + diff --git a/src/main/java/com/microsoft/graph/models/Admin.java b/src/main/java/com/microsoft/graph/models/Admin.java new file mode 100644 index 00000000000..7517244a87c --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/Admin.java @@ -0,0 +1,60 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.ServiceAnnouncement; + + +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 Admin. + */ +public class Admin 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 Service Announcement. + * + */ + @SerializedName(value = "serviceAnnouncement", alternate = {"ServiceAnnouncement"}) + @Expose + @Nullable + public ServiceAnnouncement serviceAnnouncement; + + + /** + * 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/AppliedConditionalAccessPolicy.java b/src/main/java/com/microsoft/graph/models/AppliedConditionalAccessPolicy.java index c0e759b874d..0e07e25d47f 100644 --- a/src/main/java/com/microsoft/graph/models/AppliedConditionalAccessPolicy.java +++ b/src/main/java/com/microsoft/graph/models/AppliedConditionalAccessPolicy.java @@ -77,7 +77,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Result. - * Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (Policy isn't applied because policy conditions were not met),notEnabled (This is due to the policy in disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted + * Indicates the result of the CA policy that was triggered. Possible values are: success, failure, notApplied (Policy isn't applied because policy conditions were not met),notEnabled (This is due to the policy in disabled state), unknown, unknownFutureValue, reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: reportOnlySuccess, reportOnlyFailure, reportOnlyNotApplied, reportOnlyInterrupted. */ @SerializedName(value = "result", alternate = {"Result"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/Bitlocker.java b/src/main/java/com/microsoft/graph/models/Bitlocker.java new file mode 100644 index 00000000000..51f24b9efd2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/Bitlocker.java @@ -0,0 +1,54 @@ +// 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.BitlockerRecoveryKey; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.BitlockerRecoveryKeyCollectionPage; + + +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 Bitlocker. + */ +public class Bitlocker extends Entity implements IJsonBackedObject { + + + /** + * The Recovery Keys. + * The recovery keys associated with the bitlocker entity. + */ + @SerializedName(value = "recoveryKeys", alternate = {"RecoveryKeys"}) + @Expose + @Nullable + public BitlockerRecoveryKeyCollectionPage recoveryKeys; + + + /** + * 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("recoveryKeys")) { + recoveryKeys = serializer.deserializeObject(json.get("recoveryKeys"), BitlockerRecoveryKeyCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/BitlockerRecoveryKey.java b/src/main/java/com/microsoft/graph/models/BitlockerRecoveryKey.java new file mode 100644 index 00000000000..6bbcffa2f34 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/BitlockerRecoveryKey.java @@ -0,0 +1,75 @@ +// 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.VolumeType; +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 Bitlocker Recovery Key. + */ +public class BitlockerRecoveryKey extends Entity implements IJsonBackedObject { + + + /** + * The Created Date Time. + * The date and time when the key was originally backed up to Azure Active Directory. + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Device Id. + * ID of the device the BitLocker key is originally backed up from. + */ + @SerializedName(value = "deviceId", alternate = {"DeviceId"}) + @Expose + @Nullable + public String deviceId; + + /** + * The Key. + * The BitLocker recovery key. + */ + @SerializedName(value = "key", alternate = {"Key"}) + @Expose + @Nullable + public String key; + + /** + * The Volume Type. + * Indicates the type of volume the BitLocker key is associated with. Possible values are: operatingSystemVolume, fixedDataVolume, removableDataVolume, unknownFutureValue. + */ + @SerializedName(value = "volumeType", alternate = {"VolumeType"}) + @Expose + @Nullable + public VolumeType volumeType; + + + /** + * 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/Channel.java b/src/main/java/com/microsoft/graph/models/Channel.java index 75f2dbe385e..f2bcb2f30ce 100644 --- a/src/main/java/com/microsoft/graph/models/Channel.java +++ b/src/main/java/com/microsoft/graph/models/Channel.java @@ -81,7 +81,7 @@ public class Channel extends Entity implements IJsonBackedObject { /** * The Membership Type. - * The type of the channel. Can be set during creation and can't be changed. Default: standard. + * The type of the channel. Can be set during creation and can't be changed. The possible values are: standard, private, unknownFutureValue, shared. The default value is standard. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: shared. */ @SerializedName(value = "membershipType", alternate = {"MembershipType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ChatMessage.java b/src/main/java/com/microsoft/graph/models/ChatMessage.java index 0bd06e3860a..7da9dbf4360 100644 --- a/src/main/java/com/microsoft/graph/models/ChatMessage.java +++ b/src/main/java/com/microsoft/graph/models/ChatMessage.java @@ -158,7 +158,7 @@ public class ChatMessage extends Entity implements IJsonBackedObject { /** * The Message Type. - * The type of chat message. The possible values are: message, unknownFutureValue, systemEventMessage. + * The type of chat message. The possible values are: message, chatEvent, typing, unknownFutureValue, systemEventMessage. Note that you must use the Prefer: include-unknown-enum-members request header to get the following value in this evolvable enum: systemEventMessage. */ @SerializedName(value = "messageType", alternate = {"MessageType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ConversationThread.java b/src/main/java/com/microsoft/graph/models/ConversationThread.java index 27f4f970ac2..cde04b287ad 100644 --- a/src/main/java/com/microsoft/graph/models/ConversationThread.java +++ b/src/main/java/com/microsoft/graph/models/ConversationThread.java @@ -31,7 +31,7 @@ public class ConversationThread extends Entity implements IJsonBackedObject { /** * The Cc Recipients. - * The Cc: recipients for the thread. + * The Cc: recipients for the thread. Returned only on $select. */ @SerializedName(value = "ccRecipients", alternate = {"CcRecipients"}) @Expose @@ -40,7 +40,7 @@ public class ConversationThread extends Entity implements IJsonBackedObject { /** * The Has Attachments. - * Indicates whether any of the posts within this thread has at least one attachment. + * Indicates whether any of the posts within this thread has at least one attachment. Returned by default. */ @SerializedName(value = "hasAttachments", alternate = {"HasAttachments"}) @Expose @@ -49,7 +49,7 @@ public class ConversationThread extends Entity implements IJsonBackedObject { /** * The Is Locked. - * Indicates if the thread is locked. + * Indicates if the thread is locked. Returned by default. */ @SerializedName(value = "isLocked", alternate = {"IsLocked"}) @Expose @@ -58,7 +58,7 @@ public class ConversationThread extends Entity implements IJsonBackedObject { /** * The Last Delivered Date Time. - * The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z + * The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. Returned by default. */ @SerializedName(value = "lastDeliveredDateTime", alternate = {"LastDeliveredDateTime"}) @Expose @@ -67,7 +67,7 @@ public class ConversationThread extends Entity implements IJsonBackedObject { /** * The Preview. - * A short summary from the body of the latest post in this conversation. + * A short summary from the body of the latest post in this conversation. Returned by default. */ @SerializedName(value = "preview", alternate = {"Preview"}) @Expose @@ -76,7 +76,7 @@ public class ConversationThread extends Entity implements IJsonBackedObject { /** * The Topic. - * The topic of the conversation. This property can be set when the conversation is created, but it cannot be updated. + * The topic of the conversation. This property can be set when the conversation is created, but it cannot be updated. Returned by default. */ @SerializedName(value = "topic", alternate = {"Topic"}) @Expose @@ -85,7 +85,7 @@ public class ConversationThread extends Entity implements IJsonBackedObject { /** * The To Recipients. - * The To: recipients for the thread. + * The To: recipients for the thread. Returned only on $select. */ @SerializedName(value = "toRecipients", alternate = {"ToRecipients"}) @Expose @@ -94,7 +94,7 @@ public class ConversationThread extends Entity implements IJsonBackedObject { /** * The Unique Senders. - * All the users that sent a message to this thread. + * All the users that sent a message to this thread. Returned by default. */ @SerializedName(value = "uniqueSenders", alternate = {"UniqueSenders"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/InformationProtection.java b/src/main/java/com/microsoft/graph/models/InformationProtection.java index 43005912743..4e6758c3ab5 100644 --- a/src/main/java/com/microsoft/graph/models/InformationProtection.java +++ b/src/main/java/com/microsoft/graph/models/InformationProtection.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.Bitlocker; import com.microsoft.graph.models.ThreatAssessmentRequest; import com.microsoft.graph.models.Entity; import com.microsoft.graph.requests.ThreatAssessmentRequestCollectionPage; @@ -28,6 +29,15 @@ public class InformationProtection extends Entity implements IJsonBackedObject { + /** + * The Bitlocker. + * + */ + @SerializedName(value = "bitlocker", alternate = {"Bitlocker"}) + @Expose + @Nullable + public Bitlocker bitlocker; + /** * The Threat Assessment Requests. * diff --git a/src/main/java/com/microsoft/graph/models/KeyValue.java b/src/main/java/com/microsoft/graph/models/KeyValue.java index db2e719e7f3..f608cf2a999 100644 --- a/src/main/java/com/microsoft/graph/models/KeyValue.java +++ b/src/main/java/com/microsoft/graph/models/KeyValue.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Key. - * Key. + * Contains the name of the field that a value is associated with. When a sign in or domain hint is included in the sign-in request, corresponding fields are included as key-value pairs. Possible keys: Login hint present, Domain hint present. */ @SerializedName(value = "key", alternate = {"Key"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * Value. + * Contains the corresponding value for the specified key. The value is true if a sign in hint was included in the sign-in request; otherwise false. The value is true if a domain hint was included in the sign-in request; otherwise false. */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/KeyValuePair.java b/src/main/java/com/microsoft/graph/models/KeyValuePair.java index 32bf70cf5c9..738f9442a0c 100644 --- a/src/main/java/com/microsoft/graph/models/KeyValuePair.java +++ b/src/main/java/com/microsoft/graph/models/KeyValuePair.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Name. - * Name for this key-value pair. Possible names are: AdditionalWSFedEndpointCheckResult, AllowedAuthenticationClassReferencesCheckResult, AlwaysRequireAuthenticationCheckResult, AutoUpdateEnabledCheckResult, ClaimsProviderNameCheckResult, EncryptClaimsCheckResult, EncryptedNameIdRequiredCheckResult, MonitoringEnabledCheckResult,NotBeforeSkewCheckResult, RequestMFAFromClaimsProvidersCheckResult, SignedSamlRequestsRequiredCheckResult, AdditionalAuthenticationRulesCheckResult, TokenLifetimeCheckResult, DelegationAuthorizationRulesCheckResult, IssuanceAuthorizationRulesCheckResult, IssuanceTransformRulesCheckResult. + * Name for this key-value pair */ @SerializedName(value = "name", alternate = {"Name"}) @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Value. - * Value for this key-value pair. Possible result values are 0 (when the validation check passed), 1 (when the validation check failed), or 2 (when the validation check is a warning). + * Value for this key-value pair */ @SerializedName(value = "value", alternate = {"Value"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/PolicyRoot.java b/src/main/java/com/microsoft/graph/models/PolicyRoot.java index fb5c25f3eed..8d69cc49e1a 100644 --- a/src/main/java/com/microsoft/graph/models/PolicyRoot.java +++ b/src/main/java/com/microsoft/graph/models/PolicyRoot.java @@ -49,7 +49,7 @@ public class PolicyRoot extends Entity implements IJsonBackedObject { /** * The Authentication Methods Policy. - * + * The authentication methods and the users that are allowed to use them to sign in and perform multi-factor authentication (MFA) in Azure Active Directory (Azure AD). */ @SerializedName(value = "authenticationMethodsPolicy", alternate = {"AuthenticationMethodsPolicy"}) @Expose @@ -58,7 +58,7 @@ public class PolicyRoot extends Entity implements IJsonBackedObject { /** * The Authentication Flows Policy. - * + * The policy configuration of the self-service sign-up experience of external users. */ @SerializedName(value = "authenticationFlowsPolicy", alternate = {"AuthenticationFlowsPolicy"}) @Expose @@ -67,7 +67,7 @@ public class PolicyRoot extends Entity implements IJsonBackedObject { /** * The Activity Based Timeout Policies. - * + * The policy that controls the idle time out for web sessions for applications. */ @SerializedName(value = "activityBasedTimeoutPolicies", alternate = {"ActivityBasedTimeoutPolicies"}) @Expose @@ -76,7 +76,7 @@ public class PolicyRoot extends Entity implements IJsonBackedObject { /** * The Authorization Policy. - * + * The policy that controls Azure AD authorization settings. */ @SerializedName(value = "authorizationPolicy", alternate = {"AuthorizationPolicy"}) @Expose @@ -85,7 +85,7 @@ public class PolicyRoot extends Entity implements IJsonBackedObject { /** * The Claims Mapping Policies. - * + * The claim-mapping policies for WS-Fed, SAML, OAuth 2.0, and OpenID Connect protocols, for tokens issued to a specific application. */ @SerializedName(value = "claimsMappingPolicies", alternate = {"ClaimsMappingPolicies"}) @Expose @@ -94,7 +94,7 @@ public class PolicyRoot extends Entity implements IJsonBackedObject { /** * The Home Realm Discovery Policies. - * + * The policy to control Azure AD authentication behavior for federated users. */ @SerializedName(value = "homeRealmDiscoveryPolicies", alternate = {"HomeRealmDiscoveryPolicies"}) @Expose @@ -103,7 +103,7 @@ public class PolicyRoot extends Entity implements IJsonBackedObject { /** * The Permission Grant Policies. - * + * The policy that specifies the conditions under which consent can be granted. */ @SerializedName(value = "permissionGrantPolicies", alternate = {"PermissionGrantPolicies"}) @Expose @@ -112,7 +112,7 @@ public class PolicyRoot extends Entity implements IJsonBackedObject { /** * The Token Issuance Policies. - * + * The policy that specifies the characteristics of SAML tokens issued by Azure AD. */ @SerializedName(value = "tokenIssuancePolicies", alternate = {"TokenIssuancePolicies"}) @Expose @@ -121,7 +121,7 @@ public class PolicyRoot extends Entity implements IJsonBackedObject { /** * The Token Lifetime Policies. - * + * The policy that controls the lifetime of a JWT access token, an ID token, or a SAML 1.1/2.0 token issued by Azure AD. */ @SerializedName(value = "tokenLifetimePolicies", alternate = {"TokenLifetimePolicies"}) @Expose @@ -130,7 +130,7 @@ public class PolicyRoot extends Entity implements IJsonBackedObject { /** * The Feature Rollout Policies. - * + * The feature rollout policy associated with a directory object. */ @SerializedName(value = "featureRolloutPolicies", alternate = {"FeatureRolloutPolicies"}) @Expose @@ -139,7 +139,7 @@ public class PolicyRoot extends Entity implements IJsonBackedObject { /** * The Admin Consent Request Policy. - * + * The policy by which consent requests are created and managed for the entire tenant. */ @SerializedName(value = "adminConsentRequestPolicy", alternate = {"AdminConsentRequestPolicy"}) @Expose @@ -148,7 +148,7 @@ public class PolicyRoot extends Entity implements IJsonBackedObject { /** * The Conditional Access Policies. - * + * The custom rules that define an access scenario. */ @SerializedName(value = "conditionalAccessPolicies", alternate = {"ConditionalAccessPolicies"}) @Expose @@ -157,7 +157,7 @@ public class PolicyRoot extends Entity implements IJsonBackedObject { /** * The Identity Security Defaults Enforcement Policy. - * + * The policy that represents the security defaults that protect against common attacks. */ @SerializedName(value = "identitySecurityDefaultsEnforcementPolicy", alternate = {"IdentitySecurityDefaultsEnforcementPolicy"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/PostType.java b/src/main/java/com/microsoft/graph/models/PostType.java new file mode 100644 index 00000000000..35f93d2e707 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/PostType.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 Post Type. +*/ +public enum PostType +{ + /** + * regular + */ + REGULAR, + /** + * quick + */ + QUICK, + /** + * strategic + */ + STRATEGIC, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For PostType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/PreAuthorizedApplication.java b/src/main/java/com/microsoft/graph/models/PreAuthorizedApplication.java index 16490c1831f..4e5349d370b 100644 --- a/src/main/java/com/microsoft/graph/models/PreAuthorizedApplication.java +++ b/src/main/java/com/microsoft/graph/models/PreAuthorizedApplication.java @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Delegated Permission Ids. - * The unique identifier for the oauth2PermissionScopes the application requires. + * */ @SerializedName(value = "delegatedPermissionIds", alternate = {"DelegatedPermissionIds"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/ServiceAnnouncement.java b/src/main/java/com/microsoft/graph/models/ServiceAnnouncement.java new file mode 100644 index 00000000000..61cf8c81cb3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceAnnouncement.java @@ -0,0 +1,84 @@ +// 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.ServiceHealth; +import com.microsoft.graph.models.ServiceHealthIssue; +import com.microsoft.graph.models.ServiceUpdateMessage; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.ServiceHealthCollectionPage; +import com.microsoft.graph.requests.ServiceHealthIssueCollectionPage; +import com.microsoft.graph.requests.ServiceUpdateMessageCollectionPage; + + +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 Service Announcement. + */ +public class ServiceAnnouncement extends Entity implements IJsonBackedObject { + + + /** + * The Health Overviews. + * A collection of service health information for tenant. This property is a contained navigation property, it is nullable and readonly. + */ + @SerializedName(value = "healthOverviews", alternate = {"HealthOverviews"}) + @Expose + @Nullable + public ServiceHealthCollectionPage healthOverviews; + + /** + * The Issues. + * A collection of service issues for tenant. This property is a contained navigation property, it is nullable and readonly. + */ + @SerializedName(value = "issues", alternate = {"Issues"}) + @Expose + @Nullable + public ServiceHealthIssueCollectionPage issues; + + /** + * The Messages. + * A collection of service messages for tenant. This property is a contained navigation property, it is nullable and readonly. + */ + @SerializedName(value = "messages", alternate = {"Messages"}) + @Expose + @Nullable + public ServiceUpdateMessageCollectionPage messages; + + + /** + * 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("healthOverviews")) { + healthOverviews = serializer.deserializeObject(json.get("healthOverviews"), ServiceHealthCollectionPage.class); + } + + if (json.has("issues")) { + issues = serializer.deserializeObject(json.get("issues"), ServiceHealthIssueCollectionPage.class); + } + + if (json.has("messages")) { + messages = serializer.deserializeObject(json.get("messages"), ServiceUpdateMessageCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/ServiceAnnouncementBase.java b/src/main/java/com/microsoft/graph/models/ServiceAnnouncementBase.java new file mode 100644 index 00000000000..65af05d7f87 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceAnnouncementBase.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.http.BaseCollectionPage; +import com.microsoft.graph.models.KeyValuePair; +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 Service Announcement Base. + */ +public class ServiceAnnouncementBase extends Entity implements IJsonBackedObject { + + + /** + * The Details. + * Additional details about service event. This property doesn't support filters. + */ + @SerializedName(value = "details", alternate = {"Details"}) + @Expose + @Nullable + public java.util.List details; + + /** + * The End Date Time. + * The end time of the service event. + */ + @SerializedName(value = "endDateTime", alternate = {"EndDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime endDateTime; + + /** + * The Last Modified Date Time. + * The last modified time of the service event. + */ + @SerializedName(value = "lastModifiedDateTime", alternate = {"LastModifiedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime lastModifiedDateTime; + + /** + * The Start Date Time. + * The start time of the service event. + */ + @SerializedName(value = "startDateTime", alternate = {"StartDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime startDateTime; + + /** + * The Title. + * The title of the service event. + */ + @SerializedName(value = "title", alternate = {"Title"}) + @Expose + @Nullable + public String title; + + + /** + * 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/ServiceHealth.java b/src/main/java/com/microsoft/graph/models/ServiceHealth.java new file mode 100644 index 00000000000..1f1c981b291 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceHealth.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.ServiceHealthStatus; +import com.microsoft.graph.models.ServiceHealthIssue; +import com.microsoft.graph.models.Entity; +import com.microsoft.graph.requests.ServiceHealthIssueCollectionPage; + + +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 Service Health. + */ +public class ServiceHealth extends Entity implements IJsonBackedObject { + + + /** + * The Service. + * The service name. + */ + @SerializedName(value = "service", alternate = {"Service"}) + @Expose + @Nullable + public String service; + + /** + * The Status. + * Show the overral service health status. Possible values are: serviceOperational, investigating, restoringService, verifyingService, serviceRestored, postIncidentReviewPublished, serviceDegradation, serviceInterruption, extendedRecovery, falsePositive, investigationSuspended, resolved, mitigatedExternal, mitigated, resolvedExternal, confirmed, reported, unknownFutureValue. + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public ServiceHealthStatus status; + + /** + * The Issues. + * A collection of issues happened on the service, with detailed information for each issue. + */ + @SerializedName(value = "issues", alternate = {"Issues"}) + @Expose + @Nullable + public ServiceHealthIssueCollectionPage issues; + + + /** + * 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("issues")) { + issues = serializer.deserializeObject(json.get("issues"), ServiceHealthIssueCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/ServiceHealthClassificationType.java b/src/main/java/com/microsoft/graph/models/ServiceHealthClassificationType.java new file mode 100644 index 00000000000..a8ca58040ba --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceHealthClassificationType.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 Service Health Classification Type. +*/ +public enum ServiceHealthClassificationType +{ + /** + * advisory + */ + ADVISORY, + /** + * incident + */ + INCIDENT, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For ServiceHealthClassificationType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/ServiceHealthIssue.java b/src/main/java/com/microsoft/graph/models/ServiceHealthIssue.java new file mode 100644 index 00000000000..aa7a7dbffb3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceHealthIssue.java @@ -0,0 +1,124 @@ +// 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.ServiceHealthClassificationType; +import com.microsoft.graph.models.ServiceHealthOrigin; +import com.microsoft.graph.models.ServiceHealthIssuePost; +import com.microsoft.graph.models.ServiceHealthStatus; +import com.microsoft.graph.models.ServiceAnnouncementBase; + + +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 Service Health Issue. + */ +public class ServiceHealthIssue extends ServiceAnnouncementBase implements IJsonBackedObject { + + + /** + * The Classification. + * The type of service health issue. Possible values are: advisory, incident, unknownFutureValue. + */ + @SerializedName(value = "classification", alternate = {"Classification"}) + @Expose + @Nullable + public ServiceHealthClassificationType classification; + + /** + * The Feature. + * The feature name of the service issue. + */ + @SerializedName(value = "feature", alternate = {"Feature"}) + @Expose + @Nullable + public String feature; + + /** + * The Feature Group. + * The feature group name of the service issue. + */ + @SerializedName(value = "featureGroup", alternate = {"FeatureGroup"}) + @Expose + @Nullable + public String featureGroup; + + /** + * The Impact Description. + * The description of the service issue impact. + */ + @SerializedName(value = "impactDescription", alternate = {"ImpactDescription"}) + @Expose + @Nullable + public String impactDescription; + + /** + * The Is Resolved. + * Indicates whether the issue is resolved. + */ + @SerializedName(value = "isResolved", alternate = {"IsResolved"}) + @Expose + @Nullable + public Boolean isResolved; + + /** + * The Origin. + * Indicates the origin of the service issue. Possible values are: microsoft, thirdParty, customer, unknownFutureValue. + */ + @SerializedName(value = "origin", alternate = {"Origin"}) + @Expose + @Nullable + public ServiceHealthOrigin origin; + + /** + * The Posts. + * Collection of historical posts for the service issue. + */ + @SerializedName(value = "posts", alternate = {"Posts"}) + @Expose + @Nullable + public java.util.List posts; + + /** + * The Service. + * Indicates the service affected by the issue. + */ + @SerializedName(value = "service", alternate = {"Service"}) + @Expose + @Nullable + public String service; + + /** + * The Status. + * The status of the service issue. Possible values are: serviceOperational, investigating, restoringService, verifyingService, serviceRestored, postIncidentReviewPublished, serviceDegradation, serviceInterruption, extendedRecovery, falsePositive, investigationSuspended, resolved, mitigatedExternal, mitigated, resolvedExternal, confirmed, reported, unknownFutureValue. + */ + @SerializedName(value = "status", alternate = {"Status"}) + @Expose + @Nullable + public ServiceHealthStatus status; + + + /** + * 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/ServiceHealthIssueIncidentReportParameterSet.java b/src/main/java/com/microsoft/graph/models/ServiceHealthIssueIncidentReportParameterSet.java new file mode 100644 index 00000000000..9df543193dc --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceHealthIssueIncidentReportParameterSet.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 Service Health Issue Incident Report Parameter Set. + */ +public class ServiceHealthIssueIncidentReportParameterSet { + + /** + * Instiaciates a new ServiceHealthIssueIncidentReportParameterSet + */ + public ServiceHealthIssueIncidentReportParameterSet() {} + /** + * Instiaciates a new ServiceHealthIssueIncidentReportParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected ServiceHealthIssueIncidentReportParameterSet(@Nonnull final ServiceHealthIssueIncidentReportParameterSetBuilder builder) { + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static ServiceHealthIssueIncidentReportParameterSetBuilder newBuilder() { + return new ServiceHealthIssueIncidentReportParameterSetBuilder(); + } + /** + * Fluent builder for the ServiceHealthIssueIncidentReportParameterSet + */ + public static final class ServiceHealthIssueIncidentReportParameterSetBuilder { + /** + * Instanciates a new ServiceHealthIssueIncidentReportParameterSetBuilder + */ + @Nullable + protected ServiceHealthIssueIncidentReportParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public ServiceHealthIssueIncidentReportParameterSet build() { + return new ServiceHealthIssueIncidentReportParameterSet(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/ServiceHealthIssuePost.java b/src/main/java/com/microsoft/graph/models/ServiceHealthIssuePost.java new file mode 100644 index 00000000000..d2dee70b313 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceHealthIssuePost.java @@ -0,0 +1,79 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; +import com.microsoft.graph.models.ItemBody; +import com.microsoft.graph.models.PostType; + + +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 Service Health Issue Post. + */ +public class ServiceHealthIssuePost implements IJsonBackedObject { + + /** the OData type of the object as returned by the service */ + @SerializedName("@odata.type") + @Expose + @Nullable + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + @Nonnull + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Created Date Time. + * The published time of the post. + */ + @SerializedName(value = "createdDateTime", alternate = {"CreatedDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime createdDateTime; + + /** + * The Description. + * The content of the service issue post. + */ + @SerializedName(value = "description", alternate = {"Description"}) + @Expose + @Nullable + public ItemBody description; + + /** + * The Post Type. + * The post type of the service issue historical post. Possible values are: regular, quick, strategic, unknownFutureValue. + */ + @SerializedName(value = "postType", alternate = {"PostType"}) + @Expose + @Nullable + public PostType postType; + + + /** + * 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/ServiceHealthOrigin.java b/src/main/java/com/microsoft/graph/models/ServiceHealthOrigin.java new file mode 100644 index 00000000000..3b928395e80 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceHealthOrigin.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 Service Health Origin. +*/ +public enum ServiceHealthOrigin +{ + /** + * microsoft + */ + MICROSOFT, + /** + * third Party + */ + THIRD_PARTY, + /** + * customer + */ + CUSTOMER, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For ServiceHealthOrigin values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/ServiceHealthStatus.java b/src/main/java/com/microsoft/graph/models/ServiceHealthStatus.java new file mode 100644 index 00000000000..1930da5d0cc --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceHealthStatus.java @@ -0,0 +1,90 @@ +// 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 Service Health Status. +*/ +public enum ServiceHealthStatus +{ + /** + * service Operational + */ + SERVICE_OPERATIONAL, + /** + * investigating + */ + INVESTIGATING, + /** + * restoring Service + */ + RESTORING_SERVICE, + /** + * verifying Service + */ + VERIFYING_SERVICE, + /** + * service Restored + */ + SERVICE_RESTORED, + /** + * post Incident Review Published + */ + POST_INCIDENT_REVIEW_PUBLISHED, + /** + * service Degradation + */ + SERVICE_DEGRADATION, + /** + * service Interruption + */ + SERVICE_INTERRUPTION, + /** + * extended Recovery + */ + EXTENDED_RECOVERY, + /** + * false Positive + */ + FALSE_POSITIVE, + /** + * investigation Suspended + */ + INVESTIGATION_SUSPENDED, + /** + * resolved + */ + RESOLVED, + /** + * mitigated External + */ + MITIGATED_EXTERNAL, + /** + * mitigated + */ + MITIGATED, + /** + * resolved External + */ + RESOLVED_EXTERNAL, + /** + * confirmed + */ + CONFIRMED, + /** + * reported + */ + REPORTED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For ServiceHealthStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/ServiceUpdateCategory.java b/src/main/java/com/microsoft/graph/models/ServiceUpdateCategory.java new file mode 100644 index 00000000000..ae6c8f91875 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceUpdateCategory.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 Service Update Category. +*/ +public enum ServiceUpdateCategory +{ + /** + * prevent Or Fix Issue + */ + PREVENT_OR_FIX_ISSUE, + /** + * plan For Change + */ + PLAN_FOR_CHANGE, + /** + * stay Informed + */ + STAY_INFORMED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For ServiceUpdateCategory values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/ServiceUpdateMessage.java b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessage.java new file mode 100644 index 00000000000..4b5561a2139 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessage.java @@ -0,0 +1,115 @@ +// 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.ItemBody; +import com.microsoft.graph.models.ServiceUpdateCategory; +import com.microsoft.graph.models.ServiceUpdateSeverity; +import com.microsoft.graph.models.ServiceUpdateMessageViewpoint; +import com.microsoft.graph.models.ServiceAnnouncementBase; + + +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 Service Update Message. + */ +public class ServiceUpdateMessage extends ServiceAnnouncementBase implements IJsonBackedObject { + + + /** + * The Action Required By Date Time. + * The expected deadline of the action for the message. + */ + @SerializedName(value = "actionRequiredByDateTime", alternate = {"ActionRequiredByDateTime"}) + @Expose + @Nullable + public java.time.OffsetDateTime actionRequiredByDateTime; + + /** + * The Body. + * The content type and content of the service message body. + */ + @SerializedName(value = "body", alternate = {"Body"}) + @Expose + @Nullable + public ItemBody body; + + /** + * The Category. + * The service message category. Possible values are: preventOrFixIssue, planForChange, stayInformed, unknownFutureValue. + */ + @SerializedName(value = "category", alternate = {"Category"}) + @Expose + @Nullable + public ServiceUpdateCategory category; + + /** + * The Is Major Change. + * Indicates whether the message describes a major update for the service. + */ + @SerializedName(value = "isMajorChange", alternate = {"IsMajorChange"}) + @Expose + @Nullable + public Boolean isMajorChange; + + /** + * The Services. + * The affected services by the service message. + */ + @SerializedName(value = "services", alternate = {"Services"}) + @Expose + @Nullable + public java.util.List services; + + /** + * The Severity. + * The severity of the service message. Possible values are: normal, high, critical, unknownFutureValue. + */ + @SerializedName(value = "severity", alternate = {"Severity"}) + @Expose + @Nullable + public ServiceUpdateSeverity severity; + + /** + * The Tags. + * A collection of tags for the service message. + */ + @SerializedName(value = "tags", alternate = {"Tags"}) + @Expose + @Nullable + public java.util.List tags; + + /** + * The View Point. + * Represents user view points data of the service message. + */ + @SerializedName(value = "viewPoint", alternate = {"ViewPoint"}) + @Expose + @Nullable + public ServiceUpdateMessageViewpoint viewPoint; + + + /** + * 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/ServiceUpdateMessageArchiveParameterSet.java b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageArchiveParameterSet.java new file mode 100644 index 00000000000..8e7c45c5d91 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageArchiveParameterSet.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.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 Service Update Message Archive Parameter Set. + */ +public class ServiceUpdateMessageArchiveParameterSet { + /** + * The message Ids. + * + */ + @SerializedName(value = "messageIds", alternate = {"MessageIds"}) + @Expose + @Nullable + public java.util.List messageIds; + + + /** + * Instiaciates a new ServiceUpdateMessageArchiveParameterSet + */ + public ServiceUpdateMessageArchiveParameterSet() {} + /** + * Instiaciates a new ServiceUpdateMessageArchiveParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected ServiceUpdateMessageArchiveParameterSet(@Nonnull final ServiceUpdateMessageArchiveParameterSetBuilder builder) { + this.messageIds = builder.messageIds; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static ServiceUpdateMessageArchiveParameterSetBuilder newBuilder() { + return new ServiceUpdateMessageArchiveParameterSetBuilder(); + } + /** + * Fluent builder for the ServiceUpdateMessageArchiveParameterSet + */ + public static final class ServiceUpdateMessageArchiveParameterSetBuilder { + /** + * The messageIds parameter value + */ + @Nullable + protected java.util.List messageIds; + /** + * Sets the MessageIds + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public ServiceUpdateMessageArchiveParameterSetBuilder withMessageIds(@Nullable final java.util.List val) { + this.messageIds = val; + return this; + } + /** + * Instanciates a new ServiceUpdateMessageArchiveParameterSetBuilder + */ + @Nullable + protected ServiceUpdateMessageArchiveParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public ServiceUpdateMessageArchiveParameterSet build() { + return new ServiceUpdateMessageArchiveParameterSet(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.messageIds != null) { + result.add(new com.microsoft.graph.options.FunctionOption("messageIds", messageIds)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageFavoriteParameterSet.java b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageFavoriteParameterSet.java new file mode 100644 index 00000000000..15a1cb022b9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageFavoriteParameterSet.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.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 Service Update Message Favorite Parameter Set. + */ +public class ServiceUpdateMessageFavoriteParameterSet { + /** + * The message Ids. + * + */ + @SerializedName(value = "messageIds", alternate = {"MessageIds"}) + @Expose + @Nullable + public java.util.List messageIds; + + + /** + * Instiaciates a new ServiceUpdateMessageFavoriteParameterSet + */ + public ServiceUpdateMessageFavoriteParameterSet() {} + /** + * Instiaciates a new ServiceUpdateMessageFavoriteParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected ServiceUpdateMessageFavoriteParameterSet(@Nonnull final ServiceUpdateMessageFavoriteParameterSetBuilder builder) { + this.messageIds = builder.messageIds; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static ServiceUpdateMessageFavoriteParameterSetBuilder newBuilder() { + return new ServiceUpdateMessageFavoriteParameterSetBuilder(); + } + /** + * Fluent builder for the ServiceUpdateMessageFavoriteParameterSet + */ + public static final class ServiceUpdateMessageFavoriteParameterSetBuilder { + /** + * The messageIds parameter value + */ + @Nullable + protected java.util.List messageIds; + /** + * Sets the MessageIds + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public ServiceUpdateMessageFavoriteParameterSetBuilder withMessageIds(@Nullable final java.util.List val) { + this.messageIds = val; + return this; + } + /** + * Instanciates a new ServiceUpdateMessageFavoriteParameterSetBuilder + */ + @Nullable + protected ServiceUpdateMessageFavoriteParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public ServiceUpdateMessageFavoriteParameterSet build() { + return new ServiceUpdateMessageFavoriteParameterSet(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.messageIds != null) { + result.add(new com.microsoft.graph.options.FunctionOption("messageIds", messageIds)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageMarkReadParameterSet.java b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageMarkReadParameterSet.java new file mode 100644 index 00000000000..080e250e5dd --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageMarkReadParameterSet.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.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 Service Update Message Mark Read Parameter Set. + */ +public class ServiceUpdateMessageMarkReadParameterSet { + /** + * The message Ids. + * + */ + @SerializedName(value = "messageIds", alternate = {"MessageIds"}) + @Expose + @Nullable + public java.util.List messageIds; + + + /** + * Instiaciates a new ServiceUpdateMessageMarkReadParameterSet + */ + public ServiceUpdateMessageMarkReadParameterSet() {} + /** + * Instiaciates a new ServiceUpdateMessageMarkReadParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected ServiceUpdateMessageMarkReadParameterSet(@Nonnull final ServiceUpdateMessageMarkReadParameterSetBuilder builder) { + this.messageIds = builder.messageIds; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static ServiceUpdateMessageMarkReadParameterSetBuilder newBuilder() { + return new ServiceUpdateMessageMarkReadParameterSetBuilder(); + } + /** + * Fluent builder for the ServiceUpdateMessageMarkReadParameterSet + */ + public static final class ServiceUpdateMessageMarkReadParameterSetBuilder { + /** + * The messageIds parameter value + */ + @Nullable + protected java.util.List messageIds; + /** + * Sets the MessageIds + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public ServiceUpdateMessageMarkReadParameterSetBuilder withMessageIds(@Nullable final java.util.List val) { + this.messageIds = val; + return this; + } + /** + * Instanciates a new ServiceUpdateMessageMarkReadParameterSetBuilder + */ + @Nullable + protected ServiceUpdateMessageMarkReadParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public ServiceUpdateMessageMarkReadParameterSet build() { + return new ServiceUpdateMessageMarkReadParameterSet(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.messageIds != null) { + result.add(new com.microsoft.graph.options.FunctionOption("messageIds", messageIds)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageMarkUnreadParameterSet.java b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageMarkUnreadParameterSet.java new file mode 100644 index 00000000000..f5489c59480 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageMarkUnreadParameterSet.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.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 Service Update Message Mark Unread Parameter Set. + */ +public class ServiceUpdateMessageMarkUnreadParameterSet { + /** + * The message Ids. + * + */ + @SerializedName(value = "messageIds", alternate = {"MessageIds"}) + @Expose + @Nullable + public java.util.List messageIds; + + + /** + * Instiaciates a new ServiceUpdateMessageMarkUnreadParameterSet + */ + public ServiceUpdateMessageMarkUnreadParameterSet() {} + /** + * Instiaciates a new ServiceUpdateMessageMarkUnreadParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected ServiceUpdateMessageMarkUnreadParameterSet(@Nonnull final ServiceUpdateMessageMarkUnreadParameterSetBuilder builder) { + this.messageIds = builder.messageIds; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static ServiceUpdateMessageMarkUnreadParameterSetBuilder newBuilder() { + return new ServiceUpdateMessageMarkUnreadParameterSetBuilder(); + } + /** + * Fluent builder for the ServiceUpdateMessageMarkUnreadParameterSet + */ + public static final class ServiceUpdateMessageMarkUnreadParameterSetBuilder { + /** + * The messageIds parameter value + */ + @Nullable + protected java.util.List messageIds; + /** + * Sets the MessageIds + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public ServiceUpdateMessageMarkUnreadParameterSetBuilder withMessageIds(@Nullable final java.util.List val) { + this.messageIds = val; + return this; + } + /** + * Instanciates a new ServiceUpdateMessageMarkUnreadParameterSetBuilder + */ + @Nullable + protected ServiceUpdateMessageMarkUnreadParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public ServiceUpdateMessageMarkUnreadParameterSet build() { + return new ServiceUpdateMessageMarkUnreadParameterSet(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.messageIds != null) { + result.add(new com.microsoft.graph.options.FunctionOption("messageIds", messageIds)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageUnarchiveParameterSet.java b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageUnarchiveParameterSet.java new file mode 100644 index 00000000000..5e431bca769 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageUnarchiveParameterSet.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.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 Service Update Message Unarchive Parameter Set. + */ +public class ServiceUpdateMessageUnarchiveParameterSet { + /** + * The message Ids. + * + */ + @SerializedName(value = "messageIds", alternate = {"MessageIds"}) + @Expose + @Nullable + public java.util.List messageIds; + + + /** + * Instiaciates a new ServiceUpdateMessageUnarchiveParameterSet + */ + public ServiceUpdateMessageUnarchiveParameterSet() {} + /** + * Instiaciates a new ServiceUpdateMessageUnarchiveParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected ServiceUpdateMessageUnarchiveParameterSet(@Nonnull final ServiceUpdateMessageUnarchiveParameterSetBuilder builder) { + this.messageIds = builder.messageIds; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static ServiceUpdateMessageUnarchiveParameterSetBuilder newBuilder() { + return new ServiceUpdateMessageUnarchiveParameterSetBuilder(); + } + /** + * Fluent builder for the ServiceUpdateMessageUnarchiveParameterSet + */ + public static final class ServiceUpdateMessageUnarchiveParameterSetBuilder { + /** + * The messageIds parameter value + */ + @Nullable + protected java.util.List messageIds; + /** + * Sets the MessageIds + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public ServiceUpdateMessageUnarchiveParameterSetBuilder withMessageIds(@Nullable final java.util.List val) { + this.messageIds = val; + return this; + } + /** + * Instanciates a new ServiceUpdateMessageUnarchiveParameterSetBuilder + */ + @Nullable + protected ServiceUpdateMessageUnarchiveParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public ServiceUpdateMessageUnarchiveParameterSet build() { + return new ServiceUpdateMessageUnarchiveParameterSet(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.messageIds != null) { + result.add(new com.microsoft.graph.options.FunctionOption("messageIds", messageIds)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageUnfavoriteParameterSet.java b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageUnfavoriteParameterSet.java new file mode 100644 index 00000000000..ded922e5aeb --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageUnfavoriteParameterSet.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.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 Service Update Message Unfavorite Parameter Set. + */ +public class ServiceUpdateMessageUnfavoriteParameterSet { + /** + * The message Ids. + * + */ + @SerializedName(value = "messageIds", alternate = {"MessageIds"}) + @Expose + @Nullable + public java.util.List messageIds; + + + /** + * Instiaciates a new ServiceUpdateMessageUnfavoriteParameterSet + */ + public ServiceUpdateMessageUnfavoriteParameterSet() {} + /** + * Instiaciates a new ServiceUpdateMessageUnfavoriteParameterSet + * @param builder builder bearing the parameters to initialize from + */ + protected ServiceUpdateMessageUnfavoriteParameterSet(@Nonnull final ServiceUpdateMessageUnfavoriteParameterSetBuilder builder) { + this.messageIds = builder.messageIds; + } + /** + * Gets a new builder for the body + * @return a new builder + */ + @Nonnull + public static ServiceUpdateMessageUnfavoriteParameterSetBuilder newBuilder() { + return new ServiceUpdateMessageUnfavoriteParameterSetBuilder(); + } + /** + * Fluent builder for the ServiceUpdateMessageUnfavoriteParameterSet + */ + public static final class ServiceUpdateMessageUnfavoriteParameterSetBuilder { + /** + * The messageIds parameter value + */ + @Nullable + protected java.util.List messageIds; + /** + * Sets the MessageIds + * @param val the value to set it to + * @return the current builder object + */ + @Nonnull + public ServiceUpdateMessageUnfavoriteParameterSetBuilder withMessageIds(@Nullable final java.util.List val) { + this.messageIds = val; + return this; + } + /** + * Instanciates a new ServiceUpdateMessageUnfavoriteParameterSetBuilder + */ + @Nullable + protected ServiceUpdateMessageUnfavoriteParameterSetBuilder(){} + /** + * Buils the resulting body object to be passed to the request + * @return the body object to pass to the request + */ + @Nonnull + public ServiceUpdateMessageUnfavoriteParameterSet build() { + return new ServiceUpdateMessageUnfavoriteParameterSet(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.messageIds != null) { + result.add(new com.microsoft.graph.options.FunctionOption("messageIds", messageIds)); + } + return result; + } +} diff --git a/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageViewpoint.java b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageViewpoint.java new file mode 100644 index 00000000000..c3a0a9e5cb5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceUpdateMessageViewpoint.java @@ -0,0 +1,77 @@ +// Template Source: BaseEntity.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.models; +import com.microsoft.graph.serializer.ISerializer; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.AdditionalDataManager; +import java.util.EnumSet; + + +import com.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 Service Update Message Viewpoint. + */ +public class ServiceUpdateMessageViewpoint 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 Is Archived. + * Indicates whether the user archived the message. + */ + @SerializedName(value = "isArchived", alternate = {"IsArchived"}) + @Expose + @Nullable + public Boolean isArchived; + + /** + * The Is Favorited. + * Indicates whether the user marked the message as favorite. + */ + @SerializedName(value = "isFavorited", alternate = {"IsFavorited"}) + @Expose + @Nullable + public Boolean isFavorited; + + /** + * The Is Read. + * Indicates whether the user read the message. + */ + @SerializedName(value = "isRead", alternate = {"IsRead"}) + @Expose + @Nullable + public Boolean isRead; + + + /** + * 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/ServiceUpdateSeverity.java b/src/main/java/com/microsoft/graph/models/ServiceUpdateSeverity.java new file mode 100644 index 00000000000..4beeae88d22 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/ServiceUpdateSeverity.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 Service Update Severity. +*/ +public enum ServiceUpdateSeverity +{ + /** + * normal + */ + NORMAL, + /** + * high + */ + HIGH, + /** + * critical + */ + CRITICAL, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For ServiceUpdateSeverity values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/SocialIdentityProvider.java b/src/main/java/com/microsoft/graph/models/SocialIdentityProvider.java index 8f59c366117..33693d1eae2 100644 --- a/src/main/java/com/microsoft/graph/models/SocialIdentityProvider.java +++ b/src/main/java/com/microsoft/graph/models/SocialIdentityProvider.java @@ -36,7 +36,7 @@ public class SocialIdentityProvider extends IdentityProviderBase implements IJso /** * The Client Secret. - * The client secret for the application that is obtained when the application is registered with the identity provider. This is write-only. A read operation returns '****'. Required. + * The client secret for the application that is obtained when the application is registered with the identity provider. This is write-only. A read operation returns ****. Required. */ @SerializedName(value = "clientSecret", alternate = {"ClientSecret"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/TeamsAsyncOperation.java b/src/main/java/com/microsoft/graph/models/TeamsAsyncOperation.java index 0d973c567ba..dc8d51fdee0 100644 --- a/src/main/java/com/microsoft/graph/models/TeamsAsyncOperation.java +++ b/src/main/java/com/microsoft/graph/models/TeamsAsyncOperation.java @@ -66,7 +66,7 @@ public class TeamsAsyncOperation extends Entity implements IJsonBackedObject { /** * The Operation Type. - * Denotes which type of operation is being described. + * Denotes the type of operation being described. */ @SerializedName(value = "operationType", alternate = {"OperationType"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/User.java b/src/main/java/com/microsoft/graph/models/User.java index eff5bdbb1b3..3f5d043cbea 100644 --- a/src/main/java/com/microsoft/graph/models/User.java +++ b/src/main/java/com/microsoft/graph/models/User.java @@ -349,7 +349,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Mail. - * The SMTP address for the user, for example, admin@contoso.com. Changes to this property will also update the user's proxyAddresses collection to include the value as an SMTP address. While this property can contain accent characters, using them can cause access issues with other Microsoft applications for the user. Supports $filter (eq, ne, NOT, ge, le, in, startsWith, endsWith). + * The SMTP address for the user, for example, admin@contoso.com. Changes to this property will also update the user's proxyAddresses collection to include the value as an SMTP address. For Azure AD B2C accounts, this property can be updated up to only ten times with unique SMTP addresses. This property cannot contain accent characters. Supports $filter (eq, ne, NOT, ge, le, in, startsWith, endsWith). */ @SerializedName(value = "mail", alternate = {"Mail"}) @Expose @@ -475,7 +475,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Other Mails. - * A list of additional email addresses for the user; for example: ['bob@contoso.com', 'Robert@fabrikam.com'].NOTE: While this property can contain accent characters, they can cause access issues to first-party applications for the user.Supports $filter (eq, NOT, ge, le, in, startsWith). + * A list of additional email addresses for the user; for example: ['bob@contoso.com', 'Robert@fabrikam.com'].NOTE: This property cannot contain accent characters.Supports $filter (eq, NOT, ge, le, in, startsWith). */ @SerializedName(value = "otherMails", alternate = {"OtherMails"}) @Expose @@ -529,7 +529,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Proxy Addresses. - * For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. Read-only, Not nullable. Supports $filter (eq, NOT, ge, le, startsWith). + * For example: ['SMTP: bob@contoso.com', 'smtp: bob@sales.contoso.com']. For Azure AD B2C accounts, this property has a limit of ten unique addresses. Read-only, Not nullable. Supports $filter (eq, NOT, ge, le, startsWith). */ @SerializedName(value = "proxyAddresses", alternate = {"ProxyAddresses"}) @Expose @@ -592,7 +592,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The User Principal Name. - * The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: While this property can contain accent characters, they can cause access issues to first-party applications for the user. Supports $filter (eq, ne, NOT, ge, le, in, startsWith, endsWith) and $orderBy. + * The user principal name (UPN) of the user. The UPN is an Internet-style login name for the user based on the Internet standard RFC 822. By convention, this should map to the user's email name. The general format is alias@domain, where domain must be present in the tenant's collection of verified domains. This property is required when a user is created. The verified domains for the tenant can be accessed from the verifiedDomains property of organization.NOTE: This property cannot contain accent characters. Supports $filter (eq, ne, NOT, ge, le, in, startsWith, endsWith) and $orderBy. */ @SerializedName(value = "userPrincipalName", alternate = {"UserPrincipalName"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/VolumeType.java b/src/main/java/com/microsoft/graph/models/VolumeType.java new file mode 100644 index 00000000000..4b7e28c0add --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/VolumeType.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 Volume Type. +*/ +public enum VolumeType +{ + /** + * operating System Volume + */ + OPERATING_SYSTEM_VOLUME, + /** + * fixed Data Volume + */ + FIXED_DATA_VOLUME, + /** + * removable Data Volume + */ + REMOVABLE_DATA_VOLUME, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For VolumeType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/WorkforceIntegration.java b/src/main/java/com/microsoft/graph/models/WorkforceIntegration.java index 2dfda7f2fbe..c7004666dec 100644 --- a/src/main/java/com/microsoft/graph/models/WorkforceIntegration.java +++ b/src/main/java/com/microsoft/graph/models/WorkforceIntegration.java @@ -65,7 +65,7 @@ public class WorkforceIntegration extends ChangeTrackedEntity implements IJsonBa /** * The Supported Entities. - * This property will replace supports in v1.0. We recommend that you use this property instead of supports. The supports property will still be supported in beta for the time being. Possible values are none, shift, swapRequest, openshift, openShiftRequest, userShiftPreferences, offerShiftRequest, timeCard, timeOffReason, timeOff, timeOffRequest and unknownFutureValue. If selecting more than one value, all values must start with the first letter in uppercase. + * This property has replaced supports in v1.0. We recommend that you use this property instead of supports. The supports property is still supported in beta for the time being. The possible values are: none, shift, swapRequest, openshift, openShiftRequest, userShiftPreferences, offerShiftRequest, unknownFutureValue, timeCard, timeOffReason, timeOff, timeOffRequest. Note that you must use the Prefer: include-unknown-enum-members request header to get the following values in this evolvable enum: timeCard, timeOffReason, timeOff, timeOffRequest. If selecting more than one value, all values must start with the first letter in uppercase. */ @SerializedName(value = "supportedEntities", alternate = {"SupportedEntities"}) @Expose diff --git a/src/main/java/com/microsoft/graph/requests/AdminRequest.java b/src/main/java/com/microsoft/graph/requests/AdminRequest.java new file mode 100644 index 00000000000..386b9df4d43 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AdminRequest.java @@ -0,0 +1,174 @@ +// 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.Admin; +import com.microsoft.graph.requests.ServiceAnnouncementRequestBuilder; +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 Admin Request. + */ +public class AdminRequest extends BaseRequest { + + /** + * The request for the Admin + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AdminRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Admin.class); + } + + /** + * Gets the Admin from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Admin from the service + * + * @return the Admin from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Admin 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 Admin delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this Admin with a source + * + * @param sourceAdmin the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final Admin sourceAdmin) { + return sendAsync(HttpMethod.PATCH, sourceAdmin); + } + + /** + * Patches this Admin with a source + * + * @param sourceAdmin the source object with updates + * @return the updated Admin + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Admin patch(@Nonnull final Admin sourceAdmin) throws ClientException { + return send(HttpMethod.PATCH, sourceAdmin); + } + + /** + * Creates a Admin with a new object + * + * @param newAdmin the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Admin newAdmin) { + return sendAsync(HttpMethod.POST, newAdmin); + } + + /** + * Creates a Admin with a new object + * + * @param newAdmin the new object to create + * @return the created Admin + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Admin post(@Nonnull final Admin newAdmin) throws ClientException { + return send(HttpMethod.POST, newAdmin); + } + + /** + * Creates a Admin with a new object + * + * @param newAdmin the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Admin newAdmin) { + return sendAsync(HttpMethod.PUT, newAdmin); + } + + /** + * Creates a Admin with a new object + * + * @param newAdmin the object to create/update + * @return the created Admin + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Admin put(@Nonnull final Admin newAdmin) throws ClientException { + return send(HttpMethod.PUT, newAdmin); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public AdminRequest 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 AdminRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/AdminRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/AdminRequestBuilder.java new file mode 100644 index 00000000000..9a852021f75 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/AdminRequestBuilder.java @@ -0,0 +1,70 @@ +// 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.Admin; +import com.microsoft.graph.requests.ServiceAnnouncementRequestBuilder; +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 Admin Request Builder. + */ +public class AdminRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the Admin + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AdminRequestBuilder(@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 AdminRequest instance + */ + @Nonnull + public AdminRequest 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 AdminRequest instance + */ + @Nonnull + public AdminRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.AdminRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for ServiceAnnouncement + * + * @return the ServiceAnnouncementRequestBuilder instance + */ + @Nonnull + public ServiceAnnouncementRequestBuilder serviceAnnouncement() { + return new ServiceAnnouncementRequestBuilder(getRequestUrlWithAdditionalSegment("serviceAnnouncement"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyCollectionPage.java b/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyCollectionPage.java new file mode 100644 index 00000000000..0164eb7fda8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyCollectionPage.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.BitlockerRecoveryKey; +import com.microsoft.graph.requests.BitlockerRecoveryKeyCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.BitlockerRecoveryKeyCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Bitlocker Recovery Key Collection Page. + */ +public class BitlockerRecoveryKeyCollectionPage extends BaseCollectionPage { + + /** + * A collection page for BitlockerRecoveryKey + * + * @param response the serialized BitlockerRecoveryKeyCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public BitlockerRecoveryKeyCollectionPage(@Nonnull final BitlockerRecoveryKeyCollectionResponse response, @Nonnull final BitlockerRecoveryKeyCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for BitlockerRecoveryKey + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public BitlockerRecoveryKeyCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final BitlockerRecoveryKeyCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyCollectionRequest.java new file mode 100644 index 00000000000..c719e8b8d07 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyCollectionRequest.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.Bitlocker; +import com.microsoft.graph.models.BitlockerRecoveryKey; +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.BitlockerRecoveryKeyCollectionResponse; +import com.microsoft.graph.requests.BitlockerRecoveryKeyCollectionRequestBuilder; +import com.microsoft.graph.requests.BitlockerRecoveryKeyCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Bitlocker Recovery Key Collection Request. + */ +public class BitlockerRecoveryKeyCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of BitlockerRecoveryKey + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public BitlockerRecoveryKeyCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, BitlockerRecoveryKeyCollectionResponse.class, BitlockerRecoveryKeyCollectionPage.class, BitlockerRecoveryKeyCollectionRequestBuilder.class); + } + + /** + * Creates a new BitlockerRecoveryKey + * @param newBitlockerRecoveryKey the BitlockerRecoveryKey to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final BitlockerRecoveryKey newBitlockerRecoveryKey) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new BitlockerRecoveryKeyRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newBitlockerRecoveryKey); + } + + /** + * Creates a new BitlockerRecoveryKey + * @param newBitlockerRecoveryKey the BitlockerRecoveryKey to create + * @return the newly created object + */ + @Nonnull + public BitlockerRecoveryKey post(@Nonnull final BitlockerRecoveryKey newBitlockerRecoveryKey) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new BitlockerRecoveryKeyRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newBitlockerRecoveryKey); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public BitlockerRecoveryKeyCollectionRequest 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 BitlockerRecoveryKeyCollectionRequest 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 BitlockerRecoveryKeyCollectionRequest 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 BitlockerRecoveryKeyCollectionRequest 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 BitlockerRecoveryKeyCollectionRequest 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 BitlockerRecoveryKeyCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public BitlockerRecoveryKeyCollectionRequest 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 BitlockerRecoveryKeyCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public BitlockerRecoveryKeyCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyCollectionRequestBuilder.java new file mode 100644 index 00000000000..3fd39c83790 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyCollectionRequestBuilder.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.Bitlocker; +import com.microsoft.graph.models.BitlockerRecoveryKey; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.BitlockerRecoveryKeyCollectionRequestBuilder; +import com.microsoft.graph.requests.BitlockerRecoveryKeyRequestBuilder; +import com.microsoft.graph.requests.BitlockerRecoveryKeyCollectionRequest; +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 Bitlocker Recovery Key Collection Request Builder. + */ +public class BitlockerRecoveryKeyCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of Bitlocker + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public BitlockerRecoveryKeyCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, BitlockerRecoveryKeyRequestBuilder.class, BitlockerRecoveryKeyCollectionRequest.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/BitlockerRecoveryKeyCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyCollectionResponse.java new file mode 100644 index 00000000000..db8d52c92f1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyCollectionResponse.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.BitlockerRecoveryKey; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Bitlocker Recovery Key Collection Response. + */ +public class BitlockerRecoveryKeyCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyRequest.java b/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyRequest.java new file mode 100644 index 00000000000..22740241ff7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyRequest.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.BitlockerRecoveryKey; +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 Bitlocker Recovery Key Request. + */ +public class BitlockerRecoveryKeyRequest extends BaseRequest { + + /** + * The request for the BitlockerRecoveryKey + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public BitlockerRecoveryKeyRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, BitlockerRecoveryKey.class); + } + + /** + * Gets the BitlockerRecoveryKey from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the BitlockerRecoveryKey from the service + * + * @return the BitlockerRecoveryKey from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public BitlockerRecoveryKey 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 BitlockerRecoveryKey delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this BitlockerRecoveryKey with a source + * + * @param sourceBitlockerRecoveryKey the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final BitlockerRecoveryKey sourceBitlockerRecoveryKey) { + return sendAsync(HttpMethod.PATCH, sourceBitlockerRecoveryKey); + } + + /** + * Patches this BitlockerRecoveryKey with a source + * + * @param sourceBitlockerRecoveryKey the source object with updates + * @return the updated BitlockerRecoveryKey + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public BitlockerRecoveryKey patch(@Nonnull final BitlockerRecoveryKey sourceBitlockerRecoveryKey) throws ClientException { + return send(HttpMethod.PATCH, sourceBitlockerRecoveryKey); + } + + /** + * Creates a BitlockerRecoveryKey with a new object + * + * @param newBitlockerRecoveryKey the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final BitlockerRecoveryKey newBitlockerRecoveryKey) { + return sendAsync(HttpMethod.POST, newBitlockerRecoveryKey); + } + + /** + * Creates a BitlockerRecoveryKey with a new object + * + * @param newBitlockerRecoveryKey the new object to create + * @return the created BitlockerRecoveryKey + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public BitlockerRecoveryKey post(@Nonnull final BitlockerRecoveryKey newBitlockerRecoveryKey) throws ClientException { + return send(HttpMethod.POST, newBitlockerRecoveryKey); + } + + /** + * Creates a BitlockerRecoveryKey with a new object + * + * @param newBitlockerRecoveryKey the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final BitlockerRecoveryKey newBitlockerRecoveryKey) { + return sendAsync(HttpMethod.PUT, newBitlockerRecoveryKey); + } + + /** + * Creates a BitlockerRecoveryKey with a new object + * + * @param newBitlockerRecoveryKey the object to create/update + * @return the created BitlockerRecoveryKey + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public BitlockerRecoveryKey put(@Nonnull final BitlockerRecoveryKey newBitlockerRecoveryKey) throws ClientException { + return send(HttpMethod.PUT, newBitlockerRecoveryKey); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public BitlockerRecoveryKeyRequest 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 BitlockerRecoveryKeyRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyRequestBuilder.java new file mode 100644 index 00000000000..e18cccdb2cb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/BitlockerRecoveryKeyRequestBuilder.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.BitlockerRecoveryKey; +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 Bitlocker Recovery Key Request Builder. + */ +public class BitlockerRecoveryKeyRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the BitlockerRecoveryKey + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public BitlockerRecoveryKeyRequestBuilder(@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 BitlockerRecoveryKeyRequest instance + */ + @Nonnull + public BitlockerRecoveryKeyRequest 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 BitlockerRecoveryKeyRequest instance + */ + @Nonnull + public BitlockerRecoveryKeyRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.BitlockerRecoveryKeyRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/BitlockerRequest.java b/src/main/java/com/microsoft/graph/requests/BitlockerRequest.java new file mode 100644 index 00000000000..2506a231376 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/BitlockerRequest.java @@ -0,0 +1,175 @@ +// 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.Bitlocker; +import com.microsoft.graph.requests.BitlockerRecoveryKeyCollectionRequestBuilder; +import com.microsoft.graph.requests.BitlockerRecoveryKeyRequestBuilder; +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 Bitlocker Request. + */ +public class BitlockerRequest extends BaseRequest { + + /** + * The request for the Bitlocker + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public BitlockerRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Bitlocker.class); + } + + /** + * Gets the Bitlocker from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the Bitlocker from the service + * + * @return the Bitlocker from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Bitlocker 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 Bitlocker delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this Bitlocker with a source + * + * @param sourceBitlocker the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final Bitlocker sourceBitlocker) { + return sendAsync(HttpMethod.PATCH, sourceBitlocker); + } + + /** + * Patches this Bitlocker with a source + * + * @param sourceBitlocker the source object with updates + * @return the updated Bitlocker + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Bitlocker patch(@Nonnull final Bitlocker sourceBitlocker) throws ClientException { + return send(HttpMethod.PATCH, sourceBitlocker); + } + + /** + * Creates a Bitlocker with a new object + * + * @param newBitlocker the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final Bitlocker newBitlocker) { + return sendAsync(HttpMethod.POST, newBitlocker); + } + + /** + * Creates a Bitlocker with a new object + * + * @param newBitlocker the new object to create + * @return the created Bitlocker + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Bitlocker post(@Nonnull final Bitlocker newBitlocker) throws ClientException { + return send(HttpMethod.POST, newBitlocker); + } + + /** + * Creates a Bitlocker with a new object + * + * @param newBitlocker the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final Bitlocker newBitlocker) { + return sendAsync(HttpMethod.PUT, newBitlocker); + } + + /** + * Creates a Bitlocker with a new object + * + * @param newBitlocker the object to create/update + * @return the created Bitlocker + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public Bitlocker put(@Nonnull final Bitlocker newBitlocker) throws ClientException { + return send(HttpMethod.PUT, newBitlocker); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public BitlockerRequest 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 BitlockerRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/BitlockerRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/BitlockerRequestBuilder.java new file mode 100644 index 00000000000..955ccdd10e5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/BitlockerRequestBuilder.java @@ -0,0 +1,81 @@ +// 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.Bitlocker; +import com.microsoft.graph.requests.BitlockerRecoveryKeyCollectionRequestBuilder; +import com.microsoft.graph.requests.BitlockerRecoveryKeyRequestBuilder; +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 Bitlocker Request Builder. + */ +public class BitlockerRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the Bitlocker + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public BitlockerRequestBuilder(@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 BitlockerRequest instance + */ + @Nonnull + public BitlockerRequest 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 BitlockerRequest instance + */ + @Nonnull + public BitlockerRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.BitlockerRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the BitlockerRecoveryKey collection + * + * @return the collection request builder + */ + @Nonnull + public BitlockerRecoveryKeyCollectionRequestBuilder recoveryKeys() { + return new BitlockerRecoveryKeyCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("recoveryKeys"), getClient(), null); + } + + /** + * Gets a request builder for the BitlockerRecoveryKey item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public BitlockerRecoveryKeyRequestBuilder recoveryKeys(@Nonnull final String id) { + return new BitlockerRecoveryKeyRequestBuilder(getRequestUrlWithAdditionalSegment("recoveryKeys") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/GraphServiceClient.java b/src/main/java/com/microsoft/graph/requests/GraphServiceClient.java index f0f3afd3727..618048aa099 100644 --- a/src/main/java/com/microsoft/graph/requests/GraphServiceClient.java +++ b/src/main/java/com/microsoft/graph/requests/GraphServiceClient.java @@ -98,6 +98,7 @@ import com.microsoft.graph.requests.DeviceAppManagementRequestBuilder; import com.microsoft.graph.requests.DeviceManagementRequestBuilder; import com.microsoft.graph.requests.ReportRootRequestBuilder; +import com.microsoft.graph.requests.AdminRequestBuilder; import com.microsoft.graph.requests.SearchEntityRequestBuilder; import com.microsoft.graph.requests.PlannerRequestBuilder; import com.microsoft.graph.requests.PrintRequestBuilder; @@ -1221,6 +1222,16 @@ public ReportRootRequestBuilder reports() { return new ReportRootRequestBuilder(getServiceRoot() + "/reports", this, null); } + /** + * Gets the GraphServiceRequestBuilder + * + * @return the Admin + */ + @Nonnull + public AdminRequestBuilder admin() { + return new AdminRequestBuilder(getServiceRoot() + "/admin", this, null); + } + /** * Gets the GraphServiceRequestBuilder * diff --git a/src/main/java/com/microsoft/graph/requests/InformationProtectionRequest.java b/src/main/java/com/microsoft/graph/requests/InformationProtectionRequest.java index 35f6bdddf5b..54154139556 100644 --- a/src/main/java/com/microsoft/graph/requests/InformationProtectionRequest.java +++ b/src/main/java/com/microsoft/graph/requests/InformationProtectionRequest.java @@ -8,6 +8,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.InformationProtection; +import com.microsoft.graph.requests.BitlockerRequestBuilder; import com.microsoft.graph.requests.ThreatAssessmentRequestCollectionRequestBuilder; import com.microsoft.graph.requests.ThreatAssessmentRequestRequestBuilder; import java.util.Arrays; diff --git a/src/main/java/com/microsoft/graph/requests/InformationProtectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/InformationProtectionRequestBuilder.java index de4bd38927d..85657b29137 100644 --- a/src/main/java/com/microsoft/graph/requests/InformationProtectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/InformationProtectionRequestBuilder.java @@ -8,6 +8,7 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.models.InformationProtection; +import com.microsoft.graph.requests.BitlockerRequestBuilder; import com.microsoft.graph.requests.ThreatAssessmentRequestCollectionRequestBuilder; import com.microsoft.graph.requests.ThreatAssessmentRequestRequestBuilder; import java.util.Arrays; @@ -58,6 +59,16 @@ public InformationProtectionRequest buildRequest(@Nonnull final java.util.List { + + /** + * The request for the ServiceAnnouncementBase + * + * @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 ServiceAnnouncementBaseRequest(@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 ServiceAnnouncementBase + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceAnnouncementBaseRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ServiceAnnouncementBase.class); + } + + /** + * Gets the ServiceAnnouncementBase from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the ServiceAnnouncementBase from the service + * + * @return the ServiceAnnouncementBase from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceAnnouncementBase 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 ServiceAnnouncementBase delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this ServiceAnnouncementBase with a source + * + * @param sourceServiceAnnouncementBase the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final ServiceAnnouncementBase sourceServiceAnnouncementBase) { + return sendAsync(HttpMethod.PATCH, sourceServiceAnnouncementBase); + } + + /** + * Patches this ServiceAnnouncementBase with a source + * + * @param sourceServiceAnnouncementBase the source object with updates + * @return the updated ServiceAnnouncementBase + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceAnnouncementBase patch(@Nonnull final ServiceAnnouncementBase sourceServiceAnnouncementBase) throws ClientException { + return send(HttpMethod.PATCH, sourceServiceAnnouncementBase); + } + + /** + * Creates a ServiceAnnouncementBase with a new object + * + * @param newServiceAnnouncementBase the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final ServiceAnnouncementBase newServiceAnnouncementBase) { + return sendAsync(HttpMethod.POST, newServiceAnnouncementBase); + } + + /** + * Creates a ServiceAnnouncementBase with a new object + * + * @param newServiceAnnouncementBase the new object to create + * @return the created ServiceAnnouncementBase + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceAnnouncementBase post(@Nonnull final ServiceAnnouncementBase newServiceAnnouncementBase) throws ClientException { + return send(HttpMethod.POST, newServiceAnnouncementBase); + } + + /** + * Creates a ServiceAnnouncementBase with a new object + * + * @param newServiceAnnouncementBase the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final ServiceAnnouncementBase newServiceAnnouncementBase) { + return sendAsync(HttpMethod.PUT, newServiceAnnouncementBase); + } + + /** + * Creates a ServiceAnnouncementBase with a new object + * + * @param newServiceAnnouncementBase the object to create/update + * @return the created ServiceAnnouncementBase + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceAnnouncementBase put(@Nonnull final ServiceAnnouncementBase newServiceAnnouncementBase) throws ClientException { + return send(HttpMethod.PUT, newServiceAnnouncementBase); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ServiceAnnouncementBaseRequest 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 ServiceAnnouncementBaseRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/ServiceAnnouncementBaseRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceAnnouncementBaseRequestBuilder.java new file mode 100644 index 00000000000..4f07919c5a0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceAnnouncementBaseRequestBuilder.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.ServiceAnnouncementBase; +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 Service Announcement Base Request Builder. + */ +public class ServiceAnnouncementBaseRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the ServiceAnnouncementBase + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceAnnouncementBaseRequestBuilder(@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 ServiceAnnouncementBaseRequest instance + */ + @Nonnull + public ServiceAnnouncementBaseRequest 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 ServiceAnnouncementBaseRequest instance + */ + @Nonnull + public ServiceAnnouncementBaseRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.ServiceAnnouncementBaseRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceAnnouncementRequest.java b/src/main/java/com/microsoft/graph/requests/ServiceAnnouncementRequest.java new file mode 100644 index 00000000000..9472f23f1c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceAnnouncementRequest.java @@ -0,0 +1,179 @@ +// 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.ServiceAnnouncement; +import com.microsoft.graph.requests.ServiceHealthCollectionRequestBuilder; +import com.microsoft.graph.requests.ServiceHealthRequestBuilder; +import com.microsoft.graph.requests.ServiceHealthIssueCollectionRequestBuilder; +import com.microsoft.graph.requests.ServiceHealthIssueRequestBuilder; +import com.microsoft.graph.requests.ServiceUpdateMessageCollectionRequestBuilder; +import com.microsoft.graph.requests.ServiceUpdateMessageRequestBuilder; +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 Service Announcement Request. + */ +public class ServiceAnnouncementRequest extends BaseRequest { + + /** + * The request for the ServiceAnnouncement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceAnnouncementRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ServiceAnnouncement.class); + } + + /** + * Gets the ServiceAnnouncement from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the ServiceAnnouncement from the service + * + * @return the ServiceAnnouncement from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceAnnouncement 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 ServiceAnnouncement delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this ServiceAnnouncement with a source + * + * @param sourceServiceAnnouncement the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final ServiceAnnouncement sourceServiceAnnouncement) { + return sendAsync(HttpMethod.PATCH, sourceServiceAnnouncement); + } + + /** + * Patches this ServiceAnnouncement with a source + * + * @param sourceServiceAnnouncement the source object with updates + * @return the updated ServiceAnnouncement + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceAnnouncement patch(@Nonnull final ServiceAnnouncement sourceServiceAnnouncement) throws ClientException { + return send(HttpMethod.PATCH, sourceServiceAnnouncement); + } + + /** + * Creates a ServiceAnnouncement with a new object + * + * @param newServiceAnnouncement the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final ServiceAnnouncement newServiceAnnouncement) { + return sendAsync(HttpMethod.POST, newServiceAnnouncement); + } + + /** + * Creates a ServiceAnnouncement with a new object + * + * @param newServiceAnnouncement the new object to create + * @return the created ServiceAnnouncement + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceAnnouncement post(@Nonnull final ServiceAnnouncement newServiceAnnouncement) throws ClientException { + return send(HttpMethod.POST, newServiceAnnouncement); + } + + /** + * Creates a ServiceAnnouncement with a new object + * + * @param newServiceAnnouncement the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final ServiceAnnouncement newServiceAnnouncement) { + return sendAsync(HttpMethod.PUT, newServiceAnnouncement); + } + + /** + * Creates a ServiceAnnouncement with a new object + * + * @param newServiceAnnouncement the object to create/update + * @return the created ServiceAnnouncement + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceAnnouncement put(@Nonnull final ServiceAnnouncement newServiceAnnouncement) throws ClientException { + return send(HttpMethod.PUT, newServiceAnnouncement); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ServiceAnnouncementRequest 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 ServiceAnnouncementRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/ServiceAnnouncementRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceAnnouncementRequestBuilder.java new file mode 100644 index 00000000000..bd9c7d818c5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceAnnouncementRequestBuilder.java @@ -0,0 +1,125 @@ +// 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.ServiceAnnouncement; +import com.microsoft.graph.requests.ServiceHealthCollectionRequestBuilder; +import com.microsoft.graph.requests.ServiceHealthRequestBuilder; +import com.microsoft.graph.requests.ServiceHealthIssueCollectionRequestBuilder; +import com.microsoft.graph.requests.ServiceHealthIssueRequestBuilder; +import com.microsoft.graph.requests.ServiceUpdateMessageCollectionRequestBuilder; +import com.microsoft.graph.requests.ServiceUpdateMessageRequestBuilder; +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 Service Announcement Request Builder. + */ +public class ServiceAnnouncementRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the ServiceAnnouncement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceAnnouncementRequestBuilder(@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 ServiceAnnouncementRequest instance + */ + @Nonnull + public ServiceAnnouncementRequest 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 ServiceAnnouncementRequest instance + */ + @Nonnull + public ServiceAnnouncementRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.ServiceAnnouncementRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the ServiceHealth collection + * + * @return the collection request builder + */ + @Nonnull + public ServiceHealthCollectionRequestBuilder healthOverviews() { + return new ServiceHealthCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("healthOverviews"), getClient(), null); + } + + /** + * Gets a request builder for the ServiceHealth item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public ServiceHealthRequestBuilder healthOverviews(@Nonnull final String id) { + return new ServiceHealthRequestBuilder(getRequestUrlWithAdditionalSegment("healthOverviews") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the ServiceHealthIssue collection + * + * @return the collection request builder + */ + @Nonnull + public ServiceHealthIssueCollectionRequestBuilder issues() { + return new ServiceHealthIssueCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("issues"), getClient(), null); + } + + /** + * Gets a request builder for the ServiceHealthIssue item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public ServiceHealthIssueRequestBuilder issues(@Nonnull final String id) { + return new ServiceHealthIssueRequestBuilder(getRequestUrlWithAdditionalSegment("issues") + "/" + id, getClient(), null); + } + /** + * Gets a request builder for the ServiceUpdateMessage collection + * + * @return the collection request builder + */ + @Nonnull + public ServiceUpdateMessageCollectionRequestBuilder messages() { + return new ServiceUpdateMessageCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("messages"), getClient(), null); + } + + /** + * Gets a request builder for the ServiceUpdateMessage item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public ServiceUpdateMessageRequestBuilder messages(@Nonnull final String id) { + return new ServiceUpdateMessageRequestBuilder(getRequestUrlWithAdditionalSegment("messages") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceHealthCollectionPage.java b/src/main/java/com/microsoft/graph/requests/ServiceHealthCollectionPage.java new file mode 100644 index 00000000000..d1f00c7e67f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceHealthCollectionPage.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.ServiceHealth; +import com.microsoft.graph.requests.ServiceHealthCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.ServiceHealthCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Health Collection Page. + */ +public class ServiceHealthCollectionPage extends BaseCollectionPage { + + /** + * A collection page for ServiceHealth + * + * @param response the serialized ServiceHealthCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public ServiceHealthCollectionPage(@Nonnull final ServiceHealthCollectionResponse response, @Nonnull final ServiceHealthCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for ServiceHealth + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public ServiceHealthCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final ServiceHealthCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceHealthCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/ServiceHealthCollectionRequest.java new file mode 100644 index 00000000000..ec97c2f03c1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceHealthCollectionRequest.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.ServiceAnnouncement; +import com.microsoft.graph.models.ServiceHealth; +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.ServiceHealthCollectionResponse; +import com.microsoft.graph.requests.ServiceHealthCollectionRequestBuilder; +import com.microsoft.graph.requests.ServiceHealthCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Health Collection Request. + */ +public class ServiceHealthCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of ServiceHealth + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceHealthCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ServiceHealthCollectionResponse.class, ServiceHealthCollectionPage.class, ServiceHealthCollectionRequestBuilder.class); + } + + /** + * Creates a new ServiceHealth + * @param newServiceHealth the ServiceHealth to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final ServiceHealth newServiceHealth) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new ServiceHealthRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newServiceHealth); + } + + /** + * Creates a new ServiceHealth + * @param newServiceHealth the ServiceHealth to create + * @return the newly created object + */ + @Nonnull + public ServiceHealth post(@Nonnull final ServiceHealth newServiceHealth) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new ServiceHealthRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newServiceHealth); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public ServiceHealthCollectionRequest 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 ServiceHealthCollectionRequest 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 ServiceHealthCollectionRequest 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 ServiceHealthCollectionRequest 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 ServiceHealthCollectionRequest 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 ServiceHealthCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public ServiceHealthCollectionRequest 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 ServiceHealthCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public ServiceHealthCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/ServiceHealthCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceHealthCollectionRequestBuilder.java new file mode 100644 index 00000000000..59c42d5abaf --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceHealthCollectionRequestBuilder.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.ServiceAnnouncement; +import com.microsoft.graph.models.ServiceHealth; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.ServiceHealthCollectionRequestBuilder; +import com.microsoft.graph.requests.ServiceHealthRequestBuilder; +import com.microsoft.graph.requests.ServiceHealthCollectionRequest; +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 Service Health Collection Request Builder. + */ +public class ServiceHealthCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ServiceAnnouncement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceHealthCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ServiceHealthRequestBuilder.class, ServiceHealthCollectionRequest.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/ServiceHealthCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/ServiceHealthCollectionResponse.java new file mode 100644 index 00000000000..3c5655806a8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceHealthCollectionResponse.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.ServiceHealth; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Health Collection Response. + */ +public class ServiceHealthCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueCollectionPage.java b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueCollectionPage.java new file mode 100644 index 00000000000..d96ee09409e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueCollectionPage.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.ServiceHealthIssue; +import com.microsoft.graph.requests.ServiceHealthIssueCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.ServiceHealthIssueCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Health Issue Collection Page. + */ +public class ServiceHealthIssueCollectionPage extends BaseCollectionPage { + + /** + * A collection page for ServiceHealthIssue + * + * @param response the serialized ServiceHealthIssueCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public ServiceHealthIssueCollectionPage(@Nonnull final ServiceHealthIssueCollectionResponse response, @Nonnull final ServiceHealthIssueCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for ServiceHealthIssue + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public ServiceHealthIssueCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final ServiceHealthIssueCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueCollectionRequest.java new file mode 100644 index 00000000000..1502f902ba0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueCollectionRequest.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.ServiceHealth; +import com.microsoft.graph.models.ServiceHealthIssue; +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.ServiceHealthIssueCollectionResponse; +import com.microsoft.graph.requests.ServiceHealthIssueCollectionRequestBuilder; +import com.microsoft.graph.requests.ServiceHealthIssueCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Health Issue Collection Request. + */ +public class ServiceHealthIssueCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of ServiceHealthIssue + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceHealthIssueCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ServiceHealthIssueCollectionResponse.class, ServiceHealthIssueCollectionPage.class, ServiceHealthIssueCollectionRequestBuilder.class); + } + + /** + * Creates a new ServiceHealthIssue + * @param newServiceHealthIssue the ServiceHealthIssue to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final ServiceHealthIssue newServiceHealthIssue) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new ServiceHealthIssueRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newServiceHealthIssue); + } + + /** + * Creates a new ServiceHealthIssue + * @param newServiceHealthIssue the ServiceHealthIssue to create + * @return the newly created object + */ + @Nonnull + public ServiceHealthIssue post(@Nonnull final ServiceHealthIssue newServiceHealthIssue) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new ServiceHealthIssueRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newServiceHealthIssue); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public ServiceHealthIssueCollectionRequest 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 ServiceHealthIssueCollectionRequest 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 ServiceHealthIssueCollectionRequest 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 ServiceHealthIssueCollectionRequest 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 ServiceHealthIssueCollectionRequest 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 ServiceHealthIssueCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public ServiceHealthIssueCollectionRequest 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 ServiceHealthIssueCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public ServiceHealthIssueCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueCollectionRequestBuilder.java new file mode 100644 index 00000000000..fb6ff167dc6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueCollectionRequestBuilder.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.ServiceHealth; +import com.microsoft.graph.models.ServiceHealthIssue; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.ServiceHealthIssueCollectionRequestBuilder; +import com.microsoft.graph.requests.ServiceHealthIssueRequestBuilder; +import com.microsoft.graph.requests.ServiceHealthIssueCollectionRequest; +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 Service Health Issue Collection Request Builder. + */ +public class ServiceHealthIssueCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ServiceHealth + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceHealthIssueCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ServiceHealthIssueRequestBuilder.class, ServiceHealthIssueCollectionRequest.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/ServiceHealthIssueCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueCollectionResponse.java new file mode 100644 index 00000000000..619031f4fdc --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueCollectionResponse.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.ServiceHealthIssue; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Health Issue Collection Response. + */ +public class ServiceHealthIssueCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueIncidentReportRequest.java b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueIncidentReportRequest.java new file mode 100644 index 00000000000..a797387141e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueIncidentReportRequest.java @@ -0,0 +1,79 @@ +// Template Source: BaseMethodRequest.java.tt +// ------------------------------------------------------------------------------ +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. +// ------------------------------------------------------------------------------ + +package com.microsoft.graph.requests; +import com.microsoft.graph.models.ServiceHealthIssue; +import com.microsoft.graph.requests.ServiceHealthIssueIncidentReportRequest; + +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 Service Health Issue Incident Report Request. + */ +public class ServiceHealthIssueIncidentReportRequest extends BaseRequest { + /** + * The request for this ServiceHealthIssueIncidentReport + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceHealthIssueIncidentReportRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, java.io.InputStream.class); + } + + /** + * Gets the java.io.InputStream + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the java.io.InputStream + * + * @return the java.io.InputStream + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public java.io.InputStream get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ServiceHealthIssueIncidentReportRequest 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 ServiceHealthIssueIncidentReportRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueIncidentReportRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueIncidentReportRequestBuilder.java new file mode 100644 index 00000000000..16944300d06 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueIncidentReportRequestBuilder.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.ServiceHealthIssueIncidentReportRequest; +import com.microsoft.graph.models.ServiceHealthIssue; + +import com.microsoft.graph.http.BaseFunctionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Health Issue Incident Report Request Builder. + */ +public class ServiceHealthIssueIncidentReportRequestBuilder extends BaseFunctionRequestBuilder { + + /** + * The request builder for this ServiceHealthIssueIncidentReport + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceHealthIssueIncidentReportRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the ServiceHealthIssueIncidentReportRequest + * + * @param requestOptions the options for the request + * @return the ServiceHealthIssueIncidentReportRequest instance + */ + @Nonnull + public ServiceHealthIssueIncidentReportRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the ServiceHealthIssueIncidentReportRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the ServiceHealthIssueIncidentReportRequest instance + */ + @Nonnull + public ServiceHealthIssueIncidentReportRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final ServiceHealthIssueIncidentReportRequest request = new ServiceHealthIssueIncidentReportRequest( + getRequestUrl(), + getClient(), + requestOptions); + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueRequest.java b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueRequest.java new file mode 100644 index 00000000000..4cdac319e57 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueRequest.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.ServiceHealthIssue; +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 Service Health Issue Request. + */ +public class ServiceHealthIssueRequest extends BaseRequest { + + /** + * The request for the ServiceHealthIssue + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceHealthIssueRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ServiceHealthIssue.class); + } + + /** + * Gets the ServiceHealthIssue from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the ServiceHealthIssue from the service + * + * @return the ServiceHealthIssue from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceHealthIssue 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 ServiceHealthIssue delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this ServiceHealthIssue with a source + * + * @param sourceServiceHealthIssue the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final ServiceHealthIssue sourceServiceHealthIssue) { + return sendAsync(HttpMethod.PATCH, sourceServiceHealthIssue); + } + + /** + * Patches this ServiceHealthIssue with a source + * + * @param sourceServiceHealthIssue the source object with updates + * @return the updated ServiceHealthIssue + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceHealthIssue patch(@Nonnull final ServiceHealthIssue sourceServiceHealthIssue) throws ClientException { + return send(HttpMethod.PATCH, sourceServiceHealthIssue); + } + + /** + * Creates a ServiceHealthIssue with a new object + * + * @param newServiceHealthIssue the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final ServiceHealthIssue newServiceHealthIssue) { + return sendAsync(HttpMethod.POST, newServiceHealthIssue); + } + + /** + * Creates a ServiceHealthIssue with a new object + * + * @param newServiceHealthIssue the new object to create + * @return the created ServiceHealthIssue + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceHealthIssue post(@Nonnull final ServiceHealthIssue newServiceHealthIssue) throws ClientException { + return send(HttpMethod.POST, newServiceHealthIssue); + } + + /** + * Creates a ServiceHealthIssue with a new object + * + * @param newServiceHealthIssue the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final ServiceHealthIssue newServiceHealthIssue) { + return sendAsync(HttpMethod.PUT, newServiceHealthIssue); + } + + /** + * Creates a ServiceHealthIssue with a new object + * + * @param newServiceHealthIssue the object to create/update + * @return the created ServiceHealthIssue + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceHealthIssue put(@Nonnull final ServiceHealthIssue newServiceHealthIssue) throws ClientException { + return send(HttpMethod.PUT, newServiceHealthIssue); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ServiceHealthIssueRequest 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 ServiceHealthIssueRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueRequestBuilder.java new file mode 100644 index 00000000000..5e0b42085bb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceHealthIssueRequestBuilder.java @@ -0,0 +1,68 @@ +// 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.ServiceHealthIssue; +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 Service Health Issue Request Builder. + */ +public class ServiceHealthIssueRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the ServiceHealthIssue + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceHealthIssueRequestBuilder(@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 ServiceHealthIssueRequest instance + */ + @Nonnull + public ServiceHealthIssueRequest 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 ServiceHealthIssueRequest instance + */ + @Nonnull + public ServiceHealthIssueRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.ServiceHealthIssueRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public ServiceHealthIssueIncidentReportRequestBuilder incidentReport() { + return new ServiceHealthIssueIncidentReportRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.incidentReport"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceHealthRequest.java b/src/main/java/com/microsoft/graph/requests/ServiceHealthRequest.java new file mode 100644 index 00000000000..6971fad2d15 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceHealthRequest.java @@ -0,0 +1,175 @@ +// 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.ServiceHealth; +import com.microsoft.graph.requests.ServiceHealthIssueCollectionRequestBuilder; +import com.microsoft.graph.requests.ServiceHealthIssueRequestBuilder; +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 Service Health Request. + */ +public class ServiceHealthRequest extends BaseRequest { + + /** + * The request for the ServiceHealth + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceHealthRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ServiceHealth.class); + } + + /** + * Gets the ServiceHealth from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the ServiceHealth from the service + * + * @return the ServiceHealth from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceHealth 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 ServiceHealth delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this ServiceHealth with a source + * + * @param sourceServiceHealth the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final ServiceHealth sourceServiceHealth) { + return sendAsync(HttpMethod.PATCH, sourceServiceHealth); + } + + /** + * Patches this ServiceHealth with a source + * + * @param sourceServiceHealth the source object with updates + * @return the updated ServiceHealth + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceHealth patch(@Nonnull final ServiceHealth sourceServiceHealth) throws ClientException { + return send(HttpMethod.PATCH, sourceServiceHealth); + } + + /** + * Creates a ServiceHealth with a new object + * + * @param newServiceHealth the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final ServiceHealth newServiceHealth) { + return sendAsync(HttpMethod.POST, newServiceHealth); + } + + /** + * Creates a ServiceHealth with a new object + * + * @param newServiceHealth the new object to create + * @return the created ServiceHealth + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceHealth post(@Nonnull final ServiceHealth newServiceHealth) throws ClientException { + return send(HttpMethod.POST, newServiceHealth); + } + + /** + * Creates a ServiceHealth with a new object + * + * @param newServiceHealth the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final ServiceHealth newServiceHealth) { + return sendAsync(HttpMethod.PUT, newServiceHealth); + } + + /** + * Creates a ServiceHealth with a new object + * + * @param newServiceHealth the object to create/update + * @return the created ServiceHealth + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceHealth put(@Nonnull final ServiceHealth newServiceHealth) throws ClientException { + return send(HttpMethod.PUT, newServiceHealth); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ServiceHealthRequest 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 ServiceHealthRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/ServiceHealthRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceHealthRequestBuilder.java new file mode 100644 index 00000000000..45d9917e65a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceHealthRequestBuilder.java @@ -0,0 +1,81 @@ +// 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.ServiceHealth; +import com.microsoft.graph.requests.ServiceHealthIssueCollectionRequestBuilder; +import com.microsoft.graph.requests.ServiceHealthIssueRequestBuilder; +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 Service Health Request Builder. + */ +public class ServiceHealthRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the ServiceHealth + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceHealthRequestBuilder(@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 ServiceHealthRequest instance + */ + @Nonnull + public ServiceHealthRequest 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 ServiceHealthRequest instance + */ + @Nonnull + public ServiceHealthRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.ServiceHealthRequest(getRequestUrl(), getClient(), requestOptions); + } + + + /** + * Gets a request builder for the ServiceHealthIssue collection + * + * @return the collection request builder + */ + @Nonnull + public ServiceHealthIssueCollectionRequestBuilder issues() { + return new ServiceHealthIssueCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("issues"), getClient(), null); + } + + /** + * Gets a request builder for the ServiceHealthIssue item + * + * @return the request builder + * @param id the item identifier + */ + @Nonnull + public ServiceHealthIssueRequestBuilder issues(@Nonnull final String id) { + return new ServiceHealthIssueRequestBuilder(getRequestUrlWithAdditionalSegment("issues") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageArchiveRequest.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageArchiveRequest.java new file mode 100644 index 00000000000..96257224554 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageArchiveRequest.java @@ -0,0 +1,81 @@ +// 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.ServiceUpdateMessage; +import com.microsoft.graph.requests.ServiceUpdateMessageArchiveRequest; + +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.ServiceUpdateMessageArchiveParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Update Message Archive Request. + */ +public class ServiceUpdateMessageArchiveRequest extends BaseRequest { + /** + * The request for this ServiceUpdateMessageArchive + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageArchiveRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Boolean.class); + } + + /** The body for the method */ + @Nullable + public ServiceUpdateMessageArchiveParameterSet body; + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, body); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public Boolean post() throws ClientException { + return send(HttpMethod.POST, body); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ServiceUpdateMessageArchiveRequest 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 ServiceUpdateMessageArchiveRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageArchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageArchiveRequestBuilder.java new file mode 100644 index 00000000000..e9961a8537b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageArchiveRequestBuilder.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.ServiceUpdateMessageArchiveRequest; +import com.microsoft.graph.models.ServiceUpdateMessage; + +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.models.ServiceUpdateMessageArchiveParameterSet; +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 Service Update Message Archive Request Builder. + */ +public class ServiceUpdateMessageArchiveRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this ServiceUpdateMessageArchive + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageArchiveRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + private ServiceUpdateMessageArchiveParameterSet body; + /** + * The request builder for this ServiceUpdateMessageArchive + * + * @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 ServiceUpdateMessageArchiveRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final ServiceUpdateMessageArchiveParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } + + /** + * Creates the ServiceUpdateMessageArchiveRequest + * + * @param requestOptions the options for the request + * @return the ServiceUpdateMessageArchiveRequest instance + */ + @Nonnull + public ServiceUpdateMessageArchiveRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the ServiceUpdateMessageArchiveRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the ServiceUpdateMessageArchiveRequest instance + */ + @Nonnull + public ServiceUpdateMessageArchiveRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final ServiceUpdateMessageArchiveRequest request = new ServiceUpdateMessageArchiveRequest( + getRequestUrl(), + getClient(), + requestOptions); + request.body = this.body; + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageCollectionPage.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageCollectionPage.java new file mode 100644 index 00000000000..7dced601db6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageCollectionPage.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.ServiceUpdateMessage; +import com.microsoft.graph.requests.ServiceUpdateMessageCollectionRequestBuilder; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; +import com.microsoft.graph.requests.ServiceUpdateMessageCollectionResponse; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Update Message Collection Page. + */ +public class ServiceUpdateMessageCollectionPage extends BaseCollectionPage { + + /** + * A collection page for ServiceUpdateMessage + * + * @param response the serialized ServiceUpdateMessageCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public ServiceUpdateMessageCollectionPage(@Nonnull final ServiceUpdateMessageCollectionResponse response, @Nonnull final ServiceUpdateMessageCollectionRequestBuilder builder) { + super(response, builder); + } + + /** + * Creates the collection page for ServiceUpdateMessage + * + * @param pageContents the contents of this page + * @param nextRequestBuilder the request builder for the next page + */ + public ServiceUpdateMessageCollectionPage(@Nonnull final java.util.List pageContents, @Nullable final ServiceUpdateMessageCollectionRequestBuilder nextRequestBuilder) { + super(pageContents, nextRequestBuilder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageCollectionRequest.java new file mode 100644 index 00000000000..d87ed9a69c1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageCollectionRequest.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.ServiceAnnouncement; +import com.microsoft.graph.models.ServiceUpdateMessage; +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.ServiceUpdateMessageCollectionResponse; +import com.microsoft.graph.requests.ServiceUpdateMessageCollectionRequestBuilder; +import com.microsoft.graph.requests.ServiceUpdateMessageCollectionRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Update Message Collection Request. + */ +public class ServiceUpdateMessageCollectionRequest extends BaseEntityCollectionRequest { + + /** + * The request builder for this collection of ServiceUpdateMessage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageCollectionRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ServiceUpdateMessageCollectionResponse.class, ServiceUpdateMessageCollectionPage.class, ServiceUpdateMessageCollectionRequestBuilder.class); + } + + /** + * Creates a new ServiceUpdateMessage + * @param newServiceUpdateMessage the ServiceUpdateMessage to create + * @return a future with the created object + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final ServiceUpdateMessage newServiceUpdateMessage) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new ServiceUpdateMessageRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .postAsync(newServiceUpdateMessage); + } + + /** + * Creates a new ServiceUpdateMessage + * @param newServiceUpdateMessage the ServiceUpdateMessage to create + * @return the newly created object + */ + @Nonnull + public ServiceUpdateMessage post(@Nonnull final ServiceUpdateMessage newServiceUpdateMessage) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new ServiceUpdateMessageRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newServiceUpdateMessage); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + @Nonnull + public ServiceUpdateMessageCollectionRequest 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 ServiceUpdateMessageCollectionRequest 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 ServiceUpdateMessageCollectionRequest 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 ServiceUpdateMessageCollectionRequest 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 ServiceUpdateMessageCollectionRequest 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 ServiceUpdateMessageCollectionRequest count(final boolean value) { + addCountOption(value); + return this; + } + /** + * Sets the count value to true for the request + * + * @return the updated request + */ + @Nonnull + public ServiceUpdateMessageCollectionRequest 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 ServiceUpdateMessageCollectionRequest skip(final int value) { + addSkipOption(value); + return this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + @Nonnull + public ServiceUpdateMessageCollectionRequest skipToken(@Nonnull final String skipToken) { + addSkipTokenOption(skipToken); + return this; + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageCollectionRequestBuilder.java new file mode 100644 index 00000000000..049710c9dd6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageCollectionRequestBuilder.java @@ -0,0 +1,123 @@ +// 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.ServiceAnnouncement; +import com.microsoft.graph.models.ServiceUpdateMessage; +import java.util.Arrays; +import java.util.EnumSet; +import javax.annotation.Nullable; +import javax.annotation.Nonnull; + +import com.microsoft.graph.requests.ServiceUpdateMessageCollectionRequestBuilder; +import com.microsoft.graph.requests.ServiceUpdateMessageRequestBuilder; +import com.microsoft.graph.requests.ServiceUpdateMessageCollectionRequest; +import com.microsoft.graph.requests.ServiceUpdateMessageArchiveRequestBuilder; +import com.microsoft.graph.requests.ServiceUpdateMessageFavoriteRequestBuilder; +import com.microsoft.graph.requests.ServiceUpdateMessageMarkReadRequestBuilder; +import com.microsoft.graph.requests.ServiceUpdateMessageMarkUnreadRequestBuilder; +import com.microsoft.graph.requests.ServiceUpdateMessageUnarchiveRequestBuilder; +import com.microsoft.graph.requests.ServiceUpdateMessageUnfavoriteRequestBuilder; +import com.microsoft.graph.http.BaseCollectionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.PrimitiveRequestBuilder; +import com.microsoft.graph.models.ServiceUpdateMessageArchiveParameterSet; +import com.microsoft.graph.models.ServiceUpdateMessageFavoriteParameterSet; +import com.microsoft.graph.models.ServiceUpdateMessageMarkReadParameterSet; +import com.microsoft.graph.models.ServiceUpdateMessageMarkUnreadParameterSet; +import com.microsoft.graph.models.ServiceUpdateMessageUnarchiveParameterSet; +import com.microsoft.graph.models.ServiceUpdateMessageUnfavoriteParameterSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Update Message Collection Request Builder. + */ +public class ServiceUpdateMessageCollectionRequestBuilder extends BaseCollectionRequestBuilder { + + /** + * The request builder for this collection of ServiceAnnouncement + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageCollectionRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ServiceUpdateMessageRequestBuilder.class, ServiceUpdateMessageCollectionRequest.class); + } + + + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public ServiceUpdateMessageArchiveRequestBuilder archive(@Nonnull final ServiceUpdateMessageArchiveParameterSet parameters) { + return new ServiceUpdateMessageArchiveRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.archive"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public ServiceUpdateMessageFavoriteRequestBuilder favorite(@Nonnull final ServiceUpdateMessageFavoriteParameterSet parameters) { + return new ServiceUpdateMessageFavoriteRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.favorite"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public ServiceUpdateMessageMarkReadRequestBuilder markRead(@Nonnull final ServiceUpdateMessageMarkReadParameterSet parameters) { + return new ServiceUpdateMessageMarkReadRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.markRead"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public ServiceUpdateMessageMarkUnreadRequestBuilder markUnread(@Nonnull final ServiceUpdateMessageMarkUnreadParameterSet parameters) { + return new ServiceUpdateMessageMarkUnreadRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.markUnread"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public ServiceUpdateMessageUnarchiveRequestBuilder unarchive(@Nonnull final ServiceUpdateMessageUnarchiveParameterSet parameters) { + return new ServiceUpdateMessageUnarchiveRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.unarchive"), getClient(), null, parameters); + } + + /** + * Gets a builder to execute the method + * @return the request builder + * @param parameters the parameters for the service method + */ + @Nonnull + public ServiceUpdateMessageUnfavoriteRequestBuilder unfavorite(@Nonnull final ServiceUpdateMessageUnfavoriteParameterSet parameters) { + return new ServiceUpdateMessageUnfavoriteRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.unfavorite"), 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/ServiceUpdateMessageCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageCollectionResponse.java new file mode 100644 index 00000000000..9788a007740 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageCollectionResponse.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.ServiceUpdateMessage; + +import com.microsoft.graph.http.BaseCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Update Message Collection Response. + */ +public class ServiceUpdateMessageCollectionResponse extends BaseCollectionResponse { + +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageFavoriteRequest.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageFavoriteRequest.java new file mode 100644 index 00000000000..bf1b40bef39 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageFavoriteRequest.java @@ -0,0 +1,81 @@ +// 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.ServiceUpdateMessage; +import com.microsoft.graph.requests.ServiceUpdateMessageFavoriteRequest; + +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.ServiceUpdateMessageFavoriteParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Update Message Favorite Request. + */ +public class ServiceUpdateMessageFavoriteRequest extends BaseRequest { + /** + * The request for this ServiceUpdateMessageFavorite + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageFavoriteRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Boolean.class); + } + + /** The body for the method */ + @Nullable + public ServiceUpdateMessageFavoriteParameterSet body; + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, body); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public Boolean post() throws ClientException { + return send(HttpMethod.POST, body); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ServiceUpdateMessageFavoriteRequest 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 ServiceUpdateMessageFavoriteRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageFavoriteRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageFavoriteRequestBuilder.java new file mode 100644 index 00000000000..c7a9a49877e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageFavoriteRequestBuilder.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.ServiceUpdateMessageFavoriteRequest; +import com.microsoft.graph.models.ServiceUpdateMessage; + +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.models.ServiceUpdateMessageFavoriteParameterSet; +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 Service Update Message Favorite Request Builder. + */ +public class ServiceUpdateMessageFavoriteRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this ServiceUpdateMessageFavorite + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageFavoriteRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + private ServiceUpdateMessageFavoriteParameterSet body; + /** + * The request builder for this ServiceUpdateMessageFavorite + * + * @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 ServiceUpdateMessageFavoriteRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final ServiceUpdateMessageFavoriteParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } + + /** + * Creates the ServiceUpdateMessageFavoriteRequest + * + * @param requestOptions the options for the request + * @return the ServiceUpdateMessageFavoriteRequest instance + */ + @Nonnull + public ServiceUpdateMessageFavoriteRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the ServiceUpdateMessageFavoriteRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the ServiceUpdateMessageFavoriteRequest instance + */ + @Nonnull + public ServiceUpdateMessageFavoriteRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final ServiceUpdateMessageFavoriteRequest request = new ServiceUpdateMessageFavoriteRequest( + getRequestUrl(), + getClient(), + requestOptions); + request.body = this.body; + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageMarkReadRequest.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageMarkReadRequest.java new file mode 100644 index 00000000000..9ddbc5f9ce3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageMarkReadRequest.java @@ -0,0 +1,81 @@ +// 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.ServiceUpdateMessage; +import com.microsoft.graph.requests.ServiceUpdateMessageMarkReadRequest; + +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.ServiceUpdateMessageMarkReadParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Update Message Mark Read Request. + */ +public class ServiceUpdateMessageMarkReadRequest extends BaseRequest { + /** + * The request for this ServiceUpdateMessageMarkRead + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageMarkReadRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Boolean.class); + } + + /** The body for the method */ + @Nullable + public ServiceUpdateMessageMarkReadParameterSet body; + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, body); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public Boolean post() throws ClientException { + return send(HttpMethod.POST, body); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ServiceUpdateMessageMarkReadRequest 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 ServiceUpdateMessageMarkReadRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageMarkReadRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageMarkReadRequestBuilder.java new file mode 100644 index 00000000000..3823e44c633 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageMarkReadRequestBuilder.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.ServiceUpdateMessageMarkReadRequest; +import com.microsoft.graph.models.ServiceUpdateMessage; + +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.models.ServiceUpdateMessageMarkReadParameterSet; +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 Service Update Message Mark Read Request Builder. + */ +public class ServiceUpdateMessageMarkReadRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this ServiceUpdateMessageMarkRead + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageMarkReadRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + private ServiceUpdateMessageMarkReadParameterSet body; + /** + * The request builder for this ServiceUpdateMessageMarkRead + * + * @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 ServiceUpdateMessageMarkReadRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final ServiceUpdateMessageMarkReadParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } + + /** + * Creates the ServiceUpdateMessageMarkReadRequest + * + * @param requestOptions the options for the request + * @return the ServiceUpdateMessageMarkReadRequest instance + */ + @Nonnull + public ServiceUpdateMessageMarkReadRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the ServiceUpdateMessageMarkReadRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the ServiceUpdateMessageMarkReadRequest instance + */ + @Nonnull + public ServiceUpdateMessageMarkReadRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final ServiceUpdateMessageMarkReadRequest request = new ServiceUpdateMessageMarkReadRequest( + getRequestUrl(), + getClient(), + requestOptions); + request.body = this.body; + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageMarkUnreadRequest.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageMarkUnreadRequest.java new file mode 100644 index 00000000000..5fb703d7bdb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageMarkUnreadRequest.java @@ -0,0 +1,81 @@ +// 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.ServiceUpdateMessage; +import com.microsoft.graph.requests.ServiceUpdateMessageMarkUnreadRequest; + +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.ServiceUpdateMessageMarkUnreadParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Update Message Mark Unread Request. + */ +public class ServiceUpdateMessageMarkUnreadRequest extends BaseRequest { + /** + * The request for this ServiceUpdateMessageMarkUnread + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageMarkUnreadRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Boolean.class); + } + + /** The body for the method */ + @Nullable + public ServiceUpdateMessageMarkUnreadParameterSet body; + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, body); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public Boolean post() throws ClientException { + return send(HttpMethod.POST, body); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ServiceUpdateMessageMarkUnreadRequest 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 ServiceUpdateMessageMarkUnreadRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageMarkUnreadRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageMarkUnreadRequestBuilder.java new file mode 100644 index 00000000000..6e4c9a0fdf1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageMarkUnreadRequestBuilder.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.ServiceUpdateMessageMarkUnreadRequest; +import com.microsoft.graph.models.ServiceUpdateMessage; + +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.models.ServiceUpdateMessageMarkUnreadParameterSet; +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 Service Update Message Mark Unread Request Builder. + */ +public class ServiceUpdateMessageMarkUnreadRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this ServiceUpdateMessageMarkUnread + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageMarkUnreadRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + private ServiceUpdateMessageMarkUnreadParameterSet body; + /** + * The request builder for this ServiceUpdateMessageMarkUnread + * + * @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 ServiceUpdateMessageMarkUnreadRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final ServiceUpdateMessageMarkUnreadParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } + + /** + * Creates the ServiceUpdateMessageMarkUnreadRequest + * + * @param requestOptions the options for the request + * @return the ServiceUpdateMessageMarkUnreadRequest instance + */ + @Nonnull + public ServiceUpdateMessageMarkUnreadRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the ServiceUpdateMessageMarkUnreadRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the ServiceUpdateMessageMarkUnreadRequest instance + */ + @Nonnull + public ServiceUpdateMessageMarkUnreadRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final ServiceUpdateMessageMarkUnreadRequest request = new ServiceUpdateMessageMarkUnreadRequest( + getRequestUrl(), + getClient(), + requestOptions); + request.body = this.body; + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageRequest.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageRequest.java new file mode 100644 index 00000000000..8e8770a368a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageRequest.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.ServiceUpdateMessage; +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 Service Update Message Request. + */ +public class ServiceUpdateMessageRequest extends BaseRequest { + + /** + * The request for the ServiceUpdateMessage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ServiceUpdateMessage.class); + } + + /** + * Gets the ServiceUpdateMessage from the service + * + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture getAsync() { + return sendAsync(HttpMethod.GET, null); + } + + /** + * Gets the ServiceUpdateMessage from the service + * + * @return the ServiceUpdateMessage from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceUpdateMessage 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 ServiceUpdateMessage delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Patches this ServiceUpdateMessage with a source + * + * @param sourceServiceUpdateMessage the source object with updates + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture patchAsync(@Nonnull final ServiceUpdateMessage sourceServiceUpdateMessage) { + return sendAsync(HttpMethod.PATCH, sourceServiceUpdateMessage); + } + + /** + * Patches this ServiceUpdateMessage with a source + * + * @param sourceServiceUpdateMessage the source object with updates + * @return the updated ServiceUpdateMessage + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceUpdateMessage patch(@Nonnull final ServiceUpdateMessage sourceServiceUpdateMessage) throws ClientException { + return send(HttpMethod.PATCH, sourceServiceUpdateMessage); + } + + /** + * Creates a ServiceUpdateMessage with a new object + * + * @param newServiceUpdateMessage the new object to create + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync(@Nonnull final ServiceUpdateMessage newServiceUpdateMessage) { + return sendAsync(HttpMethod.POST, newServiceUpdateMessage); + } + + /** + * Creates a ServiceUpdateMessage with a new object + * + * @param newServiceUpdateMessage the new object to create + * @return the created ServiceUpdateMessage + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceUpdateMessage post(@Nonnull final ServiceUpdateMessage newServiceUpdateMessage) throws ClientException { + return send(HttpMethod.POST, newServiceUpdateMessage); + } + + /** + * Creates a ServiceUpdateMessage with a new object + * + * @param newServiceUpdateMessage the object to create/update + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture putAsync(@Nonnull final ServiceUpdateMessage newServiceUpdateMessage) { + return sendAsync(HttpMethod.PUT, newServiceUpdateMessage); + } + + /** + * Creates a ServiceUpdateMessage with a new object + * + * @param newServiceUpdateMessage the object to create/update + * @return the created ServiceUpdateMessage + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + @Nullable + public ServiceUpdateMessage put(@Nonnull final ServiceUpdateMessage newServiceUpdateMessage) throws ClientException { + return send(HttpMethod.PUT, newServiceUpdateMessage); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ServiceUpdateMessageRequest 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 ServiceUpdateMessageRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageRequestBuilder.java new file mode 100644 index 00000000000..0d4ff2ab5b2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageRequestBuilder.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.ServiceUpdateMessage; +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 Service Update Message Request Builder. + */ +public class ServiceUpdateMessageRequestBuilder extends BaseRequestBuilder { + + /** + * The request builder for the ServiceUpdateMessage + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageRequestBuilder(@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 ServiceUpdateMessageRequest instance + */ + @Nonnull + public ServiceUpdateMessageRequest 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 ServiceUpdateMessageRequest instance + */ + @Nonnull + public ServiceUpdateMessageRequest buildRequest(@Nonnull final java.util.List requestOptions) { + return new com.microsoft.graph.requests.ServiceUpdateMessageRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageUnarchiveRequest.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageUnarchiveRequest.java new file mode 100644 index 00000000000..7cf04d19ba2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageUnarchiveRequest.java @@ -0,0 +1,81 @@ +// 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.ServiceUpdateMessage; +import com.microsoft.graph.requests.ServiceUpdateMessageUnarchiveRequest; + +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.ServiceUpdateMessageUnarchiveParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Update Message Unarchive Request. + */ +public class ServiceUpdateMessageUnarchiveRequest extends BaseRequest { + /** + * The request for this ServiceUpdateMessageUnarchive + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageUnarchiveRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Boolean.class); + } + + /** The body for the method */ + @Nullable + public ServiceUpdateMessageUnarchiveParameterSet body; + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, body); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public Boolean post() throws ClientException { + return send(HttpMethod.POST, body); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ServiceUpdateMessageUnarchiveRequest 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 ServiceUpdateMessageUnarchiveRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageUnarchiveRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageUnarchiveRequestBuilder.java new file mode 100644 index 00000000000..90fa2c20389 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageUnarchiveRequestBuilder.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.ServiceUpdateMessageUnarchiveRequest; +import com.microsoft.graph.models.ServiceUpdateMessage; + +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.models.ServiceUpdateMessageUnarchiveParameterSet; +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 Service Update Message Unarchive Request Builder. + */ +public class ServiceUpdateMessageUnarchiveRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this ServiceUpdateMessageUnarchive + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageUnarchiveRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + private ServiceUpdateMessageUnarchiveParameterSet body; + /** + * The request builder for this ServiceUpdateMessageUnarchive + * + * @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 ServiceUpdateMessageUnarchiveRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final ServiceUpdateMessageUnarchiveParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } + + /** + * Creates the ServiceUpdateMessageUnarchiveRequest + * + * @param requestOptions the options for the request + * @return the ServiceUpdateMessageUnarchiveRequest instance + */ + @Nonnull + public ServiceUpdateMessageUnarchiveRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the ServiceUpdateMessageUnarchiveRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the ServiceUpdateMessageUnarchiveRequest instance + */ + @Nonnull + public ServiceUpdateMessageUnarchiveRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final ServiceUpdateMessageUnarchiveRequest request = new ServiceUpdateMessageUnarchiveRequest( + getRequestUrl(), + getClient(), + requestOptions); + request.body = this.body; + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageUnfavoriteRequest.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageUnfavoriteRequest.java new file mode 100644 index 00000000000..1c5fb4d7817 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageUnfavoriteRequest.java @@ -0,0 +1,81 @@ +// 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.ServiceUpdateMessage; +import com.microsoft.graph.requests.ServiceUpdateMessageUnfavoriteRequest; + +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.ServiceUpdateMessageUnfavoriteParameterSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Service Update Message Unfavorite Request. + */ +public class ServiceUpdateMessageUnfavoriteRequest extends BaseRequest { + /** + * The request for this ServiceUpdateMessageUnfavorite + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageUnfavoriteRequest(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Boolean.class); + } + + /** The body for the method */ + @Nullable + public ServiceUpdateMessageUnfavoriteParameterSet body; + /** + * Invokes the method and returns a future with the result + * @return a future with the result + */ + @Nonnull + public java.util.concurrent.CompletableFuture postAsync() { + return sendAsync(HttpMethod.POST, body); + } + + /** + * Invokes the method and returns the result + * @return result of the method invocation + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + @Nullable + public Boolean post() throws ClientException { + return send(HttpMethod.POST, body); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + @Nonnull + public ServiceUpdateMessageUnfavoriteRequest 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 ServiceUpdateMessageUnfavoriteRequest expand(@Nonnull final String value) { + addExpandOption(value); + return this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageUnfavoriteRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageUnfavoriteRequestBuilder.java new file mode 100644 index 00000000000..47e11751e68 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/ServiceUpdateMessageUnfavoriteRequestBuilder.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.ServiceUpdateMessageUnfavoriteRequest; +import com.microsoft.graph.models.ServiceUpdateMessage; + +import com.microsoft.graph.http.BaseActionRequestBuilder; +import com.microsoft.graph.models.ServiceUpdateMessageUnfavoriteParameterSet; +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 Service Update Message Unfavorite Request Builder. + */ +public class ServiceUpdateMessageUnfavoriteRequestBuilder extends BaseActionRequestBuilder { + + /** + * The request builder for this ServiceUpdateMessageUnfavorite + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ServiceUpdateMessageUnfavoriteRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + private ServiceUpdateMessageUnfavoriteParameterSet body; + /** + * The request builder for this ServiceUpdateMessageUnfavorite + * + * @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 ServiceUpdateMessageUnfavoriteRequestBuilder(@Nonnull final String requestUrl, @Nonnull final IBaseClient client, @Nullable final java.util.List requestOptions, @Nonnull final ServiceUpdateMessageUnfavoriteParameterSet parameters) { + super(requestUrl, client, requestOptions); + this.body = parameters; + } + + /** + * Creates the ServiceUpdateMessageUnfavoriteRequest + * + * @param requestOptions the options for the request + * @return the ServiceUpdateMessageUnfavoriteRequest instance + */ + @Nonnull + public ServiceUpdateMessageUnfavoriteRequest buildRequest(@Nullable final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the ServiceUpdateMessageUnfavoriteRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the ServiceUpdateMessageUnfavoriteRequest instance + */ + @Nonnull + public ServiceUpdateMessageUnfavoriteRequest buildRequest(@Nonnull final java.util.List requestOptions) { + final ServiceUpdateMessageUnfavoriteRequest request = new ServiceUpdateMessageUnfavoriteRequest( + getRequestUrl(), + getClient(), + requestOptions); + request.body = this.body; + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/TeamRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/TeamRequestBuilder.java index 10b0f50c55c..5adf3b2cd5a 100644 --- a/src/main/java/com/microsoft/graph/requests/TeamRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/TeamRequestBuilder.java @@ -209,6 +209,15 @@ public TeamArchiveRequestBuilder archive(@Nonnull final TeamArchiveParameterSet return new TeamArchiveRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.archive"), getClient(), null, parameters); } + /** + * Gets a builder to execute the method + * @return the request builder + */ + @Nonnull + public TeamUnarchiveRequestBuilder unarchive() { + return new TeamUnarchiveRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.unarchive"), getClient(), null); + } + /** * Gets a builder to execute the method * @return the request builder @@ -237,13 +246,4 @@ public TeamCompleteMigrationRequestBuilder completeMigration() { public TeamSendActivityNotificationRequestBuilder sendActivityNotification(@Nonnull final TeamSendActivityNotificationParameterSet parameters) { return new TeamSendActivityNotificationRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.sendActivityNotification"), getClient(), null, parameters); } - - /** - * Gets a builder to execute the method - * @return the request builder - */ - @Nonnull - public TeamUnarchiveRequestBuilder unarchive() { - return new TeamUnarchiveRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.unarchive"), getClient(), null); - } }