@@ -55,11 +55,9 @@ public com.airbyte.api.models.operations.CreateDestinationResponse createDestina
5555
5656 String contentType = httpRes .headers ().firstValue ("Content-Type" ).orElse ("application/octet-stream" );
5757
58- com .airbyte .api .models .operations .CreateDestinationResponse res = new com .airbyte .api .models .operations .CreateDestinationResponse () {{
58+ com .airbyte .api .models .operations .CreateDestinationResponse res = new com .airbyte .api .models .operations .CreateDestinationResponse (contentType , httpRes . statusCode () ) {{
5959 destinationResponse = null ;
6060 }};
61- res .statusCode = httpRes .statusCode ();
62- res .contentType = contentType ;
6361 res .rawResponse = httpRes ;
6462
6563 if (httpRes .statusCode () == 200 ) {
@@ -96,10 +94,8 @@ public com.airbyte.api.models.operations.DeleteDestinationResponse deleteDestina
9694
9795 String contentType = httpRes .headers ().firstValue ("Content-Type" ).orElse ("application/octet-stream" );
9896
99- com .airbyte .api .models .operations .DeleteDestinationResponse res = new com .airbyte .api .models .operations .DeleteDestinationResponse () {{
97+ com .airbyte .api .models .operations .DeleteDestinationResponse res = new com .airbyte .api .models .operations .DeleteDestinationResponse (contentType , httpRes . statusCode () ) {{
10098 }};
101- res .statusCode = httpRes .statusCode ();
102- res .contentType = contentType ;
10399 res .rawResponse = httpRes ;
104100
105101 if (httpRes .statusCode () == 204 || httpRes .statusCode () == 403 || httpRes .statusCode () == 404 ) {
@@ -129,11 +125,9 @@ public com.airbyte.api.models.operations.GetDestinationResponse getDestination(c
129125
130126 String contentType = httpRes .headers ().firstValue ("Content-Type" ).orElse ("application/octet-stream" );
131127
132- com .airbyte .api .models .operations .GetDestinationResponse res = new com .airbyte .api .models .operations .GetDestinationResponse () {{
128+ com .airbyte .api .models .operations .GetDestinationResponse res = new com .airbyte .api .models .operations .GetDestinationResponse (contentType , httpRes . statusCode () ) {{
133129 destinationResponse = null ;
134130 }};
135- res .statusCode = httpRes .statusCode ();
136- res .contentType = contentType ;
137131 res .rawResponse = httpRes ;
138132
139133 if (httpRes .statusCode () == 200 ) {
@@ -176,11 +170,9 @@ public com.airbyte.api.models.operations.ListDestinationsResponse listDestinatio
176170
177171 String contentType = httpRes .headers ().firstValue ("Content-Type" ).orElse ("application/octet-stream" );
178172
179- com .airbyte .api .models .operations .ListDestinationsResponse res = new com .airbyte .api .models .operations .ListDestinationsResponse () {{
173+ com .airbyte .api .models .operations .ListDestinationsResponse res = new com .airbyte .api .models .operations .ListDestinationsResponse (contentType , httpRes . statusCode () ) {{
180174 destinationsResponse = null ;
181175 }};
182- res .statusCode = httpRes .statusCode ();
183- res .contentType = contentType ;
184176 res .rawResponse = httpRes ;
185177
186178 if (httpRes .statusCode () == 200 ) {
0 commit comments