Skip to content

Commit

Permalink
Rerun generator
Browse files Browse the repository at this point in the history
  • Loading branch information
JulianVennen committed Jan 20, 2025
1 parent e4c0aaf commit bf0472b
Show file tree
Hide file tree
Showing 60 changed files with 407 additions and 337 deletions.
10 changes: 5 additions & 5 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
* Generator version: 7.10.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -89,10 +89,10 @@ class APIKeysApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
$hostIndex = 0
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
int $hostIndex = 0
) {
$this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration();
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
* Generator version: 7.10.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -83,10 +83,10 @@ class AuthenticationApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
$hostIndex = 0
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
int $hostIndex = 0
) {
$this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration();
Expand Down
10 changes: 5 additions & 5 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
* Generator version: 7.10.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -92,10 +92,10 @@ class PagesApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
$hostIndex = 0
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
int $hostIndex = 0
) {
$this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration();
Expand Down
100 changes: 50 additions & 50 deletions lib/Api/PermissionsApi.php

Large diffs are not rendered by default.

146 changes: 73 additions & 73 deletions lib/Api/ProjectsApi.php

Large diffs are not rendered by default.

60 changes: 30 additions & 30 deletions lib/Api/UsersApi.php

Large diffs are not rendered by default.

62 changes: 32 additions & 30 deletions lib/Api/VersionsApi.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
* Generator version: 7.10.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -131,10 +131,10 @@ class VersionsApi
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
*/
public function __construct(
ClientInterface $client = null,
Configuration $config = null,
HeaderSelector $selector = null,
$hostIndex = 0
?ClientInterface $client = null,
?Configuration $config = null,
?HeaderSelector $selector = null,
int $hostIndex = 0
) {
$this->client = $client ?: new Client();
$this->config = $config ?: Configuration::getDefaultConfiguration();
Expand Down Expand Up @@ -4040,9 +4040,9 @@ public function latestVersionRequest($slug_or_id, $channel, string $contentType
*
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\RequestPagination $pagination Pagination information (required)
* @param bool $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
* @param string $channel A name of a version channel to filter for (optional)
* @param string $platform A platform name to filter for (optional)
* @param bool|null $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
* @param string|null $channel A name of a version channel to filter for (optional)
* @param string|null $platform A platform name to filter for (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listVersions'] to see the possible values for this operation
*
* @throws \Aternos\HangarApi\ApiException on non-2xx response or if the response body is not in the expected format
Expand All @@ -4062,9 +4062,9 @@ public function listVersions($slug_or_id, $pagination, $include_hidden_channels
*
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\RequestPagination $pagination Pagination information (required)
* @param bool $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
* @param string $channel A name of a version channel to filter for (optional)
* @param string $platform A platform name to filter for (optional)
* @param bool|null $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
* @param string|null $channel A name of a version channel to filter for (optional)
* @param string|null $platform A platform name to filter for (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listVersions'] to see the possible values for this operation
*
* @throws \Aternos\HangarApi\ApiException on non-2xx response or if the response body is not in the expected format
Expand Down Expand Up @@ -4261,9 +4261,9 @@ public function listVersionsWithHttpInfo($slug_or_id, $pagination, $include_hidd
*
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\RequestPagination $pagination Pagination information (required)
* @param bool $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
* @param string $channel A name of a version channel to filter for (optional)
* @param string $platform A platform name to filter for (optional)
* @param bool|null $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
* @param string|null $channel A name of a version channel to filter for (optional)
* @param string|null $platform A platform name to filter for (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listVersions'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
Expand All @@ -4286,9 +4286,9 @@ function ($response) {
*
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\RequestPagination $pagination Pagination information (required)
* @param bool $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
* @param string $channel A name of a version channel to filter for (optional)
* @param string $platform A platform name to filter for (optional)
* @param bool|null $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
* @param string|null $channel A name of a version channel to filter for (optional)
* @param string|null $platform A platform name to filter for (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listVersions'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -4340,9 +4340,9 @@ function ($exception) {
*
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\RequestPagination $pagination Pagination information (required)
* @param bool $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
* @param string $channel A name of a version channel to filter for (optional)
* @param string $platform A platform name to filter for (optional)
* @param bool|null $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
* @param string|null $channel A name of a version channel to filter for (optional)
* @param string|null $platform A platform name to filter for (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listVersions'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -6140,7 +6140,7 @@ public function showVersionStatsByIdRequest($id, $from_date, $to_date, string $c
*
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload version_upload (required)
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion'] to see the possible values for this operation
*
* @throws \Aternos\HangarApi\ApiException on non-2xx response or if the response body is not in the expected format
Expand All @@ -6160,7 +6160,7 @@ public function uploadVersion($slug_or_id, $version_upload, $files = null, strin
*
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion'] to see the possible values for this operation
*
* @throws \Aternos\HangarApi\ApiException on non-2xx response or if the response body is not in the expected format
Expand Down Expand Up @@ -6357,7 +6357,7 @@ public function uploadVersionWithHttpInfo($slug_or_id, $version_upload, $files =
*
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
Expand All @@ -6380,7 +6380,7 @@ function ($response) {
*
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -6432,7 +6432,7 @@ function ($exception) {
*
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -6492,6 +6492,7 @@ public function uploadVersionRequest($slug_or_id, $version_upload, $files = null
$formParams['versionUpload'] = ObjectSerializer::toFormValue($version_upload);
}

$multipart = true;
$headers = $this->headerSelector->selectHeaders(
['application/json', ],
$contentType,
Expand Down Expand Up @@ -6555,7 +6556,7 @@ public function uploadVersionRequest($slug_or_id, $version_upload, $files = null
* @param string $author The author of the project to return versions for (required)
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload version_upload (required)
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion1'] to see the possible values for this operation
*
* @throws \Aternos\HangarApi\ApiException on non-2xx response or if the response body is not in the expected format
Expand All @@ -6575,7 +6576,7 @@ public function uploadVersion1($author, $slug_or_id, $version_upload, $files = n
* @param string $author The author of the project to return versions for (required)
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion1'] to see the possible values for this operation
*
* @throws \Aternos\HangarApi\ApiException on non-2xx response or if the response body is not in the expected format
Expand Down Expand Up @@ -6702,7 +6703,7 @@ public function uploadVersion1WithHttpInfo($author, $slug_or_id, $version_upload
* @param string $author The author of the project to return versions for (required)
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion1'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
Expand All @@ -6725,7 +6726,7 @@ function ($response) {
* @param string $author The author of the project to return versions for (required)
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion1'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -6779,7 +6780,7 @@ function ($exception) {
* @param string $author The author of the project to return versions for (required)
* @param string $slug_or_id The slug or id of the project to return versions for (required)
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion1'] to see the possible values for this operation
*
* @throws \InvalidArgumentException
Expand Down Expand Up @@ -6855,6 +6856,7 @@ public function uploadVersion1Request($author, $slug_or_id, $version_upload, $fi
$formParams['versionUpload'] = ObjectSerializer::toFormValue($version_upload);
}

$multipart = true;
$headers = $this->headerSelector->selectHeaders(
['application/json', ],
$contentType,
Expand Down
2 changes: 1 addition & 1 deletion lib/ApiException.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
* Generator version: 7.10.0
* Generator version: 7.11.0
*/

/**
Expand Down
4 changes: 2 additions & 2 deletions lib/Configuration.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
* Generator version: 7.10.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -487,7 +487,7 @@ public function getHostSettings()
* @param array|null $variables hash of variable and the corresponding value (optional)
* @return string URL based on host settings
*/
public static function getHostString(array $hostSettings, $hostIndex, array $variables = null)
public static function getHostString(array $hostSettings, $hostIndex, ?array $variables = null)
{
if (null === $variables) {
$variables = [];
Expand Down
2 changes: 1 addition & 1 deletion lib/HeaderSelector.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
* Generator version: 7.10.0
* Generator version: 7.11.0
*/

/**
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/ApiKey.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.10.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -263,10 +263,10 @@ public function getModelName()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('created_at', $data ?? [], null);
$this->setIfExists('last_used', $data ?? [], null);
Expand Down
6 changes: 3 additions & 3 deletions lib/Model/ApiSession.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.10.0
* Generator version: 7.11.0
*/

/**
Expand Down Expand Up @@ -245,10 +245,10 @@ public function getModelName()
/**
* Constructor
*
* @param mixed[] $data Associated array of property values
* @param mixed[]|null $data Associated array of property values
* initializing the model
*/
public function __construct(array $data = null)
public function __construct(?array $data = null)
{
$this->setIfExists('expires_in', $data ?? [], null);
$this->setIfExists('token', $data ?? [], null);
Expand Down
2 changes: 1 addition & 1 deletion lib/Model/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
*
* The version of the OpenAPI document: 1.0
* Generated by: https://openapi-generator.tech
* Generator version: 7.10.0
* Generator version: 7.11.0
*/

/**
Expand Down
Loading

0 comments on commit bf0472b

Please sign in to comment.