Skip to content

Commit d79c386

Browse files
committed
Update with latest generator
1 parent df1df9d commit d79c386

File tree

149 files changed

+2793
-2618
lines changed

Some content is hidden

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

149 files changed

+2793
-2618
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.10.0-SNAPSHOT
1+
7.13.0-SNAPSHOT

CustomApi/README.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ This is a REST API reference for the Keycloak Admin REST API.
77

88
### Requirements
99

10-
PHP 7.4 and later.
11-
Should also work with PHP 8.0.
10+
PHP 8.1 and later.
1211

1312
### Composer
1413

@@ -105,5 +104,5 @@ vendor/bin/phpunit
105104
This PHP package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
106105

107106
- API version: `1.0`
108-
- Generator version: `7.10.0-SNAPSHOT`
107+
- Generator version: `7.13.0-SNAPSHOT`
109108
- Build package: `org.openapitools.codegen.languages.PhpClientCodegen`

CustomApi/composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
}
1919
],
2020
"require": {
21-
"php": "^7.4 || ^8.0",
21+
"php": "^8.1",
2222
"ext-curl": "*",
2323
"ext-json": "*",
2424
"ext-mbstring": "*",

CustomApi/lib/Api/CustomApi.php

Lines changed: 37 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* CustomApi
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package WebMI\KeycloakApiClient\CustomApi
@@ -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-SNAPSHOT
19+
* Generator version: 7.13.0-SNAPSHOT
2020
*/
2121

2222
/**
@@ -83,10 +83,10 @@ class CustomApi
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();
@@ -128,11 +128,11 @@ public function getConfig()
128128
* Oidc Login
129129
*
130130
* @param string $realm realm name (not id!) (required)
131-
* @param string $username Username (optional)
132-
* @param string $password User Password (optional)
133-
* @param string $client_id Client id (optional)
134-
* @param string $grant_type Grant Type (optional)
135-
* @param string $refresh_token Refresh Token (optional)
131+
* @param string|null $username Username (optional)
132+
* @param string|null $password User Password (optional)
133+
* @param string|null $client_id Client id (optional)
134+
* @param string|null $grant_type Grant Type (optional)
135+
* @param string|null $refresh_token Refresh Token (optional)
136136
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
137137
*
138138
* @throws \WebMI\KeycloakApiClient\CustomApi\ApiException on non-2xx response or if the response body is not in the expected format
@@ -151,11 +151,11 @@ public function realmsRealmProtocolOpenidConnectTokenPost($realm, $username = nu
151151
* Oidc Login
152152
*
153153
* @param string $realm realm name (not id!) (required)
154-
* @param string $username Username (optional)
155-
* @param string $password User Password (optional)
156-
* @param string $client_id Client id (optional)
157-
* @param string $grant_type Grant Type (optional)
158-
* @param string $refresh_token Refresh Token (optional)
154+
* @param string|null $username Username (optional)
155+
* @param string|null $password User Password (optional)
156+
* @param string|null $client_id Client id (optional)
157+
* @param string|null $grant_type Grant Type (optional)
158+
* @param string|null $refresh_token Refresh Token (optional)
159159
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
160160
*
161161
* @throws \WebMI\KeycloakApiClient\CustomApi\ApiException on non-2xx response or if the response body is not in the expected format
@@ -351,11 +351,11 @@ public function realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo($realm, $u
351351
* Oidc Login
352352
*
353353
* @param string $realm realm name (not id!) (required)
354-
* @param string $username Username (optional)
355-
* @param string $password User Password (optional)
356-
* @param string $client_id Client id (optional)
357-
* @param string $grant_type Grant Type (optional)
358-
* @param string $refresh_token Refresh Token (optional)
354+
* @param string|null $username Username (optional)
355+
* @param string|null $password User Password (optional)
356+
* @param string|null $client_id Client id (optional)
357+
* @param string|null $grant_type Grant Type (optional)
358+
* @param string|null $refresh_token Refresh Token (optional)
359359
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
360360
*
361361
* @throws \InvalidArgumentException
@@ -377,11 +377,11 @@ function ($response) {
377377
* Oidc Login
378378
*
379379
* @param string $realm realm name (not id!) (required)
380-
* @param string $username Username (optional)
381-
* @param string $password User Password (optional)
382-
* @param string $client_id Client id (optional)
383-
* @param string $grant_type Grant Type (optional)
384-
* @param string $refresh_token Refresh Token (optional)
380+
* @param string|null $username Username (optional)
381+
* @param string|null $password User Password (optional)
382+
* @param string|null $client_id Client id (optional)
383+
* @param string|null $grant_type Grant Type (optional)
384+
* @param string|null $refresh_token Refresh Token (optional)
385385
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
386386
*
387387
* @throws \InvalidArgumentException
@@ -432,11 +432,11 @@ function ($exception) {
432432
* Create request for operation 'realmsRealmProtocolOpenidConnectTokenPost'
433433
*
434434
* @param string $realm realm name (not id!) (required)
435-
* @param string $username Username (optional)
436-
* @param string $password User Password (optional)
437-
* @param string $client_id Client id (optional)
438-
* @param string $grant_type Grant Type (optional)
439-
* @param string $refresh_token Refresh Token (optional)
435+
* @param string|null $username Username (optional)
436+
* @param string|null $password User Password (optional)
437+
* @param string|null $client_id Client id (optional)
438+
* @param string|null $grant_type Grant Type (optional)
439+
* @param string|null $refresh_token Refresh Token (optional)
440440
* @param string $contentType The value for the Content-Type header. Check self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'] to see the possible values for this operation
441441
*
442442
* @throws \InvalidArgumentException
@@ -478,25 +478,26 @@ public function realmsRealmProtocolOpenidConnectTokenPostRequest($realm, $userna
478478

479479
// form params
480480
if ($username !== null) {
481-
$formParams['username'] = ObjectSerializer::toFormValue($username);
481+
$formParams = array_merge($formParams, ObjectSerializer::toFormValue('username', $username));
482482
}
483483
// form params
484484
if ($password !== null) {
485-
$formParams['password'] = ObjectSerializer::toFormValue($password);
485+
$formParams = array_merge($formParams, ObjectSerializer::toFormValue('password', $password));
486486
}
487487
// form params
488488
if ($client_id !== null) {
489-
$formParams['client_id'] = ObjectSerializer::toFormValue($client_id);
489+
$formParams = array_merge($formParams, ObjectSerializer::toFormValue('client_id', $client_id));
490490
}
491491
// form params
492492
if ($grant_type !== null) {
493-
$formParams['grant_type'] = ObjectSerializer::toFormValue($grant_type);
493+
$formParams = array_merge($formParams, ObjectSerializer::toFormValue('grant_type', $grant_type));
494494
}
495495
// form params
496496
if ($refresh_token !== null) {
497-
$formParams['refresh_token'] = ObjectSerializer::toFormValue($refresh_token);
497+
$formParams = array_merge($formParams, ObjectSerializer::toFormValue('refresh_token', $refresh_token));
498498
}
499499

500+
$multipart = true;
500501
$headers = $this->headerSelector->selectHeaders(
501502
['application/json', ],
502503
$contentType,

CustomApi/lib/ApiException.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* ApiException
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package WebMI\KeycloakApiClient\CustomApi
@@ -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-SNAPSHOT
19+
* Generator version: 7.13.0-SNAPSHOT
2020
*/
2121

2222
/**

CustomApi/lib/Configuration.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* Configuration
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package WebMI\KeycloakApiClient\CustomApi
@@ -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-SNAPSHOT
19+
* Generator version: 7.13.0-SNAPSHOT
2020
*/
2121

2222
/**
@@ -29,7 +29,7 @@
2929

3030
/**
3131
* Configuration Class Doc Comment
32-
* PHP version 7.4
32+
* PHP version 8.1
3333
*
3434
* @category Class
3535
* @package WebMI\KeycloakApiClient\CustomApi
@@ -486,7 +486,7 @@ public function getHostSettings()
486486
* @param array|null $variables hash of variable and the corresponding value (optional)
487487
* @return string URL based on host settings
488488
*/
489-
public static function getHostString(array $hostSettings, $hostIndex, array $variables = null)
489+
public static function getHostString(array $hostSettings, $hostIndex, ?array $variables = null)
490490
{
491491
if (null === $variables) {
492492
$variables = [];

CustomApi/lib/HeaderSelector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* HeaderSelector
4-
* PHP version 7.4
4+
* PHP version 8.1
55
*
66
* @category Class
77
* @package WebMI\KeycloakApiClient\CustomApi
@@ -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-SNAPSHOT
19+
* Generator version: 7.13.0-SNAPSHOT
2020
*/
2121

2222
/**

CustomApi/lib/Model/ModelInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* ModelInterface
44
*
5-
* PHP version 7.4
5+
* PHP version 8.1
66
*
77
* @category Class
88
* @package WebMI\KeycloakApiClient\CustomApi\Model
@@ -17,7 +17,7 @@
1717
*
1818
* The version of the OpenAPI document: 1.0
1919
* Generated by: https://openapi-generator.tech
20-
* Generator version: 7.10.0-SNAPSHOT
20+
* Generator version: 7.13.0-SNAPSHOT
2121
*/
2222

2323
/**

CustomApi/lib/Model/RealmsRealmProtocolOpenidConnectTokenPost200Response.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* RealmsRealmProtocolOpenidConnectTokenPost200Response
44
*
5-
* PHP version 7.4
5+
* PHP version 8.1
66
*
77
* @category Class
88
* @package WebMI\KeycloakApiClient\CustomApi
@@ -17,7 +17,7 @@
1717
*
1818
* The version of the OpenAPI document: 1.0
1919
* Generated by: https://openapi-generator.tech
20-
* Generator version: 7.10.0-SNAPSHOT
20+
* Generator version: 7.13.0-SNAPSHOT
2121
*/
2222

2323
/**
@@ -281,10 +281,10 @@ public function getModelName()
281281
/**
282282
* Constructor
283283
*
284-
* @param mixed[] $data Associated array of property values
284+
* @param mixed[]|null $data Associated array of property values
285285
* initializing the model
286286
*/
287-
public function __construct(array $data = null)
287+
public function __construct(?array $data = null)
288288
{
289289
$this->setIfExists('access_token', $data ?? [], null);
290290
$this->setIfExists('expires_in', $data ?? [], null);

CustomApi/lib/Model/RealmsRealmProtocolOpenidConnectTokenPost400Response.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
/**
33
* RealmsRealmProtocolOpenidConnectTokenPost400Response
44
*
5-
* PHP version 7.4
5+
* PHP version 8.1
66
*
77
* @category Class
88
* @package WebMI\KeycloakApiClient\CustomApi
@@ -17,7 +17,7 @@
1717
*
1818
* The version of the OpenAPI document: 1.0
1919
* Generated by: https://openapi-generator.tech
20-
* Generator version: 7.10.0-SNAPSHOT
20+
* Generator version: 7.13.0-SNAPSHOT
2121
*/
2222

2323
/**
@@ -245,10 +245,10 @@ public function getModelName()
245245
/**
246246
* Constructor
247247
*
248-
* @param mixed[] $data Associated array of property values
248+
* @param mixed[]|null $data Associated array of property values
249249
* initializing the model
250250
*/
251-
public function __construct(array $data = null)
251+
public function __construct(?array $data = null)
252252
{
253253
$this->setIfExists('error', $data ?? [], null);
254254
$this->setIfExists('error_description', $data ?? [], null);

0 commit comments

Comments
 (0)