Skip to content

Commit b4c14ce

Browse files
committed
Update with latest generator
1 parent c837db8 commit b4c14ce

File tree

4 files changed

+40
-157
lines changed

4 files changed

+40
-157
lines changed

CustomApi/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,14 +55,14 @@ $apiInstance = new WebMI\KeycloakApiClient\CustomApi\Api\CustomApi(
5555
new GuzzleHttp\Client()
5656
);
5757
$realm = 'realm_example'; // string | realm name (not id!)
58-
$username = 'username_example'; // string | Username
59-
$password = 'password_example'; // string | User Password
6058
$client_id = 'client_id_example'; // string | Client id
6159
$grant_type = 'grant_type_example'; // string | Grant Type
60+
$username = 'username_example'; // string | Username
61+
$password = 'password_example'; // string | User Password
6262
$refresh_token = 'refresh_token_example'; // string | Refresh Token
6363

6464
try {
65-
$result = $apiInstance->realmsRealmProtocolOpenidConnectTokenPost($realm, $username, $password, $client_id, $grant_type, $refresh_token);
65+
$result = $apiInstance->realmsRealmProtocolOpenidConnectTokenPost($realm, $client_id, $grant_type, $username, $password, $refresh_token);
6666
print_r($result);
6767
} catch (Exception $e) {
6868
echo 'Exception when calling CustomApi->realmsRealmProtocolOpenidConnectTokenPost: ', $e->getMessage(), PHP_EOL;

CustomApi/docs/Api/CustomApi.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ All URIs are relative to http://localhost, except if the operation defines anoth
1010
## `realmsRealmProtocolOpenidConnectTokenPost()`
1111

1212
```php
13-
realmsRealmProtocolOpenidConnectTokenPost($realm, $username, $password, $client_id, $grant_type, $refresh_token): \WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost200Response
13+
realmsRealmProtocolOpenidConnectTokenPost($realm, $client_id, $grant_type, $username, $password, $refresh_token): \WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost200Response
1414
```
1515

1616
Oidc Login
@@ -31,14 +31,14 @@ $apiInstance = new WebMI\KeycloakApiClient\CustomApi\Api\CustomApi(
3131
new GuzzleHttp\Client()
3232
);
3333
$realm = 'realm_example'; // string | realm name (not id!)
34-
$username = 'username_example'; // string | Username
35-
$password = 'password_example'; // string | User Password
3634
$client_id = 'client_id_example'; // string | Client id
3735
$grant_type = 'grant_type_example'; // string | Grant Type
36+
$username = 'username_example'; // string | Username
37+
$password = 'password_example'; // string | User Password
3838
$refresh_token = 'refresh_token_example'; // string | Refresh Token
3939

4040
try {
41-
$result = $apiInstance->realmsRealmProtocolOpenidConnectTokenPost($realm, $username, $password, $client_id, $grant_type, $refresh_token);
41+
$result = $apiInstance->realmsRealmProtocolOpenidConnectTokenPost($realm, $client_id, $grant_type, $username, $password, $refresh_token);
4242
print_r($result);
4343
} catch (Exception $e) {
4444
echo 'Exception when calling CustomApi->realmsRealmProtocolOpenidConnectTokenPost: ', $e->getMessage(), PHP_EOL;
@@ -50,10 +50,10 @@ try {
5050
| Name | Type | Description | Notes |
5151
| ------------- | ------------- | ------------- | ------------- |
5252
| **realm** | **string**| realm name (not id!) | |
53+
| **client_id** | **string**| Client id | |
54+
| **grant_type** | **string**| Grant Type | |
5355
| **username** | **string**| Username | [optional] |
5456
| **password** | **string**| User Password | [optional] |
55-
| **client_id** | **string**| Client id | [optional] |
56-
| **grant_type** | **string**| Grant Type | [optional] |
5757
| **refresh_token** | **string**| Refresh Token | [optional] |
5858

5959
### Return type

CustomApi/lib/Api/CustomApi.php

Lines changed: 31 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -128,20 +128,20 @@ public function getConfig()
128128
* Oidc Login
129129
*
130130
* @param string $realm realm name (not id!) (required)
131+
* @param string $client_id Client id (required)
132+
* @param string $grant_type Grant Type (required)
131133
* @param string|null $username Username (optional)
132134
* @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)
135135
* @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
139139
* @throws \InvalidArgumentException
140140
* @return \WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost200Response|\WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost400Response|\WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost400Response
141141
*/
142-
public function realmsRealmProtocolOpenidConnectTokenPost($realm, $username = null, $password = null, $client_id = null, $grant_type = null, $refresh_token = null, string $contentType = self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'][0])
142+
public function realmsRealmProtocolOpenidConnectTokenPost($realm, $client_id, $grant_type, $username = null, $password = null, $refresh_token = null, string $contentType = self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'][0])
143143
{
144-
list($response) = $this->realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo($realm, $username, $password, $client_id, $grant_type, $refresh_token, $contentType);
144+
list($response) = $this->realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo($realm, $client_id, $grant_type, $username, $password, $refresh_token, $contentType);
145145
return $response;
146146
}
147147

@@ -151,20 +151,20 @@ public function realmsRealmProtocolOpenidConnectTokenPost($realm, $username = nu
151151
* Oidc Login
152152
*
153153
* @param string $realm realm name (not id!) (required)
154+
* @param string $client_id Client id (required)
155+
* @param string $grant_type Grant Type (required)
154156
* @param string|null $username Username (optional)
155157
* @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)
158158
* @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
162162
* @throws \InvalidArgumentException
163163
* @return array of \WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost200Response|\WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost400Response|\WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost400Response, HTTP status code, HTTP response headers (array of strings)
164164
*/
165-
public function realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo($realm, $username = null, $password = null, $client_id = null, $grant_type = null, $refresh_token = null, string $contentType = self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'][0])
165+
public function realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo($realm, $client_id, $grant_type, $username = null, $password = null, $refresh_token = null, string $contentType = self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'][0])
166166
{
167-
$request = $this->realmsRealmProtocolOpenidConnectTokenPostRequest($realm, $username, $password, $client_id, $grant_type, $refresh_token, $contentType);
167+
$request = $this->realmsRealmProtocolOpenidConnectTokenPostRequest($realm, $client_id, $grant_type, $username, $password, $refresh_token, $contentType);
168168

169169
try {
170170
$options = $this->createHttpClientOption();
@@ -351,19 +351,19 @@ public function realmsRealmProtocolOpenidConnectTokenPostWithHttpInfo($realm, $u
351351
* Oidc Login
352352
*
353353
* @param string $realm realm name (not id!) (required)
354+
* @param string $client_id Client id (required)
355+
* @param string $grant_type Grant Type (required)
354356
* @param string|null $username Username (optional)
355357
* @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)
358358
* @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
362362
* @return \GuzzleHttp\Promise\PromiseInterface
363363
*/
364-
public function realmsRealmProtocolOpenidConnectTokenPostAsync($realm, $username = null, $password = null, $client_id = null, $grant_type = null, $refresh_token = null, string $contentType = self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'][0])
364+
public function realmsRealmProtocolOpenidConnectTokenPostAsync($realm, $client_id, $grant_type, $username = null, $password = null, $refresh_token = null, string $contentType = self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'][0])
365365
{
366-
return $this->realmsRealmProtocolOpenidConnectTokenPostAsyncWithHttpInfo($realm, $username, $password, $client_id, $grant_type, $refresh_token, $contentType)
366+
return $this->realmsRealmProtocolOpenidConnectTokenPostAsyncWithHttpInfo($realm, $client_id, $grant_type, $username, $password, $refresh_token, $contentType)
367367
->then(
368368
function ($response) {
369369
return $response[0];
@@ -377,20 +377,20 @@ function ($response) {
377377
* Oidc Login
378378
*
379379
* @param string $realm realm name (not id!) (required)
380+
* @param string $client_id Client id (required)
381+
* @param string $grant_type Grant Type (required)
380382
* @param string|null $username Username (optional)
381383
* @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)
384384
* @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
388388
* @return \GuzzleHttp\Promise\PromiseInterface
389389
*/
390-
public function realmsRealmProtocolOpenidConnectTokenPostAsyncWithHttpInfo($realm, $username = null, $password = null, $client_id = null, $grant_type = null, $refresh_token = null, string $contentType = self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'][0])
390+
public function realmsRealmProtocolOpenidConnectTokenPostAsyncWithHttpInfo($realm, $client_id, $grant_type, $username = null, $password = null, $refresh_token = null, string $contentType = self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'][0])
391391
{
392392
$returnType = '\WebMI\KeycloakApiClient\CustomApi\Model\RealmsRealmProtocolOpenidConnectTokenPost200Response';
393-
$request = $this->realmsRealmProtocolOpenidConnectTokenPostRequest($realm, $username, $password, $client_id, $grant_type, $refresh_token, $contentType);
393+
$request = $this->realmsRealmProtocolOpenidConnectTokenPostRequest($realm, $client_id, $grant_type, $username, $password, $refresh_token, $contentType);
394394

395395
return $this->client
396396
->sendAsync($request, $this->createHttpClientOption())
@@ -432,17 +432,17 @@ function ($exception) {
432432
* Create request for operation 'realmsRealmProtocolOpenidConnectTokenPost'
433433
*
434434
* @param string $realm realm name (not id!) (required)
435+
* @param string $client_id Client id (required)
436+
* @param string $grant_type Grant Type (required)
435437
* @param string|null $username Username (optional)
436438
* @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)
439439
* @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
443443
* @return \GuzzleHttp\Psr7\Request
444444
*/
445-
public function realmsRealmProtocolOpenidConnectTokenPostRequest($realm, $username = null, $password = null, $client_id = null, $grant_type = null, $refresh_token = null, string $contentType = self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'][0])
445+
public function realmsRealmProtocolOpenidConnectTokenPostRequest($realm, $client_id, $grant_type, $username = null, $password = null, $refresh_token = null, string $contentType = self::contentTypes['realmsRealmProtocolOpenidConnectTokenPost'][0])
446446
{
447447

448448
// verify the required parameter 'realm' is set
@@ -452,7 +452,19 @@ public function realmsRealmProtocolOpenidConnectTokenPostRequest($realm, $userna
452452
);
453453
}
454454

455+
// verify the required parameter 'client_id' is set
456+
if ($client_id === null || (is_array($client_id) && count($client_id) === 0)) {
457+
throw new \InvalidArgumentException(
458+
'Missing the required parameter $client_id when calling realmsRealmProtocolOpenidConnectTokenPost'
459+
);
460+
}
455461

462+
// verify the required parameter 'grant_type' is set
463+
if ($grant_type === null || (is_array($grant_type) && count($grant_type) === 0)) {
464+
throw new \InvalidArgumentException(
465+
'Missing the required parameter $grant_type when calling realmsRealmProtocolOpenidConnectTokenPost'
466+
);
467+
}
456468

457469

458470

KeycloakApi/.openapi-generator/FILES

Lines changed: 0 additions & 129 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.gitignore
2-
.openapi-generator-ignore
32
.php-cs-fixer.dist.php
43
.travis.yml
54
README.md
@@ -267,131 +266,3 @@ lib/Model/UserRepresentation.php
267266
lib/Model/UserSessionRepresentation.php
268267
lib/ObjectSerializer.php
269268
phpunit.xml.dist
270-
test/Api/AttackDetectionApiTest.php
271-
test/Api/AuthenticationManagementApiTest.php
272-
test/Api/ClientAttributeCertificateApiTest.php
273-
test/Api/ClientInitialAccessApiTest.php
274-
test/Api/ClientRegistrationPolicyApiTest.php
275-
test/Api/ClientRoleMappingsApiTest.php
276-
test/Api/ClientScopesApiTest.php
277-
test/Api/ClientsApiTest.php
278-
test/Api/ComponentApiTest.php
279-
test/Api/DefaultApiTest.php
280-
test/Api/GroupsApiTest.php
281-
test/Api/IdentityProvidersApiTest.php
282-
test/Api/KeyApiTest.php
283-
test/Api/OrganizationsApiTest.php
284-
test/Api/ProtocolMappersApiTest.php
285-
test/Api/RealmsAdminApiTest.php
286-
test/Api/RoleMapperApiTest.php
287-
test/Api/RolesApiTest.php
288-
test/Api/RolesByIDApiTest.php
289-
test/Api/ScopeMappingsApiTest.php
290-
test/Api/UsersApiTest.php
291-
test/Model/AbstractPolicyRepresentationTest.php
292-
test/Model/AccessTest.php
293-
test/Model/AccessTokenTest.php
294-
test/Model/AddressClaimSetTest.php
295-
test/Model/AdminEventRepresentationTest.php
296-
test/Model/ApplicationRepresentationTest.php
297-
test/Model/AuthDetailsRepresentationTest.php
298-
test/Model/AuthenticationExecutionExportRepresentationTest.php
299-
test/Model/AuthenticationExecutionInfoRepresentationTest.php
300-
test/Model/AuthenticationExecutionRepresentationTest.php
301-
test/Model/AuthenticationFlowRepresentationTest.php
302-
test/Model/AuthenticatorConfigInfoRepresentationTest.php
303-
test/Model/AuthenticatorConfigRepresentationTest.php
304-
test/Model/AuthorizationTest.php
305-
test/Model/BruteForceStrategyTest.php
306-
test/Model/CertificateRepresentationTest.php
307-
test/Model/ClaimRepresentationTest.php
308-
test/Model/ClientInitialAccessCreatePresentationTest.php
309-
test/Model/ClientInitialAccessPresentationTest.php
310-
test/Model/ClientMappingsRepresentationTest.php
311-
test/Model/ClientPoliciesRepresentationTest.php
312-
test/Model/ClientPolicyConditionRepresentationTest.php
313-
test/Model/ClientPolicyExecutorRepresentationTest.php
314-
test/Model/ClientPolicyRepresentationTest.php
315-
test/Model/ClientProfileRepresentationTest.php
316-
test/Model/ClientProfilesRepresentationTest.php
317-
test/Model/ClientRepresentationTest.php
318-
test/Model/ClientScopeRepresentationTest.php
319-
test/Model/ClientTemplateRepresentationTest.php
320-
test/Model/ClientTypeRepresentationTest.php
321-
test/Model/ClientTypesRepresentationTest.php
322-
test/Model/ComponentExportRepresentationTest.php
323-
test/Model/ComponentRepresentationTest.php
324-
test/Model/ComponentTypeRepresentationTest.php
325-
test/Model/CompositesTest.php
326-
test/Model/ConfigPropertyRepresentationTest.php
327-
test/Model/ConfirmationTest.php
328-
test/Model/CredentialRepresentationTest.php
329-
test/Model/DecisionEffectTest.php
330-
test/Model/DecisionStrategyTest.php
331-
test/Model/EnforcementModeTest.php
332-
test/Model/EvaluationResultRepresentationTest.php
333-
test/Model/EventRepresentationTest.php
334-
test/Model/FederatedIdentityRepresentationTest.php
335-
test/Model/GlobalRequestResultTest.php
336-
test/Model/GroupRepresentationTest.php
337-
test/Model/IDTokenTest.php
338-
test/Model/IdentityProviderMapperRepresentationTest.php
339-
test/Model/IdentityProviderMapperTypeRepresentationTest.php
340-
test/Model/IdentityProviderRepresentationTest.php
341-
test/Model/InstallationAdapterConfigTest.php
342-
test/Model/KeyMetadataRepresentationTest.php
343-
test/Model/KeyStoreConfigTest.php
344-
test/Model/KeyUseTest.php
345-
test/Model/KeysMetadataRepresentationTest.php
346-
test/Model/LogicTest.php
347-
test/Model/ManagementPermissionReferenceTest.php
348-
test/Model/MappingsRepresentationTest.php
349-
test/Model/MemberRepresentationTest.php
350-
test/Model/MembershipTypeTest.php
351-
test/Model/MethodConfigTest.php
352-
test/Model/OAuthClientRepresentationTest.php
353-
test/Model/OrganizationDomainRepresentationTest.php
354-
test/Model/OrganizationRepresentationTest.php
355-
test/Model/PathCacheConfigTest.php
356-
test/Model/PathConfigTest.php
357-
test/Model/PermissionTest.php
358-
test/Model/PolicyEnforcementModeTest.php
359-
test/Model/PolicyEnforcerConfigTest.php
360-
test/Model/PolicyEvaluationRequestTest.php
361-
test/Model/PolicyEvaluationResponseTest.php
362-
test/Model/PolicyProviderRepresentationTest.php
363-
test/Model/PolicyRepresentationTest.php
364-
test/Model/PolicyResultRepresentationTest.php
365-
test/Model/PropertyConfigTest.php
366-
test/Model/ProtocolMapperEvaluationRepresentationTest.php
367-
test/Model/ProtocolMapperRepresentationTest.php
368-
test/Model/PublishedRealmRepresentationTest.php
369-
test/Model/RealmEventsConfigRepresentationTest.php
370-
test/Model/RealmRepresentationTest.php
371-
test/Model/RequiredActionConfigInfoRepresentationTest.php
372-
test/Model/RequiredActionConfigRepresentationTest.php
373-
test/Model/RequiredActionProviderRepresentationTest.php
374-
test/Model/ResourceOwnerRepresentationTest.php
375-
test/Model/ResourceRepresentationTest.php
376-
test/Model/ResourceServerRepresentationTest.php
377-
test/Model/RoleRepresentationTest.php
378-
test/Model/RolesRepresentationTest.php
379-
test/Model/ScopeEnforcementModeTest.php
380-
test/Model/ScopeMappingRepresentationTest.php
381-
test/Model/ScopeRepresentationTest.php
382-
test/Model/SocialLinkRepresentationTest.php
383-
test/Model/UPAttributePermissionsTest.php
384-
test/Model/UPAttributeRequiredTest.php
385-
test/Model/UPAttributeSelectorTest.php
386-
test/Model/UPAttributeTest.php
387-
test/Model/UPConfigTest.php
388-
test/Model/UPGroupTest.php
389-
test/Model/UnmanagedAttributePolicyTest.php
390-
test/Model/UserConsentRepresentationTest.php
391-
test/Model/UserFederationMapperRepresentationTest.php
392-
test/Model/UserFederationProviderRepresentationTest.php
393-
test/Model/UserProfileAttributeGroupMetadataTest.php
394-
test/Model/UserProfileAttributeMetadataTest.php
395-
test/Model/UserProfileMetadataTest.php
396-
test/Model/UserRepresentationTest.php
397-
test/Model/UserSessionRepresentationTest.php

0 commit comments

Comments
 (0)