diff --git a/src/main/java/com/microsoft/graph/models/extensions/AppRole.java b/src/main/java/com/microsoft/graph/models/extensions/AppRole.java index ce885c86ad8..77b214a20d0 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/AppRole.java +++ b/src/main/java/com/microsoft/graph/models/extensions/AppRole.java @@ -33,7 +33,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Allowed Member Types. - * Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment of other applications' service principals are also known as application permissions. + * Specifies whether this app role can be assigned to users and groups (by setting to ['User']), to other application's (by setting to ['Application'], or both (by setting to ['User', 'Application']). App roles supporting assignment to other applications' service principals are also known as application permissions. The 'Application' value is only supported for app roles defined on application entities. */ @SerializedName(value = "allowedMemberTypes", alternate = {"AllowedMemberTypes"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/Calendar.java b/src/main/java/com/microsoft/graph/models/extensions/Calendar.java index e59facc21ea..c8c6f29b01c 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Calendar.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Calendar.java @@ -89,6 +89,14 @@ public class Calendar extends Entity implements IJsonBackedObject { @Expose public OnlineMeetingProviderType defaultOnlineMeetingProvider; + /** + * The Hex Color. + * + */ + @SerializedName(value = "hexColor", alternate = {"HexColor"}) + @Expose + public String hexColor; + /** * The Is Removable. * Indicates whether this user calendar can be deleted from the user mailbox. diff --git a/src/main/java/com/microsoft/graph/models/extensions/Channel.java b/src/main/java/com/microsoft/graph/models/extensions/Channel.java index 024e80ce1d0..c378a0cdfaa 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Channel.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Channel.java @@ -64,7 +64,7 @@ public class Channel extends Entity implements IJsonBackedObject { /** * The Web Url. - * A hyperlink that will navigate to the channel in Microsoft Teams. This is the URL that you get when you right-click a channel in Microsoft Teams and select Get link to channel. This URL should be treated as an opaque blob, and not parsed. Read-only. + * A hyperlink that will go to the channel in Microsoft Teams. This is the URL that you get when you right-click a channel in Microsoft Teams and select Get link to channel. This URL should be treated as an opaque blob, and not parsed. Read-only. */ @SerializedName(value = "webUrl", alternate = {"WebUrl"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/ChatMessage.java b/src/main/java/com/microsoft/graph/models/extensions/ChatMessage.java index 0434f0a3c6c..0b6a56d096d 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/ChatMessage.java +++ b/src/main/java/com/microsoft/graph/models/extensions/ChatMessage.java @@ -132,7 +132,7 @@ public class ChatMessage extends Entity implements IJsonBackedObject { /** * The Policy Violation. - * + * Defines the properties of a policy violation set by a data loss prevention (DLP) application. */ @SerializedName(value = "policyViolation", alternate = {"PolicyViolation"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/ChatMessagePolicyViolation.java b/src/main/java/com/microsoft/graph/models/extensions/ChatMessagePolicyViolation.java index 636b7317221..0b5f5e34007 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/ChatMessagePolicyViolation.java +++ b/src/main/java/com/microsoft/graph/models/extensions/ChatMessagePolicyViolation.java @@ -37,7 +37,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Dlp Action. - * + * The action taken by the DLP provider on the message with sensitive content. Supported values are: NoneNotifySender -- Inform the sender of the violation but allow readers to read the message.BlockAccess -- Block readers from reading the message.BlockAccessExternal -- Block users outside the organization from reading the message, while allowing users within the organization to read the message. */ @SerializedName(value = "dlpAction", alternate = {"DlpAction"}) @Expose @@ -45,7 +45,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Justification Text. - * + * Justification text provided by the sender of the message when overriding a policy violation. */ @SerializedName(value = "justificationText", alternate = {"JustificationText"}) @Expose @@ -53,7 +53,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Policy Tip. - * + * Information to display to the message sender about why the message was flagged as a violation. */ @SerializedName(value = "policyTip", alternate = {"PolicyTip"}) @Expose @@ -61,7 +61,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The User Action. - * + * Indicates the action taken by the user on a message blocked by the DLP provider. Supported values are: NoneOverrideReportFalsePositiveWhen the DLP provider is updating the message for blocking sensitive content, userAction is not required. */ @SerializedName(value = "userAction", alternate = {"UserAction"}) @Expose @@ -69,7 +69,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Verdict Details. - * + * Indicates what actions the sender may take in response to the policy violation. Supported values are: NoneAllowFalsePositiveOverride -- Allows the sender to declare the policyViolation to be an error in the DLP app and its rules, and allow readers to see the message again if the dlpAction had hidden it.AllowOverrideWithoutJustification -- Allows the sender to overriide the DLP violation and allow readers to see the message again if the dlpAction had hidden it, without needing to provide an explanation for doing so. AllowOverrideWithJustification -- Allows the sender to overriide the DLP violation and allow readers to see the message again if the dlpAction had hidden it, after providing an explanation for doing so.AllowOverrideWithoutJustification and AllowOverrideWithJustification are mutually exclusive. */ @SerializedName(value = "verdictDetails", alternate = {"VerdictDetails"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/ChatMessagePolicyViolationPolicyTip.java b/src/main/java/com/microsoft/graph/models/extensions/ChatMessagePolicyViolationPolicyTip.java index 8942a920ddf..b42ac5ca05f 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/ChatMessagePolicyViolationPolicyTip.java +++ b/src/main/java/com/microsoft/graph/models/extensions/ChatMessagePolicyViolationPolicyTip.java @@ -33,7 +33,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Compliance Url. - * + * The URL a user can visit to read about the data loss prevention policies for the organization. (ie, policies about what users shouldn't say in chats) */ @SerializedName(value = "complianceUrl", alternate = {"ComplianceUrl"}) @Expose @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The General Text. - * + * Explanatory text shown to the sender of the message. */ @SerializedName(value = "generalText", alternate = {"GeneralText"}) @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Matched Condition Descriptions. - * + * The list of improper data in the message that was detected by the data loss prevention app. Each DLP app defines its own conditions, examples include 'Credit Card Number' and 'Social Security Number'. */ @SerializedName(value = "matchedConditionDescriptions", alternate = {"MatchedConditionDescriptions"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/Event.java b/src/main/java/com/microsoft/graph/models/extensions/Event.java index d80e51e81fc..195dd5fe5ef 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Event.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Event.java @@ -96,7 +96,7 @@ public class Event extends OutlookItem implements IJsonBackedObject { /** * The ICal UId. - * A unique identifier that is shared by all instances of an event across different calendars. Read-only. + * A unique identifier for an event across calendars. This ID is different for each occurrence in a recurring series. Read-only. */ @SerializedName(value = "iCalUId", alternate = {"ICalUId"}) @Expose @@ -126,6 +126,14 @@ public class Event extends OutlookItem implements IJsonBackedObject { @Expose public Boolean isCancelled; + /** + * The Is Draft. + * + */ + @SerializedName(value = "isDraft", alternate = {"IsDraft"}) + @Expose + public Boolean isDraft; + /** * The Is Online Meeting. * True if this event has online meeting information, false otherwise. Default is false. Optional. diff --git a/src/main/java/com/microsoft/graph/models/extensions/EventCancelBody.java b/src/main/java/com/microsoft/graph/models/extensions/EventCancelBody.java new file mode 100644 index 00000000000..45e0a6f168a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/EventCancelBody.java @@ -0,0 +1,69 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + + +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import com.google.gson.JsonObject; +import com.microsoft.graph.serializer.ISerializer; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Event Cancel Body. + */ +public class EventCancelBody { + + /** + * The comment. + * + */ + @SerializedName(value = "comment", alternate = {"Comment"}) + @Expose + public String comment; + + + /** + * The raw representation of this class + */ + private JsonObject rawObject; + + /** + * The serializer + */ + private ISerializer serializer; + + /** + * Gets the raw representation of this class + * + * @return the raw representation of this class + */ + public JsonObject getRawObject() { + return rawObject; + } + + /** + * Gets serializer + * + * @return the serializer + */ + protected ISerializer getSerializer() { + return serializer; + } + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(final ISerializer serializer, final JsonObject json) { + this.serializer = serializer; + rawObject = json; + + } +} diff --git a/src/main/java/com/microsoft/graph/models/extensions/EventForwardBody.java b/src/main/java/com/microsoft/graph/models/extensions/EventForwardBody.java new file mode 100644 index 00000000000..f86320d591a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/EventForwardBody.java @@ -0,0 +1,77 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.models.extensions.Recipient; +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import com.google.gson.JsonObject; +import com.microsoft.graph.serializer.ISerializer; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Event Forward Body. + */ +public class EventForwardBody { + + /** + * The to Recipients. + * + */ + @SerializedName(value = "toRecipients", alternate = {"ToRecipients"}) + @Expose + public java.util.List toRecipients; + + /** + * The comment. + * + */ + @SerializedName(value = "comment", alternate = {"Comment"}) + @Expose + public String comment; + + + /** + * The raw representation of this class + */ + private JsonObject rawObject; + + /** + * The serializer + */ + private ISerializer serializer; + + /** + * Gets the raw representation of this class + * + * @return the raw representation of this class + */ + public JsonObject getRawObject() { + return rawObject; + } + + /** + * Gets serializer + * + * @return the serializer + */ + protected ISerializer getSerializer() { + return serializer; + } + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(final ISerializer serializer, final JsonObject json) { + this.serializer = serializer; + rawObject = json; + + } +} diff --git a/src/main/java/com/microsoft/graph/models/extensions/Group.java b/src/main/java/com/microsoft/graph/models/extensions/Group.java index 507813ada96..565d4d603eb 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Group.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Group.java @@ -149,7 +149,7 @@ public class Group extends DirectoryObject implements IJsonBackedObject { /** * The Mail Nickname. - * The mail alias for the group, unique in the organization. This property must be specified when a group is created. Returned by default. Supports $filter. + * The mail alias for the group, unique in the organization. This property must be specified when a group is created. These characters cannot be used in the mailNickName: @()/[]';:.&lt;&gt;,SPACE. Returned by default. Supports $filter. */ @SerializedName(value = "mailNickname", alternate = {"MailNickname"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/Subscription.java b/src/main/java/com/microsoft/graph/models/extensions/Subscription.java index 2e2bc37929a..16c18c129f8 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Subscription.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Subscription.java @@ -88,7 +88,7 @@ public class Subscription extends Entity implements IJsonBackedObject { /** * The Latest Supported Tls Version. - * + * Specifies the latest version of Transport Layer Security (TLS) that the notification endpoint, specified by notificationUrl, supports. The possible values are: v1_0, v1_1, v1_2, v1_3. For subscribers whose notification endpoint supports a version lower than the currently recommended version (TLS 1.2), specifying this property by a set timeline allows them to temporarily use their deprecated version of TLS before completing their upgrade to TLS 1.2. For these subscribers, not setting this property per the timeline would result in subscription operations failing. For subscribers whose notification endpoint already supports TLS 1.2, setting this property is optional. In such cases, Microsoft Graph defaults the property to v1_2. */ @SerializedName(value = "latestSupportedTlsVersion", alternate = {"LatestSupportedTlsVersion"}) @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/User.java b/src/main/java/com/microsoft/graph/models/extensions/User.java index 1a7edf8d882..ae10fd617cc 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/User.java +++ b/src/main/java/com/microsoft/graph/models/extensions/User.java @@ -45,6 +45,7 @@ import com.microsoft.graph.models.extensions.UserActivity; import com.microsoft.graph.models.extensions.OnlineMeeting; import com.microsoft.graph.models.extensions.Team; +import com.microsoft.graph.models.extensions.UserTeamwork; import com.microsoft.graph.requests.extensions.AppRoleAssignmentCollectionPage; import com.microsoft.graph.requests.extensions.DirectoryObjectCollectionPage; import com.microsoft.graph.requests.extensions.LicenseDetailsCollectionPage; @@ -910,6 +911,14 @@ public class User extends DirectoryObject implements IJsonBackedObject { @Expose public TeamCollectionPage joinedTeams; + /** + * The Teamwork. + * + */ + @SerializedName(value = "teamwork", alternate = {"Teamwork"}) + @Expose + public UserTeamwork teamwork; + /** * The raw representation of this class diff --git a/src/main/java/com/microsoft/graph/models/extensions/UserScopeTeamsAppInstallation.java b/src/main/java/com/microsoft/graph/models/extensions/UserScopeTeamsAppInstallation.java new file mode 100644 index 00000000000..41a7b0f3057 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/UserScopeTeamsAppInstallation.java @@ -0,0 +1,74 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; +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.extensions.Chat; +import com.microsoft.graph.models.extensions.TeamsAppInstallation; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Scope Teams App Installation. + */ +public class UserScopeTeamsAppInstallation extends TeamsAppInstallation implements IJsonBackedObject { + + + /** + * The Chat. + * + */ + @SerializedName(value = "chat", alternate = {"Chat"}) + @Expose + public Chat chat; + + + /** + * The raw representation of this class + */ + private JsonObject rawObject; + + /** + * The serializer + */ + private ISerializer serializer; + + /** + * Gets the raw representation of this class + * + * @return the raw representation of this class + */ + public JsonObject getRawObject() { + return rawObject; + } + + /** + * Gets serializer + * + * @return the serializer + */ + protected ISerializer getSerializer() { + return serializer; + } + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(final ISerializer serializer, final JsonObject json) { + this.serializer = serializer; + rawObject = json; + + } +} diff --git a/src/main/java/com/microsoft/graph/models/extensions/UserTeamwork.java b/src/main/java/com/microsoft/graph/models/extensions/UserTeamwork.java new file mode 100644 index 00000000000..8ad3b18a50a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/UserTeamwork.java @@ -0,0 +1,79 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; +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.extensions.UserScopeTeamsAppInstallation; +import com.microsoft.graph.models.extensions.Entity; +import com.microsoft.graph.requests.extensions.UserScopeTeamsAppInstallationCollectionPage; + + +import com.google.gson.JsonObject; +import com.google.gson.annotations.SerializedName; +import com.google.gson.annotations.Expose; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Teamwork. + */ +public class UserTeamwork extends Entity implements IJsonBackedObject { + + + /** + * The Installed Apps. + * The apps installed in the personal scope of this user. + */ + @SerializedName(value = "installedApps", alternate = {"InstalledApps"}) + @Expose + public UserScopeTeamsAppInstallationCollectionPage installedApps; + + + /** + * The raw representation of this class + */ + private JsonObject rawObject; + + /** + * The serializer + */ + private ISerializer serializer; + + /** + * Gets the raw representation of this class + * + * @return the raw representation of this class + */ + public JsonObject getRawObject() { + return rawObject; + } + + /** + * Gets serializer + * + * @return the serializer + */ + protected ISerializer getSerializer() { + return serializer; + } + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(final ISerializer serializer, final JsonObject json) { + this.serializer = serializer; + rawObject = json; + + + if (json.has("installedApps")) { + installedApps = serializer.deserializeObject(json.get("installedApps").toString(), UserScopeTeamsAppInstallationCollectionPage.class); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/generated/TaskStatus.java b/src/main/java/com/microsoft/graph/models/generated/TaskStatus.java new file mode 100644 index 00000000000..fb7935fc069 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/TaskStatus.java @@ -0,0 +1,37 @@ +// ------------------------------------------------------------------------------ +// 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.generated; + + +/** + * The Enum Task Status. +*/ +public enum TaskStatus +{ + /** + * not Started + */ + NOT_STARTED, + /** + * in Progress + */ + IN_PROGRESS, + /** + * completed + */ + COMPLETED, + /** + * waiting On Others + */ + WAITING_ON_OTHERS, + /** + * deferred + */ + DEFERRED, + /** + * For TaskStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ChatReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ChatReferenceRequest.java new file mode 100644 index 00000000000..9267c44e680 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ChatReferenceRequest.java @@ -0,0 +1,87 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.models.extensions.Chat; +import com.microsoft.graph.models.extensions.ChatMessage; +import java.util.Arrays; +import java.util.EnumSet; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Chat Reference Request. + */ +public class ChatReferenceRequest extends BaseRequest implements IChatReferenceRequest { + + /** + * The request for the Chat + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ChatReferenceRequest(String requestUrl, IBaseClient client, java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Chat.class); + } + + public void delete(final ICallback callback) { + send(HttpMethod.DELETE, callback, null); + } + + public Chat delete() throws ClientException { + return send(HttpMethod.DELETE, null); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IChatReferenceRequest select(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$select", value)); + return (ChatReferenceRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IChatReferenceRequest expand(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); + return (ChatReferenceRequest)this; + } + /** + * Puts the Chat + * + * @param srcChat the Chat reference to PUT + * @param callback the callback to be called after success or failure + */ + public void put(Chat srcChat, final ICallback callback) { + send(HttpMethod.PUT, callback, srcChat); + } + + /** + * Puts the Chat + * + * @param srcChat the Chat reference to PUT + * @return the Chat + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + public Chat put(Chat srcChat) throws ClientException { + return send(HttpMethod.PUT, srcChat); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ChatReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ChatReferenceRequestBuilder.java new file mode 100644 index 00000000000..6a35220bc93 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ChatReferenceRequestBuilder.java @@ -0,0 +1,56 @@ + +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.models.extensions.Chat; +import com.microsoft.graph.models.extensions.ChatMessage; +import java.util.Arrays; +import java.util.EnumSet; + +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Chat Reference Request Builder. + */ +public class ChatReferenceRequestBuilder extends BaseRequestBuilder implements IChatReferenceRequestBuilder { + + /** + * The request builder for the Chat + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ChatReferenceRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return The IChatReferenceRequest instance + */ + public IChatReferenceRequest buildRequest(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 IChatReferenceRequest instance + */ + public IChatReferenceRequest buildRequest(final java.util.List requestOptions) { + return new ChatReferenceRequest(getRequestUrl(), getClient(), requestOptions); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ChatWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ChatWithReferenceRequest.java new file mode 100644 index 00000000000..aecab37f16a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ChatWithReferenceRequest.java @@ -0,0 +1,97 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.models.extensions.Chat; +import com.microsoft.graph.models.extensions.ChatMessage; +import java.util.Arrays; +import java.util.EnumSet; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.serializer.IJsonBackedObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Chat With Reference Request. + */ +public class ChatWithReferenceRequest extends BaseRequest implements IChatWithReferenceRequest { + + /** + * The request for the Chat + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ChatWithReferenceRequest(String requestUrl, IBaseClient client, java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Chat.class); + } + + public void post(final Chat newChat, final IJsonBackedObject payload, final ICallback callback) { + send(HttpMethod.POST, callback, payload); + } + + public Chat post(final Chat newChat, final IJsonBackedObject payload) throws ClientException { + IJsonBackedObject response = send(HttpMethod.POST, payload); + if (response != null){ + return newChat; + } + return null; + } + + public void get(final ICallback callback) { + send(HttpMethod.GET, callback, null); + } + + public Chat get() throws ClientException { + return send(HttpMethod.GET, null); + } + + public void delete(final ICallback callback) { + send(HttpMethod.DELETE, callback, null); + } + + public void delete() throws ClientException { + send(HttpMethod.DELETE, null); + } + + public void patch(final Chat sourceChat, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceChat); + } + + public Chat patch(final Chat sourceChat) throws ClientException { + return send(HttpMethod.PATCH, sourceChat); + } + + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IChatWithReferenceRequest select(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$select", value)); + return (IChatWithReferenceRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IChatWithReferenceRequest expand(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); + return (ChatWithReferenceRequest)this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ChatWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ChatWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..69896afad29 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ChatWithReferenceRequestBuilder.java @@ -0,0 +1,60 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.models.extensions.Chat; +import com.microsoft.graph.models.extensions.ChatMessage; +import java.util.Arrays; +import java.util.EnumSet; + +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Chat With Reference Request Builder. + */ +public class ChatWithReferenceRequestBuilder extends BaseRequestBuilder implements IChatWithReferenceRequestBuilder { + + /** + * The request builder for the Chat + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ChatWithReferenceRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the IChatWithReferenceRequest instance + */ + public IChatWithReferenceRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IChatWithReferenceRequest instance + */ + public IChatWithReferenceRequest buildRequest(final java.util.List requestOptions) { + return new ChatWithReferenceRequest(getRequestUrl(), getClient(), requestOptions); + } + + public IChatReferenceRequestBuilder reference(){ + return new ChatReferenceRequestBuilder(getRequestUrl() + "/$ref", getClient(), getOptions()); + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DeviceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/DeviceRequestBuilder.java index 70786190a3f..870885e417e 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/DeviceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/DeviceRequestBuilder.java @@ -235,46 +235,4 @@ public IExtensionCollectionRequestBuilder extensions() { public IExtensionRequestBuilder extensions(final String id) { return new ExtensionRequestBuilder(getRequestUrlWithAdditionalSegment("extensions") + "/" + id, getClient(), null); } - public IUserCollectionRequestBuilder extensionsAsUser() { - return new UserCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("extensions") + "/microsoft.graph.user", getClient(), null); - } - - public IUserRequestBuilder extensionsAsUser(final String id) { - return new UserRequestBuilder(getRequestUrlWithAdditionalSegment("extensions") + "/" + id + "/microsoft.graph.user", getClient(), null); - } - public IGroupCollectionRequestBuilder extensionsAsGroup() { - return new GroupCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("extensions") + "/microsoft.graph.group", getClient(), null); - } - - public IGroupRequestBuilder extensionsAsGroup(final String id) { - return new GroupRequestBuilder(getRequestUrlWithAdditionalSegment("extensions") + "/" + id + "/microsoft.graph.group", getClient(), null); - } - public IApplicationCollectionRequestBuilder extensionsAsApplication() { - return new ApplicationCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("extensions") + "/microsoft.graph.application", getClient(), null); - } - - public IApplicationRequestBuilder extensionsAsApplication(final String id) { - return new ApplicationRequestBuilder(getRequestUrlWithAdditionalSegment("extensions") + "/" + id + "/microsoft.graph.application", getClient(), null); - } - public IServicePrincipalCollectionRequestBuilder extensionsAsServicePrincipal() { - return new ServicePrincipalCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("extensions") + "/microsoft.graph.servicePrincipal", getClient(), null); - } - - public IServicePrincipalRequestBuilder extensionsAsServicePrincipal(final String id) { - return new ServicePrincipalRequestBuilder(getRequestUrlWithAdditionalSegment("extensions") + "/" + id + "/microsoft.graph.servicePrincipal", getClient(), null); - } - public IDeviceCollectionRequestBuilder extensionsAsDevice() { - return new DeviceCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("extensions") + "/microsoft.graph.device", getClient(), null); - } - - public IDeviceRequestBuilder extensionsAsDevice(final String id) { - return new DeviceRequestBuilder(getRequestUrlWithAdditionalSegment("extensions") + "/" + id + "/microsoft.graph.device", getClient(), null); - } - public IOrgContactCollectionRequestBuilder extensionsAsOrgContact() { - return new OrgContactCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("extensions") + "/microsoft.graph.orgContact", getClient(), null); - } - - public IOrgContactRequestBuilder extensionsAsOrgContact(final String id) { - return new OrgContactRequestBuilder(getRequestUrlWithAdditionalSegment("extensions") + "/" + id + "/microsoft.graph.orgContact", getClient(), null); - } } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/EventCancelRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/EventCancelRequest.java new file mode 100644 index 00000000000..a8454b35f6e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/EventCancelRequest.java @@ -0,0 +1,80 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; +import com.microsoft.graph.models.extensions.EventCancelBody; +import com.microsoft.graph.requests.extensions.IEventCancelRequest; +import com.microsoft.graph.requests.extensions.EventCancelRequest; + +import com.microsoft.graph.http.BaseCollectionRequest; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.core.ClientException; +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 Event Cancel Request. + */ +public class EventCancelRequest extends BaseRequest implements IEventCancelRequest { + protected final EventCancelBody body; + + /** + * The request for this EventCancel + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EventCancelRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Void.class); + body = new EventCancelBody(); + } + + public void post(final ICallback callback) { + send(HttpMethod.POST, callback, body); + } + + public Void post() throws ClientException { + return send(HttpMethod.POST, body); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IEventCancelRequest select(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$select", value)); + return (EventCancelRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public IEventCancelRequest top(final int value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$top", value+"")); + return (EventCancelRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IEventCancelRequest expand(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); + return (EventCancelRequest)this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/EventCancelRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/EventCancelRequestBuilder.java new file mode 100644 index 00000000000..ebd027db3d0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/EventCancelRequestBuilder.java @@ -0,0 +1,63 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; +import com.microsoft.graph.requests.extensions.IEventCancelRequest; +import com.microsoft.graph.requests.extensions.EventCancelRequest; + +import com.microsoft.graph.core.BaseActionRequestBuilder; +import com.microsoft.graph.core.BaseFunctionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Event Cancel Request Builder. + */ +public class EventCancelRequestBuilder extends BaseActionRequestBuilder implements IEventCancelRequestBuilder { + + /** + * The request builder for this EventCancel + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param comment the comment + */ + public EventCancelRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions, final String comment) { + super(requestUrl, client, requestOptions); + bodyParams.put("comment", comment); + } + + /** + * Creates the IEventCancelRequest + * + * @param requestOptions the options for the request + * @return the IEventCancelRequest instance + */ + public IEventCancelRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the IEventCancelRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the IEventCancelRequest instance + */ + public IEventCancelRequest buildRequest(final java.util.List requestOptions) { + EventCancelRequest request = new EventCancelRequest( + getRequestUrl(), + getClient(), + requestOptions + ); + + if (hasParameter("comment")) { + request.body.comment = getParameter("comment"); + } + + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/EventCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/EventCollectionRequest.java index 87d50c43677..aa11940127e 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/EventCollectionRequest.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/EventCollectionRequest.java @@ -9,6 +9,7 @@ import com.microsoft.graph.concurrency.ICallback; import com.microsoft.graph.models.extensions.Group; import com.microsoft.graph.models.extensions.Event; +import com.microsoft.graph.models.extensions.Recipient; import com.microsoft.graph.models.extensions.DateTimeTimeZone; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/extensions/EventCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/EventCollectionRequestBuilder.java index f9636fe38ab..ca241a341ef 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/EventCollectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/EventCollectionRequestBuilder.java @@ -9,6 +9,7 @@ import com.microsoft.graph.concurrency.ICallback; import com.microsoft.graph.models.extensions.Group; import com.microsoft.graph.models.extensions.Event; +import com.microsoft.graph.models.extensions.Recipient; import com.microsoft.graph.models.extensions.DateTimeTimeZone; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/extensions/EventForwardRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/EventForwardRequest.java new file mode 100644 index 00000000000..7610230d3cc --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/EventForwardRequest.java @@ -0,0 +1,80 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; +import com.microsoft.graph.models.extensions.EventForwardBody; +import com.microsoft.graph.requests.extensions.IEventForwardRequest; +import com.microsoft.graph.requests.extensions.EventForwardRequest; + +import com.microsoft.graph.http.BaseCollectionRequest; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.http.HttpMethod; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.core.ClientException; +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 Event Forward Request. + */ +public class EventForwardRequest extends BaseRequest implements IEventForwardRequest { + protected final EventForwardBody body; + + /** + * The request for this EventForward + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public EventForwardRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, Void.class); + body = new EventForwardBody(); + } + + public void post(final ICallback callback) { + send(HttpMethod.POST, callback, body); + } + + public Void post() throws ClientException { + return send(HttpMethod.POST, body); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IEventForwardRequest select(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$select", value)); + return (EventForwardRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public IEventForwardRequest top(final int value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$top", value+"")); + return (EventForwardRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IEventForwardRequest expand(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); + return (EventForwardRequest)this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/EventForwardRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/EventForwardRequestBuilder.java new file mode 100644 index 00000000000..02966180102 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/EventForwardRequestBuilder.java @@ -0,0 +1,69 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; +import com.microsoft.graph.requests.extensions.IEventForwardRequest; +import com.microsoft.graph.requests.extensions.EventForwardRequest; +import com.microsoft.graph.models.extensions.Recipient; +import com.microsoft.graph.core.BaseActionRequestBuilder; +import com.microsoft.graph.core.BaseFunctionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.google.gson.JsonElement; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Event Forward Request Builder. + */ +public class EventForwardRequestBuilder extends BaseActionRequestBuilder implements IEventForwardRequestBuilder { + + /** + * The request builder for this EventForward + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param toRecipients the toRecipients + * @param comment the comment + */ + public EventForwardRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions, final java.util.List toRecipients, final String comment) { + super(requestUrl, client, requestOptions); + bodyParams.put("toRecipients", toRecipients); + bodyParams.put("comment", comment); + } + + /** + * Creates the IEventForwardRequest + * + * @param requestOptions the options for the request + * @return the IEventForwardRequest instance + */ + public IEventForwardRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the IEventForwardRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the IEventForwardRequest instance + */ + public IEventForwardRequest buildRequest(final java.util.List requestOptions) { + EventForwardRequest request = new EventForwardRequest( + getRequestUrl(), + getClient(), + requestOptions + ); + + if (hasParameter("toRecipients")) { + request.body.toRecipients = getParameter("toRecipients"); + } + + if (hasParameter("comment")) { + request.body.comment = getParameter("comment"); + } + + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/EventRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/EventRequest.java index 45a3a669164..a9f41c104ef 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/EventRequest.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/EventRequest.java @@ -8,6 +8,7 @@ import com.microsoft.graph.core.ClientException; import com.microsoft.graph.concurrency.ICallback; import com.microsoft.graph.models.extensions.Event; +import com.microsoft.graph.models.extensions.Recipient; import com.microsoft.graph.models.extensions.DateTimeTimeZone; import com.microsoft.graph.requests.extensions.IAttachmentCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IAttachmentRequestBuilder; diff --git a/src/main/java/com/microsoft/graph/requests/extensions/EventRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/EventRequestBuilder.java index 351a9843299..2bd8f320f61 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/EventRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/EventRequestBuilder.java @@ -8,6 +8,7 @@ import com.microsoft.graph.core.ClientException; import com.microsoft.graph.concurrency.ICallback; import com.microsoft.graph.models.extensions.Event; +import com.microsoft.graph.models.extensions.Recipient; import com.microsoft.graph.models.extensions.DateTimeTimeZone; import com.microsoft.graph.requests.extensions.IAttachmentCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IAttachmentRequestBuilder; @@ -124,6 +125,10 @@ public IEventAcceptRequestBuilder accept(final String comment, final Boolean sen return new EventAcceptRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.accept"), getClient(), null, comment, sendResponse); } + public IEventCancelRequestBuilder cancel(final String comment) { + return new EventCancelRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.cancel"), getClient(), null, comment); + } + public IEventDeclineRequestBuilder decline(final String comment, final Boolean sendResponse) { return new EventDeclineRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.decline"), getClient(), null, comment, sendResponse); } @@ -132,6 +137,10 @@ public IEventDismissReminderRequestBuilder dismissReminder() { return new EventDismissReminderRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.dismissReminder"), getClient(), null); } + public IEventForwardRequestBuilder forward(final java.util.List toRecipients, final String comment) { + return new EventForwardRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.forward"), getClient(), null, toRecipients, comment); + } + public IEventSnoozeReminderRequestBuilder snoozeReminder(final DateTimeTimeZone newReminderTime) { return new EventSnoozeReminderRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.snoozeReminder"), getClient(), null, newReminderTime); } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IChatReferenceRequest.java similarity index 50% rename from src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceReferenceRequest.java rename to src/main/java/com/microsoft/graph/requests/extensions/IChatReferenceRequest.java index 69b03493991..87663d84334 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IChatReferenceRequest.java @@ -7,24 +7,25 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.concurrency.ICallback; -import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; +import com.microsoft.graph.models.extensions.Chat; +import com.microsoft.graph.models.extensions.ChatMessage; import java.util.Arrays; import java.util.EnumSet; -import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; +import com.microsoft.graph.models.extensions.Chat; import com.microsoft.graph.http.IHttpRequest; import com.microsoft.graph.serializer.IJsonBackedObject; // **NOTE** This file was generated by a tool and any changes will be overwritten. /** - * The interface for the Directory Object Partner Reference Reference Request. + * The interface for the Chat Reference Request. */ -public interface IDirectoryObjectPartnerReferenceReferenceRequest extends IHttpRequest { +public interface IChatReferenceRequest extends IHttpRequest { - void delete(final ICallback callback); + void delete(final ICallback callback); - DirectoryObjectPartnerReference delete() throws ClientException; + Chat delete() throws ClientException; /** * Sets the select clause for the request @@ -32,7 +33,7 @@ public interface IDirectoryObjectPartnerReferenceReferenceRequest extends IHttpR * @param value the select clause * @return the updated request */ - IDirectoryObjectPartnerReferenceReferenceRequest select(final String value); + IChatReferenceRequest select(final String value); /** * Sets the expand clause for the request @@ -40,22 +41,22 @@ public interface IDirectoryObjectPartnerReferenceReferenceRequest extends IHttpR * @param value the expand clause * @return the updated request */ - IDirectoryObjectPartnerReferenceReferenceRequest expand(final String value); + IChatReferenceRequest expand(final String value); /** - * Puts the DirectoryObjectPartnerReference + * Puts the Chat * - * @param srcDirectoryObjectPartnerReference the DirectoryObjectPartnerReference to PUT + * @param srcChat the Chat to PUT * @param callback the callback to be called after success or failure */ - void put(DirectoryObjectPartnerReference srcDirectoryObjectPartnerReference, final ICallback callback); + void put(Chat srcChat, final ICallback callback); /** - * Puts the DirectoryObjectPartnerReference + * Puts the Chat * - * @param srcDirectoryObjectPartnerReference the DirectoryObjectPartnerReference to PUT - * @return the DirectoryObjectPartnerReference + * @param srcChat the Chat to PUT + * @return the Chat * @throws ClientException an exception occurs if there was an error while the request was sent */ - DirectoryObjectPartnerReference put(DirectoryObjectPartnerReference srcDirectoryObjectPartnerReference) throws ClientException; + Chat put(Chat srcChat) throws ClientException; } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IChatReferenceRequestBuilder.java similarity index 54% rename from src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceReferenceRequestBuilder.java rename to src/main/java/com/microsoft/graph/requests/extensions/IChatReferenceRequestBuilder.java index d09f14681ad..f409e8bdec3 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceReferenceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IChatReferenceRequestBuilder.java @@ -7,32 +7,33 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.concurrency.ICallback; -import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; +import com.microsoft.graph.models.extensions.Chat; +import com.microsoft.graph.models.extensions.ChatMessage; import java.util.Arrays; import java.util.EnumSet; -import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; +import com.microsoft.graph.models.extensions.Chat; // **NOTE** This file was generated by a tool and any changes will be overwritten. /** - * The interface for the Directory Object Partner Reference Reference Request Builder. + * The interface for the Chat Reference Request Builder. */ -public interface IDirectoryObjectPartnerReferenceReferenceRequestBuilder extends IRequestBuilder { +public interface IChatReferenceRequestBuilder extends IRequestBuilder { /** * Creates the request * * @param requestOptions the options for this request - * @return the IDirectoryObjectPartnerReferenceReferenceRequest instance + * @return the IChatReferenceRequest instance */ - IDirectoryObjectPartnerReferenceReferenceRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions); + IChatReferenceRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions); /** * Creates the request with specific options instead of the existing options * * @param requestOptions the options for this request - * @return the IDirectoryObjectPartnerReferenceReferenceRequest instance + * @return the IChatReferenceRequest instance */ - IDirectoryObjectPartnerReferenceReferenceRequest buildRequest(final java.util.List requestOptions); + IChatReferenceRequest buildRequest(final java.util.List requestOptions); } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IChatWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IChatWithReferenceRequest.java new file mode 100644 index 00000000000..0c4d35beb88 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IChatWithReferenceRequest.java @@ -0,0 +1,47 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.models.extensions.Chat; +import com.microsoft.graph.models.extensions.ChatMessage; +import java.util.Arrays; +import java.util.EnumSet; + +import com.microsoft.graph.models.extensions.Chat; +import com.microsoft.graph.http.IHttpRequest; +import com.microsoft.graph.serializer.IJsonBackedObject; + + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Chat With Reference Request. + */ +public interface IChatWithReferenceRequest extends IHttpRequest { + + void post(final Chat newChat, final IJsonBackedObject payload, final ICallback callback); + + Chat post(final Chat newChat, final IJsonBackedObject payload) throws ClientException; + + void get(final ICallback callback); + + Chat get() throws ClientException; + + void delete(final ICallback callback); + + void delete() throws ClientException; + + void patch(final Chat sourceChat, final ICallback callback); + + Chat patch(final Chat sourceChat) throws ClientException; + + IChatWithReferenceRequest select(final String value); + + IChatWithReferenceRequest expand(final String value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IChatWithReferenceRequestBuilder.java similarity index 54% rename from src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceWithReferenceRequestBuilder.java rename to src/main/java/com/microsoft/graph/requests/extensions/IChatWithReferenceRequestBuilder.java index 90712606ee7..5b70fb17ede 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceWithReferenceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IChatWithReferenceRequestBuilder.java @@ -7,7 +7,8 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.concurrency.ICallback; -import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; +import com.microsoft.graph.models.extensions.Chat; +import com.microsoft.graph.models.extensions.ChatMessage; import java.util.Arrays; import java.util.EnumSet; @@ -15,26 +16,26 @@ // **NOTE** This file was generated by a tool and any changes will be overwritten. /** - * The interface for the Directory Object Partner Reference With Reference Request Builder. + * The interface for the Chat With Reference Request Builder. */ -public interface IDirectoryObjectPartnerReferenceWithReferenceRequestBuilder extends IRequestBuilder { +public interface IChatWithReferenceRequestBuilder extends IRequestBuilder { /** * Creates the request * * @param requestOptions the options for this request - * @return the IDirectoryObjectPartnerReferenceWithReferenceRequest instance + * @return the IChatWithReferenceRequest instance */ - IDirectoryObjectPartnerReferenceWithReferenceRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions); + IChatWithReferenceRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions); /** * Creates the request with specific options instead of the existing options * * @param requestOptions the options for this request - * @return the IDirectoryObjectPartnerReferenceWithReferenceRequest instance + * @return the IChatWithReferenceRequest instance */ - IDirectoryObjectPartnerReferenceWithReferenceRequest buildRequest(final java.util.List requestOptions); + IChatWithReferenceRequest buildRequest(final java.util.List requestOptions); - IDirectoryObjectPartnerReferenceReferenceRequestBuilder reference(); + IChatReferenceRequestBuilder reference(); } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDeviceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IDeviceRequestBuilder.java index bfa889b5b28..2a201ad88e1 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IDeviceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDeviceRequestBuilder.java @@ -138,28 +138,4 @@ public interface IDeviceRequestBuilder extends IRequestBuilder { IExtensionRequestBuilder extensions(final String id); - IUserCollectionRequestBuilder extensionsAsUser(); - - IUserRequestBuilder extensionsAsUser(final String id); - - IGroupCollectionRequestBuilder extensionsAsGroup(); - - IGroupRequestBuilder extensionsAsGroup(final String id); - - IApplicationCollectionRequestBuilder extensionsAsApplication(); - - IApplicationRequestBuilder extensionsAsApplication(final String id); - - IServicePrincipalCollectionRequestBuilder extensionsAsServicePrincipal(); - - IServicePrincipalRequestBuilder extensionsAsServicePrincipal(final String id); - - IDeviceCollectionRequestBuilder extensionsAsDevice(); - - IDeviceRequestBuilder extensionsAsDevice(final String id); - - IOrgContactCollectionRequestBuilder extensionsAsOrgContact(); - - IOrgContactRequestBuilder extensionsAsOrgContact(final String id); - } \ No newline at end of file diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionReferenceRequest.java deleted file mode 100644 index cf70799f65e..00000000000 --- a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionReferenceRequest.java +++ /dev/null @@ -1,29 +0,0 @@ -// ------------------------------------------------------------------------------ -// 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.extensions; - -import com.microsoft.graph.http.IRequestBuilder; -import com.microsoft.graph.core.ClientException; -import com.microsoft.graph.concurrency.ICallback; -import com.microsoft.graph.models.extensions.ServicePrincipal; -import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; -import java.util.Arrays; -import java.util.EnumSet; - -import com.microsoft.graph.http.IHttpRequest; -import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; - -// **NOTE** This file was generated by a tool and any changes will be overwritten. - -/** - * The interface for the Directory Object Partner Reference Collection Reference Request. - */ -public interface IDirectoryObjectPartnerReferenceCollectionReferenceRequest { - - IDirectoryObjectPartnerReferenceCollectionReferenceRequest select(final String value); - - IDirectoryObjectPartnerReferenceCollectionReferenceRequest top(final int value); - -} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionWithReferencesRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionWithReferencesRequest.java deleted file mode 100644 index a80234d51d6..00000000000 --- a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionWithReferencesRequest.java +++ /dev/null @@ -1,34 +0,0 @@ -// ------------------------------------------------------------------------------ -// 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.extensions; - -import com.microsoft.graph.http.IRequestBuilder; -import com.microsoft.graph.core.ClientException; -import com.microsoft.graph.concurrency.ICallback; -import com.microsoft.graph.models.extensions.ServicePrincipal; -import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; -import java.util.Arrays; -import java.util.EnumSet; - -import com.microsoft.graph.http.IHttpRequest; - -// **NOTE** This file was generated by a tool and any changes will be overwritten. - -/** - * The interface for the Directory Object Partner Reference Collection With References Request. - */ -public interface IDirectoryObjectPartnerReferenceCollectionWithReferencesRequest extends IHttpRequest { - - void get(final ICallback callback); - - IDirectoryObjectPartnerReferenceCollectionWithReferencesPage get() throws ClientException; - - IDirectoryObjectPartnerReferenceCollectionWithReferencesRequest expand(final String value); - - IDirectoryObjectPartnerReferenceCollectionWithReferencesRequest select(final String value); - - IDirectoryObjectPartnerReferenceCollectionWithReferencesRequest top(final int value); - -} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionWithReferencesRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionWithReferencesRequestBuilder.java deleted file mode 100644 index 6e6fdab9954..00000000000 --- a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionWithReferencesRequestBuilder.java +++ /dev/null @@ -1,43 +0,0 @@ -// ------------------------------------------------------------------------------ -// 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.extensions; - -import com.microsoft.graph.http.IRequestBuilder; -import com.microsoft.graph.core.ClientException; -import com.microsoft.graph.concurrency.ICallback; -import com.microsoft.graph.models.extensions.ServicePrincipal; -import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; -import java.util.Arrays; -import java.util.EnumSet; - -import com.microsoft.graph.http.IHttpRequest; - -// **NOTE** This file was generated by a tool and any changes will be overwritten. - -/** - * The interface for the Directory Object Partner Reference Collection With References Request Builder. - */ -public interface IDirectoryObjectPartnerReferenceCollectionWithReferencesRequestBuilder extends IRequestBuilder { - - /** - * Creates the request - * - * @param requestOptions the options for this request - * @return the IDirectoryObjectPartnerReferenceCollectionWithReferencesRequest instance - */ - IDirectoryObjectPartnerReferenceCollectionWithReferencesRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions); - - /** - * Creates the request - * - * @param requestOptions the options for this request - * @return the IDirectoryObjectPartnerReferenceCollectionWithReferencesRequest instance - */ - IDirectoryObjectPartnerReferenceCollectionWithReferencesRequest buildRequest(final java.util.List requestOptions); - - IDirectoryObjectPartnerReferenceWithReferenceRequestBuilder byId(final String id); - - IDirectoryObjectPartnerReferenceCollectionReferenceRequestBuilder references(); -} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceWithReferenceRequest.java deleted file mode 100644 index a1d721c672c..00000000000 --- a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceWithReferenceRequest.java +++ /dev/null @@ -1,46 +0,0 @@ -// ------------------------------------------------------------------------------ -// 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.extensions; - -import com.microsoft.graph.http.IRequestBuilder; -import com.microsoft.graph.core.ClientException; -import com.microsoft.graph.concurrency.ICallback; -import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; -import java.util.Arrays; -import java.util.EnumSet; - -import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; -import com.microsoft.graph.http.IHttpRequest; -import com.microsoft.graph.serializer.IJsonBackedObject; - - -// **NOTE** This file was generated by a tool and any changes will be overwritten. - -/** - * The interface for the Directory Object Partner Reference With Reference Request. - */ -public interface IDirectoryObjectPartnerReferenceWithReferenceRequest extends IHttpRequest { - - void post(final DirectoryObjectPartnerReference newDirectoryObjectPartnerReference, final IJsonBackedObject payload, final ICallback callback); - - DirectoryObjectPartnerReference post(final DirectoryObjectPartnerReference newDirectoryObjectPartnerReference, final IJsonBackedObject payload) throws ClientException; - - void get(final ICallback callback); - - DirectoryObjectPartnerReference get() throws ClientException; - - void delete(final ICallback callback); - - void delete() throws ClientException; - - void patch(final DirectoryObjectPartnerReference sourceDirectoryObjectPartnerReference, final ICallback callback); - - DirectoryObjectPartnerReference patch(final DirectoryObjectPartnerReference sourceDirectoryObjectPartnerReference) throws ClientException; - - IDirectoryObjectPartnerReferenceWithReferenceRequest select(final String value); - - IDirectoryObjectPartnerReferenceWithReferenceRequest expand(final String value); - -} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IEventCancelRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IEventCancelRequest.java new file mode 100644 index 00000000000..6e3498ce662 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IEventCancelRequest.java @@ -0,0 +1,50 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; +import com.microsoft.graph.requests.extensions.IEventCancelRequest; + +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.http.BaseCollectionRequest; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.http.BaseCollectionRequest; +import com.microsoft.graph.http.IHttpRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Event Cancel Request. + */ +public interface IEventCancelRequest extends IHttpRequest { + + void post(final ICallback callback); + + Void post() throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IEventCancelRequest select(final String value) ; + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + IEventCancelRequest top(final int value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IEventCancelRequest expand(final String value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IEventCancelRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IEventCancelRequestBuilder.java new file mode 100644 index 00000000000..bef8403de7c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IEventCancelRequestBuilder.java @@ -0,0 +1,32 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; +import com.microsoft.graph.requests.extensions.IEventCancelRequest; + +import com.microsoft.graph.http.IRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Event Cancel Request Builder. + */ +public interface IEventCancelRequestBuilder extends IRequestBuilder { + + /** + * Creates the IEventCancelRequest + * + * @param requestOptions the options for the request + * @return the IEventCancelRequest instance + */ + IEventCancelRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions); + + /** + * Creates the IEventCancelRequest with specific options instead of the existing options + * + * @param requestOptions the options for the request + * @return the IEventCancelRequest instance + */ + IEventCancelRequest buildRequest(final java.util.List requestOptions); +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IEventCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/IEventCollectionPage.java index cbc27ff4e57..60e775a3a4d 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IEventCollectionPage.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IEventCollectionPage.java @@ -9,6 +9,7 @@ import com.microsoft.graph.concurrency.ICallback; import com.microsoft.graph.models.extensions.Group; import com.microsoft.graph.models.extensions.Event; +import com.microsoft.graph.models.extensions.Recipient; import com.microsoft.graph.models.extensions.DateTimeTimeZone; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IEventCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IEventCollectionRequest.java index b96fc66edaa..8b89f4dcb8c 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IEventCollectionRequest.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IEventCollectionRequest.java @@ -9,6 +9,7 @@ import com.microsoft.graph.concurrency.ICallback; import com.microsoft.graph.models.extensions.Group; import com.microsoft.graph.models.extensions.Event; +import com.microsoft.graph.models.extensions.Recipient; import com.microsoft.graph.models.extensions.DateTimeTimeZone; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IEventCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IEventCollectionRequestBuilder.java index 2401fdfc48c..654ed3b8f3b 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IEventCollectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IEventCollectionRequestBuilder.java @@ -9,6 +9,7 @@ import com.microsoft.graph.concurrency.ICallback; import com.microsoft.graph.models.extensions.Group; import com.microsoft.graph.models.extensions.Event; +import com.microsoft.graph.models.extensions.Recipient; import com.microsoft.graph.models.extensions.DateTimeTimeZone; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IEventForwardRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IEventForwardRequest.java new file mode 100644 index 00000000000..14c3e6431ed --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IEventForwardRequest.java @@ -0,0 +1,50 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; +import com.microsoft.graph.requests.extensions.IEventForwardRequest; + +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.http.BaseCollectionRequest; +import com.microsoft.graph.http.BaseRequest; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.http.BaseCollectionRequest; +import com.microsoft.graph.http.IHttpRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Event Forward Request. + */ +public interface IEventForwardRequest extends IHttpRequest { + + void post(final ICallback callback); + + Void post() throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IEventForwardRequest select(final String value) ; + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + IEventForwardRequest top(final int value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IEventForwardRequest expand(final String value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IEventForwardRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IEventForwardRequestBuilder.java new file mode 100644 index 00000000000..8f701ae1307 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IEventForwardRequestBuilder.java @@ -0,0 +1,32 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; +import com.microsoft.graph.requests.extensions.IEventForwardRequest; + +import com.microsoft.graph.http.IRequestBuilder; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Event Forward Request Builder. + */ +public interface IEventForwardRequestBuilder extends IRequestBuilder { + + /** + * Creates the IEventForwardRequest + * + * @param requestOptions the options for the request + * @return the IEventForwardRequest instance + */ + IEventForwardRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions); + + /** + * Creates the IEventForwardRequest with specific options instead of the existing options + * + * @param requestOptions the options for the request + * @return the IEventForwardRequest instance + */ + IEventForwardRequest buildRequest(final java.util.List requestOptions); +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IEventRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IEventRequestBuilder.java index d2d161af118..5cfcfa58674 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IEventRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IEventRequestBuilder.java @@ -8,6 +8,7 @@ import com.microsoft.graph.core.ClientException; import com.microsoft.graph.concurrency.ICallback; import com.microsoft.graph.models.extensions.Event; +import com.microsoft.graph.models.extensions.Recipient; import com.microsoft.graph.models.extensions.DateTimeTimeZone; import com.microsoft.graph.requests.extensions.IAttachmentCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IAttachmentRequestBuilder; @@ -73,8 +74,10 @@ public interface IEventRequestBuilder extends IRequestBuilder { ISingleValueLegacyExtendedPropertyRequestBuilder singleValueExtendedProperties(final String id); IEventAcceptRequestBuilder accept(final String comment, final Boolean sendResponse); + IEventCancelRequestBuilder cancel(final String comment); IEventDeclineRequestBuilder decline(final String comment, final Boolean sendResponse); IEventDismissReminderRequestBuilder dismissReminder(); + IEventForwardRequestBuilder forward(final java.util.List toRecipients, final String comment); IEventSnoozeReminderRequestBuilder snoozeReminder(final DateTimeTimeZone newReminderTime); IEventTentativelyAcceptRequestBuilder tentativelyAccept(final String comment, final Boolean sendResponse); diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IMessageRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IMessageRequestBuilder.java index ec7a6ae2e6b..f67d75860ef 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IMessageRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IMessageRequestBuilder.java @@ -60,12 +60,12 @@ public interface IMessageRequestBuilder extends IRequestBuilder { ISingleValueLegacyExtendedPropertyRequestBuilder singleValueExtendedProperties(final String id); IMessageStreamRequestBuilder content(); + IMessageForwardRequestBuilder forward(final java.util.List toRecipients, final Message message, final String comment); IMessageCopyRequestBuilder copy(final String destinationId); IMessageMoveRequestBuilder move(final String destinationId); IMessageCreateForwardRequestBuilder createForward(final java.util.List toRecipients, final Message message, final String comment); IMessageCreateReplyRequestBuilder createReply(final Message message, final String comment); IMessageCreateReplyAllRequestBuilder createReplyAll(final Message message, final String comment); - IMessageForwardRequestBuilder forward(final java.util.List toRecipients, final Message message, final String comment); IMessageReplyRequestBuilder reply(final Message message, final String comment); IMessageReplyAllRequestBuilder replyAll(final Message message, final String comment); IMessageSendRequestBuilder send(); diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IMessageStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IMessageStreamRequestBuilder.java index aeded73904d..79832c5f32d 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IMessageStreamRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IMessageStreamRequestBuilder.java @@ -62,12 +62,12 @@ public interface IMessageStreamRequestBuilder extends IRequestBuilder { + IMessageForwardRequestBuilder forward(final java.util.List toRecipients, final Message message, final String comment); IMessageCopyRequestBuilder copy(final String destinationId); IMessageMoveRequestBuilder move(final String destinationId); IMessageCreateForwardRequestBuilder createForward(final java.util.List toRecipients, final Message message, final String comment); IMessageCreateReplyRequestBuilder createReply(final Message message, final String comment); IMessageCreateReplyAllRequestBuilder createReplyAll(final Message message, final String comment); - IMessageForwardRequestBuilder forward(final java.util.List toRecipients, final Message message, final String comment); IMessageReplyRequestBuilder reply(final Message message, final String comment); IMessageReplyAllRequestBuilder replyAll(final Message message, final String comment); IMessageSendRequestBuilder send(); diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IUserReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IUserReferenceRequest.java index 8dcce3fe971..ae977be9391 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IUserReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IUserReferenceRequest.java @@ -74,6 +74,7 @@ import com.microsoft.graph.requests.extensions.IOfficeGraphInsightsRequestBuilder; import com.microsoft.graph.requests.extensions.IUserSettingsRequestBuilder; import com.microsoft.graph.requests.extensions.IOnenoteRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserTeamworkRequestBuilder; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IUserReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IUserReferenceRequestBuilder.java index 522fb2c572a..957c218b4f2 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IUserReferenceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IUserReferenceRequestBuilder.java @@ -74,6 +74,7 @@ import com.microsoft.graph.requests.extensions.IOfficeGraphInsightsRequestBuilder; import com.microsoft.graph.requests.extensions.IUserSettingsRequestBuilder; import com.microsoft.graph.requests.extensions.IOnenoteRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserTeamworkRequestBuilder; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IUserRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IUserRequestBuilder.java index 89058e581fe..2840009ab60 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IUserRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IUserRequestBuilder.java @@ -74,6 +74,7 @@ import com.microsoft.graph.requests.extensions.IOfficeGraphInsightsRequestBuilder; import com.microsoft.graph.requests.extensions.IUserSettingsRequestBuilder; import com.microsoft.graph.requests.extensions.IOnenoteRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserTeamworkRequestBuilder; import java.util.Arrays; import java.util.EnumSet; @@ -385,6 +386,13 @@ public interface IUserRequestBuilder extends IRequestBuilder { ITeamCollectionRequestBuilder joinedTeams(); ITeamRequestBuilder joinedTeams(final String id); + + /** + * Gets the request builder for UserTeamwork + * + * @return the IUserTeamworkRequestBuilder instance + */ + IUserTeamworkRequestBuilder teamwork(); IUserAssignLicenseRequestBuilder assignLicense(final java.util.List addLicenses, final java.util.List removeLicenses); IUserChangePasswordRequestBuilder changePassword(final String currentPassword, final String newPassword); IUserReprocessLicenseAssignmentRequestBuilder reprocessLicenseAssignment(); diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionWithReferencesPage.java b/src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationCollectionPage.java similarity index 58% rename from src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionWithReferencesPage.java rename to src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationCollectionPage.java index 20104102533..0b9ddf78a11 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionWithReferencesPage.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationCollectionPage.java @@ -7,19 +7,19 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.concurrency.ICallback; -import com.microsoft.graph.models.extensions.ServicePrincipal; -import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; +import com.microsoft.graph.models.extensions.UserTeamwork; +import com.microsoft.graph.models.extensions.UserScopeTeamsAppInstallation; import java.util.Arrays; import java.util.EnumSet; import com.google.gson.JsonObject; -import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationCollectionRequestBuilder; import com.microsoft.graph.http.IBaseCollectionPage; // **NOTE** This file was generated by a tool and any changes will be overwritten. /** - * The interface for the Directory Object Partner Reference Collection With References Page. + * The interface for the User Scope Teams App Installation Collection Page. */ -public interface IDirectoryObjectPartnerReferenceCollectionWithReferencesPage extends IBaseCollectionPage { +public interface IUserScopeTeamsAppInstallationCollectionPage extends IBaseCollectionPage { } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationCollectionRequest.java new file mode 100644 index 00000000000..26a56aec3c9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationCollectionRequest.java @@ -0,0 +1,89 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.models.extensions.UserTeamwork; +import com.microsoft.graph.models.extensions.UserScopeTeamsAppInstallation; +import java.util.Arrays; +import java.util.EnumSet; + +import com.microsoft.graph.http.IBaseCollectionPage; +import com.microsoft.graph.http.IHttpRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the User Scope Teams App Installation Collection Request. + */ +public interface IUserScopeTeamsAppInstallationCollectionRequest extends IHttpRequest { + + void get(final ICallback callback); + + IUserScopeTeamsAppInstallationCollectionPage get() throws ClientException; + + void post(final UserScopeTeamsAppInstallation newUserScopeTeamsAppInstallation, final ICallback callback); + + UserScopeTeamsAppInstallation post(final UserScopeTeamsAppInstallation newUserScopeTeamsAppInstallation) throws ClientException; + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IUserScopeTeamsAppInstallationCollectionRequest expand(final String value); + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + IUserScopeTeamsAppInstallationCollectionRequest filter(final String value); + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + IUserScopeTeamsAppInstallationCollectionRequest orderBy(final String value); + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IUserScopeTeamsAppInstallationCollectionRequest select(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + IUserScopeTeamsAppInstallationCollectionRequest top(final int value); + + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + IUserScopeTeamsAppInstallationCollectionRequest skip(final int value); + + /** + * Sets the skip token value for the request + * + * @param skipToken value for pagination + * + * @return the updated request + */ + IUserScopeTeamsAppInstallationCollectionRequest skipToken(final String skipToken); +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationCollectionRequestBuilder.java similarity index 51% rename from src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionReferenceRequestBuilder.java rename to src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationCollectionRequestBuilder.java index 075a324e55e..ca7e573bd5e 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceCollectionReferenceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationCollectionRequestBuilder.java @@ -7,17 +7,21 @@ import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.core.ClientException; import com.microsoft.graph.concurrency.ICallback; -import com.microsoft.graph.models.extensions.ServicePrincipal; -import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; +import com.microsoft.graph.models.extensions.UserTeamwork; +import com.microsoft.graph.models.extensions.UserScopeTeamsAppInstallation; import java.util.Arrays; import java.util.EnumSet; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationCollectionRequest; +import com.microsoft.graph.http.IBaseCollectionPage; + // **NOTE** This file was generated by a tool and any changes will be overwritten. /** - * The interface for the Directory Object Partner Reference Collection Reference Request Builder. + * The interface for the User Scope Teams App Installation Collection Request Builder. */ -public interface IDirectoryObjectPartnerReferenceCollectionReferenceRequestBuilder extends IRequestBuilder { +public interface IUserScopeTeamsAppInstallationCollectionRequestBuilder extends IRequestBuilder { /** * Creates the request @@ -25,13 +29,16 @@ public interface IDirectoryObjectPartnerReferenceCollectionReferenceRequestBuild * @param requestOptions the options for this request * @return the IUserRequest instance */ - IDirectoryObjectPartnerReferenceCollectionReferenceRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions); - + IUserScopeTeamsAppInstallationCollectionRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions); + /** * Creates the request * * @param requestOptions the options for this request * @return the IUserRequest instance */ - IDirectoryObjectPartnerReferenceCollectionReferenceRequest buildRequest(final java.util.List requestOptions); + IUserScopeTeamsAppInstallationCollectionRequest buildRequest(final java.util.List requestOptions); + + IUserScopeTeamsAppInstallationRequestBuilder byId(final String id); + } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationRequest.java new file mode 100644 index 00000000000..d2810b76db6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationRequest.java @@ -0,0 +1,116 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; +import com.microsoft.graph.models.extensions.UserScopeTeamsAppInstallation; + +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.http.IHttpRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the User Scope Teams App Installation Request. + */ +public interface IUserScopeTeamsAppInstallationRequest extends IHttpRequest { + + /** + * Gets the UserScopeTeamsAppInstallation from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the UserScopeTeamsAppInstallation from the service + * + * @return the UserScopeTeamsAppInstallation from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + UserScopeTeamsAppInstallation get() throws ClientException; + + /** + * Delete this item from the service + * + * @param callback the callback when the deletion action has completed + */ + void delete(final ICallback callback); + + /** + * Delete this item from the service + * + * @throws ClientException if there was an exception during the delete operation + */ + void delete() throws ClientException; + + /** + * Patches this UserScopeTeamsAppInstallation with a source + * + * @param sourceUserScopeTeamsAppInstallation the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final UserScopeTeamsAppInstallation sourceUserScopeTeamsAppInstallation, final ICallback callback); + + /** + * Patches this UserScopeTeamsAppInstallation with a source + * + * @param sourceUserScopeTeamsAppInstallation the source object with updates + * @return the updated UserScopeTeamsAppInstallation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + UserScopeTeamsAppInstallation patch(final UserScopeTeamsAppInstallation sourceUserScopeTeamsAppInstallation) throws ClientException; + + /** + * Posts a UserScopeTeamsAppInstallation with a new object + * + * @param newUserScopeTeamsAppInstallation the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final UserScopeTeamsAppInstallation newUserScopeTeamsAppInstallation, final ICallback callback); + + /** + * Posts a UserScopeTeamsAppInstallation with a new object + * + * @param newUserScopeTeamsAppInstallation the new object to create + * @return the created UserScopeTeamsAppInstallation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + UserScopeTeamsAppInstallation post(final UserScopeTeamsAppInstallation newUserScopeTeamsAppInstallation) throws ClientException; + + /** + * Posts a UserScopeTeamsAppInstallation with a new object + * + * @param newUserScopeTeamsAppInstallation the object to create/update + * @param callback the callback to be called after success or failure + */ + void put(final UserScopeTeamsAppInstallation newUserScopeTeamsAppInstallation, final ICallback callback); + + /** + * Posts a UserScopeTeamsAppInstallation with a new object + * + * @param newUserScopeTeamsAppInstallation the object to create/update + * @return the created UserScopeTeamsAppInstallation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + UserScopeTeamsAppInstallation put(final UserScopeTeamsAppInstallation newUserScopeTeamsAppInstallation) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IUserScopeTeamsAppInstallationRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IUserScopeTeamsAppInstallationRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationRequestBuilder.java new file mode 100644 index 00000000000..f63f6f732a5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IUserScopeTeamsAppInstallationRequestBuilder.java @@ -0,0 +1,59 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.models.extensions.UserScopeTeamsAppInstallation; +import com.microsoft.graph.requests.extensions.IChatRequestBuilder; +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the User Scope Teams App Installation Request Builder. + */ +public interface IUserScopeTeamsAppInstallationRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the IUserScopeTeamsAppInstallationRequest instance + */ + IUserScopeTeamsAppInstallationRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IUserScopeTeamsAppInstallationRequest instance + */ + IUserScopeTeamsAppInstallationRequest buildRequest(final java.util.List requestOptions); + + + /** + * Gets the request builder for TeamsApp + * + * @return the ITeamsAppWithReferenceRequestBuilder instance + */ + ITeamsAppWithReferenceRequestBuilder teamsApp(); + + /** + * Gets the request builder for TeamsAppDefinition + * + * @return the ITeamsAppDefinitionWithReferenceRequestBuilder instance + */ + ITeamsAppDefinitionWithReferenceRequestBuilder teamsAppDefinition(); + + /** + * Gets the request builder for Chat + * + * @return the IChatWithReferenceRequestBuilder instance + */ + IChatWithReferenceRequestBuilder chat(); + +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IUserTeamworkRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IUserTeamworkRequest.java new file mode 100644 index 00000000000..dfc7cfad725 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IUserTeamworkRequest.java @@ -0,0 +1,116 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; +import com.microsoft.graph.models.extensions.UserTeamwork; + +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.http.IHttpRequest; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the User Teamwork Request. + */ +public interface IUserTeamworkRequest extends IHttpRequest { + + /** + * Gets the UserTeamwork from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the UserTeamwork from the service + * + * @return the UserTeamwork from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + UserTeamwork get() throws ClientException; + + /** + * Delete this item from the service + * + * @param callback the callback when the deletion action has completed + */ + void delete(final ICallback callback); + + /** + * Delete this item from the service + * + * @throws ClientException if there was an exception during the delete operation + */ + void delete() throws ClientException; + + /** + * Patches this UserTeamwork with a source + * + * @param sourceUserTeamwork the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final UserTeamwork sourceUserTeamwork, final ICallback callback); + + /** + * Patches this UserTeamwork with a source + * + * @param sourceUserTeamwork the source object with updates + * @return the updated UserTeamwork + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + UserTeamwork patch(final UserTeamwork sourceUserTeamwork) throws ClientException; + + /** + * Posts a UserTeamwork with a new object + * + * @param newUserTeamwork the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final UserTeamwork newUserTeamwork, final ICallback callback); + + /** + * Posts a UserTeamwork with a new object + * + * @param newUserTeamwork the new object to create + * @return the created UserTeamwork + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + UserTeamwork post(final UserTeamwork newUserTeamwork) throws ClientException; + + /** + * Posts a UserTeamwork with a new object + * + * @param newUserTeamwork the object to create/update + * @param callback the callback to be called after success or failure + */ + void put(final UserTeamwork newUserTeamwork, final ICallback callback); + + /** + * Posts a UserTeamwork with a new object + * + * @param newUserTeamwork the object to create/update + * @return the created UserTeamwork + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + UserTeamwork put(final UserTeamwork newUserTeamwork) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IUserTeamworkRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IUserTeamworkRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IUserTeamworkRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IUserTeamworkRequestBuilder.java new file mode 100644 index 00000000000..31e53fd65ce --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IUserTeamworkRequestBuilder.java @@ -0,0 +1,43 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.models.extensions.UserTeamwork; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationRequestBuilder; +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the User Teamwork Request Builder. + */ +public interface IUserTeamworkRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the IUserTeamworkRequest instance + */ + IUserTeamworkRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IUserTeamworkRequest instance + */ + IUserTeamworkRequest buildRequest(final java.util.List requestOptions); + + + IUserScopeTeamsAppInstallationCollectionRequestBuilder installedApps(); + + IUserScopeTeamsAppInstallationRequestBuilder installedApps(final String id); + +} \ No newline at end of file diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IUserWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IUserWithReferenceRequest.java index 2b15063ef4e..2d43d201777 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IUserWithReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IUserWithReferenceRequest.java @@ -74,6 +74,7 @@ import com.microsoft.graph.requests.extensions.IOfficeGraphInsightsRequestBuilder; import com.microsoft.graph.requests.extensions.IUserSettingsRequestBuilder; import com.microsoft.graph.requests.extensions.IOnenoteRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserTeamworkRequestBuilder; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IUserWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IUserWithReferenceRequestBuilder.java index 48ba5481439..b45eafc3530 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IUserWithReferenceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IUserWithReferenceRequestBuilder.java @@ -74,6 +74,7 @@ import com.microsoft.graph.requests.extensions.IOfficeGraphInsightsRequestBuilder; import com.microsoft.graph.requests.extensions.IUserSettingsRequestBuilder; import com.microsoft.graph.requests.extensions.IOnenoteRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserTeamworkRequestBuilder; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/extensions/MessageRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/MessageRequestBuilder.java index 7022018c8d8..133c7280587 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/MessageRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/MessageRequestBuilder.java @@ -102,6 +102,10 @@ public IMessageStreamRequestBuilder content() { return new MessageStreamRequestBuilder(getRequestUrlWithAdditionalSegment("$value"), getClient(), null); } + public IMessageForwardRequestBuilder forward(final java.util.List toRecipients, final Message message, final String comment) { + return new MessageForwardRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.forward"), getClient(), null, toRecipients, message, comment); + } + public IMessageCopyRequestBuilder copy(final String destinationId) { return new MessageCopyRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.copy"), getClient(), null, destinationId); } @@ -122,10 +126,6 @@ public IMessageCreateReplyAllRequestBuilder createReplyAll(final Message message return new MessageCreateReplyAllRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createReplyAll"), getClient(), null, message, comment); } - public IMessageForwardRequestBuilder forward(final java.util.List toRecipients, final Message message, final String comment) { - return new MessageForwardRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.forward"), getClient(), null, toRecipients, message, comment); - } - public IMessageReplyRequestBuilder reply(final Message message, final String comment) { return new MessageReplyRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.reply"), getClient(), null, message, comment); } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/MessageStreamRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/MessageStreamRequestBuilder.java index 1e8a17791ab..dfb7756489c 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/MessageStreamRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/MessageStreamRequestBuilder.java @@ -98,6 +98,10 @@ public ISingleValueLegacyExtendedPropertyRequestBuilder singleValueExtendedPrope + public IMessageForwardRequestBuilder forward(final java.util.List toRecipients, final Message message, final String comment) { + return new MessageForwardRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.forward"), getClient(), null, toRecipients, message, comment); + } + public IMessageCopyRequestBuilder copy(final String destinationId) { return new MessageCopyRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.copy"), getClient(), null, destinationId); } @@ -118,10 +122,6 @@ public IMessageCreateReplyAllRequestBuilder createReplyAll(final Message message return new MessageCreateReplyAllRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.createReplyAll"), getClient(), null, message, comment); } - public IMessageForwardRequestBuilder forward(final java.util.List toRecipients, final Message message, final String comment) { - return new MessageForwardRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.forward"), getClient(), null, toRecipients, message, comment); - } - public IMessageReplyRequestBuilder reply(final Message message, final String comment) { return new MessageReplyRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.reply"), getClient(), null, message, comment); } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/TeamsAppInstallationRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/TeamsAppInstallationRequest.java index 1f107148eb9..fb2a4373950 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/TeamsAppInstallationRequest.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/TeamsAppInstallationRequest.java @@ -25,6 +25,21 @@ */ public class TeamsAppInstallationRequest extends BaseRequest implements ITeamsAppInstallationRequest { + /** + * The request for the TeamsAppInstallation + * + * @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 TeamsAppInstallationRequest(final String requestUrl, + final IBaseClient client, + final java.util.List requestOptions, + final Class responseClass) { + super(requestUrl, client, requestOptions, responseClass); + } + /** * The request for the TeamsAppInstallation * diff --git a/src/main/java/com/microsoft/graph/requests/extensions/UserReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/UserReferenceRequest.java index 8482ec9de4d..c4b5cd48f44 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/UserReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserReferenceRequest.java @@ -126,6 +126,8 @@ import com.microsoft.graph.requests.extensions.UserSettingsRequestBuilder; import com.microsoft.graph.requests.extensions.IOnenoteRequestBuilder; import com.microsoft.graph.requests.extensions.OnenoteRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserTeamworkRequestBuilder; +import com.microsoft.graph.requests.extensions.UserTeamworkRequestBuilder; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/extensions/UserReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/UserReferenceRequestBuilder.java index afc4918464f..022045da1fc 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/UserReferenceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserReferenceRequestBuilder.java @@ -127,6 +127,8 @@ import com.microsoft.graph.requests.extensions.UserSettingsRequestBuilder; import com.microsoft.graph.requests.extensions.IOnenoteRequestBuilder; import com.microsoft.graph.requests.extensions.OnenoteRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserTeamworkRequestBuilder; +import com.microsoft.graph.requests.extensions.UserTeamworkRequestBuilder; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/extensions/UserRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/UserRequest.java index e9bf718b2ab..0e0bb3105c1 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/UserRequest.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserRequest.java @@ -126,6 +126,8 @@ import com.microsoft.graph.requests.extensions.UserSettingsRequestBuilder; import com.microsoft.graph.requests.extensions.IOnenoteRequestBuilder; import com.microsoft.graph.requests.extensions.OnenoteRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserTeamworkRequestBuilder; +import com.microsoft.graph.requests.extensions.UserTeamworkRequestBuilder; import java.util.Arrays; import java.util.EnumSet; import com.microsoft.graph.core.IBaseClient; diff --git a/src/main/java/com/microsoft/graph/requests/extensions/UserRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/UserRequestBuilder.java index f806a686200..7ec85f2f214 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/UserRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserRequestBuilder.java @@ -126,6 +126,8 @@ import com.microsoft.graph.requests.extensions.UserSettingsRequestBuilder; import com.microsoft.graph.requests.extensions.IOnenoteRequestBuilder; import com.microsoft.graph.requests.extensions.OnenoteRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserTeamworkRequestBuilder; +import com.microsoft.graph.requests.extensions.UserTeamworkRequestBuilder; import java.util.Arrays; import java.util.EnumSet; import com.microsoft.graph.core.IBaseClient; @@ -639,6 +641,15 @@ public ITeamRequestBuilder joinedTeams(final String id) { return new TeamRequestBuilder(getRequestUrlWithAdditionalSegment("joinedTeams") + "/" + id, getClient(), null); } + /** + * Gets the request builder for UserTeamwork + * + * @return the IUserTeamworkRequestBuilder instance + */ + public IUserTeamworkRequestBuilder teamwork() { + return new UserTeamworkRequestBuilder(getRequestUrlWithAdditionalSegment("teamwork"), getClient(), null); + } + public IUserAssignLicenseRequestBuilder assignLicense(final java.util.List addLicenses, final java.util.List removeLicenses) { return new UserAssignLicenseRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.assignLicense"), getClient(), null, addLicenses, removeLicenses); } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationCollectionPage.java new file mode 100644 index 00000000000..a12697fee4e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationCollectionPage.java @@ -0,0 +1,28 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; +import com.microsoft.graph.models.extensions.UserScopeTeamsAppInstallation; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionPage; +import com.microsoft.graph.requests.extensions.UserScopeTeamsAppInstallationCollectionPage; +import com.microsoft.graph.requests.extensions.UserScopeTeamsAppInstallationCollectionResponse; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Scope Teams App Installation Collection Page. + */ +public class UserScopeTeamsAppInstallationCollectionPage extends BaseCollectionPage implements IUserScopeTeamsAppInstallationCollectionPage { + + /** + * A collection page for UserScopeTeamsAppInstallation + * + * @param response the serialized UserScopeTeamsAppInstallationCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public UserScopeTeamsAppInstallationCollectionPage(final UserScopeTeamsAppInstallationCollectionResponse response, final IUserScopeTeamsAppInstallationCollectionRequestBuilder builder) { + super(response.value, builder, response.additionalDataManager()); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationCollectionRequest.java new file mode 100644 index 00000000000..c996fa1deee --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationCollectionRequest.java @@ -0,0 +1,163 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.models.extensions.UserTeamwork; +import com.microsoft.graph.models.extensions.UserScopeTeamsAppInstallation; +import java.util.Arrays; +import java.util.EnumSet; + +import com.microsoft.graph.options.QueryOption; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseCollectionRequest; +import com.microsoft.graph.concurrency.IExecutors; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationCollectionPage; +import com.microsoft.graph.requests.extensions.UserScopeTeamsAppInstallationCollectionResponse; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationCollectionRequest; +import com.microsoft.graph.requests.extensions.UserScopeTeamsAppInstallationCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Scope Teams App Installation Collection Request. + */ +public class UserScopeTeamsAppInstallationCollectionRequest extends BaseCollectionRequest implements IUserScopeTeamsAppInstallationCollectionRequest { + + /** + * The request builder for this collection of UserScopeTeamsAppInstallation + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserScopeTeamsAppInstallationCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserScopeTeamsAppInstallationCollectionResponse.class, IUserScopeTeamsAppInstallationCollectionPage.class); + } + + public void get(final ICallback callback) { + final IExecutors executors = getBaseRequest().getClient().getExecutors(); + executors.performOnBackground(new Runnable() { + @Override + public void run() { + try { + executors.performOnForeground(get(), callback); + } catch (final ClientException e) { + executors.performOnForeground(e, callback); + } + } + }); + } + + public IUserScopeTeamsAppInstallationCollectionPage get() throws ClientException { + final UserScopeTeamsAppInstallationCollectionResponse response = send(); + return buildFromResponse(response); + } + + public void post(final UserScopeTeamsAppInstallation newUserScopeTeamsAppInstallation, final ICallback callback) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + new UserScopeTeamsAppInstallationRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserScopeTeamsAppInstallation, callback); + } + + public UserScopeTeamsAppInstallation post(final UserScopeTeamsAppInstallation newUserScopeTeamsAppInstallation) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new UserScopeTeamsAppInstallationRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getHeaders()) + .post(newUserScopeTeamsAppInstallation); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IUserScopeTeamsAppInstallationCollectionRequest expand(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$expand", value)); + return (UserScopeTeamsAppInstallationCollectionRequest)this; + } + + /** + * Sets the filter clause for the request + * + * @param value the filter clause + * @return the updated request + */ + public IUserScopeTeamsAppInstallationCollectionRequest filter(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$filter", value)); + return (UserScopeTeamsAppInstallationCollectionRequest)this; + } + + /** + * Sets the order by clause for the request + * + * @param value the order by clause + * @return the updated request + */ + public IUserScopeTeamsAppInstallationCollectionRequest orderBy(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$orderby", value)); + return (UserScopeTeamsAppInstallationCollectionRequest)this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IUserScopeTeamsAppInstallationCollectionRequest select(final String value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$select", value)); + return (UserScopeTeamsAppInstallationCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public IUserScopeTeamsAppInstallationCollectionRequest top(final int value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$top", value + "")); + return (UserScopeTeamsAppInstallationCollectionRequest)this; + } + + /** + * Sets the skip value for the request + * + * @param value of the number of items to skip + * @return the updated request + */ + public IUserScopeTeamsAppInstallationCollectionRequest skip(final int value) { + addQueryOption(new com.microsoft.graph.options.QueryOption("$skip", value + "")); + return (UserScopeTeamsAppInstallationCollectionRequest)this; + } + + + /** + * Add Skip token for pagination + * @param skipToken - Token for pagination + * @return the updated request + */ + public IUserScopeTeamsAppInstallationCollectionRequest skipToken(final String skipToken) { + addQueryOption(new QueryOption("$skiptoken", skipToken)); + return (IUserScopeTeamsAppInstallationCollectionRequest)this; + } + public IUserScopeTeamsAppInstallationCollectionPage buildFromResponse(final UserScopeTeamsAppInstallationCollectionResponse response) { + final IUserScopeTeamsAppInstallationCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new UserScopeTeamsAppInstallationCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final UserScopeTeamsAppInstallationCollectionPage page = new UserScopeTeamsAppInstallationCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationCollectionRequestBuilder.java new file mode 100644 index 00000000000..a72e9783b01 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationCollectionRequestBuilder.java @@ -0,0 +1,64 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.models.extensions.UserTeamwork; +import com.microsoft.graph.models.extensions.UserScopeTeamsAppInstallation; +import java.util.Arrays; +import java.util.EnumSet; + +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationCollectionRequest; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.core.IBaseClient; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Scope Teams App Installation Collection Request Builder. + */ +public class UserScopeTeamsAppInstallationCollectionRequestBuilder extends BaseRequestBuilder implements IUserScopeTeamsAppInstallationCollectionRequestBuilder { + + /** + * The request builder for this collection of UserTeamwork + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserScopeTeamsAppInstallationCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the IUserRequest instance + */ + public IUserScopeTeamsAppInstallationCollectionRequest buildRequest(final com.microsoft.graph.options.Option... requestOptions) { + return buildRequest(getOptions(requestOptions)); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the IUserRequest instance + */ + public IUserScopeTeamsAppInstallationCollectionRequest buildRequest(final java.util.List requestOptions) { + return new UserScopeTeamsAppInstallationCollectionRequest(getRequestUrl(), getClient(), requestOptions); + } + + public IUserScopeTeamsAppInstallationRequestBuilder byId(final String id) { + return new UserScopeTeamsAppInstallationRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationCollectionResponse.java new file mode 100644 index 00000000000..1642cbc5d39 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationCollectionResponse.java @@ -0,0 +1,90 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; +import com.microsoft.graph.models.extensions.UserScopeTeamsAppInstallation; + +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import com.google.gson.annotations.Expose; +import com.google.gson.annotations.SerializedName; +import com.microsoft.graph.serializer.AdditionalDataManager; +import com.microsoft.graph.serializer.IJsonBackedObject; +import com.microsoft.graph.serializer.ISerializer; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Scope Teams App Installation Collection Response. + */ +public class UserScopeTeamsAppInstallationCollectionResponse implements IJsonBackedObject { + + /** + * The list of UserScopeTeamsAppInstallation within this collection page + */ + @SerializedName("value") + @Expose + public java.util.List value; + + /** + * The URL to the next page of this collection, or null + */ + @SerializedName("@odata.nextLink") + @Expose(serialize = false) + public String nextLink; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The raw representation of this class + */ + private JsonObject rawObject; + + /** + * The serializer + */ + private ISerializer serializer; + + /** + * Gets the raw representation of this class + * + * @return the raw representation of this class + */ + public JsonObject getRawObject() { + return rawObject; + } + + /** + * Gets serializer + * + * @return the serializer + */ + protected ISerializer getSerializer() { + return serializer; + } + + /** + * Sets the raw JSON object + * + * @param serializer the serializer + * @param json the JSON object to set this object to + */ + public void setRawObject(final ISerializer serializer, final JsonObject json) { + this.serializer = serializer; + rawObject = json; + + + if (json.has("value")) { + final JsonArray array = json.getAsJsonArray("value"); + for (int i = 0; i < array.size(); i++) { + value.get(i).setRawObject(serializer, (JsonObject) array.get(i)); + } + } + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationRequest.java new file mode 100644 index 00000000000..1d7dbf36c3a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationRequest.java @@ -0,0 +1,160 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.models.extensions.UserScopeTeamsAppInstallation; +import com.microsoft.graph.requests.extensions.IChatRequestBuilder; +import com.microsoft.graph.requests.extensions.ChatRequestBuilder; +import java.util.Arrays; +import java.util.EnumSet; +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 User Scope Teams App Installation Request. + */ +public class UserScopeTeamsAppInstallationRequest extends BaseRequest implements IUserScopeTeamsAppInstallationRequest { + + /** + * The request for the UserScopeTeamsAppInstallation + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserScopeTeamsAppInstallationRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserScopeTeamsAppInstallation.class); + } + + /** + * Gets the UserScopeTeamsAppInstallation from the service + * + * @param callback the callback to be called after success or failure + */ + public void get(final ICallback callback) { + send(HttpMethod.GET, callback, null); + } + + /** + * Gets the UserScopeTeamsAppInstallation from the service + * + * @return the UserScopeTeamsAppInstallation from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public UserScopeTeamsAppInstallation get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @param callback the callback when the deletion action has completed + */ + public void delete(final ICallback callback) { + send(HttpMethod.DELETE, callback, null); + } + + /** + * Delete this item from the service + * + * @throws ClientException if there was an exception during the delete operation + */ + public void delete() throws ClientException { + send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserScopeTeamsAppInstallation with a source + * + * @param sourceUserScopeTeamsAppInstallation the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final UserScopeTeamsAppInstallation sourceUserScopeTeamsAppInstallation, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceUserScopeTeamsAppInstallation); + } + + /** + * Patches this UserScopeTeamsAppInstallation with a source + * + * @param sourceUserScopeTeamsAppInstallation the source object with updates + * @return the updated UserScopeTeamsAppInstallation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public UserScopeTeamsAppInstallation patch(final UserScopeTeamsAppInstallation sourceUserScopeTeamsAppInstallation) throws ClientException { + return send(HttpMethod.PATCH, sourceUserScopeTeamsAppInstallation); + } + + /** + * Creates a UserScopeTeamsAppInstallation with a new object + * + * @param newUserScopeTeamsAppInstallation the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final UserScopeTeamsAppInstallation newUserScopeTeamsAppInstallation, final ICallback callback) { + send(HttpMethod.POST, callback, newUserScopeTeamsAppInstallation); + } + + /** + * Creates a UserScopeTeamsAppInstallation with a new object + * + * @param newUserScopeTeamsAppInstallation the new object to create + * @return the created UserScopeTeamsAppInstallation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public UserScopeTeamsAppInstallation post(final UserScopeTeamsAppInstallation newUserScopeTeamsAppInstallation) throws ClientException { + return send(HttpMethod.POST, newUserScopeTeamsAppInstallation); + } + + /** + * Creates a UserScopeTeamsAppInstallation with a new object + * + * @param newUserScopeTeamsAppInstallation the object to create/update + * @param callback the callback to be called after success or failure + */ + public void put(final UserScopeTeamsAppInstallation newUserScopeTeamsAppInstallation, final ICallback callback) { + send(HttpMethod.PUT, callback, newUserScopeTeamsAppInstallation); + } + + /** + * Creates a UserScopeTeamsAppInstallation with a new object + * + * @param newUserScopeTeamsAppInstallation the object to create/update + * @return the created UserScopeTeamsAppInstallation + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public UserScopeTeamsAppInstallation put(final UserScopeTeamsAppInstallation newUserScopeTeamsAppInstallation) throws ClientException { + return send(HttpMethod.PUT, newUserScopeTeamsAppInstallation); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IUserScopeTeamsAppInstallationRequest select(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$select", value)); + return (UserScopeTeamsAppInstallationRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IUserScopeTeamsAppInstallationRequest expand(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); + return (UserScopeTeamsAppInstallationRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationRequestBuilder.java new file mode 100644 index 00000000000..bc6cbb60e01 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserScopeTeamsAppInstallationRequestBuilder.java @@ -0,0 +1,84 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.models.extensions.UserScopeTeamsAppInstallation; +import com.microsoft.graph.requests.extensions.IChatRequestBuilder; +import com.microsoft.graph.requests.extensions.ChatRequestBuilder; +import java.util.Arrays; +import java.util.EnumSet; +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 User Scope Teams App Installation Request Builder. + */ +public class UserScopeTeamsAppInstallationRequestBuilder extends BaseRequestBuilder implements IUserScopeTeamsAppInstallationRequestBuilder { + + /** + * The request builder for the UserScopeTeamsAppInstallation + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserScopeTeamsAppInstallationRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the IUserScopeTeamsAppInstallationRequest instance + */ + public IUserScopeTeamsAppInstallationRequest buildRequest(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 IUserScopeTeamsAppInstallationRequest instance + */ + public IUserScopeTeamsAppInstallationRequest buildRequest(final java.util.List requestOptions) { + return new com.microsoft.graph.requests.extensions.UserScopeTeamsAppInstallationRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for TeamsApp + * + * @return the ITeamsAppWithReferenceRequestBuilder instance + */ + public ITeamsAppWithReferenceRequestBuilder teamsApp() { + return new TeamsAppWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("teamsApp"), getClient(), null); + } + + /** + * Gets the request builder for TeamsAppDefinition + * + * @return the ITeamsAppDefinitionWithReferenceRequestBuilder instance + */ + public ITeamsAppDefinitionWithReferenceRequestBuilder teamsAppDefinition() { + return new TeamsAppDefinitionWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("teamsAppDefinition"), getClient(), null); + } + + /** + * Gets the request builder for Chat + * + * @return the IChatWithReferenceRequestBuilder instance + */ + public IChatWithReferenceRequestBuilder chat() { + return new ChatWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("chat"), getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/UserTeamworkRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/UserTeamworkRequest.java new file mode 100644 index 00000000000..540a976fb4f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserTeamworkRequest.java @@ -0,0 +1,162 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.models.extensions.UserTeamwork; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationRequestBuilder; +import com.microsoft.graph.requests.extensions.UserScopeTeamsAppInstallationCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.UserScopeTeamsAppInstallationRequestBuilder; +import java.util.Arrays; +import java.util.EnumSet; +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 User Teamwork Request. + */ +public class UserTeamworkRequest extends BaseRequest implements IUserTeamworkRequest { + + /** + * The request for the UserTeamwork + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserTeamworkRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, UserTeamwork.class); + } + + /** + * Gets the UserTeamwork from the service + * + * @param callback the callback to be called after success or failure + */ + public void get(final ICallback callback) { + send(HttpMethod.GET, callback, null); + } + + /** + * Gets the UserTeamwork from the service + * + * @return the UserTeamwork from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public UserTeamwork get() throws ClientException { + return send(HttpMethod.GET, null); + } + + /** + * Delete this item from the service + * + * @param callback the callback when the deletion action has completed + */ + public void delete(final ICallback callback) { + send(HttpMethod.DELETE, callback, null); + } + + /** + * Delete this item from the service + * + * @throws ClientException if there was an exception during the delete operation + */ + public void delete() throws ClientException { + send(HttpMethod.DELETE, null); + } + + /** + * Patches this UserTeamwork with a source + * + * @param sourceUserTeamwork the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final UserTeamwork sourceUserTeamwork, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceUserTeamwork); + } + + /** + * Patches this UserTeamwork with a source + * + * @param sourceUserTeamwork the source object with updates + * @return the updated UserTeamwork + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public UserTeamwork patch(final UserTeamwork sourceUserTeamwork) throws ClientException { + return send(HttpMethod.PATCH, sourceUserTeamwork); + } + + /** + * Creates a UserTeamwork with a new object + * + * @param newUserTeamwork the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final UserTeamwork newUserTeamwork, final ICallback callback) { + send(HttpMethod.POST, callback, newUserTeamwork); + } + + /** + * Creates a UserTeamwork with a new object + * + * @param newUserTeamwork the new object to create + * @return the created UserTeamwork + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public UserTeamwork post(final UserTeamwork newUserTeamwork) throws ClientException { + return send(HttpMethod.POST, newUserTeamwork); + } + + /** + * Creates a UserTeamwork with a new object + * + * @param newUserTeamwork the object to create/update + * @param callback the callback to be called after success or failure + */ + public void put(final UserTeamwork newUserTeamwork, final ICallback callback) { + send(HttpMethod.PUT, callback, newUserTeamwork); + } + + /** + * Creates a UserTeamwork with a new object + * + * @param newUserTeamwork the object to create/update + * @return the created UserTeamwork + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public UserTeamwork put(final UserTeamwork newUserTeamwork) throws ClientException { + return send(HttpMethod.PUT, newUserTeamwork); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IUserTeamworkRequest select(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$select", value)); + return (UserTeamworkRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IUserTeamworkRequest expand(final String value) { + getQueryOptions().add(new com.microsoft.graph.options.QueryOption("$expand", value)); + return (UserTeamworkRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/UserTeamworkRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/UserTeamworkRequestBuilder.java new file mode 100644 index 00000000000..9b42c80d268 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserTeamworkRequestBuilder.java @@ -0,0 +1,66 @@ +// ------------------------------------------------------------------------------ +// 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.extensions; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.models.extensions.UserTeamwork; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserScopeTeamsAppInstallationRequestBuilder; +import com.microsoft.graph.requests.extensions.UserScopeTeamsAppInstallationCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.UserScopeTeamsAppInstallationRequestBuilder; +import java.util.Arrays; +import java.util.EnumSet; +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 User Teamwork Request Builder. + */ +public class UserTeamworkRequestBuilder extends BaseRequestBuilder implements IUserTeamworkRequestBuilder { + + /** + * The request builder for the UserTeamwork + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public UserTeamworkRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @param requestOptions the options for this request + * @return the IUserTeamworkRequest instance + */ + public IUserTeamworkRequest buildRequest(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 IUserTeamworkRequest instance + */ + public IUserTeamworkRequest buildRequest(final java.util.List requestOptions) { + return new com.microsoft.graph.requests.extensions.UserTeamworkRequest(getRequestUrl(), getClient(), requestOptions); + } + + + public IUserScopeTeamsAppInstallationCollectionRequestBuilder installedApps() { + return new UserScopeTeamsAppInstallationCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("installedApps"), getClient(), null); + } + + public IUserScopeTeamsAppInstallationRequestBuilder installedApps(final String id) { + return new UserScopeTeamsAppInstallationRequestBuilder(getRequestUrlWithAdditionalSegment("installedApps") + "/" + id, getClient(), null); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/UserWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/UserWithReferenceRequest.java index 4438736f9c6..20d788767b6 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/UserWithReferenceRequest.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserWithReferenceRequest.java @@ -126,6 +126,8 @@ import com.microsoft.graph.requests.extensions.UserSettingsRequestBuilder; import com.microsoft.graph.requests.extensions.IOnenoteRequestBuilder; import com.microsoft.graph.requests.extensions.OnenoteRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserTeamworkRequestBuilder; +import com.microsoft.graph.requests.extensions.UserTeamworkRequestBuilder; import java.util.Arrays; import java.util.EnumSet; diff --git a/src/main/java/com/microsoft/graph/requests/extensions/UserWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/UserWithReferenceRequestBuilder.java index 0a03e7acce6..c42eecc7265 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/UserWithReferenceRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserWithReferenceRequestBuilder.java @@ -126,6 +126,8 @@ import com.microsoft.graph.requests.extensions.UserSettingsRequestBuilder; import com.microsoft.graph.requests.extensions.IOnenoteRequestBuilder; import com.microsoft.graph.requests.extensions.OnenoteRequestBuilder; +import com.microsoft.graph.requests.extensions.IUserTeamworkRequestBuilder; +import com.microsoft.graph.requests.extensions.UserTeamworkRequestBuilder; import java.util.Arrays; import java.util.EnumSet;