diff --git a/msgraph-mail/dotnet/ApiClient.cs b/msgraph-mail/dotnet/ApiClient.cs index dcb41a8a5..8d67df2fe 100644 --- a/msgraph-mail/dotnet/ApiClient.cs +++ b/msgraph-mail/dotnet/ApiClient.cs @@ -11,19 +11,20 @@ using System.Linq; using System.Threading.Tasks; using System; -namespace Graphdotnetv4 { +namespace Graphdotnetv4 +{ /// /// The main entry point of the SDK, exposes the configuration and the fluent API. /// - public class ApiClient : BaseRequestBuilder + public class ApiClient : BaseRequestBuilder { /// The users property - public UsersRequestBuilder Users + public Graphdotnetv4.Users.UsersRequestBuilder Users { - get => new UsersRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.UsersRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The request adapter to use to execute the requests. public ApiClient(IRequestAdapter requestAdapter) : base(requestAdapter, "{+baseurl}", new Dictionary()) diff --git a/msgraph-mail/dotnet/Models/Attachment.cs b/msgraph-mail/dotnet/Models/Attachment.cs index 7228d0a42..3abb21b42 100644 --- a/msgraph-mail/dotnet/Models/Attachment.cs +++ b/msgraph-mail/dotnet/Models/Attachment.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class Attachment : Entity, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class Attachment : Graphdotnetv4.Models.Entity, IParsable + #pragma warning restore CS1591 { /// The MIME type. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -32,12 +35,12 @@ public class Attachment : Entity, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new Attachment CreateFromDiscriminatorValue(IParseNode parseNode) + public static new Graphdotnetv4.Models.Attachment CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Attachment(); + return new Graphdotnetv4.Models.Attachment(); } /// /// The deserialization information for the current model @@ -47,11 +50,11 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"contentType", n => { ContentType = n.GetStringValue(); } }, - {"isInline", n => { IsInline = n.GetBoolValue(); } }, - {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, - {"size", n => { Size = n.GetIntValue(); } }, + { "contentType", n => { ContentType = n.GetStringValue(); } }, + { "isInline", n => { IsInline = n.GetBoolValue(); } }, + { "lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "size", n => { Size = n.GetIntValue(); } }, }; } /// diff --git a/msgraph-mail/dotnet/Models/AttachmentCollectionResponse.cs b/msgraph-mail/dotnet/Models/AttachmentCollectionResponse.cs index e3f640661..840a1a704 100644 --- a/msgraph-mail/dotnet/Models/AttachmentCollectionResponse.cs +++ b/msgraph-mail/dotnet/Models/AttachmentCollectionResponse.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class AttachmentCollectionResponse : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class AttachmentCollectionResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -20,13 +23,13 @@ public class AttachmentCollectionResponse : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public AttachmentCollectionResponse() { @@ -35,12 +38,12 @@ public AttachmentCollectionResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static AttachmentCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.AttachmentCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new AttachmentCollectionResponse(); + return new Graphdotnetv4.Models.AttachmentCollectionResponse(); } /// /// The deserialization information for the current model @@ -50,8 +53,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, - {"value", n => { Value = n.GetCollectionOfObjectValues(Attachment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Attachment.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// @@ -62,7 +65,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.nextLink", OdataNextLink); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); writer.WriteAdditionalData(AdditionalData); } } diff --git a/msgraph-mail/dotnet/Models/BodyType.cs b/msgraph-mail/dotnet/Models/BodyType.cs index ab8a27219..bcd4e7a10 100644 --- a/msgraph-mail/dotnet/Models/BodyType.cs +++ b/msgraph-mail/dotnet/Models/BodyType.cs @@ -1,12 +1,19 @@ // using System.Runtime.Serialization; using System; -namespace Graphdotnetv4.Models { +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 public enum BodyType + #pragma warning restore CS1591 { [EnumMember(Value = "text")] + #pragma warning disable CS1591 Text, + #pragma warning restore CS1591 [EnumMember(Value = "html")] + #pragma warning disable CS1591 Html, + #pragma warning restore CS1591 } } diff --git a/msgraph-mail/dotnet/Models/DateTimeTimeZone.cs b/msgraph-mail/dotnet/Models/DateTimeTimeZone.cs index 793381a50..84bdf84ce 100644 --- a/msgraph-mail/dotnet/Models/DateTimeTimeZone.cs +++ b/msgraph-mail/dotnet/Models/DateTimeTimeZone.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class DateTimeTimeZone : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class DateTimeTimeZone : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -26,7 +29,7 @@ public class DateTimeTimeZone : IAdditionalDataHolder, IParsable public string TimeZone { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public DateTimeTimeZone() { @@ -35,12 +38,12 @@ public DateTimeTimeZone() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static DateTimeTimeZone CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.DateTimeTimeZone CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new DateTimeTimeZone(); + return new Graphdotnetv4.Models.DateTimeTimeZone(); } /// /// The deserialization information for the current model @@ -50,8 +53,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"dateTime", n => { DateTime = n.GetStringValue(); } }, - {"timeZone", n => { TimeZone = n.GetStringValue(); } }, + { "dateTime", n => { DateTime = n.GetStringValue(); } }, + { "timeZone", n => { TimeZone = n.GetStringValue(); } }, }; } /// diff --git a/msgraph-mail/dotnet/Models/EmailAddress.cs b/msgraph-mail/dotnet/Models/EmailAddress.cs index 5ef5bd543..33e011ec3 100644 --- a/msgraph-mail/dotnet/Models/EmailAddress.cs +++ b/msgraph-mail/dotnet/Models/EmailAddress.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class EmailAddress : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class EmailAddress : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -26,7 +29,7 @@ public class EmailAddress : IAdditionalDataHolder, IParsable public string Name { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public EmailAddress() { @@ -35,12 +38,12 @@ public EmailAddress() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static EmailAddress CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.EmailAddress CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new EmailAddress(); + return new Graphdotnetv4.Models.EmailAddress(); } /// /// The deserialization information for the current model @@ -50,8 +53,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"address", n => { Address = n.GetStringValue(); } }, - {"name", n => { Name = n.GetStringValue(); } }, + { "address", n => { Address = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, }; } /// diff --git a/msgraph-mail/dotnet/Models/Entity.cs b/msgraph-mail/dotnet/Models/Entity.cs index d60fc6d3c..9e27f5128 100644 --- a/msgraph-mail/dotnet/Models/Entity.cs +++ b/msgraph-mail/dotnet/Models/Entity.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class Entity : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class Entity : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -18,7 +21,7 @@ public class Entity : IAdditionalDataHolder, IParsable public string Id { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Entity() { @@ -27,12 +30,12 @@ public Entity() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Entity CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.Entity CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Entity(); + return new Graphdotnetv4.Models.Entity(); } /// /// The deserialization information for the current model @@ -42,7 +45,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"id", n => { Id = n.GetStringValue(); } }, + { "id", n => { Id = n.GetStringValue(); } }, }; } /// diff --git a/msgraph-mail/dotnet/Models/Extension.cs b/msgraph-mail/dotnet/Models/Extension.cs index 2f6c93c2b..36f7bbcfb 100644 --- a/msgraph-mail/dotnet/Models/Extension.cs +++ b/msgraph-mail/dotnet/Models/Extension.cs @@ -4,18 +4,21 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class Extension : Entity, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class Extension : Graphdotnetv4.Models.Entity, IParsable + #pragma warning restore CS1591 { /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new Extension CreateFromDiscriminatorValue(IParseNode parseNode) + public static new Graphdotnetv4.Models.Extension CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Extension(); + return new Graphdotnetv4.Models.Extension(); } /// /// The deserialization information for the current model diff --git a/msgraph-mail/dotnet/Models/ExtensionCollectionResponse.cs b/msgraph-mail/dotnet/Models/ExtensionCollectionResponse.cs index b02d0a8cb..8aace4bdc 100644 --- a/msgraph-mail/dotnet/Models/ExtensionCollectionResponse.cs +++ b/msgraph-mail/dotnet/Models/ExtensionCollectionResponse.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class ExtensionCollectionResponse : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class ExtensionCollectionResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -20,13 +23,13 @@ public class ExtensionCollectionResponse : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ExtensionCollectionResponse() { @@ -35,12 +38,12 @@ public ExtensionCollectionResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ExtensionCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.ExtensionCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ExtensionCollectionResponse(); + return new Graphdotnetv4.Models.ExtensionCollectionResponse(); } /// /// The deserialization information for the current model @@ -50,8 +53,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, - {"value", n => { Value = n.GetCollectionOfObjectValues(Extension.CreateFromDiscriminatorValue)?.ToList(); } }, + { "@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Extension.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// @@ -62,7 +65,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.nextLink", OdataNextLink); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); writer.WriteAdditionalData(AdditionalData); } } diff --git a/msgraph-mail/dotnet/Models/FollowupFlag.cs b/msgraph-mail/dotnet/Models/FollowupFlag.cs index 2d591a912..8bed26b7e 100644 --- a/msgraph-mail/dotnet/Models/FollowupFlag.cs +++ b/msgraph-mail/dotnet/Models/FollowupFlag.cs @@ -4,39 +4,42 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class FollowupFlag : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class FollowupFlag : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The completedDateTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DateTimeTimeZone? CompletedDateTime { get; set; } + public Graphdotnetv4.Models.DateTimeTimeZone? CompletedDateTime { get; set; } #nullable restore #else - public DateTimeTimeZone CompletedDateTime { get; set; } + public Graphdotnetv4.Models.DateTimeTimeZone CompletedDateTime { get; set; } #endif /// The dueDateTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DateTimeTimeZone? DueDateTime { get; set; } + public Graphdotnetv4.Models.DateTimeTimeZone? DueDateTime { get; set; } #nullable restore #else - public DateTimeTimeZone DueDateTime { get; set; } + public Graphdotnetv4.Models.DateTimeTimeZone DueDateTime { get; set; } #endif /// The flagStatus property - public FollowupFlagStatus? FlagStatus { get; set; } + public Graphdotnetv4.Models.FollowupFlagStatus? FlagStatus { get; set; } /// The startDateTime property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public DateTimeTimeZone? StartDateTime { get; set; } + public Graphdotnetv4.Models.DateTimeTimeZone? StartDateTime { get; set; } #nullable restore #else - public DateTimeTimeZone StartDateTime { get; set; } + public Graphdotnetv4.Models.DateTimeTimeZone StartDateTime { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public FollowupFlag() { @@ -45,12 +48,12 @@ public FollowupFlag() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static FollowupFlag CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.FollowupFlag CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new FollowupFlag(); + return new Graphdotnetv4.Models.FollowupFlag(); } /// /// The deserialization information for the current model @@ -60,10 +63,10 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"completedDateTime", n => { CompletedDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, - {"dueDateTime", n => { DueDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, - {"flagStatus", n => { FlagStatus = n.GetEnumValue(); } }, - {"startDateTime", n => { StartDateTime = n.GetObjectValue(DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "completedDateTime", n => { CompletedDateTime = n.GetObjectValue(Graphdotnetv4.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "dueDateTime", n => { DueDateTime = n.GetObjectValue(Graphdotnetv4.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, + { "flagStatus", n => { FlagStatus = n.GetEnumValue(); } }, + { "startDateTime", n => { StartDateTime = n.GetObjectValue(Graphdotnetv4.Models.DateTimeTimeZone.CreateFromDiscriminatorValue); } }, }; } /// @@ -73,10 +76,10 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("completedDateTime", CompletedDateTime); - writer.WriteObjectValue("dueDateTime", DueDateTime); - writer.WriteEnumValue("flagStatus", FlagStatus); - writer.WriteObjectValue("startDateTime", StartDateTime); + writer.WriteObjectValue("completedDateTime", CompletedDateTime); + writer.WriteObjectValue("dueDateTime", DueDateTime); + writer.WriteEnumValue("flagStatus", FlagStatus); + writer.WriteObjectValue("startDateTime", StartDateTime); writer.WriteAdditionalData(AdditionalData); } } diff --git a/msgraph-mail/dotnet/Models/FollowupFlagStatus.cs b/msgraph-mail/dotnet/Models/FollowupFlagStatus.cs index 0d6dbbd6f..e11d7f159 100644 --- a/msgraph-mail/dotnet/Models/FollowupFlagStatus.cs +++ b/msgraph-mail/dotnet/Models/FollowupFlagStatus.cs @@ -1,14 +1,23 @@ // using System.Runtime.Serialization; using System; -namespace Graphdotnetv4.Models { +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 public enum FollowupFlagStatus + #pragma warning restore CS1591 { [EnumMember(Value = "notFlagged")] + #pragma warning disable CS1591 NotFlagged, + #pragma warning restore CS1591 [EnumMember(Value = "complete")] + #pragma warning disable CS1591 Complete, + #pragma warning restore CS1591 [EnumMember(Value = "flagged")] + #pragma warning disable CS1591 Flagged, + #pragma warning restore CS1591 } } diff --git a/msgraph-mail/dotnet/Models/Importance.cs b/msgraph-mail/dotnet/Models/Importance.cs index 45d75a05f..8fd1572d5 100644 --- a/msgraph-mail/dotnet/Models/Importance.cs +++ b/msgraph-mail/dotnet/Models/Importance.cs @@ -1,14 +1,23 @@ // using System.Runtime.Serialization; using System; -namespace Graphdotnetv4.Models { +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 public enum Importance + #pragma warning restore CS1591 { [EnumMember(Value = "low")] + #pragma warning disable CS1591 Low, + #pragma warning restore CS1591 [EnumMember(Value = "normal")] + #pragma warning disable CS1591 Normal, + #pragma warning restore CS1591 [EnumMember(Value = "high")] + #pragma warning disable CS1591 High, + #pragma warning restore CS1591 } } diff --git a/msgraph-mail/dotnet/Models/InferenceClassification.cs b/msgraph-mail/dotnet/Models/InferenceClassification.cs index 379fde978..ba689c9c6 100644 --- a/msgraph-mail/dotnet/Models/InferenceClassification.cs +++ b/msgraph-mail/dotnet/Models/InferenceClassification.cs @@ -4,26 +4,29 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class InferenceClassification : Entity, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class InferenceClassification : Graphdotnetv4.Models.Entity, IParsable + #pragma warning restore CS1591 { /// A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Overrides { get; set; } + public List? Overrides { get; set; } #nullable restore #else - public List Overrides { get; set; } + public List Overrides { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new InferenceClassification CreateFromDiscriminatorValue(IParseNode parseNode) + public static new Graphdotnetv4.Models.InferenceClassification CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InferenceClassification(); + return new Graphdotnetv4.Models.InferenceClassification(); } /// /// The deserialization information for the current model @@ -33,7 +36,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"overrides", n => { Overrides = n.GetCollectionOfObjectValues(InferenceClassificationOverride.CreateFromDiscriminatorValue)?.ToList(); } }, + { "overrides", n => { Overrides = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.InferenceClassificationOverride.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// @@ -44,7 +47,7 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("overrides", Overrides); + writer.WriteCollectionOfObjectValues("overrides", Overrides); } } } diff --git a/msgraph-mail/dotnet/Models/InferenceClassificationOverride.cs b/msgraph-mail/dotnet/Models/InferenceClassificationOverride.cs index fd19a8427..0754a7cd9 100644 --- a/msgraph-mail/dotnet/Models/InferenceClassificationOverride.cs +++ b/msgraph-mail/dotnet/Models/InferenceClassificationOverride.cs @@ -4,28 +4,31 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class InferenceClassificationOverride : Entity, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class InferenceClassificationOverride : Graphdotnetv4.Models.Entity, IParsable + #pragma warning restore CS1591 { /// The classifyAs property - public InferenceClassificationType? ClassifyAs { get; set; } + public Graphdotnetv4.Models.InferenceClassificationType? ClassifyAs { get; set; } /// The senderEmailAddress property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public EmailAddress? SenderEmailAddress { get; set; } + public Graphdotnetv4.Models.EmailAddress? SenderEmailAddress { get; set; } #nullable restore #else - public EmailAddress SenderEmailAddress { get; set; } + public Graphdotnetv4.Models.EmailAddress SenderEmailAddress { get; set; } #endif /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new InferenceClassificationOverride CreateFromDiscriminatorValue(IParseNode parseNode) + public static new Graphdotnetv4.Models.InferenceClassificationOverride CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InferenceClassificationOverride(); + return new Graphdotnetv4.Models.InferenceClassificationOverride(); } /// /// The deserialization information for the current model @@ -35,8 +38,8 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"classifyAs", n => { ClassifyAs = n.GetEnumValue(); } }, - {"senderEmailAddress", n => { SenderEmailAddress = n.GetObjectValue(EmailAddress.CreateFromDiscriminatorValue); } }, + { "classifyAs", n => { ClassifyAs = n.GetEnumValue(); } }, + { "senderEmailAddress", n => { SenderEmailAddress = n.GetObjectValue(Graphdotnetv4.Models.EmailAddress.CreateFromDiscriminatorValue); } }, }; } /// @@ -47,8 +50,8 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteEnumValue("classifyAs", ClassifyAs); - writer.WriteObjectValue("senderEmailAddress", SenderEmailAddress); + writer.WriteEnumValue("classifyAs", ClassifyAs); + writer.WriteObjectValue("senderEmailAddress", SenderEmailAddress); } } } diff --git a/msgraph-mail/dotnet/Models/InferenceClassificationOverrideCollectionResponse.cs b/msgraph-mail/dotnet/Models/InferenceClassificationOverrideCollectionResponse.cs index 0c5ee0de8..a23fd1790 100644 --- a/msgraph-mail/dotnet/Models/InferenceClassificationOverrideCollectionResponse.cs +++ b/msgraph-mail/dotnet/Models/InferenceClassificationOverrideCollectionResponse.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class InferenceClassificationOverrideCollectionResponse : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class InferenceClassificationOverrideCollectionResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -20,13 +23,13 @@ public class InferenceClassificationOverrideCollectionResponse : IAdditionalData /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InferenceClassificationOverrideCollectionResponse() { @@ -35,12 +38,12 @@ public InferenceClassificationOverrideCollectionResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InferenceClassificationOverrideCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.InferenceClassificationOverrideCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InferenceClassificationOverrideCollectionResponse(); + return new Graphdotnetv4.Models.InferenceClassificationOverrideCollectionResponse(); } /// /// The deserialization information for the current model @@ -50,8 +53,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, - {"value", n => { Value = n.GetCollectionOfObjectValues(InferenceClassificationOverride.CreateFromDiscriminatorValue)?.ToList(); } }, + { "@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.InferenceClassificationOverride.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// @@ -62,7 +65,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.nextLink", OdataNextLink); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); writer.WriteAdditionalData(AdditionalData); } } diff --git a/msgraph-mail/dotnet/Models/InferenceClassificationType.cs b/msgraph-mail/dotnet/Models/InferenceClassificationType.cs index c2763191e..3bdca8785 100644 --- a/msgraph-mail/dotnet/Models/InferenceClassificationType.cs +++ b/msgraph-mail/dotnet/Models/InferenceClassificationType.cs @@ -1,12 +1,19 @@ // using System.Runtime.Serialization; using System; -namespace Graphdotnetv4.Models { +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 public enum InferenceClassificationType + #pragma warning restore CS1591 { [EnumMember(Value = "focused")] + #pragma warning disable CS1591 Focused, + #pragma warning restore CS1591 [EnumMember(Value = "other")] + #pragma warning disable CS1591 Other, + #pragma warning restore CS1591 } } diff --git a/msgraph-mail/dotnet/Models/InternetMessageHeader.cs b/msgraph-mail/dotnet/Models/InternetMessageHeader.cs index 679bbb7e7..2494e6f05 100644 --- a/msgraph-mail/dotnet/Models/InternetMessageHeader.cs +++ b/msgraph-mail/dotnet/Models/InternetMessageHeader.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class InternetMessageHeader : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class InternetMessageHeader : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -26,7 +29,7 @@ public class InternetMessageHeader : IAdditionalDataHolder, IParsable public string Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InternetMessageHeader() { @@ -35,12 +38,12 @@ public InternetMessageHeader() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InternetMessageHeader CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.InternetMessageHeader CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InternetMessageHeader(); + return new Graphdotnetv4.Models.InternetMessageHeader(); } /// /// The deserialization information for the current model @@ -50,8 +53,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"name", n => { Name = n.GetStringValue(); } }, - {"value", n => { Value = n.GetStringValue(); } }, + { "name", n => { Name = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/msgraph-mail/dotnet/Models/ItemBody.cs b/msgraph-mail/dotnet/Models/ItemBody.cs index 6a69bae64..b91d1d5cf 100644 --- a/msgraph-mail/dotnet/Models/ItemBody.cs +++ b/msgraph-mail/dotnet/Models/ItemBody.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class ItemBody : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class ItemBody : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -18,9 +21,9 @@ public class ItemBody : IAdditionalDataHolder, IParsable public string Content { get; set; } #endif /// The contentType property - public BodyType? ContentType { get; set; } + public Graphdotnetv4.Models.BodyType? ContentType { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ItemBody() { @@ -29,12 +32,12 @@ public ItemBody() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ItemBody CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.ItemBody CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ItemBody(); + return new Graphdotnetv4.Models.ItemBody(); } /// /// The deserialization information for the current model @@ -44,8 +47,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"content", n => { Content = n.GetStringValue(); } }, - {"contentType", n => { ContentType = n.GetEnumValue(); } }, + { "content", n => { Content = n.GetStringValue(); } }, + { "contentType", n => { ContentType = n.GetEnumValue(); } }, }; } /// @@ -56,7 +59,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("content", Content); - writer.WriteEnumValue("contentType", ContentType); + writer.WriteEnumValue("contentType", ContentType); writer.WriteAdditionalData(AdditionalData); } } diff --git a/msgraph-mail/dotnet/Models/MailFolder.cs b/msgraph-mail/dotnet/Models/MailFolder.cs index 91c48abe2..f4eef8223 100644 --- a/msgraph-mail/dotnet/Models/MailFolder.cs +++ b/msgraph-mail/dotnet/Models/MailFolder.cs @@ -4,18 +4,21 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class MailFolder : Entity, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class MailFolder : Graphdotnetv4.Models.Entity, IParsable + #pragma warning restore CS1591 { /// The number of immediate child mailFolders in the current mailFolder. public int? ChildFolderCount { get; set; } /// The collection of child folders in the mailFolder. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ChildFolders { get; set; } + public List? ChildFolders { get; set; } #nullable restore #else - public List ChildFolders { get; set; } + public List ChildFolders { get; set; } #endif /// The mailFolder's display name. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -30,26 +33,26 @@ public class MailFolder : Entity, IParsable /// The collection of rules that apply to the user's Inbox folder. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? MessageRules { get; set; } + public List? MessageRules { get; set; } #nullable restore #else - public List MessageRules { get; set; } + public List MessageRules { get; set; } #endif /// The collection of messages in the mailFolder. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Messages { get; set; } + public List? Messages { get; set; } #nullable restore #else - public List Messages { get; set; } + public List Messages { get; set; } #endif /// The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? MultiValueExtendedProperties { get; set; } + public List? MultiValueExtendedProperties { get; set; } #nullable restore #else - public List MultiValueExtendedProperties { get; set; } + public List MultiValueExtendedProperties { get; set; } #endif /// The unique identifier for the mailFolder's parent mailFolder. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -62,10 +65,10 @@ public class MailFolder : Entity, IParsable /// The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? SingleValueExtendedProperties { get; set; } + public List? SingleValueExtendedProperties { get; set; } #nullable restore #else - public List SingleValueExtendedProperties { get; set; } + public List SingleValueExtendedProperties { get; set; } #endif /// The number of items in the mailFolder. public int? TotalItemCount { get; set; } @@ -74,12 +77,12 @@ public class MailFolder : Entity, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new MailFolder CreateFromDiscriminatorValue(IParseNode parseNode) + public static new Graphdotnetv4.Models.MailFolder CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MailFolder(); + return new Graphdotnetv4.Models.MailFolder(); } /// /// The deserialization information for the current model @@ -89,17 +92,17 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"childFolderCount", n => { ChildFolderCount = n.GetIntValue(); } }, - {"childFolders", n => { ChildFolders = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"isHidden", n => { IsHidden = n.GetBoolValue(); } }, - {"messageRules", n => { MessageRules = n.GetCollectionOfObjectValues(MessageRule.CreateFromDiscriminatorValue)?.ToList(); } }, - {"messages", n => { Messages = n.GetCollectionOfObjectValues(Message.CreateFromDiscriminatorValue)?.ToList(); } }, - {"multiValueExtendedProperties", n => { MultiValueExtendedProperties = n.GetCollectionOfObjectValues(MultiValueLegacyExtendedProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - {"parentFolderId", n => { ParentFolderId = n.GetStringValue(); } }, - {"singleValueExtendedProperties", n => { SingleValueExtendedProperties = n.GetCollectionOfObjectValues(SingleValueLegacyExtendedProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - {"totalItemCount", n => { TotalItemCount = n.GetIntValue(); } }, - {"unreadItemCount", n => { UnreadItemCount = n.GetIntValue(); } }, + { "childFolderCount", n => { ChildFolderCount = n.GetIntValue(); } }, + { "childFolders", n => { ChildFolders = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "isHidden", n => { IsHidden = n.GetBoolValue(); } }, + { "messageRules", n => { MessageRules = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.MessageRule.CreateFromDiscriminatorValue)?.ToList(); } }, + { "messages", n => { Messages = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, + { "multiValueExtendedProperties", n => { MultiValueExtendedProperties = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.MultiValueLegacyExtendedProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "parentFolderId", n => { ParentFolderId = n.GetStringValue(); } }, + { "singleValueExtendedProperties", n => { SingleValueExtendedProperties = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.SingleValueLegacyExtendedProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "totalItemCount", n => { TotalItemCount = n.GetIntValue(); } }, + { "unreadItemCount", n => { UnreadItemCount = n.GetIntValue(); } }, }; } /// @@ -111,14 +114,14 @@ public override void Serialize(ISerializationWriter writer) _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); writer.WriteIntValue("childFolderCount", ChildFolderCount); - writer.WriteCollectionOfObjectValues("childFolders", ChildFolders); + writer.WriteCollectionOfObjectValues("childFolders", ChildFolders); writer.WriteStringValue("displayName", DisplayName); writer.WriteBoolValue("isHidden", IsHidden); - writer.WriteCollectionOfObjectValues("messageRules", MessageRules); - writer.WriteCollectionOfObjectValues("messages", Messages); - writer.WriteCollectionOfObjectValues("multiValueExtendedProperties", MultiValueExtendedProperties); + writer.WriteCollectionOfObjectValues("messageRules", MessageRules); + writer.WriteCollectionOfObjectValues("messages", Messages); + writer.WriteCollectionOfObjectValues("multiValueExtendedProperties", MultiValueExtendedProperties); writer.WriteStringValue("parentFolderId", ParentFolderId); - writer.WriteCollectionOfObjectValues("singleValueExtendedProperties", SingleValueExtendedProperties); + writer.WriteCollectionOfObjectValues("singleValueExtendedProperties", SingleValueExtendedProperties); writer.WriteIntValue("totalItemCount", TotalItemCount); writer.WriteIntValue("unreadItemCount", UnreadItemCount); } diff --git a/msgraph-mail/dotnet/Models/MailFolderCollectionResponse.cs b/msgraph-mail/dotnet/Models/MailFolderCollectionResponse.cs index 153c8f533..5afb4b12f 100644 --- a/msgraph-mail/dotnet/Models/MailFolderCollectionResponse.cs +++ b/msgraph-mail/dotnet/Models/MailFolderCollectionResponse.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class MailFolderCollectionResponse : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class MailFolderCollectionResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -20,13 +23,13 @@ public class MailFolderCollectionResponse : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MailFolderCollectionResponse() { @@ -35,12 +38,12 @@ public MailFolderCollectionResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MailFolderCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.MailFolderCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MailFolderCollectionResponse(); + return new Graphdotnetv4.Models.MailFolderCollectionResponse(); } /// /// The deserialization information for the current model @@ -50,8 +53,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, - {"value", n => { Value = n.GetCollectionOfObjectValues(MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, + { "@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.MailFolder.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// @@ -62,7 +65,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.nextLink", OdataNextLink); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); writer.WriteAdditionalData(AdditionalData); } } diff --git a/msgraph-mail/dotnet/Models/Message.cs b/msgraph-mail/dotnet/Models/Message.cs index 005a1c674..ab20021e3 100644 --- a/msgraph-mail/dotnet/Models/Message.cs +++ b/msgraph-mail/dotnet/Models/Message.cs @@ -4,32 +4,35 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class Message : OutlookItem, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class Message : Graphdotnetv4.Models.OutlookItem, IParsable + #pragma warning restore CS1591 { /// The fileAttachment and itemAttachment attachments for the message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Attachments { get; set; } + public List? Attachments { get; set; } #nullable restore #else - public List Attachments { get; set; } + public List Attachments { get; set; } #endif /// The Bcc: recipients for the message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? BccRecipients { get; set; } + public List? BccRecipients { get; set; } #nullable restore #else - public List BccRecipients { get; set; } + public List BccRecipients { get; set; } #endif /// The body property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ItemBody? Body { get; set; } + public Graphdotnetv4.Models.ItemBody? Body { get; set; } #nullable restore #else - public ItemBody Body { get; set; } + public Graphdotnetv4.Models.ItemBody Body { get; set; } #endif /// The first 255 characters of the message body. It is in text format. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -42,10 +45,10 @@ public class Message : OutlookItem, IParsable /// The Cc: recipients for the message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? CcRecipients { get; set; } + public List? CcRecipients { get; set; } #nullable restore #else - public List CcRecipients { get; set; } + public List CcRecipients { get; set; } #endif /// The ID of the conversation the email belongs to. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -66,42 +69,42 @@ public class Message : OutlookItem, IParsable /// The collection of open extensions defined for the message. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Extensions { get; set; } + public List? Extensions { get; set; } #nullable restore #else - public List Extensions { get; set; } + public List Extensions { get; set; } #endif /// The flag property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public FollowupFlag? Flag { get; set; } + public Graphdotnetv4.Models.FollowupFlag? Flag { get; set; } #nullable restore #else - public FollowupFlag Flag { get; set; } + public Graphdotnetv4.Models.FollowupFlag Flag { get; set; } #endif /// The from property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Recipient? From { get; set; } + public Graphdotnetv4.Models.Recipient? From { get; set; } #nullable restore #else - public Recipient From { get; set; } + public Graphdotnetv4.Models.Recipient From { get; set; } #endif /// Indicates whether the message has attachments. This property doesn't include inline attachments, so if a message contains only inline attachments, this property is false. To verify the existence of inline attachments, parse the body property to look for a src attribute, such as <IMG src='cid:image001.jpg@01D26CD8.6C05F070'>. public bool? HasAttachments { get; set; } /// The importance property public Graphdotnetv4.Models.Importance? Importance { get; set; } /// The inferenceClassification property - public InferenceClassificationType? InferenceClassification { get; set; } - /// The internetMessageHeaders property + public Graphdotnetv4.Models.InferenceClassificationType? InferenceClassification { get; set; } + /// 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. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? InternetMessageHeaders { get; set; } + public List? InternetMessageHeaders { get; set; } #nullable restore #else - public List InternetMessageHeaders { get; set; } + public List InternetMessageHeaders { get; set; } #endif - /// The internetMessageId property + /// The message ID in the format specified by RFC2822. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? InternetMessageId { get; set; } @@ -109,23 +112,23 @@ public class Message : OutlookItem, IParsable #else public string InternetMessageId { get; set; } #endif - /// The isDeliveryReceiptRequested property + /// Indicates whether a read receipt is requested for the message. public bool? IsDeliveryReceiptRequested { get; set; } - /// The isDraft property + /// Indicates whether the message is a draft. A message is a draft if it hasn't been sent yet. public bool? IsDraft { get; set; } - /// The isRead property + /// Indicates whether the message has been read. public bool? IsRead { get; set; } - /// The isReadReceiptRequested property + /// Indicates whether a read receipt is requested for the message. public bool? IsReadReceiptRequested { get; set; } /// The collection of multi-value extended properties defined for the message. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? MultiValueExtendedProperties { get; set; } + public List? MultiValueExtendedProperties { get; set; } #nullable restore #else - public List MultiValueExtendedProperties { get; set; } + public List MultiValueExtendedProperties { get; set; } #endif - /// The parentFolderId property + /// The unique identifier for the message's parent mailFolder. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? ParentFolderId { get; set; } @@ -133,35 +136,35 @@ public class Message : OutlookItem, IParsable #else public string ParentFolderId { get; set; } #endif - /// The receivedDateTime property + /// The date and time the message was received. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? ReceivedDateTime { get; set; } - /// The replyTo property + /// The email addresses to use when replying. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ReplyTo { get; set; } + public List? ReplyTo { get; set; } #nullable restore #else - public List ReplyTo { get; set; } + public List ReplyTo { get; set; } #endif /// The sender property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public Recipient? Sender { get; set; } + public Graphdotnetv4.Models.Recipient? Sender { get; set; } #nullable restore #else - public Recipient Sender { get; set; } + public Graphdotnetv4.Models.Recipient Sender { get; set; } #endif - /// The sentDateTime property + /// The date and time the message was sent. The date and time information uses ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z. public DateTimeOffset? SentDateTime { get; set; } /// The collection of single-value extended properties defined for the message. Nullable. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? SingleValueExtendedProperties { get; set; } + public List? SingleValueExtendedProperties { get; set; } #nullable restore #else - public List SingleValueExtendedProperties { get; set; } + public List SingleValueExtendedProperties { get; set; } #endif - /// The subject property + /// The subject of the message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? Subject { get; set; } @@ -169,23 +172,23 @@ public class Message : OutlookItem, IParsable #else public string Subject { get; set; } #endif - /// The toRecipients property + /// The To: recipients for the message. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ToRecipients { get; set; } + public List? ToRecipients { get; set; } #nullable restore #else - public List ToRecipients { get; set; } + public List ToRecipients { get; set; } #endif /// The uniqueBody property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public ItemBody? UniqueBody { get; set; } + public Graphdotnetv4.Models.ItemBody? UniqueBody { get; set; } #nullable restore #else - public ItemBody UniqueBody { get; set; } + public Graphdotnetv4.Models.ItemBody UniqueBody { get; set; } #endif - /// The webLink property + /// The URL to open the message in Outlook on the web.You can append an ispopout argument to the end of the URL to change how the message is displayed. If ispopout is not present or if it is set to 1, then the message is shown in a popout window. If ispopout is set to 0, the browser shows the message in the Outlook on the web review pane.The message opens in the browser if you are signed in to your mailbox via Outlook on the web. You are prompted to sign in if you are not already signed in with the browser.This URL cannot be accessed from within an iFrame. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public string? WebLink { get; set; } @@ -196,12 +199,12 @@ public class Message : OutlookItem, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new Message CreateFromDiscriminatorValue(IParseNode parseNode) + public static new Graphdotnetv4.Models.Message CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Message(); + return new Graphdotnetv4.Models.Message(); } /// /// The deserialization information for the current model @@ -211,36 +214,36 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"attachments", n => { Attachments = n.GetCollectionOfObjectValues(Attachment.CreateFromDiscriminatorValue)?.ToList(); } }, - {"bccRecipients", n => { BccRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, - {"body", n => { Body = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, - {"bodyPreview", n => { BodyPreview = n.GetStringValue(); } }, - {"ccRecipients", n => { CcRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, - {"conversationId", n => { ConversationId = n.GetStringValue(); } }, - {"conversationIndex", n => { ConversationIndex = n.GetByteArrayValue(); } }, - {"extensions", n => { Extensions = n.GetCollectionOfObjectValues(Extension.CreateFromDiscriminatorValue)?.ToList(); } }, - {"flag", n => { Flag = n.GetObjectValue(FollowupFlag.CreateFromDiscriminatorValue); } }, - {"from", n => { From = n.GetObjectValue(Recipient.CreateFromDiscriminatorValue); } }, - {"hasAttachments", n => { HasAttachments = n.GetBoolValue(); } }, - {"importance", n => { Importance = n.GetEnumValue(); } }, - {"inferenceClassification", n => { InferenceClassification = n.GetEnumValue(); } }, - {"internetMessageHeaders", n => { InternetMessageHeaders = n.GetCollectionOfObjectValues(InternetMessageHeader.CreateFromDiscriminatorValue)?.ToList(); } }, - {"internetMessageId", n => { InternetMessageId = n.GetStringValue(); } }, - {"isDeliveryReceiptRequested", n => { IsDeliveryReceiptRequested = n.GetBoolValue(); } }, - {"isDraft", n => { IsDraft = n.GetBoolValue(); } }, - {"isRead", n => { IsRead = n.GetBoolValue(); } }, - {"isReadReceiptRequested", n => { IsReadReceiptRequested = n.GetBoolValue(); } }, - {"multiValueExtendedProperties", n => { MultiValueExtendedProperties = n.GetCollectionOfObjectValues(MultiValueLegacyExtendedProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - {"parentFolderId", n => { ParentFolderId = n.GetStringValue(); } }, - {"receivedDateTime", n => { ReceivedDateTime = n.GetDateTimeOffsetValue(); } }, - {"replyTo", n => { ReplyTo = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, - {"sender", n => { Sender = n.GetObjectValue(Recipient.CreateFromDiscriminatorValue); } }, - {"sentDateTime", n => { SentDateTime = n.GetDateTimeOffsetValue(); } }, - {"singleValueExtendedProperties", n => { SingleValueExtendedProperties = n.GetCollectionOfObjectValues(SingleValueLegacyExtendedProperty.CreateFromDiscriminatorValue)?.ToList(); } }, - {"subject", n => { Subject = n.GetStringValue(); } }, - {"toRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, - {"uniqueBody", n => { UniqueBody = n.GetObjectValue(ItemBody.CreateFromDiscriminatorValue); } }, - {"webLink", n => { WebLink = n.GetStringValue(); } }, + { "attachments", n => { Attachments = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Attachment.CreateFromDiscriminatorValue)?.ToList(); } }, + { "bccRecipients", n => { BccRecipients = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "body", n => { Body = n.GetObjectValue(Graphdotnetv4.Models.ItemBody.CreateFromDiscriminatorValue); } }, + { "bodyPreview", n => { BodyPreview = n.GetStringValue(); } }, + { "ccRecipients", n => { CcRecipients = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "conversationId", n => { ConversationId = n.GetStringValue(); } }, + { "conversationIndex", n => { ConversationIndex = n.GetByteArrayValue(); } }, + { "extensions", n => { Extensions = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Extension.CreateFromDiscriminatorValue)?.ToList(); } }, + { "flag", n => { Flag = n.GetObjectValue(Graphdotnetv4.Models.FollowupFlag.CreateFromDiscriminatorValue); } }, + { "from", n => { From = n.GetObjectValue(Graphdotnetv4.Models.Recipient.CreateFromDiscriminatorValue); } }, + { "hasAttachments", n => { HasAttachments = n.GetBoolValue(); } }, + { "importance", n => { Importance = n.GetEnumValue(); } }, + { "inferenceClassification", n => { InferenceClassification = n.GetEnumValue(); } }, + { "internetMessageHeaders", n => { InternetMessageHeaders = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.InternetMessageHeader.CreateFromDiscriminatorValue)?.ToList(); } }, + { "internetMessageId", n => { InternetMessageId = n.GetStringValue(); } }, + { "isDeliveryReceiptRequested", n => { IsDeliveryReceiptRequested = n.GetBoolValue(); } }, + { "isDraft", n => { IsDraft = n.GetBoolValue(); } }, + { "isRead", n => { IsRead = n.GetBoolValue(); } }, + { "isReadReceiptRequested", n => { IsReadReceiptRequested = n.GetBoolValue(); } }, + { "multiValueExtendedProperties", n => { MultiValueExtendedProperties = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.MultiValueLegacyExtendedProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "parentFolderId", n => { ParentFolderId = n.GetStringValue(); } }, + { "receivedDateTime", n => { ReceivedDateTime = n.GetDateTimeOffsetValue(); } }, + { "replyTo", n => { ReplyTo = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "sender", n => { Sender = n.GetObjectValue(Graphdotnetv4.Models.Recipient.CreateFromDiscriminatorValue); } }, + { "sentDateTime", n => { SentDateTime = n.GetDateTimeOffsetValue(); } }, + { "singleValueExtendedProperties", n => { SingleValueExtendedProperties = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.SingleValueLegacyExtendedProperty.CreateFromDiscriminatorValue)?.ToList(); } }, + { "subject", n => { Subject = n.GetStringValue(); } }, + { "toRecipients", n => { ToRecipients = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "uniqueBody", n => { UniqueBody = n.GetObjectValue(Graphdotnetv4.Models.ItemBody.CreateFromDiscriminatorValue); } }, + { "webLink", n => { WebLink = n.GetStringValue(); } }, }; } /// @@ -251,35 +254,35 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteCollectionOfObjectValues("attachments", Attachments); - writer.WriteCollectionOfObjectValues("bccRecipients", BccRecipients); - writer.WriteObjectValue("body", Body); + writer.WriteCollectionOfObjectValues("attachments", Attachments); + writer.WriteCollectionOfObjectValues("bccRecipients", BccRecipients); + writer.WriteObjectValue("body", Body); writer.WriteStringValue("bodyPreview", BodyPreview); - writer.WriteCollectionOfObjectValues("ccRecipients", CcRecipients); + writer.WriteCollectionOfObjectValues("ccRecipients", CcRecipients); writer.WriteStringValue("conversationId", ConversationId); writer.WriteByteArrayValue("conversationIndex", ConversationIndex); - writer.WriteCollectionOfObjectValues("extensions", Extensions); - writer.WriteObjectValue("flag", Flag); - writer.WriteObjectValue("from", From); + writer.WriteCollectionOfObjectValues("extensions", Extensions); + writer.WriteObjectValue("flag", Flag); + writer.WriteObjectValue("from", From); writer.WriteBoolValue("hasAttachments", HasAttachments); - writer.WriteEnumValue("importance", Importance); - writer.WriteEnumValue("inferenceClassification", InferenceClassification); - writer.WriteCollectionOfObjectValues("internetMessageHeaders", InternetMessageHeaders); + writer.WriteEnumValue("importance", Importance); + writer.WriteEnumValue("inferenceClassification", InferenceClassification); + writer.WriteCollectionOfObjectValues("internetMessageHeaders", InternetMessageHeaders); writer.WriteStringValue("internetMessageId", InternetMessageId); writer.WriteBoolValue("isDeliveryReceiptRequested", IsDeliveryReceiptRequested); writer.WriteBoolValue("isDraft", IsDraft); writer.WriteBoolValue("isRead", IsRead); writer.WriteBoolValue("isReadReceiptRequested", IsReadReceiptRequested); - writer.WriteCollectionOfObjectValues("multiValueExtendedProperties", MultiValueExtendedProperties); + writer.WriteCollectionOfObjectValues("multiValueExtendedProperties", MultiValueExtendedProperties); writer.WriteStringValue("parentFolderId", ParentFolderId); writer.WriteDateTimeOffsetValue("receivedDateTime", ReceivedDateTime); - writer.WriteCollectionOfObjectValues("replyTo", ReplyTo); - writer.WriteObjectValue("sender", Sender); + writer.WriteCollectionOfObjectValues("replyTo", ReplyTo); + writer.WriteObjectValue("sender", Sender); writer.WriteDateTimeOffsetValue("sentDateTime", SentDateTime); - writer.WriteCollectionOfObjectValues("singleValueExtendedProperties", SingleValueExtendedProperties); + writer.WriteCollectionOfObjectValues("singleValueExtendedProperties", SingleValueExtendedProperties); writer.WriteStringValue("subject", Subject); - writer.WriteCollectionOfObjectValues("toRecipients", ToRecipients); - writer.WriteObjectValue("uniqueBody", UniqueBody); + writer.WriteCollectionOfObjectValues("toRecipients", ToRecipients); + writer.WriteObjectValue("uniqueBody", UniqueBody); writer.WriteStringValue("webLink", WebLink); } } diff --git a/msgraph-mail/dotnet/Models/MessageActionFlag.cs b/msgraph-mail/dotnet/Models/MessageActionFlag.cs index acbf2879d..c9b2de718 100644 --- a/msgraph-mail/dotnet/Models/MessageActionFlag.cs +++ b/msgraph-mail/dotnet/Models/MessageActionFlag.cs @@ -1,30 +1,55 @@ // using System.Runtime.Serialization; using System; -namespace Graphdotnetv4.Models { +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 public enum MessageActionFlag + #pragma warning restore CS1591 { [EnumMember(Value = "any")] + #pragma warning disable CS1591 Any, + #pragma warning restore CS1591 [EnumMember(Value = "call")] + #pragma warning disable CS1591 Call, + #pragma warning restore CS1591 [EnumMember(Value = "doNotForward")] + #pragma warning disable CS1591 DoNotForward, + #pragma warning restore CS1591 [EnumMember(Value = "followUp")] + #pragma warning disable CS1591 FollowUp, + #pragma warning restore CS1591 [EnumMember(Value = "fyi")] + #pragma warning disable CS1591 Fyi, + #pragma warning restore CS1591 [EnumMember(Value = "forward")] + #pragma warning disable CS1591 Forward, + #pragma warning restore CS1591 [EnumMember(Value = "noResponseNecessary")] + #pragma warning disable CS1591 NoResponseNecessary, + #pragma warning restore CS1591 [EnumMember(Value = "read")] + #pragma warning disable CS1591 Read, + #pragma warning restore CS1591 [EnumMember(Value = "reply")] + #pragma warning disable CS1591 Reply, + #pragma warning restore CS1591 [EnumMember(Value = "replyToAll")] + #pragma warning disable CS1591 ReplyToAll, + #pragma warning restore CS1591 [EnumMember(Value = "review")] + #pragma warning disable CS1591 Review, + #pragma warning restore CS1591 } } diff --git a/msgraph-mail/dotnet/Models/MessageCollectionResponse.cs b/msgraph-mail/dotnet/Models/MessageCollectionResponse.cs index 059361a41..5a1f0c7eb 100644 --- a/msgraph-mail/dotnet/Models/MessageCollectionResponse.cs +++ b/msgraph-mail/dotnet/Models/MessageCollectionResponse.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class MessageCollectionResponse : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class MessageCollectionResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -20,13 +23,13 @@ public class MessageCollectionResponse : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MessageCollectionResponse() { @@ -35,12 +38,12 @@ public MessageCollectionResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MessageCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.MessageCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MessageCollectionResponse(); + return new Graphdotnetv4.Models.MessageCollectionResponse(); } /// /// The deserialization information for the current model @@ -50,8 +53,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, - {"value", n => { Value = n.GetCollectionOfObjectValues(Message.CreateFromDiscriminatorValue)?.ToList(); } }, + { "@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Message.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// @@ -62,7 +65,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.nextLink", OdataNextLink); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); writer.WriteAdditionalData(AdditionalData); } } diff --git a/msgraph-mail/dotnet/Models/MessageRule.cs b/msgraph-mail/dotnet/Models/MessageRule.cs index d9dc516b0..95db8b0f4 100644 --- a/msgraph-mail/dotnet/Models/MessageRule.cs +++ b/msgraph-mail/dotnet/Models/MessageRule.cs @@ -4,24 +4,27 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class MessageRule : Entity, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class MessageRule : Graphdotnetv4.Models.Entity, IParsable + #pragma warning restore CS1591 { /// The actions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MessageRuleActions? Actions { get; set; } + public Graphdotnetv4.Models.MessageRuleActions? Actions { get; set; } #nullable restore #else - public MessageRuleActions Actions { get; set; } + public Graphdotnetv4.Models.MessageRuleActions Actions { get; set; } #endif /// The conditions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MessageRulePredicates? Conditions { get; set; } + public Graphdotnetv4.Models.MessageRulePredicates? Conditions { get; set; } #nullable restore #else - public MessageRulePredicates Conditions { get; set; } + public Graphdotnetv4.Models.MessageRulePredicates Conditions { get; set; } #endif /// The display name of the rule. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -34,10 +37,10 @@ public class MessageRule : Entity, IParsable /// The exceptions property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MessageRulePredicates? Exceptions { get; set; } + public Graphdotnetv4.Models.MessageRulePredicates? Exceptions { get; set; } #nullable restore #else - public MessageRulePredicates Exceptions { get; set; } + public Graphdotnetv4.Models.MessageRulePredicates Exceptions { get; set; } #endif /// Indicates whether the rule is in an error condition. Read-only. public bool? HasError { get; set; } @@ -50,12 +53,12 @@ public class MessageRule : Entity, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new MessageRule CreateFromDiscriminatorValue(IParseNode parseNode) + public static new Graphdotnetv4.Models.MessageRule CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MessageRule(); + return new Graphdotnetv4.Models.MessageRule(); } /// /// The deserialization information for the current model @@ -65,14 +68,14 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"actions", n => { Actions = n.GetObjectValue(MessageRuleActions.CreateFromDiscriminatorValue); } }, - {"conditions", n => { Conditions = n.GetObjectValue(MessageRulePredicates.CreateFromDiscriminatorValue); } }, - {"displayName", n => { DisplayName = n.GetStringValue(); } }, - {"exceptions", n => { Exceptions = n.GetObjectValue(MessageRulePredicates.CreateFromDiscriminatorValue); } }, - {"hasError", n => { HasError = n.GetBoolValue(); } }, - {"isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, - {"isReadOnly", n => { IsReadOnly = n.GetBoolValue(); } }, - {"sequence", n => { Sequence = n.GetIntValue(); } }, + { "actions", n => { Actions = n.GetObjectValue(Graphdotnetv4.Models.MessageRuleActions.CreateFromDiscriminatorValue); } }, + { "conditions", n => { Conditions = n.GetObjectValue(Graphdotnetv4.Models.MessageRulePredicates.CreateFromDiscriminatorValue); } }, + { "displayName", n => { DisplayName = n.GetStringValue(); } }, + { "exceptions", n => { Exceptions = n.GetObjectValue(Graphdotnetv4.Models.MessageRulePredicates.CreateFromDiscriminatorValue); } }, + { "hasError", n => { HasError = n.GetBoolValue(); } }, + { "isEnabled", n => { IsEnabled = n.GetBoolValue(); } }, + { "isReadOnly", n => { IsReadOnly = n.GetBoolValue(); } }, + { "sequence", n => { Sequence = n.GetIntValue(); } }, }; } /// @@ -83,10 +86,10 @@ public override void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); base.Serialize(writer); - writer.WriteObjectValue("actions", Actions); - writer.WriteObjectValue("conditions", Conditions); + writer.WriteObjectValue("actions", Actions); + writer.WriteObjectValue("conditions", Conditions); writer.WriteStringValue("displayName", DisplayName); - writer.WriteObjectValue("exceptions", Exceptions); + writer.WriteObjectValue("exceptions", Exceptions); writer.WriteBoolValue("hasError", HasError); writer.WriteBoolValue("isEnabled", IsEnabled); writer.WriteBoolValue("isReadOnly", IsReadOnly); diff --git a/msgraph-mail/dotnet/Models/MessageRuleActions.cs b/msgraph-mail/dotnet/Models/MessageRuleActions.cs index c4ac09082..3a3746c56 100644 --- a/msgraph-mail/dotnet/Models/MessageRuleActions.cs +++ b/msgraph-mail/dotnet/Models/MessageRuleActions.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class MessageRuleActions : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class MessageRuleActions : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -30,23 +33,23 @@ public class MessageRuleActions : IAdditionalDataHolder, IParsable /// The email addresses of the recipients to which a message should be forwarded as an attachment. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ForwardAsAttachmentTo { get; set; } + public List? ForwardAsAttachmentTo { get; set; } #nullable restore #else - public List ForwardAsAttachmentTo { get; set; } + public List ForwardAsAttachmentTo { get; set; } #endif /// The email addresses of the recipients to which a message should be forwarded. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? ForwardTo { get; set; } + public List? ForwardTo { get; set; } #nullable restore #else - public List ForwardTo { get; set; } + public List ForwardTo { get; set; } #endif /// Indicates whether a message should be marked as read. public bool? MarkAsRead { get; set; } /// The markImportance property - public Importance? MarkImportance { get; set; } + public Graphdotnetv4.Models.Importance? MarkImportance { get; set; } /// The ID of the folder that a message will be moved to. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable @@ -60,15 +63,15 @@ public class MessageRuleActions : IAdditionalDataHolder, IParsable /// The email addresses to which a message should be redirected. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? RedirectTo { get; set; } + public List? RedirectTo { get; set; } #nullable restore #else - public List RedirectTo { get; set; } + public List RedirectTo { get; set; } #endif /// Indicates whether subsequent rules should be evaluated. public bool? StopProcessingRules { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MessageRuleActions() { @@ -77,12 +80,12 @@ public MessageRuleActions() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MessageRuleActions CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.MessageRuleActions CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MessageRuleActions(); + return new Graphdotnetv4.Models.MessageRuleActions(); } /// /// The deserialization information for the current model @@ -92,17 +95,17 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"assignCategories", n => { AssignCategories = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"copyToFolder", n => { CopyToFolder = n.GetStringValue(); } }, - {"delete", n => { Delete = n.GetBoolValue(); } }, - {"forwardAsAttachmentTo", n => { ForwardAsAttachmentTo = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, - {"forwardTo", n => { ForwardTo = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, - {"markAsRead", n => { MarkAsRead = n.GetBoolValue(); } }, - {"markImportance", n => { MarkImportance = n.GetEnumValue(); } }, - {"moveToFolder", n => { MoveToFolder = n.GetStringValue(); } }, - {"permanentDelete", n => { PermanentDelete = n.GetBoolValue(); } }, - {"redirectTo", n => { RedirectTo = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, - {"stopProcessingRules", n => { StopProcessingRules = n.GetBoolValue(); } }, + { "assignCategories", n => { AssignCategories = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "copyToFolder", n => { CopyToFolder = n.GetStringValue(); } }, + { "delete", n => { Delete = n.GetBoolValue(); } }, + { "forwardAsAttachmentTo", n => { ForwardAsAttachmentTo = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "forwardTo", n => { ForwardTo = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "markAsRead", n => { MarkAsRead = n.GetBoolValue(); } }, + { "markImportance", n => { MarkImportance = n.GetEnumValue(); } }, + { "moveToFolder", n => { MoveToFolder = n.GetStringValue(); } }, + { "permanentDelete", n => { PermanentDelete = n.GetBoolValue(); } }, + { "redirectTo", n => { RedirectTo = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "stopProcessingRules", n => { StopProcessingRules = n.GetBoolValue(); } }, }; } /// @@ -115,13 +118,13 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteCollectionOfPrimitiveValues("assignCategories", AssignCategories); writer.WriteStringValue("copyToFolder", CopyToFolder); writer.WriteBoolValue("delete", Delete); - writer.WriteCollectionOfObjectValues("forwardAsAttachmentTo", ForwardAsAttachmentTo); - writer.WriteCollectionOfObjectValues("forwardTo", ForwardTo); + writer.WriteCollectionOfObjectValues("forwardAsAttachmentTo", ForwardAsAttachmentTo); + writer.WriteCollectionOfObjectValues("forwardTo", ForwardTo); writer.WriteBoolValue("markAsRead", MarkAsRead); - writer.WriteEnumValue("markImportance", MarkImportance); + writer.WriteEnumValue("markImportance", MarkImportance); writer.WriteStringValue("moveToFolder", MoveToFolder); writer.WriteBoolValue("permanentDelete", PermanentDelete); - writer.WriteCollectionOfObjectValues("redirectTo", RedirectTo); + writer.WriteCollectionOfObjectValues("redirectTo", RedirectTo); writer.WriteBoolValue("stopProcessingRules", StopProcessingRules); writer.WriteAdditionalData(AdditionalData); } diff --git a/msgraph-mail/dotnet/Models/MessageRuleCollectionResponse.cs b/msgraph-mail/dotnet/Models/MessageRuleCollectionResponse.cs index 8c15ae559..3e7b00416 100644 --- a/msgraph-mail/dotnet/Models/MessageRuleCollectionResponse.cs +++ b/msgraph-mail/dotnet/Models/MessageRuleCollectionResponse.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class MessageRuleCollectionResponse : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class MessageRuleCollectionResponse : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -20,13 +23,13 @@ public class MessageRuleCollectionResponse : IAdditionalDataHolder, IParsable /// The value property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Value { get; set; } + public List? Value { get; set; } #nullable restore #else - public List Value { get; set; } + public List Value { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MessageRuleCollectionResponse() { @@ -35,12 +38,12 @@ public MessageRuleCollectionResponse() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MessageRuleCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.MessageRuleCollectionResponse CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MessageRuleCollectionResponse(); + return new Graphdotnetv4.Models.MessageRuleCollectionResponse(); } /// /// The deserialization information for the current model @@ -50,8 +53,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, - {"value", n => { Value = n.GetCollectionOfObjectValues(MessageRule.CreateFromDiscriminatorValue)?.ToList(); } }, + { "@odata.nextLink", n => { OdataNextLink = n.GetStringValue(); } }, + { "value", n => { Value = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.MessageRule.CreateFromDiscriminatorValue)?.ToList(); } }, }; } /// @@ -62,7 +65,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("@odata.nextLink", OdataNextLink); - writer.WriteCollectionOfObjectValues("value", Value); + writer.WriteCollectionOfObjectValues("value", Value); writer.WriteAdditionalData(AdditionalData); } } diff --git a/msgraph-mail/dotnet/Models/MessageRulePredicates.cs b/msgraph-mail/dotnet/Models/MessageRulePredicates.cs index 17c0e9ae7..a4a63188d 100644 --- a/msgraph-mail/dotnet/Models/MessageRulePredicates.cs +++ b/msgraph-mail/dotnet/Models/MessageRulePredicates.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class MessageRulePredicates : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class MessageRulePredicates : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -36,10 +39,10 @@ public class MessageRulePredicates : IAdditionalDataHolder, IParsable /// Represents the specific sender email addresses of an incoming message in order for the condition or exception to apply. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? FromAddresses { get; set; } + public List? FromAddresses { get; set; } #nullable restore #else - public List FromAddresses { get; set; } + public List FromAddresses { get; set; } #endif /// Indicates whether an incoming message must have attachments in order for the condition or exception to apply. public bool? HasAttachments { get; set; } @@ -104,10 +107,10 @@ public class MessageRulePredicates : IAdditionalDataHolder, IParsable /// Represents the email addresses that an incoming message must have been sent to in order for the condition or exception to apply. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? SentToAddresses { get; set; } + public List? SentToAddresses { get; set; } #nullable restore #else - public List SentToAddresses { get; set; } + public List SentToAddresses { get; set; } #endif /// Indicates whether the owner of the mailbox must be in the toRecipients property of an incoming message in order for the condition or exception to apply. public bool? SentToMe { get; set; } @@ -124,13 +127,13 @@ public class MessageRulePredicates : IAdditionalDataHolder, IParsable /// The withinSizeRange property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public SizeRange? WithinSizeRange { get; set; } + public Graphdotnetv4.Models.SizeRange? WithinSizeRange { get; set; } #nullable restore #else - public SizeRange WithinSizeRange { get; set; } + public Graphdotnetv4.Models.SizeRange WithinSizeRange { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MessageRulePredicates() { @@ -139,12 +142,12 @@ public MessageRulePredicates() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MessageRulePredicates CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.MessageRulePredicates CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MessageRulePredicates(); + return new Graphdotnetv4.Models.MessageRulePredicates(); } /// /// The deserialization information for the current model @@ -154,36 +157,36 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"bodyContains", n => { BodyContains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"bodyOrSubjectContains", n => { BodyOrSubjectContains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"categories", n => { Categories = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"fromAddresses", n => { FromAddresses = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, - {"hasAttachments", n => { HasAttachments = n.GetBoolValue(); } }, - {"headerContains", n => { HeaderContains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"importance", n => { Importance = n.GetEnumValue(); } }, - {"isApprovalRequest", n => { IsApprovalRequest = n.GetBoolValue(); } }, - {"isAutomaticForward", n => { IsAutomaticForward = n.GetBoolValue(); } }, - {"isAutomaticReply", n => { IsAutomaticReply = n.GetBoolValue(); } }, - {"isEncrypted", n => { IsEncrypted = n.GetBoolValue(); } }, - {"isMeetingRequest", n => { IsMeetingRequest = n.GetBoolValue(); } }, - {"isMeetingResponse", n => { IsMeetingResponse = n.GetBoolValue(); } }, - {"isNonDeliveryReport", n => { IsNonDeliveryReport = n.GetBoolValue(); } }, - {"isPermissionControlled", n => { IsPermissionControlled = n.GetBoolValue(); } }, - {"isReadReceipt", n => { IsReadReceipt = n.GetBoolValue(); } }, - {"isSigned", n => { IsSigned = n.GetBoolValue(); } }, - {"isVoicemail", n => { IsVoicemail = n.GetBoolValue(); } }, - {"messageActionFlag", n => { MessageActionFlag = n.GetEnumValue(); } }, - {"notSentToMe", n => { NotSentToMe = n.GetBoolValue(); } }, - {"recipientContains", n => { RecipientContains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"senderContains", n => { SenderContains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"sensitivity", n => { Sensitivity = n.GetEnumValue(); } }, - {"sentCcMe", n => { SentCcMe = n.GetBoolValue(); } }, - {"sentOnlyToMe", n => { SentOnlyToMe = n.GetBoolValue(); } }, - {"sentToAddresses", n => { SentToAddresses = n.GetCollectionOfObjectValues(Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, - {"sentToMe", n => { SentToMe = n.GetBoolValue(); } }, - {"sentToOrCcMe", n => { SentToOrCcMe = n.GetBoolValue(); } }, - {"subjectContains", n => { SubjectContains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"withinSizeRange", n => { WithinSizeRange = n.GetObjectValue(SizeRange.CreateFromDiscriminatorValue); } }, + { "bodyContains", n => { BodyContains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "bodyOrSubjectContains", n => { BodyOrSubjectContains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "categories", n => { Categories = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "fromAddresses", n => { FromAddresses = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "hasAttachments", n => { HasAttachments = n.GetBoolValue(); } }, + { "headerContains", n => { HeaderContains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "importance", n => { Importance = n.GetEnumValue(); } }, + { "isApprovalRequest", n => { IsApprovalRequest = n.GetBoolValue(); } }, + { "isAutomaticForward", n => { IsAutomaticForward = n.GetBoolValue(); } }, + { "isAutomaticReply", n => { IsAutomaticReply = n.GetBoolValue(); } }, + { "isEncrypted", n => { IsEncrypted = n.GetBoolValue(); } }, + { "isMeetingRequest", n => { IsMeetingRequest = n.GetBoolValue(); } }, + { "isMeetingResponse", n => { IsMeetingResponse = n.GetBoolValue(); } }, + { "isNonDeliveryReport", n => { IsNonDeliveryReport = n.GetBoolValue(); } }, + { "isPermissionControlled", n => { IsPermissionControlled = n.GetBoolValue(); } }, + { "isReadReceipt", n => { IsReadReceipt = n.GetBoolValue(); } }, + { "isSigned", n => { IsSigned = n.GetBoolValue(); } }, + { "isVoicemail", n => { IsVoicemail = n.GetBoolValue(); } }, + { "messageActionFlag", n => { MessageActionFlag = n.GetEnumValue(); } }, + { "notSentToMe", n => { NotSentToMe = n.GetBoolValue(); } }, + { "recipientContains", n => { RecipientContains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "senderContains", n => { SenderContains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "sensitivity", n => { Sensitivity = n.GetEnumValue(); } }, + { "sentCcMe", n => { SentCcMe = n.GetBoolValue(); } }, + { "sentOnlyToMe", n => { SentOnlyToMe = n.GetBoolValue(); } }, + { "sentToAddresses", n => { SentToAddresses = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.Recipient.CreateFromDiscriminatorValue)?.ToList(); } }, + { "sentToMe", n => { SentToMe = n.GetBoolValue(); } }, + { "sentToOrCcMe", n => { SentToOrCcMe = n.GetBoolValue(); } }, + { "subjectContains", n => { SubjectContains = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "withinSizeRange", n => { WithinSizeRange = n.GetObjectValue(Graphdotnetv4.Models.SizeRange.CreateFromDiscriminatorValue); } }, }; } /// @@ -196,10 +199,10 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteCollectionOfPrimitiveValues("bodyContains", BodyContains); writer.WriteCollectionOfPrimitiveValues("bodyOrSubjectContains", BodyOrSubjectContains); writer.WriteCollectionOfPrimitiveValues("categories", Categories); - writer.WriteCollectionOfObjectValues("fromAddresses", FromAddresses); + writer.WriteCollectionOfObjectValues("fromAddresses", FromAddresses); writer.WriteBoolValue("hasAttachments", HasAttachments); writer.WriteCollectionOfPrimitiveValues("headerContains", HeaderContains); - writer.WriteEnumValue("importance", Importance); + writer.WriteEnumValue("importance", Importance); writer.WriteBoolValue("isApprovalRequest", IsApprovalRequest); writer.WriteBoolValue("isAutomaticForward", IsAutomaticForward); writer.WriteBoolValue("isAutomaticReply", IsAutomaticReply); @@ -211,18 +214,18 @@ public virtual void Serialize(ISerializationWriter writer) writer.WriteBoolValue("isReadReceipt", IsReadReceipt); writer.WriteBoolValue("isSigned", IsSigned); writer.WriteBoolValue("isVoicemail", IsVoicemail); - writer.WriteEnumValue("messageActionFlag", MessageActionFlag); + writer.WriteEnumValue("messageActionFlag", MessageActionFlag); writer.WriteBoolValue("notSentToMe", NotSentToMe); writer.WriteCollectionOfPrimitiveValues("recipientContains", RecipientContains); writer.WriteCollectionOfPrimitiveValues("senderContains", SenderContains); - writer.WriteEnumValue("sensitivity", Sensitivity); + writer.WriteEnumValue("sensitivity", Sensitivity); writer.WriteBoolValue("sentCcMe", SentCcMe); writer.WriteBoolValue("sentOnlyToMe", SentOnlyToMe); - writer.WriteCollectionOfObjectValues("sentToAddresses", SentToAddresses); + writer.WriteCollectionOfObjectValues("sentToAddresses", SentToAddresses); writer.WriteBoolValue("sentToMe", SentToMe); writer.WriteBoolValue("sentToOrCcMe", SentToOrCcMe); writer.WriteCollectionOfPrimitiveValues("subjectContains", SubjectContains); - writer.WriteObjectValue("withinSizeRange", WithinSizeRange); + writer.WriteObjectValue("withinSizeRange", WithinSizeRange); writer.WriteAdditionalData(AdditionalData); } } diff --git a/msgraph-mail/dotnet/Models/MultiValueLegacyExtendedProperty.cs b/msgraph-mail/dotnet/Models/MultiValueLegacyExtendedProperty.cs index 7f2a452de..af7c268ee 100644 --- a/msgraph-mail/dotnet/Models/MultiValueLegacyExtendedProperty.cs +++ b/msgraph-mail/dotnet/Models/MultiValueLegacyExtendedProperty.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class MultiValueLegacyExtendedProperty : Entity, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class MultiValueLegacyExtendedProperty : Graphdotnetv4.Models.Entity, IParsable + #pragma warning restore CS1591 { /// A collection of property values. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -18,12 +21,12 @@ public class MultiValueLegacyExtendedProperty : Entity, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new MultiValueLegacyExtendedProperty CreateFromDiscriminatorValue(IParseNode parseNode) + public static new Graphdotnetv4.Models.MultiValueLegacyExtendedProperty CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MultiValueLegacyExtendedProperty(); + return new Graphdotnetv4.Models.MultiValueLegacyExtendedProperty(); } /// /// The deserialization information for the current model @@ -33,7 +36,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "value", n => { Value = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, }; } /// diff --git a/msgraph-mail/dotnet/Models/ODataErrors/ErrorDetails.cs b/msgraph-mail/dotnet/Models/ODataErrors/ErrorDetails.cs index 840b3303a..763cf7963 100644 --- a/msgraph-mail/dotnet/Models/ODataErrors/ErrorDetails.cs +++ b/msgraph-mail/dotnet/Models/ODataErrors/ErrorDetails.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models.ODataErrors { - public class ErrorDetails : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models.ODataErrors +{ + #pragma warning disable CS1591 + public class ErrorDetails : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -34,7 +37,7 @@ public class ErrorDetails : IAdditionalDataHolder, IParsable public string Target { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ErrorDetails() { @@ -43,12 +46,12 @@ public ErrorDetails() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ErrorDetails CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.ODataErrors.ErrorDetails CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ErrorDetails(); + return new Graphdotnetv4.Models.ODataErrors.ErrorDetails(); } /// /// The deserialization information for the current model @@ -58,9 +61,9 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"target", n => { Target = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "target", n => { Target = n.GetStringValue(); } }, }; } /// diff --git a/msgraph-mail/dotnet/Models/ODataErrors/InnerError.cs b/msgraph-mail/dotnet/Models/ODataErrors/InnerError.cs index 1b503b165..34fc89dd6 100644 --- a/msgraph-mail/dotnet/Models/ODataErrors/InnerError.cs +++ b/msgraph-mail/dotnet/Models/ODataErrors/InnerError.cs @@ -4,16 +4,17 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models.ODataErrors { +namespace Graphdotnetv4.Models.ODataErrors +{ /// /// The structure of this object is service-specific /// - public class InnerError : IAdditionalDataHolder, IParsable + public class InnerError : IAdditionalDataHolder, IParsable { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public InnerError() { @@ -22,12 +23,12 @@ public InnerError() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static InnerError CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.ODataErrors.InnerError CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new InnerError(); + return new Graphdotnetv4.Models.ODataErrors.InnerError(); } /// /// The deserialization information for the current model diff --git a/msgraph-mail/dotnet/Models/ODataErrors/MainError.cs b/msgraph-mail/dotnet/Models/ODataErrors/MainError.cs index bff78e773..ce7b0ebb9 100644 --- a/msgraph-mail/dotnet/Models/ODataErrors/MainError.cs +++ b/msgraph-mail/dotnet/Models/ODataErrors/MainError.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models.ODataErrors { - public class MainError : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models.ODataErrors +{ + #pragma warning disable CS1591 + public class MainError : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -20,10 +23,10 @@ public class MainError : IAdditionalDataHolder, IParsable /// The details property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public List? Details { get; set; } + public List? Details { get; set; } #nullable restore #else - public List Details { get; set; } + public List Details { get; set; } #endif /// The structure of this object is service-specific #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -50,7 +53,7 @@ public class MainError : IAdditionalDataHolder, IParsable public string Target { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public MainError() { @@ -59,12 +62,12 @@ public MainError() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static MainError CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.ODataErrors.MainError CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new MainError(); + return new Graphdotnetv4.Models.ODataErrors.MainError(); } /// /// The deserialization information for the current model @@ -74,11 +77,11 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"code", n => { Code = n.GetStringValue(); } }, - {"details", n => { Details = n.GetCollectionOfObjectValues(ErrorDetails.CreateFromDiscriminatorValue)?.ToList(); } }, - {"innerError", n => { InnerError = n.GetObjectValue(Graphdotnetv4.Models.ODataErrors.InnerError.CreateFromDiscriminatorValue); } }, - {"message", n => { Message = n.GetStringValue(); } }, - {"target", n => { Target = n.GetStringValue(); } }, + { "code", n => { Code = n.GetStringValue(); } }, + { "details", n => { Details = n.GetCollectionOfObjectValues(Graphdotnetv4.Models.ODataErrors.ErrorDetails.CreateFromDiscriminatorValue)?.ToList(); } }, + { "innerError", n => { InnerError = n.GetObjectValue(Graphdotnetv4.Models.ODataErrors.InnerError.CreateFromDiscriminatorValue); } }, + { "message", n => { Message = n.GetStringValue(); } }, + { "target", n => { Target = n.GetStringValue(); } }, }; } /// @@ -89,7 +92,7 @@ public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); writer.WriteStringValue("code", Code); - writer.WriteCollectionOfObjectValues("details", Details); + writer.WriteCollectionOfObjectValues("details", Details); writer.WriteObjectValue("innerError", InnerError); writer.WriteStringValue("message", Message); writer.WriteStringValue("target", Target); diff --git a/msgraph-mail/dotnet/Models/ODataErrors/ODataError.cs b/msgraph-mail/dotnet/Models/ODataErrors/ODataError.cs index 93387858a..af80a6395 100644 --- a/msgraph-mail/dotnet/Models/ODataErrors/ODataError.cs +++ b/msgraph-mail/dotnet/Models/ODataErrors/ODataError.cs @@ -5,23 +5,26 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models.ODataErrors { - public class ODataError : ApiException, IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models.ODataErrors +{ + #pragma warning disable CS1591 + public class ODataError : ApiException, IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } /// The error property #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public MainError? Error { get; set; } + public Graphdotnetv4.Models.ODataErrors.MainError? Error { get; set; } #nullable restore #else - public MainError Error { get; set; } + public Graphdotnetv4.Models.ODataErrors.MainError Error { get; set; } #endif /// The primary error message. public override string Message { get => Error?.Message ?? string.Empty; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public ODataError() { @@ -30,12 +33,12 @@ public ODataError() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static ODataError CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.ODataErrors.ODataError CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new ODataError(); + return new Graphdotnetv4.Models.ODataErrors.ODataError(); } /// /// The deserialization information for the current model @@ -45,7 +48,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"error", n => { Error = n.GetObjectValue(MainError.CreateFromDiscriminatorValue); } }, + { "error", n => { Error = n.GetObjectValue(Graphdotnetv4.Models.ODataErrors.MainError.CreateFromDiscriminatorValue); } }, }; } /// @@ -55,7 +58,7 @@ public virtual IDictionary> GetFieldDeserializers() public virtual void Serialize(ISerializationWriter writer) { _ = writer ?? throw new ArgumentNullException(nameof(writer)); - writer.WriteObjectValue("error", Error); + writer.WriteObjectValue("error", Error); writer.WriteAdditionalData(AdditionalData); } } diff --git a/msgraph-mail/dotnet/Models/OutlookItem.cs b/msgraph-mail/dotnet/Models/OutlookItem.cs index 0396f9f0b..4bc411fab 100644 --- a/msgraph-mail/dotnet/Models/OutlookItem.cs +++ b/msgraph-mail/dotnet/Models/OutlookItem.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class OutlookItem : Entity, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class OutlookItem : Graphdotnetv4.Models.Entity, IParsable + #pragma warning restore CS1591 { /// The categories associated with the item #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -30,12 +33,12 @@ public class OutlookItem : Entity, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new OutlookItem CreateFromDiscriminatorValue(IParseNode parseNode) + public static new Graphdotnetv4.Models.OutlookItem CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new OutlookItem(); + return new Graphdotnetv4.Models.OutlookItem(); } /// /// The deserialization information for the current model @@ -45,10 +48,10 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"categories", n => { Categories = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, - {"changeKey", n => { ChangeKey = n.GetStringValue(); } }, - {"createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, - {"lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, + { "categories", n => { Categories = n.GetCollectionOfPrimitiveValues()?.ToList(); } }, + { "changeKey", n => { ChangeKey = n.GetStringValue(); } }, + { "createdDateTime", n => { CreatedDateTime = n.GetDateTimeOffsetValue(); } }, + { "lastModifiedDateTime", n => { LastModifiedDateTime = n.GetDateTimeOffsetValue(); } }, }; } /// diff --git a/msgraph-mail/dotnet/Models/Recipient.cs b/msgraph-mail/dotnet/Models/Recipient.cs index 0e7b300a2..a80cd6186 100644 --- a/msgraph-mail/dotnet/Models/Recipient.cs +++ b/msgraph-mail/dotnet/Models/Recipient.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class Recipient : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class Recipient : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -18,7 +21,7 @@ public class Recipient : IAdditionalDataHolder, IParsable public Graphdotnetv4.Models.EmailAddress EmailAddress { get; set; } #endif /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public Recipient() { @@ -27,12 +30,12 @@ public Recipient() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static Recipient CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.Recipient CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new Recipient(); + return new Graphdotnetv4.Models.Recipient(); } /// /// The deserialization information for the current model @@ -42,7 +45,7 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"emailAddress", n => { EmailAddress = n.GetObjectValue(Graphdotnetv4.Models.EmailAddress.CreateFromDiscriminatorValue); } }, + { "emailAddress", n => { EmailAddress = n.GetObjectValue(Graphdotnetv4.Models.EmailAddress.CreateFromDiscriminatorValue); } }, }; } /// diff --git a/msgraph-mail/dotnet/Models/Sensitivity.cs b/msgraph-mail/dotnet/Models/Sensitivity.cs index d112fd590..d66e46265 100644 --- a/msgraph-mail/dotnet/Models/Sensitivity.cs +++ b/msgraph-mail/dotnet/Models/Sensitivity.cs @@ -1,16 +1,27 @@ // using System.Runtime.Serialization; using System; -namespace Graphdotnetv4.Models { +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 public enum Sensitivity + #pragma warning restore CS1591 { [EnumMember(Value = "normal")] + #pragma warning disable CS1591 Normal, + #pragma warning restore CS1591 [EnumMember(Value = "personal")] + #pragma warning disable CS1591 Personal, + #pragma warning restore CS1591 [EnumMember(Value = "private")] + #pragma warning disable CS1591 Private, + #pragma warning restore CS1591 [EnumMember(Value = "confidential")] + #pragma warning disable CS1591 Confidential, + #pragma warning restore CS1591 } } diff --git a/msgraph-mail/dotnet/Models/SingleValueLegacyExtendedProperty.cs b/msgraph-mail/dotnet/Models/SingleValueLegacyExtendedProperty.cs index 50a9e36ae..6f83ab188 100644 --- a/msgraph-mail/dotnet/Models/SingleValueLegacyExtendedProperty.cs +++ b/msgraph-mail/dotnet/Models/SingleValueLegacyExtendedProperty.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class SingleValueLegacyExtendedProperty : Entity, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class SingleValueLegacyExtendedProperty : Graphdotnetv4.Models.Entity, IParsable + #pragma warning restore CS1591 { /// A property value. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER @@ -18,12 +21,12 @@ public class SingleValueLegacyExtendedProperty : Entity, IParsable /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static new SingleValueLegacyExtendedProperty CreateFromDiscriminatorValue(IParseNode parseNode) + public static new Graphdotnetv4.Models.SingleValueLegacyExtendedProperty CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SingleValueLegacyExtendedProperty(); + return new Graphdotnetv4.Models.SingleValueLegacyExtendedProperty(); } /// /// The deserialization information for the current model @@ -33,7 +36,7 @@ public override IDictionary> GetFieldDeserializers() { return new Dictionary>(base.GetFieldDeserializers()) { - {"value", n => { Value = n.GetStringValue(); } }, + { "value", n => { Value = n.GetStringValue(); } }, }; } /// diff --git a/msgraph-mail/dotnet/Models/SizeRange.cs b/msgraph-mail/dotnet/Models/SizeRange.cs index 430f9521c..d3f7c8994 100644 --- a/msgraph-mail/dotnet/Models/SizeRange.cs +++ b/msgraph-mail/dotnet/Models/SizeRange.cs @@ -4,8 +4,11 @@ using System.IO; using System.Linq; using System; -namespace Graphdotnetv4.Models { - public class SizeRange : IAdditionalDataHolder, IParsable +namespace Graphdotnetv4.Models +{ + #pragma warning disable CS1591 + public class SizeRange : IAdditionalDataHolder, IParsable + #pragma warning restore CS1591 { /// Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well. public IDictionary AdditionalData { get; set; } @@ -14,7 +17,7 @@ public class SizeRange : IAdditionalDataHolder, IParsable /// The minimum size (in kilobytes) that an incoming message must have in order for a condition or exception to apply. public int? MinimumSize { get; set; } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// public SizeRange() { @@ -23,12 +26,12 @@ public SizeRange() /// /// Creates a new instance of the appropriate class based on discriminator value /// - /// A + /// A /// The parse node to use to read the discriminator value and create the object - public static SizeRange CreateFromDiscriminatorValue(IParseNode parseNode) + public static Graphdotnetv4.Models.SizeRange CreateFromDiscriminatorValue(IParseNode parseNode) { _ = parseNode ?? throw new ArgumentNullException(nameof(parseNode)); - return new SizeRange(); + return new Graphdotnetv4.Models.SizeRange(); } /// /// The deserialization information for the current model @@ -38,8 +41,8 @@ public virtual IDictionary> GetFieldDeserializers() { return new Dictionary> { - {"maximumSize", n => { MaximumSize = n.GetIntValue(); } }, - {"minimumSize", n => { MinimumSize = n.GetIntValue(); } }, + { "maximumSize", n => { MaximumSize = n.GetIntValue(); } }, + { "minimumSize", n => { MinimumSize = n.GetIntValue(); } }, }; } /// diff --git a/msgraph-mail/dotnet/Users/Item/InferenceClassification/InferenceClassificationRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/InferenceClassification/InferenceClassificationRequestBuilder.cs index 0c017da71..5b99bda2c 100644 --- a/msgraph-mail/dotnet/Users/Item/InferenceClassification/InferenceClassificationRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/InferenceClassification/InferenceClassificationRequestBuilder.cs @@ -10,19 +10,20 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.InferenceClassification { +namespace Graphdotnetv4.Users.Item.InferenceClassification +{ /// /// Builds and executes requests for operations under \users\{user-id}\inferenceClassification /// - public class InferenceClassificationRequestBuilder : BaseRequestBuilder + public class InferenceClassificationRequestBuilder : BaseRequestBuilder { /// The overrides property - public OverridesRequestBuilder Overrides + public Graphdotnetv4.Users.Item.InferenceClassification.Overrides.OverridesRequestBuilder Overrides { - get => new OverridesRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.InferenceClassification.Overrides.OverridesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -30,7 +31,7 @@ public InferenceClassificationRequestBuilder(Dictionary pathPara { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -43,20 +44,20 @@ public InferenceClassificationRequestBuilder(string rawUrl, IRequestAdapter requ /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.InferenceClassification.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -67,7 +68,7 @@ public InferenceClassificationRequestBuilder(string rawUrl, IRequestAdapter requ /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PatchAsync(Graphdotnetv4.Models.InferenceClassification body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -81,7 +82,7 @@ public InferenceClassificationRequestBuilder(string rawUrl, IRequestAdapter requ var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.InferenceClassification.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -92,11 +93,11 @@ public InferenceClassificationRequestBuilder(string rawUrl, IRequestAdapter requ /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -120,7 +121,7 @@ public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.Inferen { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/inferenceClassification", PathParameters); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -129,11 +130,11 @@ public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.Inferen /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InferenceClassificationRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.InferenceClassification.InferenceClassificationRequestBuilder WithUrl(string rawUrl) { - return new InferenceClassificationRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.InferenceClassification.InferenceClassificationRequestBuilder(rawUrl, RequestAdapter); } /// /// Relevance classification of the user's messages based on explicit designations that override inferred relevance or importance. @@ -155,14 +156,14 @@ public class InferenceClassificationRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class InferenceClassificationRequestBuilderGetRequestConfiguration : RequestConfiguration + public class InferenceClassificationRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class InferenceClassificationRequestBuilderPatchRequestConfiguration : RequestConfiguration + public class InferenceClassificationRequestBuilderPatchRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/InferenceClassification/Overrides/Count/CountRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/InferenceClassification/Overrides/Count/CountRequestBuilder.cs index e49e7f8ab..313c8da3c 100644 --- a/msgraph-mail/dotnet/Users/Item/InferenceClassification/Overrides/Count/CountRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/InferenceClassification/Overrides/Count/CountRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.InferenceClassification.Overrides.Count { +namespace Graphdotnetv4.Users.Item.InferenceClassification.Overrides.Count +{ /// /// Builds and executes requests for operations under \users\{user-id}\inferenceClassification\overrides\$count /// - public class CountRequestBuilder : BaseRequestBuilder + public class CountRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -60,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -75,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.InferenceClassification.Overrides.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.InferenceClassification.Overrides.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the number of the resource @@ -101,7 +102,7 @@ public class CountRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs index e584fc139..bf00926ca 100644 --- a/msgraph-mail/dotnet/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/InferenceClassification/Overrides/Item/InferenceClassificationOverrideItemRequestBuilder.cs @@ -9,14 +9,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.InferenceClassification.Overrides.Item { +namespace Graphdotnetv4.Users.Item.InferenceClassification.Overrides.Item +{ /// /// Builds and executes requests for operations under \users\{user-id}\inferenceClassification\overrides\{inferenceClassificationOverride-id} /// - public class InferenceClassificationOverrideItemRequestBuilder : BaseRequestBuilder + public class InferenceClassificationOverrideItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -24,7 +25,7 @@ public InferenceClassificationOverrideItemRequestBuilder(Dictionary - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -32,13 +33,12 @@ public InferenceClassificationOverrideItemRequestBuilder(string rawUrl, IRequest { } /// - /// Delete an override specified by its ID. - /// Find more info here + /// Delete navigation property overrides for users /// /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -51,61 +51,60 @@ public async Task DeleteAsync(Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, InferenceClassificationOverride.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.InferenceClassificationOverride.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Change the classifyAs field of an override as specified. You cannot use PATCH to change any other fields in an inferenceClassificationOverride instance. If an override exists for a sender and the sender changes his/her display name, you can use POST to force an update to the name field in the existing override. If an override exists for a sender and the sender changes his/her SMTP address, deleting the existing override and creating a new one withthe new SMTP address is the only way to 'update' the override for this sender. - /// Find more info here + /// Update the navigation property overrides in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(InferenceClassificationOverride body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.InferenceClassificationOverride body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(InferenceClassificationOverride body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.InferenceClassificationOverride body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, InferenceClassificationOverride.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.InferenceClassificationOverride.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an override specified by its ID. + /// Delete navigation property overrides for users /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -118,7 +117,7 @@ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/users/{user%2Did}/inferenceClassification/overrides/{inferenceClassificationOverride%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; @@ -130,11 +129,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -143,22 +142,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Change the classifyAs field of an override as specified. You cannot use PATCH to change any other fields in an inferenceClassificationOverride instance. If an override exists for a sender and the sender changes his/her display name, you can use POST to force an update to the name field in the existing override. If an override exists for a sender and the sender changes his/her SMTP address, deleting the existing override and creating a new one withthe new SMTP address is the only way to 'update' the override for this sender. + /// Update the navigation property overrides in users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(InferenceClassificationOverride body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.InferenceClassificationOverride body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(InferenceClassificationOverride body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.InferenceClassificationOverride body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/inferenceClassification/overrides/{inferenceClassificationOverride%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -167,17 +166,17 @@ public RequestInformation ToPatchRequestInformation(InferenceClassificationOverr /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public InferenceClassificationOverrideItemRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.InferenceClassification.Overrides.Item.InferenceClassificationOverrideItemRequestBuilder WithUrl(string rawUrl) { - return new InferenceClassificationOverrideItemRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.InferenceClassification.Overrides.Item.InferenceClassificationOverrideItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class InferenceClassificationOverrideItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + public class InferenceClassificationOverrideItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// @@ -200,14 +199,14 @@ public class InferenceClassificationOverrideItemRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class InferenceClassificationOverrideItemRequestBuilderGetRequestConfiguration : RequestConfiguration + public class InferenceClassificationOverrideItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class InferenceClassificationOverrideItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + public class InferenceClassificationOverrideItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.cs index dbe11305a..d50839993 100644 --- a/msgraph-mail/dotnet/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/InferenceClassification/Overrides/OverridesRequestBuilder.cs @@ -11,31 +11,32 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.InferenceClassification.Overrides { +namespace Graphdotnetv4.Users.Item.InferenceClassification.Overrides +{ /// /// Builds and executes requests for operations under \users\{user-id}\inferenceClassification\overrides /// - public class OverridesRequestBuilder : BaseRequestBuilder + public class OverridesRequestBuilder : BaseRequestBuilder { /// The Count property - public CountRequestBuilder Count + public Graphdotnetv4.Users.Item.InferenceClassification.Overrides.Count.CountRequestBuilder Count { - get => new CountRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.InferenceClassification.Overrides.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Graphdotnetv4.users.item.inferenceClassification.overrides.item collection /// The unique identifier of inferenceClassificationOverride - /// A - public InferenceClassificationOverrideItemRequestBuilder this[string position] + /// A + public Graphdotnetv4.Users.Item.InferenceClassification.Overrides.Item.InferenceClassificationOverrideItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("inferenceClassificationOverride%2Did", position); - return new InferenceClassificationOverrideItemRequestBuilder(urlTplParams, RequestAdapter); + return new Graphdotnetv4.Users.Item.InferenceClassification.Overrides.Item.InferenceClassificationOverrideItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +44,7 @@ public OverridesRequestBuilder(Dictionary pathParameters, IReque { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,67 +52,65 @@ public OverridesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : { } /// - /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. - /// Find more info here + /// A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, InferenceClassificationOverrideCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.InferenceClassificationOverrideCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classifiedas specified in the override. Note - /// Find more info here + /// Create new navigation property to overrides for users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(InferenceClassificationOverride body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.InferenceClassificationOverride body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(InferenceClassificationOverride body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.InferenceClassificationOverride body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, InferenceClassificationOverride.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.InferenceClassificationOverride.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. + /// A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -120,22 +119,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an override for a sender identified by an SMTP address. Future messages from that SMTP address will be consistently classifiedas specified in the override. Note + /// Create new navigation property to overrides for users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(InferenceClassificationOverride body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.InferenceClassificationOverride body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(InferenceClassificationOverride body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.InferenceClassificationOverride body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/inferenceClassification/overrides", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -144,14 +143,14 @@ public RequestInformation ToPostRequestInformation(InferenceClassificationOverri /// /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public OverridesRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.InferenceClassification.Overrides.OverridesRequestBuilder WithUrl(string rawUrl) { - return new OverridesRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.InferenceClassification.Overrides.OverridesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get the overrides that a user has set up to always classify messages from certain senders in specific ways. Each override corresponds to an SMTP address of a sender. Initially, a user does not have any overrides. + /// A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable. /// public class OverridesRequestBuilderGetQueryParameters { @@ -199,14 +198,14 @@ public class OverridesRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class OverridesRequestBuilderGetRequestConfiguration : RequestConfiguration + public class OverridesRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class OverridesRequestBuilderPostRequestConfiguration : RequestConfiguration + public class OverridesRequestBuilderPostRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Count/CountRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Count/CountRequestBuilder.cs index 2e50b10ec..b45328cc4 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Count/CountRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Count/CountRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Count { +namespace Graphdotnetv4.Users.Item.MailFolders.Count +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\$count /// - public class CountRequestBuilder : BaseRequestBuilder + public class CountRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -60,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -75,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the number of the resource @@ -101,7 +102,7 @@ public class CountRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs index a41764668..95fb41964 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/ChildFoldersRequestBuilder.cs @@ -11,16 +11,17 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders /// - public class ChildFoldersRequestBuilder : BaseRequestBuilder + public class ChildFoldersRequestBuilder : BaseRequestBuilder { /// The Count property - public CountRequestBuilder Count + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Count.CountRequestBuilder Count { - get => new CountRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Graphdotnetv4.users.item.mailFolders.item.childFolders.item collection /// The unique identifier of mailFolder @@ -35,7 +36,7 @@ public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MailFolderIte } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +44,7 @@ public ChildFoldersRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,53 +53,51 @@ public ChildFoldersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) } /// /// The collection of child folders in the mailFolder. - /// Find more info here /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a new mailSearchFolder in the specified user's mailbox. - /// Find more info here + /// Create new navigation property to childFolders for users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(MailFolder body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.MailFolder body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(MailFolder body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.MailFolder body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The collection of child folders in the mailFolder. @@ -107,11 +106,11 @@ public async Task PostAsync(MailFolder body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -120,22 +119,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a new mailSearchFolder in the specified user's mailbox. + /// Create new navigation property to childFolders for users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MailFolder body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.MailFolder body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MailFolder body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.MailFolder body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -144,11 +143,11 @@ public RequestInformation ToPostRequestInformation(MailFolder body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ChildFoldersRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.ChildFoldersRequestBuilder WithUrl(string rawUrl) { - return new ChildFoldersRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.ChildFoldersRequestBuilder(rawUrl, RequestAdapter); } /// /// The collection of child folders in the mailFolder. @@ -219,14 +218,14 @@ public class ChildFoldersRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ChildFoldersRequestBuilderGetRequestConfiguration : RequestConfiguration + public class ChildFoldersRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ChildFoldersRequestBuilderPostRequestConfiguration : RequestConfiguration + public class ChildFoldersRequestBuilderPostRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.cs index e27aac582..535e82a8e 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Count/CountRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Count { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Count +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\$count /// - public class CountRequestBuilder : BaseRequestBuilder + public class CountRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -60,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -75,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the number of the resource @@ -101,7 +102,7 @@ public class CountRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.cs index e3f3aa189..c095859be 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MailFolderItemRequestBuilder.cs @@ -11,24 +11,25 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\{mailFolder-id1} /// - public class MailFolderItemRequestBuilder : BaseRequestBuilder + public class MailFolderItemRequestBuilder : BaseRequestBuilder { /// The messageRules property - public MessageRulesRequestBuilder MessageRules + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.MessageRulesRequestBuilder MessageRules { - get => new MessageRulesRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.MessageRulesRequestBuilder(PathParameters, RequestAdapter); } /// The messages property - public MessagesRequestBuilder Messages + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.MessagesRequestBuilder Messages { - get => new MessagesRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.MessagesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -36,7 +37,7 @@ public MailFolderItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -49,7 +50,7 @@ public MailFolderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -62,57 +63,57 @@ public async Task DeleteAsync(Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The collection of child folders in the mailFolder. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property childFolders in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(MailFolder body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.MailFolder body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(MailFolder body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.MailFolder body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Delete navigation property childFolders for users @@ -128,7 +129,7 @@ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; @@ -140,11 +141,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -160,15 +161,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MailFolder body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.MailFolder body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MailFolder body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.MailFolder body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}", PathParameters); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -177,17 +178,17 @@ public RequestInformation ToPatchRequestInformation(MailFolder body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MailFolderItemRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MailFolderItemRequestBuilder WithUrl(string rawUrl) { - return new MailFolderItemRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MailFolderItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MailFolderItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + public class MailFolderItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// @@ -230,14 +231,14 @@ public class MailFolderItemRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MailFolderItemRequestBuilderGetRequestConfiguration : RequestConfiguration + public class MailFolderItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MailFolderItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + public class MailFolderItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.cs index 6d8025594..877d09557 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Count/CountRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.Count { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.Count +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\{mailFolder-id1}\messageRules\$count /// - public class CountRequestBuilder : BaseRequestBuilder + public class CountRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -60,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -75,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the number of the resource @@ -101,7 +102,7 @@ public class CountRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs index fb2f06486..6a1370aba 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs @@ -9,14 +9,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.Item { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.Item +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\{mailFolder-id1}\messageRules\{messageRule-id} /// - public class MessageRuleItemRequestBuilder : BaseRequestBuilder + public class MessageRuleItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -24,7 +25,7 @@ public MessageRuleItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -32,13 +33,12 @@ public MessageRuleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt { } /// - /// Delete the specified messageRule object. - /// Find more info here + /// Delete navigation property messageRules for users /// /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -51,62 +51,60 @@ public async Task DeleteAsync(Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the properties and relationships of a messageRule object. - /// Find more info here + /// The collection of rules that apply to the user's Inbox folder. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Change writable properties on a messageRule object and save the changes. - /// Find more info here + /// Update the navigation property messageRules in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(MessageRule body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.MessageRule body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(MessageRule body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.MessageRule body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the specified messageRule object. + /// Delete navigation property messageRules for users /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -119,23 +117,23 @@ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messageRules/{messageRule%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; } /// - /// Get the properties and relationships of a messageRule object. + /// The collection of rules that apply to the user's Inbox folder. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -144,22 +142,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Change writable properties on a messageRule object and save the changes. + /// Update the navigation property messageRules in users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MessageRule body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.MessageRule body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MessageRule body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.MessageRule body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messageRules/{messageRule%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -168,21 +166,21 @@ public RequestInformation ToPatchRequestInformation(MessageRule body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MessageRuleItemRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.Item.MessageRuleItemRequestBuilder WithUrl(string rawUrl) { - return new MessageRuleItemRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.Item.MessageRuleItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageRuleItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + public class MessageRuleItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get the properties and relationships of a messageRule object. + /// The collection of rules that apply to the user's Inbox folder. /// public class MessageRuleItemRequestBuilderGetQueryParameters { @@ -201,14 +199,14 @@ public class MessageRuleItemRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageRuleItemRequestBuilderGetRequestConfiguration : RequestConfiguration + public class MessageRuleItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageRuleItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + public class MessageRuleItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs index 08af55445..4fa30be8f 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/MessageRules/MessageRulesRequestBuilder.cs @@ -11,31 +11,32 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\{mailFolder-id1}\messageRules /// - public class MessageRulesRequestBuilder : BaseRequestBuilder + public class MessageRulesRequestBuilder : BaseRequestBuilder { /// The Count property - public CountRequestBuilder Count + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.Count.CountRequestBuilder Count { - get => new CountRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Graphdotnetv4.users.item.mailFolders.item.childFolders.item.messageRules.item collection /// The unique identifier of messageRule - /// A - public MessageRuleItemRequestBuilder this[string position] + /// A + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.Item.MessageRuleItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("messageRule%2Did", position); - return new MessageRuleItemRequestBuilder(urlTplParams, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.Item.MessageRuleItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +44,7 @@ public MessageRulesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,67 +52,65 @@ public MessageRulesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Get all the messageRule objects defined for the user's inbox. - /// Find more info here + /// The collection of rules that apply to the user's Inbox folder. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MessageRuleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MessageRuleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. - /// Find more info here + /// Create new navigation property to messageRules for users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(MessageRule body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.MessageRule body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(MessageRule body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.MessageRule body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the messageRule objects defined for the user's inbox. + /// The collection of rules that apply to the user's Inbox folder. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -120,22 +119,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create new navigation property to messageRules for users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MessageRule body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.MessageRule body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MessageRule body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.MessageRule body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messageRules", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -144,14 +143,14 @@ public RequestInformation ToPostRequestInformation(MessageRule body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MessageRulesRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.MessageRulesRequestBuilder WithUrl(string rawUrl) { - return new MessageRulesRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.MessageRules.MessageRulesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the messageRule objects defined for the user's inbox. + /// The collection of rules that apply to the user's Inbox folder. /// public class MessageRulesRequestBuilderGetQueryParameters { @@ -199,14 +198,14 @@ public class MessageRulesRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageRulesRequestBuilderGetRequestConfiguration : RequestConfiguration + public class MessageRulesRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageRulesRequestBuilderPostRequestConfiguration : RequestConfiguration + public class MessageRulesRequestBuilderPostRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.cs index 50034180e..60e72fde1 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Count/CountRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Count { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Count +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\{mailFolder-id1}\messages\$count /// - public class CountRequestBuilder : BaseRequestBuilder + public class CountRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -60,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -75,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the number of the resource @@ -111,7 +112,7 @@ public class CountRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index cc07970db..41ba01a2b 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -11,31 +11,32 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\{mailFolder-id1}\messages\{message-id}\attachments /// - public class AttachmentsRequestBuilder : BaseRequestBuilder + public class AttachmentsRequestBuilder : BaseRequestBuilder { /// The Count property - public CountRequestBuilder Count + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.Count.CountRequestBuilder Count { - get => new CountRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Graphdotnetv4.users.item.mailFolders.item.childFolders.item.messages.item.attachments.item collection /// The unique identifier of attachment - /// A - public AttachmentItemRequestBuilder this[string position] + /// A + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.Item.AttachmentItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("attachment%2Did", position); - return new AttachmentItemRequestBuilder(urlTplParams, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.Item.AttachmentItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +44,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,67 +52,65 @@ public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// The fileAttachment and itemAttachment attachments for the message. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Create new navigation property to attachments for users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Attachment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Attachment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Attachment body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Attachment body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// The fileAttachment and itemAttachment attachments for the message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -120,22 +119,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Create new navigation property to attachments for users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -144,14 +143,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AttachmentsRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.AttachmentsRequestBuilder WithUrl(string rawUrl) { - return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// The fileAttachment and itemAttachment attachments for the message. /// public class AttachmentsRequestBuilderGetQueryParameters { @@ -203,14 +202,14 @@ public class AttachmentsRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class AttachmentsRequestBuilderGetRequestConfiguration : RequestConfiguration + public class AttachmentsRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class AttachmentsRequestBuilderPostRequestConfiguration : RequestConfiguration + public class AttachmentsRequestBuilderPostRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs index 66430524a..ac816be5c 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.Count { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.Count +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\{mailFolder-id1}\messages\{message-id}\attachments\$count /// - public class CountRequestBuilder : BaseRequestBuilder + public class CountRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -60,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -75,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the number of the resource @@ -101,7 +102,7 @@ public class CountRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index b5e325123..a5eb8fe22 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -9,14 +9,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.Item { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.Item +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\{mailFolder-id1}\messages\{message-id}\attachments\{attachment-id} /// - public class AttachmentItemRequestBuilder : BaseRequestBuilder + public class AttachmentItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -24,7 +25,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -37,7 +38,7 @@ public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -50,33 +51,32 @@ public async Task DeleteAsync(Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. - /// Find more info here + /// The fileAttachment and itemAttachment attachments for the message. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Delete navigation property attachments for users @@ -92,23 +92,23 @@ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/attachments/{attachment%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// The fileAttachment and itemAttachment attachments for the message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -119,21 +119,21 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AttachmentItemRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.Item.AttachmentItemRequestBuilder WithUrl(string rawUrl) { - return new AttachmentItemRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.Item.AttachmentItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class AttachmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + public class AttachmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// The fileAttachment and itemAttachment attachments for the message. /// public class AttachmentItemRequestBuilderGetQueryParameters { @@ -162,7 +162,7 @@ public class AttachmentItemRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class AttachmentItemRequestBuilderGetRequestConfiguration : RequestConfiguration + public class AttachmentItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs index 128662cb1..898ef20b6 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.Count { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.Count +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\{mailFolder-id1}\messages\{message-id}\extensions\$count /// - public class CountRequestBuilder : BaseRequestBuilder + public class CountRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -60,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -75,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the number of the resource @@ -101,7 +102,7 @@ public class CountRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index b75f00f5e..3cd2bc508 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -11,31 +11,32 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\{mailFolder-id1}\messages\{message-id}\extensions /// - public class ExtensionsRequestBuilder : BaseRequestBuilder + public class ExtensionsRequestBuilder : BaseRequestBuilder { /// The Count property - public CountRequestBuilder Count + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.Count.CountRequestBuilder Count { - get => new CountRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Graphdotnetv4.users.item.mailFolders.item.childFolders.item.messages.item.extensions.item collection /// The unique identifier of extension - /// A - public ExtensionItemRequestBuilder this[string position] + /// A + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.Item.ExtensionItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("extension%2Did", position); - return new ExtensionItemRequestBuilder(urlTplParams, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.Item.ExtensionItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +44,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,66 +52,65 @@ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Create new navigation property to extensions for users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Extension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Extension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -119,22 +119,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create new navigation property to extensions for users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/extensions", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -143,14 +143,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ExtensionsRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.ExtensionsRequestBuilder WithUrl(string rawUrl) { - return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// public class ExtensionsRequestBuilderGetQueryParameters { @@ -208,14 +208,14 @@ public class ExtensionsRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionsRequestBuilderGetRequestConfiguration : RequestConfiguration + public class ExtensionsRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration + public class ExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 1e537bab5..1e7836543 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -9,14 +9,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.Item { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.Item +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\{mailFolder-id1}\messages\{message-id}\extensions\{extension-id} /// - public class ExtensionItemRequestBuilder : BaseRequestBuilder + public class ExtensionItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -24,7 +25,7 @@ public ExtensionItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -32,13 +33,12 @@ public ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter { } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. - /// Find more info here + /// Delete navigation property extensions for users /// /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -51,61 +51,60 @@ public async Task DeleteAsync(Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. - /// Find more info here + /// The collection of open extensions defined for the message. Nullable. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property extensions in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Extension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.Extension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete navigation property extensions for users /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -118,23 +117,23 @@ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/extensions/{extension%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -150,15 +149,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}/extensions/{extension%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -167,21 +166,21 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ExtensionItemRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.Item.ExtensionItemRequestBuilder WithUrl(string rawUrl) { - return new ExtensionItemRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.Item.ExtensionItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + public class ExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// public class ExtensionItemRequestBuilderGetQueryParameters { @@ -210,14 +209,14 @@ public class ExtensionItemRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + public class ExtensionItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + public class ExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.cs index bce96a76b..e3106e16b 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -12,29 +12,30 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\{mailFolder-id1}\messages\{message-id} /// - public class MessageItemRequestBuilder : BaseRequestBuilder + public class MessageItemRequestBuilder : BaseRequestBuilder { /// The attachments property - public AttachmentsRequestBuilder Attachments + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.AttachmentsRequestBuilder Attachments { - get => new AttachmentsRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Attachments.AttachmentsRequestBuilder(PathParameters, RequestAdapter); } /// The Content property - public ContentRequestBuilder Content + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Value.ContentRequestBuilder Content { - get => new ContentRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); } /// The extensions property - public ExtensionsRequestBuilder Extensions + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.ExtensionsRequestBuilder Extensions { - get => new ExtensionsRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Extensions.ExtensionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -42,7 +43,7 @@ public MessageItemRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -55,7 +56,7 @@ public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -68,57 +69,57 @@ public async Task DeleteAsync(Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The collection of messages in the mailFolder. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property messages in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(Message body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.Message body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Message body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.Message body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Delete navigation property messages for users @@ -134,7 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; @@ -146,11 +147,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -166,15 +167,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Message body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.Message body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Message body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.Message body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages/{message%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -183,17 +184,17 @@ public RequestInformation ToPatchRequestInformation(Message body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MessageItemRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.MessageItemRequestBuilder WithUrl(string rawUrl) { - return new MessageItemRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.MessageItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + public class MessageItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// @@ -226,14 +227,14 @@ public class MessageItemRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageItemRequestBuilderGetRequestConfiguration : RequestConfiguration + public class MessageItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + public class MessageItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs index eda5cbe83..2890aa181 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Value { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Value +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\{mailFolder-id1}\messages\{message-id}\$value /// - public class ContentRequestBuilder : BaseRequestBuilder + public class ContentRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public ContentRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -32,25 +33,24 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from users - /// Find more info here /// /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -61,7 +61,7 @@ public async Task GetAsync(ActionBinary request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -75,7 +75,7 @@ public async Task PutAsync(Stream body, Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -86,11 +86,11 @@ public async Task PutAsync(Stream body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -114,7 +114,7 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ContentRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) { - return new ContentRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); } /// /// Get media content for the navigation property messages from users @@ -149,14 +149,14 @@ public class ContentRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + public class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + public class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs index 0ac4c1e96..fe42a8929 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/ChildFolders/Item/Messages/MessagesRequestBuilder.cs @@ -11,31 +11,32 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\childFolders\{mailFolder-id1}\messages /// - public class MessagesRequestBuilder : BaseRequestBuilder + public class MessagesRequestBuilder : BaseRequestBuilder { /// The Count property - public CountRequestBuilder Count + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Count.CountRequestBuilder Count { - get => new CountRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Graphdotnetv4.users.item.mailFolders.item.childFolders.item.messages.item collection /// The unique identifier of message - /// A - public MessageItemRequestBuilder this[string position] + /// A + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.MessageItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("message%2Did", position); - return new MessageItemRequestBuilder(urlTplParams, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.Item.MessageItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +44,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,67 +52,65 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b { } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. - /// Find more info here + /// The collection of messages in the mailFolder. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new Message in a mailfolder. - /// Find more info here + /// Create new navigation property to messages for users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Message body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Message body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Message body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Message body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// The collection of messages in the mailFolder. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -120,22 +119,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Message in a mailfolder. + /// Create new navigation property to messages for users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Message body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Message body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Message body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Message body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/childFolders/{mailFolder%2Did1}/messages", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -144,14 +143,14 @@ public RequestInformation ToPostRequestInformation(Message body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MessagesRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.MessagesRequestBuilder WithUrl(string rawUrl) { - return new MessagesRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.Item.Messages.MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// The collection of messages in the mailFolder. /// public class MessagesRequestBuilderGetQueryParameters { @@ -219,14 +218,14 @@ public class MessagesRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessagesRequestBuilderGetRequestConfiguration : RequestConfiguration + public class MessagesRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessagesRequestBuilderPostRequestConfiguration : RequestConfiguration + public class MessagesRequestBuilderPostRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs index 48798a658..84aabccb4 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MailFolderItemRequestBuilder.cs @@ -12,29 +12,30 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item { +namespace Graphdotnetv4.Users.Item.MailFolders.Item +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id} /// - public class MailFolderItemRequestBuilder : BaseRequestBuilder + public class MailFolderItemRequestBuilder : BaseRequestBuilder { /// The childFolders property - public ChildFoldersRequestBuilder ChildFolders + public Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.ChildFoldersRequestBuilder ChildFolders { - get => new ChildFoldersRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.ChildFolders.ChildFoldersRequestBuilder(PathParameters, RequestAdapter); } /// The messageRules property - public MessageRulesRequestBuilder MessageRules + public Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.MessageRulesRequestBuilder MessageRules { - get => new MessageRulesRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.MessageRulesRequestBuilder(PathParameters, RequestAdapter); } /// The messages property - public MessagesRequestBuilder Messages + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.MessagesRequestBuilder Messages { - get => new MessagesRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.MessagesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -42,7 +43,7 @@ public MailFolderItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -50,13 +51,12 @@ public MailFolderItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte { } /// - /// Delete the specified mailFolder. The folder can be a mailSearchFolder. You can specify a mail folder by its folder ID, or by its well-known folder name, if one exists. - /// Find more info here + /// Delete navigation property mailFolders for users /// /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -69,62 +69,60 @@ public async Task DeleteAsync(Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The user's mail folders. Read-only. Nullable. - /// Find more info here /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the writable properties of a mailSearchFolder object. - /// Find more info here + /// Update the navigation property mailFolders in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(MailFolder body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.MailFolder body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(MailFolder body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.MailFolder body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the specified mailFolder. The folder can be a mailSearchFolder. You can specify a mail folder by its folder ID, or by its well-known folder name, if one exists. + /// Delete navigation property mailFolders for users /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; @@ -149,11 +147,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -162,22 +160,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the writable properties of a mailSearchFolder object. + /// Update the navigation property mailFolders in users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MailFolder body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.MailFolder body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MailFolder body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.MailFolder body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -186,17 +184,17 @@ public RequestInformation ToPatchRequestInformation(MailFolder body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MailFolderItemRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.MailFolderItemRequestBuilder WithUrl(string rawUrl) { - return new MailFolderItemRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.MailFolderItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MailFolderItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + public class MailFolderItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// @@ -239,14 +237,14 @@ public class MailFolderItemRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MailFolderItemRequestBuilderGetRequestConfiguration : RequestConfiguration + public class MailFolderItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MailFolderItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + public class MailFolderItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MessageRules/Count/CountRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MessageRules/Count/CountRequestBuilder.cs index eb50eb9cd..577c6c7ef 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MessageRules/Count/CountRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MessageRules/Count/CountRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.Count { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.Count +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messageRules\$count /// - public class CountRequestBuilder : BaseRequestBuilder + public class CountRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -60,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -75,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the number of the resource @@ -101,7 +102,7 @@ public class CountRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs index 65135848f..8d99918da 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MessageRules/Item/MessageRuleItemRequestBuilder.cs @@ -9,14 +9,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.Item { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.Item +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messageRules\{messageRule-id} /// - public class MessageRuleItemRequestBuilder : BaseRequestBuilder + public class MessageRuleItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -24,7 +25,7 @@ public MessageRuleItemRequestBuilder(Dictionary pathParameters, { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -32,13 +33,12 @@ public MessageRuleItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapt { } /// - /// Delete the specified messageRule object. - /// Find more info here + /// Delete navigation property messageRules for users /// /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -51,62 +51,60 @@ public async Task DeleteAsync(Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get the properties and relationships of a messageRule object. - /// Find more info here + /// The collection of rules that apply to the user's Inbox folder. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Change writable properties on a messageRule object and save the changes. - /// Find more info here + /// Update the navigation property messageRules in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(MessageRule body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.MessageRule body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(MessageRule body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.MessageRule body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete the specified messageRule object. + /// Delete navigation property messageRules for users /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -119,23 +117,23 @@ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messageRules/{messageRule%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; } /// - /// Get the properties and relationships of a messageRule object. + /// The collection of rules that apply to the user's Inbox folder. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -144,22 +142,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Change writable properties on a messageRule object and save the changes. + /// Update the navigation property messageRules in users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(MessageRule body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.MessageRule body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(MessageRule body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.MessageRule body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messageRules/{messageRule%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -168,21 +166,21 @@ public RequestInformation ToPatchRequestInformation(MessageRule body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MessageRuleItemRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.Item.MessageRuleItemRequestBuilder WithUrl(string rawUrl) { - return new MessageRuleItemRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.Item.MessageRuleItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageRuleItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + public class MessageRuleItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get the properties and relationships of a messageRule object. + /// The collection of rules that apply to the user's Inbox folder. /// public class MessageRuleItemRequestBuilderGetQueryParameters { @@ -201,14 +199,14 @@ public class MessageRuleItemRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageRuleItemRequestBuilderGetRequestConfiguration : RequestConfiguration + public class MessageRuleItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageRuleItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + public class MessageRuleItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs index 6391e4cc8..c15cfa28c 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/MessageRules/MessageRulesRequestBuilder.cs @@ -11,31 +11,32 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messageRules /// - public class MessageRulesRequestBuilder : BaseRequestBuilder + public class MessageRulesRequestBuilder : BaseRequestBuilder { /// The Count property - public CountRequestBuilder Count + public Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.Count.CountRequestBuilder Count { - get => new CountRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Graphdotnetv4.users.item.mailFolders.item.messageRules.item collection /// The unique identifier of messageRule - /// A - public MessageRuleItemRequestBuilder this[string position] + /// A + public Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.Item.MessageRuleItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("messageRule%2Did", position); - return new MessageRuleItemRequestBuilder(urlTplParams, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.Item.MessageRuleItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +44,7 @@ public MessageRulesRequestBuilder(Dictionary pathParameters, IRe { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,67 +52,65 @@ public MessageRulesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Get all the messageRule objects defined for the user's inbox. - /// Find more info here + /// The collection of rules that apply to the user's Inbox folder. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MessageRuleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MessageRuleCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. - /// Find more info here + /// Create new navigation property to messageRules for users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(MessageRule body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.MessageRule body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(MessageRule body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.MessageRule body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MessageRule.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the messageRule objects defined for the user's inbox. + /// The collection of rules that apply to the user's Inbox folder. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -120,22 +119,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a messageRule object by specifying a set of conditions and actions. Outlook carries out those actions if an incoming message in the user's Inbox meets the specified conditions. + /// Create new navigation property to messageRules for users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MessageRule body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.MessageRule body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MessageRule body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.MessageRule body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messageRules", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -144,14 +143,14 @@ public RequestInformation ToPostRequestInformation(MessageRule body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MessageRulesRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.MessageRulesRequestBuilder WithUrl(string rawUrl) { - return new MessageRulesRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.MessageRules.MessageRulesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the messageRule objects defined for the user's inbox. + /// The collection of rules that apply to the user's Inbox folder. /// public class MessageRulesRequestBuilderGetQueryParameters { @@ -199,14 +198,14 @@ public class MessageRulesRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageRulesRequestBuilderGetRequestConfiguration : RequestConfiguration + public class MessageRulesRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageRulesRequestBuilderPostRequestConfiguration : RequestConfiguration + public class MessageRulesRequestBuilderPostRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Count/CountRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Count/CountRequestBuilder.cs index 5ff4d3f7c..581228f32 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Count/CountRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Count/CountRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Count { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Count +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\$count /// - public class CountRequestBuilder : BaseRequestBuilder + public class CountRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -60,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -75,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the number of the resource @@ -111,7 +112,7 @@ public class CountRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index fdcc4f84e..be484f23f 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -11,31 +11,32 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\attachments /// - public class AttachmentsRequestBuilder : BaseRequestBuilder + public class AttachmentsRequestBuilder : BaseRequestBuilder { /// The Count property - public CountRequestBuilder Count + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.Count.CountRequestBuilder Count { - get => new CountRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Graphdotnetv4.users.item.mailFolders.item.messages.item.attachments.item collection /// The unique identifier of attachment - /// A - public AttachmentItemRequestBuilder this[string position] + /// A + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.Item.AttachmentItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("attachment%2Did", position); - return new AttachmentItemRequestBuilder(urlTplParams, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.Item.AttachmentItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +44,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,67 +52,65 @@ public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// The fileAttachment and itemAttachment attachments for the message. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Create new navigation property to attachments for users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Attachment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Attachment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Attachment body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Attachment body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// The fileAttachment and itemAttachment attachments for the message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -120,22 +119,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Create new navigation property to attachments for users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -144,14 +143,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AttachmentsRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.AttachmentsRequestBuilder WithUrl(string rawUrl) { - return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// The fileAttachment and itemAttachment attachments for the message. /// public class AttachmentsRequestBuilderGetQueryParameters { @@ -203,14 +202,14 @@ public class AttachmentsRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class AttachmentsRequestBuilderGetRequestConfiguration : RequestConfiguration + public class AttachmentsRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class AttachmentsRequestBuilderPostRequestConfiguration : RequestConfiguration + public class AttachmentsRequestBuilderPostRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs index f7360a4be..b621e2e53 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.Count { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.Count +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\attachments\$count /// - public class CountRequestBuilder : BaseRequestBuilder + public class CountRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -60,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -75,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the number of the resource @@ -101,7 +102,7 @@ public class CountRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index c5fc3677e..1bafc2aa6 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -9,14 +9,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.Item { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.Item +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\attachments\{attachment-id} /// - public class AttachmentItemRequestBuilder : BaseRequestBuilder + public class AttachmentItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -24,7 +25,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -37,7 +38,7 @@ public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -50,33 +51,32 @@ public async Task DeleteAsync(Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. - /// Find more info here + /// The fileAttachment and itemAttachment attachments for the message. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Delete navigation property attachments for users @@ -92,23 +92,23 @@ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/attachments/{attachment%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// The fileAttachment and itemAttachment attachments for the message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -119,21 +119,21 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AttachmentItemRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.Item.AttachmentItemRequestBuilder WithUrl(string rawUrl) { - return new AttachmentItemRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.Item.AttachmentItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class AttachmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + public class AttachmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// The fileAttachment and itemAttachment attachments for the message. /// public class AttachmentItemRequestBuilderGetQueryParameters { @@ -162,7 +162,7 @@ public class AttachmentItemRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class AttachmentItemRequestBuilderGetRequestConfiguration : RequestConfiguration + public class AttachmentItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs index ecd5f6756..5990810f5 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.Count { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.Count +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\extensions\$count /// - public class CountRequestBuilder : BaseRequestBuilder + public class CountRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -60,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -75,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the number of the resource @@ -101,7 +102,7 @@ public class CountRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index 6f2f5e871..cae8aed38 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -11,31 +11,32 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\extensions /// - public class ExtensionsRequestBuilder : BaseRequestBuilder + public class ExtensionsRequestBuilder : BaseRequestBuilder { /// The Count property - public CountRequestBuilder Count + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.Count.CountRequestBuilder Count { - get => new CountRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Graphdotnetv4.users.item.mailFolders.item.messages.item.extensions.item collection /// The unique identifier of extension - /// A - public ExtensionItemRequestBuilder this[string position] + /// A + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.Item.ExtensionItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("extension%2Did", position); - return new ExtensionItemRequestBuilder(urlTplParams, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.Item.ExtensionItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +44,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,66 +52,65 @@ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Create new navigation property to extensions for users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Extension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Extension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -119,22 +119,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create new navigation property to extensions for users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/extensions", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -143,14 +143,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ExtensionsRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.ExtensionsRequestBuilder WithUrl(string rawUrl) { - return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// public class ExtensionsRequestBuilderGetQueryParameters { @@ -208,14 +208,14 @@ public class ExtensionsRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionsRequestBuilderGetRequestConfiguration : RequestConfiguration + public class ExtensionsRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration + public class ExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 9f9efc62b..dad558c03 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -9,14 +9,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.Item { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.Item +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\extensions\{extension-id} /// - public class ExtensionItemRequestBuilder : BaseRequestBuilder + public class ExtensionItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -24,7 +25,7 @@ public ExtensionItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -32,13 +33,12 @@ public ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter { } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. - /// Find more info here + /// Delete navigation property extensions for users /// /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -51,61 +51,60 @@ public async Task DeleteAsync(Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. - /// Find more info here + /// The collection of open extensions defined for the message. Nullable. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property extensions in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Extension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.Extension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete navigation property extensions for users /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -118,23 +117,23 @@ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/extensions/{extension%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -150,15 +149,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}/extensions/{extension%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -167,21 +166,21 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ExtensionItemRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.Item.ExtensionItemRequestBuilder WithUrl(string rawUrl) { - return new ExtensionItemRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.Item.ExtensionItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + public class ExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// public class ExtensionItemRequestBuilderGetQueryParameters { @@ -210,14 +209,14 @@ public class ExtensionItemRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + public class ExtensionItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + public class ExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.cs index 722fc781c..e9ff0ee3b 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -12,29 +12,30 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id} /// - public class MessageItemRequestBuilder : BaseRequestBuilder + public class MessageItemRequestBuilder : BaseRequestBuilder { /// The attachments property - public AttachmentsRequestBuilder Attachments + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.AttachmentsRequestBuilder Attachments { - get => new AttachmentsRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Attachments.AttachmentsRequestBuilder(PathParameters, RequestAdapter); } /// The Content property - public ContentRequestBuilder Content + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Value.ContentRequestBuilder Content { - get => new ContentRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); } /// The extensions property - public ExtensionsRequestBuilder Extensions + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.ExtensionsRequestBuilder Extensions { - get => new ExtensionsRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Extensions.ExtensionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -42,7 +43,7 @@ public MessageItemRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -55,7 +56,7 @@ public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -68,57 +69,57 @@ public async Task DeleteAsync(Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The collection of messages in the mailFolder. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property messages in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(Message body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.Message body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Message body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.Message body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Delete navigation property messages for users @@ -134,7 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; @@ -146,11 +147,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -166,15 +167,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Message body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.Message body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Message body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.Message body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages/{message%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -183,17 +184,17 @@ public RequestInformation ToPatchRequestInformation(Message body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MessageItemRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.MessageItemRequestBuilder WithUrl(string rawUrl) { - return new MessageItemRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.MessageItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + public class MessageItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// @@ -226,14 +227,14 @@ public class MessageItemRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageItemRequestBuilderGetRequestConfiguration : RequestConfiguration + public class MessageItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + public class MessageItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs index 881b8eded..b9b258b75 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/Item/Value/ContentRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Value { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Value +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages\{message-id}\$value /// - public class ContentRequestBuilder : BaseRequestBuilder + public class ContentRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public ContentRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -32,25 +33,24 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from users - /// Find more info here /// /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -61,7 +61,7 @@ public async Task GetAsync(ActionBinary request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -75,7 +75,7 @@ public async Task PutAsync(Stream body, Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -86,11 +86,11 @@ public async Task PutAsync(Stream body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -114,7 +114,7 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ContentRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) { - return new ContentRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); } /// /// Get media content for the navigation property messages from users @@ -149,14 +149,14 @@ public class ContentRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + public class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + public class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.cs index 1c119fc45..5b9e24fa5 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/Item/Messages/MessagesRequestBuilder.cs @@ -11,31 +11,32 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages { +namespace Graphdotnetv4.Users.Item.MailFolders.Item.Messages +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders\{mailFolder-id}\messages /// - public class MessagesRequestBuilder : BaseRequestBuilder + public class MessagesRequestBuilder : BaseRequestBuilder { /// The Count property - public CountRequestBuilder Count + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Count.CountRequestBuilder Count { - get => new CountRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Graphdotnetv4.users.item.mailFolders.item.messages.item collection /// The unique identifier of message - /// A - public MessageItemRequestBuilder this[string position] + /// A + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.MessageItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("message%2Did", position); - return new MessageItemRequestBuilder(urlTplParams, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.Item.MessageItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +44,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,67 +52,65 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b { } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. - /// Find more info here + /// The collection of messages in the mailFolder. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new Message in a mailfolder. - /// Find more info here + /// Create new navigation property to messages for users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Message body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Message body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Message body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Message body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// The collection of messages in the mailFolder. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -120,22 +119,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Message in a mailfolder. + /// Create new navigation property to messages for users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Message body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Message body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Message body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Message body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/mailFolders/{mailFolder%2Did}/messages", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -144,14 +143,14 @@ public RequestInformation ToPostRequestInformation(Message body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MessagesRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.Item.Messages.MessagesRequestBuilder WithUrl(string rawUrl) { - return new MessagesRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.Messages.MessagesRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get all the messages in the specified user's mailbox, or those messages in a specified folder in the mailbox. + /// The collection of messages in the mailFolder. /// public class MessagesRequestBuilderGetQueryParameters { @@ -219,14 +218,14 @@ public class MessagesRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessagesRequestBuilderGetRequestConfiguration : RequestConfiguration + public class MessagesRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessagesRequestBuilderPostRequestConfiguration : RequestConfiguration + public class MessagesRequestBuilderPostRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/MailFolders/MailFoldersRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/MailFolders/MailFoldersRequestBuilder.cs index b5705218b..7f8cc03e7 100644 --- a/msgraph-mail/dotnet/Users/Item/MailFolders/MailFoldersRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/MailFolders/MailFoldersRequestBuilder.cs @@ -11,31 +11,32 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.MailFolders { +namespace Graphdotnetv4.Users.Item.MailFolders +{ /// /// Builds and executes requests for operations under \users\{user-id}\mailFolders /// - public class MailFoldersRequestBuilder : BaseRequestBuilder + public class MailFoldersRequestBuilder : BaseRequestBuilder { /// The Count property - public CountRequestBuilder Count + public Graphdotnetv4.Users.Item.MailFolders.Count.CountRequestBuilder Count { - get => new CountRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Graphdotnetv4.users.item.mailFolders.item collection /// The unique identifier of mailFolder - /// A - public MailFolderItemRequestBuilder this[string position] + /// A + public Graphdotnetv4.Users.Item.MailFolders.Item.MailFolderItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("mailFolder%2Did", position); - return new MailFolderItemRequestBuilder(urlTplParams, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.Item.MailFolderItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +44,7 @@ public MailFoldersRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,53 +53,51 @@ public MailFoldersRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) } /// /// The user's mail folders. Read-only. Nullable. - /// Find more info here /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MailFolderCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new mail folder in the root folder of the user's mailbox. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. - /// Find more info here + /// Create new navigation property to mailFolders for users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(MailFolder body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.MailFolder body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(MailFolder body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.MailFolder body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MailFolder.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The user's mail folders. Read-only. Nullable. @@ -107,11 +106,11 @@ public async Task PostAsync(MailFolder body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -120,22 +119,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new mail folder in the root folder of the user's mailbox. If you intend a new folder to be hidden, you must set the isHidden property to true on creation. + /// Create new navigation property to mailFolders for users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(MailFolder body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.MailFolder body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(MailFolder body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.MailFolder body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/mailFolders", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -144,11 +143,11 @@ public RequestInformation ToPostRequestInformation(MailFolder body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MailFoldersRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.MailFolders.MailFoldersRequestBuilder WithUrl(string rawUrl) { - return new MailFoldersRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.MailFolders.MailFoldersRequestBuilder(rawUrl, RequestAdapter); } /// /// The user's mail folders. Read-only. Nullable. @@ -219,14 +218,14 @@ public class MailFoldersRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MailFoldersRequestBuilderGetRequestConfiguration : RequestConfiguration + public class MailFoldersRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MailFoldersRequestBuilderPostRequestConfiguration : RequestConfiguration + public class MailFoldersRequestBuilderPostRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/Messages/Count/CountRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/Messages/Count/CountRequestBuilder.cs index 887995b15..0185ccf5e 100644 --- a/msgraph-mail/dotnet/Users/Item/Messages/Count/CountRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/Messages/Count/CountRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.Messages.Count { +namespace Graphdotnetv4.Users.Item.Messages.Count +{ /// /// Builds and executes requests for operations under \users\{user-id}\messages\$count /// - public class CountRequestBuilder : BaseRequestBuilder + public class CountRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -60,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -75,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.Messages.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.Messages.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the number of the resource @@ -111,7 +112,7 @@ public class CountRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs index af6d78dc6..ae3b5be67 100644 --- a/msgraph-mail/dotnet/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/Messages/Item/Attachments/AttachmentsRequestBuilder.cs @@ -11,31 +11,32 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.Messages.Item.Attachments { +namespace Graphdotnetv4.Users.Item.Messages.Item.Attachments +{ /// /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\attachments /// - public class AttachmentsRequestBuilder : BaseRequestBuilder + public class AttachmentsRequestBuilder : BaseRequestBuilder { /// The Count property - public CountRequestBuilder Count + public Graphdotnetv4.Users.Item.Messages.Item.Attachments.Count.CountRequestBuilder Count { - get => new CountRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.Messages.Item.Attachments.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Graphdotnetv4.users.item.messages.item.attachments.item collection /// The unique identifier of attachment - /// A - public AttachmentItemRequestBuilder this[string position] + /// A + public Graphdotnetv4.Users.Item.Messages.Item.Attachments.Item.AttachmentItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("attachment%2Did", position); - return new AttachmentItemRequestBuilder(urlTplParams, RequestAdapter); + return new Graphdotnetv4.Users.Item.Messages.Item.Attachments.Item.AttachmentItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +44,7 @@ public AttachmentsRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,67 +52,65 @@ public AttachmentsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Retrieve a list of attachment objects. - /// Find more info here + /// The fileAttachment and itemAttachment attachments for the message. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.AttachmentCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. - /// Find more info here + /// Create new navigation property to attachments for users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Attachment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Attachment body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Attachment body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Attachment body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Retrieve a list of attachment objects. + /// The fileAttachment and itemAttachment attachments for the message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -120,22 +119,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Use this API to create a new Attachment. An attachment can be one of the following types: All these types of attachment resources are derived from the attachmentresource. + /// Create new navigation property to attachments for users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Attachment body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Attachment body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Attachment body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Attachment body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/attachments", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -144,14 +143,14 @@ public RequestInformation ToPostRequestInformation(Attachment body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AttachmentsRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.Messages.Item.Attachments.AttachmentsRequestBuilder WithUrl(string rawUrl) { - return new AttachmentsRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.Messages.Item.Attachments.AttachmentsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Retrieve a list of attachment objects. + /// The fileAttachment and itemAttachment attachments for the message. /// public class AttachmentsRequestBuilderGetQueryParameters { @@ -203,14 +202,14 @@ public class AttachmentsRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class AttachmentsRequestBuilderGetRequestConfiguration : RequestConfiguration + public class AttachmentsRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class AttachmentsRequestBuilderPostRequestConfiguration : RequestConfiguration + public class AttachmentsRequestBuilderPostRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs index cb5f09164..a1cd71f09 100644 --- a/msgraph-mail/dotnet/Users/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/Messages/Item/Attachments/Count/CountRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.Messages.Item.Attachments.Count { +namespace Graphdotnetv4.Users.Item.Messages.Item.Attachments.Count +{ /// /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\attachments\$count /// - public class CountRequestBuilder : BaseRequestBuilder + public class CountRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -60,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -75,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.Messages.Item.Attachments.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.Messages.Item.Attachments.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the number of the resource @@ -101,7 +102,7 @@ public class CountRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs index 249377386..43112cccd 100644 --- a/msgraph-mail/dotnet/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/Messages/Item/Attachments/Item/AttachmentItemRequestBuilder.cs @@ -9,14 +9,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.Messages.Item.Attachments.Item { +namespace Graphdotnetv4.Users.Item.Messages.Item.Attachments.Item +{ /// /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\attachments\{attachment-id} /// - public class AttachmentItemRequestBuilder : BaseRequestBuilder + public class AttachmentItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -24,7 +25,7 @@ public AttachmentItemRequestBuilder(Dictionary pathParameters, I { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -37,7 +38,7 @@ public AttachmentItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapte /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -50,33 +51,32 @@ public async Task DeleteAsync(Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. - /// Find more info here + /// The fileAttachment and itemAttachment attachments for the message. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Attachment.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Delete navigation property attachments for users @@ -92,23 +92,23 @@ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/attachments/{attachment%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// The fileAttachment and itemAttachment attachments for the message. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -119,21 +119,21 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public AttachmentItemRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.Messages.Item.Attachments.Item.AttachmentItemRequestBuilder WithUrl(string rawUrl) { - return new AttachmentItemRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.Messages.Item.Attachments.Item.AttachmentItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class AttachmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + public class AttachmentItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Read the properties, relationships, or raw contents of an attachment that is attached to a user event, message, or group post. An attachment can be one of the following types: All these types of attachments are derived from the attachment resource. + /// The fileAttachment and itemAttachment attachments for the message. /// public class AttachmentItemRequestBuilderGetQueryParameters { @@ -162,7 +162,7 @@ public class AttachmentItemRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class AttachmentItemRequestBuilderGetRequestConfiguration : RequestConfiguration + public class AttachmentItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs index 7f71e6461..3b999e26d 100644 --- a/msgraph-mail/dotnet/Users/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/Messages/Item/Extensions/Count/CountRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.Messages.Item.Extensions.Count { +namespace Graphdotnetv4.Users.Item.Messages.Item.Extensions.Count +{ /// /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\extensions\$count /// - public class CountRequestBuilder : BaseRequestBuilder + public class CountRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public CountRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -36,20 +37,20 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -60,11 +61,11 @@ public CountRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : base /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -75,11 +76,11 @@ public RequestInformation ToGetRequestInformation(Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public CountRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.Messages.Item.Extensions.Count.CountRequestBuilder WithUrl(string rawUrl) { - return new CountRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.Messages.Item.Extensions.Count.CountRequestBuilder(rawUrl, RequestAdapter); } /// /// Get the number of the resource @@ -101,7 +102,7 @@ public class CountRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration + public class CountRequestBuilderGetRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs index 506911987..3de151617 100644 --- a/msgraph-mail/dotnet/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/Messages/Item/Extensions/ExtensionsRequestBuilder.cs @@ -11,31 +11,32 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.Messages.Item.Extensions { +namespace Graphdotnetv4.Users.Item.Messages.Item.Extensions +{ /// /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\extensions /// - public class ExtensionsRequestBuilder : BaseRequestBuilder + public class ExtensionsRequestBuilder : BaseRequestBuilder { /// The Count property - public CountRequestBuilder Count + public Graphdotnetv4.Users.Item.Messages.Item.Extensions.Count.CountRequestBuilder Count { - get => new CountRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.Messages.Item.Extensions.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Graphdotnetv4.users.item.messages.item.extensions.item collection /// The unique identifier of extension - /// A - public ExtensionItemRequestBuilder this[string position] + /// A + public Graphdotnetv4.Users.Item.Messages.Item.Extensions.Item.ExtensionItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("extension%2Did", position); - return new ExtensionItemRequestBuilder(urlTplParams, RequestAdapter); + return new Graphdotnetv4.Users.Item.Messages.Item.Extensions.Item.ExtensionItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +44,7 @@ public ExtensionsRequestBuilder(Dictionary pathParameters, IRequ { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -51,66 +52,65 @@ public ExtensionsRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.ExtensionCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. - /// Find more info here + /// Create new navigation property to extensions for users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Extension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Extension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -119,22 +119,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Create an open extension (openTypeExtension object) and add custom properties in a new or existing instance of a resource. You can create an open extension in a resource instance and store custom data to it all in the same operation, except for specific resources. The table in the Permissions section lists the resources that support open extensions. + /// Create new navigation property to extensions for users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/extensions", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -143,14 +143,14 @@ public RequestInformation ToPostRequestInformation(Extension body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ExtensionsRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.Messages.Item.Extensions.ExtensionsRequestBuilder WithUrl(string rawUrl) { - return new ExtensionsRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.Messages.Item.Extensions.ExtensionsRequestBuilder(rawUrl, RequestAdapter); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// public class ExtensionsRequestBuilderGetQueryParameters { @@ -208,14 +208,14 @@ public class ExtensionsRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionsRequestBuilderGetRequestConfiguration : RequestConfiguration + public class ExtensionsRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration + public class ExtensionsRequestBuilderPostRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs index 22b9e8c7d..13f1c32e6 100644 --- a/msgraph-mail/dotnet/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/Messages/Item/Extensions/Item/ExtensionItemRequestBuilder.cs @@ -9,14 +9,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.Messages.Item.Extensions.Item { +namespace Graphdotnetv4.Users.Item.Messages.Item.Extensions.Item +{ /// /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\extensions\{extension-id} /// - public class ExtensionItemRequestBuilder : BaseRequestBuilder + public class ExtensionItemRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -24,7 +25,7 @@ public ExtensionItemRequestBuilder(Dictionary pathParameters, IR { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -32,13 +33,12 @@ public ExtensionItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter { } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. - /// Find more info here + /// Delete navigation property extensions for users /// /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -51,61 +51,60 @@ public async Task DeleteAsync(Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. - /// Find more info here + /// The collection of open extensions defined for the message. Nullable. /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// Update the navigation property extensions in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.Extension body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Extension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.Extension body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Extension.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete an open extension (openTypeExtension object) from the specified instance of a resource. For the list of resources that support open extensions, see the table in the Permissions section. + /// Delete navigation property extensions for users /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -118,23 +117,23 @@ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/extensions/{extension%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -150,15 +149,15 @@ public RequestInformation ToGetRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Extension body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.Extension body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Extension body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.Extension body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}/extensions/{extension%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -167,21 +166,21 @@ public RequestInformation ToPatchRequestInformation(Extension body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ExtensionItemRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.Messages.Item.Extensions.Item.ExtensionItemRequestBuilder WithUrl(string rawUrl) { - return new ExtensionItemRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.Messages.Item.Extensions.Item.ExtensionItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + public class ExtensionItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// - /// Get an open extension (openTypeExtension object) identified by name or fully qualified name. The table in the Permissions section lists the resources that support open extensions. The following table lists the three scenarios where you can get an open extension from a supported resource instance. + /// The collection of open extensions defined for the message. Nullable. /// public class ExtensionItemRequestBuilderGetQueryParameters { @@ -210,14 +209,14 @@ public class ExtensionItemRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionItemRequestBuilderGetRequestConfiguration : RequestConfiguration + public class ExtensionItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + public class ExtensionItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/Messages/Item/MessageItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/Messages/Item/MessageItemRequestBuilder.cs index 548277de1..a34acd7b2 100644 --- a/msgraph-mail/dotnet/Users/Item/Messages/Item/MessageItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/Messages/Item/MessageItemRequestBuilder.cs @@ -12,29 +12,30 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.Messages.Item { +namespace Graphdotnetv4.Users.Item.Messages.Item +{ /// /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id} /// - public class MessageItemRequestBuilder : BaseRequestBuilder + public class MessageItemRequestBuilder : BaseRequestBuilder { /// The attachments property - public AttachmentsRequestBuilder Attachments + public Graphdotnetv4.Users.Item.Messages.Item.Attachments.AttachmentsRequestBuilder Attachments { - get => new AttachmentsRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.Messages.Item.Attachments.AttachmentsRequestBuilder(PathParameters, RequestAdapter); } /// The Content property - public ContentRequestBuilder Content + public Graphdotnetv4.Users.Item.Messages.Item.Value.ContentRequestBuilder Content { - get => new ContentRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.Messages.Item.Value.ContentRequestBuilder(PathParameters, RequestAdapter); } /// The extensions property - public ExtensionsRequestBuilder Extensions + public Graphdotnetv4.Users.Item.Messages.Item.Extensions.ExtensionsRequestBuilder Extensions { - get => new ExtensionsRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.Messages.Item.Extensions.ExtensionsRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -42,7 +43,7 @@ public MessageItemRequestBuilder(Dictionary pathParameters, IReq { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -50,13 +51,12 @@ public MessageItemRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) { } /// - /// Delete eventMessage. - /// Find more info here + /// Delete navigation property messages for users /// /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task DeleteAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -69,62 +69,60 @@ public async Task DeleteAsync(Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Update the properties of an eventMessage object. - /// Find more info here + /// Update the navigation property messages in users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PatchAsync(Message body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.Message body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PatchAsync(Message body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PatchAsync(Graphdotnetv4.Models.Message body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPatchRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Delete eventMessage. + /// Delete navigation property messages for users /// /// A /// Configuration for the request such as headers, query parameters, and middleware options. @@ -137,7 +135,7 @@ public RequestInformation ToDeleteRequestInformation(Action> requestConfiguration = default) { #endif - var requestInfo = new RequestInformation(Method.DELETE, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.DELETE, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); return requestInfo; @@ -149,11 +147,11 @@ public RequestInformation ToDeleteRequestInformation(ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -162,22 +160,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Update the properties of an eventMessage object. + /// Update the navigation property messages in users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPatchRequestInformation(Message body, Action>? requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.Message body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPatchRequestInformation(Message body, Action> requestConfiguration = default) + public RequestInformation ToPatchRequestInformation(Graphdotnetv4.Models.Message body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.PATCH, "{+baseurl}/users/{user%2Did}/messages/{message%2Did}", PathParameters); + var requestInfo = new RequestInformation(Method.PATCH, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -186,17 +184,17 @@ public RequestInformation ToPatchRequestInformation(Message body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MessageItemRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.Messages.Item.MessageItemRequestBuilder WithUrl(string rawUrl) { - return new MessageItemRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.Messages.Item.MessageItemRequestBuilder(rawUrl, RequestAdapter); } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration + public class MessageItemRequestBuilderDeleteRequestConfiguration : RequestConfiguration { } /// @@ -239,14 +237,14 @@ public class MessageItemRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageItemRequestBuilderGetRequestConfiguration : RequestConfiguration + public class MessageItemRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessageItemRequestBuilderPatchRequestConfiguration : RequestConfiguration + public class MessageItemRequestBuilderPatchRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs index 3827ab66b..f33eaf6da 100644 --- a/msgraph-mail/dotnet/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/Messages/Item/Value/ContentRequestBuilder.cs @@ -8,14 +8,15 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.Messages.Item.Value { +namespace Graphdotnetv4.Users.Item.Messages.Item.Value +{ /// /// Builds and executes requests for operations under \users\{user-id}\messages\{message-id}\$value /// - public class ContentRequestBuilder : BaseRequestBuilder + public class ContentRequestBuilder : BaseRequestBuilder { /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -23,7 +24,7 @@ public ContentRequestBuilder(Dictionary pathParameters, IRequest { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -32,25 +33,24 @@ public ContentRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : ba } /// /// Get media content for the navigation property messages from users - /// Find more info here /// /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -61,7 +61,7 @@ public async Task GetAsync(ActionBinary request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable public async Task PutAsync(Stream body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) @@ -75,7 +75,7 @@ public async Task PutAsync(Stream body, Action> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; return await RequestAdapter.SendPrimitiveAsync(requestInfo, errorMapping, cancellationToken).ConfigureAwait(false); } @@ -86,11 +86,11 @@ public async Task PutAsync(Stream body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -114,7 +114,7 @@ public RequestInformation ToPutRequestInformation(Stream body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public ContentRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.Messages.Item.Value.ContentRequestBuilder WithUrl(string rawUrl) { - return new ContentRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.Messages.Item.Value.ContentRequestBuilder(rawUrl, RequestAdapter); } /// /// Get media content for the navigation property messages from users @@ -149,14 +149,14 @@ public class ContentRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration + public class ContentRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration + public class ContentRequestBuilderPutRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/Messages/MessagesRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/Messages/MessagesRequestBuilder.cs index 412338549..4703b8c2a 100644 --- a/msgraph-mail/dotnet/Users/Item/Messages/MessagesRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/Messages/MessagesRequestBuilder.cs @@ -11,31 +11,32 @@ using System.Threading.Tasks; using System.Threading; using System; -namespace Graphdotnetv4.Users.Item.Messages { +namespace Graphdotnetv4.Users.Item.Messages +{ /// /// Builds and executes requests for operations under \users\{user-id}\messages /// - public class MessagesRequestBuilder : BaseRequestBuilder + public class MessagesRequestBuilder : BaseRequestBuilder { /// The Count property - public CountRequestBuilder Count + public Graphdotnetv4.Users.Item.Messages.Count.CountRequestBuilder Count { - get => new CountRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.Messages.Count.CountRequestBuilder(PathParameters, RequestAdapter); } /// Gets an item from the Graphdotnetv4.users.item.messages.item collection /// The unique identifier of message - /// A - public MessageItemRequestBuilder this[string position] + /// A + public Graphdotnetv4.Users.Item.Messages.Item.MessageItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("message%2Did", position); - return new MessageItemRequestBuilder(urlTplParams, RequestAdapter); + return new Graphdotnetv4.Users.Item.Messages.Item.MessageItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -43,7 +44,7 @@ public MessagesRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. @@ -52,53 +53,51 @@ public MessagesRequestBuilder(string rawUrl, IRequestAdapter requestAdapter) : b } /// /// The messages in a mailbox or folder. Read-only. Nullable. - /// Find more info here /// - /// A + /// A /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task GetAsync(Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif var requestInfo = ToGetRequestInformation(requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.MessageCollectionResponse.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// - /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. - /// Find more info here + /// Create new navigation property to messages for users /// - /// A + /// A /// The request body /// Cancellation token to use when cancelling requests /// Configuration for the request such as headers, query parameters, and middleware options. - /// When receiving a 4XX or 5XX status code + /// When receiving a 4XX or 5XX status code #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public async Task PostAsync(Message body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Message body, Action>? requestConfiguration = default, CancellationToken cancellationToken = default) { #nullable restore #else - public async Task PostAsync(Message body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) + public async Task PostAsync(Graphdotnetv4.Models.Message body, Action> requestConfiguration = default, CancellationToken cancellationToken = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); var requestInfo = ToPostRequestInformation(body, requestConfiguration); var errorMapping = new Dictionary> { - {"XXX", ODataError.CreateFromDiscriminatorValue}, + { "XXX", Graphdotnetv4.Models.ODataErrors.ODataError.CreateFromDiscriminatorValue }, }; - return await RequestAdapter.SendAsync(requestInfo, Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); + return await RequestAdapter.SendAsync(requestInfo, Graphdotnetv4.Models.Message.CreateFromDiscriminatorValue, errorMapping, cancellationToken).ConfigureAwait(false); } /// /// The messages in a mailbox or folder. Read-only. Nullable. @@ -107,11 +106,11 @@ public async Task PostAsync(Message body, ActionConfiguration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) + public RequestInformation ToGetRequestInformation(Action> requestConfiguration = default) { #endif var requestInfo = new RequestInformation(Method.GET, UrlTemplate, PathParameters); @@ -120,22 +119,22 @@ public RequestInformation ToGetRequestInformation(Action - /// Create a draft of a new message in either JSON or MIME format. When using JSON format, you can:- Include an attachment to the message.- Update the draft later to add content to the body or change other message properties. When using MIME format:- Provide the applicable Internet message headers and the MIME content, all encoded in base64 format in the request body.- /* Add any attachments and S/MIME properties to the MIME content. By default, this operation saves the draft in the Drafts folder. Send the draft message in a subsequent operation. Alternatively, send a new message in a single operation, or create a draft to forward, reply and reply-all to an existing message. + /// Create new navigation property to messages for users /// /// A /// The request body /// Configuration for the request such as headers, query parameters, and middleware options. #if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER #nullable enable - public RequestInformation ToPostRequestInformation(Message body, Action>? requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Message body, Action>? requestConfiguration = default) { #nullable restore #else - public RequestInformation ToPostRequestInformation(Message body, Action> requestConfiguration = default) + public RequestInformation ToPostRequestInformation(Graphdotnetv4.Models.Message body, Action> requestConfiguration = default) { #endif _ = body ?? throw new ArgumentNullException(nameof(body)); - var requestInfo = new RequestInformation(Method.POST, "{+baseurl}/users/{user%2Did}/messages", PathParameters); + var requestInfo = new RequestInformation(Method.POST, UrlTemplate, PathParameters); requestInfo.Configure(requestConfiguration); requestInfo.Headers.TryAdd("Accept", "application/json"); requestInfo.SetContentFromParsable(RequestAdapter, "application/json", body); @@ -144,11 +143,11 @@ public RequestInformation ToPostRequestInformation(Message body, Action /// Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored. /// - /// A + /// A /// The raw URL to use for the request builder. - public MessagesRequestBuilder WithUrl(string rawUrl) + public Graphdotnetv4.Users.Item.Messages.MessagesRequestBuilder WithUrl(string rawUrl) { - return new MessagesRequestBuilder(rawUrl, RequestAdapter); + return new Graphdotnetv4.Users.Item.Messages.MessagesRequestBuilder(rawUrl, RequestAdapter); } /// /// The messages in a mailbox or folder. Read-only. Nullable. @@ -229,14 +228,14 @@ public class MessagesRequestBuilderGetQueryParameters /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessagesRequestBuilderGetRequestConfiguration : RequestConfiguration + public class MessagesRequestBuilderGetRequestConfiguration : RequestConfiguration { } /// /// Configuration for the request such as headers, query parameters, and middleware options. /// [Obsolete("This class is deprecated. Please use the generic RequestConfiguration class generated by the generator.")] - public class MessagesRequestBuilderPostRequestConfiguration : RequestConfiguration + public class MessagesRequestBuilderPostRequestConfiguration : RequestConfiguration { } } diff --git a/msgraph-mail/dotnet/Users/Item/UserItemRequestBuilder.cs b/msgraph-mail/dotnet/Users/Item/UserItemRequestBuilder.cs index 4ddfa3793..941789793 100644 --- a/msgraph-mail/dotnet/Users/Item/UserItemRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/Item/UserItemRequestBuilder.cs @@ -8,29 +8,30 @@ using System.Linq; using System.Threading.Tasks; using System; -namespace Graphdotnetv4.Users.Item { +namespace Graphdotnetv4.Users.Item +{ /// /// Builds and executes requests for operations under \users\{user-id} /// - public class UserItemRequestBuilder : BaseRequestBuilder + public class UserItemRequestBuilder : BaseRequestBuilder { /// The inferenceClassification property - public InferenceClassificationRequestBuilder InferenceClassification + public Graphdotnetv4.Users.Item.InferenceClassification.InferenceClassificationRequestBuilder InferenceClassification { - get => new InferenceClassificationRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.InferenceClassification.InferenceClassificationRequestBuilder(PathParameters, RequestAdapter); } /// The mailFolders property - public MailFoldersRequestBuilder MailFolders + public Graphdotnetv4.Users.Item.MailFolders.MailFoldersRequestBuilder MailFolders { - get => new MailFoldersRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.MailFolders.MailFoldersRequestBuilder(PathParameters, RequestAdapter); } /// The messages property - public MessagesRequestBuilder Messages + public Graphdotnetv4.Users.Item.Messages.MessagesRequestBuilder Messages { - get => new MessagesRequestBuilder(PathParameters, RequestAdapter); + get => new Graphdotnetv4.Users.Item.Messages.MessagesRequestBuilder(PathParameters, RequestAdapter); } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -38,7 +39,7 @@ public UserItemRequestBuilder(Dictionary pathParameters, IReques { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs b/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs index 64ae3c2d0..e8f56a99e 100644 --- a/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs +++ b/msgraph-mail/dotnet/Users/UsersRequestBuilder.cs @@ -6,26 +6,27 @@ using System.Linq; using System.Threading.Tasks; using System; -namespace Graphdotnetv4.Users { +namespace Graphdotnetv4.Users +{ /// /// Builds and executes requests for operations under \users /// - public class UsersRequestBuilder : BaseRequestBuilder + public class UsersRequestBuilder : BaseRequestBuilder { /// Gets an item from the Graphdotnetv4.users.item collection /// The unique identifier of user - /// A - public UserItemRequestBuilder this[string position] + /// A + public Graphdotnetv4.Users.Item.UserItemRequestBuilder this[string position] { get { var urlTplParams = new Dictionary(PathParameters); urlTplParams.Add("user%2Did", position); - return new UserItemRequestBuilder(urlTplParams, RequestAdapter); + return new Graphdotnetv4.Users.Item.UserItemRequestBuilder(urlTplParams, RequestAdapter); } } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// Path parameters for the request /// The request adapter to use to execute the requests. @@ -33,7 +34,7 @@ public UsersRequestBuilder(Dictionary pathParameters, IRequestAd { } /// - /// Instantiates a new and sets the default values. + /// Instantiates a new and sets the default values. /// /// The raw URL to use for the request builder. /// The request adapter to use to execute the requests. diff --git a/msgraph-mail/dotnet/kiota-lock.json b/msgraph-mail/dotnet/kiota-lock.json index 585b56da3..5c1d89d69 100644 --- a/msgraph-mail/dotnet/kiota-lock.json +++ b/msgraph-mail/dotnet/kiota-lock.json @@ -1,8 +1,8 @@ { - "descriptionHash": "C6A038799B2E71EF4F15301826D166756B41A8B726E440596C0AF2A9BB2F9310922A218355D8DE4DCE81054A972A7D2C513009C7613616379418507BA312D215", + "descriptionHash": "15B53EEA450FFEA381255C759A9849B94369AD6D91DCAAA7FFAE2BD687679A765FAAF7983F39DDBFF137CEB8C2652619212CE813C8BAB3E4265638626A99127E", "descriptionLocation": "https://raw.githubusercontent.com/microsoftgraph/msgraph-sdk-powershell/dev/openApiDocs/v1.0/Mail.yml", "lockFileVersion": "1.0.0", - "kiotaVersion": "1.13.0", + "kiotaVersion": "1.15.0", "clientClassName": "ApiClient", "clientNamespaceName": "Graphdotnetv4", "language": "CSharp",