Skip to content

Commit 71af8ed

Browse files
HavenDVgithub-actions[bot]
andauthored
feat: Updated OpenAPI spec (#37)
Co-authored-by: github-actions[bot] <dependabot@bot.com>
1 parent 5b14a32 commit 71af8ed

45 files changed

Lines changed: 2753 additions & 3160 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/libs/DeepL/Generated/DeepL.AdminApiClient.AdminCreateDeveloperKey.g.cs

Lines changed: 34 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -371,17 +371,16 @@ partial void ProcessAdminCreateDeveloperKeyResponseContent(
371371
__exception_400 = __ex;
372372
}
373373

374-
throw new global::DeepL.ApiException(
374+
375+
throw global::DeepL.ApiException.Create(
376+
statusCode: __response.StatusCode,
375377
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
376378
innerException: __exception_400,
377-
statusCode: __response.StatusCode)
378-
{
379-
ResponseBody = __content_400,
380-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
379+
responseBody: __content_400,
380+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
381381
__response.Headers,
382382
h => h.Key,
383-
h => h.Value),
384-
};
383+
h => h.Value));
385384
}
386385
//
387386
if ((int)__response.StatusCode == 403)
@@ -404,17 +403,16 @@ partial void ProcessAdminCreateDeveloperKeyResponseContent(
404403
__exception_403 = __ex;
405404
}
406405

407-
throw new global::DeepL.ApiException(
406+
407+
throw global::DeepL.ApiException.Create(
408+
statusCode: __response.StatusCode,
408409
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
409410
innerException: __exception_403,
410-
statusCode: __response.StatusCode)
411-
{
412-
ResponseBody = __content_403,
413-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
411+
responseBody: __content_403,
412+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
414413
__response.Headers,
415414
h => h.Key,
416-
h => h.Value),
417-
};
415+
h => h.Value));
418416
}
419417
//
420418
if ((int)__response.StatusCode == 404)
@@ -437,17 +435,16 @@ partial void ProcessAdminCreateDeveloperKeyResponseContent(
437435
__exception_404 = __ex;
438436
}
439437

440-
throw new global::DeepL.ApiException(
438+
439+
throw global::DeepL.ApiException.Create(
440+
statusCode: __response.StatusCode,
441441
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
442442
innerException: __exception_404,
443-
statusCode: __response.StatusCode)
444-
{
445-
ResponseBody = __content_404,
446-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
443+
responseBody: __content_404,
444+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
447445
__response.Headers,
448446
h => h.Key,
449-
h => h.Value),
450-
};
447+
h => h.Value));
451448
}
452449
//
453450
if ((int)__response.StatusCode == 500)
@@ -470,17 +467,16 @@ partial void ProcessAdminCreateDeveloperKeyResponseContent(
470467
__exception_500 = __ex;
471468
}
472469

473-
throw new global::DeepL.ApiException(
470+
471+
throw global::DeepL.ApiException.Create(
472+
statusCode: __response.StatusCode,
474473
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
475474
innerException: __exception_500,
476-
statusCode: __response.StatusCode)
477-
{
478-
ResponseBody = __content_500,
479-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
475+
responseBody: __content_500,
476+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
480477
__response.Headers,
481478
h => h.Key,
482-
h => h.Value),
483-
};
479+
h => h.Value));
484480
}
485481

486482
if (__effectiveReadResponseAsString)
@@ -514,17 +510,15 @@ partial void ProcessAdminCreateDeveloperKeyResponseContent(
514510
}
515511
catch (global::System.Exception __ex)
516512
{
517-
throw new global::DeepL.ApiException(
513+
throw global::DeepL.ApiException.Create(
514+
statusCode: __response.StatusCode,
518515
message: __content ?? __response.ReasonPhrase ?? string.Empty,
519516
innerException: __ex,
520-
statusCode: __response.StatusCode)
521-
{
522-
ResponseBody = __content,
523-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
517+
responseBody: __content,
518+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
524519
__response.Headers,
525520
h => h.Key,
526-
h => h.Value),
527-
};
521+
h => h.Value));
528522
}
529523
}
530524
else
@@ -561,17 +555,15 @@ partial void ProcessAdminCreateDeveloperKeyResponseContent(
561555
{
562556
}
563557

564-
throw new global::DeepL.ApiException(
558+
throw global::DeepL.ApiException.Create(
559+
statusCode: __response.StatusCode,
565560
message: __content ?? __response.ReasonPhrase ?? string.Empty,
566561
innerException: __ex,
567-
statusCode: __response.StatusCode)
568-
{
569-
ResponseBody = __content,
570-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
562+
responseBody: __content,
563+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
571564
__response.Headers,
572565
h => h.Key,
573-
h => h.Value),
574-
};
566+
h => h.Value));
575567
}
576568
}
577569

src/libs/DeepL/Generated/DeepL.AdminApiClient.AdminDeactivateDeveloperKey.g.cs

Lines changed: 34 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -371,17 +371,16 @@ partial void ProcessAdminDeactivateDeveloperKeyResponseContent(
371371
__exception_400 = __ex;
372372
}
373373

374-
throw new global::DeepL.ApiException(
374+
375+
throw global::DeepL.ApiException.Create(
376+
statusCode: __response.StatusCode,
375377
message: __content_400 ?? __response.ReasonPhrase ?? string.Empty,
376378
innerException: __exception_400,
377-
statusCode: __response.StatusCode)
378-
{
379-
ResponseBody = __content_400,
380-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
379+
responseBody: __content_400,
380+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
381381
__response.Headers,
382382
h => h.Key,
383-
h => h.Value),
384-
};
383+
h => h.Value));
385384
}
386385
//
387386
if ((int)__response.StatusCode == 403)
@@ -404,17 +403,16 @@ partial void ProcessAdminDeactivateDeveloperKeyResponseContent(
404403
__exception_403 = __ex;
405404
}
406405

407-
throw new global::DeepL.ApiException(
406+
407+
throw global::DeepL.ApiException.Create(
408+
statusCode: __response.StatusCode,
408409
message: __content_403 ?? __response.ReasonPhrase ?? string.Empty,
409410
innerException: __exception_403,
410-
statusCode: __response.StatusCode)
411-
{
412-
ResponseBody = __content_403,
413-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
411+
responseBody: __content_403,
412+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
414413
__response.Headers,
415414
h => h.Key,
416-
h => h.Value),
417-
};
415+
h => h.Value));
418416
}
419417
//
420418
if ((int)__response.StatusCode == 404)
@@ -437,17 +435,16 @@ partial void ProcessAdminDeactivateDeveloperKeyResponseContent(
437435
__exception_404 = __ex;
438436
}
439437

440-
throw new global::DeepL.ApiException(
438+
439+
throw global::DeepL.ApiException.Create(
440+
statusCode: __response.StatusCode,
441441
message: __content_404 ?? __response.ReasonPhrase ?? string.Empty,
442442
innerException: __exception_404,
443-
statusCode: __response.StatusCode)
444-
{
445-
ResponseBody = __content_404,
446-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
443+
responseBody: __content_404,
444+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
447445
__response.Headers,
448446
h => h.Key,
449-
h => h.Value),
450-
};
447+
h => h.Value));
451448
}
452449
//
453450
if ((int)__response.StatusCode == 500)
@@ -470,17 +467,16 @@ partial void ProcessAdminDeactivateDeveloperKeyResponseContent(
470467
__exception_500 = __ex;
471468
}
472469

473-
throw new global::DeepL.ApiException(
470+
471+
throw global::DeepL.ApiException.Create(
472+
statusCode: __response.StatusCode,
474473
message: __content_500 ?? __response.ReasonPhrase ?? string.Empty,
475474
innerException: __exception_500,
476-
statusCode: __response.StatusCode)
477-
{
478-
ResponseBody = __content_500,
479-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
475+
responseBody: __content_500,
476+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
480477
__response.Headers,
481478
h => h.Key,
482-
h => h.Value),
483-
};
479+
h => h.Value));
484480
}
485481

486482
if (__effectiveReadResponseAsString)
@@ -514,17 +510,15 @@ partial void ProcessAdminDeactivateDeveloperKeyResponseContent(
514510
}
515511
catch (global::System.Exception __ex)
516512
{
517-
throw new global::DeepL.ApiException(
513+
throw global::DeepL.ApiException.Create(
514+
statusCode: __response.StatusCode,
518515
message: __content ?? __response.ReasonPhrase ?? string.Empty,
519516
innerException: __ex,
520-
statusCode: __response.StatusCode)
521-
{
522-
ResponseBody = __content,
523-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
517+
responseBody: __content,
518+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
524519
__response.Headers,
525520
h => h.Key,
526-
h => h.Value),
527-
};
521+
h => h.Value));
528522
}
529523
}
530524
else
@@ -561,17 +555,15 @@ partial void ProcessAdminDeactivateDeveloperKeyResponseContent(
561555
{
562556
}
563557

564-
throw new global::DeepL.ApiException(
558+
throw global::DeepL.ApiException.Create(
559+
statusCode: __response.StatusCode,
565560
message: __content ?? __response.ReasonPhrase ?? string.Empty,
566561
innerException: __ex,
567-
statusCode: __response.StatusCode)
568-
{
569-
ResponseBody = __content,
570-
ResponseHeaders = global::System.Linq.Enumerable.ToDictionary(
562+
responseBody: __content,
563+
responseHeaders: global::System.Linq.Enumerable.ToDictionary(
571564
__response.Headers,
572565
h => h.Key,
573-
h => h.Value),
574-
};
566+
h => h.Value));
575567
}
576568
}
577569

0 commit comments

Comments
 (0)