diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsDeleteActionsCacheByKey.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsDeleteActionsCacheByKey.g.cs index 43afe51b..798391d6 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsDeleteActionsCacheByKey.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsDeleteActionsCacheByKey.g.cs @@ -42,7 +42,7 @@ partial void ProcessActionsDeleteActionsCacheByKeyResponseContent( string owner, string repo, string key, - string? @ref, + string? @ref = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetActionsCacheList.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetActionsCacheList.g.cs index 9f96cd14..8df688b0 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetActionsCacheList.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetActionsCacheList.g.cs @@ -61,12 +61,12 @@ partial void ProcessActionsGetActionsCacheListResponseContent( public async global::System.Threading.Tasks.Task ActionsGetActionsCacheListAsync( string owner, string repo, - int perPage, - int page, - string? @ref, - string? key, - global::GitHub.ActionsGetActionsCacheListSort? sort, - global::GitHub.ActionsGetActionsCacheListDirection? direction, + int perPage = 30, + int page = 1, + string? @ref = default, + string? key = default, + global::GitHub.ActionsGetActionsCacheListSort? sort = global::GitHub.ActionsGetActionsCacheListSort.LastAccessedAt, + global::GitHub.ActionsGetActionsCacheListDirection? direction = global::GitHub.ActionsGetActionsCacheListDirection.Desc, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -84,7 +84,7 @@ partial void ProcessActionsGetActionsCacheListResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/actions/caches?per_page={perPage}&page={page}&ref={@ref}&key={key}&sort={sort}&direction={direction}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/actions/caches?per_page={perPage}&page={page}&ref={@ref}&key={key}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetActionsCacheUsageByRepoForOrg.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetActionsCacheUsageByRepoForOrg.g.cs index 368b1dad..20badb2b 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetActionsCacheUsageByRepoForOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetActionsCacheUsageByRepoForOrg.g.cs @@ -42,8 +42,8 @@ partial void ProcessActionsGetActionsCacheUsageByRepoForOrgResponseContent( /// public async global::System.Threading.Tasks.Task ActionsGetActionsCacheUsageByRepoForOrgAsync( string org, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflowRun.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflowRun.g.cs index 83ee9e3b..96a03a0b 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflowRun.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflowRun.g.cs @@ -45,7 +45,7 @@ partial void ProcessActionsGetWorkflowRunResponseContent( string owner, string repo, int runId, - bool excludePullRequests, + bool excludePullRequests = false, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflowRunAttempt.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflowRunAttempt.g.cs index adc22396..bc11ccf8 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflowRunAttempt.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsGetWorkflowRunAttempt.g.cs @@ -49,7 +49,7 @@ partial void ProcessActionsGetWorkflowRunAttemptResponseContent( string repo, int runId, int attemptNumber, - bool excludePullRequests, + bool excludePullRequests = false, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListArtifactsForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListArtifactsForRepo.g.cs index 7d8d2700..04ff6979 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListArtifactsForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListArtifactsForRepo.g.cs @@ -49,9 +49,9 @@ partial void ProcessActionsListArtifactsForRepoResponseContent( public async global::System.Threading.Tasks.Task ActionsListArtifactsForRepoAsync( string owner, string repo, - int perPage, - int page, - string? name, + int perPage = 30, + int page = 1, + string? name = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListEnvironmentSecrets.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListEnvironmentSecrets.g.cs index b75a4222..aa85d93a 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListEnvironmentSecrets.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListEnvironmentSecrets.g.cs @@ -51,8 +51,8 @@ partial void ProcessActionsListEnvironmentSecretsResponseContent( string owner, string repo, string environmentName, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListEnvironmentVariables.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListEnvironmentVariables.g.cs index ba64e831..146be9c3 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListEnvironmentVariables.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListEnvironmentVariables.g.cs @@ -50,8 +50,8 @@ partial void ProcessActionsListEnvironmentVariablesResponseContent( string owner, string repo, string environmentName, - int perPage, - int page, + int perPage = 10, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListJobsForWorkflowRun.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListJobsForWorkflowRun.g.cs index b51e7ff9..9ed0219f 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListJobsForWorkflowRun.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListJobsForWorkflowRun.g.cs @@ -56,9 +56,9 @@ partial void ProcessActionsListJobsForWorkflowRunResponseContent( string owner, string repo, int runId, - global::GitHub.ActionsListJobsForWorkflowRunFilter? filter, - int perPage, - int page, + global::GitHub.ActionsListJobsForWorkflowRunFilter? filter = global::GitHub.ActionsListJobsForWorkflowRunFilter.Latest, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -74,7 +74,7 @@ partial void ProcessActionsListJobsForWorkflowRunResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/actions/runs/{runId}/jobs?filter={filter}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/actions/runs/{runId}/jobs?filter={(global::System.Uri.EscapeDataString(filter?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListJobsForWorkflowRunAttempt.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListJobsForWorkflowRunAttempt.g.cs index 153b6e44..969c493e 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListJobsForWorkflowRunAttempt.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListJobsForWorkflowRunAttempt.g.cs @@ -55,8 +55,8 @@ partial void ProcessActionsListJobsForWorkflowRunAttemptResponseContent( string repo, int runId, int attemptNumber, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListOrgSecrets.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListOrgSecrets.g.cs index f43e8086..7127e27b 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListOrgSecrets.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListOrgSecrets.g.cs @@ -43,8 +43,8 @@ partial void ProcessActionsListOrgSecretsResponseContent( /// public async global::System.Threading.Tasks.Task ActionsListOrgSecretsAsync( string org, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListOrgVariables.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListOrgVariables.g.cs index 00561381..79c486d5 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListOrgVariables.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListOrgVariables.g.cs @@ -42,8 +42,8 @@ partial void ProcessActionsListOrgVariablesResponseContent( /// public async global::System.Threading.Tasks.Task ActionsListOrgVariablesAsync( string org, - int perPage, - int page, + int perPage = 10, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoOrganizationSecrets.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoOrganizationSecrets.g.cs index b4a86ae4..8b6bc16d 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoOrganizationSecrets.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoOrganizationSecrets.g.cs @@ -47,8 +47,8 @@ partial void ProcessActionsListRepoOrganizationSecretsResponseContent( public async global::System.Threading.Tasks.Task ActionsListRepoOrganizationSecretsAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoOrganizationVariables.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoOrganizationVariables.g.cs index 0590f584..25532d5d 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoOrganizationVariables.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoOrganizationVariables.g.cs @@ -46,8 +46,8 @@ partial void ProcessActionsListRepoOrganizationVariablesResponseContent( public async global::System.Threading.Tasks.Task ActionsListRepoOrganizationVariablesAsync( string owner, string repo, - int perPage, - int page, + int perPage = 10, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoSecrets.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoSecrets.g.cs index 5af2acfe..40c5e7cb 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoSecrets.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoSecrets.g.cs @@ -47,8 +47,8 @@ partial void ProcessActionsListRepoSecretsResponseContent( public async global::System.Threading.Tasks.Task ActionsListRepoSecretsAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoVariables.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoVariables.g.cs index d9b9cd46..bc556372 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoVariables.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoVariables.g.cs @@ -46,8 +46,8 @@ partial void ProcessActionsListRepoVariablesResponseContent( public async global::System.Threading.Tasks.Task ActionsListRepoVariablesAsync( string owner, string repo, - int perPage, - int page, + int perPage = 10, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoWorkflows.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoWorkflows.g.cs index 27190e66..c5d2aa3e 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoWorkflows.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListRepoWorkflows.g.cs @@ -46,8 +46,8 @@ partial void ProcessActionsListRepoWorkflowsResponseContent( public async global::System.Threading.Tasks.Task ActionsListRepoWorkflowsAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelectedReposForOrgSecret.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelectedReposForOrgSecret.g.cs index 159231f0..71c049df 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelectedReposForOrgSecret.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelectedReposForOrgSecret.g.cs @@ -47,8 +47,8 @@ partial void ProcessActionsListSelectedReposForOrgSecretResponseContent( public async global::System.Threading.Tasks.Task ActionsListSelectedReposForOrgSecretAsync( string org, string secretName, - int page, - int perPage, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelectedReposForOrgVariable.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelectedReposForOrgVariable.g.cs index 8988eec4..a83ef764 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelectedReposForOrgVariable.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelectedReposForOrgVariable.g.cs @@ -47,8 +47,8 @@ partial void ProcessActionsListSelectedReposForOrgVariableResponseContent( public async global::System.Threading.Tasks.Task ActionsListSelectedReposForOrgVariableAsync( string org, string name, - int page, - int perPage, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.g.cs index 94b6f199..54a0c74c 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelectedRepositoriesEnabledGithubActionsOrganization.g.cs @@ -41,8 +41,8 @@ partial void ProcessActionsListSelectedRepositoriesEnabledGithubActionsOrganizat /// public async global::System.Threading.Tasks.Task ActionsListSelectedRepositoriesEnabledGithubActionsOrganizationAsync( string org, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelfHostedRunnersForOrg.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelfHostedRunnersForOrg.g.cs index 1a2e631b..5433cadf 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelfHostedRunnersForOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelfHostedRunnersForOrg.g.cs @@ -44,10 +44,10 @@ partial void ProcessActionsListSelfHostedRunnersForOrgResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ActionsListSelfHostedRunnersForOrgAsync( - string? name, string org, - int perPage, - int page, + string? name = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelfHostedRunnersForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelfHostedRunnersForRepo.g.cs index 8be56f29..b1cd3e3a 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelfHostedRunnersForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListSelfHostedRunnersForRepo.g.cs @@ -47,11 +47,11 @@ partial void ProcessActionsListSelfHostedRunnersForRepoResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task ActionsListSelfHostedRunnersForRepoAsync( - string? name, string owner, string repo, - int perPage, - int page, + string? name = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRunArtifacts.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRunArtifacts.g.cs index 633e75e3..ba60375a 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRunArtifacts.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRunArtifacts.g.cs @@ -53,9 +53,9 @@ partial void ProcessActionsListWorkflowRunArtifactsResponseContent( string owner, string repo, int runId, - int perPage, - int page, - string? name, + int perPage = 30, + int page = 1, + string? name = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRuns.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRuns.g.cs index 85568fd7..8f8e7b91 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRuns.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRuns.g.cs @@ -76,16 +76,16 @@ partial void ProcessActionsListWorkflowRunsResponseContent( string owner, string repo, global::System.OneOf workflowId, - string? actor, - string? branch, - string? @event, - global::GitHub.ActionsListWorkflowRunsStatus? status, - int perPage, - int page, - global::System.DateTime created, - bool excludePullRequests, - int checkSuiteId, - string? headSha, + string? actor = default, + string? branch = default, + string? @event = default, + global::GitHub.ActionsListWorkflowRunsStatus? status = default, + int perPage = 30, + int page = 1, + global::System.DateTime created = default, + bool excludePullRequests = false, + int checkSuiteId = default, + string? headSha = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -108,7 +108,7 @@ partial void ProcessActionsListWorkflowRunsResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/actions/workflows/{workflowId}/runs?actor={actor}&branch={branch}&event={@event}&status={status}&per_page={perPage}&page={page}&created={created:yyyy-MM-ddTHH:mm:ssZ}&exclude_pull_requests={excludePullRequests}&check_suite_id={checkSuiteId}&head_sha={headSha}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/actions/workflows/{workflowId}/runs?actor={actor}&branch={branch}&event={@event}&status={(global::System.Uri.EscapeDataString(status?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}&created={created:yyyy-MM-ddTHH:mm:ssZ}&exclude_pull_requests={excludePullRequests}&check_suite_id={checkSuiteId}&head_sha={headSha}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRunsForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRunsForRepo.g.cs index 9163eddf..1eae1df1 100644 --- a/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRunsForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActionsClient.ActionsListWorkflowRunsForRepo.g.cs @@ -73,16 +73,16 @@ partial void ProcessActionsListWorkflowRunsForRepoResponseContent( public async global::System.Threading.Tasks.Task ActionsListWorkflowRunsForRepoAsync( string owner, string repo, - string? actor, - string? branch, - string? @event, - global::GitHub.ActionsListWorkflowRunsForRepoStatus? status, - int perPage, - int page, - global::System.DateTime created, - bool excludePullRequests, - int checkSuiteId, - string? headSha, + string? actor = default, + string? branch = default, + string? @event = default, + global::GitHub.ActionsListWorkflowRunsForRepoStatus? status = default, + int perPage = 30, + int page = 1, + global::System.DateTime created = default, + bool excludePullRequests = false, + int checkSuiteId = default, + string? headSha = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -104,7 +104,7 @@ partial void ProcessActionsListWorkflowRunsForRepoResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/actions/runs?actor={actor}&branch={branch}&event={@event}&status={status}&per_page={perPage}&page={page}&created={created:yyyy-MM-ddTHH:mm:ssZ}&exclude_pull_requests={excludePullRequests}&check_suite_id={checkSuiteId}&head_sha={headSha}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/actions/runs?actor={actor}&branch={branch}&event={@event}&status={(global::System.Uri.EscapeDataString(status?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}&created={created:yyyy-MM-ddTHH:mm:ssZ}&exclude_pull_requests={excludePullRequests}&check_suite_id={checkSuiteId}&head_sha={headSha}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListEventsForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListEventsForAuthenticatedUser.g.cs index 7c0f807a..1cd81f8b 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListEventsForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListEventsForAuthenticatedUser.g.cs @@ -42,8 +42,8 @@ partial void ProcessActivityListEventsForAuthenticatedUserResponseContent( /// public async global::System.Threading.Tasks.Task> ActivityListEventsForAuthenticatedUserAsync( string username, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListNotificationsForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListNotificationsForAuthenticatedUser.g.cs index 85149cda..6ad8b754 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListNotificationsForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListNotificationsForAuthenticatedUser.g.cs @@ -52,12 +52,12 @@ partial void ProcessActivityListNotificationsForAuthenticatedUserResponseContent /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> ActivityListNotificationsForAuthenticatedUserAsync( - bool all, - bool participating, - global::System.DateTime since, - global::System.DateTime before, - int page, - int perPage, + bool all = false, + bool participating = false, + global::System.DateTime since = default, + global::System.DateTime before = default, + int page = 1, + int perPage = 50, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListOrgEventsForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListOrgEventsForAuthenticatedUser.g.cs index 30b16326..50e08021 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListOrgEventsForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListOrgEventsForAuthenticatedUser.g.cs @@ -46,8 +46,8 @@ partial void ProcessActivityListOrgEventsForAuthenticatedUserResponseContent( public async global::System.Threading.Tasks.Task> ActivityListOrgEventsForAuthenticatedUserAsync( string username, string org, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicEvents.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicEvents.g.cs index 9232a713..c4e33929 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicEvents.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicEvents.g.cs @@ -37,8 +37,8 @@ partial void ProcessActivityListPublicEventsResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> ActivityListPublicEventsAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicEventsForRepoNetwork.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicEventsForRepoNetwork.g.cs index d296dde7..cb98fd4d 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicEventsForRepoNetwork.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicEventsForRepoNetwork.g.cs @@ -45,8 +45,8 @@ partial void ProcessActivityListPublicEventsForRepoNetworkResponseContent( public async global::System.Threading.Tasks.Task> ActivityListPublicEventsForRepoNetworkAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicEventsForUser.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicEventsForUser.g.cs index 61d6a84e..8d7f7bb4 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicEventsForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicEventsForUser.g.cs @@ -41,8 +41,8 @@ partial void ProcessActivityListPublicEventsForUserResponseContent( /// public async global::System.Threading.Tasks.Task> ActivityListPublicEventsForUserAsync( string username, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicOrgEvents.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicOrgEvents.g.cs index 86a35fbb..a5328520 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicOrgEvents.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListPublicOrgEvents.g.cs @@ -41,8 +41,8 @@ partial void ProcessActivityListPublicOrgEventsResponseContent( /// public async global::System.Threading.Tasks.Task> ActivityListPublicOrgEventsAsync( string org, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReceivedEventsForUser.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReceivedEventsForUser.g.cs index 7a01cf8d..ffd4b4b3 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReceivedEventsForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReceivedEventsForUser.g.cs @@ -43,8 +43,8 @@ partial void ProcessActivityListReceivedEventsForUserResponseContent( /// public async global::System.Threading.Tasks.Task> ActivityListReceivedEventsForUserAsync( string username, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReceivedPublicEventsForUser.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReceivedPublicEventsForUser.g.cs index 8fa5a121..3d973370 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReceivedPublicEventsForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReceivedPublicEventsForUser.g.cs @@ -41,8 +41,8 @@ partial void ProcessActivityListReceivedPublicEventsForUserResponseContent( /// public async global::System.Threading.Tasks.Task> ActivityListReceivedPublicEventsForUserAsync( string username, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListRepoEvents.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListRepoEvents.g.cs index d4d96c07..636c1402 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListRepoEvents.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListRepoEvents.g.cs @@ -45,8 +45,8 @@ partial void ProcessActivityListRepoEventsResponseContent( public async global::System.Threading.Tasks.Task> ActivityListRepoEventsAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListRepoNotificationsForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListRepoNotificationsForAuthenticatedUser.g.cs index b0b2aa85..11c61b9a 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListRepoNotificationsForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListRepoNotificationsForAuthenticatedUser.g.cs @@ -60,12 +60,12 @@ partial void ProcessActivityListRepoNotificationsForAuthenticatedUserResponseCon public async global::System.Threading.Tasks.Task> ActivityListRepoNotificationsForAuthenticatedUserAsync( string owner, string repo, - bool all, - bool participating, - global::System.DateTime since, - global::System.DateTime before, - int perPage, - int page, + bool all = false, + bool participating = false, + global::System.DateTime since = default, + global::System.DateTime before = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReposStarredByAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReposStarredByAuthenticatedUser.g.cs index ec3ee23a..b0df7910 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReposStarredByAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReposStarredByAuthenticatedUser.g.cs @@ -48,10 +48,10 @@ partial void ProcessActivityListReposStarredByAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> ActivityListReposStarredByAuthenticatedUserAsync( - global::GitHub.ActivityListReposStarredByAuthenticatedUserSort? sort, - global::GitHub.ActivityListReposStarredByAuthenticatedUserDirection? direction, - int perPage, - int page, + global::GitHub.ActivityListReposStarredByAuthenticatedUserSort? sort = global::GitHub.ActivityListReposStarredByAuthenticatedUserSort.Created, + global::GitHub.ActivityListReposStarredByAuthenticatedUserDirection? direction = global::GitHub.ActivityListReposStarredByAuthenticatedUserDirection.Desc, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -65,7 +65,7 @@ partial void ProcessActivityListReposStarredByAuthenticatedUserResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/user/starred?sort={sort}&direction={direction}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/user/starred?sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReposStarredByUser.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReposStarredByUser.g.cs index 60752eab..00df763f 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReposStarredByUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReposStarredByUser.g.cs @@ -52,10 +52,10 @@ partial void ProcessActivityListReposStarredByUserResponseContent( /// public async global::System.Threading.Tasks.Task, global::System.Collections.Generic.IList>> ActivityListReposStarredByUserAsync( string username, - global::GitHub.ActivityListReposStarredByUserSort? sort, - global::GitHub.ActivityListReposStarredByUserDirection? direction, - int perPage, - int page, + global::GitHub.ActivityListReposStarredByUserSort? sort = global::GitHub.ActivityListReposStarredByUserSort.Created, + global::GitHub.ActivityListReposStarredByUserDirection? direction = global::GitHub.ActivityListReposStarredByUserDirection.Desc, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -70,7 +70,7 @@ partial void ProcessActivityListReposStarredByUserResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/users/{username}/starred?sort={sort}&direction={direction}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/users/{username}/starred?sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReposWatchedByUser.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReposWatchedByUser.g.cs index 6cbb2856..695a249b 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReposWatchedByUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListReposWatchedByUser.g.cs @@ -40,8 +40,8 @@ partial void ProcessActivityListReposWatchedByUserResponseContent( /// public async global::System.Threading.Tasks.Task> ActivityListReposWatchedByUserAsync( string username, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListStargazersForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListStargazersForRepo.g.cs index c977b5d4..78932e34 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListStargazersForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListStargazersForRepo.g.cs @@ -46,8 +46,8 @@ partial void ProcessActivityListStargazersForRepoResponseContent( public async global::System.Threading.Tasks.Task, global::System.Collections.Generic.IList>> ActivityListStargazersForRepoAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListWatchedReposForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListWatchedReposForAuthenticatedUser.g.cs index de1d21fb..176c6f24 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListWatchedReposForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListWatchedReposForAuthenticatedUser.g.cs @@ -36,8 +36,8 @@ partial void ProcessActivityListWatchedReposForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> ActivityListWatchedReposForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListWatchersForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListWatchersForRepo.g.cs index d0c62c6c..697f8650 100644 --- a/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListWatchersForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ActivityClient.ActivityListWatchersForRepo.g.cs @@ -44,8 +44,8 @@ partial void ProcessActivityListWatchersForRepoResponseContent( public async global::System.Threading.Tasks.Task> ActivityListWatchersForRepoAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListAccountsForPlan.g.cs b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListAccountsForPlan.g.cs index 0f30c84e..bd6096e8 100644 --- a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListAccountsForPlan.g.cs +++ b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListAccountsForPlan.g.cs @@ -49,10 +49,10 @@ partial void ProcessAppsListAccountsForPlanResponseContent( /// public async global::System.Threading.Tasks.Task> AppsListAccountsForPlanAsync( int planId, - global::GitHub.AppsListAccountsForPlanSort? sort, - global::GitHub.AppsListAccountsForPlanDirection? direction, - int perPage, - int page, + global::GitHub.AppsListAccountsForPlanSort? sort = global::GitHub.AppsListAccountsForPlanSort.Created, + global::GitHub.AppsListAccountsForPlanDirection? direction = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -67,7 +67,7 @@ partial void ProcessAppsListAccountsForPlanResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/marketplace_listing/plans/{planId}/accounts?sort={sort}&direction={direction}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/marketplace_listing/plans/{planId}/accounts?sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListAccountsForPlanStubbed.g.cs b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListAccountsForPlanStubbed.g.cs index dc4ad5fe..c082c2a1 100644 --- a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListAccountsForPlanStubbed.g.cs +++ b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListAccountsForPlanStubbed.g.cs @@ -49,10 +49,10 @@ partial void ProcessAppsListAccountsForPlanStubbedResponseContent( /// public async global::System.Threading.Tasks.Task> AppsListAccountsForPlanStubbedAsync( int planId, - global::GitHub.AppsListAccountsForPlanStubbedSort? sort, - global::GitHub.AppsListAccountsForPlanStubbedDirection? direction, - int perPage, - int page, + global::GitHub.AppsListAccountsForPlanStubbedSort? sort = global::GitHub.AppsListAccountsForPlanStubbedSort.Created, + global::GitHub.AppsListAccountsForPlanStubbedDirection? direction = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -67,7 +67,7 @@ partial void ProcessAppsListAccountsForPlanStubbedResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/marketplace_listing/stubbed/plans/{planId}/accounts?sort={sort}&direction={direction}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/marketplace_listing/stubbed/plans/{planId}/accounts?sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallationReposForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallationReposForAuthenticatedUser.g.cs index f24df2ce..830f381c 100644 --- a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallationReposForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallationReposForAuthenticatedUser.g.cs @@ -42,8 +42,8 @@ partial void ProcessAppsListInstallationReposForAuthenticatedUserResponseContent /// public async global::System.Threading.Tasks.Task AppsListInstallationReposForAuthenticatedUserAsync( int installationId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallationRequestsForAuthenticatedApp.g.cs b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallationRequestsForAuthenticatedApp.g.cs index cf171894..09174c26 100644 --- a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallationRequestsForAuthenticatedApp.g.cs +++ b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallationRequestsForAuthenticatedApp.g.cs @@ -36,8 +36,8 @@ partial void ProcessAppsListInstallationRequestsForAuthenticatedAppResponseConte /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> AppsListInstallationRequestsForAuthenticatedAppAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallations.g.cs b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallations.g.cs index 8f104948..dc959a33 100644 --- a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallations.g.cs +++ b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallations.g.cs @@ -43,10 +43,10 @@ partial void ProcessAppsListInstallationsResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> AppsListInstallationsAsync( - int perPage, - int page, - global::System.DateTime since, - string? outdated, + int perPage = 30, + int page = 1, + global::System.DateTime since = default, + string? outdated = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallationsForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallationsForAuthenticatedUser.g.cs index aa5dca89..4421abe9 100644 --- a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallationsForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListInstallationsForAuthenticatedUser.g.cs @@ -38,8 +38,8 @@ partial void ProcessAppsListInstallationsForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task AppsListInstallationsForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListPlans.g.cs b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListPlans.g.cs index cb73203a..26ce896f 100644 --- a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListPlans.g.cs +++ b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListPlans.g.cs @@ -37,8 +37,8 @@ partial void ProcessAppsListPlansResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> AppsListPlansAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListPlansStubbed.g.cs b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListPlansStubbed.g.cs index 92c535a5..536d058c 100644 --- a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListPlansStubbed.g.cs +++ b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListPlansStubbed.g.cs @@ -37,8 +37,8 @@ partial void ProcessAppsListPlansStubbedResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> AppsListPlansStubbedAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListReposAccessibleToInstallation.g.cs b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListReposAccessibleToInstallation.g.cs index 9c989859..f6de8111 100644 --- a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListReposAccessibleToInstallation.g.cs +++ b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListReposAccessibleToInstallation.g.cs @@ -36,8 +36,8 @@ partial void ProcessAppsListReposAccessibleToInstallationResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task AppsListReposAccessibleToInstallationAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListSubscriptionsForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListSubscriptionsForAuthenticatedUser.g.cs index 6bec6129..ba465646 100644 --- a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListSubscriptionsForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListSubscriptionsForAuthenticatedUser.g.cs @@ -36,8 +36,8 @@ partial void ProcessAppsListSubscriptionsForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> AppsListSubscriptionsForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListSubscriptionsForAuthenticatedUserStubbed.g.cs b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListSubscriptionsForAuthenticatedUserStubbed.g.cs index 0d4dbea7..ab767306 100644 --- a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListSubscriptionsForAuthenticatedUserStubbed.g.cs +++ b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListSubscriptionsForAuthenticatedUserStubbed.g.cs @@ -36,8 +36,8 @@ partial void ProcessAppsListSubscriptionsForAuthenticatedUserStubbedResponseCont /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> AppsListSubscriptionsForAuthenticatedUserStubbedAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListWebhookDeliveries.g.cs b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListWebhookDeliveries.g.cs index b43a447d..80c36c14 100644 --- a/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListWebhookDeliveries.g.cs +++ b/src/libs/GitHub/Generated/GitHub.AppsClient.AppsListWebhookDeliveries.g.cs @@ -38,9 +38,9 @@ partial void ProcessAppsListWebhookDeliveriesResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> AppsListWebhookDeliveriesAsync( - int perPage, - string? cursor, - bool redelivery, + int perPage = 30, + string? cursor = default, + bool redelivery = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksCreate.g.cs b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksCreate.g.cs index ee4f9589..8872a6d4 100644 --- a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksCreate.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksCreate.g.cs @@ -44,6 +44,8 @@ partial void ProcessChecksCreateResponseContent( global::GitHub.ChecksCreateRequest request, global::System.Threading.CancellationToken cancellationToken = default) { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + PrepareArguments( client: _httpClient); PrepareChecksCreateArguments( @@ -55,7 +57,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.OneOf); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.ChecksCreateRequest); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListAnnotations.g.cs b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListAnnotations.g.cs index 47ec8456..602bc4d0 100644 --- a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListAnnotations.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListAnnotations.g.cs @@ -49,8 +49,8 @@ partial void ProcessChecksListAnnotationsResponseContent( string owner, string repo, int checkRunId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListForRef.g.cs b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListForRef.g.cs index 57e0dea0..ddd5984a 100644 --- a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListForRef.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListForRef.g.cs @@ -66,12 +66,12 @@ partial void ProcessChecksListForRefResponseContent( string owner, string repo, string @ref, - string? checkName, - global::GitHub.ChecksListForRefStatus? status, - global::GitHub.ChecksListForRefFilter? filter, - int perPage, - int page, - int appId, + string? checkName = default, + global::GitHub.ChecksListForRefStatus? status = default, + global::GitHub.ChecksListForRefFilter? filter = global::GitHub.ChecksListForRefFilter.Latest, + int perPage = 30, + int page = 1, + int appId = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -90,7 +90,7 @@ partial void ProcessChecksListForRefResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/commits/{@ref}/check-runs?check_name={checkName}&status={status}&filter={filter}&per_page={perPage}&page={page}&app_id={appId}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/commits/{@ref}/check-runs?check_name={checkName}&status={(global::System.Uri.EscapeDataString(status?.ToValueString() ?? string.Empty))}&filter={(global::System.Uri.EscapeDataString(filter?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}&app_id={appId}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListForSuite.g.cs b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListForSuite.g.cs index 6095d56f..c56b4f50 100644 --- a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListForSuite.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListForSuite.g.cs @@ -62,11 +62,11 @@ partial void ProcessChecksListForSuiteResponseContent( string owner, string repo, int checkSuiteId, - string? checkName, - global::GitHub.ChecksListForSuiteStatus? status, - global::GitHub.ChecksListForSuiteFilter? filter, - int perPage, - int page, + string? checkName = default, + global::GitHub.ChecksListForSuiteStatus? status = default, + global::GitHub.ChecksListForSuiteFilter? filter = global::GitHub.ChecksListForSuiteFilter.Latest, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -84,7 +84,7 @@ partial void ProcessChecksListForSuiteResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/check-suites/{checkSuiteId}/check-runs?check_name={checkName}&status={status}&filter={filter}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/check-suites/{checkSuiteId}/check-runs?check_name={checkName}&status={(global::System.Uri.EscapeDataString(status?.ToValueString() ?? string.Empty))}&filter={(global::System.Uri.EscapeDataString(filter?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListSuitesForRef.g.cs b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListSuitesForRef.g.cs index 87727db4..ae77c326 100644 --- a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListSuitesForRef.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksListSuitesForRef.g.cs @@ -57,10 +57,10 @@ partial void ProcessChecksListSuitesForRefResponseContent( string owner, string repo, string @ref, - int appId, - string? checkName, - int perPage, - int page, + int appId = default, + string? checkName = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksUpdate.g.cs b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksUpdate.g.cs index b5f0ea38..8e86c858 100644 --- a/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksUpdate.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ChecksClient.ChecksUpdate.g.cs @@ -47,6 +47,8 @@ partial void ProcessChecksUpdateResponseContent( global::GitHub.ChecksUpdateRequest request, global::System.Threading.CancellationToken cancellationToken = default) { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + PrepareArguments( client: _httpClient); PrepareChecksUpdateArguments( @@ -59,7 +61,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.AnyOf); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.ChecksUpdateRequest); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/GitHub/Generated/GitHub.ClassroomClient.ClassroomListAcceptedAssigmentsForAnAssignment.g.cs b/src/libs/GitHub/Generated/GitHub.ClassroomClient.ClassroomListAcceptedAssigmentsForAnAssignment.g.cs index ca8e6b56..922522af 100644 --- a/src/libs/GitHub/Generated/GitHub.ClassroomClient.ClassroomListAcceptedAssigmentsForAnAssignment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ClassroomClient.ClassroomListAcceptedAssigmentsForAnAssignment.g.cs @@ -40,8 +40,8 @@ partial void ProcessClassroomListAcceptedAssigmentsForAnAssignmentResponseConten /// public async global::System.Threading.Tasks.Task> ClassroomListAcceptedAssigmentsForAnAssignmentAsync( int assignmentId, - int page, - int perPage, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ClassroomClient.ClassroomListAssignmentsForAClassroom.g.cs b/src/libs/GitHub/Generated/GitHub.ClassroomClient.ClassroomListAssignmentsForAClassroom.g.cs index af88e260..95bb3b37 100644 --- a/src/libs/GitHub/Generated/GitHub.ClassroomClient.ClassroomListAssignmentsForAClassroom.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ClassroomClient.ClassroomListAssignmentsForAClassroom.g.cs @@ -40,8 +40,8 @@ partial void ProcessClassroomListAssignmentsForAClassroomResponseContent( /// public async global::System.Threading.Tasks.Task> ClassroomListAssignmentsForAClassroomAsync( int classroomId, - int page, - int perPage, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ClassroomClient.ClassroomListClassrooms.g.cs b/src/libs/GitHub/Generated/GitHub.ClassroomClient.ClassroomListClassrooms.g.cs index 853dbbc5..12b34df0 100644 --- a/src/libs/GitHub/Generated/GitHub.ClassroomClient.ClassroomListClassrooms.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ClassroomClient.ClassroomListClassrooms.g.cs @@ -36,8 +36,8 @@ partial void ProcessClassroomListClassroomsResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> ClassroomListClassroomsAsync( - int page, - int perPage, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningCreateVariantAnalysis.g.cs b/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningCreateVariantAnalysis.g.cs index 1deb73cc..7a0f0a0f 100644 --- a/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningCreateVariantAnalysis.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningCreateVariantAnalysis.g.cs @@ -44,6 +44,8 @@ partial void ProcessCodeScanningCreateVariantAnalysisResponseContent( global::GitHub.CodeScanningCreateVariantAnalysisRequest request, global::System.Threading.CancellationToken cancellationToken = default) { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + PrepareArguments( client: _httpClient); PrepareCodeScanningCreateVariantAnalysisArguments( @@ -55,7 +57,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.OneOf); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.CodeScanningCreateVariantAnalysisRequest); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningDeleteAnalysis.g.cs b/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningDeleteAnalysis.g.cs index 7f113739..4fa4eec4 100644 --- a/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningDeleteAnalysis.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningDeleteAnalysis.g.cs @@ -91,7 +91,7 @@ partial void ProcessCodeScanningDeleteAnalysisResponseContent( string owner, string repo, int analysisId, - string? confirmDelete, + string? confirmDelete = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListAlertInstances.g.cs b/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListAlertInstances.g.cs index f244607a..0ed3144c 100644 --- a/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListAlertInstances.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListAlertInstances.g.cs @@ -57,9 +57,9 @@ partial void ProcessCodeScanningListAlertInstancesResponseContent( string owner, string repo, int alertNumber, - int page, - int perPage, - string? @ref, + int page = 1, + int perPage = 30, + string? @ref = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListAlertsForOrg.g.cs b/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListAlertsForOrg.g.cs index 3f85ee54..44489ba8 100644 --- a/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListAlertsForOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListAlertsForOrg.g.cs @@ -78,16 +78,16 @@ partial void ProcessCodeScanningListAlertsForOrgResponseContent( /// public async global::System.Threading.Tasks.Task> CodeScanningListAlertsForOrgAsync( string org, - string? toolName, - string? toolGuid, - string? before, - string? after, - int page, - int perPage, - global::GitHub.CodeScanningListAlertsForOrgDirection? direction, - global::GitHub.CodeScanningAlertStateQuery? state, - global::GitHub.CodeScanningListAlertsForOrgSort? sort, - global::GitHub.CodeScanningAlertSeverity? severity, + string? toolName = default, + string? toolGuid = default, + string? before = default, + string? after = default, + int page = 1, + int perPage = 30, + global::GitHub.CodeScanningListAlertsForOrgDirection? direction = global::GitHub.CodeScanningListAlertsForOrgDirection.Desc, + global::GitHub.CodeScanningAlertStateQuery? state = default, + global::GitHub.CodeScanningListAlertsForOrgSort? sort = global::GitHub.CodeScanningListAlertsForOrgSort.Created, + global::GitHub.CodeScanningAlertSeverity? severity = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -108,7 +108,7 @@ partial void ProcessCodeScanningListAlertsForOrgResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/code-scanning/alerts?tool_name={toolName}&tool_guid={toolGuid}&before={before}&after={after}&page={page}&per_page={perPage}&direction={direction}&state={state}&sort={sort}&severity={severity}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/code-scanning/alerts?tool_name={toolName}&tool_guid={toolGuid}&before={before}&after={after}&page={page}&per_page={perPage}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&severity={(global::System.Uri.EscapeDataString(severity?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListAlertsForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListAlertsForRepo.g.cs index 6f563a19..969c19f9 100644 --- a/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListAlertsForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListAlertsForRepo.g.cs @@ -84,15 +84,15 @@ partial void ProcessCodeScanningListAlertsForRepoResponseContent( public async global::System.Threading.Tasks.Task> CodeScanningListAlertsForRepoAsync( string owner, string repo, - string? toolName, - string? toolGuid, - int page, - int perPage, - string? @ref, - global::GitHub.CodeScanningListAlertsForRepoDirection? direction, - global::GitHub.CodeScanningListAlertsForRepoSort? sort, - global::GitHub.CodeScanningAlertStateQuery? state, - global::GitHub.CodeScanningAlertSeverity? severity, + string? toolName = default, + string? toolGuid = default, + int page = 1, + int perPage = 30, + string? @ref = default, + global::GitHub.CodeScanningListAlertsForRepoDirection? direction = global::GitHub.CodeScanningListAlertsForRepoDirection.Desc, + global::GitHub.CodeScanningListAlertsForRepoSort? sort = global::GitHub.CodeScanningListAlertsForRepoSort.Created, + global::GitHub.CodeScanningAlertStateQuery? state = default, + global::GitHub.CodeScanningAlertSeverity? severity = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -113,7 +113,7 @@ partial void ProcessCodeScanningListAlertsForRepoResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/code-scanning/alerts?tool_name={toolName}&tool_guid={toolGuid}&page={page}&per_page={perPage}&ref={@ref}&direction={direction}&sort={sort}&state={state}&severity={severity}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/code-scanning/alerts?tool_name={toolName}&tool_guid={toolGuid}&page={page}&per_page={perPage}&ref={@ref}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&severity={(global::System.Uri.EscapeDataString(severity?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListRecentAnalyses.g.cs b/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListRecentAnalyses.g.cs index ea5fa5a9..bf065a97 100644 --- a/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListRecentAnalyses.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodeScanningClient.CodeScanningListRecentAnalyses.g.cs @@ -87,14 +87,14 @@ partial void ProcessCodeScanningListRecentAnalysesResponseContent( public async global::System.Threading.Tasks.Task> CodeScanningListRecentAnalysesAsync( string owner, string repo, - string? toolName, - string? toolGuid, - int page, - int perPage, - string? @ref, - string? sarifId, - global::GitHub.CodeScanningListRecentAnalysesDirection? direction, - global::GitHub.CodeScanningListRecentAnalysesSort? sort, + string? toolName = default, + string? toolGuid = default, + int page = 1, + int perPage = 30, + string? @ref = default, + string? sarifId = default, + global::GitHub.CodeScanningListRecentAnalysesDirection? direction = global::GitHub.CodeScanningListRecentAnalysesDirection.Desc, + global::GitHub.CodeScanningListRecentAnalysesSort? sort = global::GitHub.CodeScanningListRecentAnalysesSort.Created, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -114,7 +114,7 @@ partial void ProcessCodeScanningListRecentAnalysesResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/code-scanning/analyses?tool_name={toolName}&tool_guid={toolGuid}&page={page}&per_page={perPage}&ref={@ref}&sarif_id={sarifId}&direction={direction}&sort={sort}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/code-scanning/analyses?tool_name={toolName}&tool_guid={toolGuid}&page={page}&per_page={perPage}&ref={@ref}&sarif_id={sarifId}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.CodeSecurityClient.CodeSecurityGetConfigurationsForOrg.g.cs b/src/libs/GitHub/Generated/GitHub.CodeSecurityClient.CodeSecurityGetConfigurationsForOrg.g.cs index 278b0baa..ad11eec9 100644 --- a/src/libs/GitHub/Generated/GitHub.CodeSecurityClient.CodeSecurityGetConfigurationsForOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodeSecurityClient.CodeSecurityGetConfigurationsForOrg.g.cs @@ -48,10 +48,10 @@ partial void ProcessCodeSecurityGetConfigurationsForOrgResponseContent( /// public async global::System.Threading.Tasks.Task> CodeSecurityGetConfigurationsForOrgAsync( string org, - global::GitHub.CodeSecurityGetConfigurationsForOrgTargetType? targetType, - int perPage, - string? before, - string? after, + global::GitHub.CodeSecurityGetConfigurationsForOrgTargetType? targetType = global::GitHub.CodeSecurityGetConfigurationsForOrgTargetType.All, + int perPage = 30, + string? before = default, + string? after = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -66,7 +66,7 @@ partial void ProcessCodeSecurityGetConfigurationsForOrgResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/code-security/configurations?target_type={targetType}&per_page={perPage}&before={before}&after={after}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/code-security/configurations?target_type={(global::System.Uri.EscapeDataString(targetType?.ToValueString() ?? string.Empty))}&per_page={perPage}&before={before}&after={after}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.CodeSecurityClient.CodeSecurityGetRepositoriesForConfiguration.g.cs b/src/libs/GitHub/Generated/GitHub.CodeSecurityClient.CodeSecurityGetRepositoriesForConfiguration.g.cs index eed6d7a7..0351ccd4 100644 --- a/src/libs/GitHub/Generated/GitHub.CodeSecurityClient.CodeSecurityGetRepositoriesForConfiguration.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodeSecurityClient.CodeSecurityGetRepositoriesForConfiguration.g.cs @@ -52,10 +52,10 @@ partial void ProcessCodeSecurityGetRepositoriesForConfigurationResponseContent( public async global::System.Threading.Tasks.Task> CodeSecurityGetRepositoriesForConfigurationAsync( string org, int configurationId, - int perPage, - string? before, - string? after, - string? status, + int perPage = 30, + string? before = default, + string? after = default, + string? status = "all", global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesGetCodespacesForUserInOrg.g.cs b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesGetCodespacesForUserInOrg.g.cs index 2f22b223..c4616a94 100644 --- a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesGetCodespacesForUserInOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesGetCodespacesForUserInOrg.g.cs @@ -43,10 +43,10 @@ partial void ProcessCodespacesGetCodespacesForUserInOrgResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CodespacesGetCodespacesForUserInOrgAsync( - int perPage, - int page, string org, string username, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.g.cs index 8c9e3e47..5af4b9cc 100644 --- a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListDevcontainersInRepositoryForAuthenticatedUser.g.cs @@ -44,10 +44,10 @@ partial void ProcessCodespacesListDevcontainersInRepositoryForAuthenticatedUserR /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CodespacesListDevcontainersInRepositoryForAuthenticatedUserAsync( - int perPage, - int page, string owner, string repo, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListForAuthenticatedUser.g.cs index 3df96a66..fc5d76b2 100644 --- a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListForAuthenticatedUser.g.cs @@ -40,9 +40,9 @@ partial void ProcessCodespacesListForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CodespacesListForAuthenticatedUserAsync( - int perPage, - int page, - int repositoryId, + int perPage = 30, + int page = 1, + int repositoryId = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListInOrganization.g.cs b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListInOrganization.g.cs index 59abb23a..38e72383 100644 --- a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListInOrganization.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListInOrganization.g.cs @@ -40,9 +40,9 @@ partial void ProcessCodespacesListInOrganizationResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CodespacesListInOrganizationAsync( - int perPage, - int page, string org, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListInRepositoryForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListInRepositoryForAuthenticatedUser.g.cs index f36cdbc7..a3a4494c 100644 --- a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListInRepositoryForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListInRepositoryForAuthenticatedUser.g.cs @@ -43,10 +43,10 @@ partial void ProcessCodespacesListInRepositoryForAuthenticatedUserResponseConten /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CodespacesListInRepositoryForAuthenticatedUserAsync( - int perPage, - int page, string owner, string repo, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListOrgSecrets.g.cs b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListOrgSecrets.g.cs index 45d67ba7..17031899 100644 --- a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListOrgSecrets.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListOrgSecrets.g.cs @@ -42,8 +42,8 @@ partial void ProcessCodespacesListOrgSecretsResponseContent( /// public async global::System.Threading.Tasks.Task CodespacesListOrgSecretsAsync( string org, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListRepoSecrets.g.cs b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListRepoSecrets.g.cs index c8bb6c1f..249f97a3 100644 --- a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListRepoSecrets.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListRepoSecrets.g.cs @@ -46,8 +46,8 @@ partial void ProcessCodespacesListRepoSecretsResponseContent( public async global::System.Threading.Tasks.Task CodespacesListRepoSecretsAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListSecretsForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListSecretsForAuthenticatedUser.g.cs index fce3f0ab..14da7019 100644 --- a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListSecretsForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListSecretsForAuthenticatedUser.g.cs @@ -39,8 +39,8 @@ partial void ProcessCodespacesListSecretsForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task CodespacesListSecretsForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListSelectedReposForOrgSecret.g.cs b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListSelectedReposForOrgSecret.g.cs index d8892dd9..73ad8efe 100644 --- a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListSelectedReposForOrgSecret.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesListSelectedReposForOrgSecret.g.cs @@ -46,8 +46,8 @@ partial void ProcessCodespacesListSelectedReposForOrgSecretResponseContent( public async global::System.Threading.Tasks.Task CodespacesListSelectedReposForOrgSecretAsync( string org, string secretName, - int page, - int perPage, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesPreFlightWithRepoForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesPreFlightWithRepoForAuthenticatedUser.g.cs index fd37662d..c47a0477 100644 --- a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesPreFlightWithRepoForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesPreFlightWithRepoForAuthenticatedUser.g.cs @@ -45,8 +45,8 @@ partial void ProcessCodespacesPreFlightWithRepoForAuthenticatedUserResponseConte public async global::System.Threading.Tasks.Task CodespacesPreFlightWithRepoForAuthenticatedUserAsync( string owner, string repo, - string? @ref, - string? clientIp, + string? @ref = default, + string? clientIp = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesRepoMachinesForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesRepoMachinesForAuthenticatedUser.g.cs index ceccca7c..1bd9a59c 100644 --- a/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesRepoMachinesForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CodespacesClient.CodespacesRepoMachinesForAuthenticatedUser.g.cs @@ -48,9 +48,9 @@ partial void ProcessCodespacesRepoMachinesForAuthenticatedUserResponseContent( public async global::System.Threading.Tasks.Task CodespacesRepoMachinesForAuthenticatedUserAsync( string owner, string repo, - string? location, - string? clientIp, - string? @ref, + string? location = default, + string? clientIp = default, + string? @ref = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotListCopilotSeats.g.cs b/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotListCopilotSeats.g.cs index 17b38b80..3088327b 100644 --- a/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotListCopilotSeats.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotListCopilotSeats.g.cs @@ -44,8 +44,8 @@ partial void ProcessCopilotListCopilotSeatsResponseContent( /// public async global::System.Threading.Tasks.Task CopilotListCopilotSeatsAsync( string org, - int page, - int perPage, + int page = 1, + int perPage = 50, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotListCopilotSeatsForEnterprise.g.cs b/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotListCopilotSeatsForEnterprise.g.cs index d0768f18..d4bc5c41 100644 --- a/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotListCopilotSeatsForEnterprise.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotListCopilotSeatsForEnterprise.g.cs @@ -46,8 +46,8 @@ partial void ProcessCopilotListCopilotSeatsForEnterpriseResponseContent( /// public async global::System.Threading.Tasks.Task CopilotListCopilotSeatsForEnterpriseAsync( string enterprise, - int page, - int perPage, + int page = 1, + int perPage = 50, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForEnterprise.g.cs b/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForEnterprise.g.cs index 90ef2fd0..6f62a0e8 100644 --- a/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForEnterprise.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForEnterprise.g.cs @@ -55,10 +55,10 @@ partial void ProcessCopilotUsageMetricsForEnterpriseResponseContent( /// public async global::System.Threading.Tasks.Task> CopilotUsageMetricsForEnterpriseAsync( string enterprise, - string? since, - string? until, - int page, - int perPage, + string? since = default, + string? until = default, + int page = 1, + int perPage = 28, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForEnterpriseTeam.g.cs b/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForEnterpriseTeam.g.cs index 8734bbc6..7be7950a 100644 --- a/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForEnterpriseTeam.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForEnterpriseTeam.g.cs @@ -61,10 +61,10 @@ partial void ProcessCopilotUsageMetricsForEnterpriseTeamResponseContent( public async global::System.Threading.Tasks.Task> CopilotUsageMetricsForEnterpriseTeamAsync( string enterprise, string teamSlug, - string? since, - string? until, - int page, - int perPage, + string? since = default, + string? until = default, + int page = 1, + int perPage = 28, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForOrg.g.cs b/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForOrg.g.cs index 9ea169b5..8ec351fa 100644 --- a/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForOrg.g.cs @@ -55,10 +55,10 @@ partial void ProcessCopilotUsageMetricsForOrgResponseContent( /// public async global::System.Threading.Tasks.Task> CopilotUsageMetricsForOrgAsync( string org, - string? since, - string? until, - int page, - int perPage, + string? since = default, + string? until = default, + int page = 1, + int perPage = 28, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForTeam.g.cs b/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForTeam.g.cs index 83e2b3e5..b48f0b5a 100644 --- a/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForTeam.g.cs +++ b/src/libs/GitHub/Generated/GitHub.CopilotClient.CopilotUsageMetricsForTeam.g.cs @@ -61,10 +61,10 @@ partial void ProcessCopilotUsageMetricsForTeamResponseContent( public async global::System.Threading.Tasks.Task> CopilotUsageMetricsForTeamAsync( string org, string teamSlug, - string? since, - string? until, - int page, - int perPage, + string? since = default, + string? until = default, + int page = 1, + int perPage = 28, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListAlertsForEnterprise.g.cs b/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListAlertsForEnterprise.g.cs index 7230d4ec..a7843242 100644 --- a/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListAlertsForEnterprise.g.cs +++ b/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListAlertsForEnterprise.g.cs @@ -77,18 +77,18 @@ partial void ProcessDependabotListAlertsForEnterpriseResponseContent( /// public async global::System.Threading.Tasks.Task> DependabotListAlertsForEnterpriseAsync( string enterprise, - string? state, - string? severity, - string? ecosystem, - string? package, - global::GitHub.DependabotListAlertsForEnterpriseScope? scope, - global::GitHub.DependabotListAlertsForEnterpriseSort? sort, - global::GitHub.DependabotListAlertsForEnterpriseDirection? direction, - string? before, - string? after, - int first, - int last, - int perPage, + string? state = default, + string? severity = default, + string? ecosystem = default, + string? package = default, + global::GitHub.DependabotListAlertsForEnterpriseScope? scope = default, + global::GitHub.DependabotListAlertsForEnterpriseSort? sort = global::GitHub.DependabotListAlertsForEnterpriseSort.Created, + global::GitHub.DependabotListAlertsForEnterpriseDirection? direction = global::GitHub.DependabotListAlertsForEnterpriseDirection.Desc, + string? before = default, + string? after = default, + int first = 30, + int last = default, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -111,7 +111,7 @@ partial void ProcessDependabotListAlertsForEnterpriseResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/enterprises/{enterprise}/dependabot/alerts?state={state}&severity={severity}&ecosystem={ecosystem}&package={package}&scope={scope}&sort={sort}&direction={direction}&before={before}&after={after}&first={first}&last={last}&per_page={perPage}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/enterprises/{enterprise}/dependabot/alerts?state={state}&severity={severity}&ecosystem={ecosystem}&package={package}&scope={(global::System.Uri.EscapeDataString(scope?.ToValueString() ?? string.Empty))}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&before={before}&after={after}&first={first}&last={last}&per_page={perPage}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListAlertsForOrg.g.cs b/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListAlertsForOrg.g.cs index f79c5190..a13abff3 100644 --- a/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListAlertsForOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListAlertsForOrg.g.cs @@ -76,18 +76,18 @@ partial void ProcessDependabotListAlertsForOrgResponseContent( /// public async global::System.Threading.Tasks.Task> DependabotListAlertsForOrgAsync( string org, - string? state, - string? severity, - string? ecosystem, - string? package, - global::GitHub.DependabotListAlertsForOrgScope? scope, - global::GitHub.DependabotListAlertsForOrgSort? sort, - global::GitHub.DependabotListAlertsForOrgDirection? direction, - string? before, - string? after, - int first, - int last, - int perPage, + string? state = default, + string? severity = default, + string? ecosystem = default, + string? package = default, + global::GitHub.DependabotListAlertsForOrgScope? scope = default, + global::GitHub.DependabotListAlertsForOrgSort? sort = global::GitHub.DependabotListAlertsForOrgSort.Created, + global::GitHub.DependabotListAlertsForOrgDirection? direction = global::GitHub.DependabotListAlertsForOrgDirection.Desc, + string? before = default, + string? after = default, + int first = 30, + int last = default, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -110,7 +110,7 @@ partial void ProcessDependabotListAlertsForOrgResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/dependabot/alerts?state={state}&severity={severity}&ecosystem={ecosystem}&package={package}&scope={scope}&sort={sort}&direction={direction}&before={before}&after={after}&first={first}&last={last}&per_page={perPage}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/dependabot/alerts?state={state}&severity={severity}&ecosystem={ecosystem}&package={package}&scope={(global::System.Uri.EscapeDataString(scope?.ToValueString() ?? string.Empty))}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&before={before}&after={after}&first={first}&last={last}&per_page={perPage}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListAlertsForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListAlertsForRepo.g.cs index 72c62f0d..3398b86c 100644 --- a/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListAlertsForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListAlertsForRepo.g.cs @@ -86,20 +86,20 @@ partial void ProcessDependabotListAlertsForRepoResponseContent( public async global::System.Threading.Tasks.Task> DependabotListAlertsForRepoAsync( string owner, string repo, - string? state, - string? severity, - string? ecosystem, - string? package, - string? manifest, - global::GitHub.DependabotListAlertsForRepoScope? scope, - global::GitHub.DependabotListAlertsForRepoSort? sort, - global::GitHub.DependabotListAlertsForRepoDirection? direction, - int page, - int perPage, - string? before, - string? after, - int first, - int last, + string? state = default, + string? severity = default, + string? ecosystem = default, + string? package = default, + string? manifest = default, + global::GitHub.DependabotListAlertsForRepoScope? scope = default, + global::GitHub.DependabotListAlertsForRepoSort? sort = global::GitHub.DependabotListAlertsForRepoSort.Created, + global::GitHub.DependabotListAlertsForRepoDirection? direction = global::GitHub.DependabotListAlertsForRepoDirection.Desc, + int page = 1, + int perPage = 30, + string? before = default, + string? after = default, + int first = 30, + int last = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -125,7 +125,7 @@ partial void ProcessDependabotListAlertsForRepoResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/dependabot/alerts?state={state}&severity={severity}&ecosystem={ecosystem}&package={package}&manifest={manifest}&scope={scope}&sort={sort}&direction={direction}&page={page}&per_page={perPage}&before={before}&after={after}&first={first}&last={last}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/dependabot/alerts?state={state}&severity={severity}&ecosystem={ecosystem}&package={package}&manifest={manifest}&scope={(global::System.Uri.EscapeDataString(scope?.ToValueString() ?? string.Empty))}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&page={page}&per_page={perPage}&before={before}&after={after}&first={first}&last={last}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListOrgSecrets.g.cs b/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListOrgSecrets.g.cs index 76ad20d0..d03d11b0 100644 --- a/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListOrgSecrets.g.cs +++ b/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListOrgSecrets.g.cs @@ -42,8 +42,8 @@ partial void ProcessDependabotListOrgSecretsResponseContent( /// public async global::System.Threading.Tasks.Task DependabotListOrgSecretsAsync( string org, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListRepoSecrets.g.cs b/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListRepoSecrets.g.cs index 7df8705d..6e97946e 100644 --- a/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListRepoSecrets.g.cs +++ b/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListRepoSecrets.g.cs @@ -46,8 +46,8 @@ partial void ProcessDependabotListRepoSecretsResponseContent( public async global::System.Threading.Tasks.Task DependabotListRepoSecretsAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListSelectedReposForOrgSecret.g.cs b/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListSelectedReposForOrgSecret.g.cs index 94265305..511212cd 100644 --- a/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListSelectedReposForOrgSecret.g.cs +++ b/src/libs/GitHub/Generated/GitHub.DependabotClient.DependabotListSelectedReposForOrgSecret.g.cs @@ -46,8 +46,8 @@ partial void ProcessDependabotListSelectedReposForOrgSecretResponseContent( public async global::System.Threading.Tasks.Task DependabotListSelectedReposForOrgSecretAsync( string org, string secretName, - int page, - int perPage, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.DependencyGraphClient.DependencyGraphDiffRange.g.cs b/src/libs/GitHub/Generated/GitHub.DependencyGraphClient.DependencyGraphDiffRange.g.cs index 2c313f61..94164092 100644 --- a/src/libs/GitHub/Generated/GitHub.DependencyGraphClient.DependencyGraphDiffRange.g.cs +++ b/src/libs/GitHub/Generated/GitHub.DependencyGraphClient.DependencyGraphDiffRange.g.cs @@ -41,7 +41,7 @@ partial void ProcessDependencyGraphDiffRangeResponseContent( string owner, string repo, string basehead, - string? name, + string? name = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.GistsClient.GistsList.g.cs b/src/libs/GitHub/Generated/GitHub.GistsClient.GistsList.g.cs index 6ffbb22b..81201af9 100644 --- a/src/libs/GitHub/Generated/GitHub.GistsClient.GistsList.g.cs +++ b/src/libs/GitHub/Generated/GitHub.GistsClient.GistsList.g.cs @@ -39,9 +39,9 @@ partial void ProcessGistsListResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> GistsListAsync( - global::System.DateTime since, - int perPage, - int page, + global::System.DateTime since = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListComments.g.cs b/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListComments.g.cs index 66cb1c77..defd5b00 100644 --- a/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListComments.g.cs +++ b/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListComments.g.cs @@ -43,8 +43,8 @@ partial void ProcessGistsListCommentsResponseContent( /// public async global::System.Threading.Tasks.Task> GistsListCommentsAsync( string gistId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListCommits.g.cs b/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListCommits.g.cs index f4327985..dc05363e 100644 --- a/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListCommits.g.cs +++ b/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListCommits.g.cs @@ -39,8 +39,8 @@ partial void ProcessGistsListCommitsResponseContent( /// public async global::System.Threading.Tasks.Task> GistsListCommitsAsync( string gistId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListForUser.g.cs b/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListForUser.g.cs index ed530715..979ded55 100644 --- a/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListForUser.g.cs @@ -43,9 +43,9 @@ partial void ProcessGistsListForUserResponseContent( /// public async global::System.Threading.Tasks.Task> GistsListForUserAsync( string username, - global::System.DateTime since, - int perPage, - int page, + global::System.DateTime since = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListForks.g.cs b/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListForks.g.cs index 82e498db..5575aa3a 100644 --- a/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListForks.g.cs +++ b/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListForks.g.cs @@ -39,8 +39,8 @@ partial void ProcessGistsListForksResponseContent( /// public async global::System.Threading.Tasks.Task> GistsListForksAsync( string gistId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListPublic.g.cs b/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListPublic.g.cs index 6aa35862..d456997e 100644 --- a/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListPublic.g.cs +++ b/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListPublic.g.cs @@ -40,9 +40,9 @@ partial void ProcessGistsListPublicResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> GistsListPublicAsync( - global::System.DateTime since, - int perPage, - int page, + global::System.DateTime since = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListStarred.g.cs b/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListStarred.g.cs index 6f90d5ce..7c9d9344 100644 --- a/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListStarred.g.cs +++ b/src/libs/GitHub/Generated/GitHub.GistsClient.GistsListStarred.g.cs @@ -39,9 +39,9 @@ partial void ProcessGistsListStarredResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> GistsListStarredAsync( - global::System.DateTime since, - int perPage, - int page, + global::System.DateTime since = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.GitClient.GitGetTree.g.cs b/src/libs/GitHub/Generated/GitHub.GitClient.GitGetTree.g.cs index de5763a7..976912a4 100644 --- a/src/libs/GitHub/Generated/GitHub.GitClient.GitGetTree.g.cs +++ b/src/libs/GitHub/Generated/GitHub.GitClient.GitGetTree.g.cs @@ -44,7 +44,7 @@ partial void ProcessGitGetTreeResponseContent( string owner, string repo, string treeSha, - string? recursive, + string? recursive = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesList.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesList.g.cs index f3ae947b..b4f712d0 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesList.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesList.g.cs @@ -83,18 +83,18 @@ partial void ProcessIssuesListResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> IssuesListAsync( - global::GitHub.IssuesListFilter? filter, - global::GitHub.IssuesListState? state, - string? labels, - global::GitHub.IssuesListSort? sort, - global::GitHub.IssuesListDirection? direction, - global::System.DateTime since, - bool collab, - bool orgs, - bool owned, - bool pulls, - int perPage, - int page, + global::GitHub.IssuesListFilter? filter = global::GitHub.IssuesListFilter.Assigned, + global::GitHub.IssuesListState? state = global::GitHub.IssuesListState.Open, + string? labels = default, + global::GitHub.IssuesListSort? sort = global::GitHub.IssuesListSort.Created, + global::GitHub.IssuesListDirection? direction = global::GitHub.IssuesListDirection.Desc, + global::System.DateTime since = default, + bool collab = default, + bool orgs = default, + bool owned = default, + bool pulls = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -116,7 +116,7 @@ partial void ProcessIssuesListResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/issues?filter={filter}&state={state}&labels={labels}&sort={sort}&direction={direction}&since={since:yyyy-MM-ddTHH:mm:ssZ}&collab={collab}&orgs={orgs}&owned={owned}&pulls={pulls}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/issues?filter={(global::System.Uri.EscapeDataString(filter?.ToValueString() ?? string.Empty))}&state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&labels={labels}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&since={since:yyyy-MM-ddTHH:mm:ssZ}&collab={collab}&orgs={orgs}&owned={owned}&pulls={pulls}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListAssignees.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListAssignees.g.cs index 9e85326b..dedb01a8 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListAssignees.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListAssignees.g.cs @@ -44,8 +44,8 @@ partial void ProcessIssuesListAssigneesResponseContent( public async global::System.Threading.Tasks.Task> IssuesListAssigneesAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListComments.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListComments.g.cs index 76b07e81..9665295b 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListComments.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListComments.g.cs @@ -57,9 +57,9 @@ partial void ProcessIssuesListCommentsResponseContent( string owner, string repo, int issueNumber, - global::System.DateTime since, - int perPage, - int page, + global::System.DateTime since = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListCommentsForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListCommentsForRepo.g.cs index d9724e82..00cd5438 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListCommentsForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListCommentsForRepo.g.cs @@ -61,11 +61,11 @@ partial void ProcessIssuesListCommentsForRepoResponseContent( public async global::System.Threading.Tasks.Task> IssuesListCommentsForRepoAsync( string owner, string repo, - global::GitHub.IssuesListCommentsForRepoSort? sort, - global::GitHub.IssuesListCommentsForRepoDirection? direction, - global::System.DateTime since, - int perPage, - int page, + global::GitHub.IssuesListCommentsForRepoSort? sort = global::GitHub.IssuesListCommentsForRepoSort.Created, + global::GitHub.IssuesListCommentsForRepoDirection? direction = default, + global::System.DateTime since = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -82,7 +82,7 @@ partial void ProcessIssuesListCommentsForRepoResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/issues/comments?sort={sort}&direction={direction}&since={since:yyyy-MM-ddTHH:mm:ssZ}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/issues/comments?sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&since={since:yyyy-MM-ddTHH:mm:ssZ}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEvents.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEvents.g.cs index d8f17d32..98735620 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEvents.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEvents.g.cs @@ -48,8 +48,8 @@ partial void ProcessIssuesListEventsResponseContent( string owner, string repo, int issueNumber, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEventsForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEventsForRepo.g.cs index 85ebeac0..aeacfb17 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEventsForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEventsForRepo.g.cs @@ -44,8 +44,8 @@ partial void ProcessIssuesListEventsForRepoResponseContent( public async global::System.Threading.Tasks.Task> IssuesListEventsForRepoAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEventsForTimeline.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEventsForTimeline.g.cs index 3f4c27a6..d4ecc623 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEventsForTimeline.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListEventsForTimeline.g.cs @@ -48,8 +48,8 @@ partial void ProcessIssuesListEventsForTimelineResponseContent( string owner, string repo, int issueNumber, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListForAuthenticatedUser.g.cs index cad0ad39..80e87fbd 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListForAuthenticatedUser.g.cs @@ -69,14 +69,14 @@ partial void ProcessIssuesListForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> IssuesListForAuthenticatedUserAsync( - global::GitHub.IssuesListForAuthenticatedUserFilter? filter, - global::GitHub.IssuesListForAuthenticatedUserState? state, - string? labels, - global::GitHub.IssuesListForAuthenticatedUserSort? sort, - global::GitHub.IssuesListForAuthenticatedUserDirection? direction, - global::System.DateTime since, - int perPage, - int page, + global::GitHub.IssuesListForAuthenticatedUserFilter? filter = global::GitHub.IssuesListForAuthenticatedUserFilter.Assigned, + global::GitHub.IssuesListForAuthenticatedUserState? state = global::GitHub.IssuesListForAuthenticatedUserState.Open, + string? labels = default, + global::GitHub.IssuesListForAuthenticatedUserSort? sort = global::GitHub.IssuesListForAuthenticatedUserSort.Created, + global::GitHub.IssuesListForAuthenticatedUserDirection? direction = global::GitHub.IssuesListForAuthenticatedUserDirection.Desc, + global::System.DateTime since = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -94,7 +94,7 @@ partial void ProcessIssuesListForAuthenticatedUserResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/user/issues?filter={filter}&state={state}&labels={labels}&sort={sort}&direction={direction}&since={since:yyyy-MM-ddTHH:mm:ssZ}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/user/issues?filter={(global::System.Uri.EscapeDataString(filter?.ToValueString() ?? string.Empty))}&state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&labels={labels}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&since={since:yyyy-MM-ddTHH:mm:ssZ}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListForOrg.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListForOrg.g.cs index 0fa94431..588ea9d4 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListForOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListForOrg.g.cs @@ -73,14 +73,14 @@ partial void ProcessIssuesListForOrgResponseContent( /// public async global::System.Threading.Tasks.Task> IssuesListForOrgAsync( string org, - global::GitHub.IssuesListForOrgFilter? filter, - global::GitHub.IssuesListForOrgState? state, - string? labels, - global::GitHub.IssuesListForOrgSort? sort, - global::GitHub.IssuesListForOrgDirection? direction, - global::System.DateTime since, - int perPage, - int page, + global::GitHub.IssuesListForOrgFilter? filter = global::GitHub.IssuesListForOrgFilter.Assigned, + global::GitHub.IssuesListForOrgState? state = global::GitHub.IssuesListForOrgState.Open, + string? labels = default, + global::GitHub.IssuesListForOrgSort? sort = global::GitHub.IssuesListForOrgSort.Created, + global::GitHub.IssuesListForOrgDirection? direction = global::GitHub.IssuesListForOrgDirection.Desc, + global::System.DateTime since = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -99,7 +99,7 @@ partial void ProcessIssuesListForOrgResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/issues?filter={filter}&state={state}&labels={labels}&sort={sort}&direction={direction}&since={since:yyyy-MM-ddTHH:mm:ssZ}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/issues?filter={(global::System.Uri.EscapeDataString(filter?.ToValueString() ?? string.Empty))}&state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&labels={labels}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&since={since:yyyy-MM-ddTHH:mm:ssZ}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListForRepo.g.cs index f6b9bd6b..9f1caafe 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListForRepo.g.cs @@ -84,17 +84,17 @@ partial void ProcessIssuesListForRepoResponseContent( public async global::System.Threading.Tasks.Task> IssuesListForRepoAsync( string owner, string repo, - string? milestone, - global::GitHub.IssuesListForRepoState? state, - string? assignee, - string? creator, - string? mentioned, - string? labels, - global::GitHub.IssuesListForRepoSort? sort, - global::GitHub.IssuesListForRepoDirection? direction, - global::System.DateTime since, - int perPage, - int page, + string? milestone = default, + global::GitHub.IssuesListForRepoState? state = global::GitHub.IssuesListForRepoState.Open, + string? assignee = default, + string? creator = default, + string? mentioned = default, + string? labels = default, + global::GitHub.IssuesListForRepoSort? sort = global::GitHub.IssuesListForRepoSort.Created, + global::GitHub.IssuesListForRepoDirection? direction = global::GitHub.IssuesListForRepoDirection.Desc, + global::System.DateTime since = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -117,7 +117,7 @@ partial void ProcessIssuesListForRepoResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/issues?milestone={milestone}&state={state}&assignee={assignee}&creator={creator}&mentioned={mentioned}&labels={labels}&sort={sort}&direction={direction}&since={since:yyyy-MM-ddTHH:mm:ssZ}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/issues?milestone={milestone}&state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&assignee={assignee}&creator={creator}&mentioned={mentioned}&labels={labels}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&since={since:yyyy-MM-ddTHH:mm:ssZ}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListLabelsForMilestone.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListLabelsForMilestone.g.cs index caf00df5..afe37414 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListLabelsForMilestone.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListLabelsForMilestone.g.cs @@ -48,8 +48,8 @@ partial void ProcessIssuesListLabelsForMilestoneResponseContent( string owner, string repo, int milestoneNumber, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListLabelsForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListLabelsForRepo.g.cs index 9f64805e..3932b14c 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListLabelsForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListLabelsForRepo.g.cs @@ -44,8 +44,8 @@ partial void ProcessIssuesListLabelsForRepoResponseContent( public async global::System.Threading.Tasks.Task> IssuesListLabelsForRepoAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListLabelsOnIssue.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListLabelsOnIssue.g.cs index 92543e46..9ef05154 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListLabelsOnIssue.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListLabelsOnIssue.g.cs @@ -48,8 +48,8 @@ partial void ProcessIssuesListLabelsOnIssueResponseContent( string owner, string repo, int issueNumber, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListMilestones.g.cs b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListMilestones.g.cs index af6687b0..8a77dc7c 100644 --- a/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListMilestones.g.cs +++ b/src/libs/GitHub/Generated/GitHub.IssuesClient.IssuesListMilestones.g.cs @@ -59,11 +59,11 @@ partial void ProcessIssuesListMilestonesResponseContent( public async global::System.Threading.Tasks.Task> IssuesListMilestonesAsync( string owner, string repo, - global::GitHub.IssuesListMilestonesState? state, - global::GitHub.IssuesListMilestonesSort? sort, - global::GitHub.IssuesListMilestonesDirection? direction, - int perPage, - int page, + global::GitHub.IssuesListMilestonesState? state = global::GitHub.IssuesListMilestonesState.Open, + global::GitHub.IssuesListMilestonesSort? sort = global::GitHub.IssuesListMilestonesSort.DueOn, + global::GitHub.IssuesListMilestonesDirection? direction = global::GitHub.IssuesListMilestonesDirection.Asc, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -80,7 +80,7 @@ partial void ProcessIssuesListMilestonesResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/milestones?state={state}&sort={sort}&direction={direction}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/milestones?state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.LicensesClient.LicensesGetAllCommonlyUsed.g.cs b/src/libs/GitHub/Generated/GitHub.LicensesClient.LicensesGetAllCommonlyUsed.g.cs index ad042e1e..d078738a 100644 --- a/src/libs/GitHub/Generated/GitHub.LicensesClient.LicensesGetAllCommonlyUsed.g.cs +++ b/src/libs/GitHub/Generated/GitHub.LicensesClient.LicensesGetAllCommonlyUsed.g.cs @@ -39,9 +39,9 @@ partial void ProcessLicensesGetAllCommonlyUsedResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> LicensesGetAllCommonlyUsedAsync( - bool featured, - int perPage, - int page, + bool featured = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.LicensesClient.LicensesGetForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.LicensesClient.LicensesGetForRepo.g.cs index 3d46ee13..67ee31be 100644 --- a/src/libs/GitHub/Generated/GitHub.LicensesClient.LicensesGetForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.LicensesClient.LicensesGetForRepo.g.cs @@ -43,7 +43,7 @@ partial void ProcessLicensesGetForRepoResponseContent( public async global::System.Threading.Tasks.Task LicensesGetForRepoAsync( string owner, string repo, - string? @ref, + string? @ref = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.MarkdownClient.MarkdownRender.g.cs b/src/libs/GitHub/Generated/GitHub.MarkdownClient.MarkdownRender.g.cs index a36f0eb1..11c95eab 100644 --- a/src/libs/GitHub/Generated/GitHub.MarkdownClient.MarkdownRender.g.cs +++ b/src/libs/GitHub/Generated/GitHub.MarkdownClient.MarkdownRender.g.cs @@ -89,9 +89,7 @@ partial void ProcessMarkdownRenderResponseContent( throw new global::System.InvalidOperationException(__content, ex); } - return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.String) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return __content; } /// diff --git a/src/libs/GitHub/Generated/GitHub.MarkdownClient.MarkdownRenderRaw.g.cs b/src/libs/GitHub/Generated/GitHub.MarkdownClient.MarkdownRenderRaw.g.cs index 16726ee7..12baa332 100644 --- a/src/libs/GitHub/Generated/GitHub.MarkdownClient.MarkdownRenderRaw.g.cs +++ b/src/libs/GitHub/Generated/GitHub.MarkdownClient.MarkdownRenderRaw.g.cs @@ -90,9 +90,7 @@ partial void ProcessMarkdownRenderRawResponseContent( throw new global::System.InvalidOperationException(__content, ex); } - return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.String) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return __content; } } } \ No newline at end of file diff --git a/src/libs/GitHub/Generated/GitHub.MetaClient.MetaGetOctocat.g.cs b/src/libs/GitHub/Generated/GitHub.MetaClient.MetaGetOctocat.g.cs index 1c679827..69b63c85 100644 --- a/src/libs/GitHub/Generated/GitHub.MetaClient.MetaGetOctocat.g.cs +++ b/src/libs/GitHub/Generated/GitHub.MetaClient.MetaGetOctocat.g.cs @@ -29,7 +29,7 @@ partial void ProcessMetaGetOctocatResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task MetaGetOctocatAsync( - string? s, + string? s = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -82,9 +82,7 @@ partial void ProcessMetaGetOctocatResponseContent( throw new global::System.InvalidOperationException(__content, ex); } - return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.String) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return __content; } } } \ No newline at end of file diff --git a/src/libs/GitHub/Generated/GitHub.MetaClient.MetaGetZen.g.cs b/src/libs/GitHub/Generated/GitHub.MetaClient.MetaGetZen.g.cs index 8822dd6d..752639ca 100644 --- a/src/libs/GitHub/Generated/GitHub.MetaClient.MetaGetZen.g.cs +++ b/src/libs/GitHub/Generated/GitHub.MetaClient.MetaGetZen.g.cs @@ -76,9 +76,7 @@ partial void ProcessMetaGetZenResponseContent( throw new global::System.InvalidOperationException(__content, ex); } - return - global::System.Text.Json.JsonSerializer.Deserialize(__content, global::GitHub.SourceGenerationContext.Default.String) ?? - throw new global::System.InvalidOperationException($"Response deserialization failed for \"{__content}\" "); + return __content; } } } \ No newline at end of file diff --git a/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsGetCommitAuthors.g.cs b/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsGetCommitAuthors.g.cs index a67884fa..02e1b4cd 100644 --- a/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsGetCommitAuthors.g.cs +++ b/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsGetCommitAuthors.g.cs @@ -41,7 +41,7 @@ partial void ProcessMigrationsGetCommitAuthorsResponseContent( public async global::System.Threading.Tasks.Task> MigrationsGetCommitAuthorsAsync( string owner, string repo, - int since, + int since = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsGetStatusForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsGetStatusForAuthenticatedUser.g.cs index 289f0a67..6a389029 100644 --- a/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsGetStatusForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsGetStatusForAuthenticatedUser.g.cs @@ -39,7 +39,7 @@ partial void ProcessMigrationsGetStatusForAuthenticatedUserResponseContent( /// public async global::System.Threading.Tasks.Task MigrationsGetStatusForAuthenticatedUserAsync( int migrationId, - global::System.Collections.Generic.IList? exclude, + global::System.Collections.Generic.IList? exclude = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsGetStatusForOrg.g.cs b/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsGetStatusForOrg.g.cs index 7ee3ad1c..b1b2c63e 100644 --- a/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsGetStatusForOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsGetStatusForOrg.g.cs @@ -43,7 +43,7 @@ partial void ProcessMigrationsGetStatusForOrgResponseContent( public async global::System.Threading.Tasks.Task MigrationsGetStatusForOrgAsync( string org, int migrationId, - global::System.Collections.Generic.IList? exclude, + global::System.Collections.Generic.IList? exclude = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListForAuthenticatedUser.g.cs index 9c9dd520..ba7a692c 100644 --- a/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListForAuthenticatedUser.g.cs @@ -36,8 +36,8 @@ partial void ProcessMigrationsListForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> MigrationsListForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListForOrg.g.cs b/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListForOrg.g.cs index d3711429..3614823f 100644 --- a/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListForOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListForOrg.g.cs @@ -45,9 +45,9 @@ partial void ProcessMigrationsListForOrgResponseContent( /// public async global::System.Threading.Tasks.Task> MigrationsListForOrgAsync( string org, - int perPage, - int page, - global::System.Collections.Generic.IList? exclude, + int perPage = 30, + int page = 1, + global::System.Collections.Generic.IList? exclude = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListReposForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListReposForAuthenticatedUser.g.cs index 77e50a51..d08efebe 100644 --- a/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListReposForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListReposForAuthenticatedUser.g.cs @@ -40,8 +40,8 @@ partial void ProcessMigrationsListReposForAuthenticatedUserResponseContent( /// public async global::System.Threading.Tasks.Task> MigrationsListReposForAuthenticatedUserAsync( int migrationId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListReposForOrg.g.cs b/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListReposForOrg.g.cs index b3b3c828..87e649ca 100644 --- a/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListReposForOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.MigrationsClient.MigrationsListReposForOrg.g.cs @@ -44,8 +44,8 @@ partial void ProcessMigrationsListReposForOrgResponseContent( public async global::System.Threading.Tasks.Task> MigrationsListReposForOrgAsync( string org, int migrationId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.Models.RepositoryRulesetBypassActorActorType.g.cs b/src/libs/GitHub/Generated/GitHub.Models.RepositoryRulesetBypassActorActorType.g.cs index be668e8e..cff7b531 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.RepositoryRulesetBypassActorActorType.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.RepositoryRulesetBypassActorActorType.g.cs @@ -28,10 +28,6 @@ public enum RepositoryRulesetBypassActorActorType /// /// DeployKey, - /// - /// - /// - EnterpriseTeam, } /// @@ -51,7 +47,6 @@ public static string ToValueString(this RepositoryRulesetBypassActorActorType va RepositoryRulesetBypassActorActorType.RepositoryRole => "RepositoryRole", RepositoryRulesetBypassActorActorType.Team => "Team", RepositoryRulesetBypassActorActorType.DeployKey => "DeployKey", - RepositoryRulesetBypassActorActorType.EnterpriseTeam => "EnterpriseTeam", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -67,7 +62,6 @@ public static string ToValueString(this RepositoryRulesetBypassActorActorType va "RepositoryRole" => RepositoryRulesetBypassActorActorType.RepositoryRole, "Team" => RepositoryRulesetBypassActorActorType.Team, "DeployKey" => RepositoryRulesetBypassActorActorType.DeployKey, - "EnterpriseTeam" => RepositoryRulesetBypassActorActorType.EnterpriseTeam, _ => null, }; } diff --git a/src/libs/GitHub/Generated/GitHub.Models.SecurityAdvisoriesListGlobalAdvisoriesSort.g.cs b/src/libs/GitHub/Generated/GitHub.Models.SecurityAdvisoriesListGlobalAdvisoriesSort.g.cs index 5826b1bb..4f8d56af 100644 --- a/src/libs/GitHub/Generated/GitHub.Models.SecurityAdvisoriesListGlobalAdvisoriesSort.g.cs +++ b/src/libs/GitHub/Generated/GitHub.Models.SecurityAdvisoriesListGlobalAdvisoriesSort.g.cs @@ -16,6 +16,14 @@ public enum SecurityAdvisoriesListGlobalAdvisoriesSort /// /// Published, + /// + /// + /// + EpssPercentage, + /// + /// + /// + EpssPercentile, } /// @@ -32,6 +40,8 @@ public static string ToValueString(this SecurityAdvisoriesListGlobalAdvisoriesSo { SecurityAdvisoriesListGlobalAdvisoriesSort.Updated => "updated", SecurityAdvisoriesListGlobalAdvisoriesSort.Published => "published", + SecurityAdvisoriesListGlobalAdvisoriesSort.EpssPercentage => "epss_percentage", + SecurityAdvisoriesListGlobalAdvisoriesSort.EpssPercentile => "epss_percentile", _ => throw new global::System.ArgumentOutOfRangeException(nameof(value), value, null), }; } @@ -44,6 +54,8 @@ public static string ToValueString(this SecurityAdvisoriesListGlobalAdvisoriesSo { "updated" => SecurityAdvisoriesListGlobalAdvisoriesSort.Updated, "published" => SecurityAdvisoriesListGlobalAdvisoriesSort.Published, + "epss_percentage" => SecurityAdvisoriesListGlobalAdvisoriesSort.EpssPercentage, + "epss_percentile" => SecurityAdvisoriesListGlobalAdvisoriesSort.EpssPercentile, _ => null, }; } diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsList.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsList.g.cs index 58e32ed7..36046684 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsList.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsList.g.cs @@ -36,8 +36,8 @@ partial void ProcessOrgsListResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> OrgsListAsync( - int since, - int perPage, + int since = default, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListAppInstallations.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListAppInstallations.g.cs index 81932e3d..686cbb57 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListAppInstallations.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListAppInstallations.g.cs @@ -43,8 +43,8 @@ partial void ProcessOrgsListAppInstallationsResponseContent( /// public async global::System.Threading.Tasks.Task OrgsListAppInstallationsAsync( string org, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListAttestations.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListAttestations.g.cs index c0898914..abd07f61 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListAttestations.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListAttestations.g.cs @@ -45,11 +45,11 @@ partial void ProcessOrgsListAttestationsResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task OrgsListAttestationsAsync( - int perPage, - string? before, - string? after, string org, string subjectDigest, + int perPage = 30, + string? before = default, + string? after = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListBlockedUsers.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListBlockedUsers.g.cs index e2cd6260..87f114e0 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListBlockedUsers.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListBlockedUsers.g.cs @@ -40,8 +40,8 @@ partial void ProcessOrgsListBlockedUsersResponseContent( /// public async global::System.Threading.Tasks.Task> OrgsListBlockedUsersAsync( string org, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListCustomPropertiesValuesForRepos.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListCustomPropertiesValuesForRepos.g.cs index 6a4e7e99..e61f34d9 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListCustomPropertiesValuesForRepos.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListCustomPropertiesValuesForRepos.g.cs @@ -44,9 +44,9 @@ partial void ProcessOrgsListCustomPropertiesValuesForReposResponseContent( /// public async global::System.Threading.Tasks.Task> OrgsListCustomPropertiesValuesForReposAsync( string org, - int perPage, - int page, - string? repositoryQuery, + int perPage = 30, + int page = 1, + string? repositoryQuery = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListFailedInvitations.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListFailedInvitations.g.cs index 6210873a..3437fc46 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListFailedInvitations.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListFailedInvitations.g.cs @@ -40,8 +40,8 @@ partial void ProcessOrgsListFailedInvitationsResponseContent( /// public async global::System.Threading.Tasks.Task> OrgsListFailedInvitationsAsync( string org, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListForAuthenticatedUser.g.cs index 45410bdf..3ef88b3b 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListForAuthenticatedUser.g.cs @@ -37,8 +37,8 @@ partial void ProcessOrgsListForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> OrgsListForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListForUser.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListForUser.g.cs index c638b791..150a2f40 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListForUser.g.cs @@ -41,8 +41,8 @@ partial void ProcessOrgsListForUserResponseContent( /// public async global::System.Threading.Tasks.Task> OrgsListForUserAsync( string username, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListInvitationTeams.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListInvitationTeams.g.cs index 91ee693d..e3cd0c0f 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListInvitationTeams.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListInvitationTeams.g.cs @@ -44,8 +44,8 @@ partial void ProcessOrgsListInvitationTeamsResponseContent( public async global::System.Threading.Tasks.Task> OrgsListInvitationTeamsAsync( string org, int invitationId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListMembers.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListMembers.g.cs index 5ac190c8..c7fc5c03 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListMembers.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListMembers.g.cs @@ -50,10 +50,10 @@ partial void ProcessOrgsListMembersResponseContent( /// public async global::System.Threading.Tasks.Task> OrgsListMembersAsync( string org, - global::GitHub.OrgsListMembersFilter? filter, - global::GitHub.OrgsListMembersRole? role, - int perPage, - int page, + global::GitHub.OrgsListMembersFilter? filter = global::GitHub.OrgsListMembersFilter.All, + global::GitHub.OrgsListMembersRole? role = global::GitHub.OrgsListMembersRole.All, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -68,7 +68,7 @@ partial void ProcessOrgsListMembersResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/members?filter={filter}&role={role}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/members?filter={(global::System.Uri.EscapeDataString(filter?.ToValueString() ?? string.Empty))}&role={(global::System.Uri.EscapeDataString(role?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListMembershipsForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListMembershipsForAuthenticatedUser.g.cs index 7f93f77e..3b589206 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListMembershipsForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListMembershipsForAuthenticatedUser.g.cs @@ -39,9 +39,9 @@ partial void ProcessOrgsListMembershipsForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> OrgsListMembershipsForAuthenticatedUserAsync( - global::GitHub.OrgsListMembershipsForAuthenticatedUserState? state, - int perPage, - int page, + global::GitHub.OrgsListMembershipsForAuthenticatedUserState? state = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -54,7 +54,7 @@ partial void ProcessOrgsListMembershipsForAuthenticatedUserResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/user/memberships/orgs?state={state}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/user/memberships/orgs?state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListOrgRoleTeams.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListOrgRoleTeams.g.cs index 13a235d8..89e95aa0 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListOrgRoleTeams.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListOrgRoleTeams.g.cs @@ -46,8 +46,8 @@ partial void ProcessOrgsListOrgRoleTeamsResponseContent( public async global::System.Threading.Tasks.Task> OrgsListOrgRoleTeamsAsync( string org, int roleId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListOrgRoleUsers.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListOrgRoleUsers.g.cs index 31a6cfff..9875fea9 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListOrgRoleUsers.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListOrgRoleUsers.g.cs @@ -46,8 +46,8 @@ partial void ProcessOrgsListOrgRoleUsersResponseContent( public async global::System.Threading.Tasks.Task> OrgsListOrgRoleUsersAsync( string org, int roleId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListOutsideCollaborators.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListOutsideCollaborators.g.cs index 4302efa1..b9ca5443 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListOutsideCollaborators.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListOutsideCollaborators.g.cs @@ -45,9 +45,9 @@ partial void ProcessOrgsListOutsideCollaboratorsResponseContent( /// public async global::System.Threading.Tasks.Task> OrgsListOutsideCollaboratorsAsync( string org, - global::GitHub.OrgsListOutsideCollaboratorsFilter? filter, - int perPage, - int page, + global::GitHub.OrgsListOutsideCollaboratorsFilter? filter = global::GitHub.OrgsListOutsideCollaboratorsFilter.All, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -61,7 +61,7 @@ partial void ProcessOrgsListOutsideCollaboratorsResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/outside_collaborators?filter={filter}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/outside_collaborators?filter={(global::System.Uri.EscapeDataString(filter?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrantRepositories.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrantRepositories.g.cs index 14c5ba79..5456c9bb 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrantRepositories.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrantRepositories.g.cs @@ -45,8 +45,8 @@ partial void ProcessOrgsListPatGrantRepositoriesResponseContent( public async global::System.Threading.Tasks.Task OrgsListPatGrantRepositoriesAsync( string org, int patId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrantRequestRepositories.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrantRequestRepositories.g.cs index 8a81fac4..699c6889 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrantRequestRepositories.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrantRequestRepositories.g.cs @@ -45,8 +45,8 @@ partial void ProcessOrgsListPatGrantRequestRepositoriesResponseContent( public async global::System.Threading.Tasks.Task OrgsListPatGrantRequestRepositoriesAsync( string org, int patRequestId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrantRequests.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrantRequests.g.cs index 686bdb61..2e368fc0 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrantRequests.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrantRequests.g.cs @@ -73,15 +73,15 @@ partial void ProcessOrgsListPatGrantRequestsResponseContent( /// public async global::System.Threading.Tasks.Task OrgsListPatGrantRequestsAsync( string org, - int perPage, - int page, - global::GitHub.OrgsListPatGrantRequestsSort? sort, - global::GitHub.OrgsListPatGrantRequestsDirection? direction, - global::System.Collections.Generic.IList? owner, - string? repository, - string? permission, - global::System.DateTime lastUsedBefore, - global::System.DateTime lastUsedAfter, + int perPage = 30, + int page = 1, + global::GitHub.OrgsListPatGrantRequestsSort? sort = global::GitHub.OrgsListPatGrantRequestsSort.CreatedAt, + global::GitHub.OrgsListPatGrantRequestsDirection? direction = global::GitHub.OrgsListPatGrantRequestsDirection.Desc, + global::System.Collections.Generic.IList? owner = default, + string? repository = default, + string? permission = default, + global::System.DateTime lastUsedBefore = default, + global::System.DateTime lastUsedAfter = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -101,7 +101,7 @@ partial void ProcessOrgsListPatGrantRequestsResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/personal-access-token-requests?per_page={perPage}&page={page}&sort={sort}&direction={direction}&{string.Join("&", owner?.Select(static x => $"owner={x}") ?? global::System.Array.Empty())}&repository={repository}&permission={permission}&last_used_before={lastUsedBefore:yyyy-MM-ddTHH:mm:ssZ}&last_used_after={lastUsedAfter:yyyy-MM-ddTHH:mm:ssZ}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/personal-access-token-requests?per_page={perPage}&page={page}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&{string.Join("&", owner?.Select(static x => $"owner={x}") ?? global::System.Array.Empty())}&repository={repository}&permission={permission}&last_used_before={lastUsedBefore:yyyy-MM-ddTHH:mm:ssZ}&last_used_after={lastUsedAfter:yyyy-MM-ddTHH:mm:ssZ}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrants.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrants.g.cs index e8255427..2897b049 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrants.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPatGrants.g.cs @@ -73,15 +73,15 @@ partial void ProcessOrgsListPatGrantsResponseContent( /// public async global::System.Threading.Tasks.Task OrgsListPatGrantsAsync( string org, - int perPage, - int page, - global::GitHub.OrgsListPatGrantsSort? sort, - global::GitHub.OrgsListPatGrantsDirection? direction, - global::System.Collections.Generic.IList? owner, - string? repository, - string? permission, - global::System.DateTime lastUsedBefore, - global::System.DateTime lastUsedAfter, + int perPage = 30, + int page = 1, + global::GitHub.OrgsListPatGrantsSort? sort = global::GitHub.OrgsListPatGrantsSort.CreatedAt, + global::GitHub.OrgsListPatGrantsDirection? direction = global::GitHub.OrgsListPatGrantsDirection.Desc, + global::System.Collections.Generic.IList? owner = default, + string? repository = default, + string? permission = default, + global::System.DateTime lastUsedBefore = default, + global::System.DateTime lastUsedAfter = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -101,7 +101,7 @@ partial void ProcessOrgsListPatGrantsResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/personal-access-tokens?per_page={perPage}&page={page}&sort={sort}&direction={direction}&{string.Join("&", owner?.Select(static x => $"owner={x}") ?? global::System.Array.Empty())}&repository={repository}&permission={permission}&last_used_before={lastUsedBefore:yyyy-MM-ddTHH:mm:ssZ}&last_used_after={lastUsedAfter:yyyy-MM-ddTHH:mm:ssZ}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/personal-access-tokens?per_page={perPage}&page={page}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&{string.Join("&", owner?.Select(static x => $"owner={x}") ?? global::System.Array.Empty())}&repository={repository}&permission={permission}&last_used_before={lastUsedBefore:yyyy-MM-ddTHH:mm:ssZ}&last_used_after={lastUsedAfter:yyyy-MM-ddTHH:mm:ssZ}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPendingInvitations.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPendingInvitations.g.cs index 0832ee57..765b7727 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPendingInvitations.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPendingInvitations.g.cs @@ -53,10 +53,10 @@ partial void ProcessOrgsListPendingInvitationsResponseContent( /// public async global::System.Threading.Tasks.Task> OrgsListPendingInvitationsAsync( string org, - int perPage, - int page, - global::GitHub.OrgsListPendingInvitationsRole? role, - global::GitHub.OrgsListPendingInvitationsInvitationSource? invitationSource, + int perPage = 30, + int page = 1, + global::GitHub.OrgsListPendingInvitationsRole? role = global::GitHub.OrgsListPendingInvitationsRole.All, + global::GitHub.OrgsListPendingInvitationsInvitationSource? invitationSource = global::GitHub.OrgsListPendingInvitationsInvitationSource.All, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -71,7 +71,7 @@ partial void ProcessOrgsListPendingInvitationsResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/invitations?per_page={perPage}&page={page}&role={role}&invitation_source={invitationSource}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/invitations?per_page={perPage}&page={page}&role={(global::System.Uri.EscapeDataString(role?.ToValueString() ?? string.Empty))}&invitation_source={(global::System.Uri.EscapeDataString(invitationSource?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPublicMembers.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPublicMembers.g.cs index 018aa2b2..f4c01b39 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPublicMembers.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListPublicMembers.g.cs @@ -40,8 +40,8 @@ partial void ProcessOrgsListPublicMembersResponseContent( /// public async global::System.Threading.Tasks.Task> OrgsListPublicMembersAsync( string org, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListWebhookDeliveries.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListWebhookDeliveries.g.cs index a12dcf0d..09fd888c 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListWebhookDeliveries.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListWebhookDeliveries.g.cs @@ -48,9 +48,9 @@ partial void ProcessOrgsListWebhookDeliveriesResponseContent( public async global::System.Threading.Tasks.Task> OrgsListWebhookDeliveriesAsync( string org, int hookId, - int perPage, - string? cursor, - bool redelivery, + int perPage = 30, + string? cursor = default, + bool redelivery = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListWebhooks.g.cs b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListWebhooks.g.cs index 0e1660c0..3724b663 100644 --- a/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListWebhooks.g.cs +++ b/src/libs/GitHub/Generated/GitHub.OrgsClient.OrgsListWebhooks.g.cs @@ -42,8 +42,8 @@ partial void ProcessOrgsListWebhooksResponseContent( /// public async global::System.Threading.Tasks.Task> OrgsListWebhooksAsync( string org, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.g.cs index 8eb16543..5b5b9554 100644 --- a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUser.g.cs @@ -50,9 +50,9 @@ partial void ProcessPackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedU public async global::System.Threading.Tasks.Task> PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserAsync( global::GitHub.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserPackageType packageType, string packageName, - int page, - int perPage, - global::GitHub.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserState? state, + int page = 1, + int perPage = 30, + global::GitHub.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserState? state = global::GitHub.PackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedUserState.Active, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -67,7 +67,7 @@ partial void ProcessPackagesGetAllPackageVersionsForPackageOwnedByAuthenticatedU using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/user/packages/{packageType}/{packageName}/versions?page={page}&per_page={perPage}&state={state}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/user/packages/{packageType}/{packageName}/versions?page={page}&per_page={perPage}&state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesGetAllPackageVersionsForPackageOwnedByOrg.g.cs b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesGetAllPackageVersionsForPackageOwnedByOrg.g.cs index 53fe44d5..757b5283 100644 --- a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesGetAllPackageVersionsForPackageOwnedByOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesGetAllPackageVersionsForPackageOwnedByOrg.g.cs @@ -54,9 +54,9 @@ partial void ProcessPackagesGetAllPackageVersionsForPackageOwnedByOrgResponseCon global::GitHub.PackagesGetAllPackageVersionsForPackageOwnedByOrgPackageType packageType, string packageName, string org, - int page, - int perPage, - global::GitHub.PackagesGetAllPackageVersionsForPackageOwnedByOrgState? state, + int page = 1, + int perPage = 30, + global::GitHub.PackagesGetAllPackageVersionsForPackageOwnedByOrgState? state = global::GitHub.PackagesGetAllPackageVersionsForPackageOwnedByOrgState.Active, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -72,7 +72,7 @@ partial void ProcessPackagesGetAllPackageVersionsForPackageOwnedByOrgResponseCon using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/packages/{packageType}/{packageName}/versions?page={page}&per_page={perPage}&state={state}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/packages/{packageType}/{packageName}/versions?page={page}&per_page={perPage}&state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesListPackagesForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesListPackagesForAuthenticatedUser.g.cs index 1dd04f6a..8ad53641 100644 --- a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesListPackagesForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesListPackagesForAuthenticatedUser.g.cs @@ -44,9 +44,9 @@ partial void ProcessPackagesListPackagesForAuthenticatedUserResponseContent( /// public async global::System.Threading.Tasks.Task> PackagesListPackagesForAuthenticatedUserAsync( global::GitHub.PackagesListPackagesForAuthenticatedUserPackageType packageType, - global::GitHub.PackagesListPackagesForAuthenticatedUserVisibility? visibility, - int page, - int perPage, + global::GitHub.PackagesListPackagesForAuthenticatedUserVisibility? visibility = default, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -60,7 +60,7 @@ partial void ProcessPackagesListPackagesForAuthenticatedUserResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/user/packages?package_type={packageType}&visibility={visibility}&page={page}&per_page={perPage}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/user/packages?package_type={(global::System.Uri.EscapeDataString(packageType.ToValueString() ?? string.Empty))}&visibility={(global::System.Uri.EscapeDataString(visibility?.ToValueString() ?? string.Empty))}&page={page}&per_page={perPage}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesListPackagesForOrganization.g.cs b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesListPackagesForOrganization.g.cs index 89b310cc..eecac72d 100644 --- a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesListPackagesForOrganization.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesListPackagesForOrganization.g.cs @@ -48,9 +48,9 @@ partial void ProcessPackagesListPackagesForOrganizationResponseContent( public async global::System.Threading.Tasks.Task> PackagesListPackagesForOrganizationAsync( global::GitHub.PackagesListPackagesForOrganizationPackageType packageType, string org, - global::GitHub.PackagesListPackagesForOrganizationVisibility? visibility, - int page, - int perPage, + global::GitHub.PackagesListPackagesForOrganizationVisibility? visibility = default, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -65,7 +65,7 @@ partial void ProcessPackagesListPackagesForOrganizationResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/packages?package_type={packageType}&visibility={visibility}&page={page}&per_page={perPage}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/packages?package_type={(global::System.Uri.EscapeDataString(packageType.ToValueString() ?? string.Empty))}&visibility={(global::System.Uri.EscapeDataString(visibility?.ToValueString() ?? string.Empty))}&page={page}&per_page={perPage}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesListPackagesForUser.g.cs b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesListPackagesForUser.g.cs index ffa44e71..e646e056 100644 --- a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesListPackagesForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesListPackagesForUser.g.cs @@ -47,10 +47,10 @@ partial void ProcessPackagesListPackagesForUserResponseContent( /// public async global::System.Threading.Tasks.Task> PackagesListPackagesForUserAsync( global::GitHub.PackagesListPackagesForUserPackageType packageType, - global::GitHub.PackagesListPackagesForUserVisibility? visibility, string username, - int page, - int perPage, + global::GitHub.PackagesListPackagesForUserVisibility? visibility = default, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -65,7 +65,7 @@ partial void ProcessPackagesListPackagesForUserResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/users/{username}/packages?package_type={packageType}&visibility={visibility}&page={page}&per_page={perPage}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/users/{username}/packages?package_type={(global::System.Uri.EscapeDataString(packageType.ToValueString() ?? string.Empty))}&visibility={(global::System.Uri.EscapeDataString(visibility?.ToValueString() ?? string.Empty))}&page={page}&per_page={perPage}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesRestorePackageForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesRestorePackageForAuthenticatedUser.g.cs index d8706405..f06ada86 100644 --- a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesRestorePackageForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesRestorePackageForAuthenticatedUser.g.cs @@ -41,7 +41,7 @@ partial void ProcessPackagesRestorePackageForAuthenticatedUserResponseContent( public async global::System.Threading.Tasks.Task PackagesRestorePackageForAuthenticatedUserAsync( global::GitHub.PackagesRestorePackageForAuthenticatedUserPackageType packageType, string packageName, - string? token, + string? token = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesRestorePackageForOrg.g.cs b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesRestorePackageForOrg.g.cs index 7af2d0be..a2234f21 100644 --- a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesRestorePackageForOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesRestorePackageForOrg.g.cs @@ -46,7 +46,7 @@ partial void ProcessPackagesRestorePackageForOrgResponseContent( global::GitHub.PackagesRestorePackageForOrgPackageType packageType, string packageName, string org, - string? token, + string? token = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesRestorePackageForUser.g.cs b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesRestorePackageForUser.g.cs index 6216e538..c6aa24f2 100644 --- a/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesRestorePackageForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PackagesClient.PackagesRestorePackageForUser.g.cs @@ -46,7 +46,7 @@ partial void ProcessPackagesRestorePackageForUserResponseContent( global::GitHub.PackagesRestorePackageForUserPackageType packageType, string packageName, string username, - string? token, + string? token = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListCards.g.cs b/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListCards.g.cs index 81c4d41f..6abc7f76 100644 --- a/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListCards.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListCards.g.cs @@ -45,9 +45,9 @@ partial void ProcessProjectsListCardsResponseContent( /// public async global::System.Threading.Tasks.Task> ProjectsListCardsAsync( int columnId, - global::GitHub.ProjectsListCardsArchivedState? archivedState, - int perPage, - int page, + global::GitHub.ProjectsListCardsArchivedState? archivedState = global::GitHub.ProjectsListCardsArchivedState.NotArchived, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -61,7 +61,7 @@ partial void ProcessProjectsListCardsResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/projects/columns/{columnId}/cards?archived_state={archivedState}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/projects/columns/{columnId}/cards?archived_state={(global::System.Uri.EscapeDataString(archivedState?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListCollaborators.g.cs b/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListCollaborators.g.cs index 5d4e8c6c..66fe356a 100644 --- a/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListCollaborators.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListCollaborators.g.cs @@ -45,9 +45,9 @@ partial void ProcessProjectsListCollaboratorsResponseContent( /// public async global::System.Threading.Tasks.Task> ProjectsListCollaboratorsAsync( int projectId, - global::GitHub.ProjectsListCollaboratorsAffiliation? affiliation, - int perPage, - int page, + global::GitHub.ProjectsListCollaboratorsAffiliation? affiliation = global::GitHub.ProjectsListCollaboratorsAffiliation.All, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -61,7 +61,7 @@ partial void ProcessProjectsListCollaboratorsResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/projects/{projectId}/collaborators?affiliation={affiliation}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/projects/{projectId}/collaborators?affiliation={(global::System.Uri.EscapeDataString(affiliation?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListColumns.g.cs b/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListColumns.g.cs index d3e0d592..be6bff0f 100644 --- a/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListColumns.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListColumns.g.cs @@ -40,8 +40,8 @@ partial void ProcessProjectsListColumnsResponseContent( /// public async global::System.Threading.Tasks.Task> ProjectsListColumnsAsync( int projectId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListForOrg.g.cs b/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListForOrg.g.cs index eb15e183..d34bcd4a 100644 --- a/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListForOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListForOrg.g.cs @@ -45,9 +45,9 @@ partial void ProcessProjectsListForOrgResponseContent( /// public async global::System.Threading.Tasks.Task> ProjectsListForOrgAsync( string org, - global::GitHub.ProjectsListForOrgState? state, - int perPage, - int page, + global::GitHub.ProjectsListForOrgState? state = global::GitHub.ProjectsListForOrgState.Open, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -61,7 +61,7 @@ partial void ProcessProjectsListForOrgResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/projects?state={state}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/projects?state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListForRepo.g.cs index 43becefb..7ec199c4 100644 --- a/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListForRepo.g.cs @@ -49,9 +49,9 @@ partial void ProcessProjectsListForRepoResponseContent( public async global::System.Threading.Tasks.Task> ProjectsListForRepoAsync( string owner, string repo, - global::GitHub.ProjectsListForRepoState? state, - int perPage, - int page, + global::GitHub.ProjectsListForRepoState? state = global::GitHub.ProjectsListForRepoState.Open, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -66,7 +66,7 @@ partial void ProcessProjectsListForRepoResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/projects?state={state}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/projects?state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListForUser.g.cs b/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListForUser.g.cs index 91a3ba98..b7fe2943 100644 --- a/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ProjectsClient.ProjectsListForUser.g.cs @@ -45,9 +45,9 @@ partial void ProcessProjectsListForUserResponseContent( /// public async global::System.Threading.Tasks.Task> ProjectsListForUserAsync( string username, - global::GitHub.ProjectsListForUserState? state, - int perPage, - int page, + global::GitHub.ProjectsListForUserState? state = global::GitHub.ProjectsListForUserState.Open, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -61,7 +61,7 @@ partial void ProcessProjectsListForUserResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/users/{username}/projects?state={state}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/users/{username}/projects?state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsList.g.cs b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsList.g.cs index e32661a2..4d999afd 100644 --- a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsList.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsList.g.cs @@ -73,13 +73,13 @@ partial void ProcessPullsListResponseContent( public async global::System.Threading.Tasks.Task> PullsListAsync( string owner, string repo, - global::GitHub.PullsListState? state, - string? head, - string? @base, - global::GitHub.PullsListSort? sort, - global::GitHub.PullsListDirection? direction, - int perPage, - int page, + global::GitHub.PullsListState? state = global::GitHub.PullsListState.Open, + string? head = default, + string? @base = default, + global::GitHub.PullsListSort? sort = global::GitHub.PullsListSort.Created, + global::GitHub.PullsListDirection? direction = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -98,7 +98,7 @@ partial void ProcessPullsListResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/pulls?state={state}&head={head}&base={@base}&sort={sort}&direction={direction}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/pulls?state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&head={head}&base={@base}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListCommentsForReview.g.cs b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListCommentsForReview.g.cs index e44dc403..24f223d5 100644 --- a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListCommentsForReview.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListCommentsForReview.g.cs @@ -57,8 +57,8 @@ partial void ProcessPullsListCommentsForReviewResponseContent( string repo, int pullNumber, int reviewId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListCommits.g.cs b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListCommits.g.cs index fb331f9d..c5661de1 100644 --- a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListCommits.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListCommits.g.cs @@ -55,8 +55,8 @@ partial void ProcessPullsListCommitsResponseContent( string owner, string repo, int pullNumber, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListFiles.g.cs b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListFiles.g.cs index 2541a084..a17c3327 100644 --- a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListFiles.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListFiles.g.cs @@ -55,8 +55,8 @@ partial void ProcessPullsListFilesResponseContent( string owner, string repo, int pullNumber, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListReviewComments.g.cs b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListReviewComments.g.cs index 3f248ced..09118c26 100644 --- a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListReviewComments.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListReviewComments.g.cs @@ -65,11 +65,11 @@ partial void ProcessPullsListReviewCommentsResponseContent( string owner, string repo, int pullNumber, - global::GitHub.PullsListReviewCommentsSort? sort, - global::GitHub.PullsListReviewCommentsDirection? direction, - global::System.DateTime since, - int perPage, - int page, + global::GitHub.PullsListReviewCommentsSort? sort = global::GitHub.PullsListReviewCommentsSort.Created, + global::GitHub.PullsListReviewCommentsDirection? direction = default, + global::System.DateTime since = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -87,7 +87,7 @@ partial void ProcessPullsListReviewCommentsResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/pulls/{pullNumber}/comments?sort={sort}&direction={direction}&since={since:yyyy-MM-ddTHH:mm:ssZ}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/pulls/{pullNumber}/comments?sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&since={since:yyyy-MM-ddTHH:mm:ssZ}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListReviewCommentsForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListReviewCommentsForRepo.g.cs index ad07fc81..26c1b464 100644 --- a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListReviewCommentsForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListReviewCommentsForRepo.g.cs @@ -59,11 +59,11 @@ partial void ProcessPullsListReviewCommentsForRepoResponseContent( public async global::System.Threading.Tasks.Task> PullsListReviewCommentsForRepoAsync( string owner, string repo, - global::GitHub.PullsListReviewCommentsForRepoSort? sort, - global::GitHub.PullsListReviewCommentsForRepoDirection? direction, - global::System.DateTime since, - int perPage, - int page, + global::GitHub.PullsListReviewCommentsForRepoSort? sort = default, + global::GitHub.PullsListReviewCommentsForRepoDirection? direction = default, + global::System.DateTime since = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -80,7 +80,7 @@ partial void ProcessPullsListReviewCommentsForRepoResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/pulls/comments?sort={sort}&direction={direction}&since={since:yyyy-MM-ddTHH:mm:ssZ}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/pulls/comments?sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&since={since:yyyy-MM-ddTHH:mm:ssZ}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListReviews.g.cs b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListReviews.g.cs index 40c32ce6..4a31fe1b 100644 --- a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListReviews.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsListReviews.g.cs @@ -53,8 +53,8 @@ partial void ProcessPullsListReviewsResponseContent( string owner, string repo, int pullNumber, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsRequestReviewers.g.cs b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsRequestReviewers.g.cs index 7cda4124..ece86ea7 100644 --- a/src/libs/GitHub/Generated/GitHub.PullsClient.PullsRequestReviewers.g.cs +++ b/src/libs/GitHub/Generated/GitHub.PullsClient.PullsRequestReviewers.g.cs @@ -45,6 +45,8 @@ partial void ProcessPullsRequestReviewersResponseContent( global::GitHub.PullsRequestReviewersRequest request, global::System.Threading.CancellationToken cancellationToken = default) { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + PrepareArguments( client: _httpClient); PreparePullsRequestReviewersArguments( @@ -57,7 +59,7 @@ partial void ProcessPullsRequestReviewersResponseContent( 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}/pulls/{pullNumber}/requested_reviewers", global::System.UriKind.RelativeOrAbsolute)); - var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.AnyOf); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.PullsRequestReviewersRequest); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForCommitComment.g.cs b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForCommitComment.g.cs index a904345f..91f5f070 100644 --- a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForCommitComment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForCommitComment.g.cs @@ -51,9 +51,9 @@ partial void ProcessReactionsListForCommitCommentResponseContent( string owner, string repo, int commentId, - global::GitHub.ReactionsListForCommitCommentContent? content, - int perPage, - int page, + global::GitHub.ReactionsListForCommitCommentContent? content = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -69,7 +69,7 @@ partial void ProcessReactionsListForCommitCommentResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/comments/{commentId}/reactions?content={content}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/comments/{commentId}/reactions?content={(global::System.Uri.EscapeDataString(content?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForIssue.g.cs b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForIssue.g.cs index 0edb46c4..362594a0 100644 --- a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForIssue.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForIssue.g.cs @@ -51,9 +51,9 @@ partial void ProcessReactionsListForIssueResponseContent( string owner, string repo, int issueNumber, - global::GitHub.ReactionsListForIssueContent? content, - int perPage, - int page, + global::GitHub.ReactionsListForIssueContent? content = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -69,7 +69,7 @@ partial void ProcessReactionsListForIssueResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/issues/{issueNumber}/reactions?content={content}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/issues/{issueNumber}/reactions?content={(global::System.Uri.EscapeDataString(content?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForIssueComment.g.cs b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForIssueComment.g.cs index c16c4ab3..74d211df 100644 --- a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForIssueComment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForIssueComment.g.cs @@ -51,9 +51,9 @@ partial void ProcessReactionsListForIssueCommentResponseContent( string owner, string repo, int commentId, - global::GitHub.ReactionsListForIssueCommentContent? content, - int perPage, - int page, + global::GitHub.ReactionsListForIssueCommentContent? content = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -69,7 +69,7 @@ partial void ProcessReactionsListForIssueCommentResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/issues/comments/{commentId}/reactions?content={content}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/issues/comments/{commentId}/reactions?content={(global::System.Uri.EscapeDataString(content?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForPullRequestReviewComment.g.cs b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForPullRequestReviewComment.g.cs index fc420f1d..08a3f200 100644 --- a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForPullRequestReviewComment.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForPullRequestReviewComment.g.cs @@ -51,9 +51,9 @@ partial void ProcessReactionsListForPullRequestReviewCommentResponseContent( string owner, string repo, int commentId, - global::GitHub.ReactionsListForPullRequestReviewCommentContent? content, - int perPage, - int page, + global::GitHub.ReactionsListForPullRequestReviewCommentContent? content = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -69,7 +69,7 @@ partial void ProcessReactionsListForPullRequestReviewCommentResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/pulls/comments/{commentId}/reactions?content={content}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/pulls/comments/{commentId}/reactions?content={(global::System.Uri.EscapeDataString(content?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForRelease.g.cs b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForRelease.g.cs index f83ef58b..f42de7de 100644 --- a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForRelease.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForRelease.g.cs @@ -51,9 +51,9 @@ partial void ProcessReactionsListForReleaseResponseContent( string owner, string repo, int releaseId, - global::GitHub.ReactionsListForReleaseContent? content, - int perPage, - int page, + global::GitHub.ReactionsListForReleaseContent? content = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -69,7 +69,7 @@ partial void ProcessReactionsListForReleaseResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/releases/{releaseId}/reactions?content={content}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/releases/{releaseId}/reactions?content={(global::System.Uri.EscapeDataString(content?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionCommentInOrg.g.cs b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionCommentInOrg.g.cs index b55f85e5..4a81e4c4 100644 --- a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionCommentInOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionCommentInOrg.g.cs @@ -58,9 +58,9 @@ partial void ProcessReactionsListForTeamDiscussionCommentInOrgResponseContent( string teamSlug, int discussionNumber, int commentNumber, - global::GitHub.ReactionsListForTeamDiscussionCommentInOrgContent? content, - int perPage, - int page, + global::GitHub.ReactionsListForTeamDiscussionCommentInOrgContent? content = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -77,7 +77,7 @@ partial void ProcessReactionsListForTeamDiscussionCommentInOrgResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/teams/{teamSlug}/discussions/{discussionNumber}/comments/{commentNumber}/reactions?content={content}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/teams/{teamSlug}/discussions/{discussionNumber}/comments/{commentNumber}/reactions?content={(global::System.Uri.EscapeDataString(content?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionCommentLegacy.g.cs b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionCommentLegacy.g.cs index cb2bcb1e..1966bdf5 100644 --- a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionCommentLegacy.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionCommentLegacy.g.cs @@ -55,9 +55,9 @@ partial void ProcessReactionsListForTeamDiscussionCommentLegacyResponseContent( int teamId, int discussionNumber, int commentNumber, - global::GitHub.ReactionsListForTeamDiscussionCommentLegacyContent? content, - int perPage, - int page, + global::GitHub.ReactionsListForTeamDiscussionCommentLegacyContent? content = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -73,7 +73,7 @@ partial void ProcessReactionsListForTeamDiscussionCommentLegacyResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/teams/{teamId}/discussions/{discussionNumber}/comments/{commentNumber}/reactions?content={content}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/teams/{teamId}/discussions/{discussionNumber}/comments/{commentNumber}/reactions?content={(global::System.Uri.EscapeDataString(content?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionInOrg.g.cs b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionInOrg.g.cs index 39c868c1..2ecccadd 100644 --- a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionInOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionInOrg.g.cs @@ -54,9 +54,9 @@ partial void ProcessReactionsListForTeamDiscussionInOrgResponseContent( string org, string teamSlug, int discussionNumber, - global::GitHub.ReactionsListForTeamDiscussionInOrgContent? content, - int perPage, - int page, + global::GitHub.ReactionsListForTeamDiscussionInOrgContent? content = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -72,7 +72,7 @@ partial void ProcessReactionsListForTeamDiscussionInOrgResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/teams/{teamSlug}/discussions/{discussionNumber}/reactions?content={content}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/teams/{teamSlug}/discussions/{discussionNumber}/reactions?content={(global::System.Uri.EscapeDataString(content?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionLegacy.g.cs b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionLegacy.g.cs index 50dc3a35..9130c6ae 100644 --- a/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionLegacy.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReactionsClient.ReactionsListForTeamDiscussionLegacy.g.cs @@ -51,9 +51,9 @@ partial void ProcessReactionsListForTeamDiscussionLegacyResponseContent( public async global::System.Threading.Tasks.Task> ReactionsListForTeamDiscussionLegacyAsync( int teamId, int discussionNumber, - global::GitHub.ReactionsListForTeamDiscussionLegacyContent? content, - int perPage, - int page, + global::GitHub.ReactionsListForTeamDiscussionLegacyContent? content = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -68,7 +68,7 @@ partial void ProcessReactionsListForTeamDiscussionLegacyResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/teams/{teamId}/discussions/{discussionNumber}/reactions?content={content}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/teams/{teamId}/discussions/{discussionNumber}/reactions?content={(global::System.Uri.EscapeDataString(content?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCodeownersErrors.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCodeownersErrors.g.cs index f8cbd7ac..70867997 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCodeownersErrors.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCodeownersErrors.g.cs @@ -40,7 +40,7 @@ partial void ProcessReposCodeownersErrorsResponseContent( public async global::System.Threading.Tasks.Task ReposCodeownersErrorsAsync( string owner, string repo, - string? @ref, + string? @ref = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCompareCommits.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCompareCommits.g.cs index 58b60fd2..0d1112ec 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCompareCommits.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCompareCommits.g.cs @@ -82,9 +82,9 @@ partial void ProcessReposCompareCommitsResponseContent( public async global::System.Threading.Tasks.Task ReposCompareCommitsAsync( string owner, string repo, - int page, - int perPage, string basehead, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCreatePagesSite.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCreatePagesSite.g.cs index 0cbd436d..8d0d7be9 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCreatePagesSite.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposCreatePagesSite.g.cs @@ -42,6 +42,8 @@ partial void ProcessReposCreatePagesSiteResponseContent( global::GitHub.ReposCreatePagesSiteRequest request, global::System.Threading.CancellationToken cancellationToken = default) { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + PrepareArguments( client: _httpClient); PrepareReposCreatePagesSiteArguments( @@ -53,7 +55,7 @@ partial void ProcessReposCreatePagesSiteResponseContent( 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}/pages", global::System.UriKind.RelativeOrAbsolute)); - var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.AnyOf); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.ReposCreatePagesSiteRequest); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetAllEnvironments.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetAllEnvironments.g.cs index b5e9c853..a0d306b6 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetAllEnvironments.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetAllEnvironments.g.cs @@ -46,8 +46,8 @@ partial void ProcessReposGetAllEnvironmentsResponseContent( public async global::System.Threading.Tasks.Task ReposGetAllEnvironmentsAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetAllTopics.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetAllTopics.g.cs index 97a8d860..723b9cbb 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetAllTopics.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetAllTopics.g.cs @@ -43,8 +43,8 @@ partial void ProcessReposGetAllTopicsResponseContent( public async global::System.Threading.Tasks.Task ReposGetAllTopicsAsync( string owner, string repo, - int page, - int perPage, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetBranchRules.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetBranchRules.g.cs index 5a67d430..c0f3bbbb 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetBranchRules.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetBranchRules.g.cs @@ -51,8 +51,8 @@ partial void ProcessReposGetBranchRulesResponseContent( string owner, string repo, string branch, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetClones.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetClones.g.cs index 59c262ae..deaf92b7 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetClones.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetClones.g.cs @@ -39,7 +39,7 @@ partial void ProcessReposGetClonesResponseContent( public async global::System.Threading.Tasks.Task ReposGetClonesAsync( string owner, string repo, - global::GitHub.ReposGetClonesPer? per, + global::GitHub.ReposGetClonesPer? per = global::GitHub.ReposGetClonesPer.Day, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -52,7 +52,7 @@ partial void ProcessReposGetClonesResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/traffic/clones?per={per}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/traffic/clones?per={(global::System.Uri.EscapeDataString(per?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetCombinedStatusForRef.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetCombinedStatusForRef.g.cs index ba1ff8df..60f59259 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetCombinedStatusForRef.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetCombinedStatusForRef.g.cs @@ -52,8 +52,8 @@ partial void ProcessReposGetCombinedStatusForRefResponseContent( string owner, string repo, string @ref, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetCommit.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetCommit.g.cs index 829bb878..90266298 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetCommit.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetCommit.g.cs @@ -77,9 +77,9 @@ partial void ProcessReposGetCommitResponseContent( public async global::System.Threading.Tasks.Task ReposGetCommitAsync( string owner, string repo, - int page, - int perPage, string @ref, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetContent.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetContent.g.cs index 5c727553..25a2ef0f 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetContent.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetContent.g.cs @@ -58,7 +58,7 @@ partial void ProcessReposGetContentResponseContent( string owner, string repo, string path, - string? @ref, + string? @ref = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetOrgRuleSuites.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetOrgRuleSuites.g.cs index cf0943cc..5530b7f0 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetOrgRuleSuites.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetOrgRuleSuites.g.cs @@ -60,13 +60,13 @@ partial void ProcessReposGetOrgRuleSuitesResponseContent( /// public async global::System.Threading.Tasks.Task> ReposGetOrgRuleSuitesAsync( string org, - string? @ref, - int repositoryName, - global::GitHub.ReposGetOrgRuleSuitesTimePeriod? timePeriod, - string? actorName, - global::GitHub.ReposGetOrgRuleSuitesRuleSuiteResult? ruleSuiteResult, - int perPage, - int page, + string? @ref = default, + int repositoryName = default, + global::GitHub.ReposGetOrgRuleSuitesTimePeriod? timePeriod = global::GitHub.ReposGetOrgRuleSuitesTimePeriod.Day, + string? actorName = default, + global::GitHub.ReposGetOrgRuleSuitesRuleSuiteResult? ruleSuiteResult = global::GitHub.ReposGetOrgRuleSuitesRuleSuiteResult.All, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -84,7 +84,7 @@ partial void ProcessReposGetOrgRuleSuitesResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/rulesets/rule-suites?ref={@ref}&repository_name={repositoryName}&time_period={timePeriod}&actor_name={actorName}&rule_suite_result={ruleSuiteResult}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/rulesets/rule-suites?ref={@ref}&repository_name={repositoryName}&time_period={(global::System.Uri.EscapeDataString(timePeriod?.ToValueString() ?? string.Empty))}&actor_name={actorName}&rule_suite_result={(global::System.Uri.EscapeDataString(ruleSuiteResult?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetOrgRulesets.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetOrgRulesets.g.cs index d8de5448..02e433aa 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetOrgRulesets.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetOrgRulesets.g.cs @@ -40,8 +40,8 @@ partial void ProcessReposGetOrgRulesetsResponseContent( /// public async global::System.Threading.Tasks.Task> ReposGetOrgRulesetsAsync( string org, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetReadme.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetReadme.g.cs index a0e209c0..22f3c6fe 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetReadme.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetReadme.g.cs @@ -40,7 +40,7 @@ partial void ProcessReposGetReadmeResponseContent( public async global::System.Threading.Tasks.Task ReposGetReadmeAsync( string owner, string repo, - string? @ref, + string? @ref = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetReadmeInDirectory.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetReadmeInDirectory.g.cs index df47f046..db45267e 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetReadmeInDirectory.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetReadmeInDirectory.g.cs @@ -44,7 +44,7 @@ partial void ProcessReposGetReadmeInDirectoryResponseContent( string owner, string repo, string dir, - string? @ref, + string? @ref = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetRepoRuleSuites.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetRepoRuleSuites.g.cs index c5466e4c..03a9040d 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetRepoRuleSuites.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetRepoRuleSuites.g.cs @@ -61,12 +61,12 @@ partial void ProcessReposGetRepoRuleSuitesResponseContent( public async global::System.Threading.Tasks.Task> ReposGetRepoRuleSuitesAsync( string owner, string repo, - string? @ref, - global::GitHub.ReposGetRepoRuleSuitesTimePeriod? timePeriod, - string? actorName, - global::GitHub.ReposGetRepoRuleSuitesRuleSuiteResult? ruleSuiteResult, - int perPage, - int page, + string? @ref = default, + global::GitHub.ReposGetRepoRuleSuitesTimePeriod? timePeriod = global::GitHub.ReposGetRepoRuleSuitesTimePeriod.Day, + string? actorName = default, + global::GitHub.ReposGetRepoRuleSuitesRuleSuiteResult? ruleSuiteResult = global::GitHub.ReposGetRepoRuleSuitesRuleSuiteResult.All, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -84,7 +84,7 @@ partial void ProcessReposGetRepoRuleSuitesResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/rulesets/rule-suites?ref={@ref}&time_period={timePeriod}&actor_name={actorName}&rule_suite_result={ruleSuiteResult}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/rulesets/rule-suites?ref={@ref}&time_period={(global::System.Uri.EscapeDataString(timePeriod?.ToValueString() ?? string.Empty))}&actor_name={actorName}&rule_suite_result={(global::System.Uri.EscapeDataString(ruleSuiteResult?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetRepoRuleset.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetRepoRuleset.g.cs index ecd588fd..37c89969 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetRepoRuleset.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetRepoRuleset.g.cs @@ -45,7 +45,7 @@ partial void ProcessReposGetRepoRulesetResponseContent( string owner, string repo, int rulesetId, - bool includesParents, + bool includesParents = true, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetRepoRulesets.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetRepoRulesets.g.cs index 1fa8a7f8..e4f6ee4c 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetRepoRulesets.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetRepoRulesets.g.cs @@ -49,9 +49,9 @@ partial void ProcessReposGetRepoRulesetsResponseContent( public async global::System.Threading.Tasks.Task> ReposGetRepoRulesetsAsync( string owner, string repo, - int perPage, - int page, - bool includesParents, + int perPage = 30, + int page = 1, + bool includesParents = true, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetViews.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetViews.g.cs index 2d9cd6af..7465ae3d 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetViews.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposGetViews.g.cs @@ -39,7 +39,7 @@ partial void ProcessReposGetViewsResponseContent( public async global::System.Threading.Tasks.Task ReposGetViewsAsync( string owner, string repo, - global::GitHub.ReposGetViewsPer? per, + global::GitHub.ReposGetViewsPer? per = global::GitHub.ReposGetViewsPer.Day, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -52,7 +52,7 @@ partial void ProcessReposGetViewsResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/traffic/views?per={per}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/traffic/views?per={(global::System.Uri.EscapeDataString(per?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListActivities.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListActivities.g.cs index e6c76797..203a3190 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListActivities.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListActivities.g.cs @@ -64,14 +64,14 @@ partial void ProcessReposListActivitiesResponseContent( public async global::System.Threading.Tasks.Task> ReposListActivitiesAsync( string owner, string repo, - global::GitHub.ReposListActivitiesDirection? direction, - int perPage, - string? before, - string? after, - string? @ref, - string? actor, - global::GitHub.ReposListActivitiesTimePeriod? timePeriod, - global::GitHub.ReposListActivitiesActivityType? activityType, + global::GitHub.ReposListActivitiesDirection? direction = global::GitHub.ReposListActivitiesDirection.Desc, + int perPage = 30, + string? before = default, + string? after = default, + string? @ref = default, + string? actor = default, + global::GitHub.ReposListActivitiesTimePeriod? timePeriod = default, + global::GitHub.ReposListActivitiesActivityType? activityType = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -91,7 +91,7 @@ partial void ProcessReposListActivitiesResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/activity?direction={direction}&per_page={perPage}&before={before}&after={after}&ref={@ref}&actor={actor}&time_period={timePeriod}&activity_type={activityType}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/activity?direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&before={before}&after={after}&ref={@ref}&actor={actor}&time_period={(global::System.Uri.EscapeDataString(timePeriod?.ToValueString() ?? string.Empty))}&activity_type={(global::System.Uri.EscapeDataString(activityType?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListAttestations.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListAttestations.g.cs index e991a324..0f1ce3c6 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListAttestations.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListAttestations.g.cs @@ -50,10 +50,10 @@ partial void ProcessReposListAttestationsResponseContent( public async global::System.Threading.Tasks.Task ReposListAttestationsAsync( string owner, string repo, - int perPage, - string? before, - string? after, string subjectDigest, + int perPage = 30, + string? before = default, + string? after = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListBranches.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListBranches.g.cs index 2dc4db88..1cfed446 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListBranches.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListBranches.g.cs @@ -46,9 +46,9 @@ partial void ProcessReposListBranchesResponseContent( public async global::System.Threading.Tasks.Task> ReposListBranchesAsync( string owner, string repo, - bool @protected, - int perPage, - int page, + bool @protected = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCollaborators.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCollaborators.g.cs index 21f29f26..c5699197 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCollaborators.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCollaborators.g.cs @@ -56,10 +56,10 @@ partial void ProcessReposListCollaboratorsResponseContent( public async global::System.Threading.Tasks.Task> ReposListCollaboratorsAsync( string owner, string repo, - global::GitHub.ReposListCollaboratorsAffiliation? affiliation, - global::GitHub.ReposListCollaboratorsPermission? permission, - int perPage, - int page, + global::GitHub.ReposListCollaboratorsAffiliation? affiliation = global::GitHub.ReposListCollaboratorsAffiliation.All, + global::GitHub.ReposListCollaboratorsPermission? permission = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -75,7 +75,7 @@ partial void ProcessReposListCollaboratorsResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/collaborators?affiliation={affiliation}&permission={permission}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/collaborators?affiliation={(global::System.Uri.EscapeDataString(affiliation?.ToValueString() ?? string.Empty))}&permission={(global::System.Uri.EscapeDataString(permission?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommentsForCommit.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommentsForCommit.g.cs index 9bd8b8e2..c02dcd13 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommentsForCommit.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommentsForCommit.g.cs @@ -53,8 +53,8 @@ partial void ProcessReposListCommentsForCommitResponseContent( string owner, string repo, string commitSha, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommitCommentsForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommitCommentsForRepo.g.cs index 09044285..edf43d5f 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommitCommentsForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommitCommentsForRepo.g.cs @@ -49,8 +49,8 @@ partial void ProcessReposListCommitCommentsForRepoResponseContent( public async global::System.Threading.Tasks.Task> ReposListCommitCommentsForRepoAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommitStatusesForRef.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommitStatusesForRef.g.cs index 44680c15..e1908a29 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommitStatusesForRef.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommitStatusesForRef.g.cs @@ -49,8 +49,8 @@ partial void ProcessReposListCommitStatusesForRefResponseContent( string owner, string repo, string @ref, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommits.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommits.g.cs index e0e58105..a9b0614d 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommits.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCommits.g.cs @@ -85,14 +85,14 @@ partial void ProcessReposListCommitsResponseContent( public async global::System.Threading.Tasks.Task> ReposListCommitsAsync( string owner, string repo, - string? sha, - string? path, - string? author, - string? committer, - global::System.DateTime since, - global::System.DateTime until, - int perPage, - int page, + string? sha = default, + string? path = default, + string? author = default, + string? committer = default, + global::System.DateTime since = default, + global::System.DateTime until = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListContributors.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListContributors.g.cs index e8e37fd4..5884bdb5 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListContributors.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListContributors.g.cs @@ -48,9 +48,9 @@ partial void ProcessReposListContributorsResponseContent( public async global::System.Threading.Tasks.Task> ReposListContributorsAsync( string owner, string repo, - string? anon, - int perPage, - int page, + string? anon = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCustomDeploymentRuleIntegrations.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCustomDeploymentRuleIntegrations.g.cs index 31442620..391ee7ce 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCustomDeploymentRuleIntegrations.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListCustomDeploymentRuleIntegrations.g.cs @@ -52,8 +52,8 @@ partial void ProcessReposListCustomDeploymentRuleIntegrationsResponseContent( string environmentName, string repo, string owner, - int page, - int perPage, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeployKeys.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeployKeys.g.cs index 20136ae5..7849a6bf 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeployKeys.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeployKeys.g.cs @@ -43,8 +43,8 @@ partial void ProcessReposListDeployKeysResponseContent( public async global::System.Threading.Tasks.Task> ReposListDeployKeysAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeploymentBranchPolicies.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeploymentBranchPolicies.g.cs index 8af4f8b3..183b11d5 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeploymentBranchPolicies.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeploymentBranchPolicies.g.cs @@ -50,8 +50,8 @@ partial void ProcessReposListDeploymentBranchPoliciesResponseContent( string owner, string repo, string environmentName, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeploymentStatuses.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeploymentStatuses.g.cs index 575cfbb4..908cf1c6 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeploymentStatuses.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeploymentStatuses.g.cs @@ -48,8 +48,8 @@ partial void ProcessReposListDeploymentStatusesResponseContent( string owner, string repo, int deploymentId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeployments.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeployments.g.cs index 697321f3..8359fdd4 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeployments.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListDeployments.g.cs @@ -64,12 +64,12 @@ partial void ProcessReposListDeploymentsResponseContent( public async global::System.Threading.Tasks.Task> ReposListDeploymentsAsync( string owner, string repo, - string? sha, - string? @ref, - string? task, - string? environment, - int perPage, - int page, + string? sha = "none", + string? @ref = "none", + string? task = "none", + string? environment = "none", + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForAuthenticatedUser.g.cs index 14f8632f..d3562cf3 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForAuthenticatedUser.g.cs @@ -66,15 +66,15 @@ partial void ProcessReposListForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> ReposListForAuthenticatedUserAsync( - global::GitHub.ReposListForAuthenticatedUserVisibility? visibility, - string? affiliation, - global::GitHub.ReposListForAuthenticatedUserType? type, - global::GitHub.ReposListForAuthenticatedUserSort? sort, - global::GitHub.ReposListForAuthenticatedUserDirection? direction, - int perPage, - int page, - global::System.DateTime since, - global::System.DateTime before, + global::GitHub.ReposListForAuthenticatedUserVisibility? visibility = global::GitHub.ReposListForAuthenticatedUserVisibility.All, + string? affiliation = "owner,collaborator,organization_member", + global::GitHub.ReposListForAuthenticatedUserType? type = global::GitHub.ReposListForAuthenticatedUserType.All, + global::GitHub.ReposListForAuthenticatedUserSort? sort = global::GitHub.ReposListForAuthenticatedUserSort.FullName, + global::GitHub.ReposListForAuthenticatedUserDirection? direction = default, + int perPage = 30, + int page = 1, + global::System.DateTime since = default, + global::System.DateTime before = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -93,7 +93,7 @@ partial void ProcessReposListForAuthenticatedUserResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/user/repos?visibility={visibility}&affiliation={affiliation}&type={type}&sort={sort}&direction={direction}&per_page={perPage}&page={page}&since={since:yyyy-MM-ddTHH:mm:ssZ}&before={before:yyyy-MM-ddTHH:mm:ssZ}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/user/repos?visibility={(global::System.Uri.EscapeDataString(visibility?.ToValueString() ?? string.Empty))}&affiliation={affiliation}&type={(global::System.Uri.EscapeDataString(type?.ToValueString() ?? string.Empty))}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}&since={since:yyyy-MM-ddTHH:mm:ssZ}&before={before:yyyy-MM-ddTHH:mm:ssZ}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForOrg.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForOrg.g.cs index a48cd90a..81b063aa 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForOrg.g.cs @@ -55,11 +55,11 @@ partial void ProcessReposListForOrgResponseContent( /// public async global::System.Threading.Tasks.Task> ReposListForOrgAsync( string org, - global::GitHub.ReposListForOrgType? type, - global::GitHub.ReposListForOrgSort? sort, - global::GitHub.ReposListForOrgDirection? direction, - int perPage, - int page, + global::GitHub.ReposListForOrgType? type = global::GitHub.ReposListForOrgType.All, + global::GitHub.ReposListForOrgSort? sort = global::GitHub.ReposListForOrgSort.Created, + global::GitHub.ReposListForOrgDirection? direction = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -75,7 +75,7 @@ partial void ProcessReposListForOrgResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/repos?type={type}&sort={sort}&direction={direction}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/repos?type={(global::System.Uri.EscapeDataString(type?.ToValueString() ?? string.Empty))}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForUser.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForUser.g.cs index 86d69001..b55900d5 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForUser.g.cs @@ -53,11 +53,11 @@ partial void ProcessReposListForUserResponseContent( /// public async global::System.Threading.Tasks.Task> ReposListForUserAsync( string username, - global::GitHub.ReposListForUserType? type, - global::GitHub.ReposListForUserSort? sort, - global::GitHub.ReposListForUserDirection? direction, - int perPage, - int page, + global::GitHub.ReposListForUserType? type = global::GitHub.ReposListForUserType.Owner, + global::GitHub.ReposListForUserSort? sort = global::GitHub.ReposListForUserSort.FullName, + global::GitHub.ReposListForUserDirection? direction = default, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -73,7 +73,7 @@ partial void ProcessReposListForUserResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/users/{username}/repos?type={type}&sort={sort}&direction={direction}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/users/{username}/repos?type={(global::System.Uri.EscapeDataString(type?.ToValueString() ?? string.Empty))}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForks.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForks.g.cs index 78b0d2ac..9cfdd241 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForks.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListForks.g.cs @@ -48,9 +48,9 @@ partial void ProcessReposListForksResponseContent( public async global::System.Threading.Tasks.Task> ReposListForksAsync( string owner, string repo, - global::GitHub.ReposListForksSort? sort, - int perPage, - int page, + global::GitHub.ReposListForksSort? sort = global::GitHub.ReposListForksSort.Newest, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -65,7 +65,7 @@ partial void ProcessReposListForksResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/forks?sort={sort}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/forks?sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListInvitations.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListInvitations.g.cs index 428f9b54..7342d58a 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListInvitations.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListInvitations.g.cs @@ -44,8 +44,8 @@ partial void ProcessReposListInvitationsResponseContent( public async global::System.Threading.Tasks.Task> ReposListInvitationsAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListInvitationsForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListInvitationsForAuthenticatedUser.g.cs index 2683a3d5..2d66de66 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListInvitationsForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListInvitationsForAuthenticatedUser.g.cs @@ -36,8 +36,8 @@ partial void ProcessReposListInvitationsForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> ReposListInvitationsForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListPagesBuilds.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListPagesBuilds.g.cs index e38859d4..de81da5e 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListPagesBuilds.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListPagesBuilds.g.cs @@ -45,8 +45,8 @@ partial void ProcessReposListPagesBuildsResponseContent( public async global::System.Threading.Tasks.Task> ReposListPagesBuildsAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListPublic.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListPublic.g.cs index b77a4c90..f2b78b67 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListPublic.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListPublic.g.cs @@ -32,7 +32,7 @@ partial void ProcessReposListPublicResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> ReposListPublicAsync( - int since, + int since = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListPullRequestsAssociatedWithCommit.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListPullRequestsAssociatedWithCommit.g.cs index 0b08d276..d7d6c0dc 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListPullRequestsAssociatedWithCommit.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListPullRequestsAssociatedWithCommit.g.cs @@ -49,8 +49,8 @@ partial void ProcessReposListPullRequestsAssociatedWithCommitResponseContent( string owner, string repo, string commitSha, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListReleaseAssets.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListReleaseAssets.g.cs index c852bc2e..e7fb92ec 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListReleaseAssets.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListReleaseAssets.g.cs @@ -47,8 +47,8 @@ partial void ProcessReposListReleaseAssetsResponseContent( string owner, string repo, int releaseId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListReleases.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListReleases.g.cs index e58a7e33..1d11a650 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListReleases.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListReleases.g.cs @@ -45,8 +45,8 @@ partial void ProcessReposListReleasesResponseContent( public async global::System.Threading.Tasks.Task> ReposListReleasesAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListTags.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListTags.g.cs index 332564b3..821b1d03 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListTags.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListTags.g.cs @@ -43,8 +43,8 @@ partial void ProcessReposListTagsResponseContent( public async global::System.Threading.Tasks.Task> ReposListTagsAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListTeams.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListTeams.g.cs index b918cf43..6b111db3 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListTeams.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListTeams.g.cs @@ -46,8 +46,8 @@ partial void ProcessReposListTeamsResponseContent( public async global::System.Threading.Tasks.Task> ReposListTeamsAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListWebhookDeliveries.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListWebhookDeliveries.g.cs index c34dcb6c..d5050b91 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListWebhookDeliveries.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListWebhookDeliveries.g.cs @@ -49,9 +49,9 @@ partial void ProcessReposListWebhookDeliveriesResponseContent( string owner, string repo, int hookId, - int perPage, - string? cursor, - bool redelivery, + int perPage = 30, + string? cursor = default, + bool redelivery = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListWebhooks.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListWebhooks.g.cs index 3f849742..303dcd11 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListWebhooks.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposListWebhooks.g.cs @@ -44,8 +44,8 @@ partial void ProcessReposListWebhooksResponseContent( public async global::System.Threading.Tasks.Task> ReposListWebhooksAsync( string owner, string repo, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposUpdateInformationAboutPagesSite.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposUpdateInformationAboutPagesSite.g.cs index 84b1f9fc..7dd4e059 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposUpdateInformationAboutPagesSite.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposUpdateInformationAboutPagesSite.g.cs @@ -42,6 +42,8 @@ partial void ProcessReposUpdateInformationAboutPagesSiteResponseContent( global::GitHub.ReposUpdateInformationAboutPagesSiteRequest request, global::System.Threading.CancellationToken cancellationToken = default) { + request = request ?? throw new global::System.ArgumentNullException(nameof(request)); + PrepareArguments( client: _httpClient); PrepareReposUpdateInformationAboutPagesSiteArguments( @@ -53,7 +55,7 @@ partial void ProcessReposUpdateInformationAboutPagesSiteResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Put, requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/pages", global::System.UriKind.RelativeOrAbsolute)); - var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.AnyOf); + var __httpRequestContentBody = global::System.Text.Json.JsonSerializer.Serialize(request, global::GitHub.SourceGenerationContext.Default.ReposUpdateInformationAboutPagesSiteRequest); var __httpRequestContent = new global::System.Net.Http.StringContent( content: __httpRequestContentBody, encoding: global::System.Text.Encoding.UTF8, diff --git a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposUploadReleaseAsset.g.cs b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposUploadReleaseAsset.g.cs index 108fc211..84bc452a 100644 --- a/src/libs/GitHub/Generated/GitHub.ReposClient.ReposUploadReleaseAsset.g.cs +++ b/src/libs/GitHub/Generated/GitHub.ReposClient.ReposUploadReleaseAsset.g.cs @@ -60,8 +60,8 @@ partial void ProcessReposUploadReleaseAssetResponseContent( string repo, int releaseId, string name, - string? label, byte[] request, + string? label = default, global::System.Threading.CancellationToken cancellationToken = default) { request = request ?? throw new global::System.ArgumentNullException(nameof(request)); diff --git a/src/libs/GitHub/Generated/GitHub.SearchClient.SearchCode.g.cs b/src/libs/GitHub/Generated/GitHub.SearchClient.SearchCode.g.cs index 4aaf7a2d..a8811efd 100644 --- a/src/libs/GitHub/Generated/GitHub.SearchClient.SearchCode.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SearchClient.SearchCode.g.cs @@ -59,10 +59,10 @@ partial void ProcessSearchCodeResponseContent( /// public async global::System.Threading.Tasks.Task SearchCodeAsync( string q, - global::GitHub.SearchCodeSort? sort, - global::GitHub.SearchCodeOrder? order, - int perPage, - int page, + global::GitHub.SearchCodeSort? sort = default, + global::GitHub.SearchCodeOrder? order = global::GitHub.SearchCodeOrder.Desc, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -77,7 +77,7 @@ partial void ProcessSearchCodeResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/search/code?q={q}&sort={sort}&order={order}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/search/code?q={q}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&order={(global::System.Uri.EscapeDataString(order?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.SearchClient.SearchCommits.g.cs b/src/libs/GitHub/Generated/GitHub.SearchClient.SearchCommits.g.cs index 08d06ee0..4a2f853c 100644 --- a/src/libs/GitHub/Generated/GitHub.SearchClient.SearchCommits.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SearchClient.SearchCommits.g.cs @@ -52,10 +52,10 @@ partial void ProcessSearchCommitsResponseContent( /// public async global::System.Threading.Tasks.Task SearchCommitsAsync( string q, - global::GitHub.SearchCommitsSort? sort, - global::GitHub.SearchCommitsOrder? order, - int perPage, - int page, + global::GitHub.SearchCommitsSort? sort = default, + global::GitHub.SearchCommitsOrder? order = global::GitHub.SearchCommitsOrder.Desc, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -70,7 +70,7 @@ partial void ProcessSearchCommitsResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/search/commits?q={q}&sort={sort}&order={order}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/search/commits?q={q}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&order={(global::System.Uri.EscapeDataString(order?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.SearchClient.SearchIssuesAndPullRequests.g.cs b/src/libs/GitHub/Generated/GitHub.SearchClient.SearchIssuesAndPullRequests.g.cs index bbd9c1cb..f70d9023 100644 --- a/src/libs/GitHub/Generated/GitHub.SearchClient.SearchIssuesAndPullRequests.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SearchClient.SearchIssuesAndPullRequests.g.cs @@ -55,10 +55,10 @@ partial void ProcessSearchIssuesAndPullRequestsResponseContent( /// public async global::System.Threading.Tasks.Task SearchIssuesAndPullRequestsAsync( string q, - global::GitHub.SearchIssuesAndPullRequestsSort? sort, - global::GitHub.SearchIssuesAndPullRequestsOrder? order, - int perPage, - int page, + global::GitHub.SearchIssuesAndPullRequestsSort? sort = default, + global::GitHub.SearchIssuesAndPullRequestsOrder? order = global::GitHub.SearchIssuesAndPullRequestsOrder.Desc, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -73,7 +73,7 @@ partial void ProcessSearchIssuesAndPullRequestsResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/search/issues?q={q}&sort={sort}&order={order}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/search/issues?q={q}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&order={(global::System.Uri.EscapeDataString(order?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.SearchClient.SearchLabels.g.cs b/src/libs/GitHub/Generated/GitHub.SearchClient.SearchLabels.g.cs index e86c3b92..fe5ddac2 100644 --- a/src/libs/GitHub/Generated/GitHub.SearchClient.SearchLabels.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SearchClient.SearchLabels.g.cs @@ -56,10 +56,10 @@ partial void ProcessSearchLabelsResponseContent( public async global::System.Threading.Tasks.Task SearchLabelsAsync( int repositoryId, string q, - global::GitHub.SearchLabelsSort? sort, - global::GitHub.SearchLabelsOrder? order, - int perPage, - int page, + global::GitHub.SearchLabelsSort? sort = default, + global::GitHub.SearchLabelsOrder? order = global::GitHub.SearchLabelsOrder.Desc, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -75,7 +75,7 @@ partial void ProcessSearchLabelsResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/search/labels?repository_id={repositoryId}&q={q}&sort={sort}&order={order}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/search/labels?repository_id={repositoryId}&q={q}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&order={(global::System.Uri.EscapeDataString(order?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.SearchClient.SearchRepos.g.cs b/src/libs/GitHub/Generated/GitHub.SearchClient.SearchRepos.g.cs index add53016..c6fc4e8b 100644 --- a/src/libs/GitHub/Generated/GitHub.SearchClient.SearchRepos.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SearchClient.SearchRepos.g.cs @@ -52,10 +52,10 @@ partial void ProcessSearchReposResponseContent( /// public async global::System.Threading.Tasks.Task SearchReposAsync( string q, - global::GitHub.SearchReposSort? sort, - global::GitHub.SearchReposOrder? order, - int perPage, - int page, + global::GitHub.SearchReposSort? sort = default, + global::GitHub.SearchReposOrder? order = global::GitHub.SearchReposOrder.Desc, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -70,7 +70,7 @@ partial void ProcessSearchReposResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/search/repositories?q={q}&sort={sort}&order={order}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/search/repositories?q={q}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&order={(global::System.Uri.EscapeDataString(order?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.SearchClient.SearchTopics.g.cs b/src/libs/GitHub/Generated/GitHub.SearchClient.SearchTopics.g.cs index 8cc65f7a..2a429cfc 100644 --- a/src/libs/GitHub/Generated/GitHub.SearchClient.SearchTopics.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SearchClient.SearchTopics.g.cs @@ -44,8 +44,8 @@ partial void ProcessSearchTopicsResponseContent( /// public async global::System.Threading.Tasks.Task SearchTopicsAsync( string q, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.SearchClient.SearchUsers.g.cs b/src/libs/GitHub/Generated/GitHub.SearchClient.SearchUsers.g.cs index 2911a202..bdc174c2 100644 --- a/src/libs/GitHub/Generated/GitHub.SearchClient.SearchUsers.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SearchClient.SearchUsers.g.cs @@ -53,10 +53,10 @@ partial void ProcessSearchUsersResponseContent( /// public async global::System.Threading.Tasks.Task SearchUsersAsync( string q, - global::GitHub.SearchUsersSort? sort, - global::GitHub.SearchUsersOrder? order, - int perPage, - int page, + global::GitHub.SearchUsersSort? sort = default, + global::GitHub.SearchUsersOrder? order = global::GitHub.SearchUsersOrder.Desc, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -71,7 +71,7 @@ partial void ProcessSearchUsersResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/search/users?q={q}&sort={sort}&order={order}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/search/users?q={q}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&order={(global::System.Uri.EscapeDataString(order?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListAlertsForEnterprise.g.cs b/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListAlertsForEnterprise.g.cs index 42390748..a792b253 100644 --- a/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListAlertsForEnterprise.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListAlertsForEnterprise.g.cs @@ -66,15 +66,15 @@ partial void ProcessSecretScanningListAlertsForEnterpriseResponseContent( /// public async global::System.Threading.Tasks.Task> SecretScanningListAlertsForEnterpriseAsync( string enterprise, - global::GitHub.SecretScanningListAlertsForEnterpriseState? state, - string? secretType, - string? resolution, - global::GitHub.SecretScanningListAlertsForEnterpriseSort? sort, - global::GitHub.SecretScanningListAlertsForEnterpriseDirection? direction, - int perPage, - string? before, - string? after, - string? validity, + global::GitHub.SecretScanningListAlertsForEnterpriseState? state = default, + string? secretType = default, + string? resolution = default, + global::GitHub.SecretScanningListAlertsForEnterpriseSort? sort = global::GitHub.SecretScanningListAlertsForEnterpriseSort.Created, + global::GitHub.SecretScanningListAlertsForEnterpriseDirection? direction = global::GitHub.SecretScanningListAlertsForEnterpriseDirection.Desc, + int perPage = 30, + string? before = default, + string? after = default, + string? validity = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -94,7 +94,7 @@ partial void ProcessSecretScanningListAlertsForEnterpriseResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/enterprises/{enterprise}/secret-scanning/alerts?state={state}&secret_type={secretType}&resolution={resolution}&sort={sort}&direction={direction}&per_page={perPage}&before={before}&after={after}&validity={validity}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/enterprises/{enterprise}/secret-scanning/alerts?state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&secret_type={secretType}&resolution={resolution}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&before={before}&after={after}&validity={validity}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListAlertsForOrg.g.cs b/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListAlertsForOrg.g.cs index 334b0236..3127eeac 100644 --- a/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListAlertsForOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListAlertsForOrg.g.cs @@ -70,16 +70,16 @@ partial void ProcessSecretScanningListAlertsForOrgResponseContent( /// public async global::System.Threading.Tasks.Task> SecretScanningListAlertsForOrgAsync( string org, - global::GitHub.SecretScanningListAlertsForOrgState? state, - string? secretType, - string? resolution, - global::GitHub.SecretScanningListAlertsForOrgSort? sort, - global::GitHub.SecretScanningListAlertsForOrgDirection? direction, - int page, - int perPage, - string? before, - string? after, - string? validity, + global::GitHub.SecretScanningListAlertsForOrgState? state = default, + string? secretType = default, + string? resolution = default, + global::GitHub.SecretScanningListAlertsForOrgSort? sort = global::GitHub.SecretScanningListAlertsForOrgSort.Created, + global::GitHub.SecretScanningListAlertsForOrgDirection? direction = global::GitHub.SecretScanningListAlertsForOrgDirection.Desc, + int page = 1, + int perPage = 30, + string? before = default, + string? after = default, + string? validity = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -100,7 +100,7 @@ partial void ProcessSecretScanningListAlertsForOrgResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/secret-scanning/alerts?state={state}&secret_type={secretType}&resolution={resolution}&sort={sort}&direction={direction}&page={page}&per_page={perPage}&before={before}&after={after}&validity={validity}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/secret-scanning/alerts?state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&secret_type={secretType}&resolution={resolution}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&page={page}&per_page={perPage}&before={before}&after={after}&validity={validity}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListAlertsForRepo.g.cs b/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListAlertsForRepo.g.cs index 3d691ed5..dd20164d 100644 --- a/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListAlertsForRepo.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListAlertsForRepo.g.cs @@ -74,16 +74,16 @@ partial void ProcessSecretScanningListAlertsForRepoResponseContent( public async global::System.Threading.Tasks.Task> SecretScanningListAlertsForRepoAsync( string owner, string repo, - global::GitHub.SecretScanningListAlertsForRepoState? state, - string? secretType, - string? resolution, - global::GitHub.SecretScanningListAlertsForRepoSort? sort, - global::GitHub.SecretScanningListAlertsForRepoDirection? direction, - int page, - int perPage, - string? before, - string? after, - string? validity, + global::GitHub.SecretScanningListAlertsForRepoState? state = default, + string? secretType = default, + string? resolution = default, + global::GitHub.SecretScanningListAlertsForRepoSort? sort = global::GitHub.SecretScanningListAlertsForRepoSort.Created, + global::GitHub.SecretScanningListAlertsForRepoDirection? direction = global::GitHub.SecretScanningListAlertsForRepoDirection.Desc, + int page = 1, + int perPage = 30, + string? before = default, + string? after = default, + string? validity = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -105,7 +105,7 @@ partial void ProcessSecretScanningListAlertsForRepoResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/secret-scanning/alerts?state={state}&secret_type={secretType}&resolution={resolution}&sort={sort}&direction={direction}&page={page}&per_page={perPage}&before={before}&after={after}&validity={validity}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/secret-scanning/alerts?state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}&secret_type={secretType}&resolution={resolution}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&page={page}&per_page={perPage}&before={before}&after={after}&validity={validity}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListLocationsForAlert.g.cs b/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListLocationsForAlert.g.cs index 5244c527..992b92a2 100644 --- a/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListLocationsForAlert.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SecretScanningClient.SecretScanningListLocationsForAlert.g.cs @@ -52,8 +52,8 @@ partial void ProcessSecretScanningListLocationsForAlertResponseContent( string owner, string repo, int alertNumber, - int page, - int perPage, + int page = 1, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListGlobalAdvisories.g.cs b/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListGlobalAdvisories.g.cs index 7b4f12ae..4e2fd4da 100644 --- a/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListGlobalAdvisories.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListGlobalAdvisories.g.cs @@ -91,24 +91,24 @@ partial void ProcessSecurityAdvisoriesListGlobalAdvisoriesResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> SecurityAdvisoriesListGlobalAdvisoriesAsync( - string? ghsaId, - global::GitHub.SecurityAdvisoriesListGlobalAdvisoriesType? type, - string? cveId, - global::GitHub.SecurityAdvisoryEcosystems? ecosystem, - global::GitHub.SecurityAdvisoriesListGlobalAdvisoriesSeverity? severity, - global::System.OneOf>? cwes, - bool isWithdrawn, - global::System.OneOf>? affects, - string? published, - string? updated, - string? modified, - string? epssPercentage, - string? epssPercentile, - string? before, - string? after, - global::GitHub.SecurityAdvisoriesListGlobalAdvisoriesDirection? direction, - int perPage, - global::GitHub.SecurityAdvisoriesListGlobalAdvisoriesSort? sort, + string? ghsaId = default, + global::GitHub.SecurityAdvisoriesListGlobalAdvisoriesType? type = global::GitHub.SecurityAdvisoriesListGlobalAdvisoriesType.Reviewed, + string? cveId = default, + global::GitHub.SecurityAdvisoryEcosystems? ecosystem = default, + global::GitHub.SecurityAdvisoriesListGlobalAdvisoriesSeverity? severity = default, + global::System.OneOf>? cwes = default, + bool isWithdrawn = default, + global::System.OneOf>? affects = default, + string? published = default, + string? updated = default, + string? modified = default, + string? epssPercentage = default, + string? epssPercentile = default, + string? before = default, + string? after = default, + global::GitHub.SecurityAdvisoriesListGlobalAdvisoriesDirection? direction = global::GitHub.SecurityAdvisoriesListGlobalAdvisoriesDirection.Desc, + int perPage = 30, + global::GitHub.SecurityAdvisoriesListGlobalAdvisoriesSort? sort = global::GitHub.SecurityAdvisoriesListGlobalAdvisoriesSort.Published, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -136,7 +136,7 @@ partial void ProcessSecurityAdvisoriesListGlobalAdvisoriesResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/advisories?ghsa_id={ghsaId}&type={type}&cve_id={cveId}&ecosystem={ecosystem}&severity={severity}&cwes={cwes}&is_withdrawn={isWithdrawn}&affects={affects}&published={published}&updated={updated}&modified={modified}&epss_percentage={epssPercentage}&epss_percentile={epssPercentile}&before={before}&after={after}&direction={direction}&per_page={perPage}&sort={sort}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/advisories?ghsa_id={ghsaId}&type={(global::System.Uri.EscapeDataString(type?.ToValueString() ?? string.Empty))}&cve_id={cveId}&ecosystem={(global::System.Uri.EscapeDataString(ecosystem?.ToValueString() ?? string.Empty))}&severity={(global::System.Uri.EscapeDataString(severity?.ToValueString() ?? string.Empty))}&cwes={cwes}&is_withdrawn={isWithdrawn}&affects={affects}&published={published}&updated={updated}&modified={modified}&epss_percentage={epssPercentage}&epss_percentile={epssPercentile}&before={before}&after={after}&direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListOrgRepositoryAdvisories.g.cs b/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListOrgRepositoryAdvisories.g.cs index a26f4ab9..fd730b7b 100644 --- a/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListOrgRepositoryAdvisories.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListOrgRepositoryAdvisories.g.cs @@ -56,12 +56,12 @@ partial void ProcessSecurityAdvisoriesListOrgRepositoryAdvisoriesResponseContent /// public async global::System.Threading.Tasks.Task> SecurityAdvisoriesListOrgRepositoryAdvisoriesAsync( string org, - global::GitHub.SecurityAdvisoriesListOrgRepositoryAdvisoriesDirection? direction, - global::GitHub.SecurityAdvisoriesListOrgRepositoryAdvisoriesSort? sort, - string? before, - string? after, - int perPage, - global::GitHub.SecurityAdvisoriesListOrgRepositoryAdvisoriesState? state, + global::GitHub.SecurityAdvisoriesListOrgRepositoryAdvisoriesDirection? direction = global::GitHub.SecurityAdvisoriesListOrgRepositoryAdvisoriesDirection.Desc, + global::GitHub.SecurityAdvisoriesListOrgRepositoryAdvisoriesSort? sort = global::GitHub.SecurityAdvisoriesListOrgRepositoryAdvisoriesSort.Created, + string? before = default, + string? after = default, + int perPage = 30, + global::GitHub.SecurityAdvisoriesListOrgRepositoryAdvisoriesState? state = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -78,7 +78,7 @@ partial void ProcessSecurityAdvisoriesListOrgRepositoryAdvisoriesResponseContent using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/security-advisories?direction={direction}&sort={sort}&before={before}&after={after}&per_page={perPage}&state={state}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/security-advisories?direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&before={before}&after={after}&per_page={perPage}&state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListRepositoryAdvisories.g.cs b/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListRepositoryAdvisories.g.cs index 6a097733..73fd97b0 100644 --- a/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListRepositoryAdvisories.g.cs +++ b/src/libs/GitHub/Generated/GitHub.SecurityAdvisoriesClient.SecurityAdvisoriesListRepositoryAdvisories.g.cs @@ -60,12 +60,12 @@ partial void ProcessSecurityAdvisoriesListRepositoryAdvisoriesResponseContent( public async global::System.Threading.Tasks.Task> SecurityAdvisoriesListRepositoryAdvisoriesAsync( string owner, string repo, - global::GitHub.SecurityAdvisoriesListRepositoryAdvisoriesDirection? direction, - global::GitHub.SecurityAdvisoriesListRepositoryAdvisoriesSort? sort, - string? before, - string? after, - int perPage, - global::GitHub.SecurityAdvisoriesListRepositoryAdvisoriesState? state, + global::GitHub.SecurityAdvisoriesListRepositoryAdvisoriesDirection? direction = global::GitHub.SecurityAdvisoriesListRepositoryAdvisoriesDirection.Desc, + global::GitHub.SecurityAdvisoriesListRepositoryAdvisoriesSort? sort = global::GitHub.SecurityAdvisoriesListRepositoryAdvisoriesSort.Created, + string? before = default, + string? after = default, + int perPage = 30, + global::GitHub.SecurityAdvisoriesListRepositoryAdvisoriesState? state = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -83,7 +83,7 @@ partial void ProcessSecurityAdvisoriesListRepositoryAdvisoriesResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/security-advisories?direction={direction}&sort={sort}&before={before}&after={after}&per_page={perPage}&state={state}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/repos/{owner}/{repo}/security-advisories?direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&sort={(global::System.Uri.EscapeDataString(sort?.ToValueString() ?? string.Empty))}&before={before}&after={after}&per_page={perPage}&state={(global::System.Uri.EscapeDataString(state?.ToValueString() ?? string.Empty))}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsList.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsList.g.cs index f1b1c05e..0725166e 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsList.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsList.g.cs @@ -40,8 +40,8 @@ partial void ProcessTeamsListResponseContent( /// public async global::System.Threading.Tasks.Task> TeamsListAsync( string org, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListChildInOrg.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListChildInOrg.g.cs index c18ad47a..d45f2cae 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListChildInOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListChildInOrg.g.cs @@ -46,8 +46,8 @@ partial void ProcessTeamsListChildInOrgResponseContent( public async global::System.Threading.Tasks.Task> TeamsListChildInOrgAsync( string org, string teamSlug, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListChildLegacy.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListChildLegacy.g.cs index 933b6b7b..2ee706c6 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListChildLegacy.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListChildLegacy.g.cs @@ -42,8 +42,8 @@ partial void ProcessTeamsListChildLegacyResponseContent( [global::System.Obsolete("This method marked as deprecated.")] public async global::System.Threading.Tasks.Task> TeamsListChildLegacyAsync( int teamId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionCommentsInOrg.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionCommentsInOrg.g.cs index 84c23ad6..05c7fa4e 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionCommentsInOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionCommentsInOrg.g.cs @@ -56,9 +56,9 @@ partial void ProcessTeamsListDiscussionCommentsInOrgResponseContent( string org, string teamSlug, int discussionNumber, - global::GitHub.TeamsListDiscussionCommentsInOrgDirection? direction, - int perPage, - int page, + global::GitHub.TeamsListDiscussionCommentsInOrgDirection? direction = global::GitHub.TeamsListDiscussionCommentsInOrgDirection.Desc, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -74,7 +74,7 @@ partial void ProcessTeamsListDiscussionCommentsInOrgResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/teams/{teamSlug}/discussions/{discussionNumber}/comments?direction={direction}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/teams/{teamSlug}/discussions/{discussionNumber}/comments?direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionCommentsLegacy.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionCommentsLegacy.g.cs index d7861022..a5892c5c 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionCommentsLegacy.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionCommentsLegacy.g.cs @@ -53,9 +53,9 @@ partial void ProcessTeamsListDiscussionCommentsLegacyResponseContent( public async global::System.Threading.Tasks.Task> TeamsListDiscussionCommentsLegacyAsync( int teamId, int discussionNumber, - global::GitHub.TeamsListDiscussionCommentsLegacyDirection? direction, - int perPage, - int page, + global::GitHub.TeamsListDiscussionCommentsLegacyDirection? direction = global::GitHub.TeamsListDiscussionCommentsLegacyDirection.Desc, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -70,7 +70,7 @@ partial void ProcessTeamsListDiscussionCommentsLegacyResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/teams/{teamId}/discussions/{discussionNumber}/comments?direction={direction}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/teams/{teamId}/discussions/{discussionNumber}/comments?direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionsInOrg.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionsInOrg.g.cs index 1590ea57..90d873b9 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionsInOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionsInOrg.g.cs @@ -55,10 +55,10 @@ partial void ProcessTeamsListDiscussionsInOrgResponseContent( public async global::System.Threading.Tasks.Task> TeamsListDiscussionsInOrgAsync( string org, string teamSlug, - global::GitHub.TeamsListDiscussionsInOrgDirection? direction, - int perPage, - int page, - string? pinned, + global::GitHub.TeamsListDiscussionsInOrgDirection? direction = global::GitHub.TeamsListDiscussionsInOrgDirection.Desc, + int perPage = 30, + int page = 1, + string? pinned = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -74,7 +74,7 @@ partial void ProcessTeamsListDiscussionsInOrgResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/teams/{teamSlug}/discussions?direction={direction}&per_page={perPage}&page={page}&pinned={pinned}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/teams/{teamSlug}/discussions?direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}&pinned={pinned}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionsLegacy.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionsLegacy.g.cs index 0e55a3f9..9fb93cad 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionsLegacy.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListDiscussionsLegacy.g.cs @@ -49,9 +49,9 @@ partial void ProcessTeamsListDiscussionsLegacyResponseContent( [global::System.Obsolete("This method marked as deprecated.")] public async global::System.Threading.Tasks.Task> TeamsListDiscussionsLegacyAsync( int teamId, - global::GitHub.TeamsListDiscussionsLegacyDirection? direction, - int perPage, - int page, + global::GitHub.TeamsListDiscussionsLegacyDirection? direction = global::GitHub.TeamsListDiscussionsLegacyDirection.Desc, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -65,7 +65,7 @@ partial void ProcessTeamsListDiscussionsLegacyResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/teams/{teamId}/discussions?direction={direction}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/teams/{teamId}/discussions?direction={(global::System.Uri.EscapeDataString(direction?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListForAuthenticatedUser.g.cs index afc3f528..8c0992f9 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListForAuthenticatedUser.g.cs @@ -39,8 +39,8 @@ partial void ProcessTeamsListForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> TeamsListForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListMembersInOrg.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListMembersInOrg.g.cs index 359551e1..ef66b7a6 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListMembersInOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListMembersInOrg.g.cs @@ -50,9 +50,9 @@ partial void ProcessTeamsListMembersInOrgResponseContent( public async global::System.Threading.Tasks.Task> TeamsListMembersInOrgAsync( string org, string teamSlug, - global::GitHub.TeamsListMembersInOrgRole? role, - int perPage, - int page, + global::GitHub.TeamsListMembersInOrgRole? role = global::GitHub.TeamsListMembersInOrgRole.All, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -67,7 +67,7 @@ partial void ProcessTeamsListMembersInOrgResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/teams/{teamSlug}/members?role={role}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/orgs/{org}/teams/{teamSlug}/members?role={(global::System.Uri.EscapeDataString(role?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListMembersLegacy.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListMembersLegacy.g.cs index 288690a2..d9502f89 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListMembersLegacy.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListMembersLegacy.g.cs @@ -48,9 +48,9 @@ partial void ProcessTeamsListMembersLegacyResponseContent( [global::System.Obsolete("This method marked as deprecated.")] public async global::System.Threading.Tasks.Task> TeamsListMembersLegacyAsync( int teamId, - global::GitHub.TeamsListMembersLegacyRole? role, - int perPage, - int page, + global::GitHub.TeamsListMembersLegacyRole? role = global::GitHub.TeamsListMembersLegacyRole.All, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -64,7 +64,7 @@ partial void ProcessTeamsListMembersLegacyResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/teams/{teamId}/members?role={role}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/teams/{teamId}/members?role={(global::System.Uri.EscapeDataString(role?.ToValueString() ?? string.Empty))}&per_page={perPage}&page={page}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListPendingInvitationsInOrg.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListPendingInvitationsInOrg.g.cs index ffc9653d..60d99794 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListPendingInvitationsInOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListPendingInvitationsInOrg.g.cs @@ -46,8 +46,8 @@ partial void ProcessTeamsListPendingInvitationsInOrgResponseContent( public async global::System.Threading.Tasks.Task> TeamsListPendingInvitationsInOrgAsync( string org, string teamSlug, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListPendingInvitationsLegacy.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListPendingInvitationsLegacy.g.cs index 7c589226..8c29f99c 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListPendingInvitationsLegacy.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListPendingInvitationsLegacy.g.cs @@ -43,8 +43,8 @@ partial void ProcessTeamsListPendingInvitationsLegacyResponseContent( [global::System.Obsolete("This method marked as deprecated.")] public async global::System.Threading.Tasks.Task> TeamsListPendingInvitationsLegacyAsync( int teamId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListProjectsInOrg.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListProjectsInOrg.g.cs index 8313cd6e..17b6bcb0 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListProjectsInOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListProjectsInOrg.g.cs @@ -46,8 +46,8 @@ partial void ProcessTeamsListProjectsInOrgResponseContent( public async global::System.Threading.Tasks.Task> TeamsListProjectsInOrgAsync( string org, string teamSlug, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListProjectsLegacy.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListProjectsLegacy.g.cs index 9ed1acbb..f3297295 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListProjectsLegacy.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListProjectsLegacy.g.cs @@ -43,8 +43,8 @@ partial void ProcessTeamsListProjectsLegacyResponseContent( [global::System.Obsolete("This method marked as deprecated.")] public async global::System.Threading.Tasks.Task> TeamsListProjectsLegacyAsync( int teamId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListReposInOrg.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListReposInOrg.g.cs index b817d48d..752304a4 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListReposInOrg.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListReposInOrg.g.cs @@ -46,8 +46,8 @@ partial void ProcessTeamsListReposInOrgResponseContent( public async global::System.Threading.Tasks.Task> TeamsListReposInOrgAsync( string org, string teamSlug, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListReposLegacy.g.cs b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListReposLegacy.g.cs index ca7daf5e..012b34ed 100644 --- a/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListReposLegacy.g.cs +++ b/src/libs/GitHub/Generated/GitHub.TeamsClient.TeamsListReposLegacy.g.cs @@ -42,8 +42,8 @@ partial void ProcessTeamsListReposLegacyResponseContent( [global::System.Obsolete("This method marked as deprecated.")] public async global::System.Threading.Tasks.Task> TeamsListReposLegacyAsync( int teamId, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersGetContextForUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersGetContextForUser.g.cs index 011d6357..1fd10f78 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersGetContextForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersGetContextForUser.g.cs @@ -38,8 +38,8 @@ partial void ProcessUsersGetContextForUserResponseContent( /// public async global::System.Threading.Tasks.Task UsersGetContextForUserAsync( string username, - global::GitHub.UsersGetContextForUserSubjectType? subjectType, - string? subjectId, + global::GitHub.UsersGetContextForUserSubjectType? subjectType = default, + string? subjectId = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( @@ -52,7 +52,7 @@ partial void ProcessUsersGetContextForUserResponseContent( using var httpRequest = new global::System.Net.Http.HttpRequestMessage( method: global::System.Net.Http.HttpMethod.Get, - requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/users/{username}/hovercard?subject_type={subjectType}&subject_id={subjectId}", global::System.UriKind.RelativeOrAbsolute)); + requestUri: new global::System.Uri(_httpClient.BaseAddress?.AbsoluteUri.TrimEnd('/') + $"/users/{username}/hovercard?subject_type={(global::System.Uri.EscapeDataString(subjectType?.ToValueString() ?? string.Empty))}&subject_id={subjectId}", global::System.UriKind.RelativeOrAbsolute)); PrepareRequest( client: _httpClient, diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersList.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersList.g.cs index 446b2d50..85faa3b1 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersList.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersList.g.cs @@ -35,8 +35,8 @@ partial void ProcessUsersListResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> UsersListAsync( - int since, - int perPage, + int since = default, + int perPage = 30, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListAttestations.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListAttestations.g.cs index 02b69e84..8e4cdda0 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListAttestations.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListAttestations.g.cs @@ -45,11 +45,11 @@ partial void ProcessUsersListAttestationsResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task UsersListAttestationsAsync( - int perPage, - string? before, - string? after, string username, string subjectDigest, + int perPage = 30, + string? before = default, + string? after = default, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListBlockedByAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListBlockedByAuthenticatedUser.g.cs index 949a1896..cb61e396 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListBlockedByAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListBlockedByAuthenticatedUser.g.cs @@ -36,8 +36,8 @@ partial void ProcessUsersListBlockedByAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> UsersListBlockedByAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListEmailsForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListEmailsForAuthenticatedUser.g.cs index 99434f62..16da8b04 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListEmailsForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListEmailsForAuthenticatedUser.g.cs @@ -38,8 +38,8 @@ partial void ProcessUsersListEmailsForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> UsersListEmailsForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowedByAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowedByAuthenticatedUser.g.cs index 3082eae8..480d56f7 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowedByAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowedByAuthenticatedUser.g.cs @@ -36,8 +36,8 @@ partial void ProcessUsersListFollowedByAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> UsersListFollowedByAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowersForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowersForAuthenticatedUser.g.cs index 13f0f0a4..3a21eb70 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowersForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowersForAuthenticatedUser.g.cs @@ -36,8 +36,8 @@ partial void ProcessUsersListFollowersForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> UsersListFollowersForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowersForUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowersForUser.g.cs index 2e8b7fea..1cffb4d5 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowersForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowersForUser.g.cs @@ -40,8 +40,8 @@ partial void ProcessUsersListFollowersForUserResponseContent( /// public async global::System.Threading.Tasks.Task> UsersListFollowersForUserAsync( string username, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowingForUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowingForUser.g.cs index 1abf0025..a1d01232 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowingForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListFollowingForUser.g.cs @@ -40,8 +40,8 @@ partial void ProcessUsersListFollowingForUserResponseContent( /// public async global::System.Threading.Tasks.Task> UsersListFollowingForUserAsync( string username, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListGpgKeysForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListGpgKeysForAuthenticatedUser.g.cs index fe2488ae..c78742ff 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListGpgKeysForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListGpgKeysForAuthenticatedUser.g.cs @@ -37,8 +37,8 @@ partial void ProcessUsersListGpgKeysForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> UsersListGpgKeysForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListGpgKeysForUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListGpgKeysForUser.g.cs index 0e140324..8fcc0050 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListGpgKeysForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListGpgKeysForUser.g.cs @@ -40,8 +40,8 @@ partial void ProcessUsersListGpgKeysForUserResponseContent( /// public async global::System.Threading.Tasks.Task> UsersListGpgKeysForUserAsync( string username, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListPublicEmailsForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListPublicEmailsForAuthenticatedUser.g.cs index 662942d2..9deeff30 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListPublicEmailsForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListPublicEmailsForAuthenticatedUser.g.cs @@ -39,8 +39,8 @@ partial void ProcessUsersListPublicEmailsForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> UsersListPublicEmailsForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListPublicKeysForUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListPublicKeysForUser.g.cs index d7409bf7..eb588b82 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListPublicKeysForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListPublicKeysForUser.g.cs @@ -40,8 +40,8 @@ partial void ProcessUsersListPublicKeysForUserResponseContent( /// public async global::System.Threading.Tasks.Task> UsersListPublicKeysForUserAsync( string username, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListPublicSshKeysForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListPublicSshKeysForAuthenticatedUser.g.cs index ee01c6c0..1060ad8d 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListPublicSshKeysForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListPublicSshKeysForAuthenticatedUser.g.cs @@ -37,8 +37,8 @@ partial void ProcessUsersListPublicSshKeysForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> UsersListPublicSshKeysForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSocialAccountsForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSocialAccountsForAuthenticatedUser.g.cs index 39ecccec..5524d69b 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSocialAccountsForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSocialAccountsForAuthenticatedUser.g.cs @@ -36,8 +36,8 @@ partial void ProcessUsersListSocialAccountsForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> UsersListSocialAccountsForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSocialAccountsForUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSocialAccountsForUser.g.cs index 5d0424cd..9869f0eb 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSocialAccountsForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSocialAccountsForUser.g.cs @@ -40,8 +40,8 @@ partial void ProcessUsersListSocialAccountsForUserResponseContent( /// public async global::System.Threading.Tasks.Task> UsersListSocialAccountsForUserAsync( string username, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSshSigningKeysForAuthenticatedUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSshSigningKeysForAuthenticatedUser.g.cs index b11cdc02..06774557 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSshSigningKeysForAuthenticatedUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSshSigningKeysForAuthenticatedUser.g.cs @@ -37,8 +37,8 @@ partial void ProcessUsersListSshSigningKeysForAuthenticatedUserResponseContent( /// The token to cancel the operation with /// public async global::System.Threading.Tasks.Task> UsersListSshSigningKeysForAuthenticatedUserAsync( - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSshSigningKeysForUser.g.cs b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSshSigningKeysForUser.g.cs index b277180b..a7d7df13 100644 --- a/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSshSigningKeysForUser.g.cs +++ b/src/libs/GitHub/Generated/GitHub.UsersClient.UsersListSshSigningKeysForUser.g.cs @@ -40,8 +40,8 @@ partial void ProcessUsersListSshSigningKeysForUserResponseContent( /// public async global::System.Threading.Tasks.Task> UsersListSshSigningKeysForUserAsync( string username, - int perPage, - int page, + int perPage = 30, + int page = 1, global::System.Threading.CancellationToken cancellationToken = default) { PrepareArguments( diff --git a/src/libs/GitHub/Generated/JsonConverters.UnixTimestamp.g.cs b/src/libs/GitHub/Generated/JsonConverters.UnixTimestamp.g.cs new file mode 100644 index 00000000..3dd8e550 --- /dev/null +++ b/src/libs/GitHub/Generated/JsonConverters.UnixTimestamp.g.cs @@ -0,0 +1,39 @@ +#nullable enable + +namespace OpenApiGenerator.JsonConverters +{ + /// + public class UnixTimestampJsonConverter : global::System.Text.Json.Serialization.JsonConverter + { + /// + public override global::System.DateTimeOffset Read( + ref global::System.Text.Json.Utf8JsonReader reader, + global::System.Type typeToConvert, + global::System.Text.Json.JsonSerializerOptions options) + { + if (reader.TokenType == global::System.Text.Json.JsonTokenType.Number) + { + if (reader.TryGetInt64(out long unixTimestamp)) + { + return global::System.DateTimeOffset.FromUnixTimeSeconds(unixTimestamp); + } + if (reader.TryGetInt32(out int unixTimestampInt)) + { + return global::System.DateTimeOffset.FromUnixTimeSeconds(unixTimestampInt); + } + } + + return default; + } + + /// + public override void Write( + global::System.Text.Json.Utf8JsonWriter writer, + global::System.DateTimeOffset value, + global::System.Text.Json.JsonSerializerOptions options) + { + long unixTimestamp = value.ToUnixTimeSeconds(); + writer.WriteNumberValue(unixTimestamp); + } + } +} diff --git a/src/libs/GitHub/openapi.yaml b/src/libs/GitHub/openapi.yaml index 79a486d4..5e1277fb 100644 --- a/src/libs/GitHub/openapi.yaml +++ b/src/libs/GitHub/openapi.yaml @@ -266,6 +266,8 @@ paths: enum: - updated - published + - epss_percentage + - epss_percentile default: published responses: '200': @@ -73811,7 +73813,6 @@ components: - RepositoryRole - Team - DeployKey - - EnterpriseTeam description: 'The type of actor that can bypass a ruleset. '