|
| 1 | +// <auto-generated/> |
| 2 | +#pragma warning disable CS0618 |
| 3 | +using Microsoft.Agents.M365Copilot.Beta.Models; |
| 4 | +using Microsoft.Kiota.Abstractions.Extensions; |
| 5 | +using Microsoft.Kiota.Abstractions.Serialization; |
| 6 | +using Microsoft.Kiota.Abstractions.Store; |
| 7 | +using System.Collections.Generic; |
| 8 | +using System.IO; |
| 9 | +using System; |
| 10 | +namespace Microsoft.Agents.M365Copilot.Beta.Copilot.Communications.RealtimeActivityFeed.MultiActivitySubscriptions.Item.GetArtifacts |
| 11 | +{ |
| 12 | + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] |
| 13 | + #pragma warning disable CS1591 |
| 14 | + public partial class GetArtifactsPostRequestBody : IAdditionalDataHolder, IBackedModel, IParsable |
| 15 | + #pragma warning restore CS1591 |
| 16 | + { |
| 17 | + /// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary> |
| 18 | + public IDictionary<string, object> AdditionalData |
| 19 | + { |
| 20 | + get { return BackingStore.Get<IDictionary<string, object>>("AdditionalData") ?? new Dictionary<string, object>(); } |
| 21 | + set { BackingStore.Set("AdditionalData", value); } |
| 22 | + } |
| 23 | + /// <summary>The artifactTypes property</summary> |
| 24 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 25 | +#nullable enable |
| 26 | + public List<global::Microsoft.Agents.M365Copilot.Beta.Models.ArtifactType?>? ArtifactTypes |
| 27 | + { |
| 28 | + get { return BackingStore?.Get<List<global::Microsoft.Agents.M365Copilot.Beta.Models.ArtifactType?>?>("artifactTypes"); } |
| 29 | + set { BackingStore?.Set("artifactTypes", value); } |
| 30 | + } |
| 31 | +#nullable restore |
| 32 | +#else |
| 33 | + public List<global::Microsoft.Agents.M365Copilot.Beta.Models.ArtifactType?> ArtifactTypes |
| 34 | + { |
| 35 | + get { return BackingStore?.Get<List<global::Microsoft.Agents.M365Copilot.Beta.Models.ArtifactType?>>("artifactTypes"); } |
| 36 | + set { BackingStore?.Set("artifactTypes", value); } |
| 37 | + } |
| 38 | +#endif |
| 39 | + /// <summary>Stores model information.</summary> |
| 40 | + public IBackingStore BackingStore { get; private set; } |
| 41 | + /// <summary>The maxResults property</summary> |
| 42 | + public int? MaxResults |
| 43 | + { |
| 44 | + get { return BackingStore?.Get<int?>("maxResults"); } |
| 45 | + set { BackingStore?.Set("maxResults", value); } |
| 46 | + } |
| 47 | + /// <summary>The rangeInSec property</summary> |
| 48 | + public int? RangeInSec |
| 49 | + { |
| 50 | + get { return BackingStore?.Get<int?>("rangeInSec"); } |
| 51 | + set { BackingStore?.Set("rangeInSec", value); } |
| 52 | + } |
| 53 | + /// <summary>The seedDateTime property</summary> |
| 54 | + public DateTimeOffset? SeedDateTime |
| 55 | + { |
| 56 | + get { return BackingStore?.Get<DateTimeOffset?>("seedDateTime"); } |
| 57 | + set { BackingStore?.Set("seedDateTime", value); } |
| 58 | + } |
| 59 | + /// <summary>The userId property</summary> |
| 60 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 61 | +#nullable enable |
| 62 | + public string? UserId |
| 63 | + { |
| 64 | + get { return BackingStore?.Get<string?>("userId"); } |
| 65 | + set { BackingStore?.Set("userId", value); } |
| 66 | + } |
| 67 | +#nullable restore |
| 68 | +#else |
| 69 | + public string UserId |
| 70 | + { |
| 71 | + get { return BackingStore?.Get<string>("userId"); } |
| 72 | + set { BackingStore?.Set("userId", value); } |
| 73 | + } |
| 74 | +#endif |
| 75 | + /// <summary> |
| 76 | + /// Instantiates a new <see cref="global::Microsoft.Agents.M365Copilot.Beta.Copilot.Communications.RealtimeActivityFeed.MultiActivitySubscriptions.Item.GetArtifacts.GetArtifactsPostRequestBody"/> and sets the default values. |
| 77 | + /// </summary> |
| 78 | + public GetArtifactsPostRequestBody() |
| 79 | + { |
| 80 | + BackingStore = BackingStoreFactorySingleton.Instance.CreateBackingStore(); |
| 81 | + AdditionalData = new Dictionary<string, object>(); |
| 82 | + } |
| 83 | + /// <summary> |
| 84 | + /// Creates a new instance of the appropriate class based on discriminator value |
| 85 | + /// </summary> |
| 86 | + /// <returns>A <see cref="global::Microsoft.Agents.M365Copilot.Beta.Copilot.Communications.RealtimeActivityFeed.MultiActivitySubscriptions.Item.GetArtifacts.GetArtifactsPostRequestBody"/></returns> |
| 87 | + /// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> |
| 88 | + public static global::Microsoft.Agents.M365Copilot.Beta.Copilot.Communications.RealtimeActivityFeed.MultiActivitySubscriptions.Item.GetArtifacts.GetArtifactsPostRequestBody CreateFromDiscriminatorValue(IParseNode parseNode) |
| 89 | + { |
| 90 | + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); |
| 91 | + return new global::Microsoft.Agents.M365Copilot.Beta.Copilot.Communications.RealtimeActivityFeed.MultiActivitySubscriptions.Item.GetArtifacts.GetArtifactsPostRequestBody(); |
| 92 | + } |
| 93 | + /// <summary> |
| 94 | + /// The deserialization information for the current model |
| 95 | + /// </summary> |
| 96 | + /// <returns>A IDictionary<string, Action<IParseNode>></returns> |
| 97 | + public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() |
| 98 | + { |
| 99 | + return new Dictionary<string, Action<IParseNode>> |
| 100 | + { |
| 101 | + { "artifactTypes", n => { ArtifactTypes = n.GetCollectionOfEnumValues<global::Microsoft.Agents.M365Copilot.Beta.Models.ArtifactType>()?.AsList(); } }, |
| 102 | + { "maxResults", n => { MaxResults = n.GetIntValue(); } }, |
| 103 | + { "rangeInSec", n => { RangeInSec = n.GetIntValue(); } }, |
| 104 | + { "seedDateTime", n => { SeedDateTime = n.GetDateTimeOffsetValue(); } }, |
| 105 | + { "userId", n => { UserId = n.GetStringValue(); } }, |
| 106 | + }; |
| 107 | + } |
| 108 | + /// <summary> |
| 109 | + /// Serializes information the current object |
| 110 | + /// </summary> |
| 111 | + /// <param name="writer">Serialization writer to use to serialize this model</param> |
| 112 | + public virtual void Serialize(ISerializationWriter writer) |
| 113 | + { |
| 114 | + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); |
| 115 | + writer.WriteCollectionOfEnumValues<global::Microsoft.Agents.M365Copilot.Beta.Models.ArtifactType>("artifactTypes", ArtifactTypes); |
| 116 | + writer.WriteIntValue("maxResults", MaxResults); |
| 117 | + writer.WriteIntValue("rangeInSec", RangeInSec); |
| 118 | + writer.WriteDateTimeOffsetValue("seedDateTime", SeedDateTime); |
| 119 | + writer.WriteStringValue("userId", UserId); |
| 120 | + writer.WriteAdditionalData(AdditionalData); |
| 121 | + } |
| 122 | + } |
| 123 | +} |
| 124 | +#pragma warning restore CS0618 |
0 commit comments