From d907262b8a6c66ebfe3d7d4f584a63bb683514fe Mon Sep 17 00:00:00 2001 From: Client Tooling Big Giant Robot Date: Thu, 14 Feb 2019 00:01:43 -0800 Subject: [PATCH 01/12] Update generated files with build 1000979 --- .../models/extensions/CopyNotebookModel.java | 202 ++++++++++++++++++ .../models/extensions/EducationUser.java | 2 +- .../models/extensions/FileAttachment.java | 2 +- .../graph/models/extensions/Group.java | 48 +++++ .../graph/models/extensions/ItemBody.java | 2 +- .../extensions/LicenseAssignmentState.java | 119 +++++++++++ .../extensions/LicenseProcessingState.java | 87 ++++++++ .../graph/models/extensions/Message.java | 2 +- .../NotebookGetNotebookFromWebUrlBody.java | 69 ++++++ .../graph/models/extensions/User.java | 19 +- .../extensions/GroupRequestBuilder.java | 11 + .../extensions/IGroupRequestBuilder.java | 6 + .../INotebookCollectionRequestBuilder.java | 1 + ...INotebookGetNotebookFromWebUrlRequest.java | 47 ++++ ...okGetNotebookFromWebUrlRequestBuilder.java | 32 +++ .../NotebookCollectionRequestBuilder.java | 4 + .../NotebookGetNotebookFromWebUrlRequest.java | 80 +++++++ ...okGetNotebookFromWebUrlRequestBuilder.java | 64 ++++++ 18 files changed, 788 insertions(+), 9 deletions(-) create mode 100644 src/main/java/com/microsoft/graph/models/extensions/CopyNotebookModel.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/LicenseAssignmentState.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/LicenseProcessingState.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/NotebookGetNotebookFromWebUrlBody.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/INotebookGetNotebookFromWebUrlRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/INotebookGetNotebookFromWebUrlRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/NotebookGetNotebookFromWebUrlRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/NotebookGetNotebookFromWebUrlRequestBuilder.java diff --git a/src/main/java/com/microsoft/graph/models/extensions/CopyNotebookModel.java b/src/main/java/com/microsoft/graph/models/extensions/CopyNotebookModel.java new file mode 100644 index 00000000000..dcd86faf7e2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/CopyNotebookModel.java @@ -0,0 +1,202 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.generated.OnenoteUserRole; +import com.microsoft.graph.models.extensions.NotebookLinks; +import com.microsoft.graph.models.extensions.IdentitySet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Copy Notebook Model. + */ +public class CopyNotebookModel implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Is Default. + * + */ + @SerializedName("isDefault") + @Expose + public Boolean isDefault; + + /** + * The User Role. + * + */ + @SerializedName("userRole") + @Expose + public OnenoteUserRole userRole; + + /** + * The Is Shared. + * + */ + @SerializedName("isShared") + @Expose + public Boolean isShared; + + /** + * The Sections Url. + * + */ + @SerializedName("sectionsUrl") + @Expose + public String sectionsUrl; + + /** + * The Section Groups Url. + * + */ + @SerializedName("sectionGroupsUrl") + @Expose + public String sectionGroupsUrl; + + /** + * The Links. + * + */ + @SerializedName("links") + @Expose + public NotebookLinks links; + + /** + * The Name. + * + */ + @SerializedName("name") + @Expose + public String name; + + /** + * The Created By. + * + */ + @SerializedName("createdBy") + @Expose + public String createdBy; + + /** + * The Created By Identity. + * + */ + @SerializedName("createdByIdentity") + @Expose + public IdentitySet createdByIdentity; + + /** + * The Last Modified By. + * + */ + @SerializedName("lastModifiedBy") + @Expose + public String lastModifiedBy; + + /** + * The Last Modified By Identity. + * + */ + @SerializedName("lastModifiedByIdentity") + @Expose + public IdentitySet lastModifiedByIdentity; + + /** + * The Last Modified Time. + * + */ + @SerializedName("lastModifiedTime") + @Expose + public java.util.Calendar lastModifiedTime; + + /** + * The Id. + * + */ + @SerializedName("id") + @Expose + public String id; + + /** + * The Self. + * + */ + @SerializedName("self") + @Expose + public String self; + + /** + * The Created Time. + * + */ + @SerializedName("createdTime") + @Expose + public java.util.Calendar createdTime; + + + /** + * 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/EducationUser.java b/src/main/java/com/microsoft/graph/models/extensions/EducationUser.java index 72cb5d3a524..231dac5e9e7 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/EducationUser.java +++ b/src/main/java/com/microsoft/graph/models/extensions/EducationUser.java @@ -111,7 +111,7 @@ public class EducationUser extends Entity implements IJsonBackedObject { /** * The Related Contacts. - * + * Set of contacts related to the user. This optional property must be specified in a $select clause and can only be retrieved for an individual user. */ @SerializedName("relatedContacts") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/FileAttachment.java b/src/main/java/com/microsoft/graph/models/extensions/FileAttachment.java index e75b3afea5e..454cdc6dcaf 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/FileAttachment.java +++ b/src/main/java/com/microsoft/graph/models/extensions/FileAttachment.java @@ -37,7 +37,7 @@ public class FileAttachment extends Attachment implements IJsonBackedObject { /** * The Content Location. - * The Uniform Resource Identifier (URI) that corresponds to the location of the content of the attachment. + * Do not use this property as it is not supported. */ @SerializedName("contentLocation") @Expose 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 cd2f34aa4e8..ef8c3697da7 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Group.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Group.java @@ -10,6 +10,8 @@ import com.microsoft.graph.serializer.*; import java.util.Arrays; import java.util.EnumSet; +import com.microsoft.graph.models.extensions.AssignedLicense; +import com.microsoft.graph.models.extensions.LicenseProcessingState; import com.microsoft.graph.models.extensions.OnPremisesProvisioningError; import com.microsoft.graph.models.extensions.DirectoryObject; import com.microsoft.graph.models.extensions.GroupSetting; @@ -61,6 +63,14 @@ public class Group extends DirectoryObject implements IJsonBackedObject { + /** + * The Assigned Licenses. + * The licenses that are assigned to the group. Returned only on $select. Read-only. + */ + @SerializedName("assignedLicenses") + @Expose + public java.util.List assignedLicenses; + /** * The Classification. * Describes a classification for the group (such as low, medium or high business impact). Valid values for this property are defined by creating a ClassificationList setting value, based on the template definition.Returned by default. @@ -93,6 +103,14 @@ public class Group extends DirectoryObject implements IJsonBackedObject { @Expose public String displayName; + /** + * The Has Members With License Errors. + * Indicates whether there are members in this group that have license errors from its group-based license assignment. This property is never returned on a GET operation. You can use it as a $filter argument to get groups that have members with license errors (that is, filter for this property being true). See an example. + */ + @SerializedName("hasMembersWithLicenseErrors") + @Expose + public Boolean hasMembersWithLicenseErrors; + /** * The Group Types. * Specifies the type of group to create. Possible values are Unified to create an Office 365 group, or DynamicMembership for dynamic groups. For all other group types, like security-enabled groups and email-enabled security groups, do not set this property. Returned by default. Supports $filter. @@ -101,6 +119,14 @@ public class Group extends DirectoryObject implements IJsonBackedObject { @Expose public java.util.List groupTypes; + /** + * The License Processing State. + * Indicates status of the group license assignment to all members of the group. Default value is false. Read-only. Possible values: QueuedForProcessing, ProcessingInProgress, and ProcessingComplete.Returned only on $select. Read-only. + */ + @SerializedName("licenseProcessingState") + @Expose + public LicenseProcessingState licenseProcessingState; + /** * The Mail. * The SMTP address for the group, for example, 'serviceadmins@contoso.onmicrosoft.com'. Returned by default. Read-only. Supports $filter. @@ -241,6 +267,12 @@ public class Group extends DirectoryObject implements IJsonBackedObject { */ public DirectoryObjectCollectionPage memberOf; + /** + * The Members With License Errors. + * A list of group members with license errors from this group-based license assignment. Read-only. + */ + public DirectoryObjectCollectionPage membersWithLicenseErrors; + /** * The Transitive Members. * @@ -459,6 +491,22 @@ public void setRawObject(final ISerializer serializer, final JsonObject json) { memberOf = new DirectoryObjectCollectionPage(response, null); } + if (json.has("membersWithLicenseErrors")) { + final DirectoryObjectCollectionResponse response = new DirectoryObjectCollectionResponse(); + if (json.has("membersWithLicenseErrors@odata.nextLink")) { + response.nextLink = json.get("membersWithLicenseErrors@odata.nextLink").getAsString(); + } + + final JsonObject[] sourceArray = serializer.deserializeObject(json.get("membersWithLicenseErrors").toString(), JsonObject[].class); + final DirectoryObject[] array = new DirectoryObject[sourceArray.length]; + for (int i = 0; i < sourceArray.length; i++) { + array[i] = serializer.deserializeObject(sourceArray[i].toString(), DirectoryObject.class); + array[i].setRawObject(serializer, sourceArray[i]); + } + response.value = Arrays.asList(array); + membersWithLicenseErrors = new DirectoryObjectCollectionPage(response, null); + } + if (json.has("transitiveMembers")) { final DirectoryObjectCollectionResponse response = new DirectoryObjectCollectionResponse(); if (json.has("transitiveMembers@odata.nextLink")) { diff --git a/src/main/java/com/microsoft/graph/models/extensions/ItemBody.java b/src/main/java/com/microsoft/graph/models/extensions/ItemBody.java index 47cb10606ed..83dd0d1e7c7 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/ItemBody.java +++ b/src/main/java/com/microsoft/graph/models/extensions/ItemBody.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Content Type. - * The type of the content. Possible values are Text and HTML. + * The type of the content. Possible values are text and HTML. */ @SerializedName("contentType") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/LicenseAssignmentState.java b/src/main/java/com/microsoft/graph/models/extensions/LicenseAssignmentState.java new file mode 100644 index 00000000000..5f258bb041f --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/LicenseAssignmentState.java @@ -0,0 +1,119 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the License Assignment State. + */ +public class LicenseAssignmentState implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Sku Id. + * + */ + @SerializedName("skuId") + @Expose + public java.util.UUID skuId; + + /** + * The Disabled Plans. + * + */ + @SerializedName("disabledPlans") + @Expose + public java.util.List disabledPlans; + + /** + * The Assigned By Group. + * + */ + @SerializedName("assignedByGroup") + @Expose + public String assignedByGroup; + + /** + * The State. + * + */ + @SerializedName("state") + @Expose + public String state; + + /** + * The Error. + * + */ + @SerializedName("error") + @Expose + public String error; + + + /** + * 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/LicenseProcessingState.java b/src/main/java/com/microsoft/graph/models/extensions/LicenseProcessingState.java new file mode 100644 index 00000000000..c3e0e19f38a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/LicenseProcessingState.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.models.extensions; +import com.microsoft.graph.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the License Processing State. + */ +public class LicenseProcessingState implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The State. + * + */ + @SerializedName("state") + @Expose + public String state; + + + /** + * 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/Message.java b/src/main/java/com/microsoft/graph/models/extensions/Message.java index 9a5aa835900..548cb5417f2 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Message.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Message.java @@ -79,7 +79,7 @@ public class Message extends OutlookItem implements IJsonBackedObject { /** * The Internet Message Headers. - * A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. + * A collection of message headers defined by RFC5322. The set includes message headers indicating the network path taken by a message from the sender to the recipient. It can also contain custom message headers that hold app data for the message. Returned only on applying a $select query option. Read-only. */ @SerializedName("internetMessageHeaders") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/NotebookGetNotebookFromWebUrlBody.java b/src/main/java/com/microsoft/graph/models/extensions/NotebookGetNotebookFromWebUrlBody.java new file mode 100644 index 00000000000..d98426d43e8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/NotebookGetNotebookFromWebUrlBody.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.microsoft.graph.models.generated.*; +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 Notebook Get Notebook From Web Url Body. + */ +public class NotebookGetNotebookFromWebUrlBody { + + /** + * The web Url. + * + */ + @SerializedName("webUrl") + @Expose + public String webUrl; + + + /** + * 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/User.java b/src/main/java/com/microsoft/graph/models/extensions/User.java index 00f4938a640..34bff0bc3ad 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/User.java +++ b/src/main/java/com/microsoft/graph/models/extensions/User.java @@ -12,6 +12,7 @@ import java.util.EnumSet; import com.microsoft.graph.models.extensions.AssignedLicense; import com.microsoft.graph.models.extensions.AssignedPlan; +import com.microsoft.graph.models.extensions.LicenseAssignmentState; import com.microsoft.graph.models.extensions.OnPremisesExtensionAttributes; import com.microsoft.graph.models.extensions.OnPremisesProvisioningError; import com.microsoft.graph.models.extensions.PasswordProfile; @@ -183,7 +184,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Employee Id. - * + * The employee identifier assigned to the user by the organization. Supports $filter. */ @SerializedName("employeeId") @Expose @@ -191,7 +192,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Fax Number. - * + * The fax number of the user. */ @SerializedName("faxNumber") @Expose @@ -229,6 +230,14 @@ public class User extends DirectoryObject implements IJsonBackedObject { @Expose public String legalAgeGroupClassification; + /** + * The License Assignment States. + * State of license assignments for this user. Read-only. + */ + @SerializedName("licenseAssignmentStates") + @Expose + public java.util.List licenseAssignmentStates; + /** * The Mail. * The SMTP address for the user, for example, 'jeff@contoso.onmicrosoft.com'. Read-Only. Supports $filter. @@ -255,7 +264,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The On Premises Distinguished Name. - * + * Contains the on-premises Active Directory distinguished name or DN. The property is only populated for customers who are synchronizing their on-premises directory to Azure Active Directory via Azure AD Connect. Read-only. */ @SerializedName("onPremisesDistinguishedName") @Expose @@ -335,7 +344,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Other Mails. - * + * A list of additional email addresses for the user; for example: ['bob@contoso.com', 'Robert@fabrikam.com']. Supports $filter. */ @SerializedName("otherMails") @Expose @@ -399,7 +408,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Show In Address List. - * + * true if the Outlook global address list should contain this user, otherwise false. If not set, this will be treated as true. For users invited through the invitation manager, this property will be set to false. */ @SerializedName("showInAddressList") @Expose diff --git a/src/main/java/com/microsoft/graph/requests/extensions/GroupRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/GroupRequestBuilder.java index 59283c7edfa..691d294d012 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/GroupRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/GroupRequestBuilder.java @@ -21,6 +21,10 @@ import com.microsoft.graph.requests.extensions.DirectoryObjectCollectionWithReferencesRequestBuilder; import com.microsoft.graph.requests.extensions.IDirectoryObjectWithReferenceRequestBuilder; import com.microsoft.graph.requests.extensions.DirectoryObjectWithReferenceRequestBuilder; +import com.microsoft.graph.requests.extensions.IDirectoryObjectCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.requests.extensions.DirectoryObjectCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.requests.extensions.IDirectoryObjectWithReferenceRequestBuilder; +import com.microsoft.graph.requests.extensions.DirectoryObjectWithReferenceRequestBuilder; import com.microsoft.graph.requests.extensions.IDirectoryObjectWithReferenceRequestBuilder; import com.microsoft.graph.requests.extensions.DirectoryObjectWithReferenceRequestBuilder; import com.microsoft.graph.requests.extensions.IDirectoryObjectCollectionWithReferencesRequestBuilder; @@ -157,6 +161,13 @@ public IDirectoryObjectCollectionWithReferencesRequestBuilder memberOf() { public IDirectoryObjectWithReferenceRequestBuilder memberOf(final String id) { return new DirectoryObjectWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("memberOf") + "/" + id, getClient(), null); } + public IDirectoryObjectCollectionWithReferencesRequestBuilder membersWithLicenseErrors() { + return new DirectoryObjectCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("membersWithLicenseErrors"), getClient(), null); + } + + public IDirectoryObjectWithReferenceRequestBuilder membersWithLicenseErrors(final String id) { + return new DirectoryObjectWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("membersWithLicenseErrors") + "/" + id, getClient(), null); + } public IDirectoryObjectCollectionWithReferencesRequestBuilder transitiveMembers() { return new DirectoryObjectCollectionWithReferencesRequestBuilder(getRequestUrlWithAdditionalSegment("transitiveMembers"), getClient(), null); } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IGroupRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IGroupRequestBuilder.java index cd46c33b0da..387c75aeb11 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IGroupRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IGroupRequestBuilder.java @@ -12,6 +12,8 @@ import com.microsoft.graph.requests.extensions.IDirectoryObjectWithReferenceRequestBuilder; import com.microsoft.graph.requests.extensions.IDirectoryObjectCollectionWithReferencesRequestBuilder; import com.microsoft.graph.requests.extensions.IDirectoryObjectWithReferenceRequestBuilder; +import com.microsoft.graph.requests.extensions.IDirectoryObjectCollectionWithReferencesRequestBuilder; +import com.microsoft.graph.requests.extensions.IDirectoryObjectWithReferenceRequestBuilder; import com.microsoft.graph.requests.extensions.IDirectoryObjectWithReferenceRequestBuilder; import com.microsoft.graph.requests.extensions.IDirectoryObjectCollectionWithReferencesRequestBuilder; import com.microsoft.graph.requests.extensions.IDirectoryObjectWithReferenceRequestBuilder; @@ -86,6 +88,10 @@ public interface IGroupRequestBuilder extends IRequestBuilder { IDirectoryObjectWithReferenceRequestBuilder memberOf(final String id); + IDirectoryObjectCollectionWithReferencesRequestBuilder membersWithLicenseErrors(); + + IDirectoryObjectWithReferenceRequestBuilder membersWithLicenseErrors(final String id); + IDirectoryObjectCollectionWithReferencesRequestBuilder transitiveMembers(); IDirectoryObjectWithReferenceRequestBuilder transitiveMembers(final String id); diff --git a/src/main/java/com/microsoft/graph/requests/extensions/INotebookCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/INotebookCollectionRequestBuilder.java index 5e2bf8e1b15..3f29069755d 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/INotebookCollectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/INotebookCollectionRequestBuilder.java @@ -29,6 +29,7 @@ public interface INotebookCollectionRequestBuilder extends IRequestBuilder { INotebookRequestBuilder byId(final String id); + INotebookGetNotebookFromWebUrlRequestBuilder getNotebookFromWebUrl(final String webUrl); INotebookGetRecentNotebooksCollectionRequestBuilder getRecentNotebooks(final Boolean includePersonalNotebooks); } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/INotebookGetNotebookFromWebUrlRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/INotebookGetNotebookFromWebUrlRequest.java new file mode 100644 index 00000000000..98aa8cb7a4c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/INotebookGetNotebookFromWebUrlRequest.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.models.extensions.CopyNotebookModel; +import com.microsoft.graph.requests.extensions.INotebookGetNotebookFromWebUrlRequest; + +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.core.ClientException; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Notebook Get Notebook From Web Url Request. + */ +public interface INotebookGetNotebookFromWebUrlRequest { + + void post(final ICallback callback); + + CopyNotebookModel post() throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + INotebookGetNotebookFromWebUrlRequest select(final String value) ; + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + INotebookGetNotebookFromWebUrlRequest top(final int value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + INotebookGetNotebookFromWebUrlRequest expand(final String value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/INotebookGetNotebookFromWebUrlRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/INotebookGetNotebookFromWebUrlRequestBuilder.java new file mode 100644 index 00000000000..e8a3b19fe84 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/INotebookGetNotebookFromWebUrlRequestBuilder.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.INotebookGetNotebookFromWebUrlRequest; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Notebook Get Notebook From Web Url Request Builder. + */ +public interface INotebookGetNotebookFromWebUrlRequestBuilder extends IRequestBuilder { + + /** + * Creates the INotebookGetNotebookFromWebUrlRequest + * + * @return the INotebookGetNotebookFromWebUrlRequest instance + */ + INotebookGetNotebookFromWebUrlRequest buildRequest(); + + /** + * Creates the INotebookGetNotebookFromWebUrlRequest with specific options instead of the existing options + * + * @param requestOptions the options for the request + * @return the INotebookGetNotebookFromWebUrlRequest instance + */ + INotebookGetNotebookFromWebUrlRequest buildRequest(final java.util.List requestOptions); +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/NotebookCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/NotebookCollectionRequestBuilder.java index d81bcc0b5d3..5a9c9bc48b0 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/NotebookCollectionRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/NotebookCollectionRequestBuilder.java @@ -48,6 +48,10 @@ public INotebookRequestBuilder byId(final String id) { + public INotebookGetNotebookFromWebUrlRequestBuilder getNotebookFromWebUrl(final String webUrl) { + return new NotebookGetNotebookFromWebUrlRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getNotebookFromWebUrl"), getClient(), null, webUrl); + } + public INotebookGetRecentNotebooksCollectionRequestBuilder getRecentNotebooks(final Boolean includePersonalNotebooks) { return new NotebookGetRecentNotebooksCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getRecentNotebooks"), getClient(), null, includePersonalNotebooks); } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/NotebookGetNotebookFromWebUrlRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/NotebookGetNotebookFromWebUrlRequest.java new file mode 100644 index 00000000000..f210dc650eb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/NotebookGetNotebookFromWebUrlRequest.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.NotebookGetNotebookFromWebUrlBody; +import com.microsoft.graph.models.extensions.CopyNotebookModel; +import com.microsoft.graph.requests.extensions.INotebookGetNotebookFromWebUrlRequest; +import com.microsoft.graph.requests.extensions.NotebookGetNotebookFromWebUrlRequest; + +import com.microsoft.graph.concurrency.ICallback; +import com.microsoft.graph.core.ClientException; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; +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 Notebook Get Notebook From Web Url Request. + */ +public class NotebookGetNotebookFromWebUrlRequest extends BaseRequest implements INotebookGetNotebookFromWebUrlRequest { + protected final NotebookGetNotebookFromWebUrlBody body; + + /** + * The request for this NotebookGetNotebookFromWebUrl + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public NotebookGetNotebookFromWebUrlRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CopyNotebookModel.class); + body = new NotebookGetNotebookFromWebUrlBody(); + } + + public void post(final ICallback callback) { + send(HttpMethod.POST, callback, body); + } + + public CopyNotebookModel 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 INotebookGetNotebookFromWebUrlRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (NotebookGetNotebookFromWebUrlRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public INotebookGetNotebookFromWebUrlRequest top(final int value) { + getQueryOptions().add(new QueryOption("$top", value+"")); + return (NotebookGetNotebookFromWebUrlRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public INotebookGetNotebookFromWebUrlRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (NotebookGetNotebookFromWebUrlRequest)this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/NotebookGetNotebookFromWebUrlRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/NotebookGetNotebookFromWebUrlRequestBuilder.java new file mode 100644 index 00000000000..a72deba5fae --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/NotebookGetNotebookFromWebUrlRequestBuilder.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.requests.extensions.INotebookGetNotebookFromWebUrlRequest; +import com.microsoft.graph.requests.extensions.NotebookGetNotebookFromWebUrlRequest; + +import com.microsoft.graph.core.BaseActionRequestBuilder; +import com.microsoft.graph.core.BaseFunctionRequestBuilder; +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.FunctionOption; +import com.google.gson.JsonElement; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Notebook Get Notebook From Web Url Request Builder. + */ +public class NotebookGetNotebookFromWebUrlRequestBuilder extends BaseActionRequestBuilder implements INotebookGetNotebookFromWebUrlRequestBuilder { + + /** + * The request builder for this NotebookGetNotebookFromWebUrl + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param webUrl the webUrl + */ + public NotebookGetNotebookFromWebUrlRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions, final String webUrl) { + super(requestUrl, client, requestOptions); + bodyParams.put("webUrl", webUrl); + } + + /** + * Creates the INotebookGetNotebookFromWebUrlRequest + * + * @return the INotebookGetNotebookFromWebUrlRequest instance + */ + public INotebookGetNotebookFromWebUrlRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the INotebookGetNotebookFromWebUrlRequest with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for the request + * @return the INotebookGetNotebookFromWebUrlRequest instance + */ + public INotebookGetNotebookFromWebUrlRequest buildRequest(final java.util.List requestOptions) { + NotebookGetNotebookFromWebUrlRequest request = new NotebookGetNotebookFromWebUrlRequest( + getRequestUrl(), + getClient(), + requestOptions + ); + + if (hasParameter("webUrl")) { + request.body.webUrl = getParameter("webUrl"); + } + + return request; + } +} From 9c751de5ab18c19c90d5cd3c93c72f9cb236ca11 Mon Sep 17 00:00:00 2001 From: Client Tooling Big Giant Robot Date: Tue, 12 Mar 2019 06:10:04 -0700 Subject: [PATCH 02/12] Update generated files with build 1078570 --- .../extensions/AndroidCompliancePolicy.java | 4 +- .../AndroidGeneralDeviceConfiguration.java | 2 +- .../AndroidWorkProfileCompliancePolicy.java | 2 +- ...WorkProfileGeneralDeviceConfiguration.java | 4 +- .../models/extensions/DateTimeTimeZone.java | 2 +- .../graph/models/extensions/Device.java | 26 +++- .../DirectoryObjectPartnerReference.java | 102 +++++++++++++ .../graph/models/extensions/Domain.java | 16 ++ .../models/extensions/EducationUser.java | 9 -- .../extensions/IBaseGraphServiceClient.java | 15 ++ .../graph/models/extensions/IPv4Range.java | 4 +- .../graph/models/extensions/IPv6Range.java | 4 +- .../models/extensions/IdentityProvider.java | 102 +++++++++++++ .../extensions/MacOSCompliancePolicy.java | 6 +- .../graph/models/extensions/Organization.java | 8 + .../models/extensions/PasswordProfile.java | 8 + .../graph/models/extensions/PlannerTask.java | 2 +- .../models/extensions/ProxiedDomain.java | 2 +- .../models/extensions/RegistryKeyState.java | 2 +- .../graph/models/extensions/User.java | 10 +- .../Windows10GeneralConfiguration.java | 4 +- ...nformationProtectionIPRangeCollection.java | 2 +- .../graph/models/extensions/Workbook.java | 25 ++++ .../models/extensions/WorkbookComment.java | 111 ++++++++++++++ .../extensions/WorkbookCommentReply.java | 86 +++++++++++ .../models/extensions/WorkbookTable.java | 8 + .../extensions/BaseGraphServiceClient.java | 19 +++ ...irectoryObjectPartnerReferenceRequest.java | 138 ++++++++++++++++++ ...yObjectPartnerReferenceRequestBuilder.java | 53 +++++++ ...irectoryObjectPartnerReferenceRequest.java | 99 +++++++++++++ ...yObjectPartnerReferenceRequestBuilder.java | 34 +++++ .../IIdentityProviderCollectionPage.java | 27 ++++ .../IIdentityProviderCollectionRequest.java | 58 ++++++++ ...ntityProviderCollectionRequestBuilder.java | 32 ++++ .../extensions/IIdentityProviderRequest.java | 99 +++++++++++++ .../IIdentityProviderRequestBuilder.java | 34 +++++ .../IWorkbookCommentCollectionPage.java | 27 ++++ .../IWorkbookCommentCollectionRequest.java | 58 ++++++++ ...rkbookCommentCollectionRequestBuilder.java | 32 ++++ .../IWorkbookCommentReplyCollectionPage.java | 27 ++++ ...WorkbookCommentReplyCollectionRequest.java | 58 ++++++++ ...kCommentReplyCollectionRequestBuilder.java | 32 ++++ .../IWorkbookCommentReplyRequest.java | 99 +++++++++++++ .../IWorkbookCommentReplyRequestBuilder.java | 34 +++++ .../extensions/IWorkbookCommentRequest.java | 99 +++++++++++++ .../IWorkbookCommentRequestBuilder.java | 40 +++++ .../extensions/IWorkbookRequestBuilder.java | 6 + .../IdentityProviderCollectionPage.java | 26 ++++ .../IdentityProviderCollectionRequest.java | 114 +++++++++++++++ ...ntityProviderCollectionRequestBuilder.java | 50 +++++++ .../IdentityProviderCollectionResponse.java | 90 ++++++++++++ .../extensions/IdentityProviderRequest.java | 138 ++++++++++++++++++ .../IdentityProviderRequestBuilder.java | 53 +++++++ .../WorkbookCommentCollectionPage.java | 26 ++++ .../WorkbookCommentCollectionRequest.java | 114 +++++++++++++++ ...rkbookCommentCollectionRequestBuilder.java | 50 +++++++ .../WorkbookCommentCollectionResponse.java | 90 ++++++++++++ .../WorkbookCommentReplyCollectionPage.java | 26 ++++ ...WorkbookCommentReplyCollectionRequest.java | 114 +++++++++++++++ ...kCommentReplyCollectionRequestBuilder.java | 50 +++++++ ...orkbookCommentReplyCollectionResponse.java | 90 ++++++++++++ .../WorkbookCommentReplyRequest.java | 138 ++++++++++++++++++ .../WorkbookCommentReplyRequestBuilder.java | 53 +++++++ .../extensions/WorkbookCommentRequest.java | 138 ++++++++++++++++++ .../WorkbookCommentRequestBuilder.java | 64 ++++++++ .../extensions/WorkbookRequestBuilder.java | 11 ++ 66 files changed, 3075 insertions(+), 31 deletions(-) create mode 100644 src/main/java/com/microsoft/graph/models/extensions/DirectoryObjectPartnerReference.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/IdentityProvider.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/WorkbookComment.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/WorkbookCommentReply.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DirectoryObjectPartnerReferenceRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DirectoryObjectPartnerReferenceRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentRequestBuilder.java diff --git a/src/main/java/com/microsoft/graph/models/extensions/AndroidCompliancePolicy.java b/src/main/java/com/microsoft/graph/models/extensions/AndroidCompliancePolicy.java index 913ed1495de..ebba610c65d 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/AndroidCompliancePolicy.java +++ b/src/main/java/com/microsoft/graph/models/extensions/AndroidCompliancePolicy.java @@ -63,7 +63,7 @@ public class AndroidCompliancePolicy extends DeviceCompliancePolicy implements I /** * The Password Expiration Days. - * Number of days before the password expires. Valid values 1 to 65535 + * Number of days before the password expires. Valid values 1 to 365 */ @SerializedName("passwordExpirationDays") @Expose @@ -71,7 +71,7 @@ public class AndroidCompliancePolicy extends DeviceCompliancePolicy implements I /** * The Password Previous Password Block Count. - * Number of previous passwords to block. + * Number of previous passwords to block. Valid values 1 to 24 */ @SerializedName("passwordPreviousPasswordBlockCount") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/AndroidGeneralDeviceConfiguration.java b/src/main/java/com/microsoft/graph/models/extensions/AndroidGeneralDeviceConfiguration.java index e8ddea841e5..cf0a873c2b9 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/AndroidGeneralDeviceConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/extensions/AndroidGeneralDeviceConfiguration.java @@ -233,7 +233,7 @@ public class AndroidGeneralDeviceConfiguration extends DeviceConfiguration imple /** * The Password Sign In Failure Count Before Factory Reset. - * Number of sign in failures allowed before factory reset. Valid values 4 to 11 + * Number of sign in failures allowed before factory reset. Valid values 1 to 16 */ @SerializedName("passwordSignInFailureCountBeforeFactoryReset") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/AndroidWorkProfileCompliancePolicy.java b/src/main/java/com/microsoft/graph/models/extensions/AndroidWorkProfileCompliancePolicy.java index cfdc6c8db6d..521e02e75f4 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/AndroidWorkProfileCompliancePolicy.java +++ b/src/main/java/com/microsoft/graph/models/extensions/AndroidWorkProfileCompliancePolicy.java @@ -71,7 +71,7 @@ public class AndroidWorkProfileCompliancePolicy extends DeviceCompliancePolicy i /** * The Password Previous Password Block Count. - * Number of previous passwords to block. + * Number of previous passwords to block. Valid values 1 to 24 */ @SerializedName("passwordPreviousPasswordBlockCount") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/AndroidWorkProfileGeneralDeviceConfiguration.java b/src/main/java/com/microsoft/graph/models/extensions/AndroidWorkProfileGeneralDeviceConfiguration.java index fb2cc8c14ad..36e038bc1a0 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/AndroidWorkProfileGeneralDeviceConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/extensions/AndroidWorkProfileGeneralDeviceConfiguration.java @@ -80,7 +80,7 @@ public class AndroidWorkProfileGeneralDeviceConfiguration extends DeviceConfigur /** * The Password Sign In Failure Count Before Factory Reset. - * Number of sign in failures allowed before factory reset. Valid values 4 to 11 + * Number of sign in failures allowed before factory reset. Valid values 1 to 16 */ @SerializedName("passwordSignInFailureCountBeforeFactoryReset") @Expose @@ -272,7 +272,7 @@ public class AndroidWorkProfileGeneralDeviceConfiguration extends DeviceConfigur /** * The Work Profile Password Sign In Failure Count Before Factory Reset. - * Number of sign in failures allowed before work profile is removed and all corporate data deleted. Valid values 4 to 11 + * Number of sign in failures allowed before work profile is removed and all corporate data deleted. Valid values 1 to 16 */ @SerializedName("workProfilePasswordSignInFailureCountBeforeFactoryReset") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/DateTimeTimeZone.java b/src/main/java/com/microsoft/graph/models/extensions/DateTimeTimeZone.java index 59e6f4e816f..acd78dfcf37 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/DateTimeTimeZone.java +++ b/src/main/java/com/microsoft/graph/models/extensions/DateTimeTimeZone.java @@ -38,7 +38,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Date Time. - * A single point of time in a combined date and time representation (&lt;date&gt;T&lt;time&gt;). + * A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000). */ @SerializedName("dateTime") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/Device.java b/src/main/java/com/microsoft/graph/models/extensions/Device.java index 657d5f3769e..62ea56bd316 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Device.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Device.java @@ -51,12 +51,20 @@ public class Device extends DirectoryObject implements IJsonBackedObject { /** * The Approximate Last Sign In Date Time. - * The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' Read-only. + * The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only. */ @SerializedName("approximateLastSignInDateTime") @Expose public java.util.Calendar approximateLastSignInDateTime; + /** + * The Compliance Expiration Date Time. + * The timestamp when the device is no longer deemed compliant. The timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only. + */ + @SerializedName("complianceExpirationDateTime") + @Expose + public java.util.Calendar complianceExpirationDateTime; + /** * The Device Id. * Unique identifier set by Azure Device Registration Service at the time of registration. @@ -145,6 +153,22 @@ public class Device extends DirectoryObject implements IJsonBackedObject { @Expose public java.util.List physicalIds; + /** + * The Profile Type. + * The profile type of the device. Possible values:RegisteredDevice (default)SecureVMPrinterSharedIoT + */ + @SerializedName("profileType") + @Expose + public String profileType; + + /** + * The System Labels. + * List of labels applied to the device by the system. + */ + @SerializedName("systemLabels") + @Expose + public java.util.List systemLabels; + /** * The Trust Type. * Type of trust for the joined device. Read-only. Possible values: Workplace - indicates bring your own personal devicesAzureAd - Cloud only joined devicesServerAd - on-premises domain joined devices joined to Azure AD. For more details, see Introduction to device management in Azure Active Directory diff --git a/src/main/java/com/microsoft/graph/models/extensions/DirectoryObjectPartnerReference.java b/src/main/java/com/microsoft/graph/models/extensions/DirectoryObjectPartnerReference.java new file mode 100644 index 00000000000..38bfe945796 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/DirectoryObjectPartnerReference.java @@ -0,0 +1,102 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.DirectoryObject; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Object Partner Reference. + */ +public class DirectoryObjectPartnerReference extends DirectoryObject implements IJsonBackedObject { + + + /** + * The Description. + * Description of the object returned. Read-only. + */ + @SerializedName("description") + @Expose + public String description; + + /** + * The Display Name. + * Name of directory object being returned, like group or application. Read-only. + */ + @SerializedName("displayName") + @Expose + public String displayName; + + /** + * The External Partner Tenant Id. + * The tenant identifier for the partner tenant. Read-only. + */ + @SerializedName("externalPartnerTenantId") + @Expose + public java.util.UUID externalPartnerTenantId; + + /** + * The Object Type. + * The type of the referenced object in the partner tenant. Read-only. + */ + @SerializedName("objectType") + @Expose + public String objectType; + + + /** + * 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/Domain.java b/src/main/java/com/microsoft/graph/models/extensions/Domain.java index f3be5558580..d901fd942f7 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Domain.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Domain.java @@ -90,6 +90,22 @@ public class Domain extends Entity implements IJsonBackedObject { @Expose public Boolean isVerified; + /** + * The Password Notification Window In Days. + * Specifies the number of days before a user receives notification that their password will expire. If the property is not set, a default value of 14 days will be used. + */ + @SerializedName("passwordNotificationWindowInDays") + @Expose + public Integer passwordNotificationWindowInDays; + + /** + * The Password Validity Period In Days. + * Specifies the length of time that a password is valid before it must be changed. If the property is not set, a default value of 90 days will be used. + */ + @SerializedName("passwordValidityPeriodInDays") + @Expose + public Integer passwordValidityPeriodInDays; + /** * The Supported Services. * The capabilities assigned to the domain.Can include 0, 1 or more of following values: Email, Sharepoint, EmailInternalRelayOnly, OfficeCommunicationsOnline, SharePointDefaultDomain, FullRedelegation, SharePointPublic, OrgIdAuthentication, Yammer, Intune The values which you can add/remove using Graph API include: Email, OfficeCommunicationsOnline, YammerNot nullable diff --git a/src/main/java/com/microsoft/graph/models/extensions/EducationUser.java b/src/main/java/com/microsoft/graph/models/extensions/EducationUser.java index 231dac5e9e7..cdbe7e3b5e0 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/EducationUser.java +++ b/src/main/java/com/microsoft/graph/models/extensions/EducationUser.java @@ -16,7 +16,6 @@ import com.microsoft.graph.models.extensions.EducationStudent; import com.microsoft.graph.models.extensions.EducationTeacher; import com.microsoft.graph.models.extensions.IdentitySet; -import com.microsoft.graph.models.extensions.EducationRelatedContact; import com.microsoft.graph.models.extensions.AssignedLicense; import com.microsoft.graph.models.extensions.AssignedPlan; import com.microsoft.graph.models.extensions.PasswordProfile; @@ -109,14 +108,6 @@ public class EducationUser extends Entity implements IJsonBackedObject { @Expose public IdentitySet createdBy; - /** - * The Related Contacts. - * Set of contacts related to the user. This optional property must be specified in a $select clause and can only be retrieved for an individual user. - */ - @SerializedName("relatedContacts") - @Expose - public java.util.List relatedContacts; - /** * The Account Enabled. * True if the account is enabled; otherwise, false. This property is required when a user is created. Supports $filter. diff --git a/src/main/java/com/microsoft/graph/models/extensions/IBaseGraphServiceClient.java b/src/main/java/com/microsoft/graph/models/extensions/IBaseGraphServiceClient.java index f916c178bf8..4337653c662 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/IBaseGraphServiceClient.java +++ b/src/main/java/com/microsoft/graph/models/extensions/IBaseGraphServiceClient.java @@ -368,6 +368,21 @@ public interface IBaseGraphServiceClient extends IBaseClient { */ IDataPolicyOperationRequestBuilder dataPolicyOperations(final String id); + /** + * Gets the collection of IdentityProviders objects + * + * @return the request builder for the collection of IdentityProviders objects + */ + IIdentityProviderCollectionRequestBuilder identityProviders(); + + /** + * Gets a single IdentityProviders + * + * @param id the id of the IdentityProviders to retrieve + * @return the request builder for the IdentityProviders object + */ + IIdentityProviderRequestBuilder identityProviders(final String id); + /** * Gets the GraphServiceRequestBuilder * diff --git a/src/main/java/com/microsoft/graph/models/extensions/IPv4Range.java b/src/main/java/com/microsoft/graph/models/extensions/IPv4Range.java index 81522555790..b0aeecdd08c 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/IPv4Range.java +++ b/src/main/java/com/microsoft/graph/models/extensions/IPv4Range.java @@ -29,7 +29,7 @@ public class IPv4Range extends IpRange implements IJsonBackedObject { /** * The Lower Address. - * Lower IP Address + * Lower address. */ @SerializedName("lowerAddress") @Expose @@ -37,7 +37,7 @@ public class IPv4Range extends IpRange implements IJsonBackedObject { /** * The Upper Address. - * Upper IP Address + * Upper address. */ @SerializedName("upperAddress") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/IPv6Range.java b/src/main/java/com/microsoft/graph/models/extensions/IPv6Range.java index 5678b827fe9..43cfe93ae6f 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/IPv6Range.java +++ b/src/main/java/com/microsoft/graph/models/extensions/IPv6Range.java @@ -29,7 +29,7 @@ public class IPv6Range extends IpRange implements IJsonBackedObject { /** * The Lower Address. - * Lower IP Address + * Lower address */ @SerializedName("lowerAddress") @Expose @@ -37,7 +37,7 @@ public class IPv6Range extends IpRange implements IJsonBackedObject { /** * The Upper Address. - * Upper IP Address + * Upper address */ @SerializedName("upperAddress") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/IdentityProvider.java b/src/main/java/com/microsoft/graph/models/extensions/IdentityProvider.java new file mode 100644 index 00000000000..c1e4d4a4f0b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/IdentityProvider.java @@ -0,0 +1,102 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Identity Provider. + */ +public class IdentityProvider extends Entity implements IJsonBackedObject { + + + /** + * The Type. + * + */ + @SerializedName("type") + @Expose + public String type; + + /** + * The Name. + * + */ + @SerializedName("name") + @Expose + public String name; + + /** + * The Client Id. + * + */ + @SerializedName("clientId") + @Expose + public String clientId; + + /** + * The Client Secret. + * + */ + @SerializedName("clientSecret") + @Expose + public String clientSecret; + + + /** + * 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/MacOSCompliancePolicy.java b/src/main/java/com/microsoft/graph/models/extensions/MacOSCompliancePolicy.java index 7df3d088049..39456d5dd5a 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/MacOSCompliancePolicy.java +++ b/src/main/java/com/microsoft/graph/models/extensions/MacOSCompliancePolicy.java @@ -95,7 +95,7 @@ public class MacOSCompliancePolicy extends DeviceCompliancePolicy implements IJs /** * The Os Minimum Version. - * Minimum IOS version. + * Minimum MacOS version. */ @SerializedName("osMinimumVersion") @Expose @@ -103,7 +103,7 @@ public class MacOSCompliancePolicy extends DeviceCompliancePolicy implements IJs /** * The Os Maximum Version. - * Maximum IOS version. + * Maximum MacOS version. */ @SerializedName("osMaximumVersion") @Expose @@ -119,7 +119,7 @@ public class MacOSCompliancePolicy extends DeviceCompliancePolicy implements IJs /** * The Device Threat Protection Enabled. - * Require that devices have enabled device threat protection . + * Require that devices have enabled device threat protection. */ @SerializedName("deviceThreatProtectionEnabled") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/Organization.java b/src/main/java/com/microsoft/graph/models/extensions/Organization.java index 1e112c7b0a7..3c780e37044 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Organization.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Organization.java @@ -75,6 +75,14 @@ public class Organization extends DirectoryObject implements IJsonBackedObject { @Expose public String countryLetterCode; + /** + * The Created Date Time. + * Timestamp of when the organization was created. The value cannot be modified and is automatically populated when the organization is created. The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z'. Read-only. + */ + @SerializedName("createdDateTime") + @Expose + public java.util.Calendar createdDateTime; + /** * The Display Name. * The display name for the tenant. diff --git a/src/main/java/com/microsoft/graph/models/extensions/PasswordProfile.java b/src/main/java/com/microsoft/graph/models/extensions/PasswordProfile.java index a5fdf70e420..d4f48ca8b9e 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/PasswordProfile.java +++ b/src/main/java/com/microsoft/graph/models/extensions/PasswordProfile.java @@ -52,6 +52,14 @@ public final AdditionalDataManager additionalDataManager() { @Expose public Boolean forceChangePasswordNextSignIn; + /** + * The Force Change Password Next Sign In With Mfa. + * If true, at next sign-in, the user must perform a multi-factor authentication (MFA) before being forced to change their password. The behavior is identical to forceChangePasswordNextSignIn except that the user is required to first perform a multi-factor authentication before password change. After a password change, this property will be automatically reset to false. If not set, default is false. + */ + @SerializedName("forceChangePasswordNextSignInWithMfa") + @Expose + public Boolean forceChangePasswordNextSignInWithMfa; + /** * The raw representation of this class diff --git a/src/main/java/com/microsoft/graph/models/extensions/PlannerTask.java b/src/main/java/com/microsoft/graph/models/extensions/PlannerTask.java index 9ba788f82ee..1418f57e1b6 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/PlannerTask.java +++ b/src/main/java/com/microsoft/graph/models/extensions/PlannerTask.java @@ -165,7 +165,7 @@ public class PlannerTask extends Entity implements IJsonBackedObject { /** * The Active Checklist Item Count. - * Number of checklist items with value set to 'false', representing incomplete items. + * Number of checklist items with value set to false, representing incomplete items. */ @SerializedName("activeChecklistItemCount") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/ProxiedDomain.java b/src/main/java/com/microsoft/graph/models/extensions/ProxiedDomain.java index 3253e8bc786..2aa817292d9 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/ProxiedDomain.java +++ b/src/main/java/com/microsoft/graph/models/extensions/ProxiedDomain.java @@ -46,7 +46,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Proxy. - * Proxy IP + * Proxy IP or FQDN */ @SerializedName("proxy") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/RegistryKeyState.java b/src/main/java/com/microsoft/graph/models/extensions/RegistryKeyState.java index da166c3e5ab..eb168d0d724 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/RegistryKeyState.java +++ b/src/main/java/com/microsoft/graph/models/extensions/RegistryKeyState.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Hive. - * A Windows registry hive : HKEY_CURRENT_CONFIG HKEY_CURRENT_USER HKEY_LOCAL_MACHINE/SAM HKEY_LOCAL_MACHINE/Security HKEY_LOCAL_MACHINE/Software HKEY_LOCAL_MACHINE/System HKEY_USERS/.Default. Possible values are: unknown, currentConfig, currentUser, localMachineSam, localMachineSamSoftware, localMachineSystem, usersDefault. + * A Windows registry hive : HKEY_CURRENT_CONFIG HKEY_CURRENT_USER HKEY_LOCAL_MACHINE/SAM HKEY_LOCAL_MACHINE/Security HKEY_LOCAL_MACHINE/Software HKEY_LOCAL_MACHINE/System HKEY_USERS/.Default. Possible values are: unknown, currentConfig, currentUser, localMachineSam, localMachineSecurity, localMachineSoftware, localMachineSystem, usersDefault. */ @SerializedName("hive") @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 34bff0bc3ad..b4957d599c8 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/User.java +++ b/src/main/java/com/microsoft/graph/models/extensions/User.java @@ -144,7 +144,7 @@ public class User extends DirectoryObject implements IJsonBackedObject { /** * The Company Name. - * The company name which the user is associated. Read-only. + * The company name which the user is associated. This property can be useful for describing the company that an external user comes from. */ @SerializedName("companyName") @Expose @@ -214,6 +214,14 @@ public class User extends DirectoryObject implements IJsonBackedObject { @Expose public java.util.List imAddresses; + /** + * The Is Resource Account. + * true if the user is a resource account; otherwise, false. Null value should be considered false. + */ + @SerializedName("isResourceAccount") + @Expose + public Boolean isResourceAccount; + /** * The Job Title. * The user’s job title. Supports $filter. diff --git a/src/main/java/com/microsoft/graph/models/extensions/Windows10GeneralConfiguration.java b/src/main/java/com/microsoft/graph/models/extensions/Windows10GeneralConfiguration.java index 6d5cbca4499..7462691ba71 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Windows10GeneralConfiguration.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Windows10GeneralConfiguration.java @@ -1238,7 +1238,7 @@ public class Windows10GeneralConfiguration extends DeviceConfiguration implement /** * The Edge Block Search Suggestions. - * Indicates whether or not to Block the user from using the search suggestions in the address bar. + * Indicates whether or not to block the user from using the search suggestions in the address bar. */ @SerializedName("edgeBlockSearchSuggestions") @Expose @@ -1246,7 +1246,7 @@ public class Windows10GeneralConfiguration extends DeviceConfiguration implement /** * The Edge Block Sending Intranet Traffic To Internet Explorer. - * Indicates whether or not to Block the user from sending Intranet traffic to Internet Explorer from Edge. + * Indicates whether or not to switch the intranet traffic from Edge to Internet Explorer. Note: the name of this property is misleading; the property is obsolete, use EdgeSendIntranetTrafficToInternetExplorer instead. */ @SerializedName("edgeBlockSendingIntranetTrafficToInternetExplorer") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/WindowsInformationProtectionIPRangeCollection.java b/src/main/java/com/microsoft/graph/models/extensions/WindowsInformationProtectionIPRangeCollection.java index b5c323d3b6d..1bef7f31f91 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/WindowsInformationProtectionIPRangeCollection.java +++ b/src/main/java/com/microsoft/graph/models/extensions/WindowsInformationProtectionIPRangeCollection.java @@ -47,7 +47,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Ranges. - * Collection of ip ranges + * Collection of Internet protocol address ranges */ @SerializedName("ranges") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/Workbook.java b/src/main/java/com/microsoft/graph/models/extensions/Workbook.java index 8f12082e4cd..7c597d64a8e 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Workbook.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Workbook.java @@ -14,6 +14,7 @@ import com.microsoft.graph.models.extensions.WorkbookNamedItem; import com.microsoft.graph.models.extensions.WorkbookTable; import com.microsoft.graph.models.extensions.WorkbookWorksheet; +import com.microsoft.graph.models.extensions.WorkbookComment; import com.microsoft.graph.models.extensions.WorkbookFunctions; import com.microsoft.graph.models.extensions.Entity; import com.microsoft.graph.requests.extensions.WorkbookNamedItemCollectionResponse; @@ -22,6 +23,8 @@ import com.microsoft.graph.requests.extensions.WorkbookTableCollectionPage; import com.microsoft.graph.requests.extensions.WorkbookWorksheetCollectionResponse; import com.microsoft.graph.requests.extensions.WorkbookWorksheetCollectionPage; +import com.microsoft.graph.requests.extensions.WorkbookCommentCollectionResponse; +import com.microsoft.graph.requests.extensions.WorkbookCommentCollectionPage; import com.google.gson.JsonObject; @@ -64,6 +67,12 @@ public class Workbook extends Entity implements IJsonBackedObject { */ public WorkbookWorksheetCollectionPage worksheets; + /** + * The Comments. + * + */ + public WorkbookCommentCollectionPage comments; + /** * The Functions. * @@ -159,5 +168,21 @@ public void setRawObject(final ISerializer serializer, final JsonObject json) { response.value = Arrays.asList(array); worksheets = new WorkbookWorksheetCollectionPage(response, null); } + + if (json.has("comments")) { + final WorkbookCommentCollectionResponse response = new WorkbookCommentCollectionResponse(); + if (json.has("comments@odata.nextLink")) { + response.nextLink = json.get("comments@odata.nextLink").getAsString(); + } + + final JsonObject[] sourceArray = serializer.deserializeObject(json.get("comments").toString(), JsonObject[].class); + final WorkbookComment[] array = new WorkbookComment[sourceArray.length]; + for (int i = 0; i < sourceArray.length; i++) { + array[i] = serializer.deserializeObject(sourceArray[i].toString(), WorkbookComment.class); + array[i].setRawObject(serializer, sourceArray[i]); + } + response.value = Arrays.asList(array); + comments = new WorkbookCommentCollectionPage(response, null); + } } } diff --git a/src/main/java/com/microsoft/graph/models/extensions/WorkbookComment.java b/src/main/java/com/microsoft/graph/models/extensions/WorkbookComment.java new file mode 100644 index 00000000000..866e2e5839c --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/WorkbookComment.java @@ -0,0 +1,111 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.WorkbookCommentReply; +import com.microsoft.graph.models.extensions.Entity; +import com.microsoft.graph.requests.extensions.WorkbookCommentReplyCollectionResponse; +import com.microsoft.graph.requests.extensions.WorkbookCommentReplyCollectionPage; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Comment. + */ +public class WorkbookComment extends Entity implements IJsonBackedObject { + + + /** + * The Content. + * + */ + @SerializedName("content") + @Expose + public String content; + + /** + * The Content Type. + * + */ + @SerializedName("contentType") + @Expose + public String contentType; + + /** + * The Replies. + * + */ + public WorkbookCommentReplyCollectionPage replies; + + + /** + * 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("replies")) { + final WorkbookCommentReplyCollectionResponse response = new WorkbookCommentReplyCollectionResponse(); + if (json.has("replies@odata.nextLink")) { + response.nextLink = json.get("replies@odata.nextLink").getAsString(); + } + + final JsonObject[] sourceArray = serializer.deserializeObject(json.get("replies").toString(), JsonObject[].class); + final WorkbookCommentReply[] array = new WorkbookCommentReply[sourceArray.length]; + for (int i = 0; i < sourceArray.length; i++) { + array[i] = serializer.deserializeObject(sourceArray[i].toString(), WorkbookCommentReply.class); + array[i].setRawObject(serializer, sourceArray[i]); + } + response.value = Arrays.asList(array); + replies = new WorkbookCommentReplyCollectionPage(response, null); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/extensions/WorkbookCommentReply.java b/src/main/java/com/microsoft/graph/models/extensions/WorkbookCommentReply.java new file mode 100644 index 00000000000..0fcd27fbb89 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/WorkbookCommentReply.java @@ -0,0 +1,86 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Comment Reply. + */ +public class WorkbookCommentReply extends Entity implements IJsonBackedObject { + + + /** + * The Content. + * + */ + @SerializedName("content") + @Expose + public String content; + + /** + * The Content Type. + * + */ + @SerializedName("contentType") + @Expose + public String contentType; + + + /** + * 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/WorkbookTable.java b/src/main/java/com/microsoft/graph/models/extensions/WorkbookTable.java index 7bbfe86cd34..3b522826b3a 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/WorkbookTable.java +++ b/src/main/java/com/microsoft/graph/models/extensions/WorkbookTable.java @@ -51,6 +51,14 @@ public class WorkbookTable extends Entity implements IJsonBackedObject { @Expose public Boolean highlightLastColumn; + /** + * The Legacy Id. + * Legacy Id used in older Excle clients. The value of the identifier remains the same even when the table is renamed. This property should be interpreted as an opaque string value and should not be parsed to any other type. Read-only. + */ + @SerializedName("legacyId") + @Expose + public String legacyId; + /** * The Name. * Name of the table. diff --git a/src/main/java/com/microsoft/graph/requests/extensions/BaseGraphServiceClient.java b/src/main/java/com/microsoft/graph/requests/extensions/BaseGraphServiceClient.java index d1ee307e0ed..322b7650e21 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/BaseGraphServiceClient.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/BaseGraphServiceClient.java @@ -483,6 +483,25 @@ public IDataPolicyOperationRequestBuilder dataPolicyOperations(final String id) return new DataPolicyOperationRequestBuilder(getServiceRoot() + "/dataPolicyOperations/" + id, (IGraphServiceClient)this, null); } + /** + * Gets the collection of IdentityProviders objects + * + * @return the request builder for the collection of IdentityProviders objects + */ + public IIdentityProviderCollectionRequestBuilder identityProviders() { + return new IdentityProviderCollectionRequestBuilder(getServiceRoot() + "/identityProviders", (IGraphServiceClient)this, null); + } + + /** + * Gets a single IdentityProviders + * + * @param id the id of the IdentityProviders to retrieve + * @return the request builder for the IdentityProviders object + */ + public IIdentityProviderRequestBuilder identityProviders(final String id) { + return new IdentityProviderRequestBuilder(getServiceRoot() + "/identityProviders/" + id, (IGraphServiceClient)this, null); + } + /** * Gets the GraphServiceRequestBuilder * diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DirectoryObjectPartnerReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryObjectPartnerReferenceRequest.java new file mode 100644 index 00000000000..6fd37b22df5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryObjectPartnerReferenceRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IDirectoryObjectPartnerReferenceRequest; +import com.microsoft.graph.requests.extensions.DirectoryObjectPartnerReferenceRequest; +import com.microsoft.graph.models.extensions.DirectoryObjectPartnerReference; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Object Partner Reference Request. + */ +public class DirectoryObjectPartnerReferenceRequest extends BaseRequest implements IDirectoryObjectPartnerReferenceRequest { + + /** + * The request for the DirectoryObjectPartnerReference + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DirectoryObjectPartnerReferenceRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, DirectoryObjectPartnerReference.class); + } + + /** + * Gets the DirectoryObjectPartnerReference 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 DirectoryObjectPartnerReference from the service + * + * @return the DirectoryObjectPartnerReference from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public DirectoryObjectPartnerReference 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 DirectoryObjectPartnerReference with a source + * + * @param sourceDirectoryObjectPartnerReference the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final DirectoryObjectPartnerReference sourceDirectoryObjectPartnerReference, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceDirectoryObjectPartnerReference); + } + + /** + * Patches this DirectoryObjectPartnerReference with a source + * + * @param sourceDirectoryObjectPartnerReference the source object with updates + * @return the updated DirectoryObjectPartnerReference + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public DirectoryObjectPartnerReference patch(final DirectoryObjectPartnerReference sourceDirectoryObjectPartnerReference) throws ClientException { + return send(HttpMethod.PATCH, sourceDirectoryObjectPartnerReference); + } + + /** + * Creates a DirectoryObjectPartnerReference with a new object + * + * @param newDirectoryObjectPartnerReference the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final DirectoryObjectPartnerReference newDirectoryObjectPartnerReference, final ICallback callback) { + send(HttpMethod.POST, callback, newDirectoryObjectPartnerReference); + } + + /** + * Creates a DirectoryObjectPartnerReference with a new object + * + * @param newDirectoryObjectPartnerReference the new object to create + * @return the created DirectoryObjectPartnerReference + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public DirectoryObjectPartnerReference post(final DirectoryObjectPartnerReference newDirectoryObjectPartnerReference) throws ClientException { + return send(HttpMethod.POST, newDirectoryObjectPartnerReference); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IDirectoryObjectPartnerReferenceRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (DirectoryObjectPartnerReferenceRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IDirectoryObjectPartnerReferenceRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (DirectoryObjectPartnerReferenceRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DirectoryObjectPartnerReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryObjectPartnerReferenceRequestBuilder.java new file mode 100644 index 00000000000..bc4bf431b21 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryObjectPartnerReferenceRequestBuilder.java @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IDirectoryObjectPartnerReferenceRequest; +import com.microsoft.graph.requests.extensions.DirectoryObjectPartnerReferenceRequest; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Object Partner Reference Request Builder. + */ +public class DirectoryObjectPartnerReferenceRequestBuilder extends BaseRequestBuilder implements IDirectoryObjectPartnerReferenceRequestBuilder { + + /** + * The request builder for the DirectoryObjectPartnerReference + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DirectoryObjectPartnerReferenceRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IDirectoryObjectPartnerReferenceRequest instance + */ + public IDirectoryObjectPartnerReferenceRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IDirectoryObjectPartnerReferenceRequest instance + */ + public IDirectoryObjectPartnerReferenceRequest buildRequest(final java.util.List requestOptions) { + return new DirectoryObjectPartnerReferenceRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceRequest.java new file mode 100644 index 00000000000..b1bcdf93936 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.DirectoryObjectPartnerReference; + +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 Directory Object Partner Reference Request. + */ +public interface IDirectoryObjectPartnerReferenceRequest extends IHttpRequest { + + /** + * Gets the DirectoryObjectPartnerReference from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the DirectoryObjectPartnerReference from the service + * + * @return the DirectoryObjectPartnerReference from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + DirectoryObjectPartnerReference 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 DirectoryObjectPartnerReference with a source + * + * @param sourceDirectoryObjectPartnerReference the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final DirectoryObjectPartnerReference sourceDirectoryObjectPartnerReference, final ICallback callback); + + /** + * Patches this DirectoryObjectPartnerReference with a source + * + * @param sourceDirectoryObjectPartnerReference the source object with updates + * @return the updated DirectoryObjectPartnerReference + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + DirectoryObjectPartnerReference patch(final DirectoryObjectPartnerReference sourceDirectoryObjectPartnerReference) throws ClientException; + + /** + * Posts a DirectoryObjectPartnerReference with a new object + * + * @param newDirectoryObjectPartnerReference the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final DirectoryObjectPartnerReference newDirectoryObjectPartnerReference, final ICallback callback); + + /** + * Posts a DirectoryObjectPartnerReference with a new object + * + * @param newDirectoryObjectPartnerReference the new object to create + * @return the created DirectoryObjectPartnerReference + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + DirectoryObjectPartnerReference post(final DirectoryObjectPartnerReference newDirectoryObjectPartnerReference) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IDirectoryObjectPartnerReferenceRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IDirectoryObjectPartnerReferenceRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceRequestBuilder.java new file mode 100644 index 00000000000..1cfd3d3492e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryObjectPartnerReferenceRequestBuilder.java @@ -0,0 +1,34 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IDirectoryObjectPartnerReferenceRequest; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Directory Object Partner Reference Request Builder. + */ +public interface IDirectoryObjectPartnerReferenceRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the IDirectoryObjectPartnerReferenceRequest instance + */ + IDirectoryObjectPartnerReferenceRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IDirectoryObjectPartnerReferenceRequest instance + */ + IDirectoryObjectPartnerReferenceRequest buildRequest(final java.util.List requestOptions); + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderCollectionPage.java new file mode 100644 index 00000000000..19ba2d1a42f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Identity Provider Collection Page. + */ +public interface IIdentityProviderCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderCollectionRequest.java new file mode 100644 index 00000000000..b69ec6379e0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderCollectionRequest.java @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Identity Provider Collection Request. + */ +public interface IIdentityProviderCollectionRequest { + + void get(final ICallback callback); + + IIdentityProviderCollectionPage get() throws ClientException; + + void post(final IdentityProvider newIdentityProvider, final ICallback callback); + + IdentityProvider post(final IdentityProvider newIdentityProvider) throws ClientException; + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IIdentityProviderCollectionRequest expand(final String value); + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IIdentityProviderCollectionRequest select(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + IIdentityProviderCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderCollectionRequestBuilder.java new file mode 100644 index 00000000000..2ae64687288 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Identity Provider Collection Request Builder. + */ +public interface IIdentityProviderCollectionRequestBuilder extends IRequestBuilder { + + IIdentityProviderCollectionRequest buildRequest(); + + IIdentityProviderCollectionRequest buildRequest(final java.util.List requestOptions); + + IIdentityProviderRequestBuilder byId(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderRequest.java new file mode 100644 index 00000000000..94899d9606c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IdentityProvider; + +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 Identity Provider Request. + */ +public interface IIdentityProviderRequest extends IHttpRequest { + + /** + * Gets the IdentityProvider from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the IdentityProvider from the service + * + * @return the IdentityProvider from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + IdentityProvider 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 IdentityProvider with a source + * + * @param sourceIdentityProvider the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final IdentityProvider sourceIdentityProvider, final ICallback callback); + + /** + * Patches this IdentityProvider with a source + * + * @param sourceIdentityProvider the source object with updates + * @return the updated IdentityProvider + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + IdentityProvider patch(final IdentityProvider sourceIdentityProvider) throws ClientException; + + /** + * Posts a IdentityProvider with a new object + * + * @param newIdentityProvider the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final IdentityProvider newIdentityProvider, final ICallback callback); + + /** + * Posts a IdentityProvider with a new object + * + * @param newIdentityProvider the new object to create + * @return the created IdentityProvider + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + IdentityProvider post(final IdentityProvider newIdentityProvider) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IIdentityProviderRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IIdentityProviderRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderRequestBuilder.java new file mode 100644 index 00000000000..a01028f449b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IIdentityProviderRequestBuilder.java @@ -0,0 +1,34 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IIdentityProviderRequest; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Identity Provider Request Builder. + */ +public interface IIdentityProviderRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the IIdentityProviderRequest instance + */ + IIdentityProviderRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IIdentityProviderRequest instance + */ + IIdentityProviderRequest buildRequest(final java.util.List requestOptions); + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentCollectionPage.java new file mode 100644 index 00000000000..b0dae60e706 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Workbook Comment Collection Page. + */ +public interface IWorkbookCommentCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentCollectionRequest.java new file mode 100644 index 00000000000..3254cf64bd1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentCollectionRequest.java @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Workbook Comment Collection Request. + */ +public interface IWorkbookCommentCollectionRequest { + + void get(final ICallback callback); + + IWorkbookCommentCollectionPage get() throws ClientException; + + void post(final WorkbookComment newWorkbookComment, final ICallback callback); + + WorkbookComment post(final WorkbookComment newWorkbookComment) throws ClientException; + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IWorkbookCommentCollectionRequest expand(final String value); + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IWorkbookCommentCollectionRequest select(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + IWorkbookCommentCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentCollectionRequestBuilder.java new file mode 100644 index 00000000000..85d52d50332 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Workbook Comment Collection Request Builder. + */ +public interface IWorkbookCommentCollectionRequestBuilder extends IRequestBuilder { + + IWorkbookCommentCollectionRequest buildRequest(); + + IWorkbookCommentCollectionRequest buildRequest(final java.util.List requestOptions); + + IWorkbookCommentRequestBuilder byId(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyCollectionPage.java new file mode 100644 index 00000000000..35396ed1e2f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Workbook Comment Reply Collection Page. + */ +public interface IWorkbookCommentReplyCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyCollectionRequest.java new file mode 100644 index 00000000000..86c570387b5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyCollectionRequest.java @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Workbook Comment Reply Collection Request. + */ +public interface IWorkbookCommentReplyCollectionRequest { + + void get(final ICallback callback); + + IWorkbookCommentReplyCollectionPage get() throws ClientException; + + void post(final WorkbookCommentReply newWorkbookCommentReply, final ICallback callback); + + WorkbookCommentReply post(final WorkbookCommentReply newWorkbookCommentReply) throws ClientException; + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IWorkbookCommentReplyCollectionRequest expand(final String value); + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IWorkbookCommentReplyCollectionRequest select(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + IWorkbookCommentReplyCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyCollectionRequestBuilder.java new file mode 100644 index 00000000000..fdff9938031 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Workbook Comment Reply Collection Request Builder. + */ +public interface IWorkbookCommentReplyCollectionRequestBuilder extends IRequestBuilder { + + IWorkbookCommentReplyCollectionRequest buildRequest(); + + IWorkbookCommentReplyCollectionRequest buildRequest(final java.util.List requestOptions); + + IWorkbookCommentReplyRequestBuilder byId(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyRequest.java new file mode 100644 index 00000000000..26065683875 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.WorkbookCommentReply; + +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 Workbook Comment Reply Request. + */ +public interface IWorkbookCommentReplyRequest extends IHttpRequest { + + /** + * Gets the WorkbookCommentReply from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the WorkbookCommentReply from the service + * + * @return the WorkbookCommentReply from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + WorkbookCommentReply 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 WorkbookCommentReply with a source + * + * @param sourceWorkbookCommentReply the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final WorkbookCommentReply sourceWorkbookCommentReply, final ICallback callback); + + /** + * Patches this WorkbookCommentReply with a source + * + * @param sourceWorkbookCommentReply the source object with updates + * @return the updated WorkbookCommentReply + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + WorkbookCommentReply patch(final WorkbookCommentReply sourceWorkbookCommentReply) throws ClientException; + + /** + * Posts a WorkbookCommentReply with a new object + * + * @param newWorkbookCommentReply the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final WorkbookCommentReply newWorkbookCommentReply, final ICallback callback); + + /** + * Posts a WorkbookCommentReply with a new object + * + * @param newWorkbookCommentReply the new object to create + * @return the created WorkbookCommentReply + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + WorkbookCommentReply post(final WorkbookCommentReply newWorkbookCommentReply) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IWorkbookCommentReplyRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IWorkbookCommentReplyRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyRequestBuilder.java new file mode 100644 index 00000000000..4eee12a4560 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentReplyRequestBuilder.java @@ -0,0 +1,34 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IWorkbookCommentReplyRequest; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Workbook Comment Reply Request Builder. + */ +public interface IWorkbookCommentReplyRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the IWorkbookCommentReplyRequest instance + */ + IWorkbookCommentReplyRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IWorkbookCommentReplyRequest instance + */ + IWorkbookCommentReplyRequest buildRequest(final java.util.List requestOptions); + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentRequest.java new file mode 100644 index 00000000000..0e267bc1915 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.WorkbookComment; + +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 Workbook Comment Request. + */ +public interface IWorkbookCommentRequest extends IHttpRequest { + + /** + * Gets the WorkbookComment from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the WorkbookComment from the service + * + * @return the WorkbookComment from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + WorkbookComment 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 WorkbookComment with a source + * + * @param sourceWorkbookComment the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final WorkbookComment sourceWorkbookComment, final ICallback callback); + + /** + * Patches this WorkbookComment with a source + * + * @param sourceWorkbookComment the source object with updates + * @return the updated WorkbookComment + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + WorkbookComment patch(final WorkbookComment sourceWorkbookComment) throws ClientException; + + /** + * Posts a WorkbookComment with a new object + * + * @param newWorkbookComment the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final WorkbookComment newWorkbookComment, final ICallback callback); + + /** + * Posts a WorkbookComment with a new object + * + * @param newWorkbookComment the new object to create + * @return the created WorkbookComment + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + WorkbookComment post(final WorkbookComment newWorkbookComment) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IWorkbookCommentRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IWorkbookCommentRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentRequestBuilder.java new file mode 100644 index 00000000000..cd50875bdc6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookCommentRequestBuilder.java @@ -0,0 +1,40 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IWorkbookCommentRequest; +import com.microsoft.graph.requests.extensions.IWorkbookCommentReplyCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IWorkbookCommentReplyRequestBuilder; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Workbook Comment Request Builder. + */ +public interface IWorkbookCommentRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the IWorkbookCommentRequest instance + */ + IWorkbookCommentRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IWorkbookCommentRequest instance + */ + IWorkbookCommentRequest buildRequest(final java.util.List requestOptions); + + + IWorkbookCommentReplyCollectionRequestBuilder replies(); + + IWorkbookCommentReplyRequestBuilder replies(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookRequestBuilder.java index c5ddb6cc6bc..7bf95eb7df9 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IWorkbookRequestBuilder.java @@ -11,6 +11,8 @@ import com.microsoft.graph.requests.extensions.IWorkbookTableRequestBuilder; import com.microsoft.graph.requests.extensions.IWorkbookWorksheetCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IWorkbookWorksheetRequestBuilder; +import com.microsoft.graph.requests.extensions.IWorkbookCommentCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IWorkbookCommentRequestBuilder; import com.microsoft.graph.requests.extensions.IWorkbookFunctionsRequestBuilder; import com.microsoft.graph.requests.extensions.IWorkbookCreateSessionRequestBuilder; import com.microsoft.graph.requests.extensions.IWorkbookCloseSessionRequestBuilder; @@ -62,6 +64,10 @@ public interface IWorkbookRequestBuilder extends IRequestBuilder { IWorkbookWorksheetRequestBuilder worksheets(final String id); + IWorkbookCommentCollectionRequestBuilder comments(); + + IWorkbookCommentRequestBuilder comments(final String id); + /** * Gets the request builder for WorkbookFunctions * diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionPage.java new file mode 100644 index 00000000000..f49febd0a37 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionPage.java @@ -0,0 +1,26 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IdentityProvider; +import com.microsoft.graph.requests.extensions.IIdentityProviderCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Identity Provider Collection Page. + */ +public class IdentityProviderCollectionPage extends BaseCollectionPage implements IIdentityProviderCollectionPage { + + /** + * A collection page for IdentityProvider + * + * @param response the serialized IdentityProviderCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public IdentityProviderCollectionPage(final IdentityProviderCollectionResponse response, final IIdentityProviderCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionRequest.java new file mode 100644 index 00000000000..451bc01dfe7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionRequest.java @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Identity Provider Collection Request. + */ +public class IdentityProviderCollectionRequest extends BaseCollectionRequest implements IIdentityProviderCollectionRequest { + + /** + * The request builder for this collection of IdentityProvider + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IdentityProviderCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IdentityProviderCollectionResponse.class, IIdentityProviderCollectionPage.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 IIdentityProviderCollectionPage get() throws ClientException { + final IdentityProviderCollectionResponse response = send(); + return buildFromResponse(response); + } + + public void post(final IdentityProvider newIdentityProvider, final ICallback callback) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + new IdentityProviderRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newIdentityProvider, callback); + } + + public IdentityProvider post(final IdentityProvider newIdentityProvider) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new IdentityProviderRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newIdentityProvider); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IIdentityProviderCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (IdentityProviderCollectionRequest)this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IIdentityProviderCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (IdentityProviderCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public IIdentityProviderCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value + "")); + return (IdentityProviderCollectionRequest)this; + } + + public IIdentityProviderCollectionPage buildFromResponse(final IdentityProviderCollectionResponse response) { + final IIdentityProviderCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new IdentityProviderCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final IdentityProviderCollectionPage page = new IdentityProviderCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionRequestBuilder.java new file mode 100644 index 00000000000..f55e8879c98 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Identity Provider Collection Request Builder. + */ +public class IdentityProviderCollectionRequestBuilder extends BaseRequestBuilder implements IIdentityProviderCollectionRequestBuilder { + + /** + * The request builder for this collection of IdentityProvider + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IdentityProviderCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public IIdentityProviderCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public IIdentityProviderCollectionRequest buildRequest(final java.util.List requestOptions) { + return new IdentityProviderCollectionRequest(getRequestUrl(), getClient(), requestOptions); + } + + public IIdentityProviderRequestBuilder byId(final String id) { + return new IdentityProviderRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionResponse.java new file mode 100644 index 00000000000..2a221a03389 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderCollectionResponse.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.IdentityProvider; + +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 Identity Provider Collection Response. + */ +public class IdentityProviderCollectionResponse implements IJsonBackedObject { + + /** + * The list of IdentityProvider 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/IdentityProviderRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderRequest.java new file mode 100644 index 00000000000..1489f6340b0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IIdentityProviderRequest; +import com.microsoft.graph.requests.extensions.IdentityProviderRequest; +import com.microsoft.graph.models.extensions.IdentityProvider; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Identity Provider Request. + */ +public class IdentityProviderRequest extends BaseRequest implements IIdentityProviderRequest { + + /** + * The request for the IdentityProvider + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IdentityProviderRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, IdentityProvider.class); + } + + /** + * Gets the IdentityProvider 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 IdentityProvider from the service + * + * @return the IdentityProvider from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public IdentityProvider 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 IdentityProvider with a source + * + * @param sourceIdentityProvider the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final IdentityProvider sourceIdentityProvider, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceIdentityProvider); + } + + /** + * Patches this IdentityProvider with a source + * + * @param sourceIdentityProvider the source object with updates + * @return the updated IdentityProvider + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public IdentityProvider patch(final IdentityProvider sourceIdentityProvider) throws ClientException { + return send(HttpMethod.PATCH, sourceIdentityProvider); + } + + /** + * Creates a IdentityProvider with a new object + * + * @param newIdentityProvider the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final IdentityProvider newIdentityProvider, final ICallback callback) { + send(HttpMethod.POST, callback, newIdentityProvider); + } + + /** + * Creates a IdentityProvider with a new object + * + * @param newIdentityProvider the new object to create + * @return the created IdentityProvider + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public IdentityProvider post(final IdentityProvider newIdentityProvider) throws ClientException { + return send(HttpMethod.POST, newIdentityProvider); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IIdentityProviderRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (IdentityProviderRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IIdentityProviderRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (IdentityProviderRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderRequestBuilder.java new file mode 100644 index 00000000000..4a3ea31026e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IdentityProviderRequestBuilder.java @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IIdentityProviderRequest; +import com.microsoft.graph.requests.extensions.IdentityProviderRequest; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Identity Provider Request Builder. + */ +public class IdentityProviderRequestBuilder extends BaseRequestBuilder implements IIdentityProviderRequestBuilder { + + /** + * The request builder for the IdentityProvider + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public IdentityProviderRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IIdentityProviderRequest instance + */ + public IIdentityProviderRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IIdentityProviderRequest instance + */ + public IIdentityProviderRequest buildRequest(final java.util.List requestOptions) { + return new IdentityProviderRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionPage.java new file mode 100644 index 00000000000..35a7cd11301 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionPage.java @@ -0,0 +1,26 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.WorkbookComment; +import com.microsoft.graph.requests.extensions.IWorkbookCommentCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Comment Collection Page. + */ +public class WorkbookCommentCollectionPage extends BaseCollectionPage implements IWorkbookCommentCollectionPage { + + /** + * A collection page for WorkbookComment + * + * @param response the serialized WorkbookCommentCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public WorkbookCommentCollectionPage(final WorkbookCommentCollectionResponse response, final IWorkbookCommentCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionRequest.java new file mode 100644 index 00000000000..fc0b6547f75 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionRequest.java @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Comment Collection Request. + */ +public class WorkbookCommentCollectionRequest extends BaseCollectionRequest implements IWorkbookCommentCollectionRequest { + + /** + * The request builder for this collection of WorkbookComment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookCommentCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkbookCommentCollectionResponse.class, IWorkbookCommentCollectionPage.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 IWorkbookCommentCollectionPage get() throws ClientException { + final WorkbookCommentCollectionResponse response = send(); + return buildFromResponse(response); + } + + public void post(final WorkbookComment newWorkbookComment, final ICallback callback) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + new WorkbookCommentRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newWorkbookComment, callback); + } + + public WorkbookComment post(final WorkbookComment newWorkbookComment) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WorkbookCommentRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newWorkbookComment); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IWorkbookCommentCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (WorkbookCommentCollectionRequest)this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IWorkbookCommentCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (WorkbookCommentCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public IWorkbookCommentCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value + "")); + return (WorkbookCommentCollectionRequest)this; + } + + public IWorkbookCommentCollectionPage buildFromResponse(final WorkbookCommentCollectionResponse response) { + final IWorkbookCommentCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new WorkbookCommentCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final WorkbookCommentCollectionPage page = new WorkbookCommentCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionRequestBuilder.java new file mode 100644 index 00000000000..a16197f98a1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Comment Collection Request Builder. + */ +public class WorkbookCommentCollectionRequestBuilder extends BaseRequestBuilder implements IWorkbookCommentCollectionRequestBuilder { + + /** + * The request builder for this collection of Workbook + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookCommentCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public IWorkbookCommentCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public IWorkbookCommentCollectionRequest buildRequest(final java.util.List requestOptions) { + return new WorkbookCommentCollectionRequest(getRequestUrl(), getClient(), requestOptions); + } + + public IWorkbookCommentRequestBuilder byId(final String id) { + return new WorkbookCommentRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionResponse.java new file mode 100644 index 00000000000..a31d0e6c4a2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentCollectionResponse.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.WorkbookComment; + +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 Workbook Comment Collection Response. + */ +public class WorkbookCommentCollectionResponse implements IJsonBackedObject { + + /** + * The list of WorkbookComment 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/WorkbookCommentReplyCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionPage.java new file mode 100644 index 00000000000..025f777040f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionPage.java @@ -0,0 +1,26 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.WorkbookCommentReply; +import com.microsoft.graph.requests.extensions.IWorkbookCommentReplyCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Comment Reply Collection Page. + */ +public class WorkbookCommentReplyCollectionPage extends BaseCollectionPage implements IWorkbookCommentReplyCollectionPage { + + /** + * A collection page for WorkbookCommentReply + * + * @param response the serialized WorkbookCommentReplyCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public WorkbookCommentReplyCollectionPage(final WorkbookCommentReplyCollectionResponse response, final IWorkbookCommentReplyCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionRequest.java new file mode 100644 index 00000000000..8c44612d191 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionRequest.java @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Comment Reply Collection Request. + */ +public class WorkbookCommentReplyCollectionRequest extends BaseCollectionRequest implements IWorkbookCommentReplyCollectionRequest { + + /** + * The request builder for this collection of WorkbookCommentReply + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookCommentReplyCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkbookCommentReplyCollectionResponse.class, IWorkbookCommentReplyCollectionPage.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 IWorkbookCommentReplyCollectionPage get() throws ClientException { + final WorkbookCommentReplyCollectionResponse response = send(); + return buildFromResponse(response); + } + + public void post(final WorkbookCommentReply newWorkbookCommentReply, final ICallback callback) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + new WorkbookCommentReplyRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newWorkbookCommentReply, callback); + } + + public WorkbookCommentReply post(final WorkbookCommentReply newWorkbookCommentReply) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new WorkbookCommentReplyRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newWorkbookCommentReply); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IWorkbookCommentReplyCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (WorkbookCommentReplyCollectionRequest)this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IWorkbookCommentReplyCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (WorkbookCommentReplyCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public IWorkbookCommentReplyCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value + "")); + return (WorkbookCommentReplyCollectionRequest)this; + } + + public IWorkbookCommentReplyCollectionPage buildFromResponse(final WorkbookCommentReplyCollectionResponse response) { + final IWorkbookCommentReplyCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new WorkbookCommentReplyCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final WorkbookCommentReplyCollectionPage page = new WorkbookCommentReplyCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionRequestBuilder.java new file mode 100644 index 00000000000..4929be918a2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Comment Reply Collection Request Builder. + */ +public class WorkbookCommentReplyCollectionRequestBuilder extends BaseRequestBuilder implements IWorkbookCommentReplyCollectionRequestBuilder { + + /** + * The request builder for this collection of WorkbookComment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookCommentReplyCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public IWorkbookCommentReplyCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public IWorkbookCommentReplyCollectionRequest buildRequest(final java.util.List requestOptions) { + return new WorkbookCommentReplyCollectionRequest(getRequestUrl(), getClient(), requestOptions); + } + + public IWorkbookCommentReplyRequestBuilder byId(final String id) { + return new WorkbookCommentReplyRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionResponse.java new file mode 100644 index 00000000000..a6774d0ce85 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyCollectionResponse.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.WorkbookCommentReply; + +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 Workbook Comment Reply Collection Response. + */ +public class WorkbookCommentReplyCollectionResponse implements IJsonBackedObject { + + /** + * The list of WorkbookCommentReply 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/WorkbookCommentReplyRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyRequest.java new file mode 100644 index 00000000000..41b1a6b73b5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IWorkbookCommentReplyRequest; +import com.microsoft.graph.requests.extensions.WorkbookCommentReplyRequest; +import com.microsoft.graph.models.extensions.WorkbookCommentReply; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Comment Reply Request. + */ +public class WorkbookCommentReplyRequest extends BaseRequest implements IWorkbookCommentReplyRequest { + + /** + * The request for the WorkbookCommentReply + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookCommentReplyRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkbookCommentReply.class); + } + + /** + * Gets the WorkbookCommentReply 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 WorkbookCommentReply from the service + * + * @return the WorkbookCommentReply from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public WorkbookCommentReply 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 WorkbookCommentReply with a source + * + * @param sourceWorkbookCommentReply the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final WorkbookCommentReply sourceWorkbookCommentReply, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceWorkbookCommentReply); + } + + /** + * Patches this WorkbookCommentReply with a source + * + * @param sourceWorkbookCommentReply the source object with updates + * @return the updated WorkbookCommentReply + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public WorkbookCommentReply patch(final WorkbookCommentReply sourceWorkbookCommentReply) throws ClientException { + return send(HttpMethod.PATCH, sourceWorkbookCommentReply); + } + + /** + * Creates a WorkbookCommentReply with a new object + * + * @param newWorkbookCommentReply the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final WorkbookCommentReply newWorkbookCommentReply, final ICallback callback) { + send(HttpMethod.POST, callback, newWorkbookCommentReply); + } + + /** + * Creates a WorkbookCommentReply with a new object + * + * @param newWorkbookCommentReply the new object to create + * @return the created WorkbookCommentReply + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public WorkbookCommentReply post(final WorkbookCommentReply newWorkbookCommentReply) throws ClientException { + return send(HttpMethod.POST, newWorkbookCommentReply); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IWorkbookCommentReplyRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (WorkbookCommentReplyRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IWorkbookCommentReplyRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (WorkbookCommentReplyRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyRequestBuilder.java new file mode 100644 index 00000000000..e7cdda2f64b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentReplyRequestBuilder.java @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IWorkbookCommentReplyRequest; +import com.microsoft.graph.requests.extensions.WorkbookCommentReplyRequest; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Comment Reply Request Builder. + */ +public class WorkbookCommentReplyRequestBuilder extends BaseRequestBuilder implements IWorkbookCommentReplyRequestBuilder { + + /** + * The request builder for the WorkbookCommentReply + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookCommentReplyRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IWorkbookCommentReplyRequest instance + */ + public IWorkbookCommentReplyRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IWorkbookCommentReplyRequest instance + */ + public IWorkbookCommentReplyRequest buildRequest(final java.util.List requestOptions) { + return new WorkbookCommentReplyRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentRequest.java new file mode 100644 index 00000000000..a972ab2f090 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IWorkbookCommentRequest; +import com.microsoft.graph.requests.extensions.WorkbookCommentRequest; +import com.microsoft.graph.models.extensions.WorkbookComment; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Comment Request. + */ +public class WorkbookCommentRequest extends BaseRequest implements IWorkbookCommentRequest { + + /** + * The request for the WorkbookComment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookCommentRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, WorkbookComment.class); + } + + /** + * Gets the WorkbookComment 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 WorkbookComment from the service + * + * @return the WorkbookComment from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public WorkbookComment 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 WorkbookComment with a source + * + * @param sourceWorkbookComment the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final WorkbookComment sourceWorkbookComment, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceWorkbookComment); + } + + /** + * Patches this WorkbookComment with a source + * + * @param sourceWorkbookComment the source object with updates + * @return the updated WorkbookComment + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public WorkbookComment patch(final WorkbookComment sourceWorkbookComment) throws ClientException { + return send(HttpMethod.PATCH, sourceWorkbookComment); + } + + /** + * Creates a WorkbookComment with a new object + * + * @param newWorkbookComment the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final WorkbookComment newWorkbookComment, final ICallback callback) { + send(HttpMethod.POST, callback, newWorkbookComment); + } + + /** + * Creates a WorkbookComment with a new object + * + * @param newWorkbookComment the new object to create + * @return the created WorkbookComment + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public WorkbookComment post(final WorkbookComment newWorkbookComment) throws ClientException { + return send(HttpMethod.POST, newWorkbookComment); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IWorkbookCommentRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (WorkbookCommentRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IWorkbookCommentRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (WorkbookCommentRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentRequestBuilder.java new file mode 100644 index 00000000000..c714251bb41 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookCommentRequestBuilder.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.requests.extensions.IWorkbookCommentRequest; +import com.microsoft.graph.requests.extensions.WorkbookCommentRequest; +import com.microsoft.graph.requests.extensions.IWorkbookCommentReplyCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.WorkbookCommentReplyCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IWorkbookCommentReplyRequestBuilder; +import com.microsoft.graph.requests.extensions.WorkbookCommentReplyRequestBuilder; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Workbook Comment Request Builder. + */ +public class WorkbookCommentRequestBuilder extends BaseRequestBuilder implements IWorkbookCommentRequestBuilder { + + /** + * The request builder for the WorkbookComment + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public WorkbookCommentRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IWorkbookCommentRequest instance + */ + public IWorkbookCommentRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IWorkbookCommentRequest instance + */ + public IWorkbookCommentRequest buildRequest(final java.util.List requestOptions) { + return new WorkbookCommentRequest(getRequestUrl(), getClient(), requestOptions); + } + + + public IWorkbookCommentReplyCollectionRequestBuilder replies() { + return new WorkbookCommentReplyCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("replies"), getClient(), null); + } + + public IWorkbookCommentReplyRequestBuilder replies(final String id) { + return new WorkbookCommentReplyRequestBuilder(getRequestUrlWithAdditionalSegment("replies") + "/" + id, getClient(), null); + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/WorkbookRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookRequestBuilder.java index 0e53bcc5d29..85a324b1f50 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/WorkbookRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/WorkbookRequestBuilder.java @@ -19,6 +19,10 @@ import com.microsoft.graph.requests.extensions.WorkbookWorksheetCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IWorkbookWorksheetRequestBuilder; import com.microsoft.graph.requests.extensions.WorkbookWorksheetRequestBuilder; +import com.microsoft.graph.requests.extensions.IWorkbookCommentCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.WorkbookCommentCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IWorkbookCommentRequestBuilder; +import com.microsoft.graph.requests.extensions.WorkbookCommentRequestBuilder; import com.microsoft.graph.requests.extensions.IWorkbookFunctionsRequestBuilder; import com.microsoft.graph.requests.extensions.WorkbookFunctionsRequestBuilder; import com.microsoft.graph.requests.extensions.IWorkbookCreateSessionRequestBuilder; @@ -103,6 +107,13 @@ public IWorkbookWorksheetCollectionRequestBuilder worksheets() { public IWorkbookWorksheetRequestBuilder worksheets(final String id) { return new WorkbookWorksheetRequestBuilder(getRequestUrlWithAdditionalSegment("worksheets") + "/" + id, getClient(), null); } + public IWorkbookCommentCollectionRequestBuilder comments() { + return new WorkbookCommentCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("comments"), getClient(), null); + } + + public IWorkbookCommentRequestBuilder comments(final String id) { + return new WorkbookCommentRequestBuilder(getRequestUrlWithAdditionalSegment("comments") + "/" + id, getClient(), null); + } /** * Gets the request builder for WorkbookFunctions From 1f5f5e309334ecac479984b2b8ec87368394d60a Mon Sep 17 00:00:00 2001 From: Nakul Sabharwal Date: Mon, 18 Mar 2019 11:55:09 +0530 Subject: [PATCH 03/12] Updated version to 1.2.0 --- gradle.properties | 2 +- src/main/java/com/microsoft/graph/core/Constants.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index 14fc60c4b4a..fb0f7011470 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ mavenBintraySnapshotUrl = http://oss.jfrog.org/artifactory/oss-snapshot-local mavenGroupId = com.microsoft.graph mavenArtifactId = microsoft-graph mavenMajorVersion = 1 -mavenMinorVersion = 1 +mavenMinorVersion = 2 mavenPatchVersion = 0 mavenArtifactSuffix = nightliesUrl = http://dl.bintray.com/MicrosoftGraph/Maven diff --git a/src/main/java/com/microsoft/graph/core/Constants.java b/src/main/java/com/microsoft/graph/core/Constants.java index fc0325dd945..5671429c2ec 100644 --- a/src/main/java/com/microsoft/graph/core/Constants.java +++ b/src/main/java/com/microsoft/graph/core/Constants.java @@ -12,5 +12,5 @@ private Constants() { public static final String APPID = "app-id"; public static final String USERNAME = "user@email.com"; public static final String PASSWORD = "password"; - public static final String VERSION_NAME = "1.1.0"; + public static final String VERSION_NAME = "1.2.0"; } From b02690018314d49ad8be8020d1102a17dd196711 Mon Sep 17 00:00:00 2001 From: NakulSabharwal Date: Mon, 18 Mar 2019 12:43:22 +0530 Subject: [PATCH 04/12] Updated version 1.2.0 in readme --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index d42084ef209..94a92db66d2 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ repository { dependency { // Include the sdk as a dependency - compile('com.microsoft.graph:microsoft-graph:1.1.+') + compile('com.microsoft.graph:microsoft-graph:1.2.+') } ``` @@ -28,7 +28,7 @@ Add the dependency in `dependencies` in pom.xml com.microsoft.graph microsoft-graph - 1.1.0 + 1.2.0 ``` From 717c95fa33feeb58cf8844382c8fbc429d53eafa Mon Sep 17 00:00:00 2001 From: Client Tooling Big Giant Robot Date: Tue, 26 Mar 2019 06:08:49 -0700 Subject: [PATCH 05/12] Update generated files with build 1122970 --- .../graph/models/extensions/Alert.java | 9 + .../models/extensions/AlertHistoryState.java | 137 +++++++++++ .../extensions/AverageComparativeScore.java | 95 ++++++++ .../extensions/CalendarGetScheduleBody.java | 93 ++++++++ .../extensions/CertificationControl.java | 95 ++++++++ .../extensions/ComplianceInformation.java | 96 ++++++++ .../graph/models/extensions/ControlScore.java | 111 +++++++++ .../graph/models/extensions/DriveItem.java | 25 ++ .../models/extensions/FreeBusyError.java | 95 ++++++++ .../models/extensions/ItemReference.java | 8 + .../models/extensions/LocationConstraint.java | 16 +- .../extensions/MeetingTimeSuggestion.java | 26 +- .../extensions/ScheduleInformation.java | 122 ++++++++++ .../graph/models/extensions/ScheduleItem.java | 129 ++++++++++ .../graph/models/extensions/SecureScore.java | 153 ++++++++++++ .../extensions/SecureScoreControlProfile.java | 225 ++++++++++++++++++ .../SecureScoreControlStateUpdate.java | 119 +++++++++ .../graph/models/extensions/Security.java | 50 ++++ .../models/extensions/TimeConstraint.java | 8 +- .../models/generated/PhysicalAddressType.java | 33 +++ .../CalendarGetScheduleCollectionPage.java | 38 +++ .../CalendarGetScheduleCollectionRequest.java | 108 +++++++++ ...arGetScheduleCollectionRequestBuilder.java | 78 ++++++ ...CalendarGetScheduleCollectionResponse.java | 91 +++++++ .../extensions/CalendarRequestBuilder.java | 8 + .../extensions/DriveItemRequestBuilder.java | 11 + .../ICalendarGetScheduleCollectionPage.java | 27 +++ ...ICalendarGetScheduleCollectionRequest.java | 57 +++++ ...arGetScheduleCollectionRequestBuilder.java | 30 +++ .../extensions/ICalendarRequestBuilder.java | 5 + .../extensions/IDriveItemRequestBuilder.java | 6 + .../ISecureScoreCollectionPage.java | 27 +++ .../ISecureScoreCollectionRequest.java | 58 +++++ .../ISecureScoreCollectionRequestBuilder.java | 32 +++ ...cureScoreControlProfileCollectionPage.java | 27 +++ ...eScoreControlProfileCollectionRequest.java | 58 +++++ ...ontrolProfileCollectionRequestBuilder.java | 32 +++ .../ISecureScoreControlProfileRequest.java | 99 ++++++++ ...cureScoreControlProfileRequestBuilder.java | 34 +++ .../extensions/ISecureScoreRequest.java | 99 ++++++++ .../ISecureScoreRequestBuilder.java | 34 +++ .../extensions/ISecurityRequestBuilder.java | 12 + .../extensions/IUserRequestBuilder.java | 6 +- .../extensions/SecureScoreCollectionPage.java | 26 ++ .../SecureScoreCollectionRequest.java | 114 +++++++++ .../SecureScoreCollectionRequestBuilder.java | 50 ++++ .../SecureScoreCollectionResponse.java | 90 +++++++ ...cureScoreControlProfileCollectionPage.java | 26 ++ ...eScoreControlProfileCollectionRequest.java | 114 +++++++++ ...ontrolProfileCollectionRequestBuilder.java | 50 ++++ ...ScoreControlProfileCollectionResponse.java | 90 +++++++ .../SecureScoreControlProfileRequest.java | 138 +++++++++++ ...cureScoreControlProfileRequestBuilder.java | 53 +++++ .../extensions/SecureScoreRequest.java | 138 +++++++++++ .../extensions/SecureScoreRequestBuilder.java | 53 +++++ .../extensions/SecurityRequestBuilder.java | 22 ++ .../extensions/UserRequestBuilder.java | 14 +- 57 files changed, 3569 insertions(+), 31 deletions(-) create mode 100644 src/main/java/com/microsoft/graph/models/extensions/AlertHistoryState.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/AverageComparativeScore.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/CalendarGetScheduleBody.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/CertificationControl.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/ComplianceInformation.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/ControlScore.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/FreeBusyError.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/ScheduleInformation.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/ScheduleItem.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/SecureScore.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/SecureScoreControlProfile.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/SecureScoreControlStateUpdate.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/PhysicalAddressType.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ICalendarGetScheduleCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ICalendarGetScheduleCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ICalendarGetScheduleCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SecureScoreRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SecureScoreRequestBuilder.java diff --git a/src/main/java/com/microsoft/graph/models/extensions/Alert.java b/src/main/java/com/microsoft/graph/models/extensions/Alert.java index 7519bab8793..c033dbd97df 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Alert.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Alert.java @@ -13,6 +13,7 @@ import com.microsoft.graph.models.extensions.CloudAppSecurityState; import com.microsoft.graph.models.generated.AlertFeedback; import com.microsoft.graph.models.extensions.FileSecurityState; +import com.microsoft.graph.models.extensions.AlertHistoryState; import com.microsoft.graph.models.extensions.HostSecurityState; import com.microsoft.graph.models.extensions.MalwareState; import com.microsoft.graph.models.extensions.NetworkConnection; @@ -161,6 +162,14 @@ public class Alert extends Entity implements IJsonBackedObject { @Expose public java.util.List fileStates; + /** + * The History States. + * + */ + @SerializedName("historyStates") + @Expose + public java.util.List historyStates; + /** * The Host States. * Security-related stateful information generated by the provider about the host(s) related to this alert. diff --git a/src/main/java/com/microsoft/graph/models/extensions/AlertHistoryState.java b/src/main/java/com/microsoft/graph/models/extensions/AlertHistoryState.java new file mode 100644 index 00000000000..33f5c1ff8a2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/AlertHistoryState.java @@ -0,0 +1,137 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.generated.AlertFeedback; +import com.microsoft.graph.models.generated.AlertStatus; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Alert History State. + */ +public class AlertHistoryState implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The App Id. + * + */ + @SerializedName("appId") + @Expose + public String appId; + + /** + * The Assigned To. + * + */ + @SerializedName("assignedTo") + @Expose + public String assignedTo; + + /** + * The Comments. + * + */ + @SerializedName("comments") + @Expose + public java.util.List comments; + + /** + * The Feedback. + * + */ + @SerializedName("feedback") + @Expose + public AlertFeedback feedback; + + /** + * The Status. + * + */ + @SerializedName("status") + @Expose + public AlertStatus status; + + /** + * The Updated Date Time. + * + */ + @SerializedName("updatedDateTime") + @Expose + public java.util.Calendar updatedDateTime; + + /** + * The User. + * + */ + @SerializedName("user") + @Expose + public String user; + + + /** + * 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/AverageComparativeScore.java b/src/main/java/com/microsoft/graph/models/extensions/AverageComparativeScore.java new file mode 100644 index 00000000000..5a511a8fc39 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/AverageComparativeScore.java @@ -0,0 +1,95 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Average Comparative Score. + */ +public class AverageComparativeScore implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Average Score. + * + */ + @SerializedName("averageScore") + @Expose + public Double averageScore; + + /** + * The Basis. + * + */ + @SerializedName("basis") + @Expose + public String basis; + + + /** + * 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/CalendarGetScheduleBody.java b/src/main/java/com/microsoft/graph/models/extensions/CalendarGetScheduleBody.java new file mode 100644 index 00000000000..717554ca46c --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/CalendarGetScheduleBody.java @@ -0,0 +1,93 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.generated.*; +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 Calendar Get Schedule Body. + */ +public class CalendarGetScheduleBody { + + /** + * The schedules. + * + */ + @SerializedName("schedules") + @Expose + public java.util.List schedules; + + /** + * The end Time. + * + */ + @SerializedName("endTime") + @Expose + public DateTimeTimeZone endTime; + + /** + * The start Time. + * + */ + @SerializedName("startTime") + @Expose + public DateTimeTimeZone startTime; + + /** + * The availability View Interval. + * + */ + @SerializedName("availabilityViewInterval") + @Expose + public Integer availabilityViewInterval; + + + /** + * 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/CertificationControl.java b/src/main/java/com/microsoft/graph/models/extensions/CertificationControl.java new file mode 100644 index 00000000000..74502be7bdc --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/CertificationControl.java @@ -0,0 +1,95 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Certification Control. + */ +public class CertificationControl implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Name. + * + */ + @SerializedName("name") + @Expose + public String name; + + /** + * The Url. + * + */ + @SerializedName("url") + @Expose + public String url; + + + /** + * 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/ComplianceInformation.java b/src/main/java/com/microsoft/graph/models/extensions/ComplianceInformation.java new file mode 100644 index 00000000000..3d5b2fa5e42 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/ComplianceInformation.java @@ -0,0 +1,96 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.CertificationControl; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Compliance Information. + */ +public class ComplianceInformation implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Certification Controls. + * + */ + @SerializedName("certificationControls") + @Expose + public java.util.List certificationControls; + + /** + * The Certification Name. + * + */ + @SerializedName("certificationName") + @Expose + public String certificationName; + + + /** + * 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/ControlScore.java b/src/main/java/com/microsoft/graph/models/extensions/ControlScore.java new file mode 100644 index 00000000000..956dd5746bb --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/ControlScore.java @@ -0,0 +1,111 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Control Score. + */ +public class ControlScore implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Control Category. + * + */ + @SerializedName("controlCategory") + @Expose + public String controlCategory; + + /** + * The Control Name. + * + */ + @SerializedName("controlName") + @Expose + public String controlName; + + /** + * The Description. + * + */ + @SerializedName("description") + @Expose + public String description; + + /** + * The Score. + * + */ + @SerializedName("score") + @Expose + public Double score; + + + /** + * 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/DriveItem.java b/src/main/java/com/microsoft/graph/models/extensions/DriveItem.java index 1a95329731b..9072c7b2409 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/DriveItem.java +++ b/src/main/java/com/microsoft/graph/models/extensions/DriveItem.java @@ -29,6 +29,7 @@ import com.microsoft.graph.models.extensions.DriveItem; import com.microsoft.graph.models.extensions.ListItem; import com.microsoft.graph.models.extensions.Permission; +import com.microsoft.graph.models.extensions.Subscription; import com.microsoft.graph.models.extensions.ThumbnailSet; import com.microsoft.graph.models.extensions.DriveItemVersion; import com.microsoft.graph.models.extensions.Workbook; @@ -37,6 +38,8 @@ import com.microsoft.graph.requests.extensions.DriveItemCollectionPage; import com.microsoft.graph.requests.extensions.PermissionCollectionResponse; import com.microsoft.graph.requests.extensions.PermissionCollectionPage; +import com.microsoft.graph.requests.extensions.SubscriptionCollectionResponse; +import com.microsoft.graph.requests.extensions.SubscriptionCollectionPage; import com.microsoft.graph.requests.extensions.ThumbnailSetCollectionResponse; import com.microsoft.graph.requests.extensions.ThumbnailSetCollectionPage; import com.microsoft.graph.requests.extensions.DriveItemVersionCollectionResponse; @@ -237,6 +240,12 @@ public class DriveItem extends BaseItem implements IJsonBackedObject { */ public PermissionCollectionPage permissions; + /** + * The Subscriptions. + * The set of subscriptions on the item. Only supported on the root of a drive. + */ + public SubscriptionCollectionPage subscriptions; + /** * The Thumbnails. * Collection containing [ThumbnailSet][] objects associated with the item. For more info, see [getting thumbnails][]. Read-only. Nullable. @@ -329,6 +338,22 @@ public void setRawObject(final ISerializer serializer, final JsonObject json) { permissions = new PermissionCollectionPage(response, null); } + if (json.has("subscriptions")) { + final SubscriptionCollectionResponse response = new SubscriptionCollectionResponse(); + if (json.has("subscriptions@odata.nextLink")) { + response.nextLink = json.get("subscriptions@odata.nextLink").getAsString(); + } + + final JsonObject[] sourceArray = serializer.deserializeObject(json.get("subscriptions").toString(), JsonObject[].class); + final Subscription[] array = new Subscription[sourceArray.length]; + for (int i = 0; i < sourceArray.length; i++) { + array[i] = serializer.deserializeObject(sourceArray[i].toString(), Subscription.class); + array[i].setRawObject(serializer, sourceArray[i]); + } + response.value = Arrays.asList(array); + subscriptions = new SubscriptionCollectionPage(response, null); + } + if (json.has("thumbnails")) { final ThumbnailSetCollectionResponse response = new ThumbnailSetCollectionResponse(); if (json.has("thumbnails@odata.nextLink")) { diff --git a/src/main/java/com/microsoft/graph/models/extensions/FreeBusyError.java b/src/main/java/com/microsoft/graph/models/extensions/FreeBusyError.java new file mode 100644 index 00000000000..7e2bcba1bbd --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/FreeBusyError.java @@ -0,0 +1,95 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Free Busy Error. + */ +public class FreeBusyError implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Message. + * + */ + @SerializedName("message") + @Expose + public String message; + + /** + * The Response Code. + * + */ + @SerializedName("responseCode") + @Expose + public String responseCode; + + + /** + * 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/ItemReference.java b/src/main/java/com/microsoft/graph/models/extensions/ItemReference.java index c08f28758ea..1d98d2deb90 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/ItemReference.java +++ b/src/main/java/com/microsoft/graph/models/extensions/ItemReference.java @@ -93,6 +93,14 @@ public final AdditionalDataManager additionalDataManager() { @Expose public SharepointIds sharepointIds; + /** + * The Site Id. + * + */ + @SerializedName("siteId") + @Expose + public String siteId; + /** * The raw representation of this class diff --git a/src/main/java/com/microsoft/graph/models/extensions/LocationConstraint.java b/src/main/java/com/microsoft/graph/models/extensions/LocationConstraint.java index 82f1051cbac..1f3f2f9d201 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/LocationConstraint.java +++ b/src/main/java/com/microsoft/graph/models/extensions/LocationConstraint.java @@ -37,6 +37,14 @@ public final AdditionalDataManager additionalDataManager() { return additionalDataManager; } + /** + * The Locations. + * Constraint information for one or more locations that the client requests for the meeting. + */ + @SerializedName("locations") + @Expose + public java.util.List locations; + /** * The Is Required. * The client requests the service to include in the response a meeting location for the meeting. If this is true and all the resources are busy, findMeetingTimes will not return any meeting time suggestions. If this is false and all the resources are busy, findMeetingTimes would still look for meeting times without locations. @@ -53,14 +61,6 @@ public final AdditionalDataManager additionalDataManager() { @Expose public Boolean suggestLocation; - /** - * The Locations. - * Constraint information for one or more locations that the client requests for the meeting. - */ - @SerializedName("locations") - @Expose - public java.util.List locations; - /** * The raw representation of this class diff --git a/src/main/java/com/microsoft/graph/models/extensions/MeetingTimeSuggestion.java b/src/main/java/com/microsoft/graph/models/extensions/MeetingTimeSuggestion.java index 25f3ed3ba0c..43cc039b10f 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/MeetingTimeSuggestion.java +++ b/src/main/java/com/microsoft/graph/models/extensions/MeetingTimeSuggestion.java @@ -10,10 +10,10 @@ import com.microsoft.graph.serializer.*; import java.util.Arrays; import java.util.EnumSet; -import com.microsoft.graph.models.extensions.TimeSlot; import com.microsoft.graph.models.generated.FreeBusyStatus; import com.microsoft.graph.models.extensions.AttendeeAvailability; import com.microsoft.graph.models.extensions.Location; +import com.microsoft.graph.models.extensions.TimeSlot; import com.google.gson.JsonObject; @@ -40,14 +40,6 @@ public final AdditionalDataManager additionalDataManager() { return additionalDataManager; } - /** - * The Meeting Time Slot. - * A time period suggested for the meeting. - */ - @SerializedName("meetingTimeSlot") - @Expose - public TimeSlot meetingTimeSlot; - /** * The Confidence. * A percentage that represents the likelhood of all the attendees attending. @@ -56,6 +48,14 @@ public final AdditionalDataManager additionalDataManager() { @Expose public Double confidence; + /** + * The Order. + * + */ + @SerializedName("order") + @Expose + public Integer order; + /** * The Organizer Availability. * Availability of the meeting organizer for this meeting suggestion. The possible values are: free, tentative, busy, oof, workingElsewhere, unknown. @@ -88,6 +88,14 @@ public final AdditionalDataManager additionalDataManager() { @Expose public String suggestionReason; + /** + * The Meeting Time Slot. + * A time period suggested for the meeting. + */ + @SerializedName("meetingTimeSlot") + @Expose + public TimeSlot meetingTimeSlot; + /** * The raw representation of this class diff --git a/src/main/java/com/microsoft/graph/models/extensions/ScheduleInformation.java b/src/main/java/com/microsoft/graph/models/extensions/ScheduleInformation.java new file mode 100644 index 00000000000..8ebdf6590c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/ScheduleInformation.java @@ -0,0 +1,122 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.ScheduleItem; +import com.microsoft.graph.models.extensions.FreeBusyError; +import com.microsoft.graph.models.extensions.WorkingHours; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Schedule Information. + */ +public class ScheduleInformation implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Schedule Id. + * + */ + @SerializedName("scheduleId") + @Expose + public String scheduleId; + + /** + * The Schedule Items. + * + */ + @SerializedName("scheduleItems") + @Expose + public java.util.List scheduleItems; + + /** + * The Availability View. + * + */ + @SerializedName("availabilityView") + @Expose + public String availabilityView; + + /** + * The Error. + * + */ + @SerializedName("error") + @Expose + public FreeBusyError error; + + /** + * The Working Hours. + * + */ + @SerializedName("workingHours") + @Expose + public WorkingHours workingHours; + + + /** + * 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/ScheduleItem.java b/src/main/java/com/microsoft/graph/models/extensions/ScheduleItem.java new file mode 100644 index 00000000000..bf7ef395de3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/ScheduleItem.java @@ -0,0 +1,129 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.DateTimeTimeZone; +import com.microsoft.graph.models.generated.FreeBusyStatus; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Schedule Item. + */ +public class ScheduleItem implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Start. + * + */ + @SerializedName("start") + @Expose + public DateTimeTimeZone start; + + /** + * The End. + * + */ + @SerializedName("end") + @Expose + public DateTimeTimeZone end; + + /** + * The Is Private. + * + */ + @SerializedName("isPrivate") + @Expose + public Boolean isPrivate; + + /** + * The Status. + * + */ + @SerializedName("status") + @Expose + public FreeBusyStatus status; + + /** + * The Subject. + * + */ + @SerializedName("subject") + @Expose + public String subject; + + /** + * The Location. + * + */ + @SerializedName("location") + @Expose + public String location; + + + /** + * 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/SecureScore.java b/src/main/java/com/microsoft/graph/models/extensions/SecureScore.java new file mode 100644 index 00000000000..63316f9d03b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/SecureScore.java @@ -0,0 +1,153 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.AverageComparativeScore; +import com.microsoft.graph.models.extensions.ControlScore; +import com.microsoft.graph.models.extensions.SecurityVendorInformation; +import com.microsoft.graph.models.extensions.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Secure Score. + */ +public class SecureScore extends Entity implements IJsonBackedObject { + + + /** + * The Active User Count. + * + */ + @SerializedName("activeUserCount") + @Expose + public Integer activeUserCount; + + /** + * The Average Comparative Scores. + * + */ + @SerializedName("averageComparativeScores") + @Expose + public java.util.List averageComparativeScores; + + /** + * The Azure Tenant Id. + * + */ + @SerializedName("azureTenantId") + @Expose + public String azureTenantId; + + /** + * The Control Scores. + * + */ + @SerializedName("controlScores") + @Expose + public java.util.List controlScores; + + /** + * The Created Date Time. + * + */ + @SerializedName("createdDateTime") + @Expose + public java.util.Calendar createdDateTime; + + /** + * The Current Score. + * + */ + @SerializedName("currentScore") + @Expose + public Double currentScore; + + /** + * The Enabled Services. + * + */ + @SerializedName("enabledServices") + @Expose + public java.util.List enabledServices; + + /** + * The Licensed User Count. + * + */ + @SerializedName("licensedUserCount") + @Expose + public Integer licensedUserCount; + + /** + * The Max Score. + * + */ + @SerializedName("maxScore") + @Expose + public Double maxScore; + + /** + * The Vendor Information. + * + */ + @SerializedName("vendorInformation") + @Expose + public SecurityVendorInformation vendorInformation; + + + /** + * 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/SecureScoreControlProfile.java b/src/main/java/com/microsoft/graph/models/extensions/SecureScoreControlProfile.java new file mode 100644 index 00000000000..ab68415974d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/SecureScoreControlProfile.java @@ -0,0 +1,225 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.ComplianceInformation; +import com.microsoft.graph.models.extensions.SecureScoreControlStateUpdate; +import com.microsoft.graph.models.extensions.SecurityVendorInformation; +import com.microsoft.graph.models.extensions.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Secure Score Control Profile. + */ +public class SecureScoreControlProfile extends Entity implements IJsonBackedObject { + + + /** + * The Action Type. + * + */ + @SerializedName("actionType") + @Expose + public String actionType; + + /** + * The Action Url. + * + */ + @SerializedName("actionUrl") + @Expose + public String actionUrl; + + /** + * The Azure Tenant Id. + * + */ + @SerializedName("azureTenantId") + @Expose + public String azureTenantId; + + /** + * The Compliance Information. + * + */ + @SerializedName("complianceInformation") + @Expose + public java.util.List complianceInformation; + + /** + * The Control Category. + * + */ + @SerializedName("controlCategory") + @Expose + public String controlCategory; + + /** + * The Control State Updates. + * + */ + @SerializedName("controlStateUpdates") + @Expose + public java.util.List controlStateUpdates; + + /** + * The Deprecated. + * + */ + @SerializedName("deprecated") + @Expose + public Boolean deprecated; + + /** + * The Implementation Cost. + * + */ + @SerializedName("implementationCost") + @Expose + public String implementationCost; + + /** + * The Last Modified Date Time. + * + */ + @SerializedName("lastModifiedDateTime") + @Expose + public java.util.Calendar lastModifiedDateTime; + + /** + * The Max Score. + * + */ + @SerializedName("maxScore") + @Expose + public Double maxScore; + + /** + * The Rank. + * + */ + @SerializedName("rank") + @Expose + public Integer rank; + + /** + * The Remediation. + * + */ + @SerializedName("remediation") + @Expose + public String remediation; + + /** + * The Remediation Impact. + * + */ + @SerializedName("remediationImpact") + @Expose + public String remediationImpact; + + /** + * The Service. + * + */ + @SerializedName("service") + @Expose + public String service; + + /** + * The Threats. + * + */ + @SerializedName("threats") + @Expose + public java.util.List threats; + + /** + * The Tier. + * + */ + @SerializedName("tier") + @Expose + public String tier; + + /** + * The Title. + * + */ + @SerializedName("title") + @Expose + public String title; + + /** + * The User Impact. + * + */ + @SerializedName("userImpact") + @Expose + public String userImpact; + + /** + * The Vendor Information. + * + */ + @SerializedName("vendorInformation") + @Expose + public SecurityVendorInformation vendorInformation; + + + /** + * 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/SecureScoreControlStateUpdate.java b/src/main/java/com/microsoft/graph/models/extensions/SecureScoreControlStateUpdate.java new file mode 100644 index 00000000000..7cb1c3c34f2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/SecureScoreControlStateUpdate.java @@ -0,0 +1,119 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Secure Score Control State Update. + */ +public class SecureScoreControlStateUpdate implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Assigned To. + * + */ + @SerializedName("assignedTo") + @Expose + public String assignedTo; + + /** + * The Comment. + * + */ + @SerializedName("comment") + @Expose + public String comment; + + /** + * The State. + * + */ + @SerializedName("state") + @Expose + public String state; + + /** + * The Updated By. + * + */ + @SerializedName("updatedBy") + @Expose + public String updatedBy; + + /** + * The Updated Date Time. + * + */ + @SerializedName("updatedDateTime") + @Expose + public java.util.Calendar updatedDateTime; + + + /** + * 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/Security.java b/src/main/java/com/microsoft/graph/models/extensions/Security.java index 136b41a277c..12ba66b43f9 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Security.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Security.java @@ -11,9 +11,15 @@ import java.util.Arrays; import java.util.EnumSet; import com.microsoft.graph.models.extensions.Alert; +import com.microsoft.graph.models.extensions.SecureScoreControlProfile; +import com.microsoft.graph.models.extensions.SecureScore; import com.microsoft.graph.models.extensions.Entity; import com.microsoft.graph.requests.extensions.AlertCollectionResponse; import com.microsoft.graph.requests.extensions.AlertCollectionPage; +import com.microsoft.graph.requests.extensions.SecureScoreControlProfileCollectionResponse; +import com.microsoft.graph.requests.extensions.SecureScoreControlProfileCollectionPage; +import com.microsoft.graph.requests.extensions.SecureScoreCollectionResponse; +import com.microsoft.graph.requests.extensions.SecureScoreCollectionPage; import com.google.gson.JsonObject; @@ -36,6 +42,18 @@ public class Security extends Entity implements IJsonBackedObject { */ public AlertCollectionPage alerts; + /** + * The Secure Score Control Profiles. + * + */ + public SecureScoreControlProfileCollectionPage secureScoreControlProfiles; + + /** + * The Secure Scores. + * + */ + public SecureScoreCollectionPage secureScores; + /** * The raw representation of this class @@ -91,5 +109,37 @@ public void setRawObject(final ISerializer serializer, final JsonObject json) { response.value = Arrays.asList(array); alerts = new AlertCollectionPage(response, null); } + + if (json.has("secureScoreControlProfiles")) { + final SecureScoreControlProfileCollectionResponse response = new SecureScoreControlProfileCollectionResponse(); + if (json.has("secureScoreControlProfiles@odata.nextLink")) { + response.nextLink = json.get("secureScoreControlProfiles@odata.nextLink").getAsString(); + } + + final JsonObject[] sourceArray = serializer.deserializeObject(json.get("secureScoreControlProfiles").toString(), JsonObject[].class); + final SecureScoreControlProfile[] array = new SecureScoreControlProfile[sourceArray.length]; + for (int i = 0; i < sourceArray.length; i++) { + array[i] = serializer.deserializeObject(sourceArray[i].toString(), SecureScoreControlProfile.class); + array[i].setRawObject(serializer, sourceArray[i]); + } + response.value = Arrays.asList(array); + secureScoreControlProfiles = new SecureScoreControlProfileCollectionPage(response, null); + } + + if (json.has("secureScores")) { + final SecureScoreCollectionResponse response = new SecureScoreCollectionResponse(); + if (json.has("secureScores@odata.nextLink")) { + response.nextLink = json.get("secureScores@odata.nextLink").getAsString(); + } + + final JsonObject[] sourceArray = serializer.deserializeObject(json.get("secureScores").toString(), JsonObject[].class); + final SecureScore[] array = new SecureScore[sourceArray.length]; + for (int i = 0; i < sourceArray.length; i++) { + array[i] = serializer.deserializeObject(sourceArray[i].toString(), SecureScore.class); + array[i].setRawObject(serializer, sourceArray[i]); + } + response.value = Arrays.asList(array); + secureScores = new SecureScoreCollectionPage(response, null); + } } } diff --git a/src/main/java/com/microsoft/graph/models/extensions/TimeConstraint.java b/src/main/java/com/microsoft/graph/models/extensions/TimeConstraint.java index 906b1b51097..640d81d1a92 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/TimeConstraint.java +++ b/src/main/java/com/microsoft/graph/models/extensions/TimeConstraint.java @@ -47,12 +47,12 @@ public final AdditionalDataManager additionalDataManager() { public ActivityDomain activityDomain; /** - * The Timeslots. - * An array of time periods. + * The Time Slots. + * */ - @SerializedName("timeslots") + @SerializedName("timeSlots") @Expose - public java.util.List timeslots; + public java.util.List timeSlots; /** diff --git a/src/main/java/com/microsoft/graph/models/generated/PhysicalAddressType.java b/src/main/java/com/microsoft/graph/models/generated/PhysicalAddressType.java new file mode 100644 index 00000000000..120736e7989 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/PhysicalAddressType.java @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Physical Address Type. +*/ +public enum PhysicalAddressType +{ + /** + * unknown + */ + UNKNOWN, + /** + * home + */ + HOME, + /** + * business + */ + BUSINESS, + /** + * other + */ + OTHER, + /** + * For PhysicalAddressType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionPage.java new file mode 100644 index 00000000000..a69ef496096 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionPage.java @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; +import com.google.gson.annotations.*; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Calendar Get Schedule Collection Page. + */ +public class CalendarGetScheduleCollectionPage extends BaseCollectionPage implements ICalendarGetScheduleCollectionPage { + + /** + * A collection page for CalendarGetSchedule. + * + * @param response The serialized CalendarGetScheduleCollectionResponse from the service + * @param builder The request builder for the next collection page + */ + public CalendarGetScheduleCollectionPage(final CalendarGetScheduleCollectionResponse response, final ICalendarGetScheduleCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionRequest.java new file mode 100644 index 00000000000..611160c078a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionRequest.java @@ -0,0 +1,108 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Calendar Get Schedule Collection Request. + */ +public class CalendarGetScheduleCollectionRequest extends BaseCollectionRequest implements ICalendarGetScheduleCollectionRequest { + + + protected final CalendarGetScheduleBody body; + + + /** + * The request for this CalendarGetSchedule + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public CalendarGetScheduleCollectionRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, CalendarGetScheduleCollectionResponse.class, ICalendarGetScheduleCollectionPage.class); + body = new CalendarGetScheduleBody(); + } + + + public void post(final ICallback callback) { + final IExecutors executors = getBaseRequest().getClient().getExecutors(); + executors.performOnBackground(new Runnable() { + @Override + public void run() { + try { + executors.performOnForeground(post(), callback); + } catch (final ClientException e) { + executors.performOnForeground(e, callback); + } + } + }); + } + + public ICalendarGetScheduleCollectionPage post() throws ClientException { + final CalendarGetScheduleCollectionResponse response = post(body); + return buildFromResponse(response); + } + + + public ICalendarGetScheduleCollectionPage buildFromResponse(final CalendarGetScheduleCollectionResponse response) { + final ICalendarGetScheduleCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new CalendarGetScheduleCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null, /* schedules */ null, /* endTime */ null, /* startTime */ null, /* availabilityViewInterval */ null); + } else { + builder = null; + } + final ICalendarGetScheduleCollectionPage page = new CalendarGetScheduleCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public ICalendarGetScheduleCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (ICalendarGetScheduleCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public ICalendarGetScheduleCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value+"")); + return (ICalendarGetScheduleCollectionRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public ICalendarGetScheduleCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (ICalendarGetScheduleCollectionRequest)this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionRequestBuilder.java new file mode 100644 index 00000000000..5d117975ebc --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionRequestBuilder.java @@ -0,0 +1,78 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Calendar Get Schedule Collection Request Builder. + */ +public class CalendarGetScheduleCollectionRequestBuilder extends BaseActionRequestBuilder implements ICalendarGetScheduleCollectionRequestBuilder { + + /** + * The request builder for this collection of Calendar + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + * @param schedules the schedules + * @param endTime the endTime + * @param startTime the startTime + * @param availabilityViewInterval the availabilityViewInterval + */ + public CalendarGetScheduleCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions, final java.util.List schedules, final DateTimeTimeZone endTime, final DateTimeTimeZone startTime, final Integer availabilityViewInterval) { + super(requestUrl, client, requestOptions); + if(schedules!=null){ + bodyParams.put("schedules", schedules); + } + if(endTime!=null){ + bodyParams.put("endTime", endTime); + } + if(startTime!=null){ + bodyParams.put("startTime", startTime); + } + if(availabilityViewInterval!=null){ + bodyParams.put("availabilityViewInterval", availabilityViewInterval); + } + } + + public ICalendarGetScheduleCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public ICalendarGetScheduleCollectionRequest buildRequest(final java.util.List requestOptions) { + CalendarGetScheduleCollectionRequest request = new CalendarGetScheduleCollectionRequest( + getRequestUrl(), + getClient(), + requestOptions + ); + + if (hasParameter("schedules")) { + request.body.schedules = getParameter("schedules"); + } + if (hasParameter("endTime")) { + request.body.endTime = getParameter("endTime"); + } + if (hasParameter("startTime")) { + request.body.startTime = getParameter("startTime"); + } + if (hasParameter("availabilityViewInterval")) { + request.body.availabilityViewInterval = getParameter("availabilityViewInterval"); + } + + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionResponse.java new file mode 100644 index 00000000000..e06555bdfd0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/CalendarGetScheduleCollectionResponse.java @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import com.google.gson.annotations.*; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Calendar Get Schedule Collection Response. + */ +public class CalendarGetScheduleCollectionResponse implements IJsonBackedObject { + + @SerializedName("value") + @Expose + public java.util.List value; + + @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/CalendarRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/CalendarRequestBuilder.java index 825ccc44849..9b662422011 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/CalendarRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/CalendarRequestBuilder.java @@ -21,6 +21,10 @@ import com.microsoft.graph.requests.extensions.MultiValueLegacyExtendedPropertyCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IMultiValueLegacyExtendedPropertyRequestBuilder; import com.microsoft.graph.requests.extensions.MultiValueLegacyExtendedPropertyRequestBuilder; +import com.microsoft.graph.models.extensions.DateTimeTimeZone; +import com.microsoft.graph.models.extensions.DateTimeTimeZone; +import com.microsoft.graph.requests.extensions.ICalendarGetScheduleCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.CalendarGetScheduleCollectionRequestBuilder; import com.microsoft.graph.core.IBaseClient; import com.microsoft.graph.http.BaseRequestBuilder; @@ -93,5 +97,9 @@ public IMultiValueLegacyExtendedPropertyCollectionRequestBuilder multiValueExten public IMultiValueLegacyExtendedPropertyRequestBuilder multiValueExtendedProperties(final String id) { return new MultiValueLegacyExtendedPropertyRequestBuilder(getRequestUrlWithAdditionalSegment("multiValueExtendedProperties") + "/" + id, getClient(), null); } + + public ICalendarGetScheduleCollectionRequestBuilder getSchedule(final java.util.List schedules, final DateTimeTimeZone endTime, final DateTimeTimeZone startTime, final Integer availabilityViewInterval) { + return new CalendarGetScheduleCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getSchedule"), getClient(), null, schedules, endTime, startTime, availabilityViewInterval); + } } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/DriveItemRequestBuilder.java index b62151a52e2..3b4b8001b5c 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/DriveItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/DriveItemRequestBuilder.java @@ -15,6 +15,10 @@ import com.microsoft.graph.requests.extensions.PermissionCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IPermissionRequestBuilder; import com.microsoft.graph.requests.extensions.PermissionRequestBuilder; +import com.microsoft.graph.requests.extensions.ISubscriptionCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.SubscriptionCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.ISubscriptionRequestBuilder; +import com.microsoft.graph.requests.extensions.SubscriptionRequestBuilder; import com.microsoft.graph.requests.extensions.IThumbnailSetCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.ThumbnailSetCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IThumbnailSetRequestBuilder; @@ -117,6 +121,13 @@ public IPermissionCollectionRequestBuilder permissions() { public IPermissionRequestBuilder permissions(final String id) { return new PermissionRequestBuilder(getRequestUrlWithAdditionalSegment("permissions") + "/" + id, getClient(), null); } + public ISubscriptionCollectionRequestBuilder subscriptions() { + return new SubscriptionCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("subscriptions"), getClient(), null); + } + + public ISubscriptionRequestBuilder subscriptions(final String id) { + return new SubscriptionRequestBuilder(getRequestUrlWithAdditionalSegment("subscriptions") + "/" + id, getClient(), null); + } public IThumbnailSetCollectionRequestBuilder thumbnails() { return new ThumbnailSetCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("thumbnails"), getClient(), null); } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ICalendarGetScheduleCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/ICalendarGetScheduleCollectionPage.java new file mode 100644 index 00000000000..e8c678e8a5c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ICalendarGetScheduleCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Calendar Get Schedule Collection Page. + */ +public interface ICalendarGetScheduleCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ICalendarGetScheduleCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ICalendarGetScheduleCollectionRequest.java new file mode 100644 index 00000000000..2204c8d48d6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ICalendarGetScheduleCollectionRequest.java @@ -0,0 +1,57 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; +import com.google.gson.annotations.*; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Calendar Get Schedule Collection Request. + */ +public interface ICalendarGetScheduleCollectionRequest { + + void post(final ICallback callback); + + ICalendarGetScheduleCollectionPage post() throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + ICalendarGetScheduleCollectionRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + ICalendarGetScheduleCollectionRequest expand(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + ICalendarGetScheduleCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ICalendarGetScheduleCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ICalendarGetScheduleCollectionRequestBuilder.java new file mode 100644 index 00000000000..9dc8bb4479e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ICalendarGetScheduleCollectionRequestBuilder.java @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Calendar Get Schedule Collection Request Builder. + */ +public interface ICalendarGetScheduleCollectionRequestBuilder extends IRequestBuilder { + + ICalendarGetScheduleCollectionRequest buildRequest(); + + ICalendarGetScheduleCollectionRequest buildRequest(final java.util.List requestOptions); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ICalendarRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ICalendarRequestBuilder.java index f2e206ba093..e6c3b674070 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/ICalendarRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/ICalendarRequestBuilder.java @@ -12,6 +12,9 @@ import com.microsoft.graph.requests.extensions.ISingleValueLegacyExtendedPropertyRequestBuilder; import com.microsoft.graph.requests.extensions.IMultiValueLegacyExtendedPropertyCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IMultiValueLegacyExtendedPropertyRequestBuilder; +import com.microsoft.graph.models.extensions.DateTimeTimeZone; +import com.microsoft.graph.models.extensions.DateTimeTimeZone; +import com.microsoft.graph.requests.extensions.ICalendarGetScheduleCollectionRequestBuilder; import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.options.Option; @@ -55,4 +58,6 @@ public interface ICalendarRequestBuilder extends IRequestBuilder { IMultiValueLegacyExtendedPropertyRequestBuilder multiValueExtendedProperties(final String id); + ICalendarGetScheduleCollectionRequestBuilder getSchedule(final java.util.List schedules, final DateTimeTimeZone endTime, final DateTimeTimeZone startTime, final Integer availabilityViewInterval); + } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemRequestBuilder.java index 5b6fdc4249d..024c6f4945a 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemRequestBuilder.java @@ -9,6 +9,8 @@ import com.microsoft.graph.requests.extensions.IListItemRequestBuilder; import com.microsoft.graph.requests.extensions.IPermissionCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IPermissionRequestBuilder; +import com.microsoft.graph.requests.extensions.ISubscriptionCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.ISubscriptionRequestBuilder; import com.microsoft.graph.requests.extensions.IThumbnailSetCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IThumbnailSetRequestBuilder; import com.microsoft.graph.requests.extensions.IDriveItemVersionCollectionRequestBuilder; @@ -74,6 +76,10 @@ public interface IDriveItemRequestBuilder extends IRequestBuilder { IPermissionRequestBuilder permissions(final String id); + ISubscriptionCollectionRequestBuilder subscriptions(); + + ISubscriptionRequestBuilder subscriptions(final String id); + IThumbnailSetCollectionRequestBuilder thumbnails(); IThumbnailSetRequestBuilder thumbnails(final String id); diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreCollectionPage.java new file mode 100644 index 00000000000..e3fc9a671f4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Secure Score Collection Page. + */ +public interface ISecureScoreCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreCollectionRequest.java new file mode 100644 index 00000000000..eea164f2dbc --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreCollectionRequest.java @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Secure Score Collection Request. + */ +public interface ISecureScoreCollectionRequest { + + void get(final ICallback callback); + + ISecureScoreCollectionPage get() throws ClientException; + + void post(final SecureScore newSecureScore, final ICallback callback); + + SecureScore post(final SecureScore newSecureScore) throws ClientException; + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + ISecureScoreCollectionRequest expand(final String value); + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + ISecureScoreCollectionRequest select(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + ISecureScoreCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreCollectionRequestBuilder.java new file mode 100644 index 00000000000..8bf2ecfff8c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Secure Score Collection Request Builder. + */ +public interface ISecureScoreCollectionRequestBuilder extends IRequestBuilder { + + ISecureScoreCollectionRequest buildRequest(); + + ISecureScoreCollectionRequest buildRequest(final java.util.List requestOptions); + + ISecureScoreRequestBuilder byId(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileCollectionPage.java new file mode 100644 index 00000000000..440efd96cd1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Secure Score Control Profile Collection Page. + */ +public interface ISecureScoreControlProfileCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileCollectionRequest.java new file mode 100644 index 00000000000..36cea6b16e7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileCollectionRequest.java @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Secure Score Control Profile Collection Request. + */ +public interface ISecureScoreControlProfileCollectionRequest { + + void get(final ICallback callback); + + ISecureScoreControlProfileCollectionPage get() throws ClientException; + + void post(final SecureScoreControlProfile newSecureScoreControlProfile, final ICallback callback); + + SecureScoreControlProfile post(final SecureScoreControlProfile newSecureScoreControlProfile) throws ClientException; + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + ISecureScoreControlProfileCollectionRequest expand(final String value); + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + ISecureScoreControlProfileCollectionRequest select(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + ISecureScoreControlProfileCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileCollectionRequestBuilder.java new file mode 100644 index 00000000000..e6214146469 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Secure Score Control Profile Collection Request Builder. + */ +public interface ISecureScoreControlProfileCollectionRequestBuilder extends IRequestBuilder { + + ISecureScoreControlProfileCollectionRequest buildRequest(); + + ISecureScoreControlProfileCollectionRequest buildRequest(final java.util.List requestOptions); + + ISecureScoreControlProfileRequestBuilder byId(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileRequest.java new file mode 100644 index 00000000000..e40edd4cdb7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.SecureScoreControlProfile; + +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 Secure Score Control Profile Request. + */ +public interface ISecureScoreControlProfileRequest extends IHttpRequest { + + /** + * Gets the SecureScoreControlProfile from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the SecureScoreControlProfile from the service + * + * @return the SecureScoreControlProfile from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + SecureScoreControlProfile 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 SecureScoreControlProfile with a source + * + * @param sourceSecureScoreControlProfile the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final SecureScoreControlProfile sourceSecureScoreControlProfile, final ICallback callback); + + /** + * Patches this SecureScoreControlProfile with a source + * + * @param sourceSecureScoreControlProfile the source object with updates + * @return the updated SecureScoreControlProfile + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + SecureScoreControlProfile patch(final SecureScoreControlProfile sourceSecureScoreControlProfile) throws ClientException; + + /** + * Posts a SecureScoreControlProfile with a new object + * + * @param newSecureScoreControlProfile the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final SecureScoreControlProfile newSecureScoreControlProfile, final ICallback callback); + + /** + * Posts a SecureScoreControlProfile with a new object + * + * @param newSecureScoreControlProfile the new object to create + * @return the created SecureScoreControlProfile + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + SecureScoreControlProfile post(final SecureScoreControlProfile newSecureScoreControlProfile) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + ISecureScoreControlProfileRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + ISecureScoreControlProfileRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileRequestBuilder.java new file mode 100644 index 00000000000..39a34ecacd1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreControlProfileRequestBuilder.java @@ -0,0 +1,34 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ISecureScoreControlProfileRequest; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Secure Score Control Profile Request Builder. + */ +public interface ISecureScoreControlProfileRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the ISecureScoreControlProfileRequest instance + */ + ISecureScoreControlProfileRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the ISecureScoreControlProfileRequest instance + */ + ISecureScoreControlProfileRequest buildRequest(final java.util.List requestOptions); + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreRequest.java new file mode 100644 index 00000000000..ca0060637ae --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.SecureScore; + +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 Secure Score Request. + */ +public interface ISecureScoreRequest extends IHttpRequest { + + /** + * Gets the SecureScore from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the SecureScore from the service + * + * @return the SecureScore from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + SecureScore 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 SecureScore with a source + * + * @param sourceSecureScore the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final SecureScore sourceSecureScore, final ICallback callback); + + /** + * Patches this SecureScore with a source + * + * @param sourceSecureScore the source object with updates + * @return the updated SecureScore + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + SecureScore patch(final SecureScore sourceSecureScore) throws ClientException; + + /** + * Posts a SecureScore with a new object + * + * @param newSecureScore the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final SecureScore newSecureScore, final ICallback callback); + + /** + * Posts a SecureScore with a new object + * + * @param newSecureScore the new object to create + * @return the created SecureScore + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + SecureScore post(final SecureScore newSecureScore) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + ISecureScoreRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + ISecureScoreRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreRequestBuilder.java new file mode 100644 index 00000000000..e262c375790 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISecureScoreRequestBuilder.java @@ -0,0 +1,34 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ISecureScoreRequest; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Secure Score Request Builder. + */ +public interface ISecureScoreRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the ISecureScoreRequest instance + */ + ISecureScoreRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the ISecureScoreRequest instance + */ + ISecureScoreRequest buildRequest(final java.util.List requestOptions); + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISecurityRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ISecurityRequestBuilder.java index 907107111d3..e453da5f5c6 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/ISecurityRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISecurityRequestBuilder.java @@ -6,6 +6,10 @@ import com.microsoft.graph.requests.extensions.ISecurityRequest; import com.microsoft.graph.requests.extensions.IAlertCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IAlertRequestBuilder; +import com.microsoft.graph.requests.extensions.ISecureScoreControlProfileCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.ISecureScoreControlProfileRequestBuilder; +import com.microsoft.graph.requests.extensions.ISecureScoreCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.ISecureScoreRequestBuilder; import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.options.Option; @@ -37,4 +41,12 @@ public interface ISecurityRequestBuilder extends IRequestBuilder { IAlertRequestBuilder alerts(final String id); + ISecureScoreControlProfileCollectionRequestBuilder secureScoreControlProfiles(); + + ISecureScoreControlProfileRequestBuilder secureScoreControlProfiles(final String id); + + ISecureScoreCollectionRequestBuilder secureScores(); + + ISecureScoreRequestBuilder secureScores(final String id); + } 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 275dd022bb1..1344e153fad 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IUserRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IUserRequestBuilder.java @@ -69,12 +69,12 @@ import com.microsoft.graph.requests.extensions.IUserChangePasswordRequestBuilder; import com.microsoft.graph.models.extensions.Message; import com.microsoft.graph.requests.extensions.IUserSendMailRequestBuilder; +import com.microsoft.graph.models.generated.MailTipsType; +import com.microsoft.graph.requests.extensions.IUserGetMailTipsCollectionRequestBuilder; import com.microsoft.graph.models.extensions.AttendeeBase; import com.microsoft.graph.models.extensions.LocationConstraint; import com.microsoft.graph.models.extensions.TimeConstraint; import com.microsoft.graph.requests.extensions.IUserFindMeetingTimesRequestBuilder; -import com.microsoft.graph.models.generated.MailTipsType; -import com.microsoft.graph.requests.extensions.IUserGetMailTipsCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IUserRemoveAllDevicesFromManagementRequestBuilder; import com.microsoft.graph.requests.extensions.IUserWipeManagedAppRegistrationsByDeviceTagRequestBuilder; import com.microsoft.graph.requests.extensions.IUserExportPersonalDataRequestBuilder; @@ -280,9 +280,9 @@ public interface IUserRequestBuilder extends IRequestBuilder { IUserAssignLicenseRequestBuilder assignLicense(final java.util.List addLicenses, final java.util.List removeLicenses); IUserChangePasswordRequestBuilder changePassword(final String currentPassword, final String newPassword); IUserSendMailRequestBuilder sendMail(final Message message, final Boolean saveToSentItems); - IUserFindMeetingTimesRequestBuilder findMeetingTimes(final java.util.List attendees, final LocationConstraint locationConstraint, final TimeConstraint timeConstraint, final javax.xml.datatype.Duration meetingDuration, final Integer maxCandidates, final Boolean isOrganizerOptional, final Boolean returnSuggestionReasons, final Double minimumAttendeePercentage); IUserGetMailTipsCollectionRequestBuilder getMailTips(final java.util.List emailAddresses, final EnumSet mailTipsOptions); + IUserFindMeetingTimesRequestBuilder findMeetingTimes(final java.util.List attendees, final LocationConstraint locationConstraint, final TimeConstraint timeConstraint, final javax.xml.datatype.Duration meetingDuration, final Integer maxCandidates, final Boolean isOrganizerOptional, final Boolean returnSuggestionReasons, final Double minimumAttendeePercentage); IUserRemoveAllDevicesFromManagementRequestBuilder removeAllDevicesFromManagement(); IUserWipeManagedAppRegistrationsByDeviceTagRequestBuilder wipeManagedAppRegistrationsByDeviceTag(final String deviceTag); IUserExportPersonalDataRequestBuilder exportPersonalData(final String storageLocation); diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionPage.java new file mode 100644 index 00000000000..6577419bbbe --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionPage.java @@ -0,0 +1,26 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.SecureScore; +import com.microsoft.graph.requests.extensions.ISecureScoreCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Secure Score Collection Page. + */ +public class SecureScoreCollectionPage extends BaseCollectionPage implements ISecureScoreCollectionPage { + + /** + * A collection page for SecureScore + * + * @param response the serialized SecureScoreCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public SecureScoreCollectionPage(final SecureScoreCollectionResponse response, final ISecureScoreCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionRequest.java new file mode 100644 index 00000000000..f6c0498c316 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionRequest.java @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Secure Score Collection Request. + */ +public class SecureScoreCollectionRequest extends BaseCollectionRequest implements ISecureScoreCollectionRequest { + + /** + * The request builder for this collection of SecureScore + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SecureScoreCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SecureScoreCollectionResponse.class, ISecureScoreCollectionPage.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 ISecureScoreCollectionPage get() throws ClientException { + final SecureScoreCollectionResponse response = send(); + return buildFromResponse(response); + } + + public void post(final SecureScore newSecureScore, final ICallback callback) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + new SecureScoreRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newSecureScore, callback); + } + + public SecureScore post(final SecureScore newSecureScore) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new SecureScoreRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newSecureScore); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public ISecureScoreCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (SecureScoreCollectionRequest)this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public ISecureScoreCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (SecureScoreCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public ISecureScoreCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value + "")); + return (SecureScoreCollectionRequest)this; + } + + public ISecureScoreCollectionPage buildFromResponse(final SecureScoreCollectionResponse response) { + final ISecureScoreCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new SecureScoreCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final SecureScoreCollectionPage page = new SecureScoreCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionRequestBuilder.java new file mode 100644 index 00000000000..6c3369f5cd0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Secure Score Collection Request Builder. + */ +public class SecureScoreCollectionRequestBuilder extends BaseRequestBuilder implements ISecureScoreCollectionRequestBuilder { + + /** + * The request builder for this collection of Security + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SecureScoreCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public ISecureScoreCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public ISecureScoreCollectionRequest buildRequest(final java.util.List requestOptions) { + return new SecureScoreCollectionRequest(getRequestUrl(), getClient(), requestOptions); + } + + public ISecureScoreRequestBuilder byId(final String id) { + return new SecureScoreRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionResponse.java new file mode 100644 index 00000000000..c402055125f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreCollectionResponse.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.SecureScore; + +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 Secure Score Collection Response. + */ +public class SecureScoreCollectionResponse implements IJsonBackedObject { + + /** + * The list of SecureScore 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/SecureScoreControlProfileCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionPage.java new file mode 100644 index 00000000000..3dc3ab3d9d6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionPage.java @@ -0,0 +1,26 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.SecureScoreControlProfile; +import com.microsoft.graph.requests.extensions.ISecureScoreControlProfileCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Secure Score Control Profile Collection Page. + */ +public class SecureScoreControlProfileCollectionPage extends BaseCollectionPage implements ISecureScoreControlProfileCollectionPage { + + /** + * A collection page for SecureScoreControlProfile + * + * @param response the serialized SecureScoreControlProfileCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public SecureScoreControlProfileCollectionPage(final SecureScoreControlProfileCollectionResponse response, final ISecureScoreControlProfileCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionRequest.java new file mode 100644 index 00000000000..27441d86704 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionRequest.java @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Secure Score Control Profile Collection Request. + */ +public class SecureScoreControlProfileCollectionRequest extends BaseCollectionRequest implements ISecureScoreControlProfileCollectionRequest { + + /** + * The request builder for this collection of SecureScoreControlProfile + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SecureScoreControlProfileCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SecureScoreControlProfileCollectionResponse.class, ISecureScoreControlProfileCollectionPage.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 ISecureScoreControlProfileCollectionPage get() throws ClientException { + final SecureScoreControlProfileCollectionResponse response = send(); + return buildFromResponse(response); + } + + public void post(final SecureScoreControlProfile newSecureScoreControlProfile, final ICallback callback) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + new SecureScoreControlProfileRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newSecureScoreControlProfile, callback); + } + + public SecureScoreControlProfile post(final SecureScoreControlProfile newSecureScoreControlProfile) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new SecureScoreControlProfileRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newSecureScoreControlProfile); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public ISecureScoreControlProfileCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (SecureScoreControlProfileCollectionRequest)this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public ISecureScoreControlProfileCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (SecureScoreControlProfileCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public ISecureScoreControlProfileCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value + "")); + return (SecureScoreControlProfileCollectionRequest)this; + } + + public ISecureScoreControlProfileCollectionPage buildFromResponse(final SecureScoreControlProfileCollectionResponse response) { + final ISecureScoreControlProfileCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new SecureScoreControlProfileCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final SecureScoreControlProfileCollectionPage page = new SecureScoreControlProfileCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionRequestBuilder.java new file mode 100644 index 00000000000..2214a9c6a4a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Secure Score Control Profile Collection Request Builder. + */ +public class SecureScoreControlProfileCollectionRequestBuilder extends BaseRequestBuilder implements ISecureScoreControlProfileCollectionRequestBuilder { + + /** + * The request builder for this collection of Security + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SecureScoreControlProfileCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public ISecureScoreControlProfileCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public ISecureScoreControlProfileCollectionRequest buildRequest(final java.util.List requestOptions) { + return new SecureScoreControlProfileCollectionRequest(getRequestUrl(), getClient(), requestOptions); + } + + public ISecureScoreControlProfileRequestBuilder byId(final String id) { + return new SecureScoreControlProfileRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionResponse.java new file mode 100644 index 00000000000..877289037ad --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileCollectionResponse.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.SecureScoreControlProfile; + +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 Secure Score Control Profile Collection Response. + */ +public class SecureScoreControlProfileCollectionResponse implements IJsonBackedObject { + + /** + * The list of SecureScoreControlProfile 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/SecureScoreControlProfileRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileRequest.java new file mode 100644 index 00000000000..4707aade076 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ISecureScoreControlProfileRequest; +import com.microsoft.graph.requests.extensions.SecureScoreControlProfileRequest; +import com.microsoft.graph.models.extensions.SecureScoreControlProfile; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Secure Score Control Profile Request. + */ +public class SecureScoreControlProfileRequest extends BaseRequest implements ISecureScoreControlProfileRequest { + + /** + * The request for the SecureScoreControlProfile + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SecureScoreControlProfileRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SecureScoreControlProfile.class); + } + + /** + * Gets the SecureScoreControlProfile 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 SecureScoreControlProfile from the service + * + * @return the SecureScoreControlProfile from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public SecureScoreControlProfile 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 SecureScoreControlProfile with a source + * + * @param sourceSecureScoreControlProfile the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final SecureScoreControlProfile sourceSecureScoreControlProfile, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceSecureScoreControlProfile); + } + + /** + * Patches this SecureScoreControlProfile with a source + * + * @param sourceSecureScoreControlProfile the source object with updates + * @return the updated SecureScoreControlProfile + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public SecureScoreControlProfile patch(final SecureScoreControlProfile sourceSecureScoreControlProfile) throws ClientException { + return send(HttpMethod.PATCH, sourceSecureScoreControlProfile); + } + + /** + * Creates a SecureScoreControlProfile with a new object + * + * @param newSecureScoreControlProfile the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final SecureScoreControlProfile newSecureScoreControlProfile, final ICallback callback) { + send(HttpMethod.POST, callback, newSecureScoreControlProfile); + } + + /** + * Creates a SecureScoreControlProfile with a new object + * + * @param newSecureScoreControlProfile the new object to create + * @return the created SecureScoreControlProfile + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public SecureScoreControlProfile post(final SecureScoreControlProfile newSecureScoreControlProfile) throws ClientException { + return send(HttpMethod.POST, newSecureScoreControlProfile); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public ISecureScoreControlProfileRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (SecureScoreControlProfileRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public ISecureScoreControlProfileRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (SecureScoreControlProfileRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileRequestBuilder.java new file mode 100644 index 00000000000..eb55fad80cb --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreControlProfileRequestBuilder.java @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ISecureScoreControlProfileRequest; +import com.microsoft.graph.requests.extensions.SecureScoreControlProfileRequest; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Secure Score Control Profile Request Builder. + */ +public class SecureScoreControlProfileRequestBuilder extends BaseRequestBuilder implements ISecureScoreControlProfileRequestBuilder { + + /** + * The request builder for the SecureScoreControlProfile + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SecureScoreControlProfileRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the ISecureScoreControlProfileRequest instance + */ + public ISecureScoreControlProfileRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the ISecureScoreControlProfileRequest instance + */ + public ISecureScoreControlProfileRequest buildRequest(final java.util.List requestOptions) { + return new SecureScoreControlProfileRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreRequest.java new file mode 100644 index 00000000000..65cd3c7fa23 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ISecureScoreRequest; +import com.microsoft.graph.requests.extensions.SecureScoreRequest; +import com.microsoft.graph.models.extensions.SecureScore; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Secure Score Request. + */ +public class SecureScoreRequest extends BaseRequest implements ISecureScoreRequest { + + /** + * The request for the SecureScore + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SecureScoreRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SecureScore.class); + } + + /** + * Gets the SecureScore 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 SecureScore from the service + * + * @return the SecureScore from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public SecureScore 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 SecureScore with a source + * + * @param sourceSecureScore the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final SecureScore sourceSecureScore, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceSecureScore); + } + + /** + * Patches this SecureScore with a source + * + * @param sourceSecureScore the source object with updates + * @return the updated SecureScore + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public SecureScore patch(final SecureScore sourceSecureScore) throws ClientException { + return send(HttpMethod.PATCH, sourceSecureScore); + } + + /** + * Creates a SecureScore with a new object + * + * @param newSecureScore the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final SecureScore newSecureScore, final ICallback callback) { + send(HttpMethod.POST, callback, newSecureScore); + } + + /** + * Creates a SecureScore with a new object + * + * @param newSecureScore the new object to create + * @return the created SecureScore + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public SecureScore post(final SecureScore newSecureScore) throws ClientException { + return send(HttpMethod.POST, newSecureScore); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public ISecureScoreRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (SecureScoreRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public ISecureScoreRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (SecureScoreRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreRequestBuilder.java new file mode 100644 index 00000000000..31ff75ee60f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SecureScoreRequestBuilder.java @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ISecureScoreRequest; +import com.microsoft.graph.requests.extensions.SecureScoreRequest; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Secure Score Request Builder. + */ +public class SecureScoreRequestBuilder extends BaseRequestBuilder implements ISecureScoreRequestBuilder { + + /** + * The request builder for the SecureScore + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SecureScoreRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the ISecureScoreRequest instance + */ + public ISecureScoreRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the ISecureScoreRequest instance + */ + public ISecureScoreRequest buildRequest(final java.util.List requestOptions) { + return new SecureScoreRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SecurityRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/SecurityRequestBuilder.java index 352be3989f6..f64efa26c4a 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/SecurityRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/SecurityRequestBuilder.java @@ -9,6 +9,14 @@ import com.microsoft.graph.requests.extensions.AlertCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IAlertRequestBuilder; import com.microsoft.graph.requests.extensions.AlertRequestBuilder; +import com.microsoft.graph.requests.extensions.ISecureScoreControlProfileCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.SecureScoreControlProfileCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.ISecureScoreControlProfileRequestBuilder; +import com.microsoft.graph.requests.extensions.SecureScoreControlProfileRequestBuilder; +import com.microsoft.graph.requests.extensions.ISecureScoreCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.SecureScoreCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.ISecureScoreRequestBuilder; +import com.microsoft.graph.requests.extensions.SecureScoreRequestBuilder; import com.microsoft.graph.core.IBaseClient; import com.microsoft.graph.http.BaseRequestBuilder; @@ -60,5 +68,19 @@ public IAlertCollectionRequestBuilder alerts() { public IAlertRequestBuilder alerts(final String id) { return new AlertRequestBuilder(getRequestUrlWithAdditionalSegment("alerts") + "/" + id, getClient(), null); } + public ISecureScoreControlProfileCollectionRequestBuilder secureScoreControlProfiles() { + return new SecureScoreControlProfileCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("secureScoreControlProfiles"), getClient(), null); + } + + public ISecureScoreControlProfileRequestBuilder secureScoreControlProfiles(final String id) { + return new SecureScoreControlProfileRequestBuilder(getRequestUrlWithAdditionalSegment("secureScoreControlProfiles") + "/" + id, getClient(), null); + } + public ISecureScoreCollectionRequestBuilder secureScores() { + return new SecureScoreCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("secureScores"), getClient(), null); + } + + public ISecureScoreRequestBuilder secureScores(final String id) { + return new SecureScoreRequestBuilder(getRequestUrlWithAdditionalSegment("secureScores") + "/" + id, getClient(), null); + } } 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 09d88cf5d07..9336b43d0aa 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/UserRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/UserRequestBuilder.java @@ -133,14 +133,14 @@ import com.microsoft.graph.models.extensions.Message; import com.microsoft.graph.requests.extensions.IUserSendMailRequestBuilder; import com.microsoft.graph.requests.extensions.UserSendMailRequestBuilder; +import com.microsoft.graph.models.generated.MailTipsType; +import com.microsoft.graph.requests.extensions.IUserGetMailTipsCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.UserGetMailTipsCollectionRequestBuilder; import com.microsoft.graph.models.extensions.AttendeeBase; import com.microsoft.graph.models.extensions.LocationConstraint; import com.microsoft.graph.models.extensions.TimeConstraint; import com.microsoft.graph.requests.extensions.IUserFindMeetingTimesRequestBuilder; import com.microsoft.graph.requests.extensions.UserFindMeetingTimesRequestBuilder; -import com.microsoft.graph.models.generated.MailTipsType; -import com.microsoft.graph.requests.extensions.IUserGetMailTipsCollectionRequestBuilder; -import com.microsoft.graph.requests.extensions.UserGetMailTipsCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IUserRemoveAllDevicesFromManagementRequestBuilder; import com.microsoft.graph.requests.extensions.UserRemoveAllDevicesFromManagementRequestBuilder; import com.microsoft.graph.requests.extensions.IUserWipeManagedAppRegistrationsByDeviceTagRequestBuilder; @@ -475,14 +475,14 @@ public IUserSendMailRequestBuilder sendMail(final Message message, final Boolean return new UserSendMailRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.sendMail"), getClient(), null, message, saveToSentItems); } - public IUserFindMeetingTimesRequestBuilder findMeetingTimes(final java.util.List attendees, final LocationConstraint locationConstraint, final TimeConstraint timeConstraint, final javax.xml.datatype.Duration meetingDuration, final Integer maxCandidates, final Boolean isOrganizerOptional, final Boolean returnSuggestionReasons, final Double minimumAttendeePercentage) { - return new UserFindMeetingTimesRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.findMeetingTimes"), getClient(), null, attendees, locationConstraint, timeConstraint, meetingDuration, maxCandidates, isOrganizerOptional, returnSuggestionReasons, minimumAttendeePercentage); - } - public IUserGetMailTipsCollectionRequestBuilder getMailTips(final java.util.List emailAddresses, final EnumSet mailTipsOptions) { return new UserGetMailTipsCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getMailTips"), getClient(), null, emailAddresses, mailTipsOptions); } + public IUserFindMeetingTimesRequestBuilder findMeetingTimes(final java.util.List attendees, final LocationConstraint locationConstraint, final TimeConstraint timeConstraint, final javax.xml.datatype.Duration meetingDuration, final Integer maxCandidates, final Boolean isOrganizerOptional, final Boolean returnSuggestionReasons, final Double minimumAttendeePercentage) { + return new UserFindMeetingTimesRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.findMeetingTimes"), getClient(), null, attendees, locationConstraint, timeConstraint, meetingDuration, maxCandidates, isOrganizerOptional, returnSuggestionReasons, minimumAttendeePercentage); + } + public IUserRemoveAllDevicesFromManagementRequestBuilder removeAllDevicesFromManagement() { return new UserRemoveAllDevicesFromManagementRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.removeAllDevicesFromManagement"), getClient(), null); } From 1e4e077ef19152bbedf81be529d9ef16b49baa3c Mon Sep 17 00:00:00 2001 From: Client Tooling Big Giant Robot Date: Tue, 2 Apr 2019 06:09:11 -0700 Subject: [PATCH 06/12] Update generated files with build 1145804 --- .../models/extensions/AttendeeAvailability.java | 2 +- .../graph/models/extensions/Channel.java | 16 ++++++++++++++++ .../graph/models/extensions/FreeBusyError.java | 4 ++-- .../models/extensions/MeetingTimeSuggestion.java | 2 +- .../models/extensions/ScheduleInformation.java | 10 +++++----- .../graph/models/extensions/ScheduleItem.java | 12 ++++++------ .../graph/models/extensions/TimeSlot.java | 4 ++-- 7 files changed, 33 insertions(+), 17 deletions(-) diff --git a/src/main/java/com/microsoft/graph/models/extensions/AttendeeAvailability.java b/src/main/java/com/microsoft/graph/models/extensions/AttendeeAvailability.java index 0813ac8552d..db300bf6af5 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/AttendeeAvailability.java +++ b/src/main/java/com/microsoft/graph/models/extensions/AttendeeAvailability.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Attendee. - * The type of attendee - whether it's a person or a resource, and whether required or optional if it's a person. + * The email address and type of attendee - whether it's a person or a resource, and whether required or optional if it's a person. */ @SerializedName("attendee") @Expose 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 35824d76ff9..fc1e2380d1a 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Channel.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Channel.java @@ -46,6 +46,22 @@ public class Channel extends Entity implements IJsonBackedObject { @Expose public String description; + /** + * The Email. + * + */ + @SerializedName("email") + @Expose + public String email; + + /** + * The Web Url. + * + */ + @SerializedName("webUrl") + @Expose + public String webUrl; + /** * The Tabs. * A collection of all the tabs in the channel. A navigation property. diff --git a/src/main/java/com/microsoft/graph/models/extensions/FreeBusyError.java b/src/main/java/com/microsoft/graph/models/extensions/FreeBusyError.java index 7e2bcba1bbd..92f290915f5 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/FreeBusyError.java +++ b/src/main/java/com/microsoft/graph/models/extensions/FreeBusyError.java @@ -38,7 +38,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Message. - * + * Describes the error. */ @SerializedName("message") @Expose @@ -46,7 +46,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Response Code. - * + * The response code from querying for the availability of the user, distribution list, or resource. */ @SerializedName("responseCode") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/MeetingTimeSuggestion.java b/src/main/java/com/microsoft/graph/models/extensions/MeetingTimeSuggestion.java index 43cc039b10f..722572d84ca 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/MeetingTimeSuggestion.java +++ b/src/main/java/com/microsoft/graph/models/extensions/MeetingTimeSuggestion.java @@ -50,7 +50,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Order. - * + * Order of meeting time suggestions sorted by their computed confidence value from high to low, then by chronology if there are suggestions with the same confidence. */ @SerializedName("order") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/ScheduleInformation.java b/src/main/java/com/microsoft/graph/models/extensions/ScheduleInformation.java index 8ebdf6590c7..c304a4d68cc 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/ScheduleInformation.java +++ b/src/main/java/com/microsoft/graph/models/extensions/ScheduleInformation.java @@ -41,7 +41,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Schedule Id. - * + * An SMTP address of the user, distribution list, or resource, identifying an instance of scheduleInformation. */ @SerializedName("scheduleId") @Expose @@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Schedule Items. - * + * Contains the items that describe the availability of the user or resource. */ @SerializedName("scheduleItems") @Expose @@ -57,7 +57,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Availability View. - * + * Represents a merged view of availability of all the items in scheduleItems. The view consists of time slots. Availability during each time slot is indicated with: 0= free, 1= tentative, 2= busy, 3= out of office, 4= working elsewhere. */ @SerializedName("availabilityView") @Expose @@ -65,7 +65,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Error. - * + * Error information from attempting to get the availability of the user, distribution list, or resource. */ @SerializedName("error") @Expose @@ -73,7 +73,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Working Hours. - * + * The days of the week and hours in a specific time zone that the user works. These are set as part of the user's mailboxSettings. */ @SerializedName("workingHours") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/ScheduleItem.java b/src/main/java/com/microsoft/graph/models/extensions/ScheduleItem.java index bf7ef395de3..003d7c62e2e 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/ScheduleItem.java +++ b/src/main/java/com/microsoft/graph/models/extensions/ScheduleItem.java @@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Start. - * + * The date, time, and time zone that the corresponding event starts. */ @SerializedName("start") @Expose @@ -48,7 +48,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The End. - * + * The date, time, and time zone that the corresponding event ends. */ @SerializedName("end") @Expose @@ -56,7 +56,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Is Private. - * + * The sensitivity of the corresponding event. True if the event is marked private, false otherwise. Optional. */ @SerializedName("isPrivate") @Expose @@ -64,7 +64,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Status. - * + * The availability status of the user or resource during the corresponding event. The possible values are: free, tentative, busy, oof, workingElsewhere, unknown. */ @SerializedName("status") @Expose @@ -72,7 +72,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Subject. - * + * The corresponding event's subject line. Optional. */ @SerializedName("subject") @Expose @@ -80,7 +80,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Location. - * + * The location where the corresponding event is held or attended from. Optional. */ @SerializedName("location") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/TimeSlot.java b/src/main/java/com/microsoft/graph/models/extensions/TimeSlot.java index b2b1ad9c3d9..f6cca765f72 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/TimeSlot.java +++ b/src/main/java/com/microsoft/graph/models/extensions/TimeSlot.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Start. - * The time the period ends. + * The date, time, and time zone that a period ends. */ @SerializedName("start") @Expose @@ -47,7 +47,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The End. - * The time a period begins. + * The date, time, and time zone that a period begins. */ @SerializedName("end") @Expose From 5b63f00449d04c107578e23d815694aff13141b6 Mon Sep 17 00:00:00 2001 From: Nakul Sabharwal Date: Fri, 26 Apr 2019 14:50:03 +0530 Subject: [PATCH 07/12] Updated version to 1.3.0 --- gradle.properties | 2 +- src/main/java/com/microsoft/graph/core/Constants.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index fb0f7011470..b6efd0afe35 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ mavenBintraySnapshotUrl = http://oss.jfrog.org/artifactory/oss-snapshot-local mavenGroupId = com.microsoft.graph mavenArtifactId = microsoft-graph mavenMajorVersion = 1 -mavenMinorVersion = 2 +mavenMinorVersion = 3 mavenPatchVersion = 0 mavenArtifactSuffix = nightliesUrl = http://dl.bintray.com/MicrosoftGraph/Maven diff --git a/src/main/java/com/microsoft/graph/core/Constants.java b/src/main/java/com/microsoft/graph/core/Constants.java index 5671429c2ec..ade814e2dc1 100644 --- a/src/main/java/com/microsoft/graph/core/Constants.java +++ b/src/main/java/com/microsoft/graph/core/Constants.java @@ -12,5 +12,5 @@ private Constants() { public static final String APPID = "app-id"; public static final String USERNAME = "user@email.com"; public static final String PASSWORD = "password"; - public static final String VERSION_NAME = "1.2.0"; + public static final String VERSION_NAME = "1.3.0"; } From e660cb520dceb909a8b97d5ef42209a9db111f91 Mon Sep 17 00:00:00 2001 From: NakulSabharwal Date: Fri, 26 Apr 2019 20:04:47 +0530 Subject: [PATCH 08/12] Updated readme version 1.3.0 --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 94a92db66d2..81d795e924b 100644 --- a/README.md +++ b/README.md @@ -18,7 +18,7 @@ repository { dependency { // Include the sdk as a dependency - compile('com.microsoft.graph:microsoft-graph:1.2.+') + compile('com.microsoft.graph:microsoft-graph:1.3.+') } ``` @@ -28,7 +28,7 @@ Add the dependency in `dependencies` in pom.xml com.microsoft.graph microsoft-graph - 1.2.0 + 1.3.0 ``` From f51c55ba12be84c92d996d55279498e25e15214c Mon Sep 17 00:00:00 2001 From: Client Tooling Big Giant Robot Date: Tue, 30 Apr 2019 06:09:30 -0700 Subject: [PATCH 09/12] Update generated files with build 1237799 --- .../graph/models/extensions/AppIdentity.java | 111 ++++++++ .../AppliedConditionalAccessPolicy.java | 120 +++++++++ .../extensions/AuditActivityInitiator.java | 97 +++++++ .../graph/models/extensions/AuditLogRoot.java | 145 ++++++++++ .../graph/models/extensions/Channel.java | 4 +- .../graph/models/extensions/DeviceDetail.java | 135 ++++++++++ .../models/extensions/DirectoryAudit.java | 162 +++++++++++ .../extensions/IBaseGraphServiceClient.java | 7 + .../graph/models/extensions/KeyValue.java | 95 +++++++ .../models/extensions/ModifiedProperty.java | 103 +++++++ .../models/extensions/RestrictedSignIn.java | 78 ++++++ .../graph/models/extensions/SignIn.java | 255 ++++++++++++++++++ .../models/extensions/SignInLocation.java | 112 ++++++++ .../graph/models/extensions/SignInStatus.java | 103 +++++++ .../models/extensions/TargetResource.java | 129 +++++++++ .../graph/models/extensions/UserIdentity.java | 111 ++++++++ .../AppliedConditionalAccessPolicyResult.java | 41 +++ .../generated/ConditionalAccessStatus.java | 33 +++ .../graph/models/generated/GroupType.java | 29 ++ .../models/generated/OperationResult.java | 33 +++ .../graph/models/generated/RiskDetail.java | 65 +++++ .../graph/models/generated/RiskEventType.java | 77 ++++++ .../graph/models/generated/RiskLevel.java | 41 +++ .../graph/models/generated/RiskState.java | 45 ++++ .../extensions/AuditLogRootRequest.java | 138 ++++++++++ .../AuditLogRootRequestBuilder.java | 86 ++++++ .../extensions/BaseGraphServiceClient.java | 9 + .../DirectoryAuditCollectionPage.java | 26 ++ .../DirectoryAuditCollectionRequest.java | 114 ++++++++ ...irectoryAuditCollectionRequestBuilder.java | 50 ++++ .../DirectoryAuditCollectionResponse.java | 90 +++++++ .../extensions/DirectoryAuditRequest.java | 138 ++++++++++ .../DirectoryAuditRequestBuilder.java | 53 ++++ .../extensions/IAuditLogRootRequest.java | 99 +++++++ .../IAuditLogRootRequestBuilder.java | 52 ++++ .../IDirectoryAuditCollectionPage.java | 27 ++ .../IDirectoryAuditCollectionRequest.java | 58 ++++ ...irectoryAuditCollectionRequestBuilder.java | 32 +++ .../extensions/IDirectoryAuditRequest.java | 99 +++++++ .../IDirectoryAuditRequestBuilder.java | 34 +++ .../IRestrictedSignInCollectionPage.java | 27 ++ .../IRestrictedSignInCollectionRequest.java | 58 ++++ ...trictedSignInCollectionRequestBuilder.java | 32 +++ .../extensions/IRestrictedSignInRequest.java | 99 +++++++ .../IRestrictedSignInRequestBuilder.java | 34 +++ .../extensions/ISignInCollectionPage.java | 27 ++ .../extensions/ISignInCollectionRequest.java | 58 ++++ .../ISignInCollectionRequestBuilder.java | 32 +++ .../requests/extensions/ISignInRequest.java | 99 +++++++ .../extensions/ISignInRequestBuilder.java | 34 +++ .../RestrictedSignInCollectionPage.java | 26 ++ .../RestrictedSignInCollectionRequest.java | 114 ++++++++ ...trictedSignInCollectionRequestBuilder.java | 50 ++++ .../RestrictedSignInCollectionResponse.java | 90 +++++++ .../extensions/RestrictedSignInRequest.java | 138 ++++++++++ .../RestrictedSignInRequestBuilder.java | 53 ++++ .../extensions/SignInCollectionPage.java | 26 ++ .../extensions/SignInCollectionRequest.java | 114 ++++++++ .../SignInCollectionRequestBuilder.java | 50 ++++ .../extensions/SignInCollectionResponse.java | 90 +++++++ .../requests/extensions/SignInRequest.java | 153 +++++++++++ .../extensions/SignInRequestBuilder.java | 53 ++++ 62 files changed, 4691 insertions(+), 2 deletions(-) create mode 100644 src/main/java/com/microsoft/graph/models/extensions/AppIdentity.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/AppliedConditionalAccessPolicy.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/AuditActivityInitiator.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/AuditLogRoot.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/DeviceDetail.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/DirectoryAudit.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/KeyValue.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/ModifiedProperty.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/RestrictedSignIn.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/SignIn.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/SignInLocation.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/SignInStatus.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/TargetResource.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/UserIdentity.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/AppliedConditionalAccessPolicyResult.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/ConditionalAccessStatus.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/GroupType.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/OperationResult.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/RiskDetail.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/RiskEventType.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/RiskLevel.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/RiskState.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISignInRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISignInRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SignInRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SignInRequestBuilder.java diff --git a/src/main/java/com/microsoft/graph/models/extensions/AppIdentity.java b/src/main/java/com/microsoft/graph/models/extensions/AppIdentity.java new file mode 100644 index 00000000000..230ddad507f --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/AppIdentity.java @@ -0,0 +1,111 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the App Identity. + */ +public class AppIdentity implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The App Id. + * + */ + @SerializedName("appId") + @Expose + public String appId; + + /** + * The Display Name. + * + */ + @SerializedName("displayName") + @Expose + public String displayName; + + /** + * The Service Principal Id. + * + */ + @SerializedName("servicePrincipalId") + @Expose + public String servicePrincipalId; + + /** + * The Service Principal Name. + * + */ + @SerializedName("servicePrincipalName") + @Expose + public String servicePrincipalName; + + + /** + * 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/AppliedConditionalAccessPolicy.java b/src/main/java/com/microsoft/graph/models/extensions/AppliedConditionalAccessPolicy.java new file mode 100644 index 00000000000..b19bfea98c6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/AppliedConditionalAccessPolicy.java @@ -0,0 +1,120 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.generated.AppliedConditionalAccessPolicyResult; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Applied Conditional Access Policy. + */ +public class AppliedConditionalAccessPolicy implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Id. + * + */ + @SerializedName("id") + @Expose + public String id; + + /** + * The Display Name. + * + */ + @SerializedName("displayName") + @Expose + public String displayName; + + /** + * The Enforced Grant Controls. + * + */ + @SerializedName("enforcedGrantControls") + @Expose + public java.util.List enforcedGrantControls; + + /** + * The Enforced Session Controls. + * + */ + @SerializedName("enforcedSessionControls") + @Expose + public java.util.List enforcedSessionControls; + + /** + * The Result. + * + */ + @SerializedName("result") + @Expose + public AppliedConditionalAccessPolicyResult result; + + + /** + * 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/AuditActivityInitiator.java b/src/main/java/com/microsoft/graph/models/extensions/AuditActivityInitiator.java new file mode 100644 index 00000000000..075c2bcf88d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/AuditActivityInitiator.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.models.extensions; +import com.microsoft.graph.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.UserIdentity; +import com.microsoft.graph.models.extensions.AppIdentity; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Audit Activity Initiator. + */ +public class AuditActivityInitiator implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The User. + * + */ + @SerializedName("user") + @Expose + public UserIdentity user; + + /** + * The App. + * + */ + @SerializedName("app") + @Expose + public AppIdentity app; + + + /** + * 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/AuditLogRoot.java b/src/main/java/com/microsoft/graph/models/extensions/AuditLogRoot.java new file mode 100644 index 00000000000..6b98a22206b --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/AuditLogRoot.java @@ -0,0 +1,145 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.SignIn; +import com.microsoft.graph.models.extensions.DirectoryAudit; +import com.microsoft.graph.models.extensions.RestrictedSignIn; +import com.microsoft.graph.models.extensions.Entity; +import com.microsoft.graph.requests.extensions.SignInCollectionResponse; +import com.microsoft.graph.requests.extensions.SignInCollectionPage; +import com.microsoft.graph.requests.extensions.DirectoryAuditCollectionResponse; +import com.microsoft.graph.requests.extensions.DirectoryAuditCollectionPage; +import com.microsoft.graph.requests.extensions.RestrictedSignInCollectionResponse; +import com.microsoft.graph.requests.extensions.RestrictedSignInCollectionPage; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Audit Log Root. + */ +public class AuditLogRoot extends Entity implements IJsonBackedObject { + + + /** + * The Sign Ins. + * + */ + public SignInCollectionPage signIns; + + /** + * The Directory Audits. + * + */ + public DirectoryAuditCollectionPage directoryAudits; + + /** + * The Restricted Sign Ins. + * + */ + public RestrictedSignInCollectionPage restrictedSignIns; + + + /** + * 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("signIns")) { + final SignInCollectionResponse response = new SignInCollectionResponse(); + if (json.has("signIns@odata.nextLink")) { + response.nextLink = json.get("signIns@odata.nextLink").getAsString(); + } + + final JsonObject[] sourceArray = serializer.deserializeObject(json.get("signIns").toString(), JsonObject[].class); + final SignIn[] array = new SignIn[sourceArray.length]; + for (int i = 0; i < sourceArray.length; i++) { + array[i] = serializer.deserializeObject(sourceArray[i].toString(), SignIn.class); + array[i].setRawObject(serializer, sourceArray[i]); + } + response.value = Arrays.asList(array); + signIns = new SignInCollectionPage(response, null); + } + + if (json.has("directoryAudits")) { + final DirectoryAuditCollectionResponse response = new DirectoryAuditCollectionResponse(); + if (json.has("directoryAudits@odata.nextLink")) { + response.nextLink = json.get("directoryAudits@odata.nextLink").getAsString(); + } + + final JsonObject[] sourceArray = serializer.deserializeObject(json.get("directoryAudits").toString(), JsonObject[].class); + final DirectoryAudit[] array = new DirectoryAudit[sourceArray.length]; + for (int i = 0; i < sourceArray.length; i++) { + array[i] = serializer.deserializeObject(sourceArray[i].toString(), DirectoryAudit.class); + array[i].setRawObject(serializer, sourceArray[i]); + } + response.value = Arrays.asList(array); + directoryAudits = new DirectoryAuditCollectionPage(response, null); + } + + if (json.has("restrictedSignIns")) { + final RestrictedSignInCollectionResponse response = new RestrictedSignInCollectionResponse(); + if (json.has("restrictedSignIns@odata.nextLink")) { + response.nextLink = json.get("restrictedSignIns@odata.nextLink").getAsString(); + } + + final JsonObject[] sourceArray = serializer.deserializeObject(json.get("restrictedSignIns").toString(), JsonObject[].class); + final RestrictedSignIn[] array = new RestrictedSignIn[sourceArray.length]; + for (int i = 0; i < sourceArray.length; i++) { + array[i] = serializer.deserializeObject(sourceArray[i].toString(), RestrictedSignIn.class); + array[i].setRawObject(serializer, sourceArray[i]); + } + response.value = Arrays.asList(array); + restrictedSignIns = new RestrictedSignInCollectionPage(response, null); + } + } +} 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 fc1e2380d1a..32c5bf3e6ea 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Channel.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Channel.java @@ -48,7 +48,7 @@ public class Channel extends Entity implements IJsonBackedObject { /** * The Email. - * + * The email address for sending messages to the channel. Read-only. */ @SerializedName("email") @Expose @@ -56,7 +56,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. */ @SerializedName("webUrl") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/DeviceDetail.java b/src/main/java/com/microsoft/graph/models/extensions/DeviceDetail.java new file mode 100644 index 00000000000..abe272d0ebe --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/DeviceDetail.java @@ -0,0 +1,135 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Detail. + */ +public class DeviceDetail implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Device Id. + * + */ + @SerializedName("deviceId") + @Expose + public String deviceId; + + /** + * The Display Name. + * + */ + @SerializedName("displayName") + @Expose + public String displayName; + + /** + * The Operating System. + * + */ + @SerializedName("operatingSystem") + @Expose + public String operatingSystem; + + /** + * The Browser. + * + */ + @SerializedName("browser") + @Expose + public String browser; + + /** + * The Is Compliant. + * + */ + @SerializedName("isCompliant") + @Expose + public Boolean isCompliant; + + /** + * The Is Managed. + * + */ + @SerializedName("isManaged") + @Expose + public Boolean isManaged; + + /** + * The Trust Type. + * + */ + @SerializedName("trustType") + @Expose + public String trustType; + + + /** + * 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/DirectoryAudit.java b/src/main/java/com/microsoft/graph/models/extensions/DirectoryAudit.java new file mode 100644 index 00000000000..c09cb855bd6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/DirectoryAudit.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.models.extensions; +import com.microsoft.graph.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.generated.OperationResult; +import com.microsoft.graph.models.extensions.AuditActivityInitiator; +import com.microsoft.graph.models.extensions.TargetResource; +import com.microsoft.graph.models.extensions.KeyValue; +import com.microsoft.graph.models.extensions.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Audit. + */ +public class DirectoryAudit extends Entity implements IJsonBackedObject { + + + /** + * The Category. + * + */ + @SerializedName("category") + @Expose + public String category; + + /** + * The Correlation Id. + * + */ + @SerializedName("correlationId") + @Expose + public String correlationId; + + /** + * The Result. + * + */ + @SerializedName("result") + @Expose + public OperationResult result; + + /** + * The Result Reason. + * + */ + @SerializedName("resultReason") + @Expose + public String resultReason; + + /** + * The Activity Display Name. + * + */ + @SerializedName("activityDisplayName") + @Expose + public String activityDisplayName; + + /** + * The Activity Date Time. + * + */ + @SerializedName("activityDateTime") + @Expose + public java.util.Calendar activityDateTime; + + /** + * The Logged By Service. + * + */ + @SerializedName("loggedByService") + @Expose + public String loggedByService; + + /** + * The Operation Type. + * + */ + @SerializedName("operationType") + @Expose + public String operationType; + + /** + * The Initiated By. + * + */ + @SerializedName("initiatedBy") + @Expose + public AuditActivityInitiator initiatedBy; + + /** + * The Target Resources. + * + */ + @SerializedName("targetResources") + @Expose + public java.util.List targetResources; + + /** + * The Additional Details. + * + */ + @SerializedName("additionalDetails") + @Expose + public java.util.List additionalDetails; + + + /** + * 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/IBaseGraphServiceClient.java b/src/main/java/com/microsoft/graph/models/extensions/IBaseGraphServiceClient.java index 4337653c662..dd7a4a3c15d 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/IBaseGraphServiceClient.java +++ b/src/main/java/com/microsoft/graph/models/extensions/IBaseGraphServiceClient.java @@ -453,4 +453,11 @@ public interface IBaseGraphServiceClient extends IBaseClient { */ IAppCatalogsRequestBuilder appCatalogs(); + /** + * Gets the GraphServiceRequestBuilder + * + * @return the AuditLogRoot + */ + IAuditLogRootRequestBuilder auditLogs(); + } diff --git a/src/main/java/com/microsoft/graph/models/extensions/KeyValue.java b/src/main/java/com/microsoft/graph/models/extensions/KeyValue.java new file mode 100644 index 00000000000..04023b5a147 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/KeyValue.java @@ -0,0 +1,95 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Key Value. + */ +public class KeyValue implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Key. + * + */ + @SerializedName("key") + @Expose + public String key; + + /** + * The Value. + * + */ + @SerializedName("value") + @Expose + public String value; + + + /** + * 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/ModifiedProperty.java b/src/main/java/com/microsoft/graph/models/extensions/ModifiedProperty.java new file mode 100644 index 00000000000..e88e3eb83e3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/ModifiedProperty.java @@ -0,0 +1,103 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Modified Property. + */ +public class ModifiedProperty implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Display Name. + * + */ + @SerializedName("displayName") + @Expose + public String displayName; + + /** + * The Old Value. + * + */ + @SerializedName("oldValue") + @Expose + public String oldValue; + + /** + * The New Value. + * + */ + @SerializedName("newValue") + @Expose + public String newValue; + + + /** + * 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/RestrictedSignIn.java b/src/main/java/com/microsoft/graph/models/extensions/RestrictedSignIn.java new file mode 100644 index 00000000000..91818baca64 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/RestrictedSignIn.java @@ -0,0 +1,78 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.SignIn; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Restricted Sign In. + */ +public class RestrictedSignIn extends SignIn implements IJsonBackedObject { + + + /** + * The Target Tenant Id. + * + */ + @SerializedName("targetTenantId") + @Expose + public java.util.UUID targetTenantId; + + + /** + * 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/SignIn.java b/src/main/java/com/microsoft/graph/models/extensions/SignIn.java new file mode 100644 index 00000000000..ccfba0737fe --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/SignIn.java @@ -0,0 +1,255 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.SignInStatus; +import com.microsoft.graph.models.extensions.DeviceDetail; +import com.microsoft.graph.models.extensions.SignInLocation; +import com.microsoft.graph.models.generated.ConditionalAccessStatus; +import com.microsoft.graph.models.extensions.AppliedConditionalAccessPolicy; +import com.microsoft.graph.models.generated.RiskDetail; +import com.microsoft.graph.models.generated.RiskLevel; +import com.microsoft.graph.models.generated.RiskState; +import com.microsoft.graph.models.generated.RiskEventType; +import com.microsoft.graph.models.extensions.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In. + */ +public class SignIn extends Entity implements IJsonBackedObject { + + + /** + * The Created Date Time. + * + */ + @SerializedName("createdDateTime") + @Expose + public java.util.Calendar createdDateTime; + + /** + * The User Display Name. + * + */ + @SerializedName("userDisplayName") + @Expose + public String userDisplayName; + + /** + * The User Principal Name. + * + */ + @SerializedName("userPrincipalName") + @Expose + public String userPrincipalName; + + /** + * The User Id. + * + */ + @SerializedName("userId") + @Expose + public String userId; + + /** + * The App Id. + * + */ + @SerializedName("appId") + @Expose + public String appId; + + /** + * The App Display Name. + * + */ + @SerializedName("appDisplayName") + @Expose + public String appDisplayName; + + /** + * The Ip Address. + * + */ + @SerializedName("ipAddress") + @Expose + public String ipAddress; + + /** + * The Status. + * + */ + @SerializedName("status") + @Expose + public SignInStatus status; + + /** + * The Client App Used. + * + */ + @SerializedName("clientAppUsed") + @Expose + public String clientAppUsed; + + /** + * The Device Detail. + * + */ + @SerializedName("deviceDetail") + @Expose + public DeviceDetail deviceDetail; + + /** + * The Location. + * + */ + @SerializedName("location") + @Expose + public SignInLocation location; + + /** + * The Correlation Id. + * + */ + @SerializedName("correlationId") + @Expose + public String correlationId; + + /** + * The Conditional Access Status. + * + */ + @SerializedName("conditionalAccessStatus") + @Expose + public ConditionalAccessStatus conditionalAccessStatus; + + /** + * The Applied Conditional Access Policies. + * + */ + @SerializedName("appliedConditionalAccessPolicies") + @Expose + public java.util.List appliedConditionalAccessPolicies; + + /** + * The Is Interactive. + * + */ + @SerializedName("isInteractive") + @Expose + public Boolean isInteractive; + + /** + * The Risk Detail. + * + */ + @SerializedName("riskDetail") + @Expose + public RiskDetail riskDetail; + + /** + * The Risk Level Aggregated. + * + */ + @SerializedName("riskLevelAggregated") + @Expose + public RiskLevel riskLevelAggregated; + + /** + * The Risk Level During Sign In. + * + */ + @SerializedName("riskLevelDuringSignIn") + @Expose + public RiskLevel riskLevelDuringSignIn; + + /** + * The Risk State. + * + */ + @SerializedName("riskState") + @Expose + public RiskState riskState; + + /** + * The Risk Event Types. + * + */ + @SerializedName("riskEventTypes") + @Expose + public java.util.List riskEventTypes; + + /** + * The Resource Display Name. + * + */ + @SerializedName("resourceDisplayName") + @Expose + public String resourceDisplayName; + + /** + * The Resource Id. + * + */ + @SerializedName("resourceId") + @Expose + public String resourceId; + + + /** + * 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/SignInLocation.java b/src/main/java/com/microsoft/graph/models/extensions/SignInLocation.java new file mode 100644 index 00000000000..cf8a17a8678 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/SignInLocation.java @@ -0,0 +1,112 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.GeoCoordinates; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In Location. + */ +public class SignInLocation implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The City. + * + */ + @SerializedName("city") + @Expose + public String city; + + /** + * The State. + * + */ + @SerializedName("state") + @Expose + public String state; + + /** + * The Country Or Region. + * + */ + @SerializedName("countryOrRegion") + @Expose + public String countryOrRegion; + + /** + * The Geo Coordinates. + * + */ + @SerializedName("geoCoordinates") + @Expose + public GeoCoordinates geoCoordinates; + + + /** + * 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/SignInStatus.java b/src/main/java/com/microsoft/graph/models/extensions/SignInStatus.java new file mode 100644 index 00000000000..26372ee0168 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/SignInStatus.java @@ -0,0 +1,103 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In Status. + */ +public class SignInStatus implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Error Code. + * + */ + @SerializedName("errorCode") + @Expose + public Integer errorCode; + + /** + * The Failure Reason. + * + */ + @SerializedName("failureReason") + @Expose + public String failureReason; + + /** + * The Additional Details. + * + */ + @SerializedName("additionalDetails") + @Expose + public String additionalDetails; + + + /** + * 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/TargetResource.java b/src/main/java/com/microsoft/graph/models/extensions/TargetResource.java new file mode 100644 index 00000000000..e93a170723c --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/TargetResource.java @@ -0,0 +1,129 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.generated.GroupType; +import com.microsoft.graph.models.extensions.ModifiedProperty; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Target Resource. + */ +public class TargetResource implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Id. + * + */ + @SerializedName("id") + @Expose + public String id; + + /** + * The Display Name. + * + */ + @SerializedName("displayName") + @Expose + public String displayName; + + /** + * The Type. + * + */ + @SerializedName("type") + @Expose + public String type; + + /** + * The User Principal Name. + * + */ + @SerializedName("userPrincipalName") + @Expose + public String userPrincipalName; + + /** + * The Group Type. + * + */ + @SerializedName("groupType") + @Expose + public GroupType groupType; + + /** + * The Modified Properties. + * + */ + @SerializedName("modifiedProperties") + @Expose + public java.util.List modifiedProperties; + + + /** + * 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/UserIdentity.java b/src/main/java/com/microsoft/graph/models/extensions/UserIdentity.java new file mode 100644 index 00000000000..e10875f6e4f --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/UserIdentity.java @@ -0,0 +1,111 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Identity. + */ +public class UserIdentity implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Id. + * + */ + @SerializedName("id") + @Expose + public String id; + + /** + * The Display Name. + * + */ + @SerializedName("displayName") + @Expose + public String displayName; + + /** + * The Ip Address. + * + */ + @SerializedName("ipAddress") + @Expose + public String ipAddress; + + /** + * The User Principal Name. + * + */ + @SerializedName("userPrincipalName") + @Expose + public String userPrincipalName; + + + /** + * 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/generated/AppliedConditionalAccessPolicyResult.java b/src/main/java/com/microsoft/graph/models/generated/AppliedConditionalAccessPolicyResult.java new file mode 100644 index 00000000000..c37e92622c5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/AppliedConditionalAccessPolicyResult.java @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Applied Conditional Access Policy Result. +*/ +public enum AppliedConditionalAccessPolicyResult +{ + /** + * success + */ + SUCCESS, + /** + * failure + */ + FAILURE, + /** + * not Applied + */ + NOT_APPLIED, + /** + * not Enabled + */ + NOT_ENABLED, + /** + * unknown + */ + UNKNOWN, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For AppliedConditionalAccessPolicyResult values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/generated/ConditionalAccessStatus.java b/src/main/java/com/microsoft/graph/models/generated/ConditionalAccessStatus.java new file mode 100644 index 00000000000..3b61f1c3223 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/ConditionalAccessStatus.java @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Conditional Access Status. +*/ +public enum ConditionalAccessStatus +{ + /** + * success + */ + SUCCESS, + /** + * failure + */ + FAILURE, + /** + * not Applied + */ + NOT_APPLIED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For ConditionalAccessStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/generated/GroupType.java b/src/main/java/com/microsoft/graph/models/generated/GroupType.java new file mode 100644 index 00000000000..7c4bb391489 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/GroupType.java @@ -0,0 +1,29 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Group Type. +*/ +public enum GroupType +{ + /** + * unified Groups + */ + UNIFIED_GROUPS, + /** + * azure AD + */ + AZURE_AD, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For GroupType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/generated/OperationResult.java b/src/main/java/com/microsoft/graph/models/generated/OperationResult.java new file mode 100644 index 00000000000..0fecf8617da --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/OperationResult.java @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Operation Result. +*/ +public enum OperationResult +{ + /** + * success + */ + SUCCESS, + /** + * failure + */ + FAILURE, + /** + * timeout + */ + TIMEOUT, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For OperationResult values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/generated/RiskDetail.java b/src/main/java/com/microsoft/graph/models/generated/RiskDetail.java new file mode 100644 index 00000000000..538e2fde6c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/RiskDetail.java @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Risk Detail. +*/ +public enum RiskDetail +{ + /** + * none + */ + NONE, + /** + * admin Generated Temporary Password + */ + ADMIN_GENERATED_TEMPORARY_PASSWORD, + /** + * user Performed Secured Password Change + */ + USER_PERFORMED_SECURED_PASSWORD_CHANGE, + /** + * user Performed Secured Password Reset + */ + USER_PERFORMED_SECURED_PASSWORD_RESET, + /** + * admin Confirmed Signin Safe + */ + ADMIN_CONFIRMED_SIGNIN_SAFE, + /** + * ai Confirmed Signin Safe + */ + AI_CONFIRMED_SIGNIN_SAFE, + /** + * user Passed MFADriven By Risk Based Policy + */ + USER_PASSED_MFA_DRIVEN_BY_RISK_BASED_POLICY, + /** + * admin Dismissed All Risk For User + */ + ADMIN_DISMISSED_ALL_RISK_FOR_USER, + /** + * admin Confirmed Signin Compromised + */ + ADMIN_CONFIRMED_SIGNIN_COMPROMISED, + /** + * hidden + */ + HIDDEN, + /** + * admin Confirmed User Compromised + */ + ADMIN_CONFIRMED_USER_COMPROMISED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For RiskDetail values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/generated/RiskEventType.java b/src/main/java/com/microsoft/graph/models/generated/RiskEventType.java new file mode 100644 index 00000000000..2e4dce52749 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/RiskEventType.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.generated; + + +/** + * The Enum Risk Event Type. +*/ +public enum RiskEventType +{ + /** + * unlikely Travel + */ + UNLIKELY_TRAVEL, + /** + * anonymized IPAddress + */ + ANONYMIZED_IP_ADDRESS, + /** + * malicious IPAddress + */ + MALICIOUS_IP_ADDRESS, + /** + * unfamiliar Features + */ + UNFAMILIAR_FEATURES, + /** + * malware Infected IPAddress + */ + MALWARE_INFECTED_IP_ADDRESS, + /** + * suspicious IPAddress + */ + SUSPICIOUS_IP_ADDRESS, + /** + * leaked Credentials + */ + LEAKED_CREDENTIALS, + /** + * investigations Threat Intelligence + */ + INVESTIGATIONS_THREAT_INTELLIGENCE, + /** + * generic + */ + GENERIC, + /** + * admin Confirmed User Compromised + */ + ADMIN_CONFIRMED_USER_COMPROMISED, + /** + * mcas Impossible Travel + */ + MCAS_IMPOSSIBLE_TRAVEL, + /** + * mcas Suspicious Inbox Manipulation Rules + */ + MCAS_SUSPICIOUS_INBOX_MANIPULATION_RULES, + /** + * investigations Threat Intelligence Signin Linked + */ + INVESTIGATIONS_THREAT_INTELLIGENCE_SIGNIN_LINKED, + /** + * malicious IPAddress Valid Credentials Blocked IP + */ + MALICIOUS_IP_ADDRESS_VALID_CREDENTIALS_BLOCKED_IP, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For RiskEventType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/generated/RiskLevel.java b/src/main/java/com/microsoft/graph/models/generated/RiskLevel.java new file mode 100644 index 00000000000..3462c11b70e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/RiskLevel.java @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Risk Level. +*/ +public enum RiskLevel +{ + /** + * low + */ + LOW, + /** + * medium + */ + MEDIUM, + /** + * high + */ + HIGH, + /** + * hidden + */ + HIDDEN, + /** + * none + */ + NONE, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For RiskLevel values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/generated/RiskState.java b/src/main/java/com/microsoft/graph/models/generated/RiskState.java new file mode 100644 index 00000000000..e36076e5eb8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/RiskState.java @@ -0,0 +1,45 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Risk State. +*/ +public enum RiskState +{ + /** + * none + */ + NONE, + /** + * confirmed Safe + */ + CONFIRMED_SAFE, + /** + * remediated + */ + REMEDIATED, + /** + * dismissed + */ + DISMISSED, + /** + * at Risk + */ + AT_RISK, + /** + * confirmed Compromised + */ + CONFIRMED_COMPROMISED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For RiskState values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequest.java new file mode 100644 index 00000000000..ea67b04bfb6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IAuditLogRootRequest; +import com.microsoft.graph.requests.extensions.AuditLogRootRequest; +import com.microsoft.graph.models.extensions.AuditLogRoot; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Audit Log Root Request. + */ +public class AuditLogRootRequest extends BaseRequest implements IAuditLogRootRequest { + + /** + * The request for the AuditLogRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AuditLogRootRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AuditLogRoot.class); + } + + /** + * Gets the AuditLogRoot 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 AuditLogRoot from the service + * + * @return the AuditLogRoot from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public AuditLogRoot 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 AuditLogRoot with a source + * + * @param sourceAuditLogRoot the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final AuditLogRoot sourceAuditLogRoot, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceAuditLogRoot); + } + + /** + * Patches this AuditLogRoot with a source + * + * @param sourceAuditLogRoot the source object with updates + * @return the updated AuditLogRoot + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public AuditLogRoot patch(final AuditLogRoot sourceAuditLogRoot) throws ClientException { + return send(HttpMethod.PATCH, sourceAuditLogRoot); + } + + /** + * Creates a AuditLogRoot with a new object + * + * @param newAuditLogRoot the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final AuditLogRoot newAuditLogRoot, final ICallback callback) { + send(HttpMethod.POST, callback, newAuditLogRoot); + } + + /** + * Creates a AuditLogRoot with a new object + * + * @param newAuditLogRoot the new object to create + * @return the created AuditLogRoot + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public AuditLogRoot post(final AuditLogRoot newAuditLogRoot) throws ClientException { + return send(HttpMethod.POST, newAuditLogRoot); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IAuditLogRootRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (AuditLogRootRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IAuditLogRootRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (AuditLogRootRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequestBuilder.java new file mode 100644 index 00000000000..e3b24fa7768 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequestBuilder.java @@ -0,0 +1,86 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IAuditLogRootRequest; +import com.microsoft.graph.requests.extensions.AuditLogRootRequest; +import com.microsoft.graph.requests.extensions.ISignInCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.SignInCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.ISignInRequestBuilder; +import com.microsoft.graph.requests.extensions.SignInRequestBuilder; +import com.microsoft.graph.requests.extensions.IDirectoryAuditCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.DirectoryAuditCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IDirectoryAuditRequestBuilder; +import com.microsoft.graph.requests.extensions.DirectoryAuditRequestBuilder; +import com.microsoft.graph.requests.extensions.IRestrictedSignInCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.RestrictedSignInCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IRestrictedSignInRequestBuilder; +import com.microsoft.graph.requests.extensions.RestrictedSignInRequestBuilder; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Audit Log Root Request Builder. + */ +public class AuditLogRootRequestBuilder extends BaseRequestBuilder implements IAuditLogRootRequestBuilder { + + /** + * The request builder for the AuditLogRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AuditLogRootRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IAuditLogRootRequest instance + */ + public IAuditLogRootRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IAuditLogRootRequest instance + */ + public IAuditLogRootRequest buildRequest(final java.util.List requestOptions) { + return new AuditLogRootRequest(getRequestUrl(), getClient(), requestOptions); + } + + + public ISignInCollectionRequestBuilder signIns() { + return new SignInCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("signIns"), getClient(), null); + } + + public ISignInRequestBuilder signIns(final String id) { + return new SignInRequestBuilder(getRequestUrlWithAdditionalSegment("signIns") + "/" + id, getClient(), null); + } + public IDirectoryAuditCollectionRequestBuilder directoryAudits() { + return new DirectoryAuditCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("directoryAudits"), getClient(), null); + } + + public IDirectoryAuditRequestBuilder directoryAudits(final String id) { + return new DirectoryAuditRequestBuilder(getRequestUrlWithAdditionalSegment("directoryAudits") + "/" + id, getClient(), null); + } + public IRestrictedSignInCollectionRequestBuilder restrictedSignIns() { + return new RestrictedSignInCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("restrictedSignIns"), getClient(), null); + } + + public IRestrictedSignInRequestBuilder restrictedSignIns(final String id) { + return new RestrictedSignInRequestBuilder(getRequestUrlWithAdditionalSegment("restrictedSignIns") + "/" + id, getClient(), null); + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/BaseGraphServiceClient.java b/src/main/java/com/microsoft/graph/requests/extensions/BaseGraphServiceClient.java index 322b7650e21..9dd97883568 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/BaseGraphServiceClient.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/BaseGraphServiceClient.java @@ -591,4 +591,13 @@ public ISecurityRequestBuilder Security() { public IAppCatalogsRequestBuilder appCatalogs() { return new AppCatalogsRequestBuilder(getServiceRoot() + "/appCatalogs", (IGraphServiceClient)this, null); } + + /** + * Gets the GraphServiceRequestBuilder + * + * @return the AuditLogRoot + */ + public IAuditLogRootRequestBuilder auditLogs() { + return new AuditLogRootRequestBuilder(getServiceRoot() + "/auditLogs", (IGraphServiceClient)this, null); + } } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionPage.java new file mode 100644 index 00000000000..72625dc5145 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionPage.java @@ -0,0 +1,26 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.DirectoryAudit; +import com.microsoft.graph.requests.extensions.IDirectoryAuditCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Audit Collection Page. + */ +public class DirectoryAuditCollectionPage extends BaseCollectionPage implements IDirectoryAuditCollectionPage { + + /** + * A collection page for DirectoryAudit + * + * @param response the serialized DirectoryAuditCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public DirectoryAuditCollectionPage(final DirectoryAuditCollectionResponse response, final IDirectoryAuditCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequest.java new file mode 100644 index 00000000000..0ec2a1433b7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequest.java @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Audit Collection Request. + */ +public class DirectoryAuditCollectionRequest extends BaseCollectionRequest implements IDirectoryAuditCollectionRequest { + + /** + * The request builder for this collection of DirectoryAudit + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DirectoryAuditCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, DirectoryAuditCollectionResponse.class, IDirectoryAuditCollectionPage.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 IDirectoryAuditCollectionPage get() throws ClientException { + final DirectoryAuditCollectionResponse response = send(); + return buildFromResponse(response); + } + + public void post(final DirectoryAudit newDirectoryAudit, final ICallback callback) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + new DirectoryAuditRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newDirectoryAudit, callback); + } + + public DirectoryAudit post(final DirectoryAudit newDirectoryAudit) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new DirectoryAuditRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newDirectoryAudit); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IDirectoryAuditCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (DirectoryAuditCollectionRequest)this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IDirectoryAuditCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (DirectoryAuditCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public IDirectoryAuditCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value + "")); + return (DirectoryAuditCollectionRequest)this; + } + + public IDirectoryAuditCollectionPage buildFromResponse(final DirectoryAuditCollectionResponse response) { + final IDirectoryAuditCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new DirectoryAuditCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final DirectoryAuditCollectionPage page = new DirectoryAuditCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequestBuilder.java new file mode 100644 index 00000000000..df580feec50 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Audit Collection Request Builder. + */ +public class DirectoryAuditCollectionRequestBuilder extends BaseRequestBuilder implements IDirectoryAuditCollectionRequestBuilder { + + /** + * The request builder for this collection of AuditLogRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DirectoryAuditCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public IDirectoryAuditCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public IDirectoryAuditCollectionRequest buildRequest(final java.util.List requestOptions) { + return new DirectoryAuditCollectionRequest(getRequestUrl(), getClient(), requestOptions); + } + + public IDirectoryAuditRequestBuilder byId(final String id) { + return new DirectoryAuditRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionResponse.java new file mode 100644 index 00000000000..3a6141fb025 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionResponse.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.DirectoryAudit; + +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 Directory Audit Collection Response. + */ +public class DirectoryAuditCollectionResponse implements IJsonBackedObject { + + /** + * The list of DirectoryAudit 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/DirectoryAuditRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditRequest.java new file mode 100644 index 00000000000..0c35f66094e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IDirectoryAuditRequest; +import com.microsoft.graph.requests.extensions.DirectoryAuditRequest; +import com.microsoft.graph.models.extensions.DirectoryAudit; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Audit Request. + */ +public class DirectoryAuditRequest extends BaseRequest implements IDirectoryAuditRequest { + + /** + * The request for the DirectoryAudit + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DirectoryAuditRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, DirectoryAudit.class); + } + + /** + * Gets the DirectoryAudit 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 DirectoryAudit from the service + * + * @return the DirectoryAudit from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public DirectoryAudit 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 DirectoryAudit with a source + * + * @param sourceDirectoryAudit the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final DirectoryAudit sourceDirectoryAudit, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceDirectoryAudit); + } + + /** + * Patches this DirectoryAudit with a source + * + * @param sourceDirectoryAudit the source object with updates + * @return the updated DirectoryAudit + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public DirectoryAudit patch(final DirectoryAudit sourceDirectoryAudit) throws ClientException { + return send(HttpMethod.PATCH, sourceDirectoryAudit); + } + + /** + * Creates a DirectoryAudit with a new object + * + * @param newDirectoryAudit the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final DirectoryAudit newDirectoryAudit, final ICallback callback) { + send(HttpMethod.POST, callback, newDirectoryAudit); + } + + /** + * Creates a DirectoryAudit with a new object + * + * @param newDirectoryAudit the new object to create + * @return the created DirectoryAudit + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public DirectoryAudit post(final DirectoryAudit newDirectoryAudit) throws ClientException { + return send(HttpMethod.POST, newDirectoryAudit); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IDirectoryAuditRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (DirectoryAuditRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IDirectoryAuditRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (DirectoryAuditRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditRequestBuilder.java new file mode 100644 index 00000000000..8812ff937c3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditRequestBuilder.java @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IDirectoryAuditRequest; +import com.microsoft.graph.requests.extensions.DirectoryAuditRequest; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Audit Request Builder. + */ +public class DirectoryAuditRequestBuilder extends BaseRequestBuilder implements IDirectoryAuditRequestBuilder { + + /** + * The request builder for the DirectoryAudit + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DirectoryAuditRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IDirectoryAuditRequest instance + */ + public IDirectoryAuditRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IDirectoryAuditRequest instance + */ + public IDirectoryAuditRequest buildRequest(final java.util.List requestOptions) { + return new DirectoryAuditRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequest.java new file mode 100644 index 00000000000..df68a23a3a9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.AuditLogRoot; + +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 Audit Log Root Request. + */ +public interface IAuditLogRootRequest extends IHttpRequest { + + /** + * Gets the AuditLogRoot from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the AuditLogRoot from the service + * + * @return the AuditLogRoot from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + AuditLogRoot 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 AuditLogRoot with a source + * + * @param sourceAuditLogRoot the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final AuditLogRoot sourceAuditLogRoot, final ICallback callback); + + /** + * Patches this AuditLogRoot with a source + * + * @param sourceAuditLogRoot the source object with updates + * @return the updated AuditLogRoot + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + AuditLogRoot patch(final AuditLogRoot sourceAuditLogRoot) throws ClientException; + + /** + * Posts a AuditLogRoot with a new object + * + * @param newAuditLogRoot the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final AuditLogRoot newAuditLogRoot, final ICallback callback); + + /** + * Posts a AuditLogRoot with a new object + * + * @param newAuditLogRoot the new object to create + * @return the created AuditLogRoot + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + AuditLogRoot post(final AuditLogRoot newAuditLogRoot) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IAuditLogRootRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IAuditLogRootRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequestBuilder.java new file mode 100644 index 00000000000..35412ee6a6e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequestBuilder.java @@ -0,0 +1,52 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IAuditLogRootRequest; +import com.microsoft.graph.requests.extensions.ISignInCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.ISignInRequestBuilder; +import com.microsoft.graph.requests.extensions.IDirectoryAuditCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IDirectoryAuditRequestBuilder; +import com.microsoft.graph.requests.extensions.IRestrictedSignInCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IRestrictedSignInRequestBuilder; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Audit Log Root Request Builder. + */ +public interface IAuditLogRootRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the IAuditLogRootRequest instance + */ + IAuditLogRootRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IAuditLogRootRequest instance + */ + IAuditLogRootRequest buildRequest(final java.util.List requestOptions); + + + ISignInCollectionRequestBuilder signIns(); + + ISignInRequestBuilder signIns(final String id); + + IDirectoryAuditCollectionRequestBuilder directoryAudits(); + + IDirectoryAuditRequestBuilder directoryAudits(final String id); + + IRestrictedSignInCollectionRequestBuilder restrictedSignIns(); + + IRestrictedSignInRequestBuilder restrictedSignIns(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionPage.java new file mode 100644 index 00000000000..2a0c110a4e6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Directory Audit Collection Page. + */ +public interface IDirectoryAuditCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequest.java new file mode 100644 index 00000000000..b179ee781ae --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequest.java @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Directory Audit Collection Request. + */ +public interface IDirectoryAuditCollectionRequest { + + void get(final ICallback callback); + + IDirectoryAuditCollectionPage get() throws ClientException; + + void post(final DirectoryAudit newDirectoryAudit, final ICallback callback); + + DirectoryAudit post(final DirectoryAudit newDirectoryAudit) throws ClientException; + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IDirectoryAuditCollectionRequest expand(final String value); + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IDirectoryAuditCollectionRequest select(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + IDirectoryAuditCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequestBuilder.java new file mode 100644 index 00000000000..09130654667 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Directory Audit Collection Request Builder. + */ +public interface IDirectoryAuditCollectionRequestBuilder extends IRequestBuilder { + + IDirectoryAuditCollectionRequest buildRequest(); + + IDirectoryAuditCollectionRequest buildRequest(final java.util.List requestOptions); + + IDirectoryAuditRequestBuilder byId(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequest.java new file mode 100644 index 00000000000..e92f8bdc28a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.DirectoryAudit; + +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 Directory Audit Request. + */ +public interface IDirectoryAuditRequest extends IHttpRequest { + + /** + * Gets the DirectoryAudit from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the DirectoryAudit from the service + * + * @return the DirectoryAudit from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + DirectoryAudit 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 DirectoryAudit with a source + * + * @param sourceDirectoryAudit the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final DirectoryAudit sourceDirectoryAudit, final ICallback callback); + + /** + * Patches this DirectoryAudit with a source + * + * @param sourceDirectoryAudit the source object with updates + * @return the updated DirectoryAudit + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + DirectoryAudit patch(final DirectoryAudit sourceDirectoryAudit) throws ClientException; + + /** + * Posts a DirectoryAudit with a new object + * + * @param newDirectoryAudit the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final DirectoryAudit newDirectoryAudit, final ICallback callback); + + /** + * Posts a DirectoryAudit with a new object + * + * @param newDirectoryAudit the new object to create + * @return the created DirectoryAudit + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + DirectoryAudit post(final DirectoryAudit newDirectoryAudit) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IDirectoryAuditRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IDirectoryAuditRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequestBuilder.java new file mode 100644 index 00000000000..f241a48d9f0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequestBuilder.java @@ -0,0 +1,34 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IDirectoryAuditRequest; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Directory Audit Request Builder. + */ +public interface IDirectoryAuditRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the IDirectoryAuditRequest instance + */ + IDirectoryAuditRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IDirectoryAuditRequest instance + */ + IDirectoryAuditRequest buildRequest(final java.util.List requestOptions); + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionPage.java new file mode 100644 index 00000000000..cfa3bb73448 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Restricted Sign In Collection Page. + */ +public interface IRestrictedSignInCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequest.java new file mode 100644 index 00000000000..6fae365fd11 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequest.java @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Restricted Sign In Collection Request. + */ +public interface IRestrictedSignInCollectionRequest { + + void get(final ICallback callback); + + IRestrictedSignInCollectionPage get() throws ClientException; + + void post(final RestrictedSignIn newRestrictedSignIn, final ICallback callback); + + RestrictedSignIn post(final RestrictedSignIn newRestrictedSignIn) throws ClientException; + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IRestrictedSignInCollectionRequest expand(final String value); + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IRestrictedSignInCollectionRequest select(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + IRestrictedSignInCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequestBuilder.java new file mode 100644 index 00000000000..112f6087ff0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Restricted Sign In Collection Request Builder. + */ +public interface IRestrictedSignInCollectionRequestBuilder extends IRequestBuilder { + + IRestrictedSignInCollectionRequest buildRequest(); + + IRestrictedSignInCollectionRequest buildRequest(final java.util.List requestOptions); + + IRestrictedSignInRequestBuilder byId(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequest.java new file mode 100644 index 00000000000..884431f8fe5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.RestrictedSignIn; + +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 Restricted Sign In Request. + */ +public interface IRestrictedSignInRequest extends IHttpRequest { + + /** + * Gets the RestrictedSignIn from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the RestrictedSignIn from the service + * + * @return the RestrictedSignIn from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + RestrictedSignIn 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 RestrictedSignIn with a source + * + * @param sourceRestrictedSignIn the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final RestrictedSignIn sourceRestrictedSignIn, final ICallback callback); + + /** + * Patches this RestrictedSignIn with a source + * + * @param sourceRestrictedSignIn the source object with updates + * @return the updated RestrictedSignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + RestrictedSignIn patch(final RestrictedSignIn sourceRestrictedSignIn) throws ClientException; + + /** + * Posts a RestrictedSignIn with a new object + * + * @param newRestrictedSignIn the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final RestrictedSignIn newRestrictedSignIn, final ICallback callback); + + /** + * Posts a RestrictedSignIn with a new object + * + * @param newRestrictedSignIn the new object to create + * @return the created RestrictedSignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + RestrictedSignIn post(final RestrictedSignIn newRestrictedSignIn) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IRestrictedSignInRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IRestrictedSignInRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequestBuilder.java new file mode 100644 index 00000000000..5679b4ceb94 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequestBuilder.java @@ -0,0 +1,34 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IRestrictedSignInRequest; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Restricted Sign In Request Builder. + */ +public interface IRestrictedSignInRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the IRestrictedSignInRequest instance + */ + IRestrictedSignInRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IRestrictedSignInRequest instance + */ + IRestrictedSignInRequest buildRequest(final java.util.List requestOptions); + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionPage.java new file mode 100644 index 00000000000..f4cd79d8da5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Sign In Collection Page. + */ +public interface ISignInCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequest.java new file mode 100644 index 00000000000..82c87be8784 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequest.java @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Sign In Collection Request. + */ +public interface ISignInCollectionRequest { + + void get(final ICallback callback); + + ISignInCollectionPage get() throws ClientException; + + void post(final SignIn newSignIn, final ICallback callback); + + SignIn post(final SignIn newSignIn) throws ClientException; + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + ISignInCollectionRequest expand(final String value); + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + ISignInCollectionRequest select(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + ISignInCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequestBuilder.java new file mode 100644 index 00000000000..2946a09ad87 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Sign In Collection Request Builder. + */ +public interface ISignInCollectionRequestBuilder extends IRequestBuilder { + + ISignInCollectionRequest buildRequest(); + + ISignInCollectionRequest buildRequest(final java.util.List requestOptions); + + ISignInRequestBuilder byId(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISignInRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ISignInRequest.java new file mode 100644 index 00000000000..b5f697ccd22 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISignInRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.SignIn; + +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 Sign In Request. + */ +public interface ISignInRequest extends IHttpRequest { + + /** + * Gets the SignIn from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the SignIn from the service + * + * @return the SignIn from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + SignIn 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 SignIn with a source + * + * @param sourceSignIn the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final SignIn sourceSignIn, final ICallback callback); + + /** + * Patches this SignIn with a source + * + * @param sourceSignIn the source object with updates + * @return the updated SignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + SignIn patch(final SignIn sourceSignIn) throws ClientException; + + /** + * Posts a SignIn with a new object + * + * @param newSignIn the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final SignIn newSignIn, final ICallback callback); + + /** + * Posts a SignIn with a new object + * + * @param newSignIn the new object to create + * @return the created SignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + SignIn post(final SignIn newSignIn) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + ISignInRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + ISignInRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISignInRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ISignInRequestBuilder.java new file mode 100644 index 00000000000..9a5931b6e88 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISignInRequestBuilder.java @@ -0,0 +1,34 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ISignInRequest; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Sign In Request Builder. + */ +public interface ISignInRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the ISignInRequest instance + */ + ISignInRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the ISignInRequest instance + */ + ISignInRequest buildRequest(final java.util.List requestOptions); + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionPage.java new file mode 100644 index 00000000000..045a03df38d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionPage.java @@ -0,0 +1,26 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.RestrictedSignIn; +import com.microsoft.graph.requests.extensions.IRestrictedSignInCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Restricted Sign In Collection Page. + */ +public class RestrictedSignInCollectionPage extends BaseCollectionPage implements IRestrictedSignInCollectionPage { + + /** + * A collection page for RestrictedSignIn + * + * @param response the serialized RestrictedSignInCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public RestrictedSignInCollectionPage(final RestrictedSignInCollectionResponse response, final IRestrictedSignInCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequest.java new file mode 100644 index 00000000000..e86c1b15efa --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequest.java @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Restricted Sign In Collection Request. + */ +public class RestrictedSignInCollectionRequest extends BaseCollectionRequest implements IRestrictedSignInCollectionRequest { + + /** + * The request builder for this collection of RestrictedSignIn + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RestrictedSignInCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, RestrictedSignInCollectionResponse.class, IRestrictedSignInCollectionPage.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 IRestrictedSignInCollectionPage get() throws ClientException { + final RestrictedSignInCollectionResponse response = send(); + return buildFromResponse(response); + } + + public void post(final RestrictedSignIn newRestrictedSignIn, final ICallback callback) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + new RestrictedSignInRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newRestrictedSignIn, callback); + } + + public RestrictedSignIn post(final RestrictedSignIn newRestrictedSignIn) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new RestrictedSignInRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newRestrictedSignIn); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IRestrictedSignInCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (RestrictedSignInCollectionRequest)this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IRestrictedSignInCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (RestrictedSignInCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public IRestrictedSignInCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value + "")); + return (RestrictedSignInCollectionRequest)this; + } + + public IRestrictedSignInCollectionPage buildFromResponse(final RestrictedSignInCollectionResponse response) { + final IRestrictedSignInCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new RestrictedSignInCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final RestrictedSignInCollectionPage page = new RestrictedSignInCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequestBuilder.java new file mode 100644 index 00000000000..636e2369067 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Restricted Sign In Collection Request Builder. + */ +public class RestrictedSignInCollectionRequestBuilder extends BaseRequestBuilder implements IRestrictedSignInCollectionRequestBuilder { + + /** + * The request builder for this collection of AuditLogRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RestrictedSignInCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public IRestrictedSignInCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public IRestrictedSignInCollectionRequest buildRequest(final java.util.List requestOptions) { + return new RestrictedSignInCollectionRequest(getRequestUrl(), getClient(), requestOptions); + } + + public IRestrictedSignInRequestBuilder byId(final String id) { + return new RestrictedSignInRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionResponse.java new file mode 100644 index 00000000000..e53fe4dfd0c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionResponse.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.RestrictedSignIn; + +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 Restricted Sign In Collection Response. + */ +public class RestrictedSignInCollectionResponse implements IJsonBackedObject { + + /** + * The list of RestrictedSignIn 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/RestrictedSignInRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInRequest.java new file mode 100644 index 00000000000..e3998f8e58b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IRestrictedSignInRequest; +import com.microsoft.graph.requests.extensions.RestrictedSignInRequest; +import com.microsoft.graph.models.extensions.RestrictedSignIn; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Restricted Sign In Request. + */ +public class RestrictedSignInRequest extends BaseRequest implements IRestrictedSignInRequest { + + /** + * The request for the RestrictedSignIn + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RestrictedSignInRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, RestrictedSignIn.class); + } + + /** + * Gets the RestrictedSignIn 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 RestrictedSignIn from the service + * + * @return the RestrictedSignIn from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public RestrictedSignIn 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 RestrictedSignIn with a source + * + * @param sourceRestrictedSignIn the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final RestrictedSignIn sourceRestrictedSignIn, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceRestrictedSignIn); + } + + /** + * Patches this RestrictedSignIn with a source + * + * @param sourceRestrictedSignIn the source object with updates + * @return the updated RestrictedSignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public RestrictedSignIn patch(final RestrictedSignIn sourceRestrictedSignIn) throws ClientException { + return send(HttpMethod.PATCH, sourceRestrictedSignIn); + } + + /** + * Creates a RestrictedSignIn with a new object + * + * @param newRestrictedSignIn the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final RestrictedSignIn newRestrictedSignIn, final ICallback callback) { + send(HttpMethod.POST, callback, newRestrictedSignIn); + } + + /** + * Creates a RestrictedSignIn with a new object + * + * @param newRestrictedSignIn the new object to create + * @return the created RestrictedSignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public RestrictedSignIn post(final RestrictedSignIn newRestrictedSignIn) throws ClientException { + return send(HttpMethod.POST, newRestrictedSignIn); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IRestrictedSignInRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (RestrictedSignInRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IRestrictedSignInRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (RestrictedSignInRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInRequestBuilder.java new file mode 100644 index 00000000000..7768222a190 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInRequestBuilder.java @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IRestrictedSignInRequest; +import com.microsoft.graph.requests.extensions.RestrictedSignInRequest; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Restricted Sign In Request Builder. + */ +public class RestrictedSignInRequestBuilder extends BaseRequestBuilder implements IRestrictedSignInRequestBuilder { + + /** + * The request builder for the RestrictedSignIn + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RestrictedSignInRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IRestrictedSignInRequest instance + */ + public IRestrictedSignInRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IRestrictedSignInRequest instance + */ + public IRestrictedSignInRequest buildRequest(final java.util.List requestOptions) { + return new RestrictedSignInRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionPage.java new file mode 100644 index 00000000000..a4b0e3df178 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionPage.java @@ -0,0 +1,26 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.SignIn; +import com.microsoft.graph.requests.extensions.ISignInCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In Collection Page. + */ +public class SignInCollectionPage extends BaseCollectionPage implements ISignInCollectionPage { + + /** + * A collection page for SignIn + * + * @param response the serialized SignInCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public SignInCollectionPage(final SignInCollectionResponse response, final ISignInCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequest.java new file mode 100644 index 00000000000..849b9c25cb8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequest.java @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In Collection Request. + */ +public class SignInCollectionRequest extends BaseCollectionRequest implements ISignInCollectionRequest { + + /** + * The request builder for this collection of SignIn + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SignInCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SignInCollectionResponse.class, ISignInCollectionPage.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 ISignInCollectionPage get() throws ClientException { + final SignInCollectionResponse response = send(); + return buildFromResponse(response); + } + + public void post(final SignIn newSignIn, final ICallback callback) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + new SignInRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newSignIn, callback); + } + + public SignIn post(final SignIn newSignIn) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new SignInRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newSignIn); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public ISignInCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (SignInCollectionRequest)this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public ISignInCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (SignInCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public ISignInCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value + "")); + return (SignInCollectionRequest)this; + } + + public ISignInCollectionPage buildFromResponse(final SignInCollectionResponse response) { + final ISignInCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new SignInCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final SignInCollectionPage page = new SignInCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequestBuilder.java new file mode 100644 index 00000000000..da54544f093 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In Collection Request Builder. + */ +public class SignInCollectionRequestBuilder extends BaseRequestBuilder implements ISignInCollectionRequestBuilder { + + /** + * The request builder for this collection of AuditLogRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SignInCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public ISignInCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public ISignInCollectionRequest buildRequest(final java.util.List requestOptions) { + return new SignInCollectionRequest(getRequestUrl(), getClient(), requestOptions); + } + + public ISignInRequestBuilder byId(final String id) { + return new SignInRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionResponse.java new file mode 100644 index 00000000000..547abad5922 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionResponse.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.SignIn; + +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 Sign In Collection Response. + */ +public class SignInCollectionResponse implements IJsonBackedObject { + + /** + * The list of SignIn 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/SignInRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/SignInRequest.java new file mode 100644 index 00000000000..ee05dac4dc0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SignInRequest.java @@ -0,0 +1,153 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ISignInRequest; +import com.microsoft.graph.requests.extensions.SignInRequest; +import com.microsoft.graph.models.extensions.SignIn; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In Request. + */ +public class SignInRequest extends BaseRequest implements ISignInRequest { + + /** + * The request for the SignIn + * + * @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 SignInRequest(final String requestUrl, + final IBaseClient client, + final java.util.List requestOptions, + final Class responseClass) { + super(requestUrl, client, requestOptions, responseClass); + } + + /** + * The request for the SignIn + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SignInRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SignIn.class); + } + + /** + * Gets the SignIn 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 SignIn from the service + * + * @return the SignIn from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public SignIn 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 SignIn with a source + * + * @param sourceSignIn the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final SignIn sourceSignIn, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceSignIn); + } + + /** + * Patches this SignIn with a source + * + * @param sourceSignIn the source object with updates + * @return the updated SignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public SignIn patch(final SignIn sourceSignIn) throws ClientException { + return send(HttpMethod.PATCH, sourceSignIn); + } + + /** + * Creates a SignIn with a new object + * + * @param newSignIn the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final SignIn newSignIn, final ICallback callback) { + send(HttpMethod.POST, callback, newSignIn); + } + + /** + * Creates a SignIn with a new object + * + * @param newSignIn the new object to create + * @return the created SignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public SignIn post(final SignIn newSignIn) throws ClientException { + return send(HttpMethod.POST, newSignIn); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public ISignInRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (SignInRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public ISignInRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (SignInRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SignInRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/SignInRequestBuilder.java new file mode 100644 index 00000000000..4815fb2a96a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SignInRequestBuilder.java @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ISignInRequest; +import com.microsoft.graph.requests.extensions.SignInRequest; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In Request Builder. + */ +public class SignInRequestBuilder extends BaseRequestBuilder implements ISignInRequestBuilder { + + /** + * The request builder for the SignIn + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SignInRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the ISignInRequest instance + */ + public ISignInRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the ISignInRequest instance + */ + public ISignInRequest buildRequest(final java.util.List requestOptions) { + return new SignInRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} + From 2825520794bdafa9876ad1fe7ae3b5efa5ebbef0 Mon Sep 17 00:00:00 2001 From: Client Tooling Big Giant Robot Date: Tue, 7 May 2019 06:09:23 -0700 Subject: [PATCH 10/12] Update generated files with build 1261620 --- .../graph/models/extensions/AccessAction.java | 79 ++++++ .../graph/models/extensions/AppIdentity.java | 111 ++++++++ .../AppliedConditionalAccessPolicy.java | 120 +++++++++ .../extensions/AuditActivityInitiator.java | 97 +++++++ .../graph/models/extensions/AuditLogRoot.java | 145 ++++++++++ .../extensions/AverageComparativeScore.java | 4 +- .../extensions/CertificationControl.java | 4 +- .../graph/models/extensions/Channel.java | 4 +- .../extensions/ComplianceInformation.java | 4 +- .../graph/models/extensions/ControlScore.java | 8 +- .../graph/models/extensions/DeviceDetail.java | 135 ++++++++++ .../models/extensions/DirectoryAudit.java | 162 +++++++++++ .../graph/models/extensions/DriveItem.java | 9 + .../extensions/IBaseGraphServiceClient.java | 7 + .../models/extensions/IncompleteData.java | 95 +++++++ .../models/extensions/ItemActionStat.java | 95 +++++++ .../graph/models/extensions/ItemActivity.java | 105 ++++++++ .../models/extensions/ItemActivityStat.java | 169 ++++++++++++ .../models/extensions/ItemAnalytics.java | 111 ++++++++ .../graph/models/extensions/KeyValue.java | 95 +++++++ .../graph/models/extensions/ListItem.java | 9 + .../models/extensions/ModifiedProperty.java | 103 +++++++ .../models/extensions/RestrictedSignIn.java | 78 ++++++ .../graph/models/extensions/SecureScore.java | 20 +- .../extensions/SecureScoreControlProfile.java | 28 +- .../SecureScoreControlStateUpdate.java | 10 +- .../graph/models/extensions/SignIn.java | 255 ++++++++++++++++++ .../models/extensions/SignInLocation.java | 112 ++++++++ .../graph/models/extensions/SignInStatus.java | 103 +++++++ .../graph/models/extensions/Site.java | 9 + .../models/extensions/TargetResource.java | 129 +++++++++ .../graph/models/extensions/UserIdentity.java | 111 ++++++++ .../AppliedConditionalAccessPolicyResult.java | 41 +++ .../generated/ConditionalAccessStatus.java | 33 +++ .../graph/models/generated/GroupType.java | 29 ++ .../models/generated/OperationResult.java | 33 +++ .../graph/models/generated/RiskDetail.java | 65 +++++ .../graph/models/generated/RiskEventType.java | 77 ++++++ .../graph/models/generated/RiskLevel.java | 41 +++ .../graph/models/generated/RiskState.java | 45 ++++ .../extensions/AuditLogRootRequest.java | 138 ++++++++++ .../AuditLogRootRequestBuilder.java | 86 ++++++ .../extensions/BaseGraphServiceClient.java | 9 + .../DirectoryAuditCollectionPage.java | 26 ++ .../DirectoryAuditCollectionRequest.java | 114 ++++++++ ...irectoryAuditCollectionRequestBuilder.java | 50 ++++ .../DirectoryAuditCollectionResponse.java | 90 +++++++ .../extensions/DirectoryAuditRequest.java | 138 ++++++++++ .../DirectoryAuditRequestBuilder.java | 53 ++++ ...GetActivitiesByIntervalCollectionPage.java | 38 +++ ...ActivitiesByIntervalCollectionRequest.java | 104 +++++++ ...iesByIntervalCollectionRequestBuilder.java | 53 ++++ ...ctivitiesByIntervalCollectionResponse.java | 91 +++++++ .../extensions/DriveItemRequestBuilder.java | 17 ++ .../extensions/IAuditLogRootRequest.java | 99 +++++++ .../IAuditLogRootRequestBuilder.java | 52 ++++ .../IDirectoryAuditCollectionPage.java | 27 ++ .../IDirectoryAuditCollectionRequest.java | 58 ++++ ...irectoryAuditCollectionRequestBuilder.java | 32 +++ .../extensions/IDirectoryAuditRequest.java | 99 +++++++ .../IDirectoryAuditRequestBuilder.java | 34 +++ ...GetActivitiesByIntervalCollectionPage.java | 27 ++ ...ActivitiesByIntervalCollectionRequest.java | 57 ++++ ...iesByIntervalCollectionRequestBuilder.java | 30 +++ .../extensions/IDriveItemRequestBuilder.java | 11 + .../IItemActivityCollectionPage.java | 27 ++ .../IItemActivityCollectionRequest.java | 58 ++++ ...IItemActivityCollectionRequestBuilder.java | 32 +++ .../extensions/IItemActivityRequest.java | 99 +++++++ .../IItemActivityRequestBuilder.java | 42 +++ .../IItemActivityStatCollectionPage.java | 27 ++ .../IItemActivityStatCollectionRequest.java | 58 ++++ ...mActivityStatCollectionRequestBuilder.java | 32 +++ .../IItemActivityStatReferenceRequest.java | 62 +++++ ...emActivityStatReferenceRequestBuilder.java | 40 +++ .../extensions/IItemActivityStatRequest.java | 99 +++++++ .../IItemActivityStatRequestBuilder.java | 40 +++ ...IItemActivityStatWithReferenceRequest.java | 46 ++++ ...tivityStatWithReferenceRequestBuilder.java | 43 +++ .../IItemAnalyticsReferenceRequest.java | 62 +++++ ...IItemAnalyticsReferenceRequestBuilder.java | 40 +++ .../extensions/IItemAnalyticsRequest.java | 99 +++++++ .../IItemAnalyticsRequestBuilder.java | 56 ++++ .../IItemAnalyticsWithReferenceRequest.java | 46 ++++ ...mAnalyticsWithReferenceRequestBuilder.java | 43 +++ ...GetActivitiesByIntervalCollectionPage.java | 27 ++ ...ActivitiesByIntervalCollectionRequest.java | 57 ++++ ...iesByIntervalCollectionRequestBuilder.java | 30 +++ .../extensions/IListItemRequestBuilder.java | 11 + .../IRestrictedSignInCollectionPage.java | 27 ++ .../IRestrictedSignInCollectionRequest.java | 58 ++++ ...trictedSignInCollectionRequestBuilder.java | 32 +++ .../extensions/IRestrictedSignInRequest.java | 99 +++++++ .../IRestrictedSignInRequestBuilder.java | 34 +++ .../extensions/ISignInCollectionPage.java | 27 ++ .../extensions/ISignInCollectionRequest.java | 58 ++++ .../ISignInCollectionRequestBuilder.java | 32 +++ .../requests/extensions/ISignInRequest.java | 99 +++++++ .../extensions/ISignInRequestBuilder.java | 34 +++ ...GetActivitiesByIntervalCollectionPage.java | 27 ++ ...ActivitiesByIntervalCollectionRequest.java | 57 ++++ ...iesByIntervalCollectionRequestBuilder.java | 30 +++ .../extensions/ISiteRequestBuilder.java | 11 + .../ItemActivityCollectionPage.java | 26 ++ .../ItemActivityCollectionRequest.java | 114 ++++++++ .../ItemActivityCollectionRequestBuilder.java | 50 ++++ .../ItemActivityCollectionResponse.java | 90 +++++++ .../extensions/ItemActivityRequest.java | 138 ++++++++++ .../ItemActivityRequestBuilder.java | 64 +++++ .../ItemActivityStatCollectionPage.java | 26 ++ .../ItemActivityStatCollectionRequest.java | 114 ++++++++ ...mActivityStatCollectionRequestBuilder.java | 50 ++++ .../ItemActivityStatCollectionResponse.java | 90 +++++++ .../ItemActivityStatReferenceRequest.java | 86 ++++++ ...emActivityStatReferenceRequestBuilder.java | 56 ++++ .../extensions/ItemActivityStatRequest.java | 138 ++++++++++ .../ItemActivityStatRequestBuilder.java | 64 +++++ .../ItemActivityStatWithReferenceRequest.java | 95 +++++++ ...tivityStatWithReferenceRequestBuilder.java | 60 +++++ .../ItemAnalyticsReferenceRequest.java | 86 ++++++ .../ItemAnalyticsReferenceRequestBuilder.java | 56 ++++ .../extensions/ItemAnalyticsRequest.java | 138 ++++++++++ .../ItemAnalyticsRequestBuilder.java | 86 ++++++ .../ItemAnalyticsWithReferenceRequest.java | 95 +++++++ ...mAnalyticsWithReferenceRequestBuilder.java | 60 +++++ ...GetActivitiesByIntervalCollectionPage.java | 38 +++ ...ActivitiesByIntervalCollectionRequest.java | 104 +++++++ ...iesByIntervalCollectionRequestBuilder.java | 53 ++++ ...ctivitiesByIntervalCollectionResponse.java | 91 +++++++ .../extensions/ListItemRequestBuilder.java | 17 ++ .../RestrictedSignInCollectionPage.java | 26 ++ .../RestrictedSignInCollectionRequest.java | 114 ++++++++ ...trictedSignInCollectionRequestBuilder.java | 50 ++++ .../RestrictedSignInCollectionResponse.java | 90 +++++++ .../extensions/RestrictedSignInRequest.java | 138 ++++++++++ .../RestrictedSignInRequestBuilder.java | 53 ++++ .../extensions/SignInCollectionPage.java | 26 ++ .../extensions/SignInCollectionRequest.java | 114 ++++++++ .../SignInCollectionRequestBuilder.java | 50 ++++ .../extensions/SignInCollectionResponse.java | 90 +++++++ .../requests/extensions/SignInRequest.java | 153 +++++++++++ .../extensions/SignInRequestBuilder.java | 53 ++++ ...GetActivitiesByIntervalCollectionPage.java | 38 +++ ...ActivitiesByIntervalCollectionRequest.java | 104 +++++++ ...iesByIntervalCollectionRequestBuilder.java | 53 ++++ ...ctivitiesByIntervalCollectionResponse.java | 91 +++++++ .../extensions/SiteRequestBuilder.java | 17 ++ 147 files changed, 9528 insertions(+), 41 deletions(-) create mode 100644 src/main/java/com/microsoft/graph/models/extensions/AccessAction.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/AppIdentity.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/AppliedConditionalAccessPolicy.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/AuditActivityInitiator.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/AuditLogRoot.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/DeviceDetail.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/DirectoryAudit.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/IncompleteData.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/ItemActionStat.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/ItemActivity.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/ItemActivityStat.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/ItemAnalytics.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/KeyValue.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/ModifiedProperty.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/RestrictedSignIn.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/SignIn.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/SignInLocation.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/SignInStatus.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/TargetResource.java create mode 100644 src/main/java/com/microsoft/graph/models/extensions/UserIdentity.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/AppliedConditionalAccessPolicyResult.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/ConditionalAccessStatus.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/GroupType.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/OperationResult.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/RiskDetail.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/RiskEventType.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/RiskLevel.java create mode 100644 src/main/java/com/microsoft/graph/models/generated/RiskState.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDriveItemGetActivitiesByIntervalCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDriveItemGetActivitiesByIntervalCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IDriveItemGetActivitiesByIntervalCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemActivityCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemActivityCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemActivityCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemActivityRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemActivityRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatReferenceRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatReferenceRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatWithReferenceRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatWithReferenceRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsReferenceRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsReferenceRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsWithReferenceRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsWithReferenceRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IListItemGetActivitiesByIntervalCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IListItemGetActivitiesByIntervalCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IListItemGetActivitiesByIntervalCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISignInRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISignInRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISiteGetActivitiesByIntervalCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISiteGetActivitiesByIntervalCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ISiteGetActivitiesByIntervalCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatReferenceRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatReferenceRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatWithReferenceRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatWithReferenceRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsReferenceRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsReferenceRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsWithReferenceRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsWithReferenceRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionResponse.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SignInRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SignInRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionPage.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionRequest.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionRequestBuilder.java create mode 100644 src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionResponse.java diff --git a/src/main/java/com/microsoft/graph/models/extensions/AccessAction.java b/src/main/java/com/microsoft/graph/models/extensions/AccessAction.java new file mode 100644 index 00000000000..90eadd56dae --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/AccessAction.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Access Action. + */ +public class AccessAction implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + 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; + + } +} diff --git a/src/main/java/com/microsoft/graph/models/extensions/AppIdentity.java b/src/main/java/com/microsoft/graph/models/extensions/AppIdentity.java new file mode 100644 index 00000000000..c1db2ad910e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/AppIdentity.java @@ -0,0 +1,111 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the App Identity. + */ +public class AppIdentity implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The App Id. + * Refers to the Unique GUID representing Application Id in the Azure Active Directory. + */ + @SerializedName("appId") + @Expose + public String appId; + + /** + * The Display Name. + * Refers to the Application Name displayed in the Azure Portal. + */ + @SerializedName("displayName") + @Expose + public String displayName; + + /** + * The Service Principal Id. + * Refers to the Unique GUID indicating Service Principal Id in Azure Active Directory for the corresponding App. + */ + @SerializedName("servicePrincipalId") + @Expose + public String servicePrincipalId; + + /** + * The Service Principal Name. + * Refers to the Service Principal Name is the Application name in the tenant. + */ + @SerializedName("servicePrincipalName") + @Expose + public String servicePrincipalName; + + + /** + * 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/AppliedConditionalAccessPolicy.java b/src/main/java/com/microsoft/graph/models/extensions/AppliedConditionalAccessPolicy.java new file mode 100644 index 00000000000..5306661fe5e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/AppliedConditionalAccessPolicy.java @@ -0,0 +1,120 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.generated.AppliedConditionalAccessPolicyResult; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Applied Conditional Access Policy. + */ +public class AppliedConditionalAccessPolicy implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Id. + * Unique GUID of the conditional access polic.y + */ + @SerializedName("id") + @Expose + public String id; + + /** + * The Display Name. + * Refers to the Name of the conditional access policy (example: 'Require MFA for Salesforce'). + */ + @SerializedName("displayName") + @Expose + public String displayName; + + /** + * The Enforced Grant Controls. + * Refers to the grant controls enforced by the conditional access policy (example: 'Require multi-factor authentication'). + */ + @SerializedName("enforcedGrantControls") + @Expose + public java.util.List enforcedGrantControls; + + /** + * The Enforced Session Controls. + * Refers to the session controls enforced by the conditional access policy (example: 'Require app enforced controls'). + */ + @SerializedName("enforcedSessionControls") + @Expose + public java.util.List enforcedSessionControls; + + /** + * The Result. + * Indicates the result of the CA policy that was triggered. Possible values are:successfailurenotApplied - Policy isn't applied because policy conditions were not met.notEnabled - This is due to the policy in disabled state. + */ + @SerializedName("result") + @Expose + public AppliedConditionalAccessPolicyResult result; + + + /** + * 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/AuditActivityInitiator.java b/src/main/java/com/microsoft/graph/models/extensions/AuditActivityInitiator.java new file mode 100644 index 00000000000..09f02b6eef8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/AuditActivityInitiator.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.models.extensions; +import com.microsoft.graph.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.UserIdentity; +import com.microsoft.graph.models.extensions.AppIdentity; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Audit Activity Initiator. + */ +public class AuditActivityInitiator implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The User. + * If the resource initiating the activity is a user, this property Indicates all the user related information like userId, Name, UserPrinicpalName. + */ + @SerializedName("user") + @Expose + public UserIdentity user; + + /** + * The App. + * If the resource initiating the activity is an app, this property indicates all the app related information like appId, Name, servicePrincipalId, Name. + */ + @SerializedName("app") + @Expose + public AppIdentity app; + + + /** + * 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/AuditLogRoot.java b/src/main/java/com/microsoft/graph/models/extensions/AuditLogRoot.java new file mode 100644 index 00000000000..8fc4c358a3d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/AuditLogRoot.java @@ -0,0 +1,145 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.SignIn; +import com.microsoft.graph.models.extensions.DirectoryAudit; +import com.microsoft.graph.models.extensions.RestrictedSignIn; +import com.microsoft.graph.models.extensions.Entity; +import com.microsoft.graph.requests.extensions.SignInCollectionResponse; +import com.microsoft.graph.requests.extensions.SignInCollectionPage; +import com.microsoft.graph.requests.extensions.DirectoryAuditCollectionResponse; +import com.microsoft.graph.requests.extensions.DirectoryAuditCollectionPage; +import com.microsoft.graph.requests.extensions.RestrictedSignInCollectionResponse; +import com.microsoft.graph.requests.extensions.RestrictedSignInCollectionPage; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Audit Log Root. + */ +public class AuditLogRoot extends Entity implements IJsonBackedObject { + + + /** + * The Sign Ins. + * Read-only. Nullable. + */ + public SignInCollectionPage signIns; + + /** + * The Directory Audits. + * Read-only. Nullable. + */ + public DirectoryAuditCollectionPage directoryAudits; + + /** + * The Restricted Sign Ins. + * + */ + public RestrictedSignInCollectionPage restrictedSignIns; + + + /** + * 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("signIns")) { + final SignInCollectionResponse response = new SignInCollectionResponse(); + if (json.has("signIns@odata.nextLink")) { + response.nextLink = json.get("signIns@odata.nextLink").getAsString(); + } + + final JsonObject[] sourceArray = serializer.deserializeObject(json.get("signIns").toString(), JsonObject[].class); + final SignIn[] array = new SignIn[sourceArray.length]; + for (int i = 0; i < sourceArray.length; i++) { + array[i] = serializer.deserializeObject(sourceArray[i].toString(), SignIn.class); + array[i].setRawObject(serializer, sourceArray[i]); + } + response.value = Arrays.asList(array); + signIns = new SignInCollectionPage(response, null); + } + + if (json.has("directoryAudits")) { + final DirectoryAuditCollectionResponse response = new DirectoryAuditCollectionResponse(); + if (json.has("directoryAudits@odata.nextLink")) { + response.nextLink = json.get("directoryAudits@odata.nextLink").getAsString(); + } + + final JsonObject[] sourceArray = serializer.deserializeObject(json.get("directoryAudits").toString(), JsonObject[].class); + final DirectoryAudit[] array = new DirectoryAudit[sourceArray.length]; + for (int i = 0; i < sourceArray.length; i++) { + array[i] = serializer.deserializeObject(sourceArray[i].toString(), DirectoryAudit.class); + array[i].setRawObject(serializer, sourceArray[i]); + } + response.value = Arrays.asList(array); + directoryAudits = new DirectoryAuditCollectionPage(response, null); + } + + if (json.has("restrictedSignIns")) { + final RestrictedSignInCollectionResponse response = new RestrictedSignInCollectionResponse(); + if (json.has("restrictedSignIns@odata.nextLink")) { + response.nextLink = json.get("restrictedSignIns@odata.nextLink").getAsString(); + } + + final JsonObject[] sourceArray = serializer.deserializeObject(json.get("restrictedSignIns").toString(), JsonObject[].class); + final RestrictedSignIn[] array = new RestrictedSignIn[sourceArray.length]; + for (int i = 0; i < sourceArray.length; i++) { + array[i] = serializer.deserializeObject(sourceArray[i].toString(), RestrictedSignIn.class); + array[i].setRawObject(serializer, sourceArray[i]); + } + response.value = Arrays.asList(array); + restrictedSignIns = new RestrictedSignInCollectionPage(response, null); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/extensions/AverageComparativeScore.java b/src/main/java/com/microsoft/graph/models/extensions/AverageComparativeScore.java index 5a511a8fc39..9e9585f6188 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/AverageComparativeScore.java +++ b/src/main/java/com/microsoft/graph/models/extensions/AverageComparativeScore.java @@ -38,7 +38,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Average Score. - * + * Average score within specified basis. */ @SerializedName("averageScore") @Expose @@ -46,7 +46,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Basis. - * + * Scope type. The possible values are: AllTenants, TotalSeats, IndustryTypes. */ @SerializedName("basis") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/CertificationControl.java b/src/main/java/com/microsoft/graph/models/extensions/CertificationControl.java index 74502be7bdc..2b8518625c7 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/CertificationControl.java +++ b/src/main/java/com/microsoft/graph/models/extensions/CertificationControl.java @@ -38,7 +38,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Name. - * + * Certification control name */ @SerializedName("name") @Expose @@ -46,7 +46,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Url. - * + * URL for the Microsoft Service Trust Portal */ @SerializedName("url") @Expose 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 fc1e2380d1a..32c5bf3e6ea 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Channel.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Channel.java @@ -48,7 +48,7 @@ public class Channel extends Entity implements IJsonBackedObject { /** * The Email. - * + * The email address for sending messages to the channel. Read-only. */ @SerializedName("email") @Expose @@ -56,7 +56,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. */ @SerializedName("webUrl") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/ComplianceInformation.java b/src/main/java/com/microsoft/graph/models/extensions/ComplianceInformation.java index 3d5b2fa5e42..29274c5a726 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/ComplianceInformation.java +++ b/src/main/java/com/microsoft/graph/models/extensions/ComplianceInformation.java @@ -39,7 +39,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Certification Controls. - * + * Collection of the certification controls associated with certification */ @SerializedName("certificationControls") @Expose @@ -47,7 +47,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Certification Name. - * + * Compliance certification name (for example, ISO 27018:2014, GDPR, FedRAMP, NIST 800-171) */ @SerializedName("certificationName") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/ControlScore.java b/src/main/java/com/microsoft/graph/models/extensions/ControlScore.java index 956dd5746bb..d7c4cc17e00 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/ControlScore.java +++ b/src/main/java/com/microsoft/graph/models/extensions/ControlScore.java @@ -38,7 +38,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Control Category. - * + * Control action category (Identity, Data, Device, Apps, Infrastructure). */ @SerializedName("controlCategory") @Expose @@ -46,7 +46,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Control Name. - * + * Control unique name. */ @SerializedName("controlName") @Expose @@ -54,7 +54,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Description. - * + * Description of the control. */ @SerializedName("description") @Expose @@ -62,7 +62,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Score. - * + * Tenant achieved score for the control (it varies day by day depending on tenant operations on the control). */ @SerializedName("score") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/DeviceDetail.java b/src/main/java/com/microsoft/graph/models/extensions/DeviceDetail.java new file mode 100644 index 00000000000..186a73a91c8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/DeviceDetail.java @@ -0,0 +1,135 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Device Detail. + */ +public class DeviceDetail implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Device Id. + * Refers to the UniqueID of the device used for signing in. + */ + @SerializedName("deviceId") + @Expose + public String deviceId; + + /** + * The Display Name. + * Refers to the name of the device used for signing in. + */ + @SerializedName("displayName") + @Expose + public String displayName; + + /** + * The Operating System. + * Indicates the operating system name and version used for signing in. + */ + @SerializedName("operatingSystem") + @Expose + public String operatingSystem; + + /** + * The Browser. + * Indicates the browser information of the used for signing in. + */ + @SerializedName("browser") + @Expose + public String browser; + + /** + * The Is Compliant. + * Indicates whether the device is compliant. + */ + @SerializedName("isCompliant") + @Expose + public Boolean isCompliant; + + /** + * The Is Managed. + * Indicates whether the device is managed. + */ + @SerializedName("isManaged") + @Expose + public Boolean isManaged; + + /** + * The Trust Type. + * Provides information about whether the signed-in device is Workplace Joined, AzureAD Joined, Domain Joined. + */ + @SerializedName("trustType") + @Expose + public String trustType; + + + /** + * 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/DirectoryAudit.java b/src/main/java/com/microsoft/graph/models/extensions/DirectoryAudit.java new file mode 100644 index 00000000000..cdb825c656d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/DirectoryAudit.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.models.extensions; +import com.microsoft.graph.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.generated.OperationResult; +import com.microsoft.graph.models.extensions.AuditActivityInitiator; +import com.microsoft.graph.models.extensions.TargetResource; +import com.microsoft.graph.models.extensions.KeyValue; +import com.microsoft.graph.models.extensions.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Audit. + */ +public class DirectoryAudit extends Entity implements IJsonBackedObject { + + + /** + * The Category. + * Indicates which resource category that's targeted by the activity. (For example: User Management, Group Management etc..) + */ + @SerializedName("category") + @Expose + public String category; + + /** + * The Correlation Id. + * Indicates a unique ID that helps correlate activities that span across various services. Can be used to trace logs across services. + */ + @SerializedName("correlationId") + @Expose + public String correlationId; + + /** + * The Result. + * Indicates the result of the activity.Possible values are: success, failure, timeout, unknownFutureValue. + */ + @SerializedName("result") + @Expose + public OperationResult result; + + /** + * The Result Reason. + * Describes cause of 'failure' or 'timeout' results. + */ + @SerializedName("resultReason") + @Expose + public String resultReason; + + /** + * The Activity Display Name. + * Indicates the activity name or the operation name (examples: 'Create User' and 'Add member to group'). For full list, see Azure AD activity list. + */ + @SerializedName("activityDisplayName") + @Expose + public String activityDisplayName; + + /** + * The Activity Date Time. + * Indicates the date and time the activity was performed. The Timestamp type is always in UTC time. For example, midnight UTC on Jan 1, 2014 would look like this: '2014-01-01T00:00:00Z' + */ + @SerializedName("activityDateTime") + @Expose + public java.util.Calendar activityDateTime; + + /** + * The Logged By Service. + * Indicates information on which service initiated the activity (For example: Self-service Password Management, Core Directory, B2C, Invited Users, Microsoft Identity Manager, Privileged Identity Management. + */ + @SerializedName("loggedByService") + @Expose + public String loggedByService; + + /** + * The Operation Type. + * + */ + @SerializedName("operationType") + @Expose + public String operationType; + + /** + * The Initiated By. + * Indicates information about the user or app initiated the activity. + */ + @SerializedName("initiatedBy") + @Expose + public AuditActivityInitiator initiatedBy; + + /** + * The Target Resources. + * Indicates information on which resource was changed due to the activity. Target Resource Type can be User, Device, Directory, App, Role, Group, Policy or Other. + */ + @SerializedName("targetResources") + @Expose + public java.util.List targetResources; + + /** + * The Additional Details. + * Indicates additional details on the activity. + */ + @SerializedName("additionalDetails") + @Expose + public java.util.List additionalDetails; + + + /** + * 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/DriveItem.java b/src/main/java/com/microsoft/graph/models/extensions/DriveItem.java index 9072c7b2409..90d8ed25c92 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/DriveItem.java +++ b/src/main/java/com/microsoft/graph/models/extensions/DriveItem.java @@ -26,6 +26,7 @@ import com.microsoft.graph.models.extensions.SharepointIds; import com.microsoft.graph.models.extensions.SpecialFolder; import com.microsoft.graph.models.extensions.Video; +import com.microsoft.graph.models.extensions.ItemAnalytics; import com.microsoft.graph.models.extensions.DriveItem; import com.microsoft.graph.models.extensions.ListItem; import com.microsoft.graph.models.extensions.Permission; @@ -220,6 +221,14 @@ public class DriveItem extends BaseItem implements IJsonBackedObject { @Expose public String webDavUrl; + /** + * The Analytics. + * + */ + @SerializedName("analytics") + @Expose + public ItemAnalytics analytics; + /** * The Children. * Collection containing Item objects for the immediate children of Item. Only items representing folders have children. Read-only. Nullable. diff --git a/src/main/java/com/microsoft/graph/models/extensions/IBaseGraphServiceClient.java b/src/main/java/com/microsoft/graph/models/extensions/IBaseGraphServiceClient.java index 4337653c662..dd7a4a3c15d 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/IBaseGraphServiceClient.java +++ b/src/main/java/com/microsoft/graph/models/extensions/IBaseGraphServiceClient.java @@ -453,4 +453,11 @@ public interface IBaseGraphServiceClient extends IBaseClient { */ IAppCatalogsRequestBuilder appCatalogs(); + /** + * Gets the GraphServiceRequestBuilder + * + * @return the AuditLogRoot + */ + IAuditLogRootRequestBuilder auditLogs(); + } diff --git a/src/main/java/com/microsoft/graph/models/extensions/IncompleteData.java b/src/main/java/com/microsoft/graph/models/extensions/IncompleteData.java new file mode 100644 index 00000000000..dbf03aa5273 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/IncompleteData.java @@ -0,0 +1,95 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Incomplete Data. + */ +public class IncompleteData implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Missing Data Before Date Time. + * + */ + @SerializedName("missingDataBeforeDateTime") + @Expose + public java.util.Calendar missingDataBeforeDateTime; + + /** + * The Was Throttled. + * + */ + @SerializedName("wasThrottled") + @Expose + public Boolean wasThrottled; + + + /** + * 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/ItemActionStat.java b/src/main/java/com/microsoft/graph/models/extensions/ItemActionStat.java new file mode 100644 index 00000000000..c749b801a1c --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/ItemActionStat.java @@ -0,0 +1,95 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Action Stat. + */ +public class ItemActionStat implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Action Count. + * + */ + @SerializedName("actionCount") + @Expose + public Integer actionCount; + + /** + * The Actor Count. + * + */ + @SerializedName("actorCount") + @Expose + public Integer actorCount; + + + /** + * 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/ItemActivity.java b/src/main/java/com/microsoft/graph/models/extensions/ItemActivity.java new file mode 100644 index 00000000000..f6e05da62b4 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/ItemActivity.java @@ -0,0 +1,105 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.AccessAction; +import com.microsoft.graph.models.extensions.IdentitySet; +import com.microsoft.graph.models.extensions.DriveItem; +import com.microsoft.graph.models.extensions.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity. + */ +public class ItemActivity extends Entity implements IJsonBackedObject { + + + /** + * The Access. + * + */ + @SerializedName("access") + @Expose + public AccessAction access; + + /** + * The Activity Date Time. + * + */ + @SerializedName("activityDateTime") + @Expose + public java.util.Calendar activityDateTime; + + /** + * The Actor. + * + */ + @SerializedName("actor") + @Expose + public IdentitySet actor; + + /** + * The Drive Item. + * + */ + @SerializedName("driveItem") + @Expose + public DriveItem driveItem; + + + /** + * 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/ItemActivityStat.java b/src/main/java/com/microsoft/graph/models/extensions/ItemActivityStat.java new file mode 100644 index 00000000000..b4829dcc2b7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/ItemActivityStat.java @@ -0,0 +1,169 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.ItemActionStat; +import com.microsoft.graph.models.extensions.IncompleteData; +import com.microsoft.graph.models.extensions.ItemActivity; +import com.microsoft.graph.models.extensions.Entity; +import com.microsoft.graph.requests.extensions.ItemActivityCollectionResponse; +import com.microsoft.graph.requests.extensions.ItemActivityCollectionPage; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Stat. + */ +public class ItemActivityStat extends Entity implements IJsonBackedObject { + + + /** + * The Start Date Time. + * + */ + @SerializedName("startDateTime") + @Expose + public java.util.Calendar startDateTime; + + /** + * The End Date Time. + * + */ + @SerializedName("endDateTime") + @Expose + public java.util.Calendar endDateTime; + + /** + * The Access. + * + */ + @SerializedName("access") + @Expose + public ItemActionStat access; + + /** + * The Create. + * + */ + @SerializedName("create") + @Expose + public ItemActionStat create; + + /** + * The Delete. + * + */ + @SerializedName("delete") + @Expose + public ItemActionStat delete; + + /** + * The Edit. + * + */ + @SerializedName("edit") + @Expose + public ItemActionStat edit; + + /** + * The Move. + * + */ + @SerializedName("move") + @Expose + public ItemActionStat move; + + /** + * The Is Trending. + * + */ + @SerializedName("isTrending") + @Expose + public Boolean isTrending; + + /** + * The Incomplete Data. + * + */ + @SerializedName("incompleteData") + @Expose + public IncompleteData incompleteData; + + /** + * The Activities. + * + */ + public ItemActivityCollectionPage activities; + + + /** + * 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("activities")) { + final ItemActivityCollectionResponse response = new ItemActivityCollectionResponse(); + if (json.has("activities@odata.nextLink")) { + response.nextLink = json.get("activities@odata.nextLink").getAsString(); + } + + final JsonObject[] sourceArray = serializer.deserializeObject(json.get("activities").toString(), JsonObject[].class); + final ItemActivity[] array = new ItemActivity[sourceArray.length]; + for (int i = 0; i < sourceArray.length; i++) { + array[i] = serializer.deserializeObject(sourceArray[i].toString(), ItemActivity.class); + array[i].setRawObject(serializer, sourceArray[i]); + } + response.value = Arrays.asList(array); + activities = new ItemActivityCollectionPage(response, null); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/extensions/ItemAnalytics.java b/src/main/java/com/microsoft/graph/models/extensions/ItemAnalytics.java new file mode 100644 index 00000000000..f53dd48a17d --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/ItemAnalytics.java @@ -0,0 +1,111 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.ItemActivityStat; +import com.microsoft.graph.models.extensions.Entity; +import com.microsoft.graph.requests.extensions.ItemActivityStatCollectionResponse; +import com.microsoft.graph.requests.extensions.ItemActivityStatCollectionPage; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Analytics. + */ +public class ItemAnalytics extends Entity implements IJsonBackedObject { + + + /** + * The Item Activity Stats. + * + */ + public ItemActivityStatCollectionPage itemActivityStats; + + /** + * The All Time. + * + */ + @SerializedName("allTime") + @Expose + public ItemActivityStat allTime; + + /** + * The Last Seven Days. + * + */ + @SerializedName("lastSevenDays") + @Expose + public ItemActivityStat lastSevenDays; + + + /** + * 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("itemActivityStats")) { + final ItemActivityStatCollectionResponse response = new ItemActivityStatCollectionResponse(); + if (json.has("itemActivityStats@odata.nextLink")) { + response.nextLink = json.get("itemActivityStats@odata.nextLink").getAsString(); + } + + final JsonObject[] sourceArray = serializer.deserializeObject(json.get("itemActivityStats").toString(), JsonObject[].class); + final ItemActivityStat[] array = new ItemActivityStat[sourceArray.length]; + for (int i = 0; i < sourceArray.length; i++) { + array[i] = serializer.deserializeObject(sourceArray[i].toString(), ItemActivityStat.class); + array[i].setRawObject(serializer, sourceArray[i]); + } + response.value = Arrays.asList(array); + itemActivityStats = new ItemActivityStatCollectionPage(response, null); + } + } +} diff --git a/src/main/java/com/microsoft/graph/models/extensions/KeyValue.java b/src/main/java/com/microsoft/graph/models/extensions/KeyValue.java new file mode 100644 index 00000000000..1257b292eef --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/KeyValue.java @@ -0,0 +1,95 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Key Value. + */ +public class KeyValue implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Key. + * Key for the key-value pair. + */ + @SerializedName("key") + @Expose + public String key; + + /** + * The Value. + * Value for the key-value pair. + */ + @SerializedName("value") + @Expose + public String value; + + + /** + * 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/ListItem.java b/src/main/java/com/microsoft/graph/models/extensions/ListItem.java index e81b3b6ecaa..ea05c36d0a1 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/ListItem.java +++ b/src/main/java/com/microsoft/graph/models/extensions/ListItem.java @@ -12,6 +12,7 @@ import java.util.EnumSet; import com.microsoft.graph.models.extensions.ContentTypeInfo; import com.microsoft.graph.models.extensions.SharepointIds; +import com.microsoft.graph.models.extensions.ItemAnalytics; import com.microsoft.graph.models.extensions.DriveItem; import com.microsoft.graph.models.extensions.FieldValueSet; import com.microsoft.graph.models.extensions.ListItemVersion; @@ -50,6 +51,14 @@ public class ListItem extends BaseItem implements IJsonBackedObject { @Expose public SharepointIds sharepointIds; + /** + * The Analytics. + * + */ + @SerializedName("analytics") + @Expose + public ItemAnalytics analytics; + /** * The Drive Item. * For document libraries, the driveItem relationship exposes the listItem as a [driveItem][] diff --git a/src/main/java/com/microsoft/graph/models/extensions/ModifiedProperty.java b/src/main/java/com/microsoft/graph/models/extensions/ModifiedProperty.java new file mode 100644 index 00000000000..1386864006e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/ModifiedProperty.java @@ -0,0 +1,103 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Modified Property. + */ +public class ModifiedProperty implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Display Name. + * Indicates the property name of the target attribute that was changed. + */ + @SerializedName("displayName") + @Expose + public String displayName; + + /** + * The Old Value. + * Indicates the previous value (before the update) for the property. + */ + @SerializedName("oldValue") + @Expose + public String oldValue; + + /** + * The New Value. + * Indicates the updated value for the propery. + */ + @SerializedName("newValue") + @Expose + public String newValue; + + + /** + * 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/RestrictedSignIn.java b/src/main/java/com/microsoft/graph/models/extensions/RestrictedSignIn.java new file mode 100644 index 00000000000..91818baca64 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/RestrictedSignIn.java @@ -0,0 +1,78 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.SignIn; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Restricted Sign In. + */ +public class RestrictedSignIn extends SignIn implements IJsonBackedObject { + + + /** + * The Target Tenant Id. + * + */ + @SerializedName("targetTenantId") + @Expose + public java.util.UUID targetTenantId; + + + /** + * 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/SecureScore.java b/src/main/java/com/microsoft/graph/models/extensions/SecureScore.java index 63316f9d03b..05c7a263185 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/SecureScore.java +++ b/src/main/java/com/microsoft/graph/models/extensions/SecureScore.java @@ -32,7 +32,7 @@ public class SecureScore extends Entity implements IJsonBackedObject { /** * The Active User Count. - * + * Active user count of the given tenant. */ @SerializedName("activeUserCount") @Expose @@ -40,7 +40,7 @@ public class SecureScore extends Entity implements IJsonBackedObject { /** * The Average Comparative Scores. - * + * Average score by different scopes (for example, average by industry, average by seating) and control category (Identity, Data, Device, Apps, Infrastructure) within the scope. */ @SerializedName("averageComparativeScores") @Expose @@ -48,7 +48,7 @@ public class SecureScore extends Entity implements IJsonBackedObject { /** * The Azure Tenant Id. - * + * GUID string for tenant ID. */ @SerializedName("azureTenantId") @Expose @@ -56,7 +56,7 @@ public class SecureScore extends Entity implements IJsonBackedObject { /** * The Control Scores. - * + * Contains tenant scores for a set of controls. */ @SerializedName("controlScores") @Expose @@ -64,7 +64,7 @@ public class SecureScore extends Entity implements IJsonBackedObject { /** * The Created Date Time. - * + * The date when the entity is created. */ @SerializedName("createdDateTime") @Expose @@ -72,7 +72,7 @@ public class SecureScore extends Entity implements IJsonBackedObject { /** * The Current Score. - * + * Tenant current attained score on specified date. */ @SerializedName("currentScore") @Expose @@ -80,7 +80,7 @@ public class SecureScore extends Entity implements IJsonBackedObject { /** * The Enabled Services. - * + * Microsoft-provided services for the tenant (for example, Exchange online, Skype, Sharepoint). */ @SerializedName("enabledServices") @Expose @@ -88,7 +88,7 @@ public class SecureScore extends Entity implements IJsonBackedObject { /** * The Licensed User Count. - * + * Licensed user count of the given tenant. */ @SerializedName("licensedUserCount") @Expose @@ -96,7 +96,7 @@ public class SecureScore extends Entity implements IJsonBackedObject { /** * The Max Score. - * + * Tenant maximum possible score on specified date. */ @SerializedName("maxScore") @Expose @@ -104,7 +104,7 @@ public class SecureScore extends Entity implements IJsonBackedObject { /** * The Vendor Information. - * + * Complex type containing details about the security product/service vendor, provider, and subprovider (for example, vendor=Microsoft; provider=SecureScore). Required. */ @SerializedName("vendorInformation") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/SecureScoreControlProfile.java b/src/main/java/com/microsoft/graph/models/extensions/SecureScoreControlProfile.java index ab68415974d..160461a9e7c 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/SecureScoreControlProfile.java +++ b/src/main/java/com/microsoft/graph/models/extensions/SecureScoreControlProfile.java @@ -32,7 +32,7 @@ public class SecureScoreControlProfile extends Entity implements IJsonBackedObje /** * The Action Type. - * + * Control action type (Config, Review, Behavior). */ @SerializedName("actionType") @Expose @@ -40,7 +40,7 @@ public class SecureScoreControlProfile extends Entity implements IJsonBackedObje /** * The Action Url. - * + * URL to where the control can be actioned. */ @SerializedName("actionUrl") @Expose @@ -48,7 +48,7 @@ public class SecureScoreControlProfile extends Entity implements IJsonBackedObje /** * The Azure Tenant Id. - * + * GUID string for tenant ID. */ @SerializedName("azureTenantId") @Expose @@ -64,7 +64,7 @@ public class SecureScoreControlProfile extends Entity implements IJsonBackedObje /** * The Control Category. - * + * Control action category (Identity, Data, Device, Apps, Infrastructure). */ @SerializedName("controlCategory") @Expose @@ -80,7 +80,7 @@ public class SecureScoreControlProfile extends Entity implements IJsonBackedObje /** * The Deprecated. - * + * Flag to indicate if a control is depreciated. */ @SerializedName("deprecated") @Expose @@ -88,7 +88,7 @@ public class SecureScoreControlProfile extends Entity implements IJsonBackedObje /** * The Implementation Cost. - * + * Resource cost of implemmentating control (low, moderate, high). */ @SerializedName("implementationCost") @Expose @@ -96,7 +96,7 @@ public class SecureScoreControlProfile extends Entity implements IJsonBackedObje /** * The Last Modified Date Time. - * + * Time at which the control profile entity was last modified. The Timestamp type represents date and time */ @SerializedName("lastModifiedDateTime") @Expose @@ -104,7 +104,7 @@ public class SecureScoreControlProfile extends Entity implements IJsonBackedObje /** * The Max Score. - * + * max attainable score for the control. */ @SerializedName("maxScore") @Expose @@ -112,7 +112,7 @@ public class SecureScoreControlProfile extends Entity implements IJsonBackedObje /** * The Rank. - * + * Microsoft's stack ranking of control. */ @SerializedName("rank") @Expose @@ -120,7 +120,7 @@ public class SecureScoreControlProfile extends Entity implements IJsonBackedObje /** * The Remediation. - * + * Description of what the control will help remediate. */ @SerializedName("remediation") @Expose @@ -128,7 +128,7 @@ public class SecureScoreControlProfile extends Entity implements IJsonBackedObje /** * The Remediation Impact. - * + * Description of the impact on users of the remediation. */ @SerializedName("remediationImpact") @Expose @@ -136,7 +136,7 @@ public class SecureScoreControlProfile extends Entity implements IJsonBackedObje /** * The Service. - * + * Service that owns the control (Exchange, Sharepoint, Azure AD). */ @SerializedName("service") @Expose @@ -144,7 +144,7 @@ public class SecureScoreControlProfile extends Entity implements IJsonBackedObje /** * The Threats. - * + * List of threats the control mitigates (accountBreach,dataDeletion,dataExfiltration,dataSpillage, */ @SerializedName("threats") @Expose @@ -160,7 +160,7 @@ public class SecureScoreControlProfile extends Entity implements IJsonBackedObje /** * The Title. - * + * Title of the control. */ @SerializedName("title") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/SecureScoreControlStateUpdate.java b/src/main/java/com/microsoft/graph/models/extensions/SecureScoreControlStateUpdate.java index 7cb1c3c34f2..694c1dcceab 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/SecureScoreControlStateUpdate.java +++ b/src/main/java/com/microsoft/graph/models/extensions/SecureScoreControlStateUpdate.java @@ -38,7 +38,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Assigned To. - * + * Assigns the control to the user who will take the action. */ @SerializedName("assignedTo") @Expose @@ -46,7 +46,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Comment. - * + * Provides optional comment about the control. */ @SerializedName("comment") @Expose @@ -54,7 +54,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The State. - * + * State of the control, which can be modified via a PATCH command (for example, ignored, thirdParty). */ @SerializedName("state") @Expose @@ -62,7 +62,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Updated By. - * + * ID of the user who updated tenant state. */ @SerializedName("updatedBy") @Expose @@ -70,7 +70,7 @@ public final AdditionalDataManager additionalDataManager() { /** * The Updated Date Time. - * + * Time at which the control state was updated. */ @SerializedName("updatedDateTime") @Expose diff --git a/src/main/java/com/microsoft/graph/models/extensions/SignIn.java b/src/main/java/com/microsoft/graph/models/extensions/SignIn.java new file mode 100644 index 00000000000..79a85972a19 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/SignIn.java @@ -0,0 +1,255 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.SignInStatus; +import com.microsoft.graph.models.extensions.DeviceDetail; +import com.microsoft.graph.models.extensions.SignInLocation; +import com.microsoft.graph.models.generated.ConditionalAccessStatus; +import com.microsoft.graph.models.extensions.AppliedConditionalAccessPolicy; +import com.microsoft.graph.models.generated.RiskDetail; +import com.microsoft.graph.models.generated.RiskLevel; +import com.microsoft.graph.models.generated.RiskState; +import com.microsoft.graph.models.generated.RiskEventType; +import com.microsoft.graph.models.extensions.Entity; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In. + */ +public class SignIn extends Entity implements IJsonBackedObject { + + + /** + * The Created Date Time. + * Date and time (UTC) the sign-in was initiated. Example: midnight on Jan 1, 2014 is reported as '2014-01-01T00:00:00Z'. + */ + @SerializedName("createdDateTime") + @Expose + public java.util.Calendar createdDateTime; + + /** + * The User Display Name. + * Display name of the user that initiated the sign-in. + */ + @SerializedName("userDisplayName") + @Expose + public String userDisplayName; + + /** + * The User Principal Name. + * User principal name of the user that initiated the sign-in. + */ + @SerializedName("userPrincipalName") + @Expose + public String userPrincipalName; + + /** + * The User Id. + * ID of the user that initiated the sign-in. + */ + @SerializedName("userId") + @Expose + public String userId; + + /** + * The App Id. + * Unique GUID representing the app ID in the Azure Active Directory. + */ + @SerializedName("appId") + @Expose + public String appId; + + /** + * The App Display Name. + * App name displayed in the Azure Portal. + */ + @SerializedName("appDisplayName") + @Expose + public String appDisplayName; + + /** + * The Ip Address. + * IP address of the client used to sign in. + */ + @SerializedName("ipAddress") + @Expose + public String ipAddress; + + /** + * The Status. + * Sign-in status. Possible values include Success and Failure. + */ + @SerializedName("status") + @Expose + public SignInStatus status; + + /** + * The Client App Used. + * Identifies the legacy client used for sign-in activity. Includes Browser, Exchange Active Sync, modern clients, IMAP, MAPI, SMTP, and POP. + */ + @SerializedName("clientAppUsed") + @Expose + public String clientAppUsed; + + /** + * The Device Detail. + * Device information from where the sign-in occurred; includes device ID, operating system, and browser. + */ + @SerializedName("deviceDetail") + @Expose + public DeviceDetail deviceDetail; + + /** + * The Location. + * Provides the city, state, and country code where the sign-in originated. + */ + @SerializedName("location") + @Expose + public SignInLocation location; + + /** + * The Correlation Id. + * The request ID sent from the client when the sign-in is initiated; used to troubleshoot sign-in activity. + */ + @SerializedName("correlationId") + @Expose + public String correlationId; + + /** + * The Conditional Access Status. + * Reports status of an activated conditional access policy. Possible values are: success, failure, notApplied, and unknownFutureValue. + */ + @SerializedName("conditionalAccessStatus") + @Expose + public ConditionalAccessStatus conditionalAccessStatus; + + /** + * The Applied Conditional Access Policies. + * + */ + @SerializedName("appliedConditionalAccessPolicies") + @Expose + public java.util.List appliedConditionalAccessPolicies; + + /** + * The Is Interactive. + * Indicates if a sign-in is interactive or not. + */ + @SerializedName("isInteractive") + @Expose + public Boolean isInteractive; + + /** + * The Risk Detail. + * Provides the 'reason' behind a specific state of a risky user, sign-in or a risk event. The possible values are: none, adminGeneratedTemporaryPassword, userPerformedSecuredPasswordChange, userPerformedSecuredPasswordReset, adminConfirmedSigninSafe, aiConfirmedSigninSafe, userPassedMFADrivenByRiskBasedPolicy, adminDismissedAllRiskForUser, adminConfirmedSigninCompromised, unknownFutureValue. The value none means that no action has been performed on the user or sign-in so far. Note: Details for this property require an Azure AD Premium P2 license. Other licenses return the value hidden. + */ + @SerializedName("riskDetail") + @Expose + public RiskDetail riskDetail; + + /** + * The Risk Level Aggregated. + * Aggregated risk level. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in was not enabled for Azure AD Identity Protection. Note: Details for this property are only available for Azure AD Premium P2 customers. All other customers will be returned hidden. + */ + @SerializedName("riskLevelAggregated") + @Expose + public RiskLevel riskLevelAggregated; + + /** + * The Risk Level During Sign In. + * Risk level during sign-in. The possible values are: none, low, medium, high, hidden, and unknownFutureValue. The value hidden means the user or sign-in was not enabled for Azure AD Identity Protection. Note: Details for this property are only available for Azure AD Premium P2 customers. All other customers will be returned hidden. + */ + @SerializedName("riskLevelDuringSignIn") + @Expose + public RiskLevel riskLevelDuringSignIn; + + /** + * The Risk State. + * Reports status of the risky user, sign-in, or a risk event. The possible values are: none, confirmedSafe, remediated, dismissed, atRisk, confirmedCompromised, unknownFutureValue. + */ + @SerializedName("riskState") + @Expose + public RiskState riskState; + + /** + * The Risk Event Types. + * Risk event types associated with the sign-in. The possible values are: unlikelyTravel, anonymizedIPAddress, maliciousIPAddress, unfamiliarFeatures, malwareInfectedIPAddress, suspiciousIPAddress, leakedCredentials, investigationsThreatIntelligence, generic, and unknownFutureValue. + */ + @SerializedName("riskEventTypes") + @Expose + public java.util.List riskEventTypes; + + /** + * The Resource Display Name. + * Name of the resource the user signed into. + */ + @SerializedName("resourceDisplayName") + @Expose + public String resourceDisplayName; + + /** + * The Resource Id. + * ID of the resource that the user signed into. + */ + @SerializedName("resourceId") + @Expose + public String resourceId; + + + /** + * 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/SignInLocation.java b/src/main/java/com/microsoft/graph/models/extensions/SignInLocation.java new file mode 100644 index 00000000000..f178c982a4a --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/SignInLocation.java @@ -0,0 +1,112 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.extensions.GeoCoordinates; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In Location. + */ +public class SignInLocation implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The City. + * Provides the city where the sign-in originated. This is calculated using latitude/longitude information from the sign-in activity. + */ + @SerializedName("city") + @Expose + public String city; + + /** + * The State. + * Provides the State where the sign-in originated. This is calculated using latitude/longitude information from the sign-in activity. + */ + @SerializedName("state") + @Expose + public String state; + + /** + * The Country Or Region. + * Provides the country code info (2 letter code) where the sign-in originated. This is calculated using latitude/longitude information from the sign-in activity. + */ + @SerializedName("countryOrRegion") + @Expose + public String countryOrRegion; + + /** + * The Geo Coordinates. + * Provides the latitude, longitude and altitude where the sign-in originated. + */ + @SerializedName("geoCoordinates") + @Expose + public GeoCoordinates geoCoordinates; + + + /** + * 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/SignInStatus.java b/src/main/java/com/microsoft/graph/models/extensions/SignInStatus.java new file mode 100644 index 00000000000..bd547ca6651 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/SignInStatus.java @@ -0,0 +1,103 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In Status. + */ +public class SignInStatus implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Error Code. + * Provides the 5-6digit error code that's generated during a sign-in failure. Check out the list of error codes and messages. + */ + @SerializedName("errorCode") + @Expose + public Integer errorCode; + + /** + * The Failure Reason. + * Provides the error message or the reason for failure for the corresponding sign-in activity. Check out the list of error codes and messages. + */ + @SerializedName("failureReason") + @Expose + public String failureReason; + + /** + * The Additional Details. + * Provides additional details on the sign-in activity + */ + @SerializedName("additionalDetails") + @Expose + public String additionalDetails; + + + /** + * 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/Site.java b/src/main/java/com/microsoft/graph/models/extensions/Site.java index 43a942f83eb..c663c118dd3 100644 --- a/src/main/java/com/microsoft/graph/models/extensions/Site.java +++ b/src/main/java/com/microsoft/graph/models/extensions/Site.java @@ -13,6 +13,7 @@ import com.microsoft.graph.models.extensions.Root; import com.microsoft.graph.models.extensions.SharepointIds; import com.microsoft.graph.models.extensions.SiteCollection; +import com.microsoft.graph.models.extensions.ItemAnalytics; import com.microsoft.graph.models.extensions.ColumnDefinition; import com.microsoft.graph.models.extensions.ContentType; import com.microsoft.graph.models.extensions.Drive; @@ -80,6 +81,14 @@ public class Site extends BaseItem implements IJsonBackedObject { @Expose public SiteCollection siteCollection; + /** + * The Analytics. + * + */ + @SerializedName("analytics") + @Expose + public ItemAnalytics analytics; + /** * The Columns. * The collection of column definitions reusable across lists under this site. diff --git a/src/main/java/com/microsoft/graph/models/extensions/TargetResource.java b/src/main/java/com/microsoft/graph/models/extensions/TargetResource.java new file mode 100644 index 00000000000..58747b0fda5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/TargetResource.java @@ -0,0 +1,129 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; +import com.microsoft.graph.models.generated.GroupType; +import com.microsoft.graph.models.extensions.ModifiedProperty; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Target Resource. + */ +public class TargetResource implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Id. + * Indicates the unique ID of the resource. + */ + @SerializedName("id") + @Expose + public String id; + + /** + * The Display Name. + * Indicates the visible name defined for the resource. Typically specified when the resource is created. + */ + @SerializedName("displayName") + @Expose + public String displayName; + + /** + * The Type. + * Describes the resource type. Example values include Application, Group, ServicePrincipal, and User. + */ + @SerializedName("type") + @Expose + public String type; + + /** + * The User Principal Name. + * When type is set to User, this includes the user name that initiated the action; null for other types. + */ + @SerializedName("userPrincipalName") + @Expose + public String userPrincipalName; + + /** + * The Group Type. + * When type is set to Group, this indicates the group type. + */ + @SerializedName("groupType") + @Expose + public GroupType groupType; + + /** + * The Modified Properties. + * Indicates name, old value and new value of each attribute that changed. Property values depend on the operation type. + */ + @SerializedName("modifiedProperties") + @Expose + public java.util.List modifiedProperties; + + + /** + * 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/UserIdentity.java b/src/main/java/com/microsoft/graph/models/extensions/UserIdentity.java new file mode 100644 index 00000000000..8fcfe1d2bb2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/extensions/UserIdentity.java @@ -0,0 +1,111 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; +import java.util.Arrays; +import java.util.EnumSet; + + +import com.google.gson.JsonObject; +import com.google.gson.JsonElement; +import com.google.gson.annotations.*; +import java.util.HashMap; +import java.util.Map; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the User Identity. + */ +public class UserIdentity implements IJsonBackedObject { + + @SerializedName("@odata.type") + @Expose + public String oDataType; + + private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this); + + @Override + public final AdditionalDataManager additionalDataManager() { + return additionalDataManager; + } + + /** + * The Id. + * Unique identifier for the identity. + */ + @SerializedName("id") + @Expose + public String id; + + /** + * The Display Name. + * The identity's display name. Note that this may not always be available or up-to-date. + */ + @SerializedName("displayName") + @Expose + public String displayName; + + /** + * The Ip Address. + * Indicates the client IP address used by user performing the activity (audit log only). + */ + @SerializedName("ipAddress") + @Expose + public String ipAddress; + + /** + * The User Principal Name. + * The userPrincipalName attribute of the user. + */ + @SerializedName("userPrincipalName") + @Expose + public String userPrincipalName; + + + /** + * 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/generated/AppliedConditionalAccessPolicyResult.java b/src/main/java/com/microsoft/graph/models/generated/AppliedConditionalAccessPolicyResult.java new file mode 100644 index 00000000000..c37e92622c5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/AppliedConditionalAccessPolicyResult.java @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Applied Conditional Access Policy Result. +*/ +public enum AppliedConditionalAccessPolicyResult +{ + /** + * success + */ + SUCCESS, + /** + * failure + */ + FAILURE, + /** + * not Applied + */ + NOT_APPLIED, + /** + * not Enabled + */ + NOT_ENABLED, + /** + * unknown + */ + UNKNOWN, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For AppliedConditionalAccessPolicyResult values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/generated/ConditionalAccessStatus.java b/src/main/java/com/microsoft/graph/models/generated/ConditionalAccessStatus.java new file mode 100644 index 00000000000..3b61f1c3223 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/ConditionalAccessStatus.java @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Conditional Access Status. +*/ +public enum ConditionalAccessStatus +{ + /** + * success + */ + SUCCESS, + /** + * failure + */ + FAILURE, + /** + * not Applied + */ + NOT_APPLIED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For ConditionalAccessStatus values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/generated/GroupType.java b/src/main/java/com/microsoft/graph/models/generated/GroupType.java new file mode 100644 index 00000000000..7c4bb391489 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/GroupType.java @@ -0,0 +1,29 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Group Type. +*/ +public enum GroupType +{ + /** + * unified Groups + */ + UNIFIED_GROUPS, + /** + * azure AD + */ + AZURE_AD, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For GroupType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/generated/OperationResult.java b/src/main/java/com/microsoft/graph/models/generated/OperationResult.java new file mode 100644 index 00000000000..0fecf8617da --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/OperationResult.java @@ -0,0 +1,33 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Operation Result. +*/ +public enum OperationResult +{ + /** + * success + */ + SUCCESS, + /** + * failure + */ + FAILURE, + /** + * timeout + */ + TIMEOUT, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For OperationResult values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/generated/RiskDetail.java b/src/main/java/com/microsoft/graph/models/generated/RiskDetail.java new file mode 100644 index 00000000000..538e2fde6c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/RiskDetail.java @@ -0,0 +1,65 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Risk Detail. +*/ +public enum RiskDetail +{ + /** + * none + */ + NONE, + /** + * admin Generated Temporary Password + */ + ADMIN_GENERATED_TEMPORARY_PASSWORD, + /** + * user Performed Secured Password Change + */ + USER_PERFORMED_SECURED_PASSWORD_CHANGE, + /** + * user Performed Secured Password Reset + */ + USER_PERFORMED_SECURED_PASSWORD_RESET, + /** + * admin Confirmed Signin Safe + */ + ADMIN_CONFIRMED_SIGNIN_SAFE, + /** + * ai Confirmed Signin Safe + */ + AI_CONFIRMED_SIGNIN_SAFE, + /** + * user Passed MFADriven By Risk Based Policy + */ + USER_PASSED_MFA_DRIVEN_BY_RISK_BASED_POLICY, + /** + * admin Dismissed All Risk For User + */ + ADMIN_DISMISSED_ALL_RISK_FOR_USER, + /** + * admin Confirmed Signin Compromised + */ + ADMIN_CONFIRMED_SIGNIN_COMPROMISED, + /** + * hidden + */ + HIDDEN, + /** + * admin Confirmed User Compromised + */ + ADMIN_CONFIRMED_USER_COMPROMISED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For RiskDetail values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/generated/RiskEventType.java b/src/main/java/com/microsoft/graph/models/generated/RiskEventType.java new file mode 100644 index 00000000000..2e4dce52749 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/RiskEventType.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.generated; + + +/** + * The Enum Risk Event Type. +*/ +public enum RiskEventType +{ + /** + * unlikely Travel + */ + UNLIKELY_TRAVEL, + /** + * anonymized IPAddress + */ + ANONYMIZED_IP_ADDRESS, + /** + * malicious IPAddress + */ + MALICIOUS_IP_ADDRESS, + /** + * unfamiliar Features + */ + UNFAMILIAR_FEATURES, + /** + * malware Infected IPAddress + */ + MALWARE_INFECTED_IP_ADDRESS, + /** + * suspicious IPAddress + */ + SUSPICIOUS_IP_ADDRESS, + /** + * leaked Credentials + */ + LEAKED_CREDENTIALS, + /** + * investigations Threat Intelligence + */ + INVESTIGATIONS_THREAT_INTELLIGENCE, + /** + * generic + */ + GENERIC, + /** + * admin Confirmed User Compromised + */ + ADMIN_CONFIRMED_USER_COMPROMISED, + /** + * mcas Impossible Travel + */ + MCAS_IMPOSSIBLE_TRAVEL, + /** + * mcas Suspicious Inbox Manipulation Rules + */ + MCAS_SUSPICIOUS_INBOX_MANIPULATION_RULES, + /** + * investigations Threat Intelligence Signin Linked + */ + INVESTIGATIONS_THREAT_INTELLIGENCE_SIGNIN_LINKED, + /** + * malicious IPAddress Valid Credentials Blocked IP + */ + MALICIOUS_IP_ADDRESS_VALID_CREDENTIALS_BLOCKED_IP, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For RiskEventType values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/generated/RiskLevel.java b/src/main/java/com/microsoft/graph/models/generated/RiskLevel.java new file mode 100644 index 00000000000..3462c11b70e --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/RiskLevel.java @@ -0,0 +1,41 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Risk Level. +*/ +public enum RiskLevel +{ + /** + * low + */ + LOW, + /** + * medium + */ + MEDIUM, + /** + * high + */ + HIGH, + /** + * hidden + */ + HIDDEN, + /** + * none + */ + NONE, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For RiskLevel values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/models/generated/RiskState.java b/src/main/java/com/microsoft/graph/models/generated/RiskState.java new file mode 100644 index 00000000000..e36076e5eb8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/models/generated/RiskState.java @@ -0,0 +1,45 @@ +// ------------------------------------------------------------------------------ +// Copyright (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 Risk State. +*/ +public enum RiskState +{ + /** + * none + */ + NONE, + /** + * confirmed Safe + */ + CONFIRMED_SAFE, + /** + * remediated + */ + REMEDIATED, + /** + * dismissed + */ + DISMISSED, + /** + * at Risk + */ + AT_RISK, + /** + * confirmed Compromised + */ + CONFIRMED_COMPROMISED, + /** + * unknown Future Value + */ + UNKNOWN_FUTURE_VALUE, + /** + * For RiskState values that were not expected from the service + */ + UNEXPECTED_VALUE +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequest.java new file mode 100644 index 00000000000..ea67b04bfb6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IAuditLogRootRequest; +import com.microsoft.graph.requests.extensions.AuditLogRootRequest; +import com.microsoft.graph.models.extensions.AuditLogRoot; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Audit Log Root Request. + */ +public class AuditLogRootRequest extends BaseRequest implements IAuditLogRootRequest { + + /** + * The request for the AuditLogRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AuditLogRootRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, AuditLogRoot.class); + } + + /** + * Gets the AuditLogRoot 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 AuditLogRoot from the service + * + * @return the AuditLogRoot from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public AuditLogRoot 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 AuditLogRoot with a source + * + * @param sourceAuditLogRoot the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final AuditLogRoot sourceAuditLogRoot, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceAuditLogRoot); + } + + /** + * Patches this AuditLogRoot with a source + * + * @param sourceAuditLogRoot the source object with updates + * @return the updated AuditLogRoot + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public AuditLogRoot patch(final AuditLogRoot sourceAuditLogRoot) throws ClientException { + return send(HttpMethod.PATCH, sourceAuditLogRoot); + } + + /** + * Creates a AuditLogRoot with a new object + * + * @param newAuditLogRoot the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final AuditLogRoot newAuditLogRoot, final ICallback callback) { + send(HttpMethod.POST, callback, newAuditLogRoot); + } + + /** + * Creates a AuditLogRoot with a new object + * + * @param newAuditLogRoot the new object to create + * @return the created AuditLogRoot + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public AuditLogRoot post(final AuditLogRoot newAuditLogRoot) throws ClientException { + return send(HttpMethod.POST, newAuditLogRoot); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IAuditLogRootRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (AuditLogRootRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IAuditLogRootRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (AuditLogRootRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequestBuilder.java new file mode 100644 index 00000000000..e3b24fa7768 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/AuditLogRootRequestBuilder.java @@ -0,0 +1,86 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IAuditLogRootRequest; +import com.microsoft.graph.requests.extensions.AuditLogRootRequest; +import com.microsoft.graph.requests.extensions.ISignInCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.SignInCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.ISignInRequestBuilder; +import com.microsoft.graph.requests.extensions.SignInRequestBuilder; +import com.microsoft.graph.requests.extensions.IDirectoryAuditCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.DirectoryAuditCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IDirectoryAuditRequestBuilder; +import com.microsoft.graph.requests.extensions.DirectoryAuditRequestBuilder; +import com.microsoft.graph.requests.extensions.IRestrictedSignInCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.RestrictedSignInCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IRestrictedSignInRequestBuilder; +import com.microsoft.graph.requests.extensions.RestrictedSignInRequestBuilder; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Audit Log Root Request Builder. + */ +public class AuditLogRootRequestBuilder extends BaseRequestBuilder implements IAuditLogRootRequestBuilder { + + /** + * The request builder for the AuditLogRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public AuditLogRootRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IAuditLogRootRequest instance + */ + public IAuditLogRootRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IAuditLogRootRequest instance + */ + public IAuditLogRootRequest buildRequest(final java.util.List requestOptions) { + return new AuditLogRootRequest(getRequestUrl(), getClient(), requestOptions); + } + + + public ISignInCollectionRequestBuilder signIns() { + return new SignInCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("signIns"), getClient(), null); + } + + public ISignInRequestBuilder signIns(final String id) { + return new SignInRequestBuilder(getRequestUrlWithAdditionalSegment("signIns") + "/" + id, getClient(), null); + } + public IDirectoryAuditCollectionRequestBuilder directoryAudits() { + return new DirectoryAuditCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("directoryAudits"), getClient(), null); + } + + public IDirectoryAuditRequestBuilder directoryAudits(final String id) { + return new DirectoryAuditRequestBuilder(getRequestUrlWithAdditionalSegment("directoryAudits") + "/" + id, getClient(), null); + } + public IRestrictedSignInCollectionRequestBuilder restrictedSignIns() { + return new RestrictedSignInCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("restrictedSignIns"), getClient(), null); + } + + public IRestrictedSignInRequestBuilder restrictedSignIns(final String id) { + return new RestrictedSignInRequestBuilder(getRequestUrlWithAdditionalSegment("restrictedSignIns") + "/" + id, getClient(), null); + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/BaseGraphServiceClient.java b/src/main/java/com/microsoft/graph/requests/extensions/BaseGraphServiceClient.java index 322b7650e21..9dd97883568 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/BaseGraphServiceClient.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/BaseGraphServiceClient.java @@ -591,4 +591,13 @@ public ISecurityRequestBuilder Security() { public IAppCatalogsRequestBuilder appCatalogs() { return new AppCatalogsRequestBuilder(getServiceRoot() + "/appCatalogs", (IGraphServiceClient)this, null); } + + /** + * Gets the GraphServiceRequestBuilder + * + * @return the AuditLogRoot + */ + public IAuditLogRootRequestBuilder auditLogs() { + return new AuditLogRootRequestBuilder(getServiceRoot() + "/auditLogs", (IGraphServiceClient)this, null); + } } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionPage.java new file mode 100644 index 00000000000..72625dc5145 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionPage.java @@ -0,0 +1,26 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.DirectoryAudit; +import com.microsoft.graph.requests.extensions.IDirectoryAuditCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Audit Collection Page. + */ +public class DirectoryAuditCollectionPage extends BaseCollectionPage implements IDirectoryAuditCollectionPage { + + /** + * A collection page for DirectoryAudit + * + * @param response the serialized DirectoryAuditCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public DirectoryAuditCollectionPage(final DirectoryAuditCollectionResponse response, final IDirectoryAuditCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequest.java new file mode 100644 index 00000000000..0ec2a1433b7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequest.java @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Audit Collection Request. + */ +public class DirectoryAuditCollectionRequest extends BaseCollectionRequest implements IDirectoryAuditCollectionRequest { + + /** + * The request builder for this collection of DirectoryAudit + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DirectoryAuditCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, DirectoryAuditCollectionResponse.class, IDirectoryAuditCollectionPage.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 IDirectoryAuditCollectionPage get() throws ClientException { + final DirectoryAuditCollectionResponse response = send(); + return buildFromResponse(response); + } + + public void post(final DirectoryAudit newDirectoryAudit, final ICallback callback) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + new DirectoryAuditRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newDirectoryAudit, callback); + } + + public DirectoryAudit post(final DirectoryAudit newDirectoryAudit) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new DirectoryAuditRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newDirectoryAudit); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IDirectoryAuditCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (DirectoryAuditCollectionRequest)this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IDirectoryAuditCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (DirectoryAuditCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public IDirectoryAuditCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value + "")); + return (DirectoryAuditCollectionRequest)this; + } + + public IDirectoryAuditCollectionPage buildFromResponse(final DirectoryAuditCollectionResponse response) { + final IDirectoryAuditCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new DirectoryAuditCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final DirectoryAuditCollectionPage page = new DirectoryAuditCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequestBuilder.java new file mode 100644 index 00000000000..df580feec50 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Audit Collection Request Builder. + */ +public class DirectoryAuditCollectionRequestBuilder extends BaseRequestBuilder implements IDirectoryAuditCollectionRequestBuilder { + + /** + * The request builder for this collection of AuditLogRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DirectoryAuditCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public IDirectoryAuditCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public IDirectoryAuditCollectionRequest buildRequest(final java.util.List requestOptions) { + return new DirectoryAuditCollectionRequest(getRequestUrl(), getClient(), requestOptions); + } + + public IDirectoryAuditRequestBuilder byId(final String id) { + return new DirectoryAuditRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionResponse.java new file mode 100644 index 00000000000..3a6141fb025 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditCollectionResponse.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.DirectoryAudit; + +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 Directory Audit Collection Response. + */ +public class DirectoryAuditCollectionResponse implements IJsonBackedObject { + + /** + * The list of DirectoryAudit 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/DirectoryAuditRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditRequest.java new file mode 100644 index 00000000000..0c35f66094e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IDirectoryAuditRequest; +import com.microsoft.graph.requests.extensions.DirectoryAuditRequest; +import com.microsoft.graph.models.extensions.DirectoryAudit; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Audit Request. + */ +public class DirectoryAuditRequest extends BaseRequest implements IDirectoryAuditRequest { + + /** + * The request for the DirectoryAudit + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DirectoryAuditRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, DirectoryAudit.class); + } + + /** + * Gets the DirectoryAudit 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 DirectoryAudit from the service + * + * @return the DirectoryAudit from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public DirectoryAudit 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 DirectoryAudit with a source + * + * @param sourceDirectoryAudit the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final DirectoryAudit sourceDirectoryAudit, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceDirectoryAudit); + } + + /** + * Patches this DirectoryAudit with a source + * + * @param sourceDirectoryAudit the source object with updates + * @return the updated DirectoryAudit + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public DirectoryAudit patch(final DirectoryAudit sourceDirectoryAudit) throws ClientException { + return send(HttpMethod.PATCH, sourceDirectoryAudit); + } + + /** + * Creates a DirectoryAudit with a new object + * + * @param newDirectoryAudit the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final DirectoryAudit newDirectoryAudit, final ICallback callback) { + send(HttpMethod.POST, callback, newDirectoryAudit); + } + + /** + * Creates a DirectoryAudit with a new object + * + * @param newDirectoryAudit the new object to create + * @return the created DirectoryAudit + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public DirectoryAudit post(final DirectoryAudit newDirectoryAudit) throws ClientException { + return send(HttpMethod.POST, newDirectoryAudit); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IDirectoryAuditRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (DirectoryAuditRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IDirectoryAuditRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (DirectoryAuditRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditRequestBuilder.java new file mode 100644 index 00000000000..8812ff937c3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DirectoryAuditRequestBuilder.java @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IDirectoryAuditRequest; +import com.microsoft.graph.requests.extensions.DirectoryAuditRequest; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Directory Audit Request Builder. + */ +public class DirectoryAuditRequestBuilder extends BaseRequestBuilder implements IDirectoryAuditRequestBuilder { + + /** + * The request builder for the DirectoryAudit + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DirectoryAuditRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IDirectoryAuditRequest instance + */ + public IDirectoryAuditRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IDirectoryAuditRequest instance + */ + public IDirectoryAuditRequest buildRequest(final java.util.List requestOptions) { + return new DirectoryAuditRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionPage.java new file mode 100644 index 00000000000..b7c24a5b96e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionPage.java @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; +import com.google.gson.annotations.*; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Drive Item Get Activities By Interval Collection Page. + */ +public class DriveItemGetActivitiesByIntervalCollectionPage extends BaseCollectionPage implements IDriveItemGetActivitiesByIntervalCollectionPage { + + /** + * A collection page for DriveItemGetActivitiesByInterval. + * + * @param response The serialized DriveItemGetActivitiesByIntervalCollectionResponse from the service + * @param builder The request builder for the next collection page + */ + public DriveItemGetActivitiesByIntervalCollectionPage(final DriveItemGetActivitiesByIntervalCollectionResponse response, final IDriveItemGetActivitiesByIntervalCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionRequest.java new file mode 100644 index 00000000000..6a22d1e31fc --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionRequest.java @@ -0,0 +1,104 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Drive Item Get Activities By Interval Collection Request. + */ +public class DriveItemGetActivitiesByIntervalCollectionRequest extends BaseCollectionRequest implements IDriveItemGetActivitiesByIntervalCollectionRequest { + + + /** + * The request for this DriveItemGetActivitiesByInterval + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DriveItemGetActivitiesByIntervalCollectionRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, DriveItemGetActivitiesByIntervalCollectionResponse.class, IDriveItemGetActivitiesByIntervalCollectionPage.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 IDriveItemGetActivitiesByIntervalCollectionPage get() throws ClientException { + final DriveItemGetActivitiesByIntervalCollectionResponse response = send(); + return buildFromResponse(response); + } + + + public IDriveItemGetActivitiesByIntervalCollectionPage buildFromResponse(final DriveItemGetActivitiesByIntervalCollectionResponse response) { + final IDriveItemGetActivitiesByIntervalCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new DriveItemGetActivitiesByIntervalCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final IDriveItemGetActivitiesByIntervalCollectionPage page = new DriveItemGetActivitiesByIntervalCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IDriveItemGetActivitiesByIntervalCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (IDriveItemGetActivitiesByIntervalCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public IDriveItemGetActivitiesByIntervalCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value+"")); + return (IDriveItemGetActivitiesByIntervalCollectionRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IDriveItemGetActivitiesByIntervalCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (IDriveItemGetActivitiesByIntervalCollectionRequest)this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionRequestBuilder.java new file mode 100644 index 00000000000..4ca0a0d37e3 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionRequestBuilder.java @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Drive Item Get Activities By Interval Collection Request Builder. + */ +public class DriveItemGetActivitiesByIntervalCollectionRequestBuilder extends BaseFunctionRequestBuilder implements IDriveItemGetActivitiesByIntervalCollectionRequestBuilder { + + /** + * The request builder for this collection of DriveItem + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public DriveItemGetActivitiesByIntervalCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public IDriveItemGetActivitiesByIntervalCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public IDriveItemGetActivitiesByIntervalCollectionRequest buildRequest(final java.util.List requestOptions) { + DriveItemGetActivitiesByIntervalCollectionRequest request = new DriveItemGetActivitiesByIntervalCollectionRequest( + getRequestUrl(), + getClient(), + requestOptions + ); + + for (FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionResponse.java new file mode 100644 index 00000000000..2088487122a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/DriveItemGetActivitiesByIntervalCollectionResponse.java @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import com.google.gson.annotations.*; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Drive Item Get Activities By Interval Collection Response. + */ +public class DriveItemGetActivitiesByIntervalCollectionResponse implements IJsonBackedObject { + + @SerializedName("value") + @Expose + public java.util.List value; + + @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/DriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/DriveItemRequestBuilder.java index 3b4b8001b5c..169591ecc98 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/DriveItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/DriveItemRequestBuilder.java @@ -5,6 +5,8 @@ package com.microsoft.graph.requests.extensions; import com.microsoft.graph.requests.extensions.IDriveItemRequest; import com.microsoft.graph.requests.extensions.DriveItemRequest; +import com.microsoft.graph.requests.extensions.IItemAnalyticsWithReferenceRequestBuilder; +import com.microsoft.graph.requests.extensions.ItemAnalyticsWithReferenceRequestBuilder; import com.microsoft.graph.requests.extensions.IDriveItemCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.DriveItemCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IDriveItemRequestBuilder; @@ -48,6 +50,8 @@ import com.microsoft.graph.requests.extensions.DriveItemDeltaCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IDriveItemDeltaCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.DriveItemDeltaCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IDriveItemGetActivitiesByIntervalCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.DriveItemGetActivitiesByIntervalCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IDriveItemSearchCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.DriveItemSearchCollectionRequestBuilder; @@ -98,6 +102,15 @@ public IDriveItemRequestBuilder itemWithPath(final String path) { return new DriveItemRequestBuilder(getRequestUrl() + ":/" + path + ":", getClient(), null); } + + /** + * Gets the request builder for ItemAnalytics + * + * @return the IItemAnalyticsWithReferenceRequestBuilder instance + */ + public IItemAnalyticsWithReferenceRequestBuilder analytics() { + return new ItemAnalyticsWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("analytics"), getClient(), null); + } public IDriveItemCollectionRequestBuilder children() { return new DriveItemCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("children"), getClient(), null); } @@ -184,6 +197,10 @@ public IDriveItemDeltaCollectionRequestBuilder delta() { return new DriveItemDeltaCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.delta"), getClient(), null); } + public IDriveItemGetActivitiesByIntervalCollectionRequestBuilder getActivitiesByInterval() { + return new DriveItemGetActivitiesByIntervalCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getActivitiesByInterval"), getClient(), null); + } + public IDriveItemSearchCollectionRequestBuilder search(final String q) { return new DriveItemSearchCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.search"), getClient(), null, q); } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequest.java new file mode 100644 index 00000000000..df68a23a3a9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.AuditLogRoot; + +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 Audit Log Root Request. + */ +public interface IAuditLogRootRequest extends IHttpRequest { + + /** + * Gets the AuditLogRoot from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the AuditLogRoot from the service + * + * @return the AuditLogRoot from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + AuditLogRoot 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 AuditLogRoot with a source + * + * @param sourceAuditLogRoot the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final AuditLogRoot sourceAuditLogRoot, final ICallback callback); + + /** + * Patches this AuditLogRoot with a source + * + * @param sourceAuditLogRoot the source object with updates + * @return the updated AuditLogRoot + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + AuditLogRoot patch(final AuditLogRoot sourceAuditLogRoot) throws ClientException; + + /** + * Posts a AuditLogRoot with a new object + * + * @param newAuditLogRoot the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final AuditLogRoot newAuditLogRoot, final ICallback callback); + + /** + * Posts a AuditLogRoot with a new object + * + * @param newAuditLogRoot the new object to create + * @return the created AuditLogRoot + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + AuditLogRoot post(final AuditLogRoot newAuditLogRoot) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IAuditLogRootRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IAuditLogRootRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequestBuilder.java new file mode 100644 index 00000000000..35412ee6a6e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IAuditLogRootRequestBuilder.java @@ -0,0 +1,52 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IAuditLogRootRequest; +import com.microsoft.graph.requests.extensions.ISignInCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.ISignInRequestBuilder; +import com.microsoft.graph.requests.extensions.IDirectoryAuditCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IDirectoryAuditRequestBuilder; +import com.microsoft.graph.requests.extensions.IRestrictedSignInCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IRestrictedSignInRequestBuilder; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Audit Log Root Request Builder. + */ +public interface IAuditLogRootRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the IAuditLogRootRequest instance + */ + IAuditLogRootRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IAuditLogRootRequest instance + */ + IAuditLogRootRequest buildRequest(final java.util.List requestOptions); + + + ISignInCollectionRequestBuilder signIns(); + + ISignInRequestBuilder signIns(final String id); + + IDirectoryAuditCollectionRequestBuilder directoryAudits(); + + IDirectoryAuditRequestBuilder directoryAudits(final String id); + + IRestrictedSignInCollectionRequestBuilder restrictedSignIns(); + + IRestrictedSignInRequestBuilder restrictedSignIns(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionPage.java new file mode 100644 index 00000000000..2a0c110a4e6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Directory Audit Collection Page. + */ +public interface IDirectoryAuditCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequest.java new file mode 100644 index 00000000000..b179ee781ae --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequest.java @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Directory Audit Collection Request. + */ +public interface IDirectoryAuditCollectionRequest { + + void get(final ICallback callback); + + IDirectoryAuditCollectionPage get() throws ClientException; + + void post(final DirectoryAudit newDirectoryAudit, final ICallback callback); + + DirectoryAudit post(final DirectoryAudit newDirectoryAudit) throws ClientException; + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IDirectoryAuditCollectionRequest expand(final String value); + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IDirectoryAuditCollectionRequest select(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + IDirectoryAuditCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequestBuilder.java new file mode 100644 index 00000000000..09130654667 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Directory Audit Collection Request Builder. + */ +public interface IDirectoryAuditCollectionRequestBuilder extends IRequestBuilder { + + IDirectoryAuditCollectionRequest buildRequest(); + + IDirectoryAuditCollectionRequest buildRequest(final java.util.List requestOptions); + + IDirectoryAuditRequestBuilder byId(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequest.java new file mode 100644 index 00000000000..e92f8bdc28a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.DirectoryAudit; + +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 Directory Audit Request. + */ +public interface IDirectoryAuditRequest extends IHttpRequest { + + /** + * Gets the DirectoryAudit from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the DirectoryAudit from the service + * + * @return the DirectoryAudit from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + DirectoryAudit 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 DirectoryAudit with a source + * + * @param sourceDirectoryAudit the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final DirectoryAudit sourceDirectoryAudit, final ICallback callback); + + /** + * Patches this DirectoryAudit with a source + * + * @param sourceDirectoryAudit the source object with updates + * @return the updated DirectoryAudit + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + DirectoryAudit patch(final DirectoryAudit sourceDirectoryAudit) throws ClientException; + + /** + * Posts a DirectoryAudit with a new object + * + * @param newDirectoryAudit the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final DirectoryAudit newDirectoryAudit, final ICallback callback); + + /** + * Posts a DirectoryAudit with a new object + * + * @param newDirectoryAudit the new object to create + * @return the created DirectoryAudit + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + DirectoryAudit post(final DirectoryAudit newDirectoryAudit) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IDirectoryAuditRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IDirectoryAuditRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequestBuilder.java new file mode 100644 index 00000000000..f241a48d9f0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDirectoryAuditRequestBuilder.java @@ -0,0 +1,34 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IDirectoryAuditRequest; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Directory Audit Request Builder. + */ +public interface IDirectoryAuditRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the IDirectoryAuditRequest instance + */ + IDirectoryAuditRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IDirectoryAuditRequest instance + */ + IDirectoryAuditRequest buildRequest(final java.util.List requestOptions); + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemGetActivitiesByIntervalCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemGetActivitiesByIntervalCollectionPage.java new file mode 100644 index 00000000000..5ee09cec52c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemGetActivitiesByIntervalCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Drive Item Get Activities By Interval Collection Page. + */ +public interface IDriveItemGetActivitiesByIntervalCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemGetActivitiesByIntervalCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemGetActivitiesByIntervalCollectionRequest.java new file mode 100644 index 00000000000..f2e12e2e449 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemGetActivitiesByIntervalCollectionRequest.java @@ -0,0 +1,57 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; +import com.google.gson.annotations.*; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Drive Item Get Activities By Interval Collection Request. + */ +public interface IDriveItemGetActivitiesByIntervalCollectionRequest { + + void get(final ICallback callback); + + IDriveItemGetActivitiesByIntervalCollectionPage get() throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IDriveItemGetActivitiesByIntervalCollectionRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IDriveItemGetActivitiesByIntervalCollectionRequest expand(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + IDriveItemGetActivitiesByIntervalCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemGetActivitiesByIntervalCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemGetActivitiesByIntervalCollectionRequestBuilder.java new file mode 100644 index 00000000000..b059523ebcd --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemGetActivitiesByIntervalCollectionRequestBuilder.java @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Drive Item Get Activities By Interval Collection Request Builder. + */ +public interface IDriveItemGetActivitiesByIntervalCollectionRequestBuilder extends IRequestBuilder { + + IDriveItemGetActivitiesByIntervalCollectionRequest buildRequest(); + + IDriveItemGetActivitiesByIntervalCollectionRequest buildRequest(final java.util.List requestOptions); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemRequestBuilder.java index 024c6f4945a..8d88f444fe1 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IDriveItemRequestBuilder.java @@ -4,6 +4,7 @@ package com.microsoft.graph.requests.extensions; import com.microsoft.graph.requests.extensions.IDriveItemRequest; +import com.microsoft.graph.requests.extensions.IItemAnalyticsWithReferenceRequestBuilder; import com.microsoft.graph.requests.extensions.IDriveItemCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IDriveItemRequestBuilder; import com.microsoft.graph.requests.extensions.IListItemRequestBuilder; @@ -27,6 +28,7 @@ import com.microsoft.graph.requests.extensions.IDriveItemPreviewRequestBuilder; import com.microsoft.graph.requests.extensions.IDriveItemDeltaCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IDriveItemDeltaCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IDriveItemGetActivitiesByIntervalCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IDriveItemSearchCollectionRequestBuilder; import com.microsoft.graph.http.IRequestBuilder; @@ -61,6 +63,13 @@ public interface IDriveItemRequestBuilder extends IRequestBuilder { */ IDriveItemRequestBuilder itemWithPath(final String path); + /** + * Gets the request builder for ItemAnalytics + * + * @return the IItemAnalyticsWithReferenceRequestBuilder instance + */ + IItemAnalyticsWithReferenceRequestBuilder analytics(); + IDriveItemCollectionRequestBuilder children(); IDriveItemRequestBuilder children(final String id); @@ -107,6 +116,8 @@ public interface IDriveItemRequestBuilder extends IRequestBuilder { IDriveItemDeltaCollectionRequestBuilder delta(); + IDriveItemGetActivitiesByIntervalCollectionRequestBuilder getActivitiesByInterval(); + IDriveItemSearchCollectionRequestBuilder search(final String q); } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityCollectionPage.java new file mode 100644 index 00000000000..db17c32283a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Item Activity Collection Page. + */ +public interface IItemActivityCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityCollectionRequest.java new file mode 100644 index 00000000000..0dd492d1318 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityCollectionRequest.java @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Item Activity Collection Request. + */ +public interface IItemActivityCollectionRequest { + + void get(final ICallback callback); + + IItemActivityCollectionPage get() throws ClientException; + + void post(final ItemActivity newItemActivity, final ICallback callback); + + ItemActivity post(final ItemActivity newItemActivity) throws ClientException; + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IItemActivityCollectionRequest expand(final String value); + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IItemActivityCollectionRequest select(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + IItemActivityCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityCollectionRequestBuilder.java new file mode 100644 index 00000000000..f2cc3d386be --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Item Activity Collection Request Builder. + */ +public interface IItemActivityCollectionRequestBuilder extends IRequestBuilder { + + IItemActivityCollectionRequest buildRequest(); + + IItemActivityCollectionRequest buildRequest(final java.util.List requestOptions); + + IItemActivityRequestBuilder byId(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityRequest.java new file mode 100644 index 00000000000..c8f8ba84cfa --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ItemActivity; + +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 Item Activity Request. + */ +public interface IItemActivityRequest extends IHttpRequest { + + /** + * Gets the ItemActivity from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the ItemActivity from the service + * + * @return the ItemActivity from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + ItemActivity 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 ItemActivity with a source + * + * @param sourceItemActivity the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final ItemActivity sourceItemActivity, final ICallback callback); + + /** + * Patches this ItemActivity with a source + * + * @param sourceItemActivity the source object with updates + * @return the updated ItemActivity + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + ItemActivity patch(final ItemActivity sourceItemActivity) throws ClientException; + + /** + * Posts a ItemActivity with a new object + * + * @param newItemActivity the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final ItemActivity newItemActivity, final ICallback callback); + + /** + * Posts a ItemActivity with a new object + * + * @param newItemActivity the new object to create + * @return the created ItemActivity + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + ItemActivity post(final ItemActivity newItemActivity) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IItemActivityRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IItemActivityRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityRequestBuilder.java new file mode 100644 index 00000000000..871fd014a5f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityRequestBuilder.java @@ -0,0 +1,42 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IItemActivityRequest; +import com.microsoft.graph.requests.extensions.IDriveItemRequestBuilder; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Item Activity Request Builder. + */ +public interface IItemActivityRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the IItemActivityRequest instance + */ + IItemActivityRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IItemActivityRequest instance + */ + IItemActivityRequest buildRequest(final java.util.List requestOptions); + + + /** + * Gets the request builder for DriveItem + * + * @return the IDriveItemRequestBuilder instance + */ + IDriveItemRequestBuilder driveItem(); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatCollectionPage.java new file mode 100644 index 00000000000..3c09710d91d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Item Activity Stat Collection Page. + */ +public interface IItemActivityStatCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatCollectionRequest.java new file mode 100644 index 00000000000..a426c889297 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatCollectionRequest.java @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Item Activity Stat Collection Request. + */ +public interface IItemActivityStatCollectionRequest { + + void get(final ICallback callback); + + IItemActivityStatCollectionPage get() throws ClientException; + + void post(final ItemActivityStat newItemActivityStat, final ICallback callback); + + ItemActivityStat post(final ItemActivityStat newItemActivityStat) throws ClientException; + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IItemActivityStatCollectionRequest expand(final String value); + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IItemActivityStatCollectionRequest select(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + IItemActivityStatCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatCollectionRequestBuilder.java new file mode 100644 index 00000000000..dcfd0f75d0d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Item Activity Stat Collection Request Builder. + */ +public interface IItemActivityStatCollectionRequestBuilder extends IRequestBuilder { + + IItemActivityStatCollectionRequest buildRequest(); + + IItemActivityStatCollectionRequest buildRequest(final java.util.List requestOptions); + + IItemActivityStatRequestBuilder byId(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatReferenceRequest.java new file mode 100644 index 00000000000..e183127c85f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatReferenceRequest.java @@ -0,0 +1,62 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Item Activity Stat Reference Request. + */ +public interface IItemActivityStatReferenceRequest extends IHttpRequest { + + void delete(final ICallback callback); + + ItemActivityStat delete() throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IItemActivityStatReferenceRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IItemActivityStatReferenceRequest expand(final String value); + + /** + * Puts the ItemActivityStat + * + * @param srcItemActivityStat the ItemActivityStat to PUT + * @param callback the callback to be called after success or failure + */ + void put(ItemActivityStat srcItemActivityStat, final ICallback callback); + + /** + * Puts the ItemActivityStat + * + * @param srcItemActivityStat the ItemActivityStat to PUT + * @return the ItemActivityStat + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + ItemActivityStat put(ItemActivityStat srcItemActivityStat) throws ClientException; +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatReferenceRequestBuilder.java new file mode 100644 index 00000000000..2287d759f4f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatReferenceRequestBuilder.java @@ -0,0 +1,40 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Item Activity Stat Reference Request Builder. + */ +public interface IItemActivityStatReferenceRequestBuilder extends IRequestBuilder { + + /** + * Creates the request + * + * @return the IItemActivityStatReferenceRequest instance + */ + IItemActivityStatReferenceRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IItemActivityStatReferenceRequest instance + */ + IItemActivityStatReferenceRequest buildRequest(final java.util.List requestOptions); +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatRequest.java new file mode 100644 index 00000000000..46330e14337 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ItemActivityStat; + +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 Item Activity Stat Request. + */ +public interface IItemActivityStatRequest extends IHttpRequest { + + /** + * Gets the ItemActivityStat from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the ItemActivityStat from the service + * + * @return the ItemActivityStat from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + ItemActivityStat 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 ItemActivityStat with a source + * + * @param sourceItemActivityStat the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final ItemActivityStat sourceItemActivityStat, final ICallback callback); + + /** + * Patches this ItemActivityStat with a source + * + * @param sourceItemActivityStat the source object with updates + * @return the updated ItemActivityStat + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + ItemActivityStat patch(final ItemActivityStat sourceItemActivityStat) throws ClientException; + + /** + * Posts a ItemActivityStat with a new object + * + * @param newItemActivityStat the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final ItemActivityStat newItemActivityStat, final ICallback callback); + + /** + * Posts a ItemActivityStat with a new object + * + * @param newItemActivityStat the new object to create + * @return the created ItemActivityStat + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + ItemActivityStat post(final ItemActivityStat newItemActivityStat) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IItemActivityStatRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IItemActivityStatRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatRequestBuilder.java new file mode 100644 index 00000000000..cf38ce5b1c7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatRequestBuilder.java @@ -0,0 +1,40 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IItemActivityStatRequest; +import com.microsoft.graph.requests.extensions.IItemActivityCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IItemActivityRequestBuilder; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Item Activity Stat Request Builder. + */ +public interface IItemActivityStatRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the IItemActivityStatRequest instance + */ + IItemActivityStatRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IItemActivityStatRequest instance + */ + IItemActivityStatRequest buildRequest(final java.util.List requestOptions); + + + IItemActivityCollectionRequestBuilder activities(); + + IItemActivityRequestBuilder activities(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatWithReferenceRequest.java new file mode 100644 index 00000000000..cc5b8b372c2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatWithReferenceRequest.java @@ -0,0 +1,46 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Item Activity Stat With Reference Request. + */ +public interface IItemActivityStatWithReferenceRequest extends IHttpRequest { + + void post(final ItemActivityStat newItemActivityStat, final IJsonBackedObject payload, final ICallback callback); + + ItemActivityStat post(final ItemActivityStat newItemActivityStat, final IJsonBackedObject payload) throws ClientException; + + void get(final ICallback callback); + + ItemActivityStat get() throws ClientException; + + void delete(final ICallback callback); + + void delete() throws ClientException; + + void patch(final ItemActivityStat sourceItemActivityStat, final ICallback callback); + + ItemActivityStat patch(final ItemActivityStat sourceItemActivityStat) throws ClientException; + + IItemActivityStatWithReferenceRequest select(final String value); + + IItemActivityStatWithReferenceRequest expand(final String value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..10433565d2d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemActivityStatWithReferenceRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Item Activity Stat With Reference Request Builder. + */ +public interface IItemActivityStatWithReferenceRequestBuilder extends IRequestBuilder { + + /** + * Creates the request + * + * @return the IItemActivityStatWithReferenceRequest instance + */ + IItemActivityStatWithReferenceRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IItemActivityStatWithReferenceRequest instance + */ + IItemActivityStatWithReferenceRequest buildRequest(final java.util.List requestOptions); + + IItemActivityStatReferenceRequestBuilder reference(); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsReferenceRequest.java new file mode 100644 index 00000000000..8e9bd6de5a6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsReferenceRequest.java @@ -0,0 +1,62 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Item Analytics Reference Request. + */ +public interface IItemAnalyticsReferenceRequest extends IHttpRequest { + + void delete(final ICallback callback); + + ItemAnalytics delete() throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IItemAnalyticsReferenceRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IItemAnalyticsReferenceRequest expand(final String value); + + /** + * Puts the ItemAnalytics + * + * @param srcItemAnalytics the ItemAnalytics to PUT + * @param callback the callback to be called after success or failure + */ + void put(ItemAnalytics srcItemAnalytics, final ICallback callback); + + /** + * Puts the ItemAnalytics + * + * @param srcItemAnalytics the ItemAnalytics to PUT + * @return the ItemAnalytics + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + ItemAnalytics put(ItemAnalytics srcItemAnalytics) throws ClientException; +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsReferenceRequestBuilder.java new file mode 100644 index 00000000000..43e7e155685 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsReferenceRequestBuilder.java @@ -0,0 +1,40 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Item Analytics Reference Request Builder. + */ +public interface IItemAnalyticsReferenceRequestBuilder extends IRequestBuilder { + + /** + * Creates the request + * + * @return the IItemAnalyticsReferenceRequest instance + */ + IItemAnalyticsReferenceRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IItemAnalyticsReferenceRequest instance + */ + IItemAnalyticsReferenceRequest buildRequest(final java.util.List requestOptions); +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsRequest.java new file mode 100644 index 00000000000..eb7c4c1c88b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ItemAnalytics; + +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 Item Analytics Request. + */ +public interface IItemAnalyticsRequest extends IHttpRequest { + + /** + * Gets the ItemAnalytics from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the ItemAnalytics from the service + * + * @return the ItemAnalytics from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + ItemAnalytics 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 ItemAnalytics with a source + * + * @param sourceItemAnalytics the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final ItemAnalytics sourceItemAnalytics, final ICallback callback); + + /** + * Patches this ItemAnalytics with a source + * + * @param sourceItemAnalytics the source object with updates + * @return the updated ItemAnalytics + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + ItemAnalytics patch(final ItemAnalytics sourceItemAnalytics) throws ClientException; + + /** + * Posts a ItemAnalytics with a new object + * + * @param newItemAnalytics the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final ItemAnalytics newItemAnalytics, final ICallback callback); + + /** + * Posts a ItemAnalytics with a new object + * + * @param newItemAnalytics the new object to create + * @return the created ItemAnalytics + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + ItemAnalytics post(final ItemAnalytics newItemAnalytics) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IItemAnalyticsRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IItemAnalyticsRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsRequestBuilder.java new file mode 100644 index 00000000000..767d18baf1e --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsRequestBuilder.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.requests.extensions.IItemAnalyticsRequest; +import com.microsoft.graph.requests.extensions.IItemActivityStatCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IItemActivityStatRequestBuilder; +import com.microsoft.graph.requests.extensions.IItemActivityStatWithReferenceRequestBuilder; +import com.microsoft.graph.requests.extensions.IItemActivityStatWithReferenceRequestBuilder; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Item Analytics Request Builder. + */ +public interface IItemAnalyticsRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the IItemAnalyticsRequest instance + */ + IItemAnalyticsRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IItemAnalyticsRequest instance + */ + IItemAnalyticsRequest buildRequest(final java.util.List requestOptions); + + + IItemActivityStatCollectionRequestBuilder itemActivityStats(); + + IItemActivityStatRequestBuilder itemActivityStats(final String id); + + /** + * Gets the request builder for ItemActivityStat + * + * @return the IItemActivityStatWithReferenceRequestBuilder instance + */ + IItemActivityStatWithReferenceRequestBuilder allTime(); + + /** + * Gets the request builder for ItemActivityStat + * + * @return the IItemActivityStatWithReferenceRequestBuilder instance + */ + IItemActivityStatWithReferenceRequestBuilder lastSevenDays(); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsWithReferenceRequest.java new file mode 100644 index 00000000000..975f9dcf470 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsWithReferenceRequest.java @@ -0,0 +1,46 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Item Analytics With Reference Request. + */ +public interface IItemAnalyticsWithReferenceRequest extends IHttpRequest { + + void post(final ItemAnalytics newItemAnalytics, final IJsonBackedObject payload, final ICallback callback); + + ItemAnalytics post(final ItemAnalytics newItemAnalytics, final IJsonBackedObject payload) throws ClientException; + + void get(final ICallback callback); + + ItemAnalytics get() throws ClientException; + + void delete(final ICallback callback); + + void delete() throws ClientException; + + void patch(final ItemAnalytics sourceItemAnalytics, final ICallback callback); + + ItemAnalytics patch(final ItemAnalytics sourceItemAnalytics) throws ClientException; + + IItemAnalyticsWithReferenceRequest select(final String value); + + IItemAnalyticsWithReferenceRequest expand(final String value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..ff82b10a547 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IItemAnalyticsWithReferenceRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Item Analytics With Reference Request Builder. + */ +public interface IItemAnalyticsWithReferenceRequestBuilder extends IRequestBuilder { + + /** + * Creates the request + * + * @return the IItemAnalyticsWithReferenceRequest instance + */ + IItemAnalyticsWithReferenceRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IItemAnalyticsWithReferenceRequest instance + */ + IItemAnalyticsWithReferenceRequest buildRequest(final java.util.List requestOptions); + + IItemAnalyticsReferenceRequestBuilder reference(); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IListItemGetActivitiesByIntervalCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/IListItemGetActivitiesByIntervalCollectionPage.java new file mode 100644 index 00000000000..046187f2a58 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IListItemGetActivitiesByIntervalCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the List Item Get Activities By Interval Collection Page. + */ +public interface IListItemGetActivitiesByIntervalCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IListItemGetActivitiesByIntervalCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IListItemGetActivitiesByIntervalCollectionRequest.java new file mode 100644 index 00000000000..de6a789c377 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IListItemGetActivitiesByIntervalCollectionRequest.java @@ -0,0 +1,57 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; +import com.google.gson.annotations.*; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the List Item Get Activities By Interval Collection Request. + */ +public interface IListItemGetActivitiesByIntervalCollectionRequest { + + void get(final ICallback callback); + + IListItemGetActivitiesByIntervalCollectionPage get() throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IListItemGetActivitiesByIntervalCollectionRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IListItemGetActivitiesByIntervalCollectionRequest expand(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + IListItemGetActivitiesByIntervalCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IListItemGetActivitiesByIntervalCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IListItemGetActivitiesByIntervalCollectionRequestBuilder.java new file mode 100644 index 00000000000..1b06463a7a7 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IListItemGetActivitiesByIntervalCollectionRequestBuilder.java @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 List Item Get Activities By Interval Collection Request Builder. + */ +public interface IListItemGetActivitiesByIntervalCollectionRequestBuilder extends IRequestBuilder { + + IListItemGetActivitiesByIntervalCollectionRequest buildRequest(); + + IListItemGetActivitiesByIntervalCollectionRequest buildRequest(final java.util.List requestOptions); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IListItemRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IListItemRequestBuilder.java index 44399cedd30..f699342e516 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/IListItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/IListItemRequestBuilder.java @@ -4,10 +4,12 @@ package com.microsoft.graph.requests.extensions; import com.microsoft.graph.requests.extensions.IListItemRequest; +import com.microsoft.graph.requests.extensions.IItemAnalyticsWithReferenceRequestBuilder; import com.microsoft.graph.requests.extensions.IDriveItemRequestBuilder; import com.microsoft.graph.requests.extensions.IFieldValueSetRequestBuilder; import com.microsoft.graph.requests.extensions.IListItemVersionCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IListItemVersionRequestBuilder; +import com.microsoft.graph.requests.extensions.IListItemGetActivitiesByIntervalCollectionRequestBuilder; import com.microsoft.graph.http.IRequestBuilder; import com.microsoft.graph.options.Option; @@ -35,6 +37,13 @@ public interface IListItemRequestBuilder extends IRequestBuilder { IListItemRequest buildRequest(final java.util.List requestOptions); + /** + * Gets the request builder for ItemAnalytics + * + * @return the IItemAnalyticsWithReferenceRequestBuilder instance + */ + IItemAnalyticsWithReferenceRequestBuilder analytics(); + /** * Gets the request builder for DriveItem * @@ -53,4 +62,6 @@ public interface IListItemRequestBuilder extends IRequestBuilder { IListItemVersionRequestBuilder versions(final String id); + IListItemGetActivitiesByIntervalCollectionRequestBuilder getActivitiesByInterval(); + } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionPage.java new file mode 100644 index 00000000000..cfa3bb73448 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Restricted Sign In Collection Page. + */ +public interface IRestrictedSignInCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequest.java new file mode 100644 index 00000000000..6fae365fd11 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequest.java @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Restricted Sign In Collection Request. + */ +public interface IRestrictedSignInCollectionRequest { + + void get(final ICallback callback); + + IRestrictedSignInCollectionPage get() throws ClientException; + + void post(final RestrictedSignIn newRestrictedSignIn, final ICallback callback); + + RestrictedSignIn post(final RestrictedSignIn newRestrictedSignIn) throws ClientException; + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IRestrictedSignInCollectionRequest expand(final String value); + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IRestrictedSignInCollectionRequest select(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + IRestrictedSignInCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequestBuilder.java new file mode 100644 index 00000000000..112f6087ff0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Restricted Sign In Collection Request Builder. + */ +public interface IRestrictedSignInCollectionRequestBuilder extends IRequestBuilder { + + IRestrictedSignInCollectionRequest buildRequest(); + + IRestrictedSignInCollectionRequest buildRequest(final java.util.List requestOptions); + + IRestrictedSignInRequestBuilder byId(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequest.java new file mode 100644 index 00000000000..884431f8fe5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.RestrictedSignIn; + +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 Restricted Sign In Request. + */ +public interface IRestrictedSignInRequest extends IHttpRequest { + + /** + * Gets the RestrictedSignIn from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the RestrictedSignIn from the service + * + * @return the RestrictedSignIn from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + RestrictedSignIn 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 RestrictedSignIn with a source + * + * @param sourceRestrictedSignIn the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final RestrictedSignIn sourceRestrictedSignIn, final ICallback callback); + + /** + * Patches this RestrictedSignIn with a source + * + * @param sourceRestrictedSignIn the source object with updates + * @return the updated RestrictedSignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + RestrictedSignIn patch(final RestrictedSignIn sourceRestrictedSignIn) throws ClientException; + + /** + * Posts a RestrictedSignIn with a new object + * + * @param newRestrictedSignIn the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final RestrictedSignIn newRestrictedSignIn, final ICallback callback); + + /** + * Posts a RestrictedSignIn with a new object + * + * @param newRestrictedSignIn the new object to create + * @return the created RestrictedSignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + RestrictedSignIn post(final RestrictedSignIn newRestrictedSignIn) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + IRestrictedSignInRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + IRestrictedSignInRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequestBuilder.java new file mode 100644 index 00000000000..5679b4ceb94 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/IRestrictedSignInRequestBuilder.java @@ -0,0 +1,34 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IRestrictedSignInRequest; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Restricted Sign In Request Builder. + */ +public interface IRestrictedSignInRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the IRestrictedSignInRequest instance + */ + IRestrictedSignInRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IRestrictedSignInRequest instance + */ + IRestrictedSignInRequest buildRequest(final java.util.List requestOptions); + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionPage.java new file mode 100644 index 00000000000..f4cd79d8da5 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Sign In Collection Page. + */ +public interface ISignInCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequest.java new file mode 100644 index 00000000000..82c87be8784 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequest.java @@ -0,0 +1,58 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Sign In Collection Request. + */ +public interface ISignInCollectionRequest { + + void get(final ICallback callback); + + ISignInCollectionPage get() throws ClientException; + + void post(final SignIn newSignIn, final ICallback callback); + + SignIn post(final SignIn newSignIn) throws ClientException; + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + ISignInCollectionRequest expand(final String value); + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + ISignInCollectionRequest select(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + ISignInCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequestBuilder.java new file mode 100644 index 00000000000..2946a09ad87 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISignInCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Sign In Collection Request Builder. + */ +public interface ISignInCollectionRequestBuilder extends IRequestBuilder { + + ISignInCollectionRequest buildRequest(); + + ISignInCollectionRequest buildRequest(final java.util.List requestOptions); + + ISignInRequestBuilder byId(final String id); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISignInRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ISignInRequest.java new file mode 100644 index 00000000000..b5f697ccd22 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISignInRequest.java @@ -0,0 +1,99 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.SignIn; + +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 Sign In Request. + */ +public interface ISignInRequest extends IHttpRequest { + + /** + * Gets the SignIn from the service + * + * @param callback the callback to be called after success or failure + */ + void get(final ICallback callback); + + /** + * Gets the SignIn from the service + * + * @return the SignIn from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + SignIn 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 SignIn with a source + * + * @param sourceSignIn the source object with updates + * @param callback the callback to be called after success or failure + */ + void patch(final SignIn sourceSignIn, final ICallback callback); + + /** + * Patches this SignIn with a source + * + * @param sourceSignIn the source object with updates + * @return the updated SignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + SignIn patch(final SignIn sourceSignIn) throws ClientException; + + /** + * Posts a SignIn with a new object + * + * @param newSignIn the new object to create + * @param callback the callback to be called after success or failure + */ + void post(final SignIn newSignIn, final ICallback callback); + + /** + * Posts a SignIn with a new object + * + * @param newSignIn the new object to create + * @return the created SignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + SignIn post(final SignIn newSignIn) throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + ISignInRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + ISignInRequest expand(final String value); + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISignInRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ISignInRequestBuilder.java new file mode 100644 index 00000000000..9a5931b6e88 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISignInRequestBuilder.java @@ -0,0 +1,34 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ISignInRequest; + +import com.microsoft.graph.http.IRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Sign In Request Builder. + */ +public interface ISignInRequestBuilder extends IRequestBuilder { + /** + * Creates the request + * + * @return the ISignInRequest instance + */ + ISignInRequest buildRequest(); + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the ISignInRequest instance + */ + ISignInRequest buildRequest(final java.util.List requestOptions); + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISiteGetActivitiesByIntervalCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/ISiteGetActivitiesByIntervalCollectionPage.java new file mode 100644 index 00000000000..f2d6e06b40f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISiteGetActivitiesByIntervalCollectionPage.java @@ -0,0 +1,27 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Site Get Activities By Interval Collection Page. + */ +public interface ISiteGetActivitiesByIntervalCollectionPage extends IBaseCollectionPage { +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISiteGetActivitiesByIntervalCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ISiteGetActivitiesByIntervalCollectionRequest.java new file mode 100644 index 00000000000..a535cfb1e34 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISiteGetActivitiesByIntervalCollectionRequest.java @@ -0,0 +1,57 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; +import com.google.gson.annotations.*; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The interface for the Site Get Activities By Interval Collection Request. + */ +public interface ISiteGetActivitiesByIntervalCollectionRequest { + + void get(final ICallback callback); + + ISiteGetActivitiesByIntervalCollectionPage get() throws ClientException; + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + ISiteGetActivitiesByIntervalCollectionRequest select(final String value); + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + ISiteGetActivitiesByIntervalCollectionRequest expand(final String value); + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + ISiteGetActivitiesByIntervalCollectionRequest top(final int value); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISiteGetActivitiesByIntervalCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ISiteGetActivitiesByIntervalCollectionRequestBuilder.java new file mode 100644 index 00000000000..f51b2535496 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISiteGetActivitiesByIntervalCollectionRequestBuilder.java @@ -0,0 +1,30 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +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 Site Get Activities By Interval Collection Request Builder. + */ +public interface ISiteGetActivitiesByIntervalCollectionRequestBuilder extends IRequestBuilder { + + ISiteGetActivitiesByIntervalCollectionRequest buildRequest(); + + ISiteGetActivitiesByIntervalCollectionRequest buildRequest(final java.util.List requestOptions); + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ISiteRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ISiteRequestBuilder.java index 6192a38fc7f..9bbadc8130f 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/ISiteRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/ISiteRequestBuilder.java @@ -4,6 +4,7 @@ package com.microsoft.graph.requests.extensions; import com.microsoft.graph.requests.extensions.ISiteRequest; +import com.microsoft.graph.requests.extensions.IItemAnalyticsWithReferenceRequestBuilder; import com.microsoft.graph.requests.extensions.IColumnDefinitionCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IColumnDefinitionRequestBuilder; import com.microsoft.graph.requests.extensions.IContentTypeCollectionRequestBuilder; @@ -18,6 +19,7 @@ import com.microsoft.graph.requests.extensions.ISiteCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.ISiteRequestBuilder; import com.microsoft.graph.requests.extensions.IOnenoteRequestBuilder; +import com.microsoft.graph.requests.extensions.ISiteGetActivitiesByIntervalCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.ISiteGetByPathRequestBuilder; import com.microsoft.graph.http.IRequestBuilder; @@ -46,6 +48,13 @@ public interface ISiteRequestBuilder extends IRequestBuilder { ISiteRequest buildRequest(final java.util.List requestOptions); + /** + * Gets the request builder for ItemAnalytics + * + * @return the IItemAnalyticsWithReferenceRequestBuilder instance + */ + IItemAnalyticsWithReferenceRequestBuilder analytics(); + IColumnDefinitionCollectionRequestBuilder columns(); IColumnDefinitionRequestBuilder columns(final String id); @@ -83,6 +92,8 @@ public interface ISiteRequestBuilder extends IRequestBuilder { * @return the IOnenoteRequestBuilder instance */ IOnenoteRequestBuilder onenote(); + + ISiteGetActivitiesByIntervalCollectionRequestBuilder getActivitiesByInterval(); ISiteGetByPathRequestBuilder getByPath(final String path); } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionPage.java new file mode 100644 index 00000000000..4a4b8b736b2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionPage.java @@ -0,0 +1,26 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ItemActivity; +import com.microsoft.graph.requests.extensions.IItemActivityCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Collection Page. + */ +public class ItemActivityCollectionPage extends BaseCollectionPage implements IItemActivityCollectionPage { + + /** + * A collection page for ItemActivity + * + * @param response the serialized ItemActivityCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public ItemActivityCollectionPage(final ItemActivityCollectionResponse response, final IItemActivityCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionRequest.java new file mode 100644 index 00000000000..87023827257 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionRequest.java @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Collection Request. + */ +public class ItemActivityCollectionRequest extends BaseCollectionRequest implements IItemActivityCollectionRequest { + + /** + * The request builder for this collection of ItemActivity + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemActivityCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ItemActivityCollectionResponse.class, IItemActivityCollectionPage.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 IItemActivityCollectionPage get() throws ClientException { + final ItemActivityCollectionResponse response = send(); + return buildFromResponse(response); + } + + public void post(final ItemActivity newItemActivity, final ICallback callback) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + new ItemActivityRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newItemActivity, callback); + } + + public ItemActivity post(final ItemActivity newItemActivity) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new ItemActivityRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newItemActivity); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IItemActivityCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (ItemActivityCollectionRequest)this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IItemActivityCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (ItemActivityCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public IItemActivityCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value + "")); + return (ItemActivityCollectionRequest)this; + } + + public IItemActivityCollectionPage buildFromResponse(final ItemActivityCollectionResponse response) { + final IItemActivityCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new ItemActivityCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final ItemActivityCollectionPage page = new ItemActivityCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionRequestBuilder.java new file mode 100644 index 00000000000..9c88fbabc9d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Collection Request Builder. + */ +public class ItemActivityCollectionRequestBuilder extends BaseRequestBuilder implements IItemActivityCollectionRequestBuilder { + + /** + * The request builder for this collection of ItemActivityStat + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemActivityCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public IItemActivityCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public IItemActivityCollectionRequest buildRequest(final java.util.List requestOptions) { + return new ItemActivityCollectionRequest(getRequestUrl(), getClient(), requestOptions); + } + + public IItemActivityRequestBuilder byId(final String id) { + return new ItemActivityRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionResponse.java new file mode 100644 index 00000000000..5b66073282b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityCollectionResponse.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.ItemActivity; + +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 Item Activity Collection Response. + */ +public class ItemActivityCollectionResponse implements IJsonBackedObject { + + /** + * The list of ItemActivity 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/ItemActivityRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityRequest.java new file mode 100644 index 00000000000..6022cfe7f27 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IItemActivityRequest; +import com.microsoft.graph.requests.extensions.ItemActivityRequest; +import com.microsoft.graph.models.extensions.ItemActivity; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Request. + */ +public class ItemActivityRequest extends BaseRequest implements IItemActivityRequest { + + /** + * The request for the ItemActivity + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemActivityRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ItemActivity.class); + } + + /** + * Gets the ItemActivity 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 ItemActivity from the service + * + * @return the ItemActivity from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public ItemActivity 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 ItemActivity with a source + * + * @param sourceItemActivity the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final ItemActivity sourceItemActivity, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceItemActivity); + } + + /** + * Patches this ItemActivity with a source + * + * @param sourceItemActivity the source object with updates + * @return the updated ItemActivity + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public ItemActivity patch(final ItemActivity sourceItemActivity) throws ClientException { + return send(HttpMethod.PATCH, sourceItemActivity); + } + + /** + * Creates a ItemActivity with a new object + * + * @param newItemActivity the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final ItemActivity newItemActivity, final ICallback callback) { + send(HttpMethod.POST, callback, newItemActivity); + } + + /** + * Creates a ItemActivity with a new object + * + * @param newItemActivity the new object to create + * @return the created ItemActivity + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public ItemActivity post(final ItemActivity newItemActivity) throws ClientException { + return send(HttpMethod.POST, newItemActivity); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IItemActivityRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (ItemActivityRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IItemActivityRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (ItemActivityRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityRequestBuilder.java new file mode 100644 index 00000000000..f2086934ca0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityRequestBuilder.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.requests.extensions.IItemActivityRequest; +import com.microsoft.graph.requests.extensions.ItemActivityRequest; +import com.microsoft.graph.requests.extensions.IDriveItemRequestBuilder; +import com.microsoft.graph.requests.extensions.DriveItemRequestBuilder; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Request Builder. + */ +public class ItemActivityRequestBuilder extends BaseRequestBuilder implements IItemActivityRequestBuilder { + + /** + * The request builder for the ItemActivity + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemActivityRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IItemActivityRequest instance + */ + public IItemActivityRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IItemActivityRequest instance + */ + public IItemActivityRequest buildRequest(final java.util.List requestOptions) { + return new ItemActivityRequest(getRequestUrl(), getClient(), requestOptions); + } + + + + /** + * Gets the request builder for DriveItem + * + * @return the IDriveItemRequestBuilder instance + */ + public IDriveItemRequestBuilder driveItem() { + return new DriveItemRequestBuilder(getRequestUrlWithAdditionalSegment("driveItem"), getClient(), null); + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionPage.java new file mode 100644 index 00000000000..fbafddc2650 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionPage.java @@ -0,0 +1,26 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ItemActivityStat; +import com.microsoft.graph.requests.extensions.IItemActivityStatCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Stat Collection Page. + */ +public class ItemActivityStatCollectionPage extends BaseCollectionPage implements IItemActivityStatCollectionPage { + + /** + * A collection page for ItemActivityStat + * + * @param response the serialized ItemActivityStatCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public ItemActivityStatCollectionPage(final ItemActivityStatCollectionResponse response, final IItemActivityStatCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionRequest.java new file mode 100644 index 00000000000..1f1264209d9 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionRequest.java @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Stat Collection Request. + */ +public class ItemActivityStatCollectionRequest extends BaseCollectionRequest implements IItemActivityStatCollectionRequest { + + /** + * The request builder for this collection of ItemActivityStat + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemActivityStatCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ItemActivityStatCollectionResponse.class, IItemActivityStatCollectionPage.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 IItemActivityStatCollectionPage get() throws ClientException { + final ItemActivityStatCollectionResponse response = send(); + return buildFromResponse(response); + } + + public void post(final ItemActivityStat newItemActivityStat, final ICallback callback) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + new ItemActivityStatRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newItemActivityStat, callback); + } + + public ItemActivityStat post(final ItemActivityStat newItemActivityStat) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new ItemActivityStatRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newItemActivityStat); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IItemActivityStatCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (ItemActivityStatCollectionRequest)this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IItemActivityStatCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (ItemActivityStatCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public IItemActivityStatCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value + "")); + return (ItemActivityStatCollectionRequest)this; + } + + public IItemActivityStatCollectionPage buildFromResponse(final ItemActivityStatCollectionResponse response) { + final IItemActivityStatCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new ItemActivityStatCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final ItemActivityStatCollectionPage page = new ItemActivityStatCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionRequestBuilder.java new file mode 100644 index 00000000000..9763b7e4006 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Stat Collection Request Builder. + */ +public class ItemActivityStatCollectionRequestBuilder extends BaseRequestBuilder implements IItemActivityStatCollectionRequestBuilder { + + /** + * The request builder for this collection of ItemAnalytics + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemActivityStatCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public IItemActivityStatCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public IItemActivityStatCollectionRequest buildRequest(final java.util.List requestOptions) { + return new ItemActivityStatCollectionRequest(getRequestUrl(), getClient(), requestOptions); + } + + public IItemActivityStatRequestBuilder byId(final String id) { + return new ItemActivityStatRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionResponse.java new file mode 100644 index 00000000000..c2716a4d0db --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatCollectionResponse.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.ItemActivityStat; + +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 Item Activity Stat Collection Response. + */ +public class ItemActivityStatCollectionResponse implements IJsonBackedObject { + + /** + * The list of ItemActivityStat 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/ItemActivityStatReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatReferenceRequest.java new file mode 100644 index 00000000000..051e135a89c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatReferenceRequest.java @@ -0,0 +1,86 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Stat Reference Request. + */ +public class ItemActivityStatReferenceRequest extends BaseRequest implements IItemActivityStatReferenceRequest { + + /** + * The request for the ItemActivityStat + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemActivityStatReferenceRequest(String requestUrl, IBaseClient client, java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ItemActivityStat.class); + } + + public void delete(final ICallback callback) { + send(HttpMethod.DELETE, callback, null); + } + + public ItemActivityStat 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 IItemActivityStatReferenceRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (ItemActivityStatReferenceRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IItemActivityStatReferenceRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (ItemActivityStatReferenceRequest)this; + } + /** + * Puts the ItemActivityStat + * + * @param srcItemActivityStat the ItemActivityStat reference to PUT + * @param callback the callback to be called after success or failure + */ + public void put(ItemActivityStat srcItemActivityStat, final ICallback callback) { + send(HttpMethod.PUT, callback, srcItemActivityStat); + } + + /** + * Puts the ItemActivityStat + * + * @param srcItemActivityStat the ItemActivityStat reference to PUT + * @return the ItemActivityStat + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + public ItemActivityStat put(ItemActivityStat srcItemActivityStat) throws ClientException { + return send(HttpMethod.PUT, srcItemActivityStat); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatReferenceRequestBuilder.java new file mode 100644 index 00000000000..d89eadf7ca2 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatReferenceRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Stat Reference Request Builder. + */ +public class ItemActivityStatReferenceRequestBuilder extends BaseRequestBuilder implements IItemActivityStatReferenceRequestBuilder { + + /** + * The request builder for the ItemActivityStat + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemActivityStatReferenceRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return The IItemActivityStatReferenceRequest instance + */ + public IItemActivityStatReferenceRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IItemActivityStatReferenceRequest instance + */ + public IItemActivityStatReferenceRequest buildRequest(final java.util.List requestOptions) { + return new ItemActivityStatReferenceRequest(getRequestUrl(), getClient(), requestOptions); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatRequest.java new file mode 100644 index 00000000000..4864dbfeec6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IItemActivityStatRequest; +import com.microsoft.graph.requests.extensions.ItemActivityStatRequest; +import com.microsoft.graph.models.extensions.ItemActivityStat; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Stat Request. + */ +public class ItemActivityStatRequest extends BaseRequest implements IItemActivityStatRequest { + + /** + * The request for the ItemActivityStat + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemActivityStatRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ItemActivityStat.class); + } + + /** + * Gets the ItemActivityStat 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 ItemActivityStat from the service + * + * @return the ItemActivityStat from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public ItemActivityStat 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 ItemActivityStat with a source + * + * @param sourceItemActivityStat the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final ItemActivityStat sourceItemActivityStat, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceItemActivityStat); + } + + /** + * Patches this ItemActivityStat with a source + * + * @param sourceItemActivityStat the source object with updates + * @return the updated ItemActivityStat + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public ItemActivityStat patch(final ItemActivityStat sourceItemActivityStat) throws ClientException { + return send(HttpMethod.PATCH, sourceItemActivityStat); + } + + /** + * Creates a ItemActivityStat with a new object + * + * @param newItemActivityStat the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final ItemActivityStat newItemActivityStat, final ICallback callback) { + send(HttpMethod.POST, callback, newItemActivityStat); + } + + /** + * Creates a ItemActivityStat with a new object + * + * @param newItemActivityStat the new object to create + * @return the created ItemActivityStat + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public ItemActivityStat post(final ItemActivityStat newItemActivityStat) throws ClientException { + return send(HttpMethod.POST, newItemActivityStat); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IItemActivityStatRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (ItemActivityStatRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IItemActivityStatRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (ItemActivityStatRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatRequestBuilder.java new file mode 100644 index 00000000000..c6878a0068c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatRequestBuilder.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.requests.extensions.IItemActivityStatRequest; +import com.microsoft.graph.requests.extensions.ItemActivityStatRequest; +import com.microsoft.graph.requests.extensions.IItemActivityCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.ItemActivityCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IItemActivityRequestBuilder; +import com.microsoft.graph.requests.extensions.ItemActivityRequestBuilder; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Stat Request Builder. + */ +public class ItemActivityStatRequestBuilder extends BaseRequestBuilder implements IItemActivityStatRequestBuilder { + + /** + * The request builder for the ItemActivityStat + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemActivityStatRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IItemActivityStatRequest instance + */ + public IItemActivityStatRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IItemActivityStatRequest instance + */ + public IItemActivityStatRequest buildRequest(final java.util.List requestOptions) { + return new ItemActivityStatRequest(getRequestUrl(), getClient(), requestOptions); + } + + + public IItemActivityCollectionRequestBuilder activities() { + return new ItemActivityCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("activities"), getClient(), null); + } + + public IItemActivityRequestBuilder activities(final String id) { + return new ItemActivityRequestBuilder(getRequestUrlWithAdditionalSegment("activities") + "/" + id, getClient(), null); + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatWithReferenceRequest.java new file mode 100644 index 00000000000..dfc92466d7f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatWithReferenceRequest.java @@ -0,0 +1,95 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Stat With Reference Request. + */ +public class ItemActivityStatWithReferenceRequest extends BaseRequest implements IItemActivityStatWithReferenceRequest { + + /** + * The request for the ItemActivityStat + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemActivityStatWithReferenceRequest(String requestUrl, IBaseClient client, java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ItemActivityStat.class); + } + + public void post(final ItemActivityStat newItemActivityStat, final IJsonBackedObject payload, final ICallback callback) { + send(HttpMethod.POST, callback, payload); + } + + public ItemActivityStat post(final ItemActivityStat newItemActivityStat, final IJsonBackedObject payload) throws ClientException { + IJsonBackedObject response = send(HttpMethod.POST, payload); + if (response != null){ + return newItemActivityStat; + } + return null; + } + + public void get(final ICallback callback) { + send(HttpMethod.GET, callback, null); + } + + public ItemActivityStat 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 ItemActivityStat sourceItemActivityStat, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceItemActivityStat); + } + + public ItemActivityStat patch(final ItemActivityStat sourceItemActivityStat) throws ClientException { + return send(HttpMethod.PATCH, sourceItemActivityStat); + } + + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IItemActivityStatWithReferenceRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (IItemActivityStatWithReferenceRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IItemActivityStatWithReferenceRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (ItemActivityStatWithReferenceRequest)this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..827262ff5e1 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemActivityStatWithReferenceRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Activity Stat With Reference Request Builder. + */ +public class ItemActivityStatWithReferenceRequestBuilder extends BaseRequestBuilder implements IItemActivityStatWithReferenceRequestBuilder { + + /** + * The request builder for the ItemActivityStat + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemActivityStatWithReferenceRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IItemActivityStatWithReferenceRequest instance + */ + public IItemActivityStatWithReferenceRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IItemActivityStatWithReferenceRequest instance + */ + public IItemActivityStatWithReferenceRequest buildRequest(final java.util.List requestOptions) { + return new ItemActivityStatWithReferenceRequest(getRequestUrl(), getClient(), requestOptions); + } + + public IItemActivityStatReferenceRequestBuilder reference(){ + return new ItemActivityStatReferenceRequestBuilder(getRequestUrl() + "/$ref", getClient(), getOptions()); + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsReferenceRequest.java new file mode 100644 index 00000000000..f163dfbe3ea --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsReferenceRequest.java @@ -0,0 +1,86 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Analytics Reference Request. + */ +public class ItemAnalyticsReferenceRequest extends BaseRequest implements IItemAnalyticsReferenceRequest { + + /** + * The request for the ItemAnalytics + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemAnalyticsReferenceRequest(String requestUrl, IBaseClient client, java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ItemAnalytics.class); + } + + public void delete(final ICallback callback) { + send(HttpMethod.DELETE, callback, null); + } + + public ItemAnalytics 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 IItemAnalyticsReferenceRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (ItemAnalyticsReferenceRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IItemAnalyticsReferenceRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (ItemAnalyticsReferenceRequest)this; + } + /** + * Puts the ItemAnalytics + * + * @param srcItemAnalytics the ItemAnalytics reference to PUT + * @param callback the callback to be called after success or failure + */ + public void put(ItemAnalytics srcItemAnalytics, final ICallback callback) { + send(HttpMethod.PUT, callback, srcItemAnalytics); + } + + /** + * Puts the ItemAnalytics + * + * @param srcItemAnalytics the ItemAnalytics reference to PUT + * @return the ItemAnalytics + * @throws ClientException an exception occurs if there was an error while the request was sent + */ + public ItemAnalytics put(ItemAnalytics srcItemAnalytics) throws ClientException { + return send(HttpMethod.PUT, srcItemAnalytics); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsReferenceRequestBuilder.java new file mode 100644 index 00000000000..1ad2f99e780 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsReferenceRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Analytics Reference Request Builder. + */ +public class ItemAnalyticsReferenceRequestBuilder extends BaseRequestBuilder implements IItemAnalyticsReferenceRequestBuilder { + + /** + * The request builder for the ItemAnalytics + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemAnalyticsReferenceRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return The IItemAnalyticsReferenceRequest instance + */ + public IItemAnalyticsReferenceRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IItemAnalyticsReferenceRequest instance + */ + public IItemAnalyticsReferenceRequest buildRequest(final java.util.List requestOptions) { + return new ItemAnalyticsReferenceRequest(getRequestUrl(), getClient(), requestOptions); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsRequest.java new file mode 100644 index 00000000000..3787952700c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IItemAnalyticsRequest; +import com.microsoft.graph.requests.extensions.ItemAnalyticsRequest; +import com.microsoft.graph.models.extensions.ItemAnalytics; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Analytics Request. + */ +public class ItemAnalyticsRequest extends BaseRequest implements IItemAnalyticsRequest { + + /** + * The request for the ItemAnalytics + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemAnalyticsRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ItemAnalytics.class); + } + + /** + * Gets the ItemAnalytics 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 ItemAnalytics from the service + * + * @return the ItemAnalytics from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public ItemAnalytics 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 ItemAnalytics with a source + * + * @param sourceItemAnalytics the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final ItemAnalytics sourceItemAnalytics, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceItemAnalytics); + } + + /** + * Patches this ItemAnalytics with a source + * + * @param sourceItemAnalytics the source object with updates + * @return the updated ItemAnalytics + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public ItemAnalytics patch(final ItemAnalytics sourceItemAnalytics) throws ClientException { + return send(HttpMethod.PATCH, sourceItemAnalytics); + } + + /** + * Creates a ItemAnalytics with a new object + * + * @param newItemAnalytics the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final ItemAnalytics newItemAnalytics, final ICallback callback) { + send(HttpMethod.POST, callback, newItemAnalytics); + } + + /** + * Creates a ItemAnalytics with a new object + * + * @param newItemAnalytics the new object to create + * @return the created ItemAnalytics + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public ItemAnalytics post(final ItemAnalytics newItemAnalytics) throws ClientException { + return send(HttpMethod.POST, newItemAnalytics); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IItemAnalyticsRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (ItemAnalyticsRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IItemAnalyticsRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (ItemAnalyticsRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsRequestBuilder.java new file mode 100644 index 00000000000..e87bde10b0b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsRequestBuilder.java @@ -0,0 +1,86 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IItemAnalyticsRequest; +import com.microsoft.graph.requests.extensions.ItemAnalyticsRequest; +import com.microsoft.graph.requests.extensions.IItemActivityStatCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.ItemActivityStatCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.IItemActivityStatRequestBuilder; +import com.microsoft.graph.requests.extensions.ItemActivityStatRequestBuilder; +import com.microsoft.graph.requests.extensions.IItemActivityStatWithReferenceRequestBuilder; +import com.microsoft.graph.requests.extensions.ItemActivityStatWithReferenceRequestBuilder; +import com.microsoft.graph.requests.extensions.IItemActivityStatWithReferenceRequestBuilder; +import com.microsoft.graph.requests.extensions.ItemActivityStatWithReferenceRequestBuilder; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Analytics Request Builder. + */ +public class ItemAnalyticsRequestBuilder extends BaseRequestBuilder implements IItemAnalyticsRequestBuilder { + + /** + * The request builder for the ItemAnalytics + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemAnalyticsRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IItemAnalyticsRequest instance + */ + public IItemAnalyticsRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IItemAnalyticsRequest instance + */ + public IItemAnalyticsRequest buildRequest(final java.util.List requestOptions) { + return new ItemAnalyticsRequest(getRequestUrl(), getClient(), requestOptions); + } + + + public IItemActivityStatCollectionRequestBuilder itemActivityStats() { + return new ItemActivityStatCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("itemActivityStats"), getClient(), null); + } + + public IItemActivityStatRequestBuilder itemActivityStats(final String id) { + return new ItemActivityStatRequestBuilder(getRequestUrlWithAdditionalSegment("itemActivityStats") + "/" + id, getClient(), null); + } + + /** + * Gets the request builder for ItemActivityStat + * + * @return the IItemActivityStatWithReferenceRequestBuilder instance + */ + public IItemActivityStatWithReferenceRequestBuilder allTime() { + return new ItemActivityStatWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("allTime"), getClient(), null); + } + + /** + * Gets the request builder for ItemActivityStat + * + * @return the IItemActivityStatWithReferenceRequestBuilder instance + */ + public IItemActivityStatWithReferenceRequestBuilder lastSevenDays() { + return new ItemActivityStatWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("lastSevenDays"), getClient(), null); + } +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsWithReferenceRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsWithReferenceRequest.java new file mode 100644 index 00000000000..00d26004f76 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsWithReferenceRequest.java @@ -0,0 +1,95 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Analytics With Reference Request. + */ +public class ItemAnalyticsWithReferenceRequest extends BaseRequest implements IItemAnalyticsWithReferenceRequest { + + /** + * The request for the ItemAnalytics + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemAnalyticsWithReferenceRequest(String requestUrl, IBaseClient client, java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ItemAnalytics.class); + } + + public void post(final ItemAnalytics newItemAnalytics, final IJsonBackedObject payload, final ICallback callback) { + send(HttpMethod.POST, callback, payload); + } + + public ItemAnalytics post(final ItemAnalytics newItemAnalytics, final IJsonBackedObject payload) throws ClientException { + IJsonBackedObject response = send(HttpMethod.POST, payload); + if (response != null){ + return newItemAnalytics; + } + return null; + } + + public void get(final ICallback callback) { + send(HttpMethod.GET, callback, null); + } + + public ItemAnalytics 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 ItemAnalytics sourceItemAnalytics, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceItemAnalytics); + } + + public ItemAnalytics patch(final ItemAnalytics sourceItemAnalytics) throws ClientException { + return send(HttpMethod.PATCH, sourceItemAnalytics); + } + + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IItemAnalyticsWithReferenceRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (IItemAnalyticsWithReferenceRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IItemAnalyticsWithReferenceRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (ItemAnalyticsWithReferenceRequest)this; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsWithReferenceRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsWithReferenceRequestBuilder.java new file mode 100644 index 00000000000..f5471178740 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ItemAnalyticsWithReferenceRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Item Analytics With Reference Request Builder. + */ +public class ItemAnalyticsWithReferenceRequestBuilder extends BaseRequestBuilder implements IItemAnalyticsWithReferenceRequestBuilder { + + /** + * The request builder for the ItemAnalytics + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ItemAnalyticsWithReferenceRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IItemAnalyticsWithReferenceRequest instance + */ + public IItemAnalyticsWithReferenceRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific options instead of the existing options + * + * @param requestOptions the options for this request + * @return the IItemAnalyticsWithReferenceRequest instance + */ + public IItemAnalyticsWithReferenceRequest buildRequest(final java.util.List requestOptions) { + return new ItemAnalyticsWithReferenceRequest(getRequestUrl(), getClient(), requestOptions); + } + + public IItemAnalyticsReferenceRequestBuilder reference(){ + return new ItemAnalyticsReferenceRequestBuilder(getRequestUrl() + "/$ref", getClient(), getOptions()); + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionPage.java new file mode 100644 index 00000000000..4d79830dd3f --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionPage.java @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; +import com.google.gson.annotations.*; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the List Item Get Activities By Interval Collection Page. + */ +public class ListItemGetActivitiesByIntervalCollectionPage extends BaseCollectionPage implements IListItemGetActivitiesByIntervalCollectionPage { + + /** + * A collection page for ListItemGetActivitiesByInterval. + * + * @param response The serialized ListItemGetActivitiesByIntervalCollectionResponse from the service + * @param builder The request builder for the next collection page + */ + public ListItemGetActivitiesByIntervalCollectionPage(final ListItemGetActivitiesByIntervalCollectionResponse response, final IListItemGetActivitiesByIntervalCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionRequest.java new file mode 100644 index 00000000000..fceb6160551 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionRequest.java @@ -0,0 +1,104 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the List Item Get Activities By Interval Collection Request. + */ +public class ListItemGetActivitiesByIntervalCollectionRequest extends BaseCollectionRequest implements IListItemGetActivitiesByIntervalCollectionRequest { + + + /** + * The request for this ListItemGetActivitiesByInterval + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ListItemGetActivitiesByIntervalCollectionRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, ListItemGetActivitiesByIntervalCollectionResponse.class, IListItemGetActivitiesByIntervalCollectionPage.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 IListItemGetActivitiesByIntervalCollectionPage get() throws ClientException { + final ListItemGetActivitiesByIntervalCollectionResponse response = send(); + return buildFromResponse(response); + } + + + public IListItemGetActivitiesByIntervalCollectionPage buildFromResponse(final ListItemGetActivitiesByIntervalCollectionResponse response) { + final IListItemGetActivitiesByIntervalCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new ListItemGetActivitiesByIntervalCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final IListItemGetActivitiesByIntervalCollectionPage page = new ListItemGetActivitiesByIntervalCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IListItemGetActivitiesByIntervalCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (IListItemGetActivitiesByIntervalCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public IListItemGetActivitiesByIntervalCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value+"")); + return (IListItemGetActivitiesByIntervalCollectionRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IListItemGetActivitiesByIntervalCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (IListItemGetActivitiesByIntervalCollectionRequest)this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionRequestBuilder.java new file mode 100644 index 00000000000..e4af40868f6 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionRequestBuilder.java @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the List Item Get Activities By Interval Collection Request Builder. + */ +public class ListItemGetActivitiesByIntervalCollectionRequestBuilder extends BaseFunctionRequestBuilder implements IListItemGetActivitiesByIntervalCollectionRequestBuilder { + + /** + * The request builder for this collection of ListItem + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public ListItemGetActivitiesByIntervalCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public IListItemGetActivitiesByIntervalCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public IListItemGetActivitiesByIntervalCollectionRequest buildRequest(final java.util.List requestOptions) { + ListItemGetActivitiesByIntervalCollectionRequest request = new ListItemGetActivitiesByIntervalCollectionRequest( + getRequestUrl(), + getClient(), + requestOptions + ); + + for (FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionResponse.java new file mode 100644 index 00000000000..5235f20ec99 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/ListItemGetActivitiesByIntervalCollectionResponse.java @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import com.google.gson.annotations.*; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the List Item Get Activities By Interval Collection Response. + */ +public class ListItemGetActivitiesByIntervalCollectionResponse implements IJsonBackedObject { + + @SerializedName("value") + @Expose + public java.util.List value; + + @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/ListItemRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/ListItemRequestBuilder.java index 68cb7420e22..9190a9f7345 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/ListItemRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/ListItemRequestBuilder.java @@ -5,6 +5,8 @@ package com.microsoft.graph.requests.extensions; import com.microsoft.graph.requests.extensions.IListItemRequest; import com.microsoft.graph.requests.extensions.ListItemRequest; +import com.microsoft.graph.requests.extensions.IItemAnalyticsWithReferenceRequestBuilder; +import com.microsoft.graph.requests.extensions.ItemAnalyticsWithReferenceRequestBuilder; import com.microsoft.graph.requests.extensions.IDriveItemRequestBuilder; import com.microsoft.graph.requests.extensions.DriveItemRequestBuilder; import com.microsoft.graph.requests.extensions.IFieldValueSetRequestBuilder; @@ -13,6 +15,8 @@ import com.microsoft.graph.requests.extensions.ListItemVersionCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IListItemVersionRequestBuilder; import com.microsoft.graph.requests.extensions.ListItemVersionRequestBuilder; +import com.microsoft.graph.requests.extensions.IListItemGetActivitiesByIntervalCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.ListItemGetActivitiesByIntervalCollectionRequestBuilder; import com.microsoft.graph.core.IBaseClient; import com.microsoft.graph.http.BaseRequestBuilder; @@ -58,6 +62,15 @@ public IListItemRequest buildRequest(final java.util.List requ + /** + * Gets the request builder for ItemAnalytics + * + * @return the IItemAnalyticsWithReferenceRequestBuilder instance + */ + public IItemAnalyticsWithReferenceRequestBuilder analytics() { + return new ItemAnalyticsWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("analytics"), getClient(), null); + } + /** * Gets the request builder for DriveItem * @@ -82,5 +95,9 @@ public IListItemVersionCollectionRequestBuilder versions() { public IListItemVersionRequestBuilder versions(final String id) { return new ListItemVersionRequestBuilder(getRequestUrlWithAdditionalSegment("versions") + "/" + id, getClient(), null); } + + public IListItemGetActivitiesByIntervalCollectionRequestBuilder getActivitiesByInterval() { + return new ListItemGetActivitiesByIntervalCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getActivitiesByInterval"), getClient(), null); + } } diff --git a/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionPage.java new file mode 100644 index 00000000000..045a03df38d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionPage.java @@ -0,0 +1,26 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.RestrictedSignIn; +import com.microsoft.graph.requests.extensions.IRestrictedSignInCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Restricted Sign In Collection Page. + */ +public class RestrictedSignInCollectionPage extends BaseCollectionPage implements IRestrictedSignInCollectionPage { + + /** + * A collection page for RestrictedSignIn + * + * @param response the serialized RestrictedSignInCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public RestrictedSignInCollectionPage(final RestrictedSignInCollectionResponse response, final IRestrictedSignInCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequest.java new file mode 100644 index 00000000000..e86c1b15efa --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequest.java @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Restricted Sign In Collection Request. + */ +public class RestrictedSignInCollectionRequest extends BaseCollectionRequest implements IRestrictedSignInCollectionRequest { + + /** + * The request builder for this collection of RestrictedSignIn + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RestrictedSignInCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, RestrictedSignInCollectionResponse.class, IRestrictedSignInCollectionPage.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 IRestrictedSignInCollectionPage get() throws ClientException { + final RestrictedSignInCollectionResponse response = send(); + return buildFromResponse(response); + } + + public void post(final RestrictedSignIn newRestrictedSignIn, final ICallback callback) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + new RestrictedSignInRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newRestrictedSignIn, callback); + } + + public RestrictedSignIn post(final RestrictedSignIn newRestrictedSignIn) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new RestrictedSignInRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newRestrictedSignIn); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IRestrictedSignInCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (RestrictedSignInCollectionRequest)this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IRestrictedSignInCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (RestrictedSignInCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public IRestrictedSignInCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value + "")); + return (RestrictedSignInCollectionRequest)this; + } + + public IRestrictedSignInCollectionPage buildFromResponse(final RestrictedSignInCollectionResponse response) { + final IRestrictedSignInCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new RestrictedSignInCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final RestrictedSignInCollectionPage page = new RestrictedSignInCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequestBuilder.java new file mode 100644 index 00000000000..636e2369067 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Restricted Sign In Collection Request Builder. + */ +public class RestrictedSignInCollectionRequestBuilder extends BaseRequestBuilder implements IRestrictedSignInCollectionRequestBuilder { + + /** + * The request builder for this collection of AuditLogRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RestrictedSignInCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public IRestrictedSignInCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public IRestrictedSignInCollectionRequest buildRequest(final java.util.List requestOptions) { + return new RestrictedSignInCollectionRequest(getRequestUrl(), getClient(), requestOptions); + } + + public IRestrictedSignInRequestBuilder byId(final String id) { + return new RestrictedSignInRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionResponse.java new file mode 100644 index 00000000000..e53fe4dfd0c --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInCollectionResponse.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.RestrictedSignIn; + +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 Restricted Sign In Collection Response. + */ +public class RestrictedSignInCollectionResponse implements IJsonBackedObject { + + /** + * The list of RestrictedSignIn 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/RestrictedSignInRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInRequest.java new file mode 100644 index 00000000000..e3998f8e58b --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInRequest.java @@ -0,0 +1,138 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IRestrictedSignInRequest; +import com.microsoft.graph.requests.extensions.RestrictedSignInRequest; +import com.microsoft.graph.models.extensions.RestrictedSignIn; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Restricted Sign In Request. + */ +public class RestrictedSignInRequest extends BaseRequest implements IRestrictedSignInRequest { + + /** + * The request for the RestrictedSignIn + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RestrictedSignInRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, RestrictedSignIn.class); + } + + /** + * Gets the RestrictedSignIn 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 RestrictedSignIn from the service + * + * @return the RestrictedSignIn from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public RestrictedSignIn 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 RestrictedSignIn with a source + * + * @param sourceRestrictedSignIn the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final RestrictedSignIn sourceRestrictedSignIn, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceRestrictedSignIn); + } + + /** + * Patches this RestrictedSignIn with a source + * + * @param sourceRestrictedSignIn the source object with updates + * @return the updated RestrictedSignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public RestrictedSignIn patch(final RestrictedSignIn sourceRestrictedSignIn) throws ClientException { + return send(HttpMethod.PATCH, sourceRestrictedSignIn); + } + + /** + * Creates a RestrictedSignIn with a new object + * + * @param newRestrictedSignIn the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final RestrictedSignIn newRestrictedSignIn, final ICallback callback) { + send(HttpMethod.POST, callback, newRestrictedSignIn); + } + + /** + * Creates a RestrictedSignIn with a new object + * + * @param newRestrictedSignIn the new object to create + * @return the created RestrictedSignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public RestrictedSignIn post(final RestrictedSignIn newRestrictedSignIn) throws ClientException { + return send(HttpMethod.POST, newRestrictedSignIn); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public IRestrictedSignInRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (RestrictedSignInRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public IRestrictedSignInRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (RestrictedSignInRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInRequestBuilder.java new file mode 100644 index 00000000000..7768222a190 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/RestrictedSignInRequestBuilder.java @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.IRestrictedSignInRequest; +import com.microsoft.graph.requests.extensions.RestrictedSignInRequest; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Restricted Sign In Request Builder. + */ +public class RestrictedSignInRequestBuilder extends BaseRequestBuilder implements IRestrictedSignInRequestBuilder { + + /** + * The request builder for the RestrictedSignIn + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public RestrictedSignInRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the IRestrictedSignInRequest instance + */ + public IRestrictedSignInRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the IRestrictedSignInRequest instance + */ + public IRestrictedSignInRequest buildRequest(final java.util.List requestOptions) { + return new RestrictedSignInRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionPage.java new file mode 100644 index 00000000000..a4b0e3df178 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionPage.java @@ -0,0 +1,26 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.SignIn; +import com.microsoft.graph.requests.extensions.ISignInCollectionRequestBuilder; +import com.microsoft.graph.http.BaseCollectionPage; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In Collection Page. + */ +public class SignInCollectionPage extends BaseCollectionPage implements ISignInCollectionPage { + + /** + * A collection page for SignIn + * + * @param response the serialized SignInCollectionResponse from the service + * @param builder the request builder for the next collection page + */ + public SignInCollectionPage(final SignInCollectionResponse response, final ISignInCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequest.java new file mode 100644 index 00000000000..849b9c25cb8 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequest.java @@ -0,0 +1,114 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In Collection Request. + */ +public class SignInCollectionRequest extends BaseCollectionRequest implements ISignInCollectionRequest { + + /** + * The request builder for this collection of SignIn + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SignInCollectionRequest(final String requestUrl, IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SignInCollectionResponse.class, ISignInCollectionPage.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 ISignInCollectionPage get() throws ClientException { + final SignInCollectionResponse response = send(); + return buildFromResponse(response); + } + + public void post(final SignIn newSignIn, final ICallback callback) { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + new SignInRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newSignIn, callback); + } + + public SignIn post(final SignIn newSignIn) throws ClientException { + final String requestUrl = getBaseRequest().getRequestUrl().toString(); + return new SignInRequestBuilder(requestUrl, getBaseRequest().getClient(), /* Options */ null) + .buildRequest(getBaseRequest().getOptions()) + .post(newSignIn); + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public ISignInCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (SignInCollectionRequest)this; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public ISignInCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (SignInCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public ISignInCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value + "")); + return (SignInCollectionRequest)this; + } + + public ISignInCollectionPage buildFromResponse(final SignInCollectionResponse response) { + final ISignInCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new SignInCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final SignInCollectionPage page = new SignInCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequestBuilder.java new file mode 100644 index 00000000000..da54544f093 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionRequestBuilder.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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In Collection Request Builder. + */ +public class SignInCollectionRequestBuilder extends BaseRequestBuilder implements ISignInCollectionRequestBuilder { + + /** + * The request builder for this collection of AuditLogRoot + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SignInCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public ISignInCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public ISignInCollectionRequest buildRequest(final java.util.List requestOptions) { + return new SignInCollectionRequest(getRequestUrl(), getClient(), requestOptions); + } + + public ISignInRequestBuilder byId(final String id) { + return new SignInRequestBuilder(getRequestUrlWithAdditionalSegment(id), getClient(), getOptions()); + } + + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionResponse.java new file mode 100644 index 00000000000..547abad5922 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SignInCollectionResponse.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.SignIn; + +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 Sign In Collection Response. + */ +public class SignInCollectionResponse implements IJsonBackedObject { + + /** + * The list of SignIn 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/SignInRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/SignInRequest.java new file mode 100644 index 00000000000..ee05dac4dc0 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SignInRequest.java @@ -0,0 +1,153 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ISignInRequest; +import com.microsoft.graph.requests.extensions.SignInRequest; +import com.microsoft.graph.models.extensions.SignIn; + +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; +import com.microsoft.graph.options.Option; +import com.microsoft.graph.options.QueryOption; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In Request. + */ +public class SignInRequest extends BaseRequest implements ISignInRequest { + + /** + * The request for the SignIn + * + * @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 SignInRequest(final String requestUrl, + final IBaseClient client, + final java.util.List requestOptions, + final Class responseClass) { + super(requestUrl, client, requestOptions, responseClass); + } + + /** + * The request for the SignIn + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SignInRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SignIn.class); + } + + /** + * Gets the SignIn 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 SignIn from the service + * + * @return the SignIn from the request + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public SignIn 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 SignIn with a source + * + * @param sourceSignIn the source object with updates + * @param callback the callback to be called after success or failure + */ + public void patch(final SignIn sourceSignIn, final ICallback callback) { + send(HttpMethod.PATCH, callback, sourceSignIn); + } + + /** + * Patches this SignIn with a source + * + * @param sourceSignIn the source object with updates + * @return the updated SignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public SignIn patch(final SignIn sourceSignIn) throws ClientException { + return send(HttpMethod.PATCH, sourceSignIn); + } + + /** + * Creates a SignIn with a new object + * + * @param newSignIn the new object to create + * @param callback the callback to be called after success or failure + */ + public void post(final SignIn newSignIn, final ICallback callback) { + send(HttpMethod.POST, callback, newSignIn); + } + + /** + * Creates a SignIn with a new object + * + * @param newSignIn the new object to create + * @return the created SignIn + * @throws ClientException this exception occurs if the request was unable to complete for any reason + */ + public SignIn post(final SignIn newSignIn) throws ClientException { + return send(HttpMethod.POST, newSignIn); + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public ISignInRequest select(final String value) { + getQueryOptions().add(new QueryOption("$select", value)); + return (SignInRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public ISignInRequest expand(final String value) { + getQueryOptions().add(new QueryOption("$expand", value)); + return (SignInRequest)this; + } + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SignInRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/SignInRequestBuilder.java new file mode 100644 index 00000000000..4815fb2a96a --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SignInRequestBuilder.java @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.ISignInRequest; +import com.microsoft.graph.requests.extensions.SignInRequest; + +import com.microsoft.graph.core.IBaseClient; +import com.microsoft.graph.http.BaseRequestBuilder; +import com.microsoft.graph.options.Option; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Sign In Request Builder. + */ +public class SignInRequestBuilder extends BaseRequestBuilder implements ISignInRequestBuilder { + + /** + * The request builder for the SignIn + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SignInRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + /** + * Creates the request + * + * @return the ISignInRequest instance + */ + public ISignInRequest buildRequest() { + return buildRequest(getOptions()); + } + + /** + * Creates the request with specific requestOptions instead of the existing requestOptions + * + * @param requestOptions the options for this request + * @return the ISignInRequest instance + */ + public ISignInRequest buildRequest(final java.util.List requestOptions) { + return new SignInRequest(getRequestUrl(), getClient(), requestOptions); + } + + +} + diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionPage.java b/src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionPage.java new file mode 100644 index 00000000000..690598df9bf --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionPage.java @@ -0,0 +1,38 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonObject; +import com.google.gson.annotations.*; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Site Get Activities By Interval Collection Page. + */ +public class SiteGetActivitiesByIntervalCollectionPage extends BaseCollectionPage implements ISiteGetActivitiesByIntervalCollectionPage { + + /** + * A collection page for SiteGetActivitiesByInterval. + * + * @param response The serialized SiteGetActivitiesByIntervalCollectionResponse from the service + * @param builder The request builder for the next collection page + */ + public SiteGetActivitiesByIntervalCollectionPage(final SiteGetActivitiesByIntervalCollectionResponse response, final ISiteGetActivitiesByIntervalCollectionRequestBuilder builder) { + super(response.value, builder); + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionRequest.java b/src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionRequest.java new file mode 100644 index 00000000000..8cfaae79a62 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionRequest.java @@ -0,0 +1,104 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Site Get Activities By Interval Collection Request. + */ +public class SiteGetActivitiesByIntervalCollectionRequest extends BaseCollectionRequest implements ISiteGetActivitiesByIntervalCollectionRequest { + + + /** + * The request for this SiteGetActivitiesByInterval + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SiteGetActivitiesByIntervalCollectionRequest(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions, SiteGetActivitiesByIntervalCollectionResponse.class, ISiteGetActivitiesByIntervalCollectionPage.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 ISiteGetActivitiesByIntervalCollectionPage get() throws ClientException { + final SiteGetActivitiesByIntervalCollectionResponse response = send(); + return buildFromResponse(response); + } + + + public ISiteGetActivitiesByIntervalCollectionPage buildFromResponse(final SiteGetActivitiesByIntervalCollectionResponse response) { + final ISiteGetActivitiesByIntervalCollectionRequestBuilder builder; + if (response.nextLink != null) { + builder = new SiteGetActivitiesByIntervalCollectionRequestBuilder(response.nextLink, getBaseRequest().getClient(), /* options */ null); + } else { + builder = null; + } + final ISiteGetActivitiesByIntervalCollectionPage page = new SiteGetActivitiesByIntervalCollectionPage(response, builder); + page.setRawObject(response.getSerializer(), response.getRawObject()); + return page; + } + + /** + * Sets the select clause for the request + * + * @param value the select clause + * @return the updated request + */ + public ISiteGetActivitiesByIntervalCollectionRequest select(final String value) { + addQueryOption(new QueryOption("$select", value)); + return (ISiteGetActivitiesByIntervalCollectionRequest)this; + } + + /** + * Sets the top value for the request + * + * @param value the max number of items to return + * @return the updated request + */ + public ISiteGetActivitiesByIntervalCollectionRequest top(final int value) { + addQueryOption(new QueryOption("$top", value+"")); + return (ISiteGetActivitiesByIntervalCollectionRequest)this; + } + + /** + * Sets the expand clause for the request + * + * @param value the expand clause + * @return the updated request + */ + public ISiteGetActivitiesByIntervalCollectionRequest expand(final String value) { + addQueryOption(new QueryOption("$expand", value)); + return (ISiteGetActivitiesByIntervalCollectionRequest)this; + } + +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionRequestBuilder.java new file mode 100644 index 00000000000..330d6eac161 --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionRequestBuilder.java @@ -0,0 +1,53 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Site Get Activities By Interval Collection Request Builder. + */ +public class SiteGetActivitiesByIntervalCollectionRequestBuilder extends BaseFunctionRequestBuilder implements ISiteGetActivitiesByIntervalCollectionRequestBuilder { + + /** + * The request builder for this collection of Site + * + * @param requestUrl the request URL + * @param client the service client + * @param requestOptions the options for this request + */ + public SiteGetActivitiesByIntervalCollectionRequestBuilder(final String requestUrl, final IBaseClient client, final java.util.List requestOptions) { + super(requestUrl, client, requestOptions); + } + + public ISiteGetActivitiesByIntervalCollectionRequest buildRequest() { + return buildRequest(getOptions()); + } + + public ISiteGetActivitiesByIntervalCollectionRequest buildRequest(final java.util.List requestOptions) { + SiteGetActivitiesByIntervalCollectionRequest request = new SiteGetActivitiesByIntervalCollectionRequest( + getRequestUrl(), + getClient(), + requestOptions + ); + + for (FunctionOption option : functionOptions) { + request.addFunctionOption(option); + } + + return request; + } +} diff --git a/src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionResponse.java b/src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionResponse.java new file mode 100644 index 00000000000..4d0f55b1f5d --- /dev/null +++ b/src/main/java/com/microsoft/graph/requests/extensions/SiteGetActivitiesByIntervalCollectionResponse.java @@ -0,0 +1,91 @@ +// ------------------------------------------------------------------------------ +// Copyright (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.concurrency.*; +import com.microsoft.graph.core.*; +import com.microsoft.graph.models.extensions.*; +import com.microsoft.graph.models.generated.*; +import com.microsoft.graph.http.*; +import com.microsoft.graph.requests.extensions.*; +import com.microsoft.graph.options.*; +import com.microsoft.graph.serializer.*; + +import java.util.Arrays; +import java.util.EnumSet; + +import com.google.gson.JsonArray; +import com.google.gson.JsonObject; +import com.google.gson.annotations.*; + +// **NOTE** This file was generated by a tool and any changes will be overwritten. + +/** + * The class for the Site Get Activities By Interval Collection Response. + */ +public class SiteGetActivitiesByIntervalCollectionResponse implements IJsonBackedObject { + + @SerializedName("value") + @Expose + public java.util.List value; + + @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/SiteRequestBuilder.java b/src/main/java/com/microsoft/graph/requests/extensions/SiteRequestBuilder.java index 2338c9057c9..e139faafbf4 100644 --- a/src/main/java/com/microsoft/graph/requests/extensions/SiteRequestBuilder.java +++ b/src/main/java/com/microsoft/graph/requests/extensions/SiteRequestBuilder.java @@ -5,6 +5,8 @@ package com.microsoft.graph.requests.extensions; import com.microsoft.graph.requests.extensions.ISiteRequest; import com.microsoft.graph.requests.extensions.SiteRequest; +import com.microsoft.graph.requests.extensions.IItemAnalyticsWithReferenceRequestBuilder; +import com.microsoft.graph.requests.extensions.ItemAnalyticsWithReferenceRequestBuilder; import com.microsoft.graph.requests.extensions.IColumnDefinitionCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.ColumnDefinitionCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.IColumnDefinitionRequestBuilder; @@ -33,6 +35,8 @@ import com.microsoft.graph.requests.extensions.SiteRequestBuilder; import com.microsoft.graph.requests.extensions.IOnenoteRequestBuilder; import com.microsoft.graph.requests.extensions.OnenoteRequestBuilder; +import com.microsoft.graph.requests.extensions.ISiteGetActivitiesByIntervalCollectionRequestBuilder; +import com.microsoft.graph.requests.extensions.SiteGetActivitiesByIntervalCollectionRequestBuilder; import com.microsoft.graph.requests.extensions.ISiteGetByPathRequestBuilder; import com.microsoft.graph.requests.extensions.SiteGetByPathRequestBuilder; @@ -79,6 +83,15 @@ public ISiteRequest buildRequest(final java.util.List requestO } + + /** + * Gets the request builder for ItemAnalytics + * + * @return the IItemAnalyticsWithReferenceRequestBuilder instance + */ + public IItemAnalyticsWithReferenceRequestBuilder analytics() { + return new ItemAnalyticsWithReferenceRequestBuilder(getRequestUrlWithAdditionalSegment("analytics"), getClient(), null); + } public IColumnDefinitionCollectionRequestBuilder columns() { return new ColumnDefinitionCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("columns"), getClient(), null); } @@ -140,6 +153,10 @@ public IOnenoteRequestBuilder onenote() { return new OnenoteRequestBuilder(getRequestUrlWithAdditionalSegment("onenote"), getClient(), null); } + public ISiteGetActivitiesByIntervalCollectionRequestBuilder getActivitiesByInterval() { + return new SiteGetActivitiesByIntervalCollectionRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getActivitiesByInterval"), getClient(), null); + } + public ISiteGetByPathRequestBuilder getByPath(final String path) { return new SiteGetByPathRequestBuilder(getRequestUrlWithAdditionalSegment("microsoft.graph.getByPath"), getClient(), null, path); } From 497cfcea3873d8d1723c76eee2178b42e0d2380c Mon Sep 17 00:00:00 2001 From: Nakul Sabharwal Date: Wed, 15 May 2019 10:37:55 +0530 Subject: [PATCH 11/12] Null check while creating GraphError when body is empty. --- .../graph/http/GraphServiceException.java | 5 ++- .../http/GraphServiceExceptionTests.java | 44 +++++++++++++++++++ 2 files changed, 48 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/microsoft/graph/http/GraphServiceException.java b/src/main/java/com/microsoft/graph/http/GraphServiceException.java index 37ec3c6e760..07dc0c097d0 100644 --- a/src/main/java/com/microsoft/graph/http/GraphServiceException.java +++ b/src/main/java/com/microsoft/graph/http/GraphServiceException.java @@ -311,7 +311,10 @@ public static GraphServiceException createFromConnection(final IHttpRequest } final String responseMessage = connection.getResponseMessage(); - final String rawOutput = DefaultHttpProvider.streamToString(connection.getInputStream()); + String rawOutput = "{}"; + if(connection.getInputStream() != null) { + rawOutput = DefaultHttpProvider.streamToString(connection.getInputStream()); + } GraphErrorResponse error; try { error = serializer.deserializeObject(rawOutput, GraphErrorResponse.class, connection.getResponseHeaders()); diff --git a/src/test/java/com/microsoft/graph/http/GraphServiceExceptionTests.java b/src/test/java/com/microsoft/graph/http/GraphServiceExceptionTests.java index d2f1dd4a71c..58485bb246b 100644 --- a/src/test/java/com/microsoft/graph/http/GraphServiceExceptionTests.java +++ b/src/test/java/com/microsoft/graph/http/GraphServiceExceptionTests.java @@ -4,7 +4,9 @@ import static org.junit.Assert.assertFalse; import static org.junit.Assert.assertTrue; +import java.io.ByteArrayInputStream; import java.io.IOException; +import java.io.InputStream; import java.util.ArrayList; import java.util.HashMap; import java.util.Map; @@ -80,5 +82,47 @@ public Map getHeaders() { assertTrue(message.indexOf("Error code: Unable to parse error response message") == 0); assertTrue(message.indexOf("http://localhost") > 0); } + + @Test + public void testNullConnection() { + DefaultLogger logger = new DefaultLogger(); + GraphServiceException exception = null; + Boolean success = false; + Boolean failure = false; + final ITestConnectionData data = new ITestConnectionData() { + @Override + public int getRequestCode() { + return 401; + } + + @Override + public String getJsonResponse() { + return "{}"; + } + + @Override + public Map getHeaders() { + return new HashMap<>(); + } + }; + try{ + exception = GraphServiceException.createFromConnection(new MockHttpRequest(),null,null,new MockConnection(data) { + @Override + public InputStream getInputStream() throws IOException { + return null; + } + },logger); + success = true; + }catch (IOException ex){ + failure = true; + } + + assertTrue(success); + assertFalse(failure); + + String message = exception.getMessage(); + assertTrue(message.indexOf("Error code: Unable to parse error response message") == 0); + assertTrue(message.indexOf("http://localhost") > 0); + } } From 11ae2e9ab152934fc7b894b3c72744317e77968a Mon Sep 17 00:00:00 2001 From: Nakul Sabharwal Date: Mon, 20 May 2019 09:03:51 +0530 Subject: [PATCH 12/12] Version update to 1.4.0 --- gradle.properties | 2 +- src/main/java/com/microsoft/graph/core/Constants.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/gradle.properties b/gradle.properties index b6efd0afe35..232e30270cd 100644 --- a/gradle.properties +++ b/gradle.properties @@ -26,7 +26,7 @@ mavenBintraySnapshotUrl = http://oss.jfrog.org/artifactory/oss-snapshot-local mavenGroupId = com.microsoft.graph mavenArtifactId = microsoft-graph mavenMajorVersion = 1 -mavenMinorVersion = 3 +mavenMinorVersion = 4 mavenPatchVersion = 0 mavenArtifactSuffix = nightliesUrl = http://dl.bintray.com/MicrosoftGraph/Maven diff --git a/src/main/java/com/microsoft/graph/core/Constants.java b/src/main/java/com/microsoft/graph/core/Constants.java index ade814e2dc1..64dd1c935a8 100644 --- a/src/main/java/com/microsoft/graph/core/Constants.java +++ b/src/main/java/com/microsoft/graph/core/Constants.java @@ -12,5 +12,5 @@ private Constants() { public static final String APPID = "app-id"; public static final String USERNAME = "user@email.com"; public static final String PASSWORD = "password"; - public static final String VERSION_NAME = "1.3.0"; + public static final String VERSION_NAME = "1.4.0"; }