Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/backing store #85

Merged
merged 11 commits into from
Jun 18, 2021
10 changes: 8 additions & 2 deletions msgraph-mail/dotnet/ApiClient.cs
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Graphdotnetv4.Users;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Abstractions.Serialization;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Graphdotnetv4.Users;
namespace Graphdotnetv4 {
/// <summary>The main entry point of the SDK, exposes the configuration and the fluent API.</summary>
public class ApiClient {
Expand All @@ -14,11 +14,17 @@ public class ApiClient {
/// <summary>Core service to use to execute the requests</summary>
public IHttpCore HttpCore { get; set; }
/// <summary>Path segment to use to build the URL for the current request builder</summary>
private string PathSegment { get; set; } = "https://graph.microsoft.com/v1.0";
private string PathSegment { get; set; }
/// <summary>Factory to use to get a serializer for payload serialization</summary>
public ISerializationWriterFactory SerializerFactory { get; set; }
public UsersRequestBuilder Users { get =>
new UsersRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment };
}
/// <summary>
/// Instantiates a new ApiClient and sets the default values.
/// </summary>
public ApiClient() {
PathSegment = "https://graph.microsoft.com/v1.0";
}
}
}
2 changes: 1 addition & 1 deletion msgraph-mail/dotnet/Users/Attachment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class Attachment : Entity, IParsable {
};
}
/// <summary>
/// Serialiazes information the current object
/// Serializes information the current object
/// <param name="writer">Serialization writer to use to serialize this model</param>
/// </summary>
public new void Serialize(ISerializationWriter writer) {
Expand Down
10 changes: 8 additions & 2 deletions msgraph-mail/dotnet/Users/DateTimeTimeZone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
namespace Graphdotnetv4.Users {
public class DateTimeTimeZone : IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; private set; } = new Dictionary<string, object>();
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>A single point of time in a combined date and time representation ({date}T{time}). For example, '2019-04-16T09:00:00'.</summary>
public string DateTime { get; set; }
/// <summary>Represents a time zone, for example, 'Pacific Standard Time'. See below for possible values.</summary>
public string TimeZone { get; set; }
/// <summary>
/// Instantiates a new dateTimeTimeZone and sets the default values.
/// </summary>
public DateTimeTimeZone() {
AdditionalData = new Dictionary<string, object>();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
public IDictionary<string, Action<T, IParseNode>> GetFieldDeserializers<T>() {
Expand All @@ -20,7 +26,7 @@ public IDictionary<string, Action<T, IParseNode>> GetFieldDeserializers<T>() {
};
}
/// <summary>
/// Serialiazes information the current object
/// Serializes information the current object
/// <param name="writer">Serialization writer to use to serialize this model</param>
/// </summary>
public void Serialize(ISerializationWriter writer) {
Expand Down
10 changes: 8 additions & 2 deletions msgraph-mail/dotnet/Users/EmailAddress.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
namespace Graphdotnetv4.Users {
public class EmailAddress : IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; private set; } = new Dictionary<string, object>();
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>The email address of an entity instance.</summary>
public string Address { get; set; }
/// <summary>The display name of an entity instance.</summary>
public string Name { get; set; }
/// <summary>
/// Instantiates a new emailAddress and sets the default values.
/// </summary>
public EmailAddress() {
AdditionalData = new Dictionary<string, object>();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
public IDictionary<string, Action<T, IParseNode>> GetFieldDeserializers<T>() {
Expand All @@ -20,7 +26,7 @@ public IDictionary<string, Action<T, IParseNode>> GetFieldDeserializers<T>() {
};
}
/// <summary>
/// Serialiazes information the current object
/// Serializes information the current object
/// <param name="writer">Serialization writer to use to serialize this model</param>
/// </summary>
public void Serialize(ISerializationWriter writer) {
Expand Down
10 changes: 8 additions & 2 deletions msgraph-mail/dotnet/Users/Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@
namespace Graphdotnetv4.Users {
public class Entity : IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; private set; } = new Dictionary<string, object>();
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>Read-only.</summary>
public string Id { get; set; }
/// <summary>
/// Instantiates a new entity and sets the default values.
/// </summary>
public Entity() {
AdditionalData = new Dictionary<string, object>();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
public IDictionary<string, Action<T, IParseNode>> GetFieldDeserializers<T>() {
Expand All @@ -17,7 +23,7 @@ public IDictionary<string, Action<T, IParseNode>> GetFieldDeserializers<T>() {
};
}
/// <summary>
/// Serialiazes information the current object
/// Serializes information the current object
/// <param name="writer">Serialization writer to use to serialize this model</param>
/// </summary>
public void Serialize(ISerializationWriter writer) {
Expand Down
2 changes: 1 addition & 1 deletion msgraph-mail/dotnet/Users/Extension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public class Extension : Entity, IParsable {
};
}
/// <summary>
/// Serialiazes information the current object
/// Serializes information the current object
/// <param name="writer">Serialization writer to use to serialize this model</param>
/// </summary>
public new void Serialize(ISerializationWriter writer) {
Expand Down
10 changes: 8 additions & 2 deletions msgraph-mail/dotnet/Users/FollowupFlag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
namespace Graphdotnetv4.Users {
public class FollowupFlag : IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; private set; } = new Dictionary<string, object>();
public IDictionary<string, object> AdditionalData { get; set; }
public DateTimeTimeZone CompletedDateTime { get; set; }
public DateTimeTimeZone DueDateTime { get; set; }
public FollowupFlagStatus? FlagStatus { get; set; }
public DateTimeTimeZone StartDateTime { get; set; }
/// <summary>
/// Instantiates a new followupFlag and sets the default values.
/// </summary>
public FollowupFlag() {
AdditionalData = new Dictionary<string, object>();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
public IDictionary<string, Action<T, IParseNode>> GetFieldDeserializers<T>() {
Expand All @@ -22,7 +28,7 @@ public IDictionary<string, Action<T, IParseNode>> GetFieldDeserializers<T>() {
};
}
/// <summary>
/// Serialiazes information the current object
/// Serializes information the current object
/// <param name="writer">Serialization writer to use to serialize this model</param>
/// </summary>
public void Serialize(ISerializationWriter writer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class InferenceClassification : Entity, IParsable {
};
}
/// <summary>
/// Serialiazes information the current object
/// Serializes information the current object
/// <param name="writer">Serialization writer to use to serialize this model</param>
/// </summary>
public new void Serialize(ISerializationWriter writer) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public class InferenceClassificationOverride : Entity, IParsable {
};
}
/// <summary>
/// Serialiazes information the current object
/// Serializes information the current object
/// <param name="writer">Serialization writer to use to serialize this model</param>
/// </summary>
public new void Serialize(ISerializationWriter writer) {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Graphdotnetv4.Users.InferenceClassification.Overrides;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Abstractions.Serialization;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Graphdotnetv4.Users.InferenceClassification.Overrides;
namespace Graphdotnetv4.Users.InferenceClassification {
/// <summary>Builds and executes requests for operations under \users\{user-id}\inferenceClassification</summary>
public class InferenceClassificationRequestBuilder {
Expand All @@ -17,10 +17,16 @@ public class InferenceClassificationRequestBuilder {
new OverridesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment };
}
/// <summary>Path segment to use to build the URL for the current request builder</summary>
private string PathSegment { get; set; } = "/inferenceClassification";
private string PathSegment { get; set; }
/// <summary>Factory to use to get a serializer for payload serialization</summary>
public ISerializationWriterFactory SerializerFactory { get; set; }
/// <summary>
/// Instantiates a new InferenceClassificationRequestBuilder and sets the default values.
/// </summary>
public InferenceClassificationRequestBuilder() {
PathSegment = "/inferenceClassification";
}
/// <summary>
/// Delete navigation property inferenceClassification for users
/// <param name="h">Request headers</param>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,16 @@ public class InferenceClassificationOverrideRequestBuilder {
/// <summary>Core service to use to execute the requests</summary>
public IHttpCore HttpCore { get; set; }
/// <summary>Path segment to use to build the URL for the current request builder</summary>
private string PathSegment { get; set; } = "";
private string PathSegment { get; set; }
/// <summary>Factory to use to get a serializer for payload serialization</summary>
public ISerializationWriterFactory SerializerFactory { get; set; }
/// <summary>
/// Instantiates a new InferenceClassificationOverrideRequestBuilder and sets the default values.
/// </summary>
public InferenceClassificationOverrideRequestBuilder() {
PathSegment = "";
}
/// <summary>
/// Delete navigation property overrides for users
/// <param name="h">Request headers</param>
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
using Graphdotnetv4.Users.InferenceClassification.Overrides.Item;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Abstractions.Serialization;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Graphdotnetv4.Users.InferenceClassification.Overrides.Item;
namespace Graphdotnetv4.Users.InferenceClassification.Overrides {
/// <summary>Builds and executes requests for operations under \users\{user-id}\inferenceClassification\overrides</summary>
public class OverridesRequestBuilder {
Expand All @@ -14,14 +14,20 @@ public class OverridesRequestBuilder {
/// <summary>Core service to use to execute the requests</summary>
public IHttpCore HttpCore { get; set; }
/// <summary>Path segment to use to build the URL for the current request builder</summary>
private string PathSegment { get; set; } = "/overrides";
private string PathSegment { get; set; }
/// <summary>Factory to use to get a serializer for payload serialization</summary>
public ISerializationWriterFactory SerializerFactory { get; set; }
/// <summary>Gets an item from the Graphdotnetv4.users.inferenceClassification.overrides collection</summary>
public InferenceClassificationOverrideRequestBuilder this[string position] { get {
return new InferenceClassificationOverrideRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment + "/" + position};
} }
/// <summary>
/// Instantiates a new OverridesRequestBuilder and sets the default values.
/// </summary>
public OverridesRequestBuilder() {
PathSegment = "/overrides";
}
/// <summary>
/// Get overrides from users
/// <param name="h">Request headers</param>
/// <param name="q">Request query parameters</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,16 @@
namespace Graphdotnetv4.Users.InferenceClassification.Overrides {
public class OverridesResponse : IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; private set; } = new Dictionary<string, object>();
public IDictionary<string, object> AdditionalData { get; set; }
public string NextLink { get; set; }
public List<InferenceClassificationOverride> Value { get; set; }
/// <summary>
/// Instantiates a new OverridesResponse and sets the default values.
/// </summary>
public OverridesResponse() {
AdditionalData = new Dictionary<string, object>();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
public IDictionary<string, Action<T, IParseNode>> GetFieldDeserializers<T>() {
Expand All @@ -18,7 +24,7 @@ public IDictionary<string, Action<T, IParseNode>> GetFieldDeserializers<T>() {
};
}
/// <summary>
/// Serialiazes information the current object
/// Serializes information the current object
/// <param name="writer">Serialization writer to use to serialize this model</param>
/// </summary>
public void Serialize(ISerializationWriter writer) {
Expand Down
10 changes: 8 additions & 2 deletions msgraph-mail/dotnet/Users/InternetMessageHeader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,18 @@
namespace Graphdotnetv4.Users {
public class InternetMessageHeader : IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; private set; } = new Dictionary<string, object>();
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>Represents the key in a key-value pair.</summary>
public string Name { get; set; }
/// <summary>The value in a key-value pair.</summary>
public string Value { get; set; }
/// <summary>
/// Instantiates a new internetMessageHeader and sets the default values.
/// </summary>
public InternetMessageHeader() {
AdditionalData = new Dictionary<string, object>();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
public IDictionary<string, Action<T, IParseNode>> GetFieldDeserializers<T>() {
Expand All @@ -20,7 +26,7 @@ public IDictionary<string, Action<T, IParseNode>> GetFieldDeserializers<T>() {
};
}
/// <summary>
/// Serialiazes information the current object
/// Serializes information the current object
/// <param name="writer">Serialization writer to use to serialize this model</param>
/// </summary>
public void Serialize(ISerializationWriter writer) {
Expand Down
14 changes: 10 additions & 4 deletions msgraph-mail/dotnet/Users/Item/UserRequestBuilder.cs
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
using Graphdotnetv4.Users.InferenceClassification;
using Graphdotnetv4.Users.MailFolders;
using Graphdotnetv4.Users.Messages;
using Microsoft.Kiota.Abstractions;
using Microsoft.Kiota.Abstractions.Serialization;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;
using Graphdotnetv4.Users.InferenceClassification;
using Graphdotnetv4.Users.MailFolders;
using Graphdotnetv4.Users.Messages;
namespace Graphdotnetv4.Users.Item {
/// <summary>Builds and executes requests for operations under \users\{user-id}</summary>
public class UserRequestBuilder {
Expand All @@ -25,8 +25,14 @@ public class UserRequestBuilder {
new MessagesRequestBuilder { HttpCore = HttpCore, SerializerFactory = SerializerFactory, CurrentPath = CurrentPath + PathSegment };
}
/// <summary>Path segment to use to build the URL for the current request builder</summary>
private string PathSegment { get; set; } = "";
private string PathSegment { get; set; }
/// <summary>Factory to use to get a serializer for payload serialization</summary>
public ISerializationWriterFactory SerializerFactory { get; set; }
/// <summary>
/// Instantiates a new UserRequestBuilder and sets the default values.
/// </summary>
public UserRequestBuilder() {
PathSegment = "";
}
}
}
10 changes: 8 additions & 2 deletions msgraph-mail/dotnet/Users/ItemBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,17 @@
namespace Graphdotnetv4.Users {
public class ItemBody : IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; private set; } = new Dictionary<string, object>();
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>The content of the item.</summary>
public string Content { get; set; }
public BodyType? ContentType { get; set; }
/// <summary>
/// Instantiates a new itemBody and sets the default values.
/// </summary>
public ItemBody() {
AdditionalData = new Dictionary<string, object>();
}
/// <summary>
/// The deserialization information for the current model
/// </summary>
public IDictionary<string, Action<T, IParseNode>> GetFieldDeserializers<T>() {
Expand All @@ -19,7 +25,7 @@ public IDictionary<string, Action<T, IParseNode>> GetFieldDeserializers<T>() {
};
}
/// <summary>
/// Serialiazes information the current object
/// Serializes information the current object
/// <param name="writer">Serialization writer to use to serialize this model</param>
/// </summary>
public void Serialize(ISerializationWriter writer) {
Expand Down
2 changes: 1 addition & 1 deletion msgraph-mail/dotnet/Users/MailFolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public class MailFolder : Entity, IParsable {
};
}
/// <summary>
/// Serialiazes information the current object
/// Serializes information the current object
/// <param name="writer">Serialization writer to use to serialize this model</param>
/// </summary>
public new void Serialize(ISerializationWriter writer) {
Expand Down
Loading