@@ -25,12 +25,13 @@ Add a new pet to the store
25
25
26
26
* OAuth Authentication (petstore_auth):
27
27
``` python
28
- from __future__ import print_function
29
28
import time
30
29
import os
31
30
import openapi_client
31
+ from openapi_client.models.pet import Pet
32
32
from openapi_client.rest import ApiException
33
33
from pprint import pprint
34
+
34
35
# Defining the host is optional and defaults to http://petstore.swagger.io/v2
35
36
# See configuration.py for a list of all supported configuration parameters.
36
37
configuration = openapi_client.Configuration(
@@ -59,6 +60,7 @@ with openapi_client.ApiClient(configuration) as api_client:
59
60
print (" Exception when calling PetApi->add_pet: %s \n " % e)
60
61
```
61
62
63
+
62
64
### Parameters
63
65
64
66
Name | Type | Description | Notes
@@ -97,12 +99,12 @@ Deletes a pet
97
99
98
100
* OAuth Authentication (petstore_auth):
99
101
``` python
100
- from __future__ import print_function
101
102
import time
102
103
import os
103
104
import openapi_client
104
105
from openapi_client.rest import ApiException
105
106
from pprint import pprint
107
+
106
108
# Defining the host is optional and defaults to http://petstore.swagger.io/v2
107
109
# See configuration.py for a list of all supported configuration parameters.
108
110
configuration = openapi_client.Configuration(
@@ -130,6 +132,7 @@ with openapi_client.ApiClient(configuration) as api_client:
130
132
print (" Exception when calling PetApi->delete_pet: %s \n " % e)
131
133
```
132
134
135
+
133
136
### Parameters
134
137
135
138
Name | Type | Description | Notes
@@ -168,12 +171,13 @@ Multiple status values can be provided with comma separated strings
168
171
169
172
* OAuth Authentication (petstore_auth):
170
173
``` python
171
- from __future__ import print_function
172
174
import time
173
175
import os
174
176
import openapi_client
177
+ from openapi_client.models.pet import Pet
175
178
from openapi_client.rest import ApiException
176
179
from pprint import pprint
180
+
177
181
# Defining the host is optional and defaults to http://petstore.swagger.io/v2
178
182
# See configuration.py for a list of all supported configuration parameters.
179
183
configuration = openapi_client.Configuration(
@@ -202,6 +206,7 @@ with openapi_client.ApiClient(configuration) as api_client:
202
206
print (" Exception when calling PetApi->find_pets_by_status: %s \n " % e)
203
207
```
204
208
209
+
205
210
### Parameters
206
211
207
212
Name | Type | Description | Notes
@@ -240,12 +245,13 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
240
245
241
246
* OAuth Authentication (petstore_auth):
242
247
``` python
243
- from __future__ import print_function
244
248
import time
245
249
import os
246
250
import openapi_client
251
+ from openapi_client.models.pet import Pet
247
252
from openapi_client.rest import ApiException
248
253
from pprint import pprint
254
+
249
255
# Defining the host is optional and defaults to http://petstore.swagger.io/v2
250
256
# See configuration.py for a list of all supported configuration parameters.
251
257
configuration = openapi_client.Configuration(
@@ -274,6 +280,7 @@ with openapi_client.ApiClient(configuration) as api_client:
274
280
print (" Exception when calling PetApi->find_pets_by_tags: %s \n " % e)
275
281
```
276
282
283
+
277
284
### Parameters
278
285
279
286
Name | Type | Description | Notes
@@ -312,12 +319,13 @@ Returns a single pet
312
319
313
320
* Api Key Authentication (api_key):
314
321
``` python
315
- from __future__ import print_function
316
322
import time
317
323
import os
318
324
import openapi_client
325
+ from openapi_client.models.pet import Pet
319
326
from openapi_client.rest import ApiException
320
327
from pprint import pprint
328
+
321
329
# Defining the host is optional and defaults to http://petstore.swagger.io/v2
322
330
# See configuration.py for a list of all supported configuration parameters.
323
331
configuration = openapi_client.Configuration(
@@ -350,6 +358,7 @@ with openapi_client.ApiClient(configuration) as api_client:
350
358
print (" Exception when calling PetApi->get_pet_by_id: %s \n " % e)
351
359
```
352
360
361
+
353
362
### Parameters
354
363
355
364
Name | Type | Description | Notes
@@ -389,12 +398,13 @@ Update an existing pet
389
398
390
399
* OAuth Authentication (petstore_auth):
391
400
``` python
392
- from __future__ import print_function
393
401
import time
394
402
import os
395
403
import openapi_client
404
+ from openapi_client.models.pet import Pet
396
405
from openapi_client.rest import ApiException
397
406
from pprint import pprint
407
+
398
408
# Defining the host is optional and defaults to http://petstore.swagger.io/v2
399
409
# See configuration.py for a list of all supported configuration parameters.
400
410
configuration = openapi_client.Configuration(
@@ -423,6 +433,7 @@ with openapi_client.ApiClient(configuration) as api_client:
423
433
print (" Exception when calling PetApi->update_pet: %s \n " % e)
424
434
```
425
435
436
+
426
437
### Parameters
427
438
428
439
Name | Type | Description | Notes
@@ -463,12 +474,12 @@ Updates a pet in the store with form data
463
474
464
475
* OAuth Authentication (petstore_auth):
465
476
``` python
466
- from __future__ import print_function
467
477
import time
468
478
import os
469
479
import openapi_client
470
480
from openapi_client.rest import ApiException
471
481
from pprint import pprint
482
+
472
483
# Defining the host is optional and defaults to http://petstore.swagger.io/v2
473
484
# See configuration.py for a list of all supported configuration parameters.
474
485
configuration = openapi_client.Configuration(
@@ -497,6 +508,7 @@ with openapi_client.ApiClient(configuration) as api_client:
497
508
print (" Exception when calling PetApi->update_pet_with_form: %s \n " % e)
498
509
```
499
510
511
+
500
512
### Parameters
501
513
502
514
Name | Type | Description | Notes
@@ -536,12 +548,13 @@ uploads an image
536
548
537
549
* OAuth Authentication (petstore_auth):
538
550
``` python
539
- from __future__ import print_function
540
551
import time
541
552
import os
542
553
import openapi_client
554
+ from openapi_client.models.api_response import ApiResponse
543
555
from openapi_client.rest import ApiException
544
556
from pprint import pprint
557
+
545
558
# Defining the host is optional and defaults to http://petstore.swagger.io/v2
546
559
# See configuration.py for a list of all supported configuration parameters.
547
560
configuration = openapi_client.Configuration(
@@ -561,7 +574,7 @@ with openapi_client.ApiClient(configuration) as api_client:
561
574
api_instance = openapi_client.PetApi(api_client)
562
575
pet_id = 56 # int | ID of pet to update
563
576
additional_metadata = ' additional_metadata_example' # str | Additional data to pass to server (optional)
564
- file = openapi_client.bytearray() # bytearray | file to upload (optional)
577
+ file = None # bytearray | file to upload (optional)
565
578
566
579
try :
567
580
# uploads an image
@@ -572,6 +585,7 @@ with openapi_client.ApiClient(configuration) as api_client:
572
585
print (" Exception when calling PetApi->upload_file: %s \n " % e)
573
586
```
574
587
588
+
575
589
### Parameters
576
590
577
591
Name | Type | Description | Notes
0 commit comments