@@ -41,6 +41,9 @@ module Petstore
4141 # resource path
4242 local_var_path = " /pet"
4343
44+ # cookie parameters
45+ cookie_params = Hash (String , String ).new
46+
4447 # query parameters
4548 query_params = Hash (String , String ).new
4649
@@ -71,6 +74,7 @@ module Petstore
7174 auth_names,
7275 header_params,
7376 query_params,
77+ cookie_params,
7478 form_params)
7579 if @api_client .config.debugging
7680 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
8286 #
8387 # @param pet_id [Int64] Pet id to delete
8488 # @return [nil]
85- def delete_pet (pet_id : Int64 , api_key : String ?)
89+ def delete_pet (pet_id : Int64 , api_key : String ? = nil )
8690 delete_pet_with_http_info(pet_id, api_key)
8791 nil
8892 end
@@ -91,7 +95,7 @@ module Petstore
9195 #
9296 # @param pet_id [Int64] Pet id to delete
9397 # @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 )
9599 if @api_client .config.debugging
96100 Log .debug {" Calling API: PetApi.delete_pet ..." }
97101 end
@@ -102,6 +106,9 @@ module Petstore
102106 # resource path
103107 local_var_path = " /pet/{petId}" .sub(" {" + " petId" + " }" , URI .encode_path(pet_id.to_s).gsub(" %2F" , " /" ))
104108
109+ # cookie parameters
110+ cookie_params = Hash (String , String ).new
111+
105112 # query parameters
106113 query_params = Hash (String , String ).new
107114
@@ -129,6 +136,7 @@ module Petstore
129136 auth_names,
130137 header_params,
131138 query_params,
139+ cookie_params,
132140 form_params)
133141 if @api_client .config.debugging
134142 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
160168 # resource path
161169 local_var_path = " /pet/findByStatus"
162170
171+ # cookie parameters
172+ cookie_params = Hash (String , String ).new
173+
163174 # query parameters
164175 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?
166177
167178 # header parameters
168179 header_params = Hash (String , String ).new
@@ -189,6 +200,7 @@ module Petstore
189200 auth_names,
190201 header_params,
191202 query_params,
203+ cookie_params,
192204 form_params)
193205 if @api_client .config.debugging
194206 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
220232 # resource path
221233 local_var_path = " /pet/findByTags"
222234
235+ # cookie parameters
236+ cookie_params = Hash (String , String ).new
237+
223238 # query parameters
224239 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?
226241
227242 # header parameters
228243 header_params = Hash (String , String ).new
@@ -249,6 +264,7 @@ module Petstore
249264 auth_names,
250265 header_params,
251266 query_params,
267+ cookie_params,
252268 form_params)
253269 if @api_client .config.debugging
254270 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
280296 # resource path
281297 local_var_path = " /pet/{petId}" .sub(" {" + " petId" + " }" , URI .encode_path(pet_id.to_s).gsub(" %2F" , " /" ))
282298
299+ # cookie parameters
300+ cookie_params = Hash (String , String ).new
301+
283302 # query parameters
284303 query_params = Hash (String , String ).new
285304
@@ -308,6 +327,7 @@ module Petstore
308327 auth_names,
309328 header_params,
310329 query_params,
330+ cookie_params,
311331 form_params)
312332 if @api_client .config.debugging
313333 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
339359 # resource path
340360 local_var_path = " /pet"
341361
362+ # cookie parameters
363+ cookie_params = Hash (String , String ).new
364+
342365 # query parameters
343366 query_params = Hash (String , String ).new
344367
@@ -369,6 +392,7 @@ module Petstore
369392 auth_names,
370393 header_params,
371394 query_params,
395+ cookie_params,
372396 form_params)
373397 if @api_client .config.debugging
374398 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
380404 #
381405 # @param pet_id [Int64] ID of pet that needs to be updated
382406 # @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 )
384408 update_pet_with_form_with_http_info(pet_id, name, status)
385409 nil
386410 end
@@ -389,7 +413,7 @@ module Petstore
389413 #
390414 # @param pet_id [Int64] ID of pet that needs to be updated
391415 # @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 )
393417 if @api_client .config.debugging
394418 Log .debug {" Calling API: PetApi.update_pet_with_form ..." }
395419 end
@@ -400,6 +424,9 @@ module Petstore
400424 # resource path
401425 local_var_path = " /pet/{petId}" .sub(" {" + " petId" + " }" , URI .encode_path(pet_id.to_s).gsub(" %2F" , " /" ))
402426
427+ # cookie parameters
428+ cookie_params = Hash (String , String ).new
429+
403430 # query parameters
404431 query_params = Hash (String , String ).new
405432
@@ -430,6 +457,7 @@ module Petstore
430457 auth_names,
431458 header_params,
432459 query_params,
460+ cookie_params,
433461 form_params)
434462 if @api_client .config.debugging
435463 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
441469 #
442470 # @param pet_id [Int64] ID of pet to update
443471 # @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 )
445473 data, _status_code, _headers = upload_file_with_http_info(pet_id, additional_metadata, file)
446474 data
447475 end
@@ -450,7 +478,7 @@ module Petstore
450478 #
451479 # @param pet_id [Int64] ID of pet to update
452480 # @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 )
454482 if @api_client .config.debugging
455483 Log .debug {" Calling API: PetApi.upload_file ..." }
456484 end
@@ -461,6 +489,9 @@ module Petstore
461489 # resource path
462490 local_var_path = " /pet/{petId}/uploadImage" .sub(" {" + " petId" + " }" , URI .encode_path(pet_id.to_s).gsub(" %2F" , " /" ))
463491
492+ # cookie parameters
493+ cookie_params = Hash (String , String ).new
494+
464495 # query parameters
465496 query_params = Hash (String , String ).new
466497
@@ -493,6 +524,7 @@ module Petstore
493524 auth_names,
494525 header_params,
495526 query_params,
527+ cookie_params,
496528 form_params)
497529 if @api_client .config.debugging
498530 Log .debug {" API called: PetApi#upload_file\n Data: #{ data.inspect } \n Status code: #{ status_code } \n Headers: #{ headers } " }
0 commit comments