Skip to content

Commit 24e593f

Browse files
committed
chore(spec): regenerate after spec sync
1 parent 9dba2a1 commit 24e593f

15 files changed

Lines changed: 558 additions & 20 deletions

docs/llms-full.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -659,6 +659,9 @@ await roxy.Usage.GetAsync();
659659
List the response languages accepted by the `lang` query parameter on every i18n-aware endpoint
660660

661661
```csharp
662+
// Get field labels for a language
663+
await roxy.Languages.FieldLabels.GetAsync();
664+
662665
// List supported response languages
663666
await roxy.Languages.GetAsync();
664667
```

specs/openapi.json

Lines changed: 152 additions & 8 deletions
Large diffs are not rendered by default.
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
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&lt;string, Action&lt;IParseNode&gt;&gt;</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
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
/// <summary>
11+
/// 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.
12+
/// </summary>
13+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
14+
public partial class FieldLabelsGetResponse_enums : IAdditionalDataHolder, IParsable
15+
{
16+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
17+
public IDictionary<string, object> AdditionalData { get; set; }
18+
/// <summary>
19+
/// Instantiates a new <see cref="global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_enums"/> and sets the default values.
20+
/// </summary>
21+
public FieldLabelsGetResponse_enums()
22+
{
23+
AdditionalData = new Dictionary<string, object>();
24+
}
25+
/// <summary>
26+
/// Creates a new instance of the appropriate class based on discriminator value
27+
/// </summary>
28+
/// <returns>A <see cref="global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_enums"/></returns>
29+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
30+
public static global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_enums CreateFromDiscriminatorValue(IParseNode parseNode)
31+
{
32+
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
33+
return new global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_enums();
34+
}
35+
/// <summary>
36+
/// The deserialization information for the current model
37+
/// </summary>
38+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
39+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
40+
{
41+
return new Dictionary<string, Action<IParseNode>>
42+
{
43+
};
44+
}
45+
/// <summary>
46+
/// Serializes information the current object
47+
/// </summary>
48+
/// <param name="writer">Serialization writer to use to serialize this model</param>
49+
public virtual void Serialize(ISerializationWriter writer)
50+
{
51+
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
52+
writer.WriteAdditionalData(AdditionalData);
53+
}
54+
}
55+
}
56+
#pragma warning restore CS0618
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
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+
/// <summary>
11+
/// 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`.
12+
/// </summary>
13+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
14+
public partial class FieldLabelsGetResponse_fields : IAdditionalDataHolder, IParsable
15+
{
16+
/// <summary>Stores additional data not described in the OpenAPI description found when deserializing. Can be used for serialization as well.</summary>
17+
public IDictionary<string, object> AdditionalData { get; set; }
18+
/// <summary>
19+
/// Instantiates a new <see cref="global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_fields"/> and sets the default values.
20+
/// </summary>
21+
public FieldLabelsGetResponse_fields()
22+
{
23+
AdditionalData = new Dictionary<string, object>();
24+
}
25+
/// <summary>
26+
/// Creates a new instance of the appropriate class based on discriminator value
27+
/// </summary>
28+
/// <returns>A <see cref="global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_fields"/></returns>
29+
/// <param name="parseNode">The parse node to use to read the discriminator value and create the object</param>
30+
public static global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_fields CreateFromDiscriminatorValue(IParseNode parseNode)
31+
{
32+
if(ReferenceEquals(parseNode, null)) throw new ArgumentNullException(nameof(parseNode));
33+
return new global::RoxyApi.Languages.FieldLabels.FieldLabelsGetResponse_fields();
34+
}
35+
/// <summary>
36+
/// The deserialization information for the current model
37+
/// </summary>
38+
/// <returns>A IDictionary&lt;string, Action&lt;IParseNode&gt;&gt;</returns>
39+
public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
40+
{
41+
return new Dictionary<string, Action<IParseNode>>
42+
{
43+
};
44+
}
45+
/// <summary>
46+
/// Serializes information the current object
47+
/// </summary>
48+
/// <param name="writer">Serialization writer to use to serialize this model</param>
49+
public virtual void Serialize(ISerializationWriter writer)
50+
{
51+
if(ReferenceEquals(writer, null)) throw new ArgumentNullException(nameof(writer));
52+
writer.WriteAdditionalData(AdditionalData);
53+
}
54+
}
55+
}
56+
#pragma warning restore CS0618
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
// <auto-generated/>
2+
using System.Runtime.Serialization;
3+
using System;
4+
namespace RoxyApi.Languages.FieldLabels
5+
{
6+
/// <summary>Language these labels resolved to. Echoes the `lang` query parameter, or `en` when it is omitted.</summary>
7+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.0.0")]
8+
public enum FieldLabelsGetResponse_lang
9+
{
10+
[EnumMember(Value = "en")]
11+
#pragma warning disable CS1591
12+
En,
13+
#pragma warning restore CS1591
14+
[EnumMember(Value = "tr")]
15+
#pragma warning disable CS1591
16+
Tr,
17+
#pragma warning restore CS1591
18+
[EnumMember(Value = "de")]
19+
#pragma warning disable CS1591
20+
De,
21+
#pragma warning restore CS1591
22+
[EnumMember(Value = "es")]
23+
#pragma warning disable CS1591
24+
Es,
25+
#pragma warning restore CS1591
26+
[EnumMember(Value = "hi")]
27+
#pragma warning disable CS1591
28+
Hi,
29+
#pragma warning restore CS1591
30+
[EnumMember(Value = "pt")]
31+
#pragma warning disable CS1591
32+
Pt,
33+
#pragma warning restore CS1591
34+
[EnumMember(Value = "fr")]
35+
#pragma warning disable CS1591
36+
Fr,
37+
#pragma warning restore CS1591
38+
[EnumMember(Value = "ru")]
39+
#pragma warning disable CS1591
40+
Ru,
41+
#pragma warning restore CS1591
42+
}
43+
}

0 commit comments

Comments
 (0)