diff --git a/README.md b/README.md
index c118b8b11a9..ba052f465f9 100644
--- a/README.md
+++ b/README.md
@@ -19,7 +19,7 @@ repositories {
dependencies {
// Include the sdk as a dependency
- implementation 'com.microsoft.graph:microsoft-graph:4.0.0'
+ implementation 'com.microsoft.graph:microsoft-graph:4.1.0'
// Uncomment the line below if you are building an android application
//implementation 'com.google.guava:guava:30.1.1-android'
// This dependency is only needed if you are using the TokenCrendentialAuthProvider
@@ -36,7 +36,7 @@ Add the dependency in `dependencies` in pom.xml
com.microsoft.graph
microsoft-graph
- 4.0.0
+ 4.1.0
@@ -145,3 +145,4 @@ Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the [MI
+
diff --git a/gradle.properties b/gradle.properties
index b3de44db5a7..b981ade9287 100644
--- a/gradle.properties
+++ b/gradle.properties
@@ -26,7 +26,7 @@ org.gradle.caching=true
mavenGroupId = com.microsoft.graph
mavenArtifactId = microsoft-graph
mavenMajorVersion = 4
-mavenMinorVersion = 0
+mavenMinorVersion = 1
mavenPatchVersion = 0
mavenArtifactSuffix =
@@ -54,3 +54,4 @@ mavenCentralPublishingEnabled=false
+
diff --git a/src/main/java/com/microsoft/graph/callrecords/models/DirectRoutingLogRow.java b/src/main/java/com/microsoft/graph/callrecords/models/DirectRoutingLogRow.java
new file mode 100644
index 00000000000..40351695d9c
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/callrecords/models/DirectRoutingLogRow.java
@@ -0,0 +1,239 @@
+// Template Source: BaseEntity.java.tt
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+package com.microsoft.graph.callrecords.models;
+import com.microsoft.graph.serializer.ISerializer;
+import com.microsoft.graph.serializer.IJsonBackedObject;
+import com.microsoft.graph.serializer.AdditionalDataManager;
+import java.util.EnumSet;
+
+
+import com.google.gson.JsonObject;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.annotations.Expose;
+import javax.annotation.Nullable;
+import javax.annotation.Nonnull;
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+
+/**
+ * The class for the Direct Routing Log Row.
+ */
+public class DirectRoutingLogRow implements IJsonBackedObject {
+
+ /** the OData type of the object as returned by the service */
+ @SerializedName("@odata.type")
+ @Expose
+ @Nullable
+ public String oDataType;
+
+ private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
+
+ @Override
+ @Nonnull
+ public final AdditionalDataManager additionalDataManager() {
+ return additionalDataManager;
+ }
+
+ /**
+ * The Callee Number.
+ *
+ */
+ @SerializedName(value = "calleeNumber", alternate = {"CalleeNumber"})
+ @Expose
+ @Nullable
+ public String calleeNumber;
+
+ /**
+ * The Call End Sub Reason.
+ *
+ */
+ @SerializedName(value = "callEndSubReason", alternate = {"CallEndSubReason"})
+ @Expose
+ @Nullable
+ public Integer callEndSubReason;
+
+ /**
+ * The Caller Number.
+ *
+ */
+ @SerializedName(value = "callerNumber", alternate = {"CallerNumber"})
+ @Expose
+ @Nullable
+ public String callerNumber;
+
+ /**
+ * The Call Type.
+ *
+ */
+ @SerializedName(value = "callType", alternate = {"CallType"})
+ @Expose
+ @Nullable
+ public String callType;
+
+ /**
+ * The Correlation Id.
+ *
+ */
+ @SerializedName(value = "correlationId", alternate = {"CorrelationId"})
+ @Expose
+ @Nullable
+ public String correlationId;
+
+ /**
+ * The Duration.
+ *
+ */
+ @SerializedName(value = "duration", alternate = {"Duration"})
+ @Expose
+ @Nullable
+ public Integer duration;
+
+ /**
+ * The End Date Time.
+ *
+ */
+ @SerializedName(value = "endDateTime", alternate = {"EndDateTime"})
+ @Expose
+ @Nullable
+ public java.time.OffsetDateTime endDateTime;
+
+ /**
+ * The Failure Date Time.
+ *
+ */
+ @SerializedName(value = "failureDateTime", alternate = {"FailureDateTime"})
+ @Expose
+ @Nullable
+ public java.time.OffsetDateTime failureDateTime;
+
+ /**
+ * The Final Sip Code.
+ *
+ */
+ @SerializedName(value = "finalSipCode", alternate = {"FinalSipCode"})
+ @Expose
+ @Nullable
+ public Integer finalSipCode;
+
+ /**
+ * The Final Sip Code Phrase.
+ *
+ */
+ @SerializedName(value = "finalSipCodePhrase", alternate = {"FinalSipCodePhrase"})
+ @Expose
+ @Nullable
+ public String finalSipCodePhrase;
+
+ /**
+ * The Id.
+ *
+ */
+ @SerializedName(value = "id", alternate = {"Id"})
+ @Expose
+ @Nullable
+ public String id;
+
+ /**
+ * The Invite Date Time.
+ *
+ */
+ @SerializedName(value = "inviteDateTime", alternate = {"InviteDateTime"})
+ @Expose
+ @Nullable
+ public java.time.OffsetDateTime inviteDateTime;
+
+ /**
+ * The Media Bypass Enabled.
+ *
+ */
+ @SerializedName(value = "mediaBypassEnabled", alternate = {"MediaBypassEnabled"})
+ @Expose
+ @Nullable
+ public Boolean mediaBypassEnabled;
+
+ /**
+ * The Media Path Location.
+ *
+ */
+ @SerializedName(value = "mediaPathLocation", alternate = {"MediaPathLocation"})
+ @Expose
+ @Nullable
+ public String mediaPathLocation;
+
+ /**
+ * The Signaling Location.
+ *
+ */
+ @SerializedName(value = "signalingLocation", alternate = {"SignalingLocation"})
+ @Expose
+ @Nullable
+ public String signalingLocation;
+
+ /**
+ * The Start Date Time.
+ *
+ */
+ @SerializedName(value = "startDateTime", alternate = {"StartDateTime"})
+ @Expose
+ @Nullable
+ public java.time.OffsetDateTime startDateTime;
+
+ /**
+ * The Successful Call.
+ *
+ */
+ @SerializedName(value = "successfulCall", alternate = {"SuccessfulCall"})
+ @Expose
+ @Nullable
+ public Boolean successfulCall;
+
+ /**
+ * The Trunk Fully Qualified Domain Name.
+ *
+ */
+ @SerializedName(value = "trunkFullyQualifiedDomainName", alternate = {"TrunkFullyQualifiedDomainName"})
+ @Expose
+ @Nullable
+ public String trunkFullyQualifiedDomainName;
+
+ /**
+ * The User Display Name.
+ *
+ */
+ @SerializedName(value = "userDisplayName", alternate = {"UserDisplayName"})
+ @Expose
+ @Nullable
+ public String userDisplayName;
+
+ /**
+ * The User Id.
+ *
+ */
+ @SerializedName(value = "userId", alternate = {"UserId"})
+ @Expose
+ @Nullable
+ public String userId;
+
+ /**
+ * The User Principal Name.
+ *
+ */
+ @SerializedName(value = "userPrincipalName", alternate = {"UserPrincipalName"})
+ @Expose
+ @Nullable
+ public String userPrincipalName;
+
+
+ /**
+ * Sets the raw JSON object
+ *
+ * @param serializer the serializer
+ * @param json the JSON object to set this object to
+ */
+ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
+
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/callrecords/models/PstnCallDurationSource.java b/src/main/java/com/microsoft/graph/callrecords/models/PstnCallDurationSource.java
new file mode 100644
index 00000000000..74f9b60ab7e
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/callrecords/models/PstnCallDurationSource.java
@@ -0,0 +1,26 @@
+// Template Source: Enum.java.tt
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+package com.microsoft.graph.callrecords.models;
+
+
+/**
+ * The Enum Pstn Call Duration Source.
+*/
+public enum PstnCallDurationSource
+{
+ /**
+ * microsoft
+ */
+ MICROSOFT,
+ /**
+ * operator
+ */
+ OPERATOR,
+ /**
+ * For PstnCallDurationSource values that were not expected from the service
+ */
+ UNEXPECTED_VALUE
+}
diff --git a/src/main/java/com/microsoft/graph/callrecords/models/PstnCallLogRow.java b/src/main/java/com/microsoft/graph/callrecords/models/PstnCallLogRow.java
new file mode 100644
index 00000000000..ea22a129d1e
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/callrecords/models/PstnCallLogRow.java
@@ -0,0 +1,258 @@
+// Template Source: BaseEntity.java.tt
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+package com.microsoft.graph.callrecords.models;
+import com.microsoft.graph.serializer.ISerializer;
+import com.microsoft.graph.serializer.IJsonBackedObject;
+import com.microsoft.graph.serializer.AdditionalDataManager;
+import java.util.EnumSet;
+import com.microsoft.graph.callrecords.models.PstnCallDurationSource;
+
+
+import com.google.gson.JsonObject;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.annotations.Expose;
+import javax.annotation.Nullable;
+import javax.annotation.Nonnull;
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+
+/**
+ * The class for the Pstn Call Log Row.
+ */
+public class PstnCallLogRow implements IJsonBackedObject {
+
+ /** the OData type of the object as returned by the service */
+ @SerializedName("@odata.type")
+ @Expose
+ @Nullable
+ public String oDataType;
+
+ private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
+
+ @Override
+ @Nonnull
+ public final AdditionalDataManager additionalDataManager() {
+ return additionalDataManager;
+ }
+
+ /**
+ * The Call Duration Source.
+ *
+ */
+ @SerializedName(value = "callDurationSource", alternate = {"CallDurationSource"})
+ @Expose
+ @Nullable
+ public PstnCallDurationSource callDurationSource;
+
+ /**
+ * The Callee Number.
+ *
+ */
+ @SerializedName(value = "calleeNumber", alternate = {"CalleeNumber"})
+ @Expose
+ @Nullable
+ public String calleeNumber;
+
+ /**
+ * The Caller Number.
+ *
+ */
+ @SerializedName(value = "callerNumber", alternate = {"CallerNumber"})
+ @Expose
+ @Nullable
+ public String callerNumber;
+
+ /**
+ * The Call Id.
+ *
+ */
+ @SerializedName(value = "callId", alternate = {"CallId"})
+ @Expose
+ @Nullable
+ public String callId;
+
+ /**
+ * The Call Type.
+ *
+ */
+ @SerializedName(value = "callType", alternate = {"CallType"})
+ @Expose
+ @Nullable
+ public String callType;
+
+ /**
+ * The Charge.
+ *
+ */
+ @SerializedName(value = "charge", alternate = {"Charge"})
+ @Expose
+ @Nullable
+ public java.math.BigDecimal charge;
+
+ /**
+ * The Conference Id.
+ *
+ */
+ @SerializedName(value = "conferenceId", alternate = {"ConferenceId"})
+ @Expose
+ @Nullable
+ public String conferenceId;
+
+ /**
+ * The Connection Charge.
+ *
+ */
+ @SerializedName(value = "connectionCharge", alternate = {"ConnectionCharge"})
+ @Expose
+ @Nullable
+ public java.math.BigDecimal connectionCharge;
+
+ /**
+ * The Currency.
+ *
+ */
+ @SerializedName(value = "currency", alternate = {"Currency"})
+ @Expose
+ @Nullable
+ public String currency;
+
+ /**
+ * The Destination Context.
+ *
+ */
+ @SerializedName(value = "destinationContext", alternate = {"DestinationContext"})
+ @Expose
+ @Nullable
+ public String destinationContext;
+
+ /**
+ * The Destination Name.
+ *
+ */
+ @SerializedName(value = "destinationName", alternate = {"DestinationName"})
+ @Expose
+ @Nullable
+ public String destinationName;
+
+ /**
+ * The Duration.
+ *
+ */
+ @SerializedName(value = "duration", alternate = {"Duration"})
+ @Expose
+ @Nullable
+ public Integer duration;
+
+ /**
+ * The End Date Time.
+ *
+ */
+ @SerializedName(value = "endDateTime", alternate = {"EndDateTime"})
+ @Expose
+ @Nullable
+ public java.time.OffsetDateTime endDateTime;
+
+ /**
+ * The Id.
+ *
+ */
+ @SerializedName(value = "id", alternate = {"Id"})
+ @Expose
+ @Nullable
+ public String id;
+
+ /**
+ * The Inventory Type.
+ *
+ */
+ @SerializedName(value = "inventoryType", alternate = {"InventoryType"})
+ @Expose
+ @Nullable
+ public String inventoryType;
+
+ /**
+ * The License Capability.
+ *
+ */
+ @SerializedName(value = "licenseCapability", alternate = {"LicenseCapability"})
+ @Expose
+ @Nullable
+ public String licenseCapability;
+
+ /**
+ * The Operator.
+ *
+ */
+ @SerializedName(value = "operator", alternate = {"Operator"})
+ @Expose
+ @Nullable
+ public String operator;
+
+ /**
+ * The Start Date Time.
+ *
+ */
+ @SerializedName(value = "startDateTime", alternate = {"StartDateTime"})
+ @Expose
+ @Nullable
+ public java.time.OffsetDateTime startDateTime;
+
+ /**
+ * The Tenant Country Code.
+ *
+ */
+ @SerializedName(value = "tenantCountryCode", alternate = {"TenantCountryCode"})
+ @Expose
+ @Nullable
+ public String tenantCountryCode;
+
+ /**
+ * The Usage Country Code.
+ *
+ */
+ @SerializedName(value = "usageCountryCode", alternate = {"UsageCountryCode"})
+ @Expose
+ @Nullable
+ public String usageCountryCode;
+
+ /**
+ * The User Display Name.
+ *
+ */
+ @SerializedName(value = "userDisplayName", alternate = {"UserDisplayName"})
+ @Expose
+ @Nullable
+ public String userDisplayName;
+
+ /**
+ * The User Id.
+ *
+ */
+ @SerializedName(value = "userId", alternate = {"UserId"})
+ @Expose
+ @Nullable
+ public String userId;
+
+ /**
+ * The User Principal Name.
+ *
+ */
+ @SerializedName(value = "userPrincipalName", alternate = {"UserPrincipalName"})
+ @Expose
+ @Nullable
+ public String userPrincipalName;
+
+
+ /**
+ * Sets the raw JSON object
+ *
+ * @param serializer the serializer
+ * @param json the JSON object to set this object to
+ */
+ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
+
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/AccessType.java b/src/main/java/com/microsoft/graph/externalconnectors/models/AccessType.java
new file mode 100644
index 00000000000..487add31228
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/externalconnectors/models/AccessType.java
@@ -0,0 +1,30 @@
+// Template Source: Enum.java.tt
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+package com.microsoft.graph.externalconnectors.models;
+
+
+/**
+ * The Enum Access Type.
+*/
+public enum AccessType
+{
+ /**
+ * grant
+ */
+ GRANT,
+ /**
+ * deny
+ */
+ DENY,
+ /**
+ * unknown Future Value
+ */
+ UNKNOWN_FUTURE_VALUE,
+ /**
+ * For AccessType values that were not expected from the service
+ */
+ UNEXPECTED_VALUE
+}
diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/Acl.java b/src/main/java/com/microsoft/graph/externalconnectors/models/Acl.java
new file mode 100644
index 00000000000..07edb2dc5d0
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/externalconnectors/models/Acl.java
@@ -0,0 +1,79 @@
+// Template Source: BaseEntity.java.tt
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+package com.microsoft.graph.externalconnectors.models;
+import com.microsoft.graph.serializer.ISerializer;
+import com.microsoft.graph.serializer.IJsonBackedObject;
+import com.microsoft.graph.serializer.AdditionalDataManager;
+import java.util.EnumSet;
+import com.microsoft.graph.externalconnectors.models.AccessType;
+import com.microsoft.graph.externalconnectors.models.AclType;
+
+
+import com.google.gson.JsonObject;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.annotations.Expose;
+import javax.annotation.Nullable;
+import javax.annotation.Nonnull;
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+
+/**
+ * The class for the Acl.
+ */
+public class Acl implements IJsonBackedObject {
+
+ /** the OData type of the object as returned by the service */
+ @SerializedName("@odata.type")
+ @Expose
+ @Nullable
+ public String oDataType;
+
+ private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
+
+ @Override
+ @Nonnull
+ public final AdditionalDataManager additionalDataManager() {
+ return additionalDataManager;
+ }
+
+ /**
+ * The Access Type.
+ * The access granted to the identity. Possible values are: grant, deny.
+ */
+ @SerializedName(value = "accessType", alternate = {"AccessType"})
+ @Expose
+ @Nullable
+ public AccessType accessType;
+
+ /**
+ * The Type.
+ * The type of identity. Possible values are: user, group, everyone, everyoneExceptGuests if the identitySource is azureActiveDirectory and just group if the identitySource is external.
+ */
+ @SerializedName(value = "type", alternate = {"Type"})
+ @Expose
+ @Nullable
+ public AclType type;
+
+ /**
+ * The Value.
+ * The unique identifer of the identity. In case of Azure Active Directory identities, value is set to the object identifier of the user, group or tenant for types user, group and everyone (and everyoneExceptGuests) respectively. In case of external groups value is set to the ID of the externalGroup.
+ */
+ @SerializedName(value = "value", alternate = {"Value"})
+ @Expose
+ @Nullable
+ public String value;
+
+
+ /**
+ * Sets the raw JSON object
+ *
+ * @param serializer the serializer
+ * @param json the JSON object to set this object to
+ */
+ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
+
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/AclType.java b/src/main/java/com/microsoft/graph/externalconnectors/models/AclType.java
new file mode 100644
index 00000000000..acf666b0766
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/externalconnectors/models/AclType.java
@@ -0,0 +1,42 @@
+// Template Source: Enum.java.tt
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+package com.microsoft.graph.externalconnectors.models;
+
+
+/**
+ * The Enum Acl Type.
+*/
+public enum AclType
+{
+ /**
+ * user
+ */
+ USER,
+ /**
+ * group
+ */
+ GROUP,
+ /**
+ * everyone
+ */
+ EVERYONE,
+ /**
+ * everyone Except Guests
+ */
+ EVERYONE_EXCEPT_GUESTS,
+ /**
+ * external Group
+ */
+ EXTERNAL_GROUP,
+ /**
+ * unknown Future Value
+ */
+ UNKNOWN_FUTURE_VALUE,
+ /**
+ * For AclType values that were not expected from the service
+ */
+ UNEXPECTED_VALUE
+}
diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/Configuration.java b/src/main/java/com/microsoft/graph/externalconnectors/models/Configuration.java
new file mode 100644
index 00000000000..be2f9995b76
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/externalconnectors/models/Configuration.java
@@ -0,0 +1,60 @@
+// Template Source: BaseEntity.java.tt
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+package com.microsoft.graph.externalconnectors.models;
+import com.microsoft.graph.serializer.ISerializer;
+import com.microsoft.graph.serializer.IJsonBackedObject;
+import com.microsoft.graph.serializer.AdditionalDataManager;
+import java.util.EnumSet;
+import com.microsoft.graph.http.BaseCollectionPage;
+
+
+import com.google.gson.JsonObject;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.annotations.Expose;
+import javax.annotation.Nullable;
+import javax.annotation.Nonnull;
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+
+/**
+ * The class for the Configuration.
+ */
+public class Configuration implements IJsonBackedObject {
+
+ /** the OData type of the object as returned by the service */
+ @SerializedName("@odata.type")
+ @Expose
+ @Nullable
+ public String oDataType;
+
+ private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
+
+ @Override
+ @Nonnull
+ public final AdditionalDataManager additionalDataManager() {
+ return additionalDataManager;
+ }
+
+ /**
+ * The Authorized App Ids.
+ * A collection of application IDs for registered Azure Active Directory apps that are allowed to manage the externalConnection and to index content in the externalConnection.
+ */
+ @SerializedName(value = "authorizedAppIds", alternate = {"AuthorizedAppIds"})
+ @Expose
+ @Nullable
+ public java.util.List authorizedAppIds;
+
+
+ /**
+ * Sets the raw JSON object
+ *
+ * @param serializer the serializer
+ * @param json the JSON object to set this object to
+ */
+ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
+
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/ConnectionOperation.java b/src/main/java/com/microsoft/graph/externalconnectors/models/ConnectionOperation.java
new file mode 100644
index 00000000000..141732b8820
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/externalconnectors/models/ConnectionOperation.java
@@ -0,0 +1,58 @@
+// Template Source: BaseEntity.java.tt
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+package com.microsoft.graph.externalconnectors.models;
+import com.microsoft.graph.serializer.ISerializer;
+import com.microsoft.graph.serializer.IJsonBackedObject;
+import com.microsoft.graph.serializer.AdditionalDataManager;
+import java.util.EnumSet;
+import com.microsoft.graph.models.PublicError;
+import com.microsoft.graph.externalconnectors.models.ConnectionOperationStatus;
+import com.microsoft.graph.models.Entity;
+
+
+import com.google.gson.JsonObject;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.annotations.Expose;
+import javax.annotation.Nullable;
+import javax.annotation.Nonnull;
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+
+/**
+ * The class for the Connection Operation.
+ */
+public class ConnectionOperation extends Entity implements IJsonBackedObject {
+
+
+ /**
+ * The Error.
+ * If status is failed, provides more information about the error that caused the failure.
+ */
+ @SerializedName(value = "error", alternate = {"Error"})
+ @Expose
+ @Nullable
+ public PublicError error;
+
+ /**
+ * The Status.
+ * Indicates the status of the asynchronous operation. Possible values are: unspecified, inprogress, completed, failed.
+ */
+ @SerializedName(value = "status", alternate = {"Status"})
+ @Expose
+ @Nullable
+ public ConnectionOperationStatus status;
+
+
+ /**
+ * Sets the raw JSON object
+ *
+ * @param serializer the serializer
+ * @param json the JSON object to set this object to
+ */
+ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
+
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/ConnectionOperationStatus.java b/src/main/java/com/microsoft/graph/externalconnectors/models/ConnectionOperationStatus.java
new file mode 100644
index 00000000000..57471169caf
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/externalconnectors/models/ConnectionOperationStatus.java
@@ -0,0 +1,38 @@
+// Template Source: Enum.java.tt
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+package com.microsoft.graph.externalconnectors.models;
+
+
+/**
+ * The Enum Connection Operation Status.
+*/
+public enum ConnectionOperationStatus
+{
+ /**
+ * unspecified
+ */
+ UNSPECIFIED,
+ /**
+ * inprogress
+ */
+ INPROGRESS,
+ /**
+ * completed
+ */
+ COMPLETED,
+ /**
+ * failed
+ */
+ FAILED,
+ /**
+ * unknown Future Value
+ */
+ UNKNOWN_FUTURE_VALUE,
+ /**
+ * For ConnectionOperationStatus values that were not expected from the service
+ */
+ UNEXPECTED_VALUE
+}
diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/ConnectionState.java b/src/main/java/com/microsoft/graph/externalconnectors/models/ConnectionState.java
new file mode 100644
index 00000000000..9ad32921188
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/externalconnectors/models/ConnectionState.java
@@ -0,0 +1,38 @@
+// Template Source: Enum.java.tt
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+package com.microsoft.graph.externalconnectors.models;
+
+
+/**
+ * The Enum Connection State.
+*/
+public enum ConnectionState
+{
+ /**
+ * draft
+ */
+ DRAFT,
+ /**
+ * ready
+ */
+ READY,
+ /**
+ * obsolete
+ */
+ OBSOLETE,
+ /**
+ * limit Exceeded
+ */
+ LIMIT_EXCEEDED,
+ /**
+ * unknown Future Value
+ */
+ UNKNOWN_FUTURE_VALUE,
+ /**
+ * For ConnectionState values that were not expected from the service
+ */
+ UNEXPECTED_VALUE
+}
diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/External.java b/src/main/java/com/microsoft/graph/externalconnectors/models/External.java
new file mode 100644
index 00000000000..7905877004a
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/externalconnectors/models/External.java
@@ -0,0 +1,66 @@
+// Template Source: BaseEntity.java.tt
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+package com.microsoft.graph.externalconnectors.models;
+import com.microsoft.graph.serializer.ISerializer;
+import com.microsoft.graph.serializer.IJsonBackedObject;
+import com.microsoft.graph.serializer.AdditionalDataManager;
+import java.util.EnumSet;
+import com.microsoft.graph.http.BaseCollectionPage;
+import com.microsoft.graph.externalconnectors.models.ExternalConnection;
+import com.microsoft.graph.externalconnectors.requests.ExternalConnectionCollectionPage;
+
+
+import com.google.gson.JsonObject;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.annotations.Expose;
+import javax.annotation.Nullable;
+import javax.annotation.Nonnull;
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+
+/**
+ * The class for the External.
+ */
+public class External implements IJsonBackedObject {
+
+ /** the OData type of the object as returned by the service */
+ @SerializedName("@odata.type")
+ @Expose
+ @Nullable
+ public String oDataType;
+
+ private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
+
+ @Override
+ @Nonnull
+ public final AdditionalDataManager additionalDataManager() {
+ return additionalDataManager;
+ }
+
+ /**
+ * The Connections.
+ *
+ */
+ @SerializedName(value = "connections", alternate = {"Connections"})
+ @Expose
+ @Nullable
+ public ExternalConnectionCollectionPage connections;
+
+
+ /**
+ * Sets the raw JSON object
+ *
+ * @param serializer the serializer
+ * @param json the JSON object to set this object to
+ */
+ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
+
+
+ if (json.has("connections")) {
+ connections = serializer.deserializeObject(json.get("connections"), ExternalConnectionCollectionPage.class);
+ }
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalConnection.java b/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalConnection.java
new file mode 100644
index 00000000000..702c61efec2
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalConnection.java
@@ -0,0 +1,117 @@
+// Template Source: BaseEntity.java.tt
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+package com.microsoft.graph.externalconnectors.models;
+import com.microsoft.graph.serializer.ISerializer;
+import com.microsoft.graph.serializer.IJsonBackedObject;
+import com.microsoft.graph.serializer.AdditionalDataManager;
+import java.util.EnumSet;
+import com.microsoft.graph.http.BaseCollectionPage;
+import com.microsoft.graph.externalconnectors.models.Configuration;
+import com.microsoft.graph.externalconnectors.models.ConnectionState;
+import com.microsoft.graph.externalconnectors.models.ExternalItem;
+import com.microsoft.graph.externalconnectors.models.ConnectionOperation;
+import com.microsoft.graph.externalconnectors.models.Schema;
+import com.microsoft.graph.models.Entity;
+import com.microsoft.graph.externalconnectors.requests.ExternalItemCollectionPage;
+import com.microsoft.graph.externalconnectors.requests.ConnectionOperationCollectionPage;
+
+
+import com.google.gson.JsonObject;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.annotations.Expose;
+import javax.annotation.Nullable;
+import javax.annotation.Nonnull;
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+
+/**
+ * The class for the External Connection.
+ */
+public class ExternalConnection extends Entity implements IJsonBackedObject {
+
+
+ /**
+ * The Configuration.
+ * Specifies additional application IDs that are allowed to manage the connection and to index content in the connection. Optional.
+ */
+ @SerializedName(value = "configuration", alternate = {"Configuration"})
+ @Expose
+ @Nullable
+ public Configuration configuration;
+
+ /**
+ * The Description.
+ * Description of the connection displayed in the Microsoft 365 admin center. Optional.
+ */
+ @SerializedName(value = "description", alternate = {"Description"})
+ @Expose
+ @Nullable
+ public String description;
+
+ /**
+ * The Name.
+ * The display name of the connection to be displayed in the Microsoft 365 admin center. Maximum length of 128 characters. Required.
+ */
+ @SerializedName(value = "name", alternate = {"Name"})
+ @Expose
+ @Nullable
+ public String name;
+
+ /**
+ * The State.
+ * Indicates the current state of the connection. Possible values are draft, ready, obsolete, and limitExceeded. Required.
+ */
+ @SerializedName(value = "state", alternate = {"State"})
+ @Expose
+ @Nullable
+ public ConnectionState state;
+
+ /**
+ * The Items.
+ * Read-only. Nullable.
+ */
+ @SerializedName(value = "items", alternate = {"Items"})
+ @Expose
+ @Nullable
+ public ExternalItemCollectionPage items;
+
+ /**
+ * The Operations.
+ * Read-only. Nullable.
+ */
+ @SerializedName(value = "operations", alternate = {"Operations"})
+ @Expose
+ @Nullable
+ public ConnectionOperationCollectionPage operations;
+
+ /**
+ * The Schema.
+ * Read-only. Nullable.
+ */
+ @SerializedName(value = "schema", alternate = {"Schema"})
+ @Expose
+ @Nullable
+ public Schema schema;
+
+
+ /**
+ * Sets the raw JSON object
+ *
+ * @param serializer the serializer
+ * @param json the JSON object to set this object to
+ */
+ public void setRawObject(@Nonnull final ISerializer serializer, @Nonnull final JsonObject json) {
+
+
+ if (json.has("items")) {
+ items = serializer.deserializeObject(json.get("items"), ExternalItemCollectionPage.class);
+ }
+
+ if (json.has("operations")) {
+ operations = serializer.deserializeObject(json.get("operations"), ConnectionOperationCollectionPage.class);
+ }
+ }
+}
diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalItem.java b/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalItem.java
index 4cb84d1b5e7..15a869d4127 100644
--- a/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalItem.java
+++ b/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalItem.java
@@ -8,6 +8,8 @@
import com.microsoft.graph.serializer.IJsonBackedObject;
import com.microsoft.graph.serializer.AdditionalDataManager;
import java.util.EnumSet;
+import com.microsoft.graph.http.BaseCollectionPage;
+import com.microsoft.graph.externalconnectors.models.Acl;
import com.microsoft.graph.externalconnectors.models.ExternalItemContent;
import com.microsoft.graph.externalconnectors.models.Properties;
import com.microsoft.graph.models.Entity;
@@ -27,9 +29,18 @@
public class ExternalItem extends Entity implements IJsonBackedObject {
+ /**
+ * The Acl.
+ * An array of access control entries. Each entry specifies the access granted to a user or group. Required.
+ */
+ @SerializedName(value = "acl", alternate = {"Acl"})
+ @Expose
+ @Nullable
+ public java.util.List acl;
+
/**
* The Content.
- *
+ * A plain-text representation of the contents of the item. The text in this property is full-text indexed. Optional.
*/
@SerializedName(value = "content", alternate = {"Content"})
@Expose
@@ -38,7 +49,7 @@ public class ExternalItem extends Entity implements IJsonBackedObject {
/**
* The Properties.
- *
+ * A property bag with the properties of the item. The properties MUST conform to the schema defined for the externalConnection. Required.
*/
@SerializedName(value = "properties", alternate = {"Properties"})
@Expose
diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalItemContent.java b/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalItemContent.java
index 24067376e2a..f3026b9196f 100644
--- a/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalItemContent.java
+++ b/src/main/java/com/microsoft/graph/externalconnectors/models/ExternalItemContent.java
@@ -40,7 +40,7 @@ public final AdditionalDataManager additionalDataManager() {
/**
* The Type.
- *
+ * The type of content in the value property. Possible values are text and html. Required.
*/
@SerializedName(value = "type", alternate = {"Type"})
@Expose
@@ -49,7 +49,7 @@ public final AdditionalDataManager additionalDataManager() {
/**
* The Value.
- *
+ * The content for the externalItem. Required.
*/
@SerializedName(value = "value", alternate = {"Value"})
@Expose
diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/Label.java b/src/main/java/com/microsoft/graph/externalconnectors/models/Label.java
new file mode 100644
index 00000000000..37d10803768
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/externalconnectors/models/Label.java
@@ -0,0 +1,58 @@
+// Template Source: Enum.java.tt
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+package com.microsoft.graph.externalconnectors.models;
+
+
+/**
+ * The Enum Label.
+*/
+public enum Label
+{
+ /**
+ * title
+ */
+ TITLE,
+ /**
+ * url
+ */
+ URL,
+ /**
+ * created By
+ */
+ CREATED_BY,
+ /**
+ * last Modified By
+ */
+ LAST_MODIFIED_BY,
+ /**
+ * authors
+ */
+ AUTHORS,
+ /**
+ * created Date Time
+ */
+ CREATED_DATE_TIME,
+ /**
+ * last Modified Date Time
+ */
+ LAST_MODIFIED_DATE_TIME,
+ /**
+ * file Name
+ */
+ FILE_NAME,
+ /**
+ * file Extension
+ */
+ FILE_EXTENSION,
+ /**
+ * unknown Future Value
+ */
+ UNKNOWN_FUTURE_VALUE,
+ /**
+ * For Label values that were not expected from the service
+ */
+ UNEXPECTED_VALUE
+}
diff --git a/src/main/java/com/microsoft/graph/externalconnectors/models/Property.java b/src/main/java/com/microsoft/graph/externalconnectors/models/Property.java
new file mode 100644
index 00000000000..5c206e564a7
--- /dev/null
+++ b/src/main/java/com/microsoft/graph/externalconnectors/models/Property.java
@@ -0,0 +1,125 @@
+// Template Source: BaseEntity.java.tt
+// ------------------------------------------------------------------------------
+// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information.
+// ------------------------------------------------------------------------------
+
+package com.microsoft.graph.externalconnectors.models;
+import com.microsoft.graph.serializer.ISerializer;
+import com.microsoft.graph.serializer.IJsonBackedObject;
+import com.microsoft.graph.serializer.AdditionalDataManager;
+import java.util.EnumSet;
+import com.microsoft.graph.http.BaseCollectionPage;
+import com.microsoft.graph.externalconnectors.models.Label;
+import com.microsoft.graph.externalconnectors.models.PropertyType;
+
+
+import com.google.gson.JsonObject;
+import com.google.gson.annotations.SerializedName;
+import com.google.gson.annotations.Expose;
+import javax.annotation.Nullable;
+import javax.annotation.Nonnull;
+
+// **NOTE** This file was generated by a tool and any changes will be overwritten.
+
+/**
+ * The class for the Property.
+ */
+public class Property implements IJsonBackedObject {
+
+ /** the OData type of the object as returned by the service */
+ @SerializedName("@odata.type")
+ @Expose
+ @Nullable
+ public String oDataType;
+
+ private transient AdditionalDataManager additionalDataManager = new AdditionalDataManager(this);
+
+ @Override
+ @Nonnull
+ public final AdditionalDataManager additionalDataManager() {
+ return additionalDataManager;
+ }
+
+ /**
+ * The Aliases.
+ * A set of aliases or a friendly names for the property. Maximum 32 characters. Each string must not contain control characters, whitespace, or any of the following: :, ;, ,, (, ), [, ], {, }, %, $, +, !, *, =, &, ?, @, #, /, ~, ', ', <, >, `
+ */
+ @SerializedName(value = "aliases", alternate = {"Aliases"})
+ @Expose
+ @Nullable
+ public java.util.List aliases;
+
+ /**
+ * The Is Queryable.
+ * Specifies if the property is queryable. Queryable properties can be used in Keyword Query Language (KQL) queries. Optional.
+ */
+ @SerializedName(value = "isQueryable", alternate = {"IsQueryable"})
+ @Expose
+ @Nullable
+ public Boolean isQueryable;
+
+ /**
+ * The Is Refinable.
+ * Specifies if the property is refinable. Refinable properties can be used to filter search results in the Search API and add a refiner control in the Microsoft Search user experience. Optional.
+ */
+ @SerializedName(value = "isRefinable", alternate = {"IsRefinable"})
+ @Expose
+ @Nullable
+ public Boolean isRefinable;
+
+ /**
+ * The Is Retrievable.
+ * Specifies if the property is retrievable. Retrievable properties are returned in the result set when items are returned by the search API. Retrievable properties are also available to add to the display template used to render search results. Optional.
+ */
+ @SerializedName(value = "isRetrievable", alternate = {"IsRetrievable"})
+ @Expose
+ @Nullable
+ public Boolean isRetrievable;
+
+ /**
+ * The Is Searchable.
+ * Specifies if the property is searchable. Only properties of type string or stringCollection can be searchable. Non-searchable properties are not added to the search index. Optional.
+ */
+ @SerializedName(value = "isSearchable", alternate = {"IsSearchable"})
+ @Expose
+ @Nullable
+ public Boolean isSearchable;
+
+ /**
+ * The Labels.
+ * Specifies one or more well-known tags added against a property. Labels help Microsoft Search understand the semantics of the data in the connection. Adding appropriate labels would result in an enhanced search experience (e.g. better relevance). Supported labels: title, url, createdBy, lastModifiedBy, authors, createdDateTime, lastModifiedDateTime, fileName, fileExtension, iconUrl, containerName, and containerUrl. Optional.
+ */
+ @SerializedName(value = "labels", alternate = {"Labels"})
+ @Expose
+ @Nullable
+ public java.util.List