@@ -36,11 +36,11 @@ use Data::Dumper;
36
36
# Configure OAuth2 access token for authorization: petstore_auth
37
37
WWW::SwaggerClient::Configuration::access_token = ' YOUR_ACCESS_TOKEN' ;
38
38
39
- my $api = WWW::SwaggerClient::PetApi-> new();
40
- my $body = WWW::SwaggerClient::Object::Pet-> new(); # [ Pet] Pet object that needs to be added to the store
39
+ my $api_instance = WWW::SwaggerClient::PetApi-> new();
40
+ my $body = WWW::SwaggerClient::Object::Pet-> new(); # Pet | Pet object that needs to be added to the store
41
41
42
42
eval {
43
- $api -> add_pet(body => $body );
43
+ $api_instance -> add_pet(body => $body );
44
44
};
45
45
if ($@ ) {
46
46
warn " Exception when calling PetApi->add_pet: $@ \n " ;
@@ -82,11 +82,11 @@ use Data::Dumper;
82
82
# Configure OAuth2 access token for authorization: petstore_auth
83
83
WWW::SwaggerClient::Configuration::access_token = ' YOUR_ACCESS_TOKEN' ;
84
84
85
- my $api = WWW::SwaggerClient::PetApi-> new();
86
- my $body = WWW::SwaggerClient::Object::string-> new(); # [ string] Pet object in the form of byte array
85
+ my $api_instance = WWW::SwaggerClient::PetApi-> new();
86
+ my $body = WWW::SwaggerClient::Object::string-> new(); # string | Pet object in the form of byte array
87
87
88
88
eval {
89
- $api -> add_pet_using_byte_array(body => $body );
89
+ $api_instance -> add_pet_using_byte_array(body => $body );
90
90
};
91
91
if ($@ ) {
92
92
warn " Exception when calling PetApi->add_pet_using_byte_array: $@ \n " ;
@@ -128,12 +128,12 @@ use Data::Dumper;
128
128
# Configure OAuth2 access token for authorization: petstore_auth
129
129
WWW::SwaggerClient::Configuration::access_token = ' YOUR_ACCESS_TOKEN' ;
130
130
131
- my $api = WWW::SwaggerClient::PetApi-> new();
132
- my $pet_id = 789; # [ int] Pet id to delete
133
- my $api_key = ' api_key_example' ; # [ string]
131
+ my $api_instance = WWW::SwaggerClient::PetApi-> new();
132
+ my $pet_id = 789; # int | Pet id to delete
133
+ my $api_key = ' api_key_example' ; # string |
134
134
135
135
eval {
136
- $api -> delete_pet(pet_id => $pet_id , api_key => $api_key );
136
+ $api_instance -> delete_pet(pet_id => $pet_id , api_key => $api_key );
137
137
};
138
138
if ($@ ) {
139
139
warn " Exception when calling PetApi->delete_pet: $@ \n " ;
@@ -176,11 +176,11 @@ use Data::Dumper;
176
176
# Configure OAuth2 access token for authorization: petstore_auth
177
177
WWW::SwaggerClient::Configuration::access_token = ' YOUR_ACCESS_TOKEN' ;
178
178
179
- my $api = WWW::SwaggerClient::PetApi-> new();
180
- my $status = (); # [ ARRAY[string]] Status values that need to be considered for query
179
+ my $api_instance = WWW::SwaggerClient::PetApi-> new();
180
+ my $status = (); # ARRAY[string] | Status values that need to be considered for query
181
181
182
182
eval {
183
- my $result = $api -> find_pets_by_status(status => $status );
183
+ my $result = $api_instance -> find_pets_by_status(status => $status );
184
184
print Dumper($result );
185
185
};
186
186
if ($@ ) {
@@ -223,11 +223,11 @@ use Data::Dumper;
223
223
# Configure OAuth2 access token for authorization: petstore_auth
224
224
WWW::SwaggerClient::Configuration::access_token = ' YOUR_ACCESS_TOKEN' ;
225
225
226
- my $api = WWW::SwaggerClient::PetApi-> new();
227
- my $tags = (); # [ ARRAY[string]] Tags to filter by
226
+ my $api_instance = WWW::SwaggerClient::PetApi-> new();
227
+ my $tags = (); # ARRAY[string] | Tags to filter by
228
228
229
229
eval {
230
- my $result = $api -> find_pets_by_tags(tags => $tags );
230
+ my $result = $api_instance -> find_pets_by_tags(tags => $tags );
231
231
print Dumper($result );
232
232
};
233
233
if ($@ ) {
@@ -274,11 +274,11 @@ WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
274
274
# Configure OAuth2 access token for authorization: petstore_auth
275
275
WWW::SwaggerClient::Configuration::access_token = ' YOUR_ACCESS_TOKEN' ;
276
276
277
- my $api = WWW::SwaggerClient::PetApi-> new();
278
- my $pet_id = 789; # [ int] ID of pet that needs to be fetched
277
+ my $api_instance = WWW::SwaggerClient::PetApi-> new();
278
+ my $pet_id = 789; # int | ID of pet that needs to be fetched
279
279
280
280
eval {
281
- my $result = $api -> get_pet_by_id(pet_id => $pet_id );
281
+ my $result = $api_instance -> get_pet_by_id(pet_id => $pet_id );
282
282
print Dumper($result );
283
283
};
284
284
if ($@ ) {
@@ -325,11 +325,11 @@ WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
325
325
# Configure OAuth2 access token for authorization: petstore_auth
326
326
WWW::SwaggerClient::Configuration::access_token = ' YOUR_ACCESS_TOKEN' ;
327
327
328
- my $api = WWW::SwaggerClient::PetApi-> new();
329
- my $pet_id = 789; # [ int] ID of pet that needs to be fetched
328
+ my $api_instance = WWW::SwaggerClient::PetApi-> new();
329
+ my $pet_id = 789; # int | ID of pet that needs to be fetched
330
330
331
331
eval {
332
- my $result = $api -> get_pet_by_id_in_object(pet_id => $pet_id );
332
+ my $result = $api_instance -> get_pet_by_id_in_object(pet_id => $pet_id );
333
333
print Dumper($result );
334
334
};
335
335
if ($@ ) {
@@ -376,11 +376,11 @@ WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
376
376
# Configure OAuth2 access token for authorization: petstore_auth
377
377
WWW::SwaggerClient::Configuration::access_token = ' YOUR_ACCESS_TOKEN' ;
378
378
379
- my $api = WWW::SwaggerClient::PetApi-> new();
380
- my $pet_id = 789; # [ int] ID of pet that needs to be fetched
379
+ my $api_instance = WWW::SwaggerClient::PetApi-> new();
380
+ my $pet_id = 789; # int | ID of pet that needs to be fetched
381
381
382
382
eval {
383
- my $result = $api -> pet_pet_idtesting_byte_arraytrue_get(pet_id => $pet_id );
383
+ my $result = $api_instance -> pet_pet_idtesting_byte_arraytrue_get(pet_id => $pet_id );
384
384
print Dumper($result );
385
385
};
386
386
if ($@ ) {
@@ -423,11 +423,11 @@ use Data::Dumper;
423
423
# Configure OAuth2 access token for authorization: petstore_auth
424
424
WWW::SwaggerClient::Configuration::access_token = ' YOUR_ACCESS_TOKEN' ;
425
425
426
- my $api = WWW::SwaggerClient::PetApi-> new();
427
- my $body = WWW::SwaggerClient::Object::Pet-> new(); # [ Pet] Pet object that needs to be added to the store
426
+ my $api_instance = WWW::SwaggerClient::PetApi-> new();
427
+ my $body = WWW::SwaggerClient::Object::Pet-> new(); # Pet | Pet object that needs to be added to the store
428
428
429
429
eval {
430
- $api -> update_pet(body => $body );
430
+ $api_instance -> update_pet(body => $body );
431
431
};
432
432
if ($@ ) {
433
433
warn " Exception when calling PetApi->update_pet: $@ \n " ;
@@ -469,13 +469,13 @@ use Data::Dumper;
469
469
# Configure OAuth2 access token for authorization: petstore_auth
470
470
WWW::SwaggerClient::Configuration::access_token = ' YOUR_ACCESS_TOKEN' ;
471
471
472
- my $api = WWW::SwaggerClient::PetApi-> new();
473
- my $pet_id = ' pet_id_example' ; # [ string] ID of pet that needs to be updated
474
- my $name = ' name_example' ; # [ string] Updated name of the pet
475
- my $status = ' status_example' ; # [ string] Updated status of the pet
472
+ my $api_instance = WWW::SwaggerClient::PetApi-> new();
473
+ my $pet_id = ' pet_id_example' ; # string | ID of pet that needs to be updated
474
+ my $name = ' name_example' ; # string | Updated name of the pet
475
+ my $status = ' status_example' ; # string | Updated status of the pet
476
476
477
477
eval {
478
- $api -> update_pet_with_form(pet_id => $pet_id , name => $name , status => $status );
478
+ $api_instance -> update_pet_with_form(pet_id => $pet_id , name => $name , status => $status );
479
479
};
480
480
if ($@ ) {
481
481
warn " Exception when calling PetApi->update_pet_with_form: $@ \n " ;
@@ -519,13 +519,13 @@ use Data::Dumper;
519
519
# Configure OAuth2 access token for authorization: petstore_auth
520
520
WWW::SwaggerClient::Configuration::access_token = ' YOUR_ACCESS_TOKEN' ;
521
521
522
- my $api = WWW::SwaggerClient::PetApi-> new();
523
- my $pet_id = 789; # [ int] ID of pet to update
524
- my $additional_metadata = ' additional_metadata_example' ; # [ string] Additional data to pass to server
525
- my $file = ' /path/to/file.txt' ; # [ File] file to upload
522
+ my $api_instance = WWW::SwaggerClient::PetApi-> new();
523
+ my $pet_id = 789; # int | ID of pet to update
524
+ my $additional_metadata = ' additional_metadata_example' ; # string | Additional data to pass to server
525
+ my $file = ' /path/to/file.txt' ; # File | file to upload
526
526
527
527
eval {
528
- $api -> upload_file(pet_id => $pet_id , additional_metadata => $additional_metadata , file => $file );
528
+ $api_instance -> upload_file(pet_id => $pet_id , additional_metadata => $additional_metadata , file => $file );
529
529
};
530
530
if ($@ ) {
531
531
warn " Exception when calling PetApi->upload_file: $@ \n " ;
0 commit comments