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 Aug 13, 2024
1 parent 6b4dbd7 commit f3c9405
Show file tree
Hide file tree
Showing 190 changed files with 869 additions and 862 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ partial void PrepareActionsCreateWorkflowDispatchArguments(
global::System.Net.Http.HttpClient httpClient,
ref string owner,
ref string repo,
ref global::System.OneOf<int, string?> workflowId,
ref global::System.OneOf<int?, string?> workflowId,
global::GitHub.ActionsCreateWorkflowDispatchRequest request);
partial void PrepareActionsCreateWorkflowDispatchRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string owner,
string repo,
global::System.OneOf<int, string?> workflowId,
global::System.OneOf<int?, string?> workflowId,
global::GitHub.ActionsCreateWorkflowDispatchRequest request);
partial void ProcessActionsCreateWorkflowDispatchResponse(
global::System.Net.Http.HttpClient httpClient,
Expand All @@ -37,7 +37,7 @@ partial void ProcessActionsCreateWorkflowDispatchResponse(
public async global::System.Threading.Tasks.Task ActionsCreateWorkflowDispatchAsync(
string owner,
string repo,
global::System.OneOf<int, string?> workflowId,
global::System.OneOf<int?, string?> workflowId,
global::GitHub.ActionsCreateWorkflowDispatchRequest request,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down Expand Up @@ -106,7 +106,7 @@ partial void ProcessActionsCreateWorkflowDispatchResponse(
public async global::System.Threading.Tasks.Task ActionsCreateWorkflowDispatchAsync(
string owner,
string repo,
global::System.OneOf<int, string?> workflowId,
global::System.OneOf<int?, string?> workflowId,
string @ref,
global::GitHub.ActionsCreateWorkflowDispatchRequestInputs? inputs = default,
global::System.Threading.CancellationToken cancellationToken = default)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ partial void PrepareActionsDisableWorkflowArguments(
global::System.Net.Http.HttpClient httpClient,
ref string owner,
ref string repo,
ref global::System.OneOf<int, string?> workflowId);
ref global::System.OneOf<int?, string?> workflowId);
partial void PrepareActionsDisableWorkflowRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string owner,
string repo,
global::System.OneOf<int, string?> workflowId);
global::System.OneOf<int?, string?> workflowId);
partial void ProcessActionsDisableWorkflowResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -33,7 +33,7 @@ partial void ProcessActionsDisableWorkflowResponse(
public async global::System.Threading.Tasks.Task ActionsDisableWorkflowAsync(
string owner,
string repo,
global::System.OneOf<int, string?> workflowId,
global::System.OneOf<int?, string?> workflowId,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ partial void PrepareActionsEnableWorkflowArguments(
global::System.Net.Http.HttpClient httpClient,
ref string owner,
ref string repo,
ref global::System.OneOf<int, string?> workflowId);
ref global::System.OneOf<int?, string?> workflowId);
partial void PrepareActionsEnableWorkflowRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string owner,
string repo,
global::System.OneOf<int, string?> workflowId);
global::System.OneOf<int?, string?> workflowId);
partial void ProcessActionsEnableWorkflowResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -33,7 +33,7 @@ partial void ProcessActionsEnableWorkflowResponse(
public async global::System.Threading.Tasks.Task ActionsEnableWorkflowAsync(
string owner,
string repo,
global::System.OneOf<int, string?> workflowId,
global::System.OneOf<int?, string?> workflowId,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ partial void PrepareActionsGetWorkflowArguments(
global::System.Net.Http.HttpClient httpClient,
ref string owner,
ref string repo,
ref global::System.OneOf<int, string?> workflowId);
ref global::System.OneOf<int?, string?> workflowId);
partial void PrepareActionsGetWorkflowRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string owner,
string repo,
global::System.OneOf<int, string?> workflowId);
global::System.OneOf<int?, string?> workflowId);
partial void ProcessActionsGetWorkflowResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -40,7 +40,7 @@ partial void ProcessActionsGetWorkflowResponseContent(
public async global::System.Threading.Tasks.Task<global::GitHub.Workflow> ActionsGetWorkflowAsync(
string owner,
string repo,
global::System.OneOf<int, string?> workflowId,
global::System.OneOf<int?, string?> workflowId,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ partial void PrepareActionsGetWorkflowUsageArguments(
global::System.Net.Http.HttpClient httpClient,
ref string owner,
ref string repo,
ref global::System.OneOf<int, string?> workflowId);
ref global::System.OneOf<int?, string?> workflowId);
partial void PrepareActionsGetWorkflowUsageRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string owner,
string repo,
global::System.OneOf<int, string?> workflowId);
global::System.OneOf<int?, string?> workflowId);
partial void ProcessActionsGetWorkflowUsageResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -40,7 +40,7 @@ partial void ProcessActionsGetWorkflowUsageResponseContent(
public async global::System.Threading.Tasks.Task<global::GitHub.WorkflowUsage> ActionsGetWorkflowUsageAsync(
string owner,
string repo,
global::System.OneOf<int, string?> workflowId,
global::System.OneOf<int?, string?> workflowId,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ partial void PrepareActionsListWorkflowRunsArguments(
global::System.Net.Http.HttpClient httpClient,
ref string owner,
ref string repo,
ref global::System.OneOf<int, string?> workflowId,
ref global::System.OneOf<int?, string?> workflowId,
ref string? actor,
ref string? branch,
ref string? @event,
Expand All @@ -25,7 +25,7 @@ partial void PrepareActionsListWorkflowRunsRequest(
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string owner,
string repo,
global::System.OneOf<int, string?> workflowId,
global::System.OneOf<int?, string?> workflowId,
string? actor,
string? branch,
string? @event,
Expand Down Expand Up @@ -75,7 +75,7 @@ partial void ProcessActionsListWorkflowRunsResponseContent(
public async global::System.Threading.Tasks.Task<global::GitHub.ActionsListWorkflowRunsResponse> ActionsListWorkflowRunsAsync(
string owner,
string repo,
global::System.OneOf<int, string?> workflowId,
global::System.OneOf<int?, string?> workflowId,
string? actor,
string? branch,
string? @event,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ partial void PrepareActionsReviewCustomGatesForRunArguments(
ref string owner,
ref string repo,
ref int runId,
global::System.AnyOf<global::GitHub.ReviewCustomGatesCommentRequired?, global::GitHub.ReviewCustomGatesStateRequired?> request);
global::System.AnyOf<global::GitHub.ReviewCustomGatesCommentRequired, global::GitHub.ReviewCustomGatesStateRequired> request);
partial void PrepareActionsReviewCustomGatesForRunRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string owner,
string repo,
int runId,
global::System.AnyOf<global::GitHub.ReviewCustomGatesCommentRequired?, global::GitHub.ReviewCustomGatesStateRequired?> request);
global::System.AnyOf<global::GitHub.ReviewCustomGatesCommentRequired, global::GitHub.ReviewCustomGatesStateRequired> request);
partial void ProcessActionsReviewCustomGatesForRunResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -39,7 +39,7 @@ partial void ProcessActionsReviewCustomGatesForRunResponse(
string owner,
string repo,
int runId,
global::System.AnyOf<global::GitHub.ReviewCustomGatesCommentRequired?, global::GitHub.ReviewCustomGatesStateRequired?> request,
global::System.AnyOf<global::GitHub.ReviewCustomGatesCommentRequired, global::GitHub.ReviewCustomGatesStateRequired> request,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down Expand Up @@ -103,7 +103,7 @@ partial void ProcessActionsReviewCustomGatesForRunResponse(
int runId,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::System.AnyOf<global::GitHub.ReviewCustomGatesCommentRequired?, global::GitHub.ReviewCustomGatesStateRequired?>
var request = new global::System.AnyOf<global::GitHub.ReviewCustomGatesCommentRequired, global::GitHub.ReviewCustomGatesStateRequired>
{
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ partial void ProcessActivityListReposStarredByUserResponseContent(
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::System.AnyOf<global::System.Collections.Generic.IList<global::GitHub.StarredRepository>?, global::System.Collections.Generic.IList<global::GitHub.Repository>?>> ActivityListReposStarredByUserAsync(
public async global::System.Threading.Tasks.Task<global::System.AnyOf<global::System.Collections.Generic.IList<global::GitHub.StarredRepository>, global::System.Collections.Generic.IList<global::GitHub.Repository>>> ActivityListReposStarredByUserAsync(
string username,
global::GitHub.ActivityListReposStarredByUserSort? sort,
global::GitHub.ActivityListReposStarredByUserDirection? direction,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ partial void ProcessActivityListStargazersForRepoResponseContent(
/// </param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::System.AnyOf<global::System.Collections.Generic.IList<global::GitHub.SimpleUser>?, global::System.Collections.Generic.IList<global::GitHub.Stargazer>?>> ActivityListStargazersForRepoAsync(
public async global::System.Threading.Tasks.Task<global::System.AnyOf<global::System.Collections.Generic.IList<global::GitHub.SimpleUser>, global::System.Collections.Generic.IList<global::GitHub.Stargazer>>> ActivityListStargazersForRepoAsync(
string owner,
string repo,
int perPage,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ partial void ProcessAppsCreateFromManifestResponseContent(
/// <param name="code"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::System.AllOf<global::GitHub.Integration?, global::GitHub.AppsCreateFromManifestResponse2?>> AppsCreateFromManifestAsync(
public async global::System.Threading.Tasks.Task<global::System.AllOf<global::GitHub.Integration, global::GitHub.AppsCreateFromManifestResponse2>> AppsCreateFromManifestAsync(
string code,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ public partial class CodespacesClient
{
partial void PrepareCodespacesCreateForAuthenticatedUserArguments(
global::System.Net.Http.HttpClient httpClient,
global::System.OneOf<global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant1?, global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant2?> request);
global::System.OneOf<global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant1, global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant2> request);
partial void PrepareCodespacesCreateForAuthenticatedUserRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
global::System.OneOf<global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant1?, global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant2?> request);
global::System.OneOf<global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant1, global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant2> request);
partial void ProcessCodespacesCreateForAuthenticatedUserResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -31,7 +31,7 @@ partial void ProcessCodespacesCreateForAuthenticatedUserResponseContent(
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::GitHub.Codespace> CodespacesCreateForAuthenticatedUserAsync(
global::System.OneOf<global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant1?, global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant2?> request,
global::System.OneOf<global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant1, global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant2> request,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down Expand Up @@ -105,7 +105,7 @@ partial void ProcessCodespacesCreateForAuthenticatedUserResponseContent(
public async global::System.Threading.Tasks.Task<global::GitHub.Codespace> CodespacesCreateForAuthenticatedUserAsync(
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::System.OneOf<global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant1?, global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant2?>
var request = new global::System.OneOf<global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant1, global::GitHub.CodespacesCreateForAuthenticatedUserRequestVariant2>
{
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ partial void ProcessCodespacesCreateOrUpdateSecretForAuthenticatedUserResponseCo
string secretName,
string keyId,
string? encryptedValue = default,
global::System.Collections.Generic.IList<global::System.AnyOf<int, string?>>? selectedRepositoryIds = default,
global::System.Collections.Generic.IList<global::System.AnyOf<int?, string?>>? selectedRepositoryIds = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::GitHub.CodespacesCreateOrUpdateSecretForAuthenticatedUserRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ partial void ProcessGistsCreateResponseContent(
public async global::System.Threading.Tasks.Task<global::GitHub.GistSimple> GistsCreateAsync(
global::GitHub.GistsCreateRequestFiles files,
string? description = default,
global::System.OneOf<bool, global::GitHub.GistsCreateRequestPublic?>? @public = default,
global::System.OneOf<bool?, global::GitHub.GistsCreateRequestPublic?>? @public = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::GitHub.GistsCreateRequest
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ partial void ProcessInteractionsGetRestrictionsForAuthenticatedUserResponseConte
/// </summary>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::System.AnyOf<global::GitHub.InteractionLimitResponse?, global::GitHub.InteractionsGetRestrictionsForAuthenticatedUserResponse2?>> InteractionsGetRestrictionsForAuthenticatedUserAsync(
public async global::System.Threading.Tasks.Task<global::System.AnyOf<global::GitHub.InteractionLimitResponse, global::GitHub.InteractionsGetRestrictionsForAuthenticatedUserResponse2>> InteractionsGetRestrictionsForAuthenticatedUserAsync(
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ partial void ProcessInteractionsGetRestrictionsForOrgResponseContent(
/// <param name="org"></param>
/// <param name="cancellationToken">The token to cancel the operation with</param>
/// <exception cref="global::System.InvalidOperationException"></exception>
public async global::System.Threading.Tasks.Task<global::System.AnyOf<global::GitHub.InteractionLimitResponse?, global::GitHub.InteractionsGetRestrictionsForOrgResponse2?>> InteractionsGetRestrictionsForOrgAsync(
public async global::System.Threading.Tasks.Task<global::System.AnyOf<global::GitHub.InteractionLimitResponse, global::GitHub.InteractionsGetRestrictionsForOrgResponse2>> InteractionsGetRestrictionsForOrgAsync(
string org,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
Loading

0 comments on commit f3c9405

Please sign in to comment.