Skip to content

Commit d713820

Browse files
feat(api): update via SDK Studio
1 parent ff9563b commit d713820

File tree

6 files changed

+2
-189
lines changed

6 files changed

+2
-189
lines changed

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 19
1+
configured_endpoints: 18
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/jacob%2Fphp-publishing-test-d26a1ed6bc0336c9564fee95394cb9494f023f0326923150f6dfa15c99e0b718.yml
33
openapi_spec_hash: 09f29b02d0d87d5ec4912c656a4ee189
4-
config_hash: 2b0a59a430f214679b0d720495d56a3b
4+
config_hash: 6ff2b3ef765b1ff2a6f81b1a9986bf79

src/Contracts/PetsContract.php

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@
1616
use PhpPublishingTest\Parameters\PetUpdateParam;
1717
use PhpPublishingTest\Parameters\PetUpdateParam\Status as Status1;
1818
use PhpPublishingTest\Parameters\PetUpdateParam\Tag as Tag1;
19-
use PhpPublishingTest\Parameters\PetUploadImageParam;
2019
use PhpPublishingTest\RequestOptions;
21-
use PhpPublishingTest\Responses\PetUploadImageResponse;
2220

2321
interface PetsContract
2422
{
@@ -90,14 +88,4 @@ public function updateByID(
9088
array|PetUpdateByIDParam $params,
9189
?RequestOptions $requestOptions = null,
9290
): mixed;
93-
94-
/**
95-
* @param array{additionalMetadata: string}|PetUploadImageParam $params
96-
*/
97-
public function uploadImage(
98-
int $petID,
99-
string $image,
100-
array|PetUploadImageParam $params,
101-
?RequestOptions $requestOptions = null,
102-
): PetUploadImageResponse;
10391
}

src/Parameters/PetUploadImageParam.php

Lines changed: 0 additions & 47 deletions
This file was deleted.

src/Resources/Pets.php

Lines changed: 0 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,7 @@
2020
use PhpPublishingTest\Parameters\PetUpdateParam;
2121
use PhpPublishingTest\Parameters\PetUpdateParam\Status as Status1;
2222
use PhpPublishingTest\Parameters\PetUpdateParam\Tag as Tag1;
23-
use PhpPublishingTest\Parameters\PetUploadImageParam;
2423
use PhpPublishingTest\RequestOptions;
25-
use PhpPublishingTest\Responses\PetUploadImageResponse;
2624

2725
final class Pets implements PetsContract
2826
{
@@ -195,32 +193,4 @@ public function updateByID(
195193
options: $options,
196194
);
197195
}
198-
199-
/**
200-
* uploads an image.
201-
*
202-
* @param array{additionalMetadata: string}|PetUploadImageParam $params
203-
*/
204-
public function uploadImage(
205-
int $petID,
206-
string $image,
207-
array|PetUploadImageParam $params,
208-
?RequestOptions $requestOptions = null,
209-
): PetUploadImageResponse {
210-
[$parsed, $options] = PetUploadImageParam::parseRequest(
211-
$params,
212-
$requestOptions
213-
);
214-
$resp = $this->client->request(
215-
method: 'post',
216-
path: ['pet/%1$s/uploadImage', $petID],
217-
query: array_diff_key($parsed, ['image']),
218-
headers: ['Content-Type' => 'application/octet-stream'],
219-
body: $parsed['image'],
220-
options: $options,
221-
);
222-
223-
// @phpstan-ignore-next-line;
224-
return Conversion::coerce(PetUploadImageResponse::class, value: $resp);
225-
}
226196
}

src/Responses/PetUploadImageResponse.php

Lines changed: 0 additions & 74 deletions
This file was deleted.

tests/Resources/PetsTest.php

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -175,28 +175,4 @@ public function testUpdateByID(): void
175175

176176
$this->assertTrue(true); // @phpstan-ignore-line
177177
}
178-
179-
#[Test]
180-
public function testUploadImage(): void
181-
{
182-
if (UnsupportedMockTests::$skip) {
183-
$this->markTestSkipped('skipped: tests are disabled for the time being');
184-
}
185-
186-
$result = $this->client->pets->uploadImage(0, 'file', 'file');
187-
188-
$this->assertTrue(true); // @phpstan-ignore-line
189-
}
190-
191-
#[Test]
192-
public function testUploadImageWithOptionalParams(): void
193-
{
194-
if (UnsupportedMockTests::$skip) {
195-
$this->markTestSkipped('skipped: tests are disabled for the time being');
196-
}
197-
198-
$result = $this->client->pets->uploadImage(0, 'file', 'file');
199-
200-
$this->assertTrue(true); // @phpstan-ignore-line
201-
}
202178
}

0 commit comments

Comments
 (0)