Skip to content

Commit f1b37f9

Browse files
committed
Updated the client with the new OpenAPI file
1 parent 3e2741c commit f1b37f9

File tree

78 files changed

+132
-537
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+132
-537
lines changed

jane/gyroscops.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

rector.php

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?php
2+
3+
declare(strict_types=1);
4+
5+
use Rector\CodeQuality\Rector\Class_\InlineConstructorDefaultToPropertyRector;
6+
use Rector\Config\RectorConfig;
7+
use Rector\Set\ValueObject\LevelSetList;
8+
use Rector\PHPUnit\Set\PHPUnitLevelSetList;
9+
use Rector\Symfony\Set\SymfonyLevelSetList;
10+
11+
return static function (RectorConfig $rectorConfig): void {
12+
$rectorConfig->paths([
13+
__DIR__ . '/src',
14+
]);
15+
16+
$rectorConfig->rule(InlineConstructorDefaultToPropertyRector::class);
17+
18+
$rectorConfig->sets([
19+
LevelSetList::UP_TO_PHP_82,
20+
PHPUnitLevelSetList::UP_TO_PHPUNIT_100,
21+
SymfonyLevelSetList::UP_TO_SYMFONY_60,
22+
]);
23+
};

src/Client.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,8 +1774,8 @@ public function getActionCollection(array $queryParameters = [], string $fetch =
17741774
/**
17751775
* Creates a pipeline compilation.
17761776
*
1777-
* @param \Gyroscops\Api\Model\CompilationCompilePipelineCommandInputJsonld|\Gyroscops\Api\Model\CompilationCompilePipelineCommandInput|null $requestBody
1778-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
1777+
* @param \Gyroscops\Api\Model\CompilationCompilePipelineCommandInputJsonld|\stdClass|null $requestBody
1778+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
17791779
*
17801780
* @return \Gyroscops\Api\Model\CompilationCompilePipelineCommand|\Psr\Http\Message\ResponseInterface|null
17811781
*
@@ -2630,11 +2630,11 @@ public function apiPipelinesCompilationsGetSubresourcePipelineSubresource(string
26302630
}
26312631

26322632
/**
2633-
* Creates a pipeline compilation.
2633+
* Launches a pipeline compilation.
26342634
*
2635-
* @param string $id Resource identifier
2636-
* @param \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld|\Gyroscops\Api\Model\PipelineCompilePipelineCommandInput|null $requestBody
2637-
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
2635+
* @param string $id Resource identifier
2636+
* @param \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld|\stdClass|null $requestBody
2637+
* @param string $fetch Fetch mode to use (can be OBJECT or RESPONSE)
26382638
*
26392639
* @return \Psr\Http\Message\ResponseInterface|null
26402640
*

src/Endpoint/PipelineCompilationPipelineItem.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ class PipelineCompilationPipelineItem extends \Gyroscops\Api\Runtime\Client\Base
1616
protected $id;
1717

1818
/**
19-
* Creates a pipeline compilation.
19+
* Launches a pipeline compilation.
2020
*
21-
* @param string $id Resource identifier
22-
* @param \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld|\Gyroscops\Api\Model\PipelineCompilePipelineCommandInput|null $requestBody
21+
* @param string $id Resource identifier
22+
* @param \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld|\stdClass|null $requestBody
2323
*/
2424
public function __construct(string $id, $requestBody = null)
2525
{
@@ -42,10 +42,10 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
4242
if ($this->body instanceof \Gyroscops\Api\Model\PipelineCompilePipelineCommandInputJsonld) {
4343
return [['Content-Type' => ['application/ld+json']], $this->body];
4444
}
45-
if ($this->body instanceof \Gyroscops\Api\Model\PipelineCompilePipelineCommandInput) {
46-
return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
45+
if ($this->body instanceof \stdClass) {
46+
return [['Content-Type' => ['application/json']], json_encode($this->body, JSON_THROW_ON_ERROR)];
4747
}
48-
if ($this->body instanceof \Gyroscops\Api\Model\PipelineCompilePipelineCommandInput) {
48+
if ($this->body instanceof \stdClass) {
4949
return [['Content-Type' => ['text/html']], $this->body];
5050
}
5151

src/Endpoint/PostCompilationCollection.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ class PostCompilationCollection extends \Gyroscops\Api\Runtime\Client\BaseEndpoi
1717
/**
1818
* Creates a pipeline compilation.
1919
*
20-
* @param \Gyroscops\Api\Model\CompilationCompilePipelineCommandInputJsonld|\Gyroscops\Api\Model\CompilationCompilePipelineCommandInput|null $requestBody
20+
* @param \Gyroscops\Api\Model\CompilationCompilePipelineCommandInputJsonld|\stdClass|null $requestBody
2121
*/
2222
public function __construct($requestBody = null)
2323
{
@@ -39,10 +39,10 @@ public function getBody(\Symfony\Component\Serializer\SerializerInterface $seria
3939
if ($this->body instanceof \Gyroscops\Api\Model\CompilationCompilePipelineCommandInputJsonld) {
4040
return [['Content-Type' => ['application/ld+json']], $this->body];
4141
}
42-
if ($this->body instanceof \Gyroscops\Api\Model\CompilationCompilePipelineCommandInput) {
43-
return [['Content-Type' => ['application/json']], $serializer->serialize($this->body, 'json')];
42+
if ($this->body instanceof \stdClass) {
43+
return [['Content-Type' => ['application/json']], json_encode($this->body, JSON_THROW_ON_ERROR)];
4444
}
45-
if ($this->body instanceof \Gyroscops\Api\Model\CompilationCompilePipelineCommandInput) {
45+
if ($this->body instanceof \stdClass) {
4646
return [['Content-Type' => ['text/html']], $this->body];
4747
}
4848

src/Model/ActionJsonldRead.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,10 +61,7 @@ public function getContext()
6161
return $this->context;
6262
}
6363

64-
/**
65-
* @param mixed $context
66-
*/
67-
public function setContext($context): self
64+
public function setContext(mixed $context): self
6865
{
6966
$this->context = $context;
7067

src/Model/AkeneoInstanceJsonld.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,7 @@ public function getContext()
8585
return $this->context;
8686
}
8787

88-
/**
89-
* @param mixed $context
90-
*/
91-
public function setContext($context): self
88+
public function setContext(mixed $context): self
9289
{
9390
$this->context = $context;
9491

src/Model/AkeneoLinkedAccountAkeneoLinkedAccountsInputJsonld.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,7 @@ public function getContext()
4949
return $this->context;
5050
}
5151

52-
/**
53-
* @param mixed $context
54-
*/
55-
public function setContext($context): self
52+
public function setContext(mixed $context): self
5653
{
5754
$this->context = $context;
5855

src/Model/AkeneoLinkedAccountJsonld.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ public function getContext()
8181
return $this->context;
8282
}
8383

84-
/**
85-
* @param mixed $context
86-
*/
87-
public function setContext($context): self
84+
public function setContext(mixed $context): self
8885
{
8986
$this->context = $context;
9087

src/Model/AkeneoOauthTokenJsonldRead.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,10 +73,7 @@ public function getContext()
7373
return $this->context;
7474
}
7575

76-
/**
77-
* @param mixed $context
78-
*/
79-
public function setContext($context): self
76+
public function setContext(mixed $context): self
8077
{
8178
$this->context = $context;
8279

0 commit comments

Comments
 (0)