Skip to content

Commit

Permalink
Rebase
Browse files Browse the repository at this point in the history
  • Loading branch information
andrueastman committed Jan 11, 2023
1 parent 7fdbc9e commit 4855fb6
Show file tree
Hide file tree
Showing 80 changed files with 2,136 additions and 1 deletion.
8 changes: 8 additions & 0 deletions msgraph-mail/dotnet/Models/Attachment.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,21 @@
namespace Graphdotnetv4.Models {
public class Attachment : Entity, IParsable {
/// <summary>The MIME type.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? ContentType { get; set; }
#else
public string ContentType { get; set; }
#endif
/// <summary>true if the attachment is an inline attachment; otherwise, false.</summary>
public bool? IsInline { get; set; }
/// <summary>The Timestamp type represents date and time information using ISO 8601 format and is always in UTC time. For example, midnight UTC on Jan 1, 2014 is 2014-01-01T00:00:00Z</summary>
public DateTimeOffset? LastModifiedDateTime { get; set; }
/// <summary>The attachment&apos;s file name.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? Name { get; set; }
#else
public string Name { get; set; }
#endif
/// <summary>The length of the attachment in bytes.</summary>
public int? Size { get; set; }
/// <summary>
Expand Down
8 changes: 8 additions & 0 deletions msgraph-mail/dotnet/Models/AttachmentCollectionResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ public class AttachmentCollectionResponse : IAdditionalDataHolder, IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>The OdataNextLink property</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? OdataNextLink { get; set; }
#else
public string OdataNextLink { get; set; }
#endif
/// <summary>The value property</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public List<Attachment>? Value { get; set; }
#else
public List<Attachment> Value { get; set; }
#endif
/// <summary>
/// Instantiates a new AttachmentCollectionResponse and sets the default values.
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions msgraph-mail/dotnet/Models/DateTimeTimeZone.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ public class DateTimeTimeZone : IAdditionalDataHolder, IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>A single point of time in a combined date and time representation ({date}T{time}; for example, 2017-08-29T04:00:00.0000000).</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? DateTime { get; set; }
#else
public string DateTime { get; set; }
#endif
/// <summary>Represents a time zone, for example, &apos;Pacific Standard Time&apos;. See below for more possible values.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? TimeZone { get; set; }
#else
public string TimeZone { get; set; }
#endif
/// <summary>
/// Instantiates a new dateTimeTimeZone and sets the default values.
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions msgraph-mail/dotnet/Models/EmailAddress.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ public class EmailAddress : IAdditionalDataHolder, IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>The email address of the person or entity.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? Address { get; set; }
#else
public string Address { get; set; }
#endif
/// <summary>The display name of the person or entity.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? Name { get; set; }
#else
public string Name { get; set; }
#endif
/// <summary>
/// Instantiates a new emailAddress and sets the default values.
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions msgraph-mail/dotnet/Models/Entity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ public class Entity : IAdditionalDataHolder, IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>The unique idenfier for an entity. Read-only.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? Id { get; set; }
#else
public string Id { get; set; }
#endif
/// <summary>
/// Instantiates a new entity and sets the default values.
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions msgraph-mail/dotnet/Models/ExtensionCollectionResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ public class ExtensionCollectionResponse : IAdditionalDataHolder, IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>The OdataNextLink property</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? OdataNextLink { get; set; }
#else
public string OdataNextLink { get; set; }
#endif
/// <summary>The value property</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public List<Extension>? Value { get; set; }
#else
public List<Extension> Value { get; set; }
#endif
/// <summary>
/// Instantiates a new ExtensionCollectionResponse and sets the default values.
/// </summary>
Expand Down
24 changes: 24 additions & 0 deletions msgraph-mail/dotnet/Models/FollowupFlag.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,25 @@ public class FollowupFlag : IAdditionalDataHolder, IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>The completedDateTime property</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public DateTimeTimeZone? CompletedDateTime { get; set; }
#else
public DateTimeTimeZone CompletedDateTime { get; set; }
#endif
/// <summary>The dueDateTime property</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public DateTimeTimeZone? DueDateTime { get; set; }
#else
public DateTimeTimeZone DueDateTime { get; set; }
#endif
/// <summary>The flagStatus property</summary>
public FollowupFlagStatus? FlagStatus { get; set; }
/// <summary>The startDateTime property</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public DateTimeTimeZone? StartDateTime { get; set; }
#else
public DateTimeTimeZone StartDateTime { get; set; }
#endif
/// <summary>
/// Instantiates a new followupFlag and sets the default values.
/// </summary>
Expand Down Expand Up @@ -46,10 +58,22 @@ public IDictionary<string, Action<IParseNode>> GetFieldDeserializers() {
/// <param name="writer">Serialization writer to use to serialize this model</param>
public void Serialize(ISerializationWriter writer) {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
writer.WriteObjectValue<DateTimeTimeZone?>("completedDateTime", CompletedDateTime);
#else
writer.WriteObjectValue<DateTimeTimeZone>("completedDateTime", CompletedDateTime);
#endif
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
writer.WriteObjectValue<DateTimeTimeZone?>("dueDateTime", DueDateTime);
#else
writer.WriteObjectValue<DateTimeTimeZone>("dueDateTime", DueDateTime);
#endif
writer.WriteEnumValue<FollowupFlagStatus>("flagStatus", FlagStatus);
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
writer.WriteObjectValue<DateTimeTimeZone?>("startDateTime", StartDateTime);
#else
writer.WriteObjectValue<DateTimeTimeZone>("startDateTime", StartDateTime);
#endif
writer.WriteAdditionalData(AdditionalData);
}
}
Expand Down
4 changes: 4 additions & 0 deletions msgraph-mail/dotnet/Models/InferenceClassification.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
namespace Graphdotnetv4.Models {
public class InferenceClassification : Entity, IParsable {
/// <summary>A set of overrides for a user to always classify messages from specific senders in certain ways: focused, or other. Read-only. Nullable.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public List<InferenceClassificationOverride>? Overrides { get; set; }
#else
public List<InferenceClassificationOverride> Overrides { get; set; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions msgraph-mail/dotnet/Models/InferenceClassificationOverride.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ public class InferenceClassificationOverride : Entity, IParsable {
/// <summary>The classifyAs property</summary>
public InferenceClassificationType? ClassifyAs { get; set; }
/// <summary>The senderEmailAddress property</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public EmailAddress? SenderEmailAddress { get; set; }
#else
public EmailAddress SenderEmailAddress { get; set; }
#endif
/// <summary>
/// Creates a new instance of the appropriate class based on discriminator value
/// </summary>
Expand All @@ -34,7 +38,11 @@ public class InferenceClassificationOverride : Entity, IParsable {
_ = writer ?? throw new ArgumentNullException(nameof(writer));
base.Serialize(writer);
writer.WriteEnumValue<InferenceClassificationType>("classifyAs", ClassifyAs);
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
writer.WriteObjectValue<EmailAddress?>("senderEmailAddress", SenderEmailAddress);
#else
writer.WriteObjectValue<EmailAddress>("senderEmailAddress", SenderEmailAddress);
#endif
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ public class InferenceClassificationOverrideCollectionResponse : IAdditionalData
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>The OdataNextLink property</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? OdataNextLink { get; set; }
#else
public string OdataNextLink { get; set; }
#endif
/// <summary>The value property</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public List<InferenceClassificationOverride>? Value { get; set; }
#else
public List<InferenceClassificationOverride> Value { get; set; }
#endif
/// <summary>
/// Instantiates a new InferenceClassificationOverrideCollectionResponse and sets the default values.
/// </summary>
Expand Down
8 changes: 8 additions & 0 deletions msgraph-mail/dotnet/Models/InternetMessageHeader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ public class InternetMessageHeader : IAdditionalDataHolder, IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>Represents the key in a key-value pair.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? Name { get; set; }
#else
public string Name { get; set; }
#endif
/// <summary>The value in a key-value pair.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? Value { get; set; }
#else
public string Value { get; set; }
#endif
/// <summary>
/// Instantiates a new internetMessageHeader and sets the default values.
/// </summary>
Expand Down
4 changes: 4 additions & 0 deletions msgraph-mail/dotnet/Models/ItemBody.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,11 @@ public class ItemBody : IAdditionalDataHolder, IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>The content of the item.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? Content { get; set; }
#else
public string Content { get; set; }
#endif
/// <summary>The contentType property</summary>
public BodyType? ContentType { get; set; }
/// <summary>
Expand Down
28 changes: 28 additions & 0 deletions msgraph-mail/dotnet/Models/MailFolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,49 @@ public class MailFolder : Entity, IParsable {
/// <summary>The number of immediate child mailFolders in the current mailFolder.</summary>
public int? ChildFolderCount { get; set; }
/// <summary>The collection of child folders in the mailFolder.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public List<MailFolder>? ChildFolders { get; set; }
#else
public List<MailFolder> ChildFolders { get; set; }
#endif
/// <summary>The mailFolder&apos;s display name.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? DisplayName { get; set; }
#else
public string DisplayName { get; set; }
#endif
/// <summary>Indicates whether the mailFolder is hidden. This property can be set only when creating the folder. Find more information in Hidden mail folders.</summary>
public bool? IsHidden { get; set; }
/// <summary>The collection of rules that apply to the user&apos;s Inbox folder.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public List<MessageRule>? MessageRules { get; set; }
#else
public List<MessageRule> MessageRules { get; set; }
#endif
/// <summary>The collection of messages in the mailFolder.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public List<Message>? Messages { get; set; }
#else
public List<Message> Messages { get; set; }
#endif
/// <summary>The collection of multi-value extended properties defined for the mailFolder. Read-only. Nullable.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public List<MultiValueLegacyExtendedProperty>? MultiValueExtendedProperties { get; set; }
#else
public List<MultiValueLegacyExtendedProperty> MultiValueExtendedProperties { get; set; }
#endif
/// <summary>The unique identifier for the mailFolder&apos;s parent mailFolder.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? ParentFolderId { get; set; }
#else
public string ParentFolderId { get; set; }
#endif
/// <summary>The collection of single-value extended properties defined for the mailFolder. Read-only. Nullable.</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public List<SingleValueLegacyExtendedProperty>? SingleValueExtendedProperties { get; set; }
#else
public List<SingleValueLegacyExtendedProperty> SingleValueExtendedProperties { get; set; }
#endif
/// <summary>The number of items in the mailFolder.</summary>
public int? TotalItemCount { get; set; }
/// <summary>The number of items in the mailFolder marked as unread.</summary>
Expand Down
8 changes: 8 additions & 0 deletions msgraph-mail/dotnet/Models/MailFolderCollectionResponse.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,17 @@ public class MailFolderCollectionResponse : IAdditionalDataHolder, IParsable {
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
public IDictionary<string, object> AdditionalData { get; set; }
/// <summary>The OdataNextLink property</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public string? OdataNextLink { get; set; }
#else
public string OdataNextLink { get; set; }
#endif
/// <summary>The value property</summary>
#if NETSTANDARD2_1_OR_GREATER || NET6_0_OR_GREATER
public List<MailFolder>? Value { get; set; }
#else
public List<MailFolder> Value { get; set; }
#endif
/// <summary>
/// Instantiates a new MailFolderCollectionResponse and sets the default values.
/// </summary>
Expand Down
Loading

0 comments on commit 4855fb6

Please sign in to comment.