@@ -49,10 +49,10 @@ export class PetService {
49
49
* @param pet Pet object that needs to be added to the store
50
50
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
51
51
* @param reportProgress flag to report request and response progress.
52
- * @param {* } [options] Override http request option.
52
+ * @param {* } [addPetRequestConfig. options] Override http request option.
53
53
*/
54
- public addPet ( pet : Pet , options ?: AxiosRequestConfig ) : Observable < AxiosResponse < Pet > > ;
55
- public addPet ( pet : Pet , options ?: AxiosRequestConfig ) : Observable < any > {
54
+ public addPet ( pet : Pet , addPetRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < AxiosResponse < Pet > > ;
55
+ public addPet ( pet : Pet , addPetRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < any > {
56
56
if ( pet === null || pet === undefined ) {
57
57
throw new Error ( 'Required parameter pet was null or undefined when calling addPet.' ) ;
58
58
}
@@ -97,8 +97,8 @@ export class PetService {
97
97
pet ,
98
98
{
99
99
withCredentials : this . configuration . withCredentials ,
100
- headers : { ...headers , ...options ?. headers } ,
101
- ...options ,
100
+ headers : { ...headers , ...addPetRequestConfig ?. options ?. headers } ,
101
+ ...addPetRequestConfig ?. options ,
102
102
}
103
103
) ;
104
104
} )
@@ -111,10 +111,10 @@ export class PetService {
111
111
* @param apiKey
112
112
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
113
113
* @param reportProgress flag to report request and response progress.
114
- * @param {* } [options] Override http request option.
114
+ * @param {* } [deletePetRequestConfig. options] Override http request option.
115
115
*/
116
- public deletePet ( petId : number , apiKey ?: string , options ?: AxiosRequestConfig ) : Observable < AxiosResponse < any > > ;
117
- public deletePet ( petId : number , apiKey ?: string , options ?: AxiosRequestConfig ) : Observable < any > {
116
+ public deletePet ( petId : number , apiKey ?: string , deletePetRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < AxiosResponse < any > > ;
117
+ public deletePet ( petId : number , apiKey ?: string , deletePetRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < any > {
118
118
if ( petId === null || petId === undefined ) {
119
119
throw new Error ( 'Required parameter petId was null or undefined when calling deletePet.' ) ;
120
120
}
@@ -153,8 +153,8 @@ export class PetService {
153
153
return this . httpClient . delete < any > ( `${ this . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } ` ,
154
154
{
155
155
withCredentials : this . configuration . withCredentials ,
156
- headers : { ...headers , ...options ?. headers } ,
157
- ...options ,
156
+ headers : { ...headers , ...deletePetRequestConfig ?. options ?. headers } ,
157
+ ...deletePetRequestConfig ?. options ,
158
158
}
159
159
) ;
160
160
} )
@@ -166,10 +166,10 @@ export class PetService {
166
166
* @param status Status values that need to be considered for filter
167
167
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
168
168
* @param reportProgress flag to report request and response progress.
169
- * @param {* } [options] Override http request option.
169
+ * @param {* } [findPetsByStatusRequestConfig. options] Override http request option.
170
170
*/
171
- public findPetsByStatus ( status : Array < 'available' | 'pending' | 'sold' > , options ?: AxiosRequestConfig ) : Observable < AxiosResponse < Array < Pet > > > ;
172
- public findPetsByStatus ( status : Array < 'available' | 'pending' | 'sold' > , options ?: AxiosRequestConfig ) : Observable < any > {
171
+ public findPetsByStatus ( status : Array < 'available' | 'pending' | 'sold' > , findPetsByStatusRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < AxiosResponse < Array < Pet > > > ;
172
+ public findPetsByStatus ( status : Array < 'available' | 'pending' | 'sold' > , findPetsByStatusRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < any > {
173
173
if ( status === null || status === undefined ) {
174
174
throw new Error ( 'Required parameter status was null or undefined when calling findPetsByStatus.' ) ;
175
175
}
@@ -213,8 +213,8 @@ export class PetService {
213
213
{
214
214
params : queryParameters ,
215
215
withCredentials : this . configuration . withCredentials ,
216
- headers : { ...headers , ...options ?. headers } ,
217
- ...options ,
216
+ headers : { ...headers , ...findPetsByStatusRequestConfig ?. options ?. headers } ,
217
+ ...findPetsByStatusRequestConfig ?. options ,
218
218
}
219
219
) ;
220
220
} )
@@ -226,10 +226,10 @@ export class PetService {
226
226
* @param tags Tags to filter by
227
227
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
228
228
* @param reportProgress flag to report request and response progress.
229
- * @param {* } [options] Override http request option.
229
+ * @param {* } [findPetsByTagsRequestConfig. options] Override http request option.
230
230
*/
231
- public findPetsByTags ( tags : Array < string > , options ?: AxiosRequestConfig ) : Observable < AxiosResponse < Array < Pet > > > ;
232
- public findPetsByTags ( tags : Array < string > , options ?: AxiosRequestConfig ) : Observable < any > {
231
+ public findPetsByTags ( tags : Array < string > , findPetsByTagsRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < AxiosResponse < Array < Pet > > > ;
232
+ public findPetsByTags ( tags : Array < string > , findPetsByTagsRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < any > {
233
233
if ( tags === null || tags === undefined ) {
234
234
throw new Error ( 'Required parameter tags was null or undefined when calling findPetsByTags.' ) ;
235
235
}
@@ -273,8 +273,8 @@ export class PetService {
273
273
{
274
274
params : queryParameters ,
275
275
withCredentials : this . configuration . withCredentials ,
276
- headers : { ...headers , ...options ?. headers } ,
277
- ...options ,
276
+ headers : { ...headers , ...findPetsByTagsRequestConfig ?. options ?. headers } ,
277
+ ...findPetsByTagsRequestConfig ?. options ,
278
278
}
279
279
) ;
280
280
} )
@@ -286,10 +286,10 @@ export class PetService {
286
286
* @param petId ID of pet to return
287
287
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
288
288
* @param reportProgress flag to report request and response progress.
289
- * @param {* } [options] Override http request option.
289
+ * @param {* } [getPetByIdRequestConfig. options] Override http request option.
290
290
*/
291
- public getPetById ( petId : number , options ?: AxiosRequestConfig ) : Observable < AxiosResponse < Pet > > ;
292
- public getPetById ( petId : number , options ?: AxiosRequestConfig ) : Observable < any > {
291
+ public getPetById ( petId : number , getPetByIdRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < AxiosResponse < Pet > > ;
292
+ public getPetById ( petId : number , getPetByIdRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < any > {
293
293
if ( petId === null || petId === undefined ) {
294
294
throw new Error ( 'Required parameter petId was null or undefined when calling getPetById.' ) ;
295
295
}
@@ -325,8 +325,8 @@ export class PetService {
325
325
return this . httpClient . get < Pet > ( `${ this . basePath } /pet/${ encodeURIComponent ( String ( petId ) ) } ` ,
326
326
{
327
327
withCredentials : this . configuration . withCredentials ,
328
- headers : { ...headers , ...options ?. headers } ,
329
- ...options ,
328
+ headers : { ...headers , ...getPetByIdRequestConfig ?. options ?. headers } ,
329
+ ...getPetByIdRequestConfig ?. options ,
330
330
}
331
331
) ;
332
332
} )
@@ -338,10 +338,10 @@ export class PetService {
338
338
* @param pet Pet object that needs to be added to the store
339
339
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
340
340
* @param reportProgress flag to report request and response progress.
341
- * @param {* } [options] Override http request option.
341
+ * @param {* } [updatePetRequestConfig. options] Override http request option.
342
342
*/
343
- public updatePet ( pet : Pet , options ?: AxiosRequestConfig ) : Observable < AxiosResponse < Pet > > ;
344
- public updatePet ( pet : Pet , options ?: AxiosRequestConfig ) : Observable < any > {
343
+ public updatePet ( pet : Pet , updatePetRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < AxiosResponse < Pet > > ;
344
+ public updatePet ( pet : Pet , updatePetRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < any > {
345
345
if ( pet === null || pet === undefined ) {
346
346
throw new Error ( 'Required parameter pet was null or undefined when calling updatePet.' ) ;
347
347
}
@@ -386,8 +386,8 @@ export class PetService {
386
386
pet ,
387
387
{
388
388
withCredentials : this . configuration . withCredentials ,
389
- headers : { ...headers , ...options ?. headers } ,
390
- ...options ,
389
+ headers : { ...headers , ...updatePetRequestConfig ?. options ?. headers } ,
390
+ ...updatePetRequestConfig ?. options ,
391
391
}
392
392
) ;
393
393
} )
@@ -401,10 +401,10 @@ export class PetService {
401
401
* @param status Updated status of the pet
402
402
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
403
403
* @param reportProgress flag to report request and response progress.
404
- * @param {* } [options] Override http request option.
404
+ * @param {* } [updatePetWithFormRequestConfig. options] Override http request option.
405
405
*/
406
- public updatePetWithForm ( petId : number , name ?: string , status ?: string , options ?: AxiosRequestConfig ) : Observable < AxiosResponse < any > > ;
407
- public updatePetWithForm ( petId : number , name ?: string , status ?: string , options ?: AxiosRequestConfig ) : Observable < any > {
406
+ public updatePetWithForm ( petId : number , name ?: string , status ?: string , updatePetWithFormRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < AxiosResponse < any > > ;
407
+ public updatePetWithForm ( petId : number , name ?: string , status ?: string , updatePetWithFormRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < any > {
408
408
if ( petId === null || petId === undefined ) {
409
409
throw new Error ( 'Required parameter petId was null or undefined when calling updatePetWithForm.' ) ;
410
410
}
@@ -462,8 +462,8 @@ export class PetService {
462
462
convertFormParamsToString ? formParams ! . toString ( ) : formParams ! ,
463
463
{
464
464
withCredentials : this . configuration . withCredentials ,
465
- headers : { ...headers , ...options ?. headers } ,
466
- ...options ,
465
+ headers : { ...headers , ...updatePetWithFormRequestConfig ?. options ?. headers } ,
466
+ ...updatePetWithFormRequestConfig ?. options ,
467
467
}
468
468
) ;
469
469
} )
@@ -477,10 +477,10 @@ export class PetService {
477
477
* @param file file to upload
478
478
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
479
479
* @param reportProgress flag to report request and response progress.
480
- * @param {* } [options] Override http request option.
480
+ * @param {* } [uploadFileRequestConfig. options] Override http request option.
481
481
*/
482
- public uploadFile ( petId : number , additionalMetadata ?: string , file ?: Blob , options ?: AxiosRequestConfig ) : Observable < AxiosResponse < ApiResponse > > ;
483
- public uploadFile ( petId : number , additionalMetadata ?: string , file ?: Blob , options ?: AxiosRequestConfig ) : Observable < any > {
482
+ public uploadFile ( petId : number , additionalMetadata ?: string , file ?: Blob , uploadFileRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < AxiosResponse < ApiResponse > > ;
483
+ public uploadFile ( petId : number , additionalMetadata ?: string , file ?: Blob , uploadFileRequestConfig ?: { options ?: AxiosRequestConfig } ) : Observable < any > {
484
484
if ( petId === null || petId === undefined ) {
485
485
throw new Error ( 'Required parameter petId was null or undefined when calling uploadFile.' ) ;
486
486
}
@@ -543,8 +543,8 @@ export class PetService {
543
543
convertFormParamsToString ? formParams ! . toString ( ) : formParams ! ,
544
544
{
545
545
withCredentials : this . configuration . withCredentials ,
546
- headers : { ...headers , ...options ?. headers } ,
547
- ...options ,
546
+ headers : { ...headers , ...uploadFileRequestConfig ?. options ?. headers } ,
547
+ ...uploadFileRequestConfig ?. options ,
548
548
}
549
549
) ;
550
550
} )
0 commit comments