Skip to content

Commit

Permalink
Rerun generator with 7.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Dec 22, 2023
1 parent b1e2758 commit 1f47c9e
Show file tree
Hide file tree
Showing 60 changed files with 286 additions and 286 deletions.
56 changes: 28 additions & 28 deletions lib/Api/APIKeysApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.1.0
* OpenAPI Generator version: 7.2.0
*/

/**
Expand Down Expand Up @@ -82,7 +82,7 @@ class APIKeysApi
],
];

/**
/**
* @param ClientInterface $client
* @param Configuration $config
* @param HeaderSelector $selector
Expand Down Expand Up @@ -215,7 +215,7 @@ public function createKeyWithHttpInfo($create_api_key_form, string $contentType
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}
Expand All @@ -225,7 +225,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 All @@ -242,7 +242,7 @@ public function createKeyWithHttpInfo($create_api_key_form, string $contentType
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}
Expand All @@ -252,7 +252,7 @@ public function createKeyWithHttpInfo($create_api_key_form, string $contentType
$response->getStatusCode(),
$response->getHeaders()
];
case 401:
case 201:
if ('string' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand All @@ -269,7 +269,7 @@ public function createKeyWithHttpInfo($create_api_key_form, string $contentType
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}
Expand Down Expand Up @@ -319,15 +319,15 @@ public function createKeyWithHttpInfo($create_api_key_form, string $contentType
);
$e->setResponseObject($data);
break;
case 201:
case 401:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'string',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 401:
case 201:
$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 403:
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 @@ -827,17 +827,17 @@ public function getKeysWithHttpInfo(string $contentType = self::contentTypes['ge
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}

return [
ObjectSerializer::deserialize($content, '\Aternos\HangarApi\Model\ApiKey[]', []),
ObjectSerializer::deserialize($content, '\Aternos\HangarApi\Model\ApiKey', []),
$response->getStatusCode(),
$response->getHeaders()
];
case 401:
case 403:
if ('\Aternos\HangarApi\Model\ApiKey[]' === '\SplFileObject') {
$content = $response->getBody(); //stream goes to serializer
} else {
Expand All @@ -854,7 +854,7 @@ public function getKeysWithHttpInfo(string $contentType = self::contentTypes['ge
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}
Expand All @@ -864,12 +864,12 @@ public function getKeysWithHttpInfo(string $contentType = self::contentTypes['ge
$response->getStatusCode(),
$response->getHeaders()
];
case 200:
if ('\Aternos\HangarApi\Model\ApiKey' === '\SplFileObject') {
case 401:
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 @@ -881,13 +881,13 @@ public function getKeysWithHttpInfo(string $contentType = self::contentTypes['ge
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}

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 403:
case 200:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Aternos\HangarApi\Model\ApiKey[]',
'\Aternos\HangarApi\Model\ApiKey',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 401:
case 403:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Aternos\HangarApi\Model\ApiKey[]',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
break;
case 200:
case 401:
$data = ObjectSerializer::deserialize(
$e->getResponseBody(),
'\Aternos\HangarApi\Model\ApiKey',
'\Aternos\HangarApi\Model\ApiKey[]',
$e->getResponseHeaders()
);
$e->setResponseObject($data);
Expand Down
10 changes: 5 additions & 5 deletions lib/Api/AuthenticationApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.1.0
* OpenAPI Generator version: 7.2.0
*/

/**
Expand Down Expand Up @@ -76,7 +76,7 @@ class AuthenticationApi
],
];

/**
/**
* @param ClientInterface $client
* @param Configuration $config
* @param HeaderSelector $selector
Expand Down Expand Up @@ -209,7 +209,7 @@ public function authenticateWithHttpInfo($api_key, string $contentType = self::c
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}
Expand All @@ -236,7 +236,7 @@ public function authenticateWithHttpInfo($api_key, string $contentType = self::c
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}
Expand All @@ -263,7 +263,7 @@ public function authenticateWithHttpInfo($api_key, string $contentType = self::c
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}
Expand Down
16 changes: 8 additions & 8 deletions lib/Api/PagesApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*
* The version of the OpenAPI document: 1.0
* Generated by: https://openapi-generator.tech
* OpenAPI Generator version: 7.1.0
* OpenAPI Generator version: 7.2.0
*/

/**
Expand Down Expand Up @@ -85,7 +85,7 @@ class PagesApi
],
];

/**
/**
* @param ClientInterface $client
* @param Configuration $config
* @param HeaderSelector $selector
Expand Down Expand Up @@ -722,7 +722,7 @@ public function getMainPageWithHttpInfo($slug, string $contentType = self::conte
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}
Expand All @@ -749,7 +749,7 @@ public function getMainPageWithHttpInfo($slug, string $contentType = self::conte
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}
Expand All @@ -776,7 +776,7 @@ public function getMainPageWithHttpInfo($slug, string $contentType = self::conte
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}
Expand Down Expand Up @@ -1101,7 +1101,7 @@ public function getPageWithHttpInfo($slug, $path, string $contentType = self::co
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}
Expand All @@ -1128,7 +1128,7 @@ public function getPageWithHttpInfo($slug, $path, string $contentType = self::co
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}
Expand All @@ -1155,7 +1155,7 @@ public function getPageWithHttpInfo($slug, $path, string $contentType = self::co
$statusCode,
$response->getHeaders(),
$content
);
);
}
}
}
Expand Down
Loading

0 comments on commit 1f47c9e

Please sign in to comment.