Skip to content

Commit

Permalink
feat: Updated OpenAPI spec
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] authored and HavenDV committed Jul 19, 2024
1 parent 410d610 commit 90a9c36
Show file tree
Hide file tree
Showing 27 changed files with 556 additions and 1,397 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -167,7 +167,7 @@ partial void ProcessGitCreateCommitResponseContent(
/// The SHA of the tree object this commit points to
/// </param>
/// <param name="parents">
/// The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.
/// The full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.
/// </param>
/// <param name="author">
/// Information about the author of the commit. By default, the `author` will be the authenticated user and the current date. See the `author` and `committer` object below for details.
Expand Down
2 changes: 1 addition & 1 deletion src/libs/GitHub/Generated/GitHub.Models.Environment.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public sealed partial class Environment
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("id")]
[global::System.Text.Json.Serialization.JsonRequired]
public required int Id { get; set; }
public required long Id { get; set; }

/// <summary>
/// Example: MDExOkVudmlyb25tZW50NTY3ODA0Mjg=
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public sealed partial class GitCreateCommitRequest
public required string Tree { get; set; }

/// <summary>
/// The SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.
/// The full SHAs of the commits that were the parents of this commit. If omitted or empty, the commit will be written as a root commit. For a single parent, an array of one SHA should be provided; for a merge commit, an array of more than one should be provided.
/// </summary>
[global::System.Text.Json.Serialization.JsonPropertyName("parents")]
public global::System.Collections.Generic.IList<string?>? Parents { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@ public enum GitCreateTreeRequestTreeMode
/// <summary>
///
/// </summary>
_100644,
x100644,
/// <summary>
///
/// </summary>
_100755,
x100755,
/// <summary>
///
/// </summary>
_040000,
x040000,
/// <summary>
///
/// </summary>
_160000,
x160000,
/// <summary>
///
/// </summary>
_120000,
x120000,
}

/// <summary>
Expand All @@ -42,11 +42,11 @@ public static string ToValueString(this GitCreateTreeRequestTreeMode value)
{
return value switch
{
GitCreateTreeRequestTreeMode._100644 => "100644",
GitCreateTreeRequestTreeMode._100755 => "100755",
GitCreateTreeRequestTreeMode._040000 => "040000",
GitCreateTreeRequestTreeMode._160000 => "160000",
GitCreateTreeRequestTreeMode._120000 => "120000",
GitCreateTreeRequestTreeMode.x100644 => "100644",
GitCreateTreeRequestTreeMode.x100755 => "100755",
GitCreateTreeRequestTreeMode.x040000 => "040000",
GitCreateTreeRequestTreeMode.x160000 => "160000",
GitCreateTreeRequestTreeMode.x120000 => "120000",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
}
Expand All @@ -57,11 +57,11 @@ public static string ToValueString(this GitCreateTreeRequestTreeMode value)
{
return value switch
{
"100644" => GitCreateTreeRequestTreeMode._100644,
"100755" => GitCreateTreeRequestTreeMode._100755,
"040000" => GitCreateTreeRequestTreeMode._040000,
"160000" => GitCreateTreeRequestTreeMode._160000,
"120000" => GitCreateTreeRequestTreeMode._120000,
"100644" => GitCreateTreeRequestTreeMode.x100644,
"100755" => GitCreateTreeRequestTreeMode.x100755,
"040000" => GitCreateTreeRequestTreeMode.x040000,
"160000" => GitCreateTreeRequestTreeMode.x160000,
"120000" => GitCreateTreeRequestTreeMode.x120000,
_ => null,
};
}
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public enum OrgsListMembersFilter
/// <summary>
///
/// </summary>
_2faDisabled,
x2faDisabled,
/// <summary>
///
/// </summary>
Expand All @@ -30,7 +30,7 @@ public static string ToValueString(this OrgsListMembersFilter value)
{
return value switch
{
OrgsListMembersFilter._2faDisabled => "2fa_disabled",
OrgsListMembersFilter.x2faDisabled => "2fa_disabled",
OrgsListMembersFilter.All => "all",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
Expand All @@ -42,7 +42,7 @@ public static string ToValueString(this OrgsListMembersFilter value)
{
return value switch
{
"2fa_disabled" => OrgsListMembersFilter._2faDisabled,
"2fa_disabled" => OrgsListMembersFilter.x2faDisabled,
"all" => OrgsListMembersFilter.All,
_ => null,
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public enum OrgsListOutsideCollaboratorsFilter
/// <summary>
///
/// </summary>
_2faDisabled,
x2faDisabled,
/// <summary>
///
/// </summary>
Expand All @@ -30,7 +30,7 @@ public static string ToValueString(this OrgsListOutsideCollaboratorsFilter value
{
return value switch
{
OrgsListOutsideCollaboratorsFilter._2faDisabled => "2fa_disabled",
OrgsListOutsideCollaboratorsFilter.x2faDisabled => "2fa_disabled",
OrgsListOutsideCollaboratorsFilter.All => "all",
_ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null),
};
Expand All @@ -42,7 +42,7 @@ public static string ToValueString(this OrgsListOutsideCollaboratorsFilter value
{
return value switch
{
"2fa_disabled" => OrgsListOutsideCollaboratorsFilter._2faDisabled,
"2fa_disabled" => OrgsListOutsideCollaboratorsFilter.x2faDisabled,
"all" => OrgsListOutsideCollaboratorsFilter.All,
_ => null,
};
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ partial void ProcessOrgsAssignTeamToOrgRoleResponse(

/// <summary>
/// Assign an organization role to a team<br/>
/// Assigns an organization role to a team in an organization. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."<br/>
/// Assigns an organization role to a team in an organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."<br/>
/// The authenticated user must be an administrator for the organization to use this endpoint.<br/>
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ partial void ProcessOrgsAssignUserToOrgRoleResponse(

/// <summary>
/// Assign an organization role to a user<br/>
/// Assigns an organization role to a member of an organization. For more information on organization roles, see "[Managing people's access to your organization with roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/about-custom-organization-roles)."<br/>
/// Assigns an organization role to a member of an organization. For more information on organization roles, see "[Using organization roles](https://docs.github.com/organizations/managing-peoples-access-to-your-organization-with-roles/using-organization-roles)."<br/>
/// The authenticated user must be an administrator for the organization to use this endpoint.<br/>
/// OAuth app tokens and personal access tokens (classic) need the `admin:org` scope to use this endpoint.
/// </summary>
Expand Down
Loading

0 comments on commit 90a9c36

Please sign in to comment.