System.Threading.Tasks.Task <Meziantou.GitLab.HttpResponseStream?> Meziantou.GitLab.IGitLabJobArtifactsClient.DownloadArtifactArchiveByJobIdAsync(Meziantou.GitLab.DownloadArtifactArchiveByJobIdJobArtifactRequest request, Meziantou.GitLab.RequestOptions?requestOptions, System.Threading.CancellationToken cancellationToken)
 {
     return(this.JobArtifacts_DownloadArtifactArchiveByJobIdAsync(request, requestOptions, cancellationToken));
 }
        private async System.Threading.Tasks.Task <Meziantou.GitLab.HttpResponseStream?> JobArtifacts_DownloadArtifactArchiveByJobIdAsync(Meziantou.GitLab.DownloadArtifactArchiveByJobIdJobArtifactRequest request, Meziantou.GitLab.RequestOptions?requestOptions = default(Meziantou.GitLab.RequestOptions), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
        {
            string url = Meziantou.GitLab.GitLabClient.JobArtifacts_DownloadArtifactArchiveByJobIdAsync_BuildUrl(request);

            using (System.Net.Http.HttpRequestMessage requestMessage = new System.Net.Http.HttpRequestMessage())
            {
                requestMessage.Method     = System.Net.Http.HttpMethod.Get;
                requestMessage.RequestUri = new System.Uri(url, System.UriKind.RelativeOrAbsolute);
                HttpResponse?response = null;
                try
                {
                    response = await this.SendAsync(requestMessage, requestOptions, cancellationToken).ConfigureAwait(false);

                    if ((response.StatusCode == System.Net.HttpStatusCode.NotFound))
                    {
                        return(default);