Skip to content

Commit

Permalink
New updates to generated code (#94)
Browse files Browse the repository at this point in the history
Co-authored-by: Octokit Bot <octokitbot@martynus.net>
  • Loading branch information
octokitbot and Octokit Bot committed Jul 3, 2024
1 parent 0e5dad7 commit e4bb0f0
Show file tree
Hide file tree
Showing 21 changed files with 58 additions and 59 deletions.
6 changes: 3 additions & 3 deletions src/GitHub/Models/Codespace.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class Codespace : IAdditionalDataHolder, IParsable
public Codespace_git_status GitStatus { get; set; }
#endif
/// <summary>The id property</summary>
public int? Id { get; set; }
public long? Id { get; set; }
/// <summary>The number of minutes of inactivity after which this codespace will be automatically stopped.</summary>
public int? IdleTimeoutMinutes { get; set; }
/// <summary>Text to show user when codespace idle timeout minutes has been overriden by an organization policy</summary>
Expand Down Expand Up @@ -233,7 +233,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{"display_name", n => { DisplayName = n.GetStringValue(); } },
{"environment_id", n => { EnvironmentId = n.GetStringValue(); } },
{"git_status", n => { GitStatus = n.GetObjectValue<Codespace_git_status>(Codespace_git_status.CreateFromDiscriminatorValue); } },
{"id", n => { Id = n.GetIntValue(); } },
{"id", n => { Id = n.GetLongValue(); } },
{"idle_timeout_minutes", n => { IdleTimeoutMinutes = n.GetIntValue(); } },
{"idle_timeout_notice", n => { IdleTimeoutNotice = n.GetStringValue(); } },
{"last_known_stop_notice", n => { LastKnownStopNotice = n.GetStringValue(); } },
Expand Down Expand Up @@ -274,7 +274,7 @@ public virtual void Serialize(ISerializationWriter writer)
writer.WriteStringValue("display_name", DisplayName);
writer.WriteStringValue("environment_id", EnvironmentId);
writer.WriteObjectValue<Codespace_git_status>("git_status", GitStatus);
writer.WriteIntValue("id", Id);
writer.WriteLongValue("id", Id);
writer.WriteIntValue("idle_timeout_minutes", IdleTimeoutMinutes);
writer.WriteStringValue("idle_timeout_notice", IdleTimeoutNotice);
writer.WriteStringValue("last_known_stop_notice", LastKnownStopNotice);
Expand Down
6 changes: 3 additions & 3 deletions src/GitHub/Models/CodespaceWithFullRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public class CodespaceWithFullRepository : IAdditionalDataHolder, IParsable
public CodespaceWithFullRepository_git_status GitStatus { get; set; }
#endif
/// <summary>The id property</summary>
public int? Id { get; set; }
public long? Id { get; set; }
/// <summary>The number of minutes of inactivity after which this codespace will be automatically stopped.</summary>
public int? IdleTimeoutMinutes { get; set; }
/// <summary>Text to show user when codespace idle timeout minutes has been overriden by an organization policy</summary>
Expand Down Expand Up @@ -225,7 +225,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{"display_name", n => { DisplayName = n.GetStringValue(); } },
{"environment_id", n => { EnvironmentId = n.GetStringValue(); } },
{"git_status", n => { GitStatus = n.GetObjectValue<CodespaceWithFullRepository_git_status>(CodespaceWithFullRepository_git_status.CreateFromDiscriminatorValue); } },
{"id", n => { Id = n.GetIntValue(); } },
{"id", n => { Id = n.GetLongValue(); } },
{"idle_timeout_minutes", n => { IdleTimeoutMinutes = n.GetIntValue(); } },
{"idle_timeout_notice", n => { IdleTimeoutNotice = n.GetStringValue(); } },
{"last_used_at", n => { LastUsedAt = n.GetDateTimeOffsetValue(); } },
Expand Down Expand Up @@ -265,7 +265,7 @@ public virtual void Serialize(ISerializationWriter writer)
writer.WriteStringValue("display_name", DisplayName);
writer.WriteStringValue("environment_id", EnvironmentId);
writer.WriteObjectValue<CodespaceWithFullRepository_git_status>("git_status", GitStatus);
writer.WriteIntValue("id", Id);
writer.WriteLongValue("id", Id);
writer.WriteIntValue("idle_timeout_minutes", IdleTimeoutMinutes);
writer.WriteStringValue("idle_timeout_notice", IdleTimeoutNotice);
writer.WriteDateTimeOffsetValue("last_used_at", LastUsedAt);
Expand Down
6 changes: 3 additions & 3 deletions src/GitHub/Models/EnterpriseTeam.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class EnterpriseTeam : IAdditionalDataHolder, IParsable
public string HtmlUrl { get; set; }
#endif
/// <summary>The id property</summary>
public int? Id { get; set; }
public long? Id { get; set; }
/// <summary>The members_url property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -96,7 +96,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } },
{"group_id", n => { GroupId = n.GetIntValue(); } },
{"html_url", n => { HtmlUrl = n.GetStringValue(); } },
{"id", n => { Id = n.GetIntValue(); } },
{"id", n => { Id = n.GetLongValue(); } },
{"members_url", n => { MembersUrl = n.GetStringValue(); } },
{"name", n => { Name = n.GetStringValue(); } },
{"slug", n => { Slug = n.GetStringValue(); } },
Expand All @@ -115,7 +115,7 @@ public virtual void Serialize(ISerializationWriter writer)
writer.WriteDateTimeOffsetValue("created_at", CreatedAt);
writer.WriteIntValue("group_id", GroupId);
writer.WriteStringValue("html_url", HtmlUrl);
writer.WriteIntValue("id", Id);
writer.WriteLongValue("id", Id);
writer.WriteStringValue("members_url", MembersUrl);
writer.WriteStringValue("name", Name);
writer.WriteStringValue("slug", Slug);
Expand Down
6 changes: 3 additions & 3 deletions src/GitHub/Models/FullRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,7 @@ public class FullRepository : IAdditionalDataHolder, IParsable
public string HtmlUrl { get; set; }
#endif
/// <summary>The id property</summary>
public int? Id { get; set; }
public long? Id { get; set; }
/// <summary>The issue_comment_url property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -674,7 +674,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{"homepage", n => { Homepage = n.GetStringValue(); } },
{"hooks_url", n => { HooksUrl = n.GetStringValue(); } },
{"html_url", n => { HtmlUrl = n.GetStringValue(); } },
{"id", n => { Id = n.GetIntValue(); } },
{"id", n => { Id = n.GetLongValue(); } },
{"is_template", n => { IsTemplate = n.GetBoolValue(); } },
{"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } },
{"issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } },
Expand Down Expand Up @@ -786,7 +786,7 @@ public virtual void Serialize(ISerializationWriter writer)
writer.WriteStringValue("homepage", Homepage);
writer.WriteStringValue("hooks_url", HooksUrl);
writer.WriteStringValue("html_url", HtmlUrl);
writer.WriteIntValue("id", Id);
writer.WriteLongValue("id", Id);
writer.WriteStringValue("issue_comment_url", IssueCommentUrl);
writer.WriteStringValue("issue_events_url", IssueEventsUrl);
writer.WriteStringValue("issues_url", IssuesUrl);
Expand Down
6 changes: 3 additions & 3 deletions src/GitHub/Models/GpgKey.cs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public class GpgKey : IAdditionalDataHolder, IParsable
/// <summary>The expires_at property</summary>
public DateTimeOffset? ExpiresAt { get; set; }
/// <summary>The id property</summary>
public int? Id { get; set; }
public long? Id { get; set; }
/// <summary>The key_id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -110,7 +110,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } },
{"emails", n => { Emails = n.GetCollectionOfObjectValues<GpgKey_emails>(GpgKey_emails.CreateFromDiscriminatorValue)?.ToList(); } },
{"expires_at", n => { ExpiresAt = n.GetDateTimeOffsetValue(); } },
{"id", n => { Id = n.GetIntValue(); } },
{"id", n => { Id = n.GetLongValue(); } },
{"key_id", n => { KeyId = n.GetStringValue(); } },
{"name", n => { Name = n.GetStringValue(); } },
{"primary_key_id", n => { PrimaryKeyId = n.GetIntValue(); } },
Expand All @@ -134,7 +134,7 @@ public virtual void Serialize(ISerializationWriter writer)
writer.WriteDateTimeOffsetValue("created_at", CreatedAt);
writer.WriteCollectionOfObjectValues<GpgKey_emails>("emails", Emails);
writer.WriteDateTimeOffsetValue("expires_at", ExpiresAt);
writer.WriteIntValue("id", Id);
writer.WriteLongValue("id", Id);
writer.WriteStringValue("key_id", KeyId);
writer.WriteStringValue("name", Name);
writer.WriteIntValue("primary_key_id", PrimaryKeyId);
Expand Down
6 changes: 3 additions & 3 deletions src/GitHub/Models/GpgKey_subkeys.cs
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class GpgKey_subkeys : IAdditionalDataHolder, IParsable
public string ExpiresAt { get; set; }
#endif
/// <summary>The id property</summary>
public int? Id { get; set; }
public long? Id { get; set; }
/// <summary>The key_id property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -113,7 +113,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{"created_at", n => { CreatedAt = n.GetStringValue(); } },
{"emails", n => { Emails = n.GetCollectionOfObjectValues<GpgKey_subkeys_emails>(GpgKey_subkeys_emails.CreateFromDiscriminatorValue)?.ToList(); } },
{"expires_at", n => { ExpiresAt = n.GetStringValue(); } },
{"id", n => { Id = n.GetIntValue(); } },
{"id", n => { Id = n.GetLongValue(); } },
{"key_id", n => { KeyId = n.GetStringValue(); } },
{"primary_key_id", n => { PrimaryKeyId = n.GetIntValue(); } },
{"public_key", n => { PublicKey = n.GetStringValue(); } },
Expand All @@ -136,7 +136,7 @@ public virtual void Serialize(ISerializationWriter writer)
writer.WriteStringValue("created_at", CreatedAt);
writer.WriteCollectionOfObjectValues<GpgKey_subkeys_emails>("emails", Emails);
writer.WriteStringValue("expires_at", ExpiresAt);
writer.WriteIntValue("id", Id);
writer.WriteLongValue("id", Id);
writer.WriteStringValue("key_id", KeyId);
writer.WriteIntValue("primary_key_id", PrimaryKeyId);
writer.WriteStringValue("public_key", PublicKey);
Expand Down
6 changes: 3 additions & 3 deletions src/GitHub/Models/Key.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class Key : IAdditionalDataHolder, IParsable
/// <summary>The created_at property</summary>
public DateTimeOffset? CreatedAt { get; set; }
/// <summary>The id property</summary>
public int? Id { get; set; }
public long? Id { get; set; }
/// <summary>The key property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -70,7 +70,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
return new Dictionary<string, Action<IParseNode>>
{
{"created_at", n => { CreatedAt = n.GetDateTimeOffsetValue(); } },
{"id", n => { Id = n.GetIntValue(); } },
{"id", n => { Id = n.GetLongValue(); } },
{"key", n => { KeyProp = n.GetStringValue(); } },
{"read_only", n => { ReadOnly = n.GetBoolValue(); } },
{"title", n => { Title = n.GetStringValue(); } },
Expand All @@ -86,7 +86,7 @@ public virtual void Serialize(ISerializationWriter writer)
{
_ = writer ?? throw new ArgumentNullException(nameof(writer));
writer.WriteDateTimeOffsetValue("created_at", CreatedAt);
writer.WriteIntValue("id", Id);
writer.WriteLongValue("id", Id);
writer.WriteStringValue("key", KeyProp);
writer.WriteBoolValue("read_only", ReadOnly);
writer.WriteStringValue("title", Title);
Expand Down
6 changes: 3 additions & 3 deletions src/GitHub/Models/Migration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public class Migration : IAdditionalDataHolder, IParsable
public string Guid { get; set; }
#endif
/// <summary>The id property</summary>
public int? Id { get; set; }
public long? Id { get; set; }
/// <summary>The lock_repositories property</summary>
public bool? LockRepositories { get; set; }
/// <summary>The node_id property</summary>
Expand Down Expand Up @@ -130,7 +130,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{"exclude_owner_projects", n => { ExcludeOwnerProjects = n.GetBoolValue(); } },
{"exclude_releases", n => { ExcludeReleases = n.GetBoolValue(); } },
{"guid", n => { Guid = n.GetStringValue(); } },
{"id", n => { Id = n.GetIntValue(); } },
{"id", n => { Id = n.GetLongValue(); } },
{"lock_repositories", n => { LockRepositories = n.GetBoolValue(); } },
{"node_id", n => { NodeId = n.GetStringValue(); } },
{"org_metadata_only", n => { OrgMetadataOnly = n.GetBoolValue(); } },
Expand All @@ -157,7 +157,7 @@ public virtual void Serialize(ISerializationWriter writer)
writer.WriteBoolValue("exclude_owner_projects", ExcludeOwnerProjects);
writer.WriteBoolValue("exclude_releases", ExcludeReleases);
writer.WriteStringValue("guid", Guid);
writer.WriteIntValue("id", Id);
writer.WriteLongValue("id", Id);
writer.WriteBoolValue("lock_repositories", LockRepositories);
writer.WriteStringValue("node_id", NodeId);
writer.WriteBoolValue("org_metadata_only", OrgMetadataOnly);
Expand Down
6 changes: 3 additions & 3 deletions src/GitHub/Models/MinimalRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public class MinimalRepository : IAdditionalDataHolder, IParsable
public string HtmlUrl { get; set; }
#endif
/// <summary>The id property</summary>
public int? Id { get; set; }
public long? Id { get; set; }
/// <summary>The issue_comment_url property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -605,7 +605,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{"homepage", n => { Homepage = n.GetStringValue(); } },
{"hooks_url", n => { HooksUrl = n.GetStringValue(); } },
{"html_url", n => { HtmlUrl = n.GetStringValue(); } },
{"id", n => { Id = n.GetIntValue(); } },
{"id", n => { Id = n.GetLongValue(); } },
{"is_template", n => { IsTemplate = n.GetBoolValue(); } },
{"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } },
{"issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } },
Expand Down Expand Up @@ -701,7 +701,7 @@ public virtual void Serialize(ISerializationWriter writer)
writer.WriteStringValue("homepage", Homepage);
writer.WriteStringValue("hooks_url", HooksUrl);
writer.WriteStringValue("html_url", HtmlUrl);
writer.WriteIntValue("id", Id);
writer.WriteLongValue("id", Id);
writer.WriteStringValue("issue_comment_url", IssueCommentUrl);
writer.WriteStringValue("issue_events_url", IssueEventsUrl);
writer.WriteStringValue("issues_url", IssuesUrl);
Expand Down
6 changes: 3 additions & 3 deletions src/GitHub/Models/NullableMinimalRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ public class NullableMinimalRepository : IAdditionalDataHolder, IParsable
public string HtmlUrl { get; set; }
#endif
/// <summary>The id property</summary>
public int? Id { get; set; }
public long? Id { get; set; }
/// <summary>The issue_comment_url property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -605,7 +605,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{"homepage", n => { Homepage = n.GetStringValue(); } },
{"hooks_url", n => { HooksUrl = n.GetStringValue(); } },
{"html_url", n => { HtmlUrl = n.GetStringValue(); } },
{"id", n => { Id = n.GetIntValue(); } },
{"id", n => { Id = n.GetLongValue(); } },
{"is_template", n => { IsTemplate = n.GetBoolValue(); } },
{"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } },
{"issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } },
Expand Down Expand Up @@ -701,7 +701,7 @@ public virtual void Serialize(ISerializationWriter writer)
writer.WriteStringValue("homepage", Homepage);
writer.WriteStringValue("hooks_url", HooksUrl);
writer.WriteStringValue("html_url", HtmlUrl);
writer.WriteIntValue("id", Id);
writer.WriteLongValue("id", Id);
writer.WriteStringValue("issue_comment_url", IssueCommentUrl);
writer.WriteStringValue("issue_events_url", IssueEventsUrl);
writer.WriteStringValue("issues_url", IssuesUrl);
Expand Down
6 changes: 3 additions & 3 deletions src/GitHub/Models/NullableRepository.cs
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ public class NullableRepository : IAdditionalDataHolder, IParsable
public string HtmlUrl { get; set; }
#endif
/// <summary>Unique identifier of the repository</summary>
public int? Id { get; set; }
public long? Id { get; set; }
/// <summary>The issue_comment_url property</summary>
#if NETSTANDARD2_1_OR_GREATER || NETCOREAPP3_1_OR_GREATER
#nullable enable
Expand Down Expand Up @@ -623,7 +623,7 @@ public virtual IDictionary<string, Action<IParseNode>> GetFieldDeserializers()
{"homepage", n => { Homepage = n.GetStringValue(); } },
{"hooks_url", n => { HooksUrl = n.GetStringValue(); } },
{"html_url", n => { HtmlUrl = n.GetStringValue(); } },
{"id", n => { Id = n.GetIntValue(); } },
{"id", n => { Id = n.GetLongValue(); } },
{"is_template", n => { IsTemplate = n.GetBoolValue(); } },
{"issue_comment_url", n => { IssueCommentUrl = n.GetStringValue(); } },
{"issue_events_url", n => { IssueEventsUrl = n.GetStringValue(); } },
Expand Down Expand Up @@ -727,7 +727,7 @@ public virtual void Serialize(ISerializationWriter writer)
writer.WriteStringValue("homepage", Homepage);
writer.WriteStringValue("hooks_url", HooksUrl);
writer.WriteStringValue("html_url", HtmlUrl);
writer.WriteIntValue("id", Id);
writer.WriteLongValue("id", Id);
writer.WriteStringValue("issue_comment_url", IssueCommentUrl);
writer.WriteStringValue("issue_events_url", IssueEventsUrl);
writer.WriteStringValue("issues_url", IssuesUrl);
Expand Down
Loading

0 comments on commit e4bb0f0

Please sign in to comment.