Skip to content

Commit

Permalink
New updates to generated code (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
octokitbot authored Oct 10, 2024
1 parent 0b165f2 commit f76dd93
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/GitHub/Models/CopilotOrganizationDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ public partial class CopilotOrganizationDetails : IAdditionalDataHolder, IParsab
public global::GitHub.Models.CopilotOrganizationDetails_cli? Cli { get; set; }
/// <summary>The organization policy for allowing or disallowing organization members to use Copilot Chat within their editor.</summary>
public global::GitHub.Models.CopilotOrganizationDetails_ide_chat? IdeChat { get; set; }
/// <summary>The Copilot plan of the organization, or the parent enterprise, when applicable.</summary>
public global::GitHub.Models.CopilotOrganizationDetails_plan_type? PlanType { get; set; }
/// <summary>The organization policy for allowing or disallowing organization members to use Copilot features within github.com.</summary>
public global::GitHub.Models.CopilotOrganizationDetails_platform_chat? PlatformChat { get; set; }
/// <summary>The organization policy for allowing or disallowing Copilot to make suggestions that match public code.</summary>
Expand Down Expand Up @@ -60,6 +62,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{
{ "cli", n => { Cli = n.GetEnumValue<global::GitHub.Models.CopilotOrganizationDetails_cli>(); } },
{ "ide_chat", n => { IdeChat = n.GetEnumValue<global::GitHub.Models.CopilotOrganizationDetails_ide_chat>(); } },
{ "plan_type", n => { PlanType = n.GetEnumValue<global::GitHub.Models.CopilotOrganizationDetails_plan_type>(); } },
{ "platform_chat", n => { PlatformChat = n.GetEnumValue<global::GitHub.Models.CopilotOrganizationDetails_platform_chat>(); } },
{ "public_code_suggestions", n => { PublicCodeSuggestions = n.GetEnumValue<global::GitHub.Models.CopilotOrganizationDetails_public_code_suggestions>(); } },
{ "seat_breakdown", n => { SeatBreakdown = n.GetObjectValue<global::GitHub.Models.CopilotSeatBreakdown>(global::GitHub.Models.CopilotSeatBreakdown.CreateFromDiscriminatorValue); } },
Expand All @@ -75,6 +78,7 @@ public virtual void Serialize(ISerializationWriter writer)
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteEnumValue<global::GitHub.Models.CopilotOrganizationDetails_cli>("cli", Cli);
writer.WriteEnumValue<global::GitHub.Models.CopilotOrganizationDetails_ide_chat>("ide_chat", IdeChat);
writer.WriteEnumValue<global::GitHub.Models.CopilotOrganizationDetails_plan_type>("plan_type", PlanType);
writer.WriteEnumValue<global::GitHub.Models.CopilotOrganizationDetails_platform_chat>("platform_chat", PlatformChat);
writer.WriteEnumValue<global::GitHub.Models.CopilotOrganizationDetails_public_code_suggestions>("public_code_suggestions", PublicCodeSuggestions);
writer.WriteObjectValue<global::GitHub.Models.CopilotSeatBreakdown>("seat_breakdown", SeatBreakdown);
Expand Down
23 changes: 23 additions & 0 deletions src/GitHub/Models/CopilotOrganizationDetails_plan_type.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// <auto-generated/>
using System.Runtime.Serialization;
using System;
namespace GitHub.Models
{
/// <summary>The Copilot plan of the organization, or the parent enterprise, when applicable.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
public enum CopilotOrganizationDetails_plan_type
{
[EnumMember(Value = "business")]
#pragma warning disable CS1591
Business,
#pragma warning restore CS1591
[EnumMember(Value = "enterprise")]
#pragma warning disable CS1591
Enterprise,
#pragma warning restore CS1591
[EnumMember(Value = "unknown")]
#pragma warning disable CS1591
Unknown,
#pragma warning restore CS1591
}
}
4 changes: 4 additions & 0 deletions src/GitHub/Models/CopilotSeatDetails.cs
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ public partial class CopilotSeatDetails : IParsable
#endif
/// <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>
public Date? PendingCancellationDate { get; set; }
/// <summary>The Copilot plan of the organization, or the parent enterprise, when applicable.</summary>
public global::GitHub.Models.CopilotSeatDetails_plan_type? PlanType { get; set; }
/// <summary>Timestamp of when the assignee&apos;s GitHub Copilot access was last updated, in ISO 8601 format.</summary>
public DateTimeOffset? UpdatedAt { get; set; }
/// <summary>
Expand Down Expand Up @@ -79,6 +81,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{ "last_activity_editor", n => { LastActivityEditor = n.GetStringValue(); } },
{ "organization", n => { Organization = n.GetObjectValue<global::GitHub.Models.NullableOrganizationSimple>(global::GitHub.Models.NullableOrganizationSimple.CreateFromDiscriminatorValue); } },
{ "pending_cancellation_date", n => { PendingCancellationDate = n.GetDateValue(); } },
{ "plan_type", n => { PlanType = n.GetEnumValue<global::GitHub.Models.CopilotSeatDetails_plan_type>(); } },
{ "updated_at", n => { UpdatedAt = n.GetDateTimeOffsetValue(); } },
};
}
Expand All @@ -96,6 +99,7 @@ public virtual void Serialize(ISerializationWriter writer)
writer.WriteStringValue("last_activity_editor", LastActivityEditor);
writer.WriteObjectValue<global::GitHub.Models.NullableOrganizationSimple>("organization", Organization);
writer.WriteDateValue("pending_cancellation_date", PendingCancellationDate);
writer.WriteEnumValue<global::GitHub.Models.CopilotSeatDetails_plan_type>("plan_type", PlanType);
writer.WriteDateTimeOffsetValue("updated_at", UpdatedAt);
}
/// <summary>
Expand Down
23 changes: 23 additions & 0 deletions src/GitHub/Models/CopilotSeatDetails_plan_type.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// <auto-generated/>
using System.Runtime.Serialization;
using System;
namespace GitHub.Models
{
/// <summary>The Copilot plan of the organization, or the parent enterprise, when applicable.</summary>
[global::System.CodeDom.Compiler.GeneratedCode("Kiota", "1.19.0")]
public enum CopilotSeatDetails_plan_type
{
[EnumMember(Value = "business")]
#pragma warning disable CS1591
Business,
#pragma warning restore CS1591
[EnumMember(Value = "enterprise")]
#pragma warning disable CS1591
Enterprise,
#pragma warning restore CS1591
[EnumMember(Value = "unknown")]
#pragma warning disable CS1591
Unknown,
#pragma warning restore CS1591
}
}
2 changes: 1 addition & 1 deletion src/GitHub/kiota-lock.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"descriptionHash": "5FAA9A17936D273F78B3687421CFFC23344ED506C52677F79ADFF26BFABF57AD8D35CDB43EBF316E73301D91556EFAEEA073EF2DE56B07248D1BA4519BD3A706",
"descriptionHash": "73258FD7C97EE155929C2C51A926AD3868ACFDAD43AD88DA01B7C57744658BC25669DA8EE2C15B8C36AD78EDDA4392592737865CDB9B4662CFAA83C08513EA66",
"descriptionLocation": "../../../../../schemas/api.github.com.json",
"lockFileVersion": "1.0.0",
"kiotaVersion": "1.19.0",
Expand Down

0 comments on commit f76dd93

Please sign in to comment.