Skip to content

Commit bf0472b

Browse files
committed
Rerun generator
1 parent e4c0aaf commit bf0472b

Some content is hidden

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

60 files changed

+407
-337
lines changed

lib/Api/APIKeysApi.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* The version of the OpenAPI document: 1.0
1818
* Generated by: https://openapi-generator.tech
19-
* Generator version: 7.10.0
19+
* Generator version: 7.11.0
2020
*/
2121

2222
/**
@@ -89,10 +89,10 @@ class APIKeysApi
8989
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
9090
*/
9191
public function __construct(
92-
ClientInterface $client = null,
93-
Configuration $config = null,
94-
HeaderSelector $selector = null,
95-
$hostIndex = 0
92+
?ClientInterface $client = null,
93+
?Configuration $config = null,
94+
?HeaderSelector $selector = null,
95+
int $hostIndex = 0
9696
) {
9797
$this->client = $client ?: new Client();
9898
$this->config = $config ?: Configuration::getDefaultConfiguration();

lib/Api/AuthenticationApi.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* The version of the OpenAPI document: 1.0
1818
* Generated by: https://openapi-generator.tech
19-
* Generator version: 7.10.0
19+
* Generator version: 7.11.0
2020
*/
2121

2222
/**
@@ -83,10 +83,10 @@ class AuthenticationApi
8383
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
8484
*/
8585
public function __construct(
86-
ClientInterface $client = null,
87-
Configuration $config = null,
88-
HeaderSelector $selector = null,
89-
$hostIndex = 0
86+
?ClientInterface $client = null,
87+
?Configuration $config = null,
88+
?HeaderSelector $selector = null,
89+
int $hostIndex = 0
9090
) {
9191
$this->client = $client ?: new Client();
9292
$this->config = $config ?: Configuration::getDefaultConfiguration();

lib/Api/PagesApi.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* The version of the OpenAPI document: 1.0
1818
* Generated by: https://openapi-generator.tech
19-
* Generator version: 7.10.0
19+
* Generator version: 7.11.0
2020
*/
2121

2222
/**
@@ -92,10 +92,10 @@ class PagesApi
9292
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
9393
*/
9494
public function __construct(
95-
ClientInterface $client = null,
96-
Configuration $config = null,
97-
HeaderSelector $selector = null,
98-
$hostIndex = 0
95+
?ClientInterface $client = null,
96+
?Configuration $config = null,
97+
?HeaderSelector $selector = null,
98+
int $hostIndex = 0
9999
) {
100100
$this->client = $client ?: new Client();
101101
$this->config = $config ?: Configuration::getDefaultConfiguration();

lib/Api/PermissionsApi.php

Lines changed: 50 additions & 50 deletions
Large diffs are not rendered by default.

lib/Api/ProjectsApi.php

Lines changed: 73 additions & 73 deletions
Large diffs are not rendered by default.

lib/Api/UsersApi.php

Lines changed: 30 additions & 30 deletions
Large diffs are not rendered by default.

lib/Api/VersionsApi.php

Lines changed: 32 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* The version of the OpenAPI document: 1.0
1818
* Generated by: https://openapi-generator.tech
19-
* Generator version: 7.10.0
19+
* Generator version: 7.11.0
2020
*/
2121

2222
/**
@@ -131,10 +131,10 @@ class VersionsApi
131131
* @param int $hostIndex (Optional) host index to select the list of hosts if defined in the OpenAPI spec
132132
*/
133133
public function __construct(
134-
ClientInterface $client = null,
135-
Configuration $config = null,
136-
HeaderSelector $selector = null,
137-
$hostIndex = 0
134+
?ClientInterface $client = null,
135+
?Configuration $config = null,
136+
?HeaderSelector $selector = null,
137+
int $hostIndex = 0
138138
) {
139139
$this->client = $client ?: new Client();
140140
$this->config = $config ?: Configuration::getDefaultConfiguration();
@@ -4040,9 +4040,9 @@ public function latestVersionRequest($slug_or_id, $channel, string $contentType
40404040
*
40414041
* @param string $slug_or_id The slug or id of the project to return versions for (required)
40424042
* @param \Aternos\HangarApi\Model\RequestPagination $pagination Pagination information (required)
4043-
* @param bool $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
4044-
* @param string $channel A name of a version channel to filter for (optional)
4045-
* @param string $platform A platform name to filter for (optional)
4043+
* @param bool|null $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
4044+
* @param string|null $channel A name of a version channel to filter for (optional)
4045+
* @param string|null $platform A platform name to filter for (optional)
40464046
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listVersions'] to see the possible values for this operation
40474047
*
40484048
* @throws \Aternos\HangarApi\ApiException on non-2xx response or if the response body is not in the expected format
@@ -4062,9 +4062,9 @@ public function listVersions($slug_or_id, $pagination, $include_hidden_channels
40624062
*
40634063
* @param string $slug_or_id The slug or id of the project to return versions for (required)
40644064
* @param \Aternos\HangarApi\Model\RequestPagination $pagination Pagination information (required)
4065-
* @param bool $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
4066-
* @param string $channel A name of a version channel to filter for (optional)
4067-
* @param string $platform A platform name to filter for (optional)
4065+
* @param bool|null $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
4066+
* @param string|null $channel A name of a version channel to filter for (optional)
4067+
* @param string|null $platform A platform name to filter for (optional)
40684068
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listVersions'] to see the possible values for this operation
40694069
*
40704070
* @throws \Aternos\HangarApi\ApiException on non-2xx response or if the response body is not in the expected format
@@ -4261,9 +4261,9 @@ public function listVersionsWithHttpInfo($slug_or_id, $pagination, $include_hidd
42614261
*
42624262
* @param string $slug_or_id The slug or id of the project to return versions for (required)
42634263
* @param \Aternos\HangarApi\Model\RequestPagination $pagination Pagination information (required)
4264-
* @param bool $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
4265-
* @param string $channel A name of a version channel to filter for (optional)
4266-
* @param string $platform A platform name to filter for (optional)
4264+
* @param bool|null $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
4265+
* @param string|null $channel A name of a version channel to filter for (optional)
4266+
* @param string|null $platform A platform name to filter for (optional)
42674267
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listVersions'] to see the possible values for this operation
42684268
*
42694269
* @throws \InvalidArgumentException
@@ -4286,9 +4286,9 @@ function ($response) {
42864286
*
42874287
* @param string $slug_or_id The slug or id of the project to return versions for (required)
42884288
* @param \Aternos\HangarApi\Model\RequestPagination $pagination Pagination information (required)
4289-
* @param bool $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
4290-
* @param string $channel A name of a version channel to filter for (optional)
4291-
* @param string $platform A platform name to filter for (optional)
4289+
* @param bool|null $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
4290+
* @param string|null $channel A name of a version channel to filter for (optional)
4291+
* @param string|null $platform A platform name to filter for (optional)
42924292
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listVersions'] to see the possible values for this operation
42934293
*
42944294
* @throws \InvalidArgumentException
@@ -4340,9 +4340,9 @@ function ($exception) {
43404340
*
43414341
* @param string $slug_or_id The slug or id of the project to return versions for (required)
43424342
* @param \Aternos\HangarApi\Model\RequestPagination $pagination Pagination information (required)
4343-
* @param bool $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
4344-
* @param string $channel A name of a version channel to filter for (optional)
4345-
* @param string $platform A platform name to filter for (optional)
4343+
* @param bool|null $include_hidden_channels Whether to include hidden-by-default channels in the result, defaults to try (optional, default to true)
4344+
* @param string|null $channel A name of a version channel to filter for (optional)
4345+
* @param string|null $platform A platform name to filter for (optional)
43464346
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['listVersions'] to see the possible values for this operation
43474347
*
43484348
* @throws \InvalidArgumentException
@@ -6140,7 +6140,7 @@ public function showVersionStatsByIdRequest($id, $from_date, $to_date, string $c
61406140
*
61416141
* @param string $slug_or_id The slug or id of the project to return versions for (required)
61426142
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload version_upload (required)
6143-
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
6143+
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
61446144
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion'] to see the possible values for this operation
61456145
*
61466146
* @throws \Aternos\HangarApi\ApiException on non-2xx response or if the response body is not in the expected format
@@ -6160,7 +6160,7 @@ public function uploadVersion($slug_or_id, $version_upload, $files = null, strin
61606160
*
61616161
* @param string $slug_or_id The slug or id of the project to return versions for (required)
61626162
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
6163-
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
6163+
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
61646164
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion'] to see the possible values for this operation
61656165
*
61666166
* @throws \Aternos\HangarApi\ApiException on non-2xx response or if the response body is not in the expected format
@@ -6357,7 +6357,7 @@ public function uploadVersionWithHttpInfo($slug_or_id, $version_upload, $files =
63576357
*
63586358
* @param string $slug_or_id The slug or id of the project to return versions for (required)
63596359
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
6360-
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
6360+
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
63616361
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion'] to see the possible values for this operation
63626362
*
63636363
* @throws \InvalidArgumentException
@@ -6380,7 +6380,7 @@ function ($response) {
63806380
*
63816381
* @param string $slug_or_id The slug or id of the project to return versions for (required)
63826382
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
6383-
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
6383+
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
63846384
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion'] to see the possible values for this operation
63856385
*
63866386
* @throws \InvalidArgumentException
@@ -6432,7 +6432,7 @@ function ($exception) {
64326432
*
64336433
* @param string $slug_or_id The slug or id of the project to return versions for (required)
64346434
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
6435-
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
6435+
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
64366436
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion'] to see the possible values for this operation
64376437
*
64386438
* @throws \InvalidArgumentException
@@ -6492,6 +6492,7 @@ public function uploadVersionRequest($slug_or_id, $version_upload, $files = null
64926492
$formParams['versionUpload'] = ObjectSerializer::toFormValue($version_upload);
64936493
}
64946494

6495+
$multipart = true;
64956496
$headers = $this->headerSelector->selectHeaders(
64966497
['application/json', ],
64976498
$contentType,
@@ -6555,7 +6556,7 @@ public function uploadVersionRequest($slug_or_id, $version_upload, $files = null
65556556
* @param string $author The author of the project to return versions for (required)
65566557
* @param string $slug_or_id The slug or id of the project to return versions for (required)
65576558
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload version_upload (required)
6558-
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
6559+
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
65596560
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion1'] to see the possible values for this operation
65606561
*
65616562
* @throws \Aternos\HangarApi\ApiException on non-2xx response or if the response body is not in the expected format
@@ -6575,7 +6576,7 @@ public function uploadVersion1($author, $slug_or_id, $version_upload, $files = n
65756576
* @param string $author The author of the project to return versions for (required)
65766577
* @param string $slug_or_id The slug or id of the project to return versions for (required)
65776578
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
6578-
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
6579+
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
65796580
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion1'] to see the possible values for this operation
65806581
*
65816582
* @throws \Aternos\HangarApi\ApiException on non-2xx response or if the response body is not in the expected format
@@ -6702,7 +6703,7 @@ public function uploadVersion1WithHttpInfo($author, $slug_or_id, $version_upload
67026703
* @param string $author The author of the project to return versions for (required)
67036704
* @param string $slug_or_id The slug or id of the project to return versions for (required)
67046705
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
6705-
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
6706+
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
67066707
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion1'] to see the possible values for this operation
67076708
*
67086709
* @throws \InvalidArgumentException
@@ -6725,7 +6726,7 @@ function ($response) {
67256726
* @param string $author The author of the project to return versions for (required)
67266727
* @param string $slug_or_id The slug or id of the project to return versions for (required)
67276728
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
6728-
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
6729+
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
67296730
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion1'] to see the possible values for this operation
67306731
*
67316732
* @throws \InvalidArgumentException
@@ -6779,7 +6780,7 @@ function ($exception) {
67796780
* @param string $author The author of the project to return versions for (required)
67806781
* @param string $slug_or_id The slug or id of the project to return versions for (required)
67816782
* @param \Aternos\HangarApi\Model\VersionUpload $version_upload (required)
6782-
* @param \SplFileObject[] $files The version files in order of selected platforms, if any (optional)
6783+
* @param \SplFileObject[]|null $files The version files in order of selected platforms, if any (optional)
67836784
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['uploadVersion1'] to see the possible values for this operation
67846785
*
67856786
* @throws \InvalidArgumentException
@@ -6855,6 +6856,7 @@ public function uploadVersion1Request($author, $slug_or_id, $version_upload, $fi
68556856
$formParams['versionUpload'] = ObjectSerializer::toFormValue($version_upload);
68566857
}
68576858

6859+
$multipart = true;
68586860
$headers = $this->headerSelector->selectHeaders(
68596861
['application/json', ],
68606862
$contentType,

lib/ApiException.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* The version of the OpenAPI document: 1.0
1818
* Generated by: https://openapi-generator.tech
19-
* Generator version: 7.10.0
19+
* Generator version: 7.11.0
2020
*/
2121

2222
/**

lib/Configuration.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* The version of the OpenAPI document: 1.0
1818
* Generated by: https://openapi-generator.tech
19-
* Generator version: 7.10.0
19+
* Generator version: 7.11.0
2020
*/
2121

2222
/**
@@ -487,7 +487,7 @@ public function getHostSettings()
487487
* @param array|null $variables hash of variable and the corresponding value (optional)
488488
* @return string URL based on host settings
489489
*/
490-
public static function getHostString(array $hostSettings, $hostIndex, array $variables = null)
490+
public static function getHostString(array $hostSettings, $hostIndex, ?array $variables = null)
491491
{
492492
if (null === $variables) {
493493
$variables = [];

lib/HeaderSelector.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
*
1717
* The version of the OpenAPI document: 1.0
1818
* Generated by: https://openapi-generator.tech
19-
* Generator version: 7.10.0
19+
* Generator version: 7.11.0
2020
*/
2121

2222
/**

0 commit comments

Comments
 (0)