@@ -41,6 +41,9 @@ module Petstore
41
41
# resource path
42
42
local_var_path = " /pet"
43
43
44
+ # cookie parameters
45
+ cookie_params = Hash (String , String ).new
46
+
44
47
# query parameters
45
48
query_params = Hash (String , String ).new
46
49
@@ -71,6 +74,7 @@ module Petstore
71
74
auth_names,
72
75
header_params,
73
76
query_params,
77
+ cookie_params,
74
78
form_params)
75
79
if @api_client .config.debugging
76
80
Log .debug {" API called: PetApi#add_pet\n Data: #{ data.inspect } \n Status code: #{ status_code } \n Headers: #{ headers } " }
@@ -82,7 +86,7 @@ module Petstore
82
86
#
83
87
# @param pet_id [Int64] Pet id to delete
84
88
# @return [nil]
85
- def delete_pet (pet_id : Int64 , api_key : String ?)
89
+ def delete_pet (pet_id : Int64 , api_key : String ? = nil )
86
90
delete_pet_with_http_info(pet_id, api_key)
87
91
nil
88
92
end
@@ -91,7 +95,7 @@ module Petstore
91
95
#
92
96
# @param pet_id [Int64] Pet id to delete
93
97
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
94
- def delete_pet_with_http_info (pet_id : Int64 , api_key : String ?)
98
+ def delete_pet_with_http_info (pet_id : Int64 , api_key : String ? = nil )
95
99
if @api_client .config.debugging
96
100
Log .debug {" Calling API: PetApi.delete_pet ..." }
97
101
end
@@ -102,6 +106,9 @@ module Petstore
102
106
# resource path
103
107
local_var_path = " /pet/{petId}" .sub(" {" + " petId" + " }" , URI .encode_path(pet_id.to_s).gsub(" %2F" , " /" ))
104
108
109
+ # cookie parameters
110
+ cookie_params = Hash (String , String ).new
111
+
105
112
# query parameters
106
113
query_params = Hash (String , String ).new
107
114
@@ -129,6 +136,7 @@ module Petstore
129
136
auth_names,
130
137
header_params,
131
138
query_params,
139
+ cookie_params,
132
140
form_params)
133
141
if @api_client .config.debugging
134
142
Log .debug {" API called: PetApi#delete_pet\n Data: #{ data.inspect } \n Status code: #{ status_code } \n Headers: #{ headers } " }
@@ -160,9 +168,12 @@ module Petstore
160
168
# resource path
161
169
local_var_path = " /pet/findByStatus"
162
170
171
+ # cookie parameters
172
+ cookie_params = Hash (String , String ).new
173
+
163
174
# query parameters
164
175
query_params = Hash (String , String ).new
165
- query_params[" status" ] = @api_client .build_collection_param(status, :csv )
176
+ query_params[" status" ] = @api_client .build_collection_param(status, :csv ) unless status.nil?
166
177
167
178
# header parameters
168
179
header_params = Hash (String , String ).new
@@ -189,6 +200,7 @@ module Petstore
189
200
auth_names,
190
201
header_params,
191
202
query_params,
203
+ cookie_params,
192
204
form_params)
193
205
if @api_client .config.debugging
194
206
Log .debug {" API called: PetApi#find_pets_by_status\n Data: #{ data.inspect } \n Status code: #{ status_code } \n Headers: #{ headers } " }
@@ -220,9 +232,12 @@ module Petstore
220
232
# resource path
221
233
local_var_path = " /pet/findByTags"
222
234
235
+ # cookie parameters
236
+ cookie_params = Hash (String , String ).new
237
+
223
238
# query parameters
224
239
query_params = Hash (String , String ).new
225
- query_params[" tags" ] = @api_client .build_collection_param(tags, :csv )
240
+ query_params[" tags" ] = @api_client .build_collection_param(tags, :csv ) unless tags.nil?
226
241
227
242
# header parameters
228
243
header_params = Hash (String , String ).new
@@ -249,6 +264,7 @@ module Petstore
249
264
auth_names,
250
265
header_params,
251
266
query_params,
267
+ cookie_params,
252
268
form_params)
253
269
if @api_client .config.debugging
254
270
Log .debug {" API called: PetApi#find_pets_by_tags\n Data: #{ data.inspect } \n Status code: #{ status_code } \n Headers: #{ headers } " }
@@ -280,6 +296,9 @@ module Petstore
280
296
# resource path
281
297
local_var_path = " /pet/{petId}" .sub(" {" + " petId" + " }" , URI .encode_path(pet_id.to_s).gsub(" %2F" , " /" ))
282
298
299
+ # cookie parameters
300
+ cookie_params = Hash (String , String ).new
301
+
283
302
# query parameters
284
303
query_params = Hash (String , String ).new
285
304
@@ -308,6 +327,7 @@ module Petstore
308
327
auth_names,
309
328
header_params,
310
329
query_params,
330
+ cookie_params,
311
331
form_params)
312
332
if @api_client .config.debugging
313
333
Log .debug {" API called: PetApi#get_pet_by_id\n Data: #{ data.inspect } \n Status code: #{ status_code } \n Headers: #{ headers } " }
@@ -339,6 +359,9 @@ module Petstore
339
359
# resource path
340
360
local_var_path = " /pet"
341
361
362
+ # cookie parameters
363
+ cookie_params = Hash (String , String ).new
364
+
342
365
# query parameters
343
366
query_params = Hash (String , String ).new
344
367
@@ -369,6 +392,7 @@ module Petstore
369
392
auth_names,
370
393
header_params,
371
394
query_params,
395
+ cookie_params,
372
396
form_params)
373
397
if @api_client .config.debugging
374
398
Log .debug {" API called: PetApi#update_pet\n Data: #{ data.inspect } \n Status code: #{ status_code } \n Headers: #{ headers } " }
@@ -380,7 +404,7 @@ module Petstore
380
404
#
381
405
# @param pet_id [Int64] ID of pet that needs to be updated
382
406
# @return [nil]
383
- def update_pet_with_form (pet_id : Int64 , name : String ?, status : String ?)
407
+ def update_pet_with_form (pet_id : Int64 , name : String ? = nil , status : String ? = nil )
384
408
update_pet_with_form_with_http_info(pet_id, name, status)
385
409
nil
386
410
end
@@ -389,7 +413,7 @@ module Petstore
389
413
#
390
414
# @param pet_id [Int64] ID of pet that needs to be updated
391
415
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
392
- def update_pet_with_form_with_http_info (pet_id : Int64 , name : String ?, status : String ?)
416
+ def update_pet_with_form_with_http_info (pet_id : Int64 , name : String ? = nil , status : String ? = nil )
393
417
if @api_client .config.debugging
394
418
Log .debug {" Calling API: PetApi.update_pet_with_form ..." }
395
419
end
@@ -400,6 +424,9 @@ module Petstore
400
424
# resource path
401
425
local_var_path = " /pet/{petId}" .sub(" {" + " petId" + " }" , URI .encode_path(pet_id.to_s).gsub(" %2F" , " /" ))
402
426
427
+ # cookie parameters
428
+ cookie_params = Hash (String , String ).new
429
+
403
430
# query parameters
404
431
query_params = Hash (String , String ).new
405
432
@@ -430,6 +457,7 @@ module Petstore
430
457
auth_names,
431
458
header_params,
432
459
query_params,
460
+ cookie_params,
433
461
form_params)
434
462
if @api_client .config.debugging
435
463
Log .debug {" API called: PetApi#update_pet_with_form\n Data: #{ data.inspect } \n Status code: #{ status_code } \n Headers: #{ headers } " }
@@ -441,7 +469,7 @@ module Petstore
441
469
#
442
470
# @param pet_id [Int64] ID of pet to update
443
471
# @return [ApiResponse]
444
- def upload_file (pet_id : Int64 , additional_metadata : String ?, file : ::File ?)
472
+ def upload_file (pet_id : Int64 , additional_metadata : String ? = nil , file : ::File ? = nil )
445
473
data, _status_code, _headers = upload_file_with_http_info(pet_id, additional_metadata, file)
446
474
data
447
475
end
@@ -450,7 +478,7 @@ module Petstore
450
478
#
451
479
# @param pet_id [Int64] ID of pet to update
452
480
# @return [Array<(ApiResponse, Integer, Hash)>] ApiResponse data, response status code and response headers
453
- def upload_file_with_http_info (pet_id : Int64 , additional_metadata : String ?, file : ::File ?)
481
+ def upload_file_with_http_info (pet_id : Int64 , additional_metadata : String ? = nil , file : ::File ? = nil )
454
482
if @api_client .config.debugging
455
483
Log .debug {" Calling API: PetApi.upload_file ..." }
456
484
end
@@ -461,6 +489,9 @@ module Petstore
461
489
# resource path
462
490
local_var_path = " /pet/{petId}/uploadImage" .sub(" {" + " petId" + " }" , URI .encode_path(pet_id.to_s).gsub(" %2F" , " /" ))
463
491
492
+ # cookie parameters
493
+ cookie_params = Hash (String , String ).new
494
+
464
495
# query parameters
465
496
query_params = Hash (String , String ).new
466
497
@@ -493,6 +524,7 @@ module Petstore
493
524
auth_names,
494
525
header_params,
495
526
query_params,
527
+ cookie_params,
496
528
form_params)
497
529
if @api_client .config.debugging
498
530
Log .debug {" API called: PetApi#upload_file\n Data: #{ data.inspect } \n Status code: #{ status_code } \n Headers: #{ headers } " }
0 commit comments