@@ -23,14 +23,16 @@ import {
2323
2424import { TypingInfo } from "./models/TypingInfo" ;
2525import { APIErrorResponse } from "./models/APIErrorResponse" ;
26+ import { DORADeploymentFetchResponse } from "./models/DORADeploymentFetchResponse" ;
2627import { DORADeploymentRequest } from "./models/DORADeploymentRequest" ;
2728import { DORADeploymentResponse } from "./models/DORADeploymentResponse" ;
29+ import { DORADeploymentsListResponse } from "./models/DORADeploymentsListResponse" ;
30+ import { DORAFailureFetchResponse } from "./models/DORAFailureFetchResponse" ;
2831import { DORAFailureRequest } from "./models/DORAFailureRequest" ;
2932import { DORAFailureResponse } from "./models/DORAFailureResponse" ;
30- import { DORAFetchResponse } from "./models/DORAFetchResponse " ;
33+ import { DORAFailuresListResponse } from "./models/DORAFailuresListResponse " ;
3134import { DORAListDeploymentsRequest } from "./models/DORAListDeploymentsRequest" ;
3235import { DORAListFailuresRequest } from "./models/DORAListFailuresRequest" ;
33- import { DORAListResponse } from "./models/DORAListResponse" ;
3436import { JSONAPIErrorResponse } from "./models/JSONAPIErrorResponse" ;
3537import { version } from "../version" ;
3638
@@ -830,14 +832,14 @@ export class DORAMetricsApiResponseProcessor {
830832 */
831833 public async getDORADeployment (
832834 response : ResponseContext ,
833- ) : Promise < DORAFetchResponse > {
835+ ) : Promise < DORADeploymentFetchResponse > {
834836 const contentType = normalizeMediaType ( response . headers [ "content-type" ] ) ;
835837 if ( response . httpStatusCode === 200 ) {
836- const body : DORAFetchResponse = deserialize (
838+ const body : DORADeploymentFetchResponse = deserialize (
837839 parse ( await response . body . text ( ) , contentType ) ,
838840 TypingInfo ,
839- "DORAFetchResponse " ,
840- ) as DORAFetchResponse ;
841+ "DORADeploymentFetchResponse " ,
842+ ) as DORADeploymentFetchResponse ;
841843 return body ;
842844 }
843845 if ( response . httpStatusCode === 400 ) {
@@ -882,12 +884,12 @@ export class DORAMetricsApiResponseProcessor {
882884
883885 // Work around for missing responses in specification, e.g. for petstore.yaml
884886 if ( response . httpStatusCode >= 200 && response . httpStatusCode <= 299 ) {
885- const body : DORAFetchResponse = deserialize (
887+ const body : DORADeploymentFetchResponse = deserialize (
886888 parse ( await response . body . text ( ) , contentType ) ,
887889 TypingInfo ,
888- "DORAFetchResponse " ,
890+ "DORADeploymentFetchResponse " ,
889891 "" ,
890- ) as DORAFetchResponse ;
892+ ) as DORADeploymentFetchResponse ;
891893 return body ;
892894 }
893895
@@ -907,14 +909,14 @@ export class DORAMetricsApiResponseProcessor {
907909 */
908910 public async getDORAFailure (
909911 response : ResponseContext ,
910- ) : Promise < DORAFetchResponse > {
912+ ) : Promise < DORAFailureFetchResponse > {
911913 const contentType = normalizeMediaType ( response . headers [ "content-type" ] ) ;
912914 if ( response . httpStatusCode === 200 ) {
913- const body : DORAFetchResponse = deserialize (
915+ const body : DORAFailureFetchResponse = deserialize (
914916 parse ( await response . body . text ( ) , contentType ) ,
915917 TypingInfo ,
916- "DORAFetchResponse " ,
917- ) as DORAFetchResponse ;
918+ "DORAFailureFetchResponse " ,
919+ ) as DORAFailureFetchResponse ;
918920 return body ;
919921 }
920922 if ( response . httpStatusCode === 400 ) {
@@ -959,12 +961,12 @@ export class DORAMetricsApiResponseProcessor {
959961
960962 // Work around for missing responses in specification, e.g. for petstore.yaml
961963 if ( response . httpStatusCode >= 200 && response . httpStatusCode <= 299 ) {
962- const body : DORAFetchResponse = deserialize (
964+ const body : DORAFailureFetchResponse = deserialize (
963965 parse ( await response . body . text ( ) , contentType ) ,
964966 TypingInfo ,
965- "DORAFetchResponse " ,
967+ "DORAFailureFetchResponse " ,
966968 "" ,
967- ) as DORAFetchResponse ;
969+ ) as DORAFailureFetchResponse ;
968970 return body ;
969971 }
970972
@@ -984,14 +986,14 @@ export class DORAMetricsApiResponseProcessor {
984986 */
985987 public async listDORADeployments (
986988 response : ResponseContext ,
987- ) : Promise < DORAListResponse > {
989+ ) : Promise < DORADeploymentsListResponse > {
988990 const contentType = normalizeMediaType ( response . headers [ "content-type" ] ) ;
989991 if ( response . httpStatusCode === 200 ) {
990- const body : DORAListResponse = deserialize (
992+ const body : DORADeploymentsListResponse = deserialize (
991993 parse ( await response . body . text ( ) , contentType ) ,
992994 TypingInfo ,
993- "DORAListResponse " ,
994- ) as DORAListResponse ;
995+ "DORADeploymentsListResponse " ,
996+ ) as DORADeploymentsListResponse ;
995997 return body ;
996998 }
997999 if ( response . httpStatusCode === 400 ) {
@@ -1036,12 +1038,12 @@ export class DORAMetricsApiResponseProcessor {
10361038
10371039 // Work around for missing responses in specification, e.g. for petstore.yaml
10381040 if ( response . httpStatusCode >= 200 && response . httpStatusCode <= 299 ) {
1039- const body : DORAListResponse = deserialize (
1041+ const body : DORADeploymentsListResponse = deserialize (
10401042 parse ( await response . body . text ( ) , contentType ) ,
10411043 TypingInfo ,
1042- "DORAListResponse " ,
1044+ "DORADeploymentsListResponse " ,
10431045 "" ,
1044- ) as DORAListResponse ;
1046+ ) as DORADeploymentsListResponse ;
10451047 return body ;
10461048 }
10471049
@@ -1061,14 +1063,14 @@ export class DORAMetricsApiResponseProcessor {
10611063 */
10621064 public async listDORAFailures (
10631065 response : ResponseContext ,
1064- ) : Promise < DORAListResponse > {
1066+ ) : Promise < DORAFailuresListResponse > {
10651067 const contentType = normalizeMediaType ( response . headers [ "content-type" ] ) ;
10661068 if ( response . httpStatusCode === 200 ) {
1067- const body : DORAListResponse = deserialize (
1069+ const body : DORAFailuresListResponse = deserialize (
10681070 parse ( await response . body . text ( ) , contentType ) ,
10691071 TypingInfo ,
1070- "DORAListResponse " ,
1071- ) as DORAListResponse ;
1072+ "DORAFailuresListResponse " ,
1073+ ) as DORAFailuresListResponse ;
10721074 return body ;
10731075 }
10741076 if ( response . httpStatusCode === 400 ) {
@@ -1113,12 +1115,12 @@ export class DORAMetricsApiResponseProcessor {
11131115
11141116 // Work around for missing responses in specification, e.g. for petstore.yaml
11151117 if ( response . httpStatusCode >= 200 && response . httpStatusCode <= 299 ) {
1116- const body : DORAListResponse = deserialize (
1118+ const body : DORAFailuresListResponse = deserialize (
11171119 parse ( await response . body . text ( ) , contentType ) ,
11181120 TypingInfo ,
1119- "DORAListResponse " ,
1121+ "DORAFailuresListResponse " ,
11201122 "" ,
1121- ) as DORAListResponse ;
1123+ ) as DORAFailuresListResponse ;
11221124 return body ;
11231125 }
11241126
@@ -1343,7 +1345,7 @@ export class DORAMetricsApi {
13431345 public getDORADeployment (
13441346 param : DORAMetricsApiGetDORADeploymentRequest ,
13451347 options ?: Configuration ,
1346- ) : Promise < DORAFetchResponse > {
1348+ ) : Promise < DORADeploymentFetchResponse > {
13471349 const requestContextPromise = this . requestFactory . getDORADeployment (
13481350 param . deploymentId ,
13491351 options ,
@@ -1364,7 +1366,7 @@ export class DORAMetricsApi {
13641366 public getDORAFailure (
13651367 param : DORAMetricsApiGetDORAFailureRequest ,
13661368 options ?: Configuration ,
1367- ) : Promise < DORAFetchResponse > {
1369+ ) : Promise < DORAFailureFetchResponse > {
13681370 const requestContextPromise = this . requestFactory . getDORAFailure (
13691371 param . failureId ,
13701372 options ,
@@ -1385,7 +1387,7 @@ export class DORAMetricsApi {
13851387 public listDORADeployments (
13861388 param : DORAMetricsApiListDORADeploymentsRequest ,
13871389 options ?: Configuration ,
1388- ) : Promise < DORAListResponse > {
1390+ ) : Promise < DORADeploymentsListResponse > {
13891391 const requestContextPromise = this . requestFactory . listDORADeployments (
13901392 param . body ,
13911393 options ,
@@ -1406,7 +1408,7 @@ export class DORAMetricsApi {
14061408 public listDORAFailures (
14071409 param : DORAMetricsApiListDORAFailuresRequest ,
14081410 options ?: Configuration ,
1409- ) : Promise < DORAListResponse > {
1411+ ) : Promise < DORAFailuresListResponse > {
14101412 const requestContextPromise = this . requestFactory . listDORAFailures (
14111413 param . body ,
14121414 options ,
0 commit comments