-
-
Notifications
You must be signed in to change notification settings - Fork 7.5k
Expand file tree
/
Copy pathPetApiInterface.php
More file actions
262 lines (244 loc) · 7.21 KB
/
PetApiInterface.php
File metadata and controls
262 lines (244 loc) · 7.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<?php
/**
* PetApiInterface
*
* PHP version 8.1.1
*
* @category Class
* @package OpenAPI\Server
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
/**
* OpenAPI Petstore
*
* This is a sample server Petstore server. For this sample, you can use the api key `special-key` to test the authorization filters.
*
* The version of the OpenAPI document: 1.0.0
*
* Generated by: https://github.com/openapitools/openapi-generator.git
*
*/
/**
* NOTE: This class is auto generated by the openapi generator program.
* https://github.com/openapitools/openapi-generator
* Do not edit the class manually.
*/
namespace OpenAPI\Server\Api;
use Symfony\Component\HttpFoundation\File\UploadedFile;
use OpenAPI\Server\Model\ApiResponse;
use OpenAPI\Server\Model\Pet;
/**
* PetApiInterface Interface Doc Comment
*
* @category Interface
* @package OpenAPI\Server\Api
* @author OpenAPI Generator team
* @link https://github.com/openapitools/openapi-generator
*/
interface PetApiInterface
{
/**
* Sets authentication method petstore_auth
*
* @param string|null $value Value of the petstore_auth authentication method.
*
* @return void
*/
public function setpetstore_auth(?string $value): void;
/**
* Sets authentication method api_key
*
* @param string|null $value Value of the api_key authentication method.
*
* @return void
*/
public function setapi_key(?string $value): void;
/**
* Operation addPet
*
* Add a new pet to the store
*
* @param Pet $pet Pet object that needs to be added to the store (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return array|object|null
*/
public function addPet(
Pet $pet,
int &$responseCode,
array &$responseHeaders
): array|object|null;
/**
* Operation deletePet
*
* Deletes a pet
*
* @param int $petId Pet id to delete (required)
* @param string|null $apiKey (optional)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*/
public function deletePet(
int $petId,
?string $apiKey,
int &$responseCode,
array &$responseHeaders
): void;
/**
* Operation downloadFile
*
* downloads an image
*
* @param int $petId ID of pet to download an image from (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return mixed
*/
public function downloadFile(
int $petId,
int &$responseCode,
array &$responseHeaders
): mixed;
/**
* Operation findPetsByStatus
*
* Finds Pets by status
*
* @param array $status Status values that need to be considered for filter (required) (deprecated)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return array|object|null
*/
public function findPetsByStatus(
array $status,
int &$responseCode,
array &$responseHeaders
): array|object|null;
/**
* Operation findPetsByTags
*
* Finds Pets by tags
*
* @param array $tags Tags to filter by (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return array|object|null
* @deprecated
*/
public function findPetsByTags(
array $tags,
int &$responseCode,
array &$responseHeaders
): array|object|null;
/**
* Operation getPetById
*
* Find pet by ID
*
* @param int $petId ID of pet to return (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return array|object|null
*/
public function getPetById(
int $petId,
int &$responseCode,
array &$responseHeaders
): array|object|null;
/**
* Operation petAge
*
* Get the age of the pet
*
* @param int $petId ID of pet (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return int
*/
public function petAge(
int $petId,
int &$responseCode,
array &$responseHeaders
): int;
/**
* Operation petAvailableForSale
*
* Whether the pet can currently be bought
*
* @param int $petId ID of pet (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return bool
*/
public function petAvailableForSale(
int $petId,
int &$responseCode,
array &$responseHeaders
): bool;
/**
* Operation updatePet
*
* Update an existing pet
*
* @param Pet $pet Pet object that needs to be added to the store (required)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return array|object|null
*/
public function updatePet(
Pet $pet,
int &$responseCode,
array &$responseHeaders
): array|object|null;
/**
* Operation updatePetWithForm
*
* Updates a pet in the store with form data
*
* @param int $petId ID of pet that needs to be updated (required)
* @param string|null $name Updated name of the pet (optional)
* @param string|null $status Updated status of the pet (optional)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return void
*/
public function updatePetWithForm(
int $petId,
?string $name,
?string $status,
int &$responseCode,
array &$responseHeaders
): void;
/**
* Operation uploadFile
*
* uploads an image
*
* @param int $petId ID of pet to update (required)
* @param string|null $additionalMetadata Additional data to pass to server (optional)
* @param UploadedFile|null $file file to upload (optional)
* @param int &$responseCode The HTTP Response Code
* @param array $responseHeaders Additional HTTP headers to return with the response ()
*
* @return array|object|null
*/
public function uploadFile(
int $petId,
?string $additionalMetadata,
?UploadedFile $file,
int &$responseCode,
array &$responseHeaders
): array|object|null;
}