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] committed Aug 29, 2024
1 parent 663db66 commit a754e5d
Show file tree
Hide file tree
Showing 103 changed files with 886 additions and 188 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 @@ -107,7 +107,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 @@ -55,7 +55,7 @@ partial void ProcessChecksCreateResponseContent(
using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/check-runs", global::System.UriKind.RelativeOrAbsolute));
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.ChecksCreateRequest);
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.OneOf);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ partial void ProcessChecksUpdateResponseContent(
using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: new global::System.Net.Http.HttpMethod("PATCH"),
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/check-runs/{checkRunId}", global::System.UriKind.RelativeOrAbsolute));
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.ChecksUpdateRequest);
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.AnyOf);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ partial void ProcessCodeScanningCreateVariantAnalysisResponseContent(
using var httpRequest = new global::System.Net.Http.HttpRequestMessage(
method: global::System.Net.Http.HttpMethod.Post,
requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/code-scanning/codeql/variant-analyses", global::System.UriKind.RelativeOrAbsolute));
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.CodeScanningCreateVariantAnalysisRequest);
var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.OneOf);
var __httpRequestContent = new global::System.Net.Http.StringContent(
content: __httpRequestContentBody,
encoding: global::System.Text.Encoding.UTF8,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,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 @@ -10,14 +10,14 @@ partial void PrepareIssuesAddLabelsArguments(
ref string owner,
ref string repo,
ref int issueNumber,
global::System.OneOf<global::GitHub.IssuesAddLabelsRequestVariant1, global::System.Collections.Generic.IList<string>, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList<global::GitHub.IssuesAddLabelsRequestVariant4Item>, string?> request);
global::System.OneOf<global::GitHub.IssuesAddLabelsRequestVariant1, global::System.Collections.Generic.IList<string>, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList<global::GitHub.IssuesAddLabelsRequestVariant4Item>, string> request);
partial void PrepareIssuesAddLabelsRequest(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpRequestMessage httpRequestMessage,
string owner,
string repo,
int issueNumber,
global::System.OneOf<global::GitHub.IssuesAddLabelsRequestVariant1, global::System.Collections.Generic.IList<string>, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList<global::GitHub.IssuesAddLabelsRequestVariant4Item>, string?> request);
global::System.OneOf<global::GitHub.IssuesAddLabelsRequestVariant1, global::System.Collections.Generic.IList<string>, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList<global::GitHub.IssuesAddLabelsRequestVariant4Item>, string> request);
partial void ProcessIssuesAddLabelsResponse(
global::System.Net.Http.HttpClient httpClient,
global::System.Net.Http.HttpResponseMessage httpResponseMessage);
Expand All @@ -41,7 +41,7 @@ partial void ProcessIssuesAddLabelsResponseContent(
string owner,
string repo,
int issueNumber,
global::System.OneOf<global::GitHub.IssuesAddLabelsRequestVariant1, global::System.Collections.Generic.IList<string>, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList<global::GitHub.IssuesAddLabelsRequestVariant4Item>, string?> request,
global::System.OneOf<global::GitHub.IssuesAddLabelsRequestVariant1, global::System.Collections.Generic.IList<string>, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList<global::GitHub.IssuesAddLabelsRequestVariant4Item>, string> request,
global::System.Threading.CancellationToken cancellationToken = default)
{
PrepareArguments(
Expand Down Expand Up @@ -126,7 +126,7 @@ partial void ProcessIssuesAddLabelsResponseContent(
int issueNumber,
global::System.Threading.CancellationToken cancellationToken = default)
{
var request = new global::System.OneOf<global::GitHub.IssuesAddLabelsRequestVariant1, global::System.Collections.Generic.IList<string>, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList<global::GitHub.IssuesAddLabelsRequestVariant4Item>, string?>
var request = new global::System.OneOf<global::GitHub.IssuesAddLabelsRequestVariant1, global::System.Collections.Generic.IList<string>, global::GitHub.IssuesAddLabelsRequestVariant3, global::System.Collections.Generic.IList<global::GitHub.IssuesAddLabelsRequestVariant4Item>, string>
{
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,11 +148,11 @@ partial void ProcessIssuesCreateResponseContent(
public async global::System.Threading.Tasks.Task<global::GitHub.Issue> IssuesCreateAsync(
string owner,
string repo,
global::System.OneOf<string?, int?> title,
global::System.OneOf<string, int?> title,
string? body = default,
string? assignee = default,
global::System.OneOf<string?, int?>? milestone = default,
global::System.Collections.Generic.IList<global::System.OneOf<string?, global::GitHub.IssuesCreateRequestLabel>>? labels = default,
global::System.OneOf<string, int?>? milestone = default,
global::System.Collections.Generic.IList<global::System.OneOf<string, global::GitHub.IssuesCreateRequestLabel>>? labels = default,
global::System.Collections.Generic.IList<string>? assignees = default,
global::System.Threading.CancellationToken cancellationToken = default)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ partial void ProcessIssuesListEventsResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.IListIssueEventForIssue) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.IListNullableIssueEventForIssue) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ partial void ProcessIssuesListEventsForTimelineResponseContent(
}

return
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.IListTimelineIssueEvents) ??
global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.IListNullableTimelineIssueEvents) ??
throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" ");
}
}
Expand Down
Loading

0 comments on commit a754e5d

Please sign in to comment.