Skip to content

Commit f76dd93

Browse files
authored
New updates to generated code (#130)
1 parent 0b165f2 commit f76dd93

5 files changed

+55
-1
lines changed

src/GitHub/Models/CopilotOrganizationDetails.cs

+4
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ public partial class CopilotOrganizationDetails : IAdditionalDataHolder, IParsab
1919
public global::GitHub.Models.CopilotOrganizationDetails_cli? Cli { get; set; }
2020
/// <summary>The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.</summary>
2121
public global::GitHub.Models.CopilotOrganizationDetails_ide_chat? IdeChat { get; set; }
22+
/// <summary>The Copilot plan of the organization, or the parent enterprise, when applicable.</summary>
23+
public global::GitHub.Models.CopilotOrganizationDetails_plan_type? PlanType { get; set; }
2224
/// <summary>The organization policy for allowing or disallowing organization members to use Copilot features within github.com.</summary>
2325
public global::GitHub.Models.CopilotOrganizationDetails_platform_chat? PlatformChat { get; set; }
2426
/// <summary>The organization policy for allowing or disallowing Copilot to make suggestions that match public code.</summary>
@@ -60,6 +62,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
6062
{
6163
{ "cli", n => { Cli = n.GetEnumValue<global::GitHub.Models.CopilotOrganizationDetails_cli>(); } },
6264
{ "ide_chat", n => { IdeChat = n.GetEnumValue<global::GitHub.Models.CopilotOrganizationDetails_ide_chat>(); } },
65+
{ "plan_type", n => { PlanType = n.GetEnumValue<global::GitHub.Models.CopilotOrganizationDetails_plan_type>(); } },
6366
{ "platform_chat", n => { PlatformChat = n.GetEnumValue<global::GitHub.Models.CopilotOrganizationDetails_platform_chat>(); } },
6467
{ "public_code_suggestions", n => { PublicCodeSuggestions = n.GetEnumValue<global::GitHub.Models.CopilotOrganizationDetails_public_code_suggestions>(); } },
6568
{ "seat_breakdown", n => { SeatBreakdown = n.GetObjectValue<global::GitHub.Models.CopilotSeatBreakdown>(global::GitHub.Models.CopilotSeatBreakdown.CreateFromDiscriminatorValue); } },
@@ -75,6 +78,7 @@ public virtual void Serialize(ISerializationWriter writer)
7578
_ = writer ?? throw new ArgumentNullException(nameof(writer));
7679
writer.WriteEnumValue<global::GitHub.Models.CopilotOrganizationDetails_cli>("cli", Cli);
7780
writer.WriteEnumValue<global::GitHub.Models.CopilotOrganizationDetails_ide_chat>("ide_chat", IdeChat);
81+
writer.WriteEnumValue<global::GitHub.Models.CopilotOrganizationDetails_plan_type>("plan_type", PlanType);
7882
writer.WriteEnumValue<global::GitHub.Models.CopilotOrganizationDetails_platform_chat>("platform_chat", PlatformChat);
7983
writer.WriteEnumValue<global::GitHub.Models.CopilotOrganizationDetails_public_code_suggestions>("public_code_suggestions", PublicCodeSuggestions);
8084
writer.WriteObjectValue<global::GitHub.Models.CopilotSeatBreakdown>("seat_breakdown", SeatBreakdown);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// <auto-generated/>
2+
using System.Runtime.Serialization;
3+
using System;
4+
namespace GitHub.Models
5+
{
6+
/// <summary>The Copilot plan of the organization, or the parent enterprise, when applicable.</summary>
7+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
8+
public enum CopilotOrganizationDetails_plan_type
9+
{
10+
[EnumMember(Value = "business")]
11+
#pragma warning disable CS1591
12+
Business,
13+
#pragma warning restore CS1591
14+
[EnumMember(Value = "enterprise")]
15+
#pragma warning disable CS1591
16+
Enterprise,
17+
#pragma warning restore CS1591
18+
[EnumMember(Value = "unknown")]
19+
#pragma warning disable CS1591
20+
Unknown,
21+
#pragma warning restore CS1591
22+
}
23+
}

src/GitHub/Models/CopilotSeatDetails.cs

+4
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,8 @@ public partial class CopilotSeatDetails : IParsable
5252
#endif
5353
/// <summary>The pending cancellation date for the seat, in `YYYY-MM-DD` format. This will be null unless the assignee&apos;s Copilot access has been canceled during the current billing cycle. If the seat has been cancelled, this corresponds to the start of the organization&apos;s next billing cycle.</summary>
5454
public Date? PendingCancellationDate { get; set; }
55+
/// <summary>The Copilot plan of the organization, or the parent enterprise, when applicable.</summary>
56+
public global::GitHub.Models.CopilotSeatDetails_plan_type? PlanType { get; set; }
5557
/// <summary>Timestamp of when the assignee&apos;s GitHub Copilot access was last updated, in ISO 8601 format.</summary>
5658
public DateTimeOffset? UpdatedAt { get; set; }
5759
/// <summary>
@@ -79,6 +81,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
7981
{ "last_activity_editor", n => { LastActivityEditor = n.GetStringValue(); } },
8082
{ "organization", n => { Organization = n.GetObjectValue<global::GitHub.Models.NullableOrganizationSimple>(global::GitHub.Models.NullableOrganizationSimple.CreateFromDiscriminatorValue); } },
8183
{ "pending_cancellation_date", n => { PendingCancellationDate = n.GetDateValue(); } },
84+
{ "plan_type", n => { PlanType = n.GetEnumValue<global::GitHub.Models.CopilotSeatDetails_plan_type>(); } },
8285
{ "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } },
8386
};
8487
}
@@ -96,6 +99,7 @@ public virtual void Serialize(ISerializationWriter writer)
9699
writer.WriteStringValue("last_activity_editor", LastActivityEditor);
97100
writer.WriteObjectValue<global::GitHub.Models.NullableOrganizationSimple>("organization", Organization);
98101
writer.WriteDateValue("pending_cancellation_date", PendingCancellationDate);
102+
writer.WriteEnumValue<global::GitHub.Models.CopilotSeatDetails_plan_type>("plan_type", PlanType);
99103
writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt);
100104
}
101105
/// <summary>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
// <auto-generated/>
2+
using System.Runtime.Serialization;
3+
using System;
4+
namespace GitHub.Models
5+
{
6+
/// <summary>The Copilot plan of the organization, or the parent enterprise, when applicable.</summary>
7+
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
8+
public enum CopilotSeatDetails_plan_type
9+
{
10+
[EnumMember(Value = "business")]
11+
#pragma warning disable CS1591
12+
Business,
13+
#pragma warning restore CS1591
14+
[EnumMember(Value = "enterprise")]
15+
#pragma warning disable CS1591
16+
Enterprise,
17+
#pragma warning restore CS1591
18+
[EnumMember(Value = "unknown")]
19+
#pragma warning disable CS1591
20+
Unknown,
21+
#pragma warning restore CS1591
22+
}
23+
}

src/GitHub/kiota-lock.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"descriptionHash": "5FAA9A17936D273F78B3687421CFFC23344ED506C52677F79ADFF26BFABF57AD8D35CDB43EBF316E73301D91556EFAEEA073EF2DE56B07248D1BA4519BD3A706",
2+
"descriptionHash": "73258FD7C97EE155929C2C51A926AD3868ACFDAD43AD88DA01B7C57744658BC25669DA8EE2C15B8C36AD78EDDA4392592737865CDB9B4662CFAA83C08513EA66",
33
"descriptionLocation": "../../../../../schemas/api.github.com.json",
44
"lockFileVersion": "1.0.0",
55
"kiotaVersion": "1.19.0",

0 commit comments

Comments
 (0)