|
| 1 | +// ------------------------------------------------------------------------------ |
| 2 | +// Copyright (c) Microsoft Corporation. All Rights Reserved. Licensed under the MIT License. See License in the project root for license information. |
| 3 | +// ------------------------------------------------------------------------------ |
| 4 | + |
| 5 | +// **NOTE** This file was generated by a tool and any changes will be overwritten. |
| 6 | +// <auto-generated/> |
| 7 | + |
| 8 | +// Template Source: Templates\CSharp\Model\ComplexType.cs.tt |
| 9 | + |
| 10 | +namespace Microsoft.Graph |
| 11 | +{ |
| 12 | + using System; |
| 13 | + using System.Collections.Generic; |
| 14 | + using System.IO; |
| 15 | + using System.Runtime.Serialization; |
| 16 | + using Newtonsoft.Json; |
| 17 | + |
| 18 | + /// <summary> |
| 19 | + /// The type AttachmentItem. |
| 20 | + /// </summary> |
| 21 | + [JsonObject(MemberSerialization = MemberSerialization.OptIn)] |
| 22 | + [JsonConverter(typeof(DerivedTypeConverter))] |
| 23 | + public partial class AttachmentItem |
| 24 | + { |
| 25 | + /// <summary> |
| 26 | + /// Initializes a new instance of the <see cref="AttachmentItem"/> class. |
| 27 | + /// </summary> |
| 28 | + public AttachmentItem() |
| 29 | + { |
| 30 | + this.ODataType = "microsoft.graph.attachmentItem"; |
| 31 | + } |
| 32 | + |
| 33 | + /// <summary> |
| 34 | + /// Gets or sets attachmentType. |
| 35 | + /// The type of attachment. Possible values are: file, item, reference. Required. |
| 36 | + /// </summary> |
| 37 | + [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "attachmentType", Required = Newtonsoft.Json.Required.Default)] |
| 38 | + public AttachmentType? AttachmentType { get; set; } |
| 39 | + |
| 40 | + /// <summary> |
| 41 | + /// Gets or sets name. |
| 42 | + /// The display name of the attachment. This can be a descriptive string and does not have to be the actual file name. Required. |
| 43 | + /// </summary> |
| 44 | + [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "name", Required = Newtonsoft.Json.Required.Default)] |
| 45 | + public string Name { get; set; } |
| 46 | + |
| 47 | + /// <summary> |
| 48 | + /// Gets or sets size. |
| 49 | + /// The length of the attachment in bytes. Required. |
| 50 | + /// </summary> |
| 51 | + [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "size", Required = Newtonsoft.Json.Required.Default)] |
| 52 | + public Int64? Size { get; set; } |
| 53 | + |
| 54 | + /// <summary> |
| 55 | + /// Gets or sets contentType. |
| 56 | + /// The nature of the data in the attachment. Optional. |
| 57 | + /// </summary> |
| 58 | + [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "contentType", Required = Newtonsoft.Json.Required.Default)] |
| 59 | + public string ContentType { get; set; } |
| 60 | + |
| 61 | + /// <summary> |
| 62 | + /// Gets or sets isInline. |
| 63 | + /// true if the attachment is an inline attachment; otherwise, false. Optional. |
| 64 | + /// </summary> |
| 65 | + [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "isInline", Required = Newtonsoft.Json.Required.Default)] |
| 66 | + public bool? IsInline { get; set; } |
| 67 | + |
| 68 | + /// <summary> |
| 69 | + /// Gets or sets additional data. |
| 70 | + /// </summary> |
| 71 | + [JsonExtensionData(ReadData = true)] |
| 72 | + public IDictionary<string, object> AdditionalData { get; set; } |
| 73 | + |
| 74 | + /// <summary> |
| 75 | + /// Gets or sets @odata.type. |
| 76 | + /// </summary> |
| 77 | + [JsonProperty(NullValueHandling = NullValueHandling.Ignore, PropertyName = "@odata.type", Required = Newtonsoft.Json.Required.Default)] |
| 78 | + public string ODataType { get; set; } |
| 79 | + |
| 80 | + } |
| 81 | +} |
0 commit comments