Skip to content

Commit 6b064d6

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#81)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent 374134d commit 6b064d6

33 files changed

Lines changed: 1107 additions & 2678 deletions

File tree

src/libs/Apify/Generated/Apify.ActorBuildsClient.ActorBuildGet.g.cs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -543,6 +543,43 @@ partial void ProcessActorBuildGetResponseContent(
543543
h => h.Key,
544544
h => h.Value));
545545
}
546+
// The HTTP request exceeded the timeout limit
547+
if ((int)__response.StatusCode == 408)
548+
{
549+
string? __content_408 = null;
550+
global::System.Exception? __exception_408 = null;
551+
global::Apify.ErrorResponse? __value_408 = null;
552+
try
553+
{
554+
if (__effectiveReadResponseAsString)
555+
{
556+
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
557+
__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
558+
}
559+
else
560+
{
561+
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
562+
563+
__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
564+
}
565+
}
566+
catch (global::System.Exception __ex)
567+
{
568+
__exception_408 = __ex;
569+
}
570+
571+
572+
throw global::Apify.ApiException<global::Apify.ErrorResponse>.Create(
573+
statusCode: __response.StatusCode,
574+
message: __content_408 ?? __response.ReasonPhrase ?? string.Empty,
575+
innerException: __exception_408,
576+
responseBody: __content_408,
577+
responseObject: __value_408,
578+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
579+
__response.Headers,
580+
h => h.Key,
581+
h => h.Value));
582+
}
546583
// Too many requests - rate limit exceeded.
547584
if ((int)__response.StatusCode == 429)
548585
{

src/libs/Apify/Generated/Apify.ActorRunsClient.ActorRunGet.g.cs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -557,6 +557,43 @@ partial void ProcessActorRunGetResponseContent(
557557
h => h.Key,
558558
h => h.Value));
559559
}
560+
// The HTTP request exceeded the timeout limit
561+
if ((int)__response.StatusCode == 408)
562+
{
563+
string? __content_408 = null;
564+
global::System.Exception? __exception_408 = null;
565+
global::Apify.ErrorResponse? __value_408 = null;
566+
try
567+
{
568+
if (__effectiveReadResponseAsString)
569+
{
570+
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
571+
__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
572+
}
573+
else
574+
{
575+
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
576+
577+
__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
578+
}
579+
}
580+
catch (global::System.Exception __ex)
581+
{
582+
__exception_408 = __ex;
583+
}
584+
585+
586+
throw global::Apify.ApiException<global::Apify.ErrorResponse>.Create(
587+
statusCode: __response.StatusCode,
588+
message: __content_408 ?? __response.ReasonPhrase ?? string.Empty,
589+
innerException: __exception_408,
590+
responseBody: __content_408,
591+
responseObject: __value_408,
592+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
593+
__response.Headers,
594+
h => h.Key,
595+
h => h.Value));
596+
}
560597
// Too many requests - rate limit exceeded.
561598
if ((int)__response.StatusCode == 429)
562599
{

src/libs/Apify/Generated/Apify.ActorsActorBuildsClient.ActBuildDefaultGet.g.cs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,43 @@ partial void ProcessActBuildDefaultGetResponseContent(
502502
h => h.Key,
503503
h => h.Value));
504504
}
505+
// The HTTP request exceeded the timeout limit
506+
if ((int)__response.StatusCode == 408)
507+
{
508+
string? __content_408 = null;
509+
global::System.Exception? __exception_408 = null;
510+
global::Apify.ErrorResponse? __value_408 = null;
511+
try
512+
{
513+
if (__effectiveReadResponseAsString)
514+
{
515+
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
516+
__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
517+
}
518+
else
519+
{
520+
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
521+
522+
__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
523+
}
524+
}
525+
catch (global::System.Exception __ex)
526+
{
527+
__exception_408 = __ex;
528+
}
529+
530+
531+
throw global::Apify.ApiException<global::Apify.ErrorResponse>.Create(
532+
statusCode: __response.StatusCode,
533+
message: __content_408 ?? __response.ReasonPhrase ?? string.Empty,
534+
innerException: __exception_408,
535+
responseBody: __content_408,
536+
responseObject: __value_408,
537+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
538+
__response.Headers,
539+
h => h.Key,
540+
h => h.Value));
541+
}
505542
// Too many requests - rate limit exceeded.
506543
if ((int)__response.StatusCode == 429)
507544
{

src/libs/Apify/Generated/Apify.ActorsActorBuildsClient.ActBuildsPost.g.cs

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,43 @@ partial void ProcessActBuildsPostResponseContent(
591591
h => h.Key,
592592
h => h.Value));
593593
}
594+
// The HTTP request exceeded the timeout limit
595+
if ((int)__response.StatusCode == 408)
596+
{
597+
string? __content_408 = null;
598+
global::System.Exception? __exception_408 = null;
599+
global::Apify.ErrorResponse? __value_408 = null;
600+
try
601+
{
602+
if (__effectiveReadResponseAsString)
603+
{
604+
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
605+
__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
606+
}
607+
else
608+
{
609+
__content_408 = await __response.Content.ReadAsStringAsync(__effectiveCancellationToken).ConfigureAwait(false);
610+
611+
__value_408 = global::Apify.ErrorResponse.FromJson(__content_408, JsonSerializerContext);
612+
}
613+
}
614+
catch (global::System.Exception __ex)
615+
{
616+
__exception_408 = __ex;
617+
}
618+
619+
620+
throw global::Apify.ApiException<global::Apify.ErrorResponse>.Create(
621+
statusCode: __response.StatusCode,
622+
message: __content_408 ?? __response.ReasonPhrase ?? string.Empty,
623+
innerException: __exception_408,
624+
responseBody: __content_408,
625+
responseObject: __value_408,
626+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
627+
__response.Headers,
628+
h => h.Key,
629+
h => h.Value));
630+
}
594631
// Too many requests - rate limit exceeded.
595632
if ((int)__response.StatusCode == 429)
596633
{

0 commit comments

Comments
 (0)