|
| 1 | +// <auto-generated/> |
| 2 | +#pragma warning disable CS0618 |
| 3 | +using Microsoft.Kiota.Abstractions.Extensions; |
| 4 | +using Microsoft.Kiota.Abstractions.Serialization; |
| 5 | +using System.Collections.Generic; |
| 6 | +using System.IO; |
| 7 | +using System; |
| 8 | +namespace RoxyApi.Languages.FieldLabels |
| 9 | +{ |
| 10 | + [global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")] |
| 11 | + #pragma warning disable CS1591 |
| 12 | + public partial class FieldLabelsGetResponse : IAdditionalDataHolder, IParsable |
| 13 | + #pragma warning restore CS1591 |
| 14 | + { |
| 15 | + /// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary> |
| 16 | + public IDictionary<string, object> AdditionalData { get; set; } |
| 17 | + /// <summary>Label per selectable option, keyed `{fieldName}.{value}` so the same value can read differently under different fields. For example `nodeType.mean` and `houseSystem.whole-sign`. Split on the first dot: the field name is before it, and everything after it is the value you send back unchanged.</summary> |
| 18 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 19 | +#nullable enable |
| 20 | + public global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_enums? Enums { get; set; } |
| 21 | +#nullable restore |
| 22 | +#else |
| 23 | + public global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_enums Enums { get; set; } |
| 24 | +#endif |
| 25 | + /// <summary>Label per request field or parameter name. Keys are the wire names used in request bodies and query parameters, such as `birthDate`, `timezone` or `houseSystem`.</summary> |
| 26 | +#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER |
| 27 | +#nullable enable |
| 28 | + public global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_fields? Fields { get; set; } |
| 29 | +#nullable restore |
| 30 | +#else |
| 31 | + public global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_fields Fields { get; set; } |
| 32 | +#endif |
| 33 | + /// <summary>Language these labels resolved to. Echoes the `lang` query parameter, or `en` when it is omitted.</summary> |
| 34 | + public global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_lang? Lang { get; set; } |
| 35 | + /// <summary> |
| 36 | + /// Instantiates a new <see cref="global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse"/> and sets the default values. |
| 37 | + /// </summary> |
| 38 | + public FieldLabelsGetResponse() |
| 39 | + { |
| 40 | + AdditionalData = new Dictionary<string, object>(); |
| 41 | + } |
| 42 | + /// <summary> |
| 43 | + /// Creates a new instance of the appropriate class based on discriminator value |
| 44 | + /// </summary> |
| 45 | + /// <returns>A <see cref="global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse"/></returns> |
| 46 | + /// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param> |
| 47 | + public static global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse CreateFromDiscriminatorValue(IParseNode parseNode) |
| 48 | + { |
| 49 | + if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode)); |
| 50 | + return new global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse(); |
| 51 | + } |
| 52 | + /// <summary> |
| 53 | + /// The deserialization information for the current model |
| 54 | + /// </summary> |
| 55 | + /// <returns>A IDictionary<string, Action<IParseNode>></returns> |
| 56 | + public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers() |
| 57 | + { |
| 58 | + return new Dictionary<string, Action<IParseNode>> |
| 59 | + { |
| 60 | + { "enums", n => { Enums = n.GetObjectValue<global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_enums>(global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_enums.CreateFromDiscriminatorValue); } }, |
| 61 | + { "fields", n => { Fields = n.GetObjectValue<global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_fields>(global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_fields.CreateFromDiscriminatorValue); } }, |
| 62 | + { "lang", n => { Lang = n.GetEnumValue<global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_lang>(); } }, |
| 63 | + }; |
| 64 | + } |
| 65 | + /// <summary> |
| 66 | + /// Serializes information the current object |
| 67 | + /// </summary> |
| 68 | + /// <param name="writer">Serialization writer to use to serialize this model</param> |
| 69 | + public virtual void Serialize(ISerializationWriter writer) |
| 70 | + { |
| 71 | + if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer)); |
| 72 | + writer.WriteObjectValue<global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_enums>("enums", Enums); |
| 73 | + writer.WriteObjectValue<global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_fields>("fields", Fields); |
| 74 | + writer.WriteEnumValue<global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_lang>("lang", Lang); |
| 75 | + writer.WriteAdditionalData(AdditionalData); |
| 76 | + } |
| 77 | + } |
| 78 | +} |
| 79 | +#pragma warning restore CS0618 |
0 commit comments