@@ -69,6 +69,7 @@ export class PetService implements PetServiceInterface {
69
69
public addPet ( body : Pet , observe ?: 'response' , reportProgress ?: boolean ) : Observable < HttpResponse < any > > ;
70
70
public addPet ( body : Pet , observe ?: 'events' , reportProgress ?: boolean ) : Observable < HttpEvent < any > > ;
71
71
public addPet ( body : Pet , observe : any = 'body' , reportProgress : boolean = false ) : Observable < any > {
72
+
72
73
if ( body === null || body === undefined ) {
73
74
throw new Error ( 'Required parameter body was null or undefined when calling addPet.' ) ;
74
75
}
@@ -126,10 +127,12 @@ export class PetService implements PetServiceInterface {
126
127
public deletePet ( petId : number , apiKey ?: string , observe ?: 'response' , reportProgress ?: boolean ) : Observable < HttpResponse < any > > ;
127
128
public deletePet ( petId : number , apiKey ?: string , observe ?: 'events' , reportProgress ?: boolean ) : Observable < HttpEvent < any > > ;
128
129
public deletePet ( petId : number , apiKey ?: string , observe : any = 'body' , reportProgress : boolean = false ) : Observable < any > {
130
+
129
131
if ( petId === null || petId === undefined ) {
130
132
throw new Error ( 'Required parameter petId was null or undefined when calling deletePet.' ) ;
131
133
}
132
134
135
+
133
136
let headers = this . defaultHeaders ;
134
137
if ( apiKey !== undefined && apiKey !== null ) {
135
138
headers = headers . set ( 'api_key' , String ( apiKey ) ) ;
@@ -178,6 +181,7 @@ export class PetService implements PetServiceInterface {
178
181
public findPetsByStatus ( status : Array < 'available' | 'pending' | 'sold' > , observe ?: 'response' , reportProgress ?: boolean ) : Observable < HttpResponse < Array < Pet > > > ;
179
182
public findPetsByStatus ( status : Array < 'available' | 'pending' | 'sold' > , observe ?: 'events' , reportProgress ?: boolean ) : Observable < HttpEvent < Array < Pet > > > ;
180
183
public findPetsByStatus ( status : Array < 'available' | 'pending' | 'sold' > , observe : any = 'body' , reportProgress : boolean = false ) : Observable < any > {
184
+
181
185
if ( status === null || status === undefined ) {
182
186
throw new Error ( 'Required parameter status was null or undefined when calling findPetsByStatus.' ) ;
183
187
}
@@ -233,6 +237,7 @@ export class PetService implements PetServiceInterface {
233
237
public findPetsByTags ( tags : Array < string > , observe ?: 'response' , reportProgress ?: boolean ) : Observable < HttpResponse < Array < Pet > > > ;
234
238
public findPetsByTags ( tags : Array < string > , observe ?: 'events' , reportProgress ?: boolean ) : Observable < HttpEvent < Array < Pet > > > ;
235
239
public findPetsByTags ( tags : Array < string > , observe : any = 'body' , reportProgress : boolean = false ) : Observable < any > {
240
+
236
241
if ( tags === null || tags === undefined ) {
237
242
throw new Error ( 'Required parameter tags was null or undefined when calling findPetsByTags.' ) ;
238
243
}
@@ -288,6 +293,7 @@ export class PetService implements PetServiceInterface {
288
293
public getPetById ( petId : number , observe ?: 'response' , reportProgress ?: boolean ) : Observable < HttpResponse < Pet > > ;
289
294
public getPetById ( petId : number , observe ?: 'events' , reportProgress ?: boolean ) : Observable < HttpEvent < Pet > > ;
290
295
public getPetById ( petId : number , observe : any = 'body' , reportProgress : boolean = false ) : Observable < any > {
296
+
291
297
if ( petId === null || petId === undefined ) {
292
298
throw new Error ( 'Required parameter petId was null or undefined when calling getPetById.' ) ;
293
299
}
@@ -334,6 +340,7 @@ export class PetService implements PetServiceInterface {
334
340
public updatePet ( body : Pet , observe ?: 'response' , reportProgress ?: boolean ) : Observable < HttpResponse < any > > ;
335
341
public updatePet ( body : Pet , observe ?: 'events' , reportProgress ?: boolean ) : Observable < HttpEvent < any > > ;
336
342
public updatePet ( body : Pet , observe : any = 'body' , reportProgress : boolean = false ) : Observable < any > {
343
+
337
344
if ( body === null || body === undefined ) {
338
345
throw new Error ( 'Required parameter body was null or undefined when calling updatePet.' ) ;
339
346
}
@@ -392,10 +399,13 @@ export class PetService implements PetServiceInterface {
392
399
public updatePetWithForm ( petId : number , name ?: string , status ?: string , observe ?: 'response' , reportProgress ?: boolean ) : Observable < HttpResponse < any > > ;
393
400
public updatePetWithForm ( petId : number , name ?: string , status ?: string , observe ?: 'events' , reportProgress ?: boolean ) : Observable < HttpEvent < any > > ;
394
401
public updatePetWithForm ( petId : number , name ?: string , status ?: string , observe : any = 'body' , reportProgress : boolean = false ) : Observable < any > {
402
+
395
403
if ( petId === null || petId === undefined ) {
396
404
throw new Error ( 'Required parameter petId was null or undefined when calling updatePetWithForm.' ) ;
397
405
}
398
406
407
+
408
+
399
409
let headers = this . defaultHeaders ;
400
410
401
411
// authentication (petstore_auth) required
@@ -463,10 +473,13 @@ export class PetService implements PetServiceInterface {
463
473
public uploadFile ( petId : number , additionalMetadata ?: string , file ?: Blob , observe ?: 'response' , reportProgress ?: boolean ) : Observable < HttpResponse < ApiResponse > > ;
464
474
public uploadFile ( petId : number , additionalMetadata ?: string , file ?: Blob , observe ?: 'events' , reportProgress ?: boolean ) : Observable < HttpEvent < ApiResponse > > ;
465
475
public uploadFile ( petId : number , additionalMetadata ?: string , file ?: Blob , observe : any = 'body' , reportProgress : boolean = false ) : Observable < any > {
476
+
466
477
if ( petId === null || petId === undefined ) {
467
478
throw new Error ( 'Required parameter petId was null or undefined when calling uploadFile.' ) ;
468
479
}
469
480
481
+
482
+
470
483
let headers = this . defaultHeaders ;
471
484
472
485
// authentication (petstore_auth) required
0 commit comments