Skip to content

Commit

Permalink
Add extends doc comment to ProjectMemberList
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Dec 22, 2023
1 parent 7bec629 commit ddb0225
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 25 deletions.
2 changes: 1 addition & 1 deletion config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
invokerPackage: Aternos\HangarApi
artifactVersion: 3.1.0
artifactVersion: 3.1.1
generatorName: php
outputDir: .
sourceFolder: src
Expand Down
44 changes: 22 additions & 22 deletions lib/Api/APIKeysApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ public function createKeyWithHttpInfo($create_api_key_form, string $contentType
}

switch($statusCode) {
case 403:
case 201:
if ('string' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand All @@ -225,7 +225,7 @@ public function createKeyWithHttpInfo($create_api_key_form, string $contentType
$response->getStatusCode(),
$response->getHeaders()
];
case 401:
case 403:
if ('string' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand All @@ -252,7 +252,7 @@ public function createKeyWithHttpInfo($create_api_key_form, string $contentType
$response->getStatusCode(),
$response->getHeaders()
];
case 201:
case 401:
if ('string' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand Down Expand Up @@ -311,23 +311,23 @@ public function createKeyWithHttpInfo($create_api_key_form, string $contentType

} catch (ApiException $e) {
switch ($e->getCode()) {
case 403:
case 201:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'string',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 401:
case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'string',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 201:
case 401:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'string',
Expand Down Expand Up @@ -751,7 +751,7 @@ public function deleteKeyRequest($name, string $contentType = self::contentTypes
*
* @throws \Aternos\HangarApi\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return \Aternos\HangarApi\Model\ApiKey|\Aternos\HangarApi\Model\ApiKey[]|\Aternos\HangarApi\Model\ApiKey[]
* @return \Aternos\HangarApi\Model\ApiKey[]|\Aternos\HangarApi\Model\ApiKey[]|\Aternos\HangarApi\Model\ApiKey
*/
public function getKeys(string $contentType = self::contentTypes['getKeys'][0])
{
Expand All @@ -768,7 +768,7 @@ public function getKeys(string $contentType = self::contentTypes['getKeys'][0])
*
* @throws \Aternos\HangarApi\ApiException on non-2xx response or if the response body is not in the expected format
* @throws \InvalidArgumentException
* @return array of \Aternos\HangarApi\Model\ApiKey|\Aternos\HangarApi\Model\ApiKey[]|\Aternos\HangarApi\Model\ApiKey[], HTTP status code, HTTP response headers (array of strings)
* @return array of \Aternos\HangarApi\Model\ApiKey[]|\Aternos\HangarApi\Model\ApiKey[]|\Aternos\HangarApi\Model\ApiKey, HTTP status code, HTTP response headers (array of strings)
*/
public function getKeysWithHttpInfo(string $contentType = self::contentTypes['getKeys'][0])
{
Expand Down Expand Up @@ -810,12 +810,12 @@ public function getKeysWithHttpInfo(string $contentType = self::contentTypes['ge
}

switch($statusCode) {
case 200:
if ('\Aternos\HangarApi\Model\ApiKey' === '\SplFileObject') {
case 403:
if ('\Aternos\HangarApi\Model\ApiKey[]' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
if ('\Aternos\HangarApi\Model\ApiKey' !== 'string') {
if ('\Aternos\HangarApi\Model\ApiKey[]' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
Expand All @@ -833,11 +833,11 @@ public function getKeysWithHttpInfo(string $contentType = self::contentTypes['ge
}

return [
ObjectSerializer::deserialize($content, '\Aternos\HangarApi\Model\ApiKey', []),
ObjectSerializer::deserialize($content, '\Aternos\HangarApi\Model\ApiKey[]', []),
$response->getStatusCode(),
$response->getHeaders()
];
case 403:
case 401:
if ('\Aternos\HangarApi\Model\ApiKey[]' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand All @@ -864,12 +864,12 @@ public function getKeysWithHttpInfo(string $contentType = self::contentTypes['ge
$response->getStatusCode(),
$response->getHeaders()
];
case 401:
if ('\Aternos\HangarApi\Model\ApiKey[]' === '\SplFileObject') {
case 200:
if ('\Aternos\HangarApi\Model\ApiKey' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
$content = (string) $response->getBody();
if ('\Aternos\HangarApi\Model\ApiKey[]' !== 'string') {
if ('\Aternos\HangarApi\Model\ApiKey' !== 'string') {
try {
$content = json_decode($content, false, 512, JSON_THROW_ON_ERROR);
} catch (\JsonException $exception) {
Expand All @@ -887,7 +887,7 @@ public function getKeysWithHttpInfo(string $contentType = self::contentTypes['ge
}

return [
ObjectSerializer::deserialize($content, '\Aternos\HangarApi\Model\ApiKey[]', []),
ObjectSerializer::deserialize($content, '\Aternos\HangarApi\Model\ApiKey', []),
$response->getStatusCode(),
$response->getHeaders()
];
Expand Down Expand Up @@ -923,26 +923,26 @@ public function getKeysWithHttpInfo(string $contentType = self::contentTypes['ge

} catch (ApiException $e) {
switch ($e->getCode()) {
case 200:
case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Aternos\HangarApi\Model\ApiKey',
'\Aternos\HangarApi\Model\ApiKey[]',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 403:
case 401:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Aternos\HangarApi\Model\ApiKey[]',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 401:
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Aternos\HangarApi\Model\ApiKey[]',
'\Aternos\HangarApi\Model\ApiKey',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
Expand Down
2 changes: 2 additions & 0 deletions lib/Client/List/ProjectMemberList.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
use Aternos\HangarApi\ApiException;
use Aternos\HangarApi\Client\HangarAPIClient;
use Aternos\HangarApi\Model\PaginatedResultProjectMember;
use Aternos\HangarApi\Model\ProjectMember;
use Aternos\HangarApi\Model\RequestPagination;

/**
* Class ProjectMemberList
*
* @package Aternos\HangarApi\Client\List
* @description A paginated list of project members
* @extends ResultList<ProjectMember>
*/
class ProjectMemberList extends ResultList
{
Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class Configuration
*
* @var string
*/
protected $userAgent = 'OpenAPI-Generator/3.1.0/PHP';
protected $userAgent = 'OpenAPI-Generator/3.1.1/PHP';

/**
* Debug switch (default set to false)
Expand Down Expand Up @@ -433,7 +433,7 @@ public static function toDebugReport()
$report .= ' OS: ' . php_uname() . PHP_EOL;
$report .= ' PHP Version: ' . PHP_VERSION . PHP_EOL;
$report .= ' The version of the OpenAPI document: 1.0' . PHP_EOL;
$report .= ' SDK Package Version: 3.1.0' . PHP_EOL;
$report .= ' SDK Package Version: 3.1.1' . PHP_EOL;
$report .= ' Temp Folder Path: ' . self::getDefaultConfiguration()->getTempFolderPath() . PHP_EOL;

return $report;
Expand Down

0 comments on commit ddb0225

Please sign in to comment.